1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cyrus-imapd 3.4.2.
4#
5# Report bugs to <https://github.com/cyrusimap/cyrus-imapd/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/cyrusimap/cyrus-imapd/issues about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569as_awk_strverscmp='
570  # Use only awk features that work with 7th edition Unix awk (1978).
571  # My, what an old awk you have, Mr. Solaris!
572  END {
573    while (length(v1) && length(v2)) {
574      # Set d1 to be the next thing to compare from v1, and likewise for d2.
575      # Normally this is a single character, but if v1 and v2 contain digits,
576      # compare them as integers and fractions as strverscmp does.
577      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
578	# Split v1 and v2 into their leading digit string components d1 and d2,
579	# and advance v1 and v2 past the leading digit strings.
580	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
581	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
582	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
583	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
584	if (d1 ~ /^0/) {
585	  if (d2 ~ /^0/) {
586	    # Compare two fractions.
587	    while (d1 ~ /^0/ && d2 ~ /^0/) {
588	      d1 = substr(d1, 2); len1--
589	      d2 = substr(d2, 2); len2--
590	    }
591	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
592	      # The two components differ in length, and the common prefix
593	      # contains only leading zeros.  Consider the longer to be less.
594	      d1 = -len1
595	      d2 = -len2
596	    } else {
597	      # Otherwise, compare as strings.
598	      d1 = "x" d1
599	      d2 = "x" d2
600	    }
601	  } else {
602	    # A fraction is less than an integer.
603	    exit 1
604	  }
605	} else {
606	  if (d2 ~ /^0/) {
607	    # An integer is greater than a fraction.
608	    exit 2
609	  } else {
610	    # Compare two integers.
611	    d1 += 0
612	    d2 += 0
613	  }
614	}
615      } else {
616	# The normal case, without worrying about digits.
617	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
618	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
619      }
620      if (d1 < d2) exit 1
621      if (d1 > d2) exit 2
622    }
623    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
624    # which mishandles some comparisons of empty strings to integers.
625    if (length(v2)) exit 1
626    if (length(v1)) exit 2
627  }
628'
629
630test -n "$DJDIR" || exec 7<&0 </dev/null
631exec 6>&1
632
633# Name of the host.
634# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635# so uname gets run too.
636ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638#
639# Initializations.
640#
641ac_default_prefix=/usr/local
642ac_clean_files=
643ac_config_libobj_dir=.
644LIBOBJS=
645cross_compiling=no
646subdirs=
647MFLAGS=
648MAKEFLAGS=
649
650# Identity of this package.
651PACKAGE_NAME='cyrus-imapd'
652PACKAGE_TARNAME='cyrus-imapd'
653PACKAGE_VERSION='3.4.2'
654PACKAGE_STRING='cyrus-imapd 3.4.2'
655PACKAGE_BUGREPORT='https://github.com/cyrusimap/cyrus-imapd/issues'
656PACKAGE_URL='https://www.cyrusimap.org'
657
658ac_unique_file="imap/imapd.c"
659ac_config_libobj_dir=lib
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_subst_vars='am__EXEEXT_FALSE
697am__EXEEXT_TRUE
698LTLIBOBJS
699HAVE_SPHINX_BUILD_FALSE
700HAVE_SPHINX_BUILD_TRUE
701SPHINX_BUILD
702USE_SQLITE_FALSE
703USE_SQLITE_TRUE
704SQLITE_LIBADD
705BENCH_FALSE
706BENCH_TRUE
707CUNIT_FALSE
708CUNIT_TRUE
709LIB_UUID
710LIB_WRAP
711CMU_LIB_SUBDIR
712PERL_PREINSTALL
713PERL_CCCDLFLAGS
714PERL_FALSE
715PERL_TRUE
716PERL
717SASLFLAGS
718LIB_SASL
719DYNSASLFLAGS
720LIB_DYN_SASL
721GSSAPIBASE_LIBS
722LIB_CRYPT
723CMULOCAL_FALSE
724CMULOCAL_TRUE
725GPERF
726COM_ERR_CPPFLAGS
727COM_ERR_LIBS
728PKG_CONFIG_COM_ERR_LIB
729COM_ERR_FALSE
730COM_ERR_TRUE
731COMPILE_ET
732BACKUP_FALSE
733BACKUP_TRUE
734REPLICATION_FALSE
735REPLICATION_TRUE
736JMAP_FALSE
737JMAP_TRUE
738CALALARMD_FALSE
739CALALARMD_TRUE
740HTTP_LIBS
741HTTP_CPPFLAGS
742SHAPELIB_LIBS
743SHAPELIB_CFLAGS
744ZSTD_LIBS
745ZSTD_CFLAGS
746BROTLI_LIBS
747BROTLI_CFLAGS
748WSLAY_LIBS
749WSLAY_CFLAGS
750NGHTTP2_LIBS
751NGHTTP2_CFLAGS
752ICAL_LIBS
753ICAL_CFLAGS
754XML2_LIBS
755XML2_CFLAGS
756HTTPD_FALSE
757HTTPD_TRUE
758MURDER_FALSE
759MURDER_TRUE
760NNTPD_FALSE
761NNTPD_TRUE
762IDLED_FALSE
763IDLED_TRUE
764AUTOCREATE_FALSE
765AUTOCREATE_TRUE
766HAVE_CLD2_FALSE
767HAVE_CLD2_TRUE
768CLD2_LIBS
769CLD2_CFLAGS
770USE_LIBCHARDET_FALSE
771USE_LIBCHARDET_TRUE
772LIBCHARDET_LIBS
773LIBCHARDET_CFLAGS
774USE_ZEROSKIP_FALSE
775USE_ZEROSKIP_TRUE
776ZEROSKIP_LIBS
777ZEROSKIP_CFLAGS
778ICU_LIBS
779ICU_CFLAGS
780USE_JANSSON_FALSE
781USE_JANSSON_TRUE
782JANSSON_LIBS
783JANSSON_CFLAGS
784LIBCAP_LIBS
785ZEPHYR_FALSE
786ZEPHYR_TRUE
787ZEPHYR_LIBS
788ZLIB
789SSL_LIBS
790SSL_CPPFLAGS
791HAVE_SSL_FALSE
792HAVE_SSL_TRUE
793OPENSSL_LIBS
794OPENSSL_CFLAGS
795SERVER_FALSE
796SERVER_TRUE
797CLAMAV_LIBS
798CLAMAV_CFLAGS
799PTCLIENT_FALSE
800PTCLIENT_TRUE
801HAVE_LDAP_FALSE
802HAVE_LDAP_TRUE
803LDAP_LIBS
804LDAP_LDFLAGS
805LDAP_CPPFLAGS
806USE_AFSKRB_FALSE
807USE_AFSKRB_TRUE
808AFS_LIBS
809AFS_LDFLAGS
810cyrus_cv_sigveclib
811LOCK_FCNTL_FALSE
812LOCK_FCNTL_TRUE
813MAP_STUPIDSHARED_FALSE
814MAP_STUPIDSHARED_TRUE
815MAP_SHARED_FALSE
816MAP_SHARED_TRUE
817GMTOFF_TM_FALSE
818GMTOFF_TM_TRUE
819NONBLOCK_FCNTL_FALSE
820NONBLOCK_FCNTL_TRUE
821NOWARN_SIGN_COMPARE
822USE_SRS_FALSE
823USE_SRS_TRUE
824LIB_REGEX
825SIEVE_FALSE
826SIEVE_TRUE
827LEXLIB
828LEX_OUTPUT_ROOT
829LEX
830YFLAGS
831YACC
832SQUATTER_FALSE
833SQUATTER_TRUE
834USE_XAPIAN_FALSE
835USE_XAPIAN_TRUE
836XAPIAN_VERSION
837XAPIAN_LIBS
838XAPIAN_CXXFLAGS
839HAVE_CXX11
840XAPIAN_CONFIG
841RSYNC_BIN
842USE_SQUAT_FALSE
843USE_SQUAT_TRUE
844WITH_OBJSTR_DUMMY_FALSE
845WITH_OBJSTR_DUMMY_TRUE
846WITH_OPENIO_FALSE
847WITH_OPENIO_TRUE
848WITH_CARINGO_FALSE
849WITH_CARINGO_TRUE
850OBJECTSTORE_FALSE
851OBJECTSTORE_TRUE
852USE_CYRUSDB_SQL_FALSE
853USE_CYRUSDB_SQL_TRUE
854PGSQL_LIBADD
855MYSQL_LIBADD
856mysql_config
857LOCALDEFS
858IPV6_noGETNAMEINFO_FALSE
859IPV6_noGETNAMEINFO_TRUE
860IPV6_noGETADDRINFO_FALSE
861IPV6_noGETADDRINFO_TRUE
862LIB_SOCKET
863LIBOBJS
864LIBTOOL_DEPS
865CXXCPP
866LT_SYS_LIBRARY_PATH
867OTOOL64
868OTOOL
869LIPO
870NMEDIT
871DSYMUTIL
872MANIFEST_TOOL
873RANLIB
874ac_ct_AR
875AR
876DLLTOOL
877OBJDUMP
878NM
879ac_ct_DUMPBIN
880DUMPBIN
881LD
882FGREP
883SED
884LIBTOOL
885HAVE_VISIBILITY
886CFLAG_VISIBILITY
887EGREP
888GREP
889CPP
890LN_S
891am__fastdepCC_FALSE
892am__fastdepCC_TRUE
893CCDEPMODE
894ac_ct_CC
895CFLAGS
896CC
897am__fastdepCXX_FALSE
898am__fastdepCXX_TRUE
899CXXDEPMODE
900am__nodep
901AMDEPBACKSLASH
902AMDEP_FALSE
903AMDEP_TRUE
904am__include
905DEPDIR
906OBJEXT
907EXEEXT
908ac_ct_CXX
909CPPFLAGS
910LDFLAGS
911CXXFLAGS
912CXX
913cyrus_user
914GCOV_LIBS
915GCOV_LDFLAGS
916GCOV_CXXFLAGS
917GCOV_CFLAGS
918HAVE_COVERAGE_FALSE
919HAVE_COVERAGE_TRUE
920MAINT
921MAINTAINER_MODE_FALSE
922MAINTAINER_MODE_TRUE
923AM_BACKSLASH
924AM_DEFAULT_VERBOSITY
925AM_DEFAULT_V
926AM_V
927am__untar
928am__tar
929AMTAR
930am__leading_dot
931SET_MAKE
932AWK
933mkdir_p
934MKDIR_P
935INSTALL_STRIP_PROGRAM
936STRIP
937install_sh
938MAKEINFO
939AUTOHEADER
940AUTOMAKE
941AUTOCONF
942ACLOCAL
943VERSION
944PACKAGE
945CYGPATH_W
946am__isrc
947INSTALL_DATA
948INSTALL_SCRIPT
949INSTALL_PROGRAM
950PKG_CONFIG_LIBDIR
951PKG_CONFIG_PATH
952PKG_CONFIG
953CYRUS_IMAPD_PATCH
954CYRUS_IMAPD_REVISION
955CYRUS_IMAPD_SERIES
956ENABLE_STATIC
957ENABLE_SHARED
958target_os
959target_vendor
960target_cpu
961target
962host_os
963host_vendor
964host_cpu
965host
966build_os
967build_vendor
968build_cpu
969build
970target_alias
971host_alias
972build_alias
973LIBS
974ECHO_T
975ECHO_N
976ECHO_C
977DEFS
978mandir
979localedir
980libdir
981psdir
982pdfdir
983dvidir
984htmldir
985infodir
986docdir
987oldincludedir
988includedir
989runstatedir
990localstatedir
991sharedstatedir
992sysconfdir
993datadir
994datarootdir
995libexecdir
996sbindir
997bindir
998program_transform_name
999prefix
1000exec_prefix
1001PACKAGE_URL
1002PACKAGE_BUGREPORT
1003PACKAGE_STRING
1004PACKAGE_VERSION
1005PACKAGE_TARNAME
1006PACKAGE_NAME
1007PATH_SEPARATOR
1008SHELL
1009am__quote'
1010ac_subst_files=''
1011ac_user_opts='
1012enable_option_checking
1013enable_silent_rules
1014with_extraident
1015enable_maintainer_mode
1016enable_coverage
1017with_login
1018with_cyrus_user
1019enable_dependency_tracking
1020enable_static
1021enable_shared
1022with_pic
1023enable_fast_install
1024with_aix_soname
1025with_gnu_ld
1026with_sysroot
1027enable_libtool_lock
1028with_mysql_libdir
1029with_mysql_incdir
1030with_mysql
1031with_pgsql
1032with_pgsql_libdir
1033with_pgsql_incdir
1034with_sqlite
1035with_sqlite_libdir
1036with_sqlite_incdir
1037with_caringo
1038with_openio
1039with_openio_libdir
1040with_openio_incdir
1041enable_objectstore
1042enable_squat
1043enable_xapian
1044enable_sieve
1045enable_pcre
1046enable_srs
1047with_mmap
1048with_lock
1049enable_afs
1050with_afs_libdir
1051with_afs_incdir
1052with_ldap
1053enable_krb5afspts
1054with_clamav
1055enable_server
1056with_krb
1057with_krbimpl
1058enable_statickrb
1059with_krb5_config
1060with_krbdes
1061with_openssl
1062with_egd_socket
1063with_zlib
1064with_zephyr
1065with_libcap
1066with_zeroskip
1067with_chardet
1068with_cld2
1069with_pidfile
1070enable_autocreate
1071enable_idled
1072enable_nntp
1073enable_murder
1074enable_http
1075with_nghttp2
1076with_wslay
1077enable_calalarmd
1078enable_jmap
1079enable_replication
1080enable_backup
1081with_com_err
1082with_syslogfacility
1083enable_cmulocal
1084enable_oldsievename
1085enable_gssapi
1086with_gss_impl
1087with_sasl
1088with_staticsasl
1089with_perl
1090with_lib_subdir
1091with_libwrap
1092enable_unit_tests
1093enable_cyrusdb_benchmarks
1094with_sphinx_build
1095'
1096      ac_precious_vars='build_alias
1097host_alias
1098target_alias
1099PKG_CONFIG
1100PKG_CONFIG_PATH
1101PKG_CONFIG_LIBDIR
1102CXX
1103CXXFLAGS
1104LDFLAGS
1105LIBS
1106CPPFLAGS
1107CCC
1108CC
1109CFLAGS
1110CPP
1111LT_SYS_LIBRARY_PATH
1112CXXCPP
1113RSYNC_BIN
1114XAPIAN_CONFIG
1115YACC
1116YFLAGS
1117CLAMAV_CFLAGS
1118CLAMAV_LIBS
1119OPENSSL_CFLAGS
1120OPENSSL_LIBS
1121JANSSON_CFLAGS
1122JANSSON_LIBS
1123ICU_CFLAGS
1124ICU_LIBS
1125ZEROSKIP_CFLAGS
1126ZEROSKIP_LIBS
1127LIBCHARDET_CFLAGS
1128LIBCHARDET_LIBS
1129CLD2_CFLAGS
1130CLD2_LIBS
1131XML2_CFLAGS
1132XML2_LIBS
1133ICAL_CFLAGS
1134ICAL_LIBS
1135NGHTTP2_CFLAGS
1136NGHTTP2_LIBS
1137WSLAY_CFLAGS
1138WSLAY_LIBS
1139BROTLI_CFLAGS
1140BROTLI_LIBS
1141ZSTD_CFLAGS
1142ZSTD_LIBS
1143SHAPELIB_CFLAGS
1144SHAPELIB_LIBS
1145SPHINX_BUILD'
1146
1147
1148# Initialize some variables set by options.
1149ac_init_help=
1150ac_init_version=false
1151ac_unrecognized_opts=
1152ac_unrecognized_sep=
1153# The variables have the same names as the options, with
1154# dashes changed to underlines.
1155cache_file=/dev/null
1156exec_prefix=NONE
1157no_create=
1158no_recursion=
1159prefix=NONE
1160program_prefix=NONE
1161program_suffix=NONE
1162program_transform_name=s,x,x,
1163silent=
1164site=
1165srcdir=
1166verbose=
1167x_includes=NONE
1168x_libraries=NONE
1169
1170# Installation directory options.
1171# These are left unexpanded so users can "make install exec_prefix=/foo"
1172# and all the variables that are supposed to be based on exec_prefix
1173# by default will actually change.
1174# Use braces instead of parens because sh, perl, etc. also accept them.
1175# (The list follows the same order as the GNU Coding Standards.)
1176bindir='${exec_prefix}/bin'
1177sbindir='${exec_prefix}/sbin'
1178libexecdir='${exec_prefix}/libexec'
1179datarootdir='${prefix}/share'
1180datadir='${datarootdir}'
1181sysconfdir='${prefix}/etc'
1182sharedstatedir='${prefix}/com'
1183localstatedir='${prefix}/var'
1184runstatedir='${localstatedir}/run'
1185includedir='${prefix}/include'
1186oldincludedir='/usr/include'
1187docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1188infodir='${datarootdir}/info'
1189htmldir='${docdir}'
1190dvidir='${docdir}'
1191pdfdir='${docdir}'
1192psdir='${docdir}'
1193libdir='${exec_prefix}/lib'
1194localedir='${datarootdir}/locale'
1195mandir='${datarootdir}/man'
1196
1197ac_prev=
1198ac_dashdash=
1199for ac_option
1200do
1201  # If the previous option needs an argument, assign it.
1202  if test -n "$ac_prev"; then
1203    eval $ac_prev=\$ac_option
1204    ac_prev=
1205    continue
1206  fi
1207
1208  case $ac_option in
1209  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1210  *=)   ac_optarg= ;;
1211  *)    ac_optarg=yes ;;
1212  esac
1213
1214  # Accept the important Cygnus configure options, so we can diagnose typos.
1215
1216  case $ac_dashdash$ac_option in
1217  --)
1218    ac_dashdash=yes ;;
1219
1220  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1221    ac_prev=bindir ;;
1222  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1223    bindir=$ac_optarg ;;
1224
1225  -build | --build | --buil | --bui | --bu)
1226    ac_prev=build_alias ;;
1227  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1228    build_alias=$ac_optarg ;;
1229
1230  -cache-file | --cache-file | --cache-fil | --cache-fi \
1231  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1232    ac_prev=cache_file ;;
1233  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1234  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1235    cache_file=$ac_optarg ;;
1236
1237  --config-cache | -C)
1238    cache_file=config.cache ;;
1239
1240  -datadir | --datadir | --datadi | --datad)
1241    ac_prev=datadir ;;
1242  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1243    datadir=$ac_optarg ;;
1244
1245  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1246  | --dataroo | --dataro | --datar)
1247    ac_prev=datarootdir ;;
1248  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1249  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1250    datarootdir=$ac_optarg ;;
1251
1252  -disable-* | --disable-*)
1253    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256      as_fn_error $? "invalid feature name: $ac_useropt"
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"enable_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval enable_$ac_useropt=no ;;
1267
1268  -docdir | --docdir | --docdi | --doc | --do)
1269    ac_prev=docdir ;;
1270  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1271    docdir=$ac_optarg ;;
1272
1273  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1274    ac_prev=dvidir ;;
1275  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1276    dvidir=$ac_optarg ;;
1277
1278  -enable-* | --enable-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error $? "invalid feature name: $ac_useropt"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"enable_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1290	 ac_unrecognized_sep=', ';;
1291    esac
1292    eval enable_$ac_useropt=\$ac_optarg ;;
1293
1294  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1295  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1296  | --exec | --exe | --ex)
1297    ac_prev=exec_prefix ;;
1298  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1299  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1300  | --exec=* | --exe=* | --ex=*)
1301    exec_prefix=$ac_optarg ;;
1302
1303  -gas | --gas | --ga | --g)
1304    # Obsolete; use --with-gas.
1305    with_gas=yes ;;
1306
1307  -help | --help | --hel | --he | -h)
1308    ac_init_help=long ;;
1309  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1310    ac_init_help=recursive ;;
1311  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1312    ac_init_help=short ;;
1313
1314  -host | --host | --hos | --ho)
1315    ac_prev=host_alias ;;
1316  -host=* | --host=* | --hos=* | --ho=*)
1317    host_alias=$ac_optarg ;;
1318
1319  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1320    ac_prev=htmldir ;;
1321  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1322  | --ht=*)
1323    htmldir=$ac_optarg ;;
1324
1325  -includedir | --includedir | --includedi | --included | --include \
1326  | --includ | --inclu | --incl | --inc)
1327    ac_prev=includedir ;;
1328  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1329  | --includ=* | --inclu=* | --incl=* | --inc=*)
1330    includedir=$ac_optarg ;;
1331
1332  -infodir | --infodir | --infodi | --infod | --info | --inf)
1333    ac_prev=infodir ;;
1334  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1335    infodir=$ac_optarg ;;
1336
1337  -libdir | --libdir | --libdi | --libd)
1338    ac_prev=libdir ;;
1339  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1340    libdir=$ac_optarg ;;
1341
1342  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1343  | --libexe | --libex | --libe)
1344    ac_prev=libexecdir ;;
1345  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1346  | --libexe=* | --libex=* | --libe=*)
1347    libexecdir=$ac_optarg ;;
1348
1349  -localedir | --localedir | --localedi | --localed | --locale)
1350    ac_prev=localedir ;;
1351  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1352    localedir=$ac_optarg ;;
1353
1354  -localstatedir | --localstatedir | --localstatedi | --localstated \
1355  | --localstate | --localstat | --localsta | --localst | --locals)
1356    ac_prev=localstatedir ;;
1357  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1358  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1359    localstatedir=$ac_optarg ;;
1360
1361  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1362    ac_prev=mandir ;;
1363  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1364    mandir=$ac_optarg ;;
1365
1366  -nfp | --nfp | --nf)
1367    # Obsolete; use --without-fp.
1368    with_fp=no ;;
1369
1370  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1371  | --no-cr | --no-c | -n)
1372    no_create=yes ;;
1373
1374  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1375  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1376    no_recursion=yes ;;
1377
1378  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1379  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1380  | --oldin | --oldi | --old | --ol | --o)
1381    ac_prev=oldincludedir ;;
1382  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1383  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1384  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1385    oldincludedir=$ac_optarg ;;
1386
1387  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1388    ac_prev=prefix ;;
1389  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1390    prefix=$ac_optarg ;;
1391
1392  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1393  | --program-pre | --program-pr | --program-p)
1394    ac_prev=program_prefix ;;
1395  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1396  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1397    program_prefix=$ac_optarg ;;
1398
1399  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1400  | --program-suf | --program-su | --program-s)
1401    ac_prev=program_suffix ;;
1402  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1403  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1404    program_suffix=$ac_optarg ;;
1405
1406  -program-transform-name | --program-transform-name \
1407  | --program-transform-nam | --program-transform-na \
1408  | --program-transform-n | --program-transform- \
1409  | --program-transform | --program-transfor \
1410  | --program-transfo | --program-transf \
1411  | --program-trans | --program-tran \
1412  | --progr-tra | --program-tr | --program-t)
1413    ac_prev=program_transform_name ;;
1414  -program-transform-name=* | --program-transform-name=* \
1415  | --program-transform-nam=* | --program-transform-na=* \
1416  | --program-transform-n=* | --program-transform-=* \
1417  | --program-transform=* | --program-transfor=* \
1418  | --program-transfo=* | --program-transf=* \
1419  | --program-trans=* | --program-tran=* \
1420  | --progr-tra=* | --program-tr=* | --program-t=*)
1421    program_transform_name=$ac_optarg ;;
1422
1423  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1424    ac_prev=pdfdir ;;
1425  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1426    pdfdir=$ac_optarg ;;
1427
1428  -psdir | --psdir | --psdi | --psd | --ps)
1429    ac_prev=psdir ;;
1430  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1431    psdir=$ac_optarg ;;
1432
1433  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1434  | -silent | --silent | --silen | --sile | --sil)
1435    silent=yes ;;
1436
1437  -runstatedir | --runstatedir | --runstatedi | --runstated \
1438  | --runstate | --runstat | --runsta | --runst | --runs \
1439  | --run | --ru | --r)
1440    ac_prev=runstatedir ;;
1441  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1442  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1443  | --run=* | --ru=* | --r=*)
1444    runstatedir=$ac_optarg ;;
1445
1446  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1447    ac_prev=sbindir ;;
1448  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1449  | --sbi=* | --sb=*)
1450    sbindir=$ac_optarg ;;
1451
1452  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1453  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1454  | --sharedst | --shareds | --shared | --share | --shar \
1455  | --sha | --sh)
1456    ac_prev=sharedstatedir ;;
1457  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1458  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1459  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1460  | --sha=* | --sh=*)
1461    sharedstatedir=$ac_optarg ;;
1462
1463  -site | --site | --sit)
1464    ac_prev=site ;;
1465  -site=* | --site=* | --sit=*)
1466    site=$ac_optarg ;;
1467
1468  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1469    ac_prev=srcdir ;;
1470  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1471    srcdir=$ac_optarg ;;
1472
1473  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1474  | --syscon | --sysco | --sysc | --sys | --sy)
1475    ac_prev=sysconfdir ;;
1476  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1477  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1478    sysconfdir=$ac_optarg ;;
1479
1480  -target | --target | --targe | --targ | --tar | --ta | --t)
1481    ac_prev=target_alias ;;
1482  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1483    target_alias=$ac_optarg ;;
1484
1485  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1486    verbose=yes ;;
1487
1488  -version | --version | --versio | --versi | --vers | -V)
1489    ac_init_version=: ;;
1490
1491  -with-* | --with-*)
1492    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1493    # Reject names that are not valid shell variable names.
1494    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1495      as_fn_error $? "invalid package name: $ac_useropt"
1496    ac_useropt_orig=$ac_useropt
1497    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1498    case $ac_user_opts in
1499      *"
1500"with_$ac_useropt"
1501"*) ;;
1502      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1503	 ac_unrecognized_sep=', ';;
1504    esac
1505    eval with_$ac_useropt=\$ac_optarg ;;
1506
1507  -without-* | --without-*)
1508    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1509    # Reject names that are not valid shell variable names.
1510    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1511      as_fn_error $? "invalid package name: $ac_useropt"
1512    ac_useropt_orig=$ac_useropt
1513    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1514    case $ac_user_opts in
1515      *"
1516"with_$ac_useropt"
1517"*) ;;
1518      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1519	 ac_unrecognized_sep=', ';;
1520    esac
1521    eval with_$ac_useropt=no ;;
1522
1523  --x)
1524    # Obsolete; use --with-x.
1525    with_x=yes ;;
1526
1527  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1528  | --x-incl | --x-inc | --x-in | --x-i)
1529    ac_prev=x_includes ;;
1530  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1531  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1532    x_includes=$ac_optarg ;;
1533
1534  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1535  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1536    ac_prev=x_libraries ;;
1537  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1538  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1539    x_libraries=$ac_optarg ;;
1540
1541  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1542Try \`$0 --help' for more information"
1543    ;;
1544
1545  *=*)
1546    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1547    # Reject names that are not valid shell variable names.
1548    case $ac_envvar in #(
1549      '' | [0-9]* | *[!_$as_cr_alnum]* )
1550      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1551    esac
1552    eval $ac_envvar=\$ac_optarg
1553    export $ac_envvar ;;
1554
1555  *)
1556    # FIXME: should be removed in autoconf 3.0.
1557    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1558    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1559      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1560    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1561    ;;
1562
1563  esac
1564done
1565
1566if test -n "$ac_prev"; then
1567  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1568  as_fn_error $? "missing argument to $ac_option"
1569fi
1570
1571if test -n "$ac_unrecognized_opts"; then
1572  case $enable_option_checking in
1573    no) ;;
1574    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1575    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1576  esac
1577fi
1578
1579# Check all directory arguments for consistency.
1580for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1581		datadir sysconfdir sharedstatedir localstatedir includedir \
1582		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1583		libdir localedir mandir runstatedir
1584do
1585  eval ac_val=\$$ac_var
1586  # Remove trailing slashes.
1587  case $ac_val in
1588    */ )
1589      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1590      eval $ac_var=\$ac_val;;
1591  esac
1592  # Be sure to have absolute directory names.
1593  case $ac_val in
1594    [\\/$]* | ?:[\\/]* )  continue;;
1595    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1596  esac
1597  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1598done
1599
1600# There might be people who depend on the old broken behavior: `$host'
1601# used to hold the argument of --host etc.
1602# FIXME: To remove some day.
1603build=$build_alias
1604host=$host_alias
1605target=$target_alias
1606
1607# FIXME: To remove some day.
1608if test "x$host_alias" != x; then
1609  if test "x$build_alias" = x; then
1610    cross_compiling=maybe
1611  elif test "x$build_alias" != "x$host_alias"; then
1612    cross_compiling=yes
1613  fi
1614fi
1615
1616ac_tool_prefix=
1617test -n "$host_alias" && ac_tool_prefix=$host_alias-
1618
1619test "$silent" = yes && exec 6>/dev/null
1620
1621
1622ac_pwd=`pwd` && test -n "$ac_pwd" &&
1623ac_ls_di=`ls -di .` &&
1624ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1625  as_fn_error $? "working directory cannot be determined"
1626test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1627  as_fn_error $? "pwd does not report name of working directory"
1628
1629
1630# Find the source files, if location was not specified.
1631if test -z "$srcdir"; then
1632  ac_srcdir_defaulted=yes
1633  # Try the directory containing this script, then the parent directory.
1634  ac_confdir=`$as_dirname -- "$as_myself" ||
1635$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1636	 X"$as_myself" : 'X\(//\)[^/]' \| \
1637	 X"$as_myself" : 'X\(//\)$' \| \
1638	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1639$as_echo X"$as_myself" |
1640    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1641	    s//\1/
1642	    q
1643	  }
1644	  /^X\(\/\/\)[^/].*/{
1645	    s//\1/
1646	    q
1647	  }
1648	  /^X\(\/\/\)$/{
1649	    s//\1/
1650	    q
1651	  }
1652	  /^X\(\/\).*/{
1653	    s//\1/
1654	    q
1655	  }
1656	  s/.*/./; q'`
1657  srcdir=$ac_confdir
1658  if test ! -r "$srcdir/$ac_unique_file"; then
1659    srcdir=..
1660  fi
1661else
1662  ac_srcdir_defaulted=no
1663fi
1664if test ! -r "$srcdir/$ac_unique_file"; then
1665  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1666  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1667fi
1668ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1669ac_abs_confdir=`(
1670	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1671	pwd)`
1672# When building in place, set srcdir=.
1673if test "$ac_abs_confdir" = "$ac_pwd"; then
1674  srcdir=.
1675fi
1676# Remove unnecessary trailing slashes from srcdir.
1677# Double slashes in file names in object file debugging info
1678# mess up M-x gdb in Emacs.
1679case $srcdir in
1680*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1681esac
1682for ac_var in $ac_precious_vars; do
1683  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1684  eval ac_env_${ac_var}_value=\$${ac_var}
1685  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1686  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1687done
1688
1689#
1690# Report the --help message.
1691#
1692if test "$ac_init_help" = "long"; then
1693  # Omit some internal or obsolete options to make the list less imposing.
1694  # This message is too long to be a string in the A/UX 3.1 sh.
1695  cat <<_ACEOF
1696\`configure' configures cyrus-imapd 3.4.2 to adapt to many kinds of systems.
1697
1698Usage: $0 [OPTION]... [VAR=VALUE]...
1699
1700To assign environment variables (e.g., CC, CFLAGS...), specify them as
1701VAR=VALUE.  See below for descriptions of some of the useful variables.
1702
1703Defaults for the options are specified in brackets.
1704
1705Configuration:
1706  -h, --help              display this help and exit
1707      --help=short        display options specific to this package
1708      --help=recursive    display the short help of all the included packages
1709  -V, --version           display version information and exit
1710  -q, --quiet, --silent   do not print \`checking ...' messages
1711      --cache-file=FILE   cache test results in FILE [disabled]
1712  -C, --config-cache      alias for \`--cache-file=config.cache'
1713  -n, --no-create         do not create output files
1714      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1715
1716Installation directories:
1717  --prefix=PREFIX         install architecture-independent files in PREFIX
1718                          [$ac_default_prefix]
1719  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1720                          [PREFIX]
1721
1722By default, \`make install' will install all the files in
1723\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1724an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1725for instance \`--prefix=\$HOME'.
1726
1727For better control, use the options below.
1728
1729Fine tuning of the installation directories:
1730  --bindir=DIR            user executables [EPREFIX/bin]
1731  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1732  --libexecdir=DIR        program executables [EPREFIX/libexec]
1733  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1734  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1735  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1736  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1737  --libdir=DIR            object code libraries [EPREFIX/lib]
1738  --includedir=DIR        C header files [PREFIX/include]
1739  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1740  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1741  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1742  --infodir=DIR           info documentation [DATAROOTDIR/info]
1743  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1744  --mandir=DIR            man documentation [DATAROOTDIR/man]
1745  --docdir=DIR            documentation root [DATAROOTDIR/doc/cyrus-imapd]
1746  --htmldir=DIR           html documentation [DOCDIR]
1747  --dvidir=DIR            dvi documentation [DOCDIR]
1748  --pdfdir=DIR            pdf documentation [DOCDIR]
1749  --psdir=DIR             ps documentation [DOCDIR]
1750_ACEOF
1751
1752  cat <<\_ACEOF
1753
1754Program names:
1755  --program-prefix=PREFIX            prepend PREFIX to installed program names
1756  --program-suffix=SUFFIX            append SUFFIX to installed program names
1757  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1758
1759System types:
1760  --build=BUILD     configure for building on BUILD [guessed]
1761  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1762  --target=TARGET   configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767  case $ac_init_help in
1768     short | recursive ) echo "Configuration of cyrus-imapd 3.4.2:";;
1769   esac
1770  cat <<\_ACEOF
1771
1772Optional Features:
1773  --disable-option-checking  ignore unrecognized --enable/--with options
1774  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1775  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1776  --enable-silent-rules   less verbose build output (undo: "make V=1")
1777  --disable-silent-rules  verbose build output (undo: "make V=0")
1778  --enable-maintainer-mode
1779                          enable make rules and dependencies not useful (and
1780                          sometimes confusing) to the casual installer
1781  --enable-coverage       enable C test coverage
1782
1783  --enable-dependency-tracking
1784                          do not reject slow dependency extractors
1785  --disable-dependency-tracking
1786                          speeds up one-time build
1787  --enable-static[=PKGS]  build static libraries [default=no]
1788  --enable-shared[=PKGS]  build shared libraries [default=yes]
1789  --enable-fast-install[=PKGS]
1790                          optimize for fast installation [default=yes]
1791  --disable-libtool-lock  avoid locking (might break parallel builds)
1792  --enable-objectstore    enable IMAP objectstore support. Use --with-caringo
1793                          or --with-openio to choose a backend
1794  --disable-squat         disable Squat support
1795  --enable-xapian         enable Xapian support
1796  --disable-sieve         disable Sieve support
1797  --disable-pcre          disable PCRE library
1798  --enable-srs            enable Sender Rewriting Scheme support
1799  --enable-afs            Enable AFS with ptloader
1800  --enable-krb5afspts     compile afskrb PTS module with krb5 support
1801  --disable-server        disable compiling servers
1802  --enable-statickrb      link Kerberos statically
1803  --enable-autocreate     enable autocreate support
1804  --enable-idled          enable IMAP idled support
1805  --enable-nntp           enable NNTP support
1806  --enable-murder         enable IMAP Murder support
1807  --enable-http           enable HTTP support
1808  --enable-calalarmd      enable CalDAV alarm support
1809  --enable-jmap           enable JMAP support
1810  --enable-replication    enable replication support (experimental)
1811  --enable-backup         enable backup support (experimental)
1812  --enable-cmulocal       enable CMU-specific local support
1813  --enable-oldsievename   enable the use of 'imap' as the sieve service name
1814  --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1815  --enable-unit-tests     enable CUnit-based unit regression tests
1816  --enable-cyrusdb-benchmarks
1817                          enable cyrdb benchmarks
1818
1819Optional Packages:
1820  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1821  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1822  --with-extraident=STRING
1823                          use STRING as extra version information
1824
1825  --with-cyrus-user=USERID
1826                          use USERID cyrus userid
1827  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1828                          both]
1829  --with-aix-soname=aix|svr4|both
1830                          shared library versioning (aka "SONAME") variant to
1831                          provide on AIX, [default=aix].
1832  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1833  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1834                          compiler's sysroot if not specified).
1835  --with-mysql-libdir=DIR MySQL lib files are in DIR
1836  --with-mysql-incdir=DIR MySQL include files are in DIR
1837  --with-mysql=DIR        use MySQL (in DIR) [no]
1838  --with-pgsql=DIR        use PostgreSQL (in DIR) [no]
1839  --with-pgsql-libdir=DIR Pgsql lib files are in DIR
1840  --with-pgsql-incdir=DIR Pgsql include files are in DIR
1841  --with-sqlite=DIR       use SQLite (in DIR) [no]
1842  --with-sqlite-libdir=DIR
1843                          SQLite lib files are in DIR
1844  --with-sqlite-incdir=DIR
1845                          SQLite include files are in DIR
1846  --with-caringo          use Caringo ("yes" or "no")
1847  --with-openio=yes|no    use OpenIO ("yes" or "no")
1848  --with-openio-libdir=DIR
1849                          OpenIO lib files are in DIR
1850  --with-openio-incdir=DIR
1851                          OpenIO include files are in DIR
1852  --with-mmap=TYPE        force shared/stupidshared/nommap - JUST FOR TESTING
1853  --with-lock=METHOD      force use of METHOD for locking (flock or fcntl)
1854  --with-afs-libdir=DIR   use AFS libraries from DIR [/usr/lib]
1855  --with-afs-incdir=DIR   use AFS headers from DIR [/usr/include]
1856  --with-ldap=DIR         use LDAP (in DIR) (experimental) [/usr/local]
1857  --without-clamav        ignore presence of ClamAV and disable it
1858  --with-krb=DIR          use Kerberos from DIR
1859  --with-krbimpl=kth|mit  assume Kerberos 4 from KTH or MIT
1860  --with-krb5-config=PATH use krb5-config from PATH
1861  --without-krbdes        disable Kerberos DES implementation
1862  --with-openssl=DIR      use OpenSSL from DIR
1863  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname for systems
1864                          without /dev/urandom
1865  --with-zlib=DIR         use zlib from DIR
1866  --with-zephyr=DIR       enable Zephyr notification (installed on DIR)
1867  --with-libcap           Enable libcap system capabilities handling (Linux
1868                          systems only)
1869  --without-zeroskip      ignore presence of Zeroskip and disable it
1870  --without-chardet       ignore presence of chardet library and disable it
1871  --without-cld2          ignore presence of cld2 library and disable it
1872  --with-pidfile=DIR      pidfile in DIR [/var/run/cyrus-master.pid]
1873  --without-nghttp2       disable HTTP/2 support (check)
1874  --without-wslay         disable WebSockets support (check)
1875  --with-com_err=DIR      use com_err from path -- includes in DIR/include,
1876                          libs in DIR/lib, and compile_et in DIR/bin
1877  --with-syslogfacility=FACILITY
1878                          set the syslog facility to use (default LOCAL6)
1879  --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1880                          choose specific GSSAPI implementation [[auto]]
1881  --with-sasl=DIR         Compile with libsasl2 in <DIR>
1882  --with-staticsasl=DIR   Compile with statically linked libsasl2 in <DIR>
1883  --with-perl=PERL        use PERL for perl
1884  --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1885  --with-libwrap=DIR      use libwrap (rooted in DIR) [yes]
1886  --with-sphinx-build=(yes|no|PATH)
1887                          Look for sphinx-build in PATH
1888
1889Some influential environment variables:
1890  PKG_CONFIG  path to pkg-config utility
1891  PKG_CONFIG_PATH
1892              directories to add to pkg-config's search path
1893  PKG_CONFIG_LIBDIR
1894              path overriding pkg-config's built-in search path
1895  CXX         C++ compiler command
1896  CXXFLAGS    C++ compiler flags
1897  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1898              nonstandard directory <lib dir>
1899  LIBS        libraries to pass to the linker, e.g. -l<library>
1900  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1901              you have headers in a nonstandard directory <include dir>
1902  CC          C compiler command
1903  CFLAGS      C compiler flags
1904  CPP         C preprocessor
1905  LT_SYS_LIBRARY_PATH
1906              User-defined run-time library search path.
1907  CXXCPP      C++ preprocessor
1908  RSYNC_BIN   Location of rsync
1909  XAPIAN_CONFIG
1910              Location of xapian-config
1911  YACC        The `Yet Another Compiler Compiler' implementation to use.
1912              Defaults to the first program found out of: `bison -y', `byacc',
1913              `yacc'.
1914  YFLAGS      The list of arguments that will be passed by default to $YACC.
1915              This script will default YFLAGS to the empty string to avoid a
1916              default value of `-d' given by some make applications.
1917  CLAMAV_CFLAGS
1918              C compiler flags for CLAMAV, overriding pkg-config
1919  CLAMAV_LIBS linker flags for CLAMAV, overriding pkg-config
1920  OPENSSL_CFLAGS
1921              C compiler flags for OPENSSL, overriding pkg-config
1922  OPENSSL_LIBS
1923              linker flags for OPENSSL, overriding pkg-config
1924  JANSSON_CFLAGS
1925              C compiler flags for JANSSON, overriding pkg-config
1926  JANSSON_LIBS
1927              linker flags for JANSSON, overriding pkg-config
1928  ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1929  ICU_LIBS    linker flags for ICU, overriding pkg-config
1930  ZEROSKIP_CFLAGS
1931              C compiler flags for ZEROSKIP, overriding pkg-config
1932  ZEROSKIP_LIBS
1933              linker flags for ZEROSKIP, overriding pkg-config
1934  LIBCHARDET_CFLAGS
1935              C compiler flags for LIBCHARDET, overriding pkg-config
1936  LIBCHARDET_LIBS
1937              linker flags for LIBCHARDET, overriding pkg-config
1938  CLD2_CFLAGS C compiler flags for CLD2, overriding pkg-config
1939  CLD2_LIBS   linker flags for CLD2, overriding pkg-config
1940  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1941  XML2_LIBS   linker flags for XML2, overriding pkg-config
1942  ICAL_CFLAGS C compiler flags for ICAL, overriding pkg-config
1943  ICAL_LIBS   linker flags for ICAL, overriding pkg-config
1944  NGHTTP2_CFLAGS
1945              C compiler flags for NGHTTP2, overriding pkg-config
1946  NGHTTP2_LIBS
1947              linker flags for NGHTTP2, overriding pkg-config
1948  WSLAY_CFLAGS
1949              C compiler flags for WSLAY, overriding pkg-config
1950  WSLAY_LIBS  linker flags for WSLAY, overriding pkg-config
1951  BROTLI_CFLAGS
1952              C compiler flags for BROTLI, overriding pkg-config
1953  BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1954  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1955  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1956  SHAPELIB_CFLAGS
1957              C compiler flags for SHAPELIB, overriding pkg-config
1958  SHAPELIB_LIBS
1959              linker flags for SHAPELIB, overriding pkg-config
1960  SPHINX_BUILD
1961              Location of sphinx-build
1962
1963Use these variables to override the choices made by `configure' or to help
1964it to find libraries and programs with nonstandard names/locations.
1965
1966Report bugs to <https://github.com/cyrusimap/cyrus-imapd/issues>.
1967cyrus-imapd home page: <https://www.cyrusimap.org>.
1968_ACEOF
1969ac_status=$?
1970fi
1971
1972if test "$ac_init_help" = "recursive"; then
1973  # If there are subdirs, report their specific --help.
1974  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975    test -d "$ac_dir" ||
1976      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1977      continue
1978    ac_builddir=.
1979
1980case "$ac_dir" in
1981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982*)
1983  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984  # A ".." for each directory in $ac_dir_suffix.
1985  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986  case $ac_top_builddir_sub in
1987  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989  esac ;;
1990esac
1991ac_abs_top_builddir=$ac_pwd
1992ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993# for backward compatibility:
1994ac_top_builddir=$ac_top_build_prefix
1995
1996case $srcdir in
1997  .)  # We are building in place.
1998    ac_srcdir=.
1999    ac_top_srcdir=$ac_top_builddir_sub
2000    ac_abs_top_srcdir=$ac_pwd ;;
2001  [\\/]* | ?:[\\/]* )  # Absolute name.
2002    ac_srcdir=$srcdir$ac_dir_suffix;
2003    ac_top_srcdir=$srcdir
2004    ac_abs_top_srcdir=$srcdir ;;
2005  *) # Relative name.
2006    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007    ac_top_srcdir=$ac_top_build_prefix$srcdir
2008    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009esac
2010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2011
2012    cd "$ac_dir" || { ac_status=$?; continue; }
2013    # Check for guested configure.
2014    if test -f "$ac_srcdir/configure.gnu"; then
2015      echo &&
2016      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017    elif test -f "$ac_srcdir/configure"; then
2018      echo &&
2019      $SHELL "$ac_srcdir/configure" --help=recursive
2020    else
2021      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022    fi || ac_status=$?
2023    cd "$ac_pwd" || { ac_status=$?; break; }
2024  done
2025fi
2026
2027test -n "$ac_init_help" && exit $ac_status
2028if $ac_init_version; then
2029  cat <<\_ACEOF
2030cyrus-imapd configure 3.4.2
2031generated by GNU Autoconf 2.69
2032
2033Copyright (C) 2012 Free Software Foundation, Inc.
2034This configure script is free software; the Free Software Foundation
2035gives unlimited permission to copy, distribute and modify it.
2036_ACEOF
2037  exit
2038fi
2039
2040## ------------------------ ##
2041## Autoconf initialization. ##
2042## ------------------------ ##
2043
2044# ac_fn_cxx_try_compile LINENO
2045# ----------------------------
2046# Try to compile conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_cxx_try_compile ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  rm -f conftest.$ac_objext
2051  if { { ac_try="$ac_compile"
2052case "(($ac_try" in
2053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054  *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058  (eval "$ac_compile") 2>conftest.err
2059  ac_status=$?
2060  if test -s conftest.err; then
2061    grep -v '^ *+' conftest.err >conftest.er1
2062    cat conftest.er1 >&5
2063    mv -f conftest.er1 conftest.err
2064  fi
2065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } && {
2067	 test -z "$ac_cxx_werror_flag" ||
2068	 test ! -s conftest.err
2069       } && test -s conftest.$ac_objext; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075	ac_retval=1
2076fi
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078  as_fn_set_status $ac_retval
2079
2080} # ac_fn_cxx_try_compile
2081
2082# ac_fn_c_try_compile LINENO
2083# --------------------------
2084# Try to compile conftest.$ac_ext, and return whether this succeeded.
2085ac_fn_c_try_compile ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  rm -f conftest.$ac_objext
2089  if { { ac_try="$ac_compile"
2090case "(($ac_try" in
2091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092  *) ac_try_echo=$ac_try;;
2093esac
2094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095$as_echo "$ac_try_echo"; } >&5
2096  (eval "$ac_compile") 2>conftest.err
2097  ac_status=$?
2098  if test -s conftest.err; then
2099    grep -v '^ *+' conftest.err >conftest.er1
2100    cat conftest.er1 >&5
2101    mv -f conftest.er1 conftest.err
2102  fi
2103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104  test $ac_status = 0; } && {
2105	 test -z "$ac_c_werror_flag" ||
2106	 test ! -s conftest.err
2107       } && test -s conftest.$ac_objext; then :
2108  ac_retval=0
2109else
2110  $as_echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113	ac_retval=1
2114fi
2115  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116  as_fn_set_status $ac_retval
2117
2118} # ac_fn_c_try_compile
2119
2120# ac_fn_c_try_cpp LINENO
2121# ----------------------
2122# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2123ac_fn_c_try_cpp ()
2124{
2125  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126  if { { ac_try="$ac_cpp conftest.$ac_ext"
2127case "(($ac_try" in
2128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129  *) ac_try_echo=$ac_try;;
2130esac
2131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132$as_echo "$ac_try_echo"; } >&5
2133  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2134  ac_status=$?
2135  if test -s conftest.err; then
2136    grep -v '^ *+' conftest.err >conftest.er1
2137    cat conftest.er1 >&5
2138    mv -f conftest.er1 conftest.err
2139  fi
2140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141  test $ac_status = 0; } > conftest.i && {
2142	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2143	 test ! -s conftest.err
2144       }; then :
2145  ac_retval=0
2146else
2147  $as_echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150    ac_retval=1
2151fi
2152  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153  as_fn_set_status $ac_retval
2154
2155} # ac_fn_c_try_cpp
2156
2157# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2158# -------------------------------------------------------
2159# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2160# the include files in INCLUDES and setting the cache variable VAR
2161# accordingly.
2162ac_fn_c_check_header_mongrel ()
2163{
2164  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165  if eval \${$3+:} false; then :
2166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167$as_echo_n "checking for $2... " >&6; }
2168if eval \${$3+:} false; then :
2169  $as_echo_n "(cached) " >&6
2170fi
2171eval ac_res=\$$3
2172	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173$as_echo "$ac_res" >&6; }
2174else
2175  # Is the header compilable?
2176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2177$as_echo_n "checking $2 usability... " >&6; }
2178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h.  */
2180$4
2181#include <$2>
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184  ac_header_compiler=yes
2185else
2186  ac_header_compiler=no
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2190$as_echo "$ac_header_compiler" >&6; }
2191
2192# Is the header present?
2193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2194$as_echo_n "checking $2 presence... " >&6; }
2195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197#include <$2>
2198_ACEOF
2199if ac_fn_c_try_cpp "$LINENO"; then :
2200  ac_header_preproc=yes
2201else
2202  ac_header_preproc=no
2203fi
2204rm -f conftest.err conftest.i conftest.$ac_ext
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2206$as_echo "$ac_header_preproc" >&6; }
2207
2208# So?  What about this header?
2209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2210  yes:no: )
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2212$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2214$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2215    ;;
2216  no:yes:* )
2217    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2218$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2220$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2222$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2223    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2224$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2226$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2227( $as_echo "## -------------------------------------------------------------- ##
2228## Report this to https://github.com/cyrusimap/cyrus-imapd/issues ##
2229## -------------------------------------------------------------- ##"
2230     ) | sed "s/^/$as_me: WARNING:     /" >&2
2231    ;;
2232esac
2233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
2235if eval \${$3+:} false; then :
2236  $as_echo_n "(cached) " >&6
2237else
2238  eval "$3=\$ac_header_compiler"
2239fi
2240eval ac_res=\$$3
2241	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242$as_echo "$ac_res" >&6; }
2243fi
2244  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245
2246} # ac_fn_c_check_header_mongrel
2247
2248# ac_fn_c_try_run LINENO
2249# ----------------------
2250# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2251# that executables *can* be run.
2252ac_fn_c_try_run ()
2253{
2254  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255  if { { ac_try="$ac_link"
2256case "(($ac_try" in
2257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258  *) ac_try_echo=$ac_try;;
2259esac
2260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261$as_echo "$ac_try_echo"; } >&5
2262  (eval "$ac_link") 2>&5
2263  ac_status=$?
2264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2266  { { case "(($ac_try" in
2267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268  *) ac_try_echo=$ac_try;;
2269esac
2270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271$as_echo "$ac_try_echo"; } >&5
2272  (eval "$ac_try") 2>&5
2273  ac_status=$?
2274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275  test $ac_status = 0; }; }; then :
2276  ac_retval=0
2277else
2278  $as_echo "$as_me: program exited with status $ac_status" >&5
2279       $as_echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282       ac_retval=$ac_status
2283fi
2284  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2285  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286  as_fn_set_status $ac_retval
2287
2288} # ac_fn_c_try_run
2289
2290# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2291# -------------------------------------------------------
2292# Tests whether HEADER exists and can be compiled using the include files in
2293# INCLUDES, setting the cache variable VAR accordingly.
2294ac_fn_c_check_header_compile ()
2295{
2296  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298$as_echo_n "checking for $2... " >&6; }
2299if eval \${$3+:} false; then :
2300  $as_echo_n "(cached) " >&6
2301else
2302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303/* end confdefs.h.  */
2304$4
2305#include <$2>
2306_ACEOF
2307if ac_fn_c_try_compile "$LINENO"; then :
2308  eval "$3=yes"
2309else
2310  eval "$3=no"
2311fi
2312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313fi
2314eval ac_res=\$$3
2315	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316$as_echo "$ac_res" >&6; }
2317  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318
2319} # ac_fn_c_check_header_compile
2320
2321# ac_fn_c_try_link LINENO
2322# -----------------------
2323# Try to link conftest.$ac_ext, and return whether this succeeded.
2324ac_fn_c_try_link ()
2325{
2326  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327  rm -f conftest.$ac_objext conftest$ac_exeext
2328  if { { ac_try="$ac_link"
2329case "(($ac_try" in
2330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331  *) ac_try_echo=$ac_try;;
2332esac
2333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334$as_echo "$ac_try_echo"; } >&5
2335  (eval "$ac_link") 2>conftest.err
2336  ac_status=$?
2337  if test -s conftest.err; then
2338    grep -v '^ *+' conftest.err >conftest.er1
2339    cat conftest.er1 >&5
2340    mv -f conftest.er1 conftest.err
2341  fi
2342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343  test $ac_status = 0; } && {
2344	 test -z "$ac_c_werror_flag" ||
2345	 test ! -s conftest.err
2346       } && test -s conftest$ac_exeext && {
2347	 test "$cross_compiling" = yes ||
2348	 test -x conftest$ac_exeext
2349       }; then :
2350  ac_retval=0
2351else
2352  $as_echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355	ac_retval=1
2356fi
2357  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2358  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2359  # interfere with the next link command; also delete a directory that is
2360  # left behind by Apple's compiler.  We do this before executing the actions.
2361  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2362  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363  as_fn_set_status $ac_retval
2364
2365} # ac_fn_c_try_link
2366
2367# ac_fn_c_check_func LINENO FUNC VAR
2368# ----------------------------------
2369# Tests whether FUNC exists, setting the cache variable VAR accordingly
2370ac_fn_c_check_func ()
2371{
2372  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374$as_echo_n "checking for $2... " >&6; }
2375if eval \${$3+:} false; then :
2376  $as_echo_n "(cached) " >&6
2377else
2378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h.  */
2380/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2381   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2382#define $2 innocuous_$2
2383
2384/* System header to define __stub macros and hopefully few prototypes,
2385    which can conflict with char $2 (); below.
2386    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2387    <limits.h> exists even on freestanding compilers.  */
2388
2389#ifdef __STDC__
2390# include <limits.h>
2391#else
2392# include <assert.h>
2393#endif
2394
2395#undef $2
2396
2397/* Override any GCC internal prototype to avoid an error.
2398   Use char because int might match the return type of a GCC
2399   builtin and then its argument prototype would still apply.  */
2400#ifdef __cplusplus
2401extern "C"
2402#endif
2403char $2 ();
2404/* The GNU C library defines this for functions which it implements
2405    to always fail with ENOSYS.  Some functions are actually named
2406    something starting with __ and the normal name is an alias.  */
2407#if defined __stub_$2 || defined __stub___$2
2408choke me
2409#endif
2410
2411int
2412main ()
2413{
2414return $2 ();
2415  ;
2416  return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_link "$LINENO"; then :
2420  eval "$3=yes"
2421else
2422  eval "$3=no"
2423fi
2424rm -f core conftest.err conftest.$ac_objext \
2425    conftest$ac_exeext conftest.$ac_ext
2426fi
2427eval ac_res=\$$3
2428	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429$as_echo "$ac_res" >&6; }
2430  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431
2432} # ac_fn_c_check_func
2433
2434# ac_fn_cxx_try_cpp LINENO
2435# ------------------------
2436# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437ac_fn_cxx_try_cpp ()
2438{
2439  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440  if { { ac_try="$ac_cpp conftest.$ac_ext"
2441case "(($ac_try" in
2442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443  *) ac_try_echo=$ac_try;;
2444esac
2445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446$as_echo "$ac_try_echo"; } >&5
2447  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448  ac_status=$?
2449  if test -s conftest.err; then
2450    grep -v '^ *+' conftest.err >conftest.er1
2451    cat conftest.er1 >&5
2452    mv -f conftest.er1 conftest.err
2453  fi
2454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455  test $ac_status = 0; } > conftest.i && {
2456	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2457	 test ! -s conftest.err
2458       }; then :
2459  ac_retval=0
2460else
2461  $as_echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464    ac_retval=1
2465fi
2466  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467  as_fn_set_status $ac_retval
2468
2469} # ac_fn_cxx_try_cpp
2470
2471# ac_fn_cxx_try_link LINENO
2472# -------------------------
2473# Try to link conftest.$ac_ext, and return whether this succeeded.
2474ac_fn_cxx_try_link ()
2475{
2476  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477  rm -f conftest.$ac_objext conftest$ac_exeext
2478  if { { ac_try="$ac_link"
2479case "(($ac_try" in
2480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481  *) ac_try_echo=$ac_try;;
2482esac
2483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484$as_echo "$ac_try_echo"; } >&5
2485  (eval "$ac_link") 2>conftest.err
2486  ac_status=$?
2487  if test -s conftest.err; then
2488    grep -v '^ *+' conftest.err >conftest.er1
2489    cat conftest.er1 >&5
2490    mv -f conftest.er1 conftest.err
2491  fi
2492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493  test $ac_status = 0; } && {
2494	 test -z "$ac_cxx_werror_flag" ||
2495	 test ! -s conftest.err
2496       } && test -s conftest$ac_exeext && {
2497	 test "$cross_compiling" = yes ||
2498	 test -x conftest$ac_exeext
2499       }; then :
2500  ac_retval=0
2501else
2502  $as_echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505	ac_retval=1
2506fi
2507  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2508  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2509  # interfere with the next link command; also delete a directory that is
2510  # left behind by Apple's compiler.  We do this before executing the actions.
2511  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2512  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513  as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_link
2516
2517# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2518# --------------------------------------------
2519# Tries to find the compile-time value of EXPR in a program that includes
2520# INCLUDES, setting VAR accordingly. Returns whether the value could be
2521# computed
2522ac_fn_c_compute_int ()
2523{
2524  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525  if test "$cross_compiling" = yes; then
2526    # Depending upon the size, compute the lo and hi bounds.
2527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h.  */
2529$4
2530int
2531main ()
2532{
2533static int test_array [1 - 2 * !(($2) >= 0)];
2534test_array [0] = 0;
2535return test_array [0];
2536
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541if ac_fn_c_try_compile "$LINENO"; then :
2542  ac_lo=0 ac_mid=0
2543  while :; do
2544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h.  */
2546$4
2547int
2548main ()
2549{
2550static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2551test_array [0] = 0;
2552return test_array [0];
2553
2554  ;
2555  return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559  ac_hi=$ac_mid; break
2560else
2561  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2562			if test $ac_lo -le $ac_mid; then
2563			  ac_lo= ac_hi=
2564			  break
2565			fi
2566			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569  done
2570else
2571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h.  */
2573$4
2574int
2575main ()
2576{
2577static int test_array [1 - 2 * !(($2) < 0)];
2578test_array [0] = 0;
2579return test_array [0];
2580
2581  ;
2582  return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586  ac_hi=-1 ac_mid=-1
2587  while :; do
2588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h.  */
2590$4
2591int
2592main ()
2593{
2594static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2595test_array [0] = 0;
2596return test_array [0];
2597
2598  ;
2599  return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603  ac_lo=$ac_mid; break
2604else
2605  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2606			if test $ac_mid -le $ac_hi; then
2607			  ac_lo= ac_hi=
2608			  break
2609			fi
2610			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2611fi
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613  done
2614else
2615  ac_lo= ac_hi=
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620# Binary search between lo and hi bounds.
2621while test "x$ac_lo" != "x$ac_hi"; do
2622  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h.  */
2625$4
2626int
2627main ()
2628{
2629static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2630test_array [0] = 0;
2631return test_array [0];
2632
2633  ;
2634  return 0;
2635}
2636_ACEOF
2637if ac_fn_c_try_compile "$LINENO"; then :
2638  ac_hi=$ac_mid
2639else
2640  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643done
2644case $ac_lo in #((
2645?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2646'') ac_retval=1 ;;
2647esac
2648  else
2649    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h.  */
2651$4
2652static long int longval () { return $2; }
2653static unsigned long int ulongval () { return $2; }
2654#include <stdio.h>
2655#include <stdlib.h>
2656int
2657main ()
2658{
2659
2660  FILE *f = fopen ("conftest.val", "w");
2661  if (! f)
2662    return 1;
2663  if (($2) < 0)
2664    {
2665      long int i = longval ();
2666      if (i != ($2))
2667	return 1;
2668      fprintf (f, "%ld", i);
2669    }
2670  else
2671    {
2672      unsigned long int i = ulongval ();
2673      if (i != ($2))
2674	return 1;
2675      fprintf (f, "%lu", i);
2676    }
2677  /* Do not output a trailing newline, as this causes \r\n confusion
2678     on some platforms.  */
2679  return ferror (f) || fclose (f) != 0;
2680
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685if ac_fn_c_try_run "$LINENO"; then :
2686  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2687else
2688  ac_retval=1
2689fi
2690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2691  conftest.$ac_objext conftest.beam conftest.$ac_ext
2692rm -f conftest.val
2693
2694  fi
2695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696  as_fn_set_status $ac_retval
2697
2698} # ac_fn_c_compute_int
2699
2700# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2701# ----------------------------------------------------
2702# Tries to find if the field MEMBER exists in type AGGR, after including
2703# INCLUDES, setting cache variable VAR accordingly.
2704ac_fn_c_check_member ()
2705{
2706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2708$as_echo_n "checking for $2.$3... " >&6; }
2709if eval \${$4+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713/* end confdefs.h.  */
2714$5
2715int
2716main ()
2717{
2718static $2 ac_aggr;
2719if (ac_aggr.$3)
2720return 0;
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725if ac_fn_c_try_compile "$LINENO"; then :
2726  eval "$4=yes"
2727else
2728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729/* end confdefs.h.  */
2730$5
2731int
2732main ()
2733{
2734static $2 ac_aggr;
2735if (sizeof ac_aggr.$3)
2736return 0;
2737  ;
2738  return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_compile "$LINENO"; then :
2742  eval "$4=yes"
2743else
2744  eval "$4=no"
2745fi
2746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749fi
2750eval ac_res=\$$4
2751	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2752$as_echo "$ac_res" >&6; }
2753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754
2755} # ac_fn_c_check_member
2756
2757# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2758# ---------------------------------------------
2759# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2760# accordingly.
2761ac_fn_c_check_decl ()
2762{
2763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2764  as_decl_name=`echo $2|sed 's/ *(.*//'`
2765  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2767$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2768if eval \${$3+:} false; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h.  */
2773$4
2774int
2775main ()
2776{
2777#ifndef $as_decl_name
2778#ifdef __cplusplus
2779  (void) $as_decl_use;
2780#else
2781  (void) $as_decl_name;
2782#endif
2783#endif
2784
2785  ;
2786  return 0;
2787}
2788_ACEOF
2789if ac_fn_c_try_compile "$LINENO"; then :
2790  eval "$3=yes"
2791else
2792  eval "$3=no"
2793fi
2794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795fi
2796eval ac_res=\$$3
2797	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2798$as_echo "$ac_res" >&6; }
2799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800
2801} # ac_fn_c_check_decl
2802cat >config.log <<_ACEOF
2803This file contains any messages produced by compilers while
2804running configure, to aid debugging if configure makes a mistake.
2805
2806It was created by cyrus-imapd $as_me 3.4.2, which was
2807generated by GNU Autoconf 2.69.  Invocation command line was
2808
2809  $ $0 $@
2810
2811_ACEOF
2812exec 5>>config.log
2813{
2814cat <<_ASUNAME
2815## --------- ##
2816## Platform. ##
2817## --------- ##
2818
2819hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2820uname -m = `(uname -m) 2>/dev/null || echo unknown`
2821uname -r = `(uname -r) 2>/dev/null || echo unknown`
2822uname -s = `(uname -s) 2>/dev/null || echo unknown`
2823uname -v = `(uname -v) 2>/dev/null || echo unknown`
2824
2825/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2826/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2827
2828/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2829/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2830/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2831/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2832/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2833/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2834/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2835
2836_ASUNAME
2837
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    $as_echo "PATH: $as_dir"
2844  done
2845IFS=$as_save_IFS
2846
2847} >&5
2848
2849cat >&5 <<_ACEOF
2850
2851
2852## ----------- ##
2853## Core tests. ##
2854## ----------- ##
2855
2856_ACEOF
2857
2858
2859# Keep a trace of the command line.
2860# Strip out --no-create and --no-recursion so they do not pile up.
2861# Strip out --silent because we don't want to record it for future runs.
2862# Also quote any args containing shell meta-characters.
2863# Make two passes to allow for proper duplicate-argument suppression.
2864ac_configure_args=
2865ac_configure_args0=
2866ac_configure_args1=
2867ac_must_keep_next=false
2868for ac_pass in 1 2
2869do
2870  for ac_arg
2871  do
2872    case $ac_arg in
2873    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2874    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2875    | -silent | --silent | --silen | --sile | --sil)
2876      continue ;;
2877    *\'*)
2878      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2879    esac
2880    case $ac_pass in
2881    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2882    2)
2883      as_fn_append ac_configure_args1 " '$ac_arg'"
2884      if test $ac_must_keep_next = true; then
2885	ac_must_keep_next=false # Got value, back to normal.
2886      else
2887	case $ac_arg in
2888	  *=* | --config-cache | -C | -disable-* | --disable-* \
2889	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2890	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2891	  | -with-* | --with-* | -without-* | --without-* | --x)
2892	    case "$ac_configure_args0 " in
2893	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2894	    esac
2895	    ;;
2896	  -* ) ac_must_keep_next=true ;;
2897	esac
2898      fi
2899      as_fn_append ac_configure_args " '$ac_arg'"
2900      ;;
2901    esac
2902  done
2903done
2904{ ac_configure_args0=; unset ac_configure_args0;}
2905{ ac_configure_args1=; unset ac_configure_args1;}
2906
2907# When interrupted or exit'd, cleanup temporary files, and complete
2908# config.log.  We remove comments because anyway the quotes in there
2909# would cause problems or look ugly.
2910# WARNING: Use '\'' to represent an apostrophe within the trap.
2911# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2912trap 'exit_status=$?
2913  # Save into config.log some information that might help in debugging.
2914  {
2915    echo
2916
2917    $as_echo "## ---------------- ##
2918## Cache variables. ##
2919## ---------------- ##"
2920    echo
2921    # The following way of writing the cache mishandles newlines in values,
2922(
2923  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2924    eval ac_val=\$$ac_var
2925    case $ac_val in #(
2926    *${as_nl}*)
2927      case $ac_var in #(
2928      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2929$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2930      esac
2931      case $ac_var in #(
2932      _ | IFS | as_nl) ;; #(
2933      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2934      *) { eval $ac_var=; unset $ac_var;} ;;
2935      esac ;;
2936    esac
2937  done
2938  (set) 2>&1 |
2939    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2940    *${as_nl}ac_space=\ *)
2941      sed -n \
2942	"s/'\''/'\''\\\\'\'''\''/g;
2943	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2944      ;; #(
2945    *)
2946      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2947      ;;
2948    esac |
2949    sort
2950)
2951    echo
2952
2953    $as_echo "## ----------------- ##
2954## Output variables. ##
2955## ----------------- ##"
2956    echo
2957    for ac_var in $ac_subst_vars
2958    do
2959      eval ac_val=\$$ac_var
2960      case $ac_val in
2961      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2962      esac
2963      $as_echo "$ac_var='\''$ac_val'\''"
2964    done | sort
2965    echo
2966
2967    if test -n "$ac_subst_files"; then
2968      $as_echo "## ------------------- ##
2969## File substitutions. ##
2970## ------------------- ##"
2971      echo
2972      for ac_var in $ac_subst_files
2973      do
2974	eval ac_val=\$$ac_var
2975	case $ac_val in
2976	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2977	esac
2978	$as_echo "$ac_var='\''$ac_val'\''"
2979      done | sort
2980      echo
2981    fi
2982
2983    if test -s confdefs.h; then
2984      $as_echo "## ----------- ##
2985## confdefs.h. ##
2986## ----------- ##"
2987      echo
2988      cat confdefs.h
2989      echo
2990    fi
2991    test "$ac_signal" != 0 &&
2992      $as_echo "$as_me: caught signal $ac_signal"
2993    $as_echo "$as_me: exit $exit_status"
2994  } >&5
2995  rm -f core *.core core.conftest.* &&
2996    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2997    exit $exit_status
2998' 0
2999for ac_signal in 1 2 13 15; do
3000  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3001done
3002ac_signal=0
3003
3004# confdefs.h avoids OS command line length limits that DEFS can exceed.
3005rm -f -r conftest* confdefs.h
3006
3007$as_echo "/* confdefs.h */" > confdefs.h
3008
3009# Predefined preprocessor variables.
3010
3011cat >>confdefs.h <<_ACEOF
3012#define PACKAGE_NAME "$PACKAGE_NAME"
3013_ACEOF
3014
3015cat >>confdefs.h <<_ACEOF
3016#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3017_ACEOF
3018
3019cat >>confdefs.h <<_ACEOF
3020#define PACKAGE_VERSION "$PACKAGE_VERSION"
3021_ACEOF
3022
3023cat >>confdefs.h <<_ACEOF
3024#define PACKAGE_STRING "$PACKAGE_STRING"
3025_ACEOF
3026
3027cat >>confdefs.h <<_ACEOF
3028#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3029_ACEOF
3030
3031cat >>confdefs.h <<_ACEOF
3032#define PACKAGE_URL "$PACKAGE_URL"
3033_ACEOF
3034
3035
3036# Let the site file select an alternate cache file if it wants to.
3037# Prefer an explicitly selected file to automatically selected ones.
3038ac_site_file1=NONE
3039ac_site_file2=NONE
3040if test -n "$CONFIG_SITE"; then
3041  # We do not want a PATH search for config.site.
3042  case $CONFIG_SITE in #((
3043    -*)  ac_site_file1=./$CONFIG_SITE;;
3044    */*) ac_site_file1=$CONFIG_SITE;;
3045    *)   ac_site_file1=./$CONFIG_SITE;;
3046  esac
3047elif test "x$prefix" != xNONE; then
3048  ac_site_file1=$prefix/share/config.site
3049  ac_site_file2=$prefix/etc/config.site
3050else
3051  ac_site_file1=$ac_default_prefix/share/config.site
3052  ac_site_file2=$ac_default_prefix/etc/config.site
3053fi
3054for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3055do
3056  test "x$ac_site_file" = xNONE && continue
3057  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3058    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3059$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3060    sed 's/^/| /' "$ac_site_file" >&5
3061    . "$ac_site_file" \
3062      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064as_fn_error $? "failed to load site script $ac_site_file
3065See \`config.log' for more details" "$LINENO" 5; }
3066  fi
3067done
3068
3069if test -r "$cache_file"; then
3070  # Some versions of bash will fail to source /dev/null (special files
3071  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3072  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3073    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3074$as_echo "$as_me: loading cache $cache_file" >&6;}
3075    case $cache_file in
3076      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3077      *)                      . "./$cache_file";;
3078    esac
3079  fi
3080else
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3082$as_echo "$as_me: creating cache $cache_file" >&6;}
3083  >$cache_file
3084fi
3085
3086# Check that the precious variables saved in the cache have kept the same
3087# value.
3088ac_cache_corrupted=false
3089for ac_var in $ac_precious_vars; do
3090  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3091  eval ac_new_set=\$ac_env_${ac_var}_set
3092  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3093  eval ac_new_val=\$ac_env_${ac_var}_value
3094  case $ac_old_set,$ac_new_set in
3095    set,)
3096      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3097$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3098      ac_cache_corrupted=: ;;
3099    ,set)
3100      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3101$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3102      ac_cache_corrupted=: ;;
3103    ,);;
3104    *)
3105      if test "x$ac_old_val" != "x$ac_new_val"; then
3106	# differences in whitespace do not lead to failure.
3107	ac_old_val_w=`echo x $ac_old_val`
3108	ac_new_val_w=`echo x $ac_new_val`
3109	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3110	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3111$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3112	  ac_cache_corrupted=:
3113	else
3114	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3115$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3116	  eval $ac_var=\$ac_old_val
3117	fi
3118	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3119$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3120	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3121$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3122      fi;;
3123  esac
3124  # Pass precious variables to config.status.
3125  if test "$ac_new_set" = set; then
3126    case $ac_new_val in
3127    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3128    *) ac_arg=$ac_var=$ac_new_val ;;
3129    esac
3130    case " $ac_configure_args " in
3131      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3132      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3133    esac
3134  fi
3135done
3136if $ac_cache_corrupted; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3140$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3141  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3142fi
3143## -------------------- ##
3144## Main body of script. ##
3145## -------------------- ##
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152
3153
3154
3155
3156ac_config_headers="$ac_config_headers config.h"
3157
3158
3159ac_aux_dir=
3160for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3161  if test -f "$ac_dir/install-sh"; then
3162    ac_aux_dir=$ac_dir
3163    ac_install_sh="$ac_aux_dir/install-sh -c"
3164    break
3165  elif test -f "$ac_dir/install.sh"; then
3166    ac_aux_dir=$ac_dir
3167    ac_install_sh="$ac_aux_dir/install.sh -c"
3168    break
3169  elif test -f "$ac_dir/shtool"; then
3170    ac_aux_dir=$ac_dir
3171    ac_install_sh="$ac_aux_dir/shtool install -c"
3172    break
3173  fi
3174done
3175if test -z "$ac_aux_dir"; then
3176  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3177fi
3178
3179# These three variables are undocumented and unsupported,
3180# and are intended to be withdrawn in a future Autoconf release.
3181# They can cause serious problems if a builder's source tree is in a directory
3182# whose full name contains unusual characters.
3183ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3184ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3185ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3186
3187
3188# Make sure we can run config.sub.
3189$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3190  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3191
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3193$as_echo_n "checking build system type... " >&6; }
3194if ${ac_cv_build+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197  ac_build_alias=$build_alias
3198test "x$ac_build_alias" = x &&
3199  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3200test "x$ac_build_alias" = x &&
3201  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3202ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3203  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3204
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3207$as_echo "$ac_cv_build" >&6; }
3208case $ac_cv_build in
3209*-*-*) ;;
3210*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3211esac
3212build=$ac_cv_build
3213ac_save_IFS=$IFS; IFS='-'
3214set x $ac_cv_build
3215shift
3216build_cpu=$1
3217build_vendor=$2
3218shift; shift
3219# Remember, the first character of IFS is used to create $*,
3220# except with old shells:
3221build_os=$*
3222IFS=$ac_save_IFS
3223case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3224
3225
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3227$as_echo_n "checking host system type... " >&6; }
3228if ${ac_cv_host+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  if test "x$host_alias" = x; then
3232  ac_cv_host=$ac_cv_build
3233else
3234  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3235    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3236fi
3237
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3240$as_echo "$ac_cv_host" >&6; }
3241case $ac_cv_host in
3242*-*-*) ;;
3243*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3244esac
3245host=$ac_cv_host
3246ac_save_IFS=$IFS; IFS='-'
3247set x $ac_cv_host
3248shift
3249host_cpu=$1
3250host_vendor=$2
3251shift; shift
3252# Remember, the first character of IFS is used to create $*,
3253# except with old shells:
3254host_os=$*
3255IFS=$ac_save_IFS
3256case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3257
3258
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3260$as_echo_n "checking target system type... " >&6; }
3261if ${ac_cv_target+:} false; then :
3262  $as_echo_n "(cached) " >&6
3263else
3264  if test "x$target_alias" = x; then
3265  ac_cv_target=$ac_cv_host
3266else
3267  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3268    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3269fi
3270
3271fi
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3273$as_echo "$ac_cv_target" >&6; }
3274case $ac_cv_target in
3275*-*-*) ;;
3276*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3277esac
3278target=$ac_cv_target
3279ac_save_IFS=$IFS; IFS='-'
3280set x $ac_cv_target
3281shift
3282target_cpu=$1
3283target_vendor=$2
3284shift; shift
3285# Remember, the first character of IFS is used to create $*,
3286# except with old shells:
3287target_os=$*
3288IFS=$ac_save_IFS
3289case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3290
3291
3292# The aliases save the names the user supplied, while $host etc.
3293# will get canonicalized.
3294test -n "$target_alias" &&
3295  test "$program_prefix$program_suffix$program_transform_name" = \
3296    NONENONEs,x,x, &&
3297  program_prefix=${target_alias}-
3298
3299
3300ENABLE_SHARED="$enable_shared"
3301
3302
3303ENABLE_STATIC="$enable_static"
3304
3305
3306CYRUS_IMAPD_SERIES=`echo 3.4.2 | cut -d- -f1 | cut -d. -f1-2`
3307CYRUS_IMAPD_REVISION=`echo 3.4.2 | cut -d- -f1 | cut -d. -f3`
3308CYRUS_IMAPD_PATCH=`echo 3.4.2 | cut -d- -f2-`
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3321	if test -n "$ac_tool_prefix"; then
3322  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3323set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
3326if ${ac_cv_path_PKG_CONFIG+:} false; then :
3327  $as_echo_n "(cached) " >&6
3328else
3329  case $PKG_CONFIG in
3330  [\\/]* | ?:[\\/]*)
3331  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3332  ;;
3333  *)
3334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  test -z "$as_dir" && as_dir=.
3339    for ac_exec_ext in '' $ac_executable_extensions; do
3340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343    break 2
3344  fi
3345done
3346  done
3347IFS=$as_save_IFS
3348
3349  ;;
3350esac
3351fi
3352PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3353if test -n "$PKG_CONFIG"; then
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3355$as_echo "$PKG_CONFIG" >&6; }
3356else
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
3359fi
3360
3361
3362fi
3363if test -z "$ac_cv_path_PKG_CONFIG"; then
3364  ac_pt_PKG_CONFIG=$PKG_CONFIG
3365  # Extract the first word of "pkg-config", so it can be a program name with args.
3366set dummy pkg-config; ac_word=$2
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368$as_echo_n "checking for $ac_word... " >&6; }
3369if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  case $ac_pt_PKG_CONFIG in
3373  [\\/]* | ?:[\\/]*)
3374  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3375  ;;
3376  *)
3377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  test -z "$as_dir" && as_dir=.
3382    for ac_exec_ext in '' $ac_executable_extensions; do
3383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386    break 2
3387  fi
3388done
3389  done
3390IFS=$as_save_IFS
3391
3392  ;;
3393esac
3394fi
3395ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3396if test -n "$ac_pt_PKG_CONFIG"; then
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3398$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3399else
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401$as_echo "no" >&6; }
3402fi
3403
3404  if test "x$ac_pt_PKG_CONFIG" = x; then
3405    PKG_CONFIG=""
3406  else
3407    case $cross_compiling:$ac_tool_warned in
3408yes:)
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411ac_tool_warned=yes ;;
3412esac
3413    PKG_CONFIG=$ac_pt_PKG_CONFIG
3414  fi
3415else
3416  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3417fi
3418
3419fi
3420if test -n "$PKG_CONFIG"; then
3421	_pkg_min_version=0.9.0
3422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3423$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3424	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426$as_echo "yes" >&6; }
3427	else
3428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429$as_echo "no" >&6; }
3430		PKG_CONFIG=""
3431	fi
3432fi
3433
3434am__api_version='1.16'
3435
3436# Find a good install program.  We prefer a C program (faster),
3437# so one script is as good as another.  But avoid the broken or
3438# incompatible versions:
3439# SysV /etc/install, /usr/sbin/install
3440# SunOS /usr/etc/install
3441# IRIX /sbin/install
3442# AIX /bin/install
3443# AmigaOS /C/install, which installs bootblocks on floppy discs
3444# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3445# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3446# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3447# OS/2's system install, which has a completely different semantic
3448# ./install, which can be erroneously created by make from ./install.sh.
3449# Reject install programs that cannot install multiple files.
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3451$as_echo_n "checking for a BSD-compatible install... " >&6; }
3452if test -z "$INSTALL"; then
3453if ${ac_cv_path_install+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459  IFS=$as_save_IFS
3460  test -z "$as_dir" && as_dir=.
3461    # Account for people who put trailing slashes in PATH elements.
3462case $as_dir/ in #((
3463  ./ | .// | /[cC]/* | \
3464  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3465  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3466  /usr/ucb/* ) ;;
3467  *)
3468    # OSF1 and SCO ODT 3.0 have their own names for install.
3469    # Don't use installbsd from OSF since it installs stuff as root
3470    # by default.
3471    for ac_prog in ginstall scoinst install; do
3472      for ac_exec_ext in '' $ac_executable_extensions; do
3473	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3474	  if test $ac_prog = install &&
3475	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3476	    # AIX install.  It has an incompatible calling convention.
3477	    :
3478	  elif test $ac_prog = install &&
3479	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3480	    # program-specific install script used by HP pwplus--don't use.
3481	    :
3482	  else
3483	    rm -rf conftest.one conftest.two conftest.dir
3484	    echo one > conftest.one
3485	    echo two > conftest.two
3486	    mkdir conftest.dir
3487	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3488	      test -s conftest.one && test -s conftest.two &&
3489	      test -s conftest.dir/conftest.one &&
3490	      test -s conftest.dir/conftest.two
3491	    then
3492	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3493	      break 3
3494	    fi
3495	  fi
3496	fi
3497      done
3498    done
3499    ;;
3500esac
3501
3502  done
3503IFS=$as_save_IFS
3504
3505rm -rf conftest.one conftest.two conftest.dir
3506
3507fi
3508  if test "${ac_cv_path_install+set}" = set; then
3509    INSTALL=$ac_cv_path_install
3510  else
3511    # As a last resort, use the slow shell script.  Don't cache a
3512    # value for INSTALL within a source directory, because that will
3513    # break other packages using the cache if that directory is
3514    # removed, or if the value is a relative name.
3515    INSTALL=$ac_install_sh
3516  fi
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3519$as_echo "$INSTALL" >&6; }
3520
3521# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3522# It thinks the first close brace ends the variable substitution.
3523test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3524
3525test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3526
3527test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3530$as_echo_n "checking whether build environment is sane... " >&6; }
3531# Reject unsafe characters in $srcdir or the absolute working directory
3532# name.  Accept space and tab only in the latter.
3533am_lf='
3534'
3535case `pwd` in
3536  *[\\\"\#\$\&\'\`$am_lf]*)
3537    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3538esac
3539case $srcdir in
3540  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3541    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3542esac
3543
3544# Do 'set' in a subshell so we don't clobber the current shell's
3545# arguments.  Must try -L first in case configure is actually a
3546# symlink; some systems play weird games with the mod time of symlinks
3547# (eg FreeBSD returns the mod time of the symlink's containing
3548# directory).
3549if (
3550   am_has_slept=no
3551   for am_try in 1 2; do
3552     echo "timestamp, slept: $am_has_slept" > conftest.file
3553     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3554     if test "$*" = "X"; then
3555	# -L didn't work.
3556	set X `ls -t "$srcdir/configure" conftest.file`
3557     fi
3558     if test "$*" != "X $srcdir/configure conftest.file" \
3559	&& test "$*" != "X conftest.file $srcdir/configure"; then
3560
3561	# If neither matched, then we have a broken ls.  This can happen
3562	# if, for instance, CONFIG_SHELL is bash and it inherits a
3563	# broken ls alias from the environment.  This has actually
3564	# happened.  Such a system could not be considered "sane".
3565	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3566  alias in your environment" "$LINENO" 5
3567     fi
3568     if test "$2" = conftest.file || test $am_try -eq 2; then
3569       break
3570     fi
3571     # Just in case.
3572     sleep 1
3573     am_has_slept=yes
3574   done
3575   test "$2" = conftest.file
3576   )
3577then
3578   # Ok.
3579   :
3580else
3581   as_fn_error $? "newly created file is older than distributed files!
3582Check your system clock" "$LINENO" 5
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585$as_echo "yes" >&6; }
3586# If we didn't sleep, we still need to ensure time stamps of config.status and
3587# generated files are strictly newer.
3588am_sleep_pid=
3589if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3590  ( sleep 1 ) &
3591  am_sleep_pid=$!
3592fi
3593
3594rm -f conftest.file
3595
3596test "$program_prefix" != NONE &&
3597  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3598# Use a double $ so make ignores it.
3599test "$program_suffix" != NONE &&
3600  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3601# Double any \ or $.
3602# By default was `s,x,x', remove it if useless.
3603ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3604program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3605
3606# Expand $ac_aux_dir to an absolute path.
3607am_aux_dir=`cd "$ac_aux_dir" && pwd`
3608
3609if test x"${MISSING+set}" != xset; then
3610  case $am_aux_dir in
3611  *\ * | *\	*)
3612    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3613  *)
3614    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3615  esac
3616fi
3617# Use eval to expand $SHELL
3618if eval "$MISSING --is-lightweight"; then
3619  am_missing_run="$MISSING "
3620else
3621  am_missing_run=
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3623$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3624fi
3625
3626if test x"${install_sh+set}" != xset; then
3627  case $am_aux_dir in
3628  *\ * | *\	*)
3629    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3630  *)
3631    install_sh="\${SHELL} $am_aux_dir/install-sh"
3632  esac
3633fi
3634
3635# Installed binaries are usually stripped using 'strip' when the user
3636# run "make install-strip".  However 'strip' might not be the right
3637# tool to use in cross-compilation environments, therefore Automake
3638# will honor the 'STRIP' environment variable to overrule this program.
3639if test "$cross_compiling" != no; then
3640  if test -n "$ac_tool_prefix"; then
3641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3642set dummy ${ac_tool_prefix}strip; ac_word=$2
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644$as_echo_n "checking for $ac_word... " >&6; }
3645if ${ac_cv_prog_STRIP+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  if test -n "$STRIP"; then
3649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  test -z "$as_dir" && as_dir=.
3656    for ac_exec_ext in '' $ac_executable_extensions; do
3657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660    break 2
3661  fi
3662done
3663  done
3664IFS=$as_save_IFS
3665
3666fi
3667fi
3668STRIP=$ac_cv_prog_STRIP
3669if test -n "$STRIP"; then
3670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3671$as_echo "$STRIP" >&6; }
3672else
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678fi
3679if test -z "$ac_cv_prog_STRIP"; then
3680  ac_ct_STRIP=$STRIP
3681  # Extract the first word of "strip", so it can be a program name with args.
3682set dummy strip; ac_word=$2
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684$as_echo_n "checking for $ac_word... " >&6; }
3685if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  if test -n "$ac_ct_STRIP"; then
3689  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694  IFS=$as_save_IFS
3695  test -z "$as_dir" && as_dir=.
3696    for ac_exec_ext in '' $ac_executable_extensions; do
3697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698    ac_cv_prog_ac_ct_STRIP="strip"
3699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700    break 2
3701  fi
3702done
3703  done
3704IFS=$as_save_IFS
3705
3706fi
3707fi
3708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3709if test -n "$ac_ct_STRIP"; then
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3711$as_echo "$ac_ct_STRIP" >&6; }
3712else
3713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714$as_echo "no" >&6; }
3715fi
3716
3717  if test "x$ac_ct_STRIP" = x; then
3718    STRIP=":"
3719  else
3720    case $cross_compiling:$ac_tool_warned in
3721yes:)
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724ac_tool_warned=yes ;;
3725esac
3726    STRIP=$ac_ct_STRIP
3727  fi
3728else
3729  STRIP="$ac_cv_prog_STRIP"
3730fi
3731
3732fi
3733INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3734
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3736$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3737if test -z "$MKDIR_P"; then
3738  if ${ac_cv_path_mkdir+:} false; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3743do
3744  IFS=$as_save_IFS
3745  test -z "$as_dir" && as_dir=.
3746    for ac_prog in mkdir gmkdir; do
3747	 for ac_exec_ext in '' $ac_executable_extensions; do
3748	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3749	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3750	     'mkdir (GNU coreutils) '* | \
3751	     'mkdir (coreutils) '* | \
3752	     'mkdir (fileutils) '4.1*)
3753	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3754	       break 3;;
3755	   esac
3756	 done
3757       done
3758  done
3759IFS=$as_save_IFS
3760
3761fi
3762
3763  test -d ./--version && rmdir ./--version
3764  if test "${ac_cv_path_mkdir+set}" = set; then
3765    MKDIR_P="$ac_cv_path_mkdir -p"
3766  else
3767    # As a last resort, use the slow shell script.  Don't cache a
3768    # value for MKDIR_P within a source directory, because that will
3769    # break other packages using the cache if that directory is
3770    # removed, or if the value is a relative name.
3771    MKDIR_P="$ac_install_sh -d"
3772  fi
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3775$as_echo "$MKDIR_P" >&6; }
3776
3777for ac_prog in gawk mawk nawk awk
3778do
3779  # Extract the first word of "$ac_prog", so it can be a program name with args.
3780set dummy $ac_prog; ac_word=$2
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782$as_echo_n "checking for $ac_word... " >&6; }
3783if ${ac_cv_prog_AWK+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  if test -n "$AWK"; then
3787  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3788else
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792  IFS=$as_save_IFS
3793  test -z "$as_dir" && as_dir=.
3794    for ac_exec_ext in '' $ac_executable_extensions; do
3795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796    ac_cv_prog_AWK="$ac_prog"
3797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798    break 2
3799  fi
3800done
3801  done
3802IFS=$as_save_IFS
3803
3804fi
3805fi
3806AWK=$ac_cv_prog_AWK
3807if test -n "$AWK"; then
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3809$as_echo "$AWK" >&6; }
3810else
3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812$as_echo "no" >&6; }
3813fi
3814
3815
3816  test -n "$AWK" && break
3817done
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3820$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3821set x ${MAKE-make}
3822ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3823if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3824  $as_echo_n "(cached) " >&6
3825else
3826  cat >conftest.make <<\_ACEOF
3827SHELL = /bin/sh
3828all:
3829	@echo '@@@%%%=$(MAKE)=@@@%%%'
3830_ACEOF
3831# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3832case `${MAKE-make} -f conftest.make 2>/dev/null` in
3833  *@@@%%%=?*=@@@%%%*)
3834    eval ac_cv_prog_make_${ac_make}_set=yes;;
3835  *)
3836    eval ac_cv_prog_make_${ac_make}_set=no;;
3837esac
3838rm -f conftest.make
3839fi
3840if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3842$as_echo "yes" >&6; }
3843  SET_MAKE=
3844else
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847  SET_MAKE="MAKE=${MAKE-make}"
3848fi
3849
3850rm -rf .tst 2>/dev/null
3851mkdir .tst 2>/dev/null
3852if test -d .tst; then
3853  am__leading_dot=.
3854else
3855  am__leading_dot=_
3856fi
3857rmdir .tst 2>/dev/null
3858
3859# Check whether --enable-silent-rules was given.
3860if test "${enable_silent_rules+set}" = set; then :
3861  enableval=$enable_silent_rules;
3862fi
3863
3864case $enable_silent_rules in # (((
3865  yes) AM_DEFAULT_VERBOSITY=0;;
3866   no) AM_DEFAULT_VERBOSITY=1;;
3867    *) AM_DEFAULT_VERBOSITY=1;;
3868esac
3869am_make=${MAKE-make}
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3871$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3872if ${am_cv_make_support_nested_variables+:} false; then :
3873  $as_echo_n "(cached) " >&6
3874else
3875  if $as_echo 'TRUE=$(BAR$(V))
3876BAR0=false
3877BAR1=true
3878V=1
3879am__doit:
3880	@$(TRUE)
3881.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3882  am_cv_make_support_nested_variables=yes
3883else
3884  am_cv_make_support_nested_variables=no
3885fi
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3888$as_echo "$am_cv_make_support_nested_variables" >&6; }
3889if test $am_cv_make_support_nested_variables = yes; then
3890    AM_V='$(V)'
3891  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3892else
3893  AM_V=$AM_DEFAULT_VERBOSITY
3894  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3895fi
3896AM_BACKSLASH='\'
3897
3898if test "`cd $srcdir && pwd`" != "`pwd`"; then
3899  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3900  # is not polluted with repeated "-I."
3901  am__isrc=' -I$(srcdir)'
3902  # test to see if srcdir already configured
3903  if test -f $srcdir/config.status; then
3904    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3905  fi
3906fi
3907
3908# test whether we have cygpath
3909if test -z "$CYGPATH_W"; then
3910  if (cygpath --version) >/dev/null 2>/dev/null; then
3911    CYGPATH_W='cygpath -w'
3912  else
3913    CYGPATH_W=echo
3914  fi
3915fi
3916
3917
3918# Define the identity of the package.
3919 PACKAGE='cyrus-imapd'
3920 VERSION='3.4.2'
3921
3922
3923cat >>confdefs.h <<_ACEOF
3924#define PACKAGE "$PACKAGE"
3925_ACEOF
3926
3927
3928cat >>confdefs.h <<_ACEOF
3929#define VERSION "$VERSION"
3930_ACEOF
3931
3932# Some tools Automake needs.
3933
3934ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3935
3936
3937AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3938
3939
3940AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3941
3942
3943AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3944
3945
3946MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3947
3948# For better backward compatibility.  To be removed once Automake 1.9.x
3949# dies out for good.  For more background, see:
3950# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3951# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3952mkdir_p='$(MKDIR_P)'
3953
3954# We need awk for the "check" target (and possibly the TAP driver).  The
3955# system "awk" is bad on some platforms.
3956# Always define AMTAR for backward compatibility.  Yes, it's still used
3957# in the wild :-(  We should find a proper way to deprecate it ...
3958AMTAR='$${TAR-tar}'
3959
3960
3961# We'll loop over all known methods to create a tar archive until one works.
3962_am_tools='gnutar plaintar pax cpio none'
3963
3964# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3965      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3966      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3967      # and bug#13588).
3968      am_max_uid=2097151 # 2^21 - 1
3969      am_max_gid=$am_max_uid
3970      # The $UID and $GID variables are not portable, so we need to resort
3971      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3972      # below are definitely unexpected, so allow the users to see them
3973      # (that is, avoid stderr redirection).
3974      am_uid=`id -u || echo unknown`
3975      am_gid=`id -g || echo unknown`
3976      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3977$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3978      if test $am_uid -le $am_max_uid; then
3979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980$as_echo "yes" >&6; }
3981      else
3982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
3984         _am_tools=none
3985      fi
3986      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3987$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3988      if test $am_gid -le $am_max_gid; then
3989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990$as_echo "yes" >&6; }
3991      else
3992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994        _am_tools=none
3995      fi
3996
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3998$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3999
4000  # Go ahead even if we have the value already cached.  We do so because we
4001  # need to set the values for the 'am__tar' and 'am__untar' variables.
4002  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4003
4004  for _am_tool in $_am_tools; do
4005    case $_am_tool in
4006    gnutar)
4007      for _am_tar in tar gnutar gtar; do
4008        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4009   ($_am_tar --version) >&5 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } && break
4013      done
4014      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4015      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4016      am__untar="$_am_tar -xf -"
4017      ;;
4018    plaintar)
4019      # Must skip GNU tar: if it does not support --format= it doesn't create
4020      # ustar tarball either.
4021      (tar --version) >/dev/null 2>&1 && continue
4022      am__tar='tar chf - "$$tardir"'
4023      am__tar_='tar chf - "$tardir"'
4024      am__untar='tar xf -'
4025      ;;
4026    pax)
4027      am__tar='pax -L -x ustar -w "$$tardir"'
4028      am__tar_='pax -L -x ustar -w "$tardir"'
4029      am__untar='pax -r'
4030      ;;
4031    cpio)
4032      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4033      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4034      am__untar='cpio -i -H ustar -d'
4035      ;;
4036    none)
4037      am__tar=false
4038      am__tar_=false
4039      am__untar=false
4040      ;;
4041    esac
4042
4043    # If the value was cached, stop now.  We just wanted to have am__tar
4044    # and am__untar set.
4045    test -n "${am_cv_prog_tar_ustar}" && break
4046
4047    # tar/untar a dummy directory, and stop if the command works.
4048    rm -rf conftest.dir
4049    mkdir conftest.dir
4050    echo GrepMe > conftest.dir/file
4051    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4052   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); }
4056    rm -rf conftest.dir
4057    if test -s conftest.tar; then
4058      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4059   ($am__untar <conftest.tar) >&5 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }
4063      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4064   (cat conftest.dir/file) >&5 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }
4068      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4069    fi
4070  done
4071  rm -rf conftest.dir
4072
4073  if ${am_cv_prog_tar_ustar+:} false; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  am_cv_prog_tar_ustar=$_am_tool
4077fi
4078
4079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4080$as_echo "$am_cv_prog_tar_ustar" >&6; }
4081
4082
4083
4084
4085
4086
4087# POSIX will say in a future version that running "rm -f" with no argument
4088# is OK; and we want to be able to make that assumption in our Makefile
4089# recipes.  So use an aggressive probe to check that the usage we want is
4090# actually supported "in the wild" to an acceptable degree.
4091# See automake bug#10828.
4092# To make any issue more visible, cause the running configure to be aborted
4093# by default if the 'rm' program in use doesn't match our expectations; the
4094# user can still override this though.
4095if rm -f && rm -fr && rm -rf; then : OK; else
4096  cat >&2 <<'END'
4097Oops!
4098
4099Your 'rm' program seems unable to run without file operands specified
4100on the command line, even when the '-f' option is present.  This is contrary
4101to the behaviour of most rm programs out there, and not conforming with
4102the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4103
4104Please tell bug-automake@gnu.org about your system, including the value
4105of your $PATH and any error possibly output before this message.  This
4106can help us improve future automake versions.
4107
4108END
4109  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4110    echo 'Configuration will proceed anyway, since you have set the' >&2
4111    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4112    echo >&2
4113  else
4114    cat >&2 <<'END'
4115Aborting the configuration process, to ensure you take notice of the issue.
4116
4117You can download and install GNU coreutils to get an 'rm' implementation
4118that behaves properly: <https://www.gnu.org/software/coreutils/>.
4119
4120If you want to complete the configuration process using your problematic
4121'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4122to "yes", and re-run configure.
4123
4124END
4125    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4126  fi
4127fi
4128
4129
4130
4131
4132# Check whether --with-extraident was given.
4133if test "${with_extraident+set}" = set; then :
4134  withval=$with_extraident;
4135cat >>confdefs.h <<_ACEOF
4136#define EXTRA_IDENT "$withval"
4137_ACEOF
4138
4139fi
4140
4141
4142
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4144$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4145    # Check whether --enable-maintainer-mode was given.
4146if test "${enable_maintainer_mode+set}" = set; then :
4147  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4148else
4149  USE_MAINTAINER_MODE=no
4150fi
4151
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4153$as_echo "$USE_MAINTAINER_MODE" >&6; }
4154   if test $USE_MAINTAINER_MODE = yes; then
4155  MAINTAINER_MODE_TRUE=
4156  MAINTAINER_MODE_FALSE='#'
4157else
4158  MAINTAINER_MODE_TRUE='#'
4159  MAINTAINER_MODE_FALSE=
4160fi
4161
4162  MAINT=$MAINTAINER_MODE_TRUE
4163
4164
4165
4166GCOV_CFLAGS=
4167GCOV_CXXFLAGS=
4168GCOV_LDFLAGS=
4169GCOV_LIBS=
4170
4171# Check whether --enable-coverage was given.
4172if test "${enable_coverage+set}" = set; then :
4173  enableval=$enable_coverage;
4174fi
4175
4176
4177if test "x$enable_coverage" = "xyes"; then :
4178
4179    GCOV_CFLAGS="--coverage"
4180    GCOV_CXXFLAGS="--coverage"
4181    GCOV_LDFLAGS="--coverage"
4182    GCOV_LIBS="-lgcov"
4183
4184fi
4185 if test "x$enable_coverage" = "xyes"; then
4186  HAVE_COVERAGE_TRUE=
4187  HAVE_COVERAGE_FALSE='#'
4188else
4189  HAVE_COVERAGE_TRUE='#'
4190  HAVE_COVERAGE_FALSE=
4191fi
4192
4193
4194
4195
4196
4197
4198
4199
4200# Check whether --with-login was given.
4201if test "${with_login+set}" = set; then :
4202  withval=$with_login; as_fn_error $? "--with-login is no longer supported.
4203Configure SASL appropriately instead." "$LINENO" 5
4204fi
4205
4206
4207
4208# Check whether --with-cyrus-user was given.
4209if test "${with_cyrus_user+set}" = set; then :
4210  withval=$with_cyrus_user; cyrus_user="$withval"
4211else
4212  cyrus_user="cyrus"
4213fi
4214
4215
4216
4217cat >>confdefs.h <<_ACEOF
4218#define CYRUS_USER "$cyrus_user"
4219_ACEOF
4220
4221
4222if test $sysconfdir = '${prefix}/etc'; then
4223  sysconfdir="/etc"
4224fi
4225
4226ac_ext=cpp
4227ac_cpp='$CXXCPP $CPPFLAGS'
4228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4231if test -z "$CXX"; then
4232  if test -n "$CCC"; then
4233    CXX=$CCC
4234  else
4235    if test -n "$ac_tool_prefix"; then
4236  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4237  do
4238    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241$as_echo_n "checking for $ac_word... " >&6; }
4242if ${ac_cv_prog_CXX+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if test -n "$CXX"; then
4246  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4247else
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251  IFS=$as_save_IFS
4252  test -z "$as_dir" && as_dir=.
4253    for ac_exec_ext in '' $ac_executable_extensions; do
4254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257    break 2
4258  fi
4259done
4260  done
4261IFS=$as_save_IFS
4262
4263fi
4264fi
4265CXX=$ac_cv_prog_CXX
4266if test -n "$CXX"; then
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4268$as_echo "$CXX" >&6; }
4269else
4270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }
4272fi
4273
4274
4275    test -n "$CXX" && break
4276  done
4277fi
4278if test -z "$CXX"; then
4279  ac_ct_CXX=$CXX
4280  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4281do
4282  # Extract the first word of "$ac_prog", so it can be a program name with args.
4283set dummy $ac_prog; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  if test -n "$ac_ct_CXX"; then
4290  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295  IFS=$as_save_IFS
4296  test -z "$as_dir" && as_dir=.
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299    ac_cv_prog_ac_ct_CXX="$ac_prog"
4300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301    break 2
4302  fi
4303done
4304  done
4305IFS=$as_save_IFS
4306
4307fi
4308fi
4309ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4310if test -n "$ac_ct_CXX"; then
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4312$as_echo "$ac_ct_CXX" >&6; }
4313else
4314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318
4319  test -n "$ac_ct_CXX" && break
4320done
4321
4322  if test "x$ac_ct_CXX" = x; then
4323    CXX="g++"
4324  else
4325    case $cross_compiling:$ac_tool_warned in
4326yes:)
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329ac_tool_warned=yes ;;
4330esac
4331    CXX=$ac_ct_CXX
4332  fi
4333fi
4334
4335  fi
4336fi
4337# Provide some information about the compiler.
4338$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4339set X $ac_compile
4340ac_compiler=$2
4341for ac_option in --version -v -V -qversion; do
4342  { { ac_try="$ac_compiler $ac_option >&5"
4343case "(($ac_try" in
4344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345  *) ac_try_echo=$ac_try;;
4346esac
4347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348$as_echo "$ac_try_echo"; } >&5
4349  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4350  ac_status=$?
4351  if test -s conftest.err; then
4352    sed '10a\
4353... rest of stderr output deleted ...
4354         10q' conftest.err >conftest.er1
4355    cat conftest.er1 >&5
4356  fi
4357  rm -f conftest.er1 conftest.err
4358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4359  test $ac_status = 0; }
4360done
4361
4362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364
4365int
4366main ()
4367{
4368
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373ac_clean_files_save=$ac_clean_files
4374ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4375# Try to create an executable without -o first, disregard a.out.
4376# It will help us diagnose broken compilers, and finding out an intuition
4377# of exeext.
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4379$as_echo_n "checking whether the C++ compiler works... " >&6; }
4380ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4381
4382# The possible output files:
4383ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4384
4385ac_rmfiles=
4386for ac_file in $ac_files
4387do
4388  case $ac_file in
4389    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4390    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4391  esac
4392done
4393rm -f $ac_rmfiles
4394
4395if { { ac_try="$ac_link_default"
4396case "(($ac_try" in
4397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398  *) ac_try_echo=$ac_try;;
4399esac
4400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401$as_echo "$ac_try_echo"; } >&5
4402  (eval "$ac_link_default") 2>&5
4403  ac_status=$?
4404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405  test $ac_status = 0; }; then :
4406  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4407# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4408# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4409# so that the user can short-circuit this test for compilers unknown to
4410# Autoconf.
4411for ac_file in $ac_files ''
4412do
4413  test -f "$ac_file" || continue
4414  case $ac_file in
4415    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4416	;;
4417    [ab].out )
4418	# We found the default executable, but exeext='' is most
4419	# certainly right.
4420	break;;
4421    *.* )
4422	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4423	then :; else
4424	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4425	fi
4426	# We set ac_cv_exeext here because the later test for it is not
4427	# safe: cross compilers may not add the suffix if given an `-o'
4428	# argument, so we may need to know it at that point already.
4429	# Even if this section looks crufty: it has the advantage of
4430	# actually working.
4431	break;;
4432    * )
4433	break;;
4434  esac
4435done
4436test "$ac_cv_exeext" = no && ac_cv_exeext=
4437
4438else
4439  ac_file=''
4440fi
4441if test -z "$ac_file"; then :
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443$as_echo "no" >&6; }
4444$as_echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4449as_fn_error 77 "C++ compiler cannot create executables
4450See \`config.log' for more details" "$LINENO" 5; }
4451else
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453$as_echo "yes" >&6; }
4454fi
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4456$as_echo_n "checking for C++ compiler default output file name... " >&6; }
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4458$as_echo "$ac_file" >&6; }
4459ac_exeext=$ac_cv_exeext
4460
4461rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4462ac_clean_files=$ac_clean_files_save
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4464$as_echo_n "checking for suffix of executables... " >&6; }
4465if { { ac_try="$ac_link"
4466case "(($ac_try" in
4467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468  *) ac_try_echo=$ac_try;;
4469esac
4470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471$as_echo "$ac_try_echo"; } >&5
4472  (eval "$ac_link") 2>&5
4473  ac_status=$?
4474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475  test $ac_status = 0; }; then :
4476  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4477# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4478# work properly (i.e., refer to `conftest.exe'), while it won't with
4479# `rm'.
4480for ac_file in conftest.exe conftest conftest.*; do
4481  test -f "$ac_file" || continue
4482  case $ac_file in
4483    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4484    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4485	  break;;
4486    * ) break;;
4487  esac
4488done
4489else
4490  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4492as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4493See \`config.log' for more details" "$LINENO" 5; }
4494fi
4495rm -f conftest conftest$ac_cv_exeext
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4497$as_echo "$ac_cv_exeext" >&6; }
4498
4499rm -f conftest.$ac_ext
4500EXEEXT=$ac_cv_exeext
4501ac_exeext=$EXEEXT
4502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504#include <stdio.h>
4505int
4506main ()
4507{
4508FILE *f = fopen ("conftest.out", "w");
4509 return ferror (f) || fclose (f) != 0;
4510
4511  ;
4512  return 0;
4513}
4514_ACEOF
4515ac_clean_files="$ac_clean_files conftest.out"
4516# Check that the compiler produces executables we can run.  If not, either
4517# the compiler is broken, or we cross compile.
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4519$as_echo_n "checking whether we are cross compiling... " >&6; }
4520if test "$cross_compiling" != yes; then
4521  { { ac_try="$ac_link"
4522case "(($ac_try" in
4523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524  *) ac_try_echo=$ac_try;;
4525esac
4526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527$as_echo "$ac_try_echo"; } >&5
4528  (eval "$ac_link") 2>&5
4529  ac_status=$?
4530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531  test $ac_status = 0; }
4532  if { ac_try='./conftest$ac_cv_exeext'
4533  { { case "(($ac_try" in
4534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535  *) ac_try_echo=$ac_try;;
4536esac
4537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538$as_echo "$ac_try_echo"; } >&5
4539  (eval "$ac_try") 2>&5
4540  ac_status=$?
4541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542  test $ac_status = 0; }; }; then
4543    cross_compiling=no
4544  else
4545    if test "$cross_compiling" = maybe; then
4546	cross_compiling=yes
4547    else
4548	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550as_fn_error $? "cannot run C++ compiled programs.
4551If you meant to cross compile, use \`--host'.
4552See \`config.log' for more details" "$LINENO" 5; }
4553    fi
4554  fi
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4557$as_echo "$cross_compiling" >&6; }
4558
4559rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4560ac_clean_files=$ac_clean_files_save
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4562$as_echo_n "checking for suffix of object files... " >&6; }
4563if ${ac_cv_objext+:} false; then :
4564  $as_echo_n "(cached) " >&6
4565else
4566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h.  */
4568
4569int
4570main ()
4571{
4572
4573  ;
4574  return 0;
4575}
4576_ACEOF
4577rm -f conftest.o conftest.obj
4578if { { ac_try="$ac_compile"
4579case "(($ac_try" in
4580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581  *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585  (eval "$ac_compile") 2>&5
4586  ac_status=$?
4587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588  test $ac_status = 0; }; then :
4589  for ac_file in conftest.o conftest.obj conftest.*; do
4590  test -f "$ac_file" || continue;
4591  case $ac_file in
4592    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4593    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4594       break;;
4595  esac
4596done
4597else
4598  $as_echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
4600
4601{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603as_fn_error $? "cannot compute suffix of object files: cannot compile
4604See \`config.log' for more details" "$LINENO" 5; }
4605fi
4606rm -f conftest.$ac_cv_objext conftest.$ac_ext
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4609$as_echo "$ac_cv_objext" >&6; }
4610OBJEXT=$ac_cv_objext
4611ac_objext=$OBJEXT
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4613$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4614if ${ac_cv_cxx_compiler_gnu+:} false; then :
4615  $as_echo_n "(cached) " >&6
4616else
4617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h.  */
4619
4620int
4621main ()
4622{
4623#ifndef __GNUC__
4624       choke me
4625#endif
4626
4627  ;
4628  return 0;
4629}
4630_ACEOF
4631if ac_fn_cxx_try_compile "$LINENO"; then :
4632  ac_compiler_gnu=yes
4633else
4634  ac_compiler_gnu=no
4635fi
4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4638
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4641$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4642if test $ac_compiler_gnu = yes; then
4643  GXX=yes
4644else
4645  GXX=
4646fi
4647ac_test_CXXFLAGS=${CXXFLAGS+set}
4648ac_save_CXXFLAGS=$CXXFLAGS
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4650$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4651if ${ac_cv_prog_cxx_g+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4655   ac_cxx_werror_flag=yes
4656   ac_cv_prog_cxx_g=no
4657   CXXFLAGS="-g"
4658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h.  */
4660
4661int
4662main ()
4663{
4664
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669if ac_fn_cxx_try_compile "$LINENO"; then :
4670  ac_cv_prog_cxx_g=yes
4671else
4672  CXXFLAGS=""
4673      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h.  */
4675
4676int
4677main ()
4678{
4679
4680  ;
4681  return 0;
4682}
4683_ACEOF
4684if ac_fn_cxx_try_compile "$LINENO"; then :
4685
4686else
4687  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4688	 CXXFLAGS="-g"
4689	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h.  */
4691
4692int
4693main ()
4694{
4695
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700if ac_fn_cxx_try_compile "$LINENO"; then :
4701  ac_cv_prog_cxx_g=yes
4702fi
4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706fi
4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4711$as_echo "$ac_cv_prog_cxx_g" >&6; }
4712if test "$ac_test_CXXFLAGS" = set; then
4713  CXXFLAGS=$ac_save_CXXFLAGS
4714elif test $ac_cv_prog_cxx_g = yes; then
4715  if test "$GXX" = yes; then
4716    CXXFLAGS="-g -O2"
4717  else
4718    CXXFLAGS="-g"
4719  fi
4720else
4721  if test "$GXX" = yes; then
4722    CXXFLAGS="-O2"
4723  else
4724    CXXFLAGS=
4725  fi
4726fi
4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732DEPDIR="${am__leading_dot}deps"
4733
4734ac_config_commands="$ac_config_commands depfiles"
4735
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4737$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4738cat > confinc.mk << 'END'
4739am__doit:
4740	@echo this is the am__doit target >confinc.out
4741.PHONY: am__doit
4742END
4743am__include="#"
4744am__quote=
4745# BSD make does it like this.
4746echo '.include "confinc.mk" # ignored' > confmf.BSD
4747# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4748echo 'include confinc.mk # ignored' > confmf.GNU
4749_am_result=no
4750for s in GNU BSD; do
4751  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4752   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }
4756  case $?:`cat confinc.out 2>/dev/null` in #(
4757  '0:this is the am__doit target') :
4758    case $s in #(
4759  BSD) :
4760    am__include='.include' am__quote='"' ;; #(
4761  *) :
4762    am__include='include' am__quote='' ;;
4763esac ;; #(
4764  *) :
4765     ;;
4766esac
4767  if test "$am__include" != "#"; then
4768    _am_result="yes ($s style)"
4769    break
4770  fi
4771done
4772rm -f confinc.* confmf.*
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4774$as_echo "${_am_result}" >&6; }
4775
4776# Check whether --enable-dependency-tracking was given.
4777if test "${enable_dependency_tracking+set}" = set; then :
4778  enableval=$enable_dependency_tracking;
4779fi
4780
4781if test "x$enable_dependency_tracking" != xno; then
4782  am_depcomp="$ac_aux_dir/depcomp"
4783  AMDEPBACKSLASH='\'
4784  am__nodep='_no'
4785fi
4786 if test "x$enable_dependency_tracking" != xno; then
4787  AMDEP_TRUE=
4788  AMDEP_FALSE='#'
4789else
4790  AMDEP_TRUE='#'
4791  AMDEP_FALSE=
4792fi
4793
4794
4795
4796depcc="$CXX"  am_compiler_list=
4797
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4799$as_echo_n "checking dependency style of $depcc... " >&6; }
4800if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4804  # We make a subdir and do the tests there.  Otherwise we can end up
4805  # making bogus files that we don't know about and never remove.  For
4806  # instance it was reported that on HP-UX the gcc test will end up
4807  # making a dummy file named 'D' -- because '-MD' means "put the output
4808  # in D".
4809  rm -rf conftest.dir
4810  mkdir conftest.dir
4811  # Copy depcomp to subdir because otherwise we won't find it if we're
4812  # using a relative directory.
4813  cp "$am_depcomp" conftest.dir
4814  cd conftest.dir
4815  # We will build objects and dependencies in a subdirectory because
4816  # it helps to detect inapplicable dependency modes.  For instance
4817  # both Tru64's cc and ICC support -MD to output dependencies as a
4818  # side effect of compilation, but ICC will put the dependencies in
4819  # the current directory while Tru64 will put them in the object
4820  # directory.
4821  mkdir sub
4822
4823  am_cv_CXX_dependencies_compiler_type=none
4824  if test "$am_compiler_list" = ""; then
4825     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826  fi
4827  am__universal=false
4828  case " $depcc " in #(
4829     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4830     esac
4831
4832  for depmode in $am_compiler_list; do
4833    # Setup a source with many dependencies, because some compilers
4834    # like to wrap large dependency lists on column 80 (with \), and
4835    # we should not choose a depcomp mode which is confused by this.
4836    #
4837    # We need to recreate these files for each test, as the compiler may
4838    # overwrite some of them when testing with obscure command lines.
4839    # This happens at least with the AIX C compiler.
4840    : > sub/conftest.c
4841    for i in 1 2 3 4 5 6; do
4842      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4844      # Solaris 10 /bin/sh.
4845      echo '/* dummy */' > sub/conftst$i.h
4846    done
4847    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4848
4849    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4850    # mode.  It turns out that the SunPro C++ compiler does not properly
4851    # handle '-M -o', and we need to detect this.  Also, some Intel
4852    # versions had trouble with output in subdirs.
4853    am__obj=sub/conftest.${OBJEXT-o}
4854    am__minus_obj="-o $am__obj"
4855    case $depmode in
4856    gcc)
4857      # This depmode causes a compiler race in universal mode.
4858      test "$am__universal" = false || continue
4859      ;;
4860    nosideeffect)
4861      # After this tag, mechanisms are not by side-effect, so they'll
4862      # only be used when explicitly requested.
4863      if test "x$enable_dependency_tracking" = xyes; then
4864	continue
4865      else
4866	break
4867      fi
4868      ;;
4869    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4870      # This compiler won't grok '-c -o', but also, the minuso test has
4871      # not run yet.  These depmodes are late enough in the game, and
4872      # so weak that their functioning should not be impacted.
4873      am__obj=conftest.${OBJEXT-o}
4874      am__minus_obj=
4875      ;;
4876    none) break ;;
4877    esac
4878    if depmode=$depmode \
4879       source=sub/conftest.c object=$am__obj \
4880       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4882         >/dev/null 2>conftest.err &&
4883       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4884       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4886       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887      # icc doesn't choke on unknown options, it will just issue warnings
4888      # or remarks (even with -Werror).  So we grep stderr for any message
4889      # that says an option was ignored or not supported.
4890      # When given -MP, icc 7.0 and 7.1 complain thusly:
4891      #   icc: Command line warning: ignoring option '-M'; no argument required
4892      # The diagnosis changed in icc 8.0:
4893      #   icc: Command line remark: option '-MP' not supported
4894      if (grep 'ignoring option' conftest.err ||
4895          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896        am_cv_CXX_dependencies_compiler_type=$depmode
4897        break
4898      fi
4899    fi
4900  done
4901
4902  cd ..
4903  rm -rf conftest.dir
4904else
4905  am_cv_CXX_dependencies_compiler_type=none
4906fi
4907
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4910$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4911CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4912
4913 if
4914  test "x$enable_dependency_tracking" != xno \
4915  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4916  am__fastdepCXX_TRUE=
4917  am__fastdepCXX_FALSE='#'
4918else
4919  am__fastdepCXX_TRUE='#'
4920  am__fastdepCXX_FALSE=
4921fi
4922
4923
4924ac_ext=c
4925ac_cpp='$CPP $CPPFLAGS'
4926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929if test -n "$ac_tool_prefix"; then
4930  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}gcc; ac_word=$2
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933$as_echo_n "checking for $ac_word... " >&6; }
4934if ${ac_cv_prog_CC+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  if test -n "$CC"; then
4938  ac_cv_prog_CC="$CC" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945    for ac_exec_ext in '' $ac_executable_extensions; do
4946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949    break 2
4950  fi
4951done
4952  done
4953IFS=$as_save_IFS
4954
4955fi
4956fi
4957CC=$ac_cv_prog_CC
4958if test -n "$CC"; then
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4960$as_echo "$CC" >&6; }
4961else
4962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
4964fi
4965
4966
4967fi
4968if test -z "$ac_cv_prog_CC"; then
4969  ac_ct_CC=$CC
4970  # Extract the first word of "gcc", so it can be a program name with args.
4971set dummy gcc; ac_word=$2
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973$as_echo_n "checking for $ac_word... " >&6; }
4974if ${ac_cv_prog_ac_ct_CC+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  if test -n "$ac_ct_CC"; then
4978  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983  IFS=$as_save_IFS
4984  test -z "$as_dir" && as_dir=.
4985    for ac_exec_ext in '' $ac_executable_extensions; do
4986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987    ac_cv_prog_ac_ct_CC="gcc"
4988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989    break 2
4990  fi
4991done
4992  done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997ac_ct_CC=$ac_cv_prog_ac_ct_CC
4998if test -n "$ac_ct_CC"; then
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5000$as_echo "$ac_ct_CC" >&6; }
5001else
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004fi
5005
5006  if test "x$ac_ct_CC" = x; then
5007    CC=""
5008  else
5009    case $cross_compiling:$ac_tool_warned in
5010yes:)
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013ac_tool_warned=yes ;;
5014esac
5015    CC=$ac_ct_CC
5016  fi
5017else
5018  CC="$ac_cv_prog_CC"
5019fi
5020
5021if test -z "$CC"; then
5022          if test -n "$ac_tool_prefix"; then
5023    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}cc; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_prog_CC+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -n "$CC"; then
5031  ac_cv_prog_CC="$CC" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038    for ac_exec_ext in '' $ac_executable_extensions; do
5039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040    ac_cv_prog_CC="${ac_tool_prefix}cc"
5041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045  done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050CC=$ac_cv_prog_CC
5051if test -n "$CC"; then
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5053$as_echo "$CC" >&6; }
5054else
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060  fi
5061fi
5062if test -z "$CC"; then
5063  # Extract the first word of "cc", so it can be a program name with args.
5064set dummy cc; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_CC+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$CC"; then
5071  ac_cv_prog_CC="$CC" # Let the user override the test.
5072else
5073  ac_prog_rejected=no
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079    for ac_exec_ext in '' $ac_executable_extensions; do
5080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5082       ac_prog_rejected=yes
5083       continue
5084     fi
5085    ac_cv_prog_CC="cc"
5086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087    break 2
5088  fi
5089done
5090  done
5091IFS=$as_save_IFS
5092
5093if test $ac_prog_rejected = yes; then
5094  # We found a bogon in the path, so make sure we never use it.
5095  set dummy $ac_cv_prog_CC
5096  shift
5097  if test $# != 0; then
5098    # We chose a different compiler from the bogus one.
5099    # However, it has the same basename, so the bogon will be chosen
5100    # first if we set CC to just the basename; use the full file name.
5101    shift
5102    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5103  fi
5104fi
5105fi
5106fi
5107CC=$ac_cv_prog_CC
5108if test -n "$CC"; then
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110$as_echo "$CC" >&6; }
5111else
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
5116
5117fi
5118if test -z "$CC"; then
5119  if test -n "$ac_tool_prefix"; then
5120  for ac_prog in cl.exe
5121  do
5122    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125$as_echo_n "checking for $ac_word... " >&6; }
5126if ${ac_cv_prog_CC+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  if test -n "$CC"; then
5130  ac_cv_prog_CC="$CC" # Let the user override the test.
5131else
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135  IFS=$as_save_IFS
5136  test -z "$as_dir" && as_dir=.
5137    for ac_exec_ext in '' $ac_executable_extensions; do
5138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141    break 2
5142  fi
5143done
5144  done
5145IFS=$as_save_IFS
5146
5147fi
5148fi
5149CC=$ac_cv_prog_CC
5150if test -n "$CC"; then
5151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5152$as_echo "$CC" >&6; }
5153else
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155$as_echo "no" >&6; }
5156fi
5157
5158
5159    test -n "$CC" && break
5160  done
5161fi
5162if test -z "$CC"; then
5163  ac_ct_CC=$CC
5164  for ac_prog in cl.exe
5165do
5166  # Extract the first word of "$ac_prog", so it can be a program name with args.
5167set dummy $ac_prog; ac_word=$2
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169$as_echo_n "checking for $ac_word... " >&6; }
5170if ${ac_cv_prog_ac_ct_CC+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  if test -n "$ac_ct_CC"; then
5174  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5175else
5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179  IFS=$as_save_IFS
5180  test -z "$as_dir" && as_dir=.
5181    for ac_exec_ext in '' $ac_executable_extensions; do
5182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183    ac_cv_prog_ac_ct_CC="$ac_prog"
5184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185    break 2
5186  fi
5187done
5188  done
5189IFS=$as_save_IFS
5190
5191fi
5192fi
5193ac_ct_CC=$ac_cv_prog_ac_ct_CC
5194if test -n "$ac_ct_CC"; then
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5196$as_echo "$ac_ct_CC" >&6; }
5197else
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199$as_echo "no" >&6; }
5200fi
5201
5202
5203  test -n "$ac_ct_CC" && break
5204done
5205
5206  if test "x$ac_ct_CC" = x; then
5207    CC=""
5208  else
5209    case $cross_compiling:$ac_tool_warned in
5210yes:)
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213ac_tool_warned=yes ;;
5214esac
5215    CC=$ac_ct_CC
5216  fi
5217fi
5218
5219fi
5220
5221
5222test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5224as_fn_error $? "no acceptable C compiler found in \$PATH
5225See \`config.log' for more details" "$LINENO" 5; }
5226
5227# Provide some information about the compiler.
5228$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5229set X $ac_compile
5230ac_compiler=$2
5231for ac_option in --version -v -V -qversion; do
5232  { { ac_try="$ac_compiler $ac_option >&5"
5233case "(($ac_try" in
5234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235  *) ac_try_echo=$ac_try;;
5236esac
5237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5238$as_echo "$ac_try_echo"; } >&5
5239  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5240  ac_status=$?
5241  if test -s conftest.err; then
5242    sed '10a\
5243... rest of stderr output deleted ...
5244         10q' conftest.err >conftest.er1
5245    cat conftest.er1 >&5
5246  fi
5247  rm -f conftest.er1 conftest.err
5248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249  test $ac_status = 0; }
5250done
5251
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5253$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5254if ${ac_cv_c_compiler_gnu+:} false; then :
5255  $as_echo_n "(cached) " >&6
5256else
5257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h.  */
5259
5260int
5261main ()
5262{
5263#ifndef __GNUC__
5264       choke me
5265#endif
5266
5267  ;
5268  return 0;
5269}
5270_ACEOF
5271if ac_fn_c_try_compile "$LINENO"; then :
5272  ac_compiler_gnu=yes
5273else
5274  ac_compiler_gnu=no
5275fi
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277ac_cv_c_compiler_gnu=$ac_compiler_gnu
5278
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5281$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5282if test $ac_compiler_gnu = yes; then
5283  GCC=yes
5284else
5285  GCC=
5286fi
5287ac_test_CFLAGS=${CFLAGS+set}
5288ac_save_CFLAGS=$CFLAGS
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5290$as_echo_n "checking whether $CC accepts -g... " >&6; }
5291if ${ac_cv_prog_cc_g+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  ac_save_c_werror_flag=$ac_c_werror_flag
5295   ac_c_werror_flag=yes
5296   ac_cv_prog_cc_g=no
5297   CFLAGS="-g"
5298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h.  */
5300
5301int
5302main ()
5303{
5304
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309if ac_fn_c_try_compile "$LINENO"; then :
5310  ac_cv_prog_cc_g=yes
5311else
5312  CFLAGS=""
5313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315
5316int
5317main ()
5318{
5319
5320  ;
5321  return 0;
5322}
5323_ACEOF
5324if ac_fn_c_try_compile "$LINENO"; then :
5325
5326else
5327  ac_c_werror_flag=$ac_save_c_werror_flag
5328	 CFLAGS="-g"
5329	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331
5332int
5333main ()
5334{
5335
5336  ;
5337  return 0;
5338}
5339_ACEOF
5340if ac_fn_c_try_compile "$LINENO"; then :
5341  ac_cv_prog_cc_g=yes
5342fi
5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348   ac_c_werror_flag=$ac_save_c_werror_flag
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5351$as_echo "$ac_cv_prog_cc_g" >&6; }
5352if test "$ac_test_CFLAGS" = set; then
5353  CFLAGS=$ac_save_CFLAGS
5354elif test $ac_cv_prog_cc_g = yes; then
5355  if test "$GCC" = yes; then
5356    CFLAGS="-g -O2"
5357  else
5358    CFLAGS="-g"
5359  fi
5360else
5361  if test "$GCC" = yes; then
5362    CFLAGS="-O2"
5363  else
5364    CFLAGS=
5365  fi
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5368$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5369if ${ac_cv_prog_cc_c89+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  ac_cv_prog_cc_c89=no
5373ac_save_CC=$CC
5374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h.  */
5376#include <stdarg.h>
5377#include <stdio.h>
5378struct stat;
5379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5380struct buf { int x; };
5381FILE * (*rcsopen) (struct buf *, struct stat *, int);
5382static char *e (p, i)
5383     char **p;
5384     int i;
5385{
5386  return p[i];
5387}
5388static char *f (char * (*g) (char **, int), char **p, ...)
5389{
5390  char *s;
5391  va_list v;
5392  va_start (v,p);
5393  s = g (p, va_arg (v,int));
5394  va_end (v);
5395  return s;
5396}
5397
5398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5399   function prototypes and stuff, but not '\xHH' hex character constants.
5400   These don't provoke an error unfortunately, instead are silently treated
5401   as 'x'.  The following induces an error, until -std is added to get
5402   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5403   array size at least.  It's necessary to write '\x00'==0 to get something
5404   that's true only with -std.  */
5405int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5406
5407/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5408   inside strings and character constants.  */
5409#define FOO(x) 'x'
5410int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5411
5412int test (int i, double x);
5413struct s1 {int (*f) (int a);};
5414struct s2 {int (*f) (double a);};
5415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5416int argc;
5417char **argv;
5418int
5419main ()
5420{
5421return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5422  ;
5423  return 0;
5424}
5425_ACEOF
5426for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5427	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5428do
5429  CC="$ac_save_CC $ac_arg"
5430  if ac_fn_c_try_compile "$LINENO"; then :
5431  ac_cv_prog_cc_c89=$ac_arg
5432fi
5433rm -f core conftest.err conftest.$ac_objext
5434  test "x$ac_cv_prog_cc_c89" != "xno" && break
5435done
5436rm -f conftest.$ac_ext
5437CC=$ac_save_CC
5438
5439fi
5440# AC_CACHE_VAL
5441case "x$ac_cv_prog_cc_c89" in
5442  x)
5443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5444$as_echo "none needed" >&6; } ;;
5445  xno)
5446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5447$as_echo "unsupported" >&6; } ;;
5448  *)
5449    CC="$CC $ac_cv_prog_cc_c89"
5450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5451$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5452esac
5453if test "x$ac_cv_prog_cc_c89" != xno; then :
5454
5455fi
5456
5457ac_ext=c
5458ac_cpp='$CPP $CPPFLAGS'
5459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462
5463ac_ext=c
5464ac_cpp='$CPP $CPPFLAGS'
5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5469$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5470if ${am_cv_prog_cc_c_o+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475
5476int
5477main ()
5478{
5479
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484  # Make sure it works both with $CC and with simple cc.
5485  # Following AC_PROG_CC_C_O, we do the test twice because some
5486  # compilers refuse to overwrite an existing .o file with -o,
5487  # though they will create one.
5488  am_cv_prog_cc_c_o=yes
5489  for am_i in 1 2; do
5490    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5491   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } \
5495         && test -f conftest2.$ac_objext; then
5496      : OK
5497    else
5498      am_cv_prog_cc_c_o=no
5499      break
5500    fi
5501  done
5502  rm -f core conftest*
5503  unset am_i
5504fi
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5506$as_echo "$am_cv_prog_cc_c_o" >&6; }
5507if test "$am_cv_prog_cc_c_o" != yes; then
5508   # Losing compiler, so override with the script.
5509   # FIXME: It is wrong to rewrite CC.
5510   # But if we don't then we get into trouble of one sort or another.
5511   # A longer-term fix would be to have automake use am__CC in this case,
5512   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5513   CC="$am_aux_dir/compile $CC"
5514fi
5515ac_ext=c
5516ac_cpp='$CPP $CPPFLAGS'
5517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520
5521
5522depcc="$CC"   am_compiler_list=
5523
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5525$as_echo_n "checking dependency style of $depcc... " >&6; }
5526if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5530  # We make a subdir and do the tests there.  Otherwise we can end up
5531  # making bogus files that we don't know about and never remove.  For
5532  # instance it was reported that on HP-UX the gcc test will end up
5533  # making a dummy file named 'D' -- because '-MD' means "put the output
5534  # in D".
5535  rm -rf conftest.dir
5536  mkdir conftest.dir
5537  # Copy depcomp to subdir because otherwise we won't find it if we're
5538  # using a relative directory.
5539  cp "$am_depcomp" conftest.dir
5540  cd conftest.dir
5541  # We will build objects and dependencies in a subdirectory because
5542  # it helps to detect inapplicable dependency modes.  For instance
5543  # both Tru64's cc and ICC support -MD to output dependencies as a
5544  # side effect of compilation, but ICC will put the dependencies in
5545  # the current directory while Tru64 will put them in the object
5546  # directory.
5547  mkdir sub
5548
5549  am_cv_CC_dependencies_compiler_type=none
5550  if test "$am_compiler_list" = ""; then
5551     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552  fi
5553  am__universal=false
5554  case " $depcc " in #(
5555     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5556     esac
5557
5558  for depmode in $am_compiler_list; do
5559    # Setup a source with many dependencies, because some compilers
5560    # like to wrap large dependency lists on column 80 (with \), and
5561    # we should not choose a depcomp mode which is confused by this.
5562    #
5563    # We need to recreate these files for each test, as the compiler may
5564    # overwrite some of them when testing with obscure command lines.
5565    # This happens at least with the AIX C compiler.
5566    : > sub/conftest.c
5567    for i in 1 2 3 4 5 6; do
5568      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5570      # Solaris 10 /bin/sh.
5571      echo '/* dummy */' > sub/conftst$i.h
5572    done
5573    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5574
5575    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5576    # mode.  It turns out that the SunPro C++ compiler does not properly
5577    # handle '-M -o', and we need to detect this.  Also, some Intel
5578    # versions had trouble with output in subdirs.
5579    am__obj=sub/conftest.${OBJEXT-o}
5580    am__minus_obj="-o $am__obj"
5581    case $depmode in
5582    gcc)
5583      # This depmode causes a compiler race in universal mode.
5584      test "$am__universal" = false || continue
5585      ;;
5586    nosideeffect)
5587      # After this tag, mechanisms are not by side-effect, so they'll
5588      # only be used when explicitly requested.
5589      if test "x$enable_dependency_tracking" = xyes; then
5590	continue
5591      else
5592	break
5593      fi
5594      ;;
5595    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5596      # This compiler won't grok '-c -o', but also, the minuso test has
5597      # not run yet.  These depmodes are late enough in the game, and
5598      # so weak that their functioning should not be impacted.
5599      am__obj=conftest.${OBJEXT-o}
5600      am__minus_obj=
5601      ;;
5602    none) break ;;
5603    esac
5604    if depmode=$depmode \
5605       source=sub/conftest.c object=$am__obj \
5606       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5608         >/dev/null 2>conftest.err &&
5609       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5610       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5611       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5612       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613      # icc doesn't choke on unknown options, it will just issue warnings
5614      # or remarks (even with -Werror).  So we grep stderr for any message
5615      # that says an option was ignored or not supported.
5616      # When given -MP, icc 7.0 and 7.1 complain thusly:
5617      #   icc: Command line warning: ignoring option '-M'; no argument required
5618      # The diagnosis changed in icc 8.0:
5619      #   icc: Command line remark: option '-MP' not supported
5620      if (grep 'ignoring option' conftest.err ||
5621          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5622        am_cv_CC_dependencies_compiler_type=$depmode
5623        break
5624      fi
5625    fi
5626  done
5627
5628  cd ..
5629  rm -rf conftest.dir
5630else
5631  am_cv_CC_dependencies_compiler_type=none
5632fi
5633
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5636$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5637CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5638
5639 if
5640  test "x$enable_dependency_tracking" != xno \
5641  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5642  am__fastdepCC_TRUE=
5643  am__fastdepCC_FALSE='#'
5644else
5645  am__fastdepCC_TRUE='#'
5646  am__fastdepCC_FALSE=
5647fi
5648
5649
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5652$as_echo_n "checking whether ln -s works... " >&6; }
5653LN_S=$as_ln_s
5654if test "$LN_S" = "ln -s"; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656$as_echo "yes" >&6; }
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5659$as_echo "no, using $LN_S" >&6; }
5660fi
5661
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5663$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5664set x ${MAKE-make}
5665ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5666if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  cat >conftest.make <<\_ACEOF
5670SHELL = /bin/sh
5671all:
5672	@echo '@@@%%%=$(MAKE)=@@@%%%'
5673_ACEOF
5674# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5675case `${MAKE-make} -f conftest.make 2>/dev/null` in
5676  *@@@%%%=?*=@@@%%%*)
5677    eval ac_cv_prog_make_${ac_make}_set=yes;;
5678  *)
5679    eval ac_cv_prog_make_${ac_make}_set=no;;
5680esac
5681rm -f conftest.make
5682fi
5683if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685$as_echo "yes" >&6; }
5686  SET_MAKE=
5687else
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690  SET_MAKE="MAKE=${MAKE-make}"
5691fi
5692
5693
5694
5695ac_ext=c
5696ac_cpp='$CPP $CPPFLAGS'
5697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5701$as_echo_n "checking how to run the C preprocessor... " >&6; }
5702# On Suns, sometimes $CPP names a directory.
5703if test -n "$CPP" && test -d "$CPP"; then
5704  CPP=
5705fi
5706if test -z "$CPP"; then
5707  if ${ac_cv_prog_CPP+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710      # Double quotes because CPP needs to be expanded
5711    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5712    do
5713      ac_preproc_ok=false
5714for ac_c_preproc_warn_flag in '' yes
5715do
5716  # Use a header file that comes with gcc, so configuring glibc
5717  # with a fresh cross-compiler works.
5718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5719  # <limits.h> exists even on freestanding compilers.
5720  # On the NeXT, cc -E runs the code through the compiler's parser,
5721  # not just through cpp. "Syntax error" is here to catch this case.
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724#ifdef __STDC__
5725# include <limits.h>
5726#else
5727# include <assert.h>
5728#endif
5729		     Syntax error
5730_ACEOF
5731if ac_fn_c_try_cpp "$LINENO"; then :
5732
5733else
5734  # Broken: fails on valid input.
5735continue
5736fi
5737rm -f conftest.err conftest.i conftest.$ac_ext
5738
5739  # OK, works on sane cases.  Now check whether nonexistent headers
5740  # can be detected and how.
5741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743#include <ac_nonexistent.h>
5744_ACEOF
5745if ac_fn_c_try_cpp "$LINENO"; then :
5746  # Broken: success on invalid input.
5747continue
5748else
5749  # Passes both tests.
5750ac_preproc_ok=:
5751break
5752fi
5753rm -f conftest.err conftest.i conftest.$ac_ext
5754
5755done
5756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5757rm -f conftest.i conftest.err conftest.$ac_ext
5758if $ac_preproc_ok; then :
5759  break
5760fi
5761
5762    done
5763    ac_cv_prog_CPP=$CPP
5764
5765fi
5766  CPP=$ac_cv_prog_CPP
5767else
5768  ac_cv_prog_CPP=$CPP
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5771$as_echo "$CPP" >&6; }
5772ac_preproc_ok=false
5773for ac_c_preproc_warn_flag in '' yes
5774do
5775  # Use a header file that comes with gcc, so configuring glibc
5776  # with a fresh cross-compiler works.
5777  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778  # <limits.h> exists even on freestanding compilers.
5779  # On the NeXT, cc -E runs the code through the compiler's parser,
5780  # not just through cpp. "Syntax error" is here to catch this case.
5781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h.  */
5783#ifdef __STDC__
5784# include <limits.h>
5785#else
5786# include <assert.h>
5787#endif
5788		     Syntax error
5789_ACEOF
5790if ac_fn_c_try_cpp "$LINENO"; then :
5791
5792else
5793  # Broken: fails on valid input.
5794continue
5795fi
5796rm -f conftest.err conftest.i conftest.$ac_ext
5797
5798  # OK, works on sane cases.  Now check whether nonexistent headers
5799  # can be detected and how.
5800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h.  */
5802#include <ac_nonexistent.h>
5803_ACEOF
5804if ac_fn_c_try_cpp "$LINENO"; then :
5805  # Broken: success on invalid input.
5806continue
5807else
5808  # Passes both tests.
5809ac_preproc_ok=:
5810break
5811fi
5812rm -f conftest.err conftest.i conftest.$ac_ext
5813
5814done
5815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5816rm -f conftest.i conftest.err conftest.$ac_ext
5817if $ac_preproc_ok; then :
5818
5819else
5820  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5823See \`config.log' for more details" "$LINENO" 5; }
5824fi
5825
5826ac_ext=c
5827ac_cpp='$CPP $CPPFLAGS'
5828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5834$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5835if ${ac_cv_path_GREP+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  if test -z "$GREP"; then
5839  ac_path_GREP_found=false
5840  # Loop through the user's path and test for each of PROGNAME-LIST
5841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5843do
5844  IFS=$as_save_IFS
5845  test -z "$as_dir" && as_dir=.
5846    for ac_prog in grep ggrep; do
5847    for ac_exec_ext in '' $ac_executable_extensions; do
5848      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5849      as_fn_executable_p "$ac_path_GREP" || continue
5850# Check for GNU ac_path_GREP and select it if it is found.
5851  # Check for GNU $ac_path_GREP
5852case `"$ac_path_GREP" --version 2>&1` in
5853*GNU*)
5854  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5855*)
5856  ac_count=0
5857  $as_echo_n 0123456789 >"conftest.in"
5858  while :
5859  do
5860    cat "conftest.in" "conftest.in" >"conftest.tmp"
5861    mv "conftest.tmp" "conftest.in"
5862    cp "conftest.in" "conftest.nl"
5863    $as_echo 'GREP' >> "conftest.nl"
5864    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5865    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5866    as_fn_arith $ac_count + 1 && ac_count=$as_val
5867    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5868      # Best one so far, save it but keep looking for a better one
5869      ac_cv_path_GREP="$ac_path_GREP"
5870      ac_path_GREP_max=$ac_count
5871    fi
5872    # 10*(2^10) chars as input seems more than enough
5873    test $ac_count -gt 10 && break
5874  done
5875  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5876esac
5877
5878      $ac_path_GREP_found && break 3
5879    done
5880  done
5881  done
5882IFS=$as_save_IFS
5883  if test -z "$ac_cv_path_GREP"; then
5884    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5885  fi
5886else
5887  ac_cv_path_GREP=$GREP
5888fi
5889
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5892$as_echo "$ac_cv_path_GREP" >&6; }
5893 GREP="$ac_cv_path_GREP"
5894
5895
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5897$as_echo_n "checking for egrep... " >&6; }
5898if ${ac_cv_path_EGREP+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5902   then ac_cv_path_EGREP="$GREP -E"
5903   else
5904     if test -z "$EGREP"; then
5905  ac_path_EGREP_found=false
5906  # Loop through the user's path and test for each of PROGNAME-LIST
5907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5909do
5910  IFS=$as_save_IFS
5911  test -z "$as_dir" && as_dir=.
5912    for ac_prog in egrep; do
5913    for ac_exec_ext in '' $ac_executable_extensions; do
5914      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5915      as_fn_executable_p "$ac_path_EGREP" || continue
5916# Check for GNU ac_path_EGREP and select it if it is found.
5917  # Check for GNU $ac_path_EGREP
5918case `"$ac_path_EGREP" --version 2>&1` in
5919*GNU*)
5920  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5921*)
5922  ac_count=0
5923  $as_echo_n 0123456789 >"conftest.in"
5924  while :
5925  do
5926    cat "conftest.in" "conftest.in" >"conftest.tmp"
5927    mv "conftest.tmp" "conftest.in"
5928    cp "conftest.in" "conftest.nl"
5929    $as_echo 'EGREP' >> "conftest.nl"
5930    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5931    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5932    as_fn_arith $ac_count + 1 && ac_count=$as_val
5933    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5934      # Best one so far, save it but keep looking for a better one
5935      ac_cv_path_EGREP="$ac_path_EGREP"
5936      ac_path_EGREP_max=$ac_count
5937    fi
5938    # 10*(2^10) chars as input seems more than enough
5939    test $ac_count -gt 10 && break
5940  done
5941  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5942esac
5943
5944      $ac_path_EGREP_found && break 3
5945    done
5946  done
5947  done
5948IFS=$as_save_IFS
5949  if test -z "$ac_cv_path_EGREP"; then
5950    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5951  fi
5952else
5953  ac_cv_path_EGREP=$EGREP
5954fi
5955
5956   fi
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5959$as_echo "$ac_cv_path_EGREP" >&6; }
5960 EGREP="$ac_cv_path_EGREP"
5961
5962
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5964$as_echo_n "checking for ANSI C header files... " >&6; }
5965if ${ac_cv_header_stdc+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970#include <stdlib.h>
5971#include <stdarg.h>
5972#include <string.h>
5973#include <float.h>
5974
5975int
5976main ()
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"; then :
5984  ac_cv_header_stdc=yes
5985else
5986  ac_cv_header_stdc=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989
5990if test $ac_cv_header_stdc = yes; then
5991  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994#include <string.h>
5995
5996_ACEOF
5997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998  $EGREP "memchr" >/dev/null 2>&1; then :
5999
6000else
6001  ac_cv_header_stdc=no
6002fi
6003rm -f conftest*
6004
6005fi
6006
6007if test $ac_cv_header_stdc = yes; then
6008  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h.  */
6011#include <stdlib.h>
6012
6013_ACEOF
6014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015  $EGREP "free" >/dev/null 2>&1; then :
6016
6017else
6018  ac_cv_header_stdc=no
6019fi
6020rm -f conftest*
6021
6022fi
6023
6024if test $ac_cv_header_stdc = yes; then
6025  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6026  if test "$cross_compiling" = yes; then :
6027  :
6028else
6029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h.  */
6031#include <ctype.h>
6032#include <stdlib.h>
6033#if ((' ' & 0x0FF) == 0x020)
6034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6036#else
6037# define ISLOWER(c) \
6038		   (('a' <= (c) && (c) <= 'i') \
6039		     || ('j' <= (c) && (c) <= 'r') \
6040		     || ('s' <= (c) && (c) <= 'z'))
6041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6042#endif
6043
6044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6045int
6046main ()
6047{
6048  int i;
6049  for (i = 0; i < 256; i++)
6050    if (XOR (islower (i), ISLOWER (i))
6051	|| toupper (i) != TOUPPER (i))
6052      return 2;
6053  return 0;
6054}
6055_ACEOF
6056if ac_fn_c_try_run "$LINENO"; then :
6057
6058else
6059  ac_cv_header_stdc=no
6060fi
6061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6062  conftest.$ac_objext conftest.beam conftest.$ac_ext
6063fi
6064
6065fi
6066fi
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6068$as_echo "$ac_cv_header_stdc" >&6; }
6069if test $ac_cv_header_stdc = yes; then
6070
6071$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6072
6073fi
6074
6075# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6077		  inttypes.h stdint.h unistd.h
6078do :
6079  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6080ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6081"
6082if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6083  cat >>confdefs.h <<_ACEOF
6084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6085_ACEOF
6086
6087fi
6088
6089done
6090
6091
6092
6093  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6094if test "x$ac_cv_header_minix_config_h" = xyes; then :
6095  MINIX=yes
6096else
6097  MINIX=
6098fi
6099
6100
6101  if test "$MINIX" = yes; then
6102
6103$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6104
6105
6106$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6107
6108
6109$as_echo "#define _MINIX 1" >>confdefs.h
6110
6111  fi
6112
6113
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6115$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6116if ${ac_cv_safe_to_define___extensions__+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121
6122#         define __EXTENSIONS__ 1
6123          $ac_includes_default
6124int
6125main ()
6126{
6127
6128  ;
6129  return 0;
6130}
6131_ACEOF
6132if ac_fn_c_try_compile "$LINENO"; then :
6133  ac_cv_safe_to_define___extensions__=yes
6134else
6135  ac_cv_safe_to_define___extensions__=no
6136fi
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138fi
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6140$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6141  test $ac_cv_safe_to_define___extensions__ = yes &&
6142    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6143
6144  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6145
6146  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6147
6148  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6149
6150  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6151
6152
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6154$as_echo_n "checking for library containing strerror... " >&6; }
6155if ${ac_cv_search_strerror+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  ac_func_search_save_LIBS=$LIBS
6159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h.  */
6161
6162/* Override any GCC internal prototype to avoid an error.
6163   Use char because int might match the return type of a GCC
6164   builtin and then its argument prototype would still apply.  */
6165#ifdef __cplusplus
6166extern "C"
6167#endif
6168char strerror ();
6169int
6170main ()
6171{
6172return strerror ();
6173  ;
6174  return 0;
6175}
6176_ACEOF
6177for ac_lib in '' cposix; do
6178  if test -z "$ac_lib"; then
6179    ac_res="none required"
6180  else
6181    ac_res=-l$ac_lib
6182    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6183  fi
6184  if ac_fn_c_try_link "$LINENO"; then :
6185  ac_cv_search_strerror=$ac_res
6186fi
6187rm -f core conftest.err conftest.$ac_objext \
6188    conftest$ac_exeext
6189  if ${ac_cv_search_strerror+:} false; then :
6190  break
6191fi
6192done
6193if ${ac_cv_search_strerror+:} false; then :
6194
6195else
6196  ac_cv_search_strerror=no
6197fi
6198rm conftest.$ac_ext
6199LIBS=$ac_func_search_save_LIBS
6200fi
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6202$as_echo "$ac_cv_search_strerror" >&6; }
6203ac_res=$ac_cv_search_strerror
6204if test "$ac_res" != no; then :
6205  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6206
6207fi
6208
6209for ac_prog in gawk mawk nawk awk
6210do
6211  # Extract the first word of "$ac_prog", so it can be a program name with args.
6212set dummy $ac_prog; ac_word=$2
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214$as_echo_n "checking for $ac_word... " >&6; }
6215if ${ac_cv_prog_AWK+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  if test -n "$AWK"; then
6219  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226    for ac_exec_ext in '' $ac_executable_extensions; do
6227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228    ac_cv_prog_AWK="$ac_prog"
6229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233  done
6234IFS=$as_save_IFS
6235
6236fi
6237fi
6238AWK=$ac_cv_prog_AWK
6239if test -n "$AWK"; then
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6241$as_echo "$AWK" >&6; }
6242else
6243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244$as_echo "no" >&6; }
6245fi
6246
6247
6248  test -n "$AWK" && break
6249done
6250
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6252$as_echo_n "checking for long file names... " >&6; }
6253if ${ac_cv_sys_long_file_names+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  ac_cv_sys_long_file_names=yes
6257# Test for long file names in all the places we know might matter:
6258#      .		the current directory, where building will happen
6259#      $prefix/lib	where we will be installing things
6260#      $exec_prefix/lib	likewise
6261#      $TMPDIR		if set, where it might want to write temporary files
6262#      /tmp		where it might want to write temporary files
6263#      /var/tmp		likewise
6264#      /usr/tmp		likewise
6265for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6266  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6267  # in the usual case where exec_prefix is '${prefix}'.
6268  case $ac_dir in #(
6269    . | /* | ?:[\\/]*) ;; #(
6270    *) continue;;
6271  esac
6272  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6273  ac_xdir=$ac_dir/cf$$
6274  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6275  ac_tf1=$ac_xdir/conftest9012345
6276  ac_tf2=$ac_xdir/conftest9012346
6277  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6278    ac_cv_sys_long_file_names=no
6279  rm -f -r "$ac_xdir" 2>/dev/null
6280  test $ac_cv_sys_long_file_names = no && break
6281done
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6284$as_echo "$ac_cv_sys_long_file_names" >&6; }
6285if test $ac_cv_sys_long_file_names = yes; then
6286
6287$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6288
6289fi
6290
6291if test $ac_cv_sys_long_file_names = no; then
6292        as_fn_error $? "The Cyrus IMAPD requires support for long file names" "$LINENO" 5
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6295$as_echo_n "checking for inline... " >&6; }
6296if ${ac_cv_c_inline+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  ac_cv_c_inline=no
6300for ac_kw in inline __inline__ __inline; do
6301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303#ifndef __cplusplus
6304typedef int foo_t;
6305static $ac_kw foo_t static_foo () {return 0; }
6306$ac_kw foo_t foo () {return 0; }
6307#endif
6308
6309_ACEOF
6310if ac_fn_c_try_compile "$LINENO"; then :
6311  ac_cv_c_inline=$ac_kw
6312fi
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314  test "$ac_cv_c_inline" != no && break
6315done
6316
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6319$as_echo "$ac_cv_c_inline" >&6; }
6320
6321case $ac_cv_c_inline in
6322  inline | yes) ;;
6323  *)
6324    case $ac_cv_c_inline in
6325      no) ac_val=;;
6326      *) ac_val=$ac_cv_c_inline;;
6327    esac
6328    cat >>confdefs.h <<_ACEOF
6329#ifndef __cplusplus
6330#define inline $ac_val
6331#endif
6332_ACEOF
6333    ;;
6334esac
6335
6336
6337
6338
6339  CFLAG_VISIBILITY=
6340  HAVE_VISIBILITY=0
6341  if test -n "$GCC"; then
6342                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6343$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6344if ${gl_cv_cc_vis_werror+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  gl_save_CFLAGS="$CFLAGS"
6348       CFLAGS="$CFLAGS -Werror"
6349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351
6352int
6353main ()
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_compile "$LINENO"; then :
6361  gl_cv_cc_vis_werror=yes
6362else
6363  gl_cv_cc_vis_werror=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366       CFLAGS="$gl_save_CFLAGS"
6367
6368fi
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6370$as_echo "$gl_cv_cc_vis_werror" >&6; }
6371        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6372$as_echo_n "checking for simple visibility declarations... " >&6; }
6373if ${gl_cv_cc_visibility+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  gl_save_CFLAGS="$CFLAGS"
6377       CFLAGS="$CFLAGS -fvisibility=hidden"
6378                                          if test $gl_cv_cc_vis_werror = yes; then
6379         CFLAGS="$CFLAGS -Werror"
6380       fi
6381       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6384              extern __attribute__((__visibility__("default"))) int exportedvar;
6385              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6386              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6387              void dummyfunc (void) {}
6388
6389int
6390main ()
6391{
6392
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398  gl_cv_cc_visibility=yes
6399else
6400  gl_cv_cc_visibility=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403       CFLAGS="$gl_save_CFLAGS"
6404
6405fi
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6407$as_echo "$gl_cv_cc_visibility" >&6; }
6408    if test $gl_cv_cc_visibility = yes; then
6409      CFLAG_VISIBILITY="-fvisibility=hidden"
6410      HAVE_VISIBILITY=1
6411    fi
6412  fi
6413
6414
6415
6416cat >>confdefs.h <<_ACEOF
6417#define HAVE_VISIBILITY $HAVE_VISIBILITY
6418_ACEOF
6419
6420
6421
6422
6423
6424
6425
6426case `pwd` in
6427  *\ * | *\	*)
6428    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6429$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6430esac
6431
6432
6433
6434macro_version='2.4.6'
6435macro_revision='2.4.6'
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449ltmain=$ac_aux_dir/ltmain.sh
6450
6451# Backslashify metacharacters that are still active within
6452# double-quoted strings.
6453sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6454
6455# Same as above, but do not quote variable references.
6456double_quote_subst='s/\(["`\\]\)/\\\1/g'
6457
6458# Sed substitution to delay expansion of an escaped shell variable in a
6459# double_quote_subst'ed string.
6460delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6461
6462# Sed substitution to delay expansion of an escaped single quote.
6463delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6464
6465# Sed substitution to avoid accidental globbing in evaled expressions
6466no_glob_subst='s/\*/\\\*/g'
6467
6468ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6469ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6471
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6473$as_echo_n "checking how to print strings... " >&6; }
6474# Test print first, because it will be a builtin if present.
6475if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6476   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6477  ECHO='print -r --'
6478elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6479  ECHO='printf %s\n'
6480else
6481  # Use this function as a fallback that always works.
6482  func_fallback_echo ()
6483  {
6484    eval 'cat <<_LTECHO_EOF
6485$1
6486_LTECHO_EOF'
6487  }
6488  ECHO='func_fallback_echo'
6489fi
6490
6491# func_echo_all arg...
6492# Invoke $ECHO with all args, space-separated.
6493func_echo_all ()
6494{
6495    $ECHO ""
6496}
6497
6498case $ECHO in
6499  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6500$as_echo "printf" >&6; } ;;
6501  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6502$as_echo "print -r" >&6; } ;;
6503  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6504$as_echo "cat" >&6; } ;;
6505esac
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6521$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6522if ${ac_cv_path_SED+:} false; then :
6523  $as_echo_n "(cached) " >&6
6524else
6525            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6526     for ac_i in 1 2 3 4 5 6 7; do
6527       ac_script="$ac_script$as_nl$ac_script"
6528     done
6529     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6530     { ac_script=; unset ac_script;}
6531     if test -z "$SED"; then
6532  ac_path_SED_found=false
6533  # Loop through the user's path and test for each of PROGNAME-LIST
6534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  test -z "$as_dir" && as_dir=.
6539    for ac_prog in sed gsed; do
6540    for ac_exec_ext in '' $ac_executable_extensions; do
6541      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6542      as_fn_executable_p "$ac_path_SED" || continue
6543# Check for GNU ac_path_SED and select it if it is found.
6544  # Check for GNU $ac_path_SED
6545case `"$ac_path_SED" --version 2>&1` in
6546*GNU*)
6547  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6548*)
6549  ac_count=0
6550  $as_echo_n 0123456789 >"conftest.in"
6551  while :
6552  do
6553    cat "conftest.in" "conftest.in" >"conftest.tmp"
6554    mv "conftest.tmp" "conftest.in"
6555    cp "conftest.in" "conftest.nl"
6556    $as_echo '' >> "conftest.nl"
6557    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6558    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6559    as_fn_arith $ac_count + 1 && ac_count=$as_val
6560    if test $ac_count -gt ${ac_path_SED_max-0}; then
6561      # Best one so far, save it but keep looking for a better one
6562      ac_cv_path_SED="$ac_path_SED"
6563      ac_path_SED_max=$ac_count
6564    fi
6565    # 10*(2^10) chars as input seems more than enough
6566    test $ac_count -gt 10 && break
6567  done
6568  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6569esac
6570
6571      $ac_path_SED_found && break 3
6572    done
6573  done
6574  done
6575IFS=$as_save_IFS
6576  if test -z "$ac_cv_path_SED"; then
6577    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6578  fi
6579else
6580  ac_cv_path_SED=$SED
6581fi
6582
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6585$as_echo "$ac_cv_path_SED" >&6; }
6586 SED="$ac_cv_path_SED"
6587  rm -f conftest.sed
6588
6589test -z "$SED" && SED=sed
6590Xsed="$SED -e 1s/^X//"
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6603$as_echo_n "checking for fgrep... " >&6; }
6604if ${ac_cv_path_FGREP+:} false; then :
6605  $as_echo_n "(cached) " >&6
6606else
6607  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6608   then ac_cv_path_FGREP="$GREP -F"
6609   else
6610     if test -z "$FGREP"; then
6611  ac_path_FGREP_found=false
6612  # Loop through the user's path and test for each of PROGNAME-LIST
6613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6615do
6616  IFS=$as_save_IFS
6617  test -z "$as_dir" && as_dir=.
6618    for ac_prog in fgrep; do
6619    for ac_exec_ext in '' $ac_executable_extensions; do
6620      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6621      as_fn_executable_p "$ac_path_FGREP" || continue
6622# Check for GNU ac_path_FGREP and select it if it is found.
6623  # Check for GNU $ac_path_FGREP
6624case `"$ac_path_FGREP" --version 2>&1` in
6625*GNU*)
6626  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6627*)
6628  ac_count=0
6629  $as_echo_n 0123456789 >"conftest.in"
6630  while :
6631  do
6632    cat "conftest.in" "conftest.in" >"conftest.tmp"
6633    mv "conftest.tmp" "conftest.in"
6634    cp "conftest.in" "conftest.nl"
6635    $as_echo 'FGREP' >> "conftest.nl"
6636    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6637    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6638    as_fn_arith $ac_count + 1 && ac_count=$as_val
6639    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6640      # Best one so far, save it but keep looking for a better one
6641      ac_cv_path_FGREP="$ac_path_FGREP"
6642      ac_path_FGREP_max=$ac_count
6643    fi
6644    # 10*(2^10) chars as input seems more than enough
6645    test $ac_count -gt 10 && break
6646  done
6647  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6648esac
6649
6650      $ac_path_FGREP_found && break 3
6651    done
6652  done
6653  done
6654IFS=$as_save_IFS
6655  if test -z "$ac_cv_path_FGREP"; then
6656    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6657  fi
6658else
6659  ac_cv_path_FGREP=$FGREP
6660fi
6661
6662   fi
6663fi
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6665$as_echo "$ac_cv_path_FGREP" >&6; }
6666 FGREP="$ac_cv_path_FGREP"
6667
6668
6669test -z "$GREP" && GREP=grep
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689# Check whether --with-gnu-ld was given.
6690if test "${with_gnu_ld+set}" = set; then :
6691  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6692else
6693  with_gnu_ld=no
6694fi
6695
6696ac_prog=ld
6697if test yes = "$GCC"; then
6698  # Check if gcc -print-prog-name=ld gives a path.
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6700$as_echo_n "checking for ld used by $CC... " >&6; }
6701  case $host in
6702  *-*-mingw*)
6703    # gcc leaves a trailing carriage return, which upsets mingw
6704    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6705  *)
6706    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6707  esac
6708  case $ac_prog in
6709    # Accept absolute paths.
6710    [\\/]* | ?:[\\/]*)
6711      re_direlt='/[^/][^/]*/\.\./'
6712      # Canonicalize the pathname of ld
6713      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6714      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6715	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6716      done
6717      test -z "$LD" && LD=$ac_prog
6718      ;;
6719  "")
6720    # If it fails, then pretend we aren't using GCC.
6721    ac_prog=ld
6722    ;;
6723  *)
6724    # If it is relative, then search for the first ld in PATH.
6725    with_gnu_ld=unknown
6726    ;;
6727  esac
6728elif test yes = "$with_gnu_ld"; then
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6730$as_echo_n "checking for GNU ld... " >&6; }
6731else
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6733$as_echo_n "checking for non-GNU ld... " >&6; }
6734fi
6735if ${lt_cv_path_LD+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  if test -z "$LD"; then
6739  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6740  for ac_dir in $PATH; do
6741    IFS=$lt_save_ifs
6742    test -z "$ac_dir" && ac_dir=.
6743    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6744      lt_cv_path_LD=$ac_dir/$ac_prog
6745      # Check to see if the program is GNU ld.  I'd rather use --version,
6746      # but apparently some variants of GNU ld only accept -v.
6747      # Break only if it was the GNU/non-GNU ld that we prefer.
6748      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6749      *GNU* | *'with BFD'*)
6750	test no != "$with_gnu_ld" && break
6751	;;
6752      *)
6753	test yes != "$with_gnu_ld" && break
6754	;;
6755      esac
6756    fi
6757  done
6758  IFS=$lt_save_ifs
6759else
6760  lt_cv_path_LD=$LD # Let the user override the test with a path.
6761fi
6762fi
6763
6764LD=$lt_cv_path_LD
6765if test -n "$LD"; then
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6767$as_echo "$LD" >&6; }
6768else
6769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770$as_echo "no" >&6; }
6771fi
6772test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6774$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6775if ${lt_cv_prog_gnu_ld+:} false; then :
6776  $as_echo_n "(cached) " >&6
6777else
6778  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6779case `$LD -v 2>&1 </dev/null` in
6780*GNU* | *'with BFD'*)
6781  lt_cv_prog_gnu_ld=yes
6782  ;;
6783*)
6784  lt_cv_prog_gnu_ld=no
6785  ;;
6786esac
6787fi
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6789$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6790with_gnu_ld=$lt_cv_prog_gnu_ld
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6801$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6802if ${lt_cv_path_NM+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  if test -n "$NM"; then
6806  # Let the user override the test.
6807  lt_cv_path_NM=$NM
6808else
6809  lt_nm_to_check=${ac_tool_prefix}nm
6810  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6811    lt_nm_to_check="$lt_nm_to_check nm"
6812  fi
6813  for lt_tmp_nm in $lt_nm_to_check; do
6814    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6815    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6816      IFS=$lt_save_ifs
6817      test -z "$ac_dir" && ac_dir=.
6818      tmp_nm=$ac_dir/$lt_tmp_nm
6819      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6820	# Check to see if the nm accepts a BSD-compat flag.
6821	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6822	#   nm: unknown option "B" ignored
6823	# Tru64's nm complains that /dev/null is an invalid object file
6824	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6825	case $build_os in
6826	mingw*) lt_bad_file=conftest.nm/nofile ;;
6827	*) lt_bad_file=/dev/null ;;
6828	esac
6829	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6830	*$lt_bad_file* | *'Invalid file or object type'*)
6831	  lt_cv_path_NM="$tmp_nm -B"
6832	  break 2
6833	  ;;
6834	*)
6835	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6836	  */dev/null*)
6837	    lt_cv_path_NM="$tmp_nm -p"
6838	    break 2
6839	    ;;
6840	  *)
6841	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6842	    continue # so that we can try to find one that supports BSD flags
6843	    ;;
6844	  esac
6845	  ;;
6846	esac
6847      fi
6848    done
6849    IFS=$lt_save_ifs
6850  done
6851  : ${lt_cv_path_NM=no}
6852fi
6853fi
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6855$as_echo "$lt_cv_path_NM" >&6; }
6856if test no != "$lt_cv_path_NM"; then
6857  NM=$lt_cv_path_NM
6858else
6859  # Didn't find any BSD compatible name lister, look for dumpbin.
6860  if test -n "$DUMPBIN"; then :
6861    # Let the user override the test.
6862  else
6863    if test -n "$ac_tool_prefix"; then
6864  for ac_prog in dumpbin "link -dump"
6865  do
6866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if ${ac_cv_prog_DUMPBIN+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$DUMPBIN"; then
6874  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881    for ac_exec_ext in '' $ac_executable_extensions; do
6882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888  done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893DUMPBIN=$ac_cv_prog_DUMPBIN
6894if test -n "$DUMPBIN"; then
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6896$as_echo "$DUMPBIN" >&6; }
6897else
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903    test -n "$DUMPBIN" && break
6904  done
6905fi
6906if test -z "$DUMPBIN"; then
6907  ac_ct_DUMPBIN=$DUMPBIN
6908  for ac_prog in dumpbin "link -dump"
6909do
6910  # Extract the first word of "$ac_prog", so it can be a program name with args.
6911set dummy $ac_prog; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$ac_ct_DUMPBIN"; then
6918  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6938if test -n "$ac_ct_DUMPBIN"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6940$as_echo "$ac_ct_DUMPBIN" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947  test -n "$ac_ct_DUMPBIN" && break
6948done
6949
6950  if test "x$ac_ct_DUMPBIN" = x; then
6951    DUMPBIN=":"
6952  else
6953    case $cross_compiling:$ac_tool_warned in
6954yes:)
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957ac_tool_warned=yes ;;
6958esac
6959    DUMPBIN=$ac_ct_DUMPBIN
6960  fi
6961fi
6962
6963    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6964    *COFF*)
6965      DUMPBIN="$DUMPBIN -symbols -headers"
6966      ;;
6967    *)
6968      DUMPBIN=:
6969      ;;
6970    esac
6971  fi
6972
6973  if test : != "$DUMPBIN"; then
6974    NM=$DUMPBIN
6975  fi
6976fi
6977test -z "$NM" && NM=nm
6978
6979
6980
6981
6982
6983
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6985$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6986if ${lt_cv_nm_interface+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  lt_cv_nm_interface="BSD nm"
6990  echo "int some_variable = 0;" > conftest.$ac_ext
6991  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6992  (eval "$ac_compile" 2>conftest.err)
6993  cat conftest.err >&5
6994  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6995  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6996  cat conftest.err >&5
6997  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6998  cat conftest.out >&5
6999  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7000    lt_cv_nm_interface="MS dumpbin"
7001  fi
7002  rm -f conftest*
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7005$as_echo "$lt_cv_nm_interface" >&6; }
7006
7007# find the maximum length of command line arguments
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7009$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7010if ${lt_cv_sys_max_cmd_len+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013    i=0
7014  teststring=ABCD
7015
7016  case $build_os in
7017  msdosdjgpp*)
7018    # On DJGPP, this test can blow up pretty badly due to problems in libc
7019    # (any single argument exceeding 2000 bytes causes a buffer overrun
7020    # during glob expansion).  Even if it were fixed, the result of this
7021    # check would be larger than it should be.
7022    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7023    ;;
7024
7025  gnu*)
7026    # Under GNU Hurd, this test is not required because there is
7027    # no limit to the length of command line arguments.
7028    # Libtool will interpret -1 as no limit whatsoever
7029    lt_cv_sys_max_cmd_len=-1;
7030    ;;
7031
7032  cygwin* | mingw* | cegcc*)
7033    # On Win9x/ME, this test blows up -- it succeeds, but takes
7034    # about 5 minutes as the teststring grows exponentially.
7035    # Worse, since 9x/ME are not pre-emptively multitasking,
7036    # you end up with a "frozen" computer, even though with patience
7037    # the test eventually succeeds (with a max line length of 256k).
7038    # Instead, let's just punt: use the minimum linelength reported by
7039    # all of the supported platforms: 8192 (on NT/2K/XP).
7040    lt_cv_sys_max_cmd_len=8192;
7041    ;;
7042
7043  mint*)
7044    # On MiNT this can take a long time and run out of memory.
7045    lt_cv_sys_max_cmd_len=8192;
7046    ;;
7047
7048  amigaos*)
7049    # On AmigaOS with pdksh, this test takes hours, literally.
7050    # So we just punt and use a minimum line length of 8192.
7051    lt_cv_sys_max_cmd_len=8192;
7052    ;;
7053
7054  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7055    # This has been around since 386BSD, at least.  Likely further.
7056    if test -x /sbin/sysctl; then
7057      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7058    elif test -x /usr/sbin/sysctl; then
7059      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7060    else
7061      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7062    fi
7063    # And add a safety zone
7064    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7065    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7066    ;;
7067
7068  interix*)
7069    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7070    lt_cv_sys_max_cmd_len=196608
7071    ;;
7072
7073  os2*)
7074    # The test takes a long time on OS/2.
7075    lt_cv_sys_max_cmd_len=8192
7076    ;;
7077
7078  osf*)
7079    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7080    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7081    # nice to cause kernel panics so lets avoid the loop below.
7082    # First set a reasonable default.
7083    lt_cv_sys_max_cmd_len=16384
7084    #
7085    if test -x /sbin/sysconfig; then
7086      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7087        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7088      esac
7089    fi
7090    ;;
7091  sco3.2v5*)
7092    lt_cv_sys_max_cmd_len=102400
7093    ;;
7094  sysv5* | sco5v6* | sysv4.2uw2*)
7095    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7096    if test -n "$kargmax"; then
7097      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7098    else
7099      lt_cv_sys_max_cmd_len=32768
7100    fi
7101    ;;
7102  *)
7103    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7104    if test -n "$lt_cv_sys_max_cmd_len" && \
7105       test undefined != "$lt_cv_sys_max_cmd_len"; then
7106      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7107      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7108    else
7109      # Make teststring a little bigger before we do anything with it.
7110      # a 1K string should be a reasonable start.
7111      for i in 1 2 3 4 5 6 7 8; do
7112        teststring=$teststring$teststring
7113      done
7114      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7115      # If test is not a shell built-in, we'll probably end up computing a
7116      # maximum length that is only half of the actual maximum length, but
7117      # we can't tell.
7118      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7119	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7120	      test 17 != "$i" # 1/2 MB should be enough
7121      do
7122        i=`expr $i + 1`
7123        teststring=$teststring$teststring
7124      done
7125      # Only check the string length outside the loop.
7126      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7127      teststring=
7128      # Add a significant safety factor because C++ compilers can tack on
7129      # massive amounts of additional arguments before passing them to the
7130      # linker.  It appears as though 1/2 is a usable value.
7131      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7132    fi
7133    ;;
7134  esac
7135
7136fi
7137
7138if test -n "$lt_cv_sys_max_cmd_len"; then
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7140$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7141else
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7143$as_echo "none" >&6; }
7144fi
7145max_cmd_len=$lt_cv_sys_max_cmd_len
7146
7147
7148
7149
7150
7151
7152: ${CP="cp -f"}
7153: ${MV="mv -f"}
7154: ${RM="rm -f"}
7155
7156if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7157  lt_unset=unset
7158else
7159  lt_unset=false
7160fi
7161
7162
7163
7164
7165
7166# test EBCDIC or ASCII
7167case `echo X|tr X '\101'` in
7168 A) # ASCII based system
7169    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7170  lt_SP2NL='tr \040 \012'
7171  lt_NL2SP='tr \015\012 \040\040'
7172  ;;
7173 *) # EBCDIC based system
7174  lt_SP2NL='tr \100 \n'
7175  lt_NL2SP='tr \r\n \100\100'
7176  ;;
7177esac
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7188$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7189if ${lt_cv_to_host_file_cmd+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  case $host in
7193  *-*-mingw* )
7194    case $build in
7195      *-*-mingw* ) # actually msys
7196        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7197        ;;
7198      *-*-cygwin* )
7199        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7200        ;;
7201      * ) # otherwise, assume *nix
7202        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7203        ;;
7204    esac
7205    ;;
7206  *-*-cygwin* )
7207    case $build in
7208      *-*-mingw* ) # actually msys
7209        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7210        ;;
7211      *-*-cygwin* )
7212        lt_cv_to_host_file_cmd=func_convert_file_noop
7213        ;;
7214      * ) # otherwise, assume *nix
7215        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7216        ;;
7217    esac
7218    ;;
7219  * ) # unhandled hosts (and "normal" native builds)
7220    lt_cv_to_host_file_cmd=func_convert_file_noop
7221    ;;
7222esac
7223
7224fi
7225
7226to_host_file_cmd=$lt_cv_to_host_file_cmd
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7228$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7229
7230
7231
7232
7233
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7235$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7236if ${lt_cv_to_tool_file_cmd+:} false; then :
7237  $as_echo_n "(cached) " >&6
7238else
7239  #assume ordinary cross tools, or native build.
7240lt_cv_to_tool_file_cmd=func_convert_file_noop
7241case $host in
7242  *-*-mingw* )
7243    case $build in
7244      *-*-mingw* ) # actually msys
7245        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7246        ;;
7247    esac
7248    ;;
7249esac
7250
7251fi
7252
7253to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7255$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7256
7257
7258
7259
7260
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7262$as_echo_n "checking for $LD option to reload object files... " >&6; }
7263if ${lt_cv_ld_reload_flag+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  lt_cv_ld_reload_flag='-r'
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7269$as_echo "$lt_cv_ld_reload_flag" >&6; }
7270reload_flag=$lt_cv_ld_reload_flag
7271case $reload_flag in
7272"" | " "*) ;;
7273*) reload_flag=" $reload_flag" ;;
7274esac
7275reload_cmds='$LD$reload_flag -o $output$reload_objs'
7276case $host_os in
7277  cygwin* | mingw* | pw32* | cegcc*)
7278    if test yes != "$GCC"; then
7279      reload_cmds=false
7280    fi
7281    ;;
7282  darwin*)
7283    if test yes = "$GCC"; then
7284      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7285    else
7286      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7287    fi
7288    ;;
7289esac
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299if test -n "$ac_tool_prefix"; then
7300  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7301set dummy ${ac_tool_prefix}objdump; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_OBJDUMP+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$OBJDUMP"; then
7308  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315    for ac_exec_ext in '' $ac_executable_extensions; do
7316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322  done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327OBJDUMP=$ac_cv_prog_OBJDUMP
7328if test -n "$OBJDUMP"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7330$as_echo "$OBJDUMP" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337fi
7338if test -z "$ac_cv_prog_OBJDUMP"; then
7339  ac_ct_OBJDUMP=$OBJDUMP
7340  # Extract the first word of "objdump", so it can be a program name with args.
7341set dummy objdump; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  if test -n "$ac_ct_OBJDUMP"; then
7348  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355    for ac_exec_ext in '' $ac_executable_extensions; do
7356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362  done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7368if test -n "$ac_ct_OBJDUMP"; then
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7370$as_echo "$ac_ct_OBJDUMP" >&6; }
7371else
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376  if test "x$ac_ct_OBJDUMP" = x; then
7377    OBJDUMP="false"
7378  else
7379    case $cross_compiling:$ac_tool_warned in
7380yes:)
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383ac_tool_warned=yes ;;
7384esac
7385    OBJDUMP=$ac_ct_OBJDUMP
7386  fi
7387else
7388  OBJDUMP="$ac_cv_prog_OBJDUMP"
7389fi
7390
7391test -z "$OBJDUMP" && OBJDUMP=objdump
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7402$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7403if ${lt_cv_deplibs_check_method+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  lt_cv_file_magic_cmd='$MAGIC_CMD'
7407lt_cv_file_magic_test_file=
7408lt_cv_deplibs_check_method='unknown'
7409# Need to set the preceding variable on all platforms that support
7410# interlibrary dependencies.
7411# 'none' -- dependencies not supported.
7412# 'unknown' -- same as none, but documents that we really don't know.
7413# 'pass_all' -- all dependencies passed with no checks.
7414# 'test_compile' -- check by making test program.
7415# 'file_magic [[regex]]' -- check by looking for files in library path
7416# that responds to the $file_magic_cmd with a given extended regex.
7417# If you have 'file' or equivalent on your system and you're not sure
7418# whether 'pass_all' will *always* work, you probably want this one.
7419
7420case $host_os in
7421aix[4-9]*)
7422  lt_cv_deplibs_check_method=pass_all
7423  ;;
7424
7425beos*)
7426  lt_cv_deplibs_check_method=pass_all
7427  ;;
7428
7429bsdi[45]*)
7430  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7431  lt_cv_file_magic_cmd='/usr/bin/file -L'
7432  lt_cv_file_magic_test_file=/shlib/libc.so
7433  ;;
7434
7435cygwin*)
7436  # func_win32_libid is a shell function defined in ltmain.sh
7437  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7438  lt_cv_file_magic_cmd='func_win32_libid'
7439  ;;
7440
7441mingw* | pw32*)
7442  # Base MSYS/MinGW do not provide the 'file' command needed by
7443  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7444  # unless we find 'file', for example because we are cross-compiling.
7445  if ( file / ) >/dev/null 2>&1; then
7446    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7447    lt_cv_file_magic_cmd='func_win32_libid'
7448  else
7449    # Keep this pattern in sync with the one in func_win32_libid.
7450    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7451    lt_cv_file_magic_cmd='$OBJDUMP -f'
7452  fi
7453  ;;
7454
7455cegcc*)
7456  # use the weaker test based on 'objdump'. See mingw*.
7457  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7458  lt_cv_file_magic_cmd='$OBJDUMP -f'
7459  ;;
7460
7461darwin* | rhapsody*)
7462  lt_cv_deplibs_check_method=pass_all
7463  ;;
7464
7465freebsd* | dragonfly*)
7466  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7467    case $host_cpu in
7468    i*86 )
7469      # Not sure whether the presence of OpenBSD here was a mistake.
7470      # Let's accept both of them until this is cleared up.
7471      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7472      lt_cv_file_magic_cmd=/usr/bin/file
7473      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7474      ;;
7475    esac
7476  else
7477    lt_cv_deplibs_check_method=pass_all
7478  fi
7479  ;;
7480
7481haiku*)
7482  lt_cv_deplibs_check_method=pass_all
7483  ;;
7484
7485hpux10.20* | hpux11*)
7486  lt_cv_file_magic_cmd=/usr/bin/file
7487  case $host_cpu in
7488  ia64*)
7489    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7490    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7491    ;;
7492  hppa*64*)
7493    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]'
7494    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7495    ;;
7496  *)
7497    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7498    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7499    ;;
7500  esac
7501  ;;
7502
7503interix[3-9]*)
7504  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7505  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7506  ;;
7507
7508irix5* | irix6* | nonstopux*)
7509  case $LD in
7510  *-32|*"-32 ") libmagic=32-bit;;
7511  *-n32|*"-n32 ") libmagic=N32;;
7512  *-64|*"-64 ") libmagic=64-bit;;
7513  *) libmagic=never-match;;
7514  esac
7515  lt_cv_deplibs_check_method=pass_all
7516  ;;
7517
7518# This must be glibc/ELF.
7519linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7520  lt_cv_deplibs_check_method=pass_all
7521  ;;
7522
7523netbsd* | netbsdelf*-gnu)
7524  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7525    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7526  else
7527    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7528  fi
7529  ;;
7530
7531newos6*)
7532  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7533  lt_cv_file_magic_cmd=/usr/bin/file
7534  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7535  ;;
7536
7537*nto* | *qnx*)
7538  lt_cv_deplibs_check_method=pass_all
7539  ;;
7540
7541openbsd* | bitrig*)
7542  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7543    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7544  else
7545    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7546  fi
7547  ;;
7548
7549osf3* | osf4* | osf5*)
7550  lt_cv_deplibs_check_method=pass_all
7551  ;;
7552
7553rdos*)
7554  lt_cv_deplibs_check_method=pass_all
7555  ;;
7556
7557solaris*)
7558  lt_cv_deplibs_check_method=pass_all
7559  ;;
7560
7561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7562  lt_cv_deplibs_check_method=pass_all
7563  ;;
7564
7565sysv4 | sysv4.3*)
7566  case $host_vendor in
7567  motorola)
7568    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]'
7569    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7570    ;;
7571  ncr)
7572    lt_cv_deplibs_check_method=pass_all
7573    ;;
7574  sequent)
7575    lt_cv_file_magic_cmd='/bin/file'
7576    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7577    ;;
7578  sni)
7579    lt_cv_file_magic_cmd='/bin/file'
7580    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7581    lt_cv_file_magic_test_file=/lib/libc.so
7582    ;;
7583  siemens)
7584    lt_cv_deplibs_check_method=pass_all
7585    ;;
7586  pc)
7587    lt_cv_deplibs_check_method=pass_all
7588    ;;
7589  esac
7590  ;;
7591
7592tpf*)
7593  lt_cv_deplibs_check_method=pass_all
7594  ;;
7595os2*)
7596  lt_cv_deplibs_check_method=pass_all
7597  ;;
7598esac
7599
7600fi
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7602$as_echo "$lt_cv_deplibs_check_method" >&6; }
7603
7604file_magic_glob=
7605want_nocaseglob=no
7606if test "$build" = "$host"; then
7607  case $host_os in
7608  mingw* | pw32*)
7609    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7610      want_nocaseglob=yes
7611    else
7612      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7613    fi
7614    ;;
7615  esac
7616fi
7617
7618file_magic_cmd=$lt_cv_file_magic_cmd
7619deplibs_check_method=$lt_cv_deplibs_check_method
7620test -z "$deplibs_check_method" && deplibs_check_method=unknown
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643if test -n "$ac_tool_prefix"; then
7644  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7645set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_DLLTOOL+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  if test -n "$DLLTOOL"; then
7652  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659    for ac_exec_ext in '' $ac_executable_extensions; do
7660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666  done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671DLLTOOL=$ac_cv_prog_DLLTOOL
7672if test -n "$DLLTOOL"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7674$as_echo "$DLLTOOL" >&6; }
7675else
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680
7681fi
7682if test -z "$ac_cv_prog_DLLTOOL"; then
7683  ac_ct_DLLTOOL=$DLLTOOL
7684  # Extract the first word of "dlltool", so it can be a program name with args.
7685set dummy dlltool; ac_word=$2
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687$as_echo_n "checking for $ac_word... " >&6; }
7688if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  if test -n "$ac_ct_DLLTOOL"; then
7692  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7693else
7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697  IFS=$as_save_IFS
7698  test -z "$as_dir" && as_dir=.
7699    for ac_exec_ext in '' $ac_executable_extensions; do
7700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703    break 2
7704  fi
7705done
7706  done
7707IFS=$as_save_IFS
7708
7709fi
7710fi
7711ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7712if test -n "$ac_ct_DLLTOOL"; then
7713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7714$as_echo "$ac_ct_DLLTOOL" >&6; }
7715else
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717$as_echo "no" >&6; }
7718fi
7719
7720  if test "x$ac_ct_DLLTOOL" = x; then
7721    DLLTOOL="false"
7722  else
7723    case $cross_compiling:$ac_tool_warned in
7724yes:)
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727ac_tool_warned=yes ;;
7728esac
7729    DLLTOOL=$ac_ct_DLLTOOL
7730  fi
7731else
7732  DLLTOOL="$ac_cv_prog_DLLTOOL"
7733fi
7734
7735test -z "$DLLTOOL" && DLLTOOL=dlltool
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7747$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7748if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  lt_cv_sharedlib_from_linklib_cmd='unknown'
7752
7753case $host_os in
7754cygwin* | mingw* | pw32* | cegcc*)
7755  # two different shell functions defined in ltmain.sh;
7756  # decide which one to use based on capabilities of $DLLTOOL
7757  case `$DLLTOOL --help 2>&1` in
7758  *--identify-strict*)
7759    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7760    ;;
7761  *)
7762    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7763    ;;
7764  esac
7765  ;;
7766*)
7767  # fallback: assume linklib IS sharedlib
7768  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7769  ;;
7770esac
7771
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7774$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7775sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7776test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7777
7778
7779
7780
7781
7782
7783
7784if test -n "$ac_tool_prefix"; then
7785  for ac_prog in ar
7786  do
7787    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790$as_echo_n "checking for $ac_word... " >&6; }
7791if ${ac_cv_prog_AR+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  if test -n "$AR"; then
7795  ac_cv_prog_AR="$AR" # Let the user override the test.
7796else
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800  IFS=$as_save_IFS
7801  test -z "$as_dir" && as_dir=.
7802    for ac_exec_ext in '' $ac_executable_extensions; do
7803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806    break 2
7807  fi
7808done
7809  done
7810IFS=$as_save_IFS
7811
7812fi
7813fi
7814AR=$ac_cv_prog_AR
7815if test -n "$AR"; then
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7817$as_echo "$AR" >&6; }
7818else
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
7822
7823
7824    test -n "$AR" && break
7825  done
7826fi
7827if test -z "$AR"; then
7828  ac_ct_AR=$AR
7829  for ac_prog in ar
7830do
7831  # Extract the first word of "$ac_prog", so it can be a program name with args.
7832set dummy $ac_prog; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if ${ac_cv_prog_ac_ct_AR+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  if test -n "$ac_ct_AR"; then
7839  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_ac_ct_AR="$ac_prog"
7849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858ac_ct_AR=$ac_cv_prog_ac_ct_AR
7859if test -n "$ac_ct_AR"; then
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7861$as_echo "$ac_ct_AR" >&6; }
7862else
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867
7868  test -n "$ac_ct_AR" && break
7869done
7870
7871  if test "x$ac_ct_AR" = x; then
7872    AR="false"
7873  else
7874    case $cross_compiling:$ac_tool_warned in
7875yes:)
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878ac_tool_warned=yes ;;
7879esac
7880    AR=$ac_ct_AR
7881  fi
7882fi
7883
7884: ${AR=ar}
7885: ${AR_FLAGS=cru}
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7898$as_echo_n "checking for archiver @FILE support... " >&6; }
7899if ${lt_cv_ar_at_file+:} false; then :
7900  $as_echo_n "(cached) " >&6
7901else
7902  lt_cv_ar_at_file=no
7903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905
7906int
7907main ()
7908{
7909
7910  ;
7911  return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915  echo conftest.$ac_objext > conftest.lst
7916      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7917      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7918  (eval $lt_ar_try) 2>&5
7919  ac_status=$?
7920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921  test $ac_status = 0; }
7922      if test 0 -eq "$ac_status"; then
7923	# Ensure the archiver fails upon bogus file names.
7924	rm -f conftest.$ac_objext libconftest.a
7925	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7926  (eval $lt_ar_try) 2>&5
7927  ac_status=$?
7928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7929  test $ac_status = 0; }
7930	if test 0 -ne "$ac_status"; then
7931          lt_cv_ar_at_file=@
7932        fi
7933      fi
7934      rm -f conftest.* libconftest.a
7935
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7941$as_echo "$lt_cv_ar_at_file" >&6; }
7942
7943if test no = "$lt_cv_ar_at_file"; then
7944  archiver_list_spec=
7945else
7946  archiver_list_spec=$lt_cv_ar_at_file
7947fi
7948
7949
7950
7951
7952
7953
7954
7955if test -n "$ac_tool_prefix"; then
7956  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7957set dummy ${ac_tool_prefix}strip; ac_word=$2
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
7960if ${ac_cv_prog_STRIP+:} false; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963  if test -n "$STRIP"; then
7964  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969  IFS=$as_save_IFS
7970  test -z "$as_dir" && as_dir=.
7971    for ac_exec_ext in '' $ac_executable_extensions; do
7972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975    break 2
7976  fi
7977done
7978  done
7979IFS=$as_save_IFS
7980
7981fi
7982fi
7983STRIP=$ac_cv_prog_STRIP
7984if test -n "$STRIP"; then
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7986$as_echo "$STRIP" >&6; }
7987else
7988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991
7992
7993fi
7994if test -z "$ac_cv_prog_STRIP"; then
7995  ac_ct_STRIP=$STRIP
7996  # Extract the first word of "strip", so it can be a program name with args.
7997set dummy strip; ac_word=$2
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999$as_echo_n "checking for $ac_word... " >&6; }
8000if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  if test -n "$ac_ct_STRIP"; then
8004  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8005else
8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009  IFS=$as_save_IFS
8010  test -z "$as_dir" && as_dir=.
8011    for ac_exec_ext in '' $ac_executable_extensions; do
8012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013    ac_cv_prog_ac_ct_STRIP="strip"
8014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015    break 2
8016  fi
8017done
8018  done
8019IFS=$as_save_IFS
8020
8021fi
8022fi
8023ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8024if test -n "$ac_ct_STRIP"; then
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8026$as_echo "$ac_ct_STRIP" >&6; }
8027else
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
8030fi
8031
8032  if test "x$ac_ct_STRIP" = x; then
8033    STRIP=":"
8034  else
8035    case $cross_compiling:$ac_tool_warned in
8036yes:)
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8039ac_tool_warned=yes ;;
8040esac
8041    STRIP=$ac_ct_STRIP
8042  fi
8043else
8044  STRIP="$ac_cv_prog_STRIP"
8045fi
8046
8047test -z "$STRIP" && STRIP=:
8048
8049
8050
8051
8052
8053
8054if test -n "$ac_tool_prefix"; then
8055  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8056set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058$as_echo_n "checking for $ac_word... " >&6; }
8059if ${ac_cv_prog_RANLIB+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  if test -n "$RANLIB"; then
8063  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068  IFS=$as_save_IFS
8069  test -z "$as_dir" && as_dir=.
8070    for ac_exec_ext in '' $ac_executable_extensions; do
8071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074    break 2
8075  fi
8076done
8077  done
8078IFS=$as_save_IFS
8079
8080fi
8081fi
8082RANLIB=$ac_cv_prog_RANLIB
8083if test -n "$RANLIB"; then
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8085$as_echo "$RANLIB" >&6; }
8086else
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089fi
8090
8091
8092fi
8093if test -z "$ac_cv_prog_RANLIB"; then
8094  ac_ct_RANLIB=$RANLIB
8095  # Extract the first word of "ranlib", so it can be a program name with args.
8096set dummy ranlib; ac_word=$2
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098$as_echo_n "checking for $ac_word... " >&6; }
8099if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  if test -n "$ac_ct_RANLIB"; then
8103  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8104else
8105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106for as_dir in $PATH
8107do
8108  IFS=$as_save_IFS
8109  test -z "$as_dir" && as_dir=.
8110    for ac_exec_ext in '' $ac_executable_extensions; do
8111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112    ac_cv_prog_ac_ct_RANLIB="ranlib"
8113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114    break 2
8115  fi
8116done
8117  done
8118IFS=$as_save_IFS
8119
8120fi
8121fi
8122ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8123if test -n "$ac_ct_RANLIB"; then
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8125$as_echo "$ac_ct_RANLIB" >&6; }
8126else
8127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128$as_echo "no" >&6; }
8129fi
8130
8131  if test "x$ac_ct_RANLIB" = x; then
8132    RANLIB=":"
8133  else
8134    case $cross_compiling:$ac_tool_warned in
8135yes:)
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8138ac_tool_warned=yes ;;
8139esac
8140    RANLIB=$ac_ct_RANLIB
8141  fi
8142else
8143  RANLIB="$ac_cv_prog_RANLIB"
8144fi
8145
8146test -z "$RANLIB" && RANLIB=:
8147
8148
8149
8150
8151
8152
8153# Determine commands to create old-style static archives.
8154old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8155old_postinstall_cmds='chmod 644 $oldlib'
8156old_postuninstall_cmds=
8157
8158if test -n "$RANLIB"; then
8159  case $host_os in
8160  bitrig* | openbsd*)
8161    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8162    ;;
8163  *)
8164    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8165    ;;
8166  esac
8167  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8168fi
8169
8170case $host_os in
8171  darwin*)
8172    lock_old_archive_extraction=yes ;;
8173  *)
8174    lock_old_archive_extraction=no ;;
8175esac
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215# If no C compiler was specified, use CC.
8216LTCC=${LTCC-"$CC"}
8217
8218# If no C compiler flags were specified, use CFLAGS.
8219LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8220
8221# Allow CC to be a program name with arguments.
8222compiler=$CC
8223
8224
8225# Check for command to grab the raw symbol name followed by C symbol from nm.
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8227$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8228if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231
8232# These are sane defaults that work on at least a few old systems.
8233# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8234
8235# Character class describing NM global symbol codes.
8236symcode='[BCDEGRST]'
8237
8238# Regexp to match symbols that can be accessed directly from C.
8239sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8240
8241# Define system-specific variables.
8242case $host_os in
8243aix*)
8244  symcode='[BCDT]'
8245  ;;
8246cygwin* | mingw* | pw32* | cegcc*)
8247  symcode='[ABCDGISTW]'
8248  ;;
8249hpux*)
8250  if test ia64 = "$host_cpu"; then
8251    symcode='[ABCDEGRST]'
8252  fi
8253  ;;
8254irix* | nonstopux*)
8255  symcode='[BCDEGRST]'
8256  ;;
8257osf*)
8258  symcode='[BCDEGQRST]'
8259  ;;
8260solaris*)
8261  symcode='[BDRT]'
8262  ;;
8263sco3.2v5*)
8264  symcode='[DT]'
8265  ;;
8266sysv4.2uw2*)
8267  symcode='[DT]'
8268  ;;
8269sysv5* | sco5v6* | unixware* | OpenUNIX*)
8270  symcode='[ABDT]'
8271  ;;
8272sysv4)
8273  symcode='[DFNSTU]'
8274  ;;
8275esac
8276
8277# If we're using GNU nm, then use its standard symbol codes.
8278case `$NM -V 2>&1` in
8279*GNU* | *'with BFD'*)
8280  symcode='[ABCDGIRSTW]' ;;
8281esac
8282
8283if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8284  # Gets list of data symbols to import.
8285  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8286  # Adjust the below global symbol transforms to fixup imported variables.
8287  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8288  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8289  lt_c_name_lib_hook="\
8290  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8291  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8292else
8293  # Disable hooks by default.
8294  lt_cv_sys_global_symbol_to_import=
8295  lt_cdecl_hook=
8296  lt_c_name_hook=
8297  lt_c_name_lib_hook=
8298fi
8299
8300# Transform an extracted symbol line into a proper C declaration.
8301# Some systems (esp. on ia64) link data and code symbols differently,
8302# so use this general approach.
8303lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8304$lt_cdecl_hook\
8305" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8306" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8307
8308# Transform an extracted symbol line into symbol name and symbol address
8309lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8310$lt_c_name_hook\
8311" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8312" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8313
8314# Transform an extracted symbol line into symbol name with lib prefix and
8315# symbol address.
8316lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8317$lt_c_name_lib_hook\
8318" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8319" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8320" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8321
8322# Handle CRLF in mingw tool chain
8323opt_cr=
8324case $build_os in
8325mingw*)
8326  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8327  ;;
8328esac
8329
8330# Try without a prefix underscore, then with it.
8331for ac_symprfx in "" "_"; do
8332
8333  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8334  symxfrm="\\1 $ac_symprfx\\2 \\2"
8335
8336  # Write the raw and C identifiers.
8337  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8338    # Fake it for dumpbin and say T for any non-static function,
8339    # D for any global variable and I for any imported variable.
8340    # Also find C++ and __fastcall symbols from MSVC++,
8341    # which start with @ or ?.
8342    lt_cv_sys_global_symbol_pipe="$AWK '"\
8343"     {last_section=section; section=\$ 3};"\
8344"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8345"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8346"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8347"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8348"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8349"     \$ 0!~/External *\|/{next};"\
8350"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8351"     {if(hide[section]) next};"\
8352"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8353"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8354"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8355"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8356"     ' prfx=^$ac_symprfx"
8357  else
8358    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8359  fi
8360  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8361
8362  # Check to see that the pipe works correctly.
8363  pipe_works=no
8364
8365  rm -f conftest*
8366  cat > conftest.$ac_ext <<_LT_EOF
8367#ifdef __cplusplus
8368extern "C" {
8369#endif
8370char nm_test_var;
8371void nm_test_func(void);
8372void nm_test_func(void){}
8373#ifdef __cplusplus
8374}
8375#endif
8376int main(){nm_test_var='a';nm_test_func();return(0);}
8377_LT_EOF
8378
8379  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8380  (eval $ac_compile) 2>&5
8381  ac_status=$?
8382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8383  test $ac_status = 0; }; then
8384    # Now try to grab the symbols.
8385    nlist=conftest.nm
8386    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8387    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8388      # Try sorting and uniquifying the output.
8389      if sort "$nlist" | uniq > "$nlist"T; then
8390	mv -f "$nlist"T "$nlist"
8391      else
8392	rm -f "$nlist"T
8393      fi
8394
8395      # Make sure that we snagged all the symbols we need.
8396      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8397	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8398	  cat <<_LT_EOF > conftest.$ac_ext
8399/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8400#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8401/* DATA imports from DLLs on WIN32 can't be const, because runtime
8402   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8403# define LT_DLSYM_CONST
8404#elif defined __osf__
8405/* This system does not cope well with relocations in const data.  */
8406# define LT_DLSYM_CONST
8407#else
8408# define LT_DLSYM_CONST const
8409#endif
8410
8411#ifdef __cplusplus
8412extern "C" {
8413#endif
8414
8415_LT_EOF
8416	  # Now generate the symbol file.
8417	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8418
8419	  cat <<_LT_EOF >> conftest.$ac_ext
8420
8421/* The mapping between symbol names and symbols.  */
8422LT_DLSYM_CONST struct {
8423  const char *name;
8424  void       *address;
8425}
8426lt__PROGRAM__LTX_preloaded_symbols[] =
8427{
8428  { "@PROGRAM@", (void *) 0 },
8429_LT_EOF
8430	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8431	  cat <<\_LT_EOF >> conftest.$ac_ext
8432  {0, (void *) 0}
8433};
8434
8435/* This works around a problem in FreeBSD linker */
8436#ifdef FREEBSD_WORKAROUND
8437static const void *lt_preloaded_setup() {
8438  return lt__PROGRAM__LTX_preloaded_symbols;
8439}
8440#endif
8441
8442#ifdef __cplusplus
8443}
8444#endif
8445_LT_EOF
8446	  # Now try linking the two files.
8447	  mv conftest.$ac_objext conftstm.$ac_objext
8448	  lt_globsym_save_LIBS=$LIBS
8449	  lt_globsym_save_CFLAGS=$CFLAGS
8450	  LIBS=conftstm.$ac_objext
8451	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8452	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8453  (eval $ac_link) 2>&5
8454  ac_status=$?
8455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8457	    pipe_works=yes
8458	  fi
8459	  LIBS=$lt_globsym_save_LIBS
8460	  CFLAGS=$lt_globsym_save_CFLAGS
8461	else
8462	  echo "cannot find nm_test_func in $nlist" >&5
8463	fi
8464      else
8465	echo "cannot find nm_test_var in $nlist" >&5
8466      fi
8467    else
8468      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8469    fi
8470  else
8471    echo "$progname: failed program was:" >&5
8472    cat conftest.$ac_ext >&5
8473  fi
8474  rm -rf conftest* conftst*
8475
8476  # Do not use the global_symbol_pipe unless it works.
8477  if test yes = "$pipe_works"; then
8478    break
8479  else
8480    lt_cv_sys_global_symbol_pipe=
8481  fi
8482done
8483
8484fi
8485
8486if test -z "$lt_cv_sys_global_symbol_pipe"; then
8487  lt_cv_sys_global_symbol_to_cdecl=
8488fi
8489if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8491$as_echo "failed" >&6; }
8492else
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8494$as_echo "ok" >&6; }
8495fi
8496
8497# Response file support.
8498if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8499  nm_file_list_spec='@'
8500elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8501  nm_file_list_spec='@'
8502fi
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8541$as_echo_n "checking for sysroot... " >&6; }
8542
8543# Check whether --with-sysroot was given.
8544if test "${with_sysroot+set}" = set; then :
8545  withval=$with_sysroot;
8546else
8547  with_sysroot=no
8548fi
8549
8550
8551lt_sysroot=
8552case $with_sysroot in #(
8553 yes)
8554   if test yes = "$GCC"; then
8555     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8556   fi
8557   ;; #(
8558 /*)
8559   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8560   ;; #(
8561 no|'')
8562   ;; #(
8563 *)
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8565$as_echo "$with_sysroot" >&6; }
8566   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8567   ;;
8568esac
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8571$as_echo "${lt_sysroot:-no}" >&6; }
8572
8573
8574
8575
8576
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8578$as_echo_n "checking for a working dd... " >&6; }
8579if ${ac_cv_path_lt_DD+:} false; then :
8580  $as_echo_n "(cached) " >&6
8581else
8582  printf 0123456789abcdef0123456789abcdef >conftest.i
8583cat conftest.i conftest.i >conftest2.i
8584: ${lt_DD:=$DD}
8585if test -z "$lt_DD"; then
8586  ac_path_lt_DD_found=false
8587  # Loop through the user's path and test for each of PROGNAME-LIST
8588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589for as_dir in $PATH
8590do
8591  IFS=$as_save_IFS
8592  test -z "$as_dir" && as_dir=.
8593    for ac_prog in dd; do
8594    for ac_exec_ext in '' $ac_executable_extensions; do
8595      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8596      as_fn_executable_p "$ac_path_lt_DD" || continue
8597if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8598  cmp -s conftest.i conftest.out \
8599  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8600fi
8601      $ac_path_lt_DD_found && break 3
8602    done
8603  done
8604  done
8605IFS=$as_save_IFS
8606  if test -z "$ac_cv_path_lt_DD"; then
8607    :
8608  fi
8609else
8610  ac_cv_path_lt_DD=$lt_DD
8611fi
8612
8613rm -f conftest.i conftest2.i conftest.out
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8616$as_echo "$ac_cv_path_lt_DD" >&6; }
8617
8618
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8620$as_echo_n "checking how to truncate binary pipes... " >&6; }
8621if ${lt_cv_truncate_bin+:} false; then :
8622  $as_echo_n "(cached) " >&6
8623else
8624  printf 0123456789abcdef0123456789abcdef >conftest.i
8625cat conftest.i conftest.i >conftest2.i
8626lt_cv_truncate_bin=
8627if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8628  cmp -s conftest.i conftest.out \
8629  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8630fi
8631rm -f conftest.i conftest2.i conftest.out
8632test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8635$as_echo "$lt_cv_truncate_bin" >&6; }
8636
8637
8638
8639
8640
8641
8642
8643# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8644func_cc_basename ()
8645{
8646    for cc_temp in $*""; do
8647      case $cc_temp in
8648        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8649        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8650        \-*) ;;
8651        *) break;;
8652      esac
8653    done
8654    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8655}
8656
8657# Check whether --enable-libtool-lock was given.
8658if test "${enable_libtool_lock+set}" = set; then :
8659  enableval=$enable_libtool_lock;
8660fi
8661
8662test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8663
8664# Some flags need to be propagated to the compiler or linker for good
8665# libtool support.
8666case $host in
8667ia64-*-hpux*)
8668  # Find out what ABI is being produced by ac_compile, and set mode
8669  # options accordingly.
8670  echo 'int i;' > conftest.$ac_ext
8671  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8672  (eval $ac_compile) 2>&5
8673  ac_status=$?
8674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8675  test $ac_status = 0; }; then
8676    case `/usr/bin/file conftest.$ac_objext` in
8677      *ELF-32*)
8678	HPUX_IA64_MODE=32
8679	;;
8680      *ELF-64*)
8681	HPUX_IA64_MODE=64
8682	;;
8683    esac
8684  fi
8685  rm -rf conftest*
8686  ;;
8687*-*-irix6*)
8688  # Find out what ABI is being produced by ac_compile, and set linker
8689  # options accordingly.
8690  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8691  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8692  (eval $ac_compile) 2>&5
8693  ac_status=$?
8694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8695  test $ac_status = 0; }; then
8696    if test yes = "$lt_cv_prog_gnu_ld"; then
8697      case `/usr/bin/file conftest.$ac_objext` in
8698	*32-bit*)
8699	  LD="${LD-ld} -melf32bsmip"
8700	  ;;
8701	*N32*)
8702	  LD="${LD-ld} -melf32bmipn32"
8703	  ;;
8704	*64-bit*)
8705	  LD="${LD-ld} -melf64bmip"
8706	;;
8707      esac
8708    else
8709      case `/usr/bin/file conftest.$ac_objext` in
8710	*32-bit*)
8711	  LD="${LD-ld} -32"
8712	  ;;
8713	*N32*)
8714	  LD="${LD-ld} -n32"
8715	  ;;
8716	*64-bit*)
8717	  LD="${LD-ld} -64"
8718	  ;;
8719      esac
8720    fi
8721  fi
8722  rm -rf conftest*
8723  ;;
8724
8725mips64*-*linux*)
8726  # Find out what ABI is being produced by ac_compile, and set linker
8727  # options accordingly.
8728  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8729  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8730  (eval $ac_compile) 2>&5
8731  ac_status=$?
8732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8733  test $ac_status = 0; }; then
8734    emul=elf
8735    case `/usr/bin/file conftest.$ac_objext` in
8736      *32-bit*)
8737	emul="${emul}32"
8738	;;
8739      *64-bit*)
8740	emul="${emul}64"
8741	;;
8742    esac
8743    case `/usr/bin/file conftest.$ac_objext` in
8744      *MSB*)
8745	emul="${emul}btsmip"
8746	;;
8747      *LSB*)
8748	emul="${emul}ltsmip"
8749	;;
8750    esac
8751    case `/usr/bin/file conftest.$ac_objext` in
8752      *N32*)
8753	emul="${emul}n32"
8754	;;
8755    esac
8756    LD="${LD-ld} -m $emul"
8757  fi
8758  rm -rf conftest*
8759  ;;
8760
8761x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8762s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8763  # Find out what ABI is being produced by ac_compile, and set linker
8764  # options accordingly.  Note that the listed cases only cover the
8765  # situations where additional linker options are needed (such as when
8766  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8767  # vice versa); the common cases where no linker options are needed do
8768  # not appear in the list.
8769  echo 'int i;' > conftest.$ac_ext
8770  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8771  (eval $ac_compile) 2>&5
8772  ac_status=$?
8773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8774  test $ac_status = 0; }; then
8775    case `/usr/bin/file conftest.o` in
8776      *32-bit*)
8777	case $host in
8778	  x86_64-*kfreebsd*-gnu)
8779	    LD="${LD-ld} -m elf_i386_fbsd"
8780	    ;;
8781	  x86_64-*linux*)
8782	    case `/usr/bin/file conftest.o` in
8783	      *x86-64*)
8784		LD="${LD-ld} -m elf32_x86_64"
8785		;;
8786	      *)
8787		LD="${LD-ld} -m elf_i386"
8788		;;
8789	    esac
8790	    ;;
8791	  powerpc64le-*linux*)
8792	    LD="${LD-ld} -m elf32lppclinux"
8793	    ;;
8794	  powerpc64-*linux*)
8795	    LD="${LD-ld} -m elf32ppclinux"
8796	    ;;
8797	  s390x-*linux*)
8798	    LD="${LD-ld} -m elf_s390"
8799	    ;;
8800	  sparc64-*linux*)
8801	    LD="${LD-ld} -m elf32_sparc"
8802	    ;;
8803	esac
8804	;;
8805      *64-bit*)
8806	case $host in
8807	  x86_64-*kfreebsd*-gnu)
8808	    LD="${LD-ld} -m elf_x86_64_fbsd"
8809	    ;;
8810	  x86_64-*linux*)
8811	    LD="${LD-ld} -m elf_x86_64"
8812	    ;;
8813	  powerpcle-*linux*)
8814	    LD="${LD-ld} -m elf64lppc"
8815	    ;;
8816	  powerpc-*linux*)
8817	    LD="${LD-ld} -m elf64ppc"
8818	    ;;
8819	  s390*-*linux*|s390*-*tpf*)
8820	    LD="${LD-ld} -m elf64_s390"
8821	    ;;
8822	  sparc*-*linux*)
8823	    LD="${LD-ld} -m elf64_sparc"
8824	    ;;
8825	esac
8826	;;
8827    esac
8828  fi
8829  rm -rf conftest*
8830  ;;
8831
8832*-*-sco3.2v5*)
8833  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8834  SAVE_CFLAGS=$CFLAGS
8835  CFLAGS="$CFLAGS -belf"
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8837$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8838if ${lt_cv_cc_needs_belf+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  ac_ext=c
8842ac_cpp='$CPP $CPPFLAGS'
8843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845ac_compiler_gnu=$ac_cv_c_compiler_gnu
8846
8847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849
8850int
8851main ()
8852{
8853
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858if ac_fn_c_try_link "$LINENO"; then :
8859  lt_cv_cc_needs_belf=yes
8860else
8861  lt_cv_cc_needs_belf=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext \
8864    conftest$ac_exeext conftest.$ac_ext
8865     ac_ext=c
8866ac_cpp='$CPP $CPPFLAGS'
8867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8873$as_echo "$lt_cv_cc_needs_belf" >&6; }
8874  if test yes != "$lt_cv_cc_needs_belf"; then
8875    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8876    CFLAGS=$SAVE_CFLAGS
8877  fi
8878  ;;
8879*-*solaris*)
8880  # Find out what ABI is being produced by ac_compile, and set linker
8881  # options accordingly.
8882  echo 'int i;' > conftest.$ac_ext
8883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8884  (eval $ac_compile) 2>&5
8885  ac_status=$?
8886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8887  test $ac_status = 0; }; then
8888    case `/usr/bin/file conftest.o` in
8889    *64-bit*)
8890      case $lt_cv_prog_gnu_ld in
8891      yes*)
8892        case $host in
8893        i?86-*-solaris*|x86_64-*-solaris*)
8894          LD="${LD-ld} -m elf_x86_64"
8895          ;;
8896        sparc*-*-solaris*)
8897          LD="${LD-ld} -m elf64_sparc"
8898          ;;
8899        esac
8900        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8901        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8902          LD=${LD-ld}_sol2
8903        fi
8904        ;;
8905      *)
8906	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8907	  LD="${LD-ld} -64"
8908	fi
8909	;;
8910      esac
8911      ;;
8912    esac
8913  fi
8914  rm -rf conftest*
8915  ;;
8916esac
8917
8918need_locks=$enable_libtool_lock
8919
8920if test -n "$ac_tool_prefix"; then
8921  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8922set dummy ${ac_tool_prefix}mt; ac_word=$2
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924$as_echo_n "checking for $ac_word... " >&6; }
8925if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  if test -n "$MANIFEST_TOOL"; then
8929  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8930else
8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932for as_dir in $PATH
8933do
8934  IFS=$as_save_IFS
8935  test -z "$as_dir" && as_dir=.
8936    for ac_exec_ext in '' $ac_executable_extensions; do
8937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8938    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940    break 2
8941  fi
8942done
8943  done
8944IFS=$as_save_IFS
8945
8946fi
8947fi
8948MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8949if test -n "$MANIFEST_TOOL"; then
8950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8951$as_echo "$MANIFEST_TOOL" >&6; }
8952else
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954$as_echo "no" >&6; }
8955fi
8956
8957
8958fi
8959if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8960  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8961  # Extract the first word of "mt", so it can be a program name with args.
8962set dummy mt; ac_word=$2
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964$as_echo_n "checking for $ac_word... " >&6; }
8965if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8966  $as_echo_n "(cached) " >&6
8967else
8968  if test -n "$ac_ct_MANIFEST_TOOL"; then
8969  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8970else
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974  IFS=$as_save_IFS
8975  test -z "$as_dir" && as_dir=.
8976    for ac_exec_ext in '' $ac_executable_extensions; do
8977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980    break 2
8981  fi
8982done
8983  done
8984IFS=$as_save_IFS
8985
8986fi
8987fi
8988ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8989if test -n "$ac_ct_MANIFEST_TOOL"; then
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8991$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8992else
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
8995fi
8996
8997  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8998    MANIFEST_TOOL=":"
8999  else
9000    case $cross_compiling:$ac_tool_warned in
9001yes:)
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9004ac_tool_warned=yes ;;
9005esac
9006    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9007  fi
9008else
9009  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9010fi
9011
9012test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9014$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9015if ${lt_cv_path_mainfest_tool+:} false; then :
9016  $as_echo_n "(cached) " >&6
9017else
9018  lt_cv_path_mainfest_tool=no
9019  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9020  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9021  cat conftest.err >&5
9022  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9023    lt_cv_path_mainfest_tool=yes
9024  fi
9025  rm -f conftest*
9026fi
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9028$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9029if test yes != "$lt_cv_path_mainfest_tool"; then
9030  MANIFEST_TOOL=:
9031fi
9032
9033
9034
9035
9036
9037
9038  case $host_os in
9039    rhapsody* | darwin*)
9040    if test -n "$ac_tool_prefix"; then
9041  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9042set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044$as_echo_n "checking for $ac_word... " >&6; }
9045if ${ac_cv_prog_DSYMUTIL+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  if test -n "$DSYMUTIL"; then
9049  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9050else
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054  IFS=$as_save_IFS
9055  test -z "$as_dir" && as_dir=.
9056    for ac_exec_ext in '' $ac_executable_extensions; do
9057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060    break 2
9061  fi
9062done
9063  done
9064IFS=$as_save_IFS
9065
9066fi
9067fi
9068DSYMUTIL=$ac_cv_prog_DSYMUTIL
9069if test -n "$DSYMUTIL"; then
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9071$as_echo "$DSYMUTIL" >&6; }
9072else
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
9075fi
9076
9077
9078fi
9079if test -z "$ac_cv_prog_DSYMUTIL"; then
9080  ac_ct_DSYMUTIL=$DSYMUTIL
9081  # Extract the first word of "dsymutil", so it can be a program name with args.
9082set dummy dsymutil; ac_word=$2
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084$as_echo_n "checking for $ac_word... " >&6; }
9085if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9086  $as_echo_n "(cached) " >&6
9087else
9088  if test -n "$ac_ct_DSYMUTIL"; then
9089  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9090else
9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094  IFS=$as_save_IFS
9095  test -z "$as_dir" && as_dir=.
9096    for ac_exec_ext in '' $ac_executable_extensions; do
9097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100    break 2
9101  fi
9102done
9103  done
9104IFS=$as_save_IFS
9105
9106fi
9107fi
9108ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9109if test -n "$ac_ct_DSYMUTIL"; then
9110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9111$as_echo "$ac_ct_DSYMUTIL" >&6; }
9112else
9113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
9115fi
9116
9117  if test "x$ac_ct_DSYMUTIL" = x; then
9118    DSYMUTIL=":"
9119  else
9120    case $cross_compiling:$ac_tool_warned in
9121yes:)
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124ac_tool_warned=yes ;;
9125esac
9126    DSYMUTIL=$ac_ct_DSYMUTIL
9127  fi
9128else
9129  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9130fi
9131
9132    if test -n "$ac_tool_prefix"; then
9133  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9134set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136$as_echo_n "checking for $ac_word... " >&6; }
9137if ${ac_cv_prog_NMEDIT+:} false; then :
9138  $as_echo_n "(cached) " >&6
9139else
9140  if test -n "$NMEDIT"; then
9141  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9142else
9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144for as_dir in $PATH
9145do
9146  IFS=$as_save_IFS
9147  test -z "$as_dir" && as_dir=.
9148    for ac_exec_ext in '' $ac_executable_extensions; do
9149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9150    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152    break 2
9153  fi
9154done
9155  done
9156IFS=$as_save_IFS
9157
9158fi
9159fi
9160NMEDIT=$ac_cv_prog_NMEDIT
9161if test -n "$NMEDIT"; then
9162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9163$as_echo "$NMEDIT" >&6; }
9164else
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
9167fi
9168
9169
9170fi
9171if test -z "$ac_cv_prog_NMEDIT"; then
9172  ac_ct_NMEDIT=$NMEDIT
9173  # Extract the first word of "nmedit", so it can be a program name with args.
9174set dummy nmedit; ac_word=$2
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176$as_echo_n "checking for $ac_word... " >&6; }
9177if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9178  $as_echo_n "(cached) " >&6
9179else
9180  if test -n "$ac_ct_NMEDIT"; then
9181  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9182else
9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184for as_dir in $PATH
9185do
9186  IFS=$as_save_IFS
9187  test -z "$as_dir" && as_dir=.
9188    for ac_exec_ext in '' $ac_executable_extensions; do
9189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9190    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192    break 2
9193  fi
9194done
9195  done
9196IFS=$as_save_IFS
9197
9198fi
9199fi
9200ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9201if test -n "$ac_ct_NMEDIT"; then
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9203$as_echo "$ac_ct_NMEDIT" >&6; }
9204else
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206$as_echo "no" >&6; }
9207fi
9208
9209  if test "x$ac_ct_NMEDIT" = x; then
9210    NMEDIT=":"
9211  else
9212    case $cross_compiling:$ac_tool_warned in
9213yes:)
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216ac_tool_warned=yes ;;
9217esac
9218    NMEDIT=$ac_ct_NMEDIT
9219  fi
9220else
9221  NMEDIT="$ac_cv_prog_NMEDIT"
9222fi
9223
9224    if test -n "$ac_tool_prefix"; then
9225  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9226set dummy ${ac_tool_prefix}lipo; ac_word=$2
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228$as_echo_n "checking for $ac_word... " >&6; }
9229if ${ac_cv_prog_LIPO+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  if test -n "$LIPO"; then
9233  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9234else
9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $PATH
9237do
9238  IFS=$as_save_IFS
9239  test -z "$as_dir" && as_dir=.
9240    for ac_exec_ext in '' $ac_executable_extensions; do
9241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244    break 2
9245  fi
9246done
9247  done
9248IFS=$as_save_IFS
9249
9250fi
9251fi
9252LIPO=$ac_cv_prog_LIPO
9253if test -n "$LIPO"; then
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9255$as_echo "$LIPO" >&6; }
9256else
9257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258$as_echo "no" >&6; }
9259fi
9260
9261
9262fi
9263if test -z "$ac_cv_prog_LIPO"; then
9264  ac_ct_LIPO=$LIPO
9265  # Extract the first word of "lipo", so it can be a program name with args.
9266set dummy lipo; ac_word=$2
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268$as_echo_n "checking for $ac_word... " >&6; }
9269if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9270  $as_echo_n "(cached) " >&6
9271else
9272  if test -n "$ac_ct_LIPO"; then
9273  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9274else
9275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276for as_dir in $PATH
9277do
9278  IFS=$as_save_IFS
9279  test -z "$as_dir" && as_dir=.
9280    for ac_exec_ext in '' $ac_executable_extensions; do
9281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9282    ac_cv_prog_ac_ct_LIPO="lipo"
9283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284    break 2
9285  fi
9286done
9287  done
9288IFS=$as_save_IFS
9289
9290fi
9291fi
9292ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9293if test -n "$ac_ct_LIPO"; then
9294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9295$as_echo "$ac_ct_LIPO" >&6; }
9296else
9297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298$as_echo "no" >&6; }
9299fi
9300
9301  if test "x$ac_ct_LIPO" = x; then
9302    LIPO=":"
9303  else
9304    case $cross_compiling:$ac_tool_warned in
9305yes:)
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308ac_tool_warned=yes ;;
9309esac
9310    LIPO=$ac_ct_LIPO
9311  fi
9312else
9313  LIPO="$ac_cv_prog_LIPO"
9314fi
9315
9316    if test -n "$ac_tool_prefix"; then
9317  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9318set dummy ${ac_tool_prefix}otool; ac_word=$2
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320$as_echo_n "checking for $ac_word... " >&6; }
9321if ${ac_cv_prog_OTOOL+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  if test -n "$OTOOL"; then
9325  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9326else
9327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328for as_dir in $PATH
9329do
9330  IFS=$as_save_IFS
9331  test -z "$as_dir" && as_dir=.
9332    for ac_exec_ext in '' $ac_executable_extensions; do
9333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9334    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336    break 2
9337  fi
9338done
9339  done
9340IFS=$as_save_IFS
9341
9342fi
9343fi
9344OTOOL=$ac_cv_prog_OTOOL
9345if test -n "$OTOOL"; then
9346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9347$as_echo "$OTOOL" >&6; }
9348else
9349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350$as_echo "no" >&6; }
9351fi
9352
9353
9354fi
9355if test -z "$ac_cv_prog_OTOOL"; then
9356  ac_ct_OTOOL=$OTOOL
9357  # Extract the first word of "otool", so it can be a program name with args.
9358set dummy otool; ac_word=$2
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9362  $as_echo_n "(cached) " >&6
9363else
9364  if test -n "$ac_ct_OTOOL"; then
9365  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9366else
9367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368for as_dir in $PATH
9369do
9370  IFS=$as_save_IFS
9371  test -z "$as_dir" && as_dir=.
9372    for ac_exec_ext in '' $ac_executable_extensions; do
9373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9374    ac_cv_prog_ac_ct_OTOOL="otool"
9375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376    break 2
9377  fi
9378done
9379  done
9380IFS=$as_save_IFS
9381
9382fi
9383fi
9384ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9385if test -n "$ac_ct_OTOOL"; then
9386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9387$as_echo "$ac_ct_OTOOL" >&6; }
9388else
9389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390$as_echo "no" >&6; }
9391fi
9392
9393  if test "x$ac_ct_OTOOL" = x; then
9394    OTOOL=":"
9395  else
9396    case $cross_compiling:$ac_tool_warned in
9397yes:)
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9400ac_tool_warned=yes ;;
9401esac
9402    OTOOL=$ac_ct_OTOOL
9403  fi
9404else
9405  OTOOL="$ac_cv_prog_OTOOL"
9406fi
9407
9408    if test -n "$ac_tool_prefix"; then
9409  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9410set dummy ${ac_tool_prefix}otool64; ac_word=$2
9411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412$as_echo_n "checking for $ac_word... " >&6; }
9413if ${ac_cv_prog_OTOOL64+:} false; then :
9414  $as_echo_n "(cached) " >&6
9415else
9416  if test -n "$OTOOL64"; then
9417  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9418else
9419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420for as_dir in $PATH
9421do
9422  IFS=$as_save_IFS
9423  test -z "$as_dir" && as_dir=.
9424    for ac_exec_ext in '' $ac_executable_extensions; do
9425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9426    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428    break 2
9429  fi
9430done
9431  done
9432IFS=$as_save_IFS
9433
9434fi
9435fi
9436OTOOL64=$ac_cv_prog_OTOOL64
9437if test -n "$OTOOL64"; then
9438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9439$as_echo "$OTOOL64" >&6; }
9440else
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442$as_echo "no" >&6; }
9443fi
9444
9445
9446fi
9447if test -z "$ac_cv_prog_OTOOL64"; then
9448  ac_ct_OTOOL64=$OTOOL64
9449  # Extract the first word of "otool64", so it can be a program name with args.
9450set dummy otool64; ac_word=$2
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452$as_echo_n "checking for $ac_word... " >&6; }
9453if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456  if test -n "$ac_ct_OTOOL64"; then
9457  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462  IFS=$as_save_IFS
9463  test -z "$as_dir" && as_dir=.
9464    for ac_exec_ext in '' $ac_executable_extensions; do
9465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9466    ac_cv_prog_ac_ct_OTOOL64="otool64"
9467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468    break 2
9469  fi
9470done
9471  done
9472IFS=$as_save_IFS
9473
9474fi
9475fi
9476ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9477if test -n "$ac_ct_OTOOL64"; then
9478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9479$as_echo "$ac_ct_OTOOL64" >&6; }
9480else
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482$as_echo "no" >&6; }
9483fi
9484
9485  if test "x$ac_ct_OTOOL64" = x; then
9486    OTOOL64=":"
9487  else
9488    case $cross_compiling:$ac_tool_warned in
9489yes:)
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9492ac_tool_warned=yes ;;
9493esac
9494    OTOOL64=$ac_ct_OTOOL64
9495  fi
9496else
9497  OTOOL64="$ac_cv_prog_OTOOL64"
9498fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9527$as_echo_n "checking for -single_module linker flag... " >&6; }
9528if ${lt_cv_apple_cc_single_mod+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  lt_cv_apple_cc_single_mod=no
9532      if test -z "$LT_MULTI_MODULE"; then
9533	# By default we will add the -single_module flag. You can override
9534	# by either setting the environment variable LT_MULTI_MODULE
9535	# non-empty at configure time, or by adding -multi_module to the
9536	# link flags.
9537	rm -rf libconftest.dylib*
9538	echo "int foo(void){return 1;}" > conftest.c
9539	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9540-dynamiclib -Wl,-single_module conftest.c" >&5
9541	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9542	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9543        _lt_result=$?
9544	# If there is a non-empty error log, and "single_module"
9545	# appears in it, assume the flag caused a linker warning
9546        if test -s conftest.err && $GREP single_module conftest.err; then
9547	  cat conftest.err >&5
9548	# Otherwise, if the output was created with a 0 exit code from
9549	# the compiler, it worked.
9550	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9551	  lt_cv_apple_cc_single_mod=yes
9552	else
9553	  cat conftest.err >&5
9554	fi
9555	rm -rf libconftest.dylib*
9556	rm -f conftest.*
9557      fi
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9560$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9561
9562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9563$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9564if ${lt_cv_ld_exported_symbols_list+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  lt_cv_ld_exported_symbols_list=no
9568      save_LDFLAGS=$LDFLAGS
9569      echo "_main" > conftest.sym
9570      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9571      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572/* end confdefs.h.  */
9573
9574int
9575main ()
9576{
9577
9578  ;
9579  return 0;
9580}
9581_ACEOF
9582if ac_fn_c_try_link "$LINENO"; then :
9583  lt_cv_ld_exported_symbols_list=yes
9584else
9585  lt_cv_ld_exported_symbols_list=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext \
9588    conftest$ac_exeext conftest.$ac_ext
9589	LDFLAGS=$save_LDFLAGS
9590
9591fi
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9593$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9594
9595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9596$as_echo_n "checking for -force_load linker flag... " >&6; }
9597if ${lt_cv_ld_force_load+:} false; then :
9598  $as_echo_n "(cached) " >&6
9599else
9600  lt_cv_ld_force_load=no
9601      cat > conftest.c << _LT_EOF
9602int forced_loaded() { return 2;}
9603_LT_EOF
9604      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9605      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9606      echo "$AR cru libconftest.a conftest.o" >&5
9607      $AR cru libconftest.a conftest.o 2>&5
9608      echo "$RANLIB libconftest.a" >&5
9609      $RANLIB libconftest.a 2>&5
9610      cat > conftest.c << _LT_EOF
9611int main() { return 0;}
9612_LT_EOF
9613      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9614      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9615      _lt_result=$?
9616      if test -s conftest.err && $GREP force_load conftest.err; then
9617	cat conftest.err >&5
9618      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9619	lt_cv_ld_force_load=yes
9620      else
9621	cat conftest.err >&5
9622      fi
9623        rm -f conftest.err libconftest.a conftest conftest.c
9624        rm -rf conftest.dSYM
9625
9626fi
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9628$as_echo "$lt_cv_ld_force_load" >&6; }
9629    case $host_os in
9630    rhapsody* | darwin1.[012])
9631      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9632    darwin1.*)
9633      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9634    darwin*) # darwin 5.x on
9635      # if running on 10.5 or later, the deployment target defaults
9636      # to the OS version, if on x86, and 10.4, the deployment
9637      # target defaults to 10.4. Don't you love it?
9638      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9639	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9640	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9641	10.[012][,.]*)
9642	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9643	10.*)
9644	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9645      esac
9646    ;;
9647  esac
9648    if test yes = "$lt_cv_apple_cc_single_mod"; then
9649      _lt_dar_single_mod='$single_module'
9650    fi
9651    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9652      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9653    else
9654      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9655    fi
9656    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9657      _lt_dsymutil='~$DSYMUTIL $lib || :'
9658    else
9659      _lt_dsymutil=
9660    fi
9661    ;;
9662  esac
9663
9664# func_munge_path_list VARIABLE PATH
9665# -----------------------------------
9666# VARIABLE is name of variable containing _space_ separated list of
9667# directories to be munged by the contents of PATH, which is string
9668# having a format:
9669# "DIR[:DIR]:"
9670#       string "DIR[ DIR]" will be prepended to VARIABLE
9671# ":DIR[:DIR]"
9672#       string "DIR[ DIR]" will be appended to VARIABLE
9673# "DIRP[:DIRP]::[DIRA:]DIRA"
9674#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9675#       "DIRA[ DIRA]" will be appended to VARIABLE
9676# "DIR[:DIR]"
9677#       VARIABLE will be replaced by "DIR[ DIR]"
9678func_munge_path_list ()
9679{
9680    case x$2 in
9681    x)
9682        ;;
9683    *:)
9684        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9685        ;;
9686    x:*)
9687        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9688        ;;
9689    *::*)
9690        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9691        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9692        ;;
9693    *)
9694        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9695        ;;
9696    esac
9697}
9698
9699for ac_header in dlfcn.h
9700do :
9701  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9702"
9703if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9704  cat >>confdefs.h <<_ACEOF
9705#define HAVE_DLFCN_H 1
9706_ACEOF
9707
9708fi
9709
9710done
9711
9712
9713
9714
9715func_stripname_cnf ()
9716{
9717  case $2 in
9718  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9719  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9720  esac
9721} # func_stripname_cnf
9722
9723
9724
9725
9726
9727# Set options
9728# Check whether --enable-static was given.
9729if test "${enable_static+set}" = set; then :
9730  enableval=$enable_static; p=${PACKAGE-default}
9731    case $enableval in
9732    yes) enable_static=yes ;;
9733    no) enable_static=no ;;
9734    *)
9735     enable_static=no
9736      # Look at the argument we got.  We use all the common list separators.
9737      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9738      for pkg in $enableval; do
9739	IFS=$lt_save_ifs
9740	if test "X$pkg" = "X$p"; then
9741	  enable_static=yes
9742	fi
9743      done
9744      IFS=$lt_save_ifs
9745      ;;
9746    esac
9747else
9748  enable_static=no
9749fi
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760        enable_dlopen=no
9761
9762
9763  enable_win32_dll=no
9764
9765
9766            # Check whether --enable-shared was given.
9767if test "${enable_shared+set}" = set; then :
9768  enableval=$enable_shared; p=${PACKAGE-default}
9769    case $enableval in
9770    yes) enable_shared=yes ;;
9771    no) enable_shared=no ;;
9772    *)
9773      enable_shared=no
9774      # Look at the argument we got.  We use all the common list separators.
9775      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9776      for pkg in $enableval; do
9777	IFS=$lt_save_ifs
9778	if test "X$pkg" = "X$p"; then
9779	  enable_shared=yes
9780	fi
9781      done
9782      IFS=$lt_save_ifs
9783      ;;
9784    esac
9785else
9786  enable_shared=yes
9787fi
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799# Check whether --with-pic was given.
9800if test "${with_pic+set}" = set; then :
9801  withval=$with_pic; lt_p=${PACKAGE-default}
9802    case $withval in
9803    yes|no) pic_mode=$withval ;;
9804    *)
9805      pic_mode=default
9806      # Look at the argument we got.  We use all the common list separators.
9807      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9808      for lt_pkg in $withval; do
9809	IFS=$lt_save_ifs
9810	if test "X$lt_pkg" = "X$lt_p"; then
9811	  pic_mode=yes
9812	fi
9813      done
9814      IFS=$lt_save_ifs
9815      ;;
9816    esac
9817else
9818  pic_mode=default
9819fi
9820
9821
9822
9823
9824
9825
9826
9827
9828  # Check whether --enable-fast-install was given.
9829if test "${enable_fast_install+set}" = set; then :
9830  enableval=$enable_fast_install; p=${PACKAGE-default}
9831    case $enableval in
9832    yes) enable_fast_install=yes ;;
9833    no) enable_fast_install=no ;;
9834    *)
9835      enable_fast_install=no
9836      # Look at the argument we got.  We use all the common list separators.
9837      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9838      for pkg in $enableval; do
9839	IFS=$lt_save_ifs
9840	if test "X$pkg" = "X$p"; then
9841	  enable_fast_install=yes
9842	fi
9843      done
9844      IFS=$lt_save_ifs
9845      ;;
9846    esac
9847else
9848  enable_fast_install=yes
9849fi
9850
9851
9852
9853
9854
9855
9856
9857
9858  shared_archive_member_spec=
9859case $host,$enable_shared in
9860power*-*-aix[5-9]*,yes)
9861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9862$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9863
9864# Check whether --with-aix-soname was given.
9865if test "${with_aix_soname+set}" = set; then :
9866  withval=$with_aix_soname; case $withval in
9867    aix|svr4|both)
9868      ;;
9869    *)
9870      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9871      ;;
9872    esac
9873    lt_cv_with_aix_soname=$with_aix_soname
9874else
9875  if ${lt_cv_with_aix_soname+:} false; then :
9876  $as_echo_n "(cached) " >&6
9877else
9878  lt_cv_with_aix_soname=aix
9879fi
9880
9881    with_aix_soname=$lt_cv_with_aix_soname
9882fi
9883
9884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9885$as_echo "$with_aix_soname" >&6; }
9886  if test aix != "$with_aix_soname"; then
9887    # For the AIX way of multilib, we name the shared archive member
9888    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9889    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9890    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9891    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9892    if test 64 = "${OBJECT_MODE-32}"; then
9893      shared_archive_member_spec=shr_64
9894    else
9895      shared_archive_member_spec=shr
9896    fi
9897  fi
9898  ;;
9899*)
9900  with_aix_soname=aix
9901  ;;
9902esac
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913# This can be used to rebuild libtool when needed
9914LIBTOOL_DEPS=$ltmain
9915
9916# Always use our own libtool.
9917LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948test -z "$LN_S" && LN_S="ln -s"
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963if test -n "${ZSH_VERSION+set}"; then
9964   setopt NO_GLOB_SUBST
9965fi
9966
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9968$as_echo_n "checking for objdir... " >&6; }
9969if ${lt_cv_objdir+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  rm -f .libs 2>/dev/null
9973mkdir .libs 2>/dev/null
9974if test -d .libs; then
9975  lt_cv_objdir=.libs
9976else
9977  # MS-DOS does not allow filenames that begin with a dot.
9978  lt_cv_objdir=_libs
9979fi
9980rmdir .libs 2>/dev/null
9981fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9983$as_echo "$lt_cv_objdir" >&6; }
9984objdir=$lt_cv_objdir
9985
9986
9987
9988
9989
9990cat >>confdefs.h <<_ACEOF
9991#define LT_OBJDIR "$lt_cv_objdir/"
9992_ACEOF
9993
9994
9995
9996
9997case $host_os in
9998aix3*)
9999  # AIX sometimes has problems with the GCC collect2 program.  For some
10000  # reason, if we set the COLLECT_NAMES environment variable, the problems
10001  # vanish in a puff of smoke.
10002  if test set != "${COLLECT_NAMES+set}"; then
10003    COLLECT_NAMES=
10004    export COLLECT_NAMES
10005  fi
10006  ;;
10007esac
10008
10009# Global variables:
10010ofile=libtool
10011can_build_shared=yes
10012
10013# All known linkers require a '.a' archive for static linking (except MSVC,
10014# which needs '.lib').
10015libext=a
10016
10017with_gnu_ld=$lt_cv_prog_gnu_ld
10018
10019old_CC=$CC
10020old_CFLAGS=$CFLAGS
10021
10022# Set sane defaults for various variables
10023test -z "$CC" && CC=cc
10024test -z "$LTCC" && LTCC=$CC
10025test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10026test -z "$LD" && LD=ld
10027test -z "$ac_objext" && ac_objext=o
10028
10029func_cc_basename $compiler
10030cc_basename=$func_cc_basename_result
10031
10032
10033# Only perform the check for file, if the check method requires it
10034test -z "$MAGIC_CMD" && MAGIC_CMD=file
10035case $deplibs_check_method in
10036file_magic*)
10037  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10039$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10040if ${lt_cv_path_MAGIC_CMD+:} false; then :
10041  $as_echo_n "(cached) " >&6
10042else
10043  case $MAGIC_CMD in
10044[\\/*] |  ?:[\\/]*)
10045  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10046  ;;
10047*)
10048  lt_save_MAGIC_CMD=$MAGIC_CMD
10049  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10050  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10051  for ac_dir in $ac_dummy; do
10052    IFS=$lt_save_ifs
10053    test -z "$ac_dir" && ac_dir=.
10054    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10055      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10056      if test -n "$file_magic_test_file"; then
10057	case $deplibs_check_method in
10058	"file_magic "*)
10059	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10060	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10061	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10062	    $EGREP "$file_magic_regex" > /dev/null; then
10063	    :
10064	  else
10065	    cat <<_LT_EOF 1>&2
10066
10067*** Warning: the command libtool uses to detect shared libraries,
10068*** $file_magic_cmd, produces output that libtool cannot recognize.
10069*** The result is that libtool may fail to recognize shared libraries
10070*** as such.  This will affect the creation of libtool libraries that
10071*** depend on shared libraries, but programs linked with such libtool
10072*** libraries will work regardless of this problem.  Nevertheless, you
10073*** may want to report the problem to your system manager and/or to
10074*** bug-libtool@gnu.org
10075
10076_LT_EOF
10077	  fi ;;
10078	esac
10079      fi
10080      break
10081    fi
10082  done
10083  IFS=$lt_save_ifs
10084  MAGIC_CMD=$lt_save_MAGIC_CMD
10085  ;;
10086esac
10087fi
10088
10089MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10090if test -n "$MAGIC_CMD"; then
10091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10092$as_echo "$MAGIC_CMD" >&6; }
10093else
10094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095$as_echo "no" >&6; }
10096fi
10097
10098
10099
10100
10101
10102if test -z "$lt_cv_path_MAGIC_CMD"; then
10103  if test -n "$ac_tool_prefix"; then
10104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10105$as_echo_n "checking for file... " >&6; }
10106if ${lt_cv_path_MAGIC_CMD+:} false; then :
10107  $as_echo_n "(cached) " >&6
10108else
10109  case $MAGIC_CMD in
10110[\\/*] |  ?:[\\/]*)
10111  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10112  ;;
10113*)
10114  lt_save_MAGIC_CMD=$MAGIC_CMD
10115  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10116  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10117  for ac_dir in $ac_dummy; do
10118    IFS=$lt_save_ifs
10119    test -z "$ac_dir" && ac_dir=.
10120    if test -f "$ac_dir/file"; then
10121      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10122      if test -n "$file_magic_test_file"; then
10123	case $deplibs_check_method in
10124	"file_magic "*)
10125	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10126	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10127	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10128	    $EGREP "$file_magic_regex" > /dev/null; then
10129	    :
10130	  else
10131	    cat <<_LT_EOF 1>&2
10132
10133*** Warning: the command libtool uses to detect shared libraries,
10134*** $file_magic_cmd, produces output that libtool cannot recognize.
10135*** The result is that libtool may fail to recognize shared libraries
10136*** as such.  This will affect the creation of libtool libraries that
10137*** depend on shared libraries, but programs linked with such libtool
10138*** libraries will work regardless of this problem.  Nevertheless, you
10139*** may want to report the problem to your system manager and/or to
10140*** bug-libtool@gnu.org
10141
10142_LT_EOF
10143	  fi ;;
10144	esac
10145      fi
10146      break
10147    fi
10148  done
10149  IFS=$lt_save_ifs
10150  MAGIC_CMD=$lt_save_MAGIC_CMD
10151  ;;
10152esac
10153fi
10154
10155MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10156if test -n "$MAGIC_CMD"; then
10157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10158$as_echo "$MAGIC_CMD" >&6; }
10159else
10160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
10162fi
10163
10164
10165  else
10166    MAGIC_CMD=:
10167  fi
10168fi
10169
10170  fi
10171  ;;
10172esac
10173
10174# Use C for the default configuration in the libtool script
10175
10176lt_save_CC=$CC
10177ac_ext=c
10178ac_cpp='$CPP $CPPFLAGS'
10179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10181ac_compiler_gnu=$ac_cv_c_compiler_gnu
10182
10183
10184# Source file extension for C test sources.
10185ac_ext=c
10186
10187# Object file extension for compiled C test sources.
10188objext=o
10189objext=$objext
10190
10191# Code to be used in simple compile tests
10192lt_simple_compile_test_code="int some_variable = 0;"
10193
10194# Code to be used in simple link tests
10195lt_simple_link_test_code='int main(){return(0);}'
10196
10197
10198
10199
10200
10201
10202
10203# If no C compiler was specified, use CC.
10204LTCC=${LTCC-"$CC"}
10205
10206# If no C compiler flags were specified, use CFLAGS.
10207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10208
10209# Allow CC to be a program name with arguments.
10210compiler=$CC
10211
10212# Save the default compiler, since it gets overwritten when the other
10213# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10214compiler_DEFAULT=$CC
10215
10216# save warnings/boilerplate of simple test code
10217ac_outfile=conftest.$ac_objext
10218echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10220_lt_compiler_boilerplate=`cat conftest.err`
10221$RM conftest*
10222
10223ac_outfile=conftest.$ac_objext
10224echo "$lt_simple_link_test_code" >conftest.$ac_ext
10225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10226_lt_linker_boilerplate=`cat conftest.err`
10227$RM -r conftest*
10228
10229
10230## CAVEAT EMPTOR:
10231## There is no encapsulation within the following macros, do not change
10232## the running order or otherwise move them around unless you know exactly
10233## what you are doing...
10234if test -n "$compiler"; then
10235
10236lt_prog_compiler_no_builtin_flag=
10237
10238if test yes = "$GCC"; then
10239  case $cc_basename in
10240  nvcc*)
10241    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10242  *)
10243    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10244  esac
10245
10246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10247$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10248if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10249  $as_echo_n "(cached) " >&6
10250else
10251  lt_cv_prog_compiler_rtti_exceptions=no
10252   ac_outfile=conftest.$ac_objext
10253   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10254   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10255   # Insert the option either (1) after the last *FLAGS variable, or
10256   # (2) before a word containing "conftest.", or (3) at the end.
10257   # Note that $ac_compile itself does not contain backslashes and begins
10258   # with a dollar sign (not a hyphen), so the echo should work correctly.
10259   # The option is referenced via a variable to avoid confusing sed.
10260   lt_compile=`echo "$ac_compile" | $SED \
10261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10263   -e 's:$: $lt_compiler_flag:'`
10264   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10265   (eval "$lt_compile" 2>conftest.err)
10266   ac_status=$?
10267   cat conftest.err >&5
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   if (exit $ac_status) && test -s "$ac_outfile"; then
10270     # The compiler can only warn and ignore the option if not recognized
10271     # So say no if there are warnings other than the usual output.
10272     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10273     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10274     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10275       lt_cv_prog_compiler_rtti_exceptions=yes
10276     fi
10277   fi
10278   $RM conftest*
10279
10280fi
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10282$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10283
10284if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10285    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10286else
10287    :
10288fi
10289
10290fi
10291
10292
10293
10294
10295
10296
10297  lt_prog_compiler_wl=
10298lt_prog_compiler_pic=
10299lt_prog_compiler_static=
10300
10301
10302  if test yes = "$GCC"; then
10303    lt_prog_compiler_wl='-Wl,'
10304    lt_prog_compiler_static='-static'
10305
10306    case $host_os in
10307      aix*)
10308      # All AIX code is PIC.
10309      if test ia64 = "$host_cpu"; then
10310	# AIX 5 now supports IA64 processor
10311	lt_prog_compiler_static='-Bstatic'
10312      fi
10313      lt_prog_compiler_pic='-fPIC'
10314      ;;
10315
10316    amigaos*)
10317      case $host_cpu in
10318      powerpc)
10319            # see comment about AmigaOS4 .so support
10320            lt_prog_compiler_pic='-fPIC'
10321        ;;
10322      m68k)
10323            # FIXME: we need at least 68020 code to build shared libraries, but
10324            # adding the '-m68020' flag to GCC prevents building anything better,
10325            # like '-m68040'.
10326            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10327        ;;
10328      esac
10329      ;;
10330
10331    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10332      # PIC is the default for these OSes.
10333      ;;
10334
10335    mingw* | cygwin* | pw32* | os2* | cegcc*)
10336      # This hack is so that the source file can tell whether it is being
10337      # built for inclusion in a dll (and should export symbols for example).
10338      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10339      # (--disable-auto-import) libraries
10340      lt_prog_compiler_pic='-DDLL_EXPORT'
10341      case $host_os in
10342      os2*)
10343	lt_prog_compiler_static='$wl-static'
10344	;;
10345      esac
10346      ;;
10347
10348    darwin* | rhapsody*)
10349      # PIC is the default on this platform
10350      # Common symbols not allowed in MH_DYLIB files
10351      lt_prog_compiler_pic='-fno-common'
10352      ;;
10353
10354    haiku*)
10355      # PIC is the default for Haiku.
10356      # The "-static" flag exists, but is broken.
10357      lt_prog_compiler_static=
10358      ;;
10359
10360    hpux*)
10361      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10362      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10363      # sets the default TLS model and affects inlining.
10364      case $host_cpu in
10365      hppa*64*)
10366	# +Z the default
10367	;;
10368      *)
10369	lt_prog_compiler_pic='-fPIC'
10370	;;
10371      esac
10372      ;;
10373
10374    interix[3-9]*)
10375      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10376      # Instead, we relocate shared libraries at runtime.
10377      ;;
10378
10379    msdosdjgpp*)
10380      # Just because we use GCC doesn't mean we suddenly get shared libraries
10381      # on systems that don't support them.
10382      lt_prog_compiler_can_build_shared=no
10383      enable_shared=no
10384      ;;
10385
10386    *nto* | *qnx*)
10387      # QNX uses GNU C++, but need to define -shared option too, otherwise
10388      # it will coredump.
10389      lt_prog_compiler_pic='-fPIC -shared'
10390      ;;
10391
10392    sysv4*MP*)
10393      if test -d /usr/nec; then
10394	lt_prog_compiler_pic=-Kconform_pic
10395      fi
10396      ;;
10397
10398    *)
10399      lt_prog_compiler_pic='-fPIC'
10400      ;;
10401    esac
10402
10403    case $cc_basename in
10404    nvcc*) # Cuda Compiler Driver 2.2
10405      lt_prog_compiler_wl='-Xlinker '
10406      if test -n "$lt_prog_compiler_pic"; then
10407        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10408      fi
10409      ;;
10410    esac
10411  else
10412    # PORTME Check for flag to pass linker flags through the system compiler.
10413    case $host_os in
10414    aix*)
10415      lt_prog_compiler_wl='-Wl,'
10416      if test ia64 = "$host_cpu"; then
10417	# AIX 5 now supports IA64 processor
10418	lt_prog_compiler_static='-Bstatic'
10419      else
10420	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10421      fi
10422      ;;
10423
10424    darwin* | rhapsody*)
10425      # PIC is the default on this platform
10426      # Common symbols not allowed in MH_DYLIB files
10427      lt_prog_compiler_pic='-fno-common'
10428      case $cc_basename in
10429      nagfor*)
10430        # NAG Fortran compiler
10431        lt_prog_compiler_wl='-Wl,-Wl,,'
10432        lt_prog_compiler_pic='-PIC'
10433        lt_prog_compiler_static='-Bstatic'
10434        ;;
10435      esac
10436      ;;
10437
10438    mingw* | cygwin* | pw32* | os2* | cegcc*)
10439      # This hack is so that the source file can tell whether it is being
10440      # built for inclusion in a dll (and should export symbols for example).
10441      lt_prog_compiler_pic='-DDLL_EXPORT'
10442      case $host_os in
10443      os2*)
10444	lt_prog_compiler_static='$wl-static'
10445	;;
10446      esac
10447      ;;
10448
10449    hpux9* | hpux10* | hpux11*)
10450      lt_prog_compiler_wl='-Wl,'
10451      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10452      # not for PA HP-UX.
10453      case $host_cpu in
10454      hppa*64*|ia64*)
10455	# +Z the default
10456	;;
10457      *)
10458	lt_prog_compiler_pic='+Z'
10459	;;
10460      esac
10461      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10462      lt_prog_compiler_static='$wl-a ${wl}archive'
10463      ;;
10464
10465    irix5* | irix6* | nonstopux*)
10466      lt_prog_compiler_wl='-Wl,'
10467      # PIC (with -KPIC) is the default.
10468      lt_prog_compiler_static='-non_shared'
10469      ;;
10470
10471    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10472      case $cc_basename in
10473      # old Intel for x86_64, which still supported -KPIC.
10474      ecc*)
10475	lt_prog_compiler_wl='-Wl,'
10476	lt_prog_compiler_pic='-KPIC'
10477	lt_prog_compiler_static='-static'
10478        ;;
10479      # icc used to be incompatible with GCC.
10480      # ICC 10 doesn't accept -KPIC any more.
10481      icc* | ifort*)
10482	lt_prog_compiler_wl='-Wl,'
10483	lt_prog_compiler_pic='-fPIC'
10484	lt_prog_compiler_static='-static'
10485        ;;
10486      # Lahey Fortran 8.1.
10487      lf95*)
10488	lt_prog_compiler_wl='-Wl,'
10489	lt_prog_compiler_pic='--shared'
10490	lt_prog_compiler_static='--static'
10491	;;
10492      nagfor*)
10493	# NAG Fortran compiler
10494	lt_prog_compiler_wl='-Wl,-Wl,,'
10495	lt_prog_compiler_pic='-PIC'
10496	lt_prog_compiler_static='-Bstatic'
10497	;;
10498      tcc*)
10499	# Fabrice Bellard et al's Tiny C Compiler
10500	lt_prog_compiler_wl='-Wl,'
10501	lt_prog_compiler_pic='-fPIC'
10502	lt_prog_compiler_static='-static'
10503	;;
10504      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10505        # Portland Group compilers (*not* the Pentium gcc compiler,
10506	# which looks to be a dead project)
10507	lt_prog_compiler_wl='-Wl,'
10508	lt_prog_compiler_pic='-fpic'
10509	lt_prog_compiler_static='-Bstatic'
10510        ;;
10511      ccc*)
10512        lt_prog_compiler_wl='-Wl,'
10513        # All Alpha code is PIC.
10514        lt_prog_compiler_static='-non_shared'
10515        ;;
10516      xl* | bgxl* | bgf* | mpixl*)
10517	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10518	lt_prog_compiler_wl='-Wl,'
10519	lt_prog_compiler_pic='-qpic'
10520	lt_prog_compiler_static='-qstaticlink'
10521	;;
10522      *)
10523	case `$CC -V 2>&1 | sed 5q` in
10524	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10525	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10526	  lt_prog_compiler_pic='-KPIC'
10527	  lt_prog_compiler_static='-Bstatic'
10528	  lt_prog_compiler_wl=''
10529	  ;;
10530	*Sun\ F* | *Sun*Fortran*)
10531	  lt_prog_compiler_pic='-KPIC'
10532	  lt_prog_compiler_static='-Bstatic'
10533	  lt_prog_compiler_wl='-Qoption ld '
10534	  ;;
10535	*Sun\ C*)
10536	  # Sun C 5.9
10537	  lt_prog_compiler_pic='-KPIC'
10538	  lt_prog_compiler_static='-Bstatic'
10539	  lt_prog_compiler_wl='-Wl,'
10540	  ;;
10541        *Intel*\ [CF]*Compiler*)
10542	  lt_prog_compiler_wl='-Wl,'
10543	  lt_prog_compiler_pic='-fPIC'
10544	  lt_prog_compiler_static='-static'
10545	  ;;
10546	*Portland\ Group*)
10547	  lt_prog_compiler_wl='-Wl,'
10548	  lt_prog_compiler_pic='-fpic'
10549	  lt_prog_compiler_static='-Bstatic'
10550	  ;;
10551	esac
10552	;;
10553      esac
10554      ;;
10555
10556    newsos6)
10557      lt_prog_compiler_pic='-KPIC'
10558      lt_prog_compiler_static='-Bstatic'
10559      ;;
10560
10561    *nto* | *qnx*)
10562      # QNX uses GNU C++, but need to define -shared option too, otherwise
10563      # it will coredump.
10564      lt_prog_compiler_pic='-fPIC -shared'
10565      ;;
10566
10567    osf3* | osf4* | osf5*)
10568      lt_prog_compiler_wl='-Wl,'
10569      # All OSF/1 code is PIC.
10570      lt_prog_compiler_static='-non_shared'
10571      ;;
10572
10573    rdos*)
10574      lt_prog_compiler_static='-non_shared'
10575      ;;
10576
10577    solaris*)
10578      lt_prog_compiler_pic='-KPIC'
10579      lt_prog_compiler_static='-Bstatic'
10580      case $cc_basename in
10581      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10582	lt_prog_compiler_wl='-Qoption ld ';;
10583      *)
10584	lt_prog_compiler_wl='-Wl,';;
10585      esac
10586      ;;
10587
10588    sunos4*)
10589      lt_prog_compiler_wl='-Qoption ld '
10590      lt_prog_compiler_pic='-PIC'
10591      lt_prog_compiler_static='-Bstatic'
10592      ;;
10593
10594    sysv4 | sysv4.2uw2* | sysv4.3*)
10595      lt_prog_compiler_wl='-Wl,'
10596      lt_prog_compiler_pic='-KPIC'
10597      lt_prog_compiler_static='-Bstatic'
10598      ;;
10599
10600    sysv4*MP*)
10601      if test -d /usr/nec; then
10602	lt_prog_compiler_pic='-Kconform_pic'
10603	lt_prog_compiler_static='-Bstatic'
10604      fi
10605      ;;
10606
10607    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10608      lt_prog_compiler_wl='-Wl,'
10609      lt_prog_compiler_pic='-KPIC'
10610      lt_prog_compiler_static='-Bstatic'
10611      ;;
10612
10613    unicos*)
10614      lt_prog_compiler_wl='-Wl,'
10615      lt_prog_compiler_can_build_shared=no
10616      ;;
10617
10618    uts4*)
10619      lt_prog_compiler_pic='-pic'
10620      lt_prog_compiler_static='-Bstatic'
10621      ;;
10622
10623    *)
10624      lt_prog_compiler_can_build_shared=no
10625      ;;
10626    esac
10627  fi
10628
10629case $host_os in
10630  # For platforms that do not support PIC, -DPIC is meaningless:
10631  *djgpp*)
10632    lt_prog_compiler_pic=
10633    ;;
10634  *)
10635    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10636    ;;
10637esac
10638
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10640$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10641if ${lt_cv_prog_compiler_pic+:} false; then :
10642  $as_echo_n "(cached) " >&6
10643else
10644  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10647$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10648lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10649
10650#
10651# Check to make sure the PIC flag actually works.
10652#
10653if test -n "$lt_prog_compiler_pic"; then
10654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10655$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10656if ${lt_cv_prog_compiler_pic_works+:} false; then :
10657  $as_echo_n "(cached) " >&6
10658else
10659  lt_cv_prog_compiler_pic_works=no
10660   ac_outfile=conftest.$ac_objext
10661   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10662   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10663   # Insert the option either (1) after the last *FLAGS variable, or
10664   # (2) before a word containing "conftest.", or (3) at the end.
10665   # Note that $ac_compile itself does not contain backslashes and begins
10666   # with a dollar sign (not a hyphen), so the echo should work correctly.
10667   # The option is referenced via a variable to avoid confusing sed.
10668   lt_compile=`echo "$ac_compile" | $SED \
10669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10671   -e 's:$: $lt_compiler_flag:'`
10672   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10673   (eval "$lt_compile" 2>conftest.err)
10674   ac_status=$?
10675   cat conftest.err >&5
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   if (exit $ac_status) && test -s "$ac_outfile"; then
10678     # The compiler can only warn and ignore the option if not recognized
10679     # So say no if there are warnings other than the usual output.
10680     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10681     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10682     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10683       lt_cv_prog_compiler_pic_works=yes
10684     fi
10685   fi
10686   $RM conftest*
10687
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10690$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10691
10692if test yes = "$lt_cv_prog_compiler_pic_works"; then
10693    case $lt_prog_compiler_pic in
10694     "" | " "*) ;;
10695     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10696     esac
10697else
10698    lt_prog_compiler_pic=
10699     lt_prog_compiler_can_build_shared=no
10700fi
10701
10702fi
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714#
10715# Check to make sure the static flag actually works.
10716#
10717wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10719$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10720if ${lt_cv_prog_compiler_static_works+:} false; then :
10721  $as_echo_n "(cached) " >&6
10722else
10723  lt_cv_prog_compiler_static_works=no
10724   save_LDFLAGS=$LDFLAGS
10725   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10726   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10727   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10728     # The linker can only warn and ignore the option if not recognized
10729     # So say no if there are warnings
10730     if test -s conftest.err; then
10731       # Append any errors to the config.log.
10732       cat conftest.err 1>&5
10733       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10734       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10735       if diff conftest.exp conftest.er2 >/dev/null; then
10736         lt_cv_prog_compiler_static_works=yes
10737       fi
10738     else
10739       lt_cv_prog_compiler_static_works=yes
10740     fi
10741   fi
10742   $RM -r conftest*
10743   LDFLAGS=$save_LDFLAGS
10744
10745fi
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10747$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10748
10749if test yes = "$lt_cv_prog_compiler_static_works"; then
10750    :
10751else
10752    lt_prog_compiler_static=
10753fi
10754
10755
10756
10757
10758
10759
10760
10761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10762$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10763if ${lt_cv_prog_compiler_c_o+:} false; then :
10764  $as_echo_n "(cached) " >&6
10765else
10766  lt_cv_prog_compiler_c_o=no
10767   $RM -r conftest 2>/dev/null
10768   mkdir conftest
10769   cd conftest
10770   mkdir out
10771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10772
10773   lt_compiler_flag="-o out/conftest2.$ac_objext"
10774   # Insert the option either (1) after the last *FLAGS variable, or
10775   # (2) before a word containing "conftest.", or (3) at the end.
10776   # Note that $ac_compile itself does not contain backslashes and begins
10777   # with a dollar sign (not a hyphen), so the echo should work correctly.
10778   lt_compile=`echo "$ac_compile" | $SED \
10779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10781   -e 's:$: $lt_compiler_flag:'`
10782   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10783   (eval "$lt_compile" 2>out/conftest.err)
10784   ac_status=$?
10785   cat out/conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10788   then
10789     # The compiler can only warn and ignore the option if not recognized
10790     # So say no if there are warnings
10791     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10792     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10793     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10794       lt_cv_prog_compiler_c_o=yes
10795     fi
10796   fi
10797   chmod u+w . 2>&5
10798   $RM conftest*
10799   # SGI C++ compiler will create directory out/ii_files/ for
10800   # template instantiation
10801   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10802   $RM out/* && rmdir out
10803   cd ..
10804   $RM -r conftest
10805   $RM conftest*
10806
10807fi
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10809$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10810
10811
10812
10813
10814
10815
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10817$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10818if ${lt_cv_prog_compiler_c_o+:} false; then :
10819  $as_echo_n "(cached) " >&6
10820else
10821  lt_cv_prog_compiler_c_o=no
10822   $RM -r conftest 2>/dev/null
10823   mkdir conftest
10824   cd conftest
10825   mkdir out
10826   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10827
10828   lt_compiler_flag="-o out/conftest2.$ac_objext"
10829   # Insert the option either (1) after the last *FLAGS variable, or
10830   # (2) before a word containing "conftest.", or (3) at the end.
10831   # Note that $ac_compile itself does not contain backslashes and begins
10832   # with a dollar sign (not a hyphen), so the echo should work correctly.
10833   lt_compile=`echo "$ac_compile" | $SED \
10834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10836   -e 's:$: $lt_compiler_flag:'`
10837   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10838   (eval "$lt_compile" 2>out/conftest.err)
10839   ac_status=$?
10840   cat out/conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10843   then
10844     # The compiler can only warn and ignore the option if not recognized
10845     # So say no if there are warnings
10846     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10847     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10848     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10849       lt_cv_prog_compiler_c_o=yes
10850     fi
10851   fi
10852   chmod u+w . 2>&5
10853   $RM conftest*
10854   # SGI C++ compiler will create directory out/ii_files/ for
10855   # template instantiation
10856   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10857   $RM out/* && rmdir out
10858   cd ..
10859   $RM -r conftest
10860   $RM conftest*
10861
10862fi
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10864$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10865
10866
10867
10868
10869hard_links=nottested
10870if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10871  # do not overwrite the value of need_locks provided by the user
10872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10873$as_echo_n "checking if we can lock with hard links... " >&6; }
10874  hard_links=yes
10875  $RM conftest*
10876  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10877  touch conftest.a
10878  ln conftest.a conftest.b 2>&5 || hard_links=no
10879  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10881$as_echo "$hard_links" >&6; }
10882  if test no = "$hard_links"; then
10883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10884$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10885    need_locks=warn
10886  fi
10887else
10888  need_locks=no
10889fi
10890
10891
10892
10893
10894
10895
10896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10897$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10898
10899  runpath_var=
10900  allow_undefined_flag=
10901  always_export_symbols=no
10902  archive_cmds=
10903  archive_expsym_cmds=
10904  compiler_needs_object=no
10905  enable_shared_with_static_runtimes=no
10906  export_dynamic_flag_spec=
10907  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10908  hardcode_automatic=no
10909  hardcode_direct=no
10910  hardcode_direct_absolute=no
10911  hardcode_libdir_flag_spec=
10912  hardcode_libdir_separator=
10913  hardcode_minus_L=no
10914  hardcode_shlibpath_var=unsupported
10915  inherit_rpath=no
10916  link_all_deplibs=unknown
10917  module_cmds=
10918  module_expsym_cmds=
10919  old_archive_from_new_cmds=
10920  old_archive_from_expsyms_cmds=
10921  thread_safe_flag_spec=
10922  whole_archive_flag_spec=
10923  # include_expsyms should be a list of space-separated symbols to be *always*
10924  # included in the symbol list
10925  include_expsyms=
10926  # exclude_expsyms can be an extended regexp of symbols to exclude
10927  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10928  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10929  # as well as any symbol that contains 'd'.
10930  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10931  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10932  # platforms (ab)use it in PIC code, but their linkers get confused if
10933  # the symbol is explicitly referenced.  Since portable code cannot
10934  # rely on this symbol name, it's probably fine to never include it in
10935  # preloaded symbol tables.
10936  # Exclude shared library initialization/finalization symbols.
10937  extract_expsyms_cmds=
10938
10939  case $host_os in
10940  cygwin* | mingw* | pw32* | cegcc*)
10941    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10942    # When not using gcc, we currently assume that we are using
10943    # Microsoft Visual C++.
10944    if test yes != "$GCC"; then
10945      with_gnu_ld=no
10946    fi
10947    ;;
10948  interix*)
10949    # we just hope/assume this is gcc and not c89 (= MSVC++)
10950    with_gnu_ld=yes
10951    ;;
10952  openbsd* | bitrig*)
10953    with_gnu_ld=no
10954    ;;
10955  linux* | k*bsd*-gnu | gnu*)
10956    link_all_deplibs=no
10957    ;;
10958  esac
10959
10960  ld_shlibs=yes
10961
10962  # On some targets, GNU ld is compatible enough with the native linker
10963  # that we're better off using the native interface for both.
10964  lt_use_gnu_ld_interface=no
10965  if test yes = "$with_gnu_ld"; then
10966    case $host_os in
10967      aix*)
10968	# The AIX port of GNU ld has always aspired to compatibility
10969	# with the native linker.  However, as the warning in the GNU ld
10970	# block says, versions before 2.19.5* couldn't really create working
10971	# shared libraries, regardless of the interface used.
10972	case `$LD -v 2>&1` in
10973	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10974	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10975	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10976	  *)
10977	    lt_use_gnu_ld_interface=yes
10978	    ;;
10979	esac
10980	;;
10981      *)
10982	lt_use_gnu_ld_interface=yes
10983	;;
10984    esac
10985  fi
10986
10987  if test yes = "$lt_use_gnu_ld_interface"; then
10988    # If archive_cmds runs LD, not CC, wlarc should be empty
10989    wlarc='$wl'
10990
10991    # Set some defaults for GNU ld with shared library support. These
10992    # are reset later if shared libraries are not supported. Putting them
10993    # here allows them to be overridden if necessary.
10994    runpath_var=LD_RUN_PATH
10995    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10996    export_dynamic_flag_spec='$wl--export-dynamic'
10997    # ancient GNU ld didn't support --whole-archive et. al.
10998    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10999      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11000    else
11001      whole_archive_flag_spec=
11002    fi
11003    supports_anon_versioning=no
11004    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11005      *GNU\ gold*) supports_anon_versioning=yes ;;
11006      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11007      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11008      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11009      *\ 2.11.*) ;; # other 2.11 versions
11010      *) supports_anon_versioning=yes ;;
11011    esac
11012
11013    # See if GNU ld supports shared libraries.
11014    case $host_os in
11015    aix[3-9]*)
11016      # On AIX/PPC, the GNU linker is very broken
11017      if test ia64 != "$host_cpu"; then
11018	ld_shlibs=no
11019	cat <<_LT_EOF 1>&2
11020
11021*** Warning: the GNU linker, at least up to release 2.19, is reported
11022*** to be unable to reliably create shared libraries on AIX.
11023*** Therefore, libtool is disabling shared libraries support.  If you
11024*** really care for shared libraries, you may want to install binutils
11025*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11026*** You will then need to restart the configuration process.
11027
11028_LT_EOF
11029      fi
11030      ;;
11031
11032    amigaos*)
11033      case $host_cpu in
11034      powerpc)
11035            # see comment about AmigaOS4 .so support
11036            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11037            archive_expsym_cmds=''
11038        ;;
11039      m68k)
11040            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)'
11041            hardcode_libdir_flag_spec='-L$libdir'
11042            hardcode_minus_L=yes
11043        ;;
11044      esac
11045      ;;
11046
11047    beos*)
11048      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11049	allow_undefined_flag=unsupported
11050	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11051	# support --undefined.  This deserves some investigation.  FIXME
11052	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11053      else
11054	ld_shlibs=no
11055      fi
11056      ;;
11057
11058    cygwin* | mingw* | pw32* | cegcc*)
11059      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11060      # as there is no search path for DLLs.
11061      hardcode_libdir_flag_spec='-L$libdir'
11062      export_dynamic_flag_spec='$wl--export-all-symbols'
11063      allow_undefined_flag=unsupported
11064      always_export_symbols=no
11065      enable_shared_with_static_runtimes=yes
11066      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'
11067      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11068
11069      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11070        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11071	# If the export-symbols file already is a .def file, use it as
11072	# is; otherwise, prepend EXPORTS...
11073	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11074          cp $export_symbols $output_objdir/$soname.def;
11075        else
11076          echo EXPORTS > $output_objdir/$soname.def;
11077          cat $export_symbols >> $output_objdir/$soname.def;
11078        fi~
11079        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11080      else
11081	ld_shlibs=no
11082      fi
11083      ;;
11084
11085    haiku*)
11086      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11087      link_all_deplibs=yes
11088      ;;
11089
11090    os2*)
11091      hardcode_libdir_flag_spec='-L$libdir'
11092      hardcode_minus_L=yes
11093      allow_undefined_flag=unsupported
11094      shrext_cmds=.dll
11095      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11096	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11097	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11098	$ECHO EXPORTS >> $output_objdir/$libname.def~
11099	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11100	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11101	emximp -o $lib $output_objdir/$libname.def'
11102      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11103	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11104	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11105	$ECHO EXPORTS >> $output_objdir/$libname.def~
11106	prefix_cmds="$SED"~
11107	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11108	  prefix_cmds="$prefix_cmds -e 1d";
11109	fi~
11110	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11111	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11112	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11113	emximp -o $lib $output_objdir/$libname.def'
11114      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11115      enable_shared_with_static_runtimes=yes
11116      ;;
11117
11118    interix[3-9]*)
11119      hardcode_direct=no
11120      hardcode_shlibpath_var=no
11121      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11122      export_dynamic_flag_spec='$wl-E'
11123      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11124      # Instead, shared libraries are loaded at an image base (0x10000000 by
11125      # default) and relocated if they conflict, which is a slow very memory
11126      # consuming and fragmenting process.  To avoid this, we pick a random,
11127      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11128      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11129      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11130      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'
11131      ;;
11132
11133    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11134      tmp_diet=no
11135      if test linux-dietlibc = "$host_os"; then
11136	case $cc_basename in
11137	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11138	esac
11139      fi
11140      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11141	 && test no = "$tmp_diet"
11142      then
11143	tmp_addflag=' $pic_flag'
11144	tmp_sharedflag='-shared'
11145	case $cc_basename,$host_cpu in
11146        pgcc*)				# Portland Group C compiler
11147	  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'
11148	  tmp_addflag=' $pic_flag'
11149	  ;;
11150	pgf77* | pgf90* | pgf95* | pgfortran*)
11151					# Portland Group f77 and f90 compilers
11152	  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'
11153	  tmp_addflag=' $pic_flag -Mnomain' ;;
11154	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11155	  tmp_addflag=' -i_dynamic' ;;
11156	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11157	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11158	ifc* | ifort*)			# Intel Fortran compiler
11159	  tmp_addflag=' -nofor_main' ;;
11160	lf95*)				# Lahey Fortran 8.1
11161	  whole_archive_flag_spec=
11162	  tmp_sharedflag='--shared' ;;
11163        nagfor*)                        # NAGFOR 5.3
11164          tmp_sharedflag='-Wl,-shared' ;;
11165	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11166	  tmp_sharedflag='-qmkshrobj'
11167	  tmp_addflag= ;;
11168	nvcc*)	# Cuda Compiler Driver 2.2
11169	  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'
11170	  compiler_needs_object=yes
11171	  ;;
11172	esac
11173	case `$CC -V 2>&1 | sed 5q` in
11174	*Sun\ C*)			# Sun C 5.9
11175	  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'
11176	  compiler_needs_object=yes
11177	  tmp_sharedflag='-G' ;;
11178	*Sun\ F*)			# Sun Fortran 8.3
11179	  tmp_sharedflag='-G' ;;
11180	esac
11181	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11182
11183        if test yes = "$supports_anon_versioning"; then
11184          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11185            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11186            echo "local: *; };" >> $output_objdir/$libname.ver~
11187            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11188        fi
11189
11190	case $cc_basename in
11191	tcc*)
11192	  export_dynamic_flag_spec='-rdynamic'
11193	  ;;
11194	xlf* | bgf* | bgxlf* | mpixlf*)
11195	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11196	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11197	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11198	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11199	  if test yes = "$supports_anon_versioning"; then
11200	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11201              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11202              echo "local: *; };" >> $output_objdir/$libname.ver~
11203              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11204	  fi
11205	  ;;
11206	esac
11207      else
11208        ld_shlibs=no
11209      fi
11210      ;;
11211
11212    netbsd* | netbsdelf*-gnu)
11213      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11214	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11215	wlarc=
11216      else
11217	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11218	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11219      fi
11220      ;;
11221
11222    solaris*)
11223      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11224	ld_shlibs=no
11225	cat <<_LT_EOF 1>&2
11226
11227*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11228*** create shared libraries on Solaris systems.  Therefore, libtool
11229*** is disabling shared libraries support.  We urge you to upgrade GNU
11230*** binutils to release 2.9.1 or newer.  Another option is to modify
11231*** your PATH or compiler configuration so that the native linker is
11232*** used, and then restart.
11233
11234_LT_EOF
11235      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11236	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11237	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11238      else
11239	ld_shlibs=no
11240      fi
11241      ;;
11242
11243    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11244      case `$LD -v 2>&1` in
11245        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11246	ld_shlibs=no
11247	cat <<_LT_EOF 1>&2
11248
11249*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11250*** reliably create shared libraries on SCO systems.  Therefore, libtool
11251*** is disabling shared libraries support.  We urge you to upgrade GNU
11252*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11253*** your PATH or compiler configuration so that the native linker is
11254*** used, and then restart.
11255
11256_LT_EOF
11257	;;
11258	*)
11259	  # For security reasons, it is highly recommended that you always
11260	  # use absolute paths for naming shared libraries, and exclude the
11261	  # DT_RUNPATH tag from executables and libraries.  But doing so
11262	  # requires that you compile everything twice, which is a pain.
11263	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11264	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11265	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11266	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11267	  else
11268	    ld_shlibs=no
11269	  fi
11270	;;
11271      esac
11272      ;;
11273
11274    sunos4*)
11275      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11276      wlarc=
11277      hardcode_direct=yes
11278      hardcode_shlibpath_var=no
11279      ;;
11280
11281    *)
11282      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11283	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11284	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11285      else
11286	ld_shlibs=no
11287      fi
11288      ;;
11289    esac
11290
11291    if test no = "$ld_shlibs"; then
11292      runpath_var=
11293      hardcode_libdir_flag_spec=
11294      export_dynamic_flag_spec=
11295      whole_archive_flag_spec=
11296    fi
11297  else
11298    # PORTME fill in a description of your system's linker (not GNU ld)
11299    case $host_os in
11300    aix3*)
11301      allow_undefined_flag=unsupported
11302      always_export_symbols=yes
11303      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'
11304      # Note: this linker hardcodes the directories in LIBPATH if there
11305      # are no directories specified by -L.
11306      hardcode_minus_L=yes
11307      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11308	# Neither direct hardcoding nor static linking is supported with a
11309	# broken collect2.
11310	hardcode_direct=unsupported
11311      fi
11312      ;;
11313
11314    aix[4-9]*)
11315      if test ia64 = "$host_cpu"; then
11316	# On IA64, the linker does run time linking by default, so we don't
11317	# have to do anything special.
11318	aix_use_runtimelinking=no
11319	exp_sym_flag='-Bexport'
11320	no_entry_flag=
11321      else
11322	# If we're using GNU nm, then we don't want the "-C" option.
11323	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11324	# Without the "-l" option, or with the "-B" option, AIX nm treats
11325	# weak defined symbols like other global defined symbols, whereas
11326	# GNU nm marks them as "W".
11327	# While the 'weak' keyword is ignored in the Export File, we need
11328	# it in the Import File for the 'aix-soname' feature, so we have
11329	# to replace the "-B" option with "-P" for AIX nm.
11330	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11331	  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'
11332	else
11333	  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'
11334	fi
11335	aix_use_runtimelinking=no
11336
11337	# Test if we are trying to use run time linking or normal
11338	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11339	# have runtime linking enabled, and use it for executables.
11340	# For shared libraries, we enable/disable runtime linking
11341	# depending on the kind of the shared library created -
11342	# when "with_aix_soname,aix_use_runtimelinking" is:
11343	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11344	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11345	#            lib.a           static archive
11346	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11347	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11348	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11349	#            lib.a(lib.so.V) shared, rtl:no
11350	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11351	#            lib.a           static archive
11352	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11353	  for ld_flag in $LDFLAGS; do
11354	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11355	    aix_use_runtimelinking=yes
11356	    break
11357	  fi
11358	  done
11359	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11360	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11361	    # so we don't have lib.a shared libs to link our executables.
11362	    # We have to force runtime linking in this case.
11363	    aix_use_runtimelinking=yes
11364	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11365	  fi
11366	  ;;
11367	esac
11368
11369	exp_sym_flag='-bexport'
11370	no_entry_flag='-bnoentry'
11371      fi
11372
11373      # When large executables or shared objects are built, AIX ld can
11374      # have problems creating the table of contents.  If linking a library
11375      # or program results in "error TOC overflow" add -mminimal-toc to
11376      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11377      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11378
11379      archive_cmds=''
11380      hardcode_direct=yes
11381      hardcode_direct_absolute=yes
11382      hardcode_libdir_separator=':'
11383      link_all_deplibs=yes
11384      file_list_spec='$wl-f,'
11385      case $with_aix_soname,$aix_use_runtimelinking in
11386      aix,*) ;; # traditional, no import file
11387      svr4,* | *,yes) # use import file
11388	# The Import File defines what to hardcode.
11389	hardcode_direct=no
11390	hardcode_direct_absolute=no
11391	;;
11392      esac
11393
11394      if test yes = "$GCC"; then
11395	case $host_os in aix4.[012]|aix4.[012].*)
11396	# We only want to do this on AIX 4.2 and lower, the check
11397	# below for broken collect2 doesn't work under 4.3+
11398	  collect2name=`$CC -print-prog-name=collect2`
11399	  if test -f "$collect2name" &&
11400	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11401	  then
11402	  # We have reworked collect2
11403	  :
11404	  else
11405	  # We have old collect2
11406	  hardcode_direct=unsupported
11407	  # It fails to find uninstalled libraries when the uninstalled
11408	  # path is not listed in the libpath.  Setting hardcode_minus_L
11409	  # to unsupported forces relinking
11410	  hardcode_minus_L=yes
11411	  hardcode_libdir_flag_spec='-L$libdir'
11412	  hardcode_libdir_separator=
11413	  fi
11414	  ;;
11415	esac
11416	shared_flag='-shared'
11417	if test yes = "$aix_use_runtimelinking"; then
11418	  shared_flag="$shared_flag "'$wl-G'
11419	fi
11420	# Need to ensure runtime linking is disabled for the traditional
11421	# shared library, or the linker may eventually find shared libraries
11422	# /with/ Import File - we do not want to mix them.
11423	shared_flag_aix='-shared'
11424	shared_flag_svr4='-shared $wl-G'
11425      else
11426	# not using gcc
11427	if test ia64 = "$host_cpu"; then
11428	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11429	# chokes on -Wl,-G. The following line is correct:
11430	  shared_flag='-G'
11431	else
11432	  if test yes = "$aix_use_runtimelinking"; then
11433	    shared_flag='$wl-G'
11434	  else
11435	    shared_flag='$wl-bM:SRE'
11436	  fi
11437	  shared_flag_aix='$wl-bM:SRE'
11438	  shared_flag_svr4='$wl-G'
11439	fi
11440      fi
11441
11442      export_dynamic_flag_spec='$wl-bexpall'
11443      # It seems that -bexpall does not export symbols beginning with
11444      # underscore (_), so it is better to generate a list of symbols to export.
11445      always_export_symbols=yes
11446      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11447	# Warning - without using the other runtime loading flags (-brtl),
11448	# -berok will link without error, but may produce a broken library.
11449	allow_undefined_flag='-berok'
11450        # Determine the default libpath from the value encoded in an
11451        # empty executable.
11452        if test set = "${lt_cv_aix_libpath+set}"; then
11453  aix_libpath=$lt_cv_aix_libpath
11454else
11455  if ${lt_cv_aix_libpath_+:} false; then :
11456  $as_echo_n "(cached) " >&6
11457else
11458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459/* end confdefs.h.  */
11460
11461int
11462main ()
11463{
11464
11465  ;
11466  return 0;
11467}
11468_ACEOF
11469if ac_fn_c_try_link "$LINENO"; then :
11470
11471  lt_aix_libpath_sed='
11472      /Import File Strings/,/^$/ {
11473	  /^0/ {
11474	      s/^0  *\([^ ]*\) *$/\1/
11475	      p
11476	  }
11477      }'
11478  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11479  # Check for a 64-bit object if we didn't find anything.
11480  if test -z "$lt_cv_aix_libpath_"; then
11481    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11482  fi
11483fi
11484rm -f core conftest.err conftest.$ac_objext \
11485    conftest$ac_exeext conftest.$ac_ext
11486  if test -z "$lt_cv_aix_libpath_"; then
11487    lt_cv_aix_libpath_=/usr/lib:/lib
11488  fi
11489
11490fi
11491
11492  aix_libpath=$lt_cv_aix_libpath_
11493fi
11494
11495        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11496        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
11497      else
11498	if test ia64 = "$host_cpu"; then
11499	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11500	  allow_undefined_flag="-z nodefs"
11501	  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"
11502	else
11503	 # Determine the default libpath from the value encoded in an
11504	 # empty executable.
11505	 if test set = "${lt_cv_aix_libpath+set}"; then
11506  aix_libpath=$lt_cv_aix_libpath
11507else
11508  if ${lt_cv_aix_libpath_+:} false; then :
11509  $as_echo_n "(cached) " >&6
11510else
11511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h.  */
11513
11514int
11515main ()
11516{
11517
11518  ;
11519  return 0;
11520}
11521_ACEOF
11522if ac_fn_c_try_link "$LINENO"; then :
11523
11524  lt_aix_libpath_sed='
11525      /Import File Strings/,/^$/ {
11526	  /^0/ {
11527	      s/^0  *\([^ ]*\) *$/\1/
11528	      p
11529	  }
11530      }'
11531  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11532  # Check for a 64-bit object if we didn't find anything.
11533  if test -z "$lt_cv_aix_libpath_"; then
11534    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11535  fi
11536fi
11537rm -f core conftest.err conftest.$ac_objext \
11538    conftest$ac_exeext conftest.$ac_ext
11539  if test -z "$lt_cv_aix_libpath_"; then
11540    lt_cv_aix_libpath_=/usr/lib:/lib
11541  fi
11542
11543fi
11544
11545  aix_libpath=$lt_cv_aix_libpath_
11546fi
11547
11548	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11549	  # Warning - without using the other run time loading flags,
11550	  # -berok will link without error, but may produce a broken library.
11551	  no_undefined_flag=' $wl-bernotok'
11552	  allow_undefined_flag=' $wl-berok'
11553	  if test yes = "$with_gnu_ld"; then
11554	    # We only use this code for GNU lds that support --whole-archive.
11555	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11556	  else
11557	    # Exported symbols can be pulled into shared objects from archives
11558	    whole_archive_flag_spec='$convenience'
11559	  fi
11560	  archive_cmds_need_lc=yes
11561	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11562	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11563	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11564	  if test svr4 != "$with_aix_soname"; then
11565	    # This is similar to how AIX traditionally builds its shared libraries.
11566	    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'
11567	  fi
11568	  if test aix != "$with_aix_soname"; then
11569	    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'
11570	  else
11571	    # used by -dlpreopen to get the symbols
11572	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11573	  fi
11574	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11575	fi
11576      fi
11577      ;;
11578
11579    amigaos*)
11580      case $host_cpu in
11581      powerpc)
11582            # see comment about AmigaOS4 .so support
11583            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11584            archive_expsym_cmds=''
11585        ;;
11586      m68k)
11587            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)'
11588            hardcode_libdir_flag_spec='-L$libdir'
11589            hardcode_minus_L=yes
11590        ;;
11591      esac
11592      ;;
11593
11594    bsdi[45]*)
11595      export_dynamic_flag_spec=-rdynamic
11596      ;;
11597
11598    cygwin* | mingw* | pw32* | cegcc*)
11599      # When not using gcc, we currently assume that we are using
11600      # Microsoft Visual C++.
11601      # hardcode_libdir_flag_spec is actually meaningless, as there is
11602      # no search path for DLLs.
11603      case $cc_basename in
11604      cl*)
11605	# Native MSVC
11606	hardcode_libdir_flag_spec=' '
11607	allow_undefined_flag=unsupported
11608	always_export_symbols=yes
11609	file_list_spec='@'
11610	# Tell ltmain to make .lib files, not .a files.
11611	libext=lib
11612	# Tell ltmain to make .dll files, not .so files.
11613	shrext_cmds=.dll
11614	# FIXME: Setting linknames here is a bad hack.
11615	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11616	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11617            cp "$export_symbols" "$output_objdir/$soname.def";
11618            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11619          else
11620            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11621          fi~
11622          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11623          linknames='
11624	# The linker will not automatically build a static lib if we build a DLL.
11625	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11626	enable_shared_with_static_runtimes=yes
11627	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11628	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11629	# Don't use ranlib
11630	old_postinstall_cmds='chmod 644 $oldlib'
11631	postlink_cmds='lt_outputfile="@OUTPUT@"~
11632          lt_tool_outputfile="@TOOL_OUTPUT@"~
11633          case $lt_outputfile in
11634            *.exe|*.EXE) ;;
11635            *)
11636              lt_outputfile=$lt_outputfile.exe
11637              lt_tool_outputfile=$lt_tool_outputfile.exe
11638              ;;
11639          esac~
11640          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11641            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11642            $RM "$lt_outputfile.manifest";
11643          fi'
11644	;;
11645      *)
11646	# Assume MSVC wrapper
11647	hardcode_libdir_flag_spec=' '
11648	allow_undefined_flag=unsupported
11649	# Tell ltmain to make .lib files, not .a files.
11650	libext=lib
11651	# Tell ltmain to make .dll files, not .so files.
11652	shrext_cmds=.dll
11653	# FIXME: Setting linknames here is a bad hack.
11654	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11655	# The linker will automatically build a .lib file if we build a DLL.
11656	old_archive_from_new_cmds='true'
11657	# FIXME: Should let the user specify the lib program.
11658	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11659	enable_shared_with_static_runtimes=yes
11660	;;
11661      esac
11662      ;;
11663
11664    darwin* | rhapsody*)
11665
11666
11667  archive_cmds_need_lc=no
11668  hardcode_direct=no
11669  hardcode_automatic=yes
11670  hardcode_shlibpath_var=unsupported
11671  if test yes = "$lt_cv_ld_force_load"; then
11672    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\"`'
11673
11674  else
11675    whole_archive_flag_spec=''
11676  fi
11677  link_all_deplibs=yes
11678  allow_undefined_flag=$_lt_dar_allow_undefined
11679  case $cc_basename in
11680     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11681     *) _lt_dar_can_shared=$GCC ;;
11682  esac
11683  if test yes = "$_lt_dar_can_shared"; then
11684    output_verbose_link_cmd=func_echo_all
11685    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11686    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11687    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"
11688    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"
11689
11690  else
11691  ld_shlibs=no
11692  fi
11693
11694      ;;
11695
11696    dgux*)
11697      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11698      hardcode_libdir_flag_spec='-L$libdir'
11699      hardcode_shlibpath_var=no
11700      ;;
11701
11702    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11703    # support.  Future versions do this automatically, but an explicit c++rt0.o
11704    # does not break anything, and helps significantly (at the cost of a little
11705    # extra space).
11706    freebsd2.2*)
11707      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11708      hardcode_libdir_flag_spec='-R$libdir'
11709      hardcode_direct=yes
11710      hardcode_shlibpath_var=no
11711      ;;
11712
11713    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11714    freebsd2.*)
11715      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11716      hardcode_direct=yes
11717      hardcode_minus_L=yes
11718      hardcode_shlibpath_var=no
11719      ;;
11720
11721    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11722    freebsd* | dragonfly*)
11723      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11724      hardcode_libdir_flag_spec='-R$libdir'
11725      hardcode_direct=yes
11726      hardcode_shlibpath_var=no
11727      ;;
11728
11729    hpux9*)
11730      if test yes = "$GCC"; then
11731	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'
11732      else
11733	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'
11734      fi
11735      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11736      hardcode_libdir_separator=:
11737      hardcode_direct=yes
11738
11739      # hardcode_minus_L: Not really in the search PATH,
11740      # but as the default location of the library.
11741      hardcode_minus_L=yes
11742      export_dynamic_flag_spec='$wl-E'
11743      ;;
11744
11745    hpux10*)
11746      if test yes,no = "$GCC,$with_gnu_ld"; then
11747	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11748      else
11749	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11750      fi
11751      if test no = "$with_gnu_ld"; then
11752	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11753	hardcode_libdir_separator=:
11754	hardcode_direct=yes
11755	hardcode_direct_absolute=yes
11756	export_dynamic_flag_spec='$wl-E'
11757	# hardcode_minus_L: Not really in the search PATH,
11758	# but as the default location of the library.
11759	hardcode_minus_L=yes
11760      fi
11761      ;;
11762
11763    hpux11*)
11764      if test yes,no = "$GCC,$with_gnu_ld"; then
11765	case $host_cpu in
11766	hppa*64*)
11767	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11768	  ;;
11769	ia64*)
11770	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11771	  ;;
11772	*)
11773	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11774	  ;;
11775	esac
11776      else
11777	case $host_cpu in
11778	hppa*64*)
11779	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11780	  ;;
11781	ia64*)
11782	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11783	  ;;
11784	*)
11785
11786	  # Older versions of the 11.00 compiler do not understand -b yet
11787	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11788	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11789$as_echo_n "checking if $CC understands -b... " >&6; }
11790if ${lt_cv_prog_compiler__b+:} false; then :
11791  $as_echo_n "(cached) " >&6
11792else
11793  lt_cv_prog_compiler__b=no
11794   save_LDFLAGS=$LDFLAGS
11795   LDFLAGS="$LDFLAGS -b"
11796   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11797   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11798     # The linker can only warn and ignore the option if not recognized
11799     # So say no if there are warnings
11800     if test -s conftest.err; then
11801       # Append any errors to the config.log.
11802       cat conftest.err 1>&5
11803       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11804       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11805       if diff conftest.exp conftest.er2 >/dev/null; then
11806         lt_cv_prog_compiler__b=yes
11807       fi
11808     else
11809       lt_cv_prog_compiler__b=yes
11810     fi
11811   fi
11812   $RM -r conftest*
11813   LDFLAGS=$save_LDFLAGS
11814
11815fi
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11817$as_echo "$lt_cv_prog_compiler__b" >&6; }
11818
11819if test yes = "$lt_cv_prog_compiler__b"; then
11820    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11821else
11822    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11823fi
11824
11825	  ;;
11826	esac
11827      fi
11828      if test no = "$with_gnu_ld"; then
11829	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11830	hardcode_libdir_separator=:
11831
11832	case $host_cpu in
11833	hppa*64*|ia64*)
11834	  hardcode_direct=no
11835	  hardcode_shlibpath_var=no
11836	  ;;
11837	*)
11838	  hardcode_direct=yes
11839	  hardcode_direct_absolute=yes
11840	  export_dynamic_flag_spec='$wl-E'
11841
11842	  # hardcode_minus_L: Not really in the search PATH,
11843	  # but as the default location of the library.
11844	  hardcode_minus_L=yes
11845	  ;;
11846	esac
11847      fi
11848      ;;
11849
11850    irix5* | irix6* | nonstopux*)
11851      if test yes = "$GCC"; then
11852	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'
11853	# Try to use the -exported_symbol ld option, if it does not
11854	# work, assume that -exports_file does not work either and
11855	# implicitly export all symbols.
11856	# This should be the same for all languages, so no per-tag cache variable.
11857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11858$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11859if ${lt_cv_irix_exported_symbol+:} false; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862  save_LDFLAGS=$LDFLAGS
11863	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11864	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865/* end confdefs.h.  */
11866int foo (void) { return 0; }
11867_ACEOF
11868if ac_fn_c_try_link "$LINENO"; then :
11869  lt_cv_irix_exported_symbol=yes
11870else
11871  lt_cv_irix_exported_symbol=no
11872fi
11873rm -f core conftest.err conftest.$ac_objext \
11874    conftest$ac_exeext conftest.$ac_ext
11875           LDFLAGS=$save_LDFLAGS
11876fi
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11878$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11879	if test yes = "$lt_cv_irix_exported_symbol"; then
11880          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'
11881	fi
11882	link_all_deplibs=no
11883      else
11884	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'
11885	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'
11886      fi
11887      archive_cmds_need_lc='no'
11888      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11889      hardcode_libdir_separator=:
11890      inherit_rpath=yes
11891      link_all_deplibs=yes
11892      ;;
11893
11894    linux*)
11895      case $cc_basename in
11896      tcc*)
11897	# Fabrice Bellard et al's Tiny C Compiler
11898	ld_shlibs=yes
11899	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11900	;;
11901      esac
11902      ;;
11903
11904    netbsd* | netbsdelf*-gnu)
11905      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11906	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11907      else
11908	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11909      fi
11910      hardcode_libdir_flag_spec='-R$libdir'
11911      hardcode_direct=yes
11912      hardcode_shlibpath_var=no
11913      ;;
11914
11915    newsos6)
11916      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11917      hardcode_direct=yes
11918      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11919      hardcode_libdir_separator=:
11920      hardcode_shlibpath_var=no
11921      ;;
11922
11923    *nto* | *qnx*)
11924      ;;
11925
11926    openbsd* | bitrig*)
11927      if test -f /usr/libexec/ld.so; then
11928	hardcode_direct=yes
11929	hardcode_shlibpath_var=no
11930	hardcode_direct_absolute=yes
11931	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11932	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11933	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11934	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11935	  export_dynamic_flag_spec='$wl-E'
11936	else
11937	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11938	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11939	fi
11940      else
11941	ld_shlibs=no
11942      fi
11943      ;;
11944
11945    os2*)
11946      hardcode_libdir_flag_spec='-L$libdir'
11947      hardcode_minus_L=yes
11948      allow_undefined_flag=unsupported
11949      shrext_cmds=.dll
11950      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11951	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11952	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11953	$ECHO EXPORTS >> $output_objdir/$libname.def~
11954	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11955	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11956	emximp -o $lib $output_objdir/$libname.def'
11957      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11958	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11959	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11960	$ECHO EXPORTS >> $output_objdir/$libname.def~
11961	prefix_cmds="$SED"~
11962	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11963	  prefix_cmds="$prefix_cmds -e 1d";
11964	fi~
11965	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11966	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11967	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11968	emximp -o $lib $output_objdir/$libname.def'
11969      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11970      enable_shared_with_static_runtimes=yes
11971      ;;
11972
11973    osf3*)
11974      if test yes = "$GCC"; then
11975	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11976	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'
11977      else
11978	allow_undefined_flag=' -expect_unresolved \*'
11979	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'
11980      fi
11981      archive_cmds_need_lc='no'
11982      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11983      hardcode_libdir_separator=:
11984      ;;
11985
11986    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11987      if test yes = "$GCC"; then
11988	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11989	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'
11990	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11991      else
11992	allow_undefined_flag=' -expect_unresolved \*'
11993	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'
11994	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~
11995          $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'
11996
11997	# Both c and cxx compiler support -rpath directly
11998	hardcode_libdir_flag_spec='-rpath $libdir'
11999      fi
12000      archive_cmds_need_lc='no'
12001      hardcode_libdir_separator=:
12002      ;;
12003
12004    solaris*)
12005      no_undefined_flag=' -z defs'
12006      if test yes = "$GCC"; then
12007	wlarc='$wl'
12008	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12009	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12010          $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'
12011      else
12012	case `$CC -V 2>&1` in
12013	*"Compilers 5.0"*)
12014	  wlarc=''
12015	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12016	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12017            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12018	  ;;
12019	*)
12020	  wlarc='$wl'
12021	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12022	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12023            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12024	  ;;
12025	esac
12026      fi
12027      hardcode_libdir_flag_spec='-R$libdir'
12028      hardcode_shlibpath_var=no
12029      case $host_os in
12030      solaris2.[0-5] | solaris2.[0-5].*) ;;
12031      *)
12032	# The compiler driver will combine and reorder linker options,
12033	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12034	# but is careful enough not to reorder.
12035	# Supported since Solaris 2.6 (maybe 2.5.1?)
12036	if test yes = "$GCC"; then
12037	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12038	else
12039	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12040	fi
12041	;;
12042      esac
12043      link_all_deplibs=yes
12044      ;;
12045
12046    sunos4*)
12047      if test sequent = "$host_vendor"; then
12048	# Use $CC to link under sequent, because it throws in some extra .o
12049	# files that make .init and .fini sections work.
12050	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12051      else
12052	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12053      fi
12054      hardcode_libdir_flag_spec='-L$libdir'
12055      hardcode_direct=yes
12056      hardcode_minus_L=yes
12057      hardcode_shlibpath_var=no
12058      ;;
12059
12060    sysv4)
12061      case $host_vendor in
12062	sni)
12063	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12064	  hardcode_direct=yes # is this really true???
12065	;;
12066	siemens)
12067	  ## LD is ld it makes a PLAMLIB
12068	  ## CC just makes a GrossModule.
12069	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12070	  reload_cmds='$CC -r -o $output$reload_objs'
12071	  hardcode_direct=no
12072        ;;
12073	motorola)
12074	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12075	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12076	;;
12077      esac
12078      runpath_var='LD_RUN_PATH'
12079      hardcode_shlibpath_var=no
12080      ;;
12081
12082    sysv4.3*)
12083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12084      hardcode_shlibpath_var=no
12085      export_dynamic_flag_spec='-Bexport'
12086      ;;
12087
12088    sysv4*MP*)
12089      if test -d /usr/nec; then
12090	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12091	hardcode_shlibpath_var=no
12092	runpath_var=LD_RUN_PATH
12093	hardcode_runpath_var=yes
12094	ld_shlibs=yes
12095      fi
12096      ;;
12097
12098    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12099      no_undefined_flag='$wl-z,text'
12100      archive_cmds_need_lc=no
12101      hardcode_shlibpath_var=no
12102      runpath_var='LD_RUN_PATH'
12103
12104      if test yes = "$GCC"; then
12105	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12106	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12107      else
12108	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12110      fi
12111      ;;
12112
12113    sysv5* | sco3.2v5* | sco5v6*)
12114      # Note: We CANNOT use -z defs as we might desire, because we do not
12115      # link with -lc, and that would cause any symbols used from libc to
12116      # always be unresolved, which means just about no library would
12117      # ever link correctly.  If we're not using GNU ld we use -z text
12118      # though, which does catch some bad symbols but isn't as heavy-handed
12119      # as -z defs.
12120      no_undefined_flag='$wl-z,text'
12121      allow_undefined_flag='$wl-z,nodefs'
12122      archive_cmds_need_lc=no
12123      hardcode_shlibpath_var=no
12124      hardcode_libdir_flag_spec='$wl-R,$libdir'
12125      hardcode_libdir_separator=':'
12126      link_all_deplibs=yes
12127      export_dynamic_flag_spec='$wl-Bexport'
12128      runpath_var='LD_RUN_PATH'
12129
12130      if test yes = "$GCC"; then
12131	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12132	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12133      else
12134	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12135	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136      fi
12137      ;;
12138
12139    uts4*)
12140      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12141      hardcode_libdir_flag_spec='-L$libdir'
12142      hardcode_shlibpath_var=no
12143      ;;
12144
12145    *)
12146      ld_shlibs=no
12147      ;;
12148    esac
12149
12150    if test sni = "$host_vendor"; then
12151      case $host in
12152      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12153	export_dynamic_flag_spec='$wl-Blargedynsym'
12154	;;
12155      esac
12156    fi
12157  fi
12158
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12160$as_echo "$ld_shlibs" >&6; }
12161test no = "$ld_shlibs" && can_build_shared=no
12162
12163with_gnu_ld=$with_gnu_ld
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179#
12180# Do we need to explicitly link libc?
12181#
12182case "x$archive_cmds_need_lc" in
12183x|xyes)
12184  # Assume -lc should be added
12185  archive_cmds_need_lc=yes
12186
12187  if test yes,yes = "$GCC,$enable_shared"; then
12188    case $archive_cmds in
12189    *'~'*)
12190      # FIXME: we may have to deal with multi-command sequences.
12191      ;;
12192    '$CC '*)
12193      # Test whether the compiler implicitly links with -lc since on some
12194      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12195      # to ld, don't add -lc before -lgcc.
12196      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12197$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12198if ${lt_cv_archive_cmds_need_lc+:} false; then :
12199  $as_echo_n "(cached) " >&6
12200else
12201  $RM conftest*
12202	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12203
12204	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12205  (eval $ac_compile) 2>&5
12206  ac_status=$?
12207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12208  test $ac_status = 0; } 2>conftest.err; then
12209	  soname=conftest
12210	  lib=conftest
12211	  libobjs=conftest.$ac_objext
12212	  deplibs=
12213	  wl=$lt_prog_compiler_wl
12214	  pic_flag=$lt_prog_compiler_pic
12215	  compiler_flags=-v
12216	  linker_flags=-v
12217	  verstring=
12218	  output_objdir=.
12219	  libname=conftest
12220	  lt_save_allow_undefined_flag=$allow_undefined_flag
12221	  allow_undefined_flag=
12222	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12223  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12224  ac_status=$?
12225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226  test $ac_status = 0; }
12227	  then
12228	    lt_cv_archive_cmds_need_lc=no
12229	  else
12230	    lt_cv_archive_cmds_need_lc=yes
12231	  fi
12232	  allow_undefined_flag=$lt_save_allow_undefined_flag
12233	else
12234	  cat conftest.err 1>&5
12235	fi
12236	$RM conftest*
12237
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12240$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12241      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12242      ;;
12243    esac
12244  fi
12245  ;;
12246esac
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12400$as_echo_n "checking dynamic linker characteristics... " >&6; }
12401
12402if test yes = "$GCC"; then
12403  case $host_os in
12404    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12405    *) lt_awk_arg='/^libraries:/' ;;
12406  esac
12407  case $host_os in
12408    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12409    *) lt_sed_strip_eq='s|=/|/|g' ;;
12410  esac
12411  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12412  case $lt_search_path_spec in
12413  *\;*)
12414    # if the path contains ";" then we assume it to be the separator
12415    # otherwise default to the standard path separator (i.e. ":") - it is
12416    # assumed that no part of a normal pathname contains ";" but that should
12417    # okay in the real world where ";" in dirpaths is itself problematic.
12418    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12419    ;;
12420  *)
12421    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12422    ;;
12423  esac
12424  # Ok, now we have the path, separated by spaces, we can step through it
12425  # and add multilib dir if necessary...
12426  lt_tmp_lt_search_path_spec=
12427  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12428  # ...but if some path component already ends with the multilib dir we assume
12429  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12430  case "$lt_multi_os_dir; $lt_search_path_spec " in
12431  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12432    lt_multi_os_dir=
12433    ;;
12434  esac
12435  for lt_sys_path in $lt_search_path_spec; do
12436    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12437      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12438    elif test -n "$lt_multi_os_dir"; then
12439      test -d "$lt_sys_path" && \
12440	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12441    fi
12442  done
12443  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12444BEGIN {RS = " "; FS = "/|\n";} {
12445  lt_foo = "";
12446  lt_count = 0;
12447  for (lt_i = NF; lt_i > 0; lt_i--) {
12448    if ($lt_i != "" && $lt_i != ".") {
12449      if ($lt_i == "..") {
12450        lt_count++;
12451      } else {
12452        if (lt_count == 0) {
12453          lt_foo = "/" $lt_i lt_foo;
12454        } else {
12455          lt_count--;
12456        }
12457      }
12458    }
12459  }
12460  if (lt_foo != "") { lt_freq[lt_foo]++; }
12461  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12462}'`
12463  # AWK program above erroneously prepends '/' to C:/dos/paths
12464  # for these hosts.
12465  case $host_os in
12466    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12467      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12468  esac
12469  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12470else
12471  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12472fi
12473library_names_spec=
12474libname_spec='lib$name'
12475soname_spec=
12476shrext_cmds=.so
12477postinstall_cmds=
12478postuninstall_cmds=
12479finish_cmds=
12480finish_eval=
12481shlibpath_var=
12482shlibpath_overrides_runpath=unknown
12483version_type=none
12484dynamic_linker="$host_os ld.so"
12485sys_lib_dlsearch_path_spec="/lib /usr/lib"
12486need_lib_prefix=unknown
12487hardcode_into_libs=no
12488
12489# when you set need_version to no, make sure it does not cause -set_version
12490# flags to be left without arguments
12491need_version=unknown
12492
12493
12494
12495case $host_os in
12496aix3*)
12497  version_type=linux # correct to gnu/linux during the next big refactor
12498  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12499  shlibpath_var=LIBPATH
12500
12501  # AIX 3 has no versioning support, so we append a major version to the name.
12502  soname_spec='$libname$release$shared_ext$major'
12503  ;;
12504
12505aix[4-9]*)
12506  version_type=linux # correct to gnu/linux during the next big refactor
12507  need_lib_prefix=no
12508  need_version=no
12509  hardcode_into_libs=yes
12510  if test ia64 = "$host_cpu"; then
12511    # AIX 5 supports IA64
12512    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12513    shlibpath_var=LD_LIBRARY_PATH
12514  else
12515    # With GCC up to 2.95.x, collect2 would create an import file
12516    # for dependence libraries.  The import file would start with
12517    # the line '#! .'.  This would cause the generated library to
12518    # depend on '.', always an invalid library.  This was fixed in
12519    # development snapshots of GCC prior to 3.0.
12520    case $host_os in
12521      aix4 | aix4.[01] | aix4.[01].*)
12522      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12523	   echo ' yes '
12524	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12525	:
12526      else
12527	can_build_shared=no
12528      fi
12529      ;;
12530    esac
12531    # Using Import Files as archive members, it is possible to support
12532    # filename-based versioning of shared library archives on AIX. While
12533    # this would work for both with and without runtime linking, it will
12534    # prevent static linking of such archives. So we do filename-based
12535    # shared library versioning with .so extension only, which is used
12536    # when both runtime linking and shared linking is enabled.
12537    # Unfortunately, runtime linking may impact performance, so we do
12538    # not want this to be the default eventually. Also, we use the
12539    # versioned .so libs for executables only if there is the -brtl
12540    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12541    # To allow for filename-based versioning support, we need to create
12542    # libNAME.so.V as an archive file, containing:
12543    # *) an Import File, referring to the versioned filename of the
12544    #    archive as well as the shared archive member, telling the
12545    #    bitwidth (32 or 64) of that shared object, and providing the
12546    #    list of exported symbols of that shared object, eventually
12547    #    decorated with the 'weak' keyword
12548    # *) the shared object with the F_LOADONLY flag set, to really avoid
12549    #    it being seen by the linker.
12550    # At run time we better use the real file rather than another symlink,
12551    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12552
12553    case $with_aix_soname,$aix_use_runtimelinking in
12554    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12555    # soname into executable. Probably we can add versioning support to
12556    # collect2, so additional links can be useful in future.
12557    aix,yes) # traditional libtool
12558      dynamic_linker='AIX unversionable lib.so'
12559      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12560      # instead of lib<name>.a to let people know that these are not
12561      # typical AIX shared libraries.
12562      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563      ;;
12564    aix,no) # traditional AIX only
12565      dynamic_linker='AIX lib.a(lib.so.V)'
12566      # We preserve .a as extension for shared libraries through AIX4.2
12567      # and later when we are not doing run time linking.
12568      library_names_spec='$libname$release.a $libname.a'
12569      soname_spec='$libname$release$shared_ext$major'
12570      ;;
12571    svr4,*) # full svr4 only
12572      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12573      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12574      # We do not specify a path in Import Files, so LIBPATH fires.
12575      shlibpath_overrides_runpath=yes
12576      ;;
12577    *,yes) # both, prefer svr4
12578      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12579      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12580      # unpreferred sharedlib libNAME.a needs extra handling
12581      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"'
12582      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"'
12583      # We do not specify a path in Import Files, so LIBPATH fires.
12584      shlibpath_overrides_runpath=yes
12585      ;;
12586    *,no) # both, prefer aix
12587      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12588      library_names_spec='$libname$release.a $libname.a'
12589      soname_spec='$libname$release$shared_ext$major'
12590      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12591      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)'
12592      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"'
12593      ;;
12594    esac
12595    shlibpath_var=LIBPATH
12596  fi
12597  ;;
12598
12599amigaos*)
12600  case $host_cpu in
12601  powerpc)
12602    # Since July 2007 AmigaOS4 officially supports .so libraries.
12603    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12604    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605    ;;
12606  m68k)
12607    library_names_spec='$libname.ixlibrary $libname.a'
12608    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12609    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'
12610    ;;
12611  esac
12612  ;;
12613
12614beos*)
12615  library_names_spec='$libname$shared_ext'
12616  dynamic_linker="$host_os ld.so"
12617  shlibpath_var=LIBRARY_PATH
12618  ;;
12619
12620bsdi[45]*)
12621  version_type=linux # correct to gnu/linux during the next big refactor
12622  need_version=no
12623  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12624  soname_spec='$libname$release$shared_ext$major'
12625  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12626  shlibpath_var=LD_LIBRARY_PATH
12627  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12628  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12629  # the default ld.so.conf also contains /usr/contrib/lib and
12630  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12631  # libtool to hard-code these into programs
12632  ;;
12633
12634cygwin* | mingw* | pw32* | cegcc*)
12635  version_type=windows
12636  shrext_cmds=.dll
12637  need_version=no
12638  need_lib_prefix=no
12639
12640  case $GCC,$cc_basename in
12641  yes,*)
12642    # gcc
12643    library_names_spec='$libname.dll.a'
12644    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12645    postinstall_cmds='base_file=`basename \$file`~
12646      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12647      dldir=$destdir/`dirname \$dlpath`~
12648      test -d \$dldir || mkdir -p \$dldir~
12649      $install_prog $dir/$dlname \$dldir/$dlname~
12650      chmod a+x \$dldir/$dlname~
12651      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12652        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12653      fi'
12654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12655      dlpath=$dir/\$dldll~
12656       $RM \$dlpath'
12657    shlibpath_overrides_runpath=yes
12658
12659    case $host_os in
12660    cygwin*)
12661      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12662      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12663
12664      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12665      ;;
12666    mingw* | cegcc*)
12667      # MinGW DLLs use traditional 'lib' prefix
12668      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12669      ;;
12670    pw32*)
12671      # pw32 DLLs use 'pw' prefix rather than 'lib'
12672      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12673      ;;
12674    esac
12675    dynamic_linker='Win32 ld.exe'
12676    ;;
12677
12678  *,cl*)
12679    # Native MSVC
12680    libname_spec='$name'
12681    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12682    library_names_spec='$libname.dll.lib'
12683
12684    case $build_os in
12685    mingw*)
12686      sys_lib_search_path_spec=
12687      lt_save_ifs=$IFS
12688      IFS=';'
12689      for lt_path in $LIB
12690      do
12691        IFS=$lt_save_ifs
12692        # Let DOS variable expansion print the short 8.3 style file name.
12693        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12694        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12695      done
12696      IFS=$lt_save_ifs
12697      # Convert to MSYS style.
12698      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12699      ;;
12700    cygwin*)
12701      # Convert to unix form, then to dos form, then back to unix form
12702      # but this time dos style (no spaces!) so that the unix form looks
12703      # like /cygdrive/c/PROGRA~1:/cygdr...
12704      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12705      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12706      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12707      ;;
12708    *)
12709      sys_lib_search_path_spec=$LIB
12710      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12711        # It is most probably a Windows format PATH.
12712        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12713      else
12714        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12715      fi
12716      # FIXME: find the short name or the path components, as spaces are
12717      # common. (e.g. "Program Files" -> "PROGRA~1")
12718      ;;
12719    esac
12720
12721    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12722    postinstall_cmds='base_file=`basename \$file`~
12723      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12724      dldir=$destdir/`dirname \$dlpath`~
12725      test -d \$dldir || mkdir -p \$dldir~
12726      $install_prog $dir/$dlname \$dldir/$dlname'
12727    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12728      dlpath=$dir/\$dldll~
12729       $RM \$dlpath'
12730    shlibpath_overrides_runpath=yes
12731    dynamic_linker='Win32 link.exe'
12732    ;;
12733
12734  *)
12735    # Assume MSVC wrapper
12736    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12737    dynamic_linker='Win32 ld.exe'
12738    ;;
12739  esac
12740  # FIXME: first we should search . and the directory the executable is in
12741  shlibpath_var=PATH
12742  ;;
12743
12744darwin* | rhapsody*)
12745  dynamic_linker="$host_os dyld"
12746  version_type=darwin
12747  need_lib_prefix=no
12748  need_version=no
12749  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12750  soname_spec='$libname$release$major$shared_ext'
12751  shlibpath_overrides_runpath=yes
12752  shlibpath_var=DYLD_LIBRARY_PATH
12753  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12754
12755  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12756  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12757  ;;
12758
12759dgux*)
12760  version_type=linux # correct to gnu/linux during the next big refactor
12761  need_lib_prefix=no
12762  need_version=no
12763  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12764  soname_spec='$libname$release$shared_ext$major'
12765  shlibpath_var=LD_LIBRARY_PATH
12766  ;;
12767
12768freebsd* | dragonfly*)
12769  # DragonFly does not have aout.  When/if they implement a new
12770  # versioning mechanism, adjust this.
12771  if test -x /usr/bin/objformat; then
12772    objformat=`/usr/bin/objformat`
12773  else
12774    case $host_os in
12775    freebsd[23].*) objformat=aout ;;
12776    *) objformat=elf ;;
12777    esac
12778  fi
12779  version_type=freebsd-$objformat
12780  case $version_type in
12781    freebsd-elf*)
12782      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12783      soname_spec='$libname$release$shared_ext$major'
12784      need_version=no
12785      need_lib_prefix=no
12786      ;;
12787    freebsd-*)
12788      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12789      need_version=yes
12790      ;;
12791  esac
12792  shlibpath_var=LD_LIBRARY_PATH
12793  case $host_os in
12794  freebsd2.*)
12795    shlibpath_overrides_runpath=yes
12796    ;;
12797  freebsd3.[01]* | freebsdelf3.[01]*)
12798    shlibpath_overrides_runpath=yes
12799    hardcode_into_libs=yes
12800    ;;
12801  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12802  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12803    shlibpath_overrides_runpath=no
12804    hardcode_into_libs=yes
12805    ;;
12806  *) # from 4.6 on, and DragonFly
12807    shlibpath_overrides_runpath=yes
12808    hardcode_into_libs=yes
12809    ;;
12810  esac
12811  ;;
12812
12813haiku*)
12814  version_type=linux # correct to gnu/linux during the next big refactor
12815  need_lib_prefix=no
12816  need_version=no
12817  dynamic_linker="$host_os runtime_loader"
12818  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12819  soname_spec='$libname$release$shared_ext$major'
12820  shlibpath_var=LIBRARY_PATH
12821  shlibpath_overrides_runpath=no
12822  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12823  hardcode_into_libs=yes
12824  ;;
12825
12826hpux9* | hpux10* | hpux11*)
12827  # Give a soname corresponding to the major version so that dld.sl refuses to
12828  # link against other versions.
12829  version_type=sunos
12830  need_lib_prefix=no
12831  need_version=no
12832  case $host_cpu in
12833  ia64*)
12834    shrext_cmds='.so'
12835    hardcode_into_libs=yes
12836    dynamic_linker="$host_os dld.so"
12837    shlibpath_var=LD_LIBRARY_PATH
12838    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12839    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12840    soname_spec='$libname$release$shared_ext$major'
12841    if test 32 = "$HPUX_IA64_MODE"; then
12842      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12843      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12844    else
12845      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12846      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12847    fi
12848    ;;
12849  hppa*64*)
12850    shrext_cmds='.sl'
12851    hardcode_into_libs=yes
12852    dynamic_linker="$host_os dld.sl"
12853    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12854    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12855    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856    soname_spec='$libname$release$shared_ext$major'
12857    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12858    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12859    ;;
12860  *)
12861    shrext_cmds='.sl'
12862    dynamic_linker="$host_os dld.sl"
12863    shlibpath_var=SHLIB_PATH
12864    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12865    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12866    soname_spec='$libname$release$shared_ext$major'
12867    ;;
12868  esac
12869  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12870  postinstall_cmds='chmod 555 $lib'
12871  # or fails outright, so override atomically:
12872  install_override_mode=555
12873  ;;
12874
12875interix[3-9]*)
12876  version_type=linux # correct to gnu/linux during the next big refactor
12877  need_lib_prefix=no
12878  need_version=no
12879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12880  soname_spec='$libname$release$shared_ext$major'
12881  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12882  shlibpath_var=LD_LIBRARY_PATH
12883  shlibpath_overrides_runpath=no
12884  hardcode_into_libs=yes
12885  ;;
12886
12887irix5* | irix6* | nonstopux*)
12888  case $host_os in
12889    nonstopux*) version_type=nonstopux ;;
12890    *)
12891	if test yes = "$lt_cv_prog_gnu_ld"; then
12892		version_type=linux # correct to gnu/linux during the next big refactor
12893	else
12894		version_type=irix
12895	fi ;;
12896  esac
12897  need_lib_prefix=no
12898  need_version=no
12899  soname_spec='$libname$release$shared_ext$major'
12900  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12901  case $host_os in
12902  irix5* | nonstopux*)
12903    libsuff= shlibsuff=
12904    ;;
12905  *)
12906    case $LD in # libtool.m4 will add one of these switches to LD
12907    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12908      libsuff= shlibsuff= libmagic=32-bit;;
12909    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12910      libsuff=32 shlibsuff=N32 libmagic=N32;;
12911    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12912      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12913    *) libsuff= shlibsuff= libmagic=never-match;;
12914    esac
12915    ;;
12916  esac
12917  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12918  shlibpath_overrides_runpath=no
12919  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12920  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12921  hardcode_into_libs=yes
12922  ;;
12923
12924# No shared lib support for Linux oldld, aout, or coff.
12925linux*oldld* | linux*aout* | linux*coff*)
12926  dynamic_linker=no
12927  ;;
12928
12929linux*android*)
12930  version_type=none # Android doesn't support versioned libraries.
12931  need_lib_prefix=no
12932  need_version=no
12933  library_names_spec='$libname$release$shared_ext'
12934  soname_spec='$libname$release$shared_ext'
12935  finish_cmds=
12936  shlibpath_var=LD_LIBRARY_PATH
12937  shlibpath_overrides_runpath=yes
12938
12939  # This implies no fast_install, which is unacceptable.
12940  # Some rework will be needed to allow for fast_install
12941  # before this can be enabled.
12942  hardcode_into_libs=yes
12943
12944  dynamic_linker='Android linker'
12945  # Don't embed -rpath directories since the linker doesn't support them.
12946  hardcode_libdir_flag_spec='-L$libdir'
12947  ;;
12948
12949# This must be glibc/ELF.
12950linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12951  version_type=linux # correct to gnu/linux during the next big refactor
12952  need_lib_prefix=no
12953  need_version=no
12954  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12955  soname_spec='$libname$release$shared_ext$major'
12956  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12957  shlibpath_var=LD_LIBRARY_PATH
12958  shlibpath_overrides_runpath=no
12959
12960  # Some binutils ld are patched to set DT_RUNPATH
12961  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12962  $as_echo_n "(cached) " >&6
12963else
12964  lt_cv_shlibpath_overrides_runpath=no
12965    save_LDFLAGS=$LDFLAGS
12966    save_libdir=$libdir
12967    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12968	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970/* end confdefs.h.  */
12971
12972int
12973main ()
12974{
12975
12976  ;
12977  return 0;
12978}
12979_ACEOF
12980if ac_fn_c_try_link "$LINENO"; then :
12981  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12982  lt_cv_shlibpath_overrides_runpath=yes
12983fi
12984fi
12985rm -f core conftest.err conftest.$ac_objext \
12986    conftest$ac_exeext conftest.$ac_ext
12987    LDFLAGS=$save_LDFLAGS
12988    libdir=$save_libdir
12989
12990fi
12991
12992  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12993
12994  # This implies no fast_install, which is unacceptable.
12995  # Some rework will be needed to allow for fast_install
12996  # before this can be enabled.
12997  hardcode_into_libs=yes
12998
12999  # Ideally, we could use ldconfig to report *all* directores which are
13000  # searched for libraries, however this is still not possible.  Aside from not
13001  # being certain /sbin/ldconfig is available, command
13002  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13003  # even though it is searched at run-time.  Try to do the best guess by
13004  # appending ld.so.conf contents (and includes) to the search path.
13005  if test -f /etc/ld.so.conf; then
13006    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' ' '`
13007    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13008  fi
13009
13010  # We used to test for /lib/ld.so.1 and disable shared libraries on
13011  # powerpc, because MkLinux only supported shared libraries with the
13012  # GNU dynamic linker.  Since this was broken with cross compilers,
13013  # most powerpc-linux boxes support dynamic linking these days and
13014  # people can always --disable-shared, the test was removed, and we
13015  # assume the GNU/Linux dynamic linker is in use.
13016  dynamic_linker='GNU/Linux ld.so'
13017  ;;
13018
13019netbsdelf*-gnu)
13020  version_type=linux
13021  need_lib_prefix=no
13022  need_version=no
13023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13024  soname_spec='${libname}${release}${shared_ext}$major'
13025  shlibpath_var=LD_LIBRARY_PATH
13026  shlibpath_overrides_runpath=no
13027  hardcode_into_libs=yes
13028  dynamic_linker='NetBSD ld.elf_so'
13029  ;;
13030
13031netbsd*)
13032  version_type=sunos
13033  need_lib_prefix=no
13034  need_version=no
13035  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13036    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13037    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038    dynamic_linker='NetBSD (a.out) ld.so'
13039  else
13040    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13041    soname_spec='$libname$release$shared_ext$major'
13042    dynamic_linker='NetBSD ld.elf_so'
13043  fi
13044  shlibpath_var=LD_LIBRARY_PATH
13045  shlibpath_overrides_runpath=yes
13046  hardcode_into_libs=yes
13047  ;;
13048
13049newsos6)
13050  version_type=linux # correct to gnu/linux during the next big refactor
13051  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13052  shlibpath_var=LD_LIBRARY_PATH
13053  shlibpath_overrides_runpath=yes
13054  ;;
13055
13056*nto* | *qnx*)
13057  version_type=qnx
13058  need_lib_prefix=no
13059  need_version=no
13060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13061  soname_spec='$libname$release$shared_ext$major'
13062  shlibpath_var=LD_LIBRARY_PATH
13063  shlibpath_overrides_runpath=no
13064  hardcode_into_libs=yes
13065  dynamic_linker='ldqnx.so'
13066  ;;
13067
13068openbsd* | bitrig*)
13069  version_type=sunos
13070  sys_lib_dlsearch_path_spec=/usr/lib
13071  need_lib_prefix=no
13072  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13073    need_version=no
13074  else
13075    need_version=yes
13076  fi
13077  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13078  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13079  shlibpath_var=LD_LIBRARY_PATH
13080  shlibpath_overrides_runpath=yes
13081  ;;
13082
13083os2*)
13084  libname_spec='$name'
13085  version_type=windows
13086  shrext_cmds=.dll
13087  need_version=no
13088  need_lib_prefix=no
13089  # OS/2 can only load a DLL with a base name of 8 characters or less.
13090  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13091    v=$($ECHO $release$versuffix | tr -d .-);
13092    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13093    $ECHO $n$v`$shared_ext'
13094  library_names_spec='${libname}_dll.$libext'
13095  dynamic_linker='OS/2 ld.exe'
13096  shlibpath_var=BEGINLIBPATH
13097  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13098  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13099  postinstall_cmds='base_file=`basename \$file`~
13100    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13101    dldir=$destdir/`dirname \$dlpath`~
13102    test -d \$dldir || mkdir -p \$dldir~
13103    $install_prog $dir/$dlname \$dldir/$dlname~
13104    chmod a+x \$dldir/$dlname~
13105    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13106      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13107    fi'
13108  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13109    dlpath=$dir/\$dldll~
13110    $RM \$dlpath'
13111  ;;
13112
13113osf3* | osf4* | osf5*)
13114  version_type=osf
13115  need_lib_prefix=no
13116  need_version=no
13117  soname_spec='$libname$release$shared_ext$major'
13118  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13119  shlibpath_var=LD_LIBRARY_PATH
13120  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13121  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13122  ;;
13123
13124rdos*)
13125  dynamic_linker=no
13126  ;;
13127
13128solaris*)
13129  version_type=linux # correct to gnu/linux during the next big refactor
13130  need_lib_prefix=no
13131  need_version=no
13132  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13133  soname_spec='$libname$release$shared_ext$major'
13134  shlibpath_var=LD_LIBRARY_PATH
13135  shlibpath_overrides_runpath=yes
13136  hardcode_into_libs=yes
13137  # ldd complains unless libraries are executable
13138  postinstall_cmds='chmod +x $lib'
13139  ;;
13140
13141sunos4*)
13142  version_type=sunos
13143  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13144  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13145  shlibpath_var=LD_LIBRARY_PATH
13146  shlibpath_overrides_runpath=yes
13147  if test yes = "$with_gnu_ld"; then
13148    need_lib_prefix=no
13149  fi
13150  need_version=yes
13151  ;;
13152
13153sysv4 | sysv4.3*)
13154  version_type=linux # correct to gnu/linux during the next big refactor
13155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13156  soname_spec='$libname$release$shared_ext$major'
13157  shlibpath_var=LD_LIBRARY_PATH
13158  case $host_vendor in
13159    sni)
13160      shlibpath_overrides_runpath=no
13161      need_lib_prefix=no
13162      runpath_var=LD_RUN_PATH
13163      ;;
13164    siemens)
13165      need_lib_prefix=no
13166      ;;
13167    motorola)
13168      need_lib_prefix=no
13169      need_version=no
13170      shlibpath_overrides_runpath=no
13171      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13172      ;;
13173  esac
13174  ;;
13175
13176sysv4*MP*)
13177  if test -d /usr/nec; then
13178    version_type=linux # correct to gnu/linux during the next big refactor
13179    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13180    soname_spec='$libname$shared_ext.$major'
13181    shlibpath_var=LD_LIBRARY_PATH
13182  fi
13183  ;;
13184
13185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13186  version_type=sco
13187  need_lib_prefix=no
13188  need_version=no
13189  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13190  soname_spec='$libname$release$shared_ext$major'
13191  shlibpath_var=LD_LIBRARY_PATH
13192  shlibpath_overrides_runpath=yes
13193  hardcode_into_libs=yes
13194  if test yes = "$with_gnu_ld"; then
13195    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13196  else
13197    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13198    case $host_os in
13199      sco3.2v5*)
13200        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13201	;;
13202    esac
13203  fi
13204  sys_lib_dlsearch_path_spec='/usr/lib'
13205  ;;
13206
13207tpf*)
13208  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13209  version_type=linux # correct to gnu/linux during the next big refactor
13210  need_lib_prefix=no
13211  need_version=no
13212  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13213  shlibpath_var=LD_LIBRARY_PATH
13214  shlibpath_overrides_runpath=no
13215  hardcode_into_libs=yes
13216  ;;
13217
13218uts4*)
13219  version_type=linux # correct to gnu/linux during the next big refactor
13220  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13221  soname_spec='$libname$release$shared_ext$major'
13222  shlibpath_var=LD_LIBRARY_PATH
13223  ;;
13224
13225*)
13226  dynamic_linker=no
13227  ;;
13228esac
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13230$as_echo "$dynamic_linker" >&6; }
13231test no = "$dynamic_linker" && can_build_shared=no
13232
13233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13234if test yes = "$GCC"; then
13235  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13236fi
13237
13238if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13239  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13240fi
13241
13242if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13243  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13244fi
13245
13246# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13247configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13248
13249# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13250func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13251
13252# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13253configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13352$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13353hardcode_action=
13354if test -n "$hardcode_libdir_flag_spec" ||
13355   test -n "$runpath_var" ||
13356   test yes = "$hardcode_automatic"; then
13357
13358  # We can hardcode non-existent directories.
13359  if test no != "$hardcode_direct" &&
13360     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13361     # have to relink, otherwise we might link with an installed library
13362     # when we should be linking with a yet-to-be-installed one
13363     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13364     test no != "$hardcode_minus_L"; then
13365    # Linking always hardcodes the temporary library directory.
13366    hardcode_action=relink
13367  else
13368    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13369    hardcode_action=immediate
13370  fi
13371else
13372  # We cannot hardcode anything, or else we can only hardcode existing
13373  # directories.
13374  hardcode_action=unsupported
13375fi
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13377$as_echo "$hardcode_action" >&6; }
13378
13379if test relink = "$hardcode_action" ||
13380   test yes = "$inherit_rpath"; then
13381  # Fast installation is not supported
13382  enable_fast_install=no
13383elif test yes = "$shlibpath_overrides_runpath" ||
13384     test no = "$enable_shared"; then
13385  # Fast installation is not necessary
13386  enable_fast_install=needless
13387fi
13388
13389
13390
13391
13392
13393
13394  if test yes != "$enable_dlopen"; then
13395  enable_dlopen=unknown
13396  enable_dlopen_self=unknown
13397  enable_dlopen_self_static=unknown
13398else
13399  lt_cv_dlopen=no
13400  lt_cv_dlopen_libs=
13401
13402  case $host_os in
13403  beos*)
13404    lt_cv_dlopen=load_add_on
13405    lt_cv_dlopen_libs=
13406    lt_cv_dlopen_self=yes
13407    ;;
13408
13409  mingw* | pw32* | cegcc*)
13410    lt_cv_dlopen=LoadLibrary
13411    lt_cv_dlopen_libs=
13412    ;;
13413
13414  cygwin*)
13415    lt_cv_dlopen=dlopen
13416    lt_cv_dlopen_libs=
13417    ;;
13418
13419  darwin*)
13420    # if libdl is installed we need to link against it
13421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13422$as_echo_n "checking for dlopen in -ldl... " >&6; }
13423if ${ac_cv_lib_dl_dlopen+:} false; then :
13424  $as_echo_n "(cached) " >&6
13425else
13426  ac_check_lib_save_LIBS=$LIBS
13427LIBS="-ldl  $LIBS"
13428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h.  */
13430
13431/* Override any GCC internal prototype to avoid an error.
13432   Use char because int might match the return type of a GCC
13433   builtin and then its argument prototype would still apply.  */
13434#ifdef __cplusplus
13435extern "C"
13436#endif
13437char dlopen ();
13438int
13439main ()
13440{
13441return dlopen ();
13442  ;
13443  return 0;
13444}
13445_ACEOF
13446if ac_fn_c_try_link "$LINENO"; then :
13447  ac_cv_lib_dl_dlopen=yes
13448else
13449  ac_cv_lib_dl_dlopen=no
13450fi
13451rm -f core conftest.err conftest.$ac_objext \
13452    conftest$ac_exeext conftest.$ac_ext
13453LIBS=$ac_check_lib_save_LIBS
13454fi
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13456$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13457if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13458  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13459else
13460
13461    lt_cv_dlopen=dyld
13462    lt_cv_dlopen_libs=
13463    lt_cv_dlopen_self=yes
13464
13465fi
13466
13467    ;;
13468
13469  tpf*)
13470    # Don't try to run any link tests for TPF.  We know it's impossible
13471    # because TPF is a cross-compiler, and we know how we open DSOs.
13472    lt_cv_dlopen=dlopen
13473    lt_cv_dlopen_libs=
13474    lt_cv_dlopen_self=no
13475    ;;
13476
13477  *)
13478    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13479if test "x$ac_cv_func_shl_load" = xyes; then :
13480  lt_cv_dlopen=shl_load
13481else
13482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13483$as_echo_n "checking for shl_load in -ldld... " >&6; }
13484if ${ac_cv_lib_dld_shl_load+:} false; then :
13485  $as_echo_n "(cached) " >&6
13486else
13487  ac_check_lib_save_LIBS=$LIBS
13488LIBS="-ldld  $LIBS"
13489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h.  */
13491
13492/* Override any GCC internal prototype to avoid an error.
13493   Use char because int might match the return type of a GCC
13494   builtin and then its argument prototype would still apply.  */
13495#ifdef __cplusplus
13496extern "C"
13497#endif
13498char shl_load ();
13499int
13500main ()
13501{
13502return shl_load ();
13503  ;
13504  return 0;
13505}
13506_ACEOF
13507if ac_fn_c_try_link "$LINENO"; then :
13508  ac_cv_lib_dld_shl_load=yes
13509else
13510  ac_cv_lib_dld_shl_load=no
13511fi
13512rm -f core conftest.err conftest.$ac_objext \
13513    conftest$ac_exeext conftest.$ac_ext
13514LIBS=$ac_check_lib_save_LIBS
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13517$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13518if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13519  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13520else
13521  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13522if test "x$ac_cv_func_dlopen" = xyes; then :
13523  lt_cv_dlopen=dlopen
13524else
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13526$as_echo_n "checking for dlopen in -ldl... " >&6; }
13527if ${ac_cv_lib_dl_dlopen+:} false; then :
13528  $as_echo_n "(cached) " >&6
13529else
13530  ac_check_lib_save_LIBS=$LIBS
13531LIBS="-ldl  $LIBS"
13532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533/* end confdefs.h.  */
13534
13535/* Override any GCC internal prototype to avoid an error.
13536   Use char because int might match the return type of a GCC
13537   builtin and then its argument prototype would still apply.  */
13538#ifdef __cplusplus
13539extern "C"
13540#endif
13541char dlopen ();
13542int
13543main ()
13544{
13545return dlopen ();
13546  ;
13547  return 0;
13548}
13549_ACEOF
13550if ac_fn_c_try_link "$LINENO"; then :
13551  ac_cv_lib_dl_dlopen=yes
13552else
13553  ac_cv_lib_dl_dlopen=no
13554fi
13555rm -f core conftest.err conftest.$ac_objext \
13556    conftest$ac_exeext conftest.$ac_ext
13557LIBS=$ac_check_lib_save_LIBS
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13560$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13561if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13562  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13563else
13564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13565$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13566if ${ac_cv_lib_svld_dlopen+:} false; then :
13567  $as_echo_n "(cached) " >&6
13568else
13569  ac_check_lib_save_LIBS=$LIBS
13570LIBS="-lsvld  $LIBS"
13571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572/* end confdefs.h.  */
13573
13574/* Override any GCC internal prototype to avoid an error.
13575   Use char because int might match the return type of a GCC
13576   builtin and then its argument prototype would still apply.  */
13577#ifdef __cplusplus
13578extern "C"
13579#endif
13580char dlopen ();
13581int
13582main ()
13583{
13584return dlopen ();
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589if ac_fn_c_try_link "$LINENO"; then :
13590  ac_cv_lib_svld_dlopen=yes
13591else
13592  ac_cv_lib_svld_dlopen=no
13593fi
13594rm -f core conftest.err conftest.$ac_objext \
13595    conftest$ac_exeext conftest.$ac_ext
13596LIBS=$ac_check_lib_save_LIBS
13597fi
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13599$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13600if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13601  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13602else
13603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13604$as_echo_n "checking for dld_link in -ldld... " >&6; }
13605if ${ac_cv_lib_dld_dld_link+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  ac_check_lib_save_LIBS=$LIBS
13609LIBS="-ldld  $LIBS"
13610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612
13613/* Override any GCC internal prototype to avoid an error.
13614   Use char because int might match the return type of a GCC
13615   builtin and then its argument prototype would still apply.  */
13616#ifdef __cplusplus
13617extern "C"
13618#endif
13619char dld_link ();
13620int
13621main ()
13622{
13623return dld_link ();
13624  ;
13625  return 0;
13626}
13627_ACEOF
13628if ac_fn_c_try_link "$LINENO"; then :
13629  ac_cv_lib_dld_dld_link=yes
13630else
13631  ac_cv_lib_dld_dld_link=no
13632fi
13633rm -f core conftest.err conftest.$ac_objext \
13634    conftest$ac_exeext conftest.$ac_ext
13635LIBS=$ac_check_lib_save_LIBS
13636fi
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13638$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13639if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13640  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13641fi
13642
13643
13644fi
13645
13646
13647fi
13648
13649
13650fi
13651
13652
13653fi
13654
13655
13656fi
13657
13658    ;;
13659  esac
13660
13661  if test no = "$lt_cv_dlopen"; then
13662    enable_dlopen=no
13663  else
13664    enable_dlopen=yes
13665  fi
13666
13667  case $lt_cv_dlopen in
13668  dlopen)
13669    save_CPPFLAGS=$CPPFLAGS
13670    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13671
13672    save_LDFLAGS=$LDFLAGS
13673    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13674
13675    save_LIBS=$LIBS
13676    LIBS="$lt_cv_dlopen_libs $LIBS"
13677
13678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13679$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13680if ${lt_cv_dlopen_self+:} false; then :
13681  $as_echo_n "(cached) " >&6
13682else
13683  	  if test yes = "$cross_compiling"; then :
13684  lt_cv_dlopen_self=cross
13685else
13686  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13687  lt_status=$lt_dlunknown
13688  cat > conftest.$ac_ext <<_LT_EOF
13689#line $LINENO "configure"
13690#include "confdefs.h"
13691
13692#if HAVE_DLFCN_H
13693#include <dlfcn.h>
13694#endif
13695
13696#include <stdio.h>
13697
13698#ifdef RTLD_GLOBAL
13699#  define LT_DLGLOBAL		RTLD_GLOBAL
13700#else
13701#  ifdef DL_GLOBAL
13702#    define LT_DLGLOBAL		DL_GLOBAL
13703#  else
13704#    define LT_DLGLOBAL		0
13705#  endif
13706#endif
13707
13708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13709   find out it does not work in some platform. */
13710#ifndef LT_DLLAZY_OR_NOW
13711#  ifdef RTLD_LAZY
13712#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13713#  else
13714#    ifdef DL_LAZY
13715#      define LT_DLLAZY_OR_NOW		DL_LAZY
13716#    else
13717#      ifdef RTLD_NOW
13718#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13719#      else
13720#        ifdef DL_NOW
13721#          define LT_DLLAZY_OR_NOW	DL_NOW
13722#        else
13723#          define LT_DLLAZY_OR_NOW	0
13724#        endif
13725#      endif
13726#    endif
13727#  endif
13728#endif
13729
13730/* When -fvisibility=hidden is used, assume the code has been annotated
13731   correspondingly for the symbols needed.  */
13732#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13733int fnord () __attribute__((visibility("default")));
13734#endif
13735
13736int fnord () { return 42; }
13737int main ()
13738{
13739  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13740  int status = $lt_dlunknown;
13741
13742  if (self)
13743    {
13744      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13745      else
13746        {
13747	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13748          else puts (dlerror ());
13749	}
13750      /* dlclose (self); */
13751    }
13752  else
13753    puts (dlerror ());
13754
13755  return status;
13756}
13757_LT_EOF
13758  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13759  (eval $ac_link) 2>&5
13760  ac_status=$?
13761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13762  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13763    (./conftest; exit; ) >&5 2>/dev/null
13764    lt_status=$?
13765    case x$lt_status in
13766      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13767      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13768      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13769    esac
13770  else :
13771    # compilation failed
13772    lt_cv_dlopen_self=no
13773  fi
13774fi
13775rm -fr conftest*
13776
13777
13778fi
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13780$as_echo "$lt_cv_dlopen_self" >&6; }
13781
13782    if test yes = "$lt_cv_dlopen_self"; then
13783      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13784      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13785$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13786if ${lt_cv_dlopen_self_static+:} false; then :
13787  $as_echo_n "(cached) " >&6
13788else
13789  	  if test yes = "$cross_compiling"; then :
13790  lt_cv_dlopen_self_static=cross
13791else
13792  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13793  lt_status=$lt_dlunknown
13794  cat > conftest.$ac_ext <<_LT_EOF
13795#line $LINENO "configure"
13796#include "confdefs.h"
13797
13798#if HAVE_DLFCN_H
13799#include <dlfcn.h>
13800#endif
13801
13802#include <stdio.h>
13803
13804#ifdef RTLD_GLOBAL
13805#  define LT_DLGLOBAL		RTLD_GLOBAL
13806#else
13807#  ifdef DL_GLOBAL
13808#    define LT_DLGLOBAL		DL_GLOBAL
13809#  else
13810#    define LT_DLGLOBAL		0
13811#  endif
13812#endif
13813
13814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13815   find out it does not work in some platform. */
13816#ifndef LT_DLLAZY_OR_NOW
13817#  ifdef RTLD_LAZY
13818#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13819#  else
13820#    ifdef DL_LAZY
13821#      define LT_DLLAZY_OR_NOW		DL_LAZY
13822#    else
13823#      ifdef RTLD_NOW
13824#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13825#      else
13826#        ifdef DL_NOW
13827#          define LT_DLLAZY_OR_NOW	DL_NOW
13828#        else
13829#          define LT_DLLAZY_OR_NOW	0
13830#        endif
13831#      endif
13832#    endif
13833#  endif
13834#endif
13835
13836/* When -fvisibility=hidden is used, assume the code has been annotated
13837   correspondingly for the symbols needed.  */
13838#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13839int fnord () __attribute__((visibility("default")));
13840#endif
13841
13842int fnord () { return 42; }
13843int main ()
13844{
13845  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13846  int status = $lt_dlunknown;
13847
13848  if (self)
13849    {
13850      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13851      else
13852        {
13853	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13854          else puts (dlerror ());
13855	}
13856      /* dlclose (self); */
13857    }
13858  else
13859    puts (dlerror ());
13860
13861  return status;
13862}
13863_LT_EOF
13864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13865  (eval $ac_link) 2>&5
13866  ac_status=$?
13867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13868  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13869    (./conftest; exit; ) >&5 2>/dev/null
13870    lt_status=$?
13871    case x$lt_status in
13872      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13873      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13874      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13875    esac
13876  else :
13877    # compilation failed
13878    lt_cv_dlopen_self_static=no
13879  fi
13880fi
13881rm -fr conftest*
13882
13883
13884fi
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13886$as_echo "$lt_cv_dlopen_self_static" >&6; }
13887    fi
13888
13889    CPPFLAGS=$save_CPPFLAGS
13890    LDFLAGS=$save_LDFLAGS
13891    LIBS=$save_LIBS
13892    ;;
13893  esac
13894
13895  case $lt_cv_dlopen_self in
13896  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13897  *) enable_dlopen_self=unknown ;;
13898  esac
13899
13900  case $lt_cv_dlopen_self_static in
13901  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13902  *) enable_dlopen_self_static=unknown ;;
13903  esac
13904fi
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922striplib=
13923old_striplib=
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13925$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13926if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13927  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13928  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13930$as_echo "yes" >&6; }
13931else
13932# FIXME - insert some real tests, host_os isn't really good enough
13933  case $host_os in
13934  darwin*)
13935    if test -n "$STRIP"; then
13936      striplib="$STRIP -x"
13937      old_striplib="$STRIP -S"
13938      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13939$as_echo "yes" >&6; }
13940    else
13941      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942$as_echo "no" >&6; }
13943    fi
13944    ;;
13945  *)
13946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
13948    ;;
13949  esac
13950fi
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963  # Report what library types will actually be built
13964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13965$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13967$as_echo "$can_build_shared" >&6; }
13968
13969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13970$as_echo_n "checking whether to build shared libraries... " >&6; }
13971  test no = "$can_build_shared" && enable_shared=no
13972
13973  # On AIX, shared libraries and static libraries use the same namespace, and
13974  # are all built from PIC.
13975  case $host_os in
13976  aix3*)
13977    test yes = "$enable_shared" && enable_static=no
13978    if test -n "$RANLIB"; then
13979      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13980      postinstall_cmds='$RANLIB $lib'
13981    fi
13982    ;;
13983
13984  aix[4-9]*)
13985    if test ia64 != "$host_cpu"; then
13986      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13987      yes,aix,yes) ;;			# shared object as lib.so file only
13988      yes,svr4,*) ;;			# shared object as lib.so archive member only
13989      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13990      esac
13991    fi
13992    ;;
13993  esac
13994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13995$as_echo "$enable_shared" >&6; }
13996
13997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13998$as_echo_n "checking whether to build static libraries... " >&6; }
13999  # Make sure either enable_shared or enable_static is yes.
14000  test yes = "$enable_shared" || enable_static=yes
14001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14002$as_echo "$enable_static" >&6; }
14003
14004
14005
14006
14007fi
14008ac_ext=c
14009ac_cpp='$CPP $CPPFLAGS'
14010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013
14014CC=$lt_save_CC
14015
14016      if test -n "$CXX" && ( test no != "$CXX" &&
14017    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14018    (test g++ != "$CXX"))); then
14019  ac_ext=cpp
14020ac_cpp='$CXXCPP $CPPFLAGS'
14021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14025$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14026if test -z "$CXXCPP"; then
14027  if ${ac_cv_prog_CXXCPP+:} false; then :
14028  $as_echo_n "(cached) " >&6
14029else
14030      # Double quotes because CXXCPP needs to be expanded
14031    for CXXCPP in "$CXX -E" "/lib/cpp"
14032    do
14033      ac_preproc_ok=false
14034for ac_cxx_preproc_warn_flag in '' yes
14035do
14036  # Use a header file that comes with gcc, so configuring glibc
14037  # with a fresh cross-compiler works.
14038  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14039  # <limits.h> exists even on freestanding compilers.
14040  # On the NeXT, cc -E runs the code through the compiler's parser,
14041  # not just through cpp. "Syntax error" is here to catch this case.
14042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043/* end confdefs.h.  */
14044#ifdef __STDC__
14045# include <limits.h>
14046#else
14047# include <assert.h>
14048#endif
14049		     Syntax error
14050_ACEOF
14051if ac_fn_cxx_try_cpp "$LINENO"; then :
14052
14053else
14054  # Broken: fails on valid input.
14055continue
14056fi
14057rm -f conftest.err conftest.i conftest.$ac_ext
14058
14059  # OK, works on sane cases.  Now check whether nonexistent headers
14060  # can be detected and how.
14061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062/* end confdefs.h.  */
14063#include <ac_nonexistent.h>
14064_ACEOF
14065if ac_fn_cxx_try_cpp "$LINENO"; then :
14066  # Broken: success on invalid input.
14067continue
14068else
14069  # Passes both tests.
14070ac_preproc_ok=:
14071break
14072fi
14073rm -f conftest.err conftest.i conftest.$ac_ext
14074
14075done
14076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14077rm -f conftest.i conftest.err conftest.$ac_ext
14078if $ac_preproc_ok; then :
14079  break
14080fi
14081
14082    done
14083    ac_cv_prog_CXXCPP=$CXXCPP
14084
14085fi
14086  CXXCPP=$ac_cv_prog_CXXCPP
14087else
14088  ac_cv_prog_CXXCPP=$CXXCPP
14089fi
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14091$as_echo "$CXXCPP" >&6; }
14092ac_preproc_ok=false
14093for ac_cxx_preproc_warn_flag in '' yes
14094do
14095  # Use a header file that comes with gcc, so configuring glibc
14096  # with a fresh cross-compiler works.
14097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14098  # <limits.h> exists even on freestanding compilers.
14099  # On the NeXT, cc -E runs the code through the compiler's parser,
14100  # not just through cpp. "Syntax error" is here to catch this case.
14101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103#ifdef __STDC__
14104# include <limits.h>
14105#else
14106# include <assert.h>
14107#endif
14108		     Syntax error
14109_ACEOF
14110if ac_fn_cxx_try_cpp "$LINENO"; then :
14111
14112else
14113  # Broken: fails on valid input.
14114continue
14115fi
14116rm -f conftest.err conftest.i conftest.$ac_ext
14117
14118  # OK, works on sane cases.  Now check whether nonexistent headers
14119  # can be detected and how.
14120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h.  */
14122#include <ac_nonexistent.h>
14123_ACEOF
14124if ac_fn_cxx_try_cpp "$LINENO"; then :
14125  # Broken: success on invalid input.
14126continue
14127else
14128  # Passes both tests.
14129ac_preproc_ok=:
14130break
14131fi
14132rm -f conftest.err conftest.i conftest.$ac_ext
14133
14134done
14135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14136rm -f conftest.i conftest.err conftest.$ac_ext
14137if $ac_preproc_ok; then :
14138
14139else
14140  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14142as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14143See \`config.log' for more details" "$LINENO" 5; }
14144fi
14145
14146ac_ext=c
14147ac_cpp='$CPP $CPPFLAGS'
14148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150ac_compiler_gnu=$ac_cv_c_compiler_gnu
14151
14152else
14153  _lt_caught_CXX_error=yes
14154fi
14155
14156ac_ext=cpp
14157ac_cpp='$CXXCPP $CPPFLAGS'
14158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14161
14162archive_cmds_need_lc_CXX=no
14163allow_undefined_flag_CXX=
14164always_export_symbols_CXX=no
14165archive_expsym_cmds_CXX=
14166compiler_needs_object_CXX=no
14167export_dynamic_flag_spec_CXX=
14168hardcode_direct_CXX=no
14169hardcode_direct_absolute_CXX=no
14170hardcode_libdir_flag_spec_CXX=
14171hardcode_libdir_separator_CXX=
14172hardcode_minus_L_CXX=no
14173hardcode_shlibpath_var_CXX=unsupported
14174hardcode_automatic_CXX=no
14175inherit_rpath_CXX=no
14176module_cmds_CXX=
14177module_expsym_cmds_CXX=
14178link_all_deplibs_CXX=unknown
14179old_archive_cmds_CXX=$old_archive_cmds
14180reload_flag_CXX=$reload_flag
14181reload_cmds_CXX=$reload_cmds
14182no_undefined_flag_CXX=
14183whole_archive_flag_spec_CXX=
14184enable_shared_with_static_runtimes_CXX=no
14185
14186# Source file extension for C++ test sources.
14187ac_ext=cpp
14188
14189# Object file extension for compiled C++ test sources.
14190objext=o
14191objext_CXX=$objext
14192
14193# No sense in running all these tests if we already determined that
14194# the CXX compiler isn't working.  Some variables (like enable_shared)
14195# are currently assumed to apply to all compilers on this platform,
14196# and will be corrupted by setting them based on a non-working compiler.
14197if test yes != "$_lt_caught_CXX_error"; then
14198  # Code to be used in simple compile tests
14199  lt_simple_compile_test_code="int some_variable = 0;"
14200
14201  # Code to be used in simple link tests
14202  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14203
14204  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14205
14206
14207
14208
14209
14210
14211# If no C compiler was specified, use CC.
14212LTCC=${LTCC-"$CC"}
14213
14214# If no C compiler flags were specified, use CFLAGS.
14215LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14216
14217# Allow CC to be a program name with arguments.
14218compiler=$CC
14219
14220
14221  # save warnings/boilerplate of simple test code
14222  ac_outfile=conftest.$ac_objext
14223echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14224eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14225_lt_compiler_boilerplate=`cat conftest.err`
14226$RM conftest*
14227
14228  ac_outfile=conftest.$ac_objext
14229echo "$lt_simple_link_test_code" >conftest.$ac_ext
14230eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14231_lt_linker_boilerplate=`cat conftest.err`
14232$RM -r conftest*
14233
14234
14235  # Allow CC to be a program name with arguments.
14236  lt_save_CC=$CC
14237  lt_save_CFLAGS=$CFLAGS
14238  lt_save_LD=$LD
14239  lt_save_GCC=$GCC
14240  GCC=$GXX
14241  lt_save_with_gnu_ld=$with_gnu_ld
14242  lt_save_path_LD=$lt_cv_path_LD
14243  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14244    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14245  else
14246    $as_unset lt_cv_prog_gnu_ld
14247  fi
14248  if test -n "${lt_cv_path_LDCXX+set}"; then
14249    lt_cv_path_LD=$lt_cv_path_LDCXX
14250  else
14251    $as_unset lt_cv_path_LD
14252  fi
14253  test -z "${LDCXX+set}" || LD=$LDCXX
14254  CC=${CXX-"c++"}
14255  CFLAGS=$CXXFLAGS
14256  compiler=$CC
14257  compiler_CXX=$CC
14258  func_cc_basename $compiler
14259cc_basename=$func_cc_basename_result
14260
14261
14262  if test -n "$compiler"; then
14263    # We don't want -fno-exception when compiling C++ code, so set the
14264    # no_builtin_flag separately
14265    if test yes = "$GXX"; then
14266      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14267    else
14268      lt_prog_compiler_no_builtin_flag_CXX=
14269    fi
14270
14271    if test yes = "$GXX"; then
14272      # Set up default GNU C++ configuration
14273
14274
14275
14276# Check whether --with-gnu-ld was given.
14277if test "${with_gnu_ld+set}" = set; then :
14278  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14279else
14280  with_gnu_ld=no
14281fi
14282
14283ac_prog=ld
14284if test yes = "$GCC"; then
14285  # Check if gcc -print-prog-name=ld gives a path.
14286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14287$as_echo_n "checking for ld used by $CC... " >&6; }
14288  case $host in
14289  *-*-mingw*)
14290    # gcc leaves a trailing carriage return, which upsets mingw
14291    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14292  *)
14293    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14294  esac
14295  case $ac_prog in
14296    # Accept absolute paths.
14297    [\\/]* | ?:[\\/]*)
14298      re_direlt='/[^/][^/]*/\.\./'
14299      # Canonicalize the pathname of ld
14300      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14301      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14302	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14303      done
14304      test -z "$LD" && LD=$ac_prog
14305      ;;
14306  "")
14307    # If it fails, then pretend we aren't using GCC.
14308    ac_prog=ld
14309    ;;
14310  *)
14311    # If it is relative, then search for the first ld in PATH.
14312    with_gnu_ld=unknown
14313    ;;
14314  esac
14315elif test yes = "$with_gnu_ld"; then
14316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14317$as_echo_n "checking for GNU ld... " >&6; }
14318else
14319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14320$as_echo_n "checking for non-GNU ld... " >&6; }
14321fi
14322if ${lt_cv_path_LD+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  if test -z "$LD"; then
14326  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14327  for ac_dir in $PATH; do
14328    IFS=$lt_save_ifs
14329    test -z "$ac_dir" && ac_dir=.
14330    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14331      lt_cv_path_LD=$ac_dir/$ac_prog
14332      # Check to see if the program is GNU ld.  I'd rather use --version,
14333      # but apparently some variants of GNU ld only accept -v.
14334      # Break only if it was the GNU/non-GNU ld that we prefer.
14335      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14336      *GNU* | *'with BFD'*)
14337	test no != "$with_gnu_ld" && break
14338	;;
14339      *)
14340	test yes != "$with_gnu_ld" && break
14341	;;
14342      esac
14343    fi
14344  done
14345  IFS=$lt_save_ifs
14346else
14347  lt_cv_path_LD=$LD # Let the user override the test with a path.
14348fi
14349fi
14350
14351LD=$lt_cv_path_LD
14352if test -n "$LD"; then
14353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14354$as_echo "$LD" >&6; }
14355else
14356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357$as_echo "no" >&6; }
14358fi
14359test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14362if ${lt_cv_prog_gnu_ld+:} false; then :
14363  $as_echo_n "(cached) " >&6
14364else
14365  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14366case `$LD -v 2>&1 </dev/null` in
14367*GNU* | *'with BFD'*)
14368  lt_cv_prog_gnu_ld=yes
14369  ;;
14370*)
14371  lt_cv_prog_gnu_ld=no
14372  ;;
14373esac
14374fi
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14376$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14377with_gnu_ld=$lt_cv_prog_gnu_ld
14378
14379
14380
14381
14382
14383
14384
14385      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14386      # archiving commands below assume that GNU ld is being used.
14387      if test yes = "$with_gnu_ld"; then
14388        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14389        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14390
14391        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14392        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14393
14394        # If archive_cmds runs LD, not CC, wlarc should be empty
14395        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14396        #     investigate it a little bit more. (MM)
14397        wlarc='$wl'
14398
14399        # ancient GNU ld didn't support --whole-archive et. al.
14400        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14401	  $GREP 'no-whole-archive' > /dev/null; then
14402          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14403        else
14404          whole_archive_flag_spec_CXX=
14405        fi
14406      else
14407        with_gnu_ld=no
14408        wlarc=
14409
14410        # A generic and very simple default shared library creation
14411        # command for GNU C++ for the case where it uses the native
14412        # linker, instead of GNU ld.  If possible, this setting should
14413        # overridden to take advantage of the native linker features on
14414        # the platform it is being used on.
14415        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14416      fi
14417
14418      # Commands to make compiler produce verbose output that lists
14419      # what "hidden" libraries, object files and flags are used when
14420      # linking a shared library.
14421      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14422
14423    else
14424      GXX=no
14425      with_gnu_ld=no
14426      wlarc=
14427    fi
14428
14429    # PORTME: fill in a description of your system's C++ link characteristics
14430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14432    ld_shlibs_CXX=yes
14433    case $host_os in
14434      aix3*)
14435        # FIXME: insert proper C++ library support
14436        ld_shlibs_CXX=no
14437        ;;
14438      aix[4-9]*)
14439        if test ia64 = "$host_cpu"; then
14440          # On IA64, the linker does run time linking by default, so we don't
14441          # have to do anything special.
14442          aix_use_runtimelinking=no
14443          exp_sym_flag='-Bexport'
14444          no_entry_flag=
14445        else
14446          aix_use_runtimelinking=no
14447
14448          # Test if we are trying to use run time linking or normal
14449          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14450          # have runtime linking enabled, and use it for executables.
14451          # For shared libraries, we enable/disable runtime linking
14452          # depending on the kind of the shared library created -
14453          # when "with_aix_soname,aix_use_runtimelinking" is:
14454          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14455          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14456          #            lib.a           static archive
14457          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14458          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14459          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14460          #            lib.a(lib.so.V) shared, rtl:no
14461          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14462          #            lib.a           static archive
14463          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14464	    for ld_flag in $LDFLAGS; do
14465	      case $ld_flag in
14466	      *-brtl*)
14467	        aix_use_runtimelinking=yes
14468	        break
14469	        ;;
14470	      esac
14471	    done
14472	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14473	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14474	      # so we don't have lib.a shared libs to link our executables.
14475	      # We have to force runtime linking in this case.
14476	      aix_use_runtimelinking=yes
14477	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14478	    fi
14479	    ;;
14480          esac
14481
14482          exp_sym_flag='-bexport'
14483          no_entry_flag='-bnoentry'
14484        fi
14485
14486        # When large executables or shared objects are built, AIX ld can
14487        # have problems creating the table of contents.  If linking a library
14488        # or program results in "error TOC overflow" add -mminimal-toc to
14489        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14490        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14491
14492        archive_cmds_CXX=''
14493        hardcode_direct_CXX=yes
14494        hardcode_direct_absolute_CXX=yes
14495        hardcode_libdir_separator_CXX=':'
14496        link_all_deplibs_CXX=yes
14497        file_list_spec_CXX='$wl-f,'
14498        case $with_aix_soname,$aix_use_runtimelinking in
14499        aix,*) ;;	# no import file
14500        svr4,* | *,yes) # use import file
14501          # The Import File defines what to hardcode.
14502          hardcode_direct_CXX=no
14503          hardcode_direct_absolute_CXX=no
14504          ;;
14505        esac
14506
14507        if test yes = "$GXX"; then
14508          case $host_os in aix4.[012]|aix4.[012].*)
14509          # We only want to do this on AIX 4.2 and lower, the check
14510          # below for broken collect2 doesn't work under 4.3+
14511	  collect2name=`$CC -print-prog-name=collect2`
14512	  if test -f "$collect2name" &&
14513	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14514	  then
14515	    # We have reworked collect2
14516	    :
14517	  else
14518	    # We have old collect2
14519	    hardcode_direct_CXX=unsupported
14520	    # It fails to find uninstalled libraries when the uninstalled
14521	    # path is not listed in the libpath.  Setting hardcode_minus_L
14522	    # to unsupported forces relinking
14523	    hardcode_minus_L_CXX=yes
14524	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14525	    hardcode_libdir_separator_CXX=
14526	  fi
14527          esac
14528          shared_flag='-shared'
14529	  if test yes = "$aix_use_runtimelinking"; then
14530	    shared_flag=$shared_flag' $wl-G'
14531	  fi
14532	  # Need to ensure runtime linking is disabled for the traditional
14533	  # shared library, or the linker may eventually find shared libraries
14534	  # /with/ Import File - we do not want to mix them.
14535	  shared_flag_aix='-shared'
14536	  shared_flag_svr4='-shared $wl-G'
14537        else
14538          # not using gcc
14539          if test ia64 = "$host_cpu"; then
14540	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14541	  # chokes on -Wl,-G. The following line is correct:
14542	  shared_flag='-G'
14543          else
14544	    if test yes = "$aix_use_runtimelinking"; then
14545	      shared_flag='$wl-G'
14546	    else
14547	      shared_flag='$wl-bM:SRE'
14548	    fi
14549	    shared_flag_aix='$wl-bM:SRE'
14550	    shared_flag_svr4='$wl-G'
14551          fi
14552        fi
14553
14554        export_dynamic_flag_spec_CXX='$wl-bexpall'
14555        # It seems that -bexpall does not export symbols beginning with
14556        # underscore (_), so it is better to generate a list of symbols to
14557	# export.
14558        always_export_symbols_CXX=yes
14559	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14560          # Warning - without using the other runtime loading flags (-brtl),
14561          # -berok will link without error, but may produce a broken library.
14562          # The "-G" linker flag allows undefined symbols.
14563          no_undefined_flag_CXX='-bernotok'
14564          # Determine the default libpath from the value encoded in an empty
14565          # executable.
14566          if test set = "${lt_cv_aix_libpath+set}"; then
14567  aix_libpath=$lt_cv_aix_libpath
14568else
14569  if ${lt_cv_aix_libpath__CXX+:} false; then :
14570  $as_echo_n "(cached) " >&6
14571else
14572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573/* end confdefs.h.  */
14574
14575int
14576main ()
14577{
14578
14579  ;
14580  return 0;
14581}
14582_ACEOF
14583if ac_fn_cxx_try_link "$LINENO"; then :
14584
14585  lt_aix_libpath_sed='
14586      /Import File Strings/,/^$/ {
14587	  /^0/ {
14588	      s/^0  *\([^ ]*\) *$/\1/
14589	      p
14590	  }
14591      }'
14592  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14593  # Check for a 64-bit object if we didn't find anything.
14594  if test -z "$lt_cv_aix_libpath__CXX"; then
14595    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14596  fi
14597fi
14598rm -f core conftest.err conftest.$ac_objext \
14599    conftest$ac_exeext conftest.$ac_ext
14600  if test -z "$lt_cv_aix_libpath__CXX"; then
14601    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14602  fi
14603
14604fi
14605
14606  aix_libpath=$lt_cv_aix_libpath__CXX
14607fi
14608
14609          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14610
14611          archive_expsym_cmds_CXX='$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
14612        else
14613          if test ia64 = "$host_cpu"; then
14614	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14615	    allow_undefined_flag_CXX="-z nodefs"
14616	    archive_expsym_cmds_CXX="\$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"
14617          else
14618	    # Determine the default libpath from the value encoded in an
14619	    # empty executable.
14620	    if test set = "${lt_cv_aix_libpath+set}"; then
14621  aix_libpath=$lt_cv_aix_libpath
14622else
14623  if ${lt_cv_aix_libpath__CXX+:} false; then :
14624  $as_echo_n "(cached) " >&6
14625else
14626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628
14629int
14630main ()
14631{
14632
14633  ;
14634  return 0;
14635}
14636_ACEOF
14637if ac_fn_cxx_try_link "$LINENO"; then :
14638
14639  lt_aix_libpath_sed='
14640      /Import File Strings/,/^$/ {
14641	  /^0/ {
14642	      s/^0  *\([^ ]*\) *$/\1/
14643	      p
14644	  }
14645      }'
14646  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14647  # Check for a 64-bit object if we didn't find anything.
14648  if test -z "$lt_cv_aix_libpath__CXX"; then
14649    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14650  fi
14651fi
14652rm -f core conftest.err conftest.$ac_objext \
14653    conftest$ac_exeext conftest.$ac_ext
14654  if test -z "$lt_cv_aix_libpath__CXX"; then
14655    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14656  fi
14657
14658fi
14659
14660  aix_libpath=$lt_cv_aix_libpath__CXX
14661fi
14662
14663	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14664	    # Warning - without using the other run time loading flags,
14665	    # -berok will link without error, but may produce a broken library.
14666	    no_undefined_flag_CXX=' $wl-bernotok'
14667	    allow_undefined_flag_CXX=' $wl-berok'
14668	    if test yes = "$with_gnu_ld"; then
14669	      # We only use this code for GNU lds that support --whole-archive.
14670	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14671	    else
14672	      # Exported symbols can be pulled into shared objects from archives
14673	      whole_archive_flag_spec_CXX='$convenience'
14674	    fi
14675	    archive_cmds_need_lc_CXX=yes
14676	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14677	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14678	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14679	    if test svr4 != "$with_aix_soname"; then
14680	      # This is similar to how AIX traditionally builds its shared
14681	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14682	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14683	    fi
14684	    if test aix != "$with_aix_soname"; then
14685	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14686	    else
14687	      # used by -dlpreopen to get the symbols
14688	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14689	    fi
14690	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14691          fi
14692        fi
14693        ;;
14694
14695      beos*)
14696	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14697	  allow_undefined_flag_CXX=unsupported
14698	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14699	  # support --undefined.  This deserves some investigation.  FIXME
14700	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14701	else
14702	  ld_shlibs_CXX=no
14703	fi
14704	;;
14705
14706      chorus*)
14707        case $cc_basename in
14708          *)
14709	  # FIXME: insert proper C++ library support
14710	  ld_shlibs_CXX=no
14711	  ;;
14712        esac
14713        ;;
14714
14715      cygwin* | mingw* | pw32* | cegcc*)
14716	case $GXX,$cc_basename in
14717	,cl* | no,cl*)
14718	  # Native MSVC
14719	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14720	  # no search path for DLLs.
14721	  hardcode_libdir_flag_spec_CXX=' '
14722	  allow_undefined_flag_CXX=unsupported
14723	  always_export_symbols_CXX=yes
14724	  file_list_spec_CXX='@'
14725	  # Tell ltmain to make .lib files, not .a files.
14726	  libext=lib
14727	  # Tell ltmain to make .dll files, not .so files.
14728	  shrext_cmds=.dll
14729	  # FIXME: Setting linknames here is a bad hack.
14730	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14731	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14732              cp "$export_symbols" "$output_objdir/$soname.def";
14733              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14734            else
14735              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14736            fi~
14737            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14738            linknames='
14739	  # The linker will not automatically build a static lib if we build a DLL.
14740	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14741	  enable_shared_with_static_runtimes_CXX=yes
14742	  # Don't use ranlib
14743	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14744	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14745            lt_tool_outputfile="@TOOL_OUTPUT@"~
14746            case $lt_outputfile in
14747              *.exe|*.EXE) ;;
14748              *)
14749                lt_outputfile=$lt_outputfile.exe
14750                lt_tool_outputfile=$lt_tool_outputfile.exe
14751                ;;
14752            esac~
14753            func_to_tool_file "$lt_outputfile"~
14754            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14755              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14756              $RM "$lt_outputfile.manifest";
14757            fi'
14758	  ;;
14759	*)
14760	  # g++
14761	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14762	  # as there is no search path for DLLs.
14763	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14764	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14765	  allow_undefined_flag_CXX=unsupported
14766	  always_export_symbols_CXX=no
14767	  enable_shared_with_static_runtimes_CXX=yes
14768
14769	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14770	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14771	    # If the export-symbols file already is a .def file, use it as
14772	    # is; otherwise, prepend EXPORTS...
14773	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14774              cp $export_symbols $output_objdir/$soname.def;
14775            else
14776              echo EXPORTS > $output_objdir/$soname.def;
14777              cat $export_symbols >> $output_objdir/$soname.def;
14778            fi~
14779            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780	  else
14781	    ld_shlibs_CXX=no
14782	  fi
14783	  ;;
14784	esac
14785	;;
14786      darwin* | rhapsody*)
14787
14788
14789  archive_cmds_need_lc_CXX=no
14790  hardcode_direct_CXX=no
14791  hardcode_automatic_CXX=yes
14792  hardcode_shlibpath_var_CXX=unsupported
14793  if test yes = "$lt_cv_ld_force_load"; then
14794    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14795
14796  else
14797    whole_archive_flag_spec_CXX=''
14798  fi
14799  link_all_deplibs_CXX=yes
14800  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14801  case $cc_basename in
14802     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14803     *) _lt_dar_can_shared=$GCC ;;
14804  esac
14805  if test yes = "$_lt_dar_can_shared"; then
14806    output_verbose_link_cmd=func_echo_all
14807    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14808    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14809    archive_expsym_cmds_CXX="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"
14810    module_expsym_cmds_CXX="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"
14811       if test yes != "$lt_cv_apple_cc_single_mod"; then
14812      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14813      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14814    fi
14815
14816  else
14817  ld_shlibs_CXX=no
14818  fi
14819
14820	;;
14821
14822      os2*)
14823	hardcode_libdir_flag_spec_CXX='-L$libdir'
14824	hardcode_minus_L_CXX=yes
14825	allow_undefined_flag_CXX=unsupported
14826	shrext_cmds=.dll
14827	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14828	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14829	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14830	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14831	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14832	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14833	  emximp -o $lib $output_objdir/$libname.def'
14834	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14835	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14836	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14837	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14838	  prefix_cmds="$SED"~
14839	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14840	    prefix_cmds="$prefix_cmds -e 1d";
14841	  fi~
14842	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14843	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14844	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14845	  emximp -o $lib $output_objdir/$libname.def'
14846	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14847	enable_shared_with_static_runtimes_CXX=yes
14848	;;
14849
14850      dgux*)
14851        case $cc_basename in
14852          ec++*)
14853	    # FIXME: insert proper C++ library support
14854	    ld_shlibs_CXX=no
14855	    ;;
14856          ghcx*)
14857	    # Green Hills C++ Compiler
14858	    # FIXME: insert proper C++ library support
14859	    ld_shlibs_CXX=no
14860	    ;;
14861          *)
14862	    # FIXME: insert proper C++ library support
14863	    ld_shlibs_CXX=no
14864	    ;;
14865        esac
14866        ;;
14867
14868      freebsd2.*)
14869        # C++ shared libraries reported to be fairly broken before
14870	# switch to ELF
14871        ld_shlibs_CXX=no
14872        ;;
14873
14874      freebsd-elf*)
14875        archive_cmds_need_lc_CXX=no
14876        ;;
14877
14878      freebsd* | dragonfly*)
14879        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14880        # conventions
14881        ld_shlibs_CXX=yes
14882        ;;
14883
14884      haiku*)
14885        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14886        link_all_deplibs_CXX=yes
14887        ;;
14888
14889      hpux9*)
14890        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14891        hardcode_libdir_separator_CXX=:
14892        export_dynamic_flag_spec_CXX='$wl-E'
14893        hardcode_direct_CXX=yes
14894        hardcode_minus_L_CXX=yes # Not in the search PATH,
14895				             # but as the default
14896				             # location of the library.
14897
14898        case $cc_basename in
14899          CC*)
14900            # FIXME: insert proper C++ library support
14901            ld_shlibs_CXX=no
14902            ;;
14903          aCC*)
14904            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14905            # Commands to make compiler produce verbose output that lists
14906            # what "hidden" libraries, object files and flags are used when
14907            # linking a shared library.
14908            #
14909            # There doesn't appear to be a way to prevent this compiler from
14910            # explicitly linking system object files so we need to strip them
14911            # from the output so that they don't get included in the library
14912            # dependencies.
14913            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14914            ;;
14915          *)
14916            if test yes = "$GXX"; then
14917              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14918            else
14919              # FIXME: insert proper C++ library support
14920              ld_shlibs_CXX=no
14921            fi
14922            ;;
14923        esac
14924        ;;
14925
14926      hpux10*|hpux11*)
14927        if test no = "$with_gnu_ld"; then
14928	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14929	  hardcode_libdir_separator_CXX=:
14930
14931          case $host_cpu in
14932            hppa*64*|ia64*)
14933              ;;
14934            *)
14935	      export_dynamic_flag_spec_CXX='$wl-E'
14936              ;;
14937          esac
14938        fi
14939        case $host_cpu in
14940          hppa*64*|ia64*)
14941            hardcode_direct_CXX=no
14942            hardcode_shlibpath_var_CXX=no
14943            ;;
14944          *)
14945            hardcode_direct_CXX=yes
14946            hardcode_direct_absolute_CXX=yes
14947            hardcode_minus_L_CXX=yes # Not in the search PATH,
14948					         # but as the default
14949					         # location of the library.
14950            ;;
14951        esac
14952
14953        case $cc_basename in
14954          CC*)
14955	    # FIXME: insert proper C++ library support
14956	    ld_shlibs_CXX=no
14957	    ;;
14958          aCC*)
14959	    case $host_cpu in
14960	      hppa*64*)
14961	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14962	        ;;
14963	      ia64*)
14964	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14965	        ;;
14966	      *)
14967	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14968	        ;;
14969	    esac
14970	    # Commands to make compiler produce verbose output that lists
14971	    # what "hidden" libraries, object files and flags are used when
14972	    # linking a shared library.
14973	    #
14974	    # There doesn't appear to be a way to prevent this compiler from
14975	    # explicitly linking system object files so we need to strip them
14976	    # from the output so that they don't get included in the library
14977	    # dependencies.
14978	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14979	    ;;
14980          *)
14981	    if test yes = "$GXX"; then
14982	      if test no = "$with_gnu_ld"; then
14983	        case $host_cpu in
14984	          hppa*64*)
14985	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14986	            ;;
14987	          ia64*)
14988	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14989	            ;;
14990	          *)
14991	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14992	            ;;
14993	        esac
14994	      fi
14995	    else
14996	      # FIXME: insert proper C++ library support
14997	      ld_shlibs_CXX=no
14998	    fi
14999	    ;;
15000        esac
15001        ;;
15002
15003      interix[3-9]*)
15004	hardcode_direct_CXX=no
15005	hardcode_shlibpath_var_CXX=no
15006	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15007	export_dynamic_flag_spec_CXX='$wl-E'
15008	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15009	# Instead, shared libraries are loaded at an image base (0x10000000 by
15010	# default) and relocated if they conflict, which is a slow very memory
15011	# consuming and fragmenting process.  To avoid this, we pick a random,
15012	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15013	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15014	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15015	archive_expsym_cmds_CXX='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'
15016	;;
15017      irix5* | irix6*)
15018        case $cc_basename in
15019          CC*)
15020	    # SGI C++
15021	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15022
15023	    # Archives containing C++ object files must be created using
15024	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15025	    # necessary to make sure instantiated templates are included
15026	    # in the archive.
15027	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15028	    ;;
15029          *)
15030	    if test yes = "$GXX"; then
15031	      if test no = "$with_gnu_ld"; then
15032	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15033	      else
15034	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15035	      fi
15036	    fi
15037	    link_all_deplibs_CXX=yes
15038	    ;;
15039        esac
15040        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15041        hardcode_libdir_separator_CXX=:
15042        inherit_rpath_CXX=yes
15043        ;;
15044
15045      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15046        case $cc_basename in
15047          KCC*)
15048	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15049
15050	    # KCC will only create a shared library if the output file
15051	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15052	    # to its proper name (with version) after linking.
15053	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15054	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15055	    # Commands to make compiler produce verbose output that lists
15056	    # what "hidden" libraries, object files and flags are used when
15057	    # linking a shared library.
15058	    #
15059	    # There doesn't appear to be a way to prevent this compiler from
15060	    # explicitly linking system object files so we need to strip them
15061	    # from the output so that they don't get included in the library
15062	    # dependencies.
15063	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15064
15065	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15066	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15067
15068	    # Archives containing C++ object files must be created using
15069	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15070	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15071	    ;;
15072	  icpc* | ecpc* )
15073	    # Intel C++
15074	    with_gnu_ld=yes
15075	    # version 8.0 and above of icpc choke on multiply defined symbols
15076	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15077	    # earlier do not add the objects themselves.
15078	    case `$CC -V 2>&1` in
15079	      *"Version 7."*)
15080	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15081		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15082		;;
15083	      *)  # Version 8.0 or newer
15084	        tmp_idyn=
15085	        case $host_cpu in
15086		  ia64*) tmp_idyn=' -i_dynamic';;
15087		esac
15088	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15089		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15090		;;
15091	    esac
15092	    archive_cmds_need_lc_CXX=no
15093	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15094	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15095	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15096	    ;;
15097          pgCC* | pgcpp*)
15098            # Portland Group C++ compiler
15099	    case `$CC -V` in
15100	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15101	      prelink_cmds_CXX='tpldir=Template.dir~
15102               rm -rf $tpldir~
15103               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15104               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15105	      old_archive_cmds_CXX='tpldir=Template.dir~
15106                rm -rf $tpldir~
15107                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15108                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15109                $RANLIB $oldlib'
15110	      archive_cmds_CXX='tpldir=Template.dir~
15111                rm -rf $tpldir~
15112                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15113                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15114	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15115                rm -rf $tpldir~
15116                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15117                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15118	      ;;
15119	    *) # Version 6 and above use weak symbols
15120	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15121	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15122	      ;;
15123	    esac
15124
15125	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15126	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15127	    whole_archive_flag_spec_CXX='$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'
15128            ;;
15129	  cxx*)
15130	    # Compaq C++
15131	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15132	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
15133
15134	    runpath_var=LD_RUN_PATH
15135	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15136	    hardcode_libdir_separator_CXX=:
15137
15138	    # Commands to make compiler produce verbose output that lists
15139	    # what "hidden" libraries, object files and flags are used when
15140	    # linking a shared library.
15141	    #
15142	    # There doesn't appear to be a way to prevent this compiler from
15143	    # explicitly linking system object files so we need to strip them
15144	    # from the output so that they don't get included in the library
15145	    # dependencies.
15146	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15147	    ;;
15148	  xl* | mpixl* | bgxl*)
15149	    # IBM XL 8.0 on PPC, with GNU ld
15150	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15151	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15152	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15153	    if test yes = "$supports_anon_versioning"; then
15154	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15155                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15156                echo "local: *; };" >> $output_objdir/$libname.ver~
15157                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15158	    fi
15159	    ;;
15160	  *)
15161	    case `$CC -V 2>&1 | sed 5q` in
15162	    *Sun\ C*)
15163	      # Sun C++ 5.9
15164	      no_undefined_flag_CXX=' -zdefs'
15165	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15166	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15167	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15168	      whole_archive_flag_spec_CXX='$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'
15169	      compiler_needs_object_CXX=yes
15170
15171	      # Not sure whether something based on
15172	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15173	      # would be better.
15174	      output_verbose_link_cmd='func_echo_all'
15175
15176	      # Archives containing C++ object files must be created using
15177	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15178	      # necessary to make sure instantiated templates are included
15179	      # in the archive.
15180	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15181	      ;;
15182	    esac
15183	    ;;
15184	esac
15185	;;
15186
15187      lynxos*)
15188        # FIXME: insert proper C++ library support
15189	ld_shlibs_CXX=no
15190	;;
15191
15192      m88k*)
15193        # FIXME: insert proper C++ library support
15194        ld_shlibs_CXX=no
15195	;;
15196
15197      mvs*)
15198        case $cc_basename in
15199          cxx*)
15200	    # FIXME: insert proper C++ library support
15201	    ld_shlibs_CXX=no
15202	    ;;
15203	  *)
15204	    # FIXME: insert proper C++ library support
15205	    ld_shlibs_CXX=no
15206	    ;;
15207	esac
15208	;;
15209
15210      netbsd*)
15211        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15212	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15213	  wlarc=
15214	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15215	  hardcode_direct_CXX=yes
15216	  hardcode_shlibpath_var_CXX=no
15217	fi
15218	# Workaround some broken pre-1.5 toolchains
15219	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15220	;;
15221
15222      *nto* | *qnx*)
15223        ld_shlibs_CXX=yes
15224	;;
15225
15226      openbsd* | bitrig*)
15227	if test -f /usr/libexec/ld.so; then
15228	  hardcode_direct_CXX=yes
15229	  hardcode_shlibpath_var_CXX=no
15230	  hardcode_direct_absolute_CXX=yes
15231	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15232	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15233	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15234	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15235	    export_dynamic_flag_spec_CXX='$wl-E'
15236	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15237	  fi
15238	  output_verbose_link_cmd=func_echo_all
15239	else
15240	  ld_shlibs_CXX=no
15241	fi
15242	;;
15243
15244      osf3* | osf4* | osf5*)
15245        case $cc_basename in
15246          KCC*)
15247	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15248
15249	    # KCC will only create a shared library if the output file
15250	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15251	    # to its proper name (with version) after linking.
15252	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15253
15254	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15255	    hardcode_libdir_separator_CXX=:
15256
15257	    # Archives containing C++ object files must be created using
15258	    # the KAI C++ compiler.
15259	    case $host in
15260	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15261	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15262	    esac
15263	    ;;
15264          RCC*)
15265	    # Rational C++ 2.4.1
15266	    # FIXME: insert proper C++ library support
15267	    ld_shlibs_CXX=no
15268	    ;;
15269          cxx*)
15270	    case $host in
15271	      osf3*)
15272	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15273	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15274	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15275		;;
15276	      *)
15277	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15278	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15279	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15280                  echo "-hidden">> $lib.exp~
15281                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15282                  $RM $lib.exp'
15283	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15284		;;
15285	    esac
15286
15287	    hardcode_libdir_separator_CXX=:
15288
15289	    # Commands to make compiler produce verbose output that lists
15290	    # what "hidden" libraries, object files and flags are used when
15291	    # linking a shared library.
15292	    #
15293	    # There doesn't appear to be a way to prevent this compiler from
15294	    # explicitly linking system object files so we need to strip them
15295	    # from the output so that they don't get included in the library
15296	    # dependencies.
15297	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15298	    ;;
15299	  *)
15300	    if test yes,no = "$GXX,$with_gnu_ld"; then
15301	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15302	      case $host in
15303	        osf3*)
15304	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15305		  ;;
15306	        *)
15307	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15308		  ;;
15309	      esac
15310
15311	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15312	      hardcode_libdir_separator_CXX=:
15313
15314	      # Commands to make compiler produce verbose output that lists
15315	      # what "hidden" libraries, object files and flags are used when
15316	      # linking a shared library.
15317	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15318
15319	    else
15320	      # FIXME: insert proper C++ library support
15321	      ld_shlibs_CXX=no
15322	    fi
15323	    ;;
15324        esac
15325        ;;
15326
15327      psos*)
15328        # FIXME: insert proper C++ library support
15329        ld_shlibs_CXX=no
15330        ;;
15331
15332      sunos4*)
15333        case $cc_basename in
15334          CC*)
15335	    # Sun C++ 4.x
15336	    # FIXME: insert proper C++ library support
15337	    ld_shlibs_CXX=no
15338	    ;;
15339          lcc*)
15340	    # Lucid
15341	    # FIXME: insert proper C++ library support
15342	    ld_shlibs_CXX=no
15343	    ;;
15344          *)
15345	    # FIXME: insert proper C++ library support
15346	    ld_shlibs_CXX=no
15347	    ;;
15348        esac
15349        ;;
15350
15351      solaris*)
15352        case $cc_basename in
15353          CC* | sunCC*)
15354	    # Sun C++ 4.2, 5.x and Centerline C++
15355            archive_cmds_need_lc_CXX=yes
15356	    no_undefined_flag_CXX=' -zdefs'
15357	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15358	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15359              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15360
15361	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15362	    hardcode_shlibpath_var_CXX=no
15363	    case $host_os in
15364	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15365	      *)
15366		# The compiler driver will combine and reorder linker options,
15367		# but understands '-z linker_flag'.
15368	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15369		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15370	        ;;
15371	    esac
15372	    link_all_deplibs_CXX=yes
15373
15374	    output_verbose_link_cmd='func_echo_all'
15375
15376	    # Archives containing C++ object files must be created using
15377	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15378	    # necessary to make sure instantiated templates are included
15379	    # in the archive.
15380	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15381	    ;;
15382          gcx*)
15383	    # Green Hills C++ Compiler
15384	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15385
15386	    # The C++ compiler must be used to create the archive.
15387	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15388	    ;;
15389          *)
15390	    # GNU C++ compiler with Solaris linker
15391	    if test yes,no = "$GXX,$with_gnu_ld"; then
15392	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15393	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15394	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15395	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15396                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15397
15398	        # Commands to make compiler produce verbose output that lists
15399	        # what "hidden" libraries, object files and flags are used when
15400	        # linking a shared library.
15401	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15402	      else
15403	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15404	        # platform.
15405	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15406	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15407                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15408
15409	        # Commands to make compiler produce verbose output that lists
15410	        # what "hidden" libraries, object files and flags are used when
15411	        # linking a shared library.
15412	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15413	      fi
15414
15415	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15416	      case $host_os in
15417		solaris2.[0-5] | solaris2.[0-5].*) ;;
15418		*)
15419		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15420		  ;;
15421	      esac
15422	    fi
15423	    ;;
15424        esac
15425        ;;
15426
15427    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15428      no_undefined_flag_CXX='$wl-z,text'
15429      archive_cmds_need_lc_CXX=no
15430      hardcode_shlibpath_var_CXX=no
15431      runpath_var='LD_RUN_PATH'
15432
15433      case $cc_basename in
15434        CC*)
15435	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15436	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15437	  ;;
15438	*)
15439	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15440	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15441	  ;;
15442      esac
15443      ;;
15444
15445      sysv5* | sco3.2v5* | sco5v6*)
15446	# Note: We CANNOT use -z defs as we might desire, because we do not
15447	# link with -lc, and that would cause any symbols used from libc to
15448	# always be unresolved, which means just about no library would
15449	# ever link correctly.  If we're not using GNU ld we use -z text
15450	# though, which does catch some bad symbols but isn't as heavy-handed
15451	# as -z defs.
15452	no_undefined_flag_CXX='$wl-z,text'
15453	allow_undefined_flag_CXX='$wl-z,nodefs'
15454	archive_cmds_need_lc_CXX=no
15455	hardcode_shlibpath_var_CXX=no
15456	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15457	hardcode_libdir_separator_CXX=':'
15458	link_all_deplibs_CXX=yes
15459	export_dynamic_flag_spec_CXX='$wl-Bexport'
15460	runpath_var='LD_RUN_PATH'
15461
15462	case $cc_basename in
15463          CC*)
15464	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15465	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15466	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15467              '"$old_archive_cmds_CXX"
15468	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15469              '"$reload_cmds_CXX"
15470	    ;;
15471	  *)
15472	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15474	    ;;
15475	esac
15476      ;;
15477
15478      tandem*)
15479        case $cc_basename in
15480          NCC*)
15481	    # NonStop-UX NCC 3.20
15482	    # FIXME: insert proper C++ library support
15483	    ld_shlibs_CXX=no
15484	    ;;
15485          *)
15486	    # FIXME: insert proper C++ library support
15487	    ld_shlibs_CXX=no
15488	    ;;
15489        esac
15490        ;;
15491
15492      vxworks*)
15493        # FIXME: insert proper C++ library support
15494        ld_shlibs_CXX=no
15495        ;;
15496
15497      *)
15498        # FIXME: insert proper C++ library support
15499        ld_shlibs_CXX=no
15500        ;;
15501    esac
15502
15503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15504$as_echo "$ld_shlibs_CXX" >&6; }
15505    test no = "$ld_shlibs_CXX" && can_build_shared=no
15506
15507    GCC_CXX=$GXX
15508    LD_CXX=$LD
15509
15510    ## CAVEAT EMPTOR:
15511    ## There is no encapsulation within the following macros, do not change
15512    ## the running order or otherwise move them around unless you know exactly
15513    ## what you are doing...
15514    # Dependencies to place before and after the object being linked:
15515predep_objects_CXX=
15516postdep_objects_CXX=
15517predeps_CXX=
15518postdeps_CXX=
15519compiler_lib_search_path_CXX=
15520
15521cat > conftest.$ac_ext <<_LT_EOF
15522class Foo
15523{
15524public:
15525  Foo (void) { a = 0; }
15526private:
15527  int a;
15528};
15529_LT_EOF
15530
15531
15532_lt_libdeps_save_CFLAGS=$CFLAGS
15533case "$CC $CFLAGS " in #(
15534*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15535*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15536*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15537esac
15538
15539if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15540  (eval $ac_compile) 2>&5
15541  ac_status=$?
15542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15543  test $ac_status = 0; }; then
15544  # Parse the compiler output and extract the necessary
15545  # objects, libraries and library flags.
15546
15547  # Sentinel used to keep track of whether or not we are before
15548  # the conftest object file.
15549  pre_test_object_deps_done=no
15550
15551  for p in `eval "$output_verbose_link_cmd"`; do
15552    case $prev$p in
15553
15554    -L* | -R* | -l*)
15555       # Some compilers place space between "-{L,R}" and the path.
15556       # Remove the space.
15557       if test x-L = "$p" ||
15558          test x-R = "$p"; then
15559	 prev=$p
15560	 continue
15561       fi
15562
15563       # Expand the sysroot to ease extracting the directories later.
15564       if test -z "$prev"; then
15565         case $p in
15566         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15567         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15568         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15569         esac
15570       fi
15571       case $p in
15572       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15573       esac
15574       if test no = "$pre_test_object_deps_done"; then
15575	 case $prev in
15576	 -L | -R)
15577	   # Internal compiler library paths should come after those
15578	   # provided the user.  The postdeps already come after the
15579	   # user supplied libs so there is no need to process them.
15580	   if test -z "$compiler_lib_search_path_CXX"; then
15581	     compiler_lib_search_path_CXX=$prev$p
15582	   else
15583	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15584	   fi
15585	   ;;
15586	 # The "-l" case would never come before the object being
15587	 # linked, so don't bother handling this case.
15588	 esac
15589       else
15590	 if test -z "$postdeps_CXX"; then
15591	   postdeps_CXX=$prev$p
15592	 else
15593	   postdeps_CXX="${postdeps_CXX} $prev$p"
15594	 fi
15595       fi
15596       prev=
15597       ;;
15598
15599    *.lto.$objext) ;; # Ignore GCC LTO objects
15600    *.$objext)
15601       # This assumes that the test object file only shows up
15602       # once in the compiler output.
15603       if test "$p" = "conftest.$objext"; then
15604	 pre_test_object_deps_done=yes
15605	 continue
15606       fi
15607
15608       if test no = "$pre_test_object_deps_done"; then
15609	 if test -z "$predep_objects_CXX"; then
15610	   predep_objects_CXX=$p
15611	 else
15612	   predep_objects_CXX="$predep_objects_CXX $p"
15613	 fi
15614       else
15615	 if test -z "$postdep_objects_CXX"; then
15616	   postdep_objects_CXX=$p
15617	 else
15618	   postdep_objects_CXX="$postdep_objects_CXX $p"
15619	 fi
15620       fi
15621       ;;
15622
15623    *) ;; # Ignore the rest.
15624
15625    esac
15626  done
15627
15628  # Clean up.
15629  rm -f a.out a.exe
15630else
15631  echo "libtool.m4: error: problem compiling CXX test program"
15632fi
15633
15634$RM -f confest.$objext
15635CFLAGS=$_lt_libdeps_save_CFLAGS
15636
15637# PORTME: override above test on systems where it is broken
15638case $host_os in
15639interix[3-9]*)
15640  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15641  # hack all around it, let's just trust "g++" to DTRT.
15642  predep_objects_CXX=
15643  postdep_objects_CXX=
15644  postdeps_CXX=
15645  ;;
15646esac
15647
15648
15649case " $postdeps_CXX " in
15650*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15651esac
15652 compiler_lib_search_dirs_CXX=
15653if test -n "${compiler_lib_search_path_CXX}"; then
15654 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15655fi
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687    lt_prog_compiler_wl_CXX=
15688lt_prog_compiler_pic_CXX=
15689lt_prog_compiler_static_CXX=
15690
15691
15692  # C++ specific cases for pic, static, wl, etc.
15693  if test yes = "$GXX"; then
15694    lt_prog_compiler_wl_CXX='-Wl,'
15695    lt_prog_compiler_static_CXX='-static'
15696
15697    case $host_os in
15698    aix*)
15699      # All AIX code is PIC.
15700      if test ia64 = "$host_cpu"; then
15701	# AIX 5 now supports IA64 processor
15702	lt_prog_compiler_static_CXX='-Bstatic'
15703      fi
15704      lt_prog_compiler_pic_CXX='-fPIC'
15705      ;;
15706
15707    amigaos*)
15708      case $host_cpu in
15709      powerpc)
15710            # see comment about AmigaOS4 .so support
15711            lt_prog_compiler_pic_CXX='-fPIC'
15712        ;;
15713      m68k)
15714            # FIXME: we need at least 68020 code to build shared libraries, but
15715            # adding the '-m68020' flag to GCC prevents building anything better,
15716            # like '-m68040'.
15717            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15718        ;;
15719      esac
15720      ;;
15721
15722    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15723      # PIC is the default for these OSes.
15724      ;;
15725    mingw* | cygwin* | os2* | pw32* | cegcc*)
15726      # This hack is so that the source file can tell whether it is being
15727      # built for inclusion in a dll (and should export symbols for example).
15728      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15729      # (--disable-auto-import) libraries
15730      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15731      case $host_os in
15732      os2*)
15733	lt_prog_compiler_static_CXX='$wl-static'
15734	;;
15735      esac
15736      ;;
15737    darwin* | rhapsody*)
15738      # PIC is the default on this platform
15739      # Common symbols not allowed in MH_DYLIB files
15740      lt_prog_compiler_pic_CXX='-fno-common'
15741      ;;
15742    *djgpp*)
15743      # DJGPP does not support shared libraries at all
15744      lt_prog_compiler_pic_CXX=
15745      ;;
15746    haiku*)
15747      # PIC is the default for Haiku.
15748      # The "-static" flag exists, but is broken.
15749      lt_prog_compiler_static_CXX=
15750      ;;
15751    interix[3-9]*)
15752      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15753      # Instead, we relocate shared libraries at runtime.
15754      ;;
15755    sysv4*MP*)
15756      if test -d /usr/nec; then
15757	lt_prog_compiler_pic_CXX=-Kconform_pic
15758      fi
15759      ;;
15760    hpux*)
15761      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15762      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15763      # sets the default TLS model and affects inlining.
15764      case $host_cpu in
15765      hppa*64*)
15766	;;
15767      *)
15768	lt_prog_compiler_pic_CXX='-fPIC'
15769	;;
15770      esac
15771      ;;
15772    *qnx* | *nto*)
15773      # QNX uses GNU C++, but need to define -shared option too, otherwise
15774      # it will coredump.
15775      lt_prog_compiler_pic_CXX='-fPIC -shared'
15776      ;;
15777    *)
15778      lt_prog_compiler_pic_CXX='-fPIC'
15779      ;;
15780    esac
15781  else
15782    case $host_os in
15783      aix[4-9]*)
15784	# All AIX code is PIC.
15785	if test ia64 = "$host_cpu"; then
15786	  # AIX 5 now supports IA64 processor
15787	  lt_prog_compiler_static_CXX='-Bstatic'
15788	else
15789	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15790	fi
15791	;;
15792      chorus*)
15793	case $cc_basename in
15794	cxch68*)
15795	  # Green Hills C++ Compiler
15796	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15797	  ;;
15798	esac
15799	;;
15800      mingw* | cygwin* | os2* | pw32* | cegcc*)
15801	# This hack is so that the source file can tell whether it is being
15802	# built for inclusion in a dll (and should export symbols for example).
15803	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15804	;;
15805      dgux*)
15806	case $cc_basename in
15807	  ec++*)
15808	    lt_prog_compiler_pic_CXX='-KPIC'
15809	    ;;
15810	  ghcx*)
15811	    # Green Hills C++ Compiler
15812	    lt_prog_compiler_pic_CXX='-pic'
15813	    ;;
15814	  *)
15815	    ;;
15816	esac
15817	;;
15818      freebsd* | dragonfly*)
15819	# FreeBSD uses GNU C++
15820	;;
15821      hpux9* | hpux10* | hpux11*)
15822	case $cc_basename in
15823	  CC*)
15824	    lt_prog_compiler_wl_CXX='-Wl,'
15825	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15826	    if test ia64 != "$host_cpu"; then
15827	      lt_prog_compiler_pic_CXX='+Z'
15828	    fi
15829	    ;;
15830	  aCC*)
15831	    lt_prog_compiler_wl_CXX='-Wl,'
15832	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15833	    case $host_cpu in
15834	    hppa*64*|ia64*)
15835	      # +Z the default
15836	      ;;
15837	    *)
15838	      lt_prog_compiler_pic_CXX='+Z'
15839	      ;;
15840	    esac
15841	    ;;
15842	  *)
15843	    ;;
15844	esac
15845	;;
15846      interix*)
15847	# This is c89, which is MS Visual C++ (no shared libs)
15848	# Anyone wants to do a port?
15849	;;
15850      irix5* | irix6* | nonstopux*)
15851	case $cc_basename in
15852	  CC*)
15853	    lt_prog_compiler_wl_CXX='-Wl,'
15854	    lt_prog_compiler_static_CXX='-non_shared'
15855	    # CC pic flag -KPIC is the default.
15856	    ;;
15857	  *)
15858	    ;;
15859	esac
15860	;;
15861      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15862	case $cc_basename in
15863	  KCC*)
15864	    # KAI C++ Compiler
15865	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15866	    lt_prog_compiler_pic_CXX='-fPIC'
15867	    ;;
15868	  ecpc* )
15869	    # old Intel C++ for x86_64, which still supported -KPIC.
15870	    lt_prog_compiler_wl_CXX='-Wl,'
15871	    lt_prog_compiler_pic_CXX='-KPIC'
15872	    lt_prog_compiler_static_CXX='-static'
15873	    ;;
15874	  icpc* )
15875	    # Intel C++, used to be incompatible with GCC.
15876	    # ICC 10 doesn't accept -KPIC any more.
15877	    lt_prog_compiler_wl_CXX='-Wl,'
15878	    lt_prog_compiler_pic_CXX='-fPIC'
15879	    lt_prog_compiler_static_CXX='-static'
15880	    ;;
15881	  pgCC* | pgcpp*)
15882	    # Portland Group C++ compiler
15883	    lt_prog_compiler_wl_CXX='-Wl,'
15884	    lt_prog_compiler_pic_CXX='-fpic'
15885	    lt_prog_compiler_static_CXX='-Bstatic'
15886	    ;;
15887	  cxx*)
15888	    # Compaq C++
15889	    # Make sure the PIC flag is empty.  It appears that all Alpha
15890	    # Linux and Compaq Tru64 Unix objects are PIC.
15891	    lt_prog_compiler_pic_CXX=
15892	    lt_prog_compiler_static_CXX='-non_shared'
15893	    ;;
15894	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15895	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15896	    lt_prog_compiler_wl_CXX='-Wl,'
15897	    lt_prog_compiler_pic_CXX='-qpic'
15898	    lt_prog_compiler_static_CXX='-qstaticlink'
15899	    ;;
15900	  *)
15901	    case `$CC -V 2>&1 | sed 5q` in
15902	    *Sun\ C*)
15903	      # Sun C++ 5.9
15904	      lt_prog_compiler_pic_CXX='-KPIC'
15905	      lt_prog_compiler_static_CXX='-Bstatic'
15906	      lt_prog_compiler_wl_CXX='-Qoption ld '
15907	      ;;
15908	    esac
15909	    ;;
15910	esac
15911	;;
15912      lynxos*)
15913	;;
15914      m88k*)
15915	;;
15916      mvs*)
15917	case $cc_basename in
15918	  cxx*)
15919	    lt_prog_compiler_pic_CXX='-W c,exportall'
15920	    ;;
15921	  *)
15922	    ;;
15923	esac
15924	;;
15925      netbsd* | netbsdelf*-gnu)
15926	;;
15927      *qnx* | *nto*)
15928        # QNX uses GNU C++, but need to define -shared option too, otherwise
15929        # it will coredump.
15930        lt_prog_compiler_pic_CXX='-fPIC -shared'
15931        ;;
15932      osf3* | osf4* | osf5*)
15933	case $cc_basename in
15934	  KCC*)
15935	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15936	    ;;
15937	  RCC*)
15938	    # Rational C++ 2.4.1
15939	    lt_prog_compiler_pic_CXX='-pic'
15940	    ;;
15941	  cxx*)
15942	    # Digital/Compaq C++
15943	    lt_prog_compiler_wl_CXX='-Wl,'
15944	    # Make sure the PIC flag is empty.  It appears that all Alpha
15945	    # Linux and Compaq Tru64 Unix objects are PIC.
15946	    lt_prog_compiler_pic_CXX=
15947	    lt_prog_compiler_static_CXX='-non_shared'
15948	    ;;
15949	  *)
15950	    ;;
15951	esac
15952	;;
15953      psos*)
15954	;;
15955      solaris*)
15956	case $cc_basename in
15957	  CC* | sunCC*)
15958	    # Sun C++ 4.2, 5.x and Centerline C++
15959	    lt_prog_compiler_pic_CXX='-KPIC'
15960	    lt_prog_compiler_static_CXX='-Bstatic'
15961	    lt_prog_compiler_wl_CXX='-Qoption ld '
15962	    ;;
15963	  gcx*)
15964	    # Green Hills C++ Compiler
15965	    lt_prog_compiler_pic_CXX='-PIC'
15966	    ;;
15967	  *)
15968	    ;;
15969	esac
15970	;;
15971      sunos4*)
15972	case $cc_basename in
15973	  CC*)
15974	    # Sun C++ 4.x
15975	    lt_prog_compiler_pic_CXX='-pic'
15976	    lt_prog_compiler_static_CXX='-Bstatic'
15977	    ;;
15978	  lcc*)
15979	    # Lucid
15980	    lt_prog_compiler_pic_CXX='-pic'
15981	    ;;
15982	  *)
15983	    ;;
15984	esac
15985	;;
15986      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15987	case $cc_basename in
15988	  CC*)
15989	    lt_prog_compiler_wl_CXX='-Wl,'
15990	    lt_prog_compiler_pic_CXX='-KPIC'
15991	    lt_prog_compiler_static_CXX='-Bstatic'
15992	    ;;
15993	esac
15994	;;
15995      tandem*)
15996	case $cc_basename in
15997	  NCC*)
15998	    # NonStop-UX NCC 3.20
15999	    lt_prog_compiler_pic_CXX='-KPIC'
16000	    ;;
16001	  *)
16002	    ;;
16003	esac
16004	;;
16005      vxworks*)
16006	;;
16007      *)
16008	lt_prog_compiler_can_build_shared_CXX=no
16009	;;
16010    esac
16011  fi
16012
16013case $host_os in
16014  # For platforms that do not support PIC, -DPIC is meaningless:
16015  *djgpp*)
16016    lt_prog_compiler_pic_CXX=
16017    ;;
16018  *)
16019    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16020    ;;
16021esac
16022
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16024$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16025if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16026  $as_echo_n "(cached) " >&6
16027else
16028  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16029fi
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16031$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16032lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16033
16034#
16035# Check to make sure the PIC flag actually works.
16036#
16037if test -n "$lt_prog_compiler_pic_CXX"; then
16038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16039$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16040if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16041  $as_echo_n "(cached) " >&6
16042else
16043  lt_cv_prog_compiler_pic_works_CXX=no
16044   ac_outfile=conftest.$ac_objext
16045   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16046   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16047   # Insert the option either (1) after the last *FLAGS variable, or
16048   # (2) before a word containing "conftest.", or (3) at the end.
16049   # Note that $ac_compile itself does not contain backslashes and begins
16050   # with a dollar sign (not a hyphen), so the echo should work correctly.
16051   # The option is referenced via a variable to avoid confusing sed.
16052   lt_compile=`echo "$ac_compile" | $SED \
16053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16055   -e 's:$: $lt_compiler_flag:'`
16056   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16057   (eval "$lt_compile" 2>conftest.err)
16058   ac_status=$?
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   if (exit $ac_status) && test -s "$ac_outfile"; then
16062     # The compiler can only warn and ignore the option if not recognized
16063     # So say no if there are warnings other than the usual output.
16064     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16065     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16066     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16067       lt_cv_prog_compiler_pic_works_CXX=yes
16068     fi
16069   fi
16070   $RM conftest*
16071
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16074$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16075
16076if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16077    case $lt_prog_compiler_pic_CXX in
16078     "" | " "*) ;;
16079     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16080     esac
16081else
16082    lt_prog_compiler_pic_CXX=
16083     lt_prog_compiler_can_build_shared_CXX=no
16084fi
16085
16086fi
16087
16088
16089
16090
16091
16092#
16093# Check to make sure the static flag actually works.
16094#
16095wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16097$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16098if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16099  $as_echo_n "(cached) " >&6
16100else
16101  lt_cv_prog_compiler_static_works_CXX=no
16102   save_LDFLAGS=$LDFLAGS
16103   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16104   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16105   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16106     # The linker can only warn and ignore the option if not recognized
16107     # So say no if there are warnings
16108     if test -s conftest.err; then
16109       # Append any errors to the config.log.
16110       cat conftest.err 1>&5
16111       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16112       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16113       if diff conftest.exp conftest.er2 >/dev/null; then
16114         lt_cv_prog_compiler_static_works_CXX=yes
16115       fi
16116     else
16117       lt_cv_prog_compiler_static_works_CXX=yes
16118     fi
16119   fi
16120   $RM -r conftest*
16121   LDFLAGS=$save_LDFLAGS
16122
16123fi
16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16125$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16126
16127if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16128    :
16129else
16130    lt_prog_compiler_static_CXX=
16131fi
16132
16133
16134
16135
16136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16137$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16138if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16139  $as_echo_n "(cached) " >&6
16140else
16141  lt_cv_prog_compiler_c_o_CXX=no
16142   $RM -r conftest 2>/dev/null
16143   mkdir conftest
16144   cd conftest
16145   mkdir out
16146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16147
16148   lt_compiler_flag="-o out/conftest2.$ac_objext"
16149   # Insert the option either (1) after the last *FLAGS variable, or
16150   # (2) before a word containing "conftest.", or (3) at the end.
16151   # Note that $ac_compile itself does not contain backslashes and begins
16152   # with a dollar sign (not a hyphen), so the echo should work correctly.
16153   lt_compile=`echo "$ac_compile" | $SED \
16154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156   -e 's:$: $lt_compiler_flag:'`
16157   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16158   (eval "$lt_compile" 2>out/conftest.err)
16159   ac_status=$?
16160   cat out/conftest.err >&5
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16163   then
16164     # The compiler can only warn and ignore the option if not recognized
16165     # So say no if there are warnings
16166     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16167     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16168     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16169       lt_cv_prog_compiler_c_o_CXX=yes
16170     fi
16171   fi
16172   chmod u+w . 2>&5
16173   $RM conftest*
16174   # SGI C++ compiler will create directory out/ii_files/ for
16175   # template instantiation
16176   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16177   $RM out/* && rmdir out
16178   cd ..
16179   $RM -r conftest
16180   $RM conftest*
16181
16182fi
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16184$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16185
16186
16187
16188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16189$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16190if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16191  $as_echo_n "(cached) " >&6
16192else
16193  lt_cv_prog_compiler_c_o_CXX=no
16194   $RM -r conftest 2>/dev/null
16195   mkdir conftest
16196   cd conftest
16197   mkdir out
16198   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16199
16200   lt_compiler_flag="-o out/conftest2.$ac_objext"
16201   # Insert the option either (1) after the last *FLAGS variable, or
16202   # (2) before a word containing "conftest.", or (3) at the end.
16203   # Note that $ac_compile itself does not contain backslashes and begins
16204   # with a dollar sign (not a hyphen), so the echo should work correctly.
16205   lt_compile=`echo "$ac_compile" | $SED \
16206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16208   -e 's:$: $lt_compiler_flag:'`
16209   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16210   (eval "$lt_compile" 2>out/conftest.err)
16211   ac_status=$?
16212   cat out/conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16215   then
16216     # The compiler can only warn and ignore the option if not recognized
16217     # So say no if there are warnings
16218     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16219     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16220     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16221       lt_cv_prog_compiler_c_o_CXX=yes
16222     fi
16223   fi
16224   chmod u+w . 2>&5
16225   $RM conftest*
16226   # SGI C++ compiler will create directory out/ii_files/ for
16227   # template instantiation
16228   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16229   $RM out/* && rmdir out
16230   cd ..
16231   $RM -r conftest
16232   $RM conftest*
16233
16234fi
16235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16236$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16237
16238
16239
16240
16241hard_links=nottested
16242if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16243  # do not overwrite the value of need_locks provided by the user
16244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16245$as_echo_n "checking if we can lock with hard links... " >&6; }
16246  hard_links=yes
16247  $RM conftest*
16248  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16249  touch conftest.a
16250  ln conftest.a conftest.b 2>&5 || hard_links=no
16251  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16253$as_echo "$hard_links" >&6; }
16254  if test no = "$hard_links"; then
16255    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16256$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16257    need_locks=warn
16258  fi
16259else
16260  need_locks=no
16261fi
16262
16263
16264
16265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16266$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16267
16268  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16269  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16270  case $host_os in
16271  aix[4-9]*)
16272    # If we're using GNU nm, then we don't want the "-C" option.
16273    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16274    # Without the "-l" option, or with the "-B" option, AIX nm treats
16275    # weak defined symbols like other global defined symbols, whereas
16276    # GNU nm marks them as "W".
16277    # While the 'weak' keyword is ignored in the Export File, we need
16278    # it in the Import File for the 'aix-soname' feature, so we have
16279    # to replace the "-B" option with "-P" for AIX nm.
16280    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16281      export_symbols_cmds_CXX='$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'
16282    else
16283      export_symbols_cmds_CXX='`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'
16284    fi
16285    ;;
16286  pw32*)
16287    export_symbols_cmds_CXX=$ltdll_cmds
16288    ;;
16289  cygwin* | mingw* | cegcc*)
16290    case $cc_basename in
16291    cl*)
16292      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16293      ;;
16294    *)
16295      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16296      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16297      ;;
16298    esac
16299    ;;
16300  linux* | k*bsd*-gnu | gnu*)
16301    link_all_deplibs_CXX=no
16302    ;;
16303  *)
16304    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16305    ;;
16306  esac
16307
16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16309$as_echo "$ld_shlibs_CXX" >&6; }
16310test no = "$ld_shlibs_CXX" && can_build_shared=no
16311
16312with_gnu_ld_CXX=$with_gnu_ld
16313
16314
16315
16316
16317
16318
16319#
16320# Do we need to explicitly link libc?
16321#
16322case "x$archive_cmds_need_lc_CXX" in
16323x|xyes)
16324  # Assume -lc should be added
16325  archive_cmds_need_lc_CXX=yes
16326
16327  if test yes,yes = "$GCC,$enable_shared"; then
16328    case $archive_cmds_CXX in
16329    *'~'*)
16330      # FIXME: we may have to deal with multi-command sequences.
16331      ;;
16332    '$CC '*)
16333      # Test whether the compiler implicitly links with -lc since on some
16334      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16335      # to ld, don't add -lc before -lgcc.
16336      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16337$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16338if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16339  $as_echo_n "(cached) " >&6
16340else
16341  $RM conftest*
16342	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16343
16344	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16345  (eval $ac_compile) 2>&5
16346  ac_status=$?
16347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16348  test $ac_status = 0; } 2>conftest.err; then
16349	  soname=conftest
16350	  lib=conftest
16351	  libobjs=conftest.$ac_objext
16352	  deplibs=
16353	  wl=$lt_prog_compiler_wl_CXX
16354	  pic_flag=$lt_prog_compiler_pic_CXX
16355	  compiler_flags=-v
16356	  linker_flags=-v
16357	  verstring=
16358	  output_objdir=.
16359	  libname=conftest
16360	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16361	  allow_undefined_flag_CXX=
16362	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16363  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16364  ac_status=$?
16365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16366  test $ac_status = 0; }
16367	  then
16368	    lt_cv_archive_cmds_need_lc_CXX=no
16369	  else
16370	    lt_cv_archive_cmds_need_lc_CXX=yes
16371	  fi
16372	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16373	else
16374	  cat conftest.err 1>&5
16375	fi
16376	$RM conftest*
16377
16378fi
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16380$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16381      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16382      ;;
16383    esac
16384  fi
16385  ;;
16386esac
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16450$as_echo_n "checking dynamic linker characteristics... " >&6; }
16451
16452library_names_spec=
16453libname_spec='lib$name'
16454soname_spec=
16455shrext_cmds=.so
16456postinstall_cmds=
16457postuninstall_cmds=
16458finish_cmds=
16459finish_eval=
16460shlibpath_var=
16461shlibpath_overrides_runpath=unknown
16462version_type=none
16463dynamic_linker="$host_os ld.so"
16464sys_lib_dlsearch_path_spec="/lib /usr/lib"
16465need_lib_prefix=unknown
16466hardcode_into_libs=no
16467
16468# when you set need_version to no, make sure it does not cause -set_version
16469# flags to be left without arguments
16470need_version=unknown
16471
16472
16473
16474case $host_os in
16475aix3*)
16476  version_type=linux # correct to gnu/linux during the next big refactor
16477  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16478  shlibpath_var=LIBPATH
16479
16480  # AIX 3 has no versioning support, so we append a major version to the name.
16481  soname_spec='$libname$release$shared_ext$major'
16482  ;;
16483
16484aix[4-9]*)
16485  version_type=linux # correct to gnu/linux during the next big refactor
16486  need_lib_prefix=no
16487  need_version=no
16488  hardcode_into_libs=yes
16489  if test ia64 = "$host_cpu"; then
16490    # AIX 5 supports IA64
16491    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16492    shlibpath_var=LD_LIBRARY_PATH
16493  else
16494    # With GCC up to 2.95.x, collect2 would create an import file
16495    # for dependence libraries.  The import file would start with
16496    # the line '#! .'.  This would cause the generated library to
16497    # depend on '.', always an invalid library.  This was fixed in
16498    # development snapshots of GCC prior to 3.0.
16499    case $host_os in
16500      aix4 | aix4.[01] | aix4.[01].*)
16501      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16502	   echo ' yes '
16503	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16504	:
16505      else
16506	can_build_shared=no
16507      fi
16508      ;;
16509    esac
16510    # Using Import Files as archive members, it is possible to support
16511    # filename-based versioning of shared library archives on AIX. While
16512    # this would work for both with and without runtime linking, it will
16513    # prevent static linking of such archives. So we do filename-based
16514    # shared library versioning with .so extension only, which is used
16515    # when both runtime linking and shared linking is enabled.
16516    # Unfortunately, runtime linking may impact performance, so we do
16517    # not want this to be the default eventually. Also, we use the
16518    # versioned .so libs for executables only if there is the -brtl
16519    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16520    # To allow for filename-based versioning support, we need to create
16521    # libNAME.so.V as an archive file, containing:
16522    # *) an Import File, referring to the versioned filename of the
16523    #    archive as well as the shared archive member, telling the
16524    #    bitwidth (32 or 64) of that shared object, and providing the
16525    #    list of exported symbols of that shared object, eventually
16526    #    decorated with the 'weak' keyword
16527    # *) the shared object with the F_LOADONLY flag set, to really avoid
16528    #    it being seen by the linker.
16529    # At run time we better use the real file rather than another symlink,
16530    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16531
16532    case $with_aix_soname,$aix_use_runtimelinking in
16533    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16534    # soname into executable. Probably we can add versioning support to
16535    # collect2, so additional links can be useful in future.
16536    aix,yes) # traditional libtool
16537      dynamic_linker='AIX unversionable lib.so'
16538      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539      # instead of lib<name>.a to let people know that these are not
16540      # typical AIX shared libraries.
16541      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16542      ;;
16543    aix,no) # traditional AIX only
16544      dynamic_linker='AIX lib.a(lib.so.V)'
16545      # We preserve .a as extension for shared libraries through AIX4.2
16546      # and later when we are not doing run time linking.
16547      library_names_spec='$libname$release.a $libname.a'
16548      soname_spec='$libname$release$shared_ext$major'
16549      ;;
16550    svr4,*) # full svr4 only
16551      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16552      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16553      # We do not specify a path in Import Files, so LIBPATH fires.
16554      shlibpath_overrides_runpath=yes
16555      ;;
16556    *,yes) # both, prefer svr4
16557      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16558      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16559      # unpreferred sharedlib libNAME.a needs extra handling
16560      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"'
16561      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"'
16562      # We do not specify a path in Import Files, so LIBPATH fires.
16563      shlibpath_overrides_runpath=yes
16564      ;;
16565    *,no) # both, prefer aix
16566      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16567      library_names_spec='$libname$release.a $libname.a'
16568      soname_spec='$libname$release$shared_ext$major'
16569      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16570      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)'
16571      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"'
16572      ;;
16573    esac
16574    shlibpath_var=LIBPATH
16575  fi
16576  ;;
16577
16578amigaos*)
16579  case $host_cpu in
16580  powerpc)
16581    # Since July 2007 AmigaOS4 officially supports .so libraries.
16582    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16583    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16584    ;;
16585  m68k)
16586    library_names_spec='$libname.ixlibrary $libname.a'
16587    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16588    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'
16589    ;;
16590  esac
16591  ;;
16592
16593beos*)
16594  library_names_spec='$libname$shared_ext'
16595  dynamic_linker="$host_os ld.so"
16596  shlibpath_var=LIBRARY_PATH
16597  ;;
16598
16599bsdi[45]*)
16600  version_type=linux # correct to gnu/linux during the next big refactor
16601  need_version=no
16602  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16603  soname_spec='$libname$release$shared_ext$major'
16604  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605  shlibpath_var=LD_LIBRARY_PATH
16606  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608  # the default ld.so.conf also contains /usr/contrib/lib and
16609  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610  # libtool to hard-code these into programs
16611  ;;
16612
16613cygwin* | mingw* | pw32* | cegcc*)
16614  version_type=windows
16615  shrext_cmds=.dll
16616  need_version=no
16617  need_lib_prefix=no
16618
16619  case $GCC,$cc_basename in
16620  yes,*)
16621    # gcc
16622    library_names_spec='$libname.dll.a'
16623    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16624    postinstall_cmds='base_file=`basename \$file`~
16625      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16626      dldir=$destdir/`dirname \$dlpath`~
16627      test -d \$dldir || mkdir -p \$dldir~
16628      $install_prog $dir/$dlname \$dldir/$dlname~
16629      chmod a+x \$dldir/$dlname~
16630      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16631        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16632      fi'
16633    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16634      dlpath=$dir/\$dldll~
16635       $RM \$dlpath'
16636    shlibpath_overrides_runpath=yes
16637
16638    case $host_os in
16639    cygwin*)
16640      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16641      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16642
16643      ;;
16644    mingw* | cegcc*)
16645      # MinGW DLLs use traditional 'lib' prefix
16646      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16647      ;;
16648    pw32*)
16649      # pw32 DLLs use 'pw' prefix rather than 'lib'
16650      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16651      ;;
16652    esac
16653    dynamic_linker='Win32 ld.exe'
16654    ;;
16655
16656  *,cl*)
16657    # Native MSVC
16658    libname_spec='$name'
16659    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16660    library_names_spec='$libname.dll.lib'
16661
16662    case $build_os in
16663    mingw*)
16664      sys_lib_search_path_spec=
16665      lt_save_ifs=$IFS
16666      IFS=';'
16667      for lt_path in $LIB
16668      do
16669        IFS=$lt_save_ifs
16670        # Let DOS variable expansion print the short 8.3 style file name.
16671        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16672        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16673      done
16674      IFS=$lt_save_ifs
16675      # Convert to MSYS style.
16676      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16677      ;;
16678    cygwin*)
16679      # Convert to unix form, then to dos form, then back to unix form
16680      # but this time dos style (no spaces!) so that the unix form looks
16681      # like /cygdrive/c/PROGRA~1:/cygdr...
16682      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16683      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16684      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16685      ;;
16686    *)
16687      sys_lib_search_path_spec=$LIB
16688      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16689        # It is most probably a Windows format PATH.
16690        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16691      else
16692        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16693      fi
16694      # FIXME: find the short name or the path components, as spaces are
16695      # common. (e.g. "Program Files" -> "PROGRA~1")
16696      ;;
16697    esac
16698
16699    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16700    postinstall_cmds='base_file=`basename \$file`~
16701      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16702      dldir=$destdir/`dirname \$dlpath`~
16703      test -d \$dldir || mkdir -p \$dldir~
16704      $install_prog $dir/$dlname \$dldir/$dlname'
16705    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16706      dlpath=$dir/\$dldll~
16707       $RM \$dlpath'
16708    shlibpath_overrides_runpath=yes
16709    dynamic_linker='Win32 link.exe'
16710    ;;
16711
16712  *)
16713    # Assume MSVC wrapper
16714    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16715    dynamic_linker='Win32 ld.exe'
16716    ;;
16717  esac
16718  # FIXME: first we should search . and the directory the executable is in
16719  shlibpath_var=PATH
16720  ;;
16721
16722darwin* | rhapsody*)
16723  dynamic_linker="$host_os dyld"
16724  version_type=darwin
16725  need_lib_prefix=no
16726  need_version=no
16727  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16728  soname_spec='$libname$release$major$shared_ext'
16729  shlibpath_overrides_runpath=yes
16730  shlibpath_var=DYLD_LIBRARY_PATH
16731  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16732
16733  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16734  ;;
16735
16736dgux*)
16737  version_type=linux # correct to gnu/linux during the next big refactor
16738  need_lib_prefix=no
16739  need_version=no
16740  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16741  soname_spec='$libname$release$shared_ext$major'
16742  shlibpath_var=LD_LIBRARY_PATH
16743  ;;
16744
16745freebsd* | dragonfly*)
16746  # DragonFly does not have aout.  When/if they implement a new
16747  # versioning mechanism, adjust this.
16748  if test -x /usr/bin/objformat; then
16749    objformat=`/usr/bin/objformat`
16750  else
16751    case $host_os in
16752    freebsd[23].*) objformat=aout ;;
16753    *) objformat=elf ;;
16754    esac
16755  fi
16756  version_type=freebsd-$objformat
16757  case $version_type in
16758    freebsd-elf*)
16759      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16760      soname_spec='$libname$release$shared_ext$major'
16761      need_version=no
16762      need_lib_prefix=no
16763      ;;
16764    freebsd-*)
16765      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16766      need_version=yes
16767      ;;
16768  esac
16769  shlibpath_var=LD_LIBRARY_PATH
16770  case $host_os in
16771  freebsd2.*)
16772    shlibpath_overrides_runpath=yes
16773    ;;
16774  freebsd3.[01]* | freebsdelf3.[01]*)
16775    shlibpath_overrides_runpath=yes
16776    hardcode_into_libs=yes
16777    ;;
16778  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16779  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16780    shlibpath_overrides_runpath=no
16781    hardcode_into_libs=yes
16782    ;;
16783  *) # from 4.6 on, and DragonFly
16784    shlibpath_overrides_runpath=yes
16785    hardcode_into_libs=yes
16786    ;;
16787  esac
16788  ;;
16789
16790haiku*)
16791  version_type=linux # correct to gnu/linux during the next big refactor
16792  need_lib_prefix=no
16793  need_version=no
16794  dynamic_linker="$host_os runtime_loader"
16795  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16796  soname_spec='$libname$release$shared_ext$major'
16797  shlibpath_var=LIBRARY_PATH
16798  shlibpath_overrides_runpath=no
16799  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16800  hardcode_into_libs=yes
16801  ;;
16802
16803hpux9* | hpux10* | hpux11*)
16804  # Give a soname corresponding to the major version so that dld.sl refuses to
16805  # link against other versions.
16806  version_type=sunos
16807  need_lib_prefix=no
16808  need_version=no
16809  case $host_cpu in
16810  ia64*)
16811    shrext_cmds='.so'
16812    hardcode_into_libs=yes
16813    dynamic_linker="$host_os dld.so"
16814    shlibpath_var=LD_LIBRARY_PATH
16815    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16816    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16817    soname_spec='$libname$release$shared_ext$major'
16818    if test 32 = "$HPUX_IA64_MODE"; then
16819      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16820      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16821    else
16822      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16823      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16824    fi
16825    ;;
16826  hppa*64*)
16827    shrext_cmds='.sl'
16828    hardcode_into_libs=yes
16829    dynamic_linker="$host_os dld.sl"
16830    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16831    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16832    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16833    soname_spec='$libname$release$shared_ext$major'
16834    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16835    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16836    ;;
16837  *)
16838    shrext_cmds='.sl'
16839    dynamic_linker="$host_os dld.sl"
16840    shlibpath_var=SHLIB_PATH
16841    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16842    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16843    soname_spec='$libname$release$shared_ext$major'
16844    ;;
16845  esac
16846  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16847  postinstall_cmds='chmod 555 $lib'
16848  # or fails outright, so override atomically:
16849  install_override_mode=555
16850  ;;
16851
16852interix[3-9]*)
16853  version_type=linux # correct to gnu/linux during the next big refactor
16854  need_lib_prefix=no
16855  need_version=no
16856  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16857  soname_spec='$libname$release$shared_ext$major'
16858  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16859  shlibpath_var=LD_LIBRARY_PATH
16860  shlibpath_overrides_runpath=no
16861  hardcode_into_libs=yes
16862  ;;
16863
16864irix5* | irix6* | nonstopux*)
16865  case $host_os in
16866    nonstopux*) version_type=nonstopux ;;
16867    *)
16868	if test yes = "$lt_cv_prog_gnu_ld"; then
16869		version_type=linux # correct to gnu/linux during the next big refactor
16870	else
16871		version_type=irix
16872	fi ;;
16873  esac
16874  need_lib_prefix=no
16875  need_version=no
16876  soname_spec='$libname$release$shared_ext$major'
16877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16878  case $host_os in
16879  irix5* | nonstopux*)
16880    libsuff= shlibsuff=
16881    ;;
16882  *)
16883    case $LD in # libtool.m4 will add one of these switches to LD
16884    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16885      libsuff= shlibsuff= libmagic=32-bit;;
16886    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16887      libsuff=32 shlibsuff=N32 libmagic=N32;;
16888    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16889      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16890    *) libsuff= shlibsuff= libmagic=never-match;;
16891    esac
16892    ;;
16893  esac
16894  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16895  shlibpath_overrides_runpath=no
16896  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16897  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16898  hardcode_into_libs=yes
16899  ;;
16900
16901# No shared lib support for Linux oldld, aout, or coff.
16902linux*oldld* | linux*aout* | linux*coff*)
16903  dynamic_linker=no
16904  ;;
16905
16906linux*android*)
16907  version_type=none # Android doesn't support versioned libraries.
16908  need_lib_prefix=no
16909  need_version=no
16910  library_names_spec='$libname$release$shared_ext'
16911  soname_spec='$libname$release$shared_ext'
16912  finish_cmds=
16913  shlibpath_var=LD_LIBRARY_PATH
16914  shlibpath_overrides_runpath=yes
16915
16916  # This implies no fast_install, which is unacceptable.
16917  # Some rework will be needed to allow for fast_install
16918  # before this can be enabled.
16919  hardcode_into_libs=yes
16920
16921  dynamic_linker='Android linker'
16922  # Don't embed -rpath directories since the linker doesn't support them.
16923  hardcode_libdir_flag_spec_CXX='-L$libdir'
16924  ;;
16925
16926# This must be glibc/ELF.
16927linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16928  version_type=linux # correct to gnu/linux during the next big refactor
16929  need_lib_prefix=no
16930  need_version=no
16931  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16932  soname_spec='$libname$release$shared_ext$major'
16933  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16934  shlibpath_var=LD_LIBRARY_PATH
16935  shlibpath_overrides_runpath=no
16936
16937  # Some binutils ld are patched to set DT_RUNPATH
16938  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16939  $as_echo_n "(cached) " >&6
16940else
16941  lt_cv_shlibpath_overrides_runpath=no
16942    save_LDFLAGS=$LDFLAGS
16943    save_libdir=$libdir
16944    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16945	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947/* end confdefs.h.  */
16948
16949int
16950main ()
16951{
16952
16953  ;
16954  return 0;
16955}
16956_ACEOF
16957if ac_fn_cxx_try_link "$LINENO"; then :
16958  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16959  lt_cv_shlibpath_overrides_runpath=yes
16960fi
16961fi
16962rm -f core conftest.err conftest.$ac_objext \
16963    conftest$ac_exeext conftest.$ac_ext
16964    LDFLAGS=$save_LDFLAGS
16965    libdir=$save_libdir
16966
16967fi
16968
16969  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16970
16971  # This implies no fast_install, which is unacceptable.
16972  # Some rework will be needed to allow for fast_install
16973  # before this can be enabled.
16974  hardcode_into_libs=yes
16975
16976  # Ideally, we could use ldconfig to report *all* directores which are
16977  # searched for libraries, however this is still not possible.  Aside from not
16978  # being certain /sbin/ldconfig is available, command
16979  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16980  # even though it is searched at run-time.  Try to do the best guess by
16981  # appending ld.so.conf contents (and includes) to the search path.
16982  if test -f /etc/ld.so.conf; then
16983    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' ' '`
16984    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16985  fi
16986
16987  # We used to test for /lib/ld.so.1 and disable shared libraries on
16988  # powerpc, because MkLinux only supported shared libraries with the
16989  # GNU dynamic linker.  Since this was broken with cross compilers,
16990  # most powerpc-linux boxes support dynamic linking these days and
16991  # people can always --disable-shared, the test was removed, and we
16992  # assume the GNU/Linux dynamic linker is in use.
16993  dynamic_linker='GNU/Linux ld.so'
16994  ;;
16995
16996netbsdelf*-gnu)
16997  version_type=linux
16998  need_lib_prefix=no
16999  need_version=no
17000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17001  soname_spec='${libname}${release}${shared_ext}$major'
17002  shlibpath_var=LD_LIBRARY_PATH
17003  shlibpath_overrides_runpath=no
17004  hardcode_into_libs=yes
17005  dynamic_linker='NetBSD ld.elf_so'
17006  ;;
17007
17008netbsd*)
17009  version_type=sunos
17010  need_lib_prefix=no
17011  need_version=no
17012  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17013    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17014    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17015    dynamic_linker='NetBSD (a.out) ld.so'
17016  else
17017    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17018    soname_spec='$libname$release$shared_ext$major'
17019    dynamic_linker='NetBSD ld.elf_so'
17020  fi
17021  shlibpath_var=LD_LIBRARY_PATH
17022  shlibpath_overrides_runpath=yes
17023  hardcode_into_libs=yes
17024  ;;
17025
17026newsos6)
17027  version_type=linux # correct to gnu/linux during the next big refactor
17028  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17029  shlibpath_var=LD_LIBRARY_PATH
17030  shlibpath_overrides_runpath=yes
17031  ;;
17032
17033*nto* | *qnx*)
17034  version_type=qnx
17035  need_lib_prefix=no
17036  need_version=no
17037  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17038  soname_spec='$libname$release$shared_ext$major'
17039  shlibpath_var=LD_LIBRARY_PATH
17040  shlibpath_overrides_runpath=no
17041  hardcode_into_libs=yes
17042  dynamic_linker='ldqnx.so'
17043  ;;
17044
17045openbsd* | bitrig*)
17046  version_type=sunos
17047  sys_lib_dlsearch_path_spec=/usr/lib
17048  need_lib_prefix=no
17049  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17050    need_version=no
17051  else
17052    need_version=yes
17053  fi
17054  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17055  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17056  shlibpath_var=LD_LIBRARY_PATH
17057  shlibpath_overrides_runpath=yes
17058  ;;
17059
17060os2*)
17061  libname_spec='$name'
17062  version_type=windows
17063  shrext_cmds=.dll
17064  need_version=no
17065  need_lib_prefix=no
17066  # OS/2 can only load a DLL with a base name of 8 characters or less.
17067  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17068    v=$($ECHO $release$versuffix | tr -d .-);
17069    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17070    $ECHO $n$v`$shared_ext'
17071  library_names_spec='${libname}_dll.$libext'
17072  dynamic_linker='OS/2 ld.exe'
17073  shlibpath_var=BEGINLIBPATH
17074  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17075  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17076  postinstall_cmds='base_file=`basename \$file`~
17077    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17078    dldir=$destdir/`dirname \$dlpath`~
17079    test -d \$dldir || mkdir -p \$dldir~
17080    $install_prog $dir/$dlname \$dldir/$dlname~
17081    chmod a+x \$dldir/$dlname~
17082    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17083      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17084    fi'
17085  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17086    dlpath=$dir/\$dldll~
17087    $RM \$dlpath'
17088  ;;
17089
17090osf3* | osf4* | osf5*)
17091  version_type=osf
17092  need_lib_prefix=no
17093  need_version=no
17094  soname_spec='$libname$release$shared_ext$major'
17095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17096  shlibpath_var=LD_LIBRARY_PATH
17097  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17098  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17099  ;;
17100
17101rdos*)
17102  dynamic_linker=no
17103  ;;
17104
17105solaris*)
17106  version_type=linux # correct to gnu/linux during the next big refactor
17107  need_lib_prefix=no
17108  need_version=no
17109  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17110  soname_spec='$libname$release$shared_ext$major'
17111  shlibpath_var=LD_LIBRARY_PATH
17112  shlibpath_overrides_runpath=yes
17113  hardcode_into_libs=yes
17114  # ldd complains unless libraries are executable
17115  postinstall_cmds='chmod +x $lib'
17116  ;;
17117
17118sunos4*)
17119  version_type=sunos
17120  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17121  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17122  shlibpath_var=LD_LIBRARY_PATH
17123  shlibpath_overrides_runpath=yes
17124  if test yes = "$with_gnu_ld"; then
17125    need_lib_prefix=no
17126  fi
17127  need_version=yes
17128  ;;
17129
17130sysv4 | sysv4.3*)
17131  version_type=linux # correct to gnu/linux during the next big refactor
17132  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17133  soname_spec='$libname$release$shared_ext$major'
17134  shlibpath_var=LD_LIBRARY_PATH
17135  case $host_vendor in
17136    sni)
17137      shlibpath_overrides_runpath=no
17138      need_lib_prefix=no
17139      runpath_var=LD_RUN_PATH
17140      ;;
17141    siemens)
17142      need_lib_prefix=no
17143      ;;
17144    motorola)
17145      need_lib_prefix=no
17146      need_version=no
17147      shlibpath_overrides_runpath=no
17148      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17149      ;;
17150  esac
17151  ;;
17152
17153sysv4*MP*)
17154  if test -d /usr/nec; then
17155    version_type=linux # correct to gnu/linux during the next big refactor
17156    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17157    soname_spec='$libname$shared_ext.$major'
17158    shlibpath_var=LD_LIBRARY_PATH
17159  fi
17160  ;;
17161
17162sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17163  version_type=sco
17164  need_lib_prefix=no
17165  need_version=no
17166  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17167  soname_spec='$libname$release$shared_ext$major'
17168  shlibpath_var=LD_LIBRARY_PATH
17169  shlibpath_overrides_runpath=yes
17170  hardcode_into_libs=yes
17171  if test yes = "$with_gnu_ld"; then
17172    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17173  else
17174    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17175    case $host_os in
17176      sco3.2v5*)
17177        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17178	;;
17179    esac
17180  fi
17181  sys_lib_dlsearch_path_spec='/usr/lib'
17182  ;;
17183
17184tpf*)
17185  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17186  version_type=linux # correct to gnu/linux during the next big refactor
17187  need_lib_prefix=no
17188  need_version=no
17189  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17190  shlibpath_var=LD_LIBRARY_PATH
17191  shlibpath_overrides_runpath=no
17192  hardcode_into_libs=yes
17193  ;;
17194
17195uts4*)
17196  version_type=linux # correct to gnu/linux during the next big refactor
17197  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17198  soname_spec='$libname$release$shared_ext$major'
17199  shlibpath_var=LD_LIBRARY_PATH
17200  ;;
17201
17202*)
17203  dynamic_linker=no
17204  ;;
17205esac
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17207$as_echo "$dynamic_linker" >&6; }
17208test no = "$dynamic_linker" && can_build_shared=no
17209
17210variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17211if test yes = "$GCC"; then
17212  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17213fi
17214
17215if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17216  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17217fi
17218
17219if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17220  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17221fi
17222
17223# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17224configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17225
17226# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17227func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17228
17229# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17230configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17272$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17273hardcode_action_CXX=
17274if test -n "$hardcode_libdir_flag_spec_CXX" ||
17275   test -n "$runpath_var_CXX" ||
17276   test yes = "$hardcode_automatic_CXX"; then
17277
17278  # We can hardcode non-existent directories.
17279  if test no != "$hardcode_direct_CXX" &&
17280     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17281     # have to relink, otherwise we might link with an installed library
17282     # when we should be linking with a yet-to-be-installed one
17283     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17284     test no != "$hardcode_minus_L_CXX"; then
17285    # Linking always hardcodes the temporary library directory.
17286    hardcode_action_CXX=relink
17287  else
17288    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17289    hardcode_action_CXX=immediate
17290  fi
17291else
17292  # We cannot hardcode anything, or else we can only hardcode existing
17293  # directories.
17294  hardcode_action_CXX=unsupported
17295fi
17296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17297$as_echo "$hardcode_action_CXX" >&6; }
17298
17299if test relink = "$hardcode_action_CXX" ||
17300   test yes = "$inherit_rpath_CXX"; then
17301  # Fast installation is not supported
17302  enable_fast_install=no
17303elif test yes = "$shlibpath_overrides_runpath" ||
17304     test no = "$enable_shared"; then
17305  # Fast installation is not necessary
17306  enable_fast_install=needless
17307fi
17308
17309
17310
17311
17312
17313
17314
17315  fi # test -n "$compiler"
17316
17317  CC=$lt_save_CC
17318  CFLAGS=$lt_save_CFLAGS
17319  LDCXX=$LD
17320  LD=$lt_save_LD
17321  GCC=$lt_save_GCC
17322  with_gnu_ld=$lt_save_with_gnu_ld
17323  lt_cv_path_LDCXX=$lt_cv_path_LD
17324  lt_cv_path_LD=$lt_save_path_LD
17325  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17326  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17327fi # test yes != "$_lt_caught_CXX_error"
17328
17329ac_ext=c
17330ac_cpp='$CPP $CPPFLAGS'
17331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17333ac_compiler_gnu=$ac_cv_c_compiler_gnu
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349        ac_config_commands="$ac_config_commands libtool"
17350
17351
17352
17353
17354# Only expand once:
17355
17356
17357
17358
17359# The cast to long int works around a bug in the HP C Compiler
17360# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17361# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17362# This bug is HP SR number 8606223364.
17363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17364$as_echo_n "checking size of int... " >&6; }
17365if ${ac_cv_sizeof_int+:} false; then :
17366  $as_echo_n "(cached) " >&6
17367else
17368  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
17369
17370else
17371  if test "$ac_cv_type_int" = yes; then
17372     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17374as_fn_error 77 "cannot compute sizeof (int)
17375See \`config.log' for more details" "$LINENO" 5; }
17376   else
17377     ac_cv_sizeof_int=0
17378   fi
17379fi
17380
17381fi
17382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17383$as_echo "$ac_cv_sizeof_int" >&6; }
17384
17385
17386
17387cat >>confdefs.h <<_ACEOF
17388#define SIZEOF_INT $ac_cv_sizeof_int
17389_ACEOF
17390
17391
17392# The cast to long int works around a bug in the HP C Compiler
17393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17395# This bug is HP SR number 8606223364.
17396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17397$as_echo_n "checking size of long... " >&6; }
17398if ${ac_cv_sizeof_long+:} false; then :
17399  $as_echo_n "(cached) " >&6
17400else
17401  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17402
17403else
17404  if test "$ac_cv_type_long" = yes; then
17405     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17407as_fn_error 77 "cannot compute sizeof (long)
17408See \`config.log' for more details" "$LINENO" 5; }
17409   else
17410     ac_cv_sizeof_long=0
17411   fi
17412fi
17413
17414fi
17415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17416$as_echo "$ac_cv_sizeof_long" >&6; }
17417
17418
17419
17420cat >>confdefs.h <<_ACEOF
17421#define SIZEOF_LONG $ac_cv_sizeof_long
17422_ACEOF
17423
17424
17425# The cast to long int works around a bug in the HP C Compiler
17426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17428# This bug is HP SR number 8606223364.
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17430$as_echo_n "checking size of size_t... " >&6; }
17431if ${ac_cv_sizeof_size_t+:} false; then :
17432  $as_echo_n "(cached) " >&6
17433else
17434  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17435
17436else
17437  if test "$ac_cv_type_size_t" = yes; then
17438     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17440as_fn_error 77 "cannot compute sizeof (size_t)
17441See \`config.log' for more details" "$LINENO" 5; }
17442   else
17443     ac_cv_sizeof_size_t=0
17444   fi
17445fi
17446
17447fi
17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17449$as_echo "$ac_cv_sizeof_size_t" >&6; }
17450
17451
17452
17453cat >>confdefs.h <<_ACEOF
17454#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17455_ACEOF
17456
17457
17458# The cast to long int works around a bug in the HP C Compiler
17459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17461# This bug is HP SR number 8606223364.
17462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17463$as_echo_n "checking size of off_t... " >&6; }
17464if ${ac_cv_sizeof_off_t+:} false; then :
17465  $as_echo_n "(cached) " >&6
17466else
17467  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
17468
17469else
17470  if test "$ac_cv_type_off_t" = yes; then
17471     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17473as_fn_error 77 "cannot compute sizeof (off_t)
17474See \`config.log' for more details" "$LINENO" 5; }
17475   else
17476     ac_cv_sizeof_off_t=0
17477   fi
17478fi
17479
17480fi
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17482$as_echo "$ac_cv_sizeof_off_t" >&6; }
17483
17484
17485
17486cat >>confdefs.h <<_ACEOF
17487#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17488_ACEOF
17489
17490
17491# The cast to long int works around a bug in the HP C Compiler
17492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17494# This bug is HP SR number 8606223364.
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17496$as_echo_n "checking size of time_t... " >&6; }
17497if ${ac_cv_sizeof_time_t+:} false; then :
17498  $as_echo_n "(cached) " >&6
17499else
17500  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
17501
17502else
17503  if test "$ac_cv_type_time_t" = yes; then
17504     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17506as_fn_error 77 "cannot compute sizeof (time_t)
17507See \`config.log' for more details" "$LINENO" 5; }
17508   else
17509     ac_cv_sizeof_time_t=0
17510   fi
17511fi
17512
17513fi
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17515$as_echo "$ac_cv_sizeof_time_t" >&6; }
17516
17517
17518
17519cat >>confdefs.h <<_ACEOF
17520#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
17521_ACEOF
17522
17523
17524
17525if test "$ac_cv_sizeof_time_t" -lt 8; then :
17526  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your platform's time_t is less than 64 bits" >&5
17527$as_echo "$as_me: WARNING: Your platform's time_t is less than 64 bits" >&2;}
17528
17529fi
17530
17531# The cast to long int works around a bug in the HP C Compiler
17532# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17533# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17534# This bug is HP SR number 8606223364.
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
17536$as_echo_n "checking size of long long int... " >&6; }
17537if ${ac_cv_sizeof_long_long_int+:} false; then :
17538  $as_echo_n "(cached) " >&6
17539else
17540  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
17541
17542else
17543  if test "$ac_cv_type_long_long_int" = yes; then
17544     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17546as_fn_error 77 "cannot compute sizeof (long long int)
17547See \`config.log' for more details" "$LINENO" 5; }
17548   else
17549     ac_cv_sizeof_long_long_int=0
17550   fi
17551fi
17552
17553fi
17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
17555$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
17556
17557
17558
17559cat >>confdefs.h <<_ACEOF
17560#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
17561_ACEOF
17562
17563
17564# The cast to long int works around a bug in the HP C Compiler
17565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17567# This bug is HP SR number 8606223364.
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
17569$as_echo_n "checking size of unsigned long long int... " >&6; }
17570if ${ac_cv_sizeof_unsigned_long_long_int+:} false; then :
17571  $as_echo_n "(cached) " >&6
17572else
17573  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int"        "$ac_includes_default"; then :
17574
17575else
17576  if test "$ac_cv_type_unsigned_long_long_int" = yes; then
17577     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17579as_fn_error 77 "cannot compute sizeof (unsigned long long int)
17580See \`config.log' for more details" "$LINENO" 5; }
17581   else
17582     ac_cv_sizeof_unsigned_long_long_int=0
17583   fi
17584fi
17585
17586fi
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
17588$as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
17589
17590
17591
17592cat >>confdefs.h <<_ACEOF
17593#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
17594_ACEOF
17595
17596
17597if test "$ac_cv_sizeof_long_long_int" -eq 8 -a \
17598        "$ac_cv_sizeof_unsigned_long_long_int" -eq 8; then
17599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17600$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17601if ${ac_cv_c_bigendian+:} false; then :
17602  $as_echo_n "(cached) " >&6
17603else
17604  ac_cv_c_bigendian=unknown
17605    # See if we're dealing with a universal compiler.
17606    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607/* end confdefs.h.  */
17608#ifndef __APPLE_CC__
17609	       not a universal capable compiler
17610	     #endif
17611	     typedef int dummy;
17612
17613_ACEOF
17614if ac_fn_c_try_compile "$LINENO"; then :
17615
17616	# Check for potential -arch flags.  It is not universal unless
17617	# there are at least two -arch flags with different values.
17618	ac_arch=
17619	ac_prev=
17620	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17621	 if test -n "$ac_prev"; then
17622	   case $ac_word in
17623	     i?86 | x86_64 | ppc | ppc64)
17624	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17625		 ac_arch=$ac_word
17626	       else
17627		 ac_cv_c_bigendian=universal
17628		 break
17629	       fi
17630	       ;;
17631	   esac
17632	   ac_prev=
17633	 elif test "x$ac_word" = "x-arch"; then
17634	   ac_prev=arch
17635	 fi
17636       done
17637fi
17638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639    if test $ac_cv_c_bigendian = unknown; then
17640      # See if sys/param.h defines the BYTE_ORDER macro.
17641      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642/* end confdefs.h.  */
17643#include <sys/types.h>
17644	     #include <sys/param.h>
17645
17646int
17647main ()
17648{
17649#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17650		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17651		     && LITTLE_ENDIAN)
17652	      bogus endian macros
17653	     #endif
17654
17655  ;
17656  return 0;
17657}
17658_ACEOF
17659if ac_fn_c_try_compile "$LINENO"; then :
17660  # It does; now see whether it defined to BIG_ENDIAN or not.
17661	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662/* end confdefs.h.  */
17663#include <sys/types.h>
17664		#include <sys/param.h>
17665
17666int
17667main ()
17668{
17669#if BYTE_ORDER != BIG_ENDIAN
17670		 not big endian
17671		#endif
17672
17673  ;
17674  return 0;
17675}
17676_ACEOF
17677if ac_fn_c_try_compile "$LINENO"; then :
17678  ac_cv_c_bigendian=yes
17679else
17680  ac_cv_c_bigendian=no
17681fi
17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683fi
17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685    fi
17686    if test $ac_cv_c_bigendian = unknown; then
17687      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17688      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689/* end confdefs.h.  */
17690#include <limits.h>
17691
17692int
17693main ()
17694{
17695#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17696	      bogus endian macros
17697	     #endif
17698
17699  ;
17700  return 0;
17701}
17702_ACEOF
17703if ac_fn_c_try_compile "$LINENO"; then :
17704  # It does; now see whether it defined to _BIG_ENDIAN or not.
17705	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706/* end confdefs.h.  */
17707#include <limits.h>
17708
17709int
17710main ()
17711{
17712#ifndef _BIG_ENDIAN
17713		 not big endian
17714		#endif
17715
17716  ;
17717  return 0;
17718}
17719_ACEOF
17720if ac_fn_c_try_compile "$LINENO"; then :
17721  ac_cv_c_bigendian=yes
17722else
17723  ac_cv_c_bigendian=no
17724fi
17725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726fi
17727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728    fi
17729    if test $ac_cv_c_bigendian = unknown; then
17730      # Compile a test program.
17731      if test "$cross_compiling" = yes; then :
17732  # Try to guess by grepping values from an object file.
17733	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734/* end confdefs.h.  */
17735short int ascii_mm[] =
17736		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17737		short int ascii_ii[] =
17738		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17739		int use_ascii (int i) {
17740		  return ascii_mm[i] + ascii_ii[i];
17741		}
17742		short int ebcdic_ii[] =
17743		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17744		short int ebcdic_mm[] =
17745		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17746		int use_ebcdic (int i) {
17747		  return ebcdic_mm[i] + ebcdic_ii[i];
17748		}
17749		extern int foo;
17750
17751int
17752main ()
17753{
17754return use_ascii (foo) == use_ebcdic (foo);
17755  ;
17756  return 0;
17757}
17758_ACEOF
17759if ac_fn_c_try_compile "$LINENO"; then :
17760  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17761	      ac_cv_c_bigendian=yes
17762	    fi
17763	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17764	      if test "$ac_cv_c_bigendian" = unknown; then
17765		ac_cv_c_bigendian=no
17766	      else
17767		# finding both strings is unlikely to happen, but who knows?
17768		ac_cv_c_bigendian=unknown
17769	      fi
17770	    fi
17771fi
17772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773else
17774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h.  */
17776$ac_includes_default
17777int
17778main ()
17779{
17780
17781	     /* Are we little or big endian?  From Harbison&Steele.  */
17782	     union
17783	     {
17784	       long int l;
17785	       char c[sizeof (long int)];
17786	     } u;
17787	     u.l = 1;
17788	     return u.c[sizeof (long int) - 1] == 1;
17789
17790  ;
17791  return 0;
17792}
17793_ACEOF
17794if ac_fn_c_try_run "$LINENO"; then :
17795  ac_cv_c_bigendian=no
17796else
17797  ac_cv_c_bigendian=yes
17798fi
17799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17800  conftest.$ac_objext conftest.beam conftest.$ac_ext
17801fi
17802
17803    fi
17804fi
17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17806$as_echo "$ac_cv_c_bigendian" >&6; }
17807 case $ac_cv_c_bigendian in #(
17808   yes)
17809     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17810;; #(
17811   no)
17812      ;; #(
17813   universal)
17814
17815$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17816
17817     ;; #(
17818   *)
17819     as_fn_error $? "unknown endianness
17820 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17821 esac
17822
17823else
17824  as_fn_error $? "The Cyrus IMAPD requires support for long long int" "$LINENO" 5
17825fi
17826
17827# The cast to long int works around a bug in the HP C Compiler,
17828# see AC_CHECK_SIZEOF for more information.
17829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint32_t" >&5
17830$as_echo_n "checking alignment of uint32_t... " >&6; }
17831if ${ac_cv_alignof_uint32_t+:} false; then :
17832  $as_echo_n "(cached) " >&6
17833else
17834  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint32_t"        "$ac_includes_default
17835#ifndef offsetof
17836# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17837#endif
17838typedef struct { char x; uint32_t y; } ac__type_alignof_;"; then :
17839
17840else
17841  if test "$ac_cv_type_uint32_t" = yes; then
17842     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17844as_fn_error 77 "cannot compute alignment of uint32_t
17845See \`config.log' for more details" "$LINENO" 5; }
17846   else
17847     ac_cv_alignof_uint32_t=0
17848   fi
17849fi
17850
17851fi
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint32_t" >&5
17853$as_echo "$ac_cv_alignof_uint32_t" >&6; }
17854
17855
17856
17857cat >>confdefs.h <<_ACEOF
17858#define ALIGNOF_UINT32_T $ac_cv_alignof_uint32_t
17859_ACEOF
17860
17861
17862
17863
17864   # CMU GUESS RUNPATH SWITCH
17865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
17866$as_echo_n "checking for runpath switch... " >&6; }
17867if ${andrew_cv_runpath_switch+:} false; then :
17868  $as_echo_n "(cached) " >&6
17869else
17870
17871    # first, try -R
17872    SAVE_LDFLAGS="${LDFLAGS}"
17873    LDFLAGS="-R /usr/lib"
17874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h.  */
17876
17877int
17878main ()
17879{
17880
17881  ;
17882  return 0;
17883}
17884_ACEOF
17885if ac_fn_c_try_link "$LINENO"; then :
17886  andrew_cv_runpath_switch="-R"
17887else
17888
17889        LDFLAGS="-Wl,-rpath,/usr/lib"
17890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h.  */
17892
17893int
17894main ()
17895{
17896
17897  ;
17898  return 0;
17899}
17900_ACEOF
17901if ac_fn_c_try_link "$LINENO"; then :
17902  andrew_cv_runpath_switch="-Wl,-rpath,"
17903else
17904  andrew_cv_runpath_switch="none"
17905fi
17906rm -f core conftest.err conftest.$ac_objext \
17907    conftest$ac_exeext conftest.$ac_ext
17908
17909fi
17910rm -f core conftest.err conftest.$ac_objext \
17911    conftest$ac_exeext conftest.$ac_ext
17912  LDFLAGS="${SAVE_LDFLAGS}"
17913
17914fi
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_cv_runpath_switch" >&5
17916$as_echo "$andrew_cv_runpath_switch" >&6; }
17917
17918for ac_header in unistd.h sys/select.h sys/param.h stdarg.h
17919do :
17920  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17921ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17922if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17923  cat >>confdefs.h <<_ACEOF
17924#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17925_ACEOF
17926
17927fi
17928
17929done
17930
17931ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17932if test "x$ac_cv_func_memmove" = xyes; then :
17933  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17934
17935else
17936  case " $LIBOBJS " in
17937  *" memmove.$ac_objext "* ) ;;
17938  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17939 ;;
17940esac
17941
17942fi
17943
17944ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17945if test "x$ac_cv_func_strcasecmp" = xyes; then :
17946  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17947
17948else
17949  case " $LIBOBJS " in
17950  *" strcasecmp.$ac_objext "* ) ;;
17951  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17952 ;;
17953esac
17954
17955fi
17956
17957ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
17958if test "x$ac_cv_func_ftruncate" = xyes; then :
17959  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
17960
17961else
17962  case " $LIBOBJS " in
17963  *" ftruncate.$ac_objext "* ) ;;
17964  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
17965 ;;
17966esac
17967
17968fi
17969
17970ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17971if test "x$ac_cv_func_strerror" = xyes; then :
17972  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
17973
17974else
17975  case " $LIBOBJS " in
17976  *" strerror.$ac_objext "* ) ;;
17977  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
17978 ;;
17979esac
17980
17981fi
17982
17983ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17984if test "x$ac_cv_func_posix_fadvise" = xyes; then :
17985  $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
17986
17987else
17988  case " $LIBOBJS " in
17989  *" posix_fadvise.$ac_objext "* ) ;;
17990  *) LIBOBJS="$LIBOBJS posix_fadvise.$ac_objext"
17991 ;;
17992esac
17993
17994fi
17995
17996ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
17997if test "x$ac_cv_func_strsep" = xyes; then :
17998  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
17999
18000else
18001  case " $LIBOBJS " in
18002  *" strsep.$ac_objext "* ) ;;
18003  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
18004 ;;
18005esac
18006
18007fi
18008
18009ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
18010if test "x$ac_cv_func_memmem" = xyes; then :
18011  $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
18012
18013else
18014  case " $LIBOBJS " in
18015  *" memmem.$ac_objext "* ) ;;
18016  *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
18017 ;;
18018esac
18019
18020fi
18021
18022ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
18023if test "x$ac_cv_func_memrchr" = xyes; then :
18024  $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
18025
18026else
18027  case " $LIBOBJS " in
18028  *" memrchr.$ac_objext "* ) ;;
18029  *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
18030 ;;
18031esac
18032
18033fi
18034
18035
18036for ac_func in strlcat strlcpy strnchr getgrouplist fmemopen pselect futimens futimes getline
18037do :
18038  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18039ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18040if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18041  cat >>confdefs.h <<_ACEOF
18042#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18043_ACEOF
18044
18045fi
18046done
18047
18048ac_header_dirent=no
18049for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18050  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18052$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18053if eval \${$as_ac_Header+:} false; then :
18054  $as_echo_n "(cached) " >&6
18055else
18056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057/* end confdefs.h.  */
18058#include <sys/types.h>
18059#include <$ac_hdr>
18060
18061int
18062main ()
18063{
18064if ((DIR *) 0)
18065return 0;
18066  ;
18067  return 0;
18068}
18069_ACEOF
18070if ac_fn_c_try_compile "$LINENO"; then :
18071  eval "$as_ac_Header=yes"
18072else
18073  eval "$as_ac_Header=no"
18074fi
18075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076fi
18077eval ac_res=\$$as_ac_Header
18078	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18079$as_echo "$ac_res" >&6; }
18080if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18081  cat >>confdefs.h <<_ACEOF
18082#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18083_ACEOF
18084
18085ac_header_dirent=$ac_hdr; break
18086fi
18087
18088done
18089# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18090if test $ac_header_dirent = dirent.h; then
18091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18092$as_echo_n "checking for library containing opendir... " >&6; }
18093if ${ac_cv_search_opendir+:} false; then :
18094  $as_echo_n "(cached) " >&6
18095else
18096  ac_func_search_save_LIBS=$LIBS
18097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098/* end confdefs.h.  */
18099
18100/* Override any GCC internal prototype to avoid an error.
18101   Use char because int might match the return type of a GCC
18102   builtin and then its argument prototype would still apply.  */
18103#ifdef __cplusplus
18104extern "C"
18105#endif
18106char opendir ();
18107int
18108main ()
18109{
18110return opendir ();
18111  ;
18112  return 0;
18113}
18114_ACEOF
18115for ac_lib in '' dir; do
18116  if test -z "$ac_lib"; then
18117    ac_res="none required"
18118  else
18119    ac_res=-l$ac_lib
18120    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18121  fi
18122  if ac_fn_c_try_link "$LINENO"; then :
18123  ac_cv_search_opendir=$ac_res
18124fi
18125rm -f core conftest.err conftest.$ac_objext \
18126    conftest$ac_exeext
18127  if ${ac_cv_search_opendir+:} false; then :
18128  break
18129fi
18130done
18131if ${ac_cv_search_opendir+:} false; then :
18132
18133else
18134  ac_cv_search_opendir=no
18135fi
18136rm conftest.$ac_ext
18137LIBS=$ac_func_search_save_LIBS
18138fi
18139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18140$as_echo "$ac_cv_search_opendir" >&6; }
18141ac_res=$ac_cv_search_opendir
18142if test "$ac_res" != no; then :
18143  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18144
18145fi
18146
18147else
18148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18149$as_echo_n "checking for library containing opendir... " >&6; }
18150if ${ac_cv_search_opendir+:} false; then :
18151  $as_echo_n "(cached) " >&6
18152else
18153  ac_func_search_save_LIBS=$LIBS
18154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155/* end confdefs.h.  */
18156
18157/* Override any GCC internal prototype to avoid an error.
18158   Use char because int might match the return type of a GCC
18159   builtin and then its argument prototype would still apply.  */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163char opendir ();
18164int
18165main ()
18166{
18167return opendir ();
18168  ;
18169  return 0;
18170}
18171_ACEOF
18172for ac_lib in '' x; do
18173  if test -z "$ac_lib"; then
18174    ac_res="none required"
18175  else
18176    ac_res=-l$ac_lib
18177    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18178  fi
18179  if ac_fn_c_try_link "$LINENO"; then :
18180  ac_cv_search_opendir=$ac_res
18181fi
18182rm -f core conftest.err conftest.$ac_objext \
18183    conftest$ac_exeext
18184  if ${ac_cv_search_opendir+:} false; then :
18185  break
18186fi
18187done
18188if ${ac_cv_search_opendir+:} false; then :
18189
18190else
18191  ac_cv_search_opendir=no
18192fi
18193rm conftest.$ac_ext
18194LIBS=$ac_func_search_save_LIBS
18195fi
18196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18197$as_echo "$ac_cv_search_opendir" >&6; }
18198ac_res=$ac_cv_search_opendir
18199if test "$ac_res" != no; then :
18200  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18201
18202fi
18203
18204fi
18205
18206
18207for ac_header in stdlib.h
18208do :
18209  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18210if test "x$ac_cv_header_stdlib_h" = xyes; then :
18211  cat >>confdefs.h <<_ACEOF
18212#define HAVE_STDLIB_H 1
18213_ACEOF
18214
18215fi
18216
18217done
18218
18219for ac_func in getpassphrase
18220do :
18221  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
18222if test "x$ac_cv_func_getpassphrase" = xyes; then :
18223  cat >>confdefs.h <<_ACEOF
18224#define HAVE_GETPASSPHRASE 1
18225_ACEOF
18226
18227fi
18228done
18229
18230
18231
18232# backwards compat with older pkg-config
18233
18234
18235
18236        save_LIBS="$LIBS"
18237        LIB_SOCKET=""
18238        ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18239if test "x$ac_cv_func_connect" = xyes; then :
18240  :
18241else
18242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18243$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18244if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18245  $as_echo_n "(cached) " >&6
18246else
18247  ac_check_lib_save_LIBS=$LIBS
18248LIBS="-lnsl  $LIBS"
18249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250/* end confdefs.h.  */
18251
18252/* Override any GCC internal prototype to avoid an error.
18253   Use char because int might match the return type of a GCC
18254   builtin and then its argument prototype would still apply.  */
18255#ifdef __cplusplus
18256extern "C"
18257#endif
18258char gethostbyname ();
18259int
18260main ()
18261{
18262return gethostbyname ();
18263  ;
18264  return 0;
18265}
18266_ACEOF
18267if ac_fn_c_try_link "$LINENO"; then :
18268  ac_cv_lib_nsl_gethostbyname=yes
18269else
18270  ac_cv_lib_nsl_gethostbyname=no
18271fi
18272rm -f core conftest.err conftest.$ac_objext \
18273    conftest$ac_exeext conftest.$ac_ext
18274LIBS=$ac_check_lib_save_LIBS
18275fi
18276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18277$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18278if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18279  LIB_SOCKET="-lnsl $LIB_SOCKET"
18280fi
18281
18282                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18283$as_echo_n "checking for connect in -lsocket... " >&6; }
18284if ${ac_cv_lib_socket_connect+:} false; then :
18285  $as_echo_n "(cached) " >&6
18286else
18287  ac_check_lib_save_LIBS=$LIBS
18288LIBS="-lsocket  $LIBS"
18289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290/* end confdefs.h.  */
18291
18292/* Override any GCC internal prototype to avoid an error.
18293   Use char because int might match the return type of a GCC
18294   builtin and then its argument prototype would still apply.  */
18295#ifdef __cplusplus
18296extern "C"
18297#endif
18298char connect ();
18299int
18300main ()
18301{
18302return connect ();
18303  ;
18304  return 0;
18305}
18306_ACEOF
18307if ac_fn_c_try_link "$LINENO"; then :
18308  ac_cv_lib_socket_connect=yes
18309else
18310  ac_cv_lib_socket_connect=no
18311fi
18312rm -f core conftest.err conftest.$ac_objext \
18313    conftest$ac_exeext conftest.$ac_ext
18314LIBS=$ac_check_lib_save_LIBS
18315fi
18316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18317$as_echo "$ac_cv_lib_socket_connect" >&6; }
18318if test "x$ac_cv_lib_socket_connect" = xyes; then :
18319  LIB_SOCKET="-lsocket $LIB_SOCKET"
18320fi
18321
18322
18323fi
18324
18325        LIBS="$LIB_SOCKET $save_LIBS"
18326        ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
18327if test "x$ac_cv_func_res_search" = xyes; then :
18328  :
18329else
18330  LIBS="-lresolv $LIB_SOCKET $save_LIBS"
18331                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332/* end confdefs.h.  */
18333[
18334#include <sys/types.h>
18335#include <netinet/in.h>
18336#include <arpa/nameser.h>
18337#ifdef HAVE_ARPA_NAMESER_COMPAT_H
18338#include <arpa/nameser_compat.h>
18339#endif
18340#include <resolv.h>]
18341int
18342main ()
18343{
18344[
18345const char host[12]="openafs.org";
18346u_char ans[1024];
18347res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
18348return 0;
18349]
18350  ;
18351  return 0;
18352}
18353_ACEOF
18354if ac_fn_c_try_link "$LINENO"; then :
18355  LIB_SOCKET="-lresolv $LIB_SOCKET"
18356fi
18357rm -f core conftest.err conftest.$ac_objext \
18358    conftest$ac_exeext conftest.$ac_ext
18359
18360fi
18361
18362        LIBS="$LIB_SOCKET $save_LIBS"
18363        for ac_func in dn_expand dns_lookup
18364do :
18365  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18366ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18367if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18368  cat >>confdefs.h <<_ACEOF
18369#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18370_ACEOF
18371
18372fi
18373done
18374
18375        LIBS="$save_LIBS"
18376
18377
18378LIBS="$LIBS ${LIB_SOCKET}"
18379
18380cyrus_cv_getaddrinfo=yes
18381
18382ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18383if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18384    ac_cv_lib_socket_getaddrinfo=no
18385  ac_cv_lib_inet6_getaddrinfo=no
18386
18387else
18388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
18389$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
18390if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
18391  $as_echo_n "(cached) " >&6
18392else
18393  ac_check_lib_save_LIBS=$LIBS
18394LIBS="-lsocket  $LIBS"
18395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396/* end confdefs.h.  */
18397
18398/* Override any GCC internal prototype to avoid an error.
18399   Use char because int might match the return type of a GCC
18400   builtin and then its argument prototype would still apply.  */
18401#ifdef __cplusplus
18402extern "C"
18403#endif
18404char getaddrinfo ();
18405int
18406main ()
18407{
18408return getaddrinfo ();
18409  ;
18410  return 0;
18411}
18412_ACEOF
18413if ac_fn_c_try_link "$LINENO"; then :
18414  ac_cv_lib_socket_getaddrinfo=yes
18415else
18416  ac_cv_lib_socket_getaddrinfo=no
18417fi
18418rm -f core conftest.err conftest.$ac_objext \
18419    conftest$ac_exeext conftest.$ac_ext
18420LIBS=$ac_check_lib_save_LIBS
18421fi
18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
18423$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
18424if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
18425      LIBS="$LIBS -lsocket"
18426    ac_cv_lib_inet6_getaddrinfo=no
18427
18428else
18429      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
18430$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
18431    if ${ipv6_cv_dir+:} false; then :
18432  $as_echo_n "(cached) " >&6
18433else
18434        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
18435        if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
18436          break
18437        fi
18438      done
18439fi
18440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
18441$as_echo "$ipv6_cv_dir" >&6; }
18442    if test $ipv6_cv_dir = no; then
18443      ac_cv_lib_inet6_getaddrinfo=no
18444    else
18445      if test x$ipv6_libinet6 = x; then
18446        ipv6_libinet6=no
18447        SAVELDFLAGS="$LDFLAGS"
18448        LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
18449      fi
18450      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
18451$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
18452if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
18453  $as_echo_n "(cached) " >&6
18454else
18455  ac_check_lib_save_LIBS=$LIBS
18456LIBS="-linet6  $LIBS"
18457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h.  */
18459
18460/* Override any GCC internal prototype to avoid an error.
18461   Use char because int might match the return type of a GCC
18462   builtin and then its argument prototype would still apply.  */
18463#ifdef __cplusplus
18464extern "C"
18465#endif
18466char getaddrinfo ();
18467int
18468main ()
18469{
18470return getaddrinfo ();
18471  ;
18472  return 0;
18473}
18474_ACEOF
18475if ac_fn_c_try_link "$LINENO"; then :
18476  ac_cv_lib_inet6_getaddrinfo=yes
18477else
18478  ac_cv_lib_inet6_getaddrinfo=no
18479fi
18480rm -f core conftest.err conftest.$ac_objext \
18481    conftest$ac_exeext conftest.$ac_ext
18482LIBS=$ac_check_lib_save_LIBS
18483fi
18484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
18485$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
18486if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
18487          if test $ipv6_libinet6 = no; then
18488          ipv6_libinet6=yes
18489          LIBS="$LIBS -linet6"
18490        fi
18491fi
18492      if test $ipv6_libinet6 = no; then
18493        LDFLAGS="$SAVELDFLAGS"
18494      fi
18495    fi
18496fi
18497
18498fi
18499ipv6_cv_getaddrinfo=no
18500if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
18501     -o $ac_cv_lib_inet6_getaddrinfo = yes
18502then
18503  ipv6_cv_getaddrinfo=yes
18504fi
18505if test $ipv6_cv_getaddrinfo = no; then
18506  if test getaddrinfo = getaddrinfo; then
18507    for ipv6_cv_pfx in o n; do
18508      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509/* end confdefs.h.  */
18510#include <netdb.h>
18511
18512_ACEOF
18513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18514  $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
18515  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
18516ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
18517if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18518
18519fi
18520
18521fi
18522rm -f conftest*
18523
18524      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
18525
18526$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18527
18528        ipv6_cv_getaddrinfo=yes
18529        break
18530      fi
18531    done
18532  fi
18533fi
18534if test $ipv6_cv_getaddrinfo = yes; then
18535
18536ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
18537if test "x$ac_cv_func_gai_strerror" = xyes; then :
18538    ac_cv_lib_socket_gai_strerror=no
18539  ac_cv_lib_inet6_gai_strerror=no
18540
18541else
18542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5
18543$as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
18544if ${ac_cv_lib_socket_gai_strerror+:} false; then :
18545  $as_echo_n "(cached) " >&6
18546else
18547  ac_check_lib_save_LIBS=$LIBS
18548LIBS="-lsocket  $LIBS"
18549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550/* end confdefs.h.  */
18551
18552/* Override any GCC internal prototype to avoid an error.
18553   Use char because int might match the return type of a GCC
18554   builtin and then its argument prototype would still apply.  */
18555#ifdef __cplusplus
18556extern "C"
18557#endif
18558char gai_strerror ();
18559int
18560main ()
18561{
18562return gai_strerror ();
18563  ;
18564  return 0;
18565}
18566_ACEOF
18567if ac_fn_c_try_link "$LINENO"; then :
18568  ac_cv_lib_socket_gai_strerror=yes
18569else
18570  ac_cv_lib_socket_gai_strerror=no
18571fi
18572rm -f core conftest.err conftest.$ac_objext \
18573    conftest$ac_exeext conftest.$ac_ext
18574LIBS=$ac_check_lib_save_LIBS
18575fi
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5
18577$as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
18578if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then :
18579      LIBS="$LIBS -lsocket"
18580    ac_cv_lib_inet6_gai_strerror=no
18581
18582else
18583      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
18584$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
18585    if ${ipv6_cv_dir+:} false; then :
18586  $as_echo_n "(cached) " >&6
18587else
18588        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
18589        if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
18590          break
18591        fi
18592      done
18593fi
18594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
18595$as_echo "$ipv6_cv_dir" >&6; }
18596    if test $ipv6_cv_dir = no; then
18597      ac_cv_lib_inet6_gai_strerror=no
18598    else
18599      if test x$ipv6_libinet6 = x; then
18600        ipv6_libinet6=no
18601        SAVELDFLAGS="$LDFLAGS"
18602        LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
18603      fi
18604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5
18605$as_echo_n "checking for gai_strerror in -linet6... " >&6; }
18606if ${ac_cv_lib_inet6_gai_strerror+:} false; then :
18607  $as_echo_n "(cached) " >&6
18608else
18609  ac_check_lib_save_LIBS=$LIBS
18610LIBS="-linet6  $LIBS"
18611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612/* end confdefs.h.  */
18613
18614/* Override any GCC internal prototype to avoid an error.
18615   Use char because int might match the return type of a GCC
18616   builtin and then its argument prototype would still apply.  */
18617#ifdef __cplusplus
18618extern "C"
18619#endif
18620char gai_strerror ();
18621int
18622main ()
18623{
18624return gai_strerror ();
18625  ;
18626  return 0;
18627}
18628_ACEOF
18629if ac_fn_c_try_link "$LINENO"; then :
18630  ac_cv_lib_inet6_gai_strerror=yes
18631else
18632  ac_cv_lib_inet6_gai_strerror=no
18633fi
18634rm -f core conftest.err conftest.$ac_objext \
18635    conftest$ac_exeext conftest.$ac_ext
18636LIBS=$ac_check_lib_save_LIBS
18637fi
18638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5
18639$as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
18640if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then :
18641          if test $ipv6_libinet6 = no; then
18642          ipv6_libinet6=yes
18643          LIBS="$LIBS -linet6"
18644        fi
18645fi
18646      if test $ipv6_libinet6 = no; then
18647        LDFLAGS="$SAVELDFLAGS"
18648      fi
18649    fi
18650fi
18651
18652fi
18653ipv6_cv_gai_strerror=no
18654if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
18655     -o $ac_cv_lib_inet6_gai_strerror = yes
18656then
18657  ipv6_cv_gai_strerror=yes
18658fi
18659if test $ipv6_cv_gai_strerror = no; then
18660  if test gai_strerror = getaddrinfo; then
18661    for ipv6_cv_pfx in o n; do
18662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663/* end confdefs.h.  */
18664#include <netdb.h>
18665
18666_ACEOF
18667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18668  $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then :
18669  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
18670ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var"
18671if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18672
18673fi
18674
18675fi
18676rm -f conftest*
18677
18678      if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
18679
18680$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18681
18682        ipv6_cv_gai_strerror=yes
18683        break
18684      fi
18685    done
18686  fi
18687fi
18688if test $ipv6_cv_gai_strerror = yes; then
18689
18690$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18691
18692else
18693  cyrus_cv_getaddrinfo=no
18694fi
18695else
18696  cyrus_cv_getaddrinfo=no
18697fi
18698
18699cyrus_cv_getnameinfo=yes
18700
18701ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18702if test "x$ac_cv_func_getnameinfo" = xyes; then :
18703    ac_cv_lib_socket_getnameinfo=no
18704  ac_cv_lib_inet6_getnameinfo=no
18705
18706else
18707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
18708$as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
18709if ${ac_cv_lib_socket_getnameinfo+:} false; then :
18710  $as_echo_n "(cached) " >&6
18711else
18712  ac_check_lib_save_LIBS=$LIBS
18713LIBS="-lsocket  $LIBS"
18714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716
18717/* Override any GCC internal prototype to avoid an error.
18718   Use char because int might match the return type of a GCC
18719   builtin and then its argument prototype would still apply.  */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char getnameinfo ();
18724int
18725main ()
18726{
18727return getnameinfo ();
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732if ac_fn_c_try_link "$LINENO"; then :
18733  ac_cv_lib_socket_getnameinfo=yes
18734else
18735  ac_cv_lib_socket_getnameinfo=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext \
18738    conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
18742$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
18743if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
18744      LIBS="$LIBS -lsocket"
18745    ac_cv_lib_inet6_getnameinfo=no
18746
18747else
18748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
18749$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
18750    if ${ipv6_cv_dir+:} false; then :
18751  $as_echo_n "(cached) " >&6
18752else
18753        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
18754        if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
18755          break
18756        fi
18757      done
18758fi
18759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
18760$as_echo "$ipv6_cv_dir" >&6; }
18761    if test $ipv6_cv_dir = no; then
18762      ac_cv_lib_inet6_getnameinfo=no
18763    else
18764      if test x$ipv6_libinet6 = x; then
18765        ipv6_libinet6=no
18766        SAVELDFLAGS="$LDFLAGS"
18767        LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
18768      fi
18769      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
18770$as_echo_n "checking for getnameinfo in -linet6... " >&6; }
18771if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
18772  $as_echo_n "(cached) " >&6
18773else
18774  ac_check_lib_save_LIBS=$LIBS
18775LIBS="-linet6  $LIBS"
18776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777/* end confdefs.h.  */
18778
18779/* Override any GCC internal prototype to avoid an error.
18780   Use char because int might match the return type of a GCC
18781   builtin and then its argument prototype would still apply.  */
18782#ifdef __cplusplus
18783extern "C"
18784#endif
18785char getnameinfo ();
18786int
18787main ()
18788{
18789return getnameinfo ();
18790  ;
18791  return 0;
18792}
18793_ACEOF
18794if ac_fn_c_try_link "$LINENO"; then :
18795  ac_cv_lib_inet6_getnameinfo=yes
18796else
18797  ac_cv_lib_inet6_getnameinfo=no
18798fi
18799rm -f core conftest.err conftest.$ac_objext \
18800    conftest$ac_exeext conftest.$ac_ext
18801LIBS=$ac_check_lib_save_LIBS
18802fi
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
18804$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
18805if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
18806          if test $ipv6_libinet6 = no; then
18807          ipv6_libinet6=yes
18808          LIBS="$LIBS -linet6"
18809        fi
18810fi
18811      if test $ipv6_libinet6 = no; then
18812        LDFLAGS="$SAVELDFLAGS"
18813      fi
18814    fi
18815fi
18816
18817fi
18818ipv6_cv_getnameinfo=no
18819if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
18820     -o $ac_cv_lib_inet6_getnameinfo = yes
18821then
18822  ipv6_cv_getnameinfo=yes
18823fi
18824if test $ipv6_cv_getnameinfo = no; then
18825  if test getnameinfo = getaddrinfo; then
18826    for ipv6_cv_pfx in o n; do
18827      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828/* end confdefs.h.  */
18829#include <netdb.h>
18830
18831_ACEOF
18832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18833  $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
18834  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
18835ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
18836if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18837
18838fi
18839
18840fi
18841rm -f conftest*
18842
18843      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
18844
18845$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18846
18847        ipv6_cv_getnameinfo=yes
18848        break
18849      fi
18850    done
18851  fi
18852fi
18853if test $ipv6_cv_getnameinfo = yes; then
18854
18855$as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
18856
18857else
18858  cyrus_cv_getnameinfo=no
18859fi
18860
18861 if test $cyrus_cv_getaddrinfo = no; then
18862  IPV6_noGETADDRINFO_TRUE=
18863  IPV6_noGETADDRINFO_FALSE='#'
18864else
18865  IPV6_noGETADDRINFO_TRUE='#'
18866  IPV6_noGETADDRINFO_FALSE=
18867fi
18868
18869 if test $cyrus_cv_getnameinfo = no; then
18870  IPV6_noGETNAMEINFO_TRUE=
18871  IPV6_noGETNAMEINFO_FALSE='#'
18872else
18873  IPV6_noGETNAMEINFO_TRUE='#'
18874  IPV6_noGETNAMEINFO_FALSE=
18875fi
18876
18877
18878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
18879$as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
18880if ${ipv6_cv_ss_family+:} false; then :
18881  $as_echo_n "(cached) " >&6
18882else
18883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884/* end confdefs.h.  */
18885#include <sys/types.h>
18886#include <sys/socket.h>
18887int
18888main ()
18889{
18890struct sockaddr_storage ss; int i = ss.ss_family;
18891  ;
18892  return 0;
18893}
18894_ACEOF
18895if ac_fn_c_try_compile "$LINENO"; then :
18896  ipv6_cv_ss_family=yes
18897else
18898  ipv6_cv_ss_family=no
18899fi
18900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18901fi
18902if test $ipv6_cv_ss_family = yes; then
18903
18904$as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
18905
18906else
18907  :
18908fi
18909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
18910$as_echo "$ipv6_cv_ss_family" >&6; }
18911
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
18913$as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
18914if ${ipv6_cv_sa_len+:} false; then :
18915  $as_echo_n "(cached) " >&6
18916else
18917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918/* end confdefs.h.  */
18919#include <sys/types.h>
18920#include <sys/socket.h>
18921int
18922main ()
18923{
18924struct sockaddr sa; int i = sa.sa_len;
18925  ;
18926  return 0;
18927}
18928_ACEOF
18929if ac_fn_c_try_compile "$LINENO"; then :
18930  ipv6_cv_sa_len=yes
18931else
18932  ipv6_cv_sa_len=no
18933fi
18934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935fi
18936if test $ipv6_cv_sa_len = yes; then
18937
18938$as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
18939
18940else
18941  :
18942fi
18943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
18944$as_echo "$ipv6_cv_sa_len" >&6; }
18945
18946for ac_header in sys/time.h
18947do :
18948  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18949if test "x$ac_cv_header_sys_time_h" = xyes; then :
18950  cat >>confdefs.h <<_ACEOF
18951#define HAVE_SYS_TIME_H 1
18952_ACEOF
18953
18954fi
18955
18956done
18957
18958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18959$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18960if ${ac_cv_header_time+:} false; then :
18961  $as_echo_n "(cached) " >&6
18962else
18963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18964/* end confdefs.h.  */
18965#include <sys/types.h>
18966#include <sys/time.h>
18967#include <time.h>
18968
18969int
18970main ()
18971{
18972if ((struct tm *) 0)
18973return 0;
18974  ;
18975  return 0;
18976}
18977_ACEOF
18978if ac_fn_c_try_compile "$LINENO"; then :
18979  ac_cv_header_time=yes
18980else
18981  ac_cv_header_time=no
18982fi
18983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984fi
18985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18986$as_echo "$ac_cv_header_time" >&6; }
18987if test $ac_cv_header_time = yes; then
18988
18989$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18990
18991fi
18992
18993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18994$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18995if ${ac_cv_struct_tm+:} false; then :
18996  $as_echo_n "(cached) " >&6
18997else
18998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999/* end confdefs.h.  */
19000#include <sys/types.h>
19001#include <time.h>
19002
19003int
19004main ()
19005{
19006struct tm tm;
19007				     int *p = &tm.tm_sec;
19008				     return !p;
19009  ;
19010  return 0;
19011}
19012_ACEOF
19013if ac_fn_c_try_compile "$LINENO"; then :
19014  ac_cv_struct_tm=time.h
19015else
19016  ac_cv_struct_tm=sys/time.h
19017fi
19018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19019fi
19020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19021$as_echo "$ac_cv_struct_tm" >&6; }
19022if test $ac_cv_struct_tm = sys/time.h; then
19023
19024$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19025
19026fi
19027
19028ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19029#include <$ac_cv_struct_tm>
19030
19031"
19032if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
19033
19034cat >>confdefs.h <<_ACEOF
19035#define HAVE_STRUCT_TM_TM_ZONE 1
19036_ACEOF
19037
19038
19039fi
19040
19041if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19042
19043$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19044
19045else
19046  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19047"
19048if test "x$ac_cv_have_decl_tzname" = xyes; then :
19049  ac_have_decl=1
19050else
19051  ac_have_decl=0
19052fi
19053
19054cat >>confdefs.h <<_ACEOF
19055#define HAVE_DECL_TZNAME $ac_have_decl
19056_ACEOF
19057
19058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19059$as_echo_n "checking for tzname... " >&6; }
19060if ${ac_cv_var_tzname+:} false; then :
19061  $as_echo_n "(cached) " >&6
19062else
19063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064/* end confdefs.h.  */
19065#include <time.h>
19066#if !HAVE_DECL_TZNAME
19067extern char *tzname[];
19068#endif
19069
19070int
19071main ()
19072{
19073return tzname[0][0];
19074  ;
19075  return 0;
19076}
19077_ACEOF
19078if ac_fn_c_try_link "$LINENO"; then :
19079  ac_cv_var_tzname=yes
19080else
19081  ac_cv_var_tzname=no
19082fi
19083rm -f core conftest.err conftest.$ac_objext \
19084    conftest$ac_exeext conftest.$ac_ext
19085fi
19086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19087$as_echo "$ac_cv_var_tzname" >&6; }
19088  if test $ac_cv_var_tzname = yes; then
19089
19090$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19091
19092  fi
19093fi
19094
19095for ac_func in timegm
19096do :
19097  ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19098if test "x$ac_cv_func_timegm" = xyes; then :
19099  cat >>confdefs.h <<_ACEOF
19100#define HAVE_TIMEGM 1
19101_ACEOF
19102
19103fi
19104done
19105
19106
19107
19108
19109for ac_func in vprintf
19110do :
19111  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19112if test "x$ac_cv_func_vprintf" = xyes; then :
19113  cat >>confdefs.h <<_ACEOF
19114#define HAVE_VPRINTF 1
19115_ACEOF
19116
19117ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19118if test "x$ac_cv_func__doprnt" = xyes; then :
19119
19120$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19121
19122fi
19123
19124fi
19125done
19126
19127
19128
19129
19130                { $as_echo "$as_me:${as_lineno-$LINENO}: checking underlying integer type of \`time_t'" >&5
19131$as_echo_n "checking underlying integer type of \`time_t'... " >&6; }
19132if ${cyr_cv_type_time_t+:} false; then :
19133  $as_echo_n "(cached) " >&6
19134else
19135
19136            ac_ext=c
19137ac_cpp='$CPP $CPPFLAGS'
19138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140ac_compiler_gnu=$ac_cv_c_compiler_gnu
19141
19142            saved_CFLAGS=$CFLAGS
19143            CFLAGS=-Wno-error
19144            saved_CPPFLAGS=$CPPFLAGS
19145            CPPFLAGS=-Wno-error
19146            found=no
19147            for t in "int" "long int" "long long int" \
19148                    "unsigned int" "unsigned long int" "unsigned long long int"
19149            do
19150                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151/* end confdefs.h.  */
19152#include <time.h>
19153int
19154main ()
19155{
19156extern time_t foo; extern $t foo;
19157  ;
19158  return 0;
19159}
19160_ACEOF
19161if ac_fn_c_try_compile "$LINENO"; then :
19162  cyr_cv_type_time_t=$t; found=yes; break
19163
19164fi
19165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166            done
19167            if test "x$found" != "xyes"; then :
19168  eval cyr_cv_type_time_t=unknown
19169fi
19170            CFLAGS=$saved_CFLAGS
19171            CPPFLAGS=$saved_CPPFLAGS
19172            ac_ext=c
19173ac_cpp='$CPP $CPPFLAGS'
19174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19176ac_compiler_gnu=$ac_cv_c_compiler_gnu
19177
19178
19179
19180fi
19181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_type_time_t" >&5
19182$as_echo "$cyr_cv_type_time_t" >&6; }
19183    if test "x$cyr_cv_type_time_t" = "xunknown"; then :
19184  as_fn_error $? "Unable to determine underlying integer type of \`time_t'" "$LINENO" 5
19185fi
19186
19187            { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format string for \`time_t'" >&5
19188$as_echo_n "checking printf format string for \`time_t'... " >&6; }
19189if ${cyr_cv_format_time_t+:} false; then :
19190  $as_echo_n "(cached) " >&6
19191else
19192
19193            case $cyr_cv_type_time_t in #(
19194  "int") :
19195    eval cyr_cv_format_time_t=%d ;; #(
19196  "long int") :
19197    eval cyr_cv_format_time_t=%ld ;; #(
19198  "long long int") :
19199    eval cyr_cv_format_time_t=%lld ;; #(
19200  "unsigned int") :
19201    eval cyr_cv_format_time_t=%u ;; #(
19202  "unsigned long int") :
19203    eval cyr_cv_format_time_t=%lu ;; #(
19204  "unsigned long long int") :
19205    eval cyr_cv_format_time_t=%llu ;; #(
19206  *) :
19207    eval cyr_cv_format_time_t=unknown
19208             ;;
19209esac
19210
19211
19212fi
19213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_format_time_t" >&5
19214$as_echo "$cyr_cv_format_time_t" >&6; }
19215    if test "x$cyr_cv_format_time_t" = "xunknown"; then :
19216  as_fn_error $? "Unable to determine printf format string for \`time_t'" "$LINENO" 5
19217fi
19218
19219                { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol-like parse function for \`time_t'" >&5
19220$as_echo_n "checking strtol-like parse function for \`time_t'... " >&6; }
19221if ${cyr_cv_parse_time_t+:} false; then :
19222  $as_echo_n "(cached) " >&6
19223else
19224
19225            case $cyr_cv_type_time_t in #(
19226  "int") :
19227    eval cyr_cv_parse_time_t=strtol ;; #(
19228  "long int") :
19229    eval cyr_cv_parse_time_t=strtol ;; #(
19230  "long long int") :
19231    eval cyr_cv_parse_time_t=strtoll ;; #(
19232  "unsigned int") :
19233    eval cyr_cv_parse_time_t=strtoul ;; #(
19234  "unsigned long int") :
19235    eval cyr_cv_parse_time_t=strtoul ;; #(
19236  "unsigned long long int") :
19237    eval cyr_cv_parse_time_t=strtoull ;; #(
19238  *) :
19239    eval cyr_cv_parse_time_t=unknown
19240             ;;
19241esac
19242
19243
19244fi
19245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_parse_time_t" >&5
19246$as_echo "$cyr_cv_parse_time_t" >&6; }
19247    if test "x$cyr_cv_parse_time_t" = "xunknown"; then :
19248  as_fn_error $? "Unable to determine strtol-like parse function for \`time_t'" "$LINENO" 5
19249fi
19250
19251
19252cat >>confdefs.h <<_ACEOF
19253#define TIME_T_FMT "$cyr_cv_format_time_t"
19254_ACEOF
19255
19256
19257cat >>confdefs.h <<_ACEOF
19258#define strtotimet(a,b,c) $cyr_cv_parse_time_t(a,b,c)
19259_ACEOF
19260
19261
19262
19263                { $as_echo "$as_me:${as_lineno-$LINENO}: checking underlying integer type of \`size_t'" >&5
19264$as_echo_n "checking underlying integer type of \`size_t'... " >&6; }
19265if ${cyr_cv_type_size_t+:} false; then :
19266  $as_echo_n "(cached) " >&6
19267else
19268
19269            ac_ext=c
19270ac_cpp='$CPP $CPPFLAGS'
19271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273ac_compiler_gnu=$ac_cv_c_compiler_gnu
19274
19275            saved_CFLAGS=$CFLAGS
19276            CFLAGS=-Wno-error
19277            saved_CPPFLAGS=$CPPFLAGS
19278            CPPFLAGS=-Wno-error
19279            found=no
19280            for t in "int" "long int" "long long int" \
19281                    "unsigned int" "unsigned long int" "unsigned long long int"
19282            do
19283                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284/* end confdefs.h.  */
19285#include <stdlib.h>
19286int
19287main ()
19288{
19289extern size_t foo; extern $t foo;
19290  ;
19291  return 0;
19292}
19293_ACEOF
19294if ac_fn_c_try_compile "$LINENO"; then :
19295  cyr_cv_type_size_t=$t; found=yes; break
19296
19297fi
19298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299            done
19300            if test "x$found" != "xyes"; then :
19301  eval cyr_cv_type_size_t=unknown
19302fi
19303            CFLAGS=$saved_CFLAGS
19304            CPPFLAGS=$saved_CPPFLAGS
19305            ac_ext=c
19306ac_cpp='$CPP $CPPFLAGS'
19307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310
19311
19312
19313fi
19314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_type_size_t" >&5
19315$as_echo "$cyr_cv_type_size_t" >&6; }
19316    if test "x$cyr_cv_type_size_t" = "xunknown"; then :
19317  as_fn_error $? "Unable to determine underlying integer type of \`size_t'" "$LINENO" 5
19318fi
19319
19320            { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format string for \`size_t'" >&5
19321$as_echo_n "checking printf format string for \`size_t'... " >&6; }
19322if ${cyr_cv_format_size_t+:} false; then :
19323  $as_echo_n "(cached) " >&6
19324else
19325
19326            case $cyr_cv_type_size_t in #(
19327  "int") :
19328    eval cyr_cv_format_size_t=%d ;; #(
19329  "long int") :
19330    eval cyr_cv_format_size_t=%ld ;; #(
19331  "long long int") :
19332    eval cyr_cv_format_size_t=%lld ;; #(
19333  "unsigned int") :
19334    eval cyr_cv_format_size_t=%u ;; #(
19335  "unsigned long int") :
19336    eval cyr_cv_format_size_t=%lu ;; #(
19337  "unsigned long long int") :
19338    eval cyr_cv_format_size_t=%llu ;; #(
19339  *) :
19340    eval cyr_cv_format_size_t=unknown
19341             ;;
19342esac
19343
19344
19345fi
19346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_format_size_t" >&5
19347$as_echo "$cyr_cv_format_size_t" >&6; }
19348    if test "x$cyr_cv_format_size_t" = "xunknown"; then :
19349  as_fn_error $? "Unable to determine printf format string for \`size_t'" "$LINENO" 5
19350fi
19351
19352                { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol-like parse function for \`size_t'" >&5
19353$as_echo_n "checking strtol-like parse function for \`size_t'... " >&6; }
19354if ${cyr_cv_parse_size_t+:} false; then :
19355  $as_echo_n "(cached) " >&6
19356else
19357
19358            case $cyr_cv_type_size_t in #(
19359  "int") :
19360    eval cyr_cv_parse_size_t=strtol ;; #(
19361  "long int") :
19362    eval cyr_cv_parse_size_t=strtol ;; #(
19363  "long long int") :
19364    eval cyr_cv_parse_size_t=strtoll ;; #(
19365  "unsigned int") :
19366    eval cyr_cv_parse_size_t=strtoul ;; #(
19367  "unsigned long int") :
19368    eval cyr_cv_parse_size_t=strtoul ;; #(
19369  "unsigned long long int") :
19370    eval cyr_cv_parse_size_t=strtoull ;; #(
19371  *) :
19372    eval cyr_cv_parse_size_t=unknown
19373             ;;
19374esac
19375
19376
19377fi
19378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_parse_size_t" >&5
19379$as_echo "$cyr_cv_parse_size_t" >&6; }
19380    if test "x$cyr_cv_parse_size_t" = "xunknown"; then :
19381  as_fn_error $? "Unable to determine strtol-like parse function for \`size_t'" "$LINENO" 5
19382fi
19383
19384
19385cat >>confdefs.h <<_ACEOF
19386#define SIZE_T_FMT "$cyr_cv_format_size_t"
19387_ACEOF
19388
19389
19390cat >>confdefs.h <<_ACEOF
19391#define strtosizet(a,b,c) $cyr_cv_parse_size_t(a,b,c)
19392_ACEOF
19393
19394
19395
19396                { $as_echo "$as_me:${as_lineno-$LINENO}: checking underlying integer type of \`off_t'" >&5
19397$as_echo_n "checking underlying integer type of \`off_t'... " >&6; }
19398if ${cyr_cv_type_off_t+:} false; then :
19399  $as_echo_n "(cached) " >&6
19400else
19401
19402            ac_ext=c
19403ac_cpp='$CPP $CPPFLAGS'
19404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407
19408            saved_CFLAGS=$CFLAGS
19409            CFLAGS=-Wno-error
19410            saved_CPPFLAGS=$CPPFLAGS
19411            CPPFLAGS=-Wno-error
19412            found=no
19413            for t in "int" "long int" "long long int" \
19414                    "unsigned int" "unsigned long int" "unsigned long long int"
19415            do
19416                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417/* end confdefs.h.  */
19418#include <sys/types.h>
19419int
19420main ()
19421{
19422extern off_t foo; extern $t foo;
19423  ;
19424  return 0;
19425}
19426_ACEOF
19427if ac_fn_c_try_compile "$LINENO"; then :
19428  cyr_cv_type_off_t=$t; found=yes; break
19429
19430fi
19431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19432            done
19433            if test "x$found" != "xyes"; then :
19434  eval cyr_cv_type_off_t=unknown
19435fi
19436            CFLAGS=$saved_CFLAGS
19437            CPPFLAGS=$saved_CPPFLAGS
19438            ac_ext=c
19439ac_cpp='$CPP $CPPFLAGS'
19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444
19445
19446fi
19447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_type_off_t" >&5
19448$as_echo "$cyr_cv_type_off_t" >&6; }
19449    if test "x$cyr_cv_type_off_t" = "xunknown"; then :
19450  as_fn_error $? "Unable to determine underlying integer type of \`off_t'" "$LINENO" 5
19451fi
19452
19453            { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format string for \`off_t'" >&5
19454$as_echo_n "checking printf format string for \`off_t'... " >&6; }
19455if ${cyr_cv_format_off_t+:} false; then :
19456  $as_echo_n "(cached) " >&6
19457else
19458
19459            case $cyr_cv_type_off_t in #(
19460  "int") :
19461    eval cyr_cv_format_off_t=%d ;; #(
19462  "long int") :
19463    eval cyr_cv_format_off_t=%ld ;; #(
19464  "long long int") :
19465    eval cyr_cv_format_off_t=%lld ;; #(
19466  "unsigned int") :
19467    eval cyr_cv_format_off_t=%u ;; #(
19468  "unsigned long int") :
19469    eval cyr_cv_format_off_t=%lu ;; #(
19470  "unsigned long long int") :
19471    eval cyr_cv_format_off_t=%llu ;; #(
19472  *) :
19473    eval cyr_cv_format_off_t=unknown
19474             ;;
19475esac
19476
19477
19478fi
19479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_format_off_t" >&5
19480$as_echo "$cyr_cv_format_off_t" >&6; }
19481    if test "x$cyr_cv_format_off_t" = "xunknown"; then :
19482  as_fn_error $? "Unable to determine printf format string for \`off_t'" "$LINENO" 5
19483fi
19484
19485                { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol-like parse function for \`off_t'" >&5
19486$as_echo_n "checking strtol-like parse function for \`off_t'... " >&6; }
19487if ${cyr_cv_parse_off_t+:} false; then :
19488  $as_echo_n "(cached) " >&6
19489else
19490
19491            case $cyr_cv_type_off_t in #(
19492  "int") :
19493    eval cyr_cv_parse_off_t=strtol ;; #(
19494  "long int") :
19495    eval cyr_cv_parse_off_t=strtol ;; #(
19496  "long long int") :
19497    eval cyr_cv_parse_off_t=strtoll ;; #(
19498  "unsigned int") :
19499    eval cyr_cv_parse_off_t=strtoul ;; #(
19500  "unsigned long int") :
19501    eval cyr_cv_parse_off_t=strtoul ;; #(
19502  "unsigned long long int") :
19503    eval cyr_cv_parse_off_t=strtoull ;; #(
19504  *) :
19505    eval cyr_cv_parse_off_t=unknown
19506             ;;
19507esac
19508
19509
19510fi
19511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_parse_off_t" >&5
19512$as_echo "$cyr_cv_parse_off_t" >&6; }
19513    if test "x$cyr_cv_parse_off_t" = "xunknown"; then :
19514  as_fn_error $? "Unable to determine strtol-like parse function for \`off_t'" "$LINENO" 5
19515fi
19516
19517
19518cat >>confdefs.h <<_ACEOF
19519#define OFF_T_FMT "$cyr_cv_format_off_t"
19520_ACEOF
19521
19522
19523cat >>confdefs.h <<_ACEOF
19524#define strtoofft(a,b,c) $cyr_cv_parse_off_t(a,b,c)
19525_ACEOF
19526
19527
19528
19529                { $as_echo "$as_me:${as_lineno-$LINENO}: checking underlying integer type of \`rlim_t'" >&5
19530$as_echo_n "checking underlying integer type of \`rlim_t'... " >&6; }
19531if ${cyr_cv_type_rlim_t+:} false; then :
19532  $as_echo_n "(cached) " >&6
19533else
19534
19535            ac_ext=c
19536ac_cpp='$CPP $CPPFLAGS'
19537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540
19541            saved_CFLAGS=$CFLAGS
19542            CFLAGS=-Wno-error
19543            saved_CPPFLAGS=$CPPFLAGS
19544            CPPFLAGS=-Wno-error
19545            found=no
19546            for t in "int" "long int" "long long int" \
19547                    "unsigned int" "unsigned long int" "unsigned long long int"
19548            do
19549                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550/* end confdefs.h.  */
19551#include <sys/resource.h>
19552int
19553main ()
19554{
19555extern rlim_t foo; extern $t foo;
19556  ;
19557  return 0;
19558}
19559_ACEOF
19560if ac_fn_c_try_compile "$LINENO"; then :
19561  cyr_cv_type_rlim_t=$t; found=yes; break
19562
19563fi
19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565            done
19566            if test "x$found" != "xyes"; then :
19567  eval cyr_cv_type_rlim_t=unknown
19568fi
19569            CFLAGS=$saved_CFLAGS
19570            CPPFLAGS=$saved_CPPFLAGS
19571            ac_ext=c
19572ac_cpp='$CPP $CPPFLAGS'
19573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577
19578
19579fi
19580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_type_rlim_t" >&5
19581$as_echo "$cyr_cv_type_rlim_t" >&6; }
19582    if test "x$cyr_cv_type_rlim_t" = "xunknown"; then :
19583  as_fn_error $? "Unable to determine underlying integer type of \`rlim_t'" "$LINENO" 5
19584fi
19585
19586            { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format string for \`rlim_t'" >&5
19587$as_echo_n "checking printf format string for \`rlim_t'... " >&6; }
19588if ${cyr_cv_format_rlim_t+:} false; then :
19589  $as_echo_n "(cached) " >&6
19590else
19591
19592            case $cyr_cv_type_rlim_t in #(
19593  "int") :
19594    eval cyr_cv_format_rlim_t=%d ;; #(
19595  "long int") :
19596    eval cyr_cv_format_rlim_t=%ld ;; #(
19597  "long long int") :
19598    eval cyr_cv_format_rlim_t=%lld ;; #(
19599  "unsigned int") :
19600    eval cyr_cv_format_rlim_t=%u ;; #(
19601  "unsigned long int") :
19602    eval cyr_cv_format_rlim_t=%lu ;; #(
19603  "unsigned long long int") :
19604    eval cyr_cv_format_rlim_t=%llu ;; #(
19605  *) :
19606    eval cyr_cv_format_rlim_t=unknown
19607             ;;
19608esac
19609
19610
19611fi
19612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_format_rlim_t" >&5
19613$as_echo "$cyr_cv_format_rlim_t" >&6; }
19614    if test "x$cyr_cv_format_rlim_t" = "xunknown"; then :
19615  as_fn_error $? "Unable to determine printf format string for \`rlim_t'" "$LINENO" 5
19616fi
19617
19618                { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol-like parse function for \`rlim_t'" >&5
19619$as_echo_n "checking strtol-like parse function for \`rlim_t'... " >&6; }
19620if ${cyr_cv_parse_rlim_t+:} false; then :
19621  $as_echo_n "(cached) " >&6
19622else
19623
19624            case $cyr_cv_type_rlim_t in #(
19625  "int") :
19626    eval cyr_cv_parse_rlim_t=strtol ;; #(
19627  "long int") :
19628    eval cyr_cv_parse_rlim_t=strtol ;; #(
19629  "long long int") :
19630    eval cyr_cv_parse_rlim_t=strtoll ;; #(
19631  "unsigned int") :
19632    eval cyr_cv_parse_rlim_t=strtoul ;; #(
19633  "unsigned long int") :
19634    eval cyr_cv_parse_rlim_t=strtoul ;; #(
19635  "unsigned long long int") :
19636    eval cyr_cv_parse_rlim_t=strtoull ;; #(
19637  *) :
19638    eval cyr_cv_parse_rlim_t=unknown
19639             ;;
19640esac
19641
19642
19643fi
19644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyr_cv_parse_rlim_t" >&5
19645$as_echo "$cyr_cv_parse_rlim_t" >&6; }
19646    if test "x$cyr_cv_parse_rlim_t" = "xunknown"; then :
19647  as_fn_error $? "Unable to determine strtol-like parse function for \`rlim_t'" "$LINENO" 5
19648fi
19649
19650
19651cat >>confdefs.h <<_ACEOF
19652#define RLIM_T_FMT "$cyr_cv_format_rlim_t"
19653_ACEOF
19654
19655
19656cat >>confdefs.h <<_ACEOF
19657#define strtorlimt(a,b,c) $cyr_cv_parse_rlim_t(a,b,c)
19658_ACEOF
19659
19660
19661
19662
19663HAVE_CYRUSDB_SQL=0
19664
19665
19666
19667
19668# Check whether --with-mysql-libdir was given.
19669if test "${with_mysql_libdir+set}" = set; then :
19670  withval=$with_mysql_libdir; with_mysql_lib=$withval
19671else
19672   test "${with_mysql_lib+set}" = set || with_mysql_lib=none
19673fi
19674
19675
19676# Check whether --with-mysql-incdir was given.
19677if test "${with_mysql_incdir+set}" = set; then :
19678  withval=$with_mysql_incdir; with_mysql_inc=$withval
19679else
19680   test "${with_mysql_inc+set}" = set || with_mysql_inc=none
19681fi
19682
19683
19684if test "$with_mysql_lib" != none ; then
19685    { $as_echo "$as_me:${as_lineno-$LINENO}: Legacy option --with-mysql-libdir=DIR detected.
19686                  You may wish to change to --with-mysql which works now." >&5
19687$as_echo "$as_me: Legacy option --with-mysql-libdir=DIR detected.
19688                  You may wish to change to --with-mysql which works now." >&6;}
19689    withval="$with_mysql_lib/.."
19690else
19691    withval="no"
19692fi
19693
19694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MySQL" >&5
19695$as_echo_n "checking whether to use MySQL... " >&6; }
19696
19697# Check whether --with-mysql was given.
19698if test "${with_mysql+set}" = set; then :
19699  withval=$with_mysql;
19700fi
19701
19702with_mysql=$withval
19703
19704case "$with_mysql" in
19705  no)
19706        # Explicitly disable MySQL
19707        ;;
19708  yes)
19709        # Find mysql_config in $PATH
19710        # Extract the first word of "mysql_config", so it can be a program name with args.
19711set dummy mysql_config; ac_word=$2
19712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19713$as_echo_n "checking for $ac_word... " >&6; }
19714if ${ac_cv_path_mysql_config+:} false; then :
19715  $as_echo_n "(cached) " >&6
19716else
19717  case $mysql_config in
19718  [\\/]* | ?:[\\/]*)
19719  ac_cv_path_mysql_config="$mysql_config" # Let the user override the test with a path.
19720  ;;
19721  *)
19722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19723for as_dir in $PATH
19724do
19725  IFS=$as_save_IFS
19726  test -z "$as_dir" && as_dir=.
19727    for ac_exec_ext in '' $ac_executable_extensions; do
19728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19729    ac_cv_path_mysql_config="$as_dir/$ac_word$ac_exec_ext"
19730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19731    break 2
19732  fi
19733done
19734  done
19735IFS=$as_save_IFS
19736
19737  ;;
19738esac
19739fi
19740mysql_config=$ac_cv_path_mysql_config
19741if test -n "$mysql_config"; then
19742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mysql_config" >&5
19743$as_echo "$mysql_config" >&6; }
19744else
19745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19746$as_echo "no" >&6; }
19747fi
19748
19749
19750        if test -z "$mysql_config"; then :
19751  as_fn_error $? "The mysql_config program was not found" "$LINENO" 5
19752fi
19753        ;;
19754  *)
19755        # Find mysql_config in the specified directory
19756        mysql_config="$with_mysql/bin/mysql_config"
19757        if test ! -x "$mysql_config" ; then
19758            as_fn_error $? "The mysql_config program was not found
19759                         in $with_mysql/bin, disabling MySQL support" "$LINENO" 5
19760            with_mysql="no"
19761        fi
19762        ;;
19763esac
19764
19765if test "$with_mysql" != "no"; then
19766    MYSQL_LIBADD=`$mysql_config --libs`
19767    MYSQL_INCADD=`$mysql_config --cflags`
19768    HAVE_CYRUSDB_SQL=1
19769    LIBS="${LIBS} ${MYSQL_LIBADD}"
19770    CPPFLAGS="${MYSQL_INCADD} ${CPPFLAGS}"
19771
19772$as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
19773
19774
19775fi
19776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql" >&5
19777$as_echo "$with_mysql" >&6; }
19778
19779
19780
19781
19782# Check whether --with-pgsql was given.
19783if test "${with_pgsql+set}" = set; then :
19784  withval=$with_pgsql; with_pgsql=$withval
19785else
19786  with_pgsql="no"
19787fi
19788
19789
19790case "$with_pgsql" in
19791  no)
19792        use_pgsql="no"
19793        ;;
19794  yes)
19795        use_pgsql="yes"
19796        with_pgsql_lib=none
19797        with_pgsql_inc=none
19798        ;;
19799  *)
19800        use_pgsql="yes"
19801        with_pgsql_lib="$with_pgsql/lib"
19802        with_pgsql_inc="$with_pgsql/include"
19803        ;;
19804esac
19805
19806if test "$use_pgsql" != "no"; then
19807
19808
19809# Check whether --with-pgsql-libdir was given.
19810if test "${with_pgsql_libdir+set}" = set; then :
19811  withval=$with_pgsql_libdir; with_pgsql_lib=$withval
19812else
19813   test "${with_pgsql_lib+set}" = set || with_pgsql_lib=none
19814fi
19815
19816
19817# Check whether --with-pgsql-incdir was given.
19818if test "${with_pgsql_incdir+set}" = set; then :
19819  withval=$with_pgsql_incdir; with_pgsql_inc=$withval
19820else
19821   test "${with_pgsql_inc+set}" = set || with_pgsql_inc=none
19822fi
19823
19824
19825
19826
19827
19828        cmu_save_CPPFLAGS=$CPPFLAGS
19829
19830        if test -d $with_pgsql_inc; then
19831            CPPFLAGS="$CPPFLAGS -I$with_pgsql_inc"
19832            PGSQL_INCADD="-I$with_pgsql_inc"
19833        else
19834            PGSQL_INCADD=""
19835        fi
19836
19837        ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
19838if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
19839
19840        PGSQL_SAVE_LDFLAGS=$LDFLAGS
19841
19842        if test -d $with_pgsql_lib; then
19843
19844  # this is CMU ADD LIBPATH TO
19845  if test "$andrew_cv_runpath_switch" = "none" ; then
19846        LDFLAGS="-L$with_pgsql_lib ${LDFLAGS}"
19847  else
19848        LDFLAGS="-L$with_pgsql_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_pgsql_lib"
19849  fi
19850
19851
19852  # this is CMU ADD LIBPATH TO
19853  if test "$andrew_cv_runpath_switch" = "none" ; then
19854        PGSQL_LIBADD="-L$with_pgsql_lib ${PGSQL_LIBADD}"
19855  else
19856        PGSQL_LIBADD="-L$with_pgsql_lib ${PGSQL_LIBADD} $andrew_cv_runpath_switch$with_pgsql_lib"
19857  fi
19858
19859        else
19860            PGSQL_LIBADD=""
19861        fi
19862
19863        saved_LIBS=$LIBS
19864        for libname in ${with_pgsql} pq
19865          do
19866            LIBS="$saved_LIBS -l$libname"
19867            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19868/* end confdefs.h.  */
19869#include <stdio.h>
19870#include <libpq-fe.h>
19871int
19872main ()
19873{
19874PQconnectdb(NULL);
19875  ;
19876  return 0;
19877}
19878_ACEOF
19879if ac_fn_c_try_link "$LINENO"; then :
19880  PGSQL_LIBADD="$PGSQL_LIBADD -l$libname"; pgsqllib="yes"
19881else
19882  pgsqllib="no"
19883fi
19884rm -f core conftest.err conftest.$ac_objext \
19885    conftest$ac_exeext conftest.$ac_ext
19886            if test "$pgsqllib" = "yes"; then break; fi
19887          done
19888        LIBS=$saved_LIBS
19889
19890        LDFLAGS=$PGSQL_SAVE_LDFLAGS
19891
19892else
19893  pgsqllib="no"
19894fi
19895
19896
19897
19898        CPPFLAGS=$cmu_save_CPPFLAGS
19899
19900
19901  if test "$pgsqllib" = "no"; then
19902    as_fn_error $? "PgSQL was not found.  You may need to supply the
19903    --with-pgsql-libdir or --with-pgsql-incdir configure options." "$LINENO" 5
19904  else
19905    HAVE_CYRUSDB_SQL=1
19906  fi
19907
19908  if test "$with_pgsql_lib" != "none"; then
19909
19910  # this is CMU ADD LIBPATH
19911  if test "$andrew_cv_runpath_switch" = "none" ; then
19912        LDFLAGS="-L$with_pgsql_lib ${LDFLAGS}"
19913  else
19914        LDFLAGS="-L$with_pgsql_lib $andrew_cv_runpath_switch$with_pgsql_lib ${LDFLAGS}"
19915  fi
19916
19917  fi
19918
19919  LIBS="${LIBS} ${PGSQL_LIBADD}"
19920  CPPFLAGS="${PGSQL_INCADD} ${CPPFLAGS}"
19921
19922
19923$as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
19924
19925
19926fi
19927
19928
19929
19930
19931# Check whether --with-sqlite was given.
19932if test "${with_sqlite+set}" = set; then :
19933  withval=$with_sqlite; with_sqlite=$withval
19934else
19935  with_sqlite=check
19936fi
19937
19938
19939case "$with_sqlite" in
19940  no)
19941        use_sqlite="no"
19942        ;;
19943  yes)
19944        use_sqlite="yes"
19945        with_sqlite_lib=none
19946        with_sqlite_inc=none
19947        ;;
19948  check)
19949        use_sqlite="check"
19950        with_sqlite_lib=none
19951        with_sqlite_inc=none
19952        ;;
19953  *)
19954        use_sqlite="yes"
19955        with_sqlite_lib="$with_sqlite/lib"
19956        with_sqlite_inc="$with_sqlite/include"
19957        ;;
19958esac
19959
19960if test "$use_sqlite" != "no"; then
19961
19962
19963# Check whether --with-sqlite-libdir was given.
19964if test "${with_sqlite_libdir+set}" = set; then :
19965  withval=$with_sqlite_libdir; with_sqlite_lib=$withval
19966else
19967   test "${with_sqlite_lib+set}" = set || with_sqlite_lib=none
19968fi
19969
19970
19971# Check whether --with-sqlite-incdir was given.
19972if test "${with_sqlite_incdir+set}" = set; then :
19973  withval=$with_sqlite_incdir; with_sqlite_inc=$withval
19974else
19975   test "${with_sqlite_inc+set}" = set || with_sqlite_inc=none
19976fi
19977
19978
19979
19980
19981
19982        cmu_save_CPPFLAGS=$CPPFLAGS
19983
19984        if test -d $with_sqlite_inc; then
19985            CPPFLAGS="$CPPFLAGS -I$with_sqlite_inc"
19986            SQLITE_INCADD="-I$with_sqlite_inc"
19987        else
19988            SQLITE_INCADD=""
19989        fi
19990
19991        ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
19992if test "x$ac_cv_header_sqlite3_h" = xyes; then :
19993
19994        SQLITE_SAVE_LDFLAGS=$LDFLAGS
19995
19996        if test -d $with_sqlite_lib; then
19997
19998  # this is CMU ADD LIBPATH TO
19999  if test "$andrew_cv_runpath_switch" = "none" ; then
20000        LDFLAGS="-L$with_sqlite_lib ${LDFLAGS}"
20001  else
20002        LDFLAGS="-L$with_sqlite_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_sqlite_lib"
20003  fi
20004
20005
20006  # this is CMU ADD LIBPATH TO
20007  if test "$andrew_cv_runpath_switch" = "none" ; then
20008        SQLITE_LIBADD="-L$with_sqlite_lib ${SQLITE_LIBADD}"
20009  else
20010        SQLITE_LIBADD="-L$with_sqlite_lib ${SQLITE_LIBADD} $andrew_cv_runpath_switch$with_sqlite_lib"
20011  fi
20012
20013        else
20014            SQLITE_LIBADD=""
20015        fi
20016
20017        saved_LIBS=$LIBS
20018        for libname in ${with_sqlite} sqlite3
20019          do
20020            LIBS="$saved_LIBS -l$libname"
20021            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022/* end confdefs.h.  */
20023#include <stdio.h>
20024#include <sqlite3.h>
20025int
20026main ()
20027{
20028sqlite3_open(NULL, NULL);
20029  ;
20030  return 0;
20031}
20032_ACEOF
20033if ac_fn_c_try_link "$LINENO"; then :
20034  SQLITE_LIBADD="$SQLITE_LIBADD -l$libname"; sqlitelib="yes"
20035else
20036  sqlitelib="no"
20037fi
20038rm -f core conftest.err conftest.$ac_objext \
20039    conftest$ac_exeext conftest.$ac_ext
20040            if test "$sqlitelib" = "yes"; then break; fi
20041          done
20042        LIBS=$saved_LIBS
20043
20044        LDFLAGS=$SQLITE_SAVE_LDFLAGS
20045
20046else
20047  sqlitelib="no"
20048fi
20049
20050
20051
20052        CPPFLAGS=$cmu_save_CPPFLAGS
20053
20054
20055  if test "$use_sqlite" = "yes"; then
20056        if test "$sqlitelib" = "no"; then
20057        as_fn_error $? "Sqlite was not found.  You may need to supply the
20058        --with-sqlite-libdir or --with-sqlite-incdir configure options." "$LINENO" 5
20059    else
20060        HAVE_CYRUSDB_SQL=1
20061        HAVE_SQLITE=1
20062    fi
20063  else
20064        use_sqlite="no"
20065    if test "$sqlitelib" = "no"; then
20066        { $as_echo "$as_me:${as_lineno-$LINENO}: sqlite was not found, will try to build without it" >&5
20067$as_echo "$as_me: sqlite was not found, will try to build without it" >&6;}
20068    else
20069        HAVE_SQLITE=1
20070    fi
20071  fi
20072
20073          fi
20074
20075
20076if test "x$HAVE_CYRUSDB_SQL" = x1; then
20077
20078$as_echo "#define USE_CYRUSDB_SQL /**/" >>confdefs.h
20079
20080fi
20081 if test $HAVE_CYRUSDB_SQL = 1; then
20082  USE_CYRUSDB_SQL_TRUE=
20083  USE_CYRUSDB_SQL_FALSE='#'
20084else
20085  USE_CYRUSDB_SQL_TRUE='#'
20086  USE_CYRUSDB_SQL_FALSE=
20087fi
20088
20089
20090
20091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Caringo" >&5
20092$as_echo_n "checking whether to use Caringo... " >&6; }
20093
20094# Check whether --with-caringo was given.
20095if test "${with_caringo+set}" = set; then :
20096  withval=$with_caringo;
20097else
20098  with_caringo="no"
20099fi
20100
20101case "$with_caringo" in
20102  yes)
20103	LDFLAGS="$LDFLAGS -lCastorSDK"
20104  ;;
20105esac
20106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_caringo" >&5
20107$as_echo "$with_caringo" >&6; }
20108
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenIO" >&5
20110$as_echo_n "checking whether to use OpenIO... " >&6; }
20111
20112# Check whether --with-openio was given.
20113if test "${with_openio+set}" = set; then :
20114  withval=$with_openio; with_openio=$withval
20115else
20116  with_openio="no"
20117fi
20118
20119
20120case "$with_openio" in
20121  no)
20122	use_openio="no"
20123	;;
20124  yes)
20125	use_openio="yes"
20126	with_openio_lib=none
20127	with_openio_inc=none
20128
20129$as_echo "#define WITH_OPENIO 1" >>confdefs.h
20130
20131	;;
20132  *)
20133	use_openio="yes"
20134	with_openio_lib="$with_openio/lib64"
20135	with_openio_inc="$with_openio/include"
20136
20137$as_echo "#define WITH_OPENIO 1" >>confdefs.h
20138
20139	;;
20140esac
20141
20142
20143# Check whether --with-openio-libdir was given.
20144if test "${with_openio_libdir+set}" = set; then :
20145  withval=$with_openio_libdir; with_openio_lib=$withval
20146else
20147   test "${with_openio_lib+set}" = set || with_openio_lib=none
20148fi
20149
20150
20151# Check whether --with-openio-incdir was given.
20152if test "${with_openio_incdir+set}" = set; then :
20153  withval=$with_openio_incdir; with_openio_inc=$withval
20154else
20155   test "${with_openio_inc+set}" = set || with_openio_inc=none
20156fi
20157
20158
20159if test "$use_openio" = "yes"; then
20160	if test ! -d "$with_openio_lib"; then
20161		as_fn_error $? "OpenIO library directory '$with_openio_lib' does not exist." "$LINENO" 5
20162	fi
20163	if test ! -d "$with_openio_inc"; then
20164		as_fn_error $? "OpenIO include directory '$with_openio_inc' does not exist." "$LINENO" 5
20165	fi
20166
20167	LDFLAGS="$LDFLAGS -L$with_openio_lib"
20168	CFLAGS="$CFLAGS -I$with_openio_inc"
20169	openio_headers="oio_sds.h core/oiourl.h"
20170	for h in $openio_headers; do
20171		as_ac_Header=`$as_echo "ac_cv_header_$h" | $as_tr_sh`
20172ac_fn_c_check_header_mongrel "$LINENO" "$h" "$as_ac_Header" "$ac_includes_default"
20173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20174
20175else
20176
20177			as_fn_error $? "Header $h is missing." "$LINENO" 5
20178
20179fi
20180
20181
20182	done
20183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oio_error_free in -loiosds" >&5
20184$as_echo_n "checking for oio_error_free in -loiosds... " >&6; }
20185if ${ac_cv_lib_oiosds_oio_error_free+:} false; then :
20186  $as_echo_n "(cached) " >&6
20187else
20188  ac_check_lib_save_LIBS=$LIBS
20189LIBS="-loiosds  $LIBS"
20190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191/* end confdefs.h.  */
20192
20193/* Override any GCC internal prototype to avoid an error.
20194   Use char because int might match the return type of a GCC
20195   builtin and then its argument prototype would still apply.  */
20196#ifdef __cplusplus
20197extern "C"
20198#endif
20199char oio_error_free ();
20200int
20201main ()
20202{
20203return oio_error_free ();
20204  ;
20205  return 0;
20206}
20207_ACEOF
20208if ac_fn_c_try_link "$LINENO"; then :
20209  ac_cv_lib_oiosds_oio_error_free=yes
20210else
20211  ac_cv_lib_oiosds_oio_error_free=no
20212fi
20213rm -f core conftest.err conftest.$ac_objext \
20214    conftest$ac_exeext conftest.$ac_ext
20215LIBS=$ac_check_lib_save_LIBS
20216fi
20217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oiosds_oio_error_free" >&5
20218$as_echo "$ac_cv_lib_oiosds_oio_error_free" >&6; }
20219if test "x$ac_cv_lib_oiosds_oio_error_free" = xyes; then :
20220  cat >>confdefs.h <<_ACEOF
20221#define HAVE_LIBOIOSDS 1
20222_ACEOF
20223
20224  LIBS="-loiosds $LIBS"
20225
20226else
20227  as_fn_error $? "Library oiosds not found." "$LINENO" 5
20228fi
20229
20230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oio_url_empty in -loiocore" >&5
20231$as_echo_n "checking for oio_url_empty in -loiocore... " >&6; }
20232if ${ac_cv_lib_oiocore_oio_url_empty+:} false; then :
20233  $as_echo_n "(cached) " >&6
20234else
20235  ac_check_lib_save_LIBS=$LIBS
20236LIBS="-loiocore  $LIBS"
20237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238/* end confdefs.h.  */
20239
20240/* Override any GCC internal prototype to avoid an error.
20241   Use char because int might match the return type of a GCC
20242   builtin and then its argument prototype would still apply.  */
20243#ifdef __cplusplus
20244extern "C"
20245#endif
20246char oio_url_empty ();
20247int
20248main ()
20249{
20250return oio_url_empty ();
20251  ;
20252  return 0;
20253}
20254_ACEOF
20255if ac_fn_c_try_link "$LINENO"; then :
20256  ac_cv_lib_oiocore_oio_url_empty=yes
20257else
20258  ac_cv_lib_oiocore_oio_url_empty=no
20259fi
20260rm -f core conftest.err conftest.$ac_objext \
20261    conftest$ac_exeext conftest.$ac_ext
20262LIBS=$ac_check_lib_save_LIBS
20263fi
20264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oiocore_oio_url_empty" >&5
20265$as_echo "$ac_cv_lib_oiocore_oio_url_empty" >&6; }
20266if test "x$ac_cv_lib_oiocore_oio_url_empty" = xyes; then :
20267  cat >>confdefs.h <<_ACEOF
20268#define HAVE_LIBOIOCORE 1
20269_ACEOF
20270
20271  LIBS="-loiocore $LIBS"
20272
20273else
20274  as_fn_error $? "Library oiocore not found." "$LINENO" 5
20275fi
20276
20277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5
20278$as_echo_n "checking for curl_version in -lcurl... " >&6; }
20279if ${ac_cv_lib_curl_curl_version+:} false; then :
20280  $as_echo_n "(cached) " >&6
20281else
20282  ac_check_lib_save_LIBS=$LIBS
20283LIBS="-lcurl  $LIBS"
20284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20285/* end confdefs.h.  */
20286
20287/* Override any GCC internal prototype to avoid an error.
20288   Use char because int might match the return type of a GCC
20289   builtin and then its argument prototype would still apply.  */
20290#ifdef __cplusplus
20291extern "C"
20292#endif
20293char curl_version ();
20294int
20295main ()
20296{
20297return curl_version ();
20298  ;
20299  return 0;
20300}
20301_ACEOF
20302if ac_fn_c_try_link "$LINENO"; then :
20303  ac_cv_lib_curl_curl_version=yes
20304else
20305  ac_cv_lib_curl_curl_version=no
20306fi
20307rm -f core conftest.err conftest.$ac_objext \
20308    conftest$ac_exeext conftest.$ac_ext
20309LIBS=$ac_check_lib_save_LIBS
20310fi
20311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version" >&5
20312$as_echo "$ac_cv_lib_curl_curl_version" >&6; }
20313if test "x$ac_cv_lib_curl_curl_version" = xyes; then :
20314  cat >>confdefs.h <<_ACEOF
20315#define HAVE_LIBCURL 1
20316_ACEOF
20317
20318  LIBS="-lcurl $LIBS"
20319
20320else
20321  as_fn_error $? "Library curl not found." "$LINENO" 5
20322fi
20323
20324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_tokener_parse_ex in -ljson-c" >&5
20325$as_echo_n "checking for json_tokener_parse_ex in -ljson-c... " >&6; }
20326if ${ac_cv_lib_json_c_json_tokener_parse_ex+:} false; then :
20327  $as_echo_n "(cached) " >&6
20328else
20329  ac_check_lib_save_LIBS=$LIBS
20330LIBS="-ljson-c  $LIBS"
20331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20332/* end confdefs.h.  */
20333
20334/* Override any GCC internal prototype to avoid an error.
20335   Use char because int might match the return type of a GCC
20336   builtin and then its argument prototype would still apply.  */
20337#ifdef __cplusplus
20338extern "C"
20339#endif
20340char json_tokener_parse_ex ();
20341int
20342main ()
20343{
20344return json_tokener_parse_ex ();
20345  ;
20346  return 0;
20347}
20348_ACEOF
20349if ac_fn_c_try_link "$LINENO"; then :
20350  ac_cv_lib_json_c_json_tokener_parse_ex=yes
20351else
20352  ac_cv_lib_json_c_json_tokener_parse_ex=no
20353fi
20354rm -f core conftest.err conftest.$ac_objext \
20355    conftest$ac_exeext conftest.$ac_ext
20356LIBS=$ac_check_lib_save_LIBS
20357fi
20358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_tokener_parse_ex" >&5
20359$as_echo "$ac_cv_lib_json_c_json_tokener_parse_ex" >&6; }
20360if test "x$ac_cv_lib_json_c_json_tokener_parse_ex" = xyes; then :
20361  cat >>confdefs.h <<_ACEOF
20362#define HAVE_LIBJSON_C 1
20363_ACEOF
20364
20365  LIBS="-ljson-c $LIBS"
20366
20367else
20368  as_fn_error $? "Library json-c not found." "$LINENO" 5
20369fi
20370
20371
20372	LDFLAGS="$LDFLAGS -L$with_openio_lib -loiosds -loiocore -lcurl -ljson-c"
20373fi
20374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openio" >&5
20375$as_echo "$use_openio" >&6; }
20376
20377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable object store" >&5
20378$as_echo_n "checking whether to enable object store... " >&6; }
20379# Check whether --enable-objectstore was given.
20380if test "${enable_objectstore+set}" = set; then :
20381  enableval=$enable_objectstore;
20382else
20383  enable_objectstore=no
20384fi
20385
20386
20387with_objectstore_dummy=no
20388if test "x$enable_objectstore" != xno ; then
20389        if test "x$HAVE_SQLITE" != x1; then
20390        as_fn_error $? "Need sqlite3 for objectstore" "$LINENO" 5
20391    else
20392        use_sqlite="yes"
20393    fi
20394
20395        if test "x$with_openio" != xno -a "x$with_caringo" != xno; then :
20396  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-openio and --with-caringo requested: using OpenIO" >&5
20397$as_echo "$as_me: WARNING: both --with-openio and --with-caringo requested: using OpenIO" >&2;}
20398             enable_objectstore="openio"
20399             with_caringo = "no"
20400elif test "x$with_openio" != xno; then :
20401  enable_objectstore="openio"
20402elif test "x$with_caringo" != xno; then :
20403  enable_objectstore="caringo"
20404else
20405  enable_objectstore="dummy"
20406         with_objectstore_dummy="yes"
20407fi
20408
20409$as_echo "#define ENABLE_OBJECTSTORE /**/" >>confdefs.h
20410
20411fi
20412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_objectstore" >&5
20413$as_echo "$enable_objectstore" >&6; }
20414 if test "x$enable_objectstore" != xno; then
20415  OBJECTSTORE_TRUE=
20416  OBJECTSTORE_FALSE='#'
20417else
20418  OBJECTSTORE_TRUE='#'
20419  OBJECTSTORE_FALSE=
20420fi
20421
20422 if test "x$with_caringo" != xno; then
20423  WITH_CARINGO_TRUE=
20424  WITH_CARINGO_FALSE='#'
20425else
20426  WITH_CARINGO_TRUE='#'
20427  WITH_CARINGO_FALSE=
20428fi
20429
20430 if test "x$use_openio" != xno; then
20431  WITH_OPENIO_TRUE=
20432  WITH_OPENIO_FALSE='#'
20433else
20434  WITH_OPENIO_TRUE='#'
20435  WITH_OPENIO_FALSE=
20436fi
20437
20438 if test "x$with_objectstore_dummy" != xno; then
20439  WITH_OBJSTR_DUMMY_TRUE=
20440  WITH_OBJSTR_DUMMY_FALSE='#'
20441else
20442  WITH_OBJSTR_DUMMY_TRUE='#'
20443  WITH_OBJSTR_DUMMY_FALSE=
20444fi
20445
20446
20447
20448# Check whether --enable-squat was given.
20449if test "${enable_squat+set}" = set; then :
20450  enableval=$enable_squat;
20451else
20452  enable_squat="yes";
20453fi
20454
20455
20456if test "$enable_squat" != "no"; then
20457
20458$as_echo "#define USE_SQUAT /**/" >>confdefs.h
20459
20460fi
20461
20462 if test "${enable_squat}" != "no"; then
20463  USE_SQUAT_TRUE=
20464  USE_SQUAT_FALSE='#'
20465else
20466  USE_SQUAT_TRUE='#'
20467  USE_SQUAT_FALSE=
20468fi
20469
20470
20471
20472xapian_cjk_tokens=none
20473# Check whether --enable-xapian was given.
20474if test "${enable_xapian+set}" = set; then :
20475  enableval=$enable_xapian;
20476else
20477  enable_xapian=no
20478fi
20479
20480if test "x$enable_xapian" != xno ; then
20481
20482    # Extract the first word of "rsync", so it can be a program name with args.
20483set dummy rsync; ac_word=$2
20484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20485$as_echo_n "checking for $ac_word... " >&6; }
20486if ${ac_cv_path_RSYNC_BIN+:} false; then :
20487  $as_echo_n "(cached) " >&6
20488else
20489  case $RSYNC_BIN in
20490  [\\/]* | ?:[\\/]*)
20491  ac_cv_path_RSYNC_BIN="$RSYNC_BIN" # Let the user override the test with a path.
20492  ;;
20493  *)
20494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20495for as_dir in $PATH
20496do
20497  IFS=$as_save_IFS
20498  test -z "$as_dir" && as_dir=.
20499    for ac_exec_ext in '' $ac_executable_extensions; do
20500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20501    ac_cv_path_RSYNC_BIN="$as_dir/$ac_word$ac_exec_ext"
20502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20503    break 2
20504  fi
20505done
20506  done
20507IFS=$as_save_IFS
20508
20509  ;;
20510esac
20511fi
20512RSYNC_BIN=$ac_cv_path_RSYNC_BIN
20513if test -n "$RSYNC_BIN"; then
20514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSYNC_BIN" >&5
20515$as_echo "$RSYNC_BIN" >&6; }
20516else
20517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20518$as_echo "no" >&6; }
20519fi
20520
20521
20522    if test -z "$RSYNC_BIN"; then :
20523
20524        as_fn_error $? "Can't find the 'rsync' binary" "$LINENO" 5
20525
20526fi
20527
20528cat >>confdefs.h <<_ACEOF
20529#define RSYNC_BIN "$RSYNC_BIN"
20530_ACEOF
20531
20532
20533
20534    for ac_prog in xapian-config-1.5 xapian-config
20535do
20536  # Extract the first word of "$ac_prog", so it can be a program name with args.
20537set dummy $ac_prog; ac_word=$2
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20539$as_echo_n "checking for $ac_word... " >&6; }
20540if ${ac_cv_path_XAPIAN_CONFIG+:} false; then :
20541  $as_echo_n "(cached) " >&6
20542else
20543  case $XAPIAN_CONFIG in
20544  [\\/]* | ?:[\\/]*)
20545  ac_cv_path_XAPIAN_CONFIG="$XAPIAN_CONFIG" # Let the user override the test with a path.
20546  ;;
20547  *)
20548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20549for as_dir in $PATH
20550do
20551  IFS=$as_save_IFS
20552  test -z "$as_dir" && as_dir=.
20553    for ac_exec_ext in '' $ac_executable_extensions; do
20554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20555    ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20557    break 2
20558  fi
20559done
20560  done
20561IFS=$as_save_IFS
20562
20563  ;;
20564esac
20565fi
20566XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
20567if test -n "$XAPIAN_CONFIG"; then
20568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG" >&5
20569$as_echo "$XAPIAN_CONFIG" >&6; }
20570else
20571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20572$as_echo "no" >&6; }
20573fi
20574
20575
20576  test -n "$XAPIAN_CONFIG" && break
20577done
20578
20579    if test -z "$XAPIAN_CONFIG"; then
20580        as_fn_error $? "Can't find Xapian library" "$LINENO" 5
20581    else
20582        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $XAPIAN_CONFIG works" >&5
20583$as_echo_n "checking $XAPIAN_CONFIG works... " >&6; }
20584
20585                if (exec >&5 2>&5 ; $XAPIAN_CONFIG --ltlibs --cxxflags; exit $?) then
20586            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20587$as_echo "yes" >&6; }
20588        else
20589            as_fn_error $? "\`$XAPIAN_CONFIG --ltlibs --cxxflags' doesn't work, aborting" "$LINENO" 5
20590        fi
20591
20592                    ax_cxx_compile_cxx11_required=true
20593  ac_ext=cpp
20594ac_cpp='$CXXCPP $CPPFLAGS'
20595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20598  ac_success=no
20599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
20600$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
20601if ${ax_cv_cxx_compile_cxx11+:} false; then :
20602  $as_echo_n "(cached) " >&6
20603else
20604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h.  */
20606
20607  template <typename T>
20608    struct check
20609    {
20610      static_assert(sizeof(int) <= sizeof(T), "not big enough");
20611    };
20612
20613    struct Base {
20614    virtual void f() {}
20615    };
20616    struct Child : public Base {
20617    virtual void f() override {}
20618    };
20619
20620    typedef check<check<bool>> right_angle_brackets;
20621
20622    int a;
20623    decltype(a) b;
20624
20625    typedef check<int> check_type;
20626    check_type c;
20627    check_type&& cr = static_cast<check_type&&>(c);
20628
20629    auto d = a;
20630    auto l = [](){};
20631    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
20632    struct use_l { use_l() { l(); } };
20633
20634    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20635    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
20636    namespace test_template_alias_sfinae {
20637        struct foo {};
20638
20639        template<typename T>
20640        using member = typename T::member_type;
20641
20642        template<typename T>
20643        void func(...) {}
20644
20645        template<typename T>
20646        void func(member<T>*) {}
20647
20648        void test();
20649
20650        void test() {
20651            func<foo>(0);
20652        }
20653    }
20654
20655    // Check for C++11 attribute support
20656    void noret [[noreturn]] () { throw 0; }
20657
20658_ACEOF
20659if ac_fn_cxx_try_compile "$LINENO"; then :
20660  ax_cv_cxx_compile_cxx11=yes
20661else
20662  ax_cv_cxx_compile_cxx11=no
20663fi
20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665fi
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20667$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
20668  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20669    ac_success=yes
20670  fi
20671
20672
20673
20674    if test x$ac_success = xno; then
20675                for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
20676      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
20677      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20678$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
20679if eval \${$cachevar+:} false; then :
20680  $as_echo_n "(cached) " >&6
20681else
20682  ac_save_CXXFLAGS="$CXXFLAGS"
20683         CXXFLAGS="$CXXFLAGS $switch"
20684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685/* end confdefs.h.  */
20686
20687  template <typename T>
20688    struct check
20689    {
20690      static_assert(sizeof(int) <= sizeof(T), "not big enough");
20691    };
20692
20693    struct Base {
20694    virtual void f() {}
20695    };
20696    struct Child : public Base {
20697    virtual void f() override {}
20698    };
20699
20700    typedef check<check<bool>> right_angle_brackets;
20701
20702    int a;
20703    decltype(a) b;
20704
20705    typedef check<int> check_type;
20706    check_type c;
20707    check_type&& cr = static_cast<check_type&&>(c);
20708
20709    auto d = a;
20710    auto l = [](){};
20711    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
20712    struct use_l { use_l() { l(); } };
20713
20714    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20715    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
20716    namespace test_template_alias_sfinae {
20717        struct foo {};
20718
20719        template<typename T>
20720        using member = typename T::member_type;
20721
20722        template<typename T>
20723        void func(...) {}
20724
20725        template<typename T>
20726        void func(member<T>*) {}
20727
20728        void test();
20729
20730        void test() {
20731            func<foo>(0);
20732        }
20733    }
20734
20735    // Check for C++11 attribute support
20736    void noret [[noreturn]] () { throw 0; }
20737
20738_ACEOF
20739if ac_fn_cxx_try_compile "$LINENO"; then :
20740  eval $cachevar=yes
20741else
20742  eval $cachevar=no
20743fi
20744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20745         CXXFLAGS="$ac_save_CXXFLAGS"
20746fi
20747eval ac_res=\$$cachevar
20748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20749$as_echo "$ac_res" >&6; }
20750      if eval test x\$$cachevar = xyes; then
20751        CXXFLAGS="$CXXFLAGS $switch"
20752        ac_success=yes
20753        break
20754      fi
20755    done
20756  fi
20757  ac_ext=c
20758ac_cpp='$CPP $CPPFLAGS'
20759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20761ac_compiler_gnu=$ac_cv_c_compiler_gnu
20762
20763  if test x$ax_cxx_compile_cxx11_required = xtrue; then
20764    if test x$ac_success = xno; then
20765      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
20766    fi
20767  else
20768    if test x$ac_success = xno; then
20769      HAVE_CXX11=0
20770      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
20771$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
20772    else
20773      HAVE_CXX11=1
20774
20775$as_echo "#define HAVE_CXX11 1" >>confdefs.h
20776
20777    fi
20778
20779
20780  fi
20781
20782
20783                                        XAPIAN_VERSION="`$XAPIAN_CONFIG --version|sed 's/.* //'`"
20784        as_arg_v1=$XAPIAN_VERSION
20785as_arg_v2=1.4
20786awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20787case $? in #(
20788  1) :
20789    as_fn_error $? "need at least Xapian 1.4" "$LINENO" 5 ;; #(
20790  0) :
20791     ;; #(
20792  2) :
20793     ;; #(
20794  *) :
20795     ;;
20796esac
20797        XAPIAN_CXXFLAGS="`$XAPIAN_CONFIG --cxxflags`"
20798                                                                                        XAPIAN_LIBS="`ac_top_srcdir=\"$ac_top_srcdir\" $XAPIAN_CONFIG --from-xo-lib-xapian --libs`"
20799
20800
20801
20802$as_echo "#define USE_XAPIAN /**/" >>confdefs.h
20803
20804
20805                ac_ext=cpp
20806ac_cpp='$CXXCPP $CPPFLAGS'
20807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20810
20811        ORIG_LDFLAGS=$LDFLAGS
20812        ORIG_CXXFLAGS=$CXXFLAGS
20813        LDFLAGS="$LDFLAGS $XAPIAN_LIBS"
20814        CXXFLAGS="$CXXFLAGS $XAPIAN_CXXFLAGS"
20815        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xapian cjk word tokenization" >&5
20816$as_echo_n "checking for Xapian cjk word tokenization... " >&6; }
20817        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818/* end confdefs.h.  */
20819#include <xapian.h>
20820int
20821main ()
20822{
20823unsigned cjk_flags = Xapian::TermGenerator::FLAG_CJK_WORDS | Xapian::QueryParser::FLAG_CJK_WORDS | Xapian::MSet::SNIPPET_CJK_WORDS; (void) cjk_flags;
20824  ;
20825  return 0;
20826}
20827_ACEOF
20828if ac_fn_cxx_try_link "$LINENO"; then :
20829  xapian_cjkwords="yes"
20830else
20831  xapian_cjkwords="no"
20832fi
20833rm -f core conftest.err conftest.$ac_objext \
20834    conftest$ac_exeext conftest.$ac_ext
20835        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xapian_cjkwords" >&5
20836$as_echo "$xapian_cjkwords" >&6; }
20837        if test $xapian_cjkwords = yes; then
20838
20839$as_echo "#define USE_XAPIAN_CJK_WORDS /**/" >>confdefs.h
20840
20841            xapian_cjk_tokens=words
20842        else
20843            { $as_echo "$as_me:${as_lineno-$LINENO}: Your Xapian does not support CJK word tokenization. CJK ngram tokenization will be used instead." >&5
20844$as_echo "$as_me: Your Xapian does not support CJK word tokenization. CJK ngram tokenization will be used instead." >&6;}
20845            xapian_cjk_tokens=ngrams
20846        fi
20847        LDFLAGS=$ORIG_LDFLAGS
20848        CXXFLAGS=$ORIG_CXXFLAGS
20849        ac_ext=c
20850ac_cpp='$CPP $CPPFLAGS'
20851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854
20855    fi
20856
20857
20858
20859fi
20860 if test "${enable_xapian}" != "no"; then
20861  USE_XAPIAN_TRUE=
20862  USE_XAPIAN_FALSE='#'
20863else
20864  USE_XAPIAN_TRUE='#'
20865  USE_XAPIAN_FALSE=
20866fi
20867
20868
20869cat >>confdefs.h <<_ACEOF
20870#define XAPIAN_CJK_TOKENS "$xapian_cjk_tokens"
20871_ACEOF
20872
20873
20874if test "${enable_squat}" != "no" -o "${enable_xapian}" != "no"; then
20875    ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
20876if test "x$ac_cv_func_getopt_long" = xyes; then :
20877
20878else
20879  as_fn_error $? "squatter executable requires getopt_long" "$LINENO" 5
20880fi
20881
20882fi
20883 if test "${enable_squat}" != "no" -o "${enable_xapian}" != "no" ; then
20884  SQUATTER_TRUE=
20885  SQUATTER_FALSE='#'
20886else
20887  SQUATTER_TRUE='#'
20888  SQUATTER_FALSE=
20889fi
20890
20891
20892# Check whether --enable-sieve was given.
20893if test "${enable_sieve+set}" = set; then :
20894  enableval=$enable_sieve;
20895else
20896  enable_sieve="yes";
20897fi
20898
20899# Check whether --enable-pcre was given.
20900if test "${enable_pcre+set}" = set; then :
20901  enableval=$enable_pcre; cyrus_cv_pcre_utf8="$enableval"
20902fi
20903
20904
20905if test "$enable_sieve" != "no"; then
20906
20907$as_echo "#define USE_SIEVE /**/" >>confdefs.h
20908
20909
20910                for ac_prog in 'bison -y' byacc
20911do
20912  # Extract the first word of "$ac_prog", so it can be a program name with args.
20913set dummy $ac_prog; ac_word=$2
20914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20915$as_echo_n "checking for $ac_word... " >&6; }
20916if ${ac_cv_prog_YACC+:} false; then :
20917  $as_echo_n "(cached) " >&6
20918else
20919  if test -n "$YACC"; then
20920  ac_cv_prog_YACC="$YACC" # Let the user override the test.
20921else
20922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20923for as_dir in $PATH
20924do
20925  IFS=$as_save_IFS
20926  test -z "$as_dir" && as_dir=.
20927    for ac_exec_ext in '' $ac_executable_extensions; do
20928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20929    ac_cv_prog_YACC="$ac_prog"
20930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20931    break 2
20932  fi
20933done
20934  done
20935IFS=$as_save_IFS
20936
20937fi
20938fi
20939YACC=$ac_cv_prog_YACC
20940if test -n "$YACC"; then
20941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
20942$as_echo "$YACC" >&6; }
20943else
20944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945$as_echo "no" >&6; }
20946fi
20947
20948
20949  test -n "$YACC" && break
20950done
20951test -n "$YACC" || YACC="yacc"
20952
20953        for ac_prog in flex lex
20954do
20955  # Extract the first word of "$ac_prog", so it can be a program name with args.
20956set dummy $ac_prog; ac_word=$2
20957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20958$as_echo_n "checking for $ac_word... " >&6; }
20959if ${ac_cv_prog_LEX+:} false; then :
20960  $as_echo_n "(cached) " >&6
20961else
20962  if test -n "$LEX"; then
20963  ac_cv_prog_LEX="$LEX" # Let the user override the test.
20964else
20965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20966for as_dir in $PATH
20967do
20968  IFS=$as_save_IFS
20969  test -z "$as_dir" && as_dir=.
20970    for ac_exec_ext in '' $ac_executable_extensions; do
20971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20972    ac_cv_prog_LEX="$ac_prog"
20973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20974    break 2
20975  fi
20976done
20977  done
20978IFS=$as_save_IFS
20979
20980fi
20981fi
20982LEX=$ac_cv_prog_LEX
20983if test -n "$LEX"; then
20984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
20985$as_echo "$LEX" >&6; }
20986else
20987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20988$as_echo "no" >&6; }
20989fi
20990
20991
20992  test -n "$LEX" && break
20993done
20994test -n "$LEX" || LEX=":"
20995
20996if test "x$LEX" != "x:"; then
20997  cat >conftest.l <<_ACEOF
20998%%
20999a { ECHO; }
21000b { REJECT; }
21001c { yymore (); }
21002d { yyless (1); }
21003e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
21004    yyless ((input () != 0)); }
21005f { unput (yytext[0]); }
21006. { BEGIN INITIAL; }
21007%%
21008#ifdef YYTEXT_POINTER
21009extern char *yytext;
21010#endif
21011int
21012main (void)
21013{
21014  return ! yylex () + ! yywrap ();
21015}
21016_ACEOF
21017{ { ac_try="$LEX conftest.l"
21018case "(($ac_try" in
21019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020  *) ac_try_echo=$ac_try;;
21021esac
21022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21023$as_echo "$ac_try_echo"; } >&5
21024  (eval "$LEX conftest.l") 2>&5
21025  ac_status=$?
21026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21027  test $ac_status = 0; }
21028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
21029$as_echo_n "checking lex output file root... " >&6; }
21030if ${ac_cv_prog_lex_root+:} false; then :
21031  $as_echo_n "(cached) " >&6
21032else
21033
21034if test -f lex.yy.c; then
21035  ac_cv_prog_lex_root=lex.yy
21036elif test -f lexyy.c; then
21037  ac_cv_prog_lex_root=lexyy
21038else
21039  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
21040fi
21041fi
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21043$as_echo "$ac_cv_prog_lex_root" >&6; }
21044LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21045
21046if test -z "${LEXLIB+set}"; then
21047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
21048$as_echo_n "checking lex library... " >&6; }
21049if ${ac_cv_lib_lex+:} false; then :
21050  $as_echo_n "(cached) " >&6
21051else
21052
21053    ac_save_LIBS=$LIBS
21054    ac_cv_lib_lex='none needed'
21055    for ac_lib in '' -lfl -ll; do
21056      LIBS="$ac_lib $ac_save_LIBS"
21057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058/* end confdefs.h.  */
21059`cat $LEX_OUTPUT_ROOT.c`
21060_ACEOF
21061if ac_fn_c_try_link "$LINENO"; then :
21062  ac_cv_lib_lex=$ac_lib
21063fi
21064rm -f core conftest.err conftest.$ac_objext \
21065    conftest$ac_exeext conftest.$ac_ext
21066      test "$ac_cv_lib_lex" != 'none needed' && break
21067    done
21068    LIBS=$ac_save_LIBS
21069
21070fi
21071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
21072$as_echo "$ac_cv_lib_lex" >&6; }
21073  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21074fi
21075
21076
21077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
21078$as_echo_n "checking whether yytext is a pointer... " >&6; }
21079if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
21080  $as_echo_n "(cached) " >&6
21081else
21082  # POSIX says lex can declare yytext either as a pointer or an array; the
21083# default is implementation-dependent.  Figure out which it is, since
21084# not all implementations provide the %pointer and %array declarations.
21085ac_cv_prog_lex_yytext_pointer=no
21086ac_save_LIBS=$LIBS
21087LIBS="$LEXLIB $ac_save_LIBS"
21088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089/* end confdefs.h.  */
21090
21091  #define YYTEXT_POINTER 1
21092`cat $LEX_OUTPUT_ROOT.c`
21093_ACEOF
21094if ac_fn_c_try_link "$LINENO"; then :
21095  ac_cv_prog_lex_yytext_pointer=yes
21096fi
21097rm -f core conftest.err conftest.$ac_objext \
21098    conftest$ac_exeext conftest.$ac_ext
21099LIBS=$ac_save_LIBS
21100
21101fi
21102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
21103$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
21104if test $ac_cv_prog_lex_yytext_pointer = yes; then
21105
21106$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
21107
21108fi
21109rm -f conftest.l $LEX_OUTPUT_ROOT.c
21110
21111fi
21112if test "$LEX" = :; then
21113  LEX=${am_missing_run}flex
21114fi
21115
21116        if test -z "$ac_cv_prog_YACC"; then
21117            as_fn_error $? "Sieve requires bison/byacc/yacc, but none is installed" "$LINENO" 5
21118        fi
21119
21120        if test -z "$ac_cv_prog_LEX"; then
21121            as_fn_error $? "Sieve requires flex/lex, but none is installed" "$LINENO" 5
21122        fi
21123fi
21124
21125 if test "${enable_sieve}" != "no"; then
21126  SIEVE_TRUE=
21127  SIEVE_FALSE='#'
21128else
21129  SIEVE_TRUE='#'
21130  SIEVE_FALSE=
21131fi
21132
21133
21134if test "$enable_pcre" != "no"; then
21135        ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
21136if test "x$ac_cv_header_pcreposix_h" = xyes; then :
21137
21138fi
21139
21140
21141        if test "$ac_cv_header_pcreposix_h" = "yes"; then
21142            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 enabled pcre" >&5
21143$as_echo_n "checking for utf8 enabled pcre... " >&6; }
21144            if ${cyrus_cv_pcre_utf8+:} false; then :
21145  $as_echo_n "(cached) " >&6
21146else
21147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21148/* end confdefs.h.  */
21149#include <pcreposix.h>
21150#ifndef REG_UTF8
21151#include </nonexistent>
21152#endif
21153_ACEOF
21154if ac_fn_c_try_cpp "$LINENO"; then :
21155  cyrus_cv_pcre_utf8=yes
21156else
21157  cyrus_cv_pcre_utf8=no
21158fi
21159rm -f conftest.err conftest.i conftest.$ac_ext
21160fi
21161
21162            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_pcre_utf8" >&5
21163$as_echo "$cyrus_cv_pcre_utf8" >&6; }
21164        else
21165            cyrus_cv_pcre_utf8="no"
21166        fi
21167fi
21168
21169LIB_REGEX=
21170if test "$cyrus_cv_pcre_utf8" = "yes"; then
21171        LIB_REGEX="-lpcre -lpcreposix";
21172
21173$as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
21174
21175
21176$as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
21177
21178else
21179        for ac_header in rxposix.h
21180do :
21181  ac_fn_c_check_header_mongrel "$LINENO" "rxposix.h" "ac_cv_header_rxposix_h" "$ac_includes_default"
21182if test "x$ac_cv_header_rxposix_h" = xyes; then :
21183  cat >>confdefs.h <<_ACEOF
21184#define HAVE_RXPOSIX_H 1
21185_ACEOF
21186
21187fi
21188
21189done
21190
21191        if test "$ac_cv_header_rxposix_h" = "yes"; then
21192            LIB_REGEX="-lrx"
21193
21194$as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
21195
21196        else
21197            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
21198$as_echo_n "checking for library containing regcomp... " >&6; }
21199if ${ac_cv_search_regcomp+:} false; then :
21200  $as_echo_n "(cached) " >&6
21201else
21202  ac_func_search_save_LIBS=$LIBS
21203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204/* end confdefs.h.  */
21205
21206/* Override any GCC internal prototype to avoid an error.
21207   Use char because int might match the return type of a GCC
21208   builtin and then its argument prototype would still apply.  */
21209#ifdef __cplusplus
21210extern "C"
21211#endif
21212char regcomp ();
21213int
21214main ()
21215{
21216return regcomp ();
21217  ;
21218  return 0;
21219}
21220_ACEOF
21221for ac_lib in '' regex; do
21222  if test -z "$ac_lib"; then
21223    ac_res="none required"
21224  else
21225    ac_res=-l$ac_lib
21226    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21227  fi
21228  if ac_fn_c_try_link "$LINENO"; then :
21229  ac_cv_search_regcomp=$ac_res
21230fi
21231rm -f core conftest.err conftest.$ac_objext \
21232    conftest$ac_exeext
21233  if ${ac_cv_search_regcomp+:} false; then :
21234  break
21235fi
21236done
21237if ${ac_cv_search_regcomp+:} false; then :
21238
21239else
21240  ac_cv_search_regcomp=no
21241fi
21242rm conftest.$ac_ext
21243LIBS=$ac_func_search_save_LIBS
21244fi
21245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
21246$as_echo "$ac_cv_search_regcomp" >&6; }
21247ac_res=$ac_cv_search_regcomp
21248if test "$ac_res" != no; then :
21249  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21250
21251$as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
21252
21253fi
21254
21255        fi
21256fi
21257
21258LIBS="$LIBS $LIB_REGEX"
21259
21260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SRS" >&5
21261$as_echo_n "checking whether to use SRS... " >&6; }
21262# Check whether --enable-srs was given.
21263if test "${enable_srs+set}" = set; then :
21264  enableval=$enable_srs;
21265else
21266  enable_srs=no
21267fi
21268
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_srs" >&5
21270$as_echo "$enable_srs" >&6; }
21271 if test "${enable_srs}" != "no"; then
21272  USE_SRS_TRUE=
21273  USE_SRS_FALSE='#'
21274else
21275  USE_SRS_TRUE='#'
21276  USE_SRS_FALSE=
21277fi
21278
21279if test "x$enable_srs" != xno; then
21280    ac_fn_c_check_header_mongrel "$LINENO" "srs2.h" "ac_cv_header_srs2_h" "$ac_includes_default"
21281if test "x$ac_cv_header_srs2_h" = xyes; then :
21282
21283else
21284  as_fn_error $? "cannot find SRS headers" "$LINENO" 5
21285fi
21286
21287
21288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srs_forward in -lsrs2" >&5
21289$as_echo_n "checking for srs_forward in -lsrs2... " >&6; }
21290if ${ac_cv_lib_srs2_srs_forward+:} false; then :
21291  $as_echo_n "(cached) " >&6
21292else
21293  ac_check_lib_save_LIBS=$LIBS
21294LIBS="-lsrs2  $LIBS"
21295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h.  */
21297
21298/* Override any GCC internal prototype to avoid an error.
21299   Use char because int might match the return type of a GCC
21300   builtin and then its argument prototype would still apply.  */
21301#ifdef __cplusplus
21302extern "C"
21303#endif
21304char srs_forward ();
21305int
21306main ()
21307{
21308return srs_forward ();
21309  ;
21310  return 0;
21311}
21312_ACEOF
21313if ac_fn_c_try_link "$LINENO"; then :
21314  ac_cv_lib_srs2_srs_forward=yes
21315else
21316  ac_cv_lib_srs2_srs_forward=no
21317fi
21318rm -f core conftest.err conftest.$ac_objext \
21319    conftest$ac_exeext conftest.$ac_ext
21320LIBS=$ac_check_lib_save_LIBS
21321fi
21322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srs2_srs_forward" >&5
21323$as_echo "$ac_cv_lib_srs2_srs_forward" >&6; }
21324if test "x$ac_cv_lib_srs2_srs_forward" = xyes; then :
21325  cat >>confdefs.h <<_ACEOF
21326#define HAVE_LIBSRS2 1
21327_ACEOF
21328
21329  LIBS="-lsrs2 $LIBS"
21330
21331else
21332  as_fn_error $? "cannot find SRS lib" "$LINENO" 5
21333fi
21334
21335    LIBS="$LIBS -lsrs2"
21336
21337$as_echo "#define USE_SRS /**/" >>confdefs.h
21338
21339else
21340    { $as_echo "$as_me:${as_lineno-$LINENO}: Outgoing messages will not support the Sender Rewriting Scheme.  Consider installing libsrs2 and --enable-srs" >&5
21341$as_echo "$as_me: Outgoing messages will not support the Sender Rewriting Scheme.  Consider installing libsrs2 and --enable-srs" >&6;}
21342fi
21343
21344saved_CFLAGS="$CFLAGS"
21345NOWARN_SIGN_COMPARE="-Wno-sign-compare"
21346CFLAGS="$NOWARN_SIGN_COMPARE"
21347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports -Wno-sign-compare" >&5
21348$as_echo_n "checking whether the C compiler supports -Wno-sign-compare... " >&6; }
21349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350/* end confdefs.h.  */
21351
21352int
21353main ()
21354{
21355
21356  ;
21357  return 0;
21358}
21359_ACEOF
21360if ac_fn_c_try_compile "$LINENO"; then :
21361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21362$as_echo "yes" >&6; }
21363else
21364  NOWARN_SIGN_COMPARE=
21365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21366$as_echo "no" >&6; }
21367
21368fi
21369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370CFLAGS="$saved_CFLAGS"
21371
21372
21373ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
21374if test "x$ac_cv_func_strerror" = xyes; then :
21375
21376$as_echo "#define HAS_STRERROR /**/" >>confdefs.h
21377
21378else
21379
21380$as_echo "#define NEED_SYS_ERRLIST /**/" >>confdefs.h
21381
21382fi
21383
21384
21385for ac_header in sys/resource.h
21386do :
21387  ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
21388if test "x$ac_cv_header_sys_resource_h" = xyes; then :
21389  cat >>confdefs.h <<_ACEOF
21390#define HAVE_SYS_RESOURCE_H 1
21391_ACEOF
21392
21393fi
21394
21395done
21396
21397for ac_func in setrlimit
21398do :
21399  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21400if test "x$ac_cv_func_setrlimit" = xyes; then :
21401  cat >>confdefs.h <<_ACEOF
21402#define HAVE_SETRLIMIT 1
21403_ACEOF
21404
21405fi
21406done
21407
21408for ac_func in getrlimit
21409do :
21410  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21411if test "x$ac_cv_func_getrlimit" = xyes; then :
21412  cat >>confdefs.h <<_ACEOF
21413#define HAVE_GETRLIMIT 1
21414_ACEOF
21415
21416fi
21417done
21418
21419
21420for ac_func in daemon setsid
21421do :
21422  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21424if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21425  cat >>confdefs.h <<_ACEOF
21426#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21427_ACEOF
21428
21429fi
21430done
21431
21432
21433for ac_func in shutdown
21434do :
21435  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
21436if test "x$ac_cv_func_shutdown" = xyes; then :
21437  cat >>confdefs.h <<_ACEOF
21438#define HAVE_SHUTDOWN 1
21439_ACEOF
21440
21441fi
21442done
21443
21444
21445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446/* end confdefs.h.  */
21447#include <sys/socket.h>
21448
21449_ACEOF
21450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21451  $EGREP "socklen_t" >/dev/null 2>&1; then :
21452
21453$as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
21454
21455fi
21456rm -f conftest*
21457
21458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459/* end confdefs.h.  */
21460#include <sys/socket.h>
21461
21462_ACEOF
21463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21464  $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
21465
21466$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
21467
21468fi
21469rm -f conftest*
21470
21471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472/* end confdefs.h.  */
21473#include <sys/resource.h>
21474
21475_ACEOF
21476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21477  $EGREP "rlim_t" >/dev/null 2>&1; then :
21478
21479$as_echo "#define HAVE_RLIM_T /**/" >>confdefs.h
21480
21481fi
21482rm -f conftest*
21483
21484
21485spt_type=""
21486ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
21487if test "x$ac_cv_func_setproctitle" = xyes; then :
21488  spt_type=SPT_BUILTIN
21489fi
21490
21491if test "$spt_type" = ""; then
21492                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
21493$as_echo_n "checking for setproctitle in -lutil... " >&6; }
21494if ${ac_cv_lib_util_setproctitle+:} false; then :
21495  $as_echo_n "(cached) " >&6
21496else
21497  ac_check_lib_save_LIBS=$LIBS
21498LIBS="-lutil  $LIBS"
21499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500/* end confdefs.h.  */
21501
21502/* Override any GCC internal prototype to avoid an error.
21503   Use char because int might match the return type of a GCC
21504   builtin and then its argument prototype would still apply.  */
21505#ifdef __cplusplus
21506extern "C"
21507#endif
21508char setproctitle ();
21509int
21510main ()
21511{
21512return setproctitle ();
21513  ;
21514  return 0;
21515}
21516_ACEOF
21517if ac_fn_c_try_link "$LINENO"; then :
21518  ac_cv_lib_util_setproctitle=yes
21519else
21520  ac_cv_lib_util_setproctitle=no
21521fi
21522rm -f core conftest.err conftest.$ac_objext \
21523    conftest$ac_exeext conftest.$ac_ext
21524LIBS=$ac_check_lib_save_LIBS
21525fi
21526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
21527$as_echo "$ac_cv_lib_util_setproctitle" >&6; }
21528if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
21529  spt_type=SPT_BUILTIN
21530                        LIBS="${LIBS} -lutil"
21531fi
21532
21533fi
21534if test "$spt_type" = ""; then
21535        ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
21536if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
21537  spt_type=SPT_PSTAT
21538fi
21539
21540
21541fi
21542if test "$spt_type" = ""; then
21543        ac_fn_c_check_header_mongrel "$LINENO" "sys/sysnews.h" "ac_cv_header_sys_sysnews_h" "$ac_includes_default"
21544if test "x$ac_cv_header_sys_sysnews_h" = xyes; then :
21545  spt_type=SPT_SYSMIPS
21546fi
21547
21548
21549fi
21550if test "$spt_type" = ""; then
21551        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
21552$as_echo_n "checking for PS_STRINGS... " >&6; }
21553        if ${cyrus_cv_sys_psstrings+:} false; then :
21554  $as_echo_n "(cached) " >&6
21555else
21556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557/* end confdefs.h.  */
21558
21559#include <machine/vmparam.h>
21560#include <sys/exec.h>
21561void *p = PS_STRINGS;
21562
21563_ACEOF
21564if ac_fn_c_try_compile "$LINENO"; then :
21565  cyrus_cv_sys_psstrings=yes
21566else
21567  cyrus_cv_sys_psstrings=no
21568fi
21569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570fi
21571
21572         if test $cyrus_cv_sys_psstrings = yes; then
21573                 spt_type=SPT_PSSTRINGS
21574         fi
21575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_psstrings" >&5
21576$as_echo "$cyrus_cv_sys_psstrings" >&6; }
21577fi
21578if test "$spt_type" = ""; then
21579        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCO" >&5
21580$as_echo_n "checking for SCO... " >&6; }
21581        if ${cyrus_cv_sys_sco+:} false; then :
21582  $as_echo_n "(cached) " >&6
21583else
21584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585/* end confdefs.h.  */
21586
21587#ifndef _SCO_unix_
21588#include </nonexistent>
21589#endif
21590_ACEOF
21591if ac_fn_c_try_cpp "$LINENO"; then :
21592  cyrus_cv_sys_sco=yes
21593else
21594  cyrus_cv_sys_sco=no
21595fi
21596rm -f conftest.err conftest.i conftest.$ac_ext
21597fi
21598
21599        if test $cyrus_cv_sys_sco = yes; then
21600                spt_type=SPT_SCO
21601        fi
21602        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_sco" >&5
21603$as_echo "$cyrus_cv_sys_sco" >&6; }
21604fi
21605if test "$spt_type" = ""; then
21606        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle usability" >&5
21607$as_echo_n "checking for setproctitle usability... " >&6; }
21608        if ${cyrus_cv_sys_setproctitle+:} false; then :
21609  $as_echo_n "(cached) " >&6
21610else
21611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21612/* end confdefs.h.  */
21613
21614#if defined(DGUX) || defined(_SEQUENT_) || defined(apollo)
21615#include </nonexistent>
21616#endif
21617_ACEOF
21618if ac_fn_c_try_cpp "$LINENO"; then :
21619  cyrus_cv_sys_setproctitle=yes
21620else
21621  cyrus_cv_sys_setproctitle=no
21622fi
21623rm -f conftest.err conftest.i conftest.$ac_ext
21624fi
21625
21626        if test $cyrus_cv_sys_setproctitle = no; then
21627                spt_type=SPT_NONE
21628        fi
21629        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_setproctitle" >&5
21630$as_echo "$cyrus_cv_sys_setproctitle" >&6; }
21631fi
21632if test "$spt_type" != ""; then
21633
21634cat >>confdefs.h <<_ACEOF
21635#define SPT_TYPE $spt_type
21636_ACEOF
21637
21638fi
21639
21640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nonblocking method" >&5
21641$as_echo_n "checking nonblocking method... " >&6; }
21642if ${cyrus_cv_sys_nonblock+:} false; then :
21643  $as_echo_n "(cached) " >&6
21644else
21645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646/* end confdefs.h.  */
21647#include <sys/types.h>
21648#include <sys/file.h>
21649#include <fcntl.h>
21650#ifndef FNDELAY
21651#define FNDELAY         O_NDELAY
21652#endif
21653int
21654main ()
21655{
21656fcntl(0, F_GETFL, 0)&FNDELAY
21657  ;
21658  return 0;
21659}
21660_ACEOF
21661if ac_fn_c_try_link "$LINENO"; then :
21662  cyrus_cv_sys_nonblock=fcntl
21663else
21664  cyrus_cv_sys_nonblock=ioctl
21665fi
21666rm -f core conftest.err conftest.$ac_objext \
21667    conftest$ac_exeext conftest.$ac_ext
21668fi
21669
21670 if test "$cyrus_cv_sys_nonblock" = "fcntl"; then
21671  NONBLOCK_FCNTL_TRUE=
21672  NONBLOCK_FCNTL_FALSE='#'
21673else
21674  NONBLOCK_FCNTL_TRUE='#'
21675  NONBLOCK_FCNTL_FALSE=
21676fi
21677
21678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_nonblock" >&5
21679$as_echo "$cyrus_cv_sys_nonblock" >&6; }
21680
21681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking timezone GMT offset method" >&5
21682$as_echo_n "checking timezone GMT offset method... " >&6; }
21683if ${cyrus_cv_struct_sys_gmtoff+:} false; then :
21684  $as_echo_n "(cached) " >&6
21685else
21686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687/* end confdefs.h.  */
21688
21689#include <time.h>
21690int
21691main ()
21692{
21693struct tm tm;
21694tm.tm_gmtoff = 0;
21695
21696  ;
21697  return 0;
21698}
21699_ACEOF
21700if ac_fn_c_try_compile "$LINENO"; then :
21701  cyrus_cv_struct_sys_gmtoff=tm
21702else
21703  cyrus_cv_struct_sys_gmtoff=gmtime
21704fi
21705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706fi
21707
21708 if test "$cyrus_cv_struct_sys_gmtoff" = "tm"; then
21709  GMTOFF_TM_TRUE=
21710  GMTOFF_TM_FALSE='#'
21711else
21712  GMTOFF_TM_TRUE='#'
21713  GMTOFF_TM_FALSE=
21714fi
21715
21716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_struct_sys_gmtoff" >&5
21717$as_echo "$cyrus_cv_struct_sys_gmtoff" >&6; }
21718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared mmap" >&5
21719$as_echo_n "checking for shared mmap... " >&6; }
21720if ${cyrus_cv_func_mmap_shared+:} false; then :
21721  $as_echo_n "(cached) " >&6
21722else
21723  if test "$cross_compiling" = yes; then :
21724  cyrus_cv_func_mmap_shared=no
21725else
21726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727/* end confdefs.h.  */
21728
21729#include <fcntl.h>
21730#include <string.h>
21731#include <sys/mman.h>
21732#include <sys/types.h>
21733#include <unistd.h>
21734int main() {
21735    char *base;
21736    int mmapflags = MAP_SHARED;
21737    int fd = open("conftestmmap", O_RDWR|O_CREAT|O_TRUNC, 0666);
21738    if (fd == -1) return 1;
21739    if (write(fd, "test", 4) != 4) return 1;
21740    fsync(fd);
21741#ifdef MAP_FILE
21742    mmapflags |= MAP_FILE;
21743#endif
21744#ifdef MAP_VARIABLE
21745    mmapflags |= MAP_VARIABLE;
21746#endif
21747    base = mmap((caddr_t)0, 100, PROT_READ, mmapflags, fd, 0L);
21748    if (base == (caddr_t)-1) return 1;
21749    if (memcmp(base, "test", 4) != 0) return 1;
21750    if (write(fd, "test", 4) != 4) return 1;
21751    fsync(fd);
21752    if (memcmp(base+4, "test", 4) != 0) return 1;
21753    return 0;
21754}
21755
21756_ACEOF
21757if ac_fn_c_try_run "$LINENO"; then :
21758  cyrus_cv_func_mmap_shared=yes
21759else
21760  cyrus_cv_func_mmap_shared=no
21761fi
21762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21763  conftest.$ac_objext conftest.beam conftest.$ac_ext
21764fi
21765
21766fi
21767
21768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_func_mmap_shared" >&5
21769$as_echo "$cyrus_cv_func_mmap_shared" >&6; }
21770if test $cyrus_cv_func_mmap_shared = yes; then
21771        found_map="shared"
21772else
21773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stupid shared mmap" >&5
21774$as_echo_n "checking for stupid shared mmap... " >&6; }
21775if ${cyrus_cv_func_mmap_stupidshared+:} false; then :
21776  $as_echo_n "(cached) " >&6
21777else
21778  if test "$cross_compiling" = yes; then :
21779  cyrus_cv_func_mmap_stupidshared=no
21780else
21781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782/* end confdefs.h.  */
21783
21784#include <fcntl.h>
21785#include <string.h>
21786#include <sys/mman.h>
21787#include <sys/types.h>
21788#include <unistd.h>
21789int main() {
21790    char *base;
21791    int fd = open("conftestmmap", O_RDWR|O_CREAT|O_TRUNC, 0666);
21792    int mmapflags = MAP_SHARED;
21793    if (fd == -1) return 1;
21794    if (write(fd, "test", 4) != 4) return 1;
21795    fsync(fd);
21796#ifdef MAP_FILE
21797    mmapflags |= MAP_FILE;
21798#endif
21799#ifdef MAP_VARIABLE
21800    mmapflags |= MAP_VARIABLE;
21801#endif
21802    base = mmap((caddr_t)0, 4, PROT_READ, mmapflags, fd, 0L);
21803    if (base == (caddr_t)-1) return 1;
21804    if (memcmp(base, "test", 4) != 0) return 1;
21805    lseek(fd, 0L, 0);
21806    if (write(fd, "xyzz", 4) != 4) return 1;
21807    fsync(fd);
21808    if (memcmp(base, "xyzz", 4) != 0) return 1;
21809    return 0;
21810}
21811
21812_ACEOF
21813if ac_fn_c_try_run "$LINENO"; then :
21814  cyrus_cv_func_mmap_stupidshared=yes
21815else
21816  cyrus_cv_func_mmap_stupidshared=no
21817fi
21818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21819  conftest.$ac_objext conftest.beam conftest.$ac_ext
21820fi
21821
21822fi
21823
21824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_func_mmap_stupidshared" >&5
21825$as_echo "$cyrus_cv_func_mmap_stupidshared" >&6; }
21826if test $cyrus_cv_func_mmap_stupidshared = yes; then
21827        found_map="stupidshared"
21828else
21829        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This system does not have a working mmap()" >&5
21830$as_echo "$as_me: WARNING: *** This system does not have a working mmap()" >&2;}
21831        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expect a considerable performance penalty" >&5
21832$as_echo "$as_me: WARNING: *** Expect a considerable performance penalty" >&2;}
21833        found_map=nommap
21834fi
21835fi
21836
21837
21838# Check whether --with-mmap was given.
21839if test "${with_mmap+set}" = set; then :
21840  withval=$with_mmap; WITH_MAP="$withval"
21841else
21842  WITH_MAP="$found_map"
21843fi
21844
21845 if test "$WITH_MAP" = "shared"; then
21846  MAP_SHARED_TRUE=
21847  MAP_SHARED_FALSE='#'
21848else
21849  MAP_SHARED_TRUE='#'
21850  MAP_SHARED_FALSE=
21851fi
21852
21853 if test "$WITH_MAP" = "stupidshared"; then
21854  MAP_STUPIDSHARED_TRUE=
21855  MAP_STUPIDSHARED_FALSE='#'
21856else
21857  MAP_STUPIDSHARED_TRUE='#'
21858  MAP_STUPIDSHARED_FALSE=
21859fi
21860
21861
21862
21863# Check whether --with-lock was given.
21864if test "${with_lock+set}" = set; then :
21865  withval=$with_lock; WITH_LOCK="$withval"
21866else
21867
21868  ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
21869if test "x$ac_cv_func_fcntl" = xyes; then :
21870  WITH_LOCK="fcntl"
21871else
21872
21873                ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
21874if test "x$ac_cv_func_flock" = xyes; then :
21875  WITH_LOCK="flock"
21876else
21877
21878                                as_fn_error $? "unable to detect locking method" "$LINENO" 5
21879
21880fi
21881
21882
21883fi
21884
21885
21886fi
21887
21888 if test $WITH_LOCK = "fcntl"; then
21889  LOCK_FCNTL_TRUE=
21890  LOCK_FCNTL_FALSE='#'
21891else
21892  LOCK_FCNTL_TRUE='#'
21893  LOCK_FCNTL_FALSE=
21894fi
21895
21896
21897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21898$as_echo_n "checking for library containing fdatasync... " >&6; }
21899if ${ac_cv_search_fdatasync+:} false; then :
21900  $as_echo_n "(cached) " >&6
21901else
21902  ac_func_search_save_LIBS=$LIBS
21903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904/* end confdefs.h.  */
21905
21906/* Override any GCC internal prototype to avoid an error.
21907   Use char because int might match the return type of a GCC
21908   builtin and then its argument prototype would still apply.  */
21909#ifdef __cplusplus
21910extern "C"
21911#endif
21912char fdatasync ();
21913int
21914main ()
21915{
21916return fdatasync ();
21917  ;
21918  return 0;
21919}
21920_ACEOF
21921for ac_lib in '' rt; do
21922  if test -z "$ac_lib"; then
21923    ac_res="none required"
21924  else
21925    ac_res=-l$ac_lib
21926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21927  fi
21928  if ac_fn_c_try_link "$LINENO"; then :
21929  ac_cv_search_fdatasync=$ac_res
21930fi
21931rm -f core conftest.err conftest.$ac_objext \
21932    conftest$ac_exeext
21933  if ${ac_cv_search_fdatasync+:} false; then :
21934  break
21935fi
21936done
21937if ${ac_cv_search_fdatasync+:} false; then :
21938
21939else
21940  ac_cv_search_fdatasync=no
21941fi
21942rm conftest.$ac_ext
21943LIBS=$ac_func_search_save_LIBS
21944fi
21945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21946$as_echo "$ac_cv_search_fdatasync" >&6; }
21947ac_res=$ac_cv_search_fdatasync
21948if test "$ac_res" != no; then :
21949  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21950
21951
21952$as_echo "#define HAVE_FDATASYNC /**/" >>confdefs.h
21953
21954
21955fi
21956
21957
21958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21959$as_echo_n "checking for library containing clock_gettime... " >&6; }
21960if ${ac_cv_search_clock_gettime+:} false; then :
21961  $as_echo_n "(cached) " >&6
21962else
21963  ac_func_search_save_LIBS=$LIBS
21964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21965/* end confdefs.h.  */
21966
21967/* Override any GCC internal prototype to avoid an error.
21968   Use char because int might match the return type of a GCC
21969   builtin and then its argument prototype would still apply.  */
21970#ifdef __cplusplus
21971extern "C"
21972#endif
21973char clock_gettime ();
21974int
21975main ()
21976{
21977return clock_gettime ();
21978  ;
21979  return 0;
21980}
21981_ACEOF
21982for ac_lib in '' rt; do
21983  if test -z "$ac_lib"; then
21984    ac_res="none required"
21985  else
21986    ac_res=-l$ac_lib
21987    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21988  fi
21989  if ac_fn_c_try_link "$LINENO"; then :
21990  ac_cv_search_clock_gettime=$ac_res
21991fi
21992rm -f core conftest.err conftest.$ac_objext \
21993    conftest$ac_exeext
21994  if ${ac_cv_search_clock_gettime+:} false; then :
21995  break
21996fi
21997done
21998if ${ac_cv_search_clock_gettime+:} false; then :
21999
22000else
22001  ac_cv_search_clock_gettime=no
22002fi
22003rm conftest.$ac_ext
22004LIBS=$ac_func_search_save_LIBS
22005fi
22006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22007$as_echo "$ac_cv_search_clock_gettime" >&6; }
22008ac_res=$ac_cv_search_clock_gettime
22009if test "$ac_res" != no; then :
22010  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22011
22012else
22013
22014    as_fn_error $? "unable to find the clock_gettime() function" "$LINENO" 5
22015
22016fi
22017
22018
22019LIB_UUID=
22020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
22021$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
22022if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
22023  $as_echo_n "(cached) " >&6
22024else
22025  ac_check_lib_save_LIBS=$LIBS
22026LIBS="-luuid  $LIBS"
22027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22028/* end confdefs.h.  */
22029
22030/* Override any GCC internal prototype to avoid an error.
22031   Use char because int might match the return type of a GCC
22032   builtin and then its argument prototype would still apply.  */
22033#ifdef __cplusplus
22034extern "C"
22035#endif
22036char uuid_generate ();
22037int
22038main ()
22039{
22040return uuid_generate ();
22041  ;
22042  return 0;
22043}
22044_ACEOF
22045if ac_fn_c_try_link "$LINENO"; then :
22046  ac_cv_lib_uuid_uuid_generate=yes
22047else
22048  ac_cv_lib_uuid_uuid_generate=no
22049fi
22050rm -f core conftest.err conftest.$ac_objext \
22051    conftest$ac_exeext conftest.$ac_ext
22052LIBS=$ac_check_lib_save_LIBS
22053fi
22054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
22055$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
22056if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
22057
22058    LIB_UUID="-luuid"
22059
22060$as_echo "#define HAVE_LIBUUID /**/" >>confdefs.h
22061
22062
22063fi
22064
22065
22066cant_find_sigvec=no
22067if ${cyrus_cv_sigveclib+:} false; then :
22068  $as_echo_n "(cached) " >&6
22069else
22070
22071  ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
22072if test "x$ac_cv_func_sigvec" = xyes; then :
22073
22074        cyrus_cv_sigveclib=""
22075
22076else
22077
22078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigvec in -lBSD" >&5
22079$as_echo_n "checking for sigvec in -lBSD... " >&6; }
22080if ${ac_cv_lib_BSD_sigvec+:} false; then :
22081  $as_echo_n "(cached) " >&6
22082else
22083  ac_check_lib_save_LIBS=$LIBS
22084LIBS="-lBSD  $LIBS"
22085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086/* end confdefs.h.  */
22087
22088/* Override any GCC internal prototype to avoid an error.
22089   Use char because int might match the return type of a GCC
22090   builtin and then its argument prototype would still apply.  */
22091#ifdef __cplusplus
22092extern "C"
22093#endif
22094char sigvec ();
22095int
22096main ()
22097{
22098return sigvec ();
22099  ;
22100  return 0;
22101}
22102_ACEOF
22103if ac_fn_c_try_link "$LINENO"; then :
22104  ac_cv_lib_BSD_sigvec=yes
22105else
22106  ac_cv_lib_BSD_sigvec=no
22107fi
22108rm -f core conftest.err conftest.$ac_objext \
22109    conftest$ac_exeext conftest.$ac_ext
22110LIBS=$ac_check_lib_save_LIBS
22111fi
22112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_BSD_sigvec" >&5
22113$as_echo "$ac_cv_lib_BSD_sigvec" >&6; }
22114if test "x$ac_cv_lib_BSD_sigvec" = xyes; then :
22115  cyrus_cv_sigveclib="-lBSD"
22116else
22117
22118        SAVE_LDFLAGS="$LDFLAGS"
22119        LDFLAGS="-L/usr/ucblib -R/usr/ucblib $LDFLAGS"
22120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigvec in -lucb" >&5
22121$as_echo_n "checking for sigvec in -lucb... " >&6; }
22122if ${ac_cv_lib_ucb_sigvec+:} false; then :
22123  $as_echo_n "(cached) " >&6
22124else
22125  ac_check_lib_save_LIBS=$LIBS
22126LIBS="-lucb  $LIBS"
22127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128/* end confdefs.h.  */
22129
22130/* Override any GCC internal prototype to avoid an error.
22131   Use char because int might match the return type of a GCC
22132   builtin and then its argument prototype would still apply.  */
22133#ifdef __cplusplus
22134extern "C"
22135#endif
22136char sigvec ();
22137int
22138main ()
22139{
22140return sigvec ();
22141  ;
22142  return 0;
22143}
22144_ACEOF
22145if ac_fn_c_try_link "$LINENO"; then :
22146  ac_cv_lib_ucb_sigvec=yes
22147else
22148  ac_cv_lib_ucb_sigvec=no
22149fi
22150rm -f core conftest.err conftest.$ac_objext \
22151    conftest$ac_exeext conftest.$ac_ext
22152LIBS=$ac_check_lib_save_LIBS
22153fi
22154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_sigvec" >&5
22155$as_echo "$ac_cv_lib_ucb_sigvec" >&6; }
22156if test "x$ac_cv_lib_ucb_sigvec" = xyes; then :
22157
22158            cyrus_cv_sigveclib="-lc -L/usr/ucblib -R/usr/ucblib -lucb"
22159else
22160   cant_find_sigvec=yes
22161fi
22162
22163    LDFLAGS="$SAVE_LDFLAGS"
22164fi
22165
22166
22167fi
22168
22169
22170fi
22171
22172
22173
22174# ok, we still look for this stuff because of checking groups, but
22175# all authentication goes through SASL
22176# Check whether --enable-afs was given.
22177if test "${enable_afs+set}" = set; then :
22178  enableval=$enable_afs;
22179fi
22180
22181
22182
22183# Check whether --with-afs-libdir was given.
22184if test "${with_afs_libdir+set}" = set; then :
22185  withval=$with_afs_libdir; afs_libdir="${withval}"
22186else
22187  afs_libdir="/usr/lib"
22188fi
22189
22190
22191
22192# Check whether --with-afs-incdir was given.
22193if test "${with_afs_incdir+set}" = set; then :
22194  withval=$with_afs_incdir; afs_incdir="${withval}"
22195else
22196  afs_incdir="/usr/include"
22197fi
22198
22199
22200
22201# Check whether --with-ldap was given.
22202if test "${with_ldap+set}" = set; then :
22203  withval=$with_ldap; with_ldap="${withval}"
22204else
22205  with_ldap="no"
22206fi
22207
22208
22209# Check whether --enable-krb5afspts was given.
22210if test "${enable_krb5afspts+set}" = set; then :
22211  enableval=$enable_krb5afspts;
22212fi
22213
22214
22215if test "x$enable_afs" = "xyes"; then
22216# krb5afspts is only valid if AFS is enabled, so check inside here.
22217    if test "x$enable_krb5afspts" = "xyes"; then :
22218  SASL_GSSAPI_LIBS_SET="yes"
22219
22220
22221$as_echo "#define AFSPTS_USE_KRB5 /**/" >>confdefs.h
22222
22223
22224fi
22225
22226    SAVE_CFLAGS="$CFLAGS"
22227    CFLAGS="${CFLAGS} -I${with_afs_incdir}"
22228    AFS_LIBS="${with_afs_libdir}/afs/libkauth.a ${with_afs_libdir}/afs/libprot.a  ${with_afs_libdir}/afs/libauth.a ${with_afs_libdir}/afs/libsys.a ${with_afs_libdir}/librxkad.a ${with_afs_libdir}/librx.a ${with_afs_libdir}/afs/libsys.a ${with_afs_libdir}/libubik.a ${with_afs_libdir}/afs/util.a ${with_afs_libdir}/afs/libafscom_err.a -lresolv"
22229    if test -f ${with_afs_libdir}/afs/liblwp.a; then
22230      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/afs/liblwp.a"
22231    elif test -f ${with_afs_libdir}/liblwp.a; then
22232      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/liblwp.a"
22233    fi
22234    if test -f ${with_afs_libdir}/afs/libaudit.a; then
22235      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/afs/libaudit.a"
22236    fi
22237    if test -f /usr/ucblib/libucb.a; then
22238
22239  # this is CMU ADD LIBPATH TO
22240  if test "$andrew_cv_runpath_switch" = "none" ; then
22241        AFS_LDFLAGS="-L/usr/ucblib ${AFS_LDFLAGS}"
22242  else
22243        AFS_LDFLAGS="-L/usr/ucblib ${AFS_LDFLAGS} $andrew_cv_runpath_switch/usr/ucblib"
22244  fi
22245
22246      AFS_LIBS="$AFS_LIBS -lc -lucb"
22247    fi
22248    if test -f ${with_afs_libdir}/afs/libdes.a; then
22249      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/afs/libdes.a"
22250    else
22251      AFS_LIBS="$AFS_LIBS -ldes"
22252    fi
22253
22254    if ${cyrus_cv_afs_sigvec+:} false; then :
22255  $as_echo_n "(cached) " >&6
22256else
22257
22258        SAVE_LIBS="$LIBS"
22259        LIBS="${with_afs_libdir}/liblwp.a"
22260        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AFS libraries need sigvec" >&5
22261$as_echo_n "checking if AFS libraries need sigvec... " >&6; }
22262                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263/* end confdefs.h.  */
22264IOMGR_Initialize();
22265int
22266main ()
22267{
22268IOMGR_Initialize()
22269  ;
22270  return 0;
22271}
22272_ACEOF
22273if ac_fn_c_try_link "$LINENO"; then :
22274
22275                                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22276$as_echo "no" >&6; }
22277                        cyrus_cv_afs_sigvec="no"
22278
22279else
22280
22281                                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22282$as_echo "yes" >&6; }
22283                        cyrus_cv_afs_sigvec="yes"
22284
22285fi
22286rm -f core conftest.err conftest.$ac_objext \
22287    conftest$ac_exeext conftest.$ac_ext
22288
22289fi
22290
22291    if test "$cyrus_cv_afs_sigvec" = yes; then
22292      if test "$cant_find_sigvec" = yes; then
22293        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a sigvec for AFS libraries which seem to need one." >&5
22294$as_echo "$as_me: WARNING: Can not find a sigvec for AFS libraries which seem to need one." >&2;}
22295      else
22296        AFS_LIBS="${AFS_LIBS} $cyrus_cv_sigveclib"
22297
22298$as_echo "#define HAVE_AFSKRB /**/" >>confdefs.h
22299
22300      fi
22301    else
22302      AFS_LIBS="${AFS_LIBS}"
22303
22304$as_echo "#define HAVE_AFSKRB /**/" >>confdefs.h
22305
22306    fi
22307    LIBS="$SAVE_LIBS"
22308    CFLAGS="$SAVE_CFLAGS"
22309
22310
22311fi
22312 if grep HAVE_AFSKRB confdefs.h >/dev/null; then
22313  USE_AFSKRB_TRUE=
22314  USE_AFSKRB_FALSE='#'
22315else
22316  USE_AFSKRB_TRUE='#'
22317  USE_AFSKRB_FALSE=
22318fi
22319
22320
22321have_ldap=no
22322LDAP_CPPFLAGS=
22323LDAP_LDFLAGS=
22324LDAP_LIBS=
22325
22326case "x$with_ldap" in
22327xno)
22328    # default args or --without-ldap
22329    # do not try to enable
22330    ;;
22331xyes)
22332    # --with-ldap
22333    # try to enable, search in default system directories
22334    ldap_cppflags=
22335    ldap_ldflags=
22336    ;;
22337*)
22338    # --with-ldap=DIR
22339    # try to enable, search in given install directory
22340    if test "x$with_ldap" != "x" -a -d "$with_ldap"; then
22341        ldap_cppflags="-I${with_ldap}/include"
22342        ldap_ldflags="-L${with_ldap}/lib"
22343        with_ldap=yes
22344    else
22345        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling LDAP - no include files found" >&5
22346$as_echo "$as_me: WARNING: Disabling LDAP - no include files found" >&2;}
22347        with_ldap=no
22348    fi
22349esac
22350
22351if test $with_ldap = yes; then
22352    save_CPPFLAGS="$CPPFLAGS"
22353    save_LDFLAGS="$LDFLAGS"
22354    CPPFLAGS="$CPPFLAGS $ldap_cppflags"
22355    LDFLAGS="$LDFLAGS $ldap_ldflags"
22356
22357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
22358$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
22359if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
22360  $as_echo_n "(cached) " >&6
22361else
22362  ac_check_lib_save_LIBS=$LIBS
22363LIBS="-lldap -llber $LIBS"
22364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22365/* end confdefs.h.  */
22366
22367/* Override any GCC internal prototype to avoid an error.
22368   Use char because int might match the return type of a GCC
22369   builtin and then its argument prototype would still apply.  */
22370#ifdef __cplusplus
22371extern "C"
22372#endif
22373char ldap_initialize ();
22374int
22375main ()
22376{
22377return ldap_initialize ();
22378  ;
22379  return 0;
22380}
22381_ACEOF
22382if ac_fn_c_try_link "$LINENO"; then :
22383  ac_cv_lib_ldap_ldap_initialize=yes
22384else
22385  ac_cv_lib_ldap_ldap_initialize=no
22386fi
22387rm -f core conftest.err conftest.$ac_objext \
22388    conftest$ac_exeext conftest.$ac_ext
22389LIBS=$ac_check_lib_save_LIBS
22390fi
22391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
22392$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
22393if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
22394
22395
22396$as_echo "#define HAVE_LDAP /**/" >>confdefs.h
22397
22398        LDAP_CPPFLAGS="$ldap_cppflags"
22399        LDAP_LDFLAGS="$ldap_ldflags"
22400        LDAP_LIBS="-lldap -llber"
22401        have_ldap=yes
22402
22403fi
22404
22405
22406    CPPFLAGS="$save_CPPFLAGS"
22407    LDFLAGS="$save_LDFLAGS"
22408fi
22409
22410
22411
22412 if test "$have_ldap" = "yes"; then
22413  HAVE_LDAP_TRUE=
22414  HAVE_LDAP_FALSE='#'
22415else
22416  HAVE_LDAP_TRUE='#'
22417  HAVE_LDAP_FALSE=
22418fi
22419
22420
22421 if test "x$enable_afs" = "xyes" -o "$have_ldap" = "yes"; then
22422  PTCLIENT_TRUE=
22423  PTCLIENT_FALSE='#'
22424else
22425  PTCLIENT_TRUE='#'
22426  PTCLIENT_FALSE=
22427fi
22428
22429
22430
22431# Check whether --with-clamav was given.
22432if test "${with_clamav+set}" = set; then :
22433  withval=$with_clamav;
22434fi
22435
22436if test "x$with_clamav" != "xno"; then :
22437
22438pkg_failed=no
22439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLAMAV" >&5
22440$as_echo_n "checking for CLAMAV... " >&6; }
22441
22442if test -n "$CLAMAV_CFLAGS"; then
22443    pkg_cv_CLAMAV_CFLAGS="$CLAMAV_CFLAGS"
22444 elif test -n "$PKG_CONFIG"; then
22445    if test -n "$PKG_CONFIG" && \
22446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclamav\""; } >&5
22447  ($PKG_CONFIG --exists --print-errors "libclamav") 2>&5
22448  ac_status=$?
22449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22450  test $ac_status = 0; }; then
22451  pkg_cv_CLAMAV_CFLAGS=`$PKG_CONFIG --cflags "libclamav" 2>/dev/null`
22452		      test "x$?" != "x0" && pkg_failed=yes
22453else
22454  pkg_failed=yes
22455fi
22456 else
22457    pkg_failed=untried
22458fi
22459if test -n "$CLAMAV_LIBS"; then
22460    pkg_cv_CLAMAV_LIBS="$CLAMAV_LIBS"
22461 elif test -n "$PKG_CONFIG"; then
22462    if test -n "$PKG_CONFIG" && \
22463    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclamav\""; } >&5
22464  ($PKG_CONFIG --exists --print-errors "libclamav") 2>&5
22465  ac_status=$?
22466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22467  test $ac_status = 0; }; then
22468  pkg_cv_CLAMAV_LIBS=`$PKG_CONFIG --libs "libclamav" 2>/dev/null`
22469		      test "x$?" != "x0" && pkg_failed=yes
22470else
22471  pkg_failed=yes
22472fi
22473 else
22474    pkg_failed=untried
22475fi
22476
22477
22478
22479if test $pkg_failed = yes; then
22480   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481$as_echo "no" >&6; }
22482
22483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22484        _pkg_short_errors_supported=yes
22485else
22486        _pkg_short_errors_supported=no
22487fi
22488        if test $_pkg_short_errors_supported = yes; then
22489	        CLAMAV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclamav" 2>&1`
22490        else
22491	        CLAMAV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclamav" 2>&1`
22492        fi
22493	# Put the nasty error message in config.log where it belongs
22494	echo "$CLAMAV_PKG_ERRORS" >&5
22495
22496	with_clamav=no
22497elif test $pkg_failed = untried; then
22498     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22499$as_echo "no" >&6; }
22500	with_clamav=no
22501else
22502	CLAMAV_CFLAGS=$pkg_cv_CLAMAV_CFLAGS
22503	CLAMAV_LIBS=$pkg_cv_CLAMAV_LIBS
22504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22505$as_echo "yes" >&6; }
22506
22507$as_echo "#define HAVE_CLAMAV /**/" >>confdefs.h
22508
22509		  with_clamav=yes
22510fi
22511fi
22512
22513# Check whether --enable-server was given.
22514if test "${enable_server+set}" = set; then :
22515  enableval=$enable_server;
22516fi
22517
22518 if test "$enable_server" != "no"; then
22519  SERVER_TRUE=
22520  SERVER_FALSE='#'
22521else
22522  SERVER_TRUE='#'
22523  SERVER_FALSE=
22524fi
22525
22526# We always output a server makefile (just because we can)
22527
22528
22529# Check whether --with-krb was given.
22530if test "${with_krb+set}" = set; then :
22531  withval=$with_krb; with_krb="$withval"
22532else
22533  with_krb="no"
22534fi
22535
22536
22537
22538# Check whether --with-krbimpl was given.
22539if test "${with_krbimpl+set}" = set; then :
22540  withval=$with_krbimpl; with_krbimpl="$withval"
22541else
22542  with_krbimpl="kth"
22543fi
22544
22545
22546# Check whether --enable-statickrb was given.
22547if test "${enable_statickrb+set}" = set; then :
22548  enableval=$enable_statickrb; with_statickrb="yes"
22549else
22550  with_statickrb="no"
22551fi
22552
22553
22554
22555# Check whether --with-krb5-config was given.
22556if test "${with_krb5_config+set}" = set; then :
22557  withval=$with_krb5_config; with_krb5config="$withval"
22558else
22559  with_krb5config="no"
22560fi
22561
22562
22563if test "$with_krb5config" != "no"; then
22564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $with_krb5config works" >&5
22565$as_echo_n "checking $with_krb5config works... " >&6; }
22566
22567        if (exec >&5 2>&5 ; $with_krb5config --libs --cflags; exit $?) then
22568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22569$as_echo "yes" >&6; }
22570    else
22571        as_fn_error $? "\`$with_krb5config --libs --cflags' doesn't work, aborting" "$LINENO" 5
22572    fi
22573
22574    KRB5_CFLAGS="`$with_krb5config --cflags`"
22575    KRB5_LDFLAGS="`$with_krb5config --libs`"
22576
22577    LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
22578    CFLAGS="$KRB5_CFLAGS $CFLAGS"
22579fi
22580
22581
22582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
22583$as_echo_n "checking for res_search in -lresolv... " >&6; }
22584if ${ac_cv_lib_resolv_res_search+:} false; then :
22585  $as_echo_n "(cached) " >&6
22586else
22587  ac_check_lib_save_LIBS=$LIBS
22588LIBS="-lresolv  $LIBS"
22589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590/* end confdefs.h.  */
22591
22592/* Override any GCC internal prototype to avoid an error.
22593   Use char because int might match the return type of a GCC
22594   builtin and then its argument prototype would still apply.  */
22595#ifdef __cplusplus
22596extern "C"
22597#endif
22598char res_search ();
22599int
22600main ()
22601{
22602return res_search ();
22603  ;
22604  return 0;
22605}
22606_ACEOF
22607if ac_fn_c_try_link "$LINENO"; then :
22608  ac_cv_lib_resolv_res_search=yes
22609else
22610  ac_cv_lib_resolv_res_search=no
22611fi
22612rm -f core conftest.err conftest.$ac_objext \
22613    conftest$ac_exeext conftest.$ac_ext
22614LIBS=$ac_check_lib_save_LIBS
22615fi
22616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
22617$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
22618if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
22619  cat >>confdefs.h <<_ACEOF
22620#define HAVE_LIBRESOLV 1
22621_ACEOF
22622
22623  LIBS="-lresolv $LIBS"
22624
22625fi
22626
22627
22628if test "$with_statickrb" = "yes" -a ! -d "$with_krb"; then
22629      as_fn_error $? "--enable-statickrb specified but --with-krb did not specify a valid directory" "$LINENO" 5
22630fi
22631
22632if test "$with_krb" != "no"; then
22633
22634# Check whether --with-krbdes was given.
22635if test "${with_krbdes+set}" = set; then :
22636  withval=$with_krbdes;
22637else
22638  with_krbdes="yes"
22639fi
22640
22641if test "$with_krbdes" = "yes"; then
22642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_ecb_encrypt in -ldes" >&5
22643$as_echo_n "checking for des_ecb_encrypt in -ldes... " >&6; }
22644if ${ac_cv_lib_des_des_ecb_encrypt+:} false; then :
22645  $as_echo_n "(cached) " >&6
22646else
22647  ac_check_lib_save_LIBS=$LIBS
22648LIBS="-ldes  $LIBS"
22649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650/* end confdefs.h.  */
22651
22652/* Override any GCC internal prototype to avoid an error.
22653   Use char because int might match the return type of a GCC
22654   builtin and then its argument prototype would still apply.  */
22655#ifdef __cplusplus
22656extern "C"
22657#endif
22658char des_ecb_encrypt ();
22659int
22660main ()
22661{
22662return des_ecb_encrypt ();
22663  ;
22664  return 0;
22665}
22666_ACEOF
22667if ac_fn_c_try_link "$LINENO"; then :
22668  ac_cv_lib_des_des_ecb_encrypt=yes
22669else
22670  ac_cv_lib_des_des_ecb_encrypt=no
22671fi
22672rm -f core conftest.err conftest.$ac_objext \
22673    conftest$ac_exeext conftest.$ac_ext
22674LIBS=$ac_check_lib_save_LIBS
22675fi
22676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_ecb_encrypt" >&5
22677$as_echo "$ac_cv_lib_des_des_ecb_encrypt" >&6; }
22678if test "x$ac_cv_lib_des_des_ecb_encrypt" = xyes; then :
22679  if test "$with_statickrb" = "yes"; then
22680          KRB_LIBS="$with_krb/lib/libdes.a"
22681      else
22682          KRB_LIBS="-ldes"
22683      fi
22684else
22685  as_fn_error $? "The Kerberos DES library is required for Kerberos support." "$LINENO" 5
22686fi
22687
22688fi
22689fi
22690
22691if test -d ${with_krb}; then
22692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
22693$as_echo_n "checking for Kerberos includes... " >&6; }
22694if ${cyrus_cv_krbinclude+:} false; then :
22695  $as_echo_n "(cached) " >&6
22696else
22697
22698     for krbhloc in include/kerberosIV include
22699     do
22700       if test -f ${with_krb}/${krbhloc}/krb.h ; then
22701         cyrus_cv_krbinclude=${with_krb}/${krbhloc}
22702         break
22703       fi
22704     done
22705
22706fi
22707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_krbinclude" >&5
22708$as_echo "$cyrus_cv_krbinclude" >&6; }
22709
22710   if test -n "${cyrus_cv_krbinclude}"; then
22711     CPPFLAGS="$CPPFLAGS -I${cyrus_cv_krbinclude}"
22712   fi
22713
22714  # this is CMU ADD LIBPATH
22715  if test "$andrew_cv_runpath_switch" = "none" ; then
22716        LDFLAGS="-L${with_krb}/lib ${LDFLAGS}"
22717  else
22718        LDFLAGS="-L${with_krb}/lib $andrew_cv_runpath_switch${with_krb}/lib ${LDFLAGS}"
22719  fi
22720
22721fi
22722
22723if test "$with_krbimpl" != "kth"; then
22724  KRBLIB="krb4"
22725else
22726  KRBLIB="krb"
22727fi
22728
22729if test "$with_des" != no; then
22730  ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22731if test "x$ac_cv_header_krb_h" = xyes; then :
22732  as_ac_Lib=`$as_echo "ac_cv_lib_${KRBLIB}''_krb_mk_priv" | $as_tr_sh`
22733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -l${KRBLIB}" >&5
22734$as_echo_n "checking for krb_mk_priv in -l${KRBLIB}... " >&6; }
22735if eval \${$as_ac_Lib+:} false; then :
22736  $as_echo_n "(cached) " >&6
22737else
22738  ac_check_lib_save_LIBS=$LIBS
22739LIBS="-l${KRBLIB} $KRB_LIBS $LIBS"
22740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22741/* end confdefs.h.  */
22742
22743/* Override any GCC internal prototype to avoid an error.
22744   Use char because int might match the return type of a GCC
22745   builtin and then its argument prototype would still apply.  */
22746#ifdef __cplusplus
22747extern "C"
22748#endif
22749char krb_mk_priv ();
22750int
22751main ()
22752{
22753return krb_mk_priv ();
22754  ;
22755  return 0;
22756}
22757_ACEOF
22758if ac_fn_c_try_link "$LINENO"; then :
22759  eval "$as_ac_Lib=yes"
22760else
22761  eval "$as_ac_Lib=no"
22762fi
22763rm -f core conftest.err conftest.$ac_objext \
22764    conftest$ac_exeext conftest.$ac_ext
22765LIBS=$ac_check_lib_save_LIBS
22766fi
22767eval ac_res=\$$as_ac_Lib
22768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22769$as_echo "$ac_res" >&6; }
22770if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22771  if test "$with_statickrb" = "yes"; then
22772          KRB_LIBS="$KRB_LIBS $with_krb/lib/lib${KRBLIB}.a"
22773      else
22774          KRB_LIBS="$KRB_LIBS -l${KRBLIB}"
22775      fi
22776else
22777  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
22778$as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}; krb4=no
22779fi
22780
22781else
22782  krb4=no
22783fi
22784
22785
22786else
22787  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
22788$as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
22789  krb4=no
22790fi
22791
22792if test "${krb4}" != no; then
22793
22794$as_echo "#define HAVE_KRB /**/" >>confdefs.h
22795
22796fi
22797
22798LIBS="$KRB_LIBS $LIBS"
22799
22800SASL_GSSAPI_LIBS_SET="yes"
22801
22802
22803
22804# Check whether --with-openssl was given.
22805if test "${with_openssl+set}" = set; then :
22806  withval=$with_openssl; with_ssl="${withval}"
22807fi
22808
22809
22810SSL_CPPFLAGS=
22811SSL_LIBS=
22812
22813case "x$with_ssl" in
22814xno)
22815    # --without-openssl
22816    # do not try to enable
22817    ;;
22818x|xyes)
22819    # default args or --with-openssl
22820    #
22821    # Try pkg-config - OpenSSL >= 0.9.6 has openssl.pc
22822
22823pkg_failed=no
22824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
22825$as_echo_n "checking for OPENSSL... " >&6; }
22826
22827if test -n "$OPENSSL_CFLAGS"; then
22828    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
22829 elif test -n "$PKG_CONFIG"; then
22830    if test -n "$PKG_CONFIG" && \
22831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
22832  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
22833  ac_status=$?
22834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22835  test $ac_status = 0; }; then
22836  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
22837		      test "x$?" != "x0" && pkg_failed=yes
22838else
22839  pkg_failed=yes
22840fi
22841 else
22842    pkg_failed=untried
22843fi
22844if test -n "$OPENSSL_LIBS"; then
22845    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
22846 elif test -n "$PKG_CONFIG"; then
22847    if test -n "$PKG_CONFIG" && \
22848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
22849  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
22850  ac_status=$?
22851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22852  test $ac_status = 0; }; then
22853  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
22854		      test "x$?" != "x0" && pkg_failed=yes
22855else
22856  pkg_failed=yes
22857fi
22858 else
22859    pkg_failed=untried
22860fi
22861
22862
22863
22864if test $pkg_failed = yes; then
22865   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22866$as_echo "no" >&6; }
22867
22868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22869        _pkg_short_errors_supported=yes
22870else
22871        _pkg_short_errors_supported=no
22872fi
22873        if test $_pkg_short_errors_supported = yes; then
22874	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
22875        else
22876	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
22877        fi
22878	# Put the nasty error message in config.log where it belongs
22879	echo "$OPENSSL_PKG_ERRORS" >&5
22880
22881	as_fn_error $? "Package requirements (openssl) were not met:
22882
22883$OPENSSL_PKG_ERRORS
22884
22885Consider adjusting the PKG_CONFIG_PATH environment variable if you
22886installed software in a non-standard prefix.
22887
22888Alternatively, you may set the environment variables OPENSSL_CFLAGS
22889and OPENSSL_LIBS to avoid the need to call pkg-config.
22890See the pkg-config man page for more details." "$LINENO" 5
22891elif test $pkg_failed = untried; then
22892     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22893$as_echo "no" >&6; }
22894	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22896as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22897is in your PATH or set the PKG_CONFIG environment variable to the full
22898path to pkg-config.
22899
22900Alternatively, you may set the environment variables OPENSSL_CFLAGS
22901and OPENSSL_LIBS to avoid the need to call pkg-config.
22902See the pkg-config man page for more details.
22903
22904To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22905See \`config.log' for more details" "$LINENO" 5; }
22906else
22907	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
22908	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
22909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22910$as_echo "yes" >&6; }
22911	with_ssl=yes
22912fi
22913    ssl_cppflags="$OPENSSL_CFLAGS"
22914    ssl_ldflags="$OPENSSL_LIBS"
22915    #
22916    # If pkg-config doesn't work, search in default system directories
22917    ;;
22918*)
22919    # --with-openssl=DIR
22920    # try to enable, search in given install directory
22921    if test -d "$with_ssl"; then
22922        ssl_cppflags="-I${with_ssl}/include"
22923        ssl_ldflags=
22924        if test -d "${with_ssl}/lib64"; then
22925
22926  # this is CMU ADD LIBPATH TO
22927  if test "$andrew_cv_runpath_switch" = "none" ; then
22928        ssl_ldflags="-L${with_ssl}/lib64 ${ssl_ldflags}"
22929  else
22930        ssl_ldflags="-L${with_ssl}/lib64 ${ssl_ldflags} $andrew_cv_runpath_switch${with_ssl}/lib64"
22931  fi
22932
22933        else
22934
22935  # this is CMU ADD LIBPATH TO
22936  if test "$andrew_cv_runpath_switch" = "none" ; then
22937        ssl_ldflags="-L${with_ssl}/lib ${ssl_ldflags}"
22938  else
22939        ssl_ldflags="-L${with_ssl}/lib ${ssl_ldflags} $andrew_cv_runpath_switch${with_ssl}/lib"
22940  fi
22941
22942        fi
22943        with_ssl=yes
22944    else
22945        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling OpenSSL - no include files found" >&5
22946$as_echo "$as_me: WARNING: Disabling OpenSSL - no include files found" >&2;}
22947        with_ssl=no
22948    fi
22949esac
22950
22951if test "$with_ssl" != "no"; then
22952    save_CPPFLAGS="$CPPFLAGS"
22953    save_LDFLAGS="$LDFLAGS"
22954    CPPFLAGS="$CPPFLAGS $ssl_cppflags"
22955    LDFLAGS="$LDFLAGS $ssl_ldflags"
22956
22957    ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
22958if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
22959
22960        with_ssl=yes
22961
22962else
22963
22964        with_ssl=no
22965
22966fi
22967
22968
22969
22970            ssl_libs=
22971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
22972$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
22973if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
22974  $as_echo_n "(cached) " >&6
22975else
22976  ac_check_lib_save_LIBS=$LIBS
22977LIBS="-lrsaref  $LIBS"
22978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22979/* end confdefs.h.  */
22980
22981/* Override any GCC internal prototype to avoid an error.
22982   Use char because int might match the return type of a GCC
22983   builtin and then its argument prototype would still apply.  */
22984#ifdef __cplusplus
22985extern "C"
22986#endif
22987char RSAPublicEncrypt ();
22988int
22989main ()
22990{
22991return RSAPublicEncrypt ();
22992  ;
22993  return 0;
22994}
22995_ACEOF
22996if ac_fn_c_try_link "$LINENO"; then :
22997  ac_cv_lib_rsaref_RSAPublicEncrypt=yes
22998else
22999  ac_cv_lib_rsaref_RSAPublicEncrypt=no
23000fi
23001rm -f core conftest.err conftest.$ac_objext \
23002    conftest$ac_exeext conftest.$ac_ext
23003LIBS=$ac_check_lib_save_LIBS
23004fi
23005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
23006$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
23007if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
23008
23009       ssl_libs="-lRSAglue -lrsaref"
23010
23011else
23012
23013       # whatever, we do not care
23014       :
23015
23016fi
23017
23018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_accept in -lcrypto" >&5
23019$as_echo_n "checking for BIO_accept in -lcrypto... " >&6; }
23020if ${ac_cv_lib_crypto_BIO_accept+:} false; then :
23021  $as_echo_n "(cached) " >&6
23022else
23023  ac_check_lib_save_LIBS=$LIBS
23024LIBS="-lcrypto $ssl_libs $LIBS"
23025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026/* end confdefs.h.  */
23027
23028/* Override any GCC internal prototype to avoid an error.
23029   Use char because int might match the return type of a GCC
23030   builtin and then its argument prototype would still apply.  */
23031#ifdef __cplusplus
23032extern "C"
23033#endif
23034char BIO_accept ();
23035int
23036main ()
23037{
23038return BIO_accept ();
23039  ;
23040  return 0;
23041}
23042_ACEOF
23043if ac_fn_c_try_link "$LINENO"; then :
23044  ac_cv_lib_crypto_BIO_accept=yes
23045else
23046  ac_cv_lib_crypto_BIO_accept=no
23047fi
23048rm -f core conftest.err conftest.$ac_objext \
23049    conftest$ac_exeext conftest.$ac_ext
23050LIBS=$ac_check_lib_save_LIBS
23051fi
23052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_accept" >&5
23053$as_echo "$ac_cv_lib_crypto_BIO_accept" >&6; }
23054if test "x$ac_cv_lib_crypto_BIO_accept" = xyes; then :
23055
23056        ssl_libs="-lcrypto $ssl_libs"
23057
23058else
23059
23060        with_ssl=no
23061
23062fi
23063
23064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
23065$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
23066if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
23067  $as_echo_n "(cached) " >&6
23068else
23069  ac_check_lib_save_LIBS=$LIBS
23070LIBS="-lssl $ssl_libs $LIBS"
23071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23072/* end confdefs.h.  */
23073
23074/* Override any GCC internal prototype to avoid an error.
23075   Use char because int might match the return type of a GCC
23076   builtin and then its argument prototype would still apply.  */
23077#ifdef __cplusplus
23078extern "C"
23079#endif
23080char SSL_CTX_new ();
23081int
23082main ()
23083{
23084return SSL_CTX_new ();
23085  ;
23086  return 0;
23087}
23088_ACEOF
23089if ac_fn_c_try_link "$LINENO"; then :
23090  ac_cv_lib_ssl_SSL_CTX_new=yes
23091else
23092  ac_cv_lib_ssl_SSL_CTX_new=no
23093fi
23094rm -f core conftest.err conftest.$ac_objext \
23095    conftest$ac_exeext conftest.$ac_ext
23096LIBS=$ac_check_lib_save_LIBS
23097fi
23098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
23099$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
23100if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
23101
23102        ssl_libs="-lssl $ssl_libs"
23103
23104else
23105
23106        with_ssl=no
23107
23108fi
23109
23110
23111    if test "$with_ssl" = "no"; then
23112        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SSL - no library files found" >&5
23113$as_echo "$as_me: WARNING: Disabling SSL - no library files found" >&2;}
23114    fi
23115    CPPFLAGS="$save_CPPFLAGS"
23116    LDFLAGS="$save_LDFLAGS"
23117fi
23118
23119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl" >&5
23120$as_echo_n "checking for ssl... " >&6; }
23121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
23122$as_echo "$with_ssl" >&6; }
23123
23124if test "$with_ssl" != "no"; then
23125    SSL_CPPFLAGS="$ssl_cppflags"
23126    SSL_LIBS="$ssl_ldflags $ssl_libs"
23127
23128$as_echo "#define HAVE_SSL /**/" >>confdefs.h
23129
23130    if test "${krb4}" != no; then
23131
23132$as_echo "#define OPENSSL_ENABLE_OLD_DES_SUPPORT /**/" >>confdefs.h
23133
23134
23135$as_echo "#define OPENSSL_DES_LIBDES_COMPATIBILITY /**/" >>confdefs.h
23136
23137    fi
23138
23139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_alpn_select_cb in -lssl" >&5
23140$as_echo_n "checking for SSL_CTX_set_alpn_select_cb in -lssl... " >&6; }
23141if ${ac_cv_lib_ssl_SSL_CTX_set_alpn_select_cb+:} false; then :
23142  $as_echo_n "(cached) " >&6
23143else
23144  ac_check_lib_save_LIBS=$LIBS
23145LIBS="-lssl  $LIBS"
23146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23147/* end confdefs.h.  */
23148
23149/* Override any GCC internal prototype to avoid an error.
23150   Use char because int might match the return type of a GCC
23151   builtin and then its argument prototype would still apply.  */
23152#ifdef __cplusplus
23153extern "C"
23154#endif
23155char SSL_CTX_set_alpn_select_cb ();
23156int
23157main ()
23158{
23159return SSL_CTX_set_alpn_select_cb ();
23160  ;
23161  return 0;
23162}
23163_ACEOF
23164if ac_fn_c_try_link "$LINENO"; then :
23165  ac_cv_lib_ssl_SSL_CTX_set_alpn_select_cb=yes
23166else
23167  ac_cv_lib_ssl_SSL_CTX_set_alpn_select_cb=no
23168fi
23169rm -f core conftest.err conftest.$ac_objext \
23170    conftest$ac_exeext conftest.$ac_ext
23171LIBS=$ac_check_lib_save_LIBS
23172fi
23173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_alpn_select_cb" >&5
23174$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_alpn_select_cb" >&6; }
23175if test "x$ac_cv_lib_ssl_SSL_CTX_set_alpn_select_cb" = xyes; then :
23176
23177$as_echo "#define HAVE_TLS_ALPN /**/" >>confdefs.h
23178
23179fi
23180
23181fi
23182 if test "$with_ssl" != "no"; then
23183  HAVE_SSL_TRUE=
23184  HAVE_SSL_FALSE='#'
23185else
23186  HAVE_SSL_TRUE='#'
23187  HAVE_SSL_FALSE=
23188fi
23189
23190
23191
23192
23193
23194# Check whether --with-egd-socket was given.
23195if test "${with_egd_socket+set}" = set; then :
23196  withval=$with_egd_socket;  EGD_SOCKET="$withval"
23197
23198fi
23199
23200if test -n "$EGD_SOCKET" ; then
23201
23202cat >>confdefs.h <<_ACEOF
23203#define EGD_SOCKET "$EGD_SOCKET"
23204_ACEOF
23205
23206fi
23207
23208
23209# Check whether --with-zlib was given.
23210if test "${with_zlib+set}" = set; then :
23211  withval=$with_zlib; with_zlib=$withval
23212else
23213  with_zlib="yes"
23214fi
23215
23216
23217save_CPPFLAGS=$CPPFLAGS
23218save_LDFLAGS=$LDFLAGS
23219
23220if test -d $with_zlib; then
23221    CPPFLAGS="${CPPFLAGS} -I${with_lib}/include"
23222
23223  # this is CMU ADD LIBPATH
23224  if test "$andrew_cv_runpath_switch" = "none" ; then
23225        LDFLAGS="-L${with_zlib}/$CMU_LIB_SUBDIR ${LDFLAGS}"
23226  else
23227        LDFLAGS="-L${with_zlib}/$CMU_LIB_SUBDIR $andrew_cv_runpath_switch${with_zlib}/$CMU_LIB_SUBDIR ${LDFLAGS}"
23228  fi
23229
23230fi
23231
23232ZLIB=""
23233case "$with_zlib" in
23234    no)
23235      with_zlib="no";;
23236    *)
23237    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23238if test "x$ac_cv_header_zlib_h" = xyes; then :
23239
23240        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
23241$as_echo_n "checking for deflate in -lz... " >&6; }
23242if ${ac_cv_lib_z_deflate+:} false; then :
23243  $as_echo_n "(cached) " >&6
23244else
23245  ac_check_lib_save_LIBS=$LIBS
23246LIBS="-lz  $LIBS"
23247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248/* end confdefs.h.  */
23249
23250/* Override any GCC internal prototype to avoid an error.
23251   Use char because int might match the return type of a GCC
23252   builtin and then its argument prototype would still apply.  */
23253#ifdef __cplusplus
23254extern "C"
23255#endif
23256char deflate ();
23257int
23258main ()
23259{
23260return deflate ();
23261  ;
23262  return 0;
23263}
23264_ACEOF
23265if ac_fn_c_try_link "$LINENO"; then :
23266  ac_cv_lib_z_deflate=yes
23267else
23268  ac_cv_lib_z_deflate=no
23269fi
23270rm -f core conftest.err conftest.$ac_objext \
23271    conftest$ac_exeext conftest.$ac_ext
23272LIBS=$ac_check_lib_save_LIBS
23273fi
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
23275$as_echo "$ac_cv_lib_z_deflate" >&6; }
23276if test "x$ac_cv_lib_z_deflate" = xyes; then :
23277  LIBS="${LIBS} -lz"; with_zlib="yes"
23278else
23279  with_zlib="no"
23280fi
23281
23282else
23283  with_zlib=no
23284fi
23285
23286
23287    ;;
23288esac
23289
23290if test "$with_zlib" != "no"; then
23291
23292$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
23293
23294    ZLIB="-lz"
23295    HAVE_ZLIB=1
23296
23297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflatePending in -lz" >&5
23298$as_echo_n "checking for deflatePending in -lz... " >&6; }
23299if ${ac_cv_lib_z_deflatePending+:} false; then :
23300  $as_echo_n "(cached) " >&6
23301else
23302  ac_check_lib_save_LIBS=$LIBS
23303LIBS="-lz  $LIBS"
23304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305/* end confdefs.h.  */
23306
23307/* Override any GCC internal prototype to avoid an error.
23308   Use char because int might match the return type of a GCC
23309   builtin and then its argument prototype would still apply.  */
23310#ifdef __cplusplus
23311extern "C"
23312#endif
23313char deflatePending ();
23314int
23315main ()
23316{
23317return deflatePending ();
23318  ;
23319  return 0;
23320}
23321_ACEOF
23322if ac_fn_c_try_link "$LINENO"; then :
23323  ac_cv_lib_z_deflatePending=yes
23324else
23325  ac_cv_lib_z_deflatePending=no
23326fi
23327rm -f core conftest.err conftest.$ac_objext \
23328    conftest$ac_exeext conftest.$ac_ext
23329LIBS=$ac_check_lib_save_LIBS
23330fi
23331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflatePending" >&5
23332$as_echo "$ac_cv_lib_z_deflatePending" >&6; }
23333if test "x$ac_cv_lib_z_deflatePending" = xyes; then :
23334
23335$as_echo "#define HAVE_DEFLATE_PENDING /**/" >>confdefs.h
23336
23337fi
23338
23339else
23340    CPPFLAGS=$save_CPPFLAGS
23341    LDFLAGS=$save_LDFLAGS
23342    HAVE_ZLIB=0
23343fi
23344
23345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
23346$as_echo_n "checking for zlib... " >&6; }
23347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib" >&5
23348$as_echo "$with_zlib" >&6; }
23349
23350
23351
23352# Check whether --with-zephyr was given.
23353if test "${with_zephyr+set}" = set; then :
23354  withval=$with_zephyr; with_zephyr="${withval}"
23355fi
23356
23357if test -z "$with_zephyr"; then
23358     if test -f /usr/local/lib/libzephyr.a; then
23359        with_zephyr="/usr/local"
23360     elif test -f /usr/lib/libzephyr.a; then
23361        with_zephyr="/usr"
23362     fi
23363fi
23364ZEPHYR_LIBS=""
23365case "$with_zephyr" in
23366        no) true;;
23367        ""|yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZInitialize in -lzephyr" >&5
23368$as_echo_n "checking for ZInitialize in -lzephyr... " >&6; }
23369if ${ac_cv_lib_zephyr_ZInitialize+:} false; then :
23370  $as_echo_n "(cached) " >&6
23371else
23372  ac_check_lib_save_LIBS=$LIBS
23373LIBS="-lzephyr  $LIBS"
23374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23375/* end confdefs.h.  */
23376
23377/* Override any GCC internal prototype to avoid an error.
23378   Use char because int might match the return type of a GCC
23379   builtin and then its argument prototype would still apply.  */
23380#ifdef __cplusplus
23381extern "C"
23382#endif
23383char ZInitialize ();
23384int
23385main ()
23386{
23387return ZInitialize ();
23388  ;
23389  return 0;
23390}
23391_ACEOF
23392if ac_fn_c_try_link "$LINENO"; then :
23393  ac_cv_lib_zephyr_ZInitialize=yes
23394else
23395  ac_cv_lib_zephyr_ZInitialize=no
23396fi
23397rm -f core conftest.err conftest.$ac_objext \
23398    conftest$ac_exeext conftest.$ac_ext
23399LIBS=$ac_check_lib_save_LIBS
23400fi
23401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zephyr_ZInitialize" >&5
23402$as_echo "$ac_cv_lib_zephyr_ZInitialize" >&6; }
23403if test "x$ac_cv_lib_zephyr_ZInitialize" = xyes; then :
23404  ZEPHYR_LIBS="-lzephyr"
23405else
23406  with_zephyr="no"
23407fi
23408;;
23409       *) ZEPHYR_LIBS="-lzephyr";;
23410esac
23411
23412if test "$with_zephyr" != "no"; then
23413
23414$as_echo "#define HAVE_ZEPHYR /**/" >>confdefs.h
23415
23416fi
23417 if test "$with_zephyr" != "no"; then
23418  ZEPHYR_TRUE=
23419  ZEPHYR_FALSE='#'
23420else
23421  ZEPHYR_TRUE='#'
23422  ZEPHYR_FALSE=
23423fi
23424
23425
23426
23427
23428# Check whether --with-libcap was given.
23429if test "${with_libcap+set}" = set; then :
23430  withval=$with_libcap; with_libcap="${withval}"
23431fi
23432
23433
23434have_libcap=no
23435LIBCAP_LIBS=""
23436case $host_os in
23437linux*)
23438        if test "x$with_libcap" = "xyes"; then
23439                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
23440$as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
23441if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
23442  $as_echo_n "(cached) " >&6
23443else
23444  ac_check_lib_save_LIBS=$LIBS
23445LIBS="-lcap  $LIBS"
23446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23447/* end confdefs.h.  */
23448
23449/* Override any GCC internal prototype to avoid an error.
23450   Use char because int might match the return type of a GCC
23451   builtin and then its argument prototype would still apply.  */
23452#ifdef __cplusplus
23453extern "C"
23454#endif
23455char cap_get_proc ();
23456int
23457main ()
23458{
23459return cap_get_proc ();
23460  ;
23461  return 0;
23462}
23463_ACEOF
23464if ac_fn_c_try_link "$LINENO"; then :
23465  ac_cv_lib_cap_cap_get_proc=yes
23466else
23467  ac_cv_lib_cap_cap_get_proc=no
23468fi
23469rm -f core conftest.err conftest.$ac_objext \
23470    conftest$ac_exeext conftest.$ac_ext
23471LIBS=$ac_check_lib_save_LIBS
23472fi
23473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
23474$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
23475if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
23476  have_libcap=yes
23477else
23478  have_libcap=no
23479fi
23480
23481                for ac_header in sys/capability.h sys/prctl.h
23482do :
23483  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23484ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23486  cat >>confdefs.h <<_ACEOF
23487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23488_ACEOF
23489
23490else
23491  have_libcap=no
23492fi
23493
23494done
23495
23496                if test "$have_libcap" = "yes"; then
23497
23498$as_echo "#define HAVE_LIBCAP /**/" >>confdefs.h
23499
23500                        LIBCAP_LIBS="-lcap"
23501                fi
23502        fi
23503        ;;
23504*)
23505        ;;
23506esac
23507
23508
23509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcap" >&5
23510$as_echo_n "checking for libcap... " >&6; }
23511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcap" >&5
23512$as_echo "$have_libcap" >&6; }
23513
23514
23515pkg_failed=no
23516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
23517$as_echo_n "checking for JANSSON... " >&6; }
23518
23519if test -n "$JANSSON_CFLAGS"; then
23520    pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
23521 elif test -n "$PKG_CONFIG"; then
23522    if test -n "$PKG_CONFIG" && \
23523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.3\""; } >&5
23524  ($PKG_CONFIG --exists --print-errors "jansson >= 2.3") 2>&5
23525  ac_status=$?
23526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527  test $ac_status = 0; }; then
23528  pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.3" 2>/dev/null`
23529		      test "x$?" != "x0" && pkg_failed=yes
23530else
23531  pkg_failed=yes
23532fi
23533 else
23534    pkg_failed=untried
23535fi
23536if test -n "$JANSSON_LIBS"; then
23537    pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
23538 elif test -n "$PKG_CONFIG"; then
23539    if test -n "$PKG_CONFIG" && \
23540    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.3\""; } >&5
23541  ($PKG_CONFIG --exists --print-errors "jansson >= 2.3") 2>&5
23542  ac_status=$?
23543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23544  test $ac_status = 0; }; then
23545  pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.3" 2>/dev/null`
23546		      test "x$?" != "x0" && pkg_failed=yes
23547else
23548  pkg_failed=yes
23549fi
23550 else
23551    pkg_failed=untried
23552fi
23553
23554
23555
23556if test $pkg_failed = yes; then
23557   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23558$as_echo "no" >&6; }
23559
23560if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23561        _pkg_short_errors_supported=yes
23562else
23563        _pkg_short_errors_supported=no
23564fi
23565        if test $_pkg_short_errors_supported = yes; then
23566	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.3" 2>&1`
23567        else
23568	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.3" 2>&1`
23569        fi
23570	# Put the nasty error message in config.log where it belongs
23571	echo "$JANSSON_PKG_ERRORS" >&5
23572
23573	as_fn_error $? "libjansson is required" "$LINENO" 5
23574elif test $pkg_failed = untried; then
23575     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23576$as_echo "no" >&6; }
23577	as_fn_error $? "libjansson is required" "$LINENO" 5
23578else
23579	JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
23580	JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
23581        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23582$as_echo "yes" >&6; }
23583
23584$as_echo "#define HAVE_JANSSON /**/" >>confdefs.h
23585
23586                    with_jansson=yes
23587fi
23588
23589
23590 if test "x$with_jansson" = xyes; then
23591  USE_JANSSON_TRUE=
23592  USE_JANSSON_FALSE='#'
23593else
23594  USE_JANSSON_TRUE='#'
23595  USE_JANSSON_FALSE=
23596fi
23597
23598
23599save_CFLAGS="$CFLAGS"
23600CFLAGS="$CFLAGS $JANSSON_CFLAGS $JANSSON_LIBS"
23601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_dumpb in -ljansson" >&5
23602$as_echo_n "checking for json_dumpb in -ljansson... " >&6; }
23603if ${ac_cv_lib_jansson_json_dumpb+:} false; then :
23604  $as_echo_n "(cached) " >&6
23605else
23606  ac_check_lib_save_LIBS=$LIBS
23607LIBS="-ljansson  $LIBS"
23608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23609/* end confdefs.h.  */
23610
23611/* Override any GCC internal prototype to avoid an error.
23612   Use char because int might match the return type of a GCC
23613   builtin and then its argument prototype would still apply.  */
23614#ifdef __cplusplus
23615extern "C"
23616#endif
23617char json_dumpb ();
23618int
23619main ()
23620{
23621return json_dumpb ();
23622  ;
23623  return 0;
23624}
23625_ACEOF
23626if ac_fn_c_try_link "$LINENO"; then :
23627  ac_cv_lib_jansson_json_dumpb=yes
23628else
23629  ac_cv_lib_jansson_json_dumpb=no
23630fi
23631rm -f core conftest.err conftest.$ac_objext \
23632    conftest$ac_exeext conftest.$ac_ext
23633LIBS=$ac_check_lib_save_LIBS
23634fi
23635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_dumpb" >&5
23636$as_echo "$ac_cv_lib_jansson_json_dumpb" >&6; }
23637if test "x$ac_cv_lib_jansson_json_dumpb" = xyes; then :
23638  cat >>confdefs.h <<_ACEOF
23639#define HAVE_LIBJANSSON 1
23640_ACEOF
23641
23642  LIBS="-ljansson $LIBS"
23643
23644else
23645
23646$as_echo "#define NEED_JANSSON_JSON_DUMPB 1" >>confdefs.h
23647
23648               { $as_echo "$as_me:${as_lineno-$LINENO}: jansson does not provide json_dumpb(), using ours instead" >&5
23649$as_echo "$as_me: jansson does not provide json_dumpb(), using ours instead" >&6;}
23650
23651fi
23652
23653CFLAGS="$save_CFLAGS"
23654
23655with_icu4c=no
23656
23657pkg_failed=no
23658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
23659$as_echo_n "checking for ICU... " >&6; }
23660
23661if test -n "$ICU_CFLAGS"; then
23662    pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
23663 elif test -n "$PKG_CONFIG"; then
23664    if test -n "$PKG_CONFIG" && \
23665    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 55 icu-uc >= 55\""; } >&5
23666  ($PKG_CONFIG --exists --print-errors "icu-i18n >= 55 icu-uc >= 55") 2>&5
23667  ac_status=$?
23668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23669  test $ac_status = 0; }; then
23670  pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n >= 55 icu-uc >= 55" 2>/dev/null`
23671		      test "x$?" != "x0" && pkg_failed=yes
23672else
23673  pkg_failed=yes
23674fi
23675 else
23676    pkg_failed=untried
23677fi
23678if test -n "$ICU_LIBS"; then
23679    pkg_cv_ICU_LIBS="$ICU_LIBS"
23680 elif test -n "$PKG_CONFIG"; then
23681    if test -n "$PKG_CONFIG" && \
23682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 55 icu-uc >= 55\""; } >&5
23683  ($PKG_CONFIG --exists --print-errors "icu-i18n >= 55 icu-uc >= 55") 2>&5
23684  ac_status=$?
23685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23686  test $ac_status = 0; }; then
23687  pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n >= 55 icu-uc >= 55" 2>/dev/null`
23688		      test "x$?" != "x0" && pkg_failed=yes
23689else
23690  pkg_failed=yes
23691fi
23692 else
23693    pkg_failed=untried
23694fi
23695
23696
23697
23698if test $pkg_failed = yes; then
23699   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23700$as_echo "no" >&6; }
23701
23702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23703        _pkg_short_errors_supported=yes
23704else
23705        _pkg_short_errors_supported=no
23706fi
23707        if test $_pkg_short_errors_supported = yes; then
23708	        ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n >= 55 icu-uc >= 55" 2>&1`
23709        else
23710	        ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n >= 55 icu-uc >= 55" 2>&1`
23711        fi
23712	# Put the nasty error message in config.log where it belongs
23713	echo "$ICU_PKG_ERRORS" >&5
23714
23715	as_fn_error $? "Need ICU4C" "$LINENO" 5
23716elif test $pkg_failed = untried; then
23717     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23718$as_echo "no" >&6; }
23719	as_fn_error $? "Need ICU4C" "$LINENO" 5
23720else
23721	ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
23722	ICU_LIBS=$pkg_cv_ICU_LIBS
23723        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724$as_echo "yes" >&6; }
23725
23726
23727$as_echo "#define HAVE_ICU /**/" >>confdefs.h
23728
23729                    with_icu4c=yes
23730
23731fi
23732
23733
23734
23735
23736# Check whether --with-zeroskip was given.
23737if test "${with_zeroskip+set}" = set; then :
23738  withval=$with_zeroskip;
23739else
23740  with_zeroskip=yes
23741fi
23742
23743if test "x$with_zeroskip" = "xyes"; then :
23744
23745pkg_failed=no
23746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZEROSKIP" >&5
23747$as_echo_n "checking for ZEROSKIP... " >&6; }
23748
23749if test -n "$ZEROSKIP_CFLAGS"; then
23750    pkg_cv_ZEROSKIP_CFLAGS="$ZEROSKIP_CFLAGS"
23751 elif test -n "$PKG_CONFIG"; then
23752    if test -n "$PKG_CONFIG" && \
23753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzeroskip\""; } >&5
23754  ($PKG_CONFIG --exists --print-errors "libzeroskip") 2>&5
23755  ac_status=$?
23756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757  test $ac_status = 0; }; then
23758  pkg_cv_ZEROSKIP_CFLAGS=`$PKG_CONFIG --cflags "libzeroskip" 2>/dev/null`
23759		      test "x$?" != "x0" && pkg_failed=yes
23760else
23761  pkg_failed=yes
23762fi
23763 else
23764    pkg_failed=untried
23765fi
23766if test -n "$ZEROSKIP_LIBS"; then
23767    pkg_cv_ZEROSKIP_LIBS="$ZEROSKIP_LIBS"
23768 elif test -n "$PKG_CONFIG"; then
23769    if test -n "$PKG_CONFIG" && \
23770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzeroskip\""; } >&5
23771  ($PKG_CONFIG --exists --print-errors "libzeroskip") 2>&5
23772  ac_status=$?
23773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23774  test $ac_status = 0; }; then
23775  pkg_cv_ZEROSKIP_LIBS=`$PKG_CONFIG --libs "libzeroskip" 2>/dev/null`
23776		      test "x$?" != "x0" && pkg_failed=yes
23777else
23778  pkg_failed=yes
23779fi
23780 else
23781    pkg_failed=untried
23782fi
23783
23784
23785
23786if test $pkg_failed = yes; then
23787   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23788$as_echo "no" >&6; }
23789
23790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23791        _pkg_short_errors_supported=yes
23792else
23793        _pkg_short_errors_supported=no
23794fi
23795        if test $_pkg_short_errors_supported = yes; then
23796	        ZEROSKIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzeroskip" 2>&1`
23797        else
23798	        ZEROSKIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzeroskip" 2>&1`
23799        fi
23800	# Put the nasty error message in config.log where it belongs
23801	echo "$ZEROSKIP_PKG_ERRORS" >&5
23802
23803	with_zeroskip=no
23804elif test $pkg_failed = untried; then
23805     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23806$as_echo "no" >&6; }
23807	with_zeroskip=no
23808else
23809	ZEROSKIP_CFLAGS=$pkg_cv_ZEROSKIP_CFLAGS
23810	ZEROSKIP_LIBS=$pkg_cv_ZEROSKIP_LIBS
23811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23812$as_echo "yes" >&6; }
23813
23814$as_echo "#define HAVE_ZEROSKIP /**/" >>confdefs.h
23815
23816		  with_zeroskip=yes
23817fi
23818fi
23819
23820
23821 if test "x$with_zeroskip" = xyes; then
23822  USE_ZEROSKIP_TRUE=
23823  USE_ZEROSKIP_FALSE='#'
23824else
23825  USE_ZEROSKIP_TRUE='#'
23826  USE_ZEROSKIP_FALSE=
23827fi
23828
23829
23830
23831# Check whether --with-chardet was given.
23832if test "${with_chardet+set}" = set; then :
23833  withval=$with_chardet;
23834else
23835  with_chardet=yes
23836fi
23837
23838if test "x$with_chardet" = "xyes"; then :
23839
23840pkg_failed=no
23841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCHARDET" >&5
23842$as_echo_n "checking for LIBCHARDET... " >&6; }
23843
23844if test -n "$LIBCHARDET_CFLAGS"; then
23845    pkg_cv_LIBCHARDET_CFLAGS="$LIBCHARDET_CFLAGS"
23846 elif test -n "$PKG_CONFIG"; then
23847    if test -n "$PKG_CONFIG" && \
23848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chardet\""; } >&5
23849  ($PKG_CONFIG --exists --print-errors "chardet") 2>&5
23850  ac_status=$?
23851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852  test $ac_status = 0; }; then
23853  pkg_cv_LIBCHARDET_CFLAGS=`$PKG_CONFIG --cflags "chardet" 2>/dev/null`
23854		      test "x$?" != "x0" && pkg_failed=yes
23855else
23856  pkg_failed=yes
23857fi
23858 else
23859    pkg_failed=untried
23860fi
23861if test -n "$LIBCHARDET_LIBS"; then
23862    pkg_cv_LIBCHARDET_LIBS="$LIBCHARDET_LIBS"
23863 elif test -n "$PKG_CONFIG"; then
23864    if test -n "$PKG_CONFIG" && \
23865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chardet\""; } >&5
23866  ($PKG_CONFIG --exists --print-errors "chardet") 2>&5
23867  ac_status=$?
23868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23869  test $ac_status = 0; }; then
23870  pkg_cv_LIBCHARDET_LIBS=`$PKG_CONFIG --libs "chardet" 2>/dev/null`
23871		      test "x$?" != "x0" && pkg_failed=yes
23872else
23873  pkg_failed=yes
23874fi
23875 else
23876    pkg_failed=untried
23877fi
23878
23879
23880
23881if test $pkg_failed = yes; then
23882   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883$as_echo "no" >&6; }
23884
23885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23886        _pkg_short_errors_supported=yes
23887else
23888        _pkg_short_errors_supported=no
23889fi
23890        if test $_pkg_short_errors_supported = yes; then
23891	        LIBCHARDET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "chardet" 2>&1`
23892        else
23893	        LIBCHARDET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "chardet" 2>&1`
23894        fi
23895	# Put the nasty error message in config.log where it belongs
23896	echo "$LIBCHARDET_PKG_ERRORS" >&5
23897
23898	with_chardet=no
23899elif test $pkg_failed = untried; then
23900     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23901$as_echo "no" >&6; }
23902	with_chardet=no
23903else
23904	LIBCHARDET_CFLAGS=$pkg_cv_LIBCHARDET_CFLAGS
23905	LIBCHARDET_LIBS=$pkg_cv_LIBCHARDET_LIBS
23906        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23907$as_echo "yes" >&6; }
23908
23909$as_echo "#define HAVE_LIBCHARDET /**/" >>confdefs.h
23910
23911		  with_chardet=yes
23912fi
23913fi
23914if test "x$with_chardet" != "xyes"; then :
23915  { $as_echo "$as_me:${as_lineno-$LINENO}: JMAP will not have character set detection support.  Consider installing chardet" >&5
23916$as_echo "$as_me: JMAP will not have character set detection support.  Consider installing chardet" >&6;}
23917fi
23918
23919
23920 if test "x$with_chardet" = xyes; then
23921  USE_LIBCHARDET_TRUE=
23922  USE_LIBCHARDET_FALSE='#'
23923else
23924  USE_LIBCHARDET_TRUE='#'
23925  USE_LIBCHARDET_FALSE=
23926fi
23927
23928
23929
23930# Check whether --with-cld2 was given.
23931if test "${with_cld2+set}" = set; then :
23932  withval=$with_cld2;
23933else
23934  with_cld2=yes
23935fi
23936
23937if test "x$with_cld2" = "xyes"; then :
23938
23939pkg_failed=no
23940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLD2" >&5
23941$as_echo_n "checking for CLD2... " >&6; }
23942
23943if test -n "$CLD2_CFLAGS"; then
23944    pkg_cv_CLD2_CFLAGS="$CLD2_CFLAGS"
23945 elif test -n "$PKG_CONFIG"; then
23946    if test -n "$PKG_CONFIG" && \
23947    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cld2\""; } >&5
23948  ($PKG_CONFIG --exists --print-errors "cld2") 2>&5
23949  ac_status=$?
23950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951  test $ac_status = 0; }; then
23952  pkg_cv_CLD2_CFLAGS=`$PKG_CONFIG --cflags "cld2" 2>/dev/null`
23953		      test "x$?" != "x0" && pkg_failed=yes
23954else
23955  pkg_failed=yes
23956fi
23957 else
23958    pkg_failed=untried
23959fi
23960if test -n "$CLD2_LIBS"; then
23961    pkg_cv_CLD2_LIBS="$CLD2_LIBS"
23962 elif test -n "$PKG_CONFIG"; then
23963    if test -n "$PKG_CONFIG" && \
23964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cld2\""; } >&5
23965  ($PKG_CONFIG --exists --print-errors "cld2") 2>&5
23966  ac_status=$?
23967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23968  test $ac_status = 0; }; then
23969  pkg_cv_CLD2_LIBS=`$PKG_CONFIG --libs "cld2" 2>/dev/null`
23970		      test "x$?" != "x0" && pkg_failed=yes
23971else
23972  pkg_failed=yes
23973fi
23974 else
23975    pkg_failed=untried
23976fi
23977
23978
23979
23980if test $pkg_failed = yes; then
23981   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982$as_echo "no" >&6; }
23983
23984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23985        _pkg_short_errors_supported=yes
23986else
23987        _pkg_short_errors_supported=no
23988fi
23989        if test $_pkg_short_errors_supported = yes; then
23990	        CLD2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cld2" 2>&1`
23991        else
23992	        CLD2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cld2" 2>&1`
23993        fi
23994	# Put the nasty error message in config.log where it belongs
23995	echo "$CLD2_PKG_ERRORS" >&5
23996
23997	with_cld2=no
23998elif test $pkg_failed = untried; then
23999     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24000$as_echo "no" >&6; }
24001	with_cld2=no
24002else
24003	CLD2_CFLAGS=$pkg_cv_CLD2_CFLAGS
24004	CLD2_LIBS=$pkg_cv_CLD2_LIBS
24005        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24006$as_echo "yes" >&6; }
24007
24008$as_echo "#define HAVE_CLD2 /**/" >>confdefs.h
24009
24010		  with_cld2=yes
24011fi
24012fi
24013
24014
24015 if test "x$with_cld2" = xyes; then
24016  HAVE_CLD2_TRUE=
24017  HAVE_CLD2_FALSE='#'
24018else
24019  HAVE_CLD2_TRUE='#'
24020  HAVE_CLD2_FALSE=
24021fi
24022
24023
24024
24025# Check whether --with-pidfile was given.
24026if test "${with_pidfile+set}" = set; then :
24027  withval=$with_pidfile; MASTERPIDFILE="$withval"
24028else
24029  MASTERPIDFILE="/var/run/cyrus-master.pid"
24030fi
24031
24032MASTERPIDFILE="\"$MASTERPIDFILE\""
24033
24034cat >>confdefs.h <<_ACEOF
24035#define MASTER_PIDFILE $MASTERPIDFILE
24036_ACEOF
24037
24038
24039# Check whether --enable-autocreate was given.
24040if test "${enable_autocreate+set}" = set; then :
24041  enableval=$enable_autocreate;
24042else
24043  enable_autocreate="no";
24044fi
24045
24046 if test "$enable_autocreate" != "no"; then
24047  AUTOCREATE_TRUE=
24048  AUTOCREATE_FALSE='#'
24049else
24050  AUTOCREATE_TRUE='#'
24051  AUTOCREATE_FALSE=
24052fi
24053
24054if test "x$enable_autocreate" = "xyes"; then
24055
24056$as_echo "#define USE_AUTOCREATE /**/" >>confdefs.h
24057
24058fi
24059# Check whether --enable-idled was given.
24060if test "${enable_idled+set}" = set; then :
24061  enableval=$enable_idled;
24062else
24063  enable_idled="no";
24064fi
24065
24066 if test "$enable_idled" != "no"; then
24067  IDLED_TRUE=
24068  IDLED_FALSE='#'
24069else
24070  IDLED_TRUE='#'
24071  IDLED_FALSE=
24072fi
24073
24074if test "x$enable_idled" = "xyes"; then
24075
24076$as_echo "#define USE_IDLED /**/" >>confdefs.h
24077
24078fi
24079# Check whether --enable-nntp was given.
24080if test "${enable_nntp+set}" = set; then :
24081  enableval=$enable_nntp;
24082else
24083  enable_nntp="no";
24084fi
24085
24086 if test "$enable_nntp" != "no"; then
24087  NNTPD_TRUE=
24088  NNTPD_FALSE='#'
24089else
24090  NNTPD_TRUE='#'
24091  NNTPD_FALSE=
24092fi
24093
24094if test "x$enable_nntp" = "xyes"; then
24095
24096$as_echo "#define USE_NNTPD /**/" >>confdefs.h
24097
24098fi
24099
24100# Check whether --enable-murder was given.
24101if test "${enable_murder+set}" = set; then :
24102  enableval=$enable_murder;
24103else
24104  enable_murder="no";
24105fi
24106
24107 if test "$enable_murder" != "no"; then
24108  MURDER_TRUE=
24109  MURDER_FALSE='#'
24110else
24111  MURDER_TRUE='#'
24112  MURDER_FALSE=
24113fi
24114
24115if test "$enable_murder" != no; then
24116        # for master/slave auto-selection
24117        for ac_header in sys/sockio.h
24118do :
24119  ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
24120if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
24121  cat >>confdefs.h <<_ACEOF
24122#define HAVE_SYS_SOCKIO_H 1
24123_ACEOF
24124
24125fi
24126
24127done
24128
24129fi
24130if test "x$enable_murder" = "xyes"; then
24131
24132$as_echo "#define USE_MURDER /**/" >>confdefs.h
24133
24134fi
24135
24136# Check whether --enable-http was given.
24137if test "${enable_http+set}" = set; then :
24138  enableval=$enable_http;
24139else
24140  enable_http="no";
24141fi
24142
24143 if test "$enable_http" != "no"; then
24144  HTTPD_TRUE=
24145  HTTPD_FALSE='#'
24146else
24147  HTTPD_TRUE='#'
24148  HTTPD_FALSE=
24149fi
24150
24151
24152HTTP_CPPFLAGS=
24153HTTP_LIBS=
24154with_xml2=no
24155with_ical=no
24156with_shapelib=no
24157with_brotli=no
24158with_zstd=no
24159if test "$enable_http" != no; then
24160        if test "x$HAVE_SQLITE" != x1; then
24161            as_fn_error $? "Need sqlite3 for http" "$LINENO" 5
24162        else
24163            use_sqlite="yes"
24164
24165$as_echo "#define WITH_DAV /**/" >>confdefs.h
24166
24167        fi
24168
24169
24170pkg_failed=no
24171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
24172$as_echo_n "checking for XML2... " >&6; }
24173
24174if test -n "$XML2_CFLAGS"; then
24175    pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
24176 elif test -n "$PKG_CONFIG"; then
24177    if test -n "$PKG_CONFIG" && \
24178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
24179  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
24180  ac_status=$?
24181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182  test $ac_status = 0; }; then
24183  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
24184		      test "x$?" != "x0" && pkg_failed=yes
24185else
24186  pkg_failed=yes
24187fi
24188 else
24189    pkg_failed=untried
24190fi
24191if test -n "$XML2_LIBS"; then
24192    pkg_cv_XML2_LIBS="$XML2_LIBS"
24193 elif test -n "$PKG_CONFIG"; then
24194    if test -n "$PKG_CONFIG" && \
24195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
24196  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
24197  ac_status=$?
24198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199  test $ac_status = 0; }; then
24200  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
24201		      test "x$?" != "x0" && pkg_failed=yes
24202else
24203  pkg_failed=yes
24204fi
24205 else
24206    pkg_failed=untried
24207fi
24208
24209
24210
24211if test $pkg_failed = yes; then
24212   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24213$as_echo "no" >&6; }
24214
24215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24216        _pkg_short_errors_supported=yes
24217else
24218        _pkg_short_errors_supported=no
24219fi
24220        if test $_pkg_short_errors_supported = yes; then
24221	        XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
24222        else
24223	        XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
24224        fi
24225	# Put the nasty error message in config.log where it belongs
24226	echo "$XML2_PKG_ERRORS" >&5
24227
24228	as_fn_error $? "Need libxml-2.0 for http" "$LINENO" 5
24229elif test $pkg_failed = untried; then
24230     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231$as_echo "no" >&6; }
24232	as_fn_error $? "Need libxml-2.0 for http" "$LINENO" 5
24233else
24234	XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
24235	XML2_LIBS=$pkg_cv_XML2_LIBS
24236        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24237$as_echo "yes" >&6; }
24238
24239
24240$as_echo "#define HAVE_XML2 /**/" >>confdefs.h
24241
24242                LIBS="$LIBS ${XML2_LIBS}"
24243                with_xml2=yes
24244
24245fi
24246
24247        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
24248$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
24249if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
24250  $as_echo_n "(cached) " >&6
24251else
24252  ac_check_lib_save_LIBS=$LIBS
24253LIBS="-lxml2  $LIBS"
24254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24255/* end confdefs.h.  */
24256
24257/* Override any GCC internal prototype to avoid an error.
24258   Use char because int might match the return type of a GCC
24259   builtin and then its argument prototype would still apply.  */
24260#ifdef __cplusplus
24261extern "C"
24262#endif
24263char xmlFirstElementChild ();
24264int
24265main ()
24266{
24267return xmlFirstElementChild ();
24268  ;
24269  return 0;
24270}
24271_ACEOF
24272if ac_fn_c_try_link "$LINENO"; then :
24273  ac_cv_lib_xml2_xmlFirstElementChild=yes
24274else
24275  ac_cv_lib_xml2_xmlFirstElementChild=no
24276fi
24277rm -f core conftest.err conftest.$ac_objext \
24278    conftest$ac_exeext conftest.$ac_ext
24279LIBS=$ac_check_lib_save_LIBS
24280fi
24281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
24282$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
24283if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
24284
24285
24286$as_echo "#define HAVE_XML_FIRSTCHILD /**/" >>confdefs.h
24287
24288
24289                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlBufferDetach in -lxml2" >&5
24290$as_echo_n "checking for xmlBufferDetach in -lxml2... " >&6; }
24291if ${ac_cv_lib_xml2_xmlBufferDetach+:} false; then :
24292  $as_echo_n "(cached) " >&6
24293else
24294  ac_check_lib_save_LIBS=$LIBS
24295LIBS="-lxml2  $LIBS"
24296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297/* end confdefs.h.  */
24298
24299/* Override any GCC internal prototype to avoid an error.
24300   Use char because int might match the return type of a GCC
24301   builtin and then its argument prototype would still apply.  */
24302#ifdef __cplusplus
24303extern "C"
24304#endif
24305char xmlBufferDetach ();
24306int
24307main ()
24308{
24309return xmlBufferDetach ();
24310  ;
24311  return 0;
24312}
24313_ACEOF
24314if ac_fn_c_try_link "$LINENO"; then :
24315  ac_cv_lib_xml2_xmlBufferDetach=yes
24316else
24317  ac_cv_lib_xml2_xmlBufferDetach=no
24318fi
24319rm -f core conftest.err conftest.$ac_objext \
24320    conftest$ac_exeext conftest.$ac_ext
24321LIBS=$ac_check_lib_save_LIBS
24322fi
24323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlBufferDetach" >&5
24324$as_echo "$ac_cv_lib_xml2_xmlBufferDetach" >&6; }
24325if test "x$ac_cv_lib_xml2_xmlBufferDetach" = xyes; then :
24326
24327$as_echo "#define HAVE_XML_BUFFERDETACH /**/" >>confdefs.h
24328
24329fi
24330
24331
24332fi
24333
24334
24335
24336pkg_failed=no
24337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICAL" >&5
24338$as_echo_n "checking for ICAL... " >&6; }
24339
24340if test -n "$ICAL_CFLAGS"; then
24341    pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
24342 elif test -n "$PKG_CONFIG"; then
24343    if test -n "$PKG_CONFIG" && \
24344    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 3.0.0\""; } >&5
24345  ($PKG_CONFIG --exists --print-errors "libical >= 3.0.0") 2>&5
24346  ac_status=$?
24347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348  test $ac_status = 0; }; then
24349  pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical >= 3.0.0" 2>/dev/null`
24350		      test "x$?" != "x0" && pkg_failed=yes
24351else
24352  pkg_failed=yes
24353fi
24354 else
24355    pkg_failed=untried
24356fi
24357if test -n "$ICAL_LIBS"; then
24358    pkg_cv_ICAL_LIBS="$ICAL_LIBS"
24359 elif test -n "$PKG_CONFIG"; then
24360    if test -n "$PKG_CONFIG" && \
24361    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 3.0.0\""; } >&5
24362  ($PKG_CONFIG --exists --print-errors "libical >= 3.0.0") 2>&5
24363  ac_status=$?
24364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24365  test $ac_status = 0; }; then
24366  pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical >= 3.0.0" 2>/dev/null`
24367		      test "x$?" != "x0" && pkg_failed=yes
24368else
24369  pkg_failed=yes
24370fi
24371 else
24372    pkg_failed=untried
24373fi
24374
24375
24376
24377if test $pkg_failed = yes; then
24378   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24379$as_echo "no" >&6; }
24380
24381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24382        _pkg_short_errors_supported=yes
24383else
24384        _pkg_short_errors_supported=no
24385fi
24386        if test $_pkg_short_errors_supported = yes; then
24387	        ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical >= 3.0.0" 2>&1`
24388        else
24389	        ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical >= 3.0.0" 2>&1`
24390        fi
24391	# Put the nasty error message in config.log where it belongs
24392	echo "$ICAL_PKG_ERRORS" >&5
24393
24394	as_fn_error $? "Need libical 3.0.0 for http" "$LINENO" 5
24395elif test $pkg_failed = untried; then
24396     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24397$as_echo "no" >&6; }
24398	as_fn_error $? "Need libical 3.0.0 for http" "$LINENO" 5
24399else
24400	ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
24401	ICAL_LIBS=$pkg_cv_ICAL_LIBS
24402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24403$as_echo "yes" >&6; }
24404
24405
24406$as_echo "#define HAVE_ICAL /**/" >>confdefs.h
24407
24408                LIBS="$LIBS ${ICAL_LIBS}"
24409                with_ical=yes
24410
24411fi
24412
24413                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalproperty_new_color in -lical" >&5
24414$as_echo_n "checking for icalproperty_new_color in -lical... " >&6; }
24415if ${ac_cv_lib_ical_icalproperty_new_color+:} false; then :
24416  $as_echo_n "(cached) " >&6
24417else
24418  ac_check_lib_save_LIBS=$LIBS
24419LIBS="-lical  $LIBS"
24420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421/* end confdefs.h.  */
24422
24423/* Override any GCC internal prototype to avoid an error.
24424   Use char because int might match the return type of a GCC
24425   builtin and then its argument prototype would still apply.  */
24426#ifdef __cplusplus
24427extern "C"
24428#endif
24429char icalproperty_new_color ();
24430int
24431main ()
24432{
24433return icalproperty_new_color ();
24434  ;
24435  return 0;
24436}
24437_ACEOF
24438if ac_fn_c_try_link "$LINENO"; then :
24439  ac_cv_lib_ical_icalproperty_new_color=yes
24440else
24441  ac_cv_lib_ical_icalproperty_new_color=no
24442fi
24443rm -f core conftest.err conftest.$ac_objext \
24444    conftest$ac_exeext conftest.$ac_ext
24445LIBS=$ac_check_lib_save_LIBS
24446fi
24447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalproperty_new_color" >&5
24448$as_echo "$ac_cv_lib_ical_icalproperty_new_color" >&6; }
24449if test "x$ac_cv_lib_ical_icalproperty_new_color" = xyes; then :
24450
24451$as_echo "#define HAVE_RFC7986_COLOR /**/" >>confdefs.h
24452
24453fi
24454
24455
24456                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalrecurrencetype_rscale_is_supported in -lical" >&5
24457$as_echo_n "checking for icalrecurrencetype_rscale_is_supported in -lical... " >&6; }
24458if ${ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported+:} false; then :
24459  $as_echo_n "(cached) " >&6
24460else
24461  ac_check_lib_save_LIBS=$LIBS
24462LIBS="-lical  $LIBS"
24463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24464/* end confdefs.h.  */
24465
24466/* Override any GCC internal prototype to avoid an error.
24467   Use char because int might match the return type of a GCC
24468   builtin and then its argument prototype would still apply.  */
24469#ifdef __cplusplus
24470extern "C"
24471#endif
24472char icalrecurrencetype_rscale_is_supported ();
24473int
24474main ()
24475{
24476return icalrecurrencetype_rscale_is_supported ();
24477  ;
24478  return 0;
24479}
24480_ACEOF
24481if ac_fn_c_try_link "$LINENO"; then :
24482  ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported=yes
24483else
24484  ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported=no
24485fi
24486rm -f core conftest.err conftest.$ac_objext \
24487    conftest$ac_exeext conftest.$ac_ext
24488LIBS=$ac_check_lib_save_LIBS
24489fi
24490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported" >&5
24491$as_echo "$ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported" >&6; }
24492if test "x$ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported" = xyes; then :
24493
24494$as_echo "#define HAVE_RSCALE /**/" >>confdefs.h
24495
24496else
24497  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support non-gregorian recurrences" >&5
24498$as_echo "$as_me: Your version of libical can not support non-gregorian recurrences" >&6;}
24499fi
24500
24501
24502                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalcomponent_clone in -lical" >&5
24503$as_echo_n "checking for icalcomponent_clone in -lical... " >&6; }
24504if ${ac_cv_lib_ical_icalcomponent_clone+:} false; then :
24505  $as_echo_n "(cached) " >&6
24506else
24507  ac_check_lib_save_LIBS=$LIBS
24508LIBS="-lical  $LIBS"
24509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24510/* end confdefs.h.  */
24511
24512/* Override any GCC internal prototype to avoid an error.
24513   Use char because int might match the return type of a GCC
24514   builtin and then its argument prototype would still apply.  */
24515#ifdef __cplusplus
24516extern "C"
24517#endif
24518char icalcomponent_clone ();
24519int
24520main ()
24521{
24522return icalcomponent_clone ();
24523  ;
24524  return 0;
24525}
24526_ACEOF
24527if ac_fn_c_try_link "$LINENO"; then :
24528  ac_cv_lib_ical_icalcomponent_clone=yes
24529else
24530  ac_cv_lib_ical_icalcomponent_clone=no
24531fi
24532rm -f core conftest.err conftest.$ac_objext \
24533    conftest$ac_exeext conftest.$ac_ext
24534LIBS=$ac_check_lib_save_LIBS
24535fi
24536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalcomponent_clone" >&5
24537$as_echo "$ac_cv_lib_ical_icalcomponent_clone" >&6; }
24538if test "x$ac_cv_lib_ical_icalcomponent_clone" = xyes; then :
24539
24540$as_echo "#define HAVE_NEW_CLONE_API /**/" >>confdefs.h
24541
24542fi
24543
24544
24545
24546
24547# Check whether --with-nghttp2 was given.
24548if test "${with_nghttp2+set}" = set; then :
24549  withval=$with_nghttp2;
24550else
24551  with_nghttp2="check"
24552fi
24553
24554        if test "x$with_nghttp2" = "xyes" -o "x$with_nghttp2" = "xcheck"; then
24555
24556pkg_failed=no
24557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NGHTTP2" >&5
24558$as_echo_n "checking for NGHTTP2... " >&6; }
24559
24560if test -n "$NGHTTP2_CFLAGS"; then
24561    pkg_cv_NGHTTP2_CFLAGS="$NGHTTP2_CFLAGS"
24562 elif test -n "$PKG_CONFIG"; then
24563    if test -n "$PKG_CONFIG" && \
24564    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.5\""; } >&5
24565  ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.5") 2>&5
24566  ac_status=$?
24567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568  test $ac_status = 0; }; then
24569  pkg_cv_NGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2 >= 1.5" 2>/dev/null`
24570		      test "x$?" != "x0" && pkg_failed=yes
24571else
24572  pkg_failed=yes
24573fi
24574 else
24575    pkg_failed=untried
24576fi
24577if test -n "$NGHTTP2_LIBS"; then
24578    pkg_cv_NGHTTP2_LIBS="$NGHTTP2_LIBS"
24579 elif test -n "$PKG_CONFIG"; then
24580    if test -n "$PKG_CONFIG" && \
24581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.5\""; } >&5
24582  ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.5") 2>&5
24583  ac_status=$?
24584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585  test $ac_status = 0; }; then
24586  pkg_cv_NGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2 >= 1.5" 2>/dev/null`
24587		      test "x$?" != "x0" && pkg_failed=yes
24588else
24589  pkg_failed=yes
24590fi
24591 else
24592    pkg_failed=untried
24593fi
24594
24595
24596
24597if test $pkg_failed = yes; then
24598   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599$as_echo "no" >&6; }
24600
24601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24602        _pkg_short_errors_supported=yes
24603else
24604        _pkg_short_errors_supported=no
24605fi
24606        if test $_pkg_short_errors_supported = yes; then
24607	        NGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2 >= 1.5" 2>&1`
24608        else
24609	        NGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2 >= 1.5" 2>&1`
24610        fi
24611	# Put the nasty error message in config.log where it belongs
24612	echo "$NGHTTP2_PKG_ERRORS" >&5
24613
24614
24615                        if test "x$with_nghttp2" = "xyes"; then
24616                                as_fn_error $? "HTTP/2 explicitly requested, but libnghttp2 was not found" "$LINENO" 5
24617                        fi
24618                        { $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&5
24619$as_echo "$as_me: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&6;}
24620                        with_nghttp2=no
24621
24622elif test $pkg_failed = untried; then
24623     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24624$as_echo "no" >&6; }
24625
24626                        if test "x$with_nghttp2" = "xyes"; then
24627                                as_fn_error $? "HTTP/2 explicitly requested, but libnghttp2 was not found" "$LINENO" 5
24628                        fi
24629                        { $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&5
24630$as_echo "$as_me: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&6;}
24631                        with_nghttp2=no
24632
24633else
24634	NGHTTP2_CFLAGS=$pkg_cv_NGHTTP2_CFLAGS
24635	NGHTTP2_LIBS=$pkg_cv_NGHTTP2_LIBS
24636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24637$as_echo "yes" >&6; }
24638
24639
24640$as_echo "#define HAVE_NGHTTP2 /**/" >>confdefs.h
24641
24642                        ac_fn_c_check_decl "$LINENO" "NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL" "ac_cv_have_decl_NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL" "#include <nghttp2/nghttp2.h>
24643"
24644if test "x$ac_cv_have_decl_NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL" = xyes; then :
24645  ac_have_decl=1
24646else
24647  ac_have_decl=0
24648fi
24649
24650cat >>confdefs.h <<_ACEOF
24651#define HAVE_DECL_NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL $ac_have_decl
24652_ACEOF
24653
24654                        with_nghttp2=yes
24655
24656fi
24657        fi
24658
24659
24660
24661# Check whether --with-wslay was given.
24662if test "${with_wslay+set}" = set; then :
24663  withval=$with_wslay;
24664else
24665  with_wslay="check"
24666fi
24667
24668        if test "x$with_wslay" = "xyes" -o "x$with_wslay" = "xcheck"; then
24669
24670pkg_failed=no
24671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSLAY" >&5
24672$as_echo_n "checking for WSLAY... " >&6; }
24673
24674if test -n "$WSLAY_CFLAGS"; then
24675    pkg_cv_WSLAY_CFLAGS="$WSLAY_CFLAGS"
24676 elif test -n "$PKG_CONFIG"; then
24677    if test -n "$PKG_CONFIG" && \
24678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwslay >= 1.1.1\""; } >&5
24679  ($PKG_CONFIG --exists --print-errors "libwslay >= 1.1.1") 2>&5
24680  ac_status=$?
24681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682  test $ac_status = 0; }; then
24683  pkg_cv_WSLAY_CFLAGS=`$PKG_CONFIG --cflags "libwslay >= 1.1.1" 2>/dev/null`
24684		      test "x$?" != "x0" && pkg_failed=yes
24685else
24686  pkg_failed=yes
24687fi
24688 else
24689    pkg_failed=untried
24690fi
24691if test -n "$WSLAY_LIBS"; then
24692    pkg_cv_WSLAY_LIBS="$WSLAY_LIBS"
24693 elif test -n "$PKG_CONFIG"; then
24694    if test -n "$PKG_CONFIG" && \
24695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwslay >= 1.1.1\""; } >&5
24696  ($PKG_CONFIG --exists --print-errors "libwslay >= 1.1.1") 2>&5
24697  ac_status=$?
24698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699  test $ac_status = 0; }; then
24700  pkg_cv_WSLAY_LIBS=`$PKG_CONFIG --libs "libwslay >= 1.1.1" 2>/dev/null`
24701		      test "x$?" != "x0" && pkg_failed=yes
24702else
24703  pkg_failed=yes
24704fi
24705 else
24706    pkg_failed=untried
24707fi
24708
24709
24710
24711if test $pkg_failed = yes; then
24712   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24713$as_echo "no" >&6; }
24714
24715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24716        _pkg_short_errors_supported=yes
24717else
24718        _pkg_short_errors_supported=no
24719fi
24720        if test $_pkg_short_errors_supported = yes; then
24721	        WSLAY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwslay >= 1.1.1" 2>&1`
24722        else
24723	        WSLAY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwslay >= 1.1.1" 2>&1`
24724        fi
24725	# Put the nasty error message in config.log where it belongs
24726	echo "$WSLAY_PKG_ERRORS" >&5
24727
24728
24729                        if test "x$with_wslay" = "xyes"; then
24730                                as_fn_error $? "WebSockets explicitly requested, but libwslay was not found" "$LINENO" 5
24731                        fi
24732                        { $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for WebSockets.  Consider installing libwslay" >&5
24733$as_echo "$as_me: httpd will not have support for WebSockets.  Consider installing libwslay" >&6;}
24734                        with_wslay=no
24735
24736elif test $pkg_failed = untried; then
24737     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24738$as_echo "no" >&6; }
24739
24740                        if test "x$with_wslay" = "xyes"; then
24741                                as_fn_error $? "WebSockets explicitly requested, but libwslay was not found" "$LINENO" 5
24742                        fi
24743                        { $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for WebSockets.  Consider installing libwslay" >&5
24744$as_echo "$as_me: httpd will not have support for WebSockets.  Consider installing libwslay" >&6;}
24745                        with_wslay=no
24746
24747else
24748	WSLAY_CFLAGS=$pkg_cv_WSLAY_CFLAGS
24749	WSLAY_LIBS=$pkg_cv_WSLAY_LIBS
24750        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24751$as_echo "yes" >&6; }
24752
24753
24754$as_echo "#define HAVE_WSLAY /**/" >>confdefs.h
24755
24756                        with_wslay=yes
24757
24758fi
24759        fi
24760
24761
24762
24763pkg_failed=no
24764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
24765$as_echo_n "checking for BROTLI... " >&6; }
24766
24767if test -n "$BROTLI_CFLAGS"; then
24768    pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
24769 elif test -n "$PKG_CONFIG"; then
24770    if test -n "$PKG_CONFIG" && \
24771    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbrotlienc\""; } >&5
24772  ($PKG_CONFIG --exists --print-errors "libbrotlienc") 2>&5
24773  ac_status=$?
24774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775  test $ac_status = 0; }; then
24776  pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "libbrotlienc" 2>/dev/null`
24777		      test "x$?" != "x0" && pkg_failed=yes
24778else
24779  pkg_failed=yes
24780fi
24781 else
24782    pkg_failed=untried
24783fi
24784if test -n "$BROTLI_LIBS"; then
24785    pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
24786 elif test -n "$PKG_CONFIG"; then
24787    if test -n "$PKG_CONFIG" && \
24788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbrotlienc\""; } >&5
24789  ($PKG_CONFIG --exists --print-errors "libbrotlienc") 2>&5
24790  ac_status=$?
24791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24792  test $ac_status = 0; }; then
24793  pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "libbrotlienc" 2>/dev/null`
24794		      test "x$?" != "x0" && pkg_failed=yes
24795else
24796  pkg_failed=yes
24797fi
24798 else
24799    pkg_failed=untried
24800fi
24801
24802
24803
24804if test $pkg_failed = yes; then
24805   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24806$as_echo "no" >&6; }
24807
24808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24809        _pkg_short_errors_supported=yes
24810else
24811        _pkg_short_errors_supported=no
24812fi
24813        if test $_pkg_short_errors_supported = yes; then
24814	        BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbrotlienc" 2>&1`
24815        else
24816	        BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbrotlienc" 2>&1`
24817        fi
24818	# Put the nasty error message in config.log where it belongs
24819	echo "$BROTLI_PKG_ERRORS" >&5
24820
24821	{ $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&5
24822$as_echo "$as_me: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&6;}
24823elif test $pkg_failed = untried; then
24824     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24825$as_echo "no" >&6; }
24826	{ $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&5
24827$as_echo "$as_me: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&6;}
24828else
24829	BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
24830	BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
24831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24832$as_echo "yes" >&6; }
24833
24834
24835$as_echo "#define HAVE_BROTLI /**/" >>confdefs.h
24836
24837                with_brotli=yes
24838
24839fi
24840
24841
24842
24843pkg_failed=no
24844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
24845$as_echo_n "checking for ZSTD... " >&6; }
24846
24847if test -n "$ZSTD_CFLAGS"; then
24848    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
24849 elif test -n "$PKG_CONFIG"; then
24850    if test -n "$PKG_CONFIG" && \
24851    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
24852  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
24853  ac_status=$?
24854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24855  test $ac_status = 0; }; then
24856  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
24857		      test "x$?" != "x0" && pkg_failed=yes
24858else
24859  pkg_failed=yes
24860fi
24861 else
24862    pkg_failed=untried
24863fi
24864if test -n "$ZSTD_LIBS"; then
24865    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
24866 elif test -n "$PKG_CONFIG"; then
24867    if test -n "$PKG_CONFIG" && \
24868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
24869  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
24870  ac_status=$?
24871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872  test $ac_status = 0; }; then
24873  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
24874		      test "x$?" != "x0" && pkg_failed=yes
24875else
24876  pkg_failed=yes
24877fi
24878 else
24879    pkg_failed=untried
24880fi
24881
24882
24883
24884if test $pkg_failed = yes; then
24885   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24886$as_echo "no" >&6; }
24887
24888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24889        _pkg_short_errors_supported=yes
24890else
24891        _pkg_short_errors_supported=no
24892fi
24893        if test $_pkg_short_errors_supported = yes; then
24894	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
24895        else
24896	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
24897        fi
24898	# Put the nasty error message in config.log where it belongs
24899	echo "$ZSTD_PKG_ERRORS" >&5
24900
24901	{ $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for Zstandard compression.  Consider installing libzstd" >&5
24902$as_echo "$as_me: httpd will not have support for Zstandard compression.  Consider installing libzstd" >&6;}
24903elif test $pkg_failed = untried; then
24904     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24905$as_echo "no" >&6; }
24906	{ $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for Zstandard compression.  Consider installing libzstd" >&5
24907$as_echo "$as_me: httpd will not have support for Zstandard compression.  Consider installing libzstd" >&6;}
24908else
24909	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
24910	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
24911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24912$as_echo "yes" >&6; }
24913
24914
24915$as_echo "#define HAVE_ZSTD /**/" >>confdefs.h
24916
24917                with_zstd=yes
24918
24919fi
24920
24921                                LIB_MATH="-lm"
24922
24923
24924pkg_failed=no
24925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHAPELIB" >&5
24926$as_echo_n "checking for SHAPELIB... " >&6; }
24927
24928if test -n "$SHAPELIB_CFLAGS"; then
24929    pkg_cv_SHAPELIB_CFLAGS="$SHAPELIB_CFLAGS"
24930 elif test -n "$PKG_CONFIG"; then
24931    if test -n "$PKG_CONFIG" && \
24932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"shapelib >= 1.3.0\""; } >&5
24933  ($PKG_CONFIG --exists --print-errors "shapelib >= 1.3.0") 2>&5
24934  ac_status=$?
24935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936  test $ac_status = 0; }; then
24937  pkg_cv_SHAPELIB_CFLAGS=`$PKG_CONFIG --cflags "shapelib >= 1.3.0" 2>/dev/null`
24938		      test "x$?" != "x0" && pkg_failed=yes
24939else
24940  pkg_failed=yes
24941fi
24942 else
24943    pkg_failed=untried
24944fi
24945if test -n "$SHAPELIB_LIBS"; then
24946    pkg_cv_SHAPELIB_LIBS="$SHAPELIB_LIBS"
24947 elif test -n "$PKG_CONFIG"; then
24948    if test -n "$PKG_CONFIG" && \
24949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"shapelib >= 1.3.0\""; } >&5
24950  ($PKG_CONFIG --exists --print-errors "shapelib >= 1.3.0") 2>&5
24951  ac_status=$?
24952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953  test $ac_status = 0; }; then
24954  pkg_cv_SHAPELIB_LIBS=`$PKG_CONFIG --libs "shapelib >= 1.3.0" 2>/dev/null`
24955		      test "x$?" != "x0" && pkg_failed=yes
24956else
24957  pkg_failed=yes
24958fi
24959 else
24960    pkg_failed=untried
24961fi
24962
24963
24964
24965if test $pkg_failed = yes; then
24966   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24967$as_echo "no" >&6; }
24968
24969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24970        _pkg_short_errors_supported=yes
24971else
24972        _pkg_short_errors_supported=no
24973fi
24974        if test $_pkg_short_errors_supported = yes; then
24975	        SHAPELIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "shapelib >= 1.3.0" 2>&1`
24976        else
24977	        SHAPELIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "shapelib >= 1.3.0" 2>&1`
24978        fi
24979	# Put the nasty error message in config.log where it belongs
24980	echo "$SHAPELIB_PKG_ERRORS" >&5
24981
24982	{ $as_echo "$as_me:${as_lineno-$LINENO}: tzdist will not have geolocation support.  Consider installing shapelib" >&5
24983$as_echo "$as_me: tzdist will not have geolocation support.  Consider installing shapelib" >&6;}
24984elif test $pkg_failed = untried; then
24985     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24986$as_echo "no" >&6; }
24987	{ $as_echo "$as_me:${as_lineno-$LINENO}: tzdist will not have geolocation support.  Consider installing shapelib" >&5
24988$as_echo "$as_me: tzdist will not have geolocation support.  Consider installing shapelib" >&6;}
24989else
24990	SHAPELIB_CFLAGS=$pkg_cv_SHAPELIB_CFLAGS
24991	SHAPELIB_LIBS=$pkg_cv_SHAPELIB_LIBS
24992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24993$as_echo "yes" >&6; }
24994
24995
24996$as_echo "#define HAVE_SHAPELIB /**/" >>confdefs.h
24997
24998
24999$as_echo "#define SHAPELIB_VERSION \"1.3.0\"" >>confdefs.h
25000
25001                with_shapelib=yes
25002
25003fi
25004
25005        HTTP_CPPFLAGS="${XML2_CFLAGS} ${SQLITE3_CFLAGS} ${ICAL_CFLAGS} ${GLIB_CFLAGS} ${JANSSON_CFLAGS} ${NGHTTP2_CFLAGS} ${WSLAY_CFLAGS} ${BROTLI_CFLAGS} ${ZSTD_CFLAGS} ${SHAPELIB_CFLAGS}"
25006        HTTP_LIBS="${XML2_LIBS} ${SQLITE3_LIBS} ${ICAL_LIBS} ${GLIB_LIBS} ${JANSSON_LIBS} ${NGHTTP2_LIBS} ${WSLAY_LIBS} ${BROTLI_LIBS} ${ZSTD_LIBS} ${SHAPELIB_LIBS} ${LIB_MATH}"
25007fi
25008
25009
25010if test "x$enable_http" = "xyes"; then
25011
25012$as_echo "#define USE_HTTPD /**/" >>confdefs.h
25013
25014fi
25015
25016# Check whether --enable-calalarmd was given.
25017if test "${enable_calalarmd+set}" = set; then :
25018  enableval=$enable_calalarmd;
25019else
25020  enable_calalarmd="no";
25021fi
25022
25023if test "x$enable_calalarmd" = "xyes"; then
25024    if test "x$enable_http" = "xyes"; then
25025
25026$as_echo "#define USE_CALALARMD /**/" >>confdefs.h
25027
25028    else
25029	as_fn_error $? "--enable-calalarmd requires --enable-http" "$LINENO" 5
25030    fi
25031fi
25032 if test "$enable_calalarmd" != "no"; then
25033  CALALARMD_TRUE=
25034  CALALARMD_FALSE='#'
25035else
25036  CALALARMD_TRUE='#'
25037  CALALARMD_FALSE=
25038fi
25039
25040
25041# Check whether --enable-jmap was given.
25042if test "${enable_jmap+set}" = set; then :
25043  enableval=$enable_jmap;
25044else
25045  enable_jmap="no";
25046fi
25047
25048if test "x$enable_jmap" = "xyes" ; then
25049    if test "x$enable_xapian" = "xno" ; then
25050        as_fn_error $? "--enable-jmap requires --enable-xapian" "$LINENO" 5
25051    fi
25052    if test "x$enable_http" = "xno" ; then
25053        as_fn_error $? "--enable-jmap requires --enable-http" "$LINENO" 5
25054    fi
25055
25056$as_echo "#define WITH_JMAP /**/" >>confdefs.h
25057
25058fi
25059 if test "${enable_jmap}" != "no"; then
25060  JMAP_TRUE=
25061  JMAP_FALSE='#'
25062else
25063  JMAP_TRUE='#'
25064  JMAP_FALSE=
25065fi
25066
25067
25068# Check whether --enable-replication was given.
25069if test "${enable_replication+set}" = set; then :
25070  enableval=$enable_replication;
25071else
25072  enable_replication="no";
25073fi
25074
25075 if test "$enable_replication" != no; then
25076  REPLICATION_TRUE=
25077  REPLICATION_FALSE='#'
25078else
25079  REPLICATION_TRUE='#'
25080  REPLICATION_FALSE=
25081fi
25082
25083if test "x$enable_replication" = "xyes"; then
25084
25085$as_echo "#define USE_REPLICATION /**/" >>confdefs.h
25086
25087fi
25088
25089# Check whether --enable-backup was given.
25090if test "${enable_backup+set}" = set; then :
25091  enableval=$enable_backup;
25092else
25093  enable_backup="no";
25094fi
25095
25096 if test "$enable_backup" != no; then
25097  BACKUP_TRUE=
25098  BACKUP_FALSE='#'
25099else
25100  BACKUP_TRUE='#'
25101  BACKUP_FALSE=
25102fi
25103
25104
25105if test "x$enable_backup" != xno; then
25106    if test "x$HAVE_SQLITE" != x1; then
25107        as_fn_error $? "Need sqlite3 for backups" "$LINENO" 5
25108    else
25109        use_sqlite="yes"
25110    fi
25111    if test "x$HAVE_ZLIB" != x1; then
25112        as_fn_error $? "Need zlib for backups" "$LINENO" 5
25113    fi
25114
25115
25116$as_echo "#define ENABLE_BACKUP /**/" >>confdefs.h
25117
25118fi
25119
25120
25121# Check whether --with-com_err was given.
25122if test "${with_com_err+set}" = set; then :
25123  withval=$with_com_err;
25124fi
25125
25126if test -z "$with_com_err"; then
25127        # no value supplied
25128        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
25129$as_echo_n "checking for com_err in -lcom_err... " >&6; }
25130if ${ac_cv_lib_com_err_com_err+:} false; then :
25131  $as_echo_n "(cached) " >&6
25132else
25133  ac_check_lib_save_LIBS=$LIBS
25134LIBS="-lcom_err  $LIBS"
25135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25136/* end confdefs.h.  */
25137
25138/* Override any GCC internal prototype to avoid an error.
25139   Use char because int might match the return type of a GCC
25140   builtin and then its argument prototype would still apply.  */
25141#ifdef __cplusplus
25142extern "C"
25143#endif
25144char com_err ();
25145int
25146main ()
25147{
25148return com_err ();
25149  ;
25150  return 0;
25151}
25152_ACEOF
25153if ac_fn_c_try_link "$LINENO"; then :
25154  ac_cv_lib_com_err_com_err=yes
25155else
25156  ac_cv_lib_com_err_com_err=no
25157fi
25158rm -f core conftest.err conftest.$ac_objext \
25159    conftest$ac_exeext conftest.$ac_ext
25160LIBS=$ac_check_lib_save_LIBS
25161fi
25162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
25163$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
25164if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
25165
25166                # com_err is already in library path
25167                # guess we're okay
25168                # can use system com_err
25169                with_com_err=""
25170                ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
25171if test "x$ac_cv_header_et_com_err_h" = xyes; then :
25172
25173$as_echo "#define HAVE_ET_COM_ERR_H /**/" >>confdefs.h
25174
25175else
25176  ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
25177if test "x$ac_cv_header_com_err_h" = xyes; then :
25178
25179else
25180  as_fn_error $? "cannot locate com_err.h" "$LINENO" 5
25181fi
25182
25183
25184fi
25185
25186
25187                # Extract the first word of "compile_et", so it can be a program name with args.
25188set dummy compile_et; ac_word=$2
25189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25190$as_echo_n "checking for $ac_word... " >&6; }
25191if ${ac_cv_path_COMPILE_ET+:} false; then :
25192  $as_echo_n "(cached) " >&6
25193else
25194  case $COMPILE_ET in
25195  [\\/]* | ?:[\\/]*)
25196  ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
25197  ;;
25198  *)
25199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25200for as_dir in $PATH
25201do
25202  IFS=$as_save_IFS
25203  test -z "$as_dir" && as_dir=.
25204    for ac_exec_ext in '' $ac_executable_extensions; do
25205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25206    ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
25207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25208    break 2
25209  fi
25210done
25211  done
25212IFS=$as_save_IFS
25213
25214  test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="no compile et"
25215  ;;
25216esac
25217fi
25218COMPILE_ET=$ac_cv_path_COMPILE_ET
25219if test -n "$COMPILE_ET"; then
25220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
25221$as_echo "$COMPILE_ET" >&6; }
25222else
25223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25224$as_echo "no" >&6; }
25225fi
25226
25227
25228
25229else
25230
25231        if test -f /usr/local/include/com_err.h -o -f /usr/local/include/et/com_err.h; then
25232                with_com_err="/usr/local"
25233                # Extract the first word of "/usr/local/bin/compile_et", so it can be a program name with args.
25234set dummy /usr/local/bin/compile_et; ac_word=$2
25235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25236$as_echo_n "checking for $ac_word... " >&6; }
25237if ${ac_cv_path_COMPILE_ET+:} false; then :
25238  $as_echo_n "(cached) " >&6
25239else
25240  case $COMPILE_ET in
25241  [\\/]* | ?:[\\/]*)
25242  ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
25243  ;;
25244  *)
25245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25246for as_dir in $PATH
25247do
25248  IFS=$as_save_IFS
25249  test -z "$as_dir" && as_dir=.
25250    for ac_exec_ext in '' $ac_executable_extensions; do
25251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25252    ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
25253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25254    break 2
25255  fi
25256done
25257  done
25258IFS=$as_save_IFS
25259
25260  test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="no compile et"
25261  ;;
25262esac
25263fi
25264COMPILE_ET=$ac_cv_path_COMPILE_ET
25265if test -n "$COMPILE_ET"; then
25266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
25267$as_echo "$COMPILE_ET" >&6; }
25268else
25269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25270$as_echo "no" >&6; }
25271fi
25272
25273
25274        elif test -f /usr/include/com_err.h -o -f /usr/include/et/com_err.h; then
25275                with_com_err="/usr"
25276                # Extract the first word of "/usr/bin/compile_et", so it can be a program name with args.
25277set dummy /usr/bin/compile_et; ac_word=$2
25278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25279$as_echo_n "checking for $ac_word... " >&6; }
25280if ${ac_cv_path_COMPILE_ET+:} false; then :
25281  $as_echo_n "(cached) " >&6
25282else
25283  case $COMPILE_ET in
25284  [\\/]* | ?:[\\/]*)
25285  ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
25286  ;;
25287  *)
25288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25289for as_dir in $PATH
25290do
25291  IFS=$as_save_IFS
25292  test -z "$as_dir" && as_dir=.
25293    for ac_exec_ext in '' $ac_executable_extensions; do
25294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25295    ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
25296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25297    break 2
25298  fi
25299done
25300  done
25301IFS=$as_save_IFS
25302
25303  test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="no compile et"
25304  ;;
25305esac
25306fi
25307COMPILE_ET=$ac_cv_path_COMPILE_ET
25308if test -n "$COMPILE_ET"; then
25309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
25310$as_echo "$COMPILE_ET" >&6; }
25311else
25312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25313$as_echo "no" >&6; }
25314fi
25315
25316
25317        else
25318                # use ours
25319                with_com_err=yes
25320        fi
25321
25322fi
25323
25324
25325        if test "${with_com_err}" = "no"; then
25326          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: com_err is required; included version will be used." >&5
25327$as_echo "$as_me: WARNING: com_err is required; included version will be used." >&2;}
25328          with_com_err="yes"
25329        fi
25330        if test "${COMPILE_ET}" = "no compile et" -o "${COMPILE_ET}" = ""; then
25331          { $as_echo "$as_me:${as_lineno-$LINENO}: Parts of com_err distribution were found, but not compile_et." >&5
25332$as_echo "$as_me: Parts of com_err distribution were found, but not compile_et." >&6;}
25333          { $as_echo "$as_me:${as_lineno-$LINENO}: Will build com_err from included sources." >&5
25334$as_echo "$as_me: Will build com_err from included sources." >&6;}
25335          with_com_err="yes" # build it ourselves
25336        fi
25337fi
25338
25339case "$with_com_err" in
25340    # built-in et
25341    yes) # use the com_err we're gonna build
25342        COMPILE_ET="\${abs_top_builddir}/com_err/et/compile_et"
25343        ;;
25344    "") # no problem, we already have it in the paths
25345        # we do nothing to pick it up
25346        ;;
25347    *)  # use whatever they told us, or whatever we found
25348        COMPILE_ET="${with_com_err}/bin/compile_et"
25349        ;;
25350esac
25351
25352if test "$with_com_err" != yes ; then
25353            TEST1=".cyrus-configure-test-$$"
25354    /bin/rm -f $TEST1.et $TEST1.h $TEST1.c
25355    echo "error_table imap" >> $TEST1.et
25356    echo "ec IMAP_TESTING," >> $TEST1.et
25357    echo "   \"Testing\"" >> $TEST1.et
25358    echo "end" >> $TEST1.et
25359    "${COMPILE_ET}" $TEST1.et > /dev/null
25360    compile_et_ok=no
25361    if test -f $TEST1.h ; then
25362                if test `awk '/IMAP_TESTING/{print $3}' $TEST1.h 2>/dev/null` = "(-1904809472L)" ; then
25363                        if grep -q '^extern const struct error_table et_imap_error_table;' $TEST1.h; then
25364                compile_et_ok=yes
25365            fi
25366        fi
25367    fi
25368    /bin/rm -f $TEST1.et $TEST1.h $TEST1.c
25369    if test "$compile_et_ok" = no ; then
25370        # revert to the built-in compile_et
25371        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems $COMPILE_ET is buggy, building our own" >&5
25372$as_echo "$as_me: WARNING: It seems $COMPILE_ET is buggy, building our own" >&2;}
25373        with_com_err=yes
25374        COMPILE_ET="\${abs_top_builddir}/com_err/et/compile_et"
25375    fi
25376fi
25377
25378case "$with_com_err" in
25379  # built-in et
25380  yes) # use the com_err we're gonna build
25381          COM_ERR_LIBS="com_err/et/libcyrus_com_err.la"
25382          COM_ERR_CPPFLAGS="-I\${abs_top_srcdir}/com_err/et"
25383          ;;
25384  "")   # no problem, we already have it in the paths
25385        # we do nothing to pick it up
25386        COM_ERR_LIBS="-lcom_err" # hope it's not shared
25387        # we already set COMPILE_ET, or we didn't get here
25388        COM_ERR_CPPFLAGS=""
25389      ;;
25390  *) # use whatever they told us, or whatever we found
25391     COM_ERR_LIBS="${with_com_err}/lib/libcom_err.a"
25392     COM_ERR_CPPFLAGS="-I${with_com_err}/include"
25393     # Ever get the feeling people hide this stuff on purpose?
25394     if test -d "${with_com_err}/include/et" ; then
25395       COM_ERR_CPPFLAGS="-I${with_com_err}/include/et"
25396     fi
25397esac
25398 if test "$with_com_err" = "yes"; then
25399  COM_ERR_TRUE=
25400  COM_ERR_FALSE='#'
25401else
25402  COM_ERR_TRUE='#'
25403  COM_ERR_FALSE=
25404fi
25405
25406if test "$with_com_err" = "yes"; then
25407  PKG_CONFIG_COM_ERR_LIB="-lcyrus_com_err"
25408fi
25409
25410
25411
25412
25413
25414if test "$USE_MAINTAINER_MODE" = "yes" ; then
25415    # Extract the first word of "gperf", so it can be a program name with args.
25416set dummy gperf; ac_word=$2
25417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25418$as_echo_n "checking for $ac_word... " >&6; }
25419if ${ac_cv_prog_GPERF+:} false; then :
25420  $as_echo_n "(cached) " >&6
25421else
25422  if test -n "$GPERF"; then
25423  ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
25424else
25425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25426for as_dir in $PATH
25427do
25428  IFS=$as_save_IFS
25429  test -z "$as_dir" && as_dir=.
25430    for ac_exec_ext in '' $ac_executable_extensions; do
25431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25432    ac_cv_prog_GPERF="yes"
25433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25434    break 2
25435  fi
25436done
25437  done
25438IFS=$as_save_IFS
25439
25440  test -z "$ac_cv_prog_GPERF" && ac_cv_prog_GPERF="no"
25441fi
25442fi
25443GPERF=$ac_cv_prog_GPERF
25444if test -n "$GPERF"; then
25445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
25446$as_echo "$GPERF" >&6; }
25447else
25448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25449$as_echo "no" >&6; }
25450fi
25451
25452
25453    if test "$GPERF" != "yes"; then
25454        as_fn_error $? "gperf is not installed on this system, but is required for maintainer mode build rules" "$LINENO" 5
25455    fi
25456fi
25457
25458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern syslog" >&5
25459$as_echo_n "checking for modern syslog... " >&6; }
25460if ${cyrus_cv_lib_syslog+:} false; then :
25461  $as_echo_n "(cached) " >&6
25462else
25463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464/* end confdefs.h.  */
25465#include <syslog.h>
25466#ifndef LOG_LOCAL6
25467#include </nonexistent>
25468#endif
25469_ACEOF
25470if ac_fn_c_try_cpp "$LINENO"; then :
25471  cyrus_cv_lib_syslog=yes
25472else
25473  cyrus_cv_lib_syslog=no
25474fi
25475rm -f conftest.err conftest.i conftest.$ac_ext
25476fi
25477
25478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_lib_syslog" >&5
25479$as_echo "$cyrus_cv_lib_syslog" >&6; }
25480
25481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility to use" >&5
25482$as_echo_n "checking which syslog facility to use... " >&6; }
25483SYSLOG_FACILITY=LOG_LOCAL6
25484
25485# Check whether --with-syslogfacility was given.
25486if test "${with_syslogfacility+set}" = set; then :
25487  withval=$with_syslogfacility;  if test "$withval" != "yes" -a "$withval" != "no" ; then
25488                       SYSLOG_FACILITY=LOG_$withval
25489               fi;
25490fi
25491
25492
25493cat >>confdefs.h <<_ACEOF
25494#define SYSLOG_FACILITY $SYSLOG_FACILITY
25495_ACEOF
25496
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSLOG_FACILITY" >&5
25498$as_echo "$SYSLOG_FACILITY" >&6; }
25499
25500ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
25501if test "x$ac_cv_func_getdtablesize" = xyes; then :
25502  $as_echo "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
25503
25504else
25505  case " $LIBOBJS " in
25506  *" getdtablesize.$ac_objext "* ) ;;
25507  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
25508 ;;
25509esac
25510
25511fi
25512
25513
25514# Check whether --enable-cmulocal was given.
25515if test "${enable_cmulocal+set}" = set; then :
25516  enableval=$enable_cmulocal;
25517fi
25518
25519 if test "$enable_cmulocal" = "yes"; then
25520  CMULOCAL_TRUE=
25521  CMULOCAL_FALSE='#'
25522else
25523  CMULOCAL_TRUE='#'
25524  CMULOCAL_FALSE=
25525fi
25526
25527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to use old sieve service name" >&5
25528$as_echo_n "checking to use old sieve service name... " >&6; }
25529# Check whether --enable-oldsievename was given.
25530if test "${enable_oldsievename+set}" = set; then :
25531  enableval=$enable_oldsievename; if test "$enableval" = yes; then
25532                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25533$as_echo "yes" >&6; }
25534
25535$as_echo "#define OLD_SIEVE_SERVICE_NAME /**/" >>confdefs.h
25536
25537        else
25538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25539$as_echo "no" >&6; }
25540        fi
25541else
25542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25543$as_echo "no" >&6; }
25544fi
25545
25546
25547ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
25548if test "x$ac_cv_func_crypt" = xyes; then :
25549  cmu_have_crypt=yes
25550else
25551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
25552$as_echo_n "checking for crypt in -lcrypt... " >&6; }
25553if ${ac_cv_lib_crypt_crypt+:} false; then :
25554  $as_echo_n "(cached) " >&6
25555else
25556  ac_check_lib_save_LIBS=$LIBS
25557LIBS="-lcrypt  $LIBS"
25558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25559/* end confdefs.h.  */
25560
25561/* Override any GCC internal prototype to avoid an error.
25562   Use char because int might match the return type of a GCC
25563   builtin and then its argument prototype would still apply.  */
25564#ifdef __cplusplus
25565extern "C"
25566#endif
25567char crypt ();
25568int
25569main ()
25570{
25571return crypt ();
25572  ;
25573  return 0;
25574}
25575_ACEOF
25576if ac_fn_c_try_link "$LINENO"; then :
25577  ac_cv_lib_crypt_crypt=yes
25578else
25579  ac_cv_lib_crypt_crypt=no
25580fi
25581rm -f core conftest.err conftest.$ac_objext \
25582    conftest$ac_exeext conftest.$ac_ext
25583LIBS=$ac_check_lib_save_LIBS
25584fi
25585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
25586$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
25587if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
25588  LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
25589else
25590  cmu_have_crypt=no
25591fi
25592
25593fi
25594
25595
25596
25597
25598
25599# Check whether --enable-gssapi was given.
25600if test "${enable_gssapi+set}" = set; then :
25601  enableval=$enable_gssapi; gssapi=$enableval
25602else
25603  gssapi=yes
25604fi
25605
25606
25607# Check whether --with-gss_impl was given.
25608if test "${with_gss_impl+set}" = set; then :
25609  withval=$with_gss_impl; gss_impl=$withval
25610else
25611  gss_impl=auto
25612fi
25613
25614
25615if test "$gssapi" != no; then
25616  platform=
25617  case "${host}" in
25618    *-*-linux*)
25619      platform=__linux
25620      ;;
25621    *-*-hpux*)
25622      platform=__hpux
25623      ;;
25624    *-*-irix*)
25625      platform=__irix
25626      ;;
25627    *-*-solaris2*)
25628# When should we use __sunos?
25629      platform=__solaris
25630      ;;
25631    *-*-aix*)
25632###_AIX
25633      platform=__aix
25634      ;;
25635    *)
25636      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
25637$as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;}
25638      if test "$gss_impl" = "cybersafe"; then
25639        as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
25640      fi
25641      ;;
25642  esac
25643
25644  cmu_saved_CPPFLAGS=$CPPFLAGS
25645
25646  if test -d ${gssapi}; then
25647    CPPFLAGS="$CPPFLAGS -I$gssapi/include"
25648# We want to keep -I in our CPPFLAGS, but only if we succeed
25649    cmu_saved_CPPFLAGS=$CPPFLAGS
25650### I am not sure how useful is this (and whether this is required at all
25651### especially when we have to provide two -L flags for new CyberSafe
25652    LDFLAGS="$LDFLAGS -L$gssapi/lib"
25653
25654    if test -n "$platform"; then
25655      if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
25656        CPPFLAGS="$CPPFLAGS -D$platform"
25657        if test -d "${gssapi}/appsec-sdk/include"; then
25658          CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
25659        fi
25660      fi
25661    fi
25662  fi
25663  ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25664if test "x$ac_cv_header_gssapi_h" = xyes; then :
25665
25666else
25667  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25668if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
25669
25670else
25671  gssapi=no
25672fi
25673
25674
25675fi
25676
25677
25678  for ac_header in gssapi/gssapi_ext.h
25679do :
25680  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
25681if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then :
25682  cat >>confdefs.h <<_ACEOF
25683#define HAVE_GSSAPI_GSSAPI_EXT_H 1
25684_ACEOF
25685
25686fi
25687
25688done
25689
25690  CPPFLAGS=$cmu_saved_CPPFLAGS
25691
25692fi
25693
25694if test "$gssapi" != no; then
25695  if test "$ac_cv_header_gssapi_h" = "yes" -o "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
25696
25697$as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
25698
25699  fi
25700
25701  # We need to find out which gssapi implementation we are
25702  # using. Supported alternatives are: MIT Kerberos 5,
25703  # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
25704  # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
25705  # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
25706  #
25707  # The choice is reflected in GSSAPIBASE_LIBS
25708
25709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
25710$as_echo_n "checking for res_search in -lresolv... " >&6; }
25711if ${ac_cv_lib_resolv_res_search+:} false; then :
25712  $as_echo_n "(cached) " >&6
25713else
25714  ac_check_lib_save_LIBS=$LIBS
25715LIBS="-lresolv  $LIBS"
25716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25717/* end confdefs.h.  */
25718
25719/* Override any GCC internal prototype to avoid an error.
25720   Use char because int might match the return type of a GCC
25721   builtin and then its argument prototype would still apply.  */
25722#ifdef __cplusplus
25723extern "C"
25724#endif
25725char res_search ();
25726int
25727main ()
25728{
25729return res_search ();
25730  ;
25731  return 0;
25732}
25733_ACEOF
25734if ac_fn_c_try_link "$LINENO"; then :
25735  ac_cv_lib_resolv_res_search=yes
25736else
25737  ac_cv_lib_resolv_res_search=no
25738fi
25739rm -f core conftest.err conftest.$ac_objext \
25740    conftest$ac_exeext conftest.$ac_ext
25741LIBS=$ac_check_lib_save_LIBS
25742fi
25743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
25744$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
25745if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
25746  cat >>confdefs.h <<_ACEOF
25747#define HAVE_LIBRESOLV 1
25748_ACEOF
25749
25750  LIBS="-lresolv $LIBS"
25751
25752fi
25753
25754  if test -d ${gssapi}; then
25755     gssapi_dir="${gssapi}/lib"
25756     GSSAPIBASE_LIBS="-L$gssapi_dir"
25757     GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
25758  else
25759     # FIXME: This is only used for building cyrus, and then only as
25760     # a real hack.  it needs to be fixed.
25761     gssapi_dir="/usr/local/lib"
25762  fi
25763
25764  # Check a full link against the Heimdal libraries.
25765  # If this fails, check a full link against the MIT libraries.
25766  # If this fails, check a full link against the CyberSafe libraries.
25767  # If this fails, check a full link against the Solaris 8 and up libgss.
25768
25769  if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
25770    gss_failed=0
25771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
25772$as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
25773if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
25774  $as_echo_n "(cached) " >&6
25775else
25776  ac_check_lib_save_LIBS=$LIBS
25777LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} -lhx509 $LIBS"
25778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779/* end confdefs.h.  */
25780
25781/* Override any GCC internal prototype to avoid an error.
25782   Use char because int might match the return type of a GCC
25783   builtin and then its argument prototype would still apply.  */
25784#ifdef __cplusplus
25785extern "C"
25786#endif
25787char gss_unwrap ();
25788int
25789main ()
25790{
25791return gss_unwrap ();
25792  ;
25793  return 0;
25794}
25795_ACEOF
25796if ac_fn_c_try_link "$LINENO"; then :
25797  ac_cv_lib_gssapi_gss_unwrap=yes
25798else
25799  ac_cv_lib_gssapi_gss_unwrap=no
25800fi
25801rm -f core conftest.err conftest.$ac_objext \
25802    conftest$ac_exeext conftest.$ac_ext
25803LIBS=$ac_check_lib_save_LIBS
25804fi
25805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
25806$as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
25807if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
25808  gss_impl="heimdal"
25809else
25810  gss_failed=1
25811fi
25812
25813    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
25814      gss_impl="failed"
25815    fi
25816  fi
25817
25818  if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
25819    # check for libkrb5support first
25820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
25821$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
25822if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
25823  $as_echo_n "(cached) " >&6
25824else
25825  ac_check_lib_save_LIBS=$LIBS
25826LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
25827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25828/* end confdefs.h.  */
25829
25830/* Override any GCC internal prototype to avoid an error.
25831   Use char because int might match the return type of a GCC
25832   builtin and then its argument prototype would still apply.  */
25833#ifdef __cplusplus
25834extern "C"
25835#endif
25836char krb5int_getspecific ();
25837int
25838main ()
25839{
25840return krb5int_getspecific ();
25841  ;
25842  return 0;
25843}
25844_ACEOF
25845if ac_fn_c_try_link "$LINENO"; then :
25846  ac_cv_lib_krb5support_krb5int_getspecific=yes
25847else
25848  ac_cv_lib_krb5support_krb5int_getspecific=no
25849fi
25850rm -f core conftest.err conftest.$ac_objext \
25851    conftest$ac_exeext conftest.$ac_ext
25852LIBS=$ac_check_lib_save_LIBS
25853fi
25854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
25855$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
25856if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
25857  K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
25858fi
25859
25860
25861    gss_failed=0
25862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
25863$as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
25864if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
25865  $as_echo_n "(cached) " >&6
25866else
25867  ac_check_lib_save_LIBS=$LIBS
25868LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
25869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25870/* end confdefs.h.  */
25871
25872/* Override any GCC internal prototype to avoid an error.
25873   Use char because int might match the return type of a GCC
25874   builtin and then its argument prototype would still apply.  */
25875#ifdef __cplusplus
25876extern "C"
25877#endif
25878char gss_unwrap ();
25879int
25880main ()
25881{
25882return gss_unwrap ();
25883  ;
25884  return 0;
25885}
25886_ACEOF
25887if ac_fn_c_try_link "$LINENO"; then :
25888  ac_cv_lib_gssapi_krb5_gss_unwrap=yes
25889else
25890  ac_cv_lib_gssapi_krb5_gss_unwrap=no
25891fi
25892rm -f core conftest.err conftest.$ac_objext \
25893    conftest$ac_exeext conftest.$ac_ext
25894LIBS=$ac_check_lib_save_LIBS
25895fi
25896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
25897$as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
25898if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
25899  gss_impl="mit"
25900else
25901  gss_failed=1
25902fi
25903
25904    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
25905      gss_impl="failed"
25906    fi
25907  fi
25908
25909  # For Cybersafe one has to set a platform define in order to make compilation work
25910  if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
25911
25912    cmu_saved_CPPFLAGS=$CPPFLAGS
25913    cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
25914# FIXME - Note that the libraries are in .../lib64 for 64bit kernels
25915    if test -d "${gssapi}/appsec-rt/lib"; then
25916      GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
25917    fi
25918    CPPFLAGS="$CPPFLAGS -D$platform"
25919    if test -d "${gssapi}/appsec-sdk/include"; then
25920      CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
25921    fi
25922
25923    gss_failed=0
25924
25925# Check for CyberSafe with two libraries first, than fall back to a single
25926# library (older CyberSafe)
25927
25928    unset ac_cv_lib_gss_csf_gss_acq_user
25929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
25930$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
25931if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
25932  $as_echo_n "(cached) " >&6
25933else
25934  ac_check_lib_save_LIBS=$LIBS
25935LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
25936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25937/* end confdefs.h.  */
25938
25939/* Override any GCC internal prototype to avoid an error.
25940   Use char because int might match the return type of a GCC
25941   builtin and then its argument prototype would still apply.  */
25942#ifdef __cplusplus
25943extern "C"
25944#endif
25945char csf_gss_acq_user ();
25946int
25947main ()
25948{
25949return csf_gss_acq_user ();
25950  ;
25951  return 0;
25952}
25953_ACEOF
25954if ac_fn_c_try_link "$LINENO"; then :
25955  ac_cv_lib_gss_csf_gss_acq_user=yes
25956else
25957  ac_cv_lib_gss_csf_gss_acq_user=no
25958fi
25959rm -f core conftest.err conftest.$ac_objext \
25960    conftest$ac_exeext conftest.$ac_ext
25961LIBS=$ac_check_lib_save_LIBS
25962fi
25963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
25964$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
25965if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
25966  gss_impl="cybersafe03"
25967else
25968  unset ac_cv_lib_gss_csf_gss_acq_user;
25969                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
25970$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
25971if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
25972  $as_echo_n "(cached) " >&6
25973else
25974  ac_check_lib_save_LIBS=$LIBS
25975LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
25976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25977/* end confdefs.h.  */
25978
25979/* Override any GCC internal prototype to avoid an error.
25980   Use char because int might match the return type of a GCC
25981   builtin and then its argument prototype would still apply.  */
25982#ifdef __cplusplus
25983extern "C"
25984#endif
25985char csf_gss_acq_user ();
25986int
25987main ()
25988{
25989return csf_gss_acq_user ();
25990  ;
25991  return 0;
25992}
25993_ACEOF
25994if ac_fn_c_try_link "$LINENO"; then :
25995  ac_cv_lib_gss_csf_gss_acq_user=yes
25996else
25997  ac_cv_lib_gss_csf_gss_acq_user=no
25998fi
25999rm -f core conftest.err conftest.$ac_objext \
26000    conftest$ac_exeext conftest.$ac_ext
26001LIBS=$ac_check_lib_save_LIBS
26002fi
26003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
26004$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
26005if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
26006  gss_impl="cybersafe"
26007else
26008  gss_failed=1
26009fi
26010
26011fi
26012
26013
26014    if test "$gss_failed" = "1"; then
26015# Restore variables
26016      GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
26017      CPPFLAGS=$cmu_saved_CPPFLAGS
26018
26019      if test "$gss_impl" != "auto"; then
26020        gss_impl="failed"
26021      fi
26022    fi
26023  fi
26024
26025  if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
26026    gss_failed=0
26027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
26028$as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
26029if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
26030  $as_echo_n "(cached) " >&6
26031else
26032  ac_check_lib_save_LIBS=$LIBS
26033LIBS="-lgss -lgss $LIBS"
26034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26035/* end confdefs.h.  */
26036
26037/* Override any GCC internal prototype to avoid an error.
26038   Use char because int might match the return type of a GCC
26039   builtin and then its argument prototype would still apply.  */
26040#ifdef __cplusplus
26041extern "C"
26042#endif
26043char gss_unwrap ();
26044int
26045main ()
26046{
26047return gss_unwrap ();
26048  ;
26049  return 0;
26050}
26051_ACEOF
26052if ac_fn_c_try_link "$LINENO"; then :
26053  ac_cv_lib_gss_gss_unwrap=yes
26054else
26055  ac_cv_lib_gss_gss_unwrap=no
26056fi
26057rm -f core conftest.err conftest.$ac_objext \
26058    conftest$ac_exeext conftest.$ac_ext
26059LIBS=$ac_check_lib_save_LIBS
26060fi
26061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
26062$as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
26063if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
26064  gss_impl="seam"
26065else
26066  gss_failed=1
26067fi
26068
26069    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
26070      gss_impl="failed"
26071    fi
26072  fi
26073
26074  if test "$gss_impl" = "mit"; then
26075    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
26076    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
26077  elif test "$gss_impl" = "heimdal"; then
26078    CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
26079    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err -lhx509"
26080    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
26081  elif test "$gss_impl" = "cybersafe03"; then
26082# Version of CyberSafe with two libraries
26083    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
26084    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
26085    # there is no static libgss for CyberSafe
26086    GSSAPIBASE_STATIC_LIBS=none
26087  elif test "$gss_impl" = "cybersafe"; then
26088    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
26089    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
26090    # there is no static libgss for CyberSafe
26091    GSSAPIBASE_STATIC_LIBS=none
26092  elif test "$gss_impl" = "seam"; then
26093    GSSAPIBASE_LIBS=-lgss
26094    # there is no static libgss on Solaris 8 and up
26095    GSSAPIBASE_STATIC_LIBS=none
26096  elif test "$gss_impl" = "failed"; then
26097    gssapi="no"
26098    GSSAPIBASE_LIBS=
26099    GSSAPIBASE_STATIC_LIBS=
26100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
26101$as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
26102  else
26103    gssapi="no"
26104    GSSAPIBASE_LIBS=
26105    GSSAPIBASE_STATIC_LIBS=
26106    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
26107$as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
26108  fi
26109fi
26110
26111#
26112# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
26113# in gssapi\rfckrb5.h
26114#
26115if test "$gssapi" != "no"; then
26116  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
26117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26118/* end confdefs.h.  */
26119#include <gssapi/gssapi.h>
26120                  #ifdef GSS_C_NT_HOSTBASED_SERVICE
26121                    hostbased_service_gss_nt_yes
26122                  #endif
26123_ACEOF
26124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26125  $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
26126
26127$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
26128
26129else
26130  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
26131$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
26132fi
26133rm -f conftest*
26134
26135
26136  elif test "$ac_cv_header_gssapi_h" = "yes"; then
26137    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26138/* end confdefs.h.  */
26139#include <gssapi.h>
26140
26141_ACEOF
26142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26143  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
26144
26145$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
26146
26147fi
26148rm -f conftest*
26149
26150  elif test "$ac_cv_header_gssapi_gssapi_h"; then
26151    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152/* end confdefs.h.  */
26153#include <gssapi/gssapi.h>
26154
26155_ACEOF
26156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26157  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
26158
26159$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
26160
26161fi
26162rm -f conftest*
26163
26164  fi
26165
26166  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
26167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26168/* end confdefs.h.  */
26169#include <gssapi/gssapi.h>
26170                  #ifdef GSS_C_NT_USER_NAME
26171                   user_name_yes_gss_nt
26172                  #endif
26173_ACEOF
26174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26175  $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
26176
26177$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
26178
26179else
26180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
26181$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
26182fi
26183rm -f conftest*
26184
26185  elif test "$ac_cv_header_gssapi_h" = "yes"; then
26186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26187/* end confdefs.h.  */
26188#include <gssapi.h>
26189
26190_ACEOF
26191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26192  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
26193
26194$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
26195
26196fi
26197rm -f conftest*
26198
26199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200/* end confdefs.h.  */
26201#include <gssapi.h>
26202
26203_ACEOF
26204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26205  $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
26206  rfc5587=yes
26207fi
26208rm -f conftest*
26209
26210    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211/* end confdefs.h.  */
26212#include <gssapi.h>
26213
26214_ACEOF
26215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26216  $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then :
26217  rfc5801=yes
26218fi
26219rm -f conftest*
26220
26221  elif test "$ac_cv_header_gssapi_gssapi_h"; then
26222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223/* end confdefs.h.  */
26224#include <gssapi/gssapi.h>
26225
26226_ACEOF
26227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26228  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
26229
26230$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
26231
26232fi
26233rm -f conftest*
26234
26235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26236/* end confdefs.h.  */
26237#include <gssapi/gssapi.h>
26238
26239_ACEOF
26240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26241  $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
26242  rfc5587=yes
26243fi
26244rm -f conftest*
26245
26246    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26247/* end confdefs.h.  */
26248#include <gssapi.h>
26249
26250_ACEOF
26251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26252  $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then :
26253  rfc5801=yes
26254fi
26255rm -f conftest*
26256
26257  fi
26258fi
26259
26260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
26261$as_echo_n "checking GSSAPI... " >&6; }
26262if test "$gssapi" != no; then
26263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
26264$as_echo "with implementation ${gss_impl}" >&6; }
26265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
26266$as_echo_n "checking for res_search in -lresolv... " >&6; }
26267if ${ac_cv_lib_resolv_res_search+:} false; then :
26268  $as_echo_n "(cached) " >&6
26269else
26270  ac_check_lib_save_LIBS=$LIBS
26271LIBS="-lresolv  $LIBS"
26272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26273/* end confdefs.h.  */
26274
26275/* Override any GCC internal prototype to avoid an error.
26276   Use char because int might match the return type of a GCC
26277   builtin and then its argument prototype would still apply.  */
26278#ifdef __cplusplus
26279extern "C"
26280#endif
26281char res_search ();
26282int
26283main ()
26284{
26285return res_search ();
26286  ;
26287  return 0;
26288}
26289_ACEOF
26290if ac_fn_c_try_link "$LINENO"; then :
26291  ac_cv_lib_resolv_res_search=yes
26292else
26293  ac_cv_lib_resolv_res_search=no
26294fi
26295rm -f core conftest.err conftest.$ac_objext \
26296    conftest$ac_exeext conftest.$ac_ext
26297LIBS=$ac_check_lib_save_LIBS
26298fi
26299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
26300$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
26301if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
26302  GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
26303fi
26304
26305  SASL_MECHS="$SASL_MECHS libgssapiv2.la"
26306  SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
26307  SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gssapi.c"
26308  if test "$rfc5587" = "yes" -a "$rfc5801" = "yes"; then
26309    SASL_MECHS="$SASL_MECHS libgs2.la"
26310    SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
26311    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gs2.c"
26312  fi
26313
26314  cmu_save_LIBS="$LIBS"
26315  LIBS="$LIBS $GSSAPIBASE_LIBS"
26316  for ac_func in gsskrb5_register_acceptor_identity
26317do :
26318  ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
26319if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
26320  cat >>confdefs.h <<_ACEOF
26321#define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
26322_ACEOF
26323
26324fi
26325done
26326
26327  for ac_func in gss_decapsulate_token
26328do :
26329  ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
26330if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
26331  cat >>confdefs.h <<_ACEOF
26332#define HAVE_GSS_DECAPSULATE_TOKEN 1
26333_ACEOF
26334
26335fi
26336done
26337
26338  for ac_func in gss_encapsulate_token
26339do :
26340  ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
26341if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
26342  cat >>confdefs.h <<_ACEOF
26343#define HAVE_GSS_ENCAPSULATE_TOKEN 1
26344_ACEOF
26345
26346fi
26347done
26348
26349  for ac_func in gss_oid_equal
26350do :
26351  ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
26352if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
26353  cat >>confdefs.h <<_ACEOF
26354#define HAVE_GSS_OID_EQUAL 1
26355_ACEOF
26356
26357fi
26358done
26359
26360  LIBS="$cmu_save_LIBS"
26361
26362  cmu_save_LIBS="$LIBS"
26363  LIBS="$LIBS $GSSAPIBASE_LIBS"
26364  for ac_func in gss_get_name_attribute
26365do :
26366  ac_fn_c_check_func "$LINENO" "gss_get_name_attribute" "ac_cv_func_gss_get_name_attribute"
26367if test "x$ac_cv_func_gss_get_name_attribute" = xyes; then :
26368  cat >>confdefs.h <<_ACEOF
26369#define HAVE_GSS_GET_NAME_ATTRIBUTE 1
26370_ACEOF
26371
26372fi
26373done
26374
26375  LIBS="$cmu_save_LIBS"
26376
26377  cmu_save_LIBS="$LIBS"
26378  LIBS="$LIBS $GSSAPIBASE_LIBS"
26379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPNEGO support in GSSAPI libraries" >&5
26380$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
26381  if test "$cross_compiling" = yes; then :
26382  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26384as_fn_error $? "cannot run test program while cross compiling
26385See \`config.log' for more details" "$LINENO" 5; }
26386else
26387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388/* end confdefs.h.  */
26389
26390#ifdef HAVE_GSSAPI_H
26391#include <gssapi.h>
26392#else
26393#include <gssapi/gssapi.h>
26394#endif
26395
26396int main(void)
26397{
26398    gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
26399    gss_OID_set mech_set;
26400    OM_uint32 min_stat;
26401    int have_spnego = 0;
26402
26403    if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
26404        gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
26405        gss_release_oid_set(&min_stat, &mech_set);
26406    }
26407
26408    return (!have_spnego);  // 0 = success, 1 = failure
26409}
26410
26411_ACEOF
26412if ac_fn_c_try_run "$LINENO"; then :
26413
26414$as_echo "#define HAVE_GSS_SPNEGO /**/" >>confdefs.h
26415
26416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26417$as_echo "yes" >&6; }
26418else
26419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26420$as_echo "no" >&6; }
26421fi
26422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26423  conftest.$ac_objext conftest.beam conftest.$ac_ext
26424fi
26425
26426  LIBS="$cmu_save_LIBS"
26427
26428else
26429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
26430$as_echo "disabled" >&6; }
26431fi
26432
26433
26434
26435
26436
26437# Check whether --with-sasl was given.
26438if test "${with_sasl+set}" = set; then :
26439  withval=$with_sasl; with_sasl="$withval"
26440else
26441  with_sasl="yes"
26442fi
26443
26444
26445
26446# Check whether --with-staticsasl was given.
26447if test "${with_staticsasl+set}" = set; then :
26448  withval=$with_staticsasl; with_staticsasl="$withval";
26449             if test $with_staticsasl != "no"; then
26450               using_static_sasl="static"
26451             fi
26452else
26453  with_staticsasl="no"; using_static_sasl="no"
26454fi
26455
26456
26457SASLFLAGS=""
26458LIB_SASL=""
26459
26460cmu_saved_CPPFLAGS=$CPPFLAGS
26461cmu_saved_LDFLAGS=$LDFLAGS
26462cmu_saved_LIBS=$LIBS
26463
26464if test ${with_staticsasl} != "no"; then
26465  if test -d ${with_staticsasl}; then
26466    if test -d ${with_staticsasl}/lib64 ; then
26467      ac_cv_sasl_where_lib=${with_staticsasl}/lib64
26468    else
26469      ac_cv_sasl_where_lib=${with_staticsasl}/lib
26470    fi
26471    ac_cv_sasl_where_lib=${with_staticsasl}/lib
26472    ac_cv_sasl_where_inc=${with_staticsasl}/include
26473
26474    SASLFLAGS="-I$ac_cv_sasl_where_inc"
26475    LIB_SASL="-L$ac_cv_sasl_where_lib"
26476    CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
26477    LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
26478  else
26479    with_staticsasl="/usr"
26480  fi
26481
26482  ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
26483if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
26484  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
26485if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
26486  for i42 in lib64 lib; do
26487                                      if test -r ${with_staticsasl}/$i42/libsasl2.a; then
26488                                        ac_cv_found_sasl=yes
26489                                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libsasl" >&5
26490$as_echo_n "checking for static libsasl... " >&6; }
26491                                        LIB_SASL="$LIB_SASL ${with_staticsasl}/$i42/libsasl2.a"
26492                                      fi
26493                                    done
26494                                    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
26495if test "x$ac_cv_func_dlopen" = xyes; then :
26496
26497else
26498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26499$as_echo_n "checking for dlopen in -ldl... " >&6; }
26500if ${ac_cv_lib_dl_dlopen+:} false; then :
26501  $as_echo_n "(cached) " >&6
26502else
26503  ac_check_lib_save_LIBS=$LIBS
26504LIBS="-ldl  $LIBS"
26505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26506/* end confdefs.h.  */
26507
26508/* Override any GCC internal prototype to avoid an error.
26509   Use char because int might match the return type of a GCC
26510   builtin and then its argument prototype would still apply.  */
26511#ifdef __cplusplus
26512extern "C"
26513#endif
26514char dlopen ();
26515int
26516main ()
26517{
26518return dlopen ();
26519  ;
26520  return 0;
26521}
26522_ACEOF
26523if ac_fn_c_try_link "$LINENO"; then :
26524  ac_cv_lib_dl_dlopen=yes
26525else
26526  ac_cv_lib_dl_dlopen=no
26527fi
26528rm -f core conftest.err conftest.$ac_objext \
26529    conftest$ac_exeext conftest.$ac_ext
26530LIBS=$ac_check_lib_save_LIBS
26531fi
26532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26533$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26534if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
26535  LIB_SASL+="$LIB_SASL -ldl"
26536fi
26537
26538fi
26539
26540                                    if test ! "$ac_cv_found_sasl" = "yes"; then
26541                                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libsasl" >&5
26542$as_echo_n "checking for static libsasl... " >&6; }
26543                                      as_fn_error $? "Could not find ${with_staticsasl}/lib*/libsasl2.a" "$LINENO" 5
26544                                    fi
26545fi
26546
26547
26548fi
26549
26550
26551
26552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26553$as_echo "found" >&6; }
26554
26555  if test "x$SASL_GSSAPI_LIBS_SET" = "x"; then
26556    LIB_SASL="$LIB_SASL $GSSAPIBASE_STATIC_LIBS"
26557  else
26558    SASL_GSSAPI_LIBS_SET=""
26559    cmu_saved_LIBS="$GSSAPIBASE_STATIC_LIBS $cmu_saved_LIBS"
26560  fi
26561fi
26562
26563if test -d ${with_sasl}; then
26564  ac_cv_sasl_where_lib=${with_sasl}/lib
26565  ac_cv_sasl_where_inc=${with_sasl}/include
26566
26567  DYNSASLFLAGS="-I$ac_cv_sasl_where_inc"
26568  if test "$ac_cv_sasl_where_lib" != ""; then
26569
26570  # this is CMU ADD LIBPATH TO
26571  if test "$andrew_cv_runpath_switch" = "none" ; then
26572        LIB_DYN_SASL="-L$ac_cv_sasl_where_lib ${LIB_DYN_SASL}"
26573  else
26574        LIB_DYN_SASL="-L$ac_cv_sasl_where_lib ${LIB_DYN_SASL} $andrew_cv_runpath_switch$ac_cv_sasl_where_lib"
26575  fi
26576
26577  fi
26578  LIB_DYN_SASL="$LIB_DYN_SASL -lsasl2"
26579  CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
26580  LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
26581fi
26582
26583# be sure to check for a SASLv2 specific function
26584ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
26585if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
26586  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
26587if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
26588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
26589$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
26590if ${ac_cv_lib_sasl2_prop_get+:} false; then :
26591  $as_echo_n "(cached) " >&6
26592else
26593  ac_check_lib_save_LIBS=$LIBS
26594LIBS="-lsasl2  $LIBS"
26595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596/* end confdefs.h.  */
26597
26598/* Override any GCC internal prototype to avoid an error.
26599   Use char because int might match the return type of a GCC
26600   builtin and then its argument prototype would still apply.  */
26601#ifdef __cplusplus
26602extern "C"
26603#endif
26604char prop_get ();
26605int
26606main ()
26607{
26608return prop_get ();
26609  ;
26610  return 0;
26611}
26612_ACEOF
26613if ac_fn_c_try_link "$LINENO"; then :
26614  ac_cv_lib_sasl2_prop_get=yes
26615else
26616  ac_cv_lib_sasl2_prop_get=no
26617fi
26618rm -f core conftest.err conftest.$ac_objext \
26619    conftest$ac_exeext conftest.$ac_ext
26620LIBS=$ac_check_lib_save_LIBS
26621fi
26622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
26623$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
26624if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
26625  ac_cv_found_sasl=yes
26626else
26627  ac_cv_found_sasl=no
26628fi
26629
26630else
26631  ac_cv_found_sasl=no
26632fi
26633
26634
26635else
26636  ac_cv_found_sasl=no
26637fi
26638
26639
26640
26641if test "$ac_cv_found_sasl" = "yes"; then
26642  if test "$ac_cv_sasl_where_lib" != ""; then
26643
26644  # this is CMU ADD LIBPATH TO
26645  if test "$andrew_cv_runpath_switch" = "none" ; then
26646        DYNLIB_SASL="-L$ac_cv_sasl_where_lib ${DYNLIB_SASL}"
26647  else
26648        DYNLIB_SASL="-L$ac_cv_sasl_where_lib ${DYNLIB_SASL} $andrew_cv_runpath_switch$ac_cv_sasl_where_lib"
26649  fi
26650
26651  fi
26652  DYNLIB_SASL="$DYNLIB_SASL -lsasl2"
26653  if test "$using_static_sasl" != "static"; then
26654    LIB_SASL=$DYNLIB_SASL
26655    SASLFLAGS=$DYNSASLFLAGS
26656  fi
26657else
26658  DYNLIB_SASL=""
26659  DYNSASLFLAGS=""
26660  using_static_sasl="staticonly"
26661fi
26662
26663if test "x$SASL_GSSAPI_LIBS_SET" != "x"; then
26664  SASL_GSSAPI_LIBS_SET=""
26665  cmu_saved_LIBS="$GSSAPIBASE_LIBS $cmu_saved_LIBS"
26666fi
26667
26668LIBS="$cmu_saved_LIBS"
26669LDFLAGS="$cmu_saved_LDFLAGS"
26670CPPFLAGS="$cmu_saved_CPPFLAGS"
26671
26672
26673
26674
26675
26676
26677
26678if test "$ac_cv_found_sasl" != "yes"; then
26679  as_fn_error $? "Cannot continue without libsasl2.
26680Get it from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/." "$LINENO" 5
26681fi
26682
26683
26684cmu_saved_CPPFLAGS=$CPPFLAGS
26685CPPFLAGS="$CPPFLAGS $SASLFLAGS"
26686
26687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26688/* end confdefs.h.  */
26689
26690#include <sasl/sasl.h>
26691
26692#ifndef SASL_VERSION_MAJOR
26693#error SASL_VERSION_MAJOR not defined
26694#endif
26695#ifndef SASL_VERSION_MINOR
26696#error SASL_VERSION_MINOR not defined
26697#endif
26698#ifndef SASL_VERSION_STEP
26699#error SASL_VERSION_STEP not defined
26700#endif
26701
26702#if SASL_VERSION_MAJOR < 2 || SASL_VERSION_MINOR < 1 || SASL_VERSION_STEP < 7
26703#error SASL version is less than 2.1.7
26704#endif
26705
26706_ACEOF
26707if ac_fn_c_try_cpp "$LINENO"; then :
26708
26709else
26710  as_fn_error $? "Incorrect SASL headers found.  This package requires SASL 2.1.7 or newer." "$LINENO" 5
26711fi
26712rm -f conftest.err conftest.i conftest.$ac_ext
26713
26714CPPFLAGS=$cmu_saved_CPPFLAGS
26715
26716
26717
26718cmu_saved_LDFLAGS=$LDFLAGS
26719
26720LDFLAGS="$LDFLAGS $LIB_SASL"
26721
26722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_checkapop in -lsasl2" >&5
26723$as_echo_n "checking for sasl_checkapop in -lsasl2... " >&6; }
26724if ${ac_cv_lib_sasl2_sasl_checkapop+:} false; then :
26725  $as_echo_n "(cached) " >&6
26726else
26727  ac_check_lib_save_LIBS=$LIBS
26728LIBS="-lsasl2  $LIBS"
26729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26730/* end confdefs.h.  */
26731
26732/* Override any GCC internal prototype to avoid an error.
26733   Use char because int might match the return type of a GCC
26734   builtin and then its argument prototype would still apply.  */
26735#ifdef __cplusplus
26736extern "C"
26737#endif
26738char sasl_checkapop ();
26739int
26740main ()
26741{
26742return sasl_checkapop ();
26743  ;
26744  return 0;
26745}
26746_ACEOF
26747if ac_fn_c_try_link "$LINENO"; then :
26748  ac_cv_lib_sasl2_sasl_checkapop=yes
26749else
26750  ac_cv_lib_sasl2_sasl_checkapop=no
26751fi
26752rm -f core conftest.err conftest.$ac_objext \
26753    conftest$ac_exeext conftest.$ac_ext
26754LIBS=$ac_check_lib_save_LIBS
26755fi
26756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_checkapop" >&5
26757$as_echo "$ac_cv_lib_sasl2_sasl_checkapop" >&6; }
26758if test "x$ac_cv_lib_sasl2_sasl_checkapop" = xyes; then :
26759
26760$as_echo "#define HAVE_APOP /**/" >>confdefs.h
26761
26762else
26763  as_fn_error $? "libsasl2 without working sasl_checkapop.  Cannot continue." "$LINENO" 5
26764fi
26765
26766
26767LDFLAGS=$cmu_saved_LDFLAGS
26768
26769
26770
26771# Check whether --with-perl was given.
26772if test "${with_perl+set}" = set; then :
26773  withval=$with_perl; with_perl="$withval"
26774else
26775  with_perl="perl"
26776fi
26777
26778
26779if test "${with_perl}" = yes; then
26780    with_perl="perl"
26781fi
26782if test "${with_perl}" != no; then
26783    if test ${using_static_sasl} = "staticonly"; then
26784        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot compile perl utilities using static libsasl" >&5
26785$as_echo "$as_me: WARNING: Cannot compile perl utilities using static libsasl" >&2;}
26786        with_perl="no"
26787    else
26788        for ac_prog in ${with_perl} perl
26789do
26790  # Extract the first word of "$ac_prog", so it can be a program name with args.
26791set dummy $ac_prog; ac_word=$2
26792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26793$as_echo_n "checking for $ac_word... " >&6; }
26794if ${ac_cv_prog_PERL+:} false; then :
26795  $as_echo_n "(cached) " >&6
26796else
26797  if test -n "$PERL"; then
26798  ac_cv_prog_PERL="$PERL" # Let the user override the test.
26799else
26800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26801for as_dir in $PATH
26802do
26803  IFS=$as_save_IFS
26804  test -z "$as_dir" && as_dir=.
26805    for ac_exec_ext in '' $ac_executable_extensions; do
26806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26807    ac_cv_prog_PERL="$ac_prog"
26808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26809    break 2
26810  fi
26811done
26812  done
26813IFS=$as_save_IFS
26814
26815fi
26816fi
26817PERL=$ac_cv_prog_PERL
26818if test -n "$PERL"; then
26819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
26820$as_echo "$PERL" >&6; }
26821else
26822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26823$as_echo "no" >&6; }
26824fi
26825
26826
26827  test -n "$PERL" && break
26828done
26829test -n "$PERL" || PERL="with_perl=notfound"
26830
26831    fi
26832fi
26833 if test "$with_perl" != "no" -a "$with_perl" != "notfound"; then
26834  PERL_TRUE=
26835  PERL_FALSE='#'
26836else
26837  PERL_TRUE='#'
26838  PERL_FALSE=
26839fi
26840
26841srctoolsdir=`cd ${srcdir};pwd`/tools
26842if test "$with_perl" = "notfound"; then
26843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Perl not found: Administrative tools will not be available" >&5
26844$as_echo "$as_me: WARNING: Perl not found: Administrative tools will not be available" >&2;}
26845elif test "${with_perl}" != "no"; then
26846    PERL="${with_perl}"
26847
26848    ac_config_links="$ac_config_links perl/sieve/managesieve/managesieve.pm:perl/sieve/managesieve/managesieve.pm"
26849
26850    ac_config_files="$ac_config_files perl/sieve/managesieve/MANIFEST"
26851
26852    ac_config_links="$ac_config_links perl/imap/Cyrus/HeaderFile.pm:perl/imap/Cyrus/HeaderFile.pm"
26853
26854    ac_config_links="$ac_config_links perl/imap/Cyrus/CacheFile.pm:perl/imap/Cyrus/CacheFile.pm"
26855
26856    ac_config_links="$ac_config_links perl/imap/Cyrus/IndexFile.pm:perl/imap/Cyrus/IndexFile.pm"
26857
26858    ac_config_links="$ac_config_links perl/imap/Cyrus/DList.pm:perl/imap/Cyrus/DList.pm"
26859
26860    ac_config_links="$ac_config_links perl/imap/Cyrus/ImapClone.pm:perl/imap/Cyrus/ImapClone.pm"
26861
26862    ac_config_links="$ac_config_links perl/imap/Cyrus/SyncProto.pm:perl/imap/Cyrus/SyncProto.pm"
26863
26864    ac_config_links="$ac_config_links perl/imap/IMAP/Shell.pm:perl/imap/IMAP/Shell.pm"
26865
26866    ac_config_links="$ac_config_links perl/imap/IMAP/IMSP.pm:perl/imap/IMAP/IMSP.pm"
26867
26868    ac_config_links="$ac_config_links perl/imap/IMAP/Admin.pm:perl/imap/IMAP/Admin.pm"
26869
26870    ac_config_links="$ac_config_links perl/imap/IMAP.pm:perl/imap/IMAP.pm"
26871
26872    ac_config_files="$ac_config_files perl/imap/MANIFEST"
26873
26874    ac_config_links="$ac_config_links perl/annotator/Message.pm:perl/annotator/Message.pm"
26875
26876    ac_config_links="$ac_config_links perl/annotator/AnnotateInlinedCIDs.pm:perl/annotator/AnnotateInlinedCIDs.pm"
26877
26878    ac_config_links="$ac_config_links perl/annotator/Daemon.pm:perl/annotator/Daemon.pm"
26879
26880    ac_config_files="$ac_config_files perl/annotator/MANIFEST"
26881
26882
26883    case "${target_os}" in
26884        linux*|netbsd*|freebsd*|dragonfly*|openbsd*)
26885            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl cccdlflags needed on \"${target_os}\"" >&5
26886$as_echo_n "checking for perl cccdlflags needed on \"${target_os}\"... " >&6; }
26887            eval `${PERL} -V:cccdlflags`
26888            PERL_CCCDLFLAGS="$cccdlflags"
26889
26890            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_CCCDLFLAGS" >&5
26891$as_echo "$PERL_CCCDLFLAGS" >&6; }
26892            ;;
26893        *)
26894            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping check for perl cccdlflags on \"${target_os}\"" >&5
26895$as_echo "$as_me: WARNING: skipping check for perl cccdlflags on \"${target_os}\"" >&2;}
26896    esac
26897
26898    PERL_PREINSTALL="${PERL} ${srctoolsdir}/fixsearchpath.pl ${prefix} ${bindir}"
26899
26900fi
26901
26902
26903# Check whether --with-lib-subdir was given.
26904if test "${with_lib_subdir+set}" = set; then :
26905  withval=$with_lib_subdir;
26906fi
26907
26908# The cast to long int works around a bug in the HP C Compiler
26909# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26910# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26911# This bug is HP SR number 8606223364.
26912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26913$as_echo_n "checking size of long... " >&6; }
26914if ${ac_cv_sizeof_long+:} false; then :
26915  $as_echo_n "(cached) " >&6
26916else
26917  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
26918
26919else
26920  if test "$ac_cv_type_long" = yes; then
26921     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26923as_fn_error 77 "cannot compute sizeof (long)
26924See \`config.log' for more details" "$LINENO" 5; }
26925   else
26926     ac_cv_sizeof_long=0
26927   fi
26928fi
26929
26930fi
26931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26932$as_echo "$ac_cv_sizeof_long" >&6; }
26933
26934
26935
26936cat >>confdefs.h <<_ACEOF
26937#define SIZEOF_LONG $ac_cv_sizeof_long
26938_ACEOF
26939
26940
26941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
26942$as_echo_n "checking what directory libraries are found in... " >&6; }
26943if ${ac_cv_cmu_lib_subdir+:} false; then :
26944  $as_echo_n "(cached) " >&6
26945else
26946  test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
26947test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
26948if test "X$with_lib_subdir" = "X" ; then
26949  ac_cv_cmu_lib_subdir=lib
26950  if test $ac_cv_sizeof_long -eq 4 ; then
26951    test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
26952  fi
26953  if test $ac_cv_sizeof_long -eq 8 ; then
26954    test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
26955  fi
26956else
26957  ac_cv_cmu_lib_subdir=$with_lib_subdir
26958fi
26959fi
26960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
26961$as_echo "$ac_cv_cmu_lib_subdir" >&6; }
26962CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
26963
26964
26965
26966
26967
26968
26969# Check whether --with-libwrap was given.
26970if test "${with_libwrap+set}" = set; then :
26971  withval=$with_libwrap; with_libwrap=$withval
26972else
26973  with_libwrap=yes
26974fi
26975
26976  if test "$with_libwrap" != no; then
26977    if test -d "$with_libwrap"; then
26978      CPPFLAGS="$CPPFLAGS -I${with_libwrap}/include"
26979      LDFLAGS="$LDFLAGS -L${with_libwrap}/$CMU_LIB_SUBDIR"
26980    fi
26981    cmu_save_LIBS="$LIBS"
26982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for request_init in -lwrap" >&5
26983$as_echo_n "checking for request_init in -lwrap... " >&6; }
26984if ${ac_cv_lib_wrap_request_init+:} false; then :
26985  $as_echo_n "(cached) " >&6
26986else
26987  ac_check_lib_save_LIBS=$LIBS
26988LIBS="-lwrap ${LIB_SOCKET} $LIBS"
26989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990/* end confdefs.h.  */
26991
26992/* Override any GCC internal prototype to avoid an error.
26993   Use char because int might match the return type of a GCC
26994   builtin and then its argument prototype would still apply.  */
26995#ifdef __cplusplus
26996extern "C"
26997#endif
26998char request_init ();
26999int
27000main ()
27001{
27002return request_init ();
27003  ;
27004  return 0;
27005}
27006_ACEOF
27007if ac_fn_c_try_link "$LINENO"; then :
27008  ac_cv_lib_wrap_request_init=yes
27009else
27010  ac_cv_lib_wrap_request_init=no
27011fi
27012rm -f core conftest.err conftest.$ac_objext \
27013    conftest$ac_exeext conftest.$ac_ext
27014LIBS=$ac_check_lib_save_LIBS
27015fi
27016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_request_init" >&5
27017$as_echo "$ac_cv_lib_wrap_request_init" >&6; }
27018if test "x$ac_cv_lib_wrap_request_init" = xyes; then :
27019
27020                 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
27021if test "x$ac_cv_header_tcpd_h" = xyes; then :
27022
27023else
27024  with_libwrap=no
27025fi
27026
27027
27028else
27029  with_libwrap=no
27030fi
27031
27032    LIBS="$cmu_save_LIBS"
27033  fi
27034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking libwrap support" >&5
27035$as_echo_n "checking libwrap support... " >&6; }
27036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libwrap" >&5
27037$as_echo "$with_libwrap" >&6; }
27038  LIB_WRAP=""
27039  if test "$with_libwrap" != no; then
27040
27041$as_echo "#define HAVE_LIBWRAP /**/" >>confdefs.h
27042
27043    LIB_WRAP="-lwrap"
27044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
27045$as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
27046if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
27047  $as_echo_n "(cached) " >&6
27048else
27049  ac_check_lib_save_LIBS=$LIBS
27050LIBS="-lnsl  $LIBS"
27051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27052/* end confdefs.h.  */
27053
27054/* Override any GCC internal prototype to avoid an error.
27055   Use char because int might match the return type of a GCC
27056   builtin and then its argument prototype would still apply.  */
27057#ifdef __cplusplus
27058extern "C"
27059#endif
27060char yp_get_default_domain ();
27061int
27062main ()
27063{
27064return yp_get_default_domain ();
27065  ;
27066  return 0;
27067}
27068_ACEOF
27069if ac_fn_c_try_link "$LINENO"; then :
27070  ac_cv_lib_nsl_yp_get_default_domain=yes
27071else
27072  ac_cv_lib_nsl_yp_get_default_domain=no
27073fi
27074rm -f core conftest.err conftest.$ac_objext \
27075    conftest$ac_exeext conftest.$ac_ext
27076LIBS=$ac_check_lib_save_LIBS
27077fi
27078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
27079$as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
27080if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
27081  LIB_WRAP="${LIB_WRAP} -lnsl"
27082fi
27083
27084  fi
27085
27086
27087
27088# Figure out what directories we're linking against.
27089# Lots of fun for the whole family.
27090# This probably chokes on anything with spaces in it.
27091# All we want is the list of -L directories, and -L may or may not be
27092# followed by a space.
27093isdir=no
27094libpath=""
27095#echo "debug ldflags: << ${ldflags} >>"
27096#echo "debug default_ldflags: << ${default_ldflags} >>"
27097for flag in ${ldflags} ${default_ldflags}; do
27098  case $flag in
27099    -L)
27100      # it's a split -L option, we'll mark the next option as a dir.
27101      isdir=yes
27102      ;;
27103
27104    -L*)
27105      # attached -L option: split off the directory
27106      larg=`echo $flag | sed -e 's:-L\(..*\):\1:'`
27107      libpath="${libpath} ${larg}"
27108      ;;
27109
27110    *)
27111      if test $isdir = yes ; then
27112        libpath="${libpath} ${flag}"
27113        isdir=no
27114      fi
27115  esac
27116done
27117
27118
27119
27120
27121
27122# Check whether --enable-unit-tests was given.
27123if test "${enable_unit_tests+set}" = set; then :
27124  enableval=$enable_unit_tests;
27125fi
27126
27127
27128if test "x$enable_unit_tests" = xyes ; then
27129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
27130$as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
27131if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
27132  $as_echo_n "(cached) " >&6
27133else
27134  ac_check_lib_save_LIBS=$LIBS
27135LIBS="-lcunit  $LIBS"
27136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27137/* end confdefs.h.  */
27138
27139/* Override any GCC internal prototype to avoid an error.
27140   Use char because int might match the return type of a GCC
27141   builtin and then its argument prototype would still apply.  */
27142#ifdef __cplusplus
27143extern "C"
27144#endif
27145char CU_initialize_registry ();
27146int
27147main ()
27148{
27149return CU_initialize_registry ();
27150  ;
27151  return 0;
27152}
27153_ACEOF
27154if ac_fn_c_try_link "$LINENO"; then :
27155  ac_cv_lib_cunit_CU_initialize_registry=yes
27156else
27157  ac_cv_lib_cunit_CU_initialize_registry=no
27158fi
27159rm -f core conftest.err conftest.$ac_objext \
27160    conftest$ac_exeext conftest.$ac_ext
27161LIBS=$ac_check_lib_save_LIBS
27162fi
27163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
27164$as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
27165if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
27166  found_lib=yes
27167else
27168  found_lib=no
27169fi
27170
27171    ac_fn_c_check_header_mongrel "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default"
27172if test "x$ac_cv_header_CUnit_CUnit_h" = xyes; then :
27173  found_hdr=yes
27174else
27175  found_hdr=no
27176fi
27177
27178
27179    if test "$found_lib$found_hdr" != "yesyes" ; then
27180        if test "x$enable_unit_tests" = xyes; then
27181            as_fn_error $? "Unit tests explicitly requested, but CUnit library is not installed" "$LINENO" 5
27182        fi
27183        { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling unit tests because the required CUnit library is not installed" >&5
27184$as_echo "$as_me: Disabling unit tests because the required CUnit library is not installed" >&6;}
27185        enable_unit_tests=no
27186    else
27187        enable_unit_tests=yes
27188    fi
27189    ac_fn_c_check_header_mongrel "$LINENO" "CUnit/Basic.h" "ac_cv_header_CUnit_Basic_h" "$ac_includes_default"
27190if test "x$ac_cv_header_CUnit_Basic_h" = xyes; then :
27191
27192# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
27193# -------------------------------------------
27194# Tests whether TYPE exists after having included INCLUDES, setting cache
27195# variable VAR accordingly.
27196ac_fn_c_check_type ()
27197{
27198  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
27200$as_echo_n "checking for $2... " >&6; }
27201if eval \${$3+:} false; then :
27202  $as_echo_n "(cached) " >&6
27203else
27204  eval "$3=no"
27205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206/* end confdefs.h.  */
27207$4
27208int
27209main ()
27210{
27211if (sizeof ($2))
27212	 return 0;
27213  ;
27214  return 0;
27215}
27216_ACEOF
27217if ac_fn_c_try_compile "$LINENO"; then :
27218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27219/* end confdefs.h.  */
27220$4
27221int
27222main ()
27223{
27224if (sizeof (($2)))
27225	    return 0;
27226  ;
27227  return 0;
27228}
27229_ACEOF
27230if ac_fn_c_try_compile "$LINENO"; then :
27231
27232else
27233  eval "$3=yes"
27234fi
27235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236fi
27237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27238fi
27239eval ac_res=\$$3
27240	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27241$as_echo "$ac_res" >&6; }
27242  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
27243
27244} # ac_fn_c_check_type
27245ac_fn_c_check_type "$LINENO" "CU_SetUpFunc" "ac_cv_type_CU_SetUpFunc" "#include <CUnit/Basic.h>
27246"
27247if test "x$ac_cv_type_CU_SetUpFunc" = xyes; then :
27248
27249$as_echo "#define HAVE_CU_SETUPFUNC /**/" >>confdefs.h
27250
27251fi
27252
27253
27254fi
27255
27256
27257fi
27258if test "$enable_unit_tests" = "yes" ; then
27259                                        for ac_header in valgrind/valgrind.h
27260do :
27261  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
27262if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
27263  cat >>confdefs.h <<_ACEOF
27264#define HAVE_VALGRIND_VALGRIND_H 1
27265_ACEOF
27266
27267fi
27268
27269done
27270
27271
27272                        ac_config_links="$ac_config_links cunit/cacert.pem:cunit/cacert.pem"
27273
27274    ac_config_links="$ac_config_links cunit/cert.pem:cunit/cert.pem"
27275
27276    ac_config_links="$ac_config_links cunit/key.pem:cunit/key.pem"
27277
27278
27279    USE_MAINTAINER_MODE=yes
27280fi
27281
27282 if test "$enable_unit_tests" = "yes"; then
27283  CUNIT_TRUE=
27284  CUNIT_FALSE='#'
27285else
27286  CUNIT_TRUE='#'
27287  CUNIT_FALSE=
27288fi
27289
27290
27291# Check whether --enable-cyrusdb-benchmarks was given.
27292if test "${enable_cyrusdb_benchmarks+set}" = set; then :
27293  enableval=$enable_cyrusdb_benchmarks;
27294fi
27295
27296
27297if test "$enable_cyrusbd_benchmarks" = "yes" ; then
27298    USE_MAINTAINER_MODE=yes
27299fi
27300
27301 if test "$enable_cyrusdb_benchmarks" = "yes"; then
27302  BENCH_TRUE=
27303  BENCH_FALSE='#'
27304else
27305  BENCH_TRUE='#'
27306  BENCH_FALSE=
27307fi
27308
27309
27310if test "x$use_sqlite" = xyes; then
27311  if test "x$HAVE_SQLITE" = x1; then
27312    if test "x$with_sqlite_lib" != xnone; then
27313
27314  # this is CMU ADD LIBPATH
27315  if test "$andrew_cv_runpath_switch" = "none" ; then
27316        LDFLAGS="-L$with_sqlite_lib ${LDFLAGS}"
27317  else
27318        LDFLAGS="-L$with_sqlite_lib $andrew_cv_runpath_switch$with_sqlite_lib ${LDFLAGS}"
27319  fi
27320
27321    fi
27322
27323    LIBS="${LIBS} ${SQLITE_LIBADD}"
27324    CPPFLAGS="${SQLITE_INCADD} ${CPPFLAGS}"
27325
27326$as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
27327
27328
27329  else
27330    as_fn_error $? "SQLite required but not found" "$LINENO" 5
27331  fi
27332fi
27333 if test "x$use_sqlite" = xyes; then
27334  USE_SQLITE_TRUE=
27335  USE_SQLITE_FALSE='#'
27336else
27337  USE_SQLITE_TRUE='#'
27338  USE_SQLITE_FALSE=
27339fi
27340
27341
27342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function nesting" >&5
27343$as_echo_n "checking for function nesting... " >&6; }
27344if ${cyrus_cv_function_nesting+:} false; then :
27345  $as_echo_n "(cached) " >&6
27346else
27347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27348/* end confdefs.h.  */
27349
27350#include <stdlib.h>
27351void func(void *data, size_t nmemb, size_t size,
27352          int (*compar)(const void *, const void *, void *),
27353          void *thunk)
27354{
27355    int compar_func(const void *a, const void *b)
27356    {
27357        return compar(a, b, thunk);
27358    }
27359    qsort(data, nmemb, size, compar_func);
27360}
27361int cval(const void *a, const void *b, void *prev)
27362{
27363  char **ref = (char **)prev;
27364  char *ac = (char *)a;
27365  char *bc = (char *)b;
27366  if (*ac < *bc) return -1;
27367  if (*ac == *bc) return 0;
27368  *ref = bc;
27369  return 1;
27370}
27371
27372int
27373main ()
27374{
27375
27376    char *dest;
27377    func("abc", 3, 1, cval, &dest);
27378
27379  ;
27380  return 0;
27381}
27382_ACEOF
27383if ac_fn_c_try_compile "$LINENO"; then :
27384  cyrus_cv_function_nesting=yes
27385else
27386  cyrus_cv_function_nesting=no
27387fi
27388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389fi
27390
27391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_function_nesting" >&5
27392$as_echo "$cyrus_cv_function_nesting" >&6; }
27393if test "$cyrus_cv_function_nesting" = "yes"; then
27394
27395$as_echo "#define HAVE_FUNCTION_NESTING /**/" >>confdefs.h
27396
27397fi
27398
27399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimisation support" >&5
27400$as_echo_n "checking for optimisation support... " >&6; }
27401if ${cyrus_cv_declare_optimize+:} false; then :
27402  $as_echo_n "(cached) " >&6
27403else
27404
27405        ac_ext=c
27406ac_cpp='$CPP $CPPFLAGS'
27407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27409ac_compiler_gnu=$ac_cv_c_compiler_gnu
27410
27411        saved_CFLAGS="$CFLAGS"
27412        CFLAGS="$CFLAGS -Werror"
27413        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414/* end confdefs.h.  */
27415
27416                    #include <stdlib.h>
27417                    static inline int numcmp(int n1, int n2)
27418                        __attribute__((pure, always_inline, optimize("-O3")));
27419                    static int numcmp(int n1, int n2) { return n1 - n2; }
27420
27421int
27422main ()
27423{
27424 if (numcmp(1, 2)) exit(1);
27425  ;
27426  return 0;
27427}
27428
27429_ACEOF
27430if ac_fn_c_try_compile "$LINENO"; then :
27431  cyrus_cv_declare_optimize=yes
27432else
27433  cyrus_cv_declare_optimize=no
27434fi
27435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436        CFLAGS="$saved_CFLAGS"
27437        ac_ext=c
27438ac_cpp='$CPP $CPPFLAGS'
27439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27441ac_compiler_gnu=$ac_cv_c_compiler_gnu
27442
27443
27444fi
27445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_declare_optimize" >&5
27446$as_echo "$cyrus_cv_declare_optimize" >&6; }
27447if test "x$cyrus_cv_declare_optimize" = "xyes"; then :
27448
27449$as_echo "#define HAVE_DECLARE_OPTIMIZE /**/" >>confdefs.h
27450
27451
27452fi
27453
27454
27455
27456# Check whether --with-sphinx-build was given.
27457if test "${with_sphinx_build+set}" = set; then :
27458  withval=$with_sphinx_build; with_sphinx_build=$withval
27459else
27460  with_sphinx_build=yes
27461fi
27462
27463case $with_sphinx_build in #(
27464  yes) :
27465    # Extract the first word of "sphinx-build", so it can be a program name with args.
27466set dummy sphinx-build; ac_word=$2
27467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27468$as_echo_n "checking for $ac_word... " >&6; }
27469if ${ac_cv_path_SPHINX_BUILD+:} false; then :
27470  $as_echo_n "(cached) " >&6
27471else
27472  case $SPHINX_BUILD in
27473  [\\/]* | ?:[\\/]*)
27474  ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
27475  ;;
27476  *)
27477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27478for as_dir in $PATH
27479do
27480  IFS=$as_save_IFS
27481  test -z "$as_dir" && as_dir=.
27482    for ac_exec_ext in '' $ac_executable_extensions; do
27483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27484    ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
27485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27486    break 2
27487  fi
27488done
27489  done
27490IFS=$as_save_IFS
27491
27492  ;;
27493esac
27494fi
27495SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
27496if test -n "$SPHINX_BUILD"; then
27497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
27498$as_echo "$SPHINX_BUILD" >&6; }
27499else
27500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27501$as_echo "no" >&6; }
27502fi
27503
27504 ;; #(
27505  no) :
27506    SPHINX_BUILD='' ;; #(
27507  *) :
27508    # Extract the first word of "sphinx-build", so it can be a program name with args.
27509set dummy sphinx-build; ac_word=$2
27510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27511$as_echo_n "checking for $ac_word... " >&6; }
27512if ${ac_cv_path_SPHINX_BUILD+:} false; then :
27513  $as_echo_n "(cached) " >&6
27514else
27515  case $SPHINX_BUILD in
27516  [\\/]* | ?:[\\/]*)
27517  ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
27518  ;;
27519  *)
27520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27521for as_dir in $with_sphinx_build
27522do
27523  IFS=$as_save_IFS
27524  test -z "$as_dir" && as_dir=.
27525    for ac_exec_ext in '' $ac_executable_extensions; do
27526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27527    ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
27528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27529    break 2
27530  fi
27531done
27532  done
27533IFS=$as_save_IFS
27534
27535  ;;
27536esac
27537fi
27538SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
27539if test -n "$SPHINX_BUILD"; then
27540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
27541$as_echo "$SPHINX_BUILD" >&6; }
27542else
27543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27544$as_echo "no" >&6; }
27545fi
27546
27547 ;; #(
27548  *) :
27549     ;;
27550esac
27551if test -z "$SPHINX_BUILD"; then :
27552  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No sphinx-build, won't be able to regenerate docs" >&5
27553$as_echo "$as_me: WARNING: No sphinx-build, won't be able to regenerate docs" >&2;}
27554fi
27555
27556
27557
27558
27559
27560
27561
27562
27563# Make sure we have perl
27564if test -z "$PERL"; then
27565# Extract the first word of "perl", so it can be a program name with args.
27566set dummy perl; ac_word=$2
27567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27568$as_echo_n "checking for $ac_word... " >&6; }
27569if ${ac_cv_prog_PERL+:} false; then :
27570  $as_echo_n "(cached) " >&6
27571else
27572  if test -n "$PERL"; then
27573  ac_cv_prog_PERL="$PERL" # Let the user override the test.
27574else
27575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27576for as_dir in $PATH
27577do
27578  IFS=$as_save_IFS
27579  test -z "$as_dir" && as_dir=.
27580    for ac_exec_ext in '' $ac_executable_extensions; do
27581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27582    ac_cv_prog_PERL="perl"
27583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27584    break 2
27585  fi
27586done
27587  done
27588IFS=$as_save_IFS
27589
27590fi
27591fi
27592PERL=$ac_cv_prog_PERL
27593if test -n "$PERL"; then
27594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
27595$as_echo "$PERL" >&6; }
27596else
27597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27598$as_echo "no" >&6; }
27599fi
27600
27601
27602fi
27603
27604if test "x$PERL" != x; then
27605  ax_perl_modules_failed=0
27606  for ax_perl_module in 'Pod::POM::View::Restructured' ; do
27607    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
27608$as_echo_n "checking for perl module $ax_perl_module... " >&6; }
27609
27610    # Would be nice to log result here, but can't rely on autoconf internals
27611    $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
27612    if test $? -ne 0; then
27613      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27614$as_echo "no" >&6; };
27615      ax_perl_modules_failed=1
27616   else
27617      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27618$as_echo "ok" >&6; };
27619    fi
27620  done
27621
27622  # Run optional shell commands
27623  if test "$ax_perl_modules_failed" = 0; then
27624    :
27625    have_ppvr=yes
27626  else
27627    :
27628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Pod::POM::View::Restructured, won't be able to regenerate docs" >&5
27629$as_echo "$as_me: WARNING: No Pod::POM::View::Restructured, won't be able to regenerate docs" >&2;}
27630                       have_ppvr=no
27631
27632  fi
27633else
27634  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
27635$as_echo "$as_me: WARNING: could not find perl" >&2;}
27636fi
27637
27638
27639    if test -z $PYTHON;
27640    then
27641        if test -z "python";
27642        then
27643            PYTHON="python3"
27644        else
27645            PYTHON="python"
27646        fi
27647    fi
27648    PYTHON_NAME=`basename $PYTHON`
27649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: git" >&5
27650$as_echo_n "checking $PYTHON_NAME module: git... " >&6; }
27651    $PYTHON -c "import git" 2>/dev/null
27652    if test $? -eq 0;
27653    then
27654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27655$as_echo "yes" >&6; }
27656        eval HAVE_PYMOD_GIT=yes
27657    else
27658        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27659$as_echo "no" >&6; }
27660        eval HAVE_PYMOD_GIT=no
27661        #
27662        if test -n ""
27663        then
27664            as_fn_error $? "failed to find required module git" "$LINENO" 5
27665            exit 1
27666        fi
27667    fi
27668
27669case $HAVE_PYMOD_GIT in #(
27670  yes) :
27671     ;; #(
27672  *) :
27673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GitPython not found, won't be able to regenerate docs" >&5
27674$as_echo "$as_me: WARNING: GitPython not found, won't be able to regenerate docs" >&2;} ;; #(
27675  *) :
27676     ;;
27677esac
27678
27679 if  test -n "$SPHINX_BUILD" -a x"$have_ppvr" = xyes -a x"$HAVE_PYMOD_GIT" = xyes; then
27680  HAVE_SPHINX_BUILD_TRUE=
27681  HAVE_SPHINX_BUILD_FALSE='#'
27682else
27683  HAVE_SPHINX_BUILD_TRUE='#'
27684  HAVE_SPHINX_BUILD_FALSE=
27685fi
27686
27687
27688
27689
27690
27691
27692if test "X$enable_shared" = "Xno"
27693then
27694        LIBS="$LIBS -lstdc++";
27695fi
27696
27697ac_config_files="$ac_config_files libcyrus_imap.pc libcyrus_min.pc libcyrus.pc libcyrus_sieve.pc Makefile"
27698
27699
27700if test "$with_perl" != "no" -a "$with_perl" != "notfound" ; then
27701
27702ac_config_files="$ac_config_files perl/annotator/Makefile.PL"
27703
27704ac_config_commands="$ac_config_commands perl/annotator/Makefile"
27705
27706
27707
27708ac_config_files="$ac_config_files perl/imap/Makefile.PL"
27709
27710ac_config_commands="$ac_config_commands perl/imap/Makefile"
27711
27712
27713
27714ac_config_files="$ac_config_files perl/sieve/managesieve/Makefile.PL"
27715
27716ac_config_commands="$ac_config_commands perl/sieve/managesieve/Makefile"
27717
27718
27719fi
27720
27721cat >confcache <<\_ACEOF
27722# This file is a shell script that caches the results of configure
27723# tests run on this system so they can be shared between configure
27724# scripts and configure runs, see configure's option --config-cache.
27725# It is not useful on other systems.  If it contains results you don't
27726# want to keep, you may remove or edit it.
27727#
27728# config.status only pays attention to the cache file if you give it
27729# the --recheck option to rerun configure.
27730#
27731# `ac_cv_env_foo' variables (set or unset) will be overridden when
27732# loading this file, other *unset* `ac_cv_foo' will be assigned the
27733# following values.
27734
27735_ACEOF
27736
27737# The following way of writing the cache mishandles newlines in values,
27738# but we know of no workaround that is simple, portable, and efficient.
27739# So, we kill variables containing newlines.
27740# Ultrix sh set writes to stderr and can't be redirected directly,
27741# and sets the high bit in the cache file unless we assign to the vars.
27742(
27743  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27744    eval ac_val=\$$ac_var
27745    case $ac_val in #(
27746    *${as_nl}*)
27747      case $ac_var in #(
27748      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27749$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27750      esac
27751      case $ac_var in #(
27752      _ | IFS | as_nl) ;; #(
27753      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27754      *) { eval $ac_var=; unset $ac_var;} ;;
27755      esac ;;
27756    esac
27757  done
27758
27759  (set) 2>&1 |
27760    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27761    *${as_nl}ac_space=\ *)
27762      # `set' does not quote correctly, so add quotes: double-quote
27763      # substitution turns \\\\ into \\, and sed turns \\ into \.
27764      sed -n \
27765	"s/'/'\\\\''/g;
27766	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27767      ;; #(
27768    *)
27769      # `set' quotes correctly as required by POSIX, so do not add quotes.
27770      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27771      ;;
27772    esac |
27773    sort
27774) |
27775  sed '
27776     /^ac_cv_env_/b end
27777     t clear
27778     :clear
27779     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27780     t end
27781     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27782     :end' >>confcache
27783if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27784  if test -w "$cache_file"; then
27785    if test "x$cache_file" != "x/dev/null"; then
27786      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27787$as_echo "$as_me: updating cache $cache_file" >&6;}
27788      if test ! -f "$cache_file" || test -h "$cache_file"; then
27789	cat confcache >"$cache_file"
27790      else
27791        case $cache_file in #(
27792        */* | ?:*)
27793	  mv -f confcache "$cache_file"$$ &&
27794	  mv -f "$cache_file"$$ "$cache_file" ;; #(
27795        *)
27796	  mv -f confcache "$cache_file" ;;
27797	esac
27798      fi
27799    fi
27800  else
27801    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27802$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27803  fi
27804fi
27805rm -f confcache
27806
27807test "x$prefix" = xNONE && prefix=$ac_default_prefix
27808# Let make expand exec_prefix.
27809test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27810
27811DEFS=-DHAVE_CONFIG_H
27812
27813ac_libobjs=
27814ac_ltlibobjs=
27815U=
27816for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27817  # 1. Remove the extension, and $U if already installed.
27818  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27819  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27820  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27821  #    will be set to the directory where LIBOBJS objects are built.
27822  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27823  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27824done
27825LIBOBJS=$ac_libobjs
27826
27827LTLIBOBJS=$ac_ltlibobjs
27828
27829
27830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27831$as_echo_n "checking that generated files are newer than configure... " >&6; }
27832   if test -n "$am_sleep_pid"; then
27833     # Hide warnings about reused PIDs.
27834     wait $am_sleep_pid 2>/dev/null
27835   fi
27836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27837$as_echo "done" >&6; }
27838 if test -n "$EXEEXT"; then
27839  am__EXEEXT_TRUE=
27840  am__EXEEXT_FALSE='#'
27841else
27842  am__EXEEXT_TRUE='#'
27843  am__EXEEXT_FALSE=
27844fi
27845
27846if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27847  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27848Usually this means the macro was only invoked conditionally." "$LINENO" 5
27849fi
27850if test -z "${HAVE_COVERAGE_TRUE}" && test -z "${HAVE_COVERAGE_FALSE}"; then
27851  as_fn_error $? "conditional \"HAVE_COVERAGE\" was never defined.
27852Usually this means the macro was only invoked conditionally." "$LINENO" 5
27853fi
27854if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27855  as_fn_error $? "conditional \"AMDEP\" was never defined.
27856Usually this means the macro was only invoked conditionally." "$LINENO" 5
27857fi
27858if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27859  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
27860Usually this means the macro was only invoked conditionally." "$LINENO" 5
27861fi
27862if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27863  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27864Usually this means the macro was only invoked conditionally." "$LINENO" 5
27865fi
27866
27867if test -z "${IPV6_noGETADDRINFO_TRUE}" && test -z "${IPV6_noGETADDRINFO_FALSE}"; then
27868  as_fn_error $? "conditional \"IPV6_noGETADDRINFO\" was never defined.
27869Usually this means the macro was only invoked conditionally." "$LINENO" 5
27870fi
27871if test -z "${IPV6_noGETNAMEINFO_TRUE}" && test -z "${IPV6_noGETNAMEINFO_FALSE}"; then
27872  as_fn_error $? "conditional \"IPV6_noGETNAMEINFO\" was never defined.
27873Usually this means the macro was only invoked conditionally." "$LINENO" 5
27874fi
27875if test -z "${USE_CYRUSDB_SQL_TRUE}" && test -z "${USE_CYRUSDB_SQL_FALSE}"; then
27876  as_fn_error $? "conditional \"USE_CYRUSDB_SQL\" was never defined.
27877Usually this means the macro was only invoked conditionally." "$LINENO" 5
27878fi
27879if test -z "${OBJECTSTORE_TRUE}" && test -z "${OBJECTSTORE_FALSE}"; then
27880  as_fn_error $? "conditional \"OBJECTSTORE\" was never defined.
27881Usually this means the macro was only invoked conditionally." "$LINENO" 5
27882fi
27883if test -z "${WITH_CARINGO_TRUE}" && test -z "${WITH_CARINGO_FALSE}"; then
27884  as_fn_error $? "conditional \"WITH_CARINGO\" was never defined.
27885Usually this means the macro was only invoked conditionally." "$LINENO" 5
27886fi
27887if test -z "${WITH_OPENIO_TRUE}" && test -z "${WITH_OPENIO_FALSE}"; then
27888  as_fn_error $? "conditional \"WITH_OPENIO\" was never defined.
27889Usually this means the macro was only invoked conditionally." "$LINENO" 5
27890fi
27891if test -z "${WITH_OBJSTR_DUMMY_TRUE}" && test -z "${WITH_OBJSTR_DUMMY_FALSE}"; then
27892  as_fn_error $? "conditional \"WITH_OBJSTR_DUMMY\" was never defined.
27893Usually this means the macro was only invoked conditionally." "$LINENO" 5
27894fi
27895if test -z "${USE_SQUAT_TRUE}" && test -z "${USE_SQUAT_FALSE}"; then
27896  as_fn_error $? "conditional \"USE_SQUAT\" was never defined.
27897Usually this means the macro was only invoked conditionally." "$LINENO" 5
27898fi
27899if test -z "${USE_XAPIAN_TRUE}" && test -z "${USE_XAPIAN_FALSE}"; then
27900  as_fn_error $? "conditional \"USE_XAPIAN\" was never defined.
27901Usually this means the macro was only invoked conditionally." "$LINENO" 5
27902fi
27903if test -z "${SQUATTER_TRUE}" && test -z "${SQUATTER_FALSE}"; then
27904  as_fn_error $? "conditional \"SQUATTER\" was never defined.
27905Usually this means the macro was only invoked conditionally." "$LINENO" 5
27906fi
27907if test -z "${SIEVE_TRUE}" && test -z "${SIEVE_FALSE}"; then
27908  as_fn_error $? "conditional \"SIEVE\" was never defined.
27909Usually this means the macro was only invoked conditionally." "$LINENO" 5
27910fi
27911if test -z "${USE_SRS_TRUE}" && test -z "${USE_SRS_FALSE}"; then
27912  as_fn_error $? "conditional \"USE_SRS\" was never defined.
27913Usually this means the macro was only invoked conditionally." "$LINENO" 5
27914fi
27915if test -z "${NONBLOCK_FCNTL_TRUE}" && test -z "${NONBLOCK_FCNTL_FALSE}"; then
27916  as_fn_error $? "conditional \"NONBLOCK_FCNTL\" was never defined.
27917Usually this means the macro was only invoked conditionally." "$LINENO" 5
27918fi
27919if test -z "${GMTOFF_TM_TRUE}" && test -z "${GMTOFF_TM_FALSE}"; then
27920  as_fn_error $? "conditional \"GMTOFF_TM\" was never defined.
27921Usually this means the macro was only invoked conditionally." "$LINENO" 5
27922fi
27923if test -z "${MAP_SHARED_TRUE}" && test -z "${MAP_SHARED_FALSE}"; then
27924  as_fn_error $? "conditional \"MAP_SHARED\" was never defined.
27925Usually this means the macro was only invoked conditionally." "$LINENO" 5
27926fi
27927if test -z "${MAP_STUPIDSHARED_TRUE}" && test -z "${MAP_STUPIDSHARED_FALSE}"; then
27928  as_fn_error $? "conditional \"MAP_STUPIDSHARED\" was never defined.
27929Usually this means the macro was only invoked conditionally." "$LINENO" 5
27930fi
27931if test -z "${LOCK_FCNTL_TRUE}" && test -z "${LOCK_FCNTL_FALSE}"; then
27932  as_fn_error $? "conditional \"LOCK_FCNTL\" was never defined.
27933Usually this means the macro was only invoked conditionally." "$LINENO" 5
27934fi
27935if test -z "${USE_AFSKRB_TRUE}" && test -z "${USE_AFSKRB_FALSE}"; then
27936  as_fn_error $? "conditional \"USE_AFSKRB\" was never defined.
27937Usually this means the macro was only invoked conditionally." "$LINENO" 5
27938fi
27939if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
27940  as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
27941Usually this means the macro was only invoked conditionally." "$LINENO" 5
27942fi
27943if test -z "${PTCLIENT_TRUE}" && test -z "${PTCLIENT_FALSE}"; then
27944  as_fn_error $? "conditional \"PTCLIENT\" was never defined.
27945Usually this means the macro was only invoked conditionally." "$LINENO" 5
27946fi
27947if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
27948  as_fn_error $? "conditional \"SERVER\" was never defined.
27949Usually this means the macro was only invoked conditionally." "$LINENO" 5
27950fi
27951if test -z "${HAVE_SSL_TRUE}" && test -z "${HAVE_SSL_FALSE}"; then
27952  as_fn_error $? "conditional \"HAVE_SSL\" was never defined.
27953Usually this means the macro was only invoked conditionally." "$LINENO" 5
27954fi
27955if test -z "${ZEPHYR_TRUE}" && test -z "${ZEPHYR_FALSE}"; then
27956  as_fn_error $? "conditional \"ZEPHYR\" was never defined.
27957Usually this means the macro was only invoked conditionally." "$LINENO" 5
27958fi
27959if test -z "${USE_JANSSON_TRUE}" && test -z "${USE_JANSSON_FALSE}"; then
27960  as_fn_error $? "conditional \"USE_JANSSON\" was never defined.
27961Usually this means the macro was only invoked conditionally." "$LINENO" 5
27962fi
27963if test -z "${USE_ZEROSKIP_TRUE}" && test -z "${USE_ZEROSKIP_FALSE}"; then
27964  as_fn_error $? "conditional \"USE_ZEROSKIP\" was never defined.
27965Usually this means the macro was only invoked conditionally." "$LINENO" 5
27966fi
27967if test -z "${USE_LIBCHARDET_TRUE}" && test -z "${USE_LIBCHARDET_FALSE}"; then
27968  as_fn_error $? "conditional \"USE_LIBCHARDET\" was never defined.
27969Usually this means the macro was only invoked conditionally." "$LINENO" 5
27970fi
27971if test -z "${HAVE_CLD2_TRUE}" && test -z "${HAVE_CLD2_FALSE}"; then
27972  as_fn_error $? "conditional \"HAVE_CLD2\" was never defined.
27973Usually this means the macro was only invoked conditionally." "$LINENO" 5
27974fi
27975if test -z "${AUTOCREATE_TRUE}" && test -z "${AUTOCREATE_FALSE}"; then
27976  as_fn_error $? "conditional \"AUTOCREATE\" was never defined.
27977Usually this means the macro was only invoked conditionally." "$LINENO" 5
27978fi
27979if test -z "${IDLED_TRUE}" && test -z "${IDLED_FALSE}"; then
27980  as_fn_error $? "conditional \"IDLED\" was never defined.
27981Usually this means the macro was only invoked conditionally." "$LINENO" 5
27982fi
27983if test -z "${NNTPD_TRUE}" && test -z "${NNTPD_FALSE}"; then
27984  as_fn_error $? "conditional \"NNTPD\" was never defined.
27985Usually this means the macro was only invoked conditionally." "$LINENO" 5
27986fi
27987if test -z "${MURDER_TRUE}" && test -z "${MURDER_FALSE}"; then
27988  as_fn_error $? "conditional \"MURDER\" was never defined.
27989Usually this means the macro was only invoked conditionally." "$LINENO" 5
27990fi
27991if test -z "${HTTPD_TRUE}" && test -z "${HTTPD_FALSE}"; then
27992  as_fn_error $? "conditional \"HTTPD\" was never defined.
27993Usually this means the macro was only invoked conditionally." "$LINENO" 5
27994fi
27995if test -z "${CALALARMD_TRUE}" && test -z "${CALALARMD_FALSE}"; then
27996  as_fn_error $? "conditional \"CALALARMD\" was never defined.
27997Usually this means the macro was only invoked conditionally." "$LINENO" 5
27998fi
27999if test -z "${JMAP_TRUE}" && test -z "${JMAP_FALSE}"; then
28000  as_fn_error $? "conditional \"JMAP\" was never defined.
28001Usually this means the macro was only invoked conditionally." "$LINENO" 5
28002fi
28003if test -z "${REPLICATION_TRUE}" && test -z "${REPLICATION_FALSE}"; then
28004  as_fn_error $? "conditional \"REPLICATION\" was never defined.
28005Usually this means the macro was only invoked conditionally." "$LINENO" 5
28006fi
28007if test -z "${BACKUP_TRUE}" && test -z "${BACKUP_FALSE}"; then
28008  as_fn_error $? "conditional \"BACKUP\" was never defined.
28009Usually this means the macro was only invoked conditionally." "$LINENO" 5
28010fi
28011if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
28012  as_fn_error $? "conditional \"COM_ERR\" was never defined.
28013Usually this means the macro was only invoked conditionally." "$LINENO" 5
28014fi
28015if test -z "${CMULOCAL_TRUE}" && test -z "${CMULOCAL_FALSE}"; then
28016  as_fn_error $? "conditional \"CMULOCAL\" was never defined.
28017Usually this means the macro was only invoked conditionally." "$LINENO" 5
28018fi
28019if test -z "${PERL_TRUE}" && test -z "${PERL_FALSE}"; then
28020  as_fn_error $? "conditional \"PERL\" was never defined.
28021Usually this means the macro was only invoked conditionally." "$LINENO" 5
28022fi
28023if test -z "${CUNIT_TRUE}" && test -z "${CUNIT_FALSE}"; then
28024  as_fn_error $? "conditional \"CUNIT\" was never defined.
28025Usually this means the macro was only invoked conditionally." "$LINENO" 5
28026fi
28027if test -z "${BENCH_TRUE}" && test -z "${BENCH_FALSE}"; then
28028  as_fn_error $? "conditional \"BENCH\" was never defined.
28029Usually this means the macro was only invoked conditionally." "$LINENO" 5
28030fi
28031if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
28032  as_fn_error $? "conditional \"USE_SQLITE\" was never defined.
28033Usually this means the macro was only invoked conditionally." "$LINENO" 5
28034fi
28035if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
28036  as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
28037Usually this means the macro was only invoked conditionally." "$LINENO" 5
28038fi
28039
28040: "${CONFIG_STATUS=./config.status}"
28041ac_write_fail=0
28042ac_clean_files_save=$ac_clean_files
28043ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28044{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28045$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28046as_write_fail=0
28047cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28048#! $SHELL
28049# Generated by $as_me.
28050# Run this file to recreate the current configuration.
28051# Compiler output produced by configure, useful for debugging
28052# configure, is in config.log if it exists.
28053
28054debug=false
28055ac_cs_recheck=false
28056ac_cs_silent=false
28057
28058SHELL=\${CONFIG_SHELL-$SHELL}
28059export SHELL
28060_ASEOF
28061cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28062## -------------------- ##
28063## M4sh Initialization. ##
28064## -------------------- ##
28065
28066# Be more Bourne compatible
28067DUALCASE=1; export DUALCASE # for MKS sh
28068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28069  emulate sh
28070  NULLCMD=:
28071  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28072  # is contrary to our usage.  Disable this feature.
28073  alias -g '${1+"$@"}'='"$@"'
28074  setopt NO_GLOB_SUBST
28075else
28076  case `(set -o) 2>/dev/null` in #(
28077  *posix*) :
28078    set -o posix ;; #(
28079  *) :
28080     ;;
28081esac
28082fi
28083
28084
28085as_nl='
28086'
28087export as_nl
28088# Printing a long string crashes Solaris 7 /usr/bin/printf.
28089as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28090as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28092# Prefer a ksh shell builtin over an external printf program on Solaris,
28093# but without wasting forks for bash or zsh.
28094if test -z "$BASH_VERSION$ZSH_VERSION" \
28095    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28096  as_echo='print -r --'
28097  as_echo_n='print -rn --'
28098elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28099  as_echo='printf %s\n'
28100  as_echo_n='printf %s'
28101else
28102  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28103    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28104    as_echo_n='/usr/ucb/echo -n'
28105  else
28106    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28107    as_echo_n_body='eval
28108      arg=$1;
28109      case $arg in #(
28110      *"$as_nl"*)
28111	expr "X$arg" : "X\\(.*\\)$as_nl";
28112	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28113      esac;
28114      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28115    '
28116    export as_echo_n_body
28117    as_echo_n='sh -c $as_echo_n_body as_echo'
28118  fi
28119  export as_echo_body
28120  as_echo='sh -c $as_echo_body as_echo'
28121fi
28122
28123# The user is always right.
28124if test "${PATH_SEPARATOR+set}" != set; then
28125  PATH_SEPARATOR=:
28126  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28127    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28128      PATH_SEPARATOR=';'
28129  }
28130fi
28131
28132
28133# IFS
28134# We need space, tab and new line, in precisely that order.  Quoting is
28135# there to prevent editors from complaining about space-tab.
28136# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28137# splitting by setting IFS to empty value.)
28138IFS=" ""	$as_nl"
28139
28140# Find who we are.  Look in the path if we contain no directory separator.
28141as_myself=
28142case $0 in #((
28143  *[\\/]* ) as_myself=$0 ;;
28144  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28145for as_dir in $PATH
28146do
28147  IFS=$as_save_IFS
28148  test -z "$as_dir" && as_dir=.
28149    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28150  done
28151IFS=$as_save_IFS
28152
28153     ;;
28154esac
28155# We did not find ourselves, most probably we were run as `sh COMMAND'
28156# in which case we are not to be found in the path.
28157if test "x$as_myself" = x; then
28158  as_myself=$0
28159fi
28160if test ! -f "$as_myself"; then
28161  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28162  exit 1
28163fi
28164
28165# Unset variables that we do not need and which cause bugs (e.g. in
28166# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28167# suppresses any "Segmentation fault" message there.  '((' could
28168# trigger a bug in pdksh 5.2.14.
28169for as_var in BASH_ENV ENV MAIL MAILPATH
28170do eval test x\${$as_var+set} = xset \
28171  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28172done
28173PS1='$ '
28174PS2='> '
28175PS4='+ '
28176
28177# NLS nuisances.
28178LC_ALL=C
28179export LC_ALL
28180LANGUAGE=C
28181export LANGUAGE
28182
28183# CDPATH.
28184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28185
28186
28187# as_fn_error STATUS ERROR [LINENO LOG_FD]
28188# ----------------------------------------
28189# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28190# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28191# script with STATUS, using 1 if that was 0.
28192as_fn_error ()
28193{
28194  as_status=$1; test $as_status -eq 0 && as_status=1
28195  if test "$4"; then
28196    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28197    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28198  fi
28199  $as_echo "$as_me: error: $2" >&2
28200  as_fn_exit $as_status
28201} # as_fn_error
28202
28203
28204# as_fn_set_status STATUS
28205# -----------------------
28206# Set $? to STATUS, without forking.
28207as_fn_set_status ()
28208{
28209  return $1
28210} # as_fn_set_status
28211
28212# as_fn_exit STATUS
28213# -----------------
28214# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28215as_fn_exit ()
28216{
28217  set +e
28218  as_fn_set_status $1
28219  exit $1
28220} # as_fn_exit
28221
28222# as_fn_unset VAR
28223# ---------------
28224# Portably unset VAR.
28225as_fn_unset ()
28226{
28227  { eval $1=; unset $1;}
28228}
28229as_unset=as_fn_unset
28230# as_fn_append VAR VALUE
28231# ----------------------
28232# Append the text in VALUE to the end of the definition contained in VAR. Take
28233# advantage of any shell optimizations that allow amortized linear growth over
28234# repeated appends, instead of the typical quadratic growth present in naive
28235# implementations.
28236if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28237  eval 'as_fn_append ()
28238  {
28239    eval $1+=\$2
28240  }'
28241else
28242  as_fn_append ()
28243  {
28244    eval $1=\$$1\$2
28245  }
28246fi # as_fn_append
28247
28248# as_fn_arith ARG...
28249# ------------------
28250# Perform arithmetic evaluation on the ARGs, and store the result in the
28251# global $as_val. Take advantage of shells that can avoid forks. The arguments
28252# must be portable across $(()) and expr.
28253if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28254  eval 'as_fn_arith ()
28255  {
28256    as_val=$(( $* ))
28257  }'
28258else
28259  as_fn_arith ()
28260  {
28261    as_val=`expr "$@" || test $? -eq 1`
28262  }
28263fi # as_fn_arith
28264
28265
28266if expr a : '\(a\)' >/dev/null 2>&1 &&
28267   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28268  as_expr=expr
28269else
28270  as_expr=false
28271fi
28272
28273if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28274  as_basename=basename
28275else
28276  as_basename=false
28277fi
28278
28279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28280  as_dirname=dirname
28281else
28282  as_dirname=false
28283fi
28284
28285as_me=`$as_basename -- "$0" ||
28286$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28287	 X"$0" : 'X\(//\)$' \| \
28288	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28289$as_echo X/"$0" |
28290    sed '/^.*\/\([^/][^/]*\)\/*$/{
28291	    s//\1/
28292	    q
28293	  }
28294	  /^X\/\(\/\/\)$/{
28295	    s//\1/
28296	    q
28297	  }
28298	  /^X\/\(\/\).*/{
28299	    s//\1/
28300	    q
28301	  }
28302	  s/.*/./; q'`
28303
28304# Avoid depending upon Character Ranges.
28305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28308as_cr_digits='0123456789'
28309as_cr_alnum=$as_cr_Letters$as_cr_digits
28310
28311ECHO_C= ECHO_N= ECHO_T=
28312case `echo -n x` in #(((((
28313-n*)
28314  case `echo 'xy\c'` in
28315  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28316  xy)  ECHO_C='\c';;
28317  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28318       ECHO_T='	';;
28319  esac;;
28320*)
28321  ECHO_N='-n';;
28322esac
28323
28324rm -f conf$$ conf$$.exe conf$$.file
28325if test -d conf$$.dir; then
28326  rm -f conf$$.dir/conf$$.file
28327else
28328  rm -f conf$$.dir
28329  mkdir conf$$.dir 2>/dev/null
28330fi
28331if (echo >conf$$.file) 2>/dev/null; then
28332  if ln -s conf$$.file conf$$ 2>/dev/null; then
28333    as_ln_s='ln -s'
28334    # ... but there are two gotchas:
28335    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28336    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28337    # In both cases, we have to default to `cp -pR'.
28338    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28339      as_ln_s='cp -pR'
28340  elif ln conf$$.file conf$$ 2>/dev/null; then
28341    as_ln_s=ln
28342  else
28343    as_ln_s='cp -pR'
28344  fi
28345else
28346  as_ln_s='cp -pR'
28347fi
28348rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28349rmdir conf$$.dir 2>/dev/null
28350
28351
28352# as_fn_mkdir_p
28353# -------------
28354# Create "$as_dir" as a directory, including parents if necessary.
28355as_fn_mkdir_p ()
28356{
28357
28358  case $as_dir in #(
28359  -*) as_dir=./$as_dir;;
28360  esac
28361  test -d "$as_dir" || eval $as_mkdir_p || {
28362    as_dirs=
28363    while :; do
28364      case $as_dir in #(
28365      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28366      *) as_qdir=$as_dir;;
28367      esac
28368      as_dirs="'$as_qdir' $as_dirs"
28369      as_dir=`$as_dirname -- "$as_dir" ||
28370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371	 X"$as_dir" : 'X\(//\)[^/]' \| \
28372	 X"$as_dir" : 'X\(//\)$' \| \
28373	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28374$as_echo X"$as_dir" |
28375    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28376	    s//\1/
28377	    q
28378	  }
28379	  /^X\(\/\/\)[^/].*/{
28380	    s//\1/
28381	    q
28382	  }
28383	  /^X\(\/\/\)$/{
28384	    s//\1/
28385	    q
28386	  }
28387	  /^X\(\/\).*/{
28388	    s//\1/
28389	    q
28390	  }
28391	  s/.*/./; q'`
28392      test -d "$as_dir" && break
28393    done
28394    test -z "$as_dirs" || eval "mkdir $as_dirs"
28395  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28396
28397
28398} # as_fn_mkdir_p
28399if mkdir -p . 2>/dev/null; then
28400  as_mkdir_p='mkdir -p "$as_dir"'
28401else
28402  test -d ./-p && rmdir ./-p
28403  as_mkdir_p=false
28404fi
28405
28406
28407# as_fn_executable_p FILE
28408# -----------------------
28409# Test if FILE is an executable regular file.
28410as_fn_executable_p ()
28411{
28412  test -f "$1" && test -x "$1"
28413} # as_fn_executable_p
28414as_test_x='test -x'
28415as_executable_p=as_fn_executable_p
28416
28417# Sed expression to map a string onto a valid CPP name.
28418as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28419
28420# Sed expression to map a string onto a valid variable name.
28421as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28422
28423
28424exec 6>&1
28425## ----------------------------------- ##
28426## Main body of $CONFIG_STATUS script. ##
28427## ----------------------------------- ##
28428_ASEOF
28429test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28430
28431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28432# Save the log message, to keep $0 and so on meaningful, and to
28433# report actual input values of CONFIG_FILES etc. instead of their
28434# values after options handling.
28435ac_log="
28436This file was extended by cyrus-imapd $as_me 3.4.2, which was
28437generated by GNU Autoconf 2.69.  Invocation command line was
28438
28439  CONFIG_FILES    = $CONFIG_FILES
28440  CONFIG_HEADERS  = $CONFIG_HEADERS
28441  CONFIG_LINKS    = $CONFIG_LINKS
28442  CONFIG_COMMANDS = $CONFIG_COMMANDS
28443  $ $0 $@
28444
28445on `(hostname || uname -n) 2>/dev/null | sed 1q`
28446"
28447
28448_ACEOF
28449
28450case $ac_config_files in *"
28451"*) set x $ac_config_files; shift; ac_config_files=$*;;
28452esac
28453
28454case $ac_config_headers in *"
28455"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28456esac
28457
28458
28459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28460# Files that config.status was made for.
28461config_files="$ac_config_files"
28462config_headers="$ac_config_headers"
28463config_links="$ac_config_links"
28464config_commands="$ac_config_commands"
28465
28466_ACEOF
28467
28468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28469ac_cs_usage="\
28470\`$as_me' instantiates files and other configuration actions
28471from templates according to the current configuration.  Unless the files
28472and actions are specified as TAGs, all are instantiated by default.
28473
28474Usage: $0 [OPTION]... [TAG]...
28475
28476  -h, --help       print this help, then exit
28477  -V, --version    print version number and configuration settings, then exit
28478      --config     print configuration, then exit
28479  -q, --quiet, --silent
28480                   do not print progress messages
28481  -d, --debug      don't remove temporary files
28482      --recheck    update $as_me by reconfiguring in the same conditions
28483      --file=FILE[:TEMPLATE]
28484                   instantiate the configuration file FILE
28485      --header=FILE[:TEMPLATE]
28486                   instantiate the configuration header FILE
28487
28488Configuration files:
28489$config_files
28490
28491Configuration headers:
28492$config_headers
28493
28494Configuration links:
28495$config_links
28496
28497Configuration commands:
28498$config_commands
28499
28500Report bugs to <https://github.com/cyrusimap/cyrus-imapd/issues>.
28501cyrus-imapd home page: <https://www.cyrusimap.org>."
28502
28503_ACEOF
28504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28505ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28506ac_cs_version="\\
28507cyrus-imapd config.status 3.4.2
28508configured by $0, generated by GNU Autoconf 2.69,
28509  with options \\"\$ac_cs_config\\"
28510
28511Copyright (C) 2012 Free Software Foundation, Inc.
28512This config.status script is free software; the Free Software Foundation
28513gives unlimited permission to copy, distribute and modify it."
28514
28515ac_pwd='$ac_pwd'
28516srcdir='$srcdir'
28517INSTALL='$INSTALL'
28518MKDIR_P='$MKDIR_P'
28519AWK='$AWK'
28520test -n "\$AWK" || AWK=awk
28521_ACEOF
28522
28523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28524# The default lists apply if the user does not specify any file.
28525ac_need_defaults=:
28526while test $# != 0
28527do
28528  case $1 in
28529  --*=?*)
28530    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28531    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28532    ac_shift=:
28533    ;;
28534  --*=)
28535    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28536    ac_optarg=
28537    ac_shift=:
28538    ;;
28539  *)
28540    ac_option=$1
28541    ac_optarg=$2
28542    ac_shift=shift
28543    ;;
28544  esac
28545
28546  case $ac_option in
28547  # Handling of the options.
28548  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28549    ac_cs_recheck=: ;;
28550  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28551    $as_echo "$ac_cs_version"; exit ;;
28552  --config | --confi | --conf | --con | --co | --c )
28553    $as_echo "$ac_cs_config"; exit ;;
28554  --debug | --debu | --deb | --de | --d | -d )
28555    debug=: ;;
28556  --file | --fil | --fi | --f )
28557    $ac_shift
28558    case $ac_optarg in
28559    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28560    '') as_fn_error $? "missing file argument" ;;
28561    esac
28562    as_fn_append CONFIG_FILES " '$ac_optarg'"
28563    ac_need_defaults=false;;
28564  --header | --heade | --head | --hea )
28565    $ac_shift
28566    case $ac_optarg in
28567    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28568    esac
28569    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28570    ac_need_defaults=false;;
28571  --he | --h)
28572    # Conflict between --help and --header
28573    as_fn_error $? "ambiguous option: \`$1'
28574Try \`$0 --help' for more information.";;
28575  --help | --hel | -h )
28576    $as_echo "$ac_cs_usage"; exit ;;
28577  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28578  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28579    ac_cs_silent=: ;;
28580
28581  # This is an error.
28582  -*) as_fn_error $? "unrecognized option: \`$1'
28583Try \`$0 --help' for more information." ;;
28584
28585  *) as_fn_append ac_config_targets " $1"
28586     ac_need_defaults=false ;;
28587
28588  esac
28589  shift
28590done
28591
28592ac_configure_extra_args=
28593
28594if $ac_cs_silent; then
28595  exec 6>/dev/null
28596  ac_configure_extra_args="$ac_configure_extra_args --silent"
28597fi
28598
28599_ACEOF
28600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28601if \$ac_cs_recheck; then
28602  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28603  shift
28604  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28605  CONFIG_SHELL='$SHELL'
28606  export CONFIG_SHELL
28607  exec "\$@"
28608fi
28609
28610_ACEOF
28611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28612exec 5>>config.log
28613{
28614  echo
28615  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28616## Running $as_me. ##
28617_ASBOX
28618  $as_echo "$ac_log"
28619} >&5
28620
28621_ACEOF
28622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28623#
28624# INIT-COMMANDS
28625#
28626AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28627
28628
28629# The HP-UX ksh and POSIX shell print the target directory to stdout
28630# if CDPATH is set.
28631(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28632
28633sed_quote_subst='$sed_quote_subst'
28634double_quote_subst='$double_quote_subst'
28635delay_variable_subst='$delay_variable_subst'
28636macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28637macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28638enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28639enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28640pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28641enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28642shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28643SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28644ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28645PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28646host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28647host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28648host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28649build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28650build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28651build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28652SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28653Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28654GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28655EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28656FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28657LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28658NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28659LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28660max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28661ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28662exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28663lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28664lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28665lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28666lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28667lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28668reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28669reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28670OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28671deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28672file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28673file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28674want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28675DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28676sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28677AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28678AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28679archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28680STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28681RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28682old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28683old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28684old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28685lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28686CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28687CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28688compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28689GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28690lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28691lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28692lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28693lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28694lt_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"`'
28695lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28696nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28697lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28698lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28699objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28700MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28701lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28702lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28703lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28704lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28705lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28706need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28707MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28708DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28709NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28710LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28711OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28712OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28713libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28714shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28715extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28716archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28717enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28718export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28719whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28720compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28721old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28722old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28723archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28724archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28725module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28726module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28727with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28728allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28729no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28730hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28731hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28732hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28733hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28734hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28735hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28736hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28737inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28738link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28739always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28740export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28741exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28742include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28743prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28744postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28745file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28746variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28747need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28748need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28749version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28750runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28751shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28752shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28753libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28754library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28755soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28756install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28757postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28758postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28759finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28760finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28761hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28762sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28763configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28764configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28765hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28766enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28767enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28768enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28769old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28770striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28771compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28772predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28773postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28774predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28775postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28776compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28777LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28778reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28779reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28780old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28781compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28782GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28783lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28784lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28785lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28786lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28787lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28788archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28789enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28790export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28791whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28792compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28793old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28794old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28795archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28796archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28797module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28798module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28799with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28800allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28801no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28802hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28803hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28804hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28805hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28806hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28807hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28808hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28809inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28810link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28811always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28812export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28813exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28814include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28815prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28816postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28817file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28818hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28819compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28820predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28821postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28822predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28823postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28824compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28825
28826LTCC='$LTCC'
28827LTCFLAGS='$LTCFLAGS'
28828compiler='$compiler_DEFAULT'
28829
28830# A function that is used when there is no print builtin or printf.
28831func_fallback_echo ()
28832{
28833  eval 'cat <<_LTECHO_EOF
28834\$1
28835_LTECHO_EOF'
28836}
28837
28838# Quote evaled strings.
28839for var in SHELL \
28840ECHO \
28841PATH_SEPARATOR \
28842SED \
28843GREP \
28844EGREP \
28845FGREP \
28846LD \
28847NM \
28848LN_S \
28849lt_SP2NL \
28850lt_NL2SP \
28851reload_flag \
28852OBJDUMP \
28853deplibs_check_method \
28854file_magic_cmd \
28855file_magic_glob \
28856want_nocaseglob \
28857DLLTOOL \
28858sharedlib_from_linklib_cmd \
28859AR \
28860AR_FLAGS \
28861archiver_list_spec \
28862STRIP \
28863RANLIB \
28864CC \
28865CFLAGS \
28866compiler \
28867lt_cv_sys_global_symbol_pipe \
28868lt_cv_sys_global_symbol_to_cdecl \
28869lt_cv_sys_global_symbol_to_import \
28870lt_cv_sys_global_symbol_to_c_name_address \
28871lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28872lt_cv_nm_interface \
28873nm_file_list_spec \
28874lt_cv_truncate_bin \
28875lt_prog_compiler_no_builtin_flag \
28876lt_prog_compiler_pic \
28877lt_prog_compiler_wl \
28878lt_prog_compiler_static \
28879lt_cv_prog_compiler_c_o \
28880need_locks \
28881MANIFEST_TOOL \
28882DSYMUTIL \
28883NMEDIT \
28884LIPO \
28885OTOOL \
28886OTOOL64 \
28887shrext_cmds \
28888export_dynamic_flag_spec \
28889whole_archive_flag_spec \
28890compiler_needs_object \
28891with_gnu_ld \
28892allow_undefined_flag \
28893no_undefined_flag \
28894hardcode_libdir_flag_spec \
28895hardcode_libdir_separator \
28896exclude_expsyms \
28897include_expsyms \
28898file_list_spec \
28899variables_saved_for_relink \
28900libname_spec \
28901library_names_spec \
28902soname_spec \
28903install_override_mode \
28904finish_eval \
28905old_striplib \
28906striplib \
28907compiler_lib_search_dirs \
28908predep_objects \
28909postdep_objects \
28910predeps \
28911postdeps \
28912compiler_lib_search_path \
28913LD_CXX \
28914reload_flag_CXX \
28915compiler_CXX \
28916lt_prog_compiler_no_builtin_flag_CXX \
28917lt_prog_compiler_pic_CXX \
28918lt_prog_compiler_wl_CXX \
28919lt_prog_compiler_static_CXX \
28920lt_cv_prog_compiler_c_o_CXX \
28921export_dynamic_flag_spec_CXX \
28922whole_archive_flag_spec_CXX \
28923compiler_needs_object_CXX \
28924with_gnu_ld_CXX \
28925allow_undefined_flag_CXX \
28926no_undefined_flag_CXX \
28927hardcode_libdir_flag_spec_CXX \
28928hardcode_libdir_separator_CXX \
28929exclude_expsyms_CXX \
28930include_expsyms_CXX \
28931file_list_spec_CXX \
28932compiler_lib_search_dirs_CXX \
28933predep_objects_CXX \
28934postdep_objects_CXX \
28935predeps_CXX \
28936postdeps_CXX \
28937compiler_lib_search_path_CXX; do
28938    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28939    *[\\\\\\\`\\"\\\$]*)
28940      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28941      ;;
28942    *)
28943      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28944      ;;
28945    esac
28946done
28947
28948# Double-quote double-evaled strings.
28949for var in reload_cmds \
28950old_postinstall_cmds \
28951old_postuninstall_cmds \
28952old_archive_cmds \
28953extract_expsyms_cmds \
28954old_archive_from_new_cmds \
28955old_archive_from_expsyms_cmds \
28956archive_cmds \
28957archive_expsym_cmds \
28958module_cmds \
28959module_expsym_cmds \
28960export_symbols_cmds \
28961prelink_cmds \
28962postlink_cmds \
28963postinstall_cmds \
28964postuninstall_cmds \
28965finish_cmds \
28966sys_lib_search_path_spec \
28967configure_time_dlsearch_path \
28968configure_time_lt_sys_library_path \
28969reload_cmds_CXX \
28970old_archive_cmds_CXX \
28971old_archive_from_new_cmds_CXX \
28972old_archive_from_expsyms_cmds_CXX \
28973archive_cmds_CXX \
28974archive_expsym_cmds_CXX \
28975module_cmds_CXX \
28976module_expsym_cmds_CXX \
28977export_symbols_cmds_CXX \
28978prelink_cmds_CXX \
28979postlink_cmds_CXX; do
28980    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28981    *[\\\\\\\`\\"\\\$]*)
28982      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28983      ;;
28984    *)
28985      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28986      ;;
28987    esac
28988done
28989
28990ac_aux_dir='$ac_aux_dir'
28991
28992# See if we are running on zsh, and set the options that allow our
28993# commands through without removal of \ escapes INIT.
28994if test -n "\${ZSH_VERSION+set}"; then
28995   setopt NO_GLOB_SUBST
28996fi
28997
28998
28999    PACKAGE='$PACKAGE'
29000    VERSION='$VERSION'
29001    RM='$RM'
29002    ofile='$ofile'
29003
29004
29005
29006
29007
29008
29009    PERL="${PERL}"
29010    MAKE_MAKER_ARGS="PREFIX=${prefix}"
29011
29012
29013    PERL="${PERL}"
29014    MAKE_MAKER_ARGS="PREFIX=${prefix}"
29015
29016
29017    PERL="${PERL}"
29018    MAKE_MAKER_ARGS="PREFIX=${prefix}"
29019
29020
29021_ACEOF
29022
29023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29024
29025# Handling of arguments.
29026for ac_config_target in $ac_config_targets
29027do
29028  case $ac_config_target in
29029    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29030    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29031    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29032    "perl/sieve/managesieve/managesieve.pm") CONFIG_LINKS="$CONFIG_LINKS perl/sieve/managesieve/managesieve.pm:perl/sieve/managesieve/managesieve.pm" ;;
29033    "perl/sieve/managesieve/MANIFEST") CONFIG_FILES="$CONFIG_FILES perl/sieve/managesieve/MANIFEST" ;;
29034    "perl/imap/Cyrus/HeaderFile.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/HeaderFile.pm:perl/imap/Cyrus/HeaderFile.pm" ;;
29035    "perl/imap/Cyrus/CacheFile.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/CacheFile.pm:perl/imap/Cyrus/CacheFile.pm" ;;
29036    "perl/imap/Cyrus/IndexFile.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/IndexFile.pm:perl/imap/Cyrus/IndexFile.pm" ;;
29037    "perl/imap/Cyrus/DList.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/DList.pm:perl/imap/Cyrus/DList.pm" ;;
29038    "perl/imap/Cyrus/ImapClone.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/ImapClone.pm:perl/imap/Cyrus/ImapClone.pm" ;;
29039    "perl/imap/Cyrus/SyncProto.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/SyncProto.pm:perl/imap/Cyrus/SyncProto.pm" ;;
29040    "perl/imap/IMAP/Shell.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP/Shell.pm:perl/imap/IMAP/Shell.pm" ;;
29041    "perl/imap/IMAP/IMSP.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP/IMSP.pm:perl/imap/IMAP/IMSP.pm" ;;
29042    "perl/imap/IMAP/Admin.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP/Admin.pm:perl/imap/IMAP/Admin.pm" ;;
29043    "perl/imap/IMAP.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP.pm:perl/imap/IMAP.pm" ;;
29044    "perl/imap/MANIFEST") CONFIG_FILES="$CONFIG_FILES perl/imap/MANIFEST" ;;
29045    "perl/annotator/Message.pm") CONFIG_LINKS="$CONFIG_LINKS perl/annotator/Message.pm:perl/annotator/Message.pm" ;;
29046    "perl/annotator/AnnotateInlinedCIDs.pm") CONFIG_LINKS="$CONFIG_LINKS perl/annotator/AnnotateInlinedCIDs.pm:perl/annotator/AnnotateInlinedCIDs.pm" ;;
29047    "perl/annotator/Daemon.pm") CONFIG_LINKS="$CONFIG_LINKS perl/annotator/Daemon.pm:perl/annotator/Daemon.pm" ;;
29048    "perl/annotator/MANIFEST") CONFIG_FILES="$CONFIG_FILES perl/annotator/MANIFEST" ;;
29049    "cunit/cacert.pem") CONFIG_LINKS="$CONFIG_LINKS cunit/cacert.pem:cunit/cacert.pem" ;;
29050    "cunit/cert.pem") CONFIG_LINKS="$CONFIG_LINKS cunit/cert.pem:cunit/cert.pem" ;;
29051    "cunit/key.pem") CONFIG_LINKS="$CONFIG_LINKS cunit/key.pem:cunit/key.pem" ;;
29052    "libcyrus_imap.pc") CONFIG_FILES="$CONFIG_FILES libcyrus_imap.pc" ;;
29053    "libcyrus_min.pc") CONFIG_FILES="$CONFIG_FILES libcyrus_min.pc" ;;
29054    "libcyrus.pc") CONFIG_FILES="$CONFIG_FILES libcyrus.pc" ;;
29055    "libcyrus_sieve.pc") CONFIG_FILES="$CONFIG_FILES libcyrus_sieve.pc" ;;
29056    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29057    "perl/annotator/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/annotator/Makefile.PL" ;;
29058    "perl/annotator/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS perl/annotator/Makefile" ;;
29059    "perl/imap/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/imap/Makefile.PL" ;;
29060    "perl/imap/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS perl/imap/Makefile" ;;
29061    "perl/sieve/managesieve/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/sieve/managesieve/Makefile.PL" ;;
29062    "perl/sieve/managesieve/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS perl/sieve/managesieve/Makefile" ;;
29063
29064  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29065  esac
29066done
29067
29068
29069# If the user did not use the arguments to specify the items to instantiate,
29070# then the envvar interface is used.  Set only those that are not.
29071# We use the long form for the default assignment because of an extremely
29072# bizarre bug on SunOS 4.1.3.
29073if $ac_need_defaults; then
29074  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29075  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29076  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29077  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29078fi
29079
29080# Have a temporary directory for convenience.  Make it in the build tree
29081# simply because there is no reason against having it here, and in addition,
29082# creating and moving files from /tmp can sometimes cause problems.
29083# Hook for its removal unless debugging.
29084# Note that there is a small window in which the directory will not be cleaned:
29085# after its creation but before its name has been assigned to `$tmp'.
29086$debug ||
29087{
29088  tmp= ac_tmp=
29089  trap 'exit_status=$?
29090  : "${ac_tmp:=$tmp}"
29091  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29092' 0
29093  trap 'as_fn_exit 1' 1 2 13 15
29094}
29095# Create a (secure) tmp directory for tmp files.
29096
29097{
29098  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29099  test -d "$tmp"
29100}  ||
29101{
29102  tmp=./conf$$-$RANDOM
29103  (umask 077 && mkdir "$tmp")
29104} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29105ac_tmp=$tmp
29106
29107# Set up the scripts for CONFIG_FILES section.
29108# No need to generate them if there are no CONFIG_FILES.
29109# This happens for instance with `./config.status config.h'.
29110if test -n "$CONFIG_FILES"; then
29111
29112
29113ac_cr=`echo X | tr X '\015'`
29114# On cygwin, bash can eat \r inside `` if the user requested igncr.
29115# But we know of no other shell where ac_cr would be empty at this
29116# point, so we can use a bashism as a fallback.
29117if test "x$ac_cr" = x; then
29118  eval ac_cr=\$\'\\r\'
29119fi
29120ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29121if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29122  ac_cs_awk_cr='\\r'
29123else
29124  ac_cs_awk_cr=$ac_cr
29125fi
29126
29127echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29128_ACEOF
29129
29130
29131{
29132  echo "cat >conf$$subs.awk <<_ACEOF" &&
29133  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29134  echo "_ACEOF"
29135} >conf$$subs.sh ||
29136  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29137ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29138ac_delim='%!_!# '
29139for ac_last_try in false false false false false :; do
29140  . ./conf$$subs.sh ||
29141    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29142
29143  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29144  if test $ac_delim_n = $ac_delim_num; then
29145    break
29146  elif $ac_last_try; then
29147    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29148  else
29149    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29150  fi
29151done
29152rm -f conf$$subs.sh
29153
29154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29155cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29156_ACEOF
29157sed -n '
29158h
29159s/^/S["/; s/!.*/"]=/
29160p
29161g
29162s/^[^!]*!//
29163:repl
29164t repl
29165s/'"$ac_delim"'$//
29166t delim
29167:nl
29168h
29169s/\(.\{148\}\)..*/\1/
29170t more1
29171s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29172p
29173n
29174b repl
29175:more1
29176s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29177p
29178g
29179s/.\{148\}//
29180t nl
29181:delim
29182h
29183s/\(.\{148\}\)..*/\1/
29184t more2
29185s/["\\]/\\&/g; s/^/"/; s/$/"/
29186p
29187b
29188:more2
29189s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29190p
29191g
29192s/.\{148\}//
29193t delim
29194' <conf$$subs.awk | sed '
29195/^[^""]/{
29196  N
29197  s/\n//
29198}
29199' >>$CONFIG_STATUS || ac_write_fail=1
29200rm -f conf$$subs.awk
29201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29202_ACAWK
29203cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29204  for (key in S) S_is_set[key] = 1
29205  FS = ""
29206
29207}
29208{
29209  line = $ 0
29210  nfields = split(line, field, "@")
29211  substed = 0
29212  len = length(field[1])
29213  for (i = 2; i < nfields; i++) {
29214    key = field[i]
29215    keylen = length(key)
29216    if (S_is_set[key]) {
29217      value = S[key]
29218      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29219      len += length(value) + length(field[++i])
29220      substed = 1
29221    } else
29222      len += 1 + keylen
29223  }
29224
29225  print line
29226}
29227
29228_ACAWK
29229_ACEOF
29230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29231if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29232  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29233else
29234  cat
29235fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29236  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29237_ACEOF
29238
29239# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29240# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29241# trailing colons and then remove the whole line if VPATH becomes empty
29242# (actually we leave an empty line to preserve line numbers).
29243if test "x$srcdir" = x.; then
29244  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29245h
29246s///
29247s/^/:/
29248s/[	 ]*$/:/
29249s/:\$(srcdir):/:/g
29250s/:\${srcdir}:/:/g
29251s/:@srcdir@:/:/g
29252s/^:*//
29253s/:*$//
29254x
29255s/\(=[	 ]*\).*/\1/
29256G
29257s/\n//
29258s/^[^=]*=[	 ]*$//
29259}'
29260fi
29261
29262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29263fi # test -n "$CONFIG_FILES"
29264
29265# Set up the scripts for CONFIG_HEADERS section.
29266# No need to generate them if there are no CONFIG_HEADERS.
29267# This happens for instance with `./config.status Makefile'.
29268if test -n "$CONFIG_HEADERS"; then
29269cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29270BEGIN {
29271_ACEOF
29272
29273# Transform confdefs.h into an awk script `defines.awk', embedded as
29274# here-document in config.status, that substitutes the proper values into
29275# config.h.in to produce config.h.
29276
29277# Create a delimiter string that does not exist in confdefs.h, to ease
29278# handling of long lines.
29279ac_delim='%!_!# '
29280for ac_last_try in false false :; do
29281  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29282  if test -z "$ac_tt"; then
29283    break
29284  elif $ac_last_try; then
29285    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29286  else
29287    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29288  fi
29289done
29290
29291# For the awk script, D is an array of macro values keyed by name,
29292# likewise P contains macro parameters if any.  Preserve backslash
29293# newline sequences.
29294
29295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29296sed -n '
29297s/.\{148\}/&'"$ac_delim"'/g
29298t rset
29299:rset
29300s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29301t def
29302d
29303:def
29304s/\\$//
29305t bsnl
29306s/["\\]/\\&/g
29307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29308D["\1"]=" \3"/p
29309s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29310d
29311:bsnl
29312s/["\\]/\\&/g
29313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29314D["\1"]=" \3\\\\\\n"\\/p
29315t cont
29316s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29317t cont
29318d
29319:cont
29320n
29321s/.\{148\}/&'"$ac_delim"'/g
29322t clear
29323:clear
29324s/\\$//
29325t bsnlc
29326s/["\\]/\\&/g; s/^/"/; s/$/"/p
29327d
29328:bsnlc
29329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29330b cont
29331' <confdefs.h | sed '
29332s/'"$ac_delim"'/"\\\
29333"/g' >>$CONFIG_STATUS || ac_write_fail=1
29334
29335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29336  for (key in D) D_is_set[key] = 1
29337  FS = ""
29338}
29339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29340  line = \$ 0
29341  split(line, arg, " ")
29342  if (arg[1] == "#") {
29343    defundef = arg[2]
29344    mac1 = arg[3]
29345  } else {
29346    defundef = substr(arg[1], 2)
29347    mac1 = arg[2]
29348  }
29349  split(mac1, mac2, "(") #)
29350  macro = mac2[1]
29351  prefix = substr(line, 1, index(line, defundef) - 1)
29352  if (D_is_set[macro]) {
29353    # Preserve the white space surrounding the "#".
29354    print prefix "define", macro P[macro] D[macro]
29355    next
29356  } else {
29357    # Replace #undef with comments.  This is necessary, for example,
29358    # in the case of _POSIX_SOURCE, which is predefined and required
29359    # on some systems where configure will not decide to define it.
29360    if (defundef == "undef") {
29361      print "/*", prefix defundef, macro, "*/"
29362      next
29363    }
29364  }
29365}
29366{ print }
29367_ACAWK
29368_ACEOF
29369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29370  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29371fi # test -n "$CONFIG_HEADERS"
29372
29373
29374eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29375shift
29376for ac_tag
29377do
29378  case $ac_tag in
29379  :[FHLC]) ac_mode=$ac_tag; continue;;
29380  esac
29381  case $ac_mode$ac_tag in
29382  :[FHL]*:*);;
29383  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29384  :[FH]-) ac_tag=-:-;;
29385  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29386  esac
29387  ac_save_IFS=$IFS
29388  IFS=:
29389  set x $ac_tag
29390  IFS=$ac_save_IFS
29391  shift
29392  ac_file=$1
29393  shift
29394
29395  case $ac_mode in
29396  :L) ac_source=$1;;
29397  :[FH])
29398    ac_file_inputs=
29399    for ac_f
29400    do
29401      case $ac_f in
29402      -) ac_f="$ac_tmp/stdin";;
29403      *) # Look for the file first in the build tree, then in the source tree
29404	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29405	 # because $ac_f cannot contain `:'.
29406	 test -f "$ac_f" ||
29407	   case $ac_f in
29408	   [\\/$]*) false;;
29409	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29410	   esac ||
29411	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29412      esac
29413      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29414      as_fn_append ac_file_inputs " '$ac_f'"
29415    done
29416
29417    # Let's still pretend it is `configure' which instantiates (i.e., don't
29418    # use $as_me), people would be surprised to read:
29419    #    /* config.h.  Generated by config.status.  */
29420    configure_input='Generated from '`
29421	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29422	`' by configure.'
29423    if test x"$ac_file" != x-; then
29424      configure_input="$ac_file.  $configure_input"
29425      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29426$as_echo "$as_me: creating $ac_file" >&6;}
29427    fi
29428    # Neutralize special characters interpreted by sed in replacement strings.
29429    case $configure_input in #(
29430    *\&* | *\|* | *\\* )
29431       ac_sed_conf_input=`$as_echo "$configure_input" |
29432       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29433    *) ac_sed_conf_input=$configure_input;;
29434    esac
29435
29436    case $ac_tag in
29437    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29438      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29439    esac
29440    ;;
29441  esac
29442
29443  ac_dir=`$as_dirname -- "$ac_file" ||
29444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29445	 X"$ac_file" : 'X\(//\)[^/]' \| \
29446	 X"$ac_file" : 'X\(//\)$' \| \
29447	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29448$as_echo X"$ac_file" |
29449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29450	    s//\1/
29451	    q
29452	  }
29453	  /^X\(\/\/\)[^/].*/{
29454	    s//\1/
29455	    q
29456	  }
29457	  /^X\(\/\/\)$/{
29458	    s//\1/
29459	    q
29460	  }
29461	  /^X\(\/\).*/{
29462	    s//\1/
29463	    q
29464	  }
29465	  s/.*/./; q'`
29466  as_dir="$ac_dir"; as_fn_mkdir_p
29467  ac_builddir=.
29468
29469case "$ac_dir" in
29470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29471*)
29472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29473  # A ".." for each directory in $ac_dir_suffix.
29474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29475  case $ac_top_builddir_sub in
29476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29478  esac ;;
29479esac
29480ac_abs_top_builddir=$ac_pwd
29481ac_abs_builddir=$ac_pwd$ac_dir_suffix
29482# for backward compatibility:
29483ac_top_builddir=$ac_top_build_prefix
29484
29485case $srcdir in
29486  .)  # We are building in place.
29487    ac_srcdir=.
29488    ac_top_srcdir=$ac_top_builddir_sub
29489    ac_abs_top_srcdir=$ac_pwd ;;
29490  [\\/]* | ?:[\\/]* )  # Absolute name.
29491    ac_srcdir=$srcdir$ac_dir_suffix;
29492    ac_top_srcdir=$srcdir
29493    ac_abs_top_srcdir=$srcdir ;;
29494  *) # Relative name.
29495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29496    ac_top_srcdir=$ac_top_build_prefix$srcdir
29497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29498esac
29499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29500
29501
29502  case $ac_mode in
29503  :F)
29504  #
29505  # CONFIG_FILE
29506  #
29507
29508  case $INSTALL in
29509  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29510  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29511  esac
29512  ac_MKDIR_P=$MKDIR_P
29513  case $MKDIR_P in
29514  [\\/$]* | ?:[\\/]* ) ;;
29515  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29516  esac
29517_ACEOF
29518
29519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29520# If the template does not know about datarootdir, expand it.
29521# FIXME: This hack should be removed a few years after 2.60.
29522ac_datarootdir_hack=; ac_datarootdir_seen=
29523ac_sed_dataroot='
29524/datarootdir/ {
29525  p
29526  q
29527}
29528/@datadir@/p
29529/@docdir@/p
29530/@infodir@/p
29531/@localedir@/p
29532/@mandir@/p'
29533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29534*datarootdir*) ac_datarootdir_seen=yes;;
29535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29536  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29538_ACEOF
29539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29540  ac_datarootdir_hack='
29541  s&@datadir@&$datadir&g
29542  s&@docdir@&$docdir&g
29543  s&@infodir@&$infodir&g
29544  s&@localedir@&$localedir&g
29545  s&@mandir@&$mandir&g
29546  s&\\\${datarootdir}&$datarootdir&g' ;;
29547esac
29548_ACEOF
29549
29550# Neutralize VPATH when `$srcdir' = `.'.
29551# Shell code in configure.ac might set extrasub.
29552# FIXME: do we really want to maintain this feature?
29553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29554ac_sed_extra="$ac_vpsub
29555$extrasub
29556_ACEOF
29557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29558:t
29559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29560s|@configure_input@|$ac_sed_conf_input|;t t
29561s&@top_builddir@&$ac_top_builddir_sub&;t t
29562s&@top_build_prefix@&$ac_top_build_prefix&;t t
29563s&@srcdir@&$ac_srcdir&;t t
29564s&@abs_srcdir@&$ac_abs_srcdir&;t t
29565s&@top_srcdir@&$ac_top_srcdir&;t t
29566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29567s&@builddir@&$ac_builddir&;t t
29568s&@abs_builddir@&$ac_abs_builddir&;t t
29569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29570s&@INSTALL@&$ac_INSTALL&;t t
29571s&@MKDIR_P@&$ac_MKDIR_P&;t t
29572$ac_datarootdir_hack
29573"
29574eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29575  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29576
29577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29578  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29579  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
29580      "$ac_tmp/out"`; test -z "$ac_out"; } &&
29581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29582which seems to be undefined.  Please make sure it is defined" >&5
29583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29584which seems to be undefined.  Please make sure it is defined" >&2;}
29585
29586  rm -f "$ac_tmp/stdin"
29587  case $ac_file in
29588  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29589  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29590  esac \
29591  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29592 ;;
29593  :H)
29594  #
29595  # CONFIG_HEADER
29596  #
29597  if test x"$ac_file" != x-; then
29598    {
29599      $as_echo "/* $configure_input  */" \
29600      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29601    } >"$ac_tmp/config.h" \
29602      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29603    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29604      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29605$as_echo "$as_me: $ac_file is unchanged" >&6;}
29606    else
29607      rm -f "$ac_file"
29608      mv "$ac_tmp/config.h" "$ac_file" \
29609	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29610    fi
29611  else
29612    $as_echo "/* $configure_input  */" \
29613      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29614      || as_fn_error $? "could not create -" "$LINENO" 5
29615  fi
29616# Compute "$ac_file"'s index in $config_headers.
29617_am_arg="$ac_file"
29618_am_stamp_count=1
29619for _am_header in $config_headers :; do
29620  case $_am_header in
29621    $_am_arg | $_am_arg:* )
29622      break ;;
29623    * )
29624      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29625  esac
29626done
29627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29629	 X"$_am_arg" : 'X\(//\)[^/]' \| \
29630	 X"$_am_arg" : 'X\(//\)$' \| \
29631	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29632$as_echo X"$_am_arg" |
29633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29634	    s//\1/
29635	    q
29636	  }
29637	  /^X\(\/\/\)[^/].*/{
29638	    s//\1/
29639	    q
29640	  }
29641	  /^X\(\/\/\)$/{
29642	    s//\1/
29643	    q
29644	  }
29645	  /^X\(\/\).*/{
29646	    s//\1/
29647	    q
29648	  }
29649	  s/.*/./; q'`/stamp-h$_am_stamp_count
29650 ;;
29651  :L)
29652  #
29653  # CONFIG_LINK
29654  #
29655
29656  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29657    :
29658  else
29659    # Prefer the file from the source tree if names are identical.
29660    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29661      ac_source=$srcdir/$ac_source
29662    fi
29663
29664    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29665$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29666
29667    if test ! -r "$ac_source"; then
29668      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
29669    fi
29670    rm -f "$ac_file"
29671
29672    # Try a relative symlink, then a hard link, then a copy.
29673    case $ac_source in
29674    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29675	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29676    esac
29677    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29678      ln "$ac_source" "$ac_file" 2>/dev/null ||
29679      cp -p "$ac_source" "$ac_file" ||
29680      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29681  fi
29682 ;;
29683  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29684$as_echo "$as_me: executing $ac_file commands" >&6;}
29685 ;;
29686  esac
29687
29688
29689  case $ac_file$ac_mode in
29690    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29691  # Older Autoconf quotes --file arguments for eval, but not when files
29692  # are listed without --file.  Let's play safe and only enable the eval
29693  # if we detect the quoting.
29694  # TODO: see whether this extra hack can be removed once we start
29695  # requiring Autoconf 2.70 or later.
29696  case $CONFIG_FILES in #(
29697  *\'*) :
29698    eval set x "$CONFIG_FILES" ;; #(
29699  *) :
29700    set x $CONFIG_FILES ;; #(
29701  *) :
29702     ;;
29703esac
29704  shift
29705  # Used to flag and report bootstrapping failures.
29706  am_rc=0
29707  for am_mf
29708  do
29709    # Strip MF so we end up with the name of the file.
29710    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
29711    # Check whether this is an Automake generated Makefile which includes
29712    # dependency-tracking related rules and includes.
29713    # Grep'ing the whole file directly is not great: AIX grep has a line
29714    # limit of 2048, but all sed's we know have understand at least 4000.
29715    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29716      || continue
29717    am_dirpart=`$as_dirname -- "$am_mf" ||
29718$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29719	 X"$am_mf" : 'X\(//\)[^/]' \| \
29720	 X"$am_mf" : 'X\(//\)$' \| \
29721	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29722$as_echo X"$am_mf" |
29723    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29724	    s//\1/
29725	    q
29726	  }
29727	  /^X\(\/\/\)[^/].*/{
29728	    s//\1/
29729	    q
29730	  }
29731	  /^X\(\/\/\)$/{
29732	    s//\1/
29733	    q
29734	  }
29735	  /^X\(\/\).*/{
29736	    s//\1/
29737	    q
29738	  }
29739	  s/.*/./; q'`
29740    am_filepart=`$as_basename -- "$am_mf" ||
29741$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29742	 X"$am_mf" : 'X\(//\)$' \| \
29743	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29744$as_echo X/"$am_mf" |
29745    sed '/^.*\/\([^/][^/]*\)\/*$/{
29746	    s//\1/
29747	    q
29748	  }
29749	  /^X\/\(\/\/\)$/{
29750	    s//\1/
29751	    q
29752	  }
29753	  /^X\/\(\/\).*/{
29754	    s//\1/
29755	    q
29756	  }
29757	  s/.*/./; q'`
29758    { echo "$as_me:$LINENO: cd "$am_dirpart" \
29759      && sed -e '/# am--include-marker/d' "$am_filepart" \
29760        | $MAKE -f - am--depfiles" >&5
29761   (cd "$am_dirpart" \
29762      && sed -e '/# am--include-marker/d' "$am_filepart" \
29763        | $MAKE -f - am--depfiles) >&5 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); } || am_rc=$?
29767  done
29768  if test $am_rc -ne 0; then
29769    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29771as_fn_error $? "Something went wrong bootstrapping makefile fragments
29772    for automatic dependency tracking.  Try re-running configure with the
29773    '--disable-dependency-tracking' option to at least be able to build
29774    the package (albeit without support for automatic dependency tracking).
29775See \`config.log' for more details" "$LINENO" 5; }
29776  fi
29777  { am_dirpart=; unset am_dirpart;}
29778  { am_filepart=; unset am_filepart;}
29779  { am_mf=; unset am_mf;}
29780  { am_rc=; unset am_rc;}
29781  rm -f conftest-deps.mk
29782}
29783 ;;
29784    "libtool":C)
29785
29786    # See if we are running on zsh, and set the options that allow our
29787    # commands through without removal of \ escapes.
29788    if test -n "${ZSH_VERSION+set}"; then
29789      setopt NO_GLOB_SUBST
29790    fi
29791
29792    cfgfile=${ofile}T
29793    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29794    $RM "$cfgfile"
29795
29796    cat <<_LT_EOF >> "$cfgfile"
29797#! $SHELL
29798# Generated automatically by $as_me ($PACKAGE) $VERSION
29799# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29800
29801# Provide generalized library-building support services.
29802# Written by Gordon Matzigkeit, 1996
29803
29804# Copyright (C) 2014 Free Software Foundation, Inc.
29805# This is free software; see the source for copying conditions.  There is NO
29806# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29807
29808# GNU Libtool is free software; you can redistribute it and/or modify
29809# it under the terms of the GNU General Public License as published by
29810# the Free Software Foundation; either version 2 of of the License, or
29811# (at your option) any later version.
29812#
29813# As a special exception to the GNU General Public License, if you
29814# distribute this file as part of a program or library that is built
29815# using GNU Libtool, you may include this file under the  same
29816# distribution terms that you use for the rest of that program.
29817#
29818# GNU Libtool is distributed in the hope that it will be useful, but
29819# WITHOUT ANY WARRANTY; without even the implied warranty of
29820# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29821# GNU General Public License for more details.
29822#
29823# You should have received a copy of the GNU General Public License
29824# along with this program.  If not, see <http://www.gnu.org/licenses/>.
29825
29826
29827# The names of the tagged configurations supported by this script.
29828available_tags='CXX '
29829
29830# Configured defaults for sys_lib_dlsearch_path munging.
29831: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29832
29833# ### BEGIN LIBTOOL CONFIG
29834
29835# Which release of libtool.m4 was used?
29836macro_version=$macro_version
29837macro_revision=$macro_revision
29838
29839# Whether or not to build static libraries.
29840build_old_libs=$enable_static
29841
29842# Whether or not to build shared libraries.
29843build_libtool_libs=$enable_shared
29844
29845# What type of objects to build.
29846pic_mode=$pic_mode
29847
29848# Whether or not to optimize for fast installation.
29849fast_install=$enable_fast_install
29850
29851# Shared archive member basename,for filename based shared library versioning on AIX.
29852shared_archive_member_spec=$shared_archive_member_spec
29853
29854# Shell to use when invoking shell scripts.
29855SHELL=$lt_SHELL
29856
29857# An echo program that protects backslashes.
29858ECHO=$lt_ECHO
29859
29860# The PATH separator for the build system.
29861PATH_SEPARATOR=$lt_PATH_SEPARATOR
29862
29863# The host system.
29864host_alias=$host_alias
29865host=$host
29866host_os=$host_os
29867
29868# The build system.
29869build_alias=$build_alias
29870build=$build
29871build_os=$build_os
29872
29873# A sed program that does not truncate output.
29874SED=$lt_SED
29875
29876# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29877Xsed="\$SED -e 1s/^X//"
29878
29879# A grep program that handles long lines.
29880GREP=$lt_GREP
29881
29882# An ERE matcher.
29883EGREP=$lt_EGREP
29884
29885# A literal string matcher.
29886FGREP=$lt_FGREP
29887
29888# A BSD- or MS-compatible name lister.
29889NM=$lt_NM
29890
29891# Whether we need soft or hard links.
29892LN_S=$lt_LN_S
29893
29894# What is the maximum length of a command?
29895max_cmd_len=$max_cmd_len
29896
29897# Object file suffix (normally "o").
29898objext=$ac_objext
29899
29900# Executable file suffix (normally "").
29901exeext=$exeext
29902
29903# whether the shell understands "unset".
29904lt_unset=$lt_unset
29905
29906# turn spaces into newlines.
29907SP2NL=$lt_lt_SP2NL
29908
29909# turn newlines into spaces.
29910NL2SP=$lt_lt_NL2SP
29911
29912# convert \$build file names to \$host format.
29913to_host_file_cmd=$lt_cv_to_host_file_cmd
29914
29915# convert \$build files to toolchain format.
29916to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29917
29918# An object symbol dumper.
29919OBJDUMP=$lt_OBJDUMP
29920
29921# Method to check whether dependent libraries are shared objects.
29922deplibs_check_method=$lt_deplibs_check_method
29923
29924# Command to use when deplibs_check_method = "file_magic".
29925file_magic_cmd=$lt_file_magic_cmd
29926
29927# How to find potential files when deplibs_check_method = "file_magic".
29928file_magic_glob=$lt_file_magic_glob
29929
29930# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29931want_nocaseglob=$lt_want_nocaseglob
29932
29933# DLL creation program.
29934DLLTOOL=$lt_DLLTOOL
29935
29936# Command to associate shared and link libraries.
29937sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29938
29939# The archiver.
29940AR=$lt_AR
29941
29942# Flags to create an archive.
29943AR_FLAGS=$lt_AR_FLAGS
29944
29945# How to feed a file listing to the archiver.
29946archiver_list_spec=$lt_archiver_list_spec
29947
29948# A symbol stripping program.
29949STRIP=$lt_STRIP
29950
29951# Commands used to install an old-style archive.
29952RANLIB=$lt_RANLIB
29953old_postinstall_cmds=$lt_old_postinstall_cmds
29954old_postuninstall_cmds=$lt_old_postuninstall_cmds
29955
29956# Whether to use a lock for old archive extraction.
29957lock_old_archive_extraction=$lock_old_archive_extraction
29958
29959# A C compiler.
29960LTCC=$lt_CC
29961
29962# LTCC compiler flags.
29963LTCFLAGS=$lt_CFLAGS
29964
29965# Take the output of nm and produce a listing of raw symbols and C names.
29966global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29967
29968# Transform the output of nm in a proper C declaration.
29969global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29970
29971# Transform the output of nm into a list of symbols to manually relocate.
29972global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29973
29974# Transform the output of nm in a C name address pair.
29975global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29976
29977# Transform the output of nm in a C name address pair when lib prefix is needed.
29978global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29979
29980# The name lister interface.
29981nm_interface=$lt_lt_cv_nm_interface
29982
29983# Specify filename containing input files for \$NM.
29984nm_file_list_spec=$lt_nm_file_list_spec
29985
29986# The root where to search for dependent libraries,and where our libraries should be installed.
29987lt_sysroot=$lt_sysroot
29988
29989# Command to truncate a binary pipe.
29990lt_truncate_bin=$lt_lt_cv_truncate_bin
29991
29992# The name of the directory that contains temporary libtool files.
29993objdir=$objdir
29994
29995# Used to examine libraries when file_magic_cmd begins with "file".
29996MAGIC_CMD=$MAGIC_CMD
29997
29998# Must we lock files when doing compilation?
29999need_locks=$lt_need_locks
30000
30001# Manifest tool.
30002MANIFEST_TOOL=$lt_MANIFEST_TOOL
30003
30004# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30005DSYMUTIL=$lt_DSYMUTIL
30006
30007# Tool to change global to local symbols on Mac OS X.
30008NMEDIT=$lt_NMEDIT
30009
30010# Tool to manipulate fat objects and archives on Mac OS X.
30011LIPO=$lt_LIPO
30012
30013# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30014OTOOL=$lt_OTOOL
30015
30016# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30017OTOOL64=$lt_OTOOL64
30018
30019# Old archive suffix (normally "a").
30020libext=$libext
30021
30022# Shared library suffix (normally ".so").
30023shrext_cmds=$lt_shrext_cmds
30024
30025# The commands to extract the exported symbol list from a shared archive.
30026extract_expsyms_cmds=$lt_extract_expsyms_cmds
30027
30028# Variables whose values should be saved in libtool wrapper scripts and
30029# restored at link time.
30030variables_saved_for_relink=$lt_variables_saved_for_relink
30031
30032# Do we need the "lib" prefix for modules?
30033need_lib_prefix=$need_lib_prefix
30034
30035# Do we need a version for libraries?
30036need_version=$need_version
30037
30038# Library versioning type.
30039version_type=$version_type
30040
30041# Shared library runtime path variable.
30042runpath_var=$runpath_var
30043
30044# Shared library path variable.
30045shlibpath_var=$shlibpath_var
30046
30047# Is shlibpath searched before the hard-coded library search path?
30048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30049
30050# Format of library name prefix.
30051libname_spec=$lt_libname_spec
30052
30053# List of archive names.  First name is the real one, the rest are links.
30054# The last name is the one that the linker finds with -lNAME
30055library_names_spec=$lt_library_names_spec
30056
30057# The coded name of the library, if different from the real name.
30058soname_spec=$lt_soname_spec
30059
30060# Permission mode override for installation of shared libraries.
30061install_override_mode=$lt_install_override_mode
30062
30063# Command to use after installation of a shared archive.
30064postinstall_cmds=$lt_postinstall_cmds
30065
30066# Command to use after uninstallation of a shared archive.
30067postuninstall_cmds=$lt_postuninstall_cmds
30068
30069# Commands used to finish a libtool library installation in a directory.
30070finish_cmds=$lt_finish_cmds
30071
30072# As "finish_cmds", except a single script fragment to be evaled but
30073# not shown.
30074finish_eval=$lt_finish_eval
30075
30076# Whether we should hardcode library paths into libraries.
30077hardcode_into_libs=$hardcode_into_libs
30078
30079# Compile-time system search path for libraries.
30080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30081
30082# Detected run-time system search path for libraries.
30083sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30084
30085# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30086configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30087
30088# Whether dlopen is supported.
30089dlopen_support=$enable_dlopen
30090
30091# Whether dlopen of programs is supported.
30092dlopen_self=$enable_dlopen_self
30093
30094# Whether dlopen of statically linked programs is supported.
30095dlopen_self_static=$enable_dlopen_self_static
30096
30097# Commands to strip libraries.
30098old_striplib=$lt_old_striplib
30099striplib=$lt_striplib
30100
30101
30102# The linker used to build libraries.
30103LD=$lt_LD
30104
30105# How to create reloadable object files.
30106reload_flag=$lt_reload_flag
30107reload_cmds=$lt_reload_cmds
30108
30109# Commands used to build an old-style archive.
30110old_archive_cmds=$lt_old_archive_cmds
30111
30112# A language specific compiler.
30113CC=$lt_compiler
30114
30115# Is the compiler the GNU compiler?
30116with_gcc=$GCC
30117
30118# Compiler flag to turn off builtin functions.
30119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30120
30121# Additional compiler flags for building library objects.
30122pic_flag=$lt_lt_prog_compiler_pic
30123
30124# How to pass a linker flag through the compiler.
30125wl=$lt_lt_prog_compiler_wl
30126
30127# Compiler flag to prevent dynamic linking.
30128link_static_flag=$lt_lt_prog_compiler_static
30129
30130# Does compiler simultaneously support -c and -o options?
30131compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30132
30133# Whether or not to add -lc for building shared libraries.
30134build_libtool_need_lc=$archive_cmds_need_lc
30135
30136# Whether or not to disallow shared libs when runtime libs are static.
30137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30138
30139# Compiler flag to allow reflexive dlopens.
30140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30141
30142# Compiler flag to generate shared objects directly from archives.
30143whole_archive_flag_spec=$lt_whole_archive_flag_spec
30144
30145# Whether the compiler copes with passing no objects directly.
30146compiler_needs_object=$lt_compiler_needs_object
30147
30148# Create an old-style archive from a shared archive.
30149old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30150
30151# Create a temporary old-style archive to link instead of a shared archive.
30152old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30153
30154# Commands used to build a shared archive.
30155archive_cmds=$lt_archive_cmds
30156archive_expsym_cmds=$lt_archive_expsym_cmds
30157
30158# Commands used to build a loadable module if different from building
30159# a shared archive.
30160module_cmds=$lt_module_cmds
30161module_expsym_cmds=$lt_module_expsym_cmds
30162
30163# Whether we are building with GNU ld or not.
30164with_gnu_ld=$lt_with_gnu_ld
30165
30166# Flag that allows shared libraries with undefined symbols to be built.
30167allow_undefined_flag=$lt_allow_undefined_flag
30168
30169# Flag that enforces no undefined symbols.
30170no_undefined_flag=$lt_no_undefined_flag
30171
30172# Flag to hardcode \$libdir into a binary during linking.
30173# This must work even if \$libdir does not exist
30174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30175
30176# Whether we need a single "-rpath" flag with a separated argument.
30177hardcode_libdir_separator=$lt_hardcode_libdir_separator
30178
30179# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30180# DIR into the resulting binary.
30181hardcode_direct=$hardcode_direct
30182
30183# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30184# DIR into the resulting binary and the resulting library dependency is
30185# "absolute",i.e impossible to change by setting \$shlibpath_var if the
30186# library is relocated.
30187hardcode_direct_absolute=$hardcode_direct_absolute
30188
30189# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30190# into the resulting binary.
30191hardcode_minus_L=$hardcode_minus_L
30192
30193# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30194# into the resulting binary.
30195hardcode_shlibpath_var=$hardcode_shlibpath_var
30196
30197# Set to "yes" if building a shared library automatically hardcodes DIR
30198# into the library and all subsequent libraries and executables linked
30199# against it.
30200hardcode_automatic=$hardcode_automatic
30201
30202# Set to yes if linker adds runtime paths of dependent libraries
30203# to runtime path list.
30204inherit_rpath=$inherit_rpath
30205
30206# Whether libtool must link a program against all its dependency libraries.
30207link_all_deplibs=$link_all_deplibs
30208
30209# Set to "yes" if exported symbols are required.
30210always_export_symbols=$always_export_symbols
30211
30212# The commands to list exported symbols.
30213export_symbols_cmds=$lt_export_symbols_cmds
30214
30215# Symbols that should not be listed in the preloaded symbols.
30216exclude_expsyms=$lt_exclude_expsyms
30217
30218# Symbols that must always be exported.
30219include_expsyms=$lt_include_expsyms
30220
30221# Commands necessary for linking programs (against libraries) with templates.
30222prelink_cmds=$lt_prelink_cmds
30223
30224# Commands necessary for finishing linking programs.
30225postlink_cmds=$lt_postlink_cmds
30226
30227# Specify filename containing input files.
30228file_list_spec=$lt_file_list_spec
30229
30230# How to hardcode a shared library path into an executable.
30231hardcode_action=$hardcode_action
30232
30233# The directories searched by this compiler when creating a shared library.
30234compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30235
30236# Dependencies to place before and after the objects being linked to
30237# create a shared library.
30238predep_objects=$lt_predep_objects
30239postdep_objects=$lt_postdep_objects
30240predeps=$lt_predeps
30241postdeps=$lt_postdeps
30242
30243# The library search path used internally by the compiler when linking
30244# a shared library.
30245compiler_lib_search_path=$lt_compiler_lib_search_path
30246
30247# ### END LIBTOOL CONFIG
30248
30249_LT_EOF
30250
30251    cat <<'_LT_EOF' >> "$cfgfile"
30252
30253# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30254
30255# func_munge_path_list VARIABLE PATH
30256# -----------------------------------
30257# VARIABLE is name of variable containing _space_ separated list of
30258# directories to be munged by the contents of PATH, which is string
30259# having a format:
30260# "DIR[:DIR]:"
30261#       string "DIR[ DIR]" will be prepended to VARIABLE
30262# ":DIR[:DIR]"
30263#       string "DIR[ DIR]" will be appended to VARIABLE
30264# "DIRP[:DIRP]::[DIRA:]DIRA"
30265#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30266#       "DIRA[ DIRA]" will be appended to VARIABLE
30267# "DIR[:DIR]"
30268#       VARIABLE will be replaced by "DIR[ DIR]"
30269func_munge_path_list ()
30270{
30271    case x$2 in
30272    x)
30273        ;;
30274    *:)
30275        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30276        ;;
30277    x:*)
30278        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30279        ;;
30280    *::*)
30281        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30282        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30283        ;;
30284    *)
30285        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30286        ;;
30287    esac
30288}
30289
30290
30291# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
30292func_cc_basename ()
30293{
30294    for cc_temp in $*""; do
30295      case $cc_temp in
30296        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30297        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30298        \-*) ;;
30299        *) break;;
30300      esac
30301    done
30302    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30303}
30304
30305
30306# ### END FUNCTIONS SHARED WITH CONFIGURE
30307
30308_LT_EOF
30309
30310  case $host_os in
30311  aix3*)
30312    cat <<\_LT_EOF >> "$cfgfile"
30313# AIX sometimes has problems with the GCC collect2 program.  For some
30314# reason, if we set the COLLECT_NAMES environment variable, the problems
30315# vanish in a puff of smoke.
30316if test set != "${COLLECT_NAMES+set}"; then
30317  COLLECT_NAMES=
30318  export COLLECT_NAMES
30319fi
30320_LT_EOF
30321    ;;
30322  esac
30323
30324
30325ltmain=$ac_aux_dir/ltmain.sh
30326
30327
30328  # We use sed instead of cat because bash on DJGPP gets confused if
30329  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30330  # text mode, it properly converts lines to CR/LF.  This bash problem
30331  # is reportedly fixed, but why not run on old versions too?
30332  sed '$q' "$ltmain" >> "$cfgfile" \
30333     || (rm -f "$cfgfile"; exit 1)
30334
30335   mv -f "$cfgfile" "$ofile" ||
30336    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30337  chmod +x "$ofile"
30338
30339
30340    cat <<_LT_EOF >> "$ofile"
30341
30342# ### BEGIN LIBTOOL TAG CONFIG: CXX
30343
30344# The linker used to build libraries.
30345LD=$lt_LD_CXX
30346
30347# How to create reloadable object files.
30348reload_flag=$lt_reload_flag_CXX
30349reload_cmds=$lt_reload_cmds_CXX
30350
30351# Commands used to build an old-style archive.
30352old_archive_cmds=$lt_old_archive_cmds_CXX
30353
30354# A language specific compiler.
30355CC=$lt_compiler_CXX
30356
30357# Is the compiler the GNU compiler?
30358with_gcc=$GCC_CXX
30359
30360# Compiler flag to turn off builtin functions.
30361no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30362
30363# Additional compiler flags for building library objects.
30364pic_flag=$lt_lt_prog_compiler_pic_CXX
30365
30366# How to pass a linker flag through the compiler.
30367wl=$lt_lt_prog_compiler_wl_CXX
30368
30369# Compiler flag to prevent dynamic linking.
30370link_static_flag=$lt_lt_prog_compiler_static_CXX
30371
30372# Does compiler simultaneously support -c and -o options?
30373compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30374
30375# Whether or not to add -lc for building shared libraries.
30376build_libtool_need_lc=$archive_cmds_need_lc_CXX
30377
30378# Whether or not to disallow shared libs when runtime libs are static.
30379allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30380
30381# Compiler flag to allow reflexive dlopens.
30382export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30383
30384# Compiler flag to generate shared objects directly from archives.
30385whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30386
30387# Whether the compiler copes with passing no objects directly.
30388compiler_needs_object=$lt_compiler_needs_object_CXX
30389
30390# Create an old-style archive from a shared archive.
30391old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30392
30393# Create a temporary old-style archive to link instead of a shared archive.
30394old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30395
30396# Commands used to build a shared archive.
30397archive_cmds=$lt_archive_cmds_CXX
30398archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30399
30400# Commands used to build a loadable module if different from building
30401# a shared archive.
30402module_cmds=$lt_module_cmds_CXX
30403module_expsym_cmds=$lt_module_expsym_cmds_CXX
30404
30405# Whether we are building with GNU ld or not.
30406with_gnu_ld=$lt_with_gnu_ld_CXX
30407
30408# Flag that allows shared libraries with undefined symbols to be built.
30409allow_undefined_flag=$lt_allow_undefined_flag_CXX
30410
30411# Flag that enforces no undefined symbols.
30412no_undefined_flag=$lt_no_undefined_flag_CXX
30413
30414# Flag to hardcode \$libdir into a binary during linking.
30415# This must work even if \$libdir does not exist
30416hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30417
30418# Whether we need a single "-rpath" flag with a separated argument.
30419hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30420
30421# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30422# DIR into the resulting binary.
30423hardcode_direct=$hardcode_direct_CXX
30424
30425# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30426# DIR into the resulting binary and the resulting library dependency is
30427# "absolute",i.e impossible to change by setting \$shlibpath_var if the
30428# library is relocated.
30429hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30430
30431# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30432# into the resulting binary.
30433hardcode_minus_L=$hardcode_minus_L_CXX
30434
30435# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30436# into the resulting binary.
30437hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30438
30439# Set to "yes" if building a shared library automatically hardcodes DIR
30440# into the library and all subsequent libraries and executables linked
30441# against it.
30442hardcode_automatic=$hardcode_automatic_CXX
30443
30444# Set to yes if linker adds runtime paths of dependent libraries
30445# to runtime path list.
30446inherit_rpath=$inherit_rpath_CXX
30447
30448# Whether libtool must link a program against all its dependency libraries.
30449link_all_deplibs=$link_all_deplibs_CXX
30450
30451# Set to "yes" if exported symbols are required.
30452always_export_symbols=$always_export_symbols_CXX
30453
30454# The commands to list exported symbols.
30455export_symbols_cmds=$lt_export_symbols_cmds_CXX
30456
30457# Symbols that should not be listed in the preloaded symbols.
30458exclude_expsyms=$lt_exclude_expsyms_CXX
30459
30460# Symbols that must always be exported.
30461include_expsyms=$lt_include_expsyms_CXX
30462
30463# Commands necessary for linking programs (against libraries) with templates.
30464prelink_cmds=$lt_prelink_cmds_CXX
30465
30466# Commands necessary for finishing linking programs.
30467postlink_cmds=$lt_postlink_cmds_CXX
30468
30469# Specify filename containing input files.
30470file_list_spec=$lt_file_list_spec_CXX
30471
30472# How to hardcode a shared library path into an executable.
30473hardcode_action=$hardcode_action_CXX
30474
30475# The directories searched by this compiler when creating a shared library.
30476compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30477
30478# Dependencies to place before and after the objects being linked to
30479# create a shared library.
30480predep_objects=$lt_predep_objects_CXX
30481postdep_objects=$lt_postdep_objects_CXX
30482predeps=$lt_predeps_CXX
30483postdeps=$lt_postdeps_CXX
30484
30485# The library search path used internally by the compiler when linking
30486# a shared library.
30487compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30488
30489# ### END LIBTOOL TAG CONFIG: CXX
30490_LT_EOF
30491
30492 ;;
30493    "perl/annotator/Makefile":C)
30494    ( cd perl/annotator;
30495      $PERL Makefile.PL $MAKE_MAKER_ARGS;
30496      $PERL -i -pe'next unless /^uninstall_from_sitedirs ::/;
30497		print $_;
30498		$_ = <>;
30499		s/\$\(SITEARCHEXP\)/\$\(DESTINSTALLSITEARCH\)/;
30500		$_ .= <<'END';
30501	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/auto/\$(FULLEXT)/.packlist\"
30502	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/perllocal.pod\"
30503END
30504	  ' Makefile
30505    )
30506 ;;
30507    "perl/imap/Makefile":C)
30508    ( cd perl/imap;
30509      $PERL Makefile.PL $MAKE_MAKER_ARGS;
30510      $PERL -i -pe'next unless /^uninstall_from_sitedirs ::/;
30511		print $_;
30512		$_ = <>;
30513		s/\$\(SITEARCHEXP\)/\$\(DESTINSTALLSITEARCH\)/;
30514		$_ .= <<'END';
30515	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/auto/\$(FULLEXT)/.packlist\"
30516	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/perllocal.pod\"
30517END
30518	  ' Makefile
30519    )
30520 ;;
30521    "perl/sieve/managesieve/Makefile":C)
30522    ( cd perl/sieve/managesieve;
30523      $PERL Makefile.PL $MAKE_MAKER_ARGS;
30524      $PERL -i -pe'next unless /^uninstall_from_sitedirs ::/;
30525		print $_;
30526		$_ = <>;
30527		s/\$\(SITEARCHEXP\)/\$\(DESTINSTALLSITEARCH\)/;
30528		$_ .= <<'END';
30529	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/auto/\$(FULLEXT)/.packlist\"
30530	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/perllocal.pod\"
30531END
30532	  ' Makefile
30533    )
30534 ;;
30535
30536  esac
30537done # for ac_tag
30538
30539
30540as_fn_exit 0
30541_ACEOF
30542ac_clean_files=$ac_clean_files_save
30543
30544test $ac_write_fail = 0 ||
30545  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30546
30547
30548# configure is writing to config.log, and then calls config.status.
30549# config.status does its own redirection, appending to config.log.
30550# Unfortunately, on DOS this fails, as config.log is still kept open
30551# by configure, so config.status won't be able to write to it; its
30552# output is simply discarded.  So we exec the FD to /dev/null,
30553# effectively closing config.log, so it can be properly (re)opened and
30554# appended to by config.status.  When coming back to configure, we
30555# need to make the FD available again.
30556if test "$no_create" != yes; then
30557  ac_cs_success=:
30558  ac_config_status_args=
30559  test "$silent" = yes &&
30560    ac_config_status_args="$ac_config_status_args --quiet"
30561  exec 5>/dev/null
30562  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30563  exec 5>>config.log
30564  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30565  # would make configure fail if this is the last instruction.
30566  $ac_cs_success || as_fn_exit 1
30567fi
30568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30570$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30571fi
30572
30573echo "
30574Cyrus Server configured components
30575
30576   gssapi:             $gssapi
30577   autocreate:         $enable_autocreate
30578   idled:              $enable_idled
30579   httpd:              $enable_http
30580   kerberos V4:        $krb4
30581   murder:             $enable_murder
30582   nntpd:              $enable_nntp
30583   replication:        $enable_replication
30584   sieve:              $enable_sieve
30585   srs:                $enable_srs
30586   calalarmd:          $enable_calalarmd
30587   jmap:               $enable_jmap
30588   objectstore:        $enable_objectstore
30589   backup:             $enable_backup
30590   com_err:            $with_com_err
30591
30592External dependencies:
30593   ldap:               $have_ldap
30594   openssl:            $with_ssl
30595   zlib:               $with_zlib
30596   jansson:            $with_jansson
30597   pcre:               $cyrus_cv_pcre_utf8
30598   clamav:             $with_clamav
30599   -----------------------
30600   caringo:            $with_caringo
30601   openio:             $with_openio
30602   -----------------------
30603   nghttp2:            $with_nghttp2
30604   wslay:              $with_wslay
30605   brotli:             $with_brotli
30606   zstd:               $with_zstd
30607   xml2:               $with_xml2
30608   ical:               $with_ical
30609   icu4c:              $with_icu4c
30610   shapelib:           $with_shapelib
30611   chardet:            $with_chardet
30612   cld2:               $with_cld2
30613
30614Database support:
30615   mysql:              $with_mysql
30616   postgresql:         $use_pgsql
30617   sqlite:             $use_sqlite
30618   zeroskip:           $with_zeroskip
30619
30620Search engine:
30621   squat:              $enable_squat
30622   xapian:             $enable_xapian
30623   xapian_cjk_tokens:  $xapian_cjk_tokens
30624
30625Documentation dependencies:
30626   sphinx-build:       $SPHINX_BUILD
30627   Pod::POM::View::Restructured:  $have_ppvr
30628   GitPython:          $HAVE_PYMOD_GIT
30629
30630Installation directories:
30631   prefix:             $prefix
30632   sysconfdir:         $sysconfdir
30633
30634Build info:
30635   shared:             $enable_shared
30636   static:             $enable_static
30637   cflags:             $CFLAGS
30638   cxxflags:           $CXXFLAGS
30639   libs:               $LIBS
30640   ldflags:            $LDFLAGS
30641   unit tests (cunit): $enable_unit_tests
30642"
30643