1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for jabberd 2.7.0.
4#
5# Report bugs to <jabberd2@lists.xiaoka.com>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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: jabberd2@lists.xiaoka.com about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='jabberd'
592PACKAGE_TARNAME='jabberd'
593PACKAGE_VERSION='2.7.0'
594PACKAGE_STRING='jabberd 2.7.0'
595PACKAGE_BUGREPORT='jabberd2@lists.xiaoka.com'
596PACKAGE_URL=''
597
598ac_unique_file="sx/sx.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_func_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640ENABLE_TESTS_FALSE
641ENABLE_TESTS_TRUE
642CHECK_LIBS
643CHECK_CFLAGS
644ENABLE_EXPERIMENTAL_FALSE
645ENABLE_EXPERIMENTAL_TRUE
646USE_LIBSUBST_FALSE
647USE_LIBSUBST_TRUE
648USE_LIBSUBST
649USE_WEBSOCKET_FALSE
650USE_WEBSOCKET_TRUE
651STORAGE_FS_FALSE
652STORAGE_FS_TRUE
653STORAGE_ANON_FALSE
654STORAGE_ANON_TRUE
655STORAGE_PIPE_FALSE
656STORAGE_PIPE_TRUE
657STORAGE_PAM_FALSE
658STORAGE_PAM_TRUE
659PAM_LIBS
660STORAGE_LDAP_FALSE
661STORAGE_LDAP_TRUE
662LDAP_LIBS
663STORAGE_ORACLE_FALSE
664STORAGE_ORACLE_TRUE
665ORACLE_LDFLAGS
666ORACLE_LIBS
667ORACLE_CPPFLAGS
668STORAGE_DB_FALSE
669STORAGE_DB_TRUE
670DB_LIBS
671STORAGE_SQLITE_FALSE
672STORAGE_SQLITE_TRUE
673SQLITE_LIBS
674STORAGE_PGSQL_FALSE
675STORAGE_PGSQL_TRUE
676PGSQL_LIBS
677PGSQL_CFLAGS
678pgconfig
679STORAGE_MYSQL_FALSE
680STORAGE_MYSQL_TRUE
681MYSQL_LIBS
682MYSQL_CFLAGS
683mysqlconfig
684HAVE_LIBZ_FALSE
685HAVE_LIBZ_TRUE
686HAVE_LIBZ
687HAVE_SSL_FALSE
688HAVE_SSL_TRUE
689SSL_LIBS
690SSL_CFLAGS
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694HAVE_CRYPT_FALSE
695HAVE_CRYPT_TRUE
696LIBOBJS
697ALLOCA
698LT_SYS_LIBRARY_PATH
699OTOOL64
700OTOOL
701LIPO
702NMEDIT
703DSYMUTIL
704MANIFEST_TOOL
705RANLIB
706ac_ct_AR
707AR
708DLLTOOL
709OBJDUMP
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LD
714FGREP
715EGREP
716GREP
717SED
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
726LIBTOOL
727LN_S
728CPP
729am__fastdepCC_FALSE
730am__fastdepCC_TRUE
731CCDEPMODE
732am__nodep
733AMDEPBACKSLASH
734AMDEP_FALSE
735AMDEP_TRUE
736am__quote
737am__include
738DEPDIR
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746AM_BACKSLASH
747AM_DEFAULT_VERBOSITY
748AM_DEFAULT_V
749AM_V
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_silent_rules
815enable_dependency_tracking
816enable_static
817enable_shared
818with_pic
819enable_fast_install
820with_aix_soname
821with_gnu_ld
822with_sysroot
823enable_libtool_lock
824with_extra_include_path
825with_extra_library_path
826enable_developer
827enable_debug
828enable_nad_debug
829enable_pool_debug
830enable_mio_debug
831enable_ssl
832with_zlib
833enable_mysql
834enable_pgsql
835enable_sqlite
836enable_db
837with_oracle_home
838enable_oracle
839enable_ldap
840enable_pam
841enable_pipe
842enable_anon
843enable_fs
844enable_websocket
845enable_mio
846with_subst
847enable_superseded
848enable_experimental
849enable_tests
850enable_werror
851'
852      ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
858LIBS
859CPPFLAGS
860CPP
861LT_SYS_LIBRARY_PATH
862PKG_CONFIG
863PKG_CONFIG_PATH
864PKG_CONFIG_LIBDIR
865SSL_CFLAGS
866SSL_LIBS
867CHECK_CFLAGS
868CHECK_LIBS'
869
870
871# Initialize some variables set by options.
872ac_init_help=
873ac_init_version=false
874ac_unrecognized_opts=
875ac_unrecognized_sep=
876# The variables have the same names as the options, with
877# dashes changed to underlines.
878cache_file=/dev/null
879exec_prefix=NONE
880no_create=
881no_recursion=
882prefix=NONE
883program_prefix=NONE
884program_suffix=NONE
885program_transform_name=s,x,x,
886silent=
887site=
888srcdir=
889verbose=
890x_includes=NONE
891x_libraries=NONE
892
893# Installation directory options.
894# These are left unexpanded so users can "make install exec_prefix=/foo"
895# and all the variables that are supposed to be based on exec_prefix
896# by default will actually change.
897# Use braces instead of parens because sh, perl, etc. also accept them.
898# (The list follows the same order as the GNU Coding Standards.)
899bindir='${exec_prefix}/bin'
900sbindir='${exec_prefix}/sbin'
901libexecdir='${exec_prefix}/libexec'
902datarootdir='${prefix}/share'
903datadir='${datarootdir}'
904sysconfdir='${prefix}/etc'
905sharedstatedir='${prefix}/com'
906localstatedir='${prefix}/var'
907includedir='${prefix}/include'
908oldincludedir='/usr/include'
909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910infodir='${datarootdir}/info'
911htmldir='${docdir}'
912dvidir='${docdir}'
913pdfdir='${docdir}'
914psdir='${docdir}'
915libdir='${exec_prefix}/lib'
916localedir='${datarootdir}/locale'
917mandir='${datarootdir}/man'
918
919ac_prev=
920ac_dashdash=
921for ac_option
922do
923  # If the previous option needs an argument, assign it.
924  if test -n "$ac_prev"; then
925    eval $ac_prev=\$ac_option
926    ac_prev=
927    continue
928  fi
929
930  case $ac_option in
931  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932  *=)   ac_optarg= ;;
933  *)    ac_optarg=yes ;;
934  esac
935
936  # Accept the important Cygnus configure options, so we can diagnose typos.
937
938  case $ac_dashdash$ac_option in
939  --)
940    ac_dashdash=yes ;;
941
942  -bindir | --bindir | --bindi | --bind | --bin | --bi)
943    ac_prev=bindir ;;
944  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945    bindir=$ac_optarg ;;
946
947  -build | --build | --buil | --bui | --bu)
948    ac_prev=build_alias ;;
949  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950    build_alias=$ac_optarg ;;
951
952  -cache-file | --cache-file | --cache-fil | --cache-fi \
953  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954    ac_prev=cache_file ;;
955  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957    cache_file=$ac_optarg ;;
958
959  --config-cache | -C)
960    cache_file=config.cache ;;
961
962  -datadir | --datadir | --datadi | --datad)
963    ac_prev=datadir ;;
964  -datadir=* | --datadir=* | --datadi=* | --datad=*)
965    datadir=$ac_optarg ;;
966
967  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968  | --dataroo | --dataro | --datar)
969    ac_prev=datarootdir ;;
970  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972    datarootdir=$ac_optarg ;;
973
974  -disable-* | --disable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: $ac_useropt"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=no ;;
989
990  -docdir | --docdir | --docdi | --doc | --do)
991    ac_prev=docdir ;;
992  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993    docdir=$ac_optarg ;;
994
995  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996    ac_prev=dvidir ;;
997  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998    dvidir=$ac_optarg ;;
999
1000  -enable-* | --enable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: $ac_useropt"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012	 ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018  | --exec | --exe | --ex)
1019    ac_prev=exec_prefix ;;
1020  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022  | --exec=* | --exe=* | --ex=*)
1023    exec_prefix=$ac_optarg ;;
1024
1025  -gas | --gas | --ga | --g)
1026    # Obsolete; use --with-gas.
1027    with_gas=yes ;;
1028
1029  -help | --help | --hel | --he | -h)
1030    ac_init_help=long ;;
1031  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032    ac_init_help=recursive ;;
1033  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034    ac_init_help=short ;;
1035
1036  -host | --host | --hos | --ho)
1037    ac_prev=host_alias ;;
1038  -host=* | --host=* | --hos=* | --ho=*)
1039    host_alias=$ac_optarg ;;
1040
1041  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042    ac_prev=htmldir ;;
1043  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044  | --ht=*)
1045    htmldir=$ac_optarg ;;
1046
1047  -includedir | --includedir | --includedi | --included | --include \
1048  | --includ | --inclu | --incl | --inc)
1049    ac_prev=includedir ;;
1050  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051  | --includ=* | --inclu=* | --incl=* | --inc=*)
1052    includedir=$ac_optarg ;;
1053
1054  -infodir | --infodir | --infodi | --infod | --info | --inf)
1055    ac_prev=infodir ;;
1056  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057    infodir=$ac_optarg ;;
1058
1059  -libdir | --libdir | --libdi | --libd)
1060    ac_prev=libdir ;;
1061  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062    libdir=$ac_optarg ;;
1063
1064  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065  | --libexe | --libex | --libe)
1066    ac_prev=libexecdir ;;
1067  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068  | --libexe=* | --libex=* | --libe=*)
1069    libexecdir=$ac_optarg ;;
1070
1071  -localedir | --localedir | --localedi | --localed | --locale)
1072    ac_prev=localedir ;;
1073  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074    localedir=$ac_optarg ;;
1075
1076  -localstatedir | --localstatedir | --localstatedi | --localstated \
1077  | --localstate | --localstat | --localsta | --localst | --locals)
1078    ac_prev=localstatedir ;;
1079  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081    localstatedir=$ac_optarg ;;
1082
1083  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084    ac_prev=mandir ;;
1085  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086    mandir=$ac_optarg ;;
1087
1088  -nfp | --nfp | --nf)
1089    # Obsolete; use --without-fp.
1090    with_fp=no ;;
1091
1092  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093  | --no-cr | --no-c | -n)
1094    no_create=yes ;;
1095
1096  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098    no_recursion=yes ;;
1099
1100  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102  | --oldin | --oldi | --old | --ol | --o)
1103    ac_prev=oldincludedir ;;
1104  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107    oldincludedir=$ac_optarg ;;
1108
1109  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110    ac_prev=prefix ;;
1111  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112    prefix=$ac_optarg ;;
1113
1114  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115  | --program-pre | --program-pr | --program-p)
1116    ac_prev=program_prefix ;;
1117  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119    program_prefix=$ac_optarg ;;
1120
1121  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122  | --program-suf | --program-su | --program-s)
1123    ac_prev=program_suffix ;;
1124  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126    program_suffix=$ac_optarg ;;
1127
1128  -program-transform-name | --program-transform-name \
1129  | --program-transform-nam | --program-transform-na \
1130  | --program-transform-n | --program-transform- \
1131  | --program-transform | --program-transfor \
1132  | --program-transfo | --program-transf \
1133  | --program-trans | --program-tran \
1134  | --progr-tra | --program-tr | --program-t)
1135    ac_prev=program_transform_name ;;
1136  -program-transform-name=* | --program-transform-name=* \
1137  | --program-transform-nam=* | --program-transform-na=* \
1138  | --program-transform-n=* | --program-transform-=* \
1139  | --program-transform=* | --program-transfor=* \
1140  | --program-transfo=* | --program-transf=* \
1141  | --program-trans=* | --program-tran=* \
1142  | --progr-tra=* | --program-tr=* | --program-t=*)
1143    program_transform_name=$ac_optarg ;;
1144
1145  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146    ac_prev=pdfdir ;;
1147  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148    pdfdir=$ac_optarg ;;
1149
1150  -psdir | --psdir | --psdi | --psd | --ps)
1151    ac_prev=psdir ;;
1152  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153    psdir=$ac_optarg ;;
1154
1155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156  | -silent | --silent | --silen | --sile | --sil)
1157    silent=yes ;;
1158
1159  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160    ac_prev=sbindir ;;
1161  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162  | --sbi=* | --sb=*)
1163    sbindir=$ac_optarg ;;
1164
1165  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167  | --sharedst | --shareds | --shared | --share | --shar \
1168  | --sha | --sh)
1169    ac_prev=sharedstatedir ;;
1170  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173  | --sha=* | --sh=*)
1174    sharedstatedir=$ac_optarg ;;
1175
1176  -site | --site | --sit)
1177    ac_prev=site ;;
1178  -site=* | --site=* | --sit=*)
1179    site=$ac_optarg ;;
1180
1181  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182    ac_prev=srcdir ;;
1183  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184    srcdir=$ac_optarg ;;
1185
1186  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187  | --syscon | --sysco | --sysc | --sys | --sy)
1188    ac_prev=sysconfdir ;;
1189  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191    sysconfdir=$ac_optarg ;;
1192
1193  -target | --target | --targe | --targ | --tar | --ta | --t)
1194    ac_prev=target_alias ;;
1195  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196    target_alias=$ac_optarg ;;
1197
1198  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199    verbose=yes ;;
1200
1201  -version | --version | --versio | --versi | --vers | -V)
1202    ac_init_version=: ;;
1203
1204  -with-* | --with-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid package name: $ac_useropt"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"with_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216	 ac_unrecognized_sep=', ';;
1217    esac
1218    eval with_$ac_useropt=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224      as_fn_error $? "invalid package name: $ac_useropt"
1225    ac_useropt_orig=$ac_useropt
1226    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227    case $ac_user_opts in
1228      *"
1229"with_$ac_useropt"
1230"*) ;;
1231      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232	 ac_unrecognized_sep=', ';;
1233    esac
1234    eval with_$ac_useropt=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255Try \`$0 --help' for more information"
1256    ;;
1257
1258  *=*)
1259    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260    # Reject names that are not valid shell variable names.
1261    case $ac_envvar in #(
1262      '' | [0-9]* | *[!_$as_cr_alnum]* )
1263      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264    esac
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  as_fn_error $? "missing argument to $ac_option"
1282fi
1283
1284if test -n "$ac_unrecognized_opts"; then
1285  case $enable_option_checking in
1286    no) ;;
1287    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289  esac
1290fi
1291
1292# Check all directory arguments for consistency.
1293for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294		datadir sysconfdir sharedstatedir localstatedir includedir \
1295		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296		libdir localedir mandir
1297do
1298  eval ac_val=\$$ac_var
1299  # Remove trailing slashes.
1300  case $ac_val in
1301    */ )
1302      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303      eval $ac_var=\$ac_val;;
1304  esac
1305  # Be sure to have absolute directory names.
1306  case $ac_val in
1307    [\\/$]* | ?:[\\/]* )  continue;;
1308    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309  esac
1310  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311done
1312
1313# There might be people who depend on the old broken behavior: `$host'
1314# used to hold the argument of --host etc.
1315# FIXME: To remove some day.
1316build=$build_alias
1317host=$host_alias
1318target=$target_alias
1319
1320# FIXME: To remove some day.
1321if test "x$host_alias" != x; then
1322  if test "x$build_alias" = x; then
1323    cross_compiling=maybe
1324  elif test "x$build_alias" != "x$host_alias"; then
1325    cross_compiling=yes
1326  fi
1327fi
1328
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332test "$silent" = yes && exec 6>/dev/null
1333
1334
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338  as_fn_error $? "working directory cannot be determined"
1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340  as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345  ac_srcdir_defaulted=yes
1346  # Try the directory containing this script, then the parent directory.
1347  ac_confdir=`$as_dirname -- "$as_myself" ||
1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349	 X"$as_myself" : 'X\(//\)[^/]' \| \
1350	 X"$as_myself" : 'X\(//\)$' \| \
1351	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352$as_echo X"$as_myself" |
1353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\/\)[^/].*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\).*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  s/.*/./; q'`
1370  srcdir=$ac_confdir
1371  if test ! -r "$srcdir/$ac_unique_file"; then
1372    srcdir=..
1373  fi
1374else
1375  ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380fi
1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382ac_abs_confdir=`(
1383	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384	pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387  srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures jabberd 2.7.0 to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking ...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431                          [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                          [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR            user executables [EPREFIX/bin]
1444  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR        program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/jabberd]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478  case $ac_init_help in
1479     short | recursive ) echo "Configuration of jabberd 2.7.0:";;
1480   esac
1481  cat <<\_ACEOF
1482
1483Optional Features:
1484  --disable-option-checking  ignore unrecognized --enable/--with options
1485  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487  --enable-silent-rules   less verbose build output (undo: "make V=1")
1488  --disable-silent-rules  verbose build output (undo: "make V=0")
1489  --enable-dependency-tracking
1490                          do not reject slow dependency extractors
1491  --disable-dependency-tracking
1492                          speeds up one-time build
1493  --enable-static[=PKGS]  build static libraries [default=no]
1494  --enable-shared[=PKGS]  build shared libraries [default=yes]
1495  --enable-fast-install[=PKGS]
1496                          optimize for fast installation [default=yes]
1497  --disable-libtool-lock  avoid locking (might break parallel builds)
1498  --enable-developer      Compile with warnings and debugging symbols
1499  --enable-debug          enable debug messages
1500  --enable-nad-debug      enable NAD pointer tracking
1501  --enable-pool-debug     enable memory pool statistics
1502  --enable-mio-debug      enable managed IO debug output
1503  --enable-ssl            enable SSL/TLS support (yes)
1504  --enable-mysql=DIR      enable MySQL auth/reg/storage support (no)
1505  --enable-pgsql=DIR      enable PostgreSQL auth/reg/storage support (no)
1506  --enable-sqlite         enable SQLite3 auth/reg/storage support (no)
1507  --enable-db             enable Berkeley DB auth/reg/storage support (no)
1508  --enable-oracle         enable Oracle auth/reg/storage support (no)
1509  --enable-ldap           enable OpenLDAP auth/reg support (no)
1510  --enable-pam            enable PAM auth/reg support (no)
1511  --enable-pipe           enable pipe auth/reg support (no)
1512  --enable-anon           enable anonymous auth/reg support (no)
1513  --enable-fs             enable filesystem storage support (no)
1514  --enable-websocket      enable WebSocket support on C2S port (no)
1515  --enable-mio=BACKENDS   use one of BACKENDS to drive MIO (select poll epoll
1516                          kqueue)
1517  --enable-superseded     enable superseded XEP support (yes)
1518  --enable-experimental   enable experimental features (yes)
1519  --enable-tests          enable tests (yes)
1520  --enable-werror         Treat all warnings as error
1521
1522Optional Packages:
1523  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1526                          both]
1527  --with-aix-soname=aix|svr4|both
1528                          shared library versioning (aka "SONAME") variant to
1529                          provide on AIX, [default=aix].
1530  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1531  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1532                          compiler's sysroot if not specified).
1533  --with-extra-include-path
1534                          use additional include paths
1535  --with-extra-library-path
1536                          use additional library paths (remember to update
1537                          /etc/ld.so.conf too)
1538  --with-zlib=DIR         search for zlib in DIR
1539  --without-zlib          disable use of zlib
1540  --with-oracle-home=DIR  the Oracle home directory, for includes and libs
1541  --without-subst         disable use of substitution library
1542
1543Some influential environment variables:
1544  CC          C compiler command
1545  CFLAGS      C compiler flags
1546  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1547              nonstandard directory <lib dir>
1548  LIBS        libraries to pass to the linker, e.g. -l<library>
1549  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550              you have headers in a nonstandard directory <include dir>
1551  CPP         C preprocessor
1552  LT_SYS_LIBRARY_PATH
1553              User-defined run-time library search path.
1554  PKG_CONFIG  path to pkg-config utility
1555  PKG_CONFIG_PATH
1556              directories to add to pkg-config's search path
1557  PKG_CONFIG_LIBDIR
1558              path overriding pkg-config's built-in search path
1559  SSL_CFLAGS  C compiler flags for SSL, overriding pkg-config
1560  SSL_LIBS    linker flags for SSL, overriding pkg-config
1561  CHECK_CFLAGS
1562              C compiler flags for CHECK, overriding pkg-config
1563  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1564
1565Use these variables to override the choices made by `configure' or to help
1566it to find libraries and programs with nonstandard names/locations.
1567
1568Report bugs to <jabberd2@lists.xiaoka.com>.
1569_ACEOF
1570ac_status=$?
1571fi
1572
1573if test "$ac_init_help" = "recursive"; then
1574  # If there are subdirs, report their specific --help.
1575  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576    test -d "$ac_dir" ||
1577      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578      continue
1579    ac_builddir=.
1580
1581case "$ac_dir" in
1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583*)
1584  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585  # A ".." for each directory in $ac_dir_suffix.
1586  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587  case $ac_top_builddir_sub in
1588  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590  esac ;;
1591esac
1592ac_abs_top_builddir=$ac_pwd
1593ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594# for backward compatibility:
1595ac_top_builddir=$ac_top_build_prefix
1596
1597case $srcdir in
1598  .)  # We are building in place.
1599    ac_srcdir=.
1600    ac_top_srcdir=$ac_top_builddir_sub
1601    ac_abs_top_srcdir=$ac_pwd ;;
1602  [\\/]* | ?:[\\/]* )  # Absolute name.
1603    ac_srcdir=$srcdir$ac_dir_suffix;
1604    ac_top_srcdir=$srcdir
1605    ac_abs_top_srcdir=$srcdir ;;
1606  *) # Relative name.
1607    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608    ac_top_srcdir=$ac_top_build_prefix$srcdir
1609    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610esac
1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613    cd "$ac_dir" || { ac_status=$?; continue; }
1614    # Check for guested configure.
1615    if test -f "$ac_srcdir/configure.gnu"; then
1616      echo &&
1617      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618    elif test -f "$ac_srcdir/configure"; then
1619      echo &&
1620      $SHELL "$ac_srcdir/configure" --help=recursive
1621    else
1622      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623    fi || ac_status=$?
1624    cd "$ac_pwd" || { ac_status=$?; break; }
1625  done
1626fi
1627
1628test -n "$ac_init_help" && exit $ac_status
1629if $ac_init_version; then
1630  cat <<\_ACEOF
1631jabberd configure 2.7.0
1632generated by GNU Autoconf 2.69
1633
1634Copyright (C) 2012 Free Software Foundation, Inc.
1635This configure script is free software; the Free Software Foundation
1636gives unlimited permission to copy, distribute and modify it.
1637_ACEOF
1638  exit
1639fi
1640
1641## ------------------------ ##
1642## Autoconf initialization. ##
1643## ------------------------ ##
1644
1645# ac_fn_c_try_compile LINENO
1646# --------------------------
1647# Try to compile conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_compile ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  rm -f conftest.$ac_objext
1652  if { { ac_try="$ac_compile"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_compile") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && {
1668	 test -z "$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       } && test -s conftest.$ac_objext; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676	ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_compile
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } > conftest.i && {
1705	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713    ac_retval=1
1714fi
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_try_link LINENO
1721# -----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_link ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  rm -f conftest.$ac_objext conftest$ac_exeext
1727  if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_link") 2>conftest.err
1735  ac_status=$?
1736  if test -s conftest.err; then
1737    grep -v '^ *+' conftest.err >conftest.er1
1738    cat conftest.er1 >&5
1739    mv -f conftest.er1 conftest.err
1740  fi
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; } && {
1743	 test -z "$ac_c_werror_flag" ||
1744	 test ! -s conftest.err
1745       } && test -s conftest$ac_exeext && {
1746	 test "$cross_compiling" = yes ||
1747	 test -x conftest$ac_exeext
1748       }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754	ac_retval=1
1755fi
1756  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758  # interfere with the next link command; also delete a directory that is
1759  # left behind by Apple's compiler.  We do this before executing the actions.
1760  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762  as_fn_set_status $ac_retval
1763
1764} # ac_fn_c_try_link
1765
1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767# -------------------------------------------------------
1768# Tests whether HEADER exists and can be compiled using the include files in
1769# INCLUDES, setting the cache variable VAR accordingly.
1770ac_fn_c_check_header_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  eval "$3=yes"
1785else
1786  eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_header_compile
1796
1797# ac_fn_c_try_run LINENO
1798# ----------------------
1799# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1800# that executables *can* be run.
1801ac_fn_c_try_run ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  if { { ac_try="$ac_link"
1805case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_link") 2>&5
1812  ac_status=$?
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1815  { { case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_try") 2>&5
1822  ac_status=$?
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; }; }; then :
1825  ac_retval=0
1826else
1827  $as_echo "$as_me: program exited with status $ac_status" >&5
1828       $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831       ac_retval=$ac_status
1832fi
1833  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_run
1838
1839# ac_fn_c_check_func LINENO FUNC VAR
1840# ----------------------------------
1841# Tests whether FUNC exists, setting the cache variable VAR accordingly
1842ac_fn_c_check_func ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848  $as_echo_n "(cached) " >&6
1849else
1850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1854#define $2 innocuous_$2
1855
1856/* System header to define __stub macros and hopefully few prototypes,
1857    which can conflict with char $2 (); below.
1858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859    <limits.h> exists even on freestanding compilers.  */
1860
1861#ifdef __STDC__
1862# include <limits.h>
1863#else
1864# include <assert.h>
1865#endif
1866
1867#undef $2
1868
1869/* Override any GCC internal prototype to avoid an error.
1870   Use char because int might match the return type of a GCC
1871   builtin and then its argument prototype would still apply.  */
1872#ifdef __cplusplus
1873extern "C"
1874#endif
1875char $2 ();
1876/* The GNU C library defines this for functions which it implements
1877    to always fail with ENOSYS.  Some functions are actually named
1878    something starting with __ and the normal name is an alias.  */
1879#if defined __stub_$2 || defined __stub___$2
1880choke me
1881#endif
1882
1883int
1884main ()
1885{
1886return $2 ();
1887  ;
1888  return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_link "$LINENO"; then :
1892  eval "$3=yes"
1893else
1894  eval "$3=no"
1895fi
1896rm -f core conftest.err conftest.$ac_objext \
1897    conftest$ac_exeext conftest.$ac_ext
1898fi
1899eval ac_res=\$$3
1900	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904} # ac_fn_c_check_func
1905
1906# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909# the include files in INCLUDES and setting the cache variable VAR
1910# accordingly.
1911ac_fn_c_check_header_mongrel ()
1912{
1913  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914  if eval \${$3+:} false; then :
1915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if eval \${$3+:} false; then :
1918  $as_echo_n "(cached) " >&6
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923else
1924  # Is the header compilable?
1925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926$as_echo_n "checking $2 usability... " >&6; }
1927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929$4
1930#include <$2>
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933  ac_header_compiler=yes
1934else
1935  ac_header_compiler=no
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939$as_echo "$ac_header_compiler" >&6; }
1940
1941# Is the header present?
1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943$as_echo_n "checking $2 presence... " >&6; }
1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h.  */
1946#include <$2>
1947_ACEOF
1948if ac_fn_c_try_cpp "$LINENO"; then :
1949  ac_header_preproc=yes
1950else
1951  ac_header_preproc=no
1952fi
1953rm -f conftest.err conftest.i conftest.$ac_ext
1954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955$as_echo "$ac_header_preproc" >&6; }
1956
1957# So?  What about this header?
1958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959  yes:no: )
1960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964    ;;
1965  no:yes:* )
1966    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1969$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1970    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1973$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976( $as_echo "## ---------------------------------------- ##
1977## Report this to jabberd2@lists.xiaoka.com ##
1978## ---------------------------------------- ##"
1979     ) | sed "s/^/$as_me: WARNING:     /" >&2
1980    ;;
1981esac
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  eval "$3=\$ac_header_compiler"
1988fi
1989eval ac_res=\$$3
1990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992fi
1993  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_header_mongrel
1996
1997# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998# -------------------------------------------
1999# Tests whether TYPE exists after having included INCLUDES, setting cache
2000# variable VAR accordingly.
2001ac_fn_c_check_type ()
2002{
2003  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
2006if eval \${$3+:} false; then :
2007  $as_echo_n "(cached) " >&6
2008else
2009  eval "$3=no"
2010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013int
2014main ()
2015{
2016if (sizeof ($2))
2017	 return 0;
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$4
2026int
2027main ()
2028{
2029if (sizeof (($2)))
2030	    return 0;
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036
2037else
2038  eval "$3=yes"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$3
2045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049} # ac_fn_c_check_type
2050
2051# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2052# ----------------------------------------------------
2053# Tries to find if the field MEMBER exists in type AGGR, after including
2054# INCLUDES, setting cache variable VAR accordingly.
2055ac_fn_c_check_member ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2059$as_echo_n "checking for $2.$3... " >&6; }
2060if eval \${$4+:} false; then :
2061  $as_echo_n "(cached) " >&6
2062else
2063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065$5
2066int
2067main ()
2068{
2069static $2 ac_aggr;
2070if (ac_aggr.$3)
2071return 0;
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077  eval "$4=yes"
2078else
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$5
2082int
2083main ()
2084{
2085static $2 ac_aggr;
2086if (sizeof ac_aggr.$3)
2087return 0;
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093  eval "$4=yes"
2094else
2095  eval "$4=no"
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$4
2102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106} # ac_fn_c_check_member
2107
2108# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2109# ---------------------------------------------
2110# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2111# accordingly.
2112ac_fn_c_check_decl ()
2113{
2114  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115  as_decl_name=`echo $2|sed 's/ *(.*//'`
2116  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2118$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2119if eval \${$3+:} false; then :
2120  $as_echo_n "(cached) " >&6
2121else
2122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h.  */
2124$4
2125int
2126main ()
2127{
2128#ifndef $as_decl_name
2129#ifdef __cplusplus
2130  (void) $as_decl_use;
2131#else
2132  (void) $as_decl_name;
2133#endif
2134#endif
2135
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  eval "$3=yes"
2142else
2143  eval "$3=no"
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146fi
2147eval ac_res=\$$3
2148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149$as_echo "$ac_res" >&6; }
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152} # ac_fn_c_check_decl
2153
2154# ac_fn_c_find_uintX_t LINENO BITS VAR
2155# ------------------------------------
2156# Finds an unsigned integer type with width BITS, setting cache variable VAR
2157# accordingly.
2158ac_fn_c_find_uintX_t ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2162$as_echo_n "checking for uint$2_t... " >&6; }
2163if eval \${$3+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165else
2166  eval "$3=no"
2167     # Order is important - never check a type that is potentially smaller
2168     # than half of the expected target width.
2169     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2170	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2171       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$ac_includes_default
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2178test_array [0] = 0;
2179return test_array [0];
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  case $ac_type in #(
2187  uint$2_t) :
2188    eval "$3=yes" ;; #(
2189  *) :
2190    eval "$3=\$ac_type" ;;
2191esac
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194       if eval test \"x\$"$3"\" = x"no"; then :
2195
2196else
2197  break
2198fi
2199     done
2200fi
2201eval ac_res=\$$3
2202	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206} # ac_fn_c_find_uintX_t
2207cat >config.log <<_ACEOF
2208This file contains any messages produced by compilers while
2209running configure, to aid debugging if configure makes a mistake.
2210
2211It was created by jabberd $as_me 2.7.0, which was
2212generated by GNU Autoconf 2.69.  Invocation command line was
2213
2214  $ $0 $@
2215
2216_ACEOF
2217exec 5>>config.log
2218{
2219cat <<_ASUNAME
2220## --------- ##
2221## Platform. ##
2222## --------- ##
2223
2224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2225uname -m = `(uname -m) 2>/dev/null || echo unknown`
2226uname -r = `(uname -r) 2>/dev/null || echo unknown`
2227uname -s = `(uname -s) 2>/dev/null || echo unknown`
2228uname -v = `(uname -v) 2>/dev/null || echo unknown`
2229
2230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2231/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2232
2233/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2234/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2236/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2237/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2238/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2239/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2240
2241_ASUNAME
2242
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246  IFS=$as_save_IFS
2247  test -z "$as_dir" && as_dir=.
2248    $as_echo "PATH: $as_dir"
2249  done
2250IFS=$as_save_IFS
2251
2252} >&5
2253
2254cat >&5 <<_ACEOF
2255
2256
2257## ----------- ##
2258## Core tests. ##
2259## ----------- ##
2260
2261_ACEOF
2262
2263
2264# Keep a trace of the command line.
2265# Strip out --no-create and --no-recursion so they do not pile up.
2266# Strip out --silent because we don't want to record it for future runs.
2267# Also quote any args containing shell meta-characters.
2268# Make two passes to allow for proper duplicate-argument suppression.
2269ac_configure_args=
2270ac_configure_args0=
2271ac_configure_args1=
2272ac_must_keep_next=false
2273for ac_pass in 1 2
2274do
2275  for ac_arg
2276  do
2277    case $ac_arg in
2278    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2279    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2280    | -silent | --silent | --silen | --sile | --sil)
2281      continue ;;
2282    *\'*)
2283      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2284    esac
2285    case $ac_pass in
2286    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2287    2)
2288      as_fn_append ac_configure_args1 " '$ac_arg'"
2289      if test $ac_must_keep_next = true; then
2290	ac_must_keep_next=false # Got value, back to normal.
2291      else
2292	case $ac_arg in
2293	  *=* | --config-cache | -C | -disable-* | --disable-* \
2294	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2295	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2296	  | -with-* | --with-* | -without-* | --without-* | --x)
2297	    case "$ac_configure_args0 " in
2298	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2299	    esac
2300	    ;;
2301	  -* ) ac_must_keep_next=true ;;
2302	esac
2303      fi
2304      as_fn_append ac_configure_args " '$ac_arg'"
2305      ;;
2306    esac
2307  done
2308done
2309{ ac_configure_args0=; unset ac_configure_args0;}
2310{ ac_configure_args1=; unset ac_configure_args1;}
2311
2312# When interrupted or exit'd, cleanup temporary files, and complete
2313# config.log.  We remove comments because anyway the quotes in there
2314# would cause problems or look ugly.
2315# WARNING: Use '\'' to represent an apostrophe within the trap.
2316# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2317trap 'exit_status=$?
2318  # Save into config.log some information that might help in debugging.
2319  {
2320    echo
2321
2322    $as_echo "## ---------------- ##
2323## Cache variables. ##
2324## ---------------- ##"
2325    echo
2326    # The following way of writing the cache mishandles newlines in values,
2327(
2328  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2329    eval ac_val=\$$ac_var
2330    case $ac_val in #(
2331    *${as_nl}*)
2332      case $ac_var in #(
2333      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2334$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2335      esac
2336      case $ac_var in #(
2337      _ | IFS | as_nl) ;; #(
2338      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2339      *) { eval $ac_var=; unset $ac_var;} ;;
2340      esac ;;
2341    esac
2342  done
2343  (set) 2>&1 |
2344    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2345    *${as_nl}ac_space=\ *)
2346      sed -n \
2347	"s/'\''/'\''\\\\'\'''\''/g;
2348	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2349      ;; #(
2350    *)
2351      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352      ;;
2353    esac |
2354    sort
2355)
2356    echo
2357
2358    $as_echo "## ----------------- ##
2359## Output variables. ##
2360## ----------------- ##"
2361    echo
2362    for ac_var in $ac_subst_vars
2363    do
2364      eval ac_val=\$$ac_var
2365      case $ac_val in
2366      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367      esac
2368      $as_echo "$ac_var='\''$ac_val'\''"
2369    done | sort
2370    echo
2371
2372    if test -n "$ac_subst_files"; then
2373      $as_echo "## ------------------- ##
2374## File substitutions. ##
2375## ------------------- ##"
2376      echo
2377      for ac_var in $ac_subst_files
2378      do
2379	eval ac_val=\$$ac_var
2380	case $ac_val in
2381	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382	esac
2383	$as_echo "$ac_var='\''$ac_val'\''"
2384      done | sort
2385      echo
2386    fi
2387
2388    if test -s confdefs.h; then
2389      $as_echo "## ----------- ##
2390## confdefs.h. ##
2391## ----------- ##"
2392      echo
2393      cat confdefs.h
2394      echo
2395    fi
2396    test "$ac_signal" != 0 &&
2397      $as_echo "$as_me: caught signal $ac_signal"
2398    $as_echo "$as_me: exit $exit_status"
2399  } >&5
2400  rm -f core *.core core.conftest.* &&
2401    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2402    exit $exit_status
2403' 0
2404for ac_signal in 1 2 13 15; do
2405  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2406done
2407ac_signal=0
2408
2409# confdefs.h avoids OS command line length limits that DEFS can exceed.
2410rm -f -r conftest* confdefs.h
2411
2412$as_echo "/* confdefs.h */" > confdefs.h
2413
2414# Predefined preprocessor variables.
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_NAME "$PACKAGE_NAME"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_VERSION "$PACKAGE_VERSION"
2426_ACEOF
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_STRING "$PACKAGE_STRING"
2430_ACEOF
2431
2432cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2434_ACEOF
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_URL "$PACKAGE_URL"
2438_ACEOF
2439
2440
2441# Let the site file select an alternate cache file if it wants to.
2442# Prefer an explicitly selected file to automatically selected ones.
2443ac_site_file1=NONE
2444ac_site_file2=NONE
2445if test -n "$CONFIG_SITE"; then
2446  # We do not want a PATH search for config.site.
2447  case $CONFIG_SITE in #((
2448    -*)  ac_site_file1=./$CONFIG_SITE;;
2449    */*) ac_site_file1=$CONFIG_SITE;;
2450    *)   ac_site_file1=./$CONFIG_SITE;;
2451  esac
2452elif test "x$prefix" != xNONE; then
2453  ac_site_file1=$prefix/share/config.site
2454  ac_site_file2=$prefix/etc/config.site
2455else
2456  ac_site_file1=$ac_default_prefix/share/config.site
2457  ac_site_file2=$ac_default_prefix/etc/config.site
2458fi
2459for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2460do
2461  test "x$ac_site_file" = xNONE && continue
2462  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2463    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2464$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2465    sed 's/^/| /' "$ac_site_file" >&5
2466    . "$ac_site_file" \
2467      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469as_fn_error $? "failed to load site script $ac_site_file
2470See \`config.log' for more details" "$LINENO" 5; }
2471  fi
2472done
2473
2474if test -r "$cache_file"; then
2475  # Some versions of bash will fail to source /dev/null (special files
2476  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2477  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2478    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2479$as_echo "$as_me: loading cache $cache_file" >&6;}
2480    case $cache_file in
2481      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2482      *)                      . "./$cache_file";;
2483    esac
2484  fi
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2487$as_echo "$as_me: creating cache $cache_file" >&6;}
2488  >$cache_file
2489fi
2490
2491as_fn_append ac_header_list " sys/time.h"
2492as_fn_append ac_header_list " unistd.h"
2493as_fn_append ac_func_list " alarm"
2494# Check that the precious variables saved in the cache have kept the same
2495# value.
2496ac_cache_corrupted=false
2497for ac_var in $ac_precious_vars; do
2498  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499  eval ac_new_set=\$ac_env_${ac_var}_set
2500  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501  eval ac_new_val=\$ac_env_${ac_var}_value
2502  case $ac_old_set,$ac_new_set in
2503    set,)
2504      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506      ac_cache_corrupted=: ;;
2507    ,set)
2508      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510      ac_cache_corrupted=: ;;
2511    ,);;
2512    *)
2513      if test "x$ac_old_val" != "x$ac_new_val"; then
2514	# differences in whitespace do not lead to failure.
2515	ac_old_val_w=`echo x $ac_old_val`
2516	ac_new_val_w=`echo x $ac_new_val`
2517	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520	  ac_cache_corrupted=:
2521	else
2522	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524	  eval $ac_var=\$ac_old_val
2525	fi
2526	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2527$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2528	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2529$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2530      fi;;
2531  esac
2532  # Pass precious variables to config.status.
2533  if test "$ac_new_set" = set; then
2534    case $ac_new_val in
2535    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536    *) ac_arg=$ac_var=$ac_new_val ;;
2537    esac
2538    case " $ac_configure_args " in
2539      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2540      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541    esac
2542  fi
2543done
2544if $ac_cache_corrupted; then
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2549  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2550fi
2551## -------------------- ##
2552## Main body of script. ##
2553## -------------------- ##
2554
2555ac_ext=c
2556ac_cpp='$CPP $CPPFLAGS'
2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561
2562
2563ac_config_headers="$ac_config_headers config.h"
2564
2565am__api_version='1.15'
2566
2567ac_aux_dir=
2568for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2569  if test -f "$ac_dir/install-sh"; then
2570    ac_aux_dir=$ac_dir
2571    ac_install_sh="$ac_aux_dir/install-sh -c"
2572    break
2573  elif test -f "$ac_dir/install.sh"; then
2574    ac_aux_dir=$ac_dir
2575    ac_install_sh="$ac_aux_dir/install.sh -c"
2576    break
2577  elif test -f "$ac_dir/shtool"; then
2578    ac_aux_dir=$ac_dir
2579    ac_install_sh="$ac_aux_dir/shtool install -c"
2580    break
2581  fi
2582done
2583if test -z "$ac_aux_dir"; then
2584  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2585fi
2586
2587# These three variables are undocumented and unsupported,
2588# and are intended to be withdrawn in a future Autoconf release.
2589# They can cause serious problems if a builder's source tree is in a directory
2590# whose full name contains unusual characters.
2591ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2592ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2593ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2594
2595
2596# Find a good install program.  We prefer a C program (faster),
2597# so one script is as good as another.  But avoid the broken or
2598# incompatible versions:
2599# SysV /etc/install, /usr/sbin/install
2600# SunOS /usr/etc/install
2601# IRIX /sbin/install
2602# AIX /bin/install
2603# AmigaOS /C/install, which installs bootblocks on floppy discs
2604# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2605# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2606# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2607# OS/2's system install, which has a completely different semantic
2608# ./install, which can be erroneously created by make from ./install.sh.
2609# Reject install programs that cannot install multiple files.
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2611$as_echo_n "checking for a BSD-compatible install... " >&6; }
2612if test -z "$INSTALL"; then
2613if ${ac_cv_path_install+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621    # Account for people who put trailing slashes in PATH elements.
2622case $as_dir/ in #((
2623  ./ | .// | /[cC]/* | \
2624  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2625  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2626  /usr/ucb/* ) ;;
2627  *)
2628    # OSF1 and SCO ODT 3.0 have their own names for install.
2629    # Don't use installbsd from OSF since it installs stuff as root
2630    # by default.
2631    for ac_prog in ginstall scoinst install; do
2632      for ac_exec_ext in '' $ac_executable_extensions; do
2633	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2634	  if test $ac_prog = install &&
2635	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636	    # AIX install.  It has an incompatible calling convention.
2637	    :
2638	  elif test $ac_prog = install &&
2639	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640	    # program-specific install script used by HP pwplus--don't use.
2641	    :
2642	  else
2643	    rm -rf conftest.one conftest.two conftest.dir
2644	    echo one > conftest.one
2645	    echo two > conftest.two
2646	    mkdir conftest.dir
2647	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2648	      test -s conftest.one && test -s conftest.two &&
2649	      test -s conftest.dir/conftest.one &&
2650	      test -s conftest.dir/conftest.two
2651	    then
2652	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2653	      break 3
2654	    fi
2655	  fi
2656	fi
2657      done
2658    done
2659    ;;
2660esac
2661
2662  done
2663IFS=$as_save_IFS
2664
2665rm -rf conftest.one conftest.two conftest.dir
2666
2667fi
2668  if test "${ac_cv_path_install+set}" = set; then
2669    INSTALL=$ac_cv_path_install
2670  else
2671    # As a last resort, use the slow shell script.  Don't cache a
2672    # value for INSTALL within a source directory, because that will
2673    # break other packages using the cache if that directory is
2674    # removed, or if the value is a relative name.
2675    INSTALL=$ac_install_sh
2676  fi
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2679$as_echo "$INSTALL" >&6; }
2680
2681# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2682# It thinks the first close brace ends the variable substitution.
2683test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2684
2685test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2686
2687test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2690$as_echo_n "checking whether build environment is sane... " >&6; }
2691# Reject unsafe characters in $srcdir or the absolute working directory
2692# name.  Accept space and tab only in the latter.
2693am_lf='
2694'
2695case `pwd` in
2696  *[\\\"\#\$\&\'\`$am_lf]*)
2697    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2698esac
2699case $srcdir in
2700  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2701    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2702esac
2703
2704# Do 'set' in a subshell so we don't clobber the current shell's
2705# arguments.  Must try -L first in case configure is actually a
2706# symlink; some systems play weird games with the mod time of symlinks
2707# (eg FreeBSD returns the mod time of the symlink's containing
2708# directory).
2709if (
2710   am_has_slept=no
2711   for am_try in 1 2; do
2712     echo "timestamp, slept: $am_has_slept" > conftest.file
2713     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2714     if test "$*" = "X"; then
2715	# -L didn't work.
2716	set X `ls -t "$srcdir/configure" conftest.file`
2717     fi
2718     if test "$*" != "X $srcdir/configure conftest.file" \
2719	&& test "$*" != "X conftest.file $srcdir/configure"; then
2720
2721	# If neither matched, then we have a broken ls.  This can happen
2722	# if, for instance, CONFIG_SHELL is bash and it inherits a
2723	# broken ls alias from the environment.  This has actually
2724	# happened.  Such a system could not be considered "sane".
2725	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2726  alias in your environment" "$LINENO" 5
2727     fi
2728     if test "$2" = conftest.file || test $am_try -eq 2; then
2729       break
2730     fi
2731     # Just in case.
2732     sleep 1
2733     am_has_slept=yes
2734   done
2735   test "$2" = conftest.file
2736   )
2737then
2738   # Ok.
2739   :
2740else
2741   as_fn_error $? "newly created file is older than distributed files!
2742Check your system clock" "$LINENO" 5
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745$as_echo "yes" >&6; }
2746# If we didn't sleep, we still need to ensure time stamps of config.status and
2747# generated files are strictly newer.
2748am_sleep_pid=
2749if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2750  ( sleep 1 ) &
2751  am_sleep_pid=$!
2752fi
2753
2754rm -f conftest.file
2755
2756test "$program_prefix" != NONE &&
2757  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758# Use a double $ so make ignores it.
2759test "$program_suffix" != NONE &&
2760  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761# Double any \ or $.
2762# By default was `s,x,x', remove it if useless.
2763ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2765
2766# Expand $ac_aux_dir to an absolute path.
2767am_aux_dir=`cd "$ac_aux_dir" && pwd`
2768
2769if test x"${MISSING+set}" != xset; then
2770  case $am_aux_dir in
2771  *\ * | *\	*)
2772    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773  *)
2774    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775  esac
2776fi
2777# Use eval to expand $SHELL
2778if eval "$MISSING --is-lightweight"; then
2779  am_missing_run="$MISSING "
2780else
2781  am_missing_run=
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2783$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2784fi
2785
2786if test x"${install_sh+set}" != xset; then
2787  case $am_aux_dir in
2788  *\ * | *\	*)
2789    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790  *)
2791    install_sh="\${SHELL} $am_aux_dir/install-sh"
2792  esac
2793fi
2794
2795# Installed binaries are usually stripped using 'strip' when the user
2796# run "make install-strip".  However 'strip' might not be the right
2797# tool to use in cross-compilation environments, therefore Automake
2798# will honor the 'STRIP' environment variable to overrule this program.
2799if test "$cross_compiling" != no; then
2800  if test -n "$ac_tool_prefix"; then
2801  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802set dummy ${ac_tool_prefix}strip; ac_word=$2
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804$as_echo_n "checking for $ac_word... " >&6; }
2805if ${ac_cv_prog_STRIP+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test -n "$STRIP"; then
2809  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  test -z "$as_dir" && as_dir=.
2816    for ac_exec_ext in '' $ac_executable_extensions; do
2817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823  done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828STRIP=$ac_cv_prog_STRIP
2829if test -n "$STRIP"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831$as_echo "$STRIP" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837
2838fi
2839if test -z "$ac_cv_prog_STRIP"; then
2840  ac_ct_STRIP=$STRIP
2841  # Extract the first word of "strip", so it can be a program name with args.
2842set dummy strip; ac_word=$2
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$ac_ct_STRIP"; then
2849  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858    ac_cv_prog_ac_ct_STRIP="strip"
2859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869if test -n "$ac_ct_STRIP"; then
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871$as_echo "$ac_ct_STRIP" >&6; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877  if test "x$ac_ct_STRIP" = x; then
2878    STRIP=":"
2879  else
2880    case $cross_compiling:$ac_tool_warned in
2881yes:)
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884ac_tool_warned=yes ;;
2885esac
2886    STRIP=$ac_ct_STRIP
2887  fi
2888else
2889  STRIP="$ac_cv_prog_STRIP"
2890fi
2891
2892fi
2893INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897if test -z "$MKDIR_P"; then
2898  if ${ac_cv_path_mkdir+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_prog in mkdir gmkdir; do
2907	 for ac_exec_ext in '' $ac_executable_extensions; do
2908	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2909	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910	     'mkdir (GNU coreutils) '* | \
2911	     'mkdir (coreutils) '* | \
2912	     'mkdir (fileutils) '4.1*)
2913	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2914	       break 3;;
2915	   esac
2916	 done
2917       done
2918  done
2919IFS=$as_save_IFS
2920
2921fi
2922
2923  test -d ./--version && rmdir ./--version
2924  if test "${ac_cv_path_mkdir+set}" = set; then
2925    MKDIR_P="$ac_cv_path_mkdir -p"
2926  else
2927    # As a last resort, use the slow shell script.  Don't cache a
2928    # value for MKDIR_P within a source directory, because that will
2929    # break other packages using the cache if that directory is
2930    # removed, or if the value is a relative name.
2931    MKDIR_P="$ac_install_sh -d"
2932  fi
2933fi
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935$as_echo "$MKDIR_P" >&6; }
2936
2937for ac_prog in gawk mawk nawk awk
2938do
2939  # Extract the first word of "$ac_prog", so it can be a program name with args.
2940set dummy $ac_prog; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if ${ac_cv_prog_AWK+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$AWK"; then
2947  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956    ac_cv_prog_AWK="$ac_prog"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966AWK=$ac_cv_prog_AWK
2967if test -n "$AWK"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2969$as_echo "$AWK" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976  test -n "$AWK" && break
2977done
2978
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981set x ${MAKE-make}
2982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2983if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  cat >conftest.make <<\_ACEOF
2987SHELL = /bin/sh
2988all:
2989	@echo '@@@%%%=$(MAKE)=@@@%%%'
2990_ACEOF
2991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993  *@@@%%%=?*=@@@%%%*)
2994    eval ac_cv_prog_make_${ac_make}_set=yes;;
2995  *)
2996    eval ac_cv_prog_make_${ac_make}_set=no;;
2997esac
2998rm -f conftest.make
2999fi
3000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002$as_echo "yes" >&6; }
3003  SET_MAKE=
3004else
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007  SET_MAKE="MAKE=${MAKE-make}"
3008fi
3009
3010rm -rf .tst 2>/dev/null
3011mkdir .tst 2>/dev/null
3012if test -d .tst; then
3013  am__leading_dot=.
3014else
3015  am__leading_dot=_
3016fi
3017rmdir .tst 2>/dev/null
3018
3019# Check whether --enable-silent-rules was given.
3020if test "${enable_silent_rules+set}" = set; then :
3021  enableval=$enable_silent_rules;
3022fi
3023
3024case $enable_silent_rules in # (((
3025  yes) AM_DEFAULT_VERBOSITY=0;;
3026   no) AM_DEFAULT_VERBOSITY=1;;
3027    *) AM_DEFAULT_VERBOSITY=1;;
3028esac
3029am_make=${MAKE-make}
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3031$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3032if ${am_cv_make_support_nested_variables+:} false; then :
3033  $as_echo_n "(cached) " >&6
3034else
3035  if $as_echo 'TRUE=$(BAR$(V))
3036BAR0=false
3037BAR1=true
3038V=1
3039am__doit:
3040	@$(TRUE)
3041.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3042  am_cv_make_support_nested_variables=yes
3043else
3044  am_cv_make_support_nested_variables=no
3045fi
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3048$as_echo "$am_cv_make_support_nested_variables" >&6; }
3049if test $am_cv_make_support_nested_variables = yes; then
3050    AM_V='$(V)'
3051  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3052else
3053  AM_V=$AM_DEFAULT_VERBOSITY
3054  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3055fi
3056AM_BACKSLASH='\'
3057
3058if test "`cd $srcdir && pwd`" != "`pwd`"; then
3059  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3060  # is not polluted with repeated "-I."
3061  am__isrc=' -I$(srcdir)'
3062  # test to see if srcdir already configured
3063  if test -f $srcdir/config.status; then
3064    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3065  fi
3066fi
3067
3068# test whether we have cygpath
3069if test -z "$CYGPATH_W"; then
3070  if (cygpath --version) >/dev/null 2>/dev/null; then
3071    CYGPATH_W='cygpath -w'
3072  else
3073    CYGPATH_W=echo
3074  fi
3075fi
3076
3077
3078# Define the identity of the package.
3079 PACKAGE='jabberd'
3080 VERSION='2.7.0'
3081
3082
3083cat >>confdefs.h <<_ACEOF
3084#define PACKAGE "$PACKAGE"
3085_ACEOF
3086
3087
3088cat >>confdefs.h <<_ACEOF
3089#define VERSION "$VERSION"
3090_ACEOF
3091
3092# Some tools Automake needs.
3093
3094ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3095
3096
3097AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3098
3099
3100AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3101
3102
3103AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3104
3105
3106MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3107
3108# For better backward compatibility.  To be removed once Automake 1.9.x
3109# dies out for good.  For more background, see:
3110# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3111# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3112mkdir_p='$(MKDIR_P)'
3113
3114# We need awk for the "check" target (and possibly the TAP driver).  The
3115# system "awk" is bad on some platforms.
3116# Always define AMTAR for backward compatibility.  Yes, it's still used
3117# in the wild :-(  We should find a proper way to deprecate it ...
3118AMTAR='$${TAR-tar}'
3119
3120
3121# We'll loop over all known methods to create a tar archive until one works.
3122_am_tools='gnutar  pax cpio none'
3123
3124am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3125
3126
3127
3128
3129
3130
3131# POSIX will say in a future version that running "rm -f" with no argument
3132# is OK; and we want to be able to make that assumption in our Makefile
3133# recipes.  So use an aggressive probe to check that the usage we want is
3134# actually supported "in the wild" to an acceptable degree.
3135# See automake bug#10828.
3136# To make any issue more visible, cause the running configure to be aborted
3137# by default if the 'rm' program in use doesn't match our expectations; the
3138# user can still override this though.
3139if rm -f && rm -fr && rm -rf; then : OK; else
3140  cat >&2 <<'END'
3141Oops!
3142
3143Your 'rm' program seems unable to run without file operands specified
3144on the command line, even when the '-f' option is present.  This is contrary
3145to the behaviour of most rm programs out there, and not conforming with
3146the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3147
3148Please tell bug-automake@gnu.org about your system, including the value
3149of your $PATH and any error possibly output before this message.  This
3150can help us improve future automake versions.
3151
3152END
3153  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3154    echo 'Configuration will proceed anyway, since you have set the' >&2
3155    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3156    echo >&2
3157  else
3158    cat >&2 <<'END'
3159Aborting the configuration process, to ensure you take notice of the issue.
3160
3161You can download and install GNU coreutils to get an 'rm' implementation
3162that behaves properly: <http://www.gnu.org/software/coreutils/>.
3163
3164If you want to complete the configuration process using your problematic
3165'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3166to "yes", and re-run configure.
3167
3168END
3169    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3170  fi
3171fi
3172
3173# Check whether --enable-silent-rules was given.
3174if test "${enable_silent_rules+set}" = set; then :
3175  enableval=$enable_silent_rules;
3176fi
3177
3178case $enable_silent_rules in # (((
3179  yes) AM_DEFAULT_VERBOSITY=0;;
3180   no) AM_DEFAULT_VERBOSITY=1;;
3181    *) AM_DEFAULT_VERBOSITY=0;;
3182esac
3183am_make=${MAKE-make}
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186if ${am_cv_make_support_nested_variables+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if $as_echo 'TRUE=$(BAR$(V))
3190BAR0=false
3191BAR1=true
3192V=1
3193am__doit:
3194	@$(TRUE)
3195.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3196  am_cv_make_support_nested_variables=yes
3197else
3198  am_cv_make_support_nested_variables=no
3199fi
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202$as_echo "$am_cv_make_support_nested_variables" >&6; }
3203if test $am_cv_make_support_nested_variables = yes; then
3204    AM_V='$(V)'
3205  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3206else
3207  AM_V=$AM_DEFAULT_VERBOSITY
3208  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3209fi
3210AM_BACKSLASH='\'
3211
3212
3213# Checks for programs.
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219if test -n "$ac_tool_prefix"; then
3220  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3221set dummy ${ac_tool_prefix}gcc; ac_word=$2
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if ${ac_cv_prog_CC+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  if test -n "$CC"; then
3228  ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  test -z "$as_dir" && as_dir=.
3235    for ac_exec_ext in '' $ac_executable_extensions; do
3236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239    break 2
3240  fi
3241done
3242  done
3243IFS=$as_save_IFS
3244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250$as_echo "$CC" >&6; }
3251else
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254fi
3255
3256
3257fi
3258if test -z "$ac_cv_prog_CC"; then
3259  ac_ct_CC=$CC
3260  # Extract the first word of "gcc", so it can be a program name with args.
3261set dummy gcc; ac_word=$2
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263$as_echo_n "checking for $ac_word... " >&6; }
3264if ${ac_cv_prog_ac_ct_CC+:} false; then :
3265  $as_echo_n "(cached) " >&6
3266else
3267  if test -n "$ac_ct_CC"; then
3268  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3269else
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273  IFS=$as_save_IFS
3274  test -z "$as_dir" && as_dir=.
3275    for ac_exec_ext in '' $ac_executable_extensions; do
3276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277    ac_cv_prog_ac_ct_CC="gcc"
3278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279    break 2
3280  fi
3281done
3282  done
3283IFS=$as_save_IFS
3284
3285fi
3286fi
3287ac_ct_CC=$ac_cv_prog_ac_ct_CC
3288if test -n "$ac_ct_CC"; then
3289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3290$as_echo "$ac_ct_CC" >&6; }
3291else
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294fi
3295
3296  if test "x$ac_ct_CC" = x; then
3297    CC=""
3298  else
3299    case $cross_compiling:$ac_tool_warned in
3300yes:)
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303ac_tool_warned=yes ;;
3304esac
3305    CC=$ac_ct_CC
3306  fi
3307else
3308  CC="$ac_cv_prog_CC"
3309fi
3310
3311if test -z "$CC"; then
3312          if test -n "$ac_tool_prefix"; then
3313    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3314set dummy ${ac_tool_prefix}cc; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_CC+:} false; then :
3318  $as_echo_n "(cached) " >&6
3319else
3320  if test -n "$CC"; then
3321  ac_cv_prog_CC="$CC" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328    for ac_exec_ext in '' $ac_executable_extensions; do
3329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330    ac_cv_prog_CC="${ac_tool_prefix}cc"
3331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335  done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340CC=$ac_cv_prog_CC
3341if test -n "$CC"; then
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343$as_echo "$CC" >&6; }
3344else
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347fi
3348
3349
3350  fi
3351fi
3352if test -z "$CC"; then
3353  # Extract the first word of "cc", so it can be a program name with args.
3354set dummy cc; ac_word=$2
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356$as_echo_n "checking for $ac_word... " >&6; }
3357if ${ac_cv_prog_CC+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  if test -n "$CC"; then
3361  ac_cv_prog_CC="$CC" # Let the user override the test.
3362else
3363  ac_prog_rejected=no
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3372       ac_prog_rejected=yes
3373       continue
3374     fi
3375    ac_cv_prog_CC="cc"
3376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380  done
3381IFS=$as_save_IFS
3382
3383if test $ac_prog_rejected = yes; then
3384  # We found a bogon in the path, so make sure we never use it.
3385  set dummy $ac_cv_prog_CC
3386  shift
3387  if test $# != 0; then
3388    # We chose a different compiler from the bogus one.
3389    # However, it has the same basename, so the bogon will be chosen
3390    # first if we set CC to just the basename; use the full file name.
3391    shift
3392    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3393  fi
3394fi
3395fi
3396fi
3397CC=$ac_cv_prog_CC
3398if test -n "$CC"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400$as_echo "$CC" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407fi
3408if test -z "$CC"; then
3409  if test -n "$ac_tool_prefix"; then
3410  for ac_prog in cl.exe
3411  do
3412    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3413set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; }
3416if ${ac_cv_prog_CC+:} false; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  if test -n "$CC"; then
3420  ac_cv_prog_CC="$CC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425  IFS=$as_save_IFS
3426  test -z "$as_dir" && as_dir=.
3427    for ac_exec_ext in '' $ac_executable_extensions; do
3428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431    break 2
3432  fi
3433done
3434  done
3435IFS=$as_save_IFS
3436
3437fi
3438fi
3439CC=$ac_cv_prog_CC
3440if test -n "$CC"; then
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442$as_echo "$CC" >&6; }
3443else
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449    test -n "$CC" && break
3450  done
3451fi
3452if test -z "$CC"; then
3453  ac_ct_CC=$CC
3454  for ac_prog in cl.exe
3455do
3456  # Extract the first word of "$ac_prog", so it can be a program name with args.
3457set dummy $ac_prog; ac_word=$2
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; }
3460if ${ac_cv_prog_ac_ct_CC+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  if test -n "$ac_ct_CC"; then
3464  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469  IFS=$as_save_IFS
3470  test -z "$as_dir" && as_dir=.
3471    for ac_exec_ext in '' $ac_executable_extensions; do
3472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473    ac_cv_prog_ac_ct_CC="$ac_prog"
3474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475    break 2
3476  fi
3477done
3478  done
3479IFS=$as_save_IFS
3480
3481fi
3482fi
3483ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484if test -n "$ac_ct_CC"; then
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3486$as_echo "$ac_ct_CC" >&6; }
3487else
3488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489$as_echo "no" >&6; }
3490fi
3491
3492
3493  test -n "$ac_ct_CC" && break
3494done
3495
3496  if test "x$ac_ct_CC" = x; then
3497    CC=""
3498  else
3499    case $cross_compiling:$ac_tool_warned in
3500yes:)
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3503ac_tool_warned=yes ;;
3504esac
3505    CC=$ac_ct_CC
3506  fi
3507fi
3508
3509fi
3510
3511
3512test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "no acceptable C compiler found in \$PATH
3515See \`config.log' for more details" "$LINENO" 5; }
3516
3517# Provide some information about the compiler.
3518$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3519set X $ac_compile
3520ac_compiler=$2
3521for ac_option in --version -v -V -qversion; do
3522  { { ac_try="$ac_compiler $ac_option >&5"
3523case "(($ac_try" in
3524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525  *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3530  ac_status=$?
3531  if test -s conftest.err; then
3532    sed '10a\
3533... rest of stderr output deleted ...
3534         10q' conftest.err >conftest.er1
3535    cat conftest.er1 >&5
3536  fi
3537  rm -f conftest.er1 conftest.err
3538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539  test $ac_status = 0; }
3540done
3541
3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553ac_clean_files_save=$ac_clean_files
3554ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3555# Try to create an executable without -o first, disregard a.out.
3556# It will help us diagnose broken compilers, and finding out an intuition
3557# of exeext.
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3559$as_echo_n "checking whether the C compiler works... " >&6; }
3560ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3561
3562# The possible output files:
3563ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3564
3565ac_rmfiles=
3566for ac_file in $ac_files
3567do
3568  case $ac_file in
3569    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3570    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571  esac
3572done
3573rm -f $ac_rmfiles
3574
3575if { { ac_try="$ac_link_default"
3576case "(($ac_try" in
3577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578  *) ac_try_echo=$ac_try;;
3579esac
3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581$as_echo "$ac_try_echo"; } >&5
3582  (eval "$ac_link_default") 2>&5
3583  ac_status=$?
3584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585  test $ac_status = 0; }; then :
3586  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3587# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3588# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3589# so that the user can short-circuit this test for compilers unknown to
3590# Autoconf.
3591for ac_file in $ac_files ''
3592do
3593  test -f "$ac_file" || continue
3594  case $ac_file in
3595    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3596	;;
3597    [ab].out )
3598	# We found the default executable, but exeext='' is most
3599	# certainly right.
3600	break;;
3601    *.* )
3602	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3603	then :; else
3604	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605	fi
3606	# We set ac_cv_exeext here because the later test for it is not
3607	# safe: cross compilers may not add the suffix if given an `-o'
3608	# argument, so we may need to know it at that point already.
3609	# Even if this section looks crufty: it has the advantage of
3610	# actually working.
3611	break;;
3612    * )
3613	break;;
3614  esac
3615done
3616test "$ac_cv_exeext" = no && ac_cv_exeext=
3617
3618else
3619  ac_file=''
3620fi
3621if test -z "$ac_file"; then :
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623$as_echo "no" >&6; }
3624$as_echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629as_fn_error 77 "C compiler cannot create executables
3630See \`config.log' for more details" "$LINENO" 5; }
3631else
3632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3633$as_echo "yes" >&6; }
3634fi
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3636$as_echo_n "checking for C compiler default output file name... " >&6; }
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3638$as_echo "$ac_file" >&6; }
3639ac_exeext=$ac_cv_exeext
3640
3641rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3642ac_clean_files=$ac_clean_files_save
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3644$as_echo_n "checking for suffix of executables... " >&6; }
3645if { { ac_try="$ac_link"
3646case "(($ac_try" in
3647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648  *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651$as_echo "$ac_try_echo"; } >&5
3652  (eval "$ac_link") 2>&5
3653  ac_status=$?
3654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655  test $ac_status = 0; }; then :
3656  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3657# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3658# work properly (i.e., refer to `conftest.exe'), while it won't with
3659# `rm'.
3660for ac_file in conftest.exe conftest conftest.*; do
3661  test -f "$ac_file" || continue
3662  case $ac_file in
3663    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3664    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3665	  break;;
3666    * ) break;;
3667  esac
3668done
3669else
3670  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3673See \`config.log' for more details" "$LINENO" 5; }
3674fi
3675rm -f conftest conftest$ac_cv_exeext
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3677$as_echo "$ac_cv_exeext" >&6; }
3678
3679rm -f conftest.$ac_ext
3680EXEEXT=$ac_cv_exeext
3681ac_exeext=$EXEEXT
3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684#include <stdio.h>
3685int
3686main ()
3687{
3688FILE *f = fopen ("conftest.out", "w");
3689 return ferror (f) || fclose (f) != 0;
3690
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695ac_clean_files="$ac_clean_files conftest.out"
3696# Check that the compiler produces executables we can run.  If not, either
3697# the compiler is broken, or we cross compile.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3699$as_echo_n "checking whether we are cross compiling... " >&6; }
3700if test "$cross_compiling" != yes; then
3701  { { ac_try="$ac_link"
3702case "(($ac_try" in
3703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704  *) ac_try_echo=$ac_try;;
3705esac
3706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707$as_echo "$ac_try_echo"; } >&5
3708  (eval "$ac_link") 2>&5
3709  ac_status=$?
3710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711  test $ac_status = 0; }
3712  if { ac_try='./conftest$ac_cv_exeext'
3713  { { case "(($ac_try" in
3714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715  *) ac_try_echo=$ac_try;;
3716esac
3717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718$as_echo "$ac_try_echo"; } >&5
3719  (eval "$ac_try") 2>&5
3720  ac_status=$?
3721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722  test $ac_status = 0; }; }; then
3723    cross_compiling=no
3724  else
3725    if test "$cross_compiling" = maybe; then
3726	cross_compiling=yes
3727    else
3728	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730as_fn_error $? "cannot run C compiled programs.
3731If you meant to cross compile, use \`--host'.
3732See \`config.log' for more details" "$LINENO" 5; }
3733    fi
3734  fi
3735fi
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3737$as_echo "$cross_compiling" >&6; }
3738
3739rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3740ac_clean_files=$ac_clean_files_save
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3742$as_echo_n "checking for suffix of object files... " >&6; }
3743if ${ac_cv_objext+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h.  */
3748
3749int
3750main ()
3751{
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757rm -f conftest.o conftest.obj
3758if { { ac_try="$ac_compile"
3759case "(($ac_try" in
3760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761  *) ac_try_echo=$ac_try;;
3762esac
3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764$as_echo "$ac_try_echo"; } >&5
3765  (eval "$ac_compile") 2>&5
3766  ac_status=$?
3767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768  test $ac_status = 0; }; then :
3769  for ac_file in conftest.o conftest.obj conftest.*; do
3770  test -f "$ac_file" || continue;
3771  case $ac_file in
3772    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3773    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3774       break;;
3775  esac
3776done
3777else
3778  $as_echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783as_fn_error $? "cannot compute suffix of object files: cannot compile
3784See \`config.log' for more details" "$LINENO" 5; }
3785fi
3786rm -f conftest.$ac_cv_objext conftest.$ac_ext
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3789$as_echo "$ac_cv_objext" >&6; }
3790OBJEXT=$ac_cv_objext
3791ac_objext=$OBJEXT
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3793$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3794if ${ac_cv_c_compiler_gnu+:} false; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799
3800int
3801main ()
3802{
3803#ifndef __GNUC__
3804       choke me
3805#endif
3806
3807  ;
3808  return 0;
3809}
3810_ACEOF
3811if ac_fn_c_try_compile "$LINENO"; then :
3812  ac_compiler_gnu=yes
3813else
3814  ac_compiler_gnu=no
3815fi
3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817ac_cv_c_compiler_gnu=$ac_compiler_gnu
3818
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3821$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3822if test $ac_compiler_gnu = yes; then
3823  GCC=yes
3824else
3825  GCC=
3826fi
3827ac_test_CFLAGS=${CFLAGS+set}
3828ac_save_CFLAGS=$CFLAGS
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3830$as_echo_n "checking whether $CC accepts -g... " >&6; }
3831if ${ac_cv_prog_cc_g+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  ac_save_c_werror_flag=$ac_c_werror_flag
3835   ac_c_werror_flag=yes
3836   ac_cv_prog_cc_g=no
3837   CFLAGS="-g"
3838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841int
3842main ()
3843{
3844
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849if ac_fn_c_try_compile "$LINENO"; then :
3850  ac_cv_prog_cc_g=yes
3851else
3852  CFLAGS=""
3853      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h.  */
3855
3856int
3857main ()
3858{
3859
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864if ac_fn_c_try_compile "$LINENO"; then :
3865
3866else
3867  ac_c_werror_flag=$ac_save_c_werror_flag
3868	 CFLAGS="-g"
3869	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871
3872int
3873main ()
3874{
3875
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880if ac_fn_c_try_compile "$LINENO"; then :
3881  ac_cv_prog_cc_g=yes
3882fi
3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884fi
3885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886fi
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888   ac_c_werror_flag=$ac_save_c_werror_flag
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3891$as_echo "$ac_cv_prog_cc_g" >&6; }
3892if test "$ac_test_CFLAGS" = set; then
3893  CFLAGS=$ac_save_CFLAGS
3894elif test $ac_cv_prog_cc_g = yes; then
3895  if test "$GCC" = yes; then
3896    CFLAGS="-g -O2"
3897  else
3898    CFLAGS="-g"
3899  fi
3900else
3901  if test "$GCC" = yes; then
3902    CFLAGS="-O2"
3903  else
3904    CFLAGS=
3905  fi
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3908$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3909if ${ac_cv_prog_cc_c89+:} false; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  ac_cv_prog_cc_c89=no
3913ac_save_CC=$CC
3914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916#include <stdarg.h>
3917#include <stdio.h>
3918struct stat;
3919/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3920struct buf { int x; };
3921FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922static char *e (p, i)
3923     char **p;
3924     int i;
3925{
3926  return p[i];
3927}
3928static char *f (char * (*g) (char **, int), char **p, ...)
3929{
3930  char *s;
3931  va_list v;
3932  va_start (v,p);
3933  s = g (p, va_arg (v,int));
3934  va_end (v);
3935  return s;
3936}
3937
3938/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3939   function prototypes and stuff, but not '\xHH' hex character constants.
3940   These don't provoke an error unfortunately, instead are silently treated
3941   as 'x'.  The following induces an error, until -std is added to get
3942   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3943   array size at least.  It's necessary to write '\x00'==0 to get something
3944   that's true only with -std.  */
3945int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3946
3947/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948   inside strings and character constants.  */
3949#define FOO(x) 'x'
3950int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3951
3952int test (int i, double x);
3953struct s1 {int (*f) (int a);};
3954struct s2 {int (*f) (double a);};
3955int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956int argc;
3957char **argv;
3958int
3959main ()
3960{
3961return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3968do
3969  CC="$ac_save_CC $ac_arg"
3970  if ac_fn_c_try_compile "$LINENO"; then :
3971  ac_cv_prog_cc_c89=$ac_arg
3972fi
3973rm -f core conftest.err conftest.$ac_objext
3974  test "x$ac_cv_prog_cc_c89" != "xno" && break
3975done
3976rm -f conftest.$ac_ext
3977CC=$ac_save_CC
3978
3979fi
3980# AC_CACHE_VAL
3981case "x$ac_cv_prog_cc_c89" in
3982  x)
3983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3984$as_echo "none needed" >&6; } ;;
3985  xno)
3986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3987$as_echo "unsupported" >&6; } ;;
3988  *)
3989    CC="$CC $ac_cv_prog_cc_c89"
3990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3991$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3992esac
3993if test "x$ac_cv_prog_cc_c89" != xno; then :
3994
3995fi
3996
3997ac_ext=c
3998ac_cpp='$CPP $CPPFLAGS'
3999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4009$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4010if ${am_cv_prog_cc_c_o+:} false; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015
4016int
4017main ()
4018{
4019
4020  ;
4021  return 0;
4022}
4023_ACEOF
4024  # Make sure it works both with $CC and with simple cc.
4025  # Following AC_PROG_CC_C_O, we do the test twice because some
4026  # compilers refuse to overwrite an existing .o file with -o,
4027  # though they will create one.
4028  am_cv_prog_cc_c_o=yes
4029  for am_i in 1 2; do
4030    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4031   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } \
4035         && test -f conftest2.$ac_objext; then
4036      : OK
4037    else
4038      am_cv_prog_cc_c_o=no
4039      break
4040    fi
4041  done
4042  rm -f core conftest*
4043  unset am_i
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4046$as_echo "$am_cv_prog_cc_c_o" >&6; }
4047if test "$am_cv_prog_cc_c_o" != yes; then
4048   # Losing compiler, so override with the script.
4049   # FIXME: It is wrong to rewrite CC.
4050   # But if we don't then we get into trouble of one sort or another.
4051   # A longer-term fix would be to have automake use am__CC in this case,
4052   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4053   CC="$am_aux_dir/compile $CC"
4054fi
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061DEPDIR="${am__leading_dot}deps"
4062
4063ac_config_commands="$ac_config_commands depfiles"
4064
4065
4066am_make=${MAKE-make}
4067cat > confinc << 'END'
4068am__doit:
4069	@echo this is the am__doit target
4070.PHONY: am__doit
4071END
4072# If we don't find an include directive, just comment out the code.
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4074$as_echo_n "checking for style of include used by $am_make... " >&6; }
4075am__include="#"
4076am__quote=
4077_am_result=none
4078# First try GNU make style include.
4079echo "include confinc" > confmf
4080# Ignore all kinds of additional output from 'make'.
4081case `$am_make -s -f confmf 2> /dev/null` in #(
4082*the\ am__doit\ target*)
4083  am__include=include
4084  am__quote=
4085  _am_result=GNU
4086  ;;
4087esac
4088# Now try BSD make style include.
4089if test "$am__include" = "#"; then
4090   echo '.include "confinc"' > confmf
4091   case `$am_make -s -f confmf 2> /dev/null` in #(
4092   *the\ am__doit\ target*)
4093     am__include=.include
4094     am__quote="\""
4095     _am_result=BSD
4096     ;;
4097   esac
4098fi
4099
4100
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4102$as_echo "$_am_result" >&6; }
4103rm -f confinc confmf
4104
4105# Check whether --enable-dependency-tracking was given.
4106if test "${enable_dependency_tracking+set}" = set; then :
4107  enableval=$enable_dependency_tracking;
4108fi
4109
4110if test "x$enable_dependency_tracking" != xno; then
4111  am_depcomp="$ac_aux_dir/depcomp"
4112  AMDEPBACKSLASH='\'
4113  am__nodep='_no'
4114fi
4115 if test "x$enable_dependency_tracking" != xno; then
4116  AMDEP_TRUE=
4117  AMDEP_FALSE='#'
4118else
4119  AMDEP_TRUE='#'
4120  AMDEP_FALSE=
4121fi
4122
4123
4124
4125depcc="$CC"   am_compiler_list=
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4128$as_echo_n "checking dependency style of $depcc... " >&6; }
4129if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4133  # We make a subdir and do the tests there.  Otherwise we can end up
4134  # making bogus files that we don't know about and never remove.  For
4135  # instance it was reported that on HP-UX the gcc test will end up
4136  # making a dummy file named 'D' -- because '-MD' means "put the output
4137  # in D".
4138  rm -rf conftest.dir
4139  mkdir conftest.dir
4140  # Copy depcomp to subdir because otherwise we won't find it if we're
4141  # using a relative directory.
4142  cp "$am_depcomp" conftest.dir
4143  cd conftest.dir
4144  # We will build objects and dependencies in a subdirectory because
4145  # it helps to detect inapplicable dependency modes.  For instance
4146  # both Tru64's cc and ICC support -MD to output dependencies as a
4147  # side effect of compilation, but ICC will put the dependencies in
4148  # the current directory while Tru64 will put them in the object
4149  # directory.
4150  mkdir sub
4151
4152  am_cv_CC_dependencies_compiler_type=none
4153  if test "$am_compiler_list" = ""; then
4154     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4155  fi
4156  am__universal=false
4157  case " $depcc " in #(
4158     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4159     esac
4160
4161  for depmode in $am_compiler_list; do
4162    # Setup a source with many dependencies, because some compilers
4163    # like to wrap large dependency lists on column 80 (with \), and
4164    # we should not choose a depcomp mode which is confused by this.
4165    #
4166    # We need to recreate these files for each test, as the compiler may
4167    # overwrite some of them when testing with obscure command lines.
4168    # This happens at least with the AIX C compiler.
4169    : > sub/conftest.c
4170    for i in 1 2 3 4 5 6; do
4171      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4172      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4173      # Solaris 10 /bin/sh.
4174      echo '/* dummy */' > sub/conftst$i.h
4175    done
4176    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4177
4178    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4179    # mode.  It turns out that the SunPro C++ compiler does not properly
4180    # handle '-M -o', and we need to detect this.  Also, some Intel
4181    # versions had trouble with output in subdirs.
4182    am__obj=sub/conftest.${OBJEXT-o}
4183    am__minus_obj="-o $am__obj"
4184    case $depmode in
4185    gcc)
4186      # This depmode causes a compiler race in universal mode.
4187      test "$am__universal" = false || continue
4188      ;;
4189    nosideeffect)
4190      # After this tag, mechanisms are not by side-effect, so they'll
4191      # only be used when explicitly requested.
4192      if test "x$enable_dependency_tracking" = xyes; then
4193	continue
4194      else
4195	break
4196      fi
4197      ;;
4198    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4199      # This compiler won't grok '-c -o', but also, the minuso test has
4200      # not run yet.  These depmodes are late enough in the game, and
4201      # so weak that their functioning should not be impacted.
4202      am__obj=conftest.${OBJEXT-o}
4203      am__minus_obj=
4204      ;;
4205    none) break ;;
4206    esac
4207    if depmode=$depmode \
4208       source=sub/conftest.c object=$am__obj \
4209       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4210       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4211         >/dev/null 2>conftest.err &&
4212       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4213       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4214       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4215       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4216      # icc doesn't choke on unknown options, it will just issue warnings
4217      # or remarks (even with -Werror).  So we grep stderr for any message
4218      # that says an option was ignored or not supported.
4219      # When given -MP, icc 7.0 and 7.1 complain thusly:
4220      #   icc: Command line warning: ignoring option '-M'; no argument required
4221      # The diagnosis changed in icc 8.0:
4222      #   icc: Command line remark: option '-MP' not supported
4223      if (grep 'ignoring option' conftest.err ||
4224          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4225        am_cv_CC_dependencies_compiler_type=$depmode
4226        break
4227      fi
4228    fi
4229  done
4230
4231  cd ..
4232  rm -rf conftest.dir
4233else
4234  am_cv_CC_dependencies_compiler_type=none
4235fi
4236
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4239$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4240CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4241
4242 if
4243  test "x$enable_dependency_tracking" != xno \
4244  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4245  am__fastdepCC_TRUE=
4246  am__fastdepCC_FALSE='#'
4247else
4248  am__fastdepCC_TRUE='#'
4249  am__fastdepCC_FALSE=
4250fi
4251
4252
4253   case $ac_cv_prog_cc_stdc in #(
4254  no) :
4255    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4256  *) :
4257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4258$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4259if ${ac_cv_prog_cc_c99+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  ac_cv_prog_cc_c99=no
4263ac_save_CC=$CC
4264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h.  */
4266#include <stdarg.h>
4267#include <stdbool.h>
4268#include <stdlib.h>
4269#include <wchar.h>
4270#include <stdio.h>
4271
4272// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4273#define debug(...) fprintf (stderr, __VA_ARGS__)
4274#define showlist(...) puts (#__VA_ARGS__)
4275#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4276static void
4277test_varargs_macros (void)
4278{
4279  int x = 1234;
4280  int y = 5678;
4281  debug ("Flag");
4282  debug ("X = %d\n", x);
4283  showlist (The first, second, and third items.);
4284  report (x>y, "x is %d but y is %d", x, y);
4285}
4286
4287// Check long long types.
4288#define BIG64 18446744073709551615ull
4289#define BIG32 4294967295ul
4290#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4291#if !BIG_OK
4292  your preprocessor is broken;
4293#endif
4294#if BIG_OK
4295#else
4296  your preprocessor is broken;
4297#endif
4298static long long int bignum = -9223372036854775807LL;
4299static unsigned long long int ubignum = BIG64;
4300
4301struct incomplete_array
4302{
4303  int datasize;
4304  double data[];
4305};
4306
4307struct named_init {
4308  int number;
4309  const wchar_t *name;
4310  double average;
4311};
4312
4313typedef const char *ccp;
4314
4315static inline int
4316test_restrict (ccp restrict text)
4317{
4318  // See if C++-style comments work.
4319  // Iterate through items via the restricted pointer.
4320  // Also check for declarations in for loops.
4321  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4322    continue;
4323  return 0;
4324}
4325
4326// Check varargs and va_copy.
4327static void
4328test_varargs (const char *format, ...)
4329{
4330  va_list args;
4331  va_start (args, format);
4332  va_list args_copy;
4333  va_copy (args_copy, args);
4334
4335  const char *str;
4336  int number;
4337  float fnumber;
4338
4339  while (*format)
4340    {
4341      switch (*format++)
4342	{
4343	case 's': // string
4344	  str = va_arg (args_copy, const char *);
4345	  break;
4346	case 'd': // int
4347	  number = va_arg (args_copy, int);
4348	  break;
4349	case 'f': // float
4350	  fnumber = va_arg (args_copy, double);
4351	  break;
4352	default:
4353	  break;
4354	}
4355    }
4356  va_end (args_copy);
4357  va_end (args);
4358}
4359
4360int
4361main ()
4362{
4363
4364  // Check bool.
4365  _Bool success = false;
4366
4367  // Check restrict.
4368  if (test_restrict ("String literal") == 0)
4369    success = true;
4370  char *restrict newvar = "Another string";
4371
4372  // Check varargs.
4373  test_varargs ("s, d' f .", "string", 65, 34.234);
4374  test_varargs_macros ();
4375
4376  // Check flexible array members.
4377  struct incomplete_array *ia =
4378    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4379  ia->datasize = 10;
4380  for (int i = 0; i < ia->datasize; ++i)
4381    ia->data[i] = i * 1.234;
4382
4383  // Check named initializers.
4384  struct named_init ni = {
4385    .number = 34,
4386    .name = L"Test wide string",
4387    .average = 543.34343,
4388  };
4389
4390  ni.number = 58;
4391
4392  int dynamic_array[ni.number];
4393  dynamic_array[ni.number - 1] = 543;
4394
4395  // work around unused variable warnings
4396  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4397	  || dynamic_array[ni.number - 1] != 543);
4398
4399  ;
4400  return 0;
4401}
4402_ACEOF
4403for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4404do
4405  CC="$ac_save_CC $ac_arg"
4406  if ac_fn_c_try_compile "$LINENO"; then :
4407  ac_cv_prog_cc_c99=$ac_arg
4408fi
4409rm -f core conftest.err conftest.$ac_objext
4410  test "x$ac_cv_prog_cc_c99" != "xno" && break
4411done
4412rm -f conftest.$ac_ext
4413CC=$ac_save_CC
4414
4415fi
4416# AC_CACHE_VAL
4417case "x$ac_cv_prog_cc_c99" in
4418  x)
4419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4420$as_echo "none needed" >&6; } ;;
4421  xno)
4422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4423$as_echo "unsupported" >&6; } ;;
4424  *)
4425    CC="$CC $ac_cv_prog_cc_c99"
4426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4427$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4428esac
4429if test "x$ac_cv_prog_cc_c99" != xno; then :
4430  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4431else
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434if ${ac_cv_prog_cc_c89+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  ac_cv_prog_cc_c89=no
4438ac_save_CC=$CC
4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441#include <stdarg.h>
4442#include <stdio.h>
4443struct stat;
4444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4445struct buf { int x; };
4446FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447static char *e (p, i)
4448     char **p;
4449     int i;
4450{
4451  return p[i];
4452}
4453static char *f (char * (*g) (char **, int), char **p, ...)
4454{
4455  char *s;
4456  va_list v;
4457  va_start (v,p);
4458  s = g (p, va_arg (v,int));
4459  va_end (v);
4460  return s;
4461}
4462
4463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4464   function prototypes and stuff, but not '\xHH' hex character constants.
4465   These don't provoke an error unfortunately, instead are silently treated
4466   as 'x'.  The following induces an error, until -std is added to get
4467   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4468   array size at least.  It's necessary to write '\x00'==0 to get something
4469   that's true only with -std.  */
4470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4471
4472/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473   inside strings and character constants.  */
4474#define FOO(x) 'x'
4475int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476
4477int test (int i, double x);
4478struct s1 {int (*f) (int a);};
4479struct s2 {int (*f) (double a);};
4480int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481int argc;
4482char **argv;
4483int
4484main ()
4485{
4486return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493do
4494  CC="$ac_save_CC $ac_arg"
4495  if ac_fn_c_try_compile "$LINENO"; then :
4496  ac_cv_prog_cc_c89=$ac_arg
4497fi
4498rm -f core conftest.err conftest.$ac_objext
4499  test "x$ac_cv_prog_cc_c89" != "xno" && break
4500done
4501rm -f conftest.$ac_ext
4502CC=$ac_save_CC
4503
4504fi
4505# AC_CACHE_VAL
4506case "x$ac_cv_prog_cc_c89" in
4507  x)
4508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509$as_echo "none needed" >&6; } ;;
4510  xno)
4511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512$as_echo "unsupported" >&6; } ;;
4513  *)
4514    CC="$CC $ac_cv_prog_cc_c89"
4515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4517esac
4518if test "x$ac_cv_prog_cc_c89" != xno; then :
4519  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4520else
4521  ac_cv_prog_cc_stdc=no
4522fi
4523
4524fi
4525 ;;
4526esac
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4528$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4529  if ${ac_cv_prog_cc_stdc+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531fi
4532
4533  case $ac_cv_prog_cc_stdc in #(
4534  no) :
4535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4536$as_echo "unsupported" >&6; } ;; #(
4537  '') :
4538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4539$as_echo "none needed" >&6; } ;; #(
4540  *) :
4541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4542$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4543esac
4544
4545
4546ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4552$as_echo_n "checking how to run the C preprocessor... " >&6; }
4553# On Suns, sometimes $CPP names a directory.
4554if test -n "$CPP" && test -d "$CPP"; then
4555  CPP=
4556fi
4557if test -z "$CPP"; then
4558  if ${ac_cv_prog_CPP+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561      # Double quotes because CPP needs to be expanded
4562    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563    do
4564      ac_preproc_ok=false
4565for ac_c_preproc_warn_flag in '' yes
4566do
4567  # Use a header file that comes with gcc, so configuring glibc
4568  # with a fresh cross-compiler works.
4569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570  # <limits.h> exists even on freestanding compilers.
4571  # On the NeXT, cc -E runs the code through the compiler's parser,
4572  # not just through cpp. "Syntax error" is here to catch this case.
4573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h.  */
4575#ifdef __STDC__
4576# include <limits.h>
4577#else
4578# include <assert.h>
4579#endif
4580		     Syntax error
4581_ACEOF
4582if ac_fn_c_try_cpp "$LINENO"; then :
4583
4584else
4585  # Broken: fails on valid input.
4586continue
4587fi
4588rm -f conftest.err conftest.i conftest.$ac_ext
4589
4590  # OK, works on sane cases.  Now check whether nonexistent headers
4591  # can be detected and how.
4592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h.  */
4594#include <ac_nonexistent.h>
4595_ACEOF
4596if ac_fn_c_try_cpp "$LINENO"; then :
4597  # Broken: success on invalid input.
4598continue
4599else
4600  # Passes both tests.
4601ac_preproc_ok=:
4602break
4603fi
4604rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606done
4607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608rm -f conftest.i conftest.err conftest.$ac_ext
4609if $ac_preproc_ok; then :
4610  break
4611fi
4612
4613    done
4614    ac_cv_prog_CPP=$CPP
4615
4616fi
4617  CPP=$ac_cv_prog_CPP
4618else
4619  ac_cv_prog_CPP=$CPP
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4622$as_echo "$CPP" >&6; }
4623ac_preproc_ok=false
4624for ac_c_preproc_warn_flag in '' yes
4625do
4626  # Use a header file that comes with gcc, so configuring glibc
4627  # with a fresh cross-compiler works.
4628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4629  # <limits.h> exists even on freestanding compilers.
4630  # On the NeXT, cc -E runs the code through the compiler's parser,
4631  # not just through cpp. "Syntax error" is here to catch this case.
4632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634#ifdef __STDC__
4635# include <limits.h>
4636#else
4637# include <assert.h>
4638#endif
4639		     Syntax error
4640_ACEOF
4641if ac_fn_c_try_cpp "$LINENO"; then :
4642
4643else
4644  # Broken: fails on valid input.
4645continue
4646fi
4647rm -f conftest.err conftest.i conftest.$ac_ext
4648
4649  # OK, works on sane cases.  Now check whether nonexistent headers
4650  # can be detected and how.
4651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h.  */
4653#include <ac_nonexistent.h>
4654_ACEOF
4655if ac_fn_c_try_cpp "$LINENO"; then :
4656  # Broken: success on invalid input.
4657continue
4658else
4659  # Passes both tests.
4660ac_preproc_ok=:
4661break
4662fi
4663rm -f conftest.err conftest.i conftest.$ac_ext
4664
4665done
4666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667rm -f conftest.i conftest.err conftest.$ac_ext
4668if $ac_preproc_ok; then :
4669
4670else
4671  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4673as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4674See \`config.log' for more details" "$LINENO" 5; }
4675fi
4676
4677ac_ext=c
4678ac_cpp='$CPP $CPPFLAGS'
4679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4685$as_echo_n "checking whether ln -s works... " >&6; }
4686LN_S=$as_ln_s
4687if test "$LN_S" = "ln -s"; then
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4689$as_echo "yes" >&6; }
4690else
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4692$as_echo "no, using $LN_S" >&6; }
4693fi
4694
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4696$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4697set x ${MAKE-make}
4698ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4699if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  cat >conftest.make <<\_ACEOF
4703SHELL = /bin/sh
4704all:
4705	@echo '@@@%%%=$(MAKE)=@@@%%%'
4706_ACEOF
4707# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4708case `${MAKE-make} -f conftest.make 2>/dev/null` in
4709  *@@@%%%=?*=@@@%%%*)
4710    eval ac_cv_prog_make_${ac_make}_set=yes;;
4711  *)
4712    eval ac_cv_prog_make_${ac_make}_set=no;;
4713esac
4714rm -f conftest.make
4715fi
4716if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4718$as_echo "yes" >&6; }
4719  SET_MAKE=
4720else
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722$as_echo "no" >&6; }
4723  SET_MAKE="MAKE=${MAKE-make}"
4724fi
4725
4726# libtool for internal linking
4727# Check whether --enable-static was given.
4728if test "${enable_static+set}" = set; then :
4729  enableval=$enable_static; p=${PACKAGE-default}
4730    case $enableval in
4731    yes) enable_static=yes ;;
4732    no) enable_static=no ;;
4733    *)
4734     enable_static=no
4735      # Look at the argument we got.  We use all the common list separators.
4736      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4737      for pkg in $enableval; do
4738	IFS=$lt_save_ifs
4739	if test "X$pkg" = "X$p"; then
4740	  enable_static=yes
4741	fi
4742      done
4743      IFS=$lt_save_ifs
4744      ;;
4745    esac
4746else
4747  enable_static=no
4748fi
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758enable_dlopen=yes
4759
4760
4761
4762case `pwd` in
4763  *\ * | *\	*)
4764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4765$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4766esac
4767
4768
4769
4770macro_version='2.4.6'
4771macro_revision='2.4.6'
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785ltmain=$ac_aux_dir/ltmain.sh
4786
4787# Make sure we can run config.sub.
4788$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4789  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4792$as_echo_n "checking build system type... " >&6; }
4793if ${ac_cv_build+:} false; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796  ac_build_alias=$build_alias
4797test "x$ac_build_alias" = x &&
4798  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4799test "x$ac_build_alias" = x &&
4800  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4801ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4802  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4803
4804fi
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4806$as_echo "$ac_cv_build" >&6; }
4807case $ac_cv_build in
4808*-*-*) ;;
4809*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4810esac
4811build=$ac_cv_build
4812ac_save_IFS=$IFS; IFS='-'
4813set x $ac_cv_build
4814shift
4815build_cpu=$1
4816build_vendor=$2
4817shift; shift
4818# Remember, the first character of IFS is used to create $*,
4819# except with old shells:
4820build_os=$*
4821IFS=$ac_save_IFS
4822case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4823
4824
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4826$as_echo_n "checking host system type... " >&6; }
4827if ${ac_cv_host+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  if test "x$host_alias" = x; then
4831  ac_cv_host=$ac_cv_build
4832else
4833  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4834    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4835fi
4836
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4839$as_echo "$ac_cv_host" >&6; }
4840case $ac_cv_host in
4841*-*-*) ;;
4842*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4843esac
4844host=$ac_cv_host
4845ac_save_IFS=$IFS; IFS='-'
4846set x $ac_cv_host
4847shift
4848host_cpu=$1
4849host_vendor=$2
4850shift; shift
4851# Remember, the first character of IFS is used to create $*,
4852# except with old shells:
4853host_os=$*
4854IFS=$ac_save_IFS
4855case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4856
4857
4858# Backslashify metacharacters that are still active within
4859# double-quoted strings.
4860sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4861
4862# Same as above, but do not quote variable references.
4863double_quote_subst='s/\(["`\\]\)/\\\1/g'
4864
4865# Sed substitution to delay expansion of an escaped shell variable in a
4866# double_quote_subst'ed string.
4867delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4868
4869# Sed substitution to delay expansion of an escaped single quote.
4870delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4871
4872# Sed substitution to avoid accidental globbing in evaled expressions
4873no_glob_subst='s/\*/\\\*/g'
4874
4875ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4876ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4877ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4878
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4880$as_echo_n "checking how to print strings... " >&6; }
4881# Test print first, because it will be a builtin if present.
4882if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4883   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4884  ECHO='print -r --'
4885elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4886  ECHO='printf %s\n'
4887else
4888  # Use this function as a fallback that always works.
4889  func_fallback_echo ()
4890  {
4891    eval 'cat <<_LTECHO_EOF
4892$1
4893_LTECHO_EOF'
4894  }
4895  ECHO='func_fallback_echo'
4896fi
4897
4898# func_echo_all arg...
4899# Invoke $ECHO with all args, space-separated.
4900func_echo_all ()
4901{
4902    $ECHO ""
4903}
4904
4905case $ECHO in
4906  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4907$as_echo "printf" >&6; } ;;
4908  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4909$as_echo "print -r" >&6; } ;;
4910  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4911$as_echo "cat" >&6; } ;;
4912esac
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4928$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4929if ${ac_cv_path_SED+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4933     for ac_i in 1 2 3 4 5 6 7; do
4934       ac_script="$ac_script$as_nl$ac_script"
4935     done
4936     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4937     { ac_script=; unset ac_script;}
4938     if test -z "$SED"; then
4939  ac_path_SED_found=false
4940  # Loop through the user's path and test for each of PROGNAME-LIST
4941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_prog in sed gsed; do
4947    for ac_exec_ext in '' $ac_executable_extensions; do
4948      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4949      as_fn_executable_p "$ac_path_SED" || continue
4950# Check for GNU ac_path_SED and select it if it is found.
4951  # Check for GNU $ac_path_SED
4952case `"$ac_path_SED" --version 2>&1` in
4953*GNU*)
4954  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4955*)
4956  ac_count=0
4957  $as_echo_n 0123456789 >"conftest.in"
4958  while :
4959  do
4960    cat "conftest.in" "conftest.in" >"conftest.tmp"
4961    mv "conftest.tmp" "conftest.in"
4962    cp "conftest.in" "conftest.nl"
4963    $as_echo '' >> "conftest.nl"
4964    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966    as_fn_arith $ac_count + 1 && ac_count=$as_val
4967    if test $ac_count -gt ${ac_path_SED_max-0}; then
4968      # Best one so far, save it but keep looking for a better one
4969      ac_cv_path_SED="$ac_path_SED"
4970      ac_path_SED_max=$ac_count
4971    fi
4972    # 10*(2^10) chars as input seems more than enough
4973    test $ac_count -gt 10 && break
4974  done
4975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976esac
4977
4978      $ac_path_SED_found && break 3
4979    done
4980  done
4981  done
4982IFS=$as_save_IFS
4983  if test -z "$ac_cv_path_SED"; then
4984    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4985  fi
4986else
4987  ac_cv_path_SED=$SED
4988fi
4989
4990fi
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4992$as_echo "$ac_cv_path_SED" >&6; }
4993 SED="$ac_cv_path_SED"
4994  rm -f conftest.sed
4995
4996test -z "$SED" && SED=sed
4997Xsed="$SED -e 1s/^X//"
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5010$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5011if ${ac_cv_path_GREP+:} false; then :
5012  $as_echo_n "(cached) " >&6
5013else
5014  if test -z "$GREP"; then
5015  ac_path_GREP_found=false
5016  # Loop through the user's path and test for each of PROGNAME-LIST
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_prog in grep ggrep; do
5023    for ac_exec_ext in '' $ac_executable_extensions; do
5024      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5025      as_fn_executable_p "$ac_path_GREP" || continue
5026# Check for GNU ac_path_GREP and select it if it is found.
5027  # Check for GNU $ac_path_GREP
5028case `"$ac_path_GREP" --version 2>&1` in
5029*GNU*)
5030  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5031*)
5032  ac_count=0
5033  $as_echo_n 0123456789 >"conftest.in"
5034  while :
5035  do
5036    cat "conftest.in" "conftest.in" >"conftest.tmp"
5037    mv "conftest.tmp" "conftest.in"
5038    cp "conftest.in" "conftest.nl"
5039    $as_echo 'GREP' >> "conftest.nl"
5040    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042    as_fn_arith $ac_count + 1 && ac_count=$as_val
5043    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5044      # Best one so far, save it but keep looking for a better one
5045      ac_cv_path_GREP="$ac_path_GREP"
5046      ac_path_GREP_max=$ac_count
5047    fi
5048    # 10*(2^10) chars as input seems more than enough
5049    test $ac_count -gt 10 && break
5050  done
5051  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052esac
5053
5054      $ac_path_GREP_found && break 3
5055    done
5056  done
5057  done
5058IFS=$as_save_IFS
5059  if test -z "$ac_cv_path_GREP"; then
5060    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061  fi
5062else
5063  ac_cv_path_GREP=$GREP
5064fi
5065
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5068$as_echo "$ac_cv_path_GREP" >&6; }
5069 GREP="$ac_cv_path_GREP"
5070
5071
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5073$as_echo_n "checking for egrep... " >&6; }
5074if ${ac_cv_path_EGREP+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5078   then ac_cv_path_EGREP="$GREP -E"
5079   else
5080     if test -z "$EGREP"; then
5081  ac_path_EGREP_found=false
5082  # Loop through the user's path and test for each of PROGNAME-LIST
5083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085do
5086  IFS=$as_save_IFS
5087  test -z "$as_dir" && as_dir=.
5088    for ac_prog in egrep; do
5089    for ac_exec_ext in '' $ac_executable_extensions; do
5090      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5091      as_fn_executable_p "$ac_path_EGREP" || continue
5092# Check for GNU ac_path_EGREP and select it if it is found.
5093  # Check for GNU $ac_path_EGREP
5094case `"$ac_path_EGREP" --version 2>&1` in
5095*GNU*)
5096  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5097*)
5098  ac_count=0
5099  $as_echo_n 0123456789 >"conftest.in"
5100  while :
5101  do
5102    cat "conftest.in" "conftest.in" >"conftest.tmp"
5103    mv "conftest.tmp" "conftest.in"
5104    cp "conftest.in" "conftest.nl"
5105    $as_echo 'EGREP' >> "conftest.nl"
5106    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108    as_fn_arith $ac_count + 1 && ac_count=$as_val
5109    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5110      # Best one so far, save it but keep looking for a better one
5111      ac_cv_path_EGREP="$ac_path_EGREP"
5112      ac_path_EGREP_max=$ac_count
5113    fi
5114    # 10*(2^10) chars as input seems more than enough
5115    test $ac_count -gt 10 && break
5116  done
5117  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118esac
5119
5120      $ac_path_EGREP_found && break 3
5121    done
5122  done
5123  done
5124IFS=$as_save_IFS
5125  if test -z "$ac_cv_path_EGREP"; then
5126    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5127  fi
5128else
5129  ac_cv_path_EGREP=$EGREP
5130fi
5131
5132   fi
5133fi
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5135$as_echo "$ac_cv_path_EGREP" >&6; }
5136 EGREP="$ac_cv_path_EGREP"
5137
5138
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5140$as_echo_n "checking for fgrep... " >&6; }
5141if ${ac_cv_path_FGREP+:} false; then :
5142  $as_echo_n "(cached) " >&6
5143else
5144  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5145   then ac_cv_path_FGREP="$GREP -F"
5146   else
5147     if test -z "$FGREP"; then
5148  ac_path_FGREP_found=false
5149  # Loop through the user's path and test for each of PROGNAME-LIST
5150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155    for ac_prog in fgrep; do
5156    for ac_exec_ext in '' $ac_executable_extensions; do
5157      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5158      as_fn_executable_p "$ac_path_FGREP" || continue
5159# Check for GNU ac_path_FGREP and select it if it is found.
5160  # Check for GNU $ac_path_FGREP
5161case `"$ac_path_FGREP" --version 2>&1` in
5162*GNU*)
5163  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5164*)
5165  ac_count=0
5166  $as_echo_n 0123456789 >"conftest.in"
5167  while :
5168  do
5169    cat "conftest.in" "conftest.in" >"conftest.tmp"
5170    mv "conftest.tmp" "conftest.in"
5171    cp "conftest.in" "conftest.nl"
5172    $as_echo 'FGREP' >> "conftest.nl"
5173    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175    as_fn_arith $ac_count + 1 && ac_count=$as_val
5176    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5177      # Best one so far, save it but keep looking for a better one
5178      ac_cv_path_FGREP="$ac_path_FGREP"
5179      ac_path_FGREP_max=$ac_count
5180    fi
5181    # 10*(2^10) chars as input seems more than enough
5182    test $ac_count -gt 10 && break
5183  done
5184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185esac
5186
5187      $ac_path_FGREP_found && break 3
5188    done
5189  done
5190  done
5191IFS=$as_save_IFS
5192  if test -z "$ac_cv_path_FGREP"; then
5193    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194  fi
5195else
5196  ac_cv_path_FGREP=$FGREP
5197fi
5198
5199   fi
5200fi
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5202$as_echo "$ac_cv_path_FGREP" >&6; }
5203 FGREP="$ac_cv_path_FGREP"
5204
5205
5206test -z "$GREP" && GREP=grep
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226# Check whether --with-gnu-ld was given.
5227if test "${with_gnu_ld+set}" = set; then :
5228  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5229else
5230  with_gnu_ld=no
5231fi
5232
5233ac_prog=ld
5234if test yes = "$GCC"; then
5235  # Check if gcc -print-prog-name=ld gives a path.
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5237$as_echo_n "checking for ld used by $CC... " >&6; }
5238  case $host in
5239  *-*-mingw*)
5240    # gcc leaves a trailing carriage return, which upsets mingw
5241    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5242  *)
5243    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5244  esac
5245  case $ac_prog in
5246    # Accept absolute paths.
5247    [\\/]* | ?:[\\/]*)
5248      re_direlt='/[^/][^/]*/\.\./'
5249      # Canonicalize the pathname of ld
5250      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5251      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5252	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5253      done
5254      test -z "$LD" && LD=$ac_prog
5255      ;;
5256  "")
5257    # If it fails, then pretend we aren't using GCC.
5258    ac_prog=ld
5259    ;;
5260  *)
5261    # If it is relative, then search for the first ld in PATH.
5262    with_gnu_ld=unknown
5263    ;;
5264  esac
5265elif test yes = "$with_gnu_ld"; then
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5267$as_echo_n "checking for GNU ld... " >&6; }
5268else
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5270$as_echo_n "checking for non-GNU ld... " >&6; }
5271fi
5272if ${lt_cv_path_LD+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275  if test -z "$LD"; then
5276  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5277  for ac_dir in $PATH; do
5278    IFS=$lt_save_ifs
5279    test -z "$ac_dir" && ac_dir=.
5280    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5281      lt_cv_path_LD=$ac_dir/$ac_prog
5282      # Check to see if the program is GNU ld.  I'd rather use --version,
5283      # but apparently some variants of GNU ld only accept -v.
5284      # Break only if it was the GNU/non-GNU ld that we prefer.
5285      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5286      *GNU* | *'with BFD'*)
5287	test no != "$with_gnu_ld" && break
5288	;;
5289      *)
5290	test yes != "$with_gnu_ld" && break
5291	;;
5292      esac
5293    fi
5294  done
5295  IFS=$lt_save_ifs
5296else
5297  lt_cv_path_LD=$LD # Let the user override the test with a path.
5298fi
5299fi
5300
5301LD=$lt_cv_path_LD
5302if test -n "$LD"; then
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5304$as_echo "$LD" >&6; }
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5311$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5312if ${lt_cv_prog_gnu_ld+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5316case `$LD -v 2>&1 </dev/null` in
5317*GNU* | *'with BFD'*)
5318  lt_cv_prog_gnu_ld=yes
5319  ;;
5320*)
5321  lt_cv_prog_gnu_ld=no
5322  ;;
5323esac
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5326$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5327with_gnu_ld=$lt_cv_prog_gnu_ld
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5338$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5339if ${lt_cv_path_NM+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  if test -n "$NM"; then
5343  # Let the user override the test.
5344  lt_cv_path_NM=$NM
5345else
5346  lt_nm_to_check=${ac_tool_prefix}nm
5347  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5348    lt_nm_to_check="$lt_nm_to_check nm"
5349  fi
5350  for lt_tmp_nm in $lt_nm_to_check; do
5351    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5352    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5353      IFS=$lt_save_ifs
5354      test -z "$ac_dir" && ac_dir=.
5355      tmp_nm=$ac_dir/$lt_tmp_nm
5356      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5357	# Check to see if the nm accepts a BSD-compat flag.
5358	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5359	#   nm: unknown option "B" ignored
5360	# Tru64's nm complains that /dev/null is an invalid object file
5361	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5362	case $build_os in
5363	mingw*) lt_bad_file=conftest.nm/nofile ;;
5364	*) lt_bad_file=/dev/null ;;
5365	esac
5366	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5367	*$lt_bad_file* | *'Invalid file or object type'*)
5368	  lt_cv_path_NM="$tmp_nm -B"
5369	  break 2
5370	  ;;
5371	*)
5372	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5373	  */dev/null*)
5374	    lt_cv_path_NM="$tmp_nm -p"
5375	    break 2
5376	    ;;
5377	  *)
5378	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5379	    continue # so that we can try to find one that supports BSD flags
5380	    ;;
5381	  esac
5382	  ;;
5383	esac
5384      fi
5385    done
5386    IFS=$lt_save_ifs
5387  done
5388  : ${lt_cv_path_NM=no}
5389fi
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5392$as_echo "$lt_cv_path_NM" >&6; }
5393if test no != "$lt_cv_path_NM"; then
5394  NM=$lt_cv_path_NM
5395else
5396  # Didn't find any BSD compatible name lister, look for dumpbin.
5397  if test -n "$DUMPBIN"; then :
5398    # Let the user override the test.
5399  else
5400    if test -n "$ac_tool_prefix"; then
5401  for ac_prog in dumpbin "link -dump"
5402  do
5403    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406$as_echo_n "checking for $ac_word... " >&6; }
5407if ${ac_cv_prog_DUMPBIN+:} false; then :
5408  $as_echo_n "(cached) " >&6
5409else
5410  if test -n "$DUMPBIN"; then
5411  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5412else
5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH
5415do
5416  IFS=$as_save_IFS
5417  test -z "$as_dir" && as_dir=.
5418    for ac_exec_ext in '' $ac_executable_extensions; do
5419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422    break 2
5423  fi
5424done
5425  done
5426IFS=$as_save_IFS
5427
5428fi
5429fi
5430DUMPBIN=$ac_cv_prog_DUMPBIN
5431if test -n "$DUMPBIN"; then
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5433$as_echo "$DUMPBIN" >&6; }
5434else
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436$as_echo "no" >&6; }
5437fi
5438
5439
5440    test -n "$DUMPBIN" && break
5441  done
5442fi
5443if test -z "$DUMPBIN"; then
5444  ac_ct_DUMPBIN=$DUMPBIN
5445  for ac_prog in dumpbin "link -dump"
5446do
5447  # Extract the first word of "$ac_prog", so it can be a program name with args.
5448set dummy $ac_prog; ac_word=$2
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
5451if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  if test -n "$ac_ct_DUMPBIN"; then
5455  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460  IFS=$as_save_IFS
5461  test -z "$as_dir" && as_dir=.
5462    for ac_exec_ext in '' $ac_executable_extensions; do
5463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466    break 2
5467  fi
5468done
5469  done
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5475if test -n "$ac_ct_DUMPBIN"; then
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5477$as_echo "$ac_ct_DUMPBIN" >&6; }
5478else
5479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
5481fi
5482
5483
5484  test -n "$ac_ct_DUMPBIN" && break
5485done
5486
5487  if test "x$ac_ct_DUMPBIN" = x; then
5488    DUMPBIN=":"
5489  else
5490    case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496    DUMPBIN=$ac_ct_DUMPBIN
5497  fi
5498fi
5499
5500    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5501    *COFF*)
5502      DUMPBIN="$DUMPBIN -symbols -headers"
5503      ;;
5504    *)
5505      DUMPBIN=:
5506      ;;
5507    esac
5508  fi
5509
5510  if test : != "$DUMPBIN"; then
5511    NM=$DUMPBIN
5512  fi
5513fi
5514test -z "$NM" && NM=nm
5515
5516
5517
5518
5519
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5522$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5523if ${lt_cv_nm_interface+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  lt_cv_nm_interface="BSD nm"
5527  echo "int some_variable = 0;" > conftest.$ac_ext
5528  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5529  (eval "$ac_compile" 2>conftest.err)
5530  cat conftest.err >&5
5531  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5532  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5533  cat conftest.err >&5
5534  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5535  cat conftest.out >&5
5536  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5537    lt_cv_nm_interface="MS dumpbin"
5538  fi
5539  rm -f conftest*
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5542$as_echo "$lt_cv_nm_interface" >&6; }
5543
5544# find the maximum length of command line arguments
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5546$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5547if ${lt_cv_sys_max_cmd_len+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550    i=0
5551  teststring=ABCD
5552
5553  case $build_os in
5554  msdosdjgpp*)
5555    # On DJGPP, this test can blow up pretty badly due to problems in libc
5556    # (any single argument exceeding 2000 bytes causes a buffer overrun
5557    # during glob expansion).  Even if it were fixed, the result of this
5558    # check would be larger than it should be.
5559    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5560    ;;
5561
5562  gnu*)
5563    # Under GNU Hurd, this test is not required because there is
5564    # no limit to the length of command line arguments.
5565    # Libtool will interpret -1 as no limit whatsoever
5566    lt_cv_sys_max_cmd_len=-1;
5567    ;;
5568
5569  cygwin* | mingw* | cegcc*)
5570    # On Win9x/ME, this test blows up -- it succeeds, but takes
5571    # about 5 minutes as the teststring grows exponentially.
5572    # Worse, since 9x/ME are not pre-emptively multitasking,
5573    # you end up with a "frozen" computer, even though with patience
5574    # the test eventually succeeds (with a max line length of 256k).
5575    # Instead, let's just punt: use the minimum linelength reported by
5576    # all of the supported platforms: 8192 (on NT/2K/XP).
5577    lt_cv_sys_max_cmd_len=8192;
5578    ;;
5579
5580  mint*)
5581    # On MiNT this can take a long time and run out of memory.
5582    lt_cv_sys_max_cmd_len=8192;
5583    ;;
5584
5585  amigaos*)
5586    # On AmigaOS with pdksh, this test takes hours, literally.
5587    # So we just punt and use a minimum line length of 8192.
5588    lt_cv_sys_max_cmd_len=8192;
5589    ;;
5590
5591  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5592    # This has been around since 386BSD, at least.  Likely further.
5593    if test -x /sbin/sysctl; then
5594      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5595    elif test -x /usr/sbin/sysctl; then
5596      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5597    else
5598      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5599    fi
5600    # And add a safety zone
5601    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5602    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5603    ;;
5604
5605  interix*)
5606    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5607    lt_cv_sys_max_cmd_len=196608
5608    ;;
5609
5610  os2*)
5611    # The test takes a long time on OS/2.
5612    lt_cv_sys_max_cmd_len=8192
5613    ;;
5614
5615  osf*)
5616    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5617    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5618    # nice to cause kernel panics so lets avoid the loop below.
5619    # First set a reasonable default.
5620    lt_cv_sys_max_cmd_len=16384
5621    #
5622    if test -x /sbin/sysconfig; then
5623      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5624        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5625      esac
5626    fi
5627    ;;
5628  sco3.2v5*)
5629    lt_cv_sys_max_cmd_len=102400
5630    ;;
5631  sysv5* | sco5v6* | sysv4.2uw2*)
5632    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5633    if test -n "$kargmax"; then
5634      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5635    else
5636      lt_cv_sys_max_cmd_len=32768
5637    fi
5638    ;;
5639  *)
5640    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5641    if test -n "$lt_cv_sys_max_cmd_len" && \
5642       test undefined != "$lt_cv_sys_max_cmd_len"; then
5643      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5644      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5645    else
5646      # Make teststring a little bigger before we do anything with it.
5647      # a 1K string should be a reasonable start.
5648      for i in 1 2 3 4 5 6 7 8; do
5649        teststring=$teststring$teststring
5650      done
5651      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5652      # If test is not a shell built-in, we'll probably end up computing a
5653      # maximum length that is only half of the actual maximum length, but
5654      # we can't tell.
5655      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5656	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5657	      test 17 != "$i" # 1/2 MB should be enough
5658      do
5659        i=`expr $i + 1`
5660        teststring=$teststring$teststring
5661      done
5662      # Only check the string length outside the loop.
5663      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5664      teststring=
5665      # Add a significant safety factor because C++ compilers can tack on
5666      # massive amounts of additional arguments before passing them to the
5667      # linker.  It appears as though 1/2 is a usable value.
5668      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5669    fi
5670    ;;
5671  esac
5672
5673fi
5674
5675if test -n "$lt_cv_sys_max_cmd_len"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5677$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5680$as_echo "none" >&6; }
5681fi
5682max_cmd_len=$lt_cv_sys_max_cmd_len
5683
5684
5685
5686
5687
5688
5689: ${CP="cp -f"}
5690: ${MV="mv -f"}
5691: ${RM="rm -f"}
5692
5693if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5694  lt_unset=unset
5695else
5696  lt_unset=false
5697fi
5698
5699
5700
5701
5702
5703# test EBCDIC or ASCII
5704case `echo X|tr X '\101'` in
5705 A) # ASCII based system
5706    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5707  lt_SP2NL='tr \040 \012'
5708  lt_NL2SP='tr \015\012 \040\040'
5709  ;;
5710 *) # EBCDIC based system
5711  lt_SP2NL='tr \100 \n'
5712  lt_NL2SP='tr \r\n \100\100'
5713  ;;
5714esac
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5725$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5726if ${lt_cv_to_host_file_cmd+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  case $host in
5730  *-*-mingw* )
5731    case $build in
5732      *-*-mingw* ) # actually msys
5733        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5734        ;;
5735      *-*-cygwin* )
5736        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5737        ;;
5738      * ) # otherwise, assume *nix
5739        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5740        ;;
5741    esac
5742    ;;
5743  *-*-cygwin* )
5744    case $build in
5745      *-*-mingw* ) # actually msys
5746        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5747        ;;
5748      *-*-cygwin* )
5749        lt_cv_to_host_file_cmd=func_convert_file_noop
5750        ;;
5751      * ) # otherwise, assume *nix
5752        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5753        ;;
5754    esac
5755    ;;
5756  * ) # unhandled hosts (and "normal" native builds)
5757    lt_cv_to_host_file_cmd=func_convert_file_noop
5758    ;;
5759esac
5760
5761fi
5762
5763to_host_file_cmd=$lt_cv_to_host_file_cmd
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5765$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5766
5767
5768
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5772$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5773if ${lt_cv_to_tool_file_cmd+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  #assume ordinary cross tools, or native build.
5777lt_cv_to_tool_file_cmd=func_convert_file_noop
5778case $host in
5779  *-*-mingw* )
5780    case $build in
5781      *-*-mingw* ) # actually msys
5782        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5783        ;;
5784    esac
5785    ;;
5786esac
5787
5788fi
5789
5790to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5792$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5793
5794
5795
5796
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5799$as_echo_n "checking for $LD option to reload object files... " >&6; }
5800if ${lt_cv_ld_reload_flag+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  lt_cv_ld_reload_flag='-r'
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5806$as_echo "$lt_cv_ld_reload_flag" >&6; }
5807reload_flag=$lt_cv_ld_reload_flag
5808case $reload_flag in
5809"" | " "*) ;;
5810*) reload_flag=" $reload_flag" ;;
5811esac
5812reload_cmds='$LD$reload_flag -o $output$reload_objs'
5813case $host_os in
5814  cygwin* | mingw* | pw32* | cegcc*)
5815    if test yes != "$GCC"; then
5816      reload_cmds=false
5817    fi
5818    ;;
5819  darwin*)
5820    if test yes = "$GCC"; then
5821      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5822    else
5823      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5824    fi
5825    ;;
5826esac
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836if test -n "$ac_tool_prefix"; then
5837  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}objdump; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_OBJDUMP+:} false; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if test -n "$OBJDUMP"; then
5845  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  test -z "$as_dir" && as_dir=.
5852    for ac_exec_ext in '' $ac_executable_extensions; do
5853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856    break 2
5857  fi
5858done
5859  done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864OBJDUMP=$ac_cv_prog_OBJDUMP
5865if test -n "$OBJDUMP"; then
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5867$as_echo "$OBJDUMP" >&6; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874fi
5875if test -z "$ac_cv_prog_OBJDUMP"; then
5876  ac_ct_OBJDUMP=$OBJDUMP
5877  # Extract the first word of "objdump", so it can be a program name with args.
5878set dummy objdump; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  if test -n "$ac_ct_OBJDUMP"; then
5885  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890  IFS=$as_save_IFS
5891  test -z "$as_dir" && as_dir=.
5892    for ac_exec_ext in '' $ac_executable_extensions; do
5893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896    break 2
5897  fi
5898done
5899  done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5905if test -n "$ac_ct_OBJDUMP"; then
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5907$as_echo "$ac_ct_OBJDUMP" >&6; }
5908else
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913  if test "x$ac_ct_OBJDUMP" = x; then
5914    OBJDUMP="false"
5915  else
5916    case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922    OBJDUMP=$ac_ct_OBJDUMP
5923  fi
5924else
5925  OBJDUMP="$ac_cv_prog_OBJDUMP"
5926fi
5927
5928test -z "$OBJDUMP" && OBJDUMP=objdump
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5939$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5940if ${lt_cv_deplibs_check_method+:} false; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  lt_cv_file_magic_cmd='$MAGIC_CMD'
5944lt_cv_file_magic_test_file=
5945lt_cv_deplibs_check_method='unknown'
5946# Need to set the preceding variable on all platforms that support
5947# interlibrary dependencies.
5948# 'none' -- dependencies not supported.
5949# 'unknown' -- same as none, but documents that we really don't know.
5950# 'pass_all' -- all dependencies passed with no checks.
5951# 'test_compile' -- check by making test program.
5952# 'file_magic [[regex]]' -- check by looking for files in library path
5953# that responds to the $file_magic_cmd with a given extended regex.
5954# If you have 'file' or equivalent on your system and you're not sure
5955# whether 'pass_all' will *always* work, you probably want this one.
5956
5957case $host_os in
5958aix[4-9]*)
5959  lt_cv_deplibs_check_method=pass_all
5960  ;;
5961
5962beos*)
5963  lt_cv_deplibs_check_method=pass_all
5964  ;;
5965
5966bsdi[45]*)
5967  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5968  lt_cv_file_magic_cmd='/usr/bin/file -L'
5969  lt_cv_file_magic_test_file=/shlib/libc.so
5970  ;;
5971
5972cygwin*)
5973  # func_win32_libid is a shell function defined in ltmain.sh
5974  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5975  lt_cv_file_magic_cmd='func_win32_libid'
5976  ;;
5977
5978mingw* | pw32*)
5979  # Base MSYS/MinGW do not provide the 'file' command needed by
5980  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5981  # unless we find 'file', for example because we are cross-compiling.
5982  if ( file / ) >/dev/null 2>&1; then
5983    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5984    lt_cv_file_magic_cmd='func_win32_libid'
5985  else
5986    # Keep this pattern in sync with the one in func_win32_libid.
5987    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5988    lt_cv_file_magic_cmd='$OBJDUMP -f'
5989  fi
5990  ;;
5991
5992cegcc*)
5993  # use the weaker test based on 'objdump'. See mingw*.
5994  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5995  lt_cv_file_magic_cmd='$OBJDUMP -f'
5996  ;;
5997
5998darwin* | rhapsody*)
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001
6002freebsd* | dragonfly*)
6003  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6004    case $host_cpu in
6005    i*86 )
6006      # Not sure whether the presence of OpenBSD here was a mistake.
6007      # Let's accept both of them until this is cleared up.
6008      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6009      lt_cv_file_magic_cmd=/usr/bin/file
6010      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6011      ;;
6012    esac
6013  else
6014    lt_cv_deplibs_check_method=pass_all
6015  fi
6016  ;;
6017
6018haiku*)
6019  lt_cv_deplibs_check_method=pass_all
6020  ;;
6021
6022hpux10.20* | hpux11*)
6023  lt_cv_file_magic_cmd=/usr/bin/file
6024  case $host_cpu in
6025  ia64*)
6026    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6027    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6028    ;;
6029  hppa*64*)
6030    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]'
6031    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6032    ;;
6033  *)
6034    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6035    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6036    ;;
6037  esac
6038  ;;
6039
6040interix[3-9]*)
6041  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6042  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6043  ;;
6044
6045irix5* | irix6* | nonstopux*)
6046  case $LD in
6047  *-32|*"-32 ") libmagic=32-bit;;
6048  *-n32|*"-n32 ") libmagic=N32;;
6049  *-64|*"-64 ") libmagic=64-bit;;
6050  *) libmagic=never-match;;
6051  esac
6052  lt_cv_deplibs_check_method=pass_all
6053  ;;
6054
6055# This must be glibc/ELF.
6056linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6057  lt_cv_deplibs_check_method=pass_all
6058  ;;
6059
6060netbsd*)
6061  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6062    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6063  else
6064    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6065  fi
6066  ;;
6067
6068newos6*)
6069  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6070  lt_cv_file_magic_cmd=/usr/bin/file
6071  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6072  ;;
6073
6074*nto* | *qnx*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077
6078openbsd* | bitrig*)
6079  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6080    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6081  else
6082    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083  fi
6084  ;;
6085
6086osf3* | osf4* | osf5*)
6087  lt_cv_deplibs_check_method=pass_all
6088  ;;
6089
6090rdos*)
6091  lt_cv_deplibs_check_method=pass_all
6092  ;;
6093
6094solaris*)
6095  lt_cv_deplibs_check_method=pass_all
6096  ;;
6097
6098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6099  lt_cv_deplibs_check_method=pass_all
6100  ;;
6101
6102sysv4 | sysv4.3*)
6103  case $host_vendor in
6104  motorola)
6105    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]'
6106    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6107    ;;
6108  ncr)
6109    lt_cv_deplibs_check_method=pass_all
6110    ;;
6111  sequent)
6112    lt_cv_file_magic_cmd='/bin/file'
6113    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6114    ;;
6115  sni)
6116    lt_cv_file_magic_cmd='/bin/file'
6117    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6118    lt_cv_file_magic_test_file=/lib/libc.so
6119    ;;
6120  siemens)
6121    lt_cv_deplibs_check_method=pass_all
6122    ;;
6123  pc)
6124    lt_cv_deplibs_check_method=pass_all
6125    ;;
6126  esac
6127  ;;
6128
6129tpf*)
6130  lt_cv_deplibs_check_method=pass_all
6131  ;;
6132os2*)
6133  lt_cv_deplibs_check_method=pass_all
6134  ;;
6135esac
6136
6137fi
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6139$as_echo "$lt_cv_deplibs_check_method" >&6; }
6140
6141file_magic_glob=
6142want_nocaseglob=no
6143if test "$build" = "$host"; then
6144  case $host_os in
6145  mingw* | pw32*)
6146    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6147      want_nocaseglob=yes
6148    else
6149      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6150    fi
6151    ;;
6152  esac
6153fi
6154
6155file_magic_cmd=$lt_cv_file_magic_cmd
6156deplibs_check_method=$lt_cv_deplibs_check_method
6157test -z "$deplibs_check_method" && deplibs_check_method=unknown
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180if test -n "$ac_tool_prefix"; then
6181  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6182set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
6185if ${ac_cv_prog_DLLTOOL+:} false; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  if test -n "$DLLTOOL"; then
6189  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194  IFS=$as_save_IFS
6195  test -z "$as_dir" && as_dir=.
6196    for ac_exec_ext in '' $ac_executable_extensions; do
6197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200    break 2
6201  fi
6202done
6203  done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208DLLTOOL=$ac_cv_prog_DLLTOOL
6209if test -n "$DLLTOOL"; then
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6211$as_echo "$DLLTOOL" >&6; }
6212else
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218fi
6219if test -z "$ac_cv_prog_DLLTOOL"; then
6220  ac_ct_DLLTOOL=$DLLTOOL
6221  # Extract the first word of "dlltool", so it can be a program name with args.
6222set dummy dlltool; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
6225if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  if test -n "$ac_ct_DLLTOOL"; then
6229  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236    for ac_exec_ext in '' $ac_executable_extensions; do
6237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243  done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6249if test -n "$ac_ct_DLLTOOL"; then
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6251$as_echo "$ac_ct_DLLTOOL" >&6; }
6252else
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257  if test "x$ac_ct_DLLTOOL" = x; then
6258    DLLTOOL="false"
6259  else
6260    case $cross_compiling:$ac_tool_warned in
6261yes:)
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264ac_tool_warned=yes ;;
6265esac
6266    DLLTOOL=$ac_ct_DLLTOOL
6267  fi
6268else
6269  DLLTOOL="$ac_cv_prog_DLLTOOL"
6270fi
6271
6272test -z "$DLLTOOL" && DLLTOOL=dlltool
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6284$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6285if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  lt_cv_sharedlib_from_linklib_cmd='unknown'
6289
6290case $host_os in
6291cygwin* | mingw* | pw32* | cegcc*)
6292  # two different shell functions defined in ltmain.sh;
6293  # decide which one to use based on capabilities of $DLLTOOL
6294  case `$DLLTOOL --help 2>&1` in
6295  *--identify-strict*)
6296    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6297    ;;
6298  *)
6299    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6300    ;;
6301  esac
6302  ;;
6303*)
6304  # fallback: assume linklib IS sharedlib
6305  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6306  ;;
6307esac
6308
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6311$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6312sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6313test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6314
6315
6316
6317
6318
6319
6320
6321
6322if test -n "$ac_tool_prefix"; then
6323  for ac_prog in ar
6324  do
6325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if ${ac_cv_prog_AR+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  if test -n "$AR"; then
6333  ac_cv_prog_AR="$AR" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338  IFS=$as_save_IFS
6339  test -z "$as_dir" && as_dir=.
6340    for ac_exec_ext in '' $ac_executable_extensions; do
6341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344    break 2
6345  fi
6346done
6347  done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352AR=$ac_cv_prog_AR
6353if test -n "$AR"; then
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6355$as_echo "$AR" >&6; }
6356else
6357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361
6362    test -n "$AR" && break
6363  done
6364fi
6365if test -z "$AR"; then
6366  ac_ct_AR=$AR
6367  for ac_prog in ar
6368do
6369  # Extract the first word of "$ac_prog", so it can be a program name with args.
6370set dummy $ac_prog; ac_word=$2
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372$as_echo_n "checking for $ac_word... " >&6; }
6373if ${ac_cv_prog_ac_ct_AR+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  if test -n "$ac_ct_AR"; then
6377  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382  IFS=$as_save_IFS
6383  test -z "$as_dir" && as_dir=.
6384    for ac_exec_ext in '' $ac_executable_extensions; do
6385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386    ac_cv_prog_ac_ct_AR="$ac_prog"
6387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388    break 2
6389  fi
6390done
6391  done
6392IFS=$as_save_IFS
6393
6394fi
6395fi
6396ac_ct_AR=$ac_cv_prog_ac_ct_AR
6397if test -n "$ac_ct_AR"; then
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6399$as_echo "$ac_ct_AR" >&6; }
6400else
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405
6406  test -n "$ac_ct_AR" && break
6407done
6408
6409  if test "x$ac_ct_AR" = x; then
6410    AR="false"
6411  else
6412    case $cross_compiling:$ac_tool_warned in
6413yes:)
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416ac_tool_warned=yes ;;
6417esac
6418    AR=$ac_ct_AR
6419  fi
6420fi
6421
6422: ${AR=ar}
6423: ${AR_FLAGS=cru}
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6436$as_echo_n "checking for archiver @FILE support... " >&6; }
6437if ${lt_cv_ar_at_file+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  lt_cv_ar_at_file=no
6441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443
6444int
6445main ()
6446{
6447
6448  ;
6449  return 0;
6450}
6451_ACEOF
6452if ac_fn_c_try_compile "$LINENO"; then :
6453  echo conftest.$ac_objext > conftest.lst
6454      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6455      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6456  (eval $lt_ar_try) 2>&5
6457  ac_status=$?
6458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459  test $ac_status = 0; }
6460      if test 0 -eq "$ac_status"; then
6461	# Ensure the archiver fails upon bogus file names.
6462	rm -f conftest.$ac_objext libconftest.a
6463	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6464  (eval $lt_ar_try) 2>&5
6465  ac_status=$?
6466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467  test $ac_status = 0; }
6468	if test 0 -ne "$ac_status"; then
6469          lt_cv_ar_at_file=@
6470        fi
6471      fi
6472      rm -f conftest.* libconftest.a
6473
6474fi
6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6479$as_echo "$lt_cv_ar_at_file" >&6; }
6480
6481if test no = "$lt_cv_ar_at_file"; then
6482  archiver_list_spec=
6483else
6484  archiver_list_spec=$lt_cv_ar_at_file
6485fi
6486
6487
6488
6489
6490
6491
6492
6493if test -n "$ac_tool_prefix"; then
6494  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6495set dummy ${ac_tool_prefix}strip; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
6498if ${ac_cv_prog_STRIP+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  if test -n "$STRIP"; then
6502  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509    for ac_exec_ext in '' $ac_executable_extensions; do
6510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516  done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521STRIP=$ac_cv_prog_STRIP
6522if test -n "$STRIP"; then
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6524$as_echo "$STRIP" >&6; }
6525else
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
6531fi
6532if test -z "$ac_cv_prog_STRIP"; then
6533  ac_ct_STRIP=$STRIP
6534  # Extract the first word of "strip", so it can be a program name with args.
6535set dummy strip; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$ac_ct_STRIP"; then
6542  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551    ac_cv_prog_ac_ct_STRIP="strip"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6562if test -n "$ac_ct_STRIP"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6564$as_echo "$ac_ct_STRIP" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570  if test "x$ac_ct_STRIP" = x; then
6571    STRIP=":"
6572  else
6573    case $cross_compiling:$ac_tool_warned in
6574yes:)
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577ac_tool_warned=yes ;;
6578esac
6579    STRIP=$ac_ct_STRIP
6580  fi
6581else
6582  STRIP="$ac_cv_prog_STRIP"
6583fi
6584
6585test -z "$STRIP" && STRIP=:
6586
6587
6588
6589
6590
6591
6592if test -n "$ac_tool_prefix"; then
6593  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6594set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596$as_echo_n "checking for $ac_word... " >&6; }
6597if ${ac_cv_prog_RANLIB+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  if test -n "$RANLIB"; then
6601  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606  IFS=$as_save_IFS
6607  test -z "$as_dir" && as_dir=.
6608    for ac_exec_ext in '' $ac_executable_extensions; do
6609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612    break 2
6613  fi
6614done
6615  done
6616IFS=$as_save_IFS
6617
6618fi
6619fi
6620RANLIB=$ac_cv_prog_RANLIB
6621if test -n "$RANLIB"; then
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6623$as_echo "$RANLIB" >&6; }
6624else
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626$as_echo "no" >&6; }
6627fi
6628
6629
6630fi
6631if test -z "$ac_cv_prog_RANLIB"; then
6632  ac_ct_RANLIB=$RANLIB
6633  # Extract the first word of "ranlib", so it can be a program name with args.
6634set dummy ranlib; ac_word=$2
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636$as_echo_n "checking for $ac_word... " >&6; }
6637if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  if test -n "$ac_ct_RANLIB"; then
6641  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646  IFS=$as_save_IFS
6647  test -z "$as_dir" && as_dir=.
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650    ac_cv_prog_ac_ct_RANLIB="ranlib"
6651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658fi
6659fi
6660ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6661if test -n "$ac_ct_RANLIB"; then
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6663$as_echo "$ac_ct_RANLIB" >&6; }
6664else
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
6667fi
6668
6669  if test "x$ac_ct_RANLIB" = x; then
6670    RANLIB=":"
6671  else
6672    case $cross_compiling:$ac_tool_warned in
6673yes:)
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676ac_tool_warned=yes ;;
6677esac
6678    RANLIB=$ac_ct_RANLIB
6679  fi
6680else
6681  RANLIB="$ac_cv_prog_RANLIB"
6682fi
6683
6684test -z "$RANLIB" && RANLIB=:
6685
6686
6687
6688
6689
6690
6691# Determine commands to create old-style static archives.
6692old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6693old_postinstall_cmds='chmod 644 $oldlib'
6694old_postuninstall_cmds=
6695
6696if test -n "$RANLIB"; then
6697  case $host_os in
6698  bitrig* | openbsd*)
6699    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6700    ;;
6701  *)
6702    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6703    ;;
6704  esac
6705  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6706fi
6707
6708case $host_os in
6709  darwin*)
6710    lock_old_archive_extraction=yes ;;
6711  *)
6712    lock_old_archive_extraction=no ;;
6713esac
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753# If no C compiler was specified, use CC.
6754LTCC=${LTCC-"$CC"}
6755
6756# If no C compiler flags were specified, use CFLAGS.
6757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6758
6759# Allow CC to be a program name with arguments.
6760compiler=$CC
6761
6762
6763# Check for command to grab the raw symbol name followed by C symbol from nm.
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6765$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6766if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769
6770# These are sane defaults that work on at least a few old systems.
6771# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6772
6773# Character class describing NM global symbol codes.
6774symcode='[BCDEGRST]'
6775
6776# Regexp to match symbols that can be accessed directly from C.
6777sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6778
6779# Define system-specific variables.
6780case $host_os in
6781aix*)
6782  symcode='[BCDT]'
6783  ;;
6784cygwin* | mingw* | pw32* | cegcc*)
6785  symcode='[ABCDGISTW]'
6786  ;;
6787hpux*)
6788  if test ia64 = "$host_cpu"; then
6789    symcode='[ABCDEGRST]'
6790  fi
6791  ;;
6792irix* | nonstopux*)
6793  symcode='[BCDEGRST]'
6794  ;;
6795osf*)
6796  symcode='[BCDEGQRST]'
6797  ;;
6798solaris*)
6799  symcode='[BDRT]'
6800  ;;
6801sco3.2v5*)
6802  symcode='[DT]'
6803  ;;
6804sysv4.2uw2*)
6805  symcode='[DT]'
6806  ;;
6807sysv5* | sco5v6* | unixware* | OpenUNIX*)
6808  symcode='[ABDT]'
6809  ;;
6810sysv4)
6811  symcode='[DFNSTU]'
6812  ;;
6813esac
6814
6815# If we're using GNU nm, then use its standard symbol codes.
6816case `$NM -V 2>&1` in
6817*GNU* | *'with BFD'*)
6818  symcode='[ABCDGIRSTW]' ;;
6819esac
6820
6821if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6822  # Gets list of data symbols to import.
6823  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6824  # Adjust the below global symbol transforms to fixup imported variables.
6825  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6826  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6827  lt_c_name_lib_hook="\
6828  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6829  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6830else
6831  # Disable hooks by default.
6832  lt_cv_sys_global_symbol_to_import=
6833  lt_cdecl_hook=
6834  lt_c_name_hook=
6835  lt_c_name_lib_hook=
6836fi
6837
6838# Transform an extracted symbol line into a proper C declaration.
6839# Some systems (esp. on ia64) link data and code symbols differently,
6840# so use this general approach.
6841lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6842$lt_cdecl_hook\
6843" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6844" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6845
6846# Transform an extracted symbol line into symbol name and symbol address
6847lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6848$lt_c_name_hook\
6849" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6850" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6851
6852# Transform an extracted symbol line into symbol name with lib prefix and
6853# symbol address.
6854lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6855$lt_c_name_lib_hook\
6856" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6857" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6858" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6859
6860# Handle CRLF in mingw tool chain
6861opt_cr=
6862case $build_os in
6863mingw*)
6864  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6865  ;;
6866esac
6867
6868# Try without a prefix underscore, then with it.
6869for ac_symprfx in "" "_"; do
6870
6871  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6872  symxfrm="\\1 $ac_symprfx\\2 \\2"
6873
6874  # Write the raw and C identifiers.
6875  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6876    # Fake it for dumpbin and say T for any non-static function,
6877    # D for any global variable and I for any imported variable.
6878    # Also find C++ and __fastcall symbols from MSVC++,
6879    # which start with @ or ?.
6880    lt_cv_sys_global_symbol_pipe="$AWK '"\
6881"     {last_section=section; section=\$ 3};"\
6882"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6883"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6884"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6885"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6886"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6887"     \$ 0!~/External *\|/{next};"\
6888"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6889"     {if(hide[section]) next};"\
6890"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6891"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6892"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6893"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6894"     ' prfx=^$ac_symprfx"
6895  else
6896    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6897  fi
6898  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6899
6900  # Check to see that the pipe works correctly.
6901  pipe_works=no
6902
6903  rm -f conftest*
6904  cat > conftest.$ac_ext <<_LT_EOF
6905#ifdef __cplusplus
6906extern "C" {
6907#endif
6908char nm_test_var;
6909void nm_test_func(void);
6910void nm_test_func(void){}
6911#ifdef __cplusplus
6912}
6913#endif
6914int main(){nm_test_var='a';nm_test_func();return(0);}
6915_LT_EOF
6916
6917  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918  (eval $ac_compile) 2>&5
6919  ac_status=$?
6920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921  test $ac_status = 0; }; then
6922    # Now try to grab the symbols.
6923    nlist=conftest.nm
6924    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6925  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6926  ac_status=$?
6927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928  test $ac_status = 0; } && test -s "$nlist"; then
6929      # Try sorting and uniquifying the output.
6930      if sort "$nlist" | uniq > "$nlist"T; then
6931	mv -f "$nlist"T "$nlist"
6932      else
6933	rm -f "$nlist"T
6934      fi
6935
6936      # Make sure that we snagged all the symbols we need.
6937      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6938	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6939	  cat <<_LT_EOF > conftest.$ac_ext
6940/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6941#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6942/* DATA imports from DLLs on WIN32 can't be const, because runtime
6943   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6944# define LT_DLSYM_CONST
6945#elif defined __osf__
6946/* This system does not cope well with relocations in const data.  */
6947# define LT_DLSYM_CONST
6948#else
6949# define LT_DLSYM_CONST const
6950#endif
6951
6952#ifdef __cplusplus
6953extern "C" {
6954#endif
6955
6956_LT_EOF
6957	  # Now generate the symbol file.
6958	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6959
6960	  cat <<_LT_EOF >> conftest.$ac_ext
6961
6962/* The mapping between symbol names and symbols.  */
6963LT_DLSYM_CONST struct {
6964  const char *name;
6965  void       *address;
6966}
6967lt__PROGRAM__LTX_preloaded_symbols[] =
6968{
6969  { "@PROGRAM@", (void *) 0 },
6970_LT_EOF
6971	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6972	  cat <<\_LT_EOF >> conftest.$ac_ext
6973  {0, (void *) 0}
6974};
6975
6976/* This works around a problem in FreeBSD linker */
6977#ifdef FREEBSD_WORKAROUND
6978static const void *lt_preloaded_setup() {
6979  return lt__PROGRAM__LTX_preloaded_symbols;
6980}
6981#endif
6982
6983#ifdef __cplusplus
6984}
6985#endif
6986_LT_EOF
6987	  # Now try linking the two files.
6988	  mv conftest.$ac_objext conftstm.$ac_objext
6989	  lt_globsym_save_LIBS=$LIBS
6990	  lt_globsym_save_CFLAGS=$CFLAGS
6991	  LIBS=conftstm.$ac_objext
6992	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6993	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6994  (eval $ac_link) 2>&5
6995  ac_status=$?
6996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6998	    pipe_works=yes
6999	  fi
7000	  LIBS=$lt_globsym_save_LIBS
7001	  CFLAGS=$lt_globsym_save_CFLAGS
7002	else
7003	  echo "cannot find nm_test_func in $nlist" >&5
7004	fi
7005      else
7006	echo "cannot find nm_test_var in $nlist" >&5
7007      fi
7008    else
7009      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7010    fi
7011  else
7012    echo "$progname: failed program was:" >&5
7013    cat conftest.$ac_ext >&5
7014  fi
7015  rm -rf conftest* conftst*
7016
7017  # Do not use the global_symbol_pipe unless it works.
7018  if test yes = "$pipe_works"; then
7019    break
7020  else
7021    lt_cv_sys_global_symbol_pipe=
7022  fi
7023done
7024
7025fi
7026
7027if test -z "$lt_cv_sys_global_symbol_pipe"; then
7028  lt_cv_sys_global_symbol_to_cdecl=
7029fi
7030if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7032$as_echo "failed" >&6; }
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7035$as_echo "ok" >&6; }
7036fi
7037
7038# Response file support.
7039if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040  nm_file_list_spec='@'
7041elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7042  nm_file_list_spec='@'
7043fi
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7082$as_echo_n "checking for sysroot... " >&6; }
7083
7084# Check whether --with-sysroot was given.
7085if test "${with_sysroot+set}" = set; then :
7086  withval=$with_sysroot;
7087else
7088  with_sysroot=no
7089fi
7090
7091
7092lt_sysroot=
7093case $with_sysroot in #(
7094 yes)
7095   if test yes = "$GCC"; then
7096     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7097   fi
7098   ;; #(
7099 /*)
7100   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7101   ;; #(
7102 no|'')
7103   ;; #(
7104 *)
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7106$as_echo "$with_sysroot" >&6; }
7107   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7108   ;;
7109esac
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7112$as_echo "${lt_sysroot:-no}" >&6; }
7113
7114
7115
7116
7117
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7119$as_echo_n "checking for a working dd... " >&6; }
7120if ${ac_cv_path_lt_DD+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  printf 0123456789abcdef0123456789abcdef >conftest.i
7124cat conftest.i conftest.i >conftest2.i
7125: ${lt_DD:=$DD}
7126if test -z "$lt_DD"; then
7127  ac_path_lt_DD_found=false
7128  # Loop through the user's path and test for each of PROGNAME-LIST
7129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132  IFS=$as_save_IFS
7133  test -z "$as_dir" && as_dir=.
7134    for ac_prog in dd; do
7135    for ac_exec_ext in '' $ac_executable_extensions; do
7136      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7137      as_fn_executable_p "$ac_path_lt_DD" || continue
7138if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7139  cmp -s conftest.i conftest.out \
7140  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7141fi
7142      $ac_path_lt_DD_found && break 3
7143    done
7144  done
7145  done
7146IFS=$as_save_IFS
7147  if test -z "$ac_cv_path_lt_DD"; then
7148    :
7149  fi
7150else
7151  ac_cv_path_lt_DD=$lt_DD
7152fi
7153
7154rm -f conftest.i conftest2.i conftest.out
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7157$as_echo "$ac_cv_path_lt_DD" >&6; }
7158
7159
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7161$as_echo_n "checking how to truncate binary pipes... " >&6; }
7162if ${lt_cv_truncate_bin+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  printf 0123456789abcdef0123456789abcdef >conftest.i
7166cat conftest.i conftest.i >conftest2.i
7167lt_cv_truncate_bin=
7168if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7169  cmp -s conftest.i conftest.out \
7170  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7171fi
7172rm -f conftest.i conftest2.i conftest.out
7173test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7174fi
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7176$as_echo "$lt_cv_truncate_bin" >&6; }
7177
7178
7179
7180
7181
7182
7183
7184# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7185func_cc_basename ()
7186{
7187    for cc_temp in $*""; do
7188      case $cc_temp in
7189        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7190        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7191        \-*) ;;
7192        *) break;;
7193      esac
7194    done
7195    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7196}
7197
7198# Check whether --enable-libtool-lock was given.
7199if test "${enable_libtool_lock+set}" = set; then :
7200  enableval=$enable_libtool_lock;
7201fi
7202
7203test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7204
7205# Some flags need to be propagated to the compiler or linker for good
7206# libtool support.
7207case $host in
7208ia64-*-hpux*)
7209  # Find out what ABI is being produced by ac_compile, and set mode
7210  # options accordingly.
7211  echo 'int i;' > conftest.$ac_ext
7212  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7213  (eval $ac_compile) 2>&5
7214  ac_status=$?
7215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216  test $ac_status = 0; }; then
7217    case `/usr/bin/file conftest.$ac_objext` in
7218      *ELF-32*)
7219	HPUX_IA64_MODE=32
7220	;;
7221      *ELF-64*)
7222	HPUX_IA64_MODE=64
7223	;;
7224    esac
7225  fi
7226  rm -rf conftest*
7227  ;;
7228*-*-irix6*)
7229  # Find out what ABI is being produced by ac_compile, and set linker
7230  # options accordingly.
7231  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7232  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233  (eval $ac_compile) 2>&5
7234  ac_status=$?
7235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236  test $ac_status = 0; }; then
7237    if test yes = "$lt_cv_prog_gnu_ld"; then
7238      case `/usr/bin/file conftest.$ac_objext` in
7239	*32-bit*)
7240	  LD="${LD-ld} -melf32bsmip"
7241	  ;;
7242	*N32*)
7243	  LD="${LD-ld} -melf32bmipn32"
7244	  ;;
7245	*64-bit*)
7246	  LD="${LD-ld} -melf64bmip"
7247	;;
7248      esac
7249    else
7250      case `/usr/bin/file conftest.$ac_objext` in
7251	*32-bit*)
7252	  LD="${LD-ld} -32"
7253	  ;;
7254	*N32*)
7255	  LD="${LD-ld} -n32"
7256	  ;;
7257	*64-bit*)
7258	  LD="${LD-ld} -64"
7259	  ;;
7260      esac
7261    fi
7262  fi
7263  rm -rf conftest*
7264  ;;
7265
7266mips64*-*linux*)
7267  # Find out what ABI is being produced by ac_compile, and set linker
7268  # options accordingly.
7269  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7270  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7271  (eval $ac_compile) 2>&5
7272  ac_status=$?
7273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274  test $ac_status = 0; }; then
7275    emul=elf
7276    case `/usr/bin/file conftest.$ac_objext` in
7277      *32-bit*)
7278	emul="${emul}32"
7279	;;
7280      *64-bit*)
7281	emul="${emul}64"
7282	;;
7283    esac
7284    case `/usr/bin/file conftest.$ac_objext` in
7285      *MSB*)
7286	emul="${emul}btsmip"
7287	;;
7288      *LSB*)
7289	emul="${emul}ltsmip"
7290	;;
7291    esac
7292    case `/usr/bin/file conftest.$ac_objext` in
7293      *N32*)
7294	emul="${emul}n32"
7295	;;
7296    esac
7297    LD="${LD-ld} -m $emul"
7298  fi
7299  rm -rf conftest*
7300  ;;
7301
7302x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7303s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7304  # Find out what ABI is being produced by ac_compile, and set linker
7305  # options accordingly.  Note that the listed cases only cover the
7306  # situations where additional linker options are needed (such as when
7307  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7308  # vice versa); the common cases where no linker options are needed do
7309  # not appear in the list.
7310  echo 'int i;' > conftest.$ac_ext
7311  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7312  (eval $ac_compile) 2>&5
7313  ac_status=$?
7314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315  test $ac_status = 0; }; then
7316    case `/usr/bin/file conftest.o` in
7317      *32-bit*)
7318	case $host in
7319	  x86_64-*kfreebsd*-gnu)
7320	    LD="${LD-ld} -m elf_i386_fbsd"
7321	    ;;
7322	  x86_64-*linux*)
7323	    case `/usr/bin/file conftest.o` in
7324	      *x86-64*)
7325		LD="${LD-ld} -m elf32_x86_64"
7326		;;
7327	      *)
7328		LD="${LD-ld} -m elf_i386"
7329		;;
7330	    esac
7331	    ;;
7332	  powerpc64le-*linux*)
7333	    LD="${LD-ld} -m elf32lppclinux"
7334	    ;;
7335	  powerpc64-*linux*)
7336	    LD="${LD-ld} -m elf32ppclinux"
7337	    ;;
7338	  s390x-*linux*)
7339	    LD="${LD-ld} -m elf_s390"
7340	    ;;
7341	  sparc64-*linux*)
7342	    LD="${LD-ld} -m elf32_sparc"
7343	    ;;
7344	esac
7345	;;
7346      *64-bit*)
7347	case $host in
7348	  x86_64-*kfreebsd*-gnu)
7349	    LD="${LD-ld} -m elf_x86_64_fbsd"
7350	    ;;
7351	  x86_64-*linux*)
7352	    LD="${LD-ld} -m elf_x86_64"
7353	    ;;
7354	  powerpcle-*linux*)
7355	    LD="${LD-ld} -m elf64lppc"
7356	    ;;
7357	  powerpc-*linux*)
7358	    LD="${LD-ld} -m elf64ppc"
7359	    ;;
7360	  s390*-*linux*|s390*-*tpf*)
7361	    LD="${LD-ld} -m elf64_s390"
7362	    ;;
7363	  sparc*-*linux*)
7364	    LD="${LD-ld} -m elf64_sparc"
7365	    ;;
7366	esac
7367	;;
7368    esac
7369  fi
7370  rm -rf conftest*
7371  ;;
7372
7373*-*-sco3.2v5*)
7374  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7375  SAVE_CFLAGS=$CFLAGS
7376  CFLAGS="$CFLAGS -belf"
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7378$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7379if ${lt_cv_cc_needs_belf+:} false; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382  ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387
7388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h.  */
7390
7391int
7392main ()
7393{
7394
7395  ;
7396  return 0;
7397}
7398_ACEOF
7399if ac_fn_c_try_link "$LINENO"; then :
7400  lt_cv_cc_needs_belf=yes
7401else
7402  lt_cv_cc_needs_belf=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext \
7405    conftest$ac_exeext conftest.$ac_ext
7406     ac_ext=c
7407ac_cpp='$CPP $CPPFLAGS'
7408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7414$as_echo "$lt_cv_cc_needs_belf" >&6; }
7415  if test yes != "$lt_cv_cc_needs_belf"; then
7416    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7417    CFLAGS=$SAVE_CFLAGS
7418  fi
7419  ;;
7420*-*solaris*)
7421  # Find out what ABI is being produced by ac_compile, and set linker
7422  # options accordingly.
7423  echo 'int i;' > conftest.$ac_ext
7424  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7425  (eval $ac_compile) 2>&5
7426  ac_status=$?
7427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428  test $ac_status = 0; }; then
7429    case `/usr/bin/file conftest.o` in
7430    *64-bit*)
7431      case $lt_cv_prog_gnu_ld in
7432      yes*)
7433        case $host in
7434        i?86-*-solaris*|x86_64-*-solaris*)
7435          LD="${LD-ld} -m elf_x86_64"
7436          ;;
7437        sparc*-*-solaris*)
7438          LD="${LD-ld} -m elf64_sparc"
7439          ;;
7440        esac
7441        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7442        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7443          LD=${LD-ld}_sol2
7444        fi
7445        ;;
7446      *)
7447	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7448	  LD="${LD-ld} -64"
7449	fi
7450	;;
7451      esac
7452      ;;
7453    esac
7454  fi
7455  rm -rf conftest*
7456  ;;
7457esac
7458
7459need_locks=$enable_libtool_lock
7460
7461if test -n "$ac_tool_prefix"; then
7462  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}mt; ac_word=$2
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
7466if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  if test -n "$MANIFEST_TOOL"; then
7470  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475  IFS=$as_save_IFS
7476  test -z "$as_dir" && as_dir=.
7477    for ac_exec_ext in '' $ac_executable_extensions; do
7478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481    break 2
7482  fi
7483done
7484  done
7485IFS=$as_save_IFS
7486
7487fi
7488fi
7489MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7490if test -n "$MANIFEST_TOOL"; then
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7492$as_echo "$MANIFEST_TOOL" >&6; }
7493else
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
7496fi
7497
7498
7499fi
7500if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7501  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7502  # Extract the first word of "mt", so it can be a program name with args.
7503set dummy mt; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  if test -n "$ac_ct_MANIFEST_TOOL"; then
7510  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7530if test -n "$ac_ct_MANIFEST_TOOL"; then
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7532$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7533else
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7539    MANIFEST_TOOL=":"
7540  else
7541    case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7548  fi
7549else
7550  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7551fi
7552
7553test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7555$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7556if ${lt_cv_path_mainfest_tool+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  lt_cv_path_mainfest_tool=no
7560  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7561  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7562  cat conftest.err >&5
7563  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7564    lt_cv_path_mainfest_tool=yes
7565  fi
7566  rm -f conftest*
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7569$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7570if test yes != "$lt_cv_path_mainfest_tool"; then
7571  MANIFEST_TOOL=:
7572fi
7573
7574
7575
7576
7577
7578
7579  case $host_os in
7580    rhapsody* | darwin*)
7581    if test -n "$ac_tool_prefix"; then
7582  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7583set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585$as_echo_n "checking for $ac_word... " >&6; }
7586if ${ac_cv_prog_DSYMUTIL+:} false; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  if test -n "$DSYMUTIL"; then
7590  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7591else
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595  IFS=$as_save_IFS
7596  test -z "$as_dir" && as_dir=.
7597    for ac_exec_ext in '' $ac_executable_extensions; do
7598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601    break 2
7602  fi
7603done
7604  done
7605IFS=$as_save_IFS
7606
7607fi
7608fi
7609DSYMUTIL=$ac_cv_prog_DSYMUTIL
7610if test -n "$DSYMUTIL"; then
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7612$as_echo "$DSYMUTIL" >&6; }
7613else
7614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615$as_echo "no" >&6; }
7616fi
7617
7618
7619fi
7620if test -z "$ac_cv_prog_DSYMUTIL"; then
7621  ac_ct_DSYMUTIL=$DSYMUTIL
7622  # Extract the first word of "dsymutil", so it can be a program name with args.
7623set dummy dsymutil; ac_word=$2
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  if test -n "$ac_ct_DSYMUTIL"; then
7630  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7631else
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635  IFS=$as_save_IFS
7636  test -z "$as_dir" && as_dir=.
7637    for ac_exec_ext in '' $ac_executable_extensions; do
7638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641    break 2
7642  fi
7643done
7644  done
7645IFS=$as_save_IFS
7646
7647fi
7648fi
7649ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7650if test -n "$ac_ct_DSYMUTIL"; then
7651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7652$as_echo "$ac_ct_DSYMUTIL" >&6; }
7653else
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
7656fi
7657
7658  if test "x$ac_ct_DSYMUTIL" = x; then
7659    DSYMUTIL=":"
7660  else
7661    case $cross_compiling:$ac_tool_warned in
7662yes:)
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665ac_tool_warned=yes ;;
7666esac
7667    DSYMUTIL=$ac_ct_DSYMUTIL
7668  fi
7669else
7670  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7671fi
7672
7673    if test -n "$ac_tool_prefix"; then
7674  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7675set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if ${ac_cv_prog_NMEDIT+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  if test -n "$NMEDIT"; then
7682  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687  IFS=$as_save_IFS
7688  test -z "$as_dir" && as_dir=.
7689    for ac_exec_ext in '' $ac_executable_extensions; do
7690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693    break 2
7694  fi
7695done
7696  done
7697IFS=$as_save_IFS
7698
7699fi
7700fi
7701NMEDIT=$ac_cv_prog_NMEDIT
7702if test -n "$NMEDIT"; then
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7704$as_echo "$NMEDIT" >&6; }
7705else
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710
7711fi
7712if test -z "$ac_cv_prog_NMEDIT"; then
7713  ac_ct_NMEDIT=$NMEDIT
7714  # Extract the first word of "nmedit", so it can be a program name with args.
7715set dummy nmedit; ac_word=$2
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  if test -n "$ac_ct_NMEDIT"; then
7722  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729    for ac_exec_ext in '' $ac_executable_extensions; do
7730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736  done
7737IFS=$as_save_IFS
7738
7739fi
7740fi
7741ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7742if test -n "$ac_ct_NMEDIT"; then
7743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7744$as_echo "$ac_ct_NMEDIT" >&6; }
7745else
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
7748fi
7749
7750  if test "x$ac_ct_NMEDIT" = x; then
7751    NMEDIT=":"
7752  else
7753    case $cross_compiling:$ac_tool_warned in
7754yes:)
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757ac_tool_warned=yes ;;
7758esac
7759    NMEDIT=$ac_ct_NMEDIT
7760  fi
7761else
7762  NMEDIT="$ac_cv_prog_NMEDIT"
7763fi
7764
7765    if test -n "$ac_tool_prefix"; then
7766  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}lipo; ac_word=$2
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769$as_echo_n "checking for $ac_word... " >&6; }
7770if ${ac_cv_prog_LIPO+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  if test -n "$LIPO"; then
7774  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  test -z "$as_dir" && as_dir=.
7781    for ac_exec_ext in '' $ac_executable_extensions; do
7782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788  done
7789IFS=$as_save_IFS
7790
7791fi
7792fi
7793LIPO=$ac_cv_prog_LIPO
7794if test -n "$LIPO"; then
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7796$as_echo "$LIPO" >&6; }
7797else
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800fi
7801
7802
7803fi
7804if test -z "$ac_cv_prog_LIPO"; then
7805  ac_ct_LIPO=$LIPO
7806  # Extract the first word of "lipo", so it can be a program name with args.
7807set dummy lipo; ac_word=$2
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  if test -n "$ac_ct_LIPO"; then
7814  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821    for ac_exec_ext in '' $ac_executable_extensions; do
7822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823    ac_cv_prog_ac_ct_LIPO="lipo"
7824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828  done
7829IFS=$as_save_IFS
7830
7831fi
7832fi
7833ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7834if test -n "$ac_ct_LIPO"; then
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7836$as_echo "$ac_ct_LIPO" >&6; }
7837else
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842  if test "x$ac_ct_LIPO" = x; then
7843    LIPO=":"
7844  else
7845    case $cross_compiling:$ac_tool_warned in
7846yes:)
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851    LIPO=$ac_ct_LIPO
7852  fi
7853else
7854  LIPO="$ac_cv_prog_LIPO"
7855fi
7856
7857    if test -n "$ac_tool_prefix"; then
7858  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7859set dummy ${ac_tool_prefix}otool; ac_word=$2
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861$as_echo_n "checking for $ac_word... " >&6; }
7862if ${ac_cv_prog_OTOOL+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865  if test -n "$OTOOL"; then
7866  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7867else
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871  IFS=$as_save_IFS
7872  test -z "$as_dir" && as_dir=.
7873    for ac_exec_ext in '' $ac_executable_extensions; do
7874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877    break 2
7878  fi
7879done
7880  done
7881IFS=$as_save_IFS
7882
7883fi
7884fi
7885OTOOL=$ac_cv_prog_OTOOL
7886if test -n "$OTOOL"; then
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7888$as_echo "$OTOOL" >&6; }
7889else
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892fi
7893
7894
7895fi
7896if test -z "$ac_cv_prog_OTOOL"; then
7897  ac_ct_OTOOL=$OTOOL
7898  # Extract the first word of "otool", so it can be a program name with args.
7899set dummy otool; ac_word=$2
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  if test -n "$ac_ct_OTOOL"; then
7906  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911  IFS=$as_save_IFS
7912  test -z "$as_dir" && as_dir=.
7913    for ac_exec_ext in '' $ac_executable_extensions; do
7914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915    ac_cv_prog_ac_ct_OTOOL="otool"
7916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917    break 2
7918  fi
7919done
7920  done
7921IFS=$as_save_IFS
7922
7923fi
7924fi
7925ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7926if test -n "$ac_ct_OTOOL"; then
7927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7928$as_echo "$ac_ct_OTOOL" >&6; }
7929else
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933
7934  if test "x$ac_ct_OTOOL" = x; then
7935    OTOOL=":"
7936  else
7937    case $cross_compiling:$ac_tool_warned in
7938yes:)
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941ac_tool_warned=yes ;;
7942esac
7943    OTOOL=$ac_ct_OTOOL
7944  fi
7945else
7946  OTOOL="$ac_cv_prog_OTOOL"
7947fi
7948
7949    if test -n "$ac_tool_prefix"; then
7950  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7951set dummy ${ac_tool_prefix}otool64; ac_word=$2
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953$as_echo_n "checking for $ac_word... " >&6; }
7954if ${ac_cv_prog_OTOOL64+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  if test -n "$OTOOL64"; then
7958  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963  IFS=$as_save_IFS
7964  test -z "$as_dir" && as_dir=.
7965    for ac_exec_ext in '' $ac_executable_extensions; do
7966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969    break 2
7970  fi
7971done
7972  done
7973IFS=$as_save_IFS
7974
7975fi
7976fi
7977OTOOL64=$ac_cv_prog_OTOOL64
7978if test -n "$OTOOL64"; then
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7980$as_echo "$OTOOL64" >&6; }
7981else
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984fi
7985
7986
7987fi
7988if test -z "$ac_cv_prog_OTOOL64"; then
7989  ac_ct_OTOOL64=$OTOOL64
7990  # Extract the first word of "otool64", so it can be a program name with args.
7991set dummy otool64; ac_word=$2
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993$as_echo_n "checking for $ac_word... " >&6; }
7994if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  if test -n "$ac_ct_OTOOL64"; then
7998  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003  IFS=$as_save_IFS
8004  test -z "$as_dir" && as_dir=.
8005    for ac_exec_ext in '' $ac_executable_extensions; do
8006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007    ac_cv_prog_ac_ct_OTOOL64="otool64"
8008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009    break 2
8010  fi
8011done
8012  done
8013IFS=$as_save_IFS
8014
8015fi
8016fi
8017ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8018if test -n "$ac_ct_OTOOL64"; then
8019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8020$as_echo "$ac_ct_OTOOL64" >&6; }
8021else
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
8024fi
8025
8026  if test "x$ac_ct_OTOOL64" = x; then
8027    OTOOL64=":"
8028  else
8029    case $cross_compiling:$ac_tool_warned in
8030yes:)
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033ac_tool_warned=yes ;;
8034esac
8035    OTOOL64=$ac_ct_OTOOL64
8036  fi
8037else
8038  OTOOL64="$ac_cv_prog_OTOOL64"
8039fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8068$as_echo_n "checking for -single_module linker flag... " >&6; }
8069if ${lt_cv_apple_cc_single_mod+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  lt_cv_apple_cc_single_mod=no
8073      if test -z "$LT_MULTI_MODULE"; then
8074	# By default we will add the -single_module flag. You can override
8075	# by either setting the environment variable LT_MULTI_MODULE
8076	# non-empty at configure time, or by adding -multi_module to the
8077	# link flags.
8078	rm -rf libconftest.dylib*
8079	echo "int foo(void){return 1;}" > conftest.c
8080	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8081-dynamiclib -Wl,-single_module conftest.c" >&5
8082	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8083	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8084        _lt_result=$?
8085	# If there is a non-empty error log, and "single_module"
8086	# appears in it, assume the flag caused a linker warning
8087        if test -s conftest.err && $GREP single_module conftest.err; then
8088	  cat conftest.err >&5
8089	# Otherwise, if the output was created with a 0 exit code from
8090	# the compiler, it worked.
8091	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8092	  lt_cv_apple_cc_single_mod=yes
8093	else
8094	  cat conftest.err >&5
8095	fi
8096	rm -rf libconftest.dylib*
8097	rm -f conftest.*
8098      fi
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8101$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8102
8103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8104$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8105if ${lt_cv_ld_exported_symbols_list+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  lt_cv_ld_exported_symbols_list=no
8109      save_LDFLAGS=$LDFLAGS
8110      echo "_main" > conftest.sym
8111      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8112      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h.  */
8114
8115int
8116main ()
8117{
8118
8119  ;
8120  return 0;
8121}
8122_ACEOF
8123if ac_fn_c_try_link "$LINENO"; then :
8124  lt_cv_ld_exported_symbols_list=yes
8125else
8126  lt_cv_ld_exported_symbols_list=no
8127fi
8128rm -f core conftest.err conftest.$ac_objext \
8129    conftest$ac_exeext conftest.$ac_ext
8130	LDFLAGS=$save_LDFLAGS
8131
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8134$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8135
8136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8137$as_echo_n "checking for -force_load linker flag... " >&6; }
8138if ${lt_cv_ld_force_load+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  lt_cv_ld_force_load=no
8142      cat > conftest.c << _LT_EOF
8143int forced_loaded() { return 2;}
8144_LT_EOF
8145      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8146      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8147      echo "$AR cru libconftest.a conftest.o" >&5
8148      $AR cru libconftest.a conftest.o 2>&5
8149      echo "$RANLIB libconftest.a" >&5
8150      $RANLIB libconftest.a 2>&5
8151      cat > conftest.c << _LT_EOF
8152int main() { return 0;}
8153_LT_EOF
8154      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8155      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8156      _lt_result=$?
8157      if test -s conftest.err && $GREP force_load conftest.err; then
8158	cat conftest.err >&5
8159      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8160	lt_cv_ld_force_load=yes
8161      else
8162	cat conftest.err >&5
8163      fi
8164        rm -f conftest.err libconftest.a conftest conftest.c
8165        rm -rf conftest.dSYM
8166
8167fi
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8169$as_echo "$lt_cv_ld_force_load" >&6; }
8170    case $host_os in
8171    rhapsody* | darwin1.[012])
8172      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8173    darwin1.*)
8174      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8175    darwin*) # darwin 5.x on
8176      # if running on 10.5 or later, the deployment target defaults
8177      # to the OS version, if on x86, and 10.4, the deployment
8178      # target defaults to 10.4. Don't you love it?
8179      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8180	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8181	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8182	10.[012][,.]*)
8183	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8184	10.*)
8185	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8186      esac
8187    ;;
8188  esac
8189    if test yes = "$lt_cv_apple_cc_single_mod"; then
8190      _lt_dar_single_mod='$single_module'
8191    fi
8192    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8193      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8194    else
8195      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8196    fi
8197    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8198      _lt_dsymutil='~$DSYMUTIL $lib || :'
8199    else
8200      _lt_dsymutil=
8201    fi
8202    ;;
8203  esac
8204
8205# func_munge_path_list VARIABLE PATH
8206# -----------------------------------
8207# VARIABLE is name of variable containing _space_ separated list of
8208# directories to be munged by the contents of PATH, which is string
8209# having a format:
8210# "DIR[:DIR]:"
8211#       string "DIR[ DIR]" will be prepended to VARIABLE
8212# ":DIR[:DIR]"
8213#       string "DIR[ DIR]" will be appended to VARIABLE
8214# "DIRP[:DIRP]::[DIRA:]DIRA"
8215#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8216#       "DIRA[ DIRA]" will be appended to VARIABLE
8217# "DIR[:DIR]"
8218#       VARIABLE will be replaced by "DIR[ DIR]"
8219func_munge_path_list ()
8220{
8221    case x$2 in
8222    x)
8223        ;;
8224    *:)
8225        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8226        ;;
8227    x:*)
8228        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8229        ;;
8230    *::*)
8231        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8232        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8233        ;;
8234    *)
8235        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8236        ;;
8237    esac
8238}
8239
8240
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8242$as_echo_n "checking for ANSI C header files... " >&6; }
8243if ${ac_cv_header_stdc+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248#include <stdlib.h>
8249#include <stdarg.h>
8250#include <string.h>
8251#include <float.h>
8252
8253int
8254main ()
8255{
8256
8257  ;
8258  return 0;
8259}
8260_ACEOF
8261if ac_fn_c_try_compile "$LINENO"; then :
8262  ac_cv_header_stdc=yes
8263else
8264  ac_cv_header_stdc=no
8265fi
8266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267
8268if test $ac_cv_header_stdc = yes; then
8269  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272#include <string.h>
8273
8274_ACEOF
8275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8276  $EGREP "memchr" >/dev/null 2>&1; then :
8277
8278else
8279  ac_cv_header_stdc=no
8280fi
8281rm -f conftest*
8282
8283fi
8284
8285if test $ac_cv_header_stdc = yes; then
8286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288/* end confdefs.h.  */
8289#include <stdlib.h>
8290
8291_ACEOF
8292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8293  $EGREP "free" >/dev/null 2>&1; then :
8294
8295else
8296  ac_cv_header_stdc=no
8297fi
8298rm -f conftest*
8299
8300fi
8301
8302if test $ac_cv_header_stdc = yes; then
8303  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8304  if test "$cross_compiling" = yes; then :
8305  :
8306else
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309#include <ctype.h>
8310#include <stdlib.h>
8311#if ((' ' & 0x0FF) == 0x020)
8312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8314#else
8315# define ISLOWER(c) \
8316		   (('a' <= (c) && (c) <= 'i') \
8317		     || ('j' <= (c) && (c) <= 'r') \
8318		     || ('s' <= (c) && (c) <= 'z'))
8319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8320#endif
8321
8322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8323int
8324main ()
8325{
8326  int i;
8327  for (i = 0; i < 256; i++)
8328    if (XOR (islower (i), ISLOWER (i))
8329	|| toupper (i) != TOUPPER (i))
8330      return 2;
8331  return 0;
8332}
8333_ACEOF
8334if ac_fn_c_try_run "$LINENO"; then :
8335
8336else
8337  ac_cv_header_stdc=no
8338fi
8339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8340  conftest.$ac_objext conftest.beam conftest.$ac_ext
8341fi
8342
8343fi
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8346$as_echo "$ac_cv_header_stdc" >&6; }
8347if test $ac_cv_header_stdc = yes; then
8348
8349$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8350
8351fi
8352
8353# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8355		  inttypes.h stdint.h unistd.h
8356do :
8357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8359"
8360if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8361  cat >>confdefs.h <<_ACEOF
8362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363_ACEOF
8364
8365fi
8366
8367done
8368
8369
8370for ac_header in dlfcn.h
8371do :
8372  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8373"
8374if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8375  cat >>confdefs.h <<_ACEOF
8376#define HAVE_DLFCN_H 1
8377_ACEOF
8378
8379fi
8380
8381done
8382
8383
8384
8385
8386
8387# Set options
8388
8389
8390
8391
8392  enable_win32_dll=no
8393
8394
8395            # Check whether --enable-shared was given.
8396if test "${enable_shared+set}" = set; then :
8397  enableval=$enable_shared; p=${PACKAGE-default}
8398    case $enableval in
8399    yes) enable_shared=yes ;;
8400    no) enable_shared=no ;;
8401    *)
8402      enable_shared=no
8403      # Look at the argument we got.  We use all the common list separators.
8404      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8405      for pkg in $enableval; do
8406	IFS=$lt_save_ifs
8407	if test "X$pkg" = "X$p"; then
8408	  enable_shared=yes
8409	fi
8410      done
8411      IFS=$lt_save_ifs
8412      ;;
8413    esac
8414else
8415  enable_shared=yes
8416fi
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428# Check whether --with-pic was given.
8429if test "${with_pic+set}" = set; then :
8430  withval=$with_pic; lt_p=${PACKAGE-default}
8431    case $withval in
8432    yes|no) pic_mode=$withval ;;
8433    *)
8434      pic_mode=default
8435      # Look at the argument we got.  We use all the common list separators.
8436      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8437      for lt_pkg in $withval; do
8438	IFS=$lt_save_ifs
8439	if test "X$lt_pkg" = "X$lt_p"; then
8440	  pic_mode=yes
8441	fi
8442      done
8443      IFS=$lt_save_ifs
8444      ;;
8445    esac
8446else
8447  pic_mode=default
8448fi
8449
8450
8451
8452
8453
8454
8455
8456
8457  # Check whether --enable-fast-install was given.
8458if test "${enable_fast_install+set}" = set; then :
8459  enableval=$enable_fast_install; p=${PACKAGE-default}
8460    case $enableval in
8461    yes) enable_fast_install=yes ;;
8462    no) enable_fast_install=no ;;
8463    *)
8464      enable_fast_install=no
8465      # Look at the argument we got.  We use all the common list separators.
8466      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8467      for pkg in $enableval; do
8468	IFS=$lt_save_ifs
8469	if test "X$pkg" = "X$p"; then
8470	  enable_fast_install=yes
8471	fi
8472      done
8473      IFS=$lt_save_ifs
8474      ;;
8475    esac
8476else
8477  enable_fast_install=yes
8478fi
8479
8480
8481
8482
8483
8484
8485
8486
8487  shared_archive_member_spec=
8488case $host,$enable_shared in
8489power*-*-aix[5-9]*,yes)
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8491$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8492
8493# Check whether --with-aix-soname was given.
8494if test "${with_aix_soname+set}" = set; then :
8495  withval=$with_aix_soname; case $withval in
8496    aix|svr4|both)
8497      ;;
8498    *)
8499      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8500      ;;
8501    esac
8502    lt_cv_with_aix_soname=$with_aix_soname
8503else
8504  if ${lt_cv_with_aix_soname+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  lt_cv_with_aix_soname=aix
8508fi
8509
8510    with_aix_soname=$lt_cv_with_aix_soname
8511fi
8512
8513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8514$as_echo "$with_aix_soname" >&6; }
8515  if test aix != "$with_aix_soname"; then
8516    # For the AIX way of multilib, we name the shared archive member
8517    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8518    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8519    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8520    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8521    if test 64 = "${OBJECT_MODE-32}"; then
8522      shared_archive_member_spec=shr_64
8523    else
8524      shared_archive_member_spec=shr
8525    fi
8526  fi
8527  ;;
8528*)
8529  with_aix_soname=aix
8530  ;;
8531esac
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542# This can be used to rebuild libtool when needed
8543LIBTOOL_DEPS=$ltmain
8544
8545# Always use our own libtool.
8546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577test -z "$LN_S" && LN_S="ln -s"
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592if test -n "${ZSH_VERSION+set}"; then
8593   setopt NO_GLOB_SUBST
8594fi
8595
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8597$as_echo_n "checking for objdir... " >&6; }
8598if ${lt_cv_objdir+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  rm -f .libs 2>/dev/null
8602mkdir .libs 2>/dev/null
8603if test -d .libs; then
8604  lt_cv_objdir=.libs
8605else
8606  # MS-DOS does not allow filenames that begin with a dot.
8607  lt_cv_objdir=_libs
8608fi
8609rmdir .libs 2>/dev/null
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8612$as_echo "$lt_cv_objdir" >&6; }
8613objdir=$lt_cv_objdir
8614
8615
8616
8617
8618
8619cat >>confdefs.h <<_ACEOF
8620#define LT_OBJDIR "$lt_cv_objdir/"
8621_ACEOF
8622
8623
8624
8625
8626case $host_os in
8627aix3*)
8628  # AIX sometimes has problems with the GCC collect2 program.  For some
8629  # reason, if we set the COLLECT_NAMES environment variable, the problems
8630  # vanish in a puff of smoke.
8631  if test set != "${COLLECT_NAMES+set}"; then
8632    COLLECT_NAMES=
8633    export COLLECT_NAMES
8634  fi
8635  ;;
8636esac
8637
8638# Global variables:
8639ofile=libtool
8640can_build_shared=yes
8641
8642# All known linkers require a '.a' archive for static linking (except MSVC,
8643# which needs '.lib').
8644libext=a
8645
8646with_gnu_ld=$lt_cv_prog_gnu_ld
8647
8648old_CC=$CC
8649old_CFLAGS=$CFLAGS
8650
8651# Set sane defaults for various variables
8652test -z "$CC" && CC=cc
8653test -z "$LTCC" && LTCC=$CC
8654test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8655test -z "$LD" && LD=ld
8656test -z "$ac_objext" && ac_objext=o
8657
8658func_cc_basename $compiler
8659cc_basename=$func_cc_basename_result
8660
8661
8662# Only perform the check for file, if the check method requires it
8663test -z "$MAGIC_CMD" && MAGIC_CMD=file
8664case $deplibs_check_method in
8665file_magic*)
8666  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8668$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8669if ${lt_cv_path_MAGIC_CMD+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  case $MAGIC_CMD in
8673[\\/*] |  ?:[\\/]*)
8674  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8675  ;;
8676*)
8677  lt_save_MAGIC_CMD=$MAGIC_CMD
8678  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8679  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8680  for ac_dir in $ac_dummy; do
8681    IFS=$lt_save_ifs
8682    test -z "$ac_dir" && ac_dir=.
8683    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8684      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8685      if test -n "$file_magic_test_file"; then
8686	case $deplibs_check_method in
8687	"file_magic "*)
8688	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8689	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8690	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8691	    $EGREP "$file_magic_regex" > /dev/null; then
8692	    :
8693	  else
8694	    cat <<_LT_EOF 1>&2
8695
8696*** Warning: the command libtool uses to detect shared libraries,
8697*** $file_magic_cmd, produces output that libtool cannot recognize.
8698*** The result is that libtool may fail to recognize shared libraries
8699*** as such.  This will affect the creation of libtool libraries that
8700*** depend on shared libraries, but programs linked with such libtool
8701*** libraries will work regardless of this problem.  Nevertheless, you
8702*** may want to report the problem to your system manager and/or to
8703*** bug-libtool@gnu.org
8704
8705_LT_EOF
8706	  fi ;;
8707	esac
8708      fi
8709      break
8710    fi
8711  done
8712  IFS=$lt_save_ifs
8713  MAGIC_CMD=$lt_save_MAGIC_CMD
8714  ;;
8715esac
8716fi
8717
8718MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8719if test -n "$MAGIC_CMD"; then
8720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8721$as_echo "$MAGIC_CMD" >&6; }
8722else
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
8725fi
8726
8727
8728
8729
8730
8731if test -z "$lt_cv_path_MAGIC_CMD"; then
8732  if test -n "$ac_tool_prefix"; then
8733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8734$as_echo_n "checking for file... " >&6; }
8735if ${lt_cv_path_MAGIC_CMD+:} false; then :
8736  $as_echo_n "(cached) " >&6
8737else
8738  case $MAGIC_CMD in
8739[\\/*] |  ?:[\\/]*)
8740  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8741  ;;
8742*)
8743  lt_save_MAGIC_CMD=$MAGIC_CMD
8744  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8745  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8746  for ac_dir in $ac_dummy; do
8747    IFS=$lt_save_ifs
8748    test -z "$ac_dir" && ac_dir=.
8749    if test -f "$ac_dir/file"; then
8750      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8751      if test -n "$file_magic_test_file"; then
8752	case $deplibs_check_method in
8753	"file_magic "*)
8754	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8755	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8756	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8757	    $EGREP "$file_magic_regex" > /dev/null; then
8758	    :
8759	  else
8760	    cat <<_LT_EOF 1>&2
8761
8762*** Warning: the command libtool uses to detect shared libraries,
8763*** $file_magic_cmd, produces output that libtool cannot recognize.
8764*** The result is that libtool may fail to recognize shared libraries
8765*** as such.  This will affect the creation of libtool libraries that
8766*** depend on shared libraries, but programs linked with such libtool
8767*** libraries will work regardless of this problem.  Nevertheless, you
8768*** may want to report the problem to your system manager and/or to
8769*** bug-libtool@gnu.org
8770
8771_LT_EOF
8772	  fi ;;
8773	esac
8774      fi
8775      break
8776    fi
8777  done
8778  IFS=$lt_save_ifs
8779  MAGIC_CMD=$lt_save_MAGIC_CMD
8780  ;;
8781esac
8782fi
8783
8784MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8785if test -n "$MAGIC_CMD"; then
8786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8787$as_echo "$MAGIC_CMD" >&6; }
8788else
8789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790$as_echo "no" >&6; }
8791fi
8792
8793
8794  else
8795    MAGIC_CMD=:
8796  fi
8797fi
8798
8799  fi
8800  ;;
8801esac
8802
8803# Use C for the default configuration in the libtool script
8804
8805lt_save_CC=$CC
8806ac_ext=c
8807ac_cpp='$CPP $CPPFLAGS'
8808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8810ac_compiler_gnu=$ac_cv_c_compiler_gnu
8811
8812
8813# Source file extension for C test sources.
8814ac_ext=c
8815
8816# Object file extension for compiled C test sources.
8817objext=o
8818objext=$objext
8819
8820# Code to be used in simple compile tests
8821lt_simple_compile_test_code="int some_variable = 0;"
8822
8823# Code to be used in simple link tests
8824lt_simple_link_test_code='int main(){return(0);}'
8825
8826
8827
8828
8829
8830
8831
8832# If no C compiler was specified, use CC.
8833LTCC=${LTCC-"$CC"}
8834
8835# If no C compiler flags were specified, use CFLAGS.
8836LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8837
8838# Allow CC to be a program name with arguments.
8839compiler=$CC
8840
8841# Save the default compiler, since it gets overwritten when the other
8842# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8843compiler_DEFAULT=$CC
8844
8845# save warnings/boilerplate of simple test code
8846ac_outfile=conftest.$ac_objext
8847echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8848eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8849_lt_compiler_boilerplate=`cat conftest.err`
8850$RM conftest*
8851
8852ac_outfile=conftest.$ac_objext
8853echo "$lt_simple_link_test_code" >conftest.$ac_ext
8854eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8855_lt_linker_boilerplate=`cat conftest.err`
8856$RM -r conftest*
8857
8858
8859if test -n "$compiler"; then
8860
8861lt_prog_compiler_no_builtin_flag=
8862
8863if test yes = "$GCC"; then
8864  case $cc_basename in
8865  nvcc*)
8866    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8867  *)
8868    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8869  esac
8870
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8873if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  lt_cv_prog_compiler_rtti_exceptions=no
8877   ac_outfile=conftest.$ac_objext
8878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8880   # Insert the option either (1) after the last *FLAGS variable, or
8881   # (2) before a word containing "conftest.", or (3) at the end.
8882   # Note that $ac_compile itself does not contain backslashes and begins
8883   # with a dollar sign (not a hyphen), so the echo should work correctly.
8884   # The option is referenced via a variable to avoid confusing sed.
8885   lt_compile=`echo "$ac_compile" | $SED \
8886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888   -e 's:$: $lt_compiler_flag:'`
8889   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8890   (eval "$lt_compile" 2>conftest.err)
8891   ac_status=$?
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   if (exit $ac_status) && test -s "$ac_outfile"; then
8895     # The compiler can only warn and ignore the option if not recognized
8896     # So say no if there are warnings other than the usual output.
8897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8898     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8899     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8900       lt_cv_prog_compiler_rtti_exceptions=yes
8901     fi
8902   fi
8903   $RM conftest*
8904
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8908
8909if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8910    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8911else
8912    :
8913fi
8914
8915fi
8916
8917
8918
8919
8920
8921
8922  lt_prog_compiler_wl=
8923lt_prog_compiler_pic=
8924lt_prog_compiler_static=
8925
8926
8927  if test yes = "$GCC"; then
8928    lt_prog_compiler_wl='-Wl,'
8929    lt_prog_compiler_static='-static'
8930
8931    case $host_os in
8932      aix*)
8933      # All AIX code is PIC.
8934      if test ia64 = "$host_cpu"; then
8935	# AIX 5 now supports IA64 processor
8936	lt_prog_compiler_static='-Bstatic'
8937      fi
8938      lt_prog_compiler_pic='-fPIC'
8939      ;;
8940
8941    amigaos*)
8942      case $host_cpu in
8943      powerpc)
8944            # see comment about AmigaOS4 .so support
8945            lt_prog_compiler_pic='-fPIC'
8946        ;;
8947      m68k)
8948            # FIXME: we need at least 68020 code to build shared libraries, but
8949            # adding the '-m68020' flag to GCC prevents building anything better,
8950            # like '-m68040'.
8951            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8952        ;;
8953      esac
8954      ;;
8955
8956    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8957      # PIC is the default for these OSes.
8958      ;;
8959
8960    mingw* | cygwin* | pw32* | os2* | cegcc*)
8961      # This hack is so that the source file can tell whether it is being
8962      # built for inclusion in a dll (and should export symbols for example).
8963      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8964      # (--disable-auto-import) libraries
8965      lt_prog_compiler_pic='-DDLL_EXPORT'
8966      case $host_os in
8967      os2*)
8968	lt_prog_compiler_static='$wl-static'
8969	;;
8970      esac
8971      ;;
8972
8973    darwin* | rhapsody*)
8974      # PIC is the default on this platform
8975      # Common symbols not allowed in MH_DYLIB files
8976      lt_prog_compiler_pic='-fno-common'
8977      ;;
8978
8979    haiku*)
8980      # PIC is the default for Haiku.
8981      # The "-static" flag exists, but is broken.
8982      lt_prog_compiler_static=
8983      ;;
8984
8985    hpux*)
8986      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8987      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8988      # sets the default TLS model and affects inlining.
8989      case $host_cpu in
8990      hppa*64*)
8991	# +Z the default
8992	;;
8993      *)
8994	lt_prog_compiler_pic='-fPIC'
8995	;;
8996      esac
8997      ;;
8998
8999    interix[3-9]*)
9000      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9001      # Instead, we relocate shared libraries at runtime.
9002      ;;
9003
9004    msdosdjgpp*)
9005      # Just because we use GCC doesn't mean we suddenly get shared libraries
9006      # on systems that don't support them.
9007      lt_prog_compiler_can_build_shared=no
9008      enable_shared=no
9009      ;;
9010
9011    *nto* | *qnx*)
9012      # QNX uses GNU C++, but need to define -shared option too, otherwise
9013      # it will coredump.
9014      lt_prog_compiler_pic='-fPIC -shared'
9015      ;;
9016
9017    sysv4*MP*)
9018      if test -d /usr/nec; then
9019	lt_prog_compiler_pic=-Kconform_pic
9020      fi
9021      ;;
9022
9023    *)
9024      lt_prog_compiler_pic='-fPIC'
9025      ;;
9026    esac
9027
9028    case $cc_basename in
9029    nvcc*) # Cuda Compiler Driver 2.2
9030      lt_prog_compiler_wl='-Xlinker '
9031      if test -n "$lt_prog_compiler_pic"; then
9032        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9033      fi
9034      ;;
9035    esac
9036  else
9037    # PORTME Check for flag to pass linker flags through the system compiler.
9038    case $host_os in
9039    aix*)
9040      lt_prog_compiler_wl='-Wl,'
9041      if test ia64 = "$host_cpu"; then
9042	# AIX 5 now supports IA64 processor
9043	lt_prog_compiler_static='-Bstatic'
9044      else
9045	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9046      fi
9047      ;;
9048
9049    darwin* | rhapsody*)
9050      # PIC is the default on this platform
9051      # Common symbols not allowed in MH_DYLIB files
9052      lt_prog_compiler_pic='-fno-common'
9053      case $cc_basename in
9054      nagfor*)
9055        # NAG Fortran compiler
9056        lt_prog_compiler_wl='-Wl,-Wl,,'
9057        lt_prog_compiler_pic='-PIC'
9058        lt_prog_compiler_static='-Bstatic'
9059        ;;
9060      esac
9061      ;;
9062
9063    mingw* | cygwin* | pw32* | os2* | cegcc*)
9064      # This hack is so that the source file can tell whether it is being
9065      # built for inclusion in a dll (and should export symbols for example).
9066      lt_prog_compiler_pic='-DDLL_EXPORT'
9067      case $host_os in
9068      os2*)
9069	lt_prog_compiler_static='$wl-static'
9070	;;
9071      esac
9072      ;;
9073
9074    hpux9* | hpux10* | hpux11*)
9075      lt_prog_compiler_wl='-Wl,'
9076      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9077      # not for PA HP-UX.
9078      case $host_cpu in
9079      hppa*64*|ia64*)
9080	# +Z the default
9081	;;
9082      *)
9083	lt_prog_compiler_pic='+Z'
9084	;;
9085      esac
9086      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9087      lt_prog_compiler_static='$wl-a ${wl}archive'
9088      ;;
9089
9090    irix5* | irix6* | nonstopux*)
9091      lt_prog_compiler_wl='-Wl,'
9092      # PIC (with -KPIC) is the default.
9093      lt_prog_compiler_static='-non_shared'
9094      ;;
9095
9096    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9097      case $cc_basename in
9098      # old Intel for x86_64, which still supported -KPIC.
9099      ecc*)
9100	lt_prog_compiler_wl='-Wl,'
9101	lt_prog_compiler_pic='-KPIC'
9102	lt_prog_compiler_static='-static'
9103        ;;
9104      # icc used to be incompatible with GCC.
9105      # ICC 10 doesn't accept -KPIC any more.
9106      icc* | ifort*)
9107	lt_prog_compiler_wl='-Wl,'
9108	lt_prog_compiler_pic='-fPIC'
9109	lt_prog_compiler_static='-static'
9110        ;;
9111      # Lahey Fortran 8.1.
9112      lf95*)
9113	lt_prog_compiler_wl='-Wl,'
9114	lt_prog_compiler_pic='--shared'
9115	lt_prog_compiler_static='--static'
9116	;;
9117      nagfor*)
9118	# NAG Fortran compiler
9119	lt_prog_compiler_wl='-Wl,-Wl,,'
9120	lt_prog_compiler_pic='-PIC'
9121	lt_prog_compiler_static='-Bstatic'
9122	;;
9123      tcc*)
9124	# Fabrice Bellard et al's Tiny C Compiler
9125	lt_prog_compiler_wl='-Wl,'
9126	lt_prog_compiler_pic='-fPIC'
9127	lt_prog_compiler_static='-static'
9128	;;
9129      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9130        # Portland Group compilers (*not* the Pentium gcc compiler,
9131	# which looks to be a dead project)
9132	lt_prog_compiler_wl='-Wl,'
9133	lt_prog_compiler_pic='-fpic'
9134	lt_prog_compiler_static='-Bstatic'
9135        ;;
9136      ccc*)
9137        lt_prog_compiler_wl='-Wl,'
9138        # All Alpha code is PIC.
9139        lt_prog_compiler_static='-non_shared'
9140        ;;
9141      xl* | bgxl* | bgf* | mpixl*)
9142	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9143	lt_prog_compiler_wl='-Wl,'
9144	lt_prog_compiler_pic='-qpic'
9145	lt_prog_compiler_static='-qstaticlink'
9146	;;
9147      *)
9148	case `$CC -V 2>&1 | sed 5q` in
9149	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9150	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9151	  lt_prog_compiler_pic='-KPIC'
9152	  lt_prog_compiler_static='-Bstatic'
9153	  lt_prog_compiler_wl=''
9154	  ;;
9155	*Sun\ F* | *Sun*Fortran*)
9156	  lt_prog_compiler_pic='-KPIC'
9157	  lt_prog_compiler_static='-Bstatic'
9158	  lt_prog_compiler_wl='-Qoption ld '
9159	  ;;
9160	*Sun\ C*)
9161	  # Sun C 5.9
9162	  lt_prog_compiler_pic='-KPIC'
9163	  lt_prog_compiler_static='-Bstatic'
9164	  lt_prog_compiler_wl='-Wl,'
9165	  ;;
9166        *Intel*\ [CF]*Compiler*)
9167	  lt_prog_compiler_wl='-Wl,'
9168	  lt_prog_compiler_pic='-fPIC'
9169	  lt_prog_compiler_static='-static'
9170	  ;;
9171	*Portland\ Group*)
9172	  lt_prog_compiler_wl='-Wl,'
9173	  lt_prog_compiler_pic='-fpic'
9174	  lt_prog_compiler_static='-Bstatic'
9175	  ;;
9176	esac
9177	;;
9178      esac
9179      ;;
9180
9181    newsos6)
9182      lt_prog_compiler_pic='-KPIC'
9183      lt_prog_compiler_static='-Bstatic'
9184      ;;
9185
9186    *nto* | *qnx*)
9187      # QNX uses GNU C++, but need to define -shared option too, otherwise
9188      # it will coredump.
9189      lt_prog_compiler_pic='-fPIC -shared'
9190      ;;
9191
9192    osf3* | osf4* | osf5*)
9193      lt_prog_compiler_wl='-Wl,'
9194      # All OSF/1 code is PIC.
9195      lt_prog_compiler_static='-non_shared'
9196      ;;
9197
9198    rdos*)
9199      lt_prog_compiler_static='-non_shared'
9200      ;;
9201
9202    solaris*)
9203      lt_prog_compiler_pic='-KPIC'
9204      lt_prog_compiler_static='-Bstatic'
9205      case $cc_basename in
9206      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9207	lt_prog_compiler_wl='-Qoption ld ';;
9208      *)
9209	lt_prog_compiler_wl='-Wl,';;
9210      esac
9211      ;;
9212
9213    sunos4*)
9214      lt_prog_compiler_wl='-Qoption ld '
9215      lt_prog_compiler_pic='-PIC'
9216      lt_prog_compiler_static='-Bstatic'
9217      ;;
9218
9219    sysv4 | sysv4.2uw2* | sysv4.3*)
9220      lt_prog_compiler_wl='-Wl,'
9221      lt_prog_compiler_pic='-KPIC'
9222      lt_prog_compiler_static='-Bstatic'
9223      ;;
9224
9225    sysv4*MP*)
9226      if test -d /usr/nec; then
9227	lt_prog_compiler_pic='-Kconform_pic'
9228	lt_prog_compiler_static='-Bstatic'
9229      fi
9230      ;;
9231
9232    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9233      lt_prog_compiler_wl='-Wl,'
9234      lt_prog_compiler_pic='-KPIC'
9235      lt_prog_compiler_static='-Bstatic'
9236      ;;
9237
9238    unicos*)
9239      lt_prog_compiler_wl='-Wl,'
9240      lt_prog_compiler_can_build_shared=no
9241      ;;
9242
9243    uts4*)
9244      lt_prog_compiler_pic='-pic'
9245      lt_prog_compiler_static='-Bstatic'
9246      ;;
9247
9248    *)
9249      lt_prog_compiler_can_build_shared=no
9250      ;;
9251    esac
9252  fi
9253
9254case $host_os in
9255  # For platforms that do not support PIC, -DPIC is meaningless:
9256  *djgpp*)
9257    lt_prog_compiler_pic=
9258    ;;
9259  *)
9260    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9261    ;;
9262esac
9263
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9265$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9266if ${lt_cv_prog_compiler_pic+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9270fi
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9272$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9273lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9274
9275#
9276# Check to make sure the PIC flag actually works.
9277#
9278if test -n "$lt_prog_compiler_pic"; then
9279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9280$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9281if ${lt_cv_prog_compiler_pic_works+:} false; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  lt_cv_prog_compiler_pic_works=no
9285   ac_outfile=conftest.$ac_objext
9286   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9288   # Insert the option either (1) after the last *FLAGS variable, or
9289   # (2) before a word containing "conftest.", or (3) at the end.
9290   # Note that $ac_compile itself does not contain backslashes and begins
9291   # with a dollar sign (not a hyphen), so the echo should work correctly.
9292   # The option is referenced via a variable to avoid confusing sed.
9293   lt_compile=`echo "$ac_compile" | $SED \
9294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296   -e 's:$: $lt_compiler_flag:'`
9297   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9298   (eval "$lt_compile" 2>conftest.err)
9299   ac_status=$?
9300   cat conftest.err >&5
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   if (exit $ac_status) && test -s "$ac_outfile"; then
9303     # The compiler can only warn and ignore the option if not recognized
9304     # So say no if there are warnings other than the usual output.
9305     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9308       lt_cv_prog_compiler_pic_works=yes
9309     fi
9310   fi
9311   $RM conftest*
9312
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9315$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9316
9317if test yes = "$lt_cv_prog_compiler_pic_works"; then
9318    case $lt_prog_compiler_pic in
9319     "" | " "*) ;;
9320     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9321     esac
9322else
9323    lt_prog_compiler_pic=
9324     lt_prog_compiler_can_build_shared=no
9325fi
9326
9327fi
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339#
9340# Check to make sure the static flag actually works.
9341#
9342wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9344$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9345if ${lt_cv_prog_compiler_static_works+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  lt_cv_prog_compiler_static_works=no
9349   save_LDFLAGS=$LDFLAGS
9350   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9351   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9352   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9353     # The linker can only warn and ignore the option if not recognized
9354     # So say no if there are warnings
9355     if test -s conftest.err; then
9356       # Append any errors to the config.log.
9357       cat conftest.err 1>&5
9358       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9359       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9360       if diff conftest.exp conftest.er2 >/dev/null; then
9361         lt_cv_prog_compiler_static_works=yes
9362       fi
9363     else
9364       lt_cv_prog_compiler_static_works=yes
9365     fi
9366   fi
9367   $RM -r conftest*
9368   LDFLAGS=$save_LDFLAGS
9369
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9372$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9373
9374if test yes = "$lt_cv_prog_compiler_static_works"; then
9375    :
9376else
9377    lt_prog_compiler_static=
9378fi
9379
9380
9381
9382
9383
9384
9385
9386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9388if ${lt_cv_prog_compiler_c_o+:} false; then :
9389  $as_echo_n "(cached) " >&6
9390else
9391  lt_cv_prog_compiler_c_o=no
9392   $RM -r conftest 2>/dev/null
9393   mkdir conftest
9394   cd conftest
9395   mkdir out
9396   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9397
9398   lt_compiler_flag="-o out/conftest2.$ac_objext"
9399   # Insert the option either (1) after the last *FLAGS variable, or
9400   # (2) before a word containing "conftest.", or (3) at the end.
9401   # Note that $ac_compile itself does not contain backslashes and begins
9402   # with a dollar sign (not a hyphen), so the echo should work correctly.
9403   lt_compile=`echo "$ac_compile" | $SED \
9404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9406   -e 's:$: $lt_compiler_flag:'`
9407   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9408   (eval "$lt_compile" 2>out/conftest.err)
9409   ac_status=$?
9410   cat out/conftest.err >&5
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9413   then
9414     # The compiler can only warn and ignore the option if not recognized
9415     # So say no if there are warnings
9416     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9417     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9418     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9419       lt_cv_prog_compiler_c_o=yes
9420     fi
9421   fi
9422   chmod u+w . 2>&5
9423   $RM conftest*
9424   # SGI C++ compiler will create directory out/ii_files/ for
9425   # template instantiation
9426   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9427   $RM out/* && rmdir out
9428   cd ..
9429   $RM -r conftest
9430   $RM conftest*
9431
9432fi
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9434$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9435
9436
9437
9438
9439
9440
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9442$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9443if ${lt_cv_prog_compiler_c_o+:} false; then :
9444  $as_echo_n "(cached) " >&6
9445else
9446  lt_cv_prog_compiler_c_o=no
9447   $RM -r conftest 2>/dev/null
9448   mkdir conftest
9449   cd conftest
9450   mkdir out
9451   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
9453   lt_compiler_flag="-o out/conftest2.$ac_objext"
9454   # Insert the option either (1) after the last *FLAGS variable, or
9455   # (2) before a word containing "conftest.", or (3) at the end.
9456   # Note that $ac_compile itself does not contain backslashes and begins
9457   # with a dollar sign (not a hyphen), so the echo should work correctly.
9458   lt_compile=`echo "$ac_compile" | $SED \
9459   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9460   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9461   -e 's:$: $lt_compiler_flag:'`
9462   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9463   (eval "$lt_compile" 2>out/conftest.err)
9464   ac_status=$?
9465   cat out/conftest.err >&5
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9468   then
9469     # The compiler can only warn and ignore the option if not recognized
9470     # So say no if there are warnings
9471     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9472     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9473     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9474       lt_cv_prog_compiler_c_o=yes
9475     fi
9476   fi
9477   chmod u+w . 2>&5
9478   $RM conftest*
9479   # SGI C++ compiler will create directory out/ii_files/ for
9480   # template instantiation
9481   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9482   $RM out/* && rmdir out
9483   cd ..
9484   $RM -r conftest
9485   $RM conftest*
9486
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9489$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9490
9491
9492
9493
9494hard_links=nottested
9495if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9496  # do not overwrite the value of need_locks provided by the user
9497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9498$as_echo_n "checking if we can lock with hard links... " >&6; }
9499  hard_links=yes
9500  $RM conftest*
9501  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9502  touch conftest.a
9503  ln conftest.a conftest.b 2>&5 || hard_links=no
9504  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9506$as_echo "$hard_links" >&6; }
9507  if test no = "$hard_links"; then
9508    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9509$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9510    need_locks=warn
9511  fi
9512else
9513  need_locks=no
9514fi
9515
9516
9517
9518
9519
9520
9521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9522$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9523
9524  runpath_var=
9525  allow_undefined_flag=
9526  always_export_symbols=no
9527  archive_cmds=
9528  archive_expsym_cmds=
9529  compiler_needs_object=no
9530  enable_shared_with_static_runtimes=no
9531  export_dynamic_flag_spec=
9532  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9533  hardcode_automatic=no
9534  hardcode_direct=no
9535  hardcode_direct_absolute=no
9536  hardcode_libdir_flag_spec=
9537  hardcode_libdir_separator=
9538  hardcode_minus_L=no
9539  hardcode_shlibpath_var=unsupported
9540  inherit_rpath=no
9541  link_all_deplibs=unknown
9542  module_cmds=
9543  module_expsym_cmds=
9544  old_archive_from_new_cmds=
9545  old_archive_from_expsyms_cmds=
9546  thread_safe_flag_spec=
9547  whole_archive_flag_spec=
9548  # include_expsyms should be a list of space-separated symbols to be *always*
9549  # included in the symbol list
9550  include_expsyms=
9551  # exclude_expsyms can be an extended regexp of symbols to exclude
9552  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9553  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9554  # as well as any symbol that contains 'd'.
9555  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9556  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9557  # platforms (ab)use it in PIC code, but their linkers get confused if
9558  # the symbol is explicitly referenced.  Since portable code cannot
9559  # rely on this symbol name, it's probably fine to never include it in
9560  # preloaded symbol tables.
9561  # Exclude shared library initialization/finalization symbols.
9562  extract_expsyms_cmds=
9563
9564  case $host_os in
9565  cygwin* | mingw* | pw32* | cegcc*)
9566    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9567    # When not using gcc, we currently assume that we are using
9568    # Microsoft Visual C++.
9569    if test yes != "$GCC"; then
9570      with_gnu_ld=no
9571    fi
9572    ;;
9573  interix*)
9574    # we just hope/assume this is gcc and not c89 (= MSVC++)
9575    with_gnu_ld=yes
9576    ;;
9577  openbsd* | bitrig*)
9578    with_gnu_ld=no
9579    ;;
9580  esac
9581
9582  ld_shlibs=yes
9583
9584  # On some targets, GNU ld is compatible enough with the native linker
9585  # that we're better off using the native interface for both.
9586  lt_use_gnu_ld_interface=no
9587  if test yes = "$with_gnu_ld"; then
9588    case $host_os in
9589      aix*)
9590	# The AIX port of GNU ld has always aspired to compatibility
9591	# with the native linker.  However, as the warning in the GNU ld
9592	# block says, versions before 2.19.5* couldn't really create working
9593	# shared libraries, regardless of the interface used.
9594	case `$LD -v 2>&1` in
9595	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9596	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9597	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9598	  *)
9599	    lt_use_gnu_ld_interface=yes
9600	    ;;
9601	esac
9602	;;
9603      *)
9604	lt_use_gnu_ld_interface=yes
9605	;;
9606    esac
9607  fi
9608
9609  if test yes = "$lt_use_gnu_ld_interface"; then
9610    # If archive_cmds runs LD, not CC, wlarc should be empty
9611    wlarc='$wl'
9612
9613    # Set some defaults for GNU ld with shared library support. These
9614    # are reset later if shared libraries are not supported. Putting them
9615    # here allows them to be overridden if necessary.
9616    runpath_var=LD_RUN_PATH
9617    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9618    export_dynamic_flag_spec='$wl--export-dynamic'
9619    # ancient GNU ld didn't support --whole-archive et. al.
9620    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9621      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9622    else
9623      whole_archive_flag_spec=
9624    fi
9625    supports_anon_versioning=no
9626    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9627      *GNU\ gold*) supports_anon_versioning=yes ;;
9628      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9629      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9630      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9631      *\ 2.11.*) ;; # other 2.11 versions
9632      *) supports_anon_versioning=yes ;;
9633    esac
9634
9635    # See if GNU ld supports shared libraries.
9636    case $host_os in
9637    aix[3-9]*)
9638      # On AIX/PPC, the GNU linker is very broken
9639      if test ia64 != "$host_cpu"; then
9640	ld_shlibs=no
9641	cat <<_LT_EOF 1>&2
9642
9643*** Warning: the GNU linker, at least up to release 2.19, is reported
9644*** to be unable to reliably create shared libraries on AIX.
9645*** Therefore, libtool is disabling shared libraries support.  If you
9646*** really care for shared libraries, you may want to install binutils
9647*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9648*** You will then need to restart the configuration process.
9649
9650_LT_EOF
9651      fi
9652      ;;
9653
9654    amigaos*)
9655      case $host_cpu in
9656      powerpc)
9657            # see comment about AmigaOS4 .so support
9658            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9659            archive_expsym_cmds=''
9660        ;;
9661      m68k)
9662            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)'
9663            hardcode_libdir_flag_spec='-L$libdir'
9664            hardcode_minus_L=yes
9665        ;;
9666      esac
9667      ;;
9668
9669    beos*)
9670      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9671	allow_undefined_flag=unsupported
9672	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9673	# support --undefined.  This deserves some investigation.  FIXME
9674	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9675      else
9676	ld_shlibs=no
9677      fi
9678      ;;
9679
9680    cygwin* | mingw* | pw32* | cegcc*)
9681      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9682      # as there is no search path for DLLs.
9683      hardcode_libdir_flag_spec='-L$libdir'
9684      export_dynamic_flag_spec='$wl--export-all-symbols'
9685      allow_undefined_flag=unsupported
9686      always_export_symbols=no
9687      enable_shared_with_static_runtimes=yes
9688      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'
9689      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9690
9691      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9692        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9693	# If the export-symbols file already is a .def file, use it as
9694	# is; otherwise, prepend EXPORTS...
9695	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9696          cp $export_symbols $output_objdir/$soname.def;
9697        else
9698          echo EXPORTS > $output_objdir/$soname.def;
9699          cat $export_symbols >> $output_objdir/$soname.def;
9700        fi~
9701        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9702      else
9703	ld_shlibs=no
9704      fi
9705      ;;
9706
9707    haiku*)
9708      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9709      link_all_deplibs=yes
9710      ;;
9711
9712    os2*)
9713      hardcode_libdir_flag_spec='-L$libdir'
9714      hardcode_minus_L=yes
9715      allow_undefined_flag=unsupported
9716      shrext_cmds=.dll
9717      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9718	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9719	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9720	$ECHO EXPORTS >> $output_objdir/$libname.def~
9721	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9722	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9723	emximp -o $lib $output_objdir/$libname.def'
9724      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9725	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9726	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9727	$ECHO EXPORTS >> $output_objdir/$libname.def~
9728	prefix_cmds="$SED"~
9729	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9730	  prefix_cmds="$prefix_cmds -e 1d";
9731	fi~
9732	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9733	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9734	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9735	emximp -o $lib $output_objdir/$libname.def'
9736      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9737      enable_shared_with_static_runtimes=yes
9738      ;;
9739
9740    interix[3-9]*)
9741      hardcode_direct=no
9742      hardcode_shlibpath_var=no
9743      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9744      export_dynamic_flag_spec='$wl-E'
9745      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9746      # Instead, shared libraries are loaded at an image base (0x10000000 by
9747      # default) and relocated if they conflict, which is a slow very memory
9748      # consuming and fragmenting process.  To avoid this, we pick a random,
9749      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9750      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9751      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9752      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'
9753      ;;
9754
9755    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9756      tmp_diet=no
9757      if test linux-dietlibc = "$host_os"; then
9758	case $cc_basename in
9759	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9760	esac
9761      fi
9762      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9763	 && test no = "$tmp_diet"
9764      then
9765	tmp_addflag=' $pic_flag'
9766	tmp_sharedflag='-shared'
9767	case $cc_basename,$host_cpu in
9768        pgcc*)				# Portland Group C compiler
9769	  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'
9770	  tmp_addflag=' $pic_flag'
9771	  ;;
9772	pgf77* | pgf90* | pgf95* | pgfortran*)
9773					# Portland Group f77 and f90 compilers
9774	  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'
9775	  tmp_addflag=' $pic_flag -Mnomain' ;;
9776	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9777	  tmp_addflag=' -i_dynamic' ;;
9778	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9779	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9780	ifc* | ifort*)			# Intel Fortran compiler
9781	  tmp_addflag=' -nofor_main' ;;
9782	lf95*)				# Lahey Fortran 8.1
9783	  whole_archive_flag_spec=
9784	  tmp_sharedflag='--shared' ;;
9785        nagfor*)                        # NAGFOR 5.3
9786          tmp_sharedflag='-Wl,-shared' ;;
9787	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9788	  tmp_sharedflag='-qmkshrobj'
9789	  tmp_addflag= ;;
9790	nvcc*)	# Cuda Compiler Driver 2.2
9791	  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'
9792	  compiler_needs_object=yes
9793	  ;;
9794	esac
9795	case `$CC -V 2>&1 | sed 5q` in
9796	*Sun\ C*)			# Sun C 5.9
9797	  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'
9798	  compiler_needs_object=yes
9799	  tmp_sharedflag='-G' ;;
9800	*Sun\ F*)			# Sun Fortran 8.3
9801	  tmp_sharedflag='-G' ;;
9802	esac
9803	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9804
9805        if test yes = "$supports_anon_versioning"; then
9806          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9807            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9808            echo "local: *; };" >> $output_objdir/$libname.ver~
9809            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9810        fi
9811
9812	case $cc_basename in
9813	tcc*)
9814	  export_dynamic_flag_spec='-rdynamic'
9815	  ;;
9816	xlf* | bgf* | bgxlf* | mpixlf*)
9817	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9818	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9819	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9820	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9821	  if test yes = "$supports_anon_versioning"; then
9822	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9823              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9824              echo "local: *; };" >> $output_objdir/$libname.ver~
9825              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9826	  fi
9827	  ;;
9828	esac
9829      else
9830        ld_shlibs=no
9831      fi
9832      ;;
9833
9834    netbsd*)
9835      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9836	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9837	wlarc=
9838      else
9839	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9840	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9841      fi
9842      ;;
9843
9844    solaris*)
9845      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9846	ld_shlibs=no
9847	cat <<_LT_EOF 1>&2
9848
9849*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9850*** create shared libraries on Solaris systems.  Therefore, libtool
9851*** is disabling shared libraries support.  We urge you to upgrade GNU
9852*** binutils to release 2.9.1 or newer.  Another option is to modify
9853*** your PATH or compiler configuration so that the native linker is
9854*** used, and then restart.
9855
9856_LT_EOF
9857      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9859	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9860      else
9861	ld_shlibs=no
9862      fi
9863      ;;
9864
9865    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9866      case `$LD -v 2>&1` in
9867        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9868	ld_shlibs=no
9869	cat <<_LT_EOF 1>&2
9870
9871*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9872*** reliably create shared libraries on SCO systems.  Therefore, libtool
9873*** is disabling shared libraries support.  We urge you to upgrade GNU
9874*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9875*** your PATH or compiler configuration so that the native linker is
9876*** used, and then restart.
9877
9878_LT_EOF
9879	;;
9880	*)
9881	  # For security reasons, it is highly recommended that you always
9882	  # use absolute paths for naming shared libraries, and exclude the
9883	  # DT_RUNPATH tag from executables and libraries.  But doing so
9884	  # requires that you compile everything twice, which is a pain.
9885	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9886	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9887	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9888	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9889	  else
9890	    ld_shlibs=no
9891	  fi
9892	;;
9893      esac
9894      ;;
9895
9896    sunos4*)
9897      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9898      wlarc=
9899      hardcode_direct=yes
9900      hardcode_shlibpath_var=no
9901      ;;
9902
9903    *)
9904      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9905	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9906	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9907      else
9908	ld_shlibs=no
9909      fi
9910      ;;
9911    esac
9912
9913    if test no = "$ld_shlibs"; then
9914      runpath_var=
9915      hardcode_libdir_flag_spec=
9916      export_dynamic_flag_spec=
9917      whole_archive_flag_spec=
9918    fi
9919  else
9920    # PORTME fill in a description of your system's linker (not GNU ld)
9921    case $host_os in
9922    aix3*)
9923      allow_undefined_flag=unsupported
9924      always_export_symbols=yes
9925      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'
9926      # Note: this linker hardcodes the directories in LIBPATH if there
9927      # are no directories specified by -L.
9928      hardcode_minus_L=yes
9929      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9930	# Neither direct hardcoding nor static linking is supported with a
9931	# broken collect2.
9932	hardcode_direct=unsupported
9933      fi
9934      ;;
9935
9936    aix[4-9]*)
9937      if test ia64 = "$host_cpu"; then
9938	# On IA64, the linker does run time linking by default, so we don't
9939	# have to do anything special.
9940	aix_use_runtimelinking=no
9941	exp_sym_flag='-Bexport'
9942	no_entry_flag=
9943      else
9944	# If we're using GNU nm, then we don't want the "-C" option.
9945	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9946	# Without the "-l" option, or with the "-B" option, AIX nm treats
9947	# weak defined symbols like other global defined symbols, whereas
9948	# GNU nm marks them as "W".
9949	# While the 'weak' keyword is ignored in the Export File, we need
9950	# it in the Import File for the 'aix-soname' feature, so we have
9951	# to replace the "-B" option with "-P" for AIX nm.
9952	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9953	  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'
9954	else
9955	  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'
9956	fi
9957	aix_use_runtimelinking=no
9958
9959	# Test if we are trying to use run time linking or normal
9960	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9961	# have runtime linking enabled, and use it for executables.
9962	# For shared libraries, we enable/disable runtime linking
9963	# depending on the kind of the shared library created -
9964	# when "with_aix_soname,aix_use_runtimelinking" is:
9965	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9966	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9967	#            lib.a           static archive
9968	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9969	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9970	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9971	#            lib.a(lib.so.V) shared, rtl:no
9972	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9973	#            lib.a           static archive
9974	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9975	  for ld_flag in $LDFLAGS; do
9976	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9977	    aix_use_runtimelinking=yes
9978	    break
9979	  fi
9980	  done
9981	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9982	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9983	    # so we don't have lib.a shared libs to link our executables.
9984	    # We have to force runtime linking in this case.
9985	    aix_use_runtimelinking=yes
9986	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9987	  fi
9988	  ;;
9989	esac
9990
9991	exp_sym_flag='-bexport'
9992	no_entry_flag='-bnoentry'
9993      fi
9994
9995      # When large executables or shared objects are built, AIX ld can
9996      # have problems creating the table of contents.  If linking a library
9997      # or program results in "error TOC overflow" add -mminimal-toc to
9998      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9999      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10000
10001      archive_cmds=''
10002      hardcode_direct=yes
10003      hardcode_direct_absolute=yes
10004      hardcode_libdir_separator=':'
10005      link_all_deplibs=yes
10006      file_list_spec='$wl-f,'
10007      case $with_aix_soname,$aix_use_runtimelinking in
10008      aix,*) ;; # traditional, no import file
10009      svr4,* | *,yes) # use import file
10010	# The Import File defines what to hardcode.
10011	hardcode_direct=no
10012	hardcode_direct_absolute=no
10013	;;
10014      esac
10015
10016      if test yes = "$GCC"; then
10017	case $host_os in aix4.[012]|aix4.[012].*)
10018	# We only want to do this on AIX 4.2 and lower, the check
10019	# below for broken collect2 doesn't work under 4.3+
10020	  collect2name=`$CC -print-prog-name=collect2`
10021	  if test -f "$collect2name" &&
10022	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10023	  then
10024	  # We have reworked collect2
10025	  :
10026	  else
10027	  # We have old collect2
10028	  hardcode_direct=unsupported
10029	  # It fails to find uninstalled libraries when the uninstalled
10030	  # path is not listed in the libpath.  Setting hardcode_minus_L
10031	  # to unsupported forces relinking
10032	  hardcode_minus_L=yes
10033	  hardcode_libdir_flag_spec='-L$libdir'
10034	  hardcode_libdir_separator=
10035	  fi
10036	  ;;
10037	esac
10038	shared_flag='-shared'
10039	if test yes = "$aix_use_runtimelinking"; then
10040	  shared_flag="$shared_flag "'$wl-G'
10041	fi
10042	# Need to ensure runtime linking is disabled for the traditional
10043	# shared library, or the linker may eventually find shared libraries
10044	# /with/ Import File - we do not want to mix them.
10045	shared_flag_aix='-shared'
10046	shared_flag_svr4='-shared $wl-G'
10047      else
10048	# not using gcc
10049	if test ia64 = "$host_cpu"; then
10050	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10051	# chokes on -Wl,-G. The following line is correct:
10052	  shared_flag='-G'
10053	else
10054	  if test yes = "$aix_use_runtimelinking"; then
10055	    shared_flag='$wl-G'
10056	  else
10057	    shared_flag='$wl-bM:SRE'
10058	  fi
10059	  shared_flag_aix='$wl-bM:SRE'
10060	  shared_flag_svr4='$wl-G'
10061	fi
10062      fi
10063
10064      export_dynamic_flag_spec='$wl-bexpall'
10065      # It seems that -bexpall does not export symbols beginning with
10066      # underscore (_), so it is better to generate a list of symbols to export.
10067      always_export_symbols=yes
10068      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10069	# Warning - without using the other runtime loading flags (-brtl),
10070	# -berok will link without error, but may produce a broken library.
10071	allow_undefined_flag='-berok'
10072        # Determine the default libpath from the value encoded in an
10073        # empty executable.
10074        if test set = "${lt_cv_aix_libpath+set}"; then
10075  aix_libpath=$lt_cv_aix_libpath
10076else
10077  if ${lt_cv_aix_libpath_+:} false; then :
10078  $as_echo_n "(cached) " >&6
10079else
10080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082
10083int
10084main ()
10085{
10086
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091if ac_fn_c_try_link "$LINENO"; then :
10092
10093  lt_aix_libpath_sed='
10094      /Import File Strings/,/^$/ {
10095	  /^0/ {
10096	      s/^0  *\([^ ]*\) *$/\1/
10097	      p
10098	  }
10099      }'
10100  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101  # Check for a 64-bit object if we didn't find anything.
10102  if test -z "$lt_cv_aix_libpath_"; then
10103    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10104  fi
10105fi
10106rm -f core conftest.err conftest.$ac_objext \
10107    conftest$ac_exeext conftest.$ac_ext
10108  if test -z "$lt_cv_aix_libpath_"; then
10109    lt_cv_aix_libpath_=/usr/lib:/lib
10110  fi
10111
10112fi
10113
10114  aix_libpath=$lt_cv_aix_libpath_
10115fi
10116
10117        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10118        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
10119      else
10120	if test ia64 = "$host_cpu"; then
10121	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10122	  allow_undefined_flag="-z nodefs"
10123	  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"
10124	else
10125	 # Determine the default libpath from the value encoded in an
10126	 # empty executable.
10127	 if test set = "${lt_cv_aix_libpath+set}"; then
10128  aix_libpath=$lt_cv_aix_libpath
10129else
10130  if ${lt_cv_aix_libpath_+:} false; then :
10131  $as_echo_n "(cached) " >&6
10132else
10133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135
10136int
10137main ()
10138{
10139
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144if ac_fn_c_try_link "$LINENO"; then :
10145
10146  lt_aix_libpath_sed='
10147      /Import File Strings/,/^$/ {
10148	  /^0/ {
10149	      s/^0  *\([^ ]*\) *$/\1/
10150	      p
10151	  }
10152      }'
10153  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154  # Check for a 64-bit object if we didn't find anything.
10155  if test -z "$lt_cv_aix_libpath_"; then
10156    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10157  fi
10158fi
10159rm -f core conftest.err conftest.$ac_objext \
10160    conftest$ac_exeext conftest.$ac_ext
10161  if test -z "$lt_cv_aix_libpath_"; then
10162    lt_cv_aix_libpath_=/usr/lib:/lib
10163  fi
10164
10165fi
10166
10167  aix_libpath=$lt_cv_aix_libpath_
10168fi
10169
10170	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10171	  # Warning - without using the other run time loading flags,
10172	  # -berok will link without error, but may produce a broken library.
10173	  no_undefined_flag=' $wl-bernotok'
10174	  allow_undefined_flag=' $wl-berok'
10175	  if test yes = "$with_gnu_ld"; then
10176	    # We only use this code for GNU lds that support --whole-archive.
10177	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10178	  else
10179	    # Exported symbols can be pulled into shared objects from archives
10180	    whole_archive_flag_spec='$convenience'
10181	  fi
10182	  archive_cmds_need_lc=yes
10183	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10184	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10185	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10186	  if test svr4 != "$with_aix_soname"; then
10187	    # This is similar to how AIX traditionally builds its shared libraries.
10188	    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'
10189	  fi
10190	  if test aix != "$with_aix_soname"; then
10191	    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'
10192	  else
10193	    # used by -dlpreopen to get the symbols
10194	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10195	  fi
10196	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10197	fi
10198      fi
10199      ;;
10200
10201    amigaos*)
10202      case $host_cpu in
10203      powerpc)
10204            # see comment about AmigaOS4 .so support
10205            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10206            archive_expsym_cmds=''
10207        ;;
10208      m68k)
10209            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)'
10210            hardcode_libdir_flag_spec='-L$libdir'
10211            hardcode_minus_L=yes
10212        ;;
10213      esac
10214      ;;
10215
10216    bsdi[45]*)
10217      export_dynamic_flag_spec=-rdynamic
10218      ;;
10219
10220    cygwin* | mingw* | pw32* | cegcc*)
10221      # When not using gcc, we currently assume that we are using
10222      # Microsoft Visual C++.
10223      # hardcode_libdir_flag_spec is actually meaningless, as there is
10224      # no search path for DLLs.
10225      case $cc_basename in
10226      cl*)
10227	# Native MSVC
10228	hardcode_libdir_flag_spec=' '
10229	allow_undefined_flag=unsupported
10230	always_export_symbols=yes
10231	file_list_spec='@'
10232	# Tell ltmain to make .lib files, not .a files.
10233	libext=lib
10234	# Tell ltmain to make .dll files, not .so files.
10235	shrext_cmds=.dll
10236	# FIXME: Setting linknames here is a bad hack.
10237	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10238	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10239            cp "$export_symbols" "$output_objdir/$soname.def";
10240            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10241          else
10242            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10243          fi~
10244          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10245          linknames='
10246	# The linker will not automatically build a static lib if we build a DLL.
10247	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10248	enable_shared_with_static_runtimes=yes
10249	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10250	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10251	# Don't use ranlib
10252	old_postinstall_cmds='chmod 644 $oldlib'
10253	postlink_cmds='lt_outputfile="@OUTPUT@"~
10254          lt_tool_outputfile="@TOOL_OUTPUT@"~
10255          case $lt_outputfile in
10256            *.exe|*.EXE) ;;
10257            *)
10258              lt_outputfile=$lt_outputfile.exe
10259              lt_tool_outputfile=$lt_tool_outputfile.exe
10260              ;;
10261          esac~
10262          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10263            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10264            $RM "$lt_outputfile.manifest";
10265          fi'
10266	;;
10267      *)
10268	# Assume MSVC wrapper
10269	hardcode_libdir_flag_spec=' '
10270	allow_undefined_flag=unsupported
10271	# Tell ltmain to make .lib files, not .a files.
10272	libext=lib
10273	# Tell ltmain to make .dll files, not .so files.
10274	shrext_cmds=.dll
10275	# FIXME: Setting linknames here is a bad hack.
10276	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10277	# The linker will automatically build a .lib file if we build a DLL.
10278	old_archive_from_new_cmds='true'
10279	# FIXME: Should let the user specify the lib program.
10280	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10281	enable_shared_with_static_runtimes=yes
10282	;;
10283      esac
10284      ;;
10285
10286    darwin* | rhapsody*)
10287
10288
10289  archive_cmds_need_lc=no
10290  hardcode_direct=no
10291  hardcode_automatic=yes
10292  hardcode_shlibpath_var=unsupported
10293  if test yes = "$lt_cv_ld_force_load"; then
10294    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\"`'
10295
10296  else
10297    whole_archive_flag_spec=''
10298  fi
10299  link_all_deplibs=yes
10300  allow_undefined_flag=$_lt_dar_allow_undefined
10301  case $cc_basename in
10302     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10303     *) _lt_dar_can_shared=$GCC ;;
10304  esac
10305  if test yes = "$_lt_dar_can_shared"; then
10306    output_verbose_link_cmd=func_echo_all
10307    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10308    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10309    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"
10310    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"
10311
10312  else
10313  ld_shlibs=no
10314  fi
10315
10316      ;;
10317
10318    dgux*)
10319      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320      hardcode_libdir_flag_spec='-L$libdir'
10321      hardcode_shlibpath_var=no
10322      ;;
10323
10324    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10325    # support.  Future versions do this automatically, but an explicit c++rt0.o
10326    # does not break anything, and helps significantly (at the cost of a little
10327    # extra space).
10328    freebsd2.2*)
10329      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10330      hardcode_libdir_flag_spec='-R$libdir'
10331      hardcode_direct=yes
10332      hardcode_shlibpath_var=no
10333      ;;
10334
10335    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10336    freebsd2.*)
10337      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10338      hardcode_direct=yes
10339      hardcode_minus_L=yes
10340      hardcode_shlibpath_var=no
10341      ;;
10342
10343    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10344    freebsd* | dragonfly*)
10345      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10346      hardcode_libdir_flag_spec='-R$libdir'
10347      hardcode_direct=yes
10348      hardcode_shlibpath_var=no
10349      ;;
10350
10351    hpux9*)
10352      if test yes = "$GCC"; then
10353	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'
10354      else
10355	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'
10356      fi
10357      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10358      hardcode_libdir_separator=:
10359      hardcode_direct=yes
10360
10361      # hardcode_minus_L: Not really in the search PATH,
10362      # but as the default location of the library.
10363      hardcode_minus_L=yes
10364      export_dynamic_flag_spec='$wl-E'
10365      ;;
10366
10367    hpux10*)
10368      if test yes,no = "$GCC,$with_gnu_ld"; then
10369	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10370      else
10371	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10372      fi
10373      if test no = "$with_gnu_ld"; then
10374	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10375	hardcode_libdir_separator=:
10376	hardcode_direct=yes
10377	hardcode_direct_absolute=yes
10378	export_dynamic_flag_spec='$wl-E'
10379	# hardcode_minus_L: Not really in the search PATH,
10380	# but as the default location of the library.
10381	hardcode_minus_L=yes
10382      fi
10383      ;;
10384
10385    hpux11*)
10386      if test yes,no = "$GCC,$with_gnu_ld"; then
10387	case $host_cpu in
10388	hppa*64*)
10389	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10390	  ;;
10391	ia64*)
10392	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10393	  ;;
10394	*)
10395	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10396	  ;;
10397	esac
10398      else
10399	case $host_cpu in
10400	hppa*64*)
10401	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10402	  ;;
10403	ia64*)
10404	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10405	  ;;
10406	*)
10407
10408	  # Older versions of the 11.00 compiler do not understand -b yet
10409	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10410	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10411$as_echo_n "checking if $CC understands -b... " >&6; }
10412if ${lt_cv_prog_compiler__b+:} false; then :
10413  $as_echo_n "(cached) " >&6
10414else
10415  lt_cv_prog_compiler__b=no
10416   save_LDFLAGS=$LDFLAGS
10417   LDFLAGS="$LDFLAGS -b"
10418   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10419   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10420     # The linker can only warn and ignore the option if not recognized
10421     # So say no if there are warnings
10422     if test -s conftest.err; then
10423       # Append any errors to the config.log.
10424       cat conftest.err 1>&5
10425       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10426       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10427       if diff conftest.exp conftest.er2 >/dev/null; then
10428         lt_cv_prog_compiler__b=yes
10429       fi
10430     else
10431       lt_cv_prog_compiler__b=yes
10432     fi
10433   fi
10434   $RM -r conftest*
10435   LDFLAGS=$save_LDFLAGS
10436
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10439$as_echo "$lt_cv_prog_compiler__b" >&6; }
10440
10441if test yes = "$lt_cv_prog_compiler__b"; then
10442    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443else
10444    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445fi
10446
10447	  ;;
10448	esac
10449      fi
10450      if test no = "$with_gnu_ld"; then
10451	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10452	hardcode_libdir_separator=:
10453
10454	case $host_cpu in
10455	hppa*64*|ia64*)
10456	  hardcode_direct=no
10457	  hardcode_shlibpath_var=no
10458	  ;;
10459	*)
10460	  hardcode_direct=yes
10461	  hardcode_direct_absolute=yes
10462	  export_dynamic_flag_spec='$wl-E'
10463
10464	  # hardcode_minus_L: Not really in the search PATH,
10465	  # but as the default location of the library.
10466	  hardcode_minus_L=yes
10467	  ;;
10468	esac
10469      fi
10470      ;;
10471
10472    irix5* | irix6* | nonstopux*)
10473      if test yes = "$GCC"; then
10474	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'
10475	# Try to use the -exported_symbol ld option, if it does not
10476	# work, assume that -exports_file does not work either and
10477	# implicitly export all symbols.
10478	# This should be the same for all languages, so no per-tag cache variable.
10479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10480$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10481if ${lt_cv_irix_exported_symbol+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  save_LDFLAGS=$LDFLAGS
10485	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10486	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488int foo (void) { return 0; }
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491  lt_cv_irix_exported_symbol=yes
10492else
10493  lt_cv_irix_exported_symbol=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496    conftest$ac_exeext conftest.$ac_ext
10497           LDFLAGS=$save_LDFLAGS
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10500$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10501	if test yes = "$lt_cv_irix_exported_symbol"; then
10502          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'
10503	fi
10504      else
10505	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'
10506	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'
10507      fi
10508      archive_cmds_need_lc='no'
10509      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10510      hardcode_libdir_separator=:
10511      inherit_rpath=yes
10512      link_all_deplibs=yes
10513      ;;
10514
10515    linux*)
10516      case $cc_basename in
10517      tcc*)
10518	# Fabrice Bellard et al's Tiny C Compiler
10519	ld_shlibs=yes
10520	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521	;;
10522      esac
10523      ;;
10524
10525    netbsd*)
10526      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10527	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10528      else
10529	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10530      fi
10531      hardcode_libdir_flag_spec='-R$libdir'
10532      hardcode_direct=yes
10533      hardcode_shlibpath_var=no
10534      ;;
10535
10536    newsos6)
10537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538      hardcode_direct=yes
10539      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10540      hardcode_libdir_separator=:
10541      hardcode_shlibpath_var=no
10542      ;;
10543
10544    *nto* | *qnx*)
10545      ;;
10546
10547    openbsd* | bitrig*)
10548      if test -f /usr/libexec/ld.so; then
10549	hardcode_direct=yes
10550	hardcode_shlibpath_var=no
10551	hardcode_direct_absolute=yes
10552	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10553	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10554	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10555	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10556	  export_dynamic_flag_spec='$wl-E'
10557	else
10558	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10559	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10560	fi
10561      else
10562	ld_shlibs=no
10563      fi
10564      ;;
10565
10566    os2*)
10567      hardcode_libdir_flag_spec='-L$libdir'
10568      hardcode_minus_L=yes
10569      allow_undefined_flag=unsupported
10570      shrext_cmds=.dll
10571      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10572	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10573	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10574	$ECHO EXPORTS >> $output_objdir/$libname.def~
10575	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10576	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10577	emximp -o $lib $output_objdir/$libname.def'
10578      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10579	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10580	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10581	$ECHO EXPORTS >> $output_objdir/$libname.def~
10582	prefix_cmds="$SED"~
10583	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10584	  prefix_cmds="$prefix_cmds -e 1d";
10585	fi~
10586	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10587	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10588	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10589	emximp -o $lib $output_objdir/$libname.def'
10590      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10591      enable_shared_with_static_runtimes=yes
10592      ;;
10593
10594    osf3*)
10595      if test yes = "$GCC"; then
10596	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10597	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'
10598      else
10599	allow_undefined_flag=' -expect_unresolved \*'
10600	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'
10601      fi
10602      archive_cmds_need_lc='no'
10603      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10604      hardcode_libdir_separator=:
10605      ;;
10606
10607    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10608      if test yes = "$GCC"; then
10609	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10610	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'
10611	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10612      else
10613	allow_undefined_flag=' -expect_unresolved \*'
10614	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'
10615	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~
10616          $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'
10617
10618	# Both c and cxx compiler support -rpath directly
10619	hardcode_libdir_flag_spec='-rpath $libdir'
10620      fi
10621      archive_cmds_need_lc='no'
10622      hardcode_libdir_separator=:
10623      ;;
10624
10625    solaris*)
10626      no_undefined_flag=' -z defs'
10627      if test yes = "$GCC"; then
10628	wlarc='$wl'
10629	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10630	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10631          $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'
10632      else
10633	case `$CC -V 2>&1` in
10634	*"Compilers 5.0"*)
10635	  wlarc=''
10636	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10638            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10639	  ;;
10640	*)
10641	  wlarc='$wl'
10642	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10645	  ;;
10646	esac
10647      fi
10648      hardcode_libdir_flag_spec='-R$libdir'
10649      hardcode_shlibpath_var=no
10650      case $host_os in
10651      solaris2.[0-5] | solaris2.[0-5].*) ;;
10652      *)
10653	# The compiler driver will combine and reorder linker options,
10654	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10655	# but is careful enough not to reorder.
10656	# Supported since Solaris 2.6 (maybe 2.5.1?)
10657	if test yes = "$GCC"; then
10658	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10659	else
10660	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10661	fi
10662	;;
10663      esac
10664      link_all_deplibs=yes
10665      ;;
10666
10667    sunos4*)
10668      if test sequent = "$host_vendor"; then
10669	# Use $CC to link under sequent, because it throws in some extra .o
10670	# files that make .init and .fini sections work.
10671	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10672      else
10673	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10674      fi
10675      hardcode_libdir_flag_spec='-L$libdir'
10676      hardcode_direct=yes
10677      hardcode_minus_L=yes
10678      hardcode_shlibpath_var=no
10679      ;;
10680
10681    sysv4)
10682      case $host_vendor in
10683	sni)
10684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685	  hardcode_direct=yes # is this really true???
10686	;;
10687	siemens)
10688	  ## LD is ld it makes a PLAMLIB
10689	  ## CC just makes a GrossModule.
10690	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10691	  reload_cmds='$CC -r -o $output$reload_objs'
10692	  hardcode_direct=no
10693        ;;
10694	motorola)
10695	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10696	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10697	;;
10698      esac
10699      runpath_var='LD_RUN_PATH'
10700      hardcode_shlibpath_var=no
10701      ;;
10702
10703    sysv4.3*)
10704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705      hardcode_shlibpath_var=no
10706      export_dynamic_flag_spec='-Bexport'
10707      ;;
10708
10709    sysv4*MP*)
10710      if test -d /usr/nec; then
10711	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712	hardcode_shlibpath_var=no
10713	runpath_var=LD_RUN_PATH
10714	hardcode_runpath_var=yes
10715	ld_shlibs=yes
10716      fi
10717      ;;
10718
10719    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10720      no_undefined_flag='$wl-z,text'
10721      archive_cmds_need_lc=no
10722      hardcode_shlibpath_var=no
10723      runpath_var='LD_RUN_PATH'
10724
10725      if test yes = "$GCC"; then
10726	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10727	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728      else
10729	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731      fi
10732      ;;
10733
10734    sysv5* | sco3.2v5* | sco5v6*)
10735      # Note: We CANNOT use -z defs as we might desire, because we do not
10736      # link with -lc, and that would cause any symbols used from libc to
10737      # always be unresolved, which means just about no library would
10738      # ever link correctly.  If we're not using GNU ld we use -z text
10739      # though, which does catch some bad symbols but isn't as heavy-handed
10740      # as -z defs.
10741      no_undefined_flag='$wl-z,text'
10742      allow_undefined_flag='$wl-z,nodefs'
10743      archive_cmds_need_lc=no
10744      hardcode_shlibpath_var=no
10745      hardcode_libdir_flag_spec='$wl-R,$libdir'
10746      hardcode_libdir_separator=':'
10747      link_all_deplibs=yes
10748      export_dynamic_flag_spec='$wl-Bexport'
10749      runpath_var='LD_RUN_PATH'
10750
10751      if test yes = "$GCC"; then
10752	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754      else
10755	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757      fi
10758      ;;
10759
10760    uts4*)
10761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762      hardcode_libdir_flag_spec='-L$libdir'
10763      hardcode_shlibpath_var=no
10764      ;;
10765
10766    *)
10767      ld_shlibs=no
10768      ;;
10769    esac
10770
10771    if test sni = "$host_vendor"; then
10772      case $host in
10773      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10774	export_dynamic_flag_spec='$wl-Blargedynsym'
10775	;;
10776      esac
10777    fi
10778  fi
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10781$as_echo "$ld_shlibs" >&6; }
10782test no = "$ld_shlibs" && can_build_shared=no
10783
10784with_gnu_ld=$with_gnu_ld
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800#
10801# Do we need to explicitly link libc?
10802#
10803case "x$archive_cmds_need_lc" in
10804x|xyes)
10805  # Assume -lc should be added
10806  archive_cmds_need_lc=yes
10807
10808  if test yes,yes = "$GCC,$enable_shared"; then
10809    case $archive_cmds in
10810    *'~'*)
10811      # FIXME: we may have to deal with multi-command sequences.
10812      ;;
10813    '$CC '*)
10814      # Test whether the compiler implicitly links with -lc since on some
10815      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10816      # to ld, don't add -lc before -lgcc.
10817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10819if ${lt_cv_archive_cmds_need_lc+:} false; then :
10820  $as_echo_n "(cached) " >&6
10821else
10822  $RM conftest*
10823	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10824
10825	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10826  (eval $ac_compile) 2>&5
10827  ac_status=$?
10828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829  test $ac_status = 0; } 2>conftest.err; then
10830	  soname=conftest
10831	  lib=conftest
10832	  libobjs=conftest.$ac_objext
10833	  deplibs=
10834	  wl=$lt_prog_compiler_wl
10835	  pic_flag=$lt_prog_compiler_pic
10836	  compiler_flags=-v
10837	  linker_flags=-v
10838	  verstring=
10839	  output_objdir=.
10840	  libname=conftest
10841	  lt_save_allow_undefined_flag=$allow_undefined_flag
10842	  allow_undefined_flag=
10843	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10844  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10845  ac_status=$?
10846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10847  test $ac_status = 0; }
10848	  then
10849	    lt_cv_archive_cmds_need_lc=no
10850	  else
10851	    lt_cv_archive_cmds_need_lc=yes
10852	  fi
10853	  allow_undefined_flag=$lt_save_allow_undefined_flag
10854	else
10855	  cat conftest.err 1>&5
10856	fi
10857	$RM conftest*
10858
10859fi
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10861$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10862      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10863      ;;
10864    esac
10865  fi
10866  ;;
10867esac
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11021$as_echo_n "checking dynamic linker characteristics... " >&6; }
11022
11023if test yes = "$GCC"; then
11024  case $host_os in
11025    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11026    *) lt_awk_arg='/^libraries:/' ;;
11027  esac
11028  case $host_os in
11029    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11030    *) lt_sed_strip_eq='s|=/|/|g' ;;
11031  esac
11032  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11033  case $lt_search_path_spec in
11034  *\;*)
11035    # if the path contains ";" then we assume it to be the separator
11036    # otherwise default to the standard path separator (i.e. ":") - it is
11037    # assumed that no part of a normal pathname contains ";" but that should
11038    # okay in the real world where ";" in dirpaths is itself problematic.
11039    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11040    ;;
11041  *)
11042    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11043    ;;
11044  esac
11045  # Ok, now we have the path, separated by spaces, we can step through it
11046  # and add multilib dir if necessary...
11047  lt_tmp_lt_search_path_spec=
11048  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11049  # ...but if some path component already ends with the multilib dir we assume
11050  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11051  case "$lt_multi_os_dir; $lt_search_path_spec " in
11052  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11053    lt_multi_os_dir=
11054    ;;
11055  esac
11056  for lt_sys_path in $lt_search_path_spec; do
11057    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11058      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11059    elif test -n "$lt_multi_os_dir"; then
11060      test -d "$lt_sys_path" && \
11061	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11062    fi
11063  done
11064  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11065BEGIN {RS = " "; FS = "/|\n";} {
11066  lt_foo = "";
11067  lt_count = 0;
11068  for (lt_i = NF; lt_i > 0; lt_i--) {
11069    if ($lt_i != "" && $lt_i != ".") {
11070      if ($lt_i == "..") {
11071        lt_count++;
11072      } else {
11073        if (lt_count == 0) {
11074          lt_foo = "/" $lt_i lt_foo;
11075        } else {
11076          lt_count--;
11077        }
11078      }
11079    }
11080  }
11081  if (lt_foo != "") { lt_freq[lt_foo]++; }
11082  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11083}'`
11084  # AWK program above erroneously prepends '/' to C:/dos/paths
11085  # for these hosts.
11086  case $host_os in
11087    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11088      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11089  esac
11090  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11091else
11092  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11093fi
11094library_names_spec=
11095libname_spec='lib$name'
11096soname_spec=
11097shrext_cmds=.so
11098postinstall_cmds=
11099postuninstall_cmds=
11100finish_cmds=
11101finish_eval=
11102shlibpath_var=
11103shlibpath_overrides_runpath=unknown
11104version_type=none
11105dynamic_linker="$host_os ld.so"
11106sys_lib_dlsearch_path_spec="/lib /usr/lib"
11107need_lib_prefix=unknown
11108hardcode_into_libs=no
11109
11110# when you set need_version to no, make sure it does not cause -set_version
11111# flags to be left without arguments
11112need_version=unknown
11113
11114
11115
11116case $host_os in
11117aix3*)
11118  version_type=linux # correct to gnu/linux during the next big refactor
11119  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11120  shlibpath_var=LIBPATH
11121
11122  # AIX 3 has no versioning support, so we append a major version to the name.
11123  soname_spec='$libname$release$shared_ext$major'
11124  ;;
11125
11126aix[4-9]*)
11127  version_type=linux # correct to gnu/linux during the next big refactor
11128  need_lib_prefix=no
11129  need_version=no
11130  hardcode_into_libs=yes
11131  if test ia64 = "$host_cpu"; then
11132    # AIX 5 supports IA64
11133    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11134    shlibpath_var=LD_LIBRARY_PATH
11135  else
11136    # With GCC up to 2.95.x, collect2 would create an import file
11137    # for dependence libraries.  The import file would start with
11138    # the line '#! .'.  This would cause the generated library to
11139    # depend on '.', always an invalid library.  This was fixed in
11140    # development snapshots of GCC prior to 3.0.
11141    case $host_os in
11142      aix4 | aix4.[01] | aix4.[01].*)
11143      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11144	   echo ' yes '
11145	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11146	:
11147      else
11148	can_build_shared=no
11149      fi
11150      ;;
11151    esac
11152    # Using Import Files as archive members, it is possible to support
11153    # filename-based versioning of shared library archives on AIX. While
11154    # this would work for both with and without runtime linking, it will
11155    # prevent static linking of such archives. So we do filename-based
11156    # shared library versioning with .so extension only, which is used
11157    # when both runtime linking and shared linking is enabled.
11158    # Unfortunately, runtime linking may impact performance, so we do
11159    # not want this to be the default eventually. Also, we use the
11160    # versioned .so libs for executables only if there is the -brtl
11161    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11162    # To allow for filename-based versioning support, we need to create
11163    # libNAME.so.V as an archive file, containing:
11164    # *) an Import File, referring to the versioned filename of the
11165    #    archive as well as the shared archive member, telling the
11166    #    bitwidth (32 or 64) of that shared object, and providing the
11167    #    list of exported symbols of that shared object, eventually
11168    #    decorated with the 'weak' keyword
11169    # *) the shared object with the F_LOADONLY flag set, to really avoid
11170    #    it being seen by the linker.
11171    # At run time we better use the real file rather than another symlink,
11172    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11173
11174    case $with_aix_soname,$aix_use_runtimelinking in
11175    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11176    # soname into executable. Probably we can add versioning support to
11177    # collect2, so additional links can be useful in future.
11178    aix,yes) # traditional libtool
11179      dynamic_linker='AIX unversionable lib.so'
11180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11181      # instead of lib<name>.a to let people know that these are not
11182      # typical AIX shared libraries.
11183      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184      ;;
11185    aix,no) # traditional AIX only
11186      dynamic_linker='AIX lib.a(lib.so.V)'
11187      # We preserve .a as extension for shared libraries through AIX4.2
11188      # and later when we are not doing run time linking.
11189      library_names_spec='$libname$release.a $libname.a'
11190      soname_spec='$libname$release$shared_ext$major'
11191      ;;
11192    svr4,*) # full svr4 only
11193      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11194      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11195      # We do not specify a path in Import Files, so LIBPATH fires.
11196      shlibpath_overrides_runpath=yes
11197      ;;
11198    *,yes) # both, prefer svr4
11199      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11200      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11201      # unpreferred sharedlib libNAME.a needs extra handling
11202      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"'
11203      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"'
11204      # We do not specify a path in Import Files, so LIBPATH fires.
11205      shlibpath_overrides_runpath=yes
11206      ;;
11207    *,no) # both, prefer aix
11208      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11209      library_names_spec='$libname$release.a $libname.a'
11210      soname_spec='$libname$release$shared_ext$major'
11211      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11212      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)'
11213      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"'
11214      ;;
11215    esac
11216    shlibpath_var=LIBPATH
11217  fi
11218  ;;
11219
11220amigaos*)
11221  case $host_cpu in
11222  powerpc)
11223    # Since July 2007 AmigaOS4 officially supports .so libraries.
11224    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11225    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226    ;;
11227  m68k)
11228    library_names_spec='$libname.ixlibrary $libname.a'
11229    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11230    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'
11231    ;;
11232  esac
11233  ;;
11234
11235beos*)
11236  library_names_spec='$libname$shared_ext'
11237  dynamic_linker="$host_os ld.so"
11238  shlibpath_var=LIBRARY_PATH
11239  ;;
11240
11241bsdi[45]*)
11242  version_type=linux # correct to gnu/linux during the next big refactor
11243  need_version=no
11244  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245  soname_spec='$libname$release$shared_ext$major'
11246  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11247  shlibpath_var=LD_LIBRARY_PATH
11248  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11249  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11250  # the default ld.so.conf also contains /usr/contrib/lib and
11251  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11252  # libtool to hard-code these into programs
11253  ;;
11254
11255cygwin* | mingw* | pw32* | cegcc*)
11256  version_type=windows
11257  shrext_cmds=.dll
11258  need_version=no
11259  need_lib_prefix=no
11260
11261  case $GCC,$cc_basename in
11262  yes,*)
11263    # gcc
11264    library_names_spec='$libname.dll.a'
11265    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11266    postinstall_cmds='base_file=`basename \$file`~
11267      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11268      dldir=$destdir/`dirname \$dlpath`~
11269      test -d \$dldir || mkdir -p \$dldir~
11270      $install_prog $dir/$dlname \$dldir/$dlname~
11271      chmod a+x \$dldir/$dlname~
11272      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11273        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11274      fi'
11275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11276      dlpath=$dir/\$dldll~
11277       $RM \$dlpath'
11278    shlibpath_overrides_runpath=yes
11279
11280    case $host_os in
11281    cygwin*)
11282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11283      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11284
11285      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11286      ;;
11287    mingw* | cegcc*)
11288      # MinGW DLLs use traditional 'lib' prefix
11289      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11290      ;;
11291    pw32*)
11292      # pw32 DLLs use 'pw' prefix rather than 'lib'
11293      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11294      ;;
11295    esac
11296    dynamic_linker='Win32 ld.exe'
11297    ;;
11298
11299  *,cl*)
11300    # Native MSVC
11301    libname_spec='$name'
11302    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11303    library_names_spec='$libname.dll.lib'
11304
11305    case $build_os in
11306    mingw*)
11307      sys_lib_search_path_spec=
11308      lt_save_ifs=$IFS
11309      IFS=';'
11310      for lt_path in $LIB
11311      do
11312        IFS=$lt_save_ifs
11313        # Let DOS variable expansion print the short 8.3 style file name.
11314        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11315        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11316      done
11317      IFS=$lt_save_ifs
11318      # Convert to MSYS style.
11319      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11320      ;;
11321    cygwin*)
11322      # Convert to unix form, then to dos form, then back to unix form
11323      # but this time dos style (no spaces!) so that the unix form looks
11324      # like /cygdrive/c/PROGRA~1:/cygdr...
11325      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11326      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11327      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11328      ;;
11329    *)
11330      sys_lib_search_path_spec=$LIB
11331      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11332        # It is most probably a Windows format PATH.
11333        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11334      else
11335        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11336      fi
11337      # FIXME: find the short name or the path components, as spaces are
11338      # common. (e.g. "Program Files" -> "PROGRA~1")
11339      ;;
11340    esac
11341
11342    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11343    postinstall_cmds='base_file=`basename \$file`~
11344      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11345      dldir=$destdir/`dirname \$dlpath`~
11346      test -d \$dldir || mkdir -p \$dldir~
11347      $install_prog $dir/$dlname \$dldir/$dlname'
11348    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11349      dlpath=$dir/\$dldll~
11350       $RM \$dlpath'
11351    shlibpath_overrides_runpath=yes
11352    dynamic_linker='Win32 link.exe'
11353    ;;
11354
11355  *)
11356    # Assume MSVC wrapper
11357    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11358    dynamic_linker='Win32 ld.exe'
11359    ;;
11360  esac
11361  # FIXME: first we should search . and the directory the executable is in
11362  shlibpath_var=PATH
11363  ;;
11364
11365darwin* | rhapsody*)
11366  dynamic_linker="$host_os dyld"
11367  version_type=darwin
11368  need_lib_prefix=no
11369  need_version=no
11370  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11371  soname_spec='$libname$release$major$shared_ext'
11372  shlibpath_overrides_runpath=yes
11373  shlibpath_var=DYLD_LIBRARY_PATH
11374  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11375
11376  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11377  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11378  ;;
11379
11380dgux*)
11381  version_type=linux # correct to gnu/linux during the next big refactor
11382  need_lib_prefix=no
11383  need_version=no
11384  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385  soname_spec='$libname$release$shared_ext$major'
11386  shlibpath_var=LD_LIBRARY_PATH
11387  ;;
11388
11389freebsd* | dragonfly*)
11390  # DragonFly does not have aout.  When/if they implement a new
11391  # versioning mechanism, adjust this.
11392  if test -x /usr/bin/objformat; then
11393    objformat=`/usr/bin/objformat`
11394  else
11395    case $host_os in
11396    freebsd[23].*) objformat=aout ;;
11397    *) objformat=elf ;;
11398    esac
11399  fi
11400  version_type=freebsd-$objformat
11401  case $version_type in
11402    freebsd-elf*)
11403      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11404      soname_spec='$libname$release$shared_ext$major'
11405      need_version=no
11406      need_lib_prefix=no
11407      ;;
11408    freebsd-*)
11409      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11410      need_version=yes
11411      ;;
11412  esac
11413  shlibpath_var=LD_LIBRARY_PATH
11414  case $host_os in
11415  freebsd2.*)
11416    shlibpath_overrides_runpath=yes
11417    ;;
11418  freebsd3.[01]* | freebsdelf3.[01]*)
11419    shlibpath_overrides_runpath=yes
11420    hardcode_into_libs=yes
11421    ;;
11422  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11423  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11424    shlibpath_overrides_runpath=no
11425    hardcode_into_libs=yes
11426    ;;
11427  *) # from 4.6 on, and DragonFly
11428    shlibpath_overrides_runpath=yes
11429    hardcode_into_libs=yes
11430    ;;
11431  esac
11432  ;;
11433
11434haiku*)
11435  version_type=linux # correct to gnu/linux during the next big refactor
11436  need_lib_prefix=no
11437  need_version=no
11438  dynamic_linker="$host_os runtime_loader"
11439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440  soname_spec='$libname$release$shared_ext$major'
11441  shlibpath_var=LIBRARY_PATH
11442  shlibpath_overrides_runpath=no
11443  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11444  hardcode_into_libs=yes
11445  ;;
11446
11447hpux9* | hpux10* | hpux11*)
11448  # Give a soname corresponding to the major version so that dld.sl refuses to
11449  # link against other versions.
11450  version_type=sunos
11451  need_lib_prefix=no
11452  need_version=no
11453  case $host_cpu in
11454  ia64*)
11455    shrext_cmds='.so'
11456    hardcode_into_libs=yes
11457    dynamic_linker="$host_os dld.so"
11458    shlibpath_var=LD_LIBRARY_PATH
11459    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11460    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461    soname_spec='$libname$release$shared_ext$major'
11462    if test 32 = "$HPUX_IA64_MODE"; then
11463      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11464      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11465    else
11466      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11467      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11468    fi
11469    ;;
11470  hppa*64*)
11471    shrext_cmds='.sl'
11472    hardcode_into_libs=yes
11473    dynamic_linker="$host_os dld.sl"
11474    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11475    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11476    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477    soname_spec='$libname$release$shared_ext$major'
11478    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11479    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11480    ;;
11481  *)
11482    shrext_cmds='.sl'
11483    dynamic_linker="$host_os dld.sl"
11484    shlibpath_var=SHLIB_PATH
11485    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11486    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11487    soname_spec='$libname$release$shared_ext$major'
11488    ;;
11489  esac
11490  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11491  postinstall_cmds='chmod 555 $lib'
11492  # or fails outright, so override atomically:
11493  install_override_mode=555
11494  ;;
11495
11496interix[3-9]*)
11497  version_type=linux # correct to gnu/linux during the next big refactor
11498  need_lib_prefix=no
11499  need_version=no
11500  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501  soname_spec='$libname$release$shared_ext$major'
11502  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11503  shlibpath_var=LD_LIBRARY_PATH
11504  shlibpath_overrides_runpath=no
11505  hardcode_into_libs=yes
11506  ;;
11507
11508irix5* | irix6* | nonstopux*)
11509  case $host_os in
11510    nonstopux*) version_type=nonstopux ;;
11511    *)
11512	if test yes = "$lt_cv_prog_gnu_ld"; then
11513		version_type=linux # correct to gnu/linux during the next big refactor
11514	else
11515		version_type=irix
11516	fi ;;
11517  esac
11518  need_lib_prefix=no
11519  need_version=no
11520  soname_spec='$libname$release$shared_ext$major'
11521  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11522  case $host_os in
11523  irix5* | nonstopux*)
11524    libsuff= shlibsuff=
11525    ;;
11526  *)
11527    case $LD in # libtool.m4 will add one of these switches to LD
11528    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11529      libsuff= shlibsuff= libmagic=32-bit;;
11530    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11531      libsuff=32 shlibsuff=N32 libmagic=N32;;
11532    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11533      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11534    *) libsuff= shlibsuff= libmagic=never-match;;
11535    esac
11536    ;;
11537  esac
11538  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11539  shlibpath_overrides_runpath=no
11540  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11541  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11542  hardcode_into_libs=yes
11543  ;;
11544
11545# No shared lib support for Linux oldld, aout, or coff.
11546linux*oldld* | linux*aout* | linux*coff*)
11547  dynamic_linker=no
11548  ;;
11549
11550linux*android*)
11551  version_type=none # Android doesn't support versioned libraries.
11552  need_lib_prefix=no
11553  need_version=no
11554  library_names_spec='$libname$release$shared_ext'
11555  soname_spec='$libname$release$shared_ext'
11556  finish_cmds=
11557  shlibpath_var=LD_LIBRARY_PATH
11558  shlibpath_overrides_runpath=yes
11559
11560  # This implies no fast_install, which is unacceptable.
11561  # Some rework will be needed to allow for fast_install
11562  # before this can be enabled.
11563  hardcode_into_libs=yes
11564
11565  dynamic_linker='Android linker'
11566  # Don't embed -rpath directories since the linker doesn't support them.
11567  hardcode_libdir_flag_spec='-L$libdir'
11568  ;;
11569
11570# This must be glibc/ELF.
11571linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11572  version_type=linux # correct to gnu/linux during the next big refactor
11573  need_lib_prefix=no
11574  need_version=no
11575  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11576  soname_spec='$libname$release$shared_ext$major'
11577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11578  shlibpath_var=LD_LIBRARY_PATH
11579  shlibpath_overrides_runpath=no
11580
11581  # Some binutils ld are patched to set DT_RUNPATH
11582  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11583  $as_echo_n "(cached) " >&6
11584else
11585  lt_cv_shlibpath_overrides_runpath=no
11586    save_LDFLAGS=$LDFLAGS
11587    save_libdir=$libdir
11588    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11589	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591/* end confdefs.h.  */
11592
11593int
11594main ()
11595{
11596
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_link "$LINENO"; then :
11602  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11603  lt_cv_shlibpath_overrides_runpath=yes
11604fi
11605fi
11606rm -f core conftest.err conftest.$ac_objext \
11607    conftest$ac_exeext conftest.$ac_ext
11608    LDFLAGS=$save_LDFLAGS
11609    libdir=$save_libdir
11610
11611fi
11612
11613  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11614
11615  # This implies no fast_install, which is unacceptable.
11616  # Some rework will be needed to allow for fast_install
11617  # before this can be enabled.
11618  hardcode_into_libs=yes
11619
11620  # Add ABI-specific directories to the system library path.
11621  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11622
11623  # Ideally, we could use ldconfig to report *all* directores which are
11624  # searched for libraries, however this is still not possible.  Aside from not
11625  # being certain /sbin/ldconfig is available, command
11626  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11627  # even though it is searched at run-time.  Try to do the best guess by
11628  # appending ld.so.conf contents (and includes) to the search path.
11629  if test -f /etc/ld.so.conf; then
11630    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' ' '`
11631    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11632  fi
11633
11634  # We used to test for /lib/ld.so.1 and disable shared libraries on
11635  # powerpc, because MkLinux only supported shared libraries with the
11636  # GNU dynamic linker.  Since this was broken with cross compilers,
11637  # most powerpc-linux boxes support dynamic linking these days and
11638  # people can always --disable-shared, the test was removed, and we
11639  # assume the GNU/Linux dynamic linker is in use.
11640  dynamic_linker='GNU/Linux ld.so'
11641  ;;
11642
11643netbsd*)
11644  version_type=sunos
11645  need_lib_prefix=no
11646  need_version=no
11647  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11648    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11649    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11650    dynamic_linker='NetBSD (a.out) ld.so'
11651  else
11652    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11653    soname_spec='$libname$release$shared_ext$major'
11654    dynamic_linker='NetBSD ld.elf_so'
11655  fi
11656  shlibpath_var=LD_LIBRARY_PATH
11657  shlibpath_overrides_runpath=yes
11658  hardcode_into_libs=yes
11659  ;;
11660
11661newsos6)
11662  version_type=linux # correct to gnu/linux during the next big refactor
11663  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664  shlibpath_var=LD_LIBRARY_PATH
11665  shlibpath_overrides_runpath=yes
11666  ;;
11667
11668*nto* | *qnx*)
11669  version_type=qnx
11670  need_lib_prefix=no
11671  need_version=no
11672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11673  soname_spec='$libname$release$shared_ext$major'
11674  shlibpath_var=LD_LIBRARY_PATH
11675  shlibpath_overrides_runpath=no
11676  hardcode_into_libs=yes
11677  dynamic_linker='ldqnx.so'
11678  ;;
11679
11680openbsd* | bitrig*)
11681  version_type=sunos
11682  sys_lib_dlsearch_path_spec=/usr/lib
11683  need_lib_prefix=no
11684  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11685    need_version=no
11686  else
11687    need_version=yes
11688  fi
11689  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11690  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11691  shlibpath_var=LD_LIBRARY_PATH
11692  shlibpath_overrides_runpath=yes
11693  ;;
11694
11695os2*)
11696  libname_spec='$name'
11697  version_type=windows
11698  shrext_cmds=.dll
11699  need_version=no
11700  need_lib_prefix=no
11701  # OS/2 can only load a DLL with a base name of 8 characters or less.
11702  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11703    v=$($ECHO $release$versuffix | tr -d .-);
11704    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11705    $ECHO $n$v`$shared_ext'
11706  library_names_spec='${libname}_dll.$libext'
11707  dynamic_linker='OS/2 ld.exe'
11708  shlibpath_var=BEGINLIBPATH
11709  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11710  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11711  postinstall_cmds='base_file=`basename \$file`~
11712    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11713    dldir=$destdir/`dirname \$dlpath`~
11714    test -d \$dldir || mkdir -p \$dldir~
11715    $install_prog $dir/$dlname \$dldir/$dlname~
11716    chmod a+x \$dldir/$dlname~
11717    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11718      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11719    fi'
11720  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11721    dlpath=$dir/\$dldll~
11722    $RM \$dlpath'
11723  ;;
11724
11725osf3* | osf4* | osf5*)
11726  version_type=osf
11727  need_lib_prefix=no
11728  need_version=no
11729  soname_spec='$libname$release$shared_ext$major'
11730  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731  shlibpath_var=LD_LIBRARY_PATH
11732  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11733  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11734  ;;
11735
11736rdos*)
11737  dynamic_linker=no
11738  ;;
11739
11740solaris*)
11741  version_type=linux # correct to gnu/linux during the next big refactor
11742  need_lib_prefix=no
11743  need_version=no
11744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745  soname_spec='$libname$release$shared_ext$major'
11746  shlibpath_var=LD_LIBRARY_PATH
11747  shlibpath_overrides_runpath=yes
11748  hardcode_into_libs=yes
11749  # ldd complains unless libraries are executable
11750  postinstall_cmds='chmod +x $lib'
11751  ;;
11752
11753sunos4*)
11754  version_type=sunos
11755  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11756  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11757  shlibpath_var=LD_LIBRARY_PATH
11758  shlibpath_overrides_runpath=yes
11759  if test yes = "$with_gnu_ld"; then
11760    need_lib_prefix=no
11761  fi
11762  need_version=yes
11763  ;;
11764
11765sysv4 | sysv4.3*)
11766  version_type=linux # correct to gnu/linux during the next big refactor
11767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768  soname_spec='$libname$release$shared_ext$major'
11769  shlibpath_var=LD_LIBRARY_PATH
11770  case $host_vendor in
11771    sni)
11772      shlibpath_overrides_runpath=no
11773      need_lib_prefix=no
11774      runpath_var=LD_RUN_PATH
11775      ;;
11776    siemens)
11777      need_lib_prefix=no
11778      ;;
11779    motorola)
11780      need_lib_prefix=no
11781      need_version=no
11782      shlibpath_overrides_runpath=no
11783      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11784      ;;
11785  esac
11786  ;;
11787
11788sysv4*MP*)
11789  if test -d /usr/nec; then
11790    version_type=linux # correct to gnu/linux during the next big refactor
11791    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11792    soname_spec='$libname$shared_ext.$major'
11793    shlibpath_var=LD_LIBRARY_PATH
11794  fi
11795  ;;
11796
11797sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11798  version_type=sco
11799  need_lib_prefix=no
11800  need_version=no
11801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11802  soname_spec='$libname$release$shared_ext$major'
11803  shlibpath_var=LD_LIBRARY_PATH
11804  shlibpath_overrides_runpath=yes
11805  hardcode_into_libs=yes
11806  if test yes = "$with_gnu_ld"; then
11807    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11808  else
11809    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11810    case $host_os in
11811      sco3.2v5*)
11812        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11813	;;
11814    esac
11815  fi
11816  sys_lib_dlsearch_path_spec='/usr/lib'
11817  ;;
11818
11819tpf*)
11820  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11821  version_type=linux # correct to gnu/linux during the next big refactor
11822  need_lib_prefix=no
11823  need_version=no
11824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11825  shlibpath_var=LD_LIBRARY_PATH
11826  shlibpath_overrides_runpath=no
11827  hardcode_into_libs=yes
11828  ;;
11829
11830uts4*)
11831  version_type=linux # correct to gnu/linux during the next big refactor
11832  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833  soname_spec='$libname$release$shared_ext$major'
11834  shlibpath_var=LD_LIBRARY_PATH
11835  ;;
11836
11837*)
11838  dynamic_linker=no
11839  ;;
11840esac
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11842$as_echo "$dynamic_linker" >&6; }
11843test no = "$dynamic_linker" && can_build_shared=no
11844
11845variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11846if test yes = "$GCC"; then
11847  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11848fi
11849
11850if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11851  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11852fi
11853
11854if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11855  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11856fi
11857
11858# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11859configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11860
11861# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11862func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11863
11864# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11865configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11964$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11965hardcode_action=
11966if test -n "$hardcode_libdir_flag_spec" ||
11967   test -n "$runpath_var" ||
11968   test yes = "$hardcode_automatic"; then
11969
11970  # We can hardcode non-existent directories.
11971  if test no != "$hardcode_direct" &&
11972     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11973     # have to relink, otherwise we might link with an installed library
11974     # when we should be linking with a yet-to-be-installed one
11975     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11976     test no != "$hardcode_minus_L"; then
11977    # Linking always hardcodes the temporary library directory.
11978    hardcode_action=relink
11979  else
11980    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11981    hardcode_action=immediate
11982  fi
11983else
11984  # We cannot hardcode anything, or else we can only hardcode existing
11985  # directories.
11986  hardcode_action=unsupported
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11989$as_echo "$hardcode_action" >&6; }
11990
11991if test relink = "$hardcode_action" ||
11992   test yes = "$inherit_rpath"; then
11993  # Fast installation is not supported
11994  enable_fast_install=no
11995elif test yes = "$shlibpath_overrides_runpath" ||
11996     test no = "$enable_shared"; then
11997  # Fast installation is not necessary
11998  enable_fast_install=needless
11999fi
12000
12001
12002
12003
12004
12005
12006  if test yes != "$enable_dlopen"; then
12007  enable_dlopen=unknown
12008  enable_dlopen_self=unknown
12009  enable_dlopen_self_static=unknown
12010else
12011  lt_cv_dlopen=no
12012  lt_cv_dlopen_libs=
12013
12014  case $host_os in
12015  beos*)
12016    lt_cv_dlopen=load_add_on
12017    lt_cv_dlopen_libs=
12018    lt_cv_dlopen_self=yes
12019    ;;
12020
12021  mingw* | pw32* | cegcc*)
12022    lt_cv_dlopen=LoadLibrary
12023    lt_cv_dlopen_libs=
12024    ;;
12025
12026  cygwin*)
12027    lt_cv_dlopen=dlopen
12028    lt_cv_dlopen_libs=
12029    ;;
12030
12031  darwin*)
12032    # if libdl is installed we need to link against it
12033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12034$as_echo_n "checking for dlopen in -ldl... " >&6; }
12035if ${ac_cv_lib_dl_dlopen+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  ac_check_lib_save_LIBS=$LIBS
12039LIBS="-ldl  $LIBS"
12040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041/* end confdefs.h.  */
12042
12043/* Override any GCC internal prototype to avoid an error.
12044   Use char because int might match the return type of a GCC
12045   builtin and then its argument prototype would still apply.  */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049char dlopen ();
12050int
12051main ()
12052{
12053return dlopen ();
12054  ;
12055  return 0;
12056}
12057_ACEOF
12058if ac_fn_c_try_link "$LINENO"; then :
12059  ac_cv_lib_dl_dlopen=yes
12060else
12061  ac_cv_lib_dl_dlopen=no
12062fi
12063rm -f core conftest.err conftest.$ac_objext \
12064    conftest$ac_exeext conftest.$ac_ext
12065LIBS=$ac_check_lib_save_LIBS
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12069if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12070  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12071else
12072
12073    lt_cv_dlopen=dyld
12074    lt_cv_dlopen_libs=
12075    lt_cv_dlopen_self=yes
12076
12077fi
12078
12079    ;;
12080
12081  tpf*)
12082    # Don't try to run any link tests for TPF.  We know it's impossible
12083    # because TPF is a cross-compiler, and we know how we open DSOs.
12084    lt_cv_dlopen=dlopen
12085    lt_cv_dlopen_libs=
12086    lt_cv_dlopen_self=no
12087    ;;
12088
12089  *)
12090    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12091if test "x$ac_cv_func_shl_load" = xyes; then :
12092  lt_cv_dlopen=shl_load
12093else
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12095$as_echo_n "checking for shl_load in -ldld... " >&6; }
12096if ${ac_cv_lib_dld_shl_load+:} false; then :
12097  $as_echo_n "(cached) " >&6
12098else
12099  ac_check_lib_save_LIBS=$LIBS
12100LIBS="-ldld  $LIBS"
12101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102/* end confdefs.h.  */
12103
12104/* Override any GCC internal prototype to avoid an error.
12105   Use char because int might match the return type of a GCC
12106   builtin and then its argument prototype would still apply.  */
12107#ifdef __cplusplus
12108extern "C"
12109#endif
12110char shl_load ();
12111int
12112main ()
12113{
12114return shl_load ();
12115  ;
12116  return 0;
12117}
12118_ACEOF
12119if ac_fn_c_try_link "$LINENO"; then :
12120  ac_cv_lib_dld_shl_load=yes
12121else
12122  ac_cv_lib_dld_shl_load=no
12123fi
12124rm -f core conftest.err conftest.$ac_objext \
12125    conftest$ac_exeext conftest.$ac_ext
12126LIBS=$ac_check_lib_save_LIBS
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12129$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12130if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12131  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12132else
12133  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12134if test "x$ac_cv_func_dlopen" = xyes; then :
12135  lt_cv_dlopen=dlopen
12136else
12137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12138$as_echo_n "checking for dlopen in -ldl... " >&6; }
12139if ${ac_cv_lib_dl_dlopen+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  ac_check_lib_save_LIBS=$LIBS
12143LIBS="-ldl  $LIBS"
12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h.  */
12146
12147/* Override any GCC internal prototype to avoid an error.
12148   Use char because int might match the return type of a GCC
12149   builtin and then its argument prototype would still apply.  */
12150#ifdef __cplusplus
12151extern "C"
12152#endif
12153char dlopen ();
12154int
12155main ()
12156{
12157return dlopen ();
12158  ;
12159  return 0;
12160}
12161_ACEOF
12162if ac_fn_c_try_link "$LINENO"; then :
12163  ac_cv_lib_dl_dlopen=yes
12164else
12165  ac_cv_lib_dl_dlopen=no
12166fi
12167rm -f core conftest.err conftest.$ac_objext \
12168    conftest$ac_exeext conftest.$ac_ext
12169LIBS=$ac_check_lib_save_LIBS
12170fi
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12173if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12174  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12175else
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12177$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12178if ${ac_cv_lib_svld_dlopen+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  ac_check_lib_save_LIBS=$LIBS
12182LIBS="-lsvld  $LIBS"
12183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h.  */
12185
12186/* Override any GCC internal prototype to avoid an error.
12187   Use char because int might match the return type of a GCC
12188   builtin and then its argument prototype would still apply.  */
12189#ifdef __cplusplus
12190extern "C"
12191#endif
12192char dlopen ();
12193int
12194main ()
12195{
12196return dlopen ();
12197  ;
12198  return 0;
12199}
12200_ACEOF
12201if ac_fn_c_try_link "$LINENO"; then :
12202  ac_cv_lib_svld_dlopen=yes
12203else
12204  ac_cv_lib_svld_dlopen=no
12205fi
12206rm -f core conftest.err conftest.$ac_objext \
12207    conftest$ac_exeext conftest.$ac_ext
12208LIBS=$ac_check_lib_save_LIBS
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12211$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12212if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12213  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12214else
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12216$as_echo_n "checking for dld_link in -ldld... " >&6; }
12217if ${ac_cv_lib_dld_dld_link+:} false; then :
12218  $as_echo_n "(cached) " >&6
12219else
12220  ac_check_lib_save_LIBS=$LIBS
12221LIBS="-ldld  $LIBS"
12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224
12225/* Override any GCC internal prototype to avoid an error.
12226   Use char because int might match the return type of a GCC
12227   builtin and then its argument prototype would still apply.  */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231char dld_link ();
12232int
12233main ()
12234{
12235return dld_link ();
12236  ;
12237  return 0;
12238}
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"; then :
12241  ac_cv_lib_dld_dld_link=yes
12242else
12243  ac_cv_lib_dld_dld_link=no
12244fi
12245rm -f core conftest.err conftest.$ac_objext \
12246    conftest$ac_exeext conftest.$ac_ext
12247LIBS=$ac_check_lib_save_LIBS
12248fi
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12250$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12251if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12252  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12253fi
12254
12255
12256fi
12257
12258
12259fi
12260
12261
12262fi
12263
12264
12265fi
12266
12267
12268fi
12269
12270    ;;
12271  esac
12272
12273  if test no = "$lt_cv_dlopen"; then
12274    enable_dlopen=no
12275  else
12276    enable_dlopen=yes
12277  fi
12278
12279  case $lt_cv_dlopen in
12280  dlopen)
12281    save_CPPFLAGS=$CPPFLAGS
12282    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12283
12284    save_LDFLAGS=$LDFLAGS
12285    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12286
12287    save_LIBS=$LIBS
12288    LIBS="$lt_cv_dlopen_libs $LIBS"
12289
12290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12291$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12292if ${lt_cv_dlopen_self+:} false; then :
12293  $as_echo_n "(cached) " >&6
12294else
12295  	  if test yes = "$cross_compiling"; then :
12296  lt_cv_dlopen_self=cross
12297else
12298  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12299  lt_status=$lt_dlunknown
12300  cat > conftest.$ac_ext <<_LT_EOF
12301#line $LINENO "configure"
12302#include "confdefs.h"
12303
12304#if HAVE_DLFCN_H
12305#include <dlfcn.h>
12306#endif
12307
12308#include <stdio.h>
12309
12310#ifdef RTLD_GLOBAL
12311#  define LT_DLGLOBAL		RTLD_GLOBAL
12312#else
12313#  ifdef DL_GLOBAL
12314#    define LT_DLGLOBAL		DL_GLOBAL
12315#  else
12316#    define LT_DLGLOBAL		0
12317#  endif
12318#endif
12319
12320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12321   find out it does not work in some platform. */
12322#ifndef LT_DLLAZY_OR_NOW
12323#  ifdef RTLD_LAZY
12324#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12325#  else
12326#    ifdef DL_LAZY
12327#      define LT_DLLAZY_OR_NOW		DL_LAZY
12328#    else
12329#      ifdef RTLD_NOW
12330#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12331#      else
12332#        ifdef DL_NOW
12333#          define LT_DLLAZY_OR_NOW	DL_NOW
12334#        else
12335#          define LT_DLLAZY_OR_NOW	0
12336#        endif
12337#      endif
12338#    endif
12339#  endif
12340#endif
12341
12342/* When -fvisibility=hidden is used, assume the code has been annotated
12343   correspondingly for the symbols needed.  */
12344#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12345int fnord () __attribute__((visibility("default")));
12346#endif
12347
12348int fnord () { return 42; }
12349int main ()
12350{
12351  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12352  int status = $lt_dlunknown;
12353
12354  if (self)
12355    {
12356      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12357      else
12358        {
12359	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12360          else puts (dlerror ());
12361	}
12362      /* dlclose (self); */
12363    }
12364  else
12365    puts (dlerror ());
12366
12367  return status;
12368}
12369_LT_EOF
12370  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12371  (eval $ac_link) 2>&5
12372  ac_status=$?
12373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12374  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12375    (./conftest; exit; ) >&5 2>/dev/null
12376    lt_status=$?
12377    case x$lt_status in
12378      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12379      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12380      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12381    esac
12382  else :
12383    # compilation failed
12384    lt_cv_dlopen_self=no
12385  fi
12386fi
12387rm -fr conftest*
12388
12389
12390fi
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12392$as_echo "$lt_cv_dlopen_self" >&6; }
12393
12394    if test yes = "$lt_cv_dlopen_self"; then
12395      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12396      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12397$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12398if ${lt_cv_dlopen_self_static+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  	  if test yes = "$cross_compiling"; then :
12402  lt_cv_dlopen_self_static=cross
12403else
12404  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12405  lt_status=$lt_dlunknown
12406  cat > conftest.$ac_ext <<_LT_EOF
12407#line $LINENO "configure"
12408#include "confdefs.h"
12409
12410#if HAVE_DLFCN_H
12411#include <dlfcn.h>
12412#endif
12413
12414#include <stdio.h>
12415
12416#ifdef RTLD_GLOBAL
12417#  define LT_DLGLOBAL		RTLD_GLOBAL
12418#else
12419#  ifdef DL_GLOBAL
12420#    define LT_DLGLOBAL		DL_GLOBAL
12421#  else
12422#    define LT_DLGLOBAL		0
12423#  endif
12424#endif
12425
12426/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12427   find out it does not work in some platform. */
12428#ifndef LT_DLLAZY_OR_NOW
12429#  ifdef RTLD_LAZY
12430#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12431#  else
12432#    ifdef DL_LAZY
12433#      define LT_DLLAZY_OR_NOW		DL_LAZY
12434#    else
12435#      ifdef RTLD_NOW
12436#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12437#      else
12438#        ifdef DL_NOW
12439#          define LT_DLLAZY_OR_NOW	DL_NOW
12440#        else
12441#          define LT_DLLAZY_OR_NOW	0
12442#        endif
12443#      endif
12444#    endif
12445#  endif
12446#endif
12447
12448/* When -fvisibility=hidden is used, assume the code has been annotated
12449   correspondingly for the symbols needed.  */
12450#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12451int fnord () __attribute__((visibility("default")));
12452#endif
12453
12454int fnord () { return 42; }
12455int main ()
12456{
12457  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12458  int status = $lt_dlunknown;
12459
12460  if (self)
12461    {
12462      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12463      else
12464        {
12465	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12466          else puts (dlerror ());
12467	}
12468      /* dlclose (self); */
12469    }
12470  else
12471    puts (dlerror ());
12472
12473  return status;
12474}
12475_LT_EOF
12476  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12477  (eval $ac_link) 2>&5
12478  ac_status=$?
12479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12480  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12481    (./conftest; exit; ) >&5 2>/dev/null
12482    lt_status=$?
12483    case x$lt_status in
12484      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12485      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12486      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12487    esac
12488  else :
12489    # compilation failed
12490    lt_cv_dlopen_self_static=no
12491  fi
12492fi
12493rm -fr conftest*
12494
12495
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12498$as_echo "$lt_cv_dlopen_self_static" >&6; }
12499    fi
12500
12501    CPPFLAGS=$save_CPPFLAGS
12502    LDFLAGS=$save_LDFLAGS
12503    LIBS=$save_LIBS
12504    ;;
12505  esac
12506
12507  case $lt_cv_dlopen_self in
12508  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12509  *) enable_dlopen_self=unknown ;;
12510  esac
12511
12512  case $lt_cv_dlopen_self_static in
12513  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12514  *) enable_dlopen_self_static=unknown ;;
12515  esac
12516fi
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534striplib=
12535old_striplib=
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12537$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12538if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12539  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12540  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542$as_echo "yes" >&6; }
12543else
12544# FIXME - insert some real tests, host_os isn't really good enough
12545  case $host_os in
12546  darwin*)
12547    if test -n "$STRIP"; then
12548      striplib="$STRIP -x"
12549      old_striplib="$STRIP -S"
12550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12551$as_echo "yes" >&6; }
12552    else
12553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
12555    fi
12556    ;;
12557  *)
12558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559$as_echo "no" >&6; }
12560    ;;
12561  esac
12562fi
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575  # Report what library types will actually be built
12576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12577$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12579$as_echo "$can_build_shared" >&6; }
12580
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12582$as_echo_n "checking whether to build shared libraries... " >&6; }
12583  test no = "$can_build_shared" && enable_shared=no
12584
12585  # On AIX, shared libraries and static libraries use the same namespace, and
12586  # are all built from PIC.
12587  case $host_os in
12588  aix3*)
12589    test yes = "$enable_shared" && enable_static=no
12590    if test -n "$RANLIB"; then
12591      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12592      postinstall_cmds='$RANLIB $lib'
12593    fi
12594    ;;
12595
12596  aix[4-9]*)
12597    if test ia64 != "$host_cpu"; then
12598      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12599      yes,aix,yes) ;;			# shared object as lib.so file only
12600      yes,svr4,*) ;;			# shared object as lib.so archive member only
12601      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12602      esac
12603    fi
12604    ;;
12605  esac
12606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12607$as_echo "$enable_shared" >&6; }
12608
12609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12610$as_echo_n "checking whether to build static libraries... " >&6; }
12611  # Make sure either enable_shared or enable_static is yes.
12612  test yes = "$enable_shared" || enable_static=yes
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12614$as_echo "$enable_static" >&6; }
12615
12616
12617
12618
12619fi
12620ac_ext=c
12621ac_cpp='$CPP $CPPFLAGS'
12622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12624ac_compiler_gnu=$ac_cv_c_compiler_gnu
12625
12626CC=$lt_save_CC
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642        ac_config_commands="$ac_config_commands libtool"
12643
12644
12645
12646
12647# Only expand once:
12648
12649
12650
12651if test "x-$lt_cv_dlopen_libs" != "x-" ; then
12652    LIBS="$LIBS $lt_cv_dlopen_libs"
12653fi
12654
12655# extra paths
12656
12657# Check whether --with-extra_include_path was given.
12658if test "${with_extra_include_path+set}" = set; then :
12659  withval=$with_extra_include_path; extra_include_path=$withval
12660fi
12661
12662split_includes="`echo $extra_include_path | sed -e 's/:/ /g'`"
12663for incpath in $split_includes ; do
12664    CPPFLAGS="-I$incpath $CPPFLAGS"
12665done
12666
12667
12668# Check whether --with-extra_library_path was given.
12669if test "${with_extra_library_path+set}" = set; then :
12670  withval=$with_extra_library_path; extra_library_path=$withval
12671fi
12672
12673split_libs="`echo $extra_library_path | sed -e 's/:/ /g'`"
12674for libpath in $split_libs ; do
12675    LDFLAGS="-L$libpath $LDFLAGS"
12676done
12677
12678# set type of "char" to be "unsigned char"
12679CFLAGS="$CFLAGS -funsigned-char"
12680
12681# developer flags
12682# Check whether --enable-developer was given.
12683if test "${enable_developer+set}" = set; then :
12684  enableval=$enable_developer; CFLAGS="-Wall -Wno-pointer-sign -g $CFLAGS"
12685fi
12686
12687# debugging
12688# Check whether --enable-debug was given.
12689if test "${enable_debug+set}" = set; then :
12690  enableval=$enable_debug; want_debug=$enableval
12691else
12692  want_debug=no
12693fi
12694
12695if test "x-$want_debug" = "x-yes" ; then
12696
12697$as_echo "#define DEBUG 1" >>confdefs.h
12698
12699
12700$as_echo "#define SX_DEBUG 1" >>confdefs.h
12701
12702fi
12703
12704# Check whether --enable-nad_debug was given.
12705if test "${enable_nad_debug+set}" = set; then :
12706  enableval=$enable_nad_debug; want_nad_debug=$enableval
12707else
12708  want_nad_debug=no
12709fi
12710
12711if test "x-$want_nad_debug" = "x-yes" ; then
12712
12713$as_echo "#define NAD_DEBUG 1" >>confdefs.h
12714
12715fi
12716
12717# Check whether --enable-pool_debug was given.
12718if test "${enable_pool_debug+set}" = set; then :
12719  enableval=$enable_pool_debug; want_pool_debug=$enableval
12720else
12721  want_pool_debug=no
12722fi
12723
12724if test "x-$want_pool_debug" = "x-yes" ; then
12725
12726$as_echo "#define POOL_DEBUG 1" >>confdefs.h
12727
12728fi
12729
12730# Check whether --enable-mio_debug was given.
12731if test "${enable_mio_debug+set}" = set; then :
12732  enableval=$enable_mio_debug; want_mio_debug=$enableval
12733else
12734  want_mio_debug=no
12735fi
12736
12737if test "x-$want_mio_debug" = "x-yes" ; then
12738
12739$as_echo "#define MIO_DEBUG 1" >>confdefs.h
12740
12741fi
12742
12743# Colorized build output
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdiagnostics-color" >&5
12745$as_echo_n "checking whether C compiler accepts -fdiagnostics-color... " >&6; }
12746if ${ax_cv_check_cflags___fdiagnostics_color+:} false; then :
12747  $as_echo_n "(cached) " >&6
12748else
12749
12750  ax_check_save_flags=$CFLAGS
12751  CFLAGS="$CFLAGS  -fdiagnostics-color"
12752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h.  */
12754
12755int
12756main ()
12757{
12758
12759  ;
12760  return 0;
12761}
12762_ACEOF
12763if ac_fn_c_try_compile "$LINENO"; then :
12764  ax_cv_check_cflags___fdiagnostics_color=yes
12765else
12766  ax_cv_check_cflags___fdiagnostics_color=no
12767fi
12768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769  CFLAGS=$ax_check_save_flags
12770fi
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fdiagnostics_color" >&5
12772$as_echo "$ax_cv_check_cflags___fdiagnostics_color" >&6; }
12773if test "x$ax_cv_check_cflags___fdiagnostics_color" = xyes; then :
12774  CFLAGS="${CFLAGS} -fdiagnostics-color"
12775else
12776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcolor-diagnostics" >&5
12777$as_echo_n "checking whether C compiler accepts -fcolor-diagnostics... " >&6; }
12778if ${ax_cv_check_cflags___fcolor_diagnostics+:} false; then :
12779  $as_echo_n "(cached) " >&6
12780else
12781
12782  ax_check_save_flags=$CFLAGS
12783  CFLAGS="$CFLAGS  -fcolor-diagnostics"
12784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h.  */
12786
12787int
12788main ()
12789{
12790
12791  ;
12792  return 0;
12793}
12794_ACEOF
12795if ac_fn_c_try_compile "$LINENO"; then :
12796  ax_cv_check_cflags___fcolor_diagnostics=yes
12797else
12798  ax_cv_check_cflags___fcolor_diagnostics=no
12799fi
12800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801  CFLAGS=$ax_check_save_flags
12802fi
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fcolor_diagnostics" >&5
12804$as_echo "$ax_cv_check_cflags___fcolor_diagnostics" >&6; }
12805if test "x$ax_cv_check_cflags___fcolor_diagnostics" = xyes; then :
12806  CFLAGS="${CFLAGS} -fcolor-diagnostics"
12807else
12808  :
12809fi
12810
12811fi
12812
12813
12814# Two-step header checking.  First check for headers which don't
12815# require any other headers.
12816ac_header_dirent=no
12817for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12818  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12820$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12821if eval \${$as_ac_Header+:} false; then :
12822  $as_echo_n "(cached) " >&6
12823else
12824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825/* end confdefs.h.  */
12826#include <sys/types.h>
12827#include <$ac_hdr>
12828
12829int
12830main ()
12831{
12832if ((DIR *) 0)
12833return 0;
12834  ;
12835  return 0;
12836}
12837_ACEOF
12838if ac_fn_c_try_compile "$LINENO"; then :
12839  eval "$as_ac_Header=yes"
12840else
12841  eval "$as_ac_Header=no"
12842fi
12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844fi
12845eval ac_res=\$$as_ac_Header
12846	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12847$as_echo "$ac_res" >&6; }
12848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12849  cat >>confdefs.h <<_ACEOF
12850#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12851_ACEOF
12852
12853ac_header_dirent=$ac_hdr; break
12854fi
12855
12856done
12857# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12858if test $ac_header_dirent = dirent.h; then
12859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12860$as_echo_n "checking for library containing opendir... " >&6; }
12861if ${ac_cv_search_opendir+:} false; then :
12862  $as_echo_n "(cached) " >&6
12863else
12864  ac_func_search_save_LIBS=$LIBS
12865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867
12868/* Override any GCC internal prototype to avoid an error.
12869   Use char because int might match the return type of a GCC
12870   builtin and then its argument prototype would still apply.  */
12871#ifdef __cplusplus
12872extern "C"
12873#endif
12874char opendir ();
12875int
12876main ()
12877{
12878return opendir ();
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883for ac_lib in '' dir; do
12884  if test -z "$ac_lib"; then
12885    ac_res="none required"
12886  else
12887    ac_res=-l$ac_lib
12888    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12889  fi
12890  if ac_fn_c_try_link "$LINENO"; then :
12891  ac_cv_search_opendir=$ac_res
12892fi
12893rm -f core conftest.err conftest.$ac_objext \
12894    conftest$ac_exeext
12895  if ${ac_cv_search_opendir+:} false; then :
12896  break
12897fi
12898done
12899if ${ac_cv_search_opendir+:} false; then :
12900
12901else
12902  ac_cv_search_opendir=no
12903fi
12904rm conftest.$ac_ext
12905LIBS=$ac_func_search_save_LIBS
12906fi
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12908$as_echo "$ac_cv_search_opendir" >&6; }
12909ac_res=$ac_cv_search_opendir
12910if test "$ac_res" != no; then :
12911  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12912
12913fi
12914
12915else
12916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12917$as_echo_n "checking for library containing opendir... " >&6; }
12918if ${ac_cv_search_opendir+:} false; then :
12919  $as_echo_n "(cached) " >&6
12920else
12921  ac_func_search_save_LIBS=$LIBS
12922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923/* end confdefs.h.  */
12924
12925/* Override any GCC internal prototype to avoid an error.
12926   Use char because int might match the return type of a GCC
12927   builtin and then its argument prototype would still apply.  */
12928#ifdef __cplusplus
12929extern "C"
12930#endif
12931char opendir ();
12932int
12933main ()
12934{
12935return opendir ();
12936  ;
12937  return 0;
12938}
12939_ACEOF
12940for ac_lib in '' x; do
12941  if test -z "$ac_lib"; then
12942    ac_res="none required"
12943  else
12944    ac_res=-l$ac_lib
12945    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12946  fi
12947  if ac_fn_c_try_link "$LINENO"; then :
12948  ac_cv_search_opendir=$ac_res
12949fi
12950rm -f core conftest.err conftest.$ac_objext \
12951    conftest$ac_exeext
12952  if ${ac_cv_search_opendir+:} false; then :
12953  break
12954fi
12955done
12956if ${ac_cv_search_opendir+:} false; then :
12957
12958else
12959  ac_cv_search_opendir=no
12960fi
12961rm conftest.$ac_ext
12962LIBS=$ac_func_search_save_LIBS
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12965$as_echo "$ac_cv_search_opendir" >&6; }
12966ac_res=$ac_cv_search_opendir
12967if test "$ac_res" != no; then :
12968  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12969
12970fi
12971
12972fi
12973
12974for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
12975do :
12976  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
12978#  include <sys/types.h>
12979#endif
12980#ifdef HAVE_NETINET_IN_H
12981#  include <netinet/in.h>   /* inet_ functions / structs */
12982#endif
12983#ifdef HAVE_ARPA_NAMESER_H
12984#  include <arpa/nameser.h> /* DNS HEADER struct */
12985#endif
12986#ifdef HAVE_NETDB_H
12987#  include <netdb.h>
12988#endif
12989"
12990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12991  cat >>confdefs.h <<_ACEOF
12992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12993_ACEOF
12994
12995fi
12996
12997done
12998
12999
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13001$as_echo_n "checking for ANSI C header files... " >&6; }
13002if ${ac_cv_header_stdc+:} false; then :
13003  $as_echo_n "(cached) " >&6
13004else
13005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006/* end confdefs.h.  */
13007#include <stdlib.h>
13008#include <stdarg.h>
13009#include <string.h>
13010#include <float.h>
13011
13012int
13013main ()
13014{
13015
13016  ;
13017  return 0;
13018}
13019_ACEOF
13020if ac_fn_c_try_compile "$LINENO"; then :
13021  ac_cv_header_stdc=yes
13022else
13023  ac_cv_header_stdc=no
13024fi
13025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026
13027if test $ac_cv_header_stdc = yes; then
13028  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h.  */
13031#include <string.h>
13032
13033_ACEOF
13034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13035  $EGREP "memchr" >/dev/null 2>&1; then :
13036
13037else
13038  ac_cv_header_stdc=no
13039fi
13040rm -f conftest*
13041
13042fi
13043
13044if test $ac_cv_header_stdc = yes; then
13045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047/* end confdefs.h.  */
13048#include <stdlib.h>
13049
13050_ACEOF
13051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13052  $EGREP "free" >/dev/null 2>&1; then :
13053
13054else
13055  ac_cv_header_stdc=no
13056fi
13057rm -f conftest*
13058
13059fi
13060
13061if test $ac_cv_header_stdc = yes; then
13062  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13063  if test "$cross_compiling" = yes; then :
13064  :
13065else
13066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067/* end confdefs.h.  */
13068#include <ctype.h>
13069#include <stdlib.h>
13070#if ((' ' & 0x0FF) == 0x020)
13071# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13072# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13073#else
13074# define ISLOWER(c) \
13075		   (('a' <= (c) && (c) <= 'i') \
13076		     || ('j' <= (c) && (c) <= 'r') \
13077		     || ('s' <= (c) && (c) <= 'z'))
13078# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13079#endif
13080
13081#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13082int
13083main ()
13084{
13085  int i;
13086  for (i = 0; i < 256; i++)
13087    if (XOR (islower (i), ISLOWER (i))
13088	|| toupper (i) != TOUPPER (i))
13089      return 2;
13090  return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_run "$LINENO"; then :
13094
13095else
13096  ac_cv_header_stdc=no
13097fi
13098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13099  conftest.$ac_objext conftest.beam conftest.$ac_ext
13100fi
13101
13102fi
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13105$as_echo "$ac_cv_header_stdc" >&6; }
13106if test $ac_cv_header_stdc = yes; then
13107
13108$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13109
13110fi
13111
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13113$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13114if ${ac_cv_header_sys_wait_h+:} false; then :
13115  $as_echo_n "(cached) " >&6
13116else
13117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118/* end confdefs.h.  */
13119#include <sys/types.h>
13120#include <sys/wait.h>
13121#ifndef WEXITSTATUS
13122# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13123#endif
13124#ifndef WIFEXITED
13125# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13126#endif
13127
13128int
13129main ()
13130{
13131  int s;
13132  wait (&s);
13133  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138if ac_fn_c_try_compile "$LINENO"; then :
13139  ac_cv_header_sys_wait_h=yes
13140else
13141  ac_cv_header_sys_wait_h=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13146$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13147if test $ac_cv_header_sys_wait_h = yes; then
13148
13149$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13150
13151fi
13152
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13154$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13155if ${ac_cv_header_time+:} false; then :
13156  $as_echo_n "(cached) " >&6
13157else
13158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160#include <sys/types.h>
13161#include <sys/time.h>
13162#include <time.h>
13163
13164int
13165main ()
13166{
13167if ((struct tm *) 0)
13168return 0;
13169  ;
13170  return 0;
13171}
13172_ACEOF
13173if ac_fn_c_try_compile "$LINENO"; then :
13174  ac_cv_header_time=yes
13175else
13176  ac_cv_header_time=no
13177fi
13178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179fi
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13181$as_echo "$ac_cv_header_time" >&6; }
13182if test $ac_cv_header_time = yes; then
13183
13184$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13185
13186fi
13187
13188for ac_header in arpa/inet.h \
13189                  arpa/nameser.h \
13190                  fcntl.h \
13191                  netinet/in.h \
13192                  signal.h \
13193                  stdarg.h \
13194                  stdint.h \
13195                  stdlib.h \
13196                  string.h \
13197                  sys/filio.h \
13198                  sys/ioctl.h \
13199                  sys/socket.h \
13200                  sys/time.h \
13201                  sys/timeb.h \
13202                  sys/types.h \
13203                  sys/stat.h \
13204                  sys/utsname.h \
13205                  syslog.h \
13206                  unistd.h \
13207                  windows.h \
13208                  winsock2.h \
13209
13210do :
13211  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13212ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13213if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13214  cat >>confdefs.h <<_ACEOF
13215#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13216_ACEOF
13217
13218fi
13219
13220done
13221
13222
13223# Now check for those headers that do, including all the required
13224# headers.
13225for ac_header in resolv.h windns.h
13226do :
13227  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13228ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
13229# include <sys/types.h>
13230#endif
13231#ifdef HAVE_WINSOCK2_H
13232# include <winsock2.h>
13233#endif
13234#ifdef HAVE_NETINET_IN_H
13235# include <netinet/in.h>
13236#endif
13237"
13238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13239  cat >>confdefs.h <<_ACEOF
13240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13241_ACEOF
13242
13243fi
13244
13245done
13246
13247
13248# Checks for typedefs, structures, and compiler characteristics.
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13250$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13251if ${ac_cv_c_const+:} false; then :
13252  $as_echo_n "(cached) " >&6
13253else
13254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h.  */
13256
13257int
13258main ()
13259{
13260
13261#ifndef __cplusplus
13262  /* Ultrix mips cc rejects this sort of thing.  */
13263  typedef int charset[2];
13264  const charset cs = { 0, 0 };
13265  /* SunOS 4.1.1 cc rejects this.  */
13266  char const *const *pcpcc;
13267  char **ppc;
13268  /* NEC SVR4.0.2 mips cc rejects this.  */
13269  struct point {int x, y;};
13270  static struct point const zero = {0,0};
13271  /* AIX XL C 1.02.0.0 rejects this.
13272     It does not let you subtract one const X* pointer from another in
13273     an arm of an if-expression whose if-part is not a constant
13274     expression */
13275  const char *g = "string";
13276  pcpcc = &g + (g ? g-g : 0);
13277  /* HPUX 7.0 cc rejects these. */
13278  ++pcpcc;
13279  ppc = (char**) pcpcc;
13280  pcpcc = (char const *const *) ppc;
13281  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13282    char tx;
13283    char *t = &tx;
13284    char const *s = 0 ? (char *) 0 : (char const *) 0;
13285
13286    *t++ = 0;
13287    if (s) return 0;
13288  }
13289  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13290    int x[] = {25, 17};
13291    const int *foo = &x[0];
13292    ++foo;
13293  }
13294  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13295    typedef const int *iptr;
13296    iptr p = 0;
13297    ++p;
13298  }
13299  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13300       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13301    struct s { int j; const int *ap[3]; } bx;
13302    struct s *b = &bx; b->j = 5;
13303  }
13304  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13305    const int foo = 10;
13306    if (!foo) return 0;
13307  }
13308  return !cs[0] && !zero.x;
13309#endif
13310
13311  ;
13312  return 0;
13313}
13314_ACEOF
13315if ac_fn_c_try_compile "$LINENO"; then :
13316  ac_cv_c_const=yes
13317else
13318  ac_cv_c_const=no
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321fi
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13323$as_echo "$ac_cv_c_const" >&6; }
13324if test $ac_cv_c_const = no; then
13325
13326$as_echo "#define const /**/" >>confdefs.h
13327
13328fi
13329
13330ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13331if test "x$ac_cv_type_mode_t" = xyes; then :
13332
13333else
13334
13335cat >>confdefs.h <<_ACEOF
13336#define mode_t int
13337_ACEOF
13338
13339fi
13340
13341ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13342if test "x$ac_cv_type_off_t" = xyes; then :
13343
13344else
13345
13346cat >>confdefs.h <<_ACEOF
13347#define off_t long int
13348_ACEOF
13349
13350fi
13351
13352ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13353if test "x$ac_cv_type_pid_t" = xyes; then :
13354
13355else
13356
13357cat >>confdefs.h <<_ACEOF
13358#define pid_t int
13359_ACEOF
13360
13361fi
13362
13363ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13364if test "x$ac_cv_type_size_t" = xyes; then :
13365
13366else
13367
13368cat >>confdefs.h <<_ACEOF
13369#define size_t unsigned int
13370_ACEOF
13371
13372fi
13373
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13375$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13376if ${ac_cv_header_time+:} false; then :
13377  $as_echo_n "(cached) " >&6
13378else
13379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380/* end confdefs.h.  */
13381#include <sys/types.h>
13382#include <sys/time.h>
13383#include <time.h>
13384
13385int
13386main ()
13387{
13388if ((struct tm *) 0)
13389return 0;
13390  ;
13391  return 0;
13392}
13393_ACEOF
13394if ac_fn_c_try_compile "$LINENO"; then :
13395  ac_cv_header_time=yes
13396else
13397  ac_cv_header_time=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13402$as_echo "$ac_cv_header_time" >&6; }
13403if test $ac_cv_header_time = yes; then
13404
13405$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13406
13407fi
13408
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13410$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13411if ${ac_cv_struct_tm+:} false; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415/* end confdefs.h.  */
13416#include <sys/types.h>
13417#include <time.h>
13418
13419int
13420main ()
13421{
13422struct tm tm;
13423				     int *p = &tm.tm_sec;
13424				     return !p;
13425  ;
13426  return 0;
13427}
13428_ACEOF
13429if ac_fn_c_try_compile "$LINENO"; then :
13430  ac_cv_struct_tm=time.h
13431else
13432  ac_cv_struct_tm=sys/time.h
13433fi
13434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435fi
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13437$as_echo "$ac_cv_struct_tm" >&6; }
13438if test $ac_cv_struct_tm = sys/time.h; then
13439
13440$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13441
13442fi
13443
13444ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13445#include <$ac_cv_struct_tm>
13446
13447"
13448if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13449
13450cat >>confdefs.h <<_ACEOF
13451#define HAVE_STRUCT_TM_TM_ZONE 1
13452_ACEOF
13453
13454
13455fi
13456
13457if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13458
13459$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13460
13461else
13462  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13463"
13464if test "x$ac_cv_have_decl_tzname" = xyes; then :
13465  ac_have_decl=1
13466else
13467  ac_have_decl=0
13468fi
13469
13470cat >>confdefs.h <<_ACEOF
13471#define HAVE_DECL_TZNAME $ac_have_decl
13472_ACEOF
13473
13474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13475$as_echo_n "checking for tzname... " >&6; }
13476if ${ac_cv_var_tzname+:} false; then :
13477  $as_echo_n "(cached) " >&6
13478else
13479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480/* end confdefs.h.  */
13481#include <time.h>
13482#if !HAVE_DECL_TZNAME
13483extern char *tzname[];
13484#endif
13485
13486int
13487main ()
13488{
13489return tzname[0][0];
13490  ;
13491  return 0;
13492}
13493_ACEOF
13494if ac_fn_c_try_link "$LINENO"; then :
13495  ac_cv_var_tzname=yes
13496else
13497  ac_cv_var_tzname=no
13498fi
13499rm -f core conftest.err conftest.$ac_objext \
13500    conftest$ac_exeext conftest.$ac_ext
13501fi
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13503$as_echo "$ac_cv_var_tzname" >&6; }
13504  if test $ac_cv_var_tzname = yes; then
13505
13506$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13507
13508  fi
13509fi
13510
13511ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13512case $ac_cv_c_uint16_t in #(
13513  no|yes) ;; #(
13514  *)
13515
13516
13517cat >>confdefs.h <<_ACEOF
13518#define uint16_t $ac_cv_c_uint16_t
13519_ACEOF
13520;;
13521  esac
13522
13523ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13524case $ac_cv_c_uint32_t in #(
13525  no|yes) ;; #(
13526  *)
13527
13528$as_echo "#define _UINT32_T 1" >>confdefs.h
13529
13530
13531cat >>confdefs.h <<_ACEOF
13532#define uint32_t $ac_cv_c_uint32_t
13533_ACEOF
13534;;
13535  esac
13536
13537ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13538case $ac_cv_c_uint8_t in #(
13539  no|yes) ;; #(
13540  *)
13541
13542$as_echo "#define _UINT8_T 1" >>confdefs.h
13543
13544
13545cat >>confdefs.h <<_ACEOF
13546#define uint8_t $ac_cv_c_uint8_t
13547_ACEOF
13548;;
13549  esac
13550
13551
13552# generic system types
13553# ------ AC CREATE STDINT H -------------------------------------
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint-types...." >&5
13555$as_echo_n "checking for stdint-types....... " >&6; }
13556ac_stdint_h=`echo ac-stdint.h`
13557if test "$ac_stdint_h" = "stdint.h" ; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(are you sure you want them in ./stdint.h?)\"" >&5
13559$as_echo "\"(are you sure you want them in ./stdint.h?)\"" >&6; }
13560elif test "$ac_stdint_h" = "inttypes.h" ; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5
13562$as_echo "\"(are you sure you want them in ./inttypes.h?)\"" >&6; }
13563else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(putting them into $ac_stdint_h)\"" >&5
13565$as_echo "\"(putting them into $ac_stdint_h)\"" >&6; }
13566fi
13567
13568inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h  \
13569| sed -e 's/,/ /g'`
13570
13571 ac_cv_header_stdint_x="no-file"
13572 ac_cv_header_stdint_o="no-file"
13573 ac_cv_header_stdint_u="no-file"
13574 for i in stdint.h $inttype_headers ; do
13575   unset ac_cv_type_uintptr_t
13576   unset ac_cv_type_uint64_t
13577   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
13578"
13579if test "x$ac_cv_type_uintptr_t" = xyes; then :
13580  ac_cv_header_stdint_x=$i
13581else
13582       continue
13583fi
13584
13585   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13586"
13587if test "x$ac_cv_type_uint64_t" = xyes; then :
13588  and64="(uint64_t too)"
13589else
13590  and64=""
13591fi
13592
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our uintptr_t in $i $and64" >&5
13594$as_echo "... seen our uintptr_t in $i $and64" >&6; }
13595   break;
13596 done
13597 if test "$ac_cv_header_stdint_x" = "no-file" ; then
13598 for i in stdint.h $inttype_headers ; do
13599   unset ac_cv_type_uint32_t
13600   unset ac_cv_type_uint64_t
13601   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
13602"
13603if test "x$ac_cv_type_uint32_t" = xyes; then :
13604  ac_cv_header_stdint_o=$i
13605else
13606       continue
13607fi
13608
13609   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13610"
13611if test "x$ac_cv_type_uint64_t" = xyes; then :
13612  and64="(uint64_t too)"
13613else
13614  and64=""
13615fi
13616
13617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our uint32_t in $i $and64" >&5
13618$as_echo "... seen our uint32_t in $i $and64" >&6; }
13619   break;
13620 done
13621 if test "$ac_cv_header_stdint_o" = "no-file" ; then
13622 for i in sys/types.h $inttype_headers ; do
13623   unset ac_cv_type_u_int32_t
13624   unset ac_cv_type_u_int64_t
13625   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
13626"
13627if test "x$ac_cv_type_u_int32_t" = xyes; then :
13628  ac_cv_header_stdint_u=$i
13629else
13630       continue
13631fi
13632
13633   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13634"
13635if test "x$ac_cv_type_uint64_t" = xyes; then :
13636  and64="(u_int64_t too)"
13637else
13638  and64=""
13639fi
13640
13641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our u_int32_t in $i $and64" >&5
13642$as_echo "... seen our u_int32_t in $i $and64" >&6; }
13643   break;
13644 done
13645 fi
13646 fi
13647
13648# ----------------- DONE inttypes.h checks MAYBE C basic types --------
13649
13650if test "$ac_cv_header_stdint_x" = "no-file" ; then
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13652$as_echo_n "checking size of char... " >&6; }
13653if ${ac_cv_sizeof_char+:} false; then :
13654  $as_echo_n "(cached) " >&6
13655else
13656  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659#include "confdefs.h"
13660#include <sys/types.h>
13661
13662
13663int
13664main ()
13665{
13666switch (0) case 0: case (sizeof (char) == $ac_size):;
13667  ;
13668  return 0;
13669}
13670_ACEOF
13671if ac_fn_c_try_compile "$LINENO"; then :
13672  ac_cv_sizeof_char=$ac_size
13673fi
13674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675  if test x$ac_cv_sizeof_char != x ; then break; fi
13676done
13677
13678fi
13679
13680if test x$ac_cv_sizeof_char = x ; then
13681  as_fn_error $? "cannot determine a size for char" "$LINENO" 5
13682fi
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13684$as_echo "$ac_cv_sizeof_char" >&6; }
13685
13686cat >>confdefs.h <<_ACEOF
13687#define SIZEOF_CHAR $ac_cv_sizeof_char
13688_ACEOF
13689
13690
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13692$as_echo_n "checking size of short... " >&6; }
13693if ${ac_cv_sizeof_short+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699#include "confdefs.h"
13700#include <sys/types.h>
13701
13702
13703int
13704main ()
13705{
13706switch (0) case 0: case (sizeof (short) == $ac_size):;
13707  ;
13708  return 0;
13709}
13710_ACEOF
13711if ac_fn_c_try_compile "$LINENO"; then :
13712  ac_cv_sizeof_short=$ac_size
13713fi
13714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715  if test x$ac_cv_sizeof_short != x ; then break; fi
13716done
13717
13718fi
13719
13720if test x$ac_cv_sizeof_short = x ; then
13721  as_fn_error $? "cannot determine a size for short" "$LINENO" 5
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13724$as_echo "$ac_cv_sizeof_short" >&6; }
13725
13726cat >>confdefs.h <<_ACEOF
13727#define SIZEOF_SHORT $ac_cv_sizeof_short
13728_ACEOF
13729
13730
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13732$as_echo_n "checking size of int... " >&6; }
13733if ${ac_cv_sizeof_int+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h.  */
13739#include "confdefs.h"
13740#include <sys/types.h>
13741
13742
13743int
13744main ()
13745{
13746switch (0) case 0: case (sizeof (int) == $ac_size):;
13747  ;
13748  return 0;
13749}
13750_ACEOF
13751if ac_fn_c_try_compile "$LINENO"; then :
13752  ac_cv_sizeof_int=$ac_size
13753fi
13754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755  if test x$ac_cv_sizeof_int != x ; then break; fi
13756done
13757
13758fi
13759
13760if test x$ac_cv_sizeof_int = x ; then
13761  as_fn_error $? "cannot determine a size for int" "$LINENO" 5
13762fi
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13764$as_echo "$ac_cv_sizeof_int" >&6; }
13765
13766cat >>confdefs.h <<_ACEOF
13767#define SIZEOF_INT $ac_cv_sizeof_int
13768_ACEOF
13769
13770
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13772$as_echo_n "checking size of long... " >&6; }
13773if ${ac_cv_sizeof_long+:} false; then :
13774  $as_echo_n "(cached) " >&6
13775else
13776  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h.  */
13779#include "confdefs.h"
13780#include <sys/types.h>
13781
13782
13783int
13784main ()
13785{
13786switch (0) case 0: case (sizeof (long) == $ac_size):;
13787  ;
13788  return 0;
13789}
13790_ACEOF
13791if ac_fn_c_try_compile "$LINENO"; then :
13792  ac_cv_sizeof_long=$ac_size
13793fi
13794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795  if test x$ac_cv_sizeof_long != x ; then break; fi
13796done
13797
13798fi
13799
13800if test x$ac_cv_sizeof_long = x ; then
13801  as_fn_error $? "cannot determine a size for long" "$LINENO" 5
13802fi
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13804$as_echo "$ac_cv_sizeof_long" >&6; }
13805
13806cat >>confdefs.h <<_ACEOF
13807#define SIZEOF_LONG $ac_cv_sizeof_long
13808_ACEOF
13809
13810
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13812$as_echo_n "checking size of void*... " >&6; }
13813if ${ac_cv_sizeof_voidp+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h.  */
13819#include "confdefs.h"
13820#include <sys/types.h>
13821
13822
13823int
13824main ()
13825{
13826switch (0) case 0: case (sizeof (void*) == $ac_size):;
13827  ;
13828  return 0;
13829}
13830_ACEOF
13831if ac_fn_c_try_compile "$LINENO"; then :
13832  ac_cv_sizeof_voidp=$ac_size
13833fi
13834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835  if test x$ac_cv_sizeof_voidp != x ; then break; fi
13836done
13837
13838fi
13839
13840if test x$ac_cv_sizeof_voidp = x ; then
13841  as_fn_error $? "cannot determine a size for void*" "$LINENO" 5
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13844$as_echo "$ac_cv_sizeof_voidp" >&6; }
13845
13846cat >>confdefs.h <<_ACEOF
13847#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13848_ACEOF
13849
13850
13851   ac_cv_header_stdint_test="yes"
13852else
13853   ac_cv_header_stdint_test="no"
13854fi
13855
13856# ----------------- DONE inttypes.h checks START header -------------
13857_ac_stdint_h=`$as_echo "_$ac_stdint_h" | $as_tr_cpp`
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $ac_stdint_h : $_ac_stdint_h" >&5
13859$as_echo "creating $ac_stdint_h : $_ac_stdint_h" >&6; }
13860echo "#ifndef" $_ac_stdint_h >$ac_stdint_h
13861echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h
13862echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h
13863echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h
13864if test "$GCC" = "yes" ; then
13865  echo "/* generated using a gnu compiler version" `$CC --version` "*/" \
13866  >>$ac_stdint_h
13867else
13868  echo "/* generated using $CC */" >>$ac_stdint_h
13869fi
13870echo "" >>$ac_stdint_h
13871
13872if test "$ac_cv_header_stdint_x" != "no-file" ; then
13873   ac_cv_header_stdint="$ac_cv_header_stdint_x"
13874elif  test "$ac_cv_header_stdint_o" != "no-file" ; then
13875   ac_cv_header_stdint="$ac_cv_header_stdint_o"
13876elif  test "$ac_cv_header_stdint_u" != "no-file" ; then
13877   ac_cv_header_stdint="$ac_cv_header_stdint_u"
13878else
13879   ac_cv_header_stdint="stddef.h"
13880fi
13881
13882# ----------------- See if int_least and int_fast types are present
13883unset ac_cv_type_int_least32_t
13884unset ac_cv_type_int_fast32_t
13885ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
13886"
13887if test "x$ac_cv_type_int_least32_t" = xyes; then :
13888
13889fi
13890
13891ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
13892"
13893if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13894
13895fi
13896
13897
13898if test "$ac_cv_header_stdint" != "stddef.h" ; then
13899if test "$ac_cv_header_stdint" != "stdint.h" ; then
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding include stddef.h" >&5
13901$as_echo "..adding include stddef.h" >&6; }
13902   echo "#include <stddef.h>" >>$ac_stdint_h
13903fi ; fi
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding include $ac_cv_header_stdint" >&5
13905$as_echo "..adding include $ac_cv_header_stdint" >&6; }
13906   echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h
13907echo "" >>$ac_stdint_h
13908
13909# ----------------- DONE header START basic int types -------------
13910if test "$ac_cv_header_stdint_x" = "no-file" ; then
13911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... need to look at C basic types" >&5
13912$as_echo "... need to look at C basic types" >&6; }
13913else
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen good stdint.h inttypes" >&5
13915$as_echo "... seen good stdint.h inttypes" >&6; }
13916fi
13917
13918if test "$ac_cv_header_stdint_u" != "no-file" ; then
13919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen bsd/sysv typedefs" >&5
13920$as_echo "... seen bsd/sysv typedefs" >&6; }
13921   cat >>$ac_stdint_h <<EOF
13922
13923/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
13924typedef u_int8_t uint8_t;
13925typedef u_int16_t uint16_t;
13926typedef u_int32_t uint32_t;
13927EOF
13928    cat >>$ac_stdint_h <<EOF
13929
13930/* glibc compatibility */
13931#ifndef __int8_t_defined
13932#define __int8_t_defined
13933#endif
13934EOF
13935fi
13936
13937ac_cv_sizeof_x="$ac_cv_sizeof_char:$ac_cv_sizeof_short"
13938ac_cv_sizeof_X="$ac_cv_sizeof_x:$ac_cv_sizeof_int"
13939ac_cv_sizeof_X="$ac_cv_sizeof_X:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long"
13940if test "$ac_cv_header_stdint" = "stddef.h" ; then
13941#   we must guess all the basic types. Apart from byte-adressable system,
13942# there a few 32-bit-only dsp-systems. nibble-addressable systems are way off.
13943    cat >>$ac_stdint_h <<EOF
13944/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */
13945EOF
13946    t="typedefs for a"
13947    case "$ac_cv_sizeof_X" in
13948     1:2:2:2:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 16-bit system" >&5
13949$as_echo "..adding $t normal 16-bit system" >&6; }
13950                cat >>$ac_stdint_h <<EOF
13951/*              a normal 16-bit system                       */
13952typedef unsigned char   uint8_t;
13953typedef unsigned short  uint16_t;
13954typedef unsigned long   uint32_t;
13955#ifndef __int8_t_defined
13956#define __int8_t_defined
13957typedef          char    int8_t;
13958typedef          short   int16_t;
13959typedef          long    int32_t;
13960#endif
13961EOF
13962;;
13963     1:2:2:4:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 32-bit system derived from a 16-bit" >&5
13964$as_echo "..adding $t 32-bit system derived from a 16-bit" >&6; }
13965                cat >>$ac_stdint_h <<EOF
13966/*              a 32-bit system derived from a 16-bit        */
13967typedef unsigned char   uint8_t;
13968typedef unsigned short  uint16_t;
13969typedef unsigned int    uint32_t;
13970#ifndef __int8_t_defined
13971#define __int8_t_defined
13972typedef          char    int8_t;
13973typedef          short   int16_t;
13974typedef          int     int32_t;
13975#endif
13976EOF
13977;;
13978     1:2:4:4:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 32-bit system" >&5
13979$as_echo "..adding $t normal 32-bit system" >&6; }
13980                cat >>$ac_stdint_h <<EOF
13981/*              a normal 32-bit system                       */
13982typedef unsigned char   uint8_t;
13983typedef unsigned short  uint16_t;
13984typedef unsigned int    uint32_t;
13985#ifndef __int8_t_defined
13986#define __int8_t_defined
13987typedef          char    int8_t;
13988typedef          short   int16_t;
13989typedef          int     int32_t;
13990#endif
13991EOF
13992;;
13993     1:2:4:4:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 32-bit system prepared for 64-bit" >&5
13994$as_echo "..adding $t 32-bit system prepared for 64-bit" >&6; }
13995                cat >>$ac_stdint_h <<EOF
13996
13997/*              a 32-bit system prepared for 64-bit          */
13998typedef unsigned char   uint8_t;
13999typedef unsigned short  uint16_t;
14000typedef unsigned int    uint32_t;
14001#ifndef __int8_t_defined
14002#define __int8_t_defined
14003typedef          char    int8_t;
14004typedef          short   int16_t;
14005typedef          int     int32_t;
14006#endif
14007EOF
14008;;
14009     1:2:4:8:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 64-bit system" >&5
14010$as_echo "..adding $t normal 64-bit system" >&6; }
14011                cat >>$ac_stdint_h <<EOF
14012
14013/*              a normal 64-bit system                       */
14014typedef unsigned char   uint8_t;
14015typedef unsigned short  uint16_t;
14016typedef unsigned int    uint32_t;
14017#ifndef __int8_t_defined
14018#define __int8_t_defined
14019typedef          char    int8_t;
14020typedef          short   int16_t;
14021typedef          int     int32_t;
14022#endif
14023EOF
14024;;
14025     1:2:4:8:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 64-bit system derived from a 32-bit" >&5
14026$as_echo "..adding $t 64-bit system derived from a 32-bit" >&6; }
14027                cat >>$ac_stdint_h <<EOF
14028
14029/*              a 64-bit system derived from a 32-bit system */
14030typedef unsigned char   uint8_t;
14031typedef unsigned short  uint16_t;
14032typedef unsigned int    uint32_t;
14033#ifndef __int8_t_defined
14034#define __int8_t_defined
14035typedef          char    int8_t;
14036typedef          short   int16_t;
14037typedef          int     int32_t;
14038#endif
14039EOF
14040;;
14041  *)
14042    as_fn_error $? " $ac_cv_sizeof_X  what is that a system? contact the author, quick! http://ac-archive.sf.net" "$LINENO" 5
14043    exit 1
14044;;
14045   esac
14046fi
14047
14048# ------------- DONE basic int types START int64_t types ------------
14049if test "$ac_cv_type_uint64_t" = "yes"
14050then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen good uint64_t" >&5
14051$as_echo "... seen good uint64_t" >&6; }
14052     cat >>$ac_stdint_h <<EOF
14053
14054/* system headers have good uint64_t */
14055#ifndef _HAVE_UINT64_T
14056#define _HAVE_UINT64_T
14057#endif
14058EOF
14059
14060elif test "$ac_cv_type_u_int64_t" = "yes"
14061then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding typedef u_int64_t uint64_t" >&5
14062$as_echo "..adding typedef u_int64_t uint64_t" >&6; }
14063     cat >>$ac_stdint_h <<EOF
14064
14065/* system headers have an u_int64_t */
14066#ifndef _HAVE_UINT64_T
14067#define _HAVE_UINT64_T
14068typedef u_int64_t uint64_t;
14069#endif
14070EOF
14071else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic uint64_t runtime checks" >&5
14072$as_echo "..adding generic uint64_t runtime checks" >&6; }
14073     cat >>$ac_stdint_h <<EOF
14074
14075/* -------------------- 64 BIT GENERIC SECTION -------------------- */
14076/* here are some common heuristics using compiler runtime specifics */
14077#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
14078
14079#ifndef _HAVE_UINT64_T
14080#define _HAVE_UINT64_T
14081typedef long long int64_t;
14082typedef unsigned long long uint64_t;
14083#endif
14084
14085#elif !defined __STRICT_ANSI__
14086#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
14087
14088#ifndef _HAVE_UINT64_T
14089#define _HAVE_UINT64_T
14090typedef __int64 int64_t;
14091typedef unsigned __int64 uint64_t;
14092#endif
14093
14094#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
14095
14096#if !defined _NO_LONGLONG
14097#ifndef _HAVE_UINT64_T
14098#define _HAVE_UINT64_T
14099typedef long long int64_t;
14100typedef unsigned long long uint64_t;
14101#endif
14102#endif
14103
14104#elif defined __alpha || (defined __mips && defined _ABIN32)
14105
14106#if !defined _NO_LONGLONG
14107#ifndef _HAVE_UINT64_T
14108#define _HAVE_UINT64_T
14109typedef long int64_t;
14110typedef unsigned long uint64_t;
14111#endif
14112#endif
14113  /* compiler/cpu type ... or just ISO C99 */
14114#endif
14115#endif
14116EOF
14117
14118# plus a default 64-bit for systems that are likely to be 64-bit ready
14119  case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in
14120    1:2:8:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
14121$as_echo "..adding uint64_t default" >&6; }
14122cat >>$ac_stdint_h <<EOF
14123/* DEFAULT: */
14124/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */
14125#ifndef _HAVE_UINT64_T
14126#define _HAVE_UINT64_T
14127typedef long int64_t;
14128typedef unsigned long uint64_t;
14129#endif
14130EOF
14131;;
14132    1:2:4:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
14133$as_echo "..adding uint64_t default" >&6; }
14134cat >>$ac_stdint_h <<EOF
14135/* DEFAULT: */
14136/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */
14137#ifndef _HAVE_UINT64_T
14138#define _HAVE_UINT64_T
14139typedef long int64_t;
14140typedef unsigned long uint64_t;
14141#endif
14142EOF
14143;;
14144    1:2:8:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
14145$as_echo "..adding uint64_t default" >&6; }
14146cat >>$ac_stdint_h <<EOF
14147/* DEFAULT: */
14148/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */
14149#ifndef _HAVE_UINT64_T
14150#define _HAVE_UINT64_T
14151typedef long long int64_t;
14152typedef unsigned long long uint64_t;
14153#endif
14154EOF
14155;;
14156   *)
14157cat >>$ac_stdint_h <<EOF
14158/* NOTE: */
14159/* the configure-checks for the basic types did not make us believe */
14160/* that we could add a fallback to a 'long long' typedef to int64_t */
14161EOF
14162  esac
14163fi
14164
14165# ------------- DONE int64_t types START intptr types ------------
14166if test "$ac_cv_header_stdint_x" = "no-file" ; then
14167  cat >>$ac_stdint_h <<EOF
14168
14169/* -------------------------- INPTR SECTION --------------------------- */
14170EOF
14171  case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in
14172  1:2:2)
14173    a="int16_t" ; cat >>$ac_stdint_h <<EOF
14174/* we tested sizeof(void*) to be of 2 chars, hence we declare it 16-bit */
14175
14176typedef uint16_t uintptr_t;
14177typedef  int16_t  intptr_t;
14178EOF
14179;;
14180  1:2:4)
14181    a="int32_t" ; cat >>$ac_stdint_h <<EOF
14182/* we tested sizeof(void*) to be of 4 chars, hence we declare it 32-bit */
14183
14184typedef uint32_t uintptr_t;
14185typedef  int32_t  intptr_t;
14186EOF
14187;;
14188  1:2:8)
14189    a="int64_t" ; cat >>$ac_stdint_h <<EOF
14190/* we tested sizeof(void*) to be of 8 chars, hence we declare it 64-bit */
14191
14192typedef uint64_t uintptr_t;
14193typedef  int64_t  intptr_t;
14194EOF
14195;;
14196  *)
14197    a="long" ; cat >>$ac_stdint_h <<EOF
14198/* we tested sizeof(void*) but got no guess, hence we declare it as if long */
14199
14200typedef unsigned long uintptr_t;
14201typedef          long  intptr_t;
14202EOF
14203;;
14204  esac
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding typedef $a intptr_t" >&5
14206$as_echo "..adding typedef $a intptr_t" >&6; }
14207fi
14208
14209# ------------- DONE intptr types START int_least types ------------
14210if test "$ac_cv_type_int_least32_t" = "no"; then
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic int_least-types" >&5
14212$as_echo "..adding generic int_least-types" >&6; }
14213     cat >>$ac_stdint_h <<EOF
14214
14215/* --------------GENERIC INT_LEAST ------------------ */
14216
14217typedef  int8_t    int_least8_t;
14218typedef  int16_t   int_least16_t;
14219typedef  int32_t   int_least32_t;
14220#ifdef _HAVE_UINT64_T
14221typedef  int64_t   int_least64_t;
14222#endif
14223
14224typedef uint8_t   uint_least8_t;
14225typedef uint16_t  uint_least16_t;
14226typedef uint32_t  uint_least32_t;
14227#ifdef _HAVE_UINT64_T
14228typedef uint64_t  uint_least64_t;
14229#endif
14230EOF
14231fi
14232
14233# ------------- DONE intptr types START int_least types ------------
14234if test "$ac_cv_type_int_fast32_t" = "no"; then
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic int_fast-types" >&5
14236$as_echo "..adding generic int_fast-types" >&6; }
14237     cat >>$ac_stdint_h <<EOF
14238
14239/* --------------GENERIC INT_FAST ------------------ */
14240
14241typedef  int8_t    int_fast8_t;
14242typedef  int32_t   int_fast16_t;
14243typedef  int32_t   int_fast32_t;
14244#ifdef _HAVE_UINT64_T
14245typedef  int64_t   int_fast64_t;
14246#endif
14247
14248typedef uint8_t   uint_fast8_t;
14249typedef uint32_t  uint_fast16_t;
14250typedef uint32_t  uint_fast32_t;
14251#ifdef _HAVE_UINT64_T
14252typedef uint64_t  uint_fast64_t;
14253#endif
14254EOF
14255fi
14256
14257if test "$ac_cv_header_stdint_x" = "no-file" ; then
14258     cat >>$ac_stdint_h <<EOF
14259
14260#ifdef _HAVE_UINT64_T
14261typedef int64_t        intmax_t;
14262typedef uint64_t      uintmax_t;
14263#else
14264typedef long int       intmax_t;
14265typedef unsigned long uintmax_t;
14266#endif
14267EOF
14268fi
14269
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ... DONE $ac_stdint_h" >&5
14271$as_echo "... DONE $ac_stdint_h" >&6; }
14272   cat >>$ac_stdint_h <<EOF
14273
14274  /* once */
14275#endif
14276#endif
14277EOF
14278
14279
14280# Checks for library functions.
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
14282$as_echo_n "checking whether closedir returns void... " >&6; }
14283if ${ac_cv_func_closedir_void+:} false; then :
14284  $as_echo_n "(cached) " >&6
14285else
14286  if test "$cross_compiling" = yes; then :
14287  ac_cv_func_closedir_void=yes
14288else
14289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290/* end confdefs.h.  */
14291$ac_includes_default
14292#include <$ac_header_dirent>
14293#ifndef __cplusplus
14294int closedir ();
14295#endif
14296
14297int
14298main ()
14299{
14300return closedir (opendir (".")) != 0;
14301  ;
14302  return 0;
14303}
14304_ACEOF
14305if ac_fn_c_try_run "$LINENO"; then :
14306  ac_cv_func_closedir_void=no
14307else
14308  ac_cv_func_closedir_void=yes
14309fi
14310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14311  conftest.$ac_objext conftest.beam conftest.$ac_ext
14312fi
14313
14314fi
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
14316$as_echo "$ac_cv_func_closedir_void" >&6; }
14317if test $ac_cv_func_closedir_void = yes; then
14318
14319$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
14320
14321fi
14322
14323# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14324# for constant arguments.  Useless!
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14326$as_echo_n "checking for working alloca.h... " >&6; }
14327if ${ac_cv_working_alloca_h+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331/* end confdefs.h.  */
14332#include <alloca.h>
14333int
14334main ()
14335{
14336char *p = (char *) alloca (2 * sizeof (int));
14337			  if (p) return 0;
14338  ;
14339  return 0;
14340}
14341_ACEOF
14342if ac_fn_c_try_link "$LINENO"; then :
14343  ac_cv_working_alloca_h=yes
14344else
14345  ac_cv_working_alloca_h=no
14346fi
14347rm -f core conftest.err conftest.$ac_objext \
14348    conftest$ac_exeext conftest.$ac_ext
14349fi
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14351$as_echo "$ac_cv_working_alloca_h" >&6; }
14352if test $ac_cv_working_alloca_h = yes; then
14353
14354$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14355
14356fi
14357
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14359$as_echo_n "checking for alloca... " >&6; }
14360if ${ac_cv_func_alloca_works+:} false; then :
14361  $as_echo_n "(cached) " >&6
14362else
14363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364/* end confdefs.h.  */
14365#ifdef __GNUC__
14366# define alloca __builtin_alloca
14367#else
14368# ifdef _MSC_VER
14369#  include <malloc.h>
14370#  define alloca _alloca
14371# else
14372#  ifdef HAVE_ALLOCA_H
14373#   include <alloca.h>
14374#  else
14375#   ifdef _AIX
14376 #pragma alloca
14377#   else
14378#    ifndef alloca /* predefined by HP cc +Olibcalls */
14379void *alloca (size_t);
14380#    endif
14381#   endif
14382#  endif
14383# endif
14384#endif
14385
14386int
14387main ()
14388{
14389char *p = (char *) alloca (1);
14390				    if (p) return 0;
14391  ;
14392  return 0;
14393}
14394_ACEOF
14395if ac_fn_c_try_link "$LINENO"; then :
14396  ac_cv_func_alloca_works=yes
14397else
14398  ac_cv_func_alloca_works=no
14399fi
14400rm -f core conftest.err conftest.$ac_objext \
14401    conftest$ac_exeext conftest.$ac_ext
14402fi
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14404$as_echo "$ac_cv_func_alloca_works" >&6; }
14405
14406if test $ac_cv_func_alloca_works = yes; then
14407
14408$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14409
14410else
14411  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14412# that cause trouble.  Some versions do not even contain alloca or
14413# contain a buggy version.  If you still want to use their alloca,
14414# use ar to extract alloca.o from them instead of compiling alloca.c.
14415
14416ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14417
14418$as_echo "#define C_ALLOCA 1" >>confdefs.h
14419
14420
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14422$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14423if ${ac_cv_os_cray+:} false; then :
14424  $as_echo_n "(cached) " >&6
14425else
14426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h.  */
14428#if defined CRAY && ! defined CRAY2
14429webecray
14430#else
14431wenotbecray
14432#endif
14433
14434_ACEOF
14435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436  $EGREP "webecray" >/dev/null 2>&1; then :
14437  ac_cv_os_cray=yes
14438else
14439  ac_cv_os_cray=no
14440fi
14441rm -f conftest*
14442
14443fi
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14445$as_echo "$ac_cv_os_cray" >&6; }
14446if test $ac_cv_os_cray = yes; then
14447  for ac_func in _getb67 GETB67 getb67; do
14448    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14450if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14451
14452cat >>confdefs.h <<_ACEOF
14453#define CRAY_STACKSEG_END $ac_func
14454_ACEOF
14455
14456    break
14457fi
14458
14459  done
14460fi
14461
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14463$as_echo_n "checking stack direction for C alloca... " >&6; }
14464if ${ac_cv_c_stack_direction+:} false; then :
14465  $as_echo_n "(cached) " >&6
14466else
14467  if test "$cross_compiling" = yes; then :
14468  ac_cv_c_stack_direction=0
14469else
14470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h.  */
14472$ac_includes_default
14473int
14474find_stack_direction (int *addr, int depth)
14475{
14476  int dir, dummy = 0;
14477  if (! addr)
14478    addr = &dummy;
14479  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14480  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14481  return dir + dummy;
14482}
14483
14484int
14485main (int argc, char **argv)
14486{
14487  return find_stack_direction (0, argc + !argv + 20) < 0;
14488}
14489_ACEOF
14490if ac_fn_c_try_run "$LINENO"; then :
14491  ac_cv_c_stack_direction=1
14492else
14493  ac_cv_c_stack_direction=-1
14494fi
14495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14496  conftest.$ac_objext conftest.beam conftest.$ac_ext
14497fi
14498
14499fi
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14501$as_echo "$ac_cv_c_stack_direction" >&6; }
14502cat >>confdefs.h <<_ACEOF
14503#define STACK_DIRECTION $ac_cv_c_stack_direction
14504_ACEOF
14505
14506
14507fi
14508
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14510$as_echo_n "checking for mbstate_t... " >&6; }
14511if ${ac_cv_type_mbstate_t+:} false; then :
14512  $as_echo_n "(cached) " >&6
14513else
14514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h.  */
14516$ac_includes_default
14517#	    include <wchar.h>
14518int
14519main ()
14520{
14521mbstate_t x; return sizeof x;
14522  ;
14523  return 0;
14524}
14525_ACEOF
14526if ac_fn_c_try_compile "$LINENO"; then :
14527  ac_cv_type_mbstate_t=yes
14528else
14529  ac_cv_type_mbstate_t=no
14530fi
14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532fi
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14534$as_echo "$ac_cv_type_mbstate_t" >&6; }
14535   if test $ac_cv_type_mbstate_t = yes; then
14536
14537$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14538
14539   else
14540
14541$as_echo "#define mbstate_t int" >>confdefs.h
14542
14543   fi
14544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
14545$as_echo_n "checking for working POSIX fnmatch... " >&6; }
14546if ${ac_cv_func_fnmatch_works+:} false; then :
14547  $as_echo_n "(cached) " >&6
14548else
14549  # Some versions of Solaris, SCO, and the GNU C Library
14550   # have a broken or incompatible fnmatch.
14551   # So we run a test program.  If we are cross-compiling, take no chance.
14552   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
14553   if test "$cross_compiling" = yes; then :
14554  ac_cv_func_fnmatch_works=cross
14555else
14556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557/* end confdefs.h.  */
14558#include <fnmatch.h>
14559#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
14560#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
14561
14562int
14563main ()
14564{
14565return
14566	   (!(y ("a*", "abc", 0)
14567	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
14568	      && y ("a\\\\bc", "abc", 0)
14569	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
14570	      && y ("*x", ".x", 0)
14571	      && n ("*x", ".x", FNM_PERIOD)
14572	      && 1));
14573  ;
14574  return 0;
14575}
14576_ACEOF
14577if ac_fn_c_try_run "$LINENO"; then :
14578  ac_cv_func_fnmatch_works=yes
14579else
14580  ac_cv_func_fnmatch_works=no
14581fi
14582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14583  conftest.$ac_objext conftest.beam conftest.$ac_ext
14584fi
14585
14586fi
14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
14588$as_echo "$ac_cv_func_fnmatch_works" >&6; }
14589if test $ac_cv_func_fnmatch_works = yes; then :
14590  rm -f "$ac_config_libobj_dir/fnmatch.h"
14591else
14592  ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14593if test "x$ac_cv_have_decl_getenv" = xyes; then :
14594  ac_have_decl=1
14595else
14596  ac_have_decl=0
14597fi
14598
14599cat >>confdefs.h <<_ACEOF
14600#define HAVE_DECL_GETENV $ac_have_decl
14601_ACEOF
14602
14603for ac_func in btowc mbsrtowcs mempcpy wmempcpy
14604do :
14605  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14606ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14607if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14608  cat >>confdefs.h <<_ACEOF
14609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14610_ACEOF
14611
14612fi
14613done
14614
14615for ac_header in wchar.h wctype.h
14616do :
14617  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14618ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14619if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14620  cat >>confdefs.h <<_ACEOF
14621#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14622_ACEOF
14623
14624fi
14625
14626done
14627
14628case " $LIBOBJS " in
14629  *" fnmatch.$ac_objext "* ) ;;
14630  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
14631 ;;
14632esac
14633
14634ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
14635
14636
14637$as_echo "#define fnmatch rpl_fnmatch" >>confdefs.h
14638
14639
14640fi
14641
14642
14643for ac_header in vfork.h
14644do :
14645  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14646if test "x$ac_cv_header_vfork_h" = xyes; then :
14647  cat >>confdefs.h <<_ACEOF
14648#define HAVE_VFORK_H 1
14649_ACEOF
14650
14651fi
14652
14653done
14654
14655for ac_func in fork vfork
14656do :
14657  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14658ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14659if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14660  cat >>confdefs.h <<_ACEOF
14661#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14662_ACEOF
14663
14664fi
14665done
14666
14667if test "x$ac_cv_func_fork" = xyes; then
14668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14669$as_echo_n "checking for working fork... " >&6; }
14670if ${ac_cv_func_fork_works+:} false; then :
14671  $as_echo_n "(cached) " >&6
14672else
14673  if test "$cross_compiling" = yes; then :
14674  ac_cv_func_fork_works=cross
14675else
14676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677/* end confdefs.h.  */
14678$ac_includes_default
14679int
14680main ()
14681{
14682
14683	  /* By Ruediger Kuhlmann. */
14684	  return fork () < 0;
14685
14686  ;
14687  return 0;
14688}
14689_ACEOF
14690if ac_fn_c_try_run "$LINENO"; then :
14691  ac_cv_func_fork_works=yes
14692else
14693  ac_cv_func_fork_works=no
14694fi
14695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14696  conftest.$ac_objext conftest.beam conftest.$ac_ext
14697fi
14698
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14701$as_echo "$ac_cv_func_fork_works" >&6; }
14702
14703else
14704  ac_cv_func_fork_works=$ac_cv_func_fork
14705fi
14706if test "x$ac_cv_func_fork_works" = xcross; then
14707  case $host in
14708    *-*-amigaos* | *-*-msdosdjgpp*)
14709      # Override, as these systems have only a dummy fork() stub
14710      ac_cv_func_fork_works=no
14711      ;;
14712    *)
14713      ac_cv_func_fork_works=yes
14714      ;;
14715  esac
14716  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14717$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14718fi
14719ac_cv_func_vfork_works=$ac_cv_func_vfork
14720if test "x$ac_cv_func_vfork" = xyes; then
14721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14722$as_echo_n "checking for working vfork... " >&6; }
14723if ${ac_cv_func_vfork_works+:} false; then :
14724  $as_echo_n "(cached) " >&6
14725else
14726  if test "$cross_compiling" = yes; then :
14727  ac_cv_func_vfork_works=cross
14728else
14729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730/* end confdefs.h.  */
14731/* Thanks to Paul Eggert for this test.  */
14732$ac_includes_default
14733#include <sys/wait.h>
14734#ifdef HAVE_VFORK_H
14735# include <vfork.h>
14736#endif
14737/* On some sparc systems, changes by the child to local and incoming
14738   argument registers are propagated back to the parent.  The compiler
14739   is told about this with #include <vfork.h>, but some compilers
14740   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14741   static variable whose address is put into a register that is
14742   clobbered by the vfork.  */
14743static void
14744#ifdef __cplusplus
14745sparc_address_test (int arg)
14746# else
14747sparc_address_test (arg) int arg;
14748#endif
14749{
14750  static pid_t child;
14751  if (!child) {
14752    child = vfork ();
14753    if (child < 0) {
14754      perror ("vfork");
14755      _exit(2);
14756    }
14757    if (!child) {
14758      arg = getpid();
14759      write(-1, "", 0);
14760      _exit (arg);
14761    }
14762  }
14763}
14764
14765int
14766main ()
14767{
14768  pid_t parent = getpid ();
14769  pid_t child;
14770
14771  sparc_address_test (0);
14772
14773  child = vfork ();
14774
14775  if (child == 0) {
14776    /* Here is another test for sparc vfork register problems.  This
14777       test uses lots of local variables, at least as many local
14778       variables as main has allocated so far including compiler
14779       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14780       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14781       reuse the register of parent for one of the local variables,
14782       since it will think that parent can't possibly be used any more
14783       in this routine.  Assigning to the local variable will thus
14784       munge parent in the parent process.  */
14785    pid_t
14786      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14787      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14788    /* Convince the compiler that p..p7 are live; otherwise, it might
14789       use the same hardware register for all 8 local variables.  */
14790    if (p != p1 || p != p2 || p != p3 || p != p4
14791	|| p != p5 || p != p6 || p != p7)
14792      _exit(1);
14793
14794    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14795       from child file descriptors.  If the child closes a descriptor
14796       before it execs or exits, this munges the parent's descriptor
14797       as well.  Test for this by closing stdout in the child.  */
14798    _exit(close(fileno(stdout)) != 0);
14799  } else {
14800    int status;
14801    struct stat st;
14802
14803    while (wait(&status) != child)
14804      ;
14805    return (
14806	 /* Was there some problem with vforking?  */
14807	 child < 0
14808
14809	 /* Did the child fail?  (This shouldn't happen.)  */
14810	 || status
14811
14812	 /* Did the vfork/compiler bug occur?  */
14813	 || parent != getpid()
14814
14815	 /* Did the file descriptor bug occur?  */
14816	 || fstat(fileno(stdout), &st) != 0
14817	 );
14818  }
14819}
14820_ACEOF
14821if ac_fn_c_try_run "$LINENO"; then :
14822  ac_cv_func_vfork_works=yes
14823else
14824  ac_cv_func_vfork_works=no
14825fi
14826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14827  conftest.$ac_objext conftest.beam conftest.$ac_ext
14828fi
14829
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14832$as_echo "$ac_cv_func_vfork_works" >&6; }
14833
14834fi;
14835if test "x$ac_cv_func_fork_works" = xcross; then
14836  ac_cv_func_vfork_works=$ac_cv_func_vfork
14837  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14838$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14839fi
14840
14841if test "x$ac_cv_func_vfork_works" = xyes; then
14842
14843$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14844
14845else
14846
14847$as_echo "#define vfork fork" >>confdefs.h
14848
14849fi
14850if test "x$ac_cv_func_fork_works" = xyes; then
14851
14852$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14853
14854fi
14855
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14857$as_echo_n "checking for working memcmp... " >&6; }
14858if ${ac_cv_func_memcmp_working+:} false; then :
14859  $as_echo_n "(cached) " >&6
14860else
14861  if test "$cross_compiling" = yes; then :
14862  ac_cv_func_memcmp_working=no
14863else
14864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865/* end confdefs.h.  */
14866$ac_includes_default
14867int
14868main ()
14869{
14870
14871  /* Some versions of memcmp are not 8-bit clean.  */
14872  char c0 = '\100', c1 = '\200', c2 = '\201';
14873  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14874    return 1;
14875
14876  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14877     or more and with at least one buffer not starting on a 4-byte boundary.
14878     William Lewis provided this test program.   */
14879  {
14880    char foo[21];
14881    char bar[21];
14882    int i;
14883    for (i = 0; i < 4; i++)
14884      {
14885	char *a = foo + i;
14886	char *b = bar + i;
14887	strcpy (a, "--------01111111");
14888	strcpy (b, "--------10000000");
14889	if (memcmp (a, b, 16) >= 0)
14890	  return 1;
14891      }
14892    return 0;
14893  }
14894
14895  ;
14896  return 0;
14897}
14898_ACEOF
14899if ac_fn_c_try_run "$LINENO"; then :
14900  ac_cv_func_memcmp_working=yes
14901else
14902  ac_cv_func_memcmp_working=no
14903fi
14904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14905  conftest.$ac_objext conftest.beam conftest.$ac_ext
14906fi
14907
14908fi
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14910$as_echo "$ac_cv_func_memcmp_working" >&6; }
14911test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14912  *" memcmp.$ac_objext "* ) ;;
14913  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14914 ;;
14915esac
14916
14917
14918
14919
14920
14921  for ac_header in $ac_header_list
14922do :
14923  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14924ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14925"
14926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14927  cat >>confdefs.h <<_ACEOF
14928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14929_ACEOF
14930
14931fi
14932
14933done
14934
14935
14936
14937
14938
14939
14940
14941
14942  for ac_func in $ac_func_list
14943do :
14944  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14945ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14946if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14947  cat >>confdefs.h <<_ACEOF
14948#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14949_ACEOF
14950
14951fi
14952done
14953
14954
14955
14956
14957
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14959$as_echo_n "checking for working mktime... " >&6; }
14960if ${ac_cv_func_working_mktime+:} false; then :
14961  $as_echo_n "(cached) " >&6
14962else
14963  if test "$cross_compiling" = yes; then :
14964  ac_cv_func_working_mktime=no
14965else
14966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967/* end confdefs.h.  */
14968/* Test program from Paul Eggert and Tony Leneis.  */
14969#ifdef TIME_WITH_SYS_TIME
14970# include <sys/time.h>
14971# include <time.h>
14972#else
14973# ifdef HAVE_SYS_TIME_H
14974#  include <sys/time.h>
14975# else
14976#  include <time.h>
14977# endif
14978#endif
14979
14980#include <limits.h>
14981#include <stdlib.h>
14982
14983#ifdef HAVE_UNISTD_H
14984# include <unistd.h>
14985#endif
14986
14987#ifndef HAVE_ALARM
14988# define alarm(X) /* empty */
14989#endif
14990
14991/* Work around redefinition to rpl_putenv by other config tests.  */
14992#undef putenv
14993
14994static time_t time_t_max;
14995static time_t time_t_min;
14996
14997/* Values we'll use to set the TZ environment variable.  */
14998static const char *tz_strings[] = {
14999  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
15000  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15001};
15002#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15003
15004/* Return 0 if mktime fails to convert a date in the spring-forward gap.
15005   Based on a problem report from Andreas Jaeger.  */
15006static int
15007spring_forward_gap ()
15008{
15009  /* glibc (up to about 1998-10-07) failed this test. */
15010  struct tm tm;
15011
15012  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15013     instead of "TZ=America/Vancouver" in order to detect the bug even
15014     on systems that don't support the Olson extension, or don't have the
15015     full zoneinfo tables installed.  */
15016  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15017
15018  tm.tm_year = 98;
15019  tm.tm_mon = 3;
15020  tm.tm_mday = 5;
15021  tm.tm_hour = 2;
15022  tm.tm_min = 0;
15023  tm.tm_sec = 0;
15024  tm.tm_isdst = -1;
15025  return mktime (&tm) != (time_t) -1;
15026}
15027
15028static int
15029mktime_test1 (time_t now)
15030{
15031  struct tm *lt;
15032  return ! (lt = localtime (&now)) || mktime (lt) == now;
15033}
15034
15035static int
15036mktime_test (time_t now)
15037{
15038  return (mktime_test1 (now)
15039	  && mktime_test1 ((time_t) (time_t_max - now))
15040	  && mktime_test1 ((time_t) (time_t_min + now)));
15041}
15042
15043static int
15044irix_6_4_bug ()
15045{
15046  /* Based on code from Ariel Faigon.  */
15047  struct tm tm;
15048  tm.tm_year = 96;
15049  tm.tm_mon = 3;
15050  tm.tm_mday = 0;
15051  tm.tm_hour = 0;
15052  tm.tm_min = 0;
15053  tm.tm_sec = 0;
15054  tm.tm_isdst = -1;
15055  mktime (&tm);
15056  return tm.tm_mon == 2 && tm.tm_mday == 31;
15057}
15058
15059static int
15060bigtime_test (int j)
15061{
15062  struct tm tm;
15063  time_t now;
15064  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15065  now = mktime (&tm);
15066  if (now != (time_t) -1)
15067    {
15068      struct tm *lt = localtime (&now);
15069      if (! (lt
15070	     && lt->tm_year == tm.tm_year
15071	     && lt->tm_mon == tm.tm_mon
15072	     && lt->tm_mday == tm.tm_mday
15073	     && lt->tm_hour == tm.tm_hour
15074	     && lt->tm_min == tm.tm_min
15075	     && lt->tm_sec == tm.tm_sec
15076	     && lt->tm_yday == tm.tm_yday
15077	     && lt->tm_wday == tm.tm_wday
15078	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15079		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15080	return 0;
15081    }
15082  return 1;
15083}
15084
15085static int
15086year_2050_test ()
15087{
15088  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15089     ignoring leap seconds.  */
15090  unsigned long int answer = 2527315200UL;
15091
15092  struct tm tm;
15093  time_t t;
15094  tm.tm_year = 2050 - 1900;
15095  tm.tm_mon = 2 - 1;
15096  tm.tm_mday = 1;
15097  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15098  tm.tm_isdst = -1;
15099
15100  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15101     instead of "TZ=America/Vancouver" in order to detect the bug even
15102     on systems that don't support the Olson extension, or don't have the
15103     full zoneinfo tables installed.  */
15104  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15105
15106  t = mktime (&tm);
15107
15108  /* Check that the result is either a failure, or close enough
15109     to the correct answer that we can assume the discrepancy is
15110     due to leap seconds.  */
15111  return (t == (time_t) -1
15112	  || (0 < t && answer - 120 <= t && t <= answer + 120));
15113}
15114
15115int
15116main ()
15117{
15118  time_t t, delta;
15119  int i, j;
15120
15121  /* This test makes some buggy mktime implementations loop.
15122     Give up after 60 seconds; a mktime slower than that
15123     isn't worth using anyway.  */
15124  alarm (60);
15125
15126  for (;;)
15127    {
15128      t = (time_t_max << 1) + 1;
15129      if (t <= time_t_max)
15130	break;
15131      time_t_max = t;
15132    }
15133  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15134
15135  delta = time_t_max / 997; /* a suitable prime number */
15136  for (i = 0; i < N_STRINGS; i++)
15137    {
15138      if (tz_strings[i])
15139	putenv ((char*) tz_strings[i]);
15140
15141      for (t = 0; t <= time_t_max - delta; t += delta)
15142	if (! mktime_test (t))
15143	  return 1;
15144      if (! (mktime_test ((time_t) 1)
15145	     && mktime_test ((time_t) (60 * 60))
15146	     && mktime_test ((time_t) (60 * 60 * 24))))
15147	return 1;
15148
15149      for (j = 1; ; j <<= 1)
15150	if (! bigtime_test (j))
15151	  return 1;
15152	else if (INT_MAX / 2 < j)
15153	  break;
15154      if (! bigtime_test (INT_MAX))
15155	return 1;
15156    }
15157  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15158}
15159_ACEOF
15160if ac_fn_c_try_run "$LINENO"; then :
15161  ac_cv_func_working_mktime=yes
15162else
15163  ac_cv_func_working_mktime=no
15164fi
15165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15166  conftest.$ac_objext conftest.beam conftest.$ac_ext
15167fi
15168
15169fi
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15171$as_echo "$ac_cv_func_working_mktime" >&6; }
15172if test $ac_cv_func_working_mktime = no; then
15173  case " $LIBOBJS " in
15174  *" mktime.$ac_objext "* ) ;;
15175  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15176 ;;
15177esac
15178
15179fi
15180
15181for ac_header in sys/select.h sys/socket.h
15182do :
15183  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15185if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15186  cat >>confdefs.h <<_ACEOF
15187#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15188_ACEOF
15189
15190fi
15191
15192done
15193
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
15195$as_echo_n "checking types of arguments for select... " >&6; }
15196if ${ac_cv_func_select_args+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15200 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15201  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204$ac_includes_default
15205#ifdef HAVE_SYS_SELECT_H
15206# include <sys/select.h>
15207#endif
15208#ifdef HAVE_SYS_SOCKET_H
15209# include <sys/socket.h>
15210#endif
15211
15212int
15213main ()
15214{
15215extern int select ($ac_arg1,
15216					    $ac_arg234, $ac_arg234, $ac_arg234,
15217					    $ac_arg5);
15218  ;
15219  return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_compile "$LINENO"; then :
15223  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15224fi
15225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15226  done
15227 done
15228done
15229# Provide a safe default value.
15230: "${ac_cv_func_select_args=int,int *,struct timeval *}"
15231
15232fi
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
15234$as_echo "$ac_cv_func_select_args" >&6; }
15235ac_save_IFS=$IFS; IFS=','
15236set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15237IFS=$ac_save_IFS
15238shift
15239
15240cat >>confdefs.h <<_ACEOF
15241#define SELECT_TYPE_ARG1 $1
15242_ACEOF
15243
15244
15245cat >>confdefs.h <<_ACEOF
15246#define SELECT_TYPE_ARG234 ($2)
15247_ACEOF
15248
15249
15250cat >>confdefs.h <<_ACEOF
15251#define SELECT_TYPE_ARG5 ($3)
15252_ACEOF
15253
15254rm -f conftest*
15255
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15257$as_echo_n "checking return type of signal handlers... " >&6; }
15258if ${ac_cv_type_signal+:} false; then :
15259  $as_echo_n "(cached) " >&6
15260else
15261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263#include <sys/types.h>
15264#include <signal.h>
15265
15266int
15267main ()
15268{
15269return *(signal (0, 0)) (0) == 1;
15270  ;
15271  return 0;
15272}
15273_ACEOF
15274if ac_fn_c_try_compile "$LINENO"; then :
15275  ac_cv_type_signal=int
15276else
15277  ac_cv_type_signal=void
15278fi
15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280fi
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15282$as_echo "$ac_cv_type_signal" >&6; }
15283
15284cat >>confdefs.h <<_ACEOF
15285#define RETSIGTYPE $ac_cv_type_signal
15286_ACEOF
15287
15288
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15290$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15291if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
15292  $as_echo_n "(cached) " >&6
15293else
15294  rm -f conftest.sym conftest.file
15295echo >conftest.file
15296if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15297  if test "$cross_compiling" = yes; then :
15298  ac_cv_func_lstat_dereferences_slashed_symlink=no
15299else
15300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301/* end confdefs.h.  */
15302$ac_includes_default
15303int
15304main ()
15305{
15306struct stat sbuf;
15307     /* Linux will dereference the symlink and fail, as required by POSIX.
15308	That is better in the sense that it means we will not
15309	have to compile and use the lstat wrapper.  */
15310     return lstat ("conftest.sym/", &sbuf) == 0;
15311  ;
15312  return 0;
15313}
15314_ACEOF
15315if ac_fn_c_try_run "$LINENO"; then :
15316  ac_cv_func_lstat_dereferences_slashed_symlink=yes
15317else
15318  ac_cv_func_lstat_dereferences_slashed_symlink=no
15319fi
15320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15321  conftest.$ac_objext conftest.beam conftest.$ac_ext
15322fi
15323
15324else
15325  # If the `ln -s' command failed, then we probably don't even
15326  # have an lstat function.
15327  ac_cv_func_lstat_dereferences_slashed_symlink=no
15328fi
15329rm -f conftest.sym conftest.file
15330
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15333$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15334
15335test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15336
15337cat >>confdefs.h <<_ACEOF
15338#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15339_ACEOF
15340
15341
15342if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15343  case " $LIBOBJS " in
15344  *" lstat.$ac_objext "* ) ;;
15345  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15346 ;;
15347esac
15348
15349fi
15350
15351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15352$as_echo_n "checking whether stat accepts an empty string... " >&6; }
15353if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  if test "$cross_compiling" = yes; then :
15357  ac_cv_func_stat_empty_string_bug=yes
15358else
15359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h.  */
15361$ac_includes_default
15362int
15363main ()
15364{
15365struct stat sbuf;
15366  return stat ("", &sbuf) == 0;
15367  ;
15368  return 0;
15369}
15370_ACEOF
15371if ac_fn_c_try_run "$LINENO"; then :
15372  ac_cv_func_stat_empty_string_bug=no
15373else
15374  ac_cv_func_stat_empty_string_bug=yes
15375fi
15376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15377  conftest.$ac_objext conftest.beam conftest.$ac_ext
15378fi
15379
15380fi
15381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
15382$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
15383if test $ac_cv_func_stat_empty_string_bug = yes; then
15384  case " $LIBOBJS " in
15385  *" stat.$ac_objext "* ) ;;
15386  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15387 ;;
15388esac
15389
15390
15391cat >>confdefs.h <<_ACEOF
15392#define HAVE_STAT_EMPTY_STRING_BUG 1
15393_ACEOF
15394
15395fi
15396
15397for ac_func in vprintf
15398do :
15399  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15400if test "x$ac_cv_func_vprintf" = xyes; then :
15401  cat >>confdefs.h <<_ACEOF
15402#define HAVE_VPRINTF 1
15403_ACEOF
15404
15405ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15406if test "x$ac_cv_func__doprnt" = xyes; then :
15407
15408$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15409
15410fi
15411
15412fi
15413done
15414
15415
15416for ac_header in sys/select.h sys/socket.h
15417do :
15418  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15419ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15421  cat >>confdefs.h <<_ACEOF
15422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15423_ACEOF
15424
15425fi
15426
15427done
15428
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
15430$as_echo_n "checking types of arguments for select... " >&6; }
15431if ${ac_cv_func_select_args+:} false; then :
15432  $as_echo_n "(cached) " >&6
15433else
15434  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15435 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15436  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438/* end confdefs.h.  */
15439$ac_includes_default
15440#ifdef HAVE_SYS_SELECT_H
15441# include <sys/select.h>
15442#endif
15443#ifdef HAVE_SYS_SOCKET_H
15444# include <sys/socket.h>
15445#endif
15446
15447int
15448main ()
15449{
15450extern int select ($ac_arg1,
15451					    $ac_arg234, $ac_arg234, $ac_arg234,
15452					    $ac_arg5);
15453  ;
15454  return 0;
15455}
15456_ACEOF
15457if ac_fn_c_try_compile "$LINENO"; then :
15458  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15459fi
15460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461  done
15462 done
15463done
15464# Provide a safe default value.
15465: "${ac_cv_func_select_args=int,int *,struct timeval *}"
15466
15467fi
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
15469$as_echo "$ac_cv_func_select_args" >&6; }
15470ac_save_IFS=$IFS; IFS=','
15471set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15472IFS=$ac_save_IFS
15473shift
15474
15475cat >>confdefs.h <<_ACEOF
15476#define SELECT_TYPE_ARG1 $1
15477_ACEOF
15478
15479
15480cat >>confdefs.h <<_ACEOF
15481#define SELECT_TYPE_ARG234 ($2)
15482_ACEOF
15483
15484
15485cat >>confdefs.h <<_ACEOF
15486#define SELECT_TYPE_ARG5 ($3)
15487_ACEOF
15488
15489rm -f conftest*
15490
15491for ac_func in close \
15492                dup2 \
15493                fcntl \
15494                _findfirst \
15495                gethostname \
15496                getopt \
15497                getpagesize \
15498                getpid \
15499                gettimeofday \
15500                inet_aton \
15501                inet_ntoa \
15502                ioctl \
15503                isascii \
15504                memchr \
15505                memmove \
15506                memset \
15507                mkdir \
15508                _mkdir \
15509                modf \
15510                select \
15511                setenv \
15512                sleep \
15513                Sleep \
15514                socket \
15515                strcasecmp \
15516                strchr \
15517                strdup \
15518                strerror \
15519                stricmp \
15520                strncasecmp \
15521                strndup \
15522                strnicmp \
15523                strstr \
15524                tzset \
15525                uname \
15526
15527do :
15528  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15529ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15530if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15531  cat >>confdefs.h <<_ACEOF
15532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15533_ACEOF
15534
15535fi
15536done
15537
15538
15539ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
15540if test "x$ac_cv_func_crypt" = xyes; then :
15541
15542else
15543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
15544$as_echo_n "checking for crypt in -lcrypt... " >&6; }
15545if ${ac_cv_lib_crypt_crypt+:} false; then :
15546  $as_echo_n "(cached) " >&6
15547else
15548  ac_check_lib_save_LIBS=$LIBS
15549LIBS="-lcrypt  $LIBS"
15550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551/* end confdefs.h.  */
15552
15553/* Override any GCC internal prototype to avoid an error.
15554   Use char because int might match the return type of a GCC
15555   builtin and then its argument prototype would still apply.  */
15556#ifdef __cplusplus
15557extern "C"
15558#endif
15559char crypt ();
15560int
15561main ()
15562{
15563return crypt ();
15564  ;
15565  return 0;
15566}
15567_ACEOF
15568if ac_fn_c_try_link "$LINENO"; then :
15569  ac_cv_lib_crypt_crypt=yes
15570else
15571  ac_cv_lib_crypt_crypt=no
15572fi
15573rm -f core conftest.err conftest.$ac_objext \
15574    conftest$ac_exeext conftest.$ac_ext
15575LIBS=$ac_check_lib_save_LIBS
15576fi
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
15578$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
15579if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
15580  cat >>confdefs.h <<_ACEOF
15581#define HAVE_LIBCRYPT 1
15582_ACEOF
15583
15584  LIBS="-lcrypt $LIBS"
15585
15586fi
15587
15588fi
15589
15590if test "x$ac_cv_lib_crypt_crypt" = "xyes"; then
15591
15592$as_echo "#define HAVE_CRYPT 1" >>confdefs.h
15593
15594fi
15595 if test "x$ac_cv_lib_crypt_crypt" = "xyes"; then
15596  HAVE_CRYPT_TRUE=
15597  HAVE_CRYPT_FALSE='#'
15598else
15599  HAVE_CRYPT_TRUE='#'
15600  HAVE_CRYPT_FALSE=
15601fi
15602
15603ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15604if test "x$ac_cv_func_connect" = xyes; then :
15605
15606else
15607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15608$as_echo_n "checking for connect in -lsocket... " >&6; }
15609if ${ac_cv_lib_socket_connect+:} false; then :
15610  $as_echo_n "(cached) " >&6
15611else
15612  ac_check_lib_save_LIBS=$LIBS
15613LIBS="-lsocket  $LIBS"
15614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615/* end confdefs.h.  */
15616
15617/* Override any GCC internal prototype to avoid an error.
15618   Use char because int might match the return type of a GCC
15619   builtin and then its argument prototype would still apply.  */
15620#ifdef __cplusplus
15621extern "C"
15622#endif
15623char connect ();
15624int
15625main ()
15626{
15627return connect ();
15628  ;
15629  return 0;
15630}
15631_ACEOF
15632if ac_fn_c_try_link "$LINENO"; then :
15633  ac_cv_lib_socket_connect=yes
15634else
15635  ac_cv_lib_socket_connect=no
15636fi
15637rm -f core conftest.err conftest.$ac_objext \
15638    conftest$ac_exeext conftest.$ac_ext
15639LIBS=$ac_check_lib_save_LIBS
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15642$as_echo "$ac_cv_lib_socket_connect" >&6; }
15643if test "x$ac_cv_lib_socket_connect" = xyes; then :
15644  cat >>confdefs.h <<_ACEOF
15645#define HAVE_LIBSOCKET 1
15646_ACEOF
15647
15648  LIBS="-lsocket $LIBS"
15649
15650fi
15651
15652fi
15653
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5
15655$as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; }
15656if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :
15657  $as_echo_n "(cached) " >&6
15658else
15659  ac_check_lib_save_LIBS=$LIBS
15660LIBS="-lws2_32  $LIBS"
15661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662/* end confdefs.h.  */
15663
15664/* Override any GCC internal prototype to avoid an error.
15665   Use char because int might match the return type of a GCC
15666   builtin and then its argument prototype would still apply.  */
15667#ifdef __cplusplus
15668extern "C"
15669#endif
15670char _head_libws2_32_a ();
15671int
15672main ()
15673{
15674return _head_libws2_32_a ();
15675  ;
15676  return 0;
15677}
15678_ACEOF
15679if ac_fn_c_try_link "$LINENO"; then :
15680  ac_cv_lib_ws2_32__head_libws2_32_a=yes
15681else
15682  ac_cv_lib_ws2_32__head_libws2_32_a=no
15683fi
15684rm -f core conftest.err conftest.$ac_objext \
15685    conftest$ac_exeext conftest.$ac_ext
15686LIBS=$ac_check_lib_save_LIBS
15687fi
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5
15689$as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; }
15690if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then :
15691  cat >>confdefs.h <<_ACEOF
15692#define HAVE_LIBWS2_32 1
15693_ACEOF
15694
15695  LIBS="-lws2_32 $LIBS"
15696
15697fi
15698
15699
15700ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15701if test "x$ac_cv_func_gethostbyname" = xyes; then :
15702
15703else
15704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15705$as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15706if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
15707  $as_echo_n "(cached) " >&6
15708else
15709  ac_check_lib_save_LIBS=$LIBS
15710LIBS="-lresolv  $LIBS"
15711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712/* end confdefs.h.  */
15713
15714/* Override any GCC internal prototype to avoid an error.
15715   Use char because int might match the return type of a GCC
15716   builtin and then its argument prototype would still apply.  */
15717#ifdef __cplusplus
15718extern "C"
15719#endif
15720char gethostbyname ();
15721int
15722main ()
15723{
15724return gethostbyname ();
15725  ;
15726  return 0;
15727}
15728_ACEOF
15729if ac_fn_c_try_link "$LINENO"; then :
15730  ac_cv_lib_resolv_gethostbyname=yes
15731else
15732  ac_cv_lib_resolv_gethostbyname=no
15733fi
15734rm -f core conftest.err conftest.$ac_objext \
15735    conftest$ac_exeext conftest.$ac_ext
15736LIBS=$ac_check_lib_save_LIBS
15737fi
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15739$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15740if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
15741  cat >>confdefs.h <<_ACEOF
15742#define HAVE_LIBRESOLV 1
15743_ACEOF
15744
15745  LIBS="-lresolv $LIBS"
15746
15747fi
15748
15749fi
15750
15751ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15752if test "x$ac_cv_func_gethostbyname" = xyes; then :
15753
15754else
15755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15756$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15757if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15758  $as_echo_n "(cached) " >&6
15759else
15760  ac_check_lib_save_LIBS=$LIBS
15761LIBS="-lnsl  $LIBS"
15762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763/* end confdefs.h.  */
15764
15765/* Override any GCC internal prototype to avoid an error.
15766   Use char because int might match the return type of a GCC
15767   builtin and then its argument prototype would still apply.  */
15768#ifdef __cplusplus
15769extern "C"
15770#endif
15771char gethostbyname ();
15772int
15773main ()
15774{
15775return gethostbyname ();
15776  ;
15777  return 0;
15778}
15779_ACEOF
15780if ac_fn_c_try_link "$LINENO"; then :
15781  ac_cv_lib_nsl_gethostbyname=yes
15782else
15783  ac_cv_lib_nsl_gethostbyname=no
15784fi
15785rm -f core conftest.err conftest.$ac_objext \
15786    conftest$ac_exeext conftest.$ac_ext
15787LIBS=$ac_check_lib_save_LIBS
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15790$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15791if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15792  cat >>confdefs.h <<_ACEOF
15793#define HAVE_LIBNSL 1
15794_ACEOF
15795
15796  LIBS="-lnsl $LIBS"
15797
15798fi
15799
15800fi
15801
15802if test "x$ac_cv_lib_nsl_gethostbyname" != "xyes" && test "x$ac_cv_func_gethostbyname" != "xyes" ; then
15803  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15804if test "x$ac_cv_func_gethostbyname" = xyes; then :
15805
15806else
15807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
15808$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
15809if ${ac_cv_lib_socket_gethostbyname+:} false; then :
15810  $as_echo_n "(cached) " >&6
15811else
15812  ac_check_lib_save_LIBS=$LIBS
15813LIBS="-lsocket  $LIBS"
15814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815/* end confdefs.h.  */
15816
15817/* Override any GCC internal prototype to avoid an error.
15818   Use char because int might match the return type of a GCC
15819   builtin and then its argument prototype would still apply.  */
15820#ifdef __cplusplus
15821extern "C"
15822#endif
15823char gethostbyname ();
15824int
15825main ()
15826{
15827return gethostbyname ();
15828  ;
15829  return 0;
15830}
15831_ACEOF
15832if ac_fn_c_try_link "$LINENO"; then :
15833  ac_cv_lib_socket_gethostbyname=yes
15834else
15835  ac_cv_lib_socket_gethostbyname=no
15836fi
15837rm -f core conftest.err conftest.$ac_objext \
15838    conftest$ac_exeext conftest.$ac_ext
15839LIBS=$ac_check_lib_save_LIBS
15840fi
15841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
15842$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
15843if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
15844  cat >>confdefs.h <<_ACEOF
15845#define HAVE_LIBSOCKET 1
15846_ACEOF
15847
15848  LIBS="-lsocket $LIBS"
15849
15850fi
15851
15852fi
15853
15854fi
15855if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname" ; then
15856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can include libnsl + libsocket" >&5
15857$as_echo_n "checking if we can include libnsl + libsocket... " >&6; }
15858  LIBS="-lnsl -lsocket $LIBS"
15859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h.  */
15861
15862int
15863main ()
15864{
15865(void) gethostbyname
15866  ;
15867  return 0;
15868}
15869_ACEOF
15870if ac_fn_c_try_link "$LINENO"; then :
15871  my_ac_link_result=yes
15872else
15873  my_ac_link_result=no
15874fi
15875rm -f core conftest.err conftest.$ac_objext \
15876    conftest$ac_exeext conftest.$ac_ext
15877  if test "$my_ac_link_result" = "no" ; then
15878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure" >&5
15879$as_echo "failure" >&6; }
15880    as_fn_error $? "unable to use gethostbyname()" "$LINENO" 5
15881  else
15882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: success" >&5
15883$as_echo "success" >&6; }
15884  fi
15885fi
15886
15887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
15888$as_echo_n "checking for library containing inet_ntop... " >&6; }
15889if ${ac_cv_search_inet_ntop+:} false; then :
15890  $as_echo_n "(cached) " >&6
15891else
15892  ac_func_search_save_LIBS=$LIBS
15893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894/* end confdefs.h.  */
15895
15896/* Override any GCC internal prototype to avoid an error.
15897   Use char because int might match the return type of a GCC
15898   builtin and then its argument prototype would still apply.  */
15899#ifdef __cplusplus
15900extern "C"
15901#endif
15902char inet_ntop ();
15903int
15904main ()
15905{
15906return inet_ntop ();
15907  ;
15908  return 0;
15909}
15910_ACEOF
15911for ac_lib in '' nsl; do
15912  if test -z "$ac_lib"; then
15913    ac_res="none required"
15914  else
15915    ac_res=-l$ac_lib
15916    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15917  fi
15918  if ac_fn_c_try_link "$LINENO"; then :
15919  ac_cv_search_inet_ntop=$ac_res
15920fi
15921rm -f core conftest.err conftest.$ac_objext \
15922    conftest$ac_exeext
15923  if ${ac_cv_search_inet_ntop+:} false; then :
15924  break
15925fi
15926done
15927if ${ac_cv_search_inet_ntop+:} false; then :
15928
15929else
15930  ac_cv_search_inet_ntop=no
15931fi
15932rm conftest.$ac_ext
15933LIBS=$ac_func_search_save_LIBS
15934fi
15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
15936$as_echo "$ac_cv_search_inet_ntop" >&6; }
15937ac_res=$ac_cv_search_inet_ntop
15938if test "$ac_res" != no; then :
15939  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15940
15941
15942$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
15943
15944fi
15945
15946
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15948$as_echo_n "checking for library containing inet_pton... " >&6; }
15949if ${ac_cv_search_inet_pton+:} false; then :
15950  $as_echo_n "(cached) " >&6
15951else
15952  ac_func_search_save_LIBS=$LIBS
15953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954/* end confdefs.h.  */
15955
15956/* Override any GCC internal prototype to avoid an error.
15957   Use char because int might match the return type of a GCC
15958   builtin and then its argument prototype would still apply.  */
15959#ifdef __cplusplus
15960extern "C"
15961#endif
15962char inet_pton ();
15963int
15964main ()
15965{
15966return inet_pton ();
15967  ;
15968  return 0;
15969}
15970_ACEOF
15971for ac_lib in '' nsl; do
15972  if test -z "$ac_lib"; then
15973    ac_res="none required"
15974  else
15975    ac_res=-l$ac_lib
15976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15977  fi
15978  if ac_fn_c_try_link "$LINENO"; then :
15979  ac_cv_search_inet_pton=$ac_res
15980fi
15981rm -f core conftest.err conftest.$ac_objext \
15982    conftest$ac_exeext
15983  if ${ac_cv_search_inet_pton+:} false; then :
15984  break
15985fi
15986done
15987if ${ac_cv_search_inet_pton+:} false; then :
15988
15989else
15990  ac_cv_search_inet_pton=no
15991fi
15992rm conftest.$ac_ext
15993LIBS=$ac_func_search_save_LIBS
15994fi
15995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15996$as_echo "$ac_cv_search_inet_pton" >&6; }
15997ac_res=$ac_cv_search_inet_pton
15998if test "$ac_res" != no; then :
15999  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16000
16001
16002$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
16003
16004fi
16005
16006
16007# windows has different names for a few basic things
16008if test "x-$ac_cv_func_getpid" != "x-yes" -a "x-$ac_cv_func__getpid" = "x-yes" ; then
16009
16010$as_echo "#define getpid _getpid" >>confdefs.h
16011
16012fi
16013
16014if test "x-$ac_cv_func_sleep" != "x-yes" -a "x-$ac_cv_func_Sleep" = "x-yes" ; then
16015
16016$as_echo "#define sleep Sleep" >>confdefs.h
16017
16018fi
16019
16020if test "x-$ac_cv_func_strcasecmp" != "x-yes" -a "x-$ac_cv_func_stricmp" = "x-yes" ; then
16021
16022$as_echo "#define strcasecmp stricmp" >>confdefs.h
16023
16024fi
16025
16026if test "x-$ac_cv_func_strncasecmp" != "x-yes" -a "x-$ac_cv_func_strnicmp" = "x-yes" ; then
16027
16028$as_echo "#define strncasecmp strnicmp" >>confdefs.h
16029
16030fi
16031
16032# winsock substitutions
16033if test "x-$ac_cv_func_close" != "x-yes" ; then
16034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closesocket" >&5
16035$as_echo_n "checking for closesocket... " >&6; }
16036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h.  */
16038#include <winsock2.h>
16039int
16040main ()
16041{
16042closesocket(0)
16043  ;
16044  return 0;
16045}
16046_ACEOF
16047if ac_fn_c_try_link "$LINENO"; then :
16048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16049$as_echo "yes" >&6; }
16050
16051$as_echo "#define close closesocket" >>confdefs.h
16052
16053else
16054
16055$as_echo "#define HAVE_CLOSE 1" >>confdefs.h
16056
16057                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16058$as_echo "no" >&6; }
16059fi
16060rm -f core conftest.err conftest.$ac_objext \
16061    conftest$ac_exeext conftest.$ac_ext
16062fi
16063
16064if test "x-$ac_cv_func_ioctl" != "x-yes" ; then
16065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
16066$as_echo_n "checking for ioctlsocket... " >&6; }
16067    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068/* end confdefs.h.  */
16069#include <winsock2.h>
16070int
16071main ()
16072{
16073ioctlsocket(0,0,0)
16074  ;
16075  return 0;
16076}
16077_ACEOF
16078if ac_fn_c_try_link "$LINENO"; then :
16079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16080$as_echo "yes" >&6; }
16081
16082$as_echo "#define ioctl ioctlsocket" >>confdefs.h
16083
16084else
16085
16086$as_echo "#define HAVE_IOCTL 1" >>confdefs.h
16087
16088                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089$as_echo "no" >&6; }
16090fi
16091rm -f core conftest.err conftest.$ac_objext \
16092    conftest$ac_exeext conftest.$ac_ext
16093fi
16094
16095# res_query has been seen in libc, libbind and libresolv
16096if test "x-$ac_cv_header_resolv_h" = "x-yes" ; then
16097    for ac_func in res_query
16098do :
16099  ac_fn_c_check_func "$LINENO" "res_query" "ac_cv_func_res_query"
16100if test "x$ac_cv_func_res_query" = xyes; then :
16101  cat >>confdefs.h <<_ACEOF
16102#define HAVE_RES_QUERY 1
16103_ACEOF
16104
16105fi
16106done
16107
16108    if test "x-$ac_cv_func_res_query" = "x-yes" ; then
16109        have_res_query=yes
16110    else
16111        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
16112$as_echo_n "checking for res_query in -lresolv... " >&6; }
16113if ${ac_cv_lib_resolv_res_query+:} false; then :
16114  $as_echo_n "(cached) " >&6
16115else
16116  ac_check_lib_save_LIBS=$LIBS
16117LIBS="-lresolv  $LIBS"
16118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119/* end confdefs.h.  */
16120
16121/* Override any GCC internal prototype to avoid an error.
16122   Use char because int might match the return type of a GCC
16123   builtin and then its argument prototype would still apply.  */
16124#ifdef __cplusplus
16125extern "C"
16126#endif
16127char res_query ();
16128int
16129main ()
16130{
16131return res_query ();
16132  ;
16133  return 0;
16134}
16135_ACEOF
16136if ac_fn_c_try_link "$LINENO"; then :
16137  ac_cv_lib_resolv_res_query=yes
16138else
16139  ac_cv_lib_resolv_res_query=no
16140fi
16141rm -f core conftest.err conftest.$ac_objext \
16142    conftest$ac_exeext conftest.$ac_ext
16143LIBS=$ac_check_lib_save_LIBS
16144fi
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
16146$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
16147if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
16148  cat >>confdefs.h <<_ACEOF
16149#define HAVE_LIBRESOLV 1
16150_ACEOF
16151
16152  LIBS="-lresolv $LIBS"
16153
16154fi
16155
16156        if test "x-$ac_cv_lib_resolv_res_query" = "x-yes" ; then
16157            have_res_query=yes
16158        else
16159            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lbind" >&5
16160$as_echo_n "checking for res_query in -lbind... " >&6; }
16161if ${ac_cv_lib_bind_res_query+:} false; then :
16162  $as_echo_n "(cached) " >&6
16163else
16164  ac_check_lib_save_LIBS=$LIBS
16165LIBS="-lbind  $LIBS"
16166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167/* end confdefs.h.  */
16168
16169/* Override any GCC internal prototype to avoid an error.
16170   Use char because int might match the return type of a GCC
16171   builtin and then its argument prototype would still apply.  */
16172#ifdef __cplusplus
16173extern "C"
16174#endif
16175char res_query ();
16176int
16177main ()
16178{
16179return res_query ();
16180  ;
16181  return 0;
16182}
16183_ACEOF
16184if ac_fn_c_try_link "$LINENO"; then :
16185  ac_cv_lib_bind_res_query=yes
16186else
16187  ac_cv_lib_bind_res_query=no
16188fi
16189rm -f core conftest.err conftest.$ac_objext \
16190    conftest$ac_exeext conftest.$ac_ext
16191LIBS=$ac_check_lib_save_LIBS
16192fi
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_query" >&5
16194$as_echo "$ac_cv_lib_bind_res_query" >&6; }
16195if test "x$ac_cv_lib_bind_res_query" = xyes; then :
16196  cat >>confdefs.h <<_ACEOF
16197#define HAVE_LIBBIND 1
16198_ACEOF
16199
16200  LIBS="-lbind $LIBS"
16201
16202fi
16203
16204            if test "x-$ac_cv_lib_bind_res_query" = "x-yes" ; then
16205                have_res_query=yes
16206            else
16207                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv (alternate version)" >&5
16208$as_echo_n "checking for res_query in -lresolv (alternate version)... " >&6; }
16209                save_libs="$LIBS"
16210                LIBS="-lresolv $LIBS"
16211                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212/* end confdefs.h.  */
16213#include <resolv.h>
16214int
16215main ()
16216{
16217res_query(0,0,0,0,0)
16218  ;
16219  return 0;
16220}
16221_ACEOF
16222if ac_fn_c_try_link "$LINENO"; then :
16223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16224$as_echo "yes" >&6; }
16225                                have_res_query=yes
16226else
16227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228$as_echo "no" >&6; }
16229                                LIBS="$save_libs"
16230fi
16231rm -f core conftest.err conftest.$ac_objext \
16232    conftest$ac_exeext conftest.$ac_ext
16233            fi
16234        fi
16235    fi
16236fi
16237# windows calls it DnsQuery
16238if test "x-$ac_cv_header_windns_h" = "x-yes" ; then
16239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DnsQuery in -ldnsapi" >&5
16240$as_echo_n "checking for DnsQuery in -ldnsapi... " >&6; }
16241    save_libs="$LIBS"
16242    LIBS="-ldnsapi $LIBS"
16243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245#include <windows.h>
16246                                      #include <windns.h>
16247int
16248main ()
16249{
16250DnsQuery(0,0,0,0,0,0)
16251  ;
16252  return 0;
16253}
16254_ACEOF
16255if ac_fn_c_try_link "$LINENO"; then :
16256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16257$as_echo "yes" >&6; }
16258                    have_dnsquery=yes
16259else
16260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261$as_echo "no" >&6; }
16262                    LIBS="$save_libs"
16263fi
16264rm -f core conftest.err conftest.$ac_objext \
16265    conftest$ac_exeext conftest.$ac_ext
16266fi
16267if test "x-$have_res_query" = "x-yes" ; then
16268
16269$as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
16270
16271elif test "x-$have_dnsquery" = "x-yes" ; then
16272
16273$as_echo "#define HAVE_DNSQUERY 1" >>confdefs.h
16274
16275else
16276    as_fn_error $? "no DNS resolver interface (res_query or DnsQuery) found" "$LINENO" 5
16277fi
16278
16279# syslog
16280if test "x-$ac_cv_header_syslog_h" = "x-yes" ; then
16281    for ac_func in syslog vsyslog
16282do :
16283  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16285if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16286  cat >>confdefs.h <<_ACEOF
16287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16288_ACEOF
16289
16290fi
16291done
16292
16293fi
16294
16295if test "x-$ac_cv_header_windows_h" = "x-yes" ; then
16296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ReportEvent" >&5
16297$as_echo_n "checking for ReportEvent... " >&6; }
16298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h.  */
16300#include <windows.h>
16301int
16302main ()
16303{
16304ReportEvent(0,0,0,0,0,0,0,0,0)
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_link "$LINENO"; then :
16310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16311$as_echo "yes" >&6; }
16312
16313$as_echo "#define HAVE_REPORTEVENT 1" >>confdefs.h
16314
16315else
16316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317$as_echo "no" >&6; }
16318fi
16319rm -f core conftest.err conftest.$ac_objext \
16320    conftest$ac_exeext conftest.$ac_ext
16321fi
16322
16323# snprintf/vsnprintf don't exist everywhere. additionally, we require
16324# them to gracefully accept NULLs, which is non-standard
16325for ac_func in snprintf vsnprintf
16326do :
16327  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16328ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16329if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16330  cat >>confdefs.h <<_ACEOF
16331#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16332_ACEOF
16333
16334fi
16335done
16336
16337if test "x-$ac_cv_func_snprintf" = "x-yes" ; then
16338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf can handle NULL arguments" >&5
16339$as_echo_n "checking if snprintf can handle NULL arguments... " >&6; }
16340    if test "$cross_compiling" = yes; then :
16341  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16343as_fn_error $? "cannot run test program while cross compiling
16344See \`config.log' for more details" "$LINENO" 5; }
16345else
16346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347/* end confdefs.h.  */
16348#include <stdio.h>
16349                                    #include <signal.h>
16350                                    segv() { exit(1); }
16351                                    main() { char b[10]; signal(SIGSEGV,segv); snprintf(b,10,"%s",NULL); exit(0); }
16352_ACEOF
16353if ac_fn_c_try_run "$LINENO"; then :
16354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16355$as_echo "yes" >&6; }
16356else
16357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
16359
16360$as_echo "#define HAVE_BROKEN_SNPRINTF 1" >>confdefs.h
16361
16362fi
16363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16364  conftest.$ac_objext conftest.beam conftest.$ac_ext
16365fi
16366
16367fi
16368if test "x-$ac_cv_func_vsnprintf" = "x-yes" ; then
16369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf can handle NULL arguments" >&5
16370$as_echo_n "checking if vsnprintf can handle NULL arguments... " >&6; }
16371    if test "$cross_compiling" = yes; then :
16372  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16374as_fn_error $? "cannot run test program while cross compiling
16375See \`config.log' for more details" "$LINENO" 5; }
16376else
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379#include <stdio.h>
16380                                    #include <signal.h>
16381                                    #include <stdarg.h>
16382                                    segv() { exit(1); }
16383                                    expand(char *f,...) { va_list ap; char b[10]; va_start(ap,f); vsnprintf(b,10,f,ap); va_end(ap); }
16384                                    main() { char b[10]; signal(SIGSEGV,segv); expand("%s", NULL); exit(0); }
16385_ACEOF
16386if ac_fn_c_try_run "$LINENO"; then :
16387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16388$as_echo "yes" >&6; }
16389else
16390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391$as_echo "no" >&6; }
16392
16393$as_echo "#define HAVE_BROKEN_VSNPRINTF 1" >>confdefs.h
16394
16395fi
16396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16397  conftest.$ac_objext conftest.beam conftest.$ac_ext
16398fi
16399
16400fi
16401
16402   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
16403#include <sys/socket.h>
16404"
16405if test "x$ac_cv_type_socklen_t" = xyes; then :
16406
16407else
16408
16409      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16410$as_echo_n "checking for socklen_t equivalent... " >&6; }
16411      if ${ac_cv_socklen_t_equiv+:} false; then :
16412  $as_echo_n "(cached) " >&6
16413else
16414
16415         # Systems have either "struct sockaddr *" or
16416         # "void *" as the second argument to getpeername
16417         ac_cv_socklen_t_equiv=
16418         for arg2 in "struct sockaddr" void; do
16419            for t in int size_t unsigned long "unsigned long"; do
16420               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h.  */
16422
16423                  #include <sys/types.h>
16424                  #include <sys/socket.h>
16425
16426                  int getpeername (int, $arg2 *, $t *);
16427
16428int
16429main ()
16430{
16431
16432                  $t len;
16433                  getpeername(0,0,&len);
16434
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_compile "$LINENO"; then :
16440
16441                  ac_cv_socklen_t_equiv="$t"
16442                  break
16443
16444fi
16445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446            done
16447         done
16448
16449         if test "x$ac_cv_socklen_t_equiv" = x; then
16450            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16451         fi
16452
16453fi
16454
16455      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t_equiv" >&5
16456$as_echo "$ac_cv_socklen_t_equiv" >&6; }
16457
16458cat >>confdefs.h <<_ACEOF
16459#define socklen_t $ac_cv_socklen_t_equiv
16460_ACEOF
16461
16462fi
16463
16464
16465#
16466# Checks for libraries.
16467
16468# Expat
16469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
16470$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
16471if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
16472  $as_echo_n "(cached) " >&6
16473else
16474  ac_check_lib_save_LIBS=$LIBS
16475LIBS="-lexpat  $LIBS"
16476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477/* end confdefs.h.  */
16478
16479/* Override any GCC internal prototype to avoid an error.
16480   Use char because int might match the return type of a GCC
16481   builtin and then its argument prototype would still apply.  */
16482#ifdef __cplusplus
16483extern "C"
16484#endif
16485char XML_ParserCreate ();
16486int
16487main ()
16488{
16489return XML_ParserCreate ();
16490  ;
16491  return 0;
16492}
16493_ACEOF
16494if ac_fn_c_try_link "$LINENO"; then :
16495  ac_cv_lib_expat_XML_ParserCreate=yes
16496else
16497  ac_cv_lib_expat_XML_ParserCreate=no
16498fi
16499rm -f core conftest.err conftest.$ac_objext \
16500    conftest$ac_exeext conftest.$ac_ext
16501LIBS=$ac_check_lib_save_LIBS
16502fi
16503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
16504$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
16505if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
16506  cat >>confdefs.h <<_ACEOF
16507#define HAVE_LIBEXPAT 1
16508_ACEOF
16509
16510  LIBS="-lexpat $LIBS"
16511
16512fi
16513
16514if test "x-$ac_cv_lib_expat_XML_ParserCreate" != "x-yes" ; then
16515    as_fn_error $? "Expat not found" "$LINENO" 5
16516fi
16517
16518# libidn >= 0.3.0
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stringprep_check_version in -lidn" >&5
16520$as_echo_n "checking for stringprep_check_version in -lidn... " >&6; }
16521if ${ac_cv_lib_idn_stringprep_check_version+:} false; then :
16522  $as_echo_n "(cached) " >&6
16523else
16524  ac_check_lib_save_LIBS=$LIBS
16525LIBS="-lidn  $LIBS"
16526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527/* end confdefs.h.  */
16528
16529/* Override any GCC internal prototype to avoid an error.
16530   Use char because int might match the return type of a GCC
16531   builtin and then its argument prototype would still apply.  */
16532#ifdef __cplusplus
16533extern "C"
16534#endif
16535char stringprep_check_version ();
16536int
16537main ()
16538{
16539return stringprep_check_version ();
16540  ;
16541  return 0;
16542}
16543_ACEOF
16544if ac_fn_c_try_link "$LINENO"; then :
16545  ac_cv_lib_idn_stringprep_check_version=yes
16546else
16547  ac_cv_lib_idn_stringprep_check_version=no
16548fi
16549rm -f core conftest.err conftest.$ac_objext \
16550    conftest$ac_exeext conftest.$ac_ext
16551LIBS=$ac_check_lib_save_LIBS
16552fi
16553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_stringprep_check_version" >&5
16554$as_echo "$ac_cv_lib_idn_stringprep_check_version" >&6; }
16555if test "x$ac_cv_lib_idn_stringprep_check_version" = xyes; then :
16556  cat >>confdefs.h <<_ACEOF
16557#define HAVE_LIBIDN 1
16558_ACEOF
16559
16560  LIBS="-lidn $LIBS"
16561
16562fi
16563
16564if test "x-$ac_cv_lib_idn_stringprep_check_version" = "x-yes" ; then
16565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Libidn version >= 0.3.0" >&5
16566$as_echo_n "checking for Libidn version >= 0.3.0... " >&6; }
16567    if test "$cross_compiling" = yes; then :
16568  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16570as_fn_error $? "cannot run test program while cross compiling
16571See \`config.log' for more details" "$LINENO" 5; }
16572else
16573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574/* end confdefs.h.  */
16575#include <stringprep.h>
16576int
16577main ()
16578{
16579return !(stringprep_check_version("0.3.0"))
16580  ;
16581  return 0;
16582}
16583_ACEOF
16584if ac_fn_c_try_run "$LINENO"; then :
16585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16586$as_echo "yes" >&6; }
16587                    have_idn=yes
16588else
16589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590$as_echo "no" >&6; }
16591fi
16592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16593  conftest.$ac_objext conftest.beam conftest.$ac_ext
16594fi
16595
16596fi
16597if test "x-$have_idn" != "x-yes" ; then
16598    as_fn_error $? "Libidn >= 0.3.0 not found" "$LINENO" 5
16599fi
16600
16601# udns
16602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_init in -ludns" >&5
16603$as_echo_n "checking for dns_init in -ludns... " >&6; }
16604if ${ac_cv_lib_udns_dns_init+:} false; then :
16605  $as_echo_n "(cached) " >&6
16606else
16607  ac_check_lib_save_LIBS=$LIBS
16608LIBS="-ludns  $LIBS"
16609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610/* end confdefs.h.  */
16611
16612/* Override any GCC internal prototype to avoid an error.
16613   Use char because int might match the return type of a GCC
16614   builtin and then its argument prototype would still apply.  */
16615#ifdef __cplusplus
16616extern "C"
16617#endif
16618char dns_init ();
16619int
16620main ()
16621{
16622return dns_init ();
16623  ;
16624  return 0;
16625}
16626_ACEOF
16627if ac_fn_c_try_link "$LINENO"; then :
16628  ac_cv_lib_udns_dns_init=yes
16629else
16630  ac_cv_lib_udns_dns_init=no
16631fi
16632rm -f core conftest.err conftest.$ac_objext \
16633    conftest$ac_exeext conftest.$ac_ext
16634LIBS=$ac_check_lib_save_LIBS
16635fi
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udns_dns_init" >&5
16637$as_echo "$ac_cv_lib_udns_dns_init" >&6; }
16638if test "x$ac_cv_lib_udns_dns_init" = xyes; then :
16639  cat >>confdefs.h <<_ACEOF
16640#define HAVE_LIBUDNS 1
16641_ACEOF
16642
16643  LIBS="-ludns $LIBS"
16644
16645fi
16646
16647if test "x-$ac_cv_lib_udns_dns_init" != "x-yes" ; then
16648    as_fn_error $? "UDNS library not found" "$LINENO" 5
16649fi
16650
16651# GnuSASL
16652for ac_header in gsasl.h
16653do :
16654  ac_fn_c_check_header_mongrel "$LINENO" "gsasl.h" "ac_cv_header_gsasl_h" "$ac_includes_default"
16655if test "x$ac_cv_header_gsasl_h" = xyes; then :
16656  cat >>confdefs.h <<_ACEOF
16657#define HAVE_GSASL_H 1
16658_ACEOF
16659
16660fi
16661
16662done
16663
16664if test "x-$ac_cv_header_gsasl_h" = "x-yes" ; then
16665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsasl_check_version in -lgsasl" >&5
16666$as_echo_n "checking for gsasl_check_version in -lgsasl... " >&6; }
16667if ${ac_cv_lib_gsasl_gsasl_check_version+:} false; then :
16668  $as_echo_n "(cached) " >&6
16669else
16670  ac_check_lib_save_LIBS=$LIBS
16671LIBS="-lgsasl  $LIBS"
16672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673/* end confdefs.h.  */
16674
16675/* Override any GCC internal prototype to avoid an error.
16676   Use char because int might match the return type of a GCC
16677   builtin and then its argument prototype would still apply.  */
16678#ifdef __cplusplus
16679extern "C"
16680#endif
16681char gsasl_check_version ();
16682int
16683main ()
16684{
16685return gsasl_check_version ();
16686  ;
16687  return 0;
16688}
16689_ACEOF
16690if ac_fn_c_try_link "$LINENO"; then :
16691  ac_cv_lib_gsasl_gsasl_check_version=yes
16692else
16693  ac_cv_lib_gsasl_gsasl_check_version=no
16694fi
16695rm -f core conftest.err conftest.$ac_objext \
16696    conftest$ac_exeext conftest.$ac_ext
16697LIBS=$ac_check_lib_save_LIBS
16698fi
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsasl_gsasl_check_version" >&5
16700$as_echo "$ac_cv_lib_gsasl_gsasl_check_version" >&6; }
16701if test "x$ac_cv_lib_gsasl_gsasl_check_version" = xyes; then :
16702  cat >>confdefs.h <<_ACEOF
16703#define HAVE_LIBGSASL 1
16704_ACEOF
16705
16706  LIBS="-lgsasl $LIBS"
16707
16708fi
16709
16710fi
16711if test "x-$ac_cv_lib_gsasl_gsasl_check_version" = "x-yes" ; then
16712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuSASL version >= 1.4.0" >&5
16713$as_echo_n "checking for GnuSASL version >= 1.4.0... " >&6; }
16714    if test "$cross_compiling" = yes; then :
16715  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16717as_fn_error $? "cannot run test program while cross compiling
16718See \`config.log' for more details" "$LINENO" 5; }
16719else
16720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h.  */
16722#include <gsasl.h>
16723int
16724main ()
16725{
16726return !(gsasl_check_version("1.4.0"))
16727  ;
16728  return 0;
16729}
16730_ACEOF
16731if ac_fn_c_try_run "$LINENO"; then :
16732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16733$as_echo "yes" >&6; }
16734                    have_gsasl=yes
16735else
16736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737$as_echo "no" >&6; }
16738fi
16739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16740  conftest.$ac_objext conftest.beam conftest.$ac_ext
16741fi
16742
16743fi
16744
16745if test "x-$have_gsasl" != "x-yes" ; then
16746    as_fn_error $? "GnuSASL >= 1.4.0 not found" "$LINENO" 5
16747fi
16748
16749#
16750# optional libs
16751
16752# OpenSSL >= 1.0.2
16753# Check whether --enable-ssl was given.
16754if test "${enable_ssl+set}" = set; then :
16755  enableval=$enable_ssl; want_ssl=$enableval
16756else
16757  want_ssl=yes
16758fi
16759
16760
16761
16762
16763
16764
16765
16766
16767if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16768	if test -n "$ac_tool_prefix"; then
16769  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16770set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772$as_echo_n "checking for $ac_word... " >&6; }
16773if ${ac_cv_path_PKG_CONFIG+:} false; then :
16774  $as_echo_n "(cached) " >&6
16775else
16776  case $PKG_CONFIG in
16777  [\\/]* | ?:[\\/]*)
16778  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16779  ;;
16780  *)
16781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782for as_dir in $PATH
16783do
16784  IFS=$as_save_IFS
16785  test -z "$as_dir" && as_dir=.
16786    for ac_exec_ext in '' $ac_executable_extensions; do
16787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16788    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16790    break 2
16791  fi
16792done
16793  done
16794IFS=$as_save_IFS
16795
16796  ;;
16797esac
16798fi
16799PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16800if test -n "$PKG_CONFIG"; then
16801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16802$as_echo "$PKG_CONFIG" >&6; }
16803else
16804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805$as_echo "no" >&6; }
16806fi
16807
16808
16809fi
16810if test -z "$ac_cv_path_PKG_CONFIG"; then
16811  ac_pt_PKG_CONFIG=$PKG_CONFIG
16812  # Extract the first word of "pkg-config", so it can be a program name with args.
16813set dummy pkg-config; ac_word=$2
16814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16815$as_echo_n "checking for $ac_word... " >&6; }
16816if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16817  $as_echo_n "(cached) " >&6
16818else
16819  case $ac_pt_PKG_CONFIG in
16820  [\\/]* | ?:[\\/]*)
16821  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16822  ;;
16823  *)
16824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16825for as_dir in $PATH
16826do
16827  IFS=$as_save_IFS
16828  test -z "$as_dir" && as_dir=.
16829    for ac_exec_ext in '' $ac_executable_extensions; do
16830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16831    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16833    break 2
16834  fi
16835done
16836  done
16837IFS=$as_save_IFS
16838
16839  ;;
16840esac
16841fi
16842ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16843if test -n "$ac_pt_PKG_CONFIG"; then
16844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16845$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16846else
16847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16848$as_echo "no" >&6; }
16849fi
16850
16851  if test "x$ac_pt_PKG_CONFIG" = x; then
16852    PKG_CONFIG=""
16853  else
16854    case $cross_compiling:$ac_tool_warned in
16855yes:)
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16858ac_tool_warned=yes ;;
16859esac
16860    PKG_CONFIG=$ac_pt_PKG_CONFIG
16861  fi
16862else
16863  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16864fi
16865
16866fi
16867if test -n "$PKG_CONFIG"; then
16868	_pkg_min_version=0.9.0
16869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16870$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16871	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16873$as_echo "yes" >&6; }
16874	else
16875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876$as_echo "no" >&6; }
16877		PKG_CONFIG=""
16878	fi
16879fi
16880if test "x$want_ssl" = "xyes"; then :
16881
16882
16883pkg_failed=no
16884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16885$as_echo_n "checking for SSL... " >&6; }
16886
16887if test -n "$SSL_CFLAGS"; then
16888    pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
16889 elif test -n "$PKG_CONFIG"; then
16890    if test -n "$PKG_CONFIG" && \
16891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5
16892  ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5
16893  ac_status=$?
16894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16895  test $ac_status = 0; }; then
16896  pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.2" 2>/dev/null`
16897		      test "x$?" != "x0" && pkg_failed=yes
16898else
16899  pkg_failed=yes
16900fi
16901 else
16902    pkg_failed=untried
16903fi
16904if test -n "$SSL_LIBS"; then
16905    pkg_cv_SSL_LIBS="$SSL_LIBS"
16906 elif test -n "$PKG_CONFIG"; then
16907    if test -n "$PKG_CONFIG" && \
16908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5
16909  ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5
16910  ac_status=$?
16911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16912  test $ac_status = 0; }; then
16913  pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.2" 2>/dev/null`
16914		      test "x$?" != "x0" && pkg_failed=yes
16915else
16916  pkg_failed=yes
16917fi
16918 else
16919    pkg_failed=untried
16920fi
16921
16922
16923
16924if test $pkg_failed = yes; then
16925   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926$as_echo "no" >&6; }
16927
16928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16929        _pkg_short_errors_supported=yes
16930else
16931        _pkg_short_errors_supported=no
16932fi
16933        if test $_pkg_short_errors_supported = yes; then
16934	        SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.2" 2>&1`
16935        else
16936	        SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.2" 2>&1`
16937        fi
16938	# Put the nasty error message in config.log where it belongs
16939	echo "$SSL_PKG_ERRORS" >&5
16940
16941	as_fn_error $? "Package requirements (openssl >= 1.0.2) were not met:
16942
16943$SSL_PKG_ERRORS
16944
16945Consider adjusting the PKG_CONFIG_PATH environment variable if you
16946installed software in a non-standard prefix.
16947
16948Alternatively, you may set the environment variables SSL_CFLAGS
16949and SSL_LIBS to avoid the need to call pkg-config.
16950See the pkg-config man page for more details." "$LINENO" 5
16951elif test $pkg_failed = untried; then
16952     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953$as_echo "no" >&6; }
16954	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16956as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16957is in your PATH or set the PKG_CONFIG environment variable to the full
16958path to pkg-config.
16959
16960Alternatively, you may set the environment variables SSL_CFLAGS
16961and SSL_LIBS to avoid the need to call pkg-config.
16962See the pkg-config man page for more details.
16963
16964To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16965See \`config.log' for more details" "$LINENO" 5; }
16966else
16967	SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
16968	SSL_LIBS=$pkg_cv_SSL_LIBS
16969        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16970$as_echo "yes" >&6; }
16971	have_ssl="yes"
16972
16973$as_echo "#define HAVE_SSL 1" >>confdefs.h
16974
16975
16976fi
16977
16978fi
16979 if test "x$have_ssl" = "xyes"; then
16980  HAVE_SSL_TRUE=
16981  HAVE_SSL_FALSE='#'
16982else
16983  HAVE_SSL_TRUE='#'
16984  HAVE_SSL_FALSE=
16985fi
16986
16987
16988_cppflags=$CPPFLAGS
16989_ldflags=$LDFLAGS
16990
16991# Check whether --with-zlib was given.
16992if test "${with_zlib+set}" = set; then :
16993  withval=$with_zlib; OPT_ZLIB="$withval"
16994fi
16995
16996
16997if test "$OPT_ZLIB" = "no" ; then
16998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
16999$as_echo "$as_me: WARNING: zlib disabled" >&2;}
17000else
17001  if test "$OPT_ZLIB" = "yes" ; then
17002     OPT_ZLIB=""
17003  fi
17004
17005  if test -z "$OPT_ZLIB" ; then
17006
17007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17008$as_echo_n "checking for inflateEnd in -lz... " >&6; }
17009if ${ac_cv_lib_z_inflateEnd+:} false; then :
17010  $as_echo_n "(cached) " >&6
17011else
17012  ac_check_lib_save_LIBS=$LIBS
17013LIBS="-lz  $LIBS"
17014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015/* end confdefs.h.  */
17016
17017/* Override any GCC internal prototype to avoid an error.
17018   Use char because int might match the return type of a GCC
17019   builtin and then its argument prototype would still apply.  */
17020#ifdef __cplusplus
17021extern "C"
17022#endif
17023char inflateEnd ();
17024int
17025main ()
17026{
17027return inflateEnd ();
17028  ;
17029  return 0;
17030}
17031_ACEOF
17032if ac_fn_c_try_link "$LINENO"; then :
17033  ac_cv_lib_z_inflateEnd=yes
17034else
17035  ac_cv_lib_z_inflateEnd=no
17036fi
17037rm -f core conftest.err conftest.$ac_objext \
17038    conftest$ac_exeext conftest.$ac_ext
17039LIBS=$ac_check_lib_save_LIBS
17040fi
17041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17042$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17043if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17044                     HAVE_LIBZ="1"
17045else
17046                     OPT_ZLIB="/usr/local"
17047fi
17048
17049
17050  fi
17051
17052    if test -n "$OPT_ZLIB"; then
17053     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
17054     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
17055  fi
17056
17057  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17058if test "x$ac_cv_header_zlib_h" = xyes; then :
17059
17060        HAVE_ZLIB_H="1"
17061        if test "$HAVE_LIBZ" != "1"; then
17062      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
17063$as_echo_n "checking for gzread in -lz... " >&6; }
17064if ${ac_cv_lib_z_gzread+:} false; then :
17065  $as_echo_n "(cached) " >&6
17066else
17067  ac_check_lib_save_LIBS=$LIBS
17068LIBS="-lz  $LIBS"
17069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070/* end confdefs.h.  */
17071
17072/* Override any GCC internal prototype to avoid an error.
17073   Use char because int might match the return type of a GCC
17074   builtin and then its argument prototype would still apply.  */
17075#ifdef __cplusplus
17076extern "C"
17077#endif
17078char gzread ();
17079int
17080main ()
17081{
17082return gzread ();
17083  ;
17084  return 0;
17085}
17086_ACEOF
17087if ac_fn_c_try_link "$LINENO"; then :
17088  ac_cv_lib_z_gzread=yes
17089else
17090  ac_cv_lib_z_gzread=no
17091fi
17092rm -f core conftest.err conftest.$ac_objext \
17093    conftest$ac_exeext conftest.$ac_ext
17094LIBS=$ac_check_lib_save_LIBS
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
17097$as_echo "$ac_cv_lib_z_gzread" >&6; }
17098if test "x$ac_cv_lib_z_gzread" = xyes; then :
17099
17100                                      HAVE_LIBZ="1"
17101
17102else
17103   CPPFLAGS=$_cppflags
17104                   LDFLAGS=$_ldflags
17105fi
17106
17107    fi
17108
17109else
17110
17111            CPPFLAGS=$_cppflags
17112      LDFLAGS=$_ldflags
17113
17114fi
17115
17116
17117
17118  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
17119  then
17120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
17121$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
17122  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
17123  then
17124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
17125$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
17126  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
17127  then
17128
17129
17130$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17131
17132
17133$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
17134
17135    LIBS="$LIBS -lz"
17136  fi
17137fi
17138 if test "$HAVE_LIBZ" = "1"; then
17139  HAVE_LIBZ_TRUE=
17140  HAVE_LIBZ_FALSE='#'
17141else
17142  HAVE_LIBZ_TRUE='#'
17143  HAVE_LIBZ_FALSE=
17144fi
17145
17146
17147# MySQL
17148# Check whether --enable-mysql was given.
17149if test "${enable_mysql+set}" = set; then :
17150  enableval=$enable_mysql;  enable_mysql="$enableval" have_mysql=no  MYSQL_PREFIX="$enableval"
17151else
17152   enable_mysql=no           have_mysql=no
17153fi
17154
17155
17156if test "x-$enable_mysql" != "x-no" ; then
17157	if test "$MYSQL_PREFIX" = "yes" ; then
17158		MYSQL_PREFIX=/usr
17159	fi
17160
17161	# Extract the first word of "mysql_config", so it can be a program name with args.
17162set dummy mysql_config; ac_word=$2
17163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17164$as_echo_n "checking for $ac_word... " >&6; }
17165if ${ac_cv_path_mysqlconfig+:} false; then :
17166  $as_echo_n "(cached) " >&6
17167else
17168  case $mysqlconfig in
17169  [\\/]* | ?:[\\/]*)
17170  ac_cv_path_mysqlconfig="$mysqlconfig" # Let the user override the test with a path.
17171  ;;
17172  *)
17173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17174as_dummy="$MYSQL_PREFIX/bin:$PATH"
17175for as_dir in $as_dummy
17176do
17177  IFS=$as_save_IFS
17178  test -z "$as_dir" && as_dir=.
17179    for ac_exec_ext in '' $ac_executable_extensions; do
17180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17181    ac_cv_path_mysqlconfig="$as_dir/$ac_word$ac_exec_ext"
17182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17183    break 2
17184  fi
17185done
17186  done
17187IFS=$as_save_IFS
17188
17189  ;;
17190esac
17191fi
17192mysqlconfig=$ac_cv_path_mysqlconfig
17193if test -n "$mysqlconfig"; then
17194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mysqlconfig" >&5
17195$as_echo "$mysqlconfig" >&6; }
17196else
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198$as_echo "no" >&6; }
17199fi
17200
17201
17202	if test  -z "$mysqlconfig"
17203	then
17204		as_fn_error $? "mysql_config executable not found: MySQL 5.0 or greater is required." "$LINENO" 5
17205	else
17206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL libraries" >&5
17207$as_echo_n "checking MySQL libraries... " >&6; }
17208		MYSQL_LIBS=`${mysqlconfig} --libs`
17209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MYSQL_LIBS\"" >&5
17210$as_echo "\"$MYSQL_LIBS\"" >&6; }
17211
17212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql includes" >&5
17213$as_echo_n "checking mysql includes... " >&6; }
17214		MYSQL_CFLAGS=`${mysqlconfig} --cflags`
17215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MYSQL_CFLAGS\"" >&5
17216$as_echo "\"$MYSQL_CFLAGS\"" >&6; }
17217
17218		MYSQL_VERSION=`${mysqlconfig} --version`
17219		MYSQL_VERSION_MAJOR=${MYSQL_VERSION%%.*}
17220		if test $MYSQL_VERSION_MAJOR -lt 5 ; then
17221			as_fn_error $? "MySQL version 5.0 or greater required." "$LINENO" 5
17222		fi
17223
17224		have_mysql=yes
17225
17226$as_echo "#define STORAGE_MYSQL 1" >>confdefs.h
17227
17228	fi
17229fi
17230
17231
17232 if test "x-$have_mysql" = "x-yes"; then
17233  STORAGE_MYSQL_TRUE=
17234  STORAGE_MYSQL_FALSE='#'
17235else
17236  STORAGE_MYSQL_TRUE='#'
17237  STORAGE_MYSQL_FALSE=
17238fi
17239
17240
17241# PostgreSQL
17242# Check whether --enable-pgsql was given.
17243if test "${enable_pgsql+set}" = set; then :
17244  enableval=$enable_pgsql;  enable_pgsql="$enableval" have_pgsql=no  PGSQL_PREFIX="$enableval"
17245else
17246   enable_pgsql=no           have_pgsql=no
17247fi
17248
17249if test "x-$enable_pgsql" != "x-no" ; then
17250	if test "$PGSQL_PREFIX" = "yes" ; then
17251		PGSQL_PREFIX=/usr
17252	fi
17253
17254	# Extract the first word of "pg_config", so it can be a program name with args.
17255set dummy pg_config; ac_word=$2
17256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17257$as_echo_n "checking for $ac_word... " >&6; }
17258if ${ac_cv_path_pgconfig+:} false; then :
17259  $as_echo_n "(cached) " >&6
17260else
17261  case $pgconfig in
17262  [\\/]* | ?:[\\/]*)
17263  ac_cv_path_pgconfig="$pgconfig" # Let the user override the test with a path.
17264  ;;
17265  *)
17266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17267as_dummy="$PGSQL_PREFIX/bin:$PATH"
17268for as_dir in $as_dummy
17269do
17270  IFS=$as_save_IFS
17271  test -z "$as_dir" && as_dir=.
17272    for ac_exec_ext in '' $ac_executable_extensions; do
17273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17274    ac_cv_path_pgconfig="$as_dir/$ac_word$ac_exec_ext"
17275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17276    break 2
17277  fi
17278done
17279  done
17280IFS=$as_save_IFS
17281
17282  ;;
17283esac
17284fi
17285pgconfig=$ac_cv_path_pgconfig
17286if test -n "$pgconfig"; then
17287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgconfig" >&5
17288$as_echo "$pgconfig" >&6; }
17289else
17290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291$as_echo "no" >&6; }
17292fi
17293
17294
17295	if test  -z "$pgconfig"
17296	then
17297		as_fn_error $? "pg_config executable not found: PostgreSQL 8.0 or greater is required." "$LINENO" 5
17298	else
17299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgresSQL libraries" >&5
17300$as_echo_n "checking PostgresSQL libraries... " >&6; }
17301		PGSQL_LIBDIR=`$pgconfig --libdir`
17302		PGSQL_LIBS="-L$PGSQL_LIBDIR -lpq"
17303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PGSQL_LIBS\"" >&5
17304$as_echo "\"$PGSQL_LIBS\"" >&6; }
17305
17306		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pgsql includes" >&5
17307$as_echo_n "checking pgsql includes... " >&6; }
17308		PGSQL_INCLUDE=`$pgconfig --includedir`
17309		PGSQL_CFLAGS="-I$PGSQL_INCLUDE"
17310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PGSQL_CFLAGS\"" >&5
17311$as_echo "\"$PGSQL_CFLAGS\"" >&6; }
17312
17313		have_pgsql=yes
17314
17315$as_echo "#define STORAGE_POSTGRES 1" >>confdefs.h
17316
17317	fi
17318fi
17319
17320
17321 if test "x-$have_pgsql" = "x-yes"; then
17322  STORAGE_PGSQL_TRUE=
17323  STORAGE_PGSQL_FALSE='#'
17324else
17325  STORAGE_PGSQL_TRUE='#'
17326  STORAGE_PGSQL_FALSE=
17327fi
17328
17329
17330# SQLite 3
17331# Check whether --enable-sqlite was given.
17332if test "${enable_sqlite+set}" = set; then :
17333  enableval=$enable_sqlite; enable_sqlite=$enableval have_sqlite=no
17334else
17335  enable_sqlite=no         have_sqlite=no
17336fi
17337
17338if test "x-$enable_sqlite" = "x-yes" ; then
17339    for ac_header in sqlite3.h
17340do :
17341  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
17342if test "x$ac_cv_header_sqlite3_h" = xyes; then :
17343  cat >>confdefs.h <<_ACEOF
17344#define HAVE_SQLITE3_H 1
17345_ACEOF
17346
17347                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
17348$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
17349if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
17350  $as_echo_n "(cached) " >&6
17351else
17352  ac_check_lib_save_LIBS=$LIBS
17353LIBS="-lsqlite3  $LIBS"
17354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355/* end confdefs.h.  */
17356
17357/* Override any GCC internal prototype to avoid an error.
17358   Use char because int might match the return type of a GCC
17359   builtin and then its argument prototype would still apply.  */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363char sqlite3_open ();
17364int
17365main ()
17366{
17367return sqlite3_open ();
17368  ;
17369  return 0;
17370}
17371_ACEOF
17372if ac_fn_c_try_link "$LINENO"; then :
17373  ac_cv_lib_sqlite3_sqlite3_open=yes
17374else
17375  ac_cv_lib_sqlite3_sqlite3_open=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext \
17378    conftest$ac_exeext conftest.$ac_ext
17379LIBS=$ac_check_lib_save_LIBS
17380fi
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
17382$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
17383if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
17384
17385                        have_sqlite=yes
17386                        SQLITE_LIBS="-lsqlite3"
17387
17388$as_echo "#define STORAGE_SQLITE 1" >>confdefs.h
17389
17390
17391fi
17392
17393
17394fi
17395
17396done
17397
17398        if test "x-$have_sqlite" != "x-yes" ; then
17399                as_fn_error $? "SQLite3 support requested, but headers/libraries not found." "$LINENO" 5
17400        fi
17401fi
17402
17403 if test "x-$have_sqlite" = "x-yes"; then
17404  STORAGE_SQLITE_TRUE=
17405  STORAGE_SQLITE_FALSE='#'
17406else
17407  STORAGE_SQLITE_TRUE='#'
17408  STORAGE_SQLITE_FALSE=
17409fi
17410
17411
17412# Berkeley DB
17413_save_libs="$LIBS"
17414# Check whether --enable-db was given.
17415if test "${enable_db+set}" = set; then :
17416  enableval=$enable_db; want_db=$enableval
17417else
17418  want_db=no
17419fi
17420
17421if test "x-$want_db" = "x-yes" ; then
17422    for ac_header in db.h
17423do :
17424  ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
17425if test "x$ac_cv_header_db_h" = xyes; then :
17426  cat >>confdefs.h <<_ACEOF
17427#define HAVE_DB_H 1
17428_ACEOF
17429
17430fi
17431
17432done
17433
17434    if test "x-$ac_cv_header_db_h" = "x-yes" ; then
17435        for lib in db43 db42 db-4.3 db-4.2 db-4.1 db-4 db4 db41 db ; do
17436            if test "xxx$have_db_version" != "xxxyes" ; then
17437                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$lib" >&5
17438$as_echo_n "checking for db_create in -l$lib... " >&6; }
17439                save_libs="$LIBS"
17440                LIBS="-l$lib $LIBS"
17441                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442/* end confdefs.h.  */
17443#include <db.h>
17444int
17445main ()
17446{
17447db_create(0,0,0)
17448  ;
17449  return 0;
17450}
17451_ACEOF
17452if ac_fn_c_try_link "$LINENO"; then :
17453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17454$as_echo "yes" >&6; }
17455                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB version >= 4.1.25" >&5
17456$as_echo_n "checking for Berkeley DB version >= 4.1.25... " >&6; }
17457                                if test "$cross_compiling" = yes; then :
17458  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17460as_fn_error $? "cannot run test program while cross compiling
17461See \`config.log' for more details" "$LINENO" 5; }
17462else
17463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h.  */
17465#include <db.h>
17466int
17467main ()
17468{
17469do {
17470                                                                     int major, minor, patch;
17471                                                                     db_version(&major, &minor, &patch);
17472                                                                     if(major < 4 ||
17473                                                                         (major == 4 && minor < 1) ||
17474                                                                         (major == 4 && minor == 1 && patch < 24) ||
17475                                                                         (int)DB_VERSION_MAJOR != major ||
17476                                                                         (int)DB_VERSION_MINOR != minor)
17477                                                                         return 1;
17478                                                                 } while(0)
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483if ac_fn_c_try_run "$LINENO"; then :
17484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17485$as_echo "yes" >&6; }
17486                                               have_db_version=yes
17487                                               DB_LIBS="-l$lib"
17488else
17489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17490$as_echo "no" >&6; }
17491fi
17492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17493  conftest.$ac_objext conftest.beam conftest.$ac_ext
17494fi
17495
17496else
17497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17498$as_echo "no" >&6; }
17499fi
17500rm -f core conftest.err conftest.$ac_objext \
17501    conftest$ac_exeext conftest.$ac_ext
17502                LIBS="$save_libs"
17503            fi
17504        done
17505    fi
17506    if test "x-$have_db_version" != "x-yes" ; then
17507        as_fn_error $? "Berkeley DB >= 4.1.24 not found" "$LINENO" 5
17508    else
17509
17510$as_echo "#define STORAGE_DB 1" >>confdefs.h
17511
17512    fi
17513fi
17514
17515 if test "x-$have_db_version" = "x-yes"; then
17516  STORAGE_DB_TRUE=
17517  STORAGE_DB_FALSE='#'
17518else
17519  STORAGE_DB_TRUE='#'
17520  STORAGE_DB_FALSE=
17521fi
17522
17523LIBS="$_save_libs"
17524
17525# Oracle
17526
17527# Check whether --with-oracle-home was given.
17528if test "${with_oracle_home+set}" = set; then :
17529  withval=$with_oracle_home;  ac_oracle_home="$withval"
17530fi
17531
17532
17533# Check whether --enable-oracle was given.
17534if test "${enable_oracle+set}" = set; then :
17535  enableval=$enable_oracle; want_oracle=$enableval
17536else
17537  want_oracle=no
17538fi
17539
17540if test "x-$want_oracle" = "x-yes" ; then
17541    for ac_header in oci.h
17542do :
17543  ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default"
17544if test "x$ac_cv_header_oci_h" = xyes; then :
17545  cat >>confdefs.h <<_ACEOF
17546#define HAVE_OCI_H 1
17547_ACEOF
17548
17549fi
17550
17551done
17552
17553    if test "x-$ac_cv_header_oci_h" != "x-yes" ; then
17554       if test -n $ac_oracle_home ; then
17555          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h in $ac_oracle_home" >&5
17556$as_echo_n "checking for oci.h in $ac_oracle_home... " >&6; }
17557                save_cppflags="$CPPFLAGS"
17558                CPPFLAGS="-I$ac_oracle_home/rdbms/demo -I$ac_oracle_home/rdbms/public $CPPFLAGS"
17559                save_libs="$LIBS"
17560                LIBS="-L$ac_oracle_home/lib $LIBS"
17561                save_ldflags="$LDFLAGS"
17562                LDFLAGS="-Wl,-rpath,$ac_oracle_home/lib $LDFLAGS"
17563                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565#include <oci.h>
17566int
17567main ()
17568{
17569
17570  ;
17571  return 0;
17572}
17573_ACEOF
17574if ac_fn_c_try_compile "$LINENO"; then :
17575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576$as_echo "yes" >&6; }
17577
17578$as_echo "#define HAVE_OCI_H /**/" >>confdefs.h
17579
17580                                   ac_cv_header_oci_h=yes
17581else
17582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17583$as_echo "no" >&6; }
17584fi
17585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586                if test "x-$ac_cv_header_oci_h" != "x-yes" ; then
17587                    CPPFLAGS="$save_cppflags"
17588                    LIBS="$save_libs"
17589                    LDFLAGS="$save_ldflags"
17590                fi
17591       fi
17592    fi
17593    if test "x-$ac_cv_header_oci_h" = "x-yes" ; then
17594        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIInitialize in -lclntsh" >&5
17595$as_echo_n "checking for OCIInitialize in -lclntsh... " >&6; }
17596if ${ac_cv_lib_clntsh_OCIInitialize+:} false; then :
17597  $as_echo_n "(cached) " >&6
17598else
17599  ac_check_lib_save_LIBS=$LIBS
17600LIBS="-lclntsh  $LIBS"
17601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h.  */
17603
17604/* Override any GCC internal prototype to avoid an error.
17605   Use char because int might match the return type of a GCC
17606   builtin and then its argument prototype would still apply.  */
17607#ifdef __cplusplus
17608extern "C"
17609#endif
17610char OCIInitialize ();
17611int
17612main ()
17613{
17614return OCIInitialize ();
17615  ;
17616  return 0;
17617}
17618_ACEOF
17619if ac_fn_c_try_link "$LINENO"; then :
17620  ac_cv_lib_clntsh_OCIInitialize=yes
17621else
17622  ac_cv_lib_clntsh_OCIInitialize=no
17623fi
17624rm -f core conftest.err conftest.$ac_objext \
17625    conftest$ac_exeext conftest.$ac_ext
17626LIBS=$ac_check_lib_save_LIBS
17627fi
17628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIInitialize" >&5
17629$as_echo "$ac_cv_lib_clntsh_OCIInitialize" >&6; }
17630if test "x$ac_cv_lib_clntsh_OCIInitialize" = xyes; then :
17631  cat >>confdefs.h <<_ACEOF
17632#define HAVE_LIBCLNTSH 1
17633_ACEOF
17634
17635  LIBS="-lclntsh $LIBS"
17636
17637fi
17638
17639    fi
17640    if test "x-$ac_cv_lib_clntsh_OCIInitialize" != "x-yes" ; then
17641        as_fn_error $? "Oracle client libraries not found" "$LINENO" 5
17642    else
17643        have_oracle="yes"
17644        ORACLE_CPPFLAGS="-I$ac_oracle_home/rdbms/demo -I$ac_oracle_home/rdbms/public"
17645        ORACLE_LIBS="-L$ac_oracle_home/lib"
17646        ORACLE_LDFLAGS="-Wl,-rpath,$ac_oracle_home/lib"
17647
17648$as_echo "#define STORAGE_ORACLE 1" >>confdefs.h
17649
17650    fi
17651fi
17652
17653
17654
17655 if test "x-$have_oracle" = "x-yes"; then
17656  STORAGE_ORACLE_TRUE=
17657  STORAGE_ORACLE_FALSE='#'
17658else
17659  STORAGE_ORACLE_TRUE='#'
17660  STORAGE_ORACLE_FALSE=
17661fi
17662
17663
17664# OpenLDAP
17665# Check whether --enable-ldap was given.
17666if test "${enable_ldap+set}" = set; then :
17667  enableval=$enable_ldap; want_ldap=$enableval
17668else
17669  want_ldap=no
17670fi
17671
17672if test "x-$want_ldap" = "x-yes" ; then
17673    for ac_header in lber.h ldap.h
17674do :
17675  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17676ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17678  cat >>confdefs.h <<_ACEOF
17679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17680_ACEOF
17681
17682fi
17683
17684done
17685
17686    save_libs="$LIBS"
17687    if test "x-$ac_cv_header_ldap_h" = "x-yes" -a "x-$ac_cv_header_lber_h" = "x-yes" ; then
17688        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
17689$as_echo_n "checking for ber_alloc in -llber... " >&6; }
17690if ${ac_cv_lib_lber_ber_alloc+:} false; then :
17691  $as_echo_n "(cached) " >&6
17692else
17693  ac_check_lib_save_LIBS=$LIBS
17694LIBS="-llber  $LIBS"
17695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696/* end confdefs.h.  */
17697
17698/* Override any GCC internal prototype to avoid an error.
17699   Use char because int might match the return type of a GCC
17700   builtin and then its argument prototype would still apply.  */
17701#ifdef __cplusplus
17702extern "C"
17703#endif
17704char ber_alloc ();
17705int
17706main ()
17707{
17708return ber_alloc ();
17709  ;
17710  return 0;
17711}
17712_ACEOF
17713if ac_fn_c_try_link "$LINENO"; then :
17714  ac_cv_lib_lber_ber_alloc=yes
17715else
17716  ac_cv_lib_lber_ber_alloc=no
17717fi
17718rm -f core conftest.err conftest.$ac_objext \
17719    conftest$ac_exeext conftest.$ac_ext
17720LIBS=$ac_check_lib_save_LIBS
17721fi
17722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
17723$as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
17724if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
17725  cat >>confdefs.h <<_ACEOF
17726#define HAVE_LIBLBER 1
17727_ACEOF
17728
17729  LIBS="-llber $LIBS"
17730
17731fi
17732
17733        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
17734$as_echo_n "checking for ldap_init in -lldap... " >&6; }
17735if ${ac_cv_lib_ldap_ldap_init+:} false; then :
17736  $as_echo_n "(cached) " >&6
17737else
17738  ac_check_lib_save_LIBS=$LIBS
17739LIBS="-lldap  $LIBS"
17740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741/* end confdefs.h.  */
17742
17743/* Override any GCC internal prototype to avoid an error.
17744   Use char because int might match the return type of a GCC
17745   builtin and then its argument prototype would still apply.  */
17746#ifdef __cplusplus
17747extern "C"
17748#endif
17749char ldap_init ();
17750int
17751main ()
17752{
17753return ldap_init ();
17754  ;
17755  return 0;
17756}
17757_ACEOF
17758if ac_fn_c_try_link "$LINENO"; then :
17759  ac_cv_lib_ldap_ldap_init=yes
17760else
17761  ac_cv_lib_ldap_ldap_init=no
17762fi
17763rm -f core conftest.err conftest.$ac_objext \
17764    conftest$ac_exeext conftest.$ac_ext
17765LIBS=$ac_check_lib_save_LIBS
17766fi
17767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
17768$as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
17769if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
17770  cat >>confdefs.h <<_ACEOF
17771#define HAVE_LIBLDAP 1
17772_ACEOF
17773
17774  LIBS="-lldap $LIBS"
17775
17776fi
17777
17778    fi
17779    if test "x-$ac_cv_lib_lber_ber_alloc" = "x-yes" -a "x-$ac_cv_lib_ldap_ldap_init" = "x-yes" ; then
17780        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP version >= 2.1.0" >&5
17781$as_echo_n "checking for OpenLDAP version >= 2.1.0... " >&6; }
17782        if test "$cross_compiling" = yes; then :
17783  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17785as_fn_error $? "cannot run test program while cross compiling
17786See \`config.log' for more details" "$LINENO" 5; }
17787else
17788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789/* end confdefs.h.  */
17790#include <lber.h>
17791                                         #include <ldap.h>
17792int
17793main ()
17794{
17795do {
17796                                             LDAPAPIInfo info;
17797                                             info.ldapai_info_version = LDAP_API_INFO_VERSION;
17798                                             ldap_get_option(0, LDAP_OPT_API_INFO, &info);
17799                                             if(info.ldapai_vendor_version != LDAP_VENDOR_VERSION || LDAP_VENDOR_VERSION < 2004)
17800                                                 return 1;
17801                                         } while(0)
17802  ;
17803  return 0;
17804}
17805_ACEOF
17806if ac_fn_c_try_run "$LINENO"; then :
17807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17808$as_echo "yes" >&6; }
17809                                        have_ldap_version=yes
17810else
17811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17812$as_echo "no" >&6; }
17813fi
17814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17815  conftest.$ac_objext conftest.beam conftest.$ac_ext
17816fi
17817
17818    fi
17819    LIBS="$save_libs"
17820    if test "x-$have_ldap_version" != "x-yes" ; then
17821        as_fn_error $? "OpenLDAP client libraries >= 2.1.0 not found" "$LINENO" 5
17822    else
17823        LDAP_LIBS="-llber -lldap"
17824
17825$as_echo "#define STORAGE_LDAP 1" >>confdefs.h
17826
17827    fi
17828fi
17829
17830 if test "x-$have_ldap_version" = "x-yes"; then
17831  STORAGE_LDAP_TRUE=
17832  STORAGE_LDAP_FALSE='#'
17833else
17834  STORAGE_LDAP_TRUE='#'
17835  STORAGE_LDAP_FALSE=
17836fi
17837
17838
17839# Plugabble Authentication Modules (PAM)
17840# Check whether --enable-pam was given.
17841if test "${enable_pam+set}" = set; then :
17842  enableval=$enable_pam; want_pam=$enableval
17843else
17844  want_pam=no
17845fi
17846
17847if test "x-$want_pam" = "x-yes" ; then
17848    for ac_header in security/pam_appl.h
17849do :
17850  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17851if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17852  cat >>confdefs.h <<_ACEOF
17853#define HAVE_SECURITY_PAM_APPL_H 1
17854_ACEOF
17855
17856fi
17857
17858done
17859
17860    if test "x-$ac_cv_header_security_pam_appl_h" = "x-yes" ; then
17861        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17862$as_echo_n "checking for pam_start in -lpam... " >&6; }
17863if ${ac_cv_lib_pam_pam_start+:} false; then :
17864  $as_echo_n "(cached) " >&6
17865else
17866  ac_check_lib_save_LIBS=$LIBS
17867LIBS="-lpam  $LIBS"
17868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869/* end confdefs.h.  */
17870
17871/* Override any GCC internal prototype to avoid an error.
17872   Use char because int might match the return type of a GCC
17873   builtin and then its argument prototype would still apply.  */
17874#ifdef __cplusplus
17875extern "C"
17876#endif
17877char pam_start ();
17878int
17879main ()
17880{
17881return pam_start ();
17882  ;
17883  return 0;
17884}
17885_ACEOF
17886if ac_fn_c_try_link "$LINENO"; then :
17887  ac_cv_lib_pam_pam_start=yes
17888else
17889  ac_cv_lib_pam_pam_start=no
17890fi
17891rm -f core conftest.err conftest.$ac_objext \
17892    conftest$ac_exeext conftest.$ac_ext
17893LIBS=$ac_check_lib_save_LIBS
17894fi
17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17896$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17897if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17898
17899	    have_pam="yes"
17900            PAM_LIBS="-lpam"
17901
17902$as_echo "#define STORAGE_PAM 1" >>confdefs.h
17903
17904
17905else
17906  as_fn_error $? "PAM application libraries not found" "$LINENO" 5
17907fi
17908
17909    fi
17910fi
17911
17912 if test "x-$have_pam" = "x-yes"; then
17913  STORAGE_PAM_TRUE=
17914  STORAGE_PAM_FALSE='#'
17915else
17916  STORAGE_PAM_TRUE='#'
17917  STORAGE_PAM_FALSE=
17918fi
17919
17920
17921# pipe (not really an external package, but does need some checks)
17922# Check whether --enable-pipe was given.
17923if test "${enable_pipe+set}" = set; then :
17924  enableval=$enable_pipe; want_pipe=$enableval
17925else
17926  want_pipe=no
17927fi
17928
17929if test "x-$want_pipe" = "x-yes" ; then
17930    for ac_header in sys/wait.h
17931do :
17932  ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
17933if test "x$ac_cv_header_sys_wait_h" = xyes; then :
17934  cat >>confdefs.h <<_ACEOF
17935#define HAVE_SYS_WAIT_H 1
17936_ACEOF
17937
17938fi
17939
17940done
17941
17942    for ac_header in vfork.h
17943do :
17944  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17945if test "x$ac_cv_header_vfork_h" = xyes; then :
17946  cat >>confdefs.h <<_ACEOF
17947#define HAVE_VFORK_H 1
17948_ACEOF
17949
17950fi
17951
17952done
17953
17954for ac_func in fork vfork
17955do :
17956  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17957ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17958if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17959  cat >>confdefs.h <<_ACEOF
17960#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17961_ACEOF
17962
17963fi
17964done
17965
17966if test "x$ac_cv_func_fork" = xyes; then
17967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17968$as_echo_n "checking for working fork... " >&6; }
17969if ${ac_cv_func_fork_works+:} false; then :
17970  $as_echo_n "(cached) " >&6
17971else
17972  if test "$cross_compiling" = yes; then :
17973  ac_cv_func_fork_works=cross
17974else
17975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976/* end confdefs.h.  */
17977$ac_includes_default
17978int
17979main ()
17980{
17981
17982	  /* By Ruediger Kuhlmann. */
17983	  return fork () < 0;
17984
17985  ;
17986  return 0;
17987}
17988_ACEOF
17989if ac_fn_c_try_run "$LINENO"; then :
17990  ac_cv_func_fork_works=yes
17991else
17992  ac_cv_func_fork_works=no
17993fi
17994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17995  conftest.$ac_objext conftest.beam conftest.$ac_ext
17996fi
17997
17998fi
17999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18000$as_echo "$ac_cv_func_fork_works" >&6; }
18001
18002else
18003  ac_cv_func_fork_works=$ac_cv_func_fork
18004fi
18005if test "x$ac_cv_func_fork_works" = xcross; then
18006  case $host in
18007    *-*-amigaos* | *-*-msdosdjgpp*)
18008      # Override, as these systems have only a dummy fork() stub
18009      ac_cv_func_fork_works=no
18010      ;;
18011    *)
18012      ac_cv_func_fork_works=yes
18013      ;;
18014  esac
18015  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18016$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18017fi
18018ac_cv_func_vfork_works=$ac_cv_func_vfork
18019if test "x$ac_cv_func_vfork" = xyes; then
18020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18021$as_echo_n "checking for working vfork... " >&6; }
18022if ${ac_cv_func_vfork_works+:} false; then :
18023  $as_echo_n "(cached) " >&6
18024else
18025  if test "$cross_compiling" = yes; then :
18026  ac_cv_func_vfork_works=cross
18027else
18028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029/* end confdefs.h.  */
18030/* Thanks to Paul Eggert for this test.  */
18031$ac_includes_default
18032#include <sys/wait.h>
18033#ifdef HAVE_VFORK_H
18034# include <vfork.h>
18035#endif
18036/* On some sparc systems, changes by the child to local and incoming
18037   argument registers are propagated back to the parent.  The compiler
18038   is told about this with #include <vfork.h>, but some compilers
18039   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
18040   static variable whose address is put into a register that is
18041   clobbered by the vfork.  */
18042static void
18043#ifdef __cplusplus
18044sparc_address_test (int arg)
18045# else
18046sparc_address_test (arg) int arg;
18047#endif
18048{
18049  static pid_t child;
18050  if (!child) {
18051    child = vfork ();
18052    if (child < 0) {
18053      perror ("vfork");
18054      _exit(2);
18055    }
18056    if (!child) {
18057      arg = getpid();
18058      write(-1, "", 0);
18059      _exit (arg);
18060    }
18061  }
18062}
18063
18064int
18065main ()
18066{
18067  pid_t parent = getpid ();
18068  pid_t child;
18069
18070  sparc_address_test (0);
18071
18072  child = vfork ();
18073
18074  if (child == 0) {
18075    /* Here is another test for sparc vfork register problems.  This
18076       test uses lots of local variables, at least as many local
18077       variables as main has allocated so far including compiler
18078       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
18079       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
18080       reuse the register of parent for one of the local variables,
18081       since it will think that parent can't possibly be used any more
18082       in this routine.  Assigning to the local variable will thus
18083       munge parent in the parent process.  */
18084    pid_t
18085      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18086      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18087    /* Convince the compiler that p..p7 are live; otherwise, it might
18088       use the same hardware register for all 8 local variables.  */
18089    if (p != p1 || p != p2 || p != p3 || p != p4
18090	|| p != p5 || p != p6 || p != p7)
18091      _exit(1);
18092
18093    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18094       from child file descriptors.  If the child closes a descriptor
18095       before it execs or exits, this munges the parent's descriptor
18096       as well.  Test for this by closing stdout in the child.  */
18097    _exit(close(fileno(stdout)) != 0);
18098  } else {
18099    int status;
18100    struct stat st;
18101
18102    while (wait(&status) != child)
18103      ;
18104    return (
18105	 /* Was there some problem with vforking?  */
18106	 child < 0
18107
18108	 /* Did the child fail?  (This shouldn't happen.)  */
18109	 || status
18110
18111	 /* Did the vfork/compiler bug occur?  */
18112	 || parent != getpid()
18113
18114	 /* Did the file descriptor bug occur?  */
18115	 || fstat(fileno(stdout), &st) != 0
18116	 );
18117  }
18118}
18119_ACEOF
18120if ac_fn_c_try_run "$LINENO"; then :
18121  ac_cv_func_vfork_works=yes
18122else
18123  ac_cv_func_vfork_works=no
18124fi
18125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18126  conftest.$ac_objext conftest.beam conftest.$ac_ext
18127fi
18128
18129fi
18130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18131$as_echo "$ac_cv_func_vfork_works" >&6; }
18132
18133fi;
18134if test "x$ac_cv_func_fork_works" = xcross; then
18135  ac_cv_func_vfork_works=$ac_cv_func_vfork
18136  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18137$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18138fi
18139
18140if test "x$ac_cv_func_vfork_works" = xyes; then
18141
18142$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18143
18144else
18145
18146$as_echo "#define vfork fork" >>confdefs.h
18147
18148fi
18149if test "x$ac_cv_func_fork_works" = xyes; then
18150
18151$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18152
18153fi
18154
18155    for ac_func in pipe wait
18156do :
18157  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18159if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18160  cat >>confdefs.h <<_ACEOF
18161#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18162_ACEOF
18163
18164fi
18165done
18166
18167    if test "x-$ac_cv_header_sys_wait_h" != "x-yes" -o \
18168            "x-$ac_cv_func_fork" != "x-yes" -o \
18169            "x-$ac_cv_func_pipe" != "x-yes" -o \
18170            "x-$ac_cv_func_wait" != "x-yes" ; then
18171        as_fn_error $? "Pipe auth/reg requirements (sys/wait.h, fork(), pipe(), wait()) not found" "$LINENO" 5
18172    else
18173        have_pipe="yes"
18174
18175$as_echo "#define STORAGE_PIPE 1" >>confdefs.h
18176
18177    fi
18178fi
18179 if test "x-$have_pipe" = "x-yes"; then
18180  STORAGE_PIPE_TRUE=
18181  STORAGE_PIPE_FALSE='#'
18182else
18183  STORAGE_PIPE_TRUE='#'
18184  STORAGE_PIPE_FALSE=
18185fi
18186
18187
18188# Anonymous
18189# Check whether --enable-anon was given.
18190if test "${enable_anon+set}" = set; then :
18191  enableval=$enable_anon; want_anon=$enableval
18192else
18193  want_anon=no
18194fi
18195
18196if test "x-$want_anon" = "x-yes" ; then
18197
18198$as_echo "#define STORAGE_ANON 1" >>confdefs.h
18199
18200fi
18201 if test "x-$want_anon" = "x-yes"; then
18202  STORAGE_ANON_TRUE=
18203  STORAGE_ANON_FALSE='#'
18204else
18205  STORAGE_ANON_TRUE='#'
18206  STORAGE_ANON_FALSE=
18207fi
18208
18209
18210
18211# Filesystem storage
18212# Check whether --enable-fs was given.
18213if test "${enable_fs+set}" = set; then :
18214  enableval=$enable_fs; want_fs=$enableval
18215else
18216  want_fs=no
18217fi
18218
18219if test "x-$want_fs" = "x-yes" ; then
18220
18221$as_echo "#define STORAGE_FS 1" >>confdefs.h
18222
18223fi
18224 if test "x-$want_fs" = "x-yes"; then
18225  STORAGE_FS_TRUE=
18226  STORAGE_FS_FALSE='#'
18227else
18228  STORAGE_FS_TRUE='#'
18229  STORAGE_FS_FALSE=
18230fi
18231
18232
18233# WebSocket support
18234# Check whether --enable-websocket was given.
18235if test "${enable_websocket+set}" = set; then :
18236  enableval=$enable_websocket; want_websocket=$enableval
18237else
18238  want_websocket=no
18239fi
18240
18241if test "x-$want_websocket" = "x-yes" ; then
18242    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for http_parser_init in -lhttp_parser" >&5
18243$as_echo_n "checking for http_parser_init in -lhttp_parser... " >&6; }
18244if ${ac_cv_lib_http_parser_http_parser_init+:} false; then :
18245  $as_echo_n "(cached) " >&6
18246else
18247  ac_check_lib_save_LIBS=$LIBS
18248LIBS="-lhttp_parser  $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 http_parser_init ();
18259int
18260main ()
18261{
18262return http_parser_init ();
18263  ;
18264  return 0;
18265}
18266_ACEOF
18267if ac_fn_c_try_link "$LINENO"; then :
18268  ac_cv_lib_http_parser_http_parser_init=yes
18269else
18270  ac_cv_lib_http_parser_http_parser_init=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_http_parser_http_parser_init" >&5
18277$as_echo "$ac_cv_lib_http_parser_http_parser_init" >&6; }
18278if test "x$ac_cv_lib_http_parser_http_parser_init" = xyes; then :
18279  cat >>confdefs.h <<_ACEOF
18280#define HAVE_LIBHTTP_PARSER 1
18281_ACEOF
18282
18283  LIBS="-lhttp_parser $LIBS"
18284
18285fi
18286
18287    if test "x-$ac_cv_lib_http_parser_http_parser_init" != "x-yes" ; then
18288        as_fn_error $? "http_parser not found" "$LINENO" 5
18289    else
18290
18291$as_echo "#define USE_WEBSOCKET 1" >>confdefs.h
18292
18293    fi
18294fi
18295 if test "x-$want_websocket" = "x-yes"; then
18296  USE_WEBSOCKET_TRUE=
18297  USE_WEBSOCKET_FALSE='#'
18298else
18299  USE_WEBSOCKET_TRUE='#'
18300  USE_WEBSOCKET_FALSE=
18301fi
18302
18303
18304#
18305# IPv6 checks
18306
18307
18308# these types are sometimes missing
18309ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
18310#include \"ac-stdint.h\"
18311#ifdef HAVE_SYS_TYPES_H
18312# include <sys/types.h>
18313#endif
18314#ifdef HAVE_SYS_SOCKET_H
18315# include <sys/socket.h>
18316#endif
18317#ifdef HAVE_NETINET_IN_H
18318# include <netinet/in.h>
18319#endif
18320#ifdef HAVE_ARPA_INET_H
18321# include <arpa/inet.h>
18322#endif
18323
18324"
18325if test "x$ac_cv_type_in_port_t" = xyes; then :
18326
18327cat >>confdefs.h <<_ACEOF
18328#define HAVE_IN_PORT_T 1
18329_ACEOF
18330
18331
18332fi
18333ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18334#include \"ac-stdint.h\"
18335#ifdef HAVE_SYS_TYPES_H
18336# include <sys/types.h>
18337#endif
18338#ifdef HAVE_SYS_SOCKET_H
18339# include <sys/socket.h>
18340#endif
18341#ifdef HAVE_NETINET_IN_H
18342# include <netinet/in.h>
18343#endif
18344#ifdef HAVE_ARPA_INET_H
18345# include <arpa/inet.h>
18346#endif
18347
18348"
18349if test "x$ac_cv_type_sa_family_t" = xyes; then :
18350
18351cat >>confdefs.h <<_ACEOF
18352#define HAVE_SA_FAMILY_T 1
18353_ACEOF
18354
18355
18356fi
18357ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18358#include \"ac-stdint.h\"
18359#ifdef HAVE_SYS_TYPES_H
18360# include <sys/types.h>
18361#endif
18362#ifdef HAVE_SYS_SOCKET_H
18363# include <sys/socket.h>
18364#endif
18365#ifdef HAVE_NETINET_IN_H
18366# include <netinet/in.h>
18367#endif
18368#ifdef HAVE_ARPA_INET_H
18369# include <arpa/inet.h>
18370#endif
18371
18372"
18373if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18374
18375cat >>confdefs.h <<_ACEOF
18376#define HAVE_STRUCT_SOCKADDR_STORAGE 1
18377_ACEOF
18378
18379
18380fi
18381ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
18382#include \"ac-stdint.h\"
18383#ifdef HAVE_SYS_TYPES_H
18384# include <sys/types.h>
18385#endif
18386#ifdef HAVE_SYS_SOCKET_H
18387# include <sys/socket.h>
18388#endif
18389#ifdef HAVE_NETINET_IN_H
18390# include <netinet/in.h>
18391#endif
18392#ifdef HAVE_ARPA_INET_H
18393# include <arpa/inet.h>
18394#endif
18395
18396"
18397if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
18398
18399cat >>confdefs.h <<_ACEOF
18400#define HAVE_STRUCT_SOCKADDR_IN6 1
18401_ACEOF
18402
18403
18404fi
18405ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
18406#include \"ac-stdint.h\"
18407#ifdef HAVE_SYS_TYPES_H
18408# include <sys/types.h>
18409#endif
18410#ifdef HAVE_SYS_SOCKET_H
18411# include <sys/socket.h>
18412#endif
18413#ifdef HAVE_NETINET_IN_H
18414# include <netinet/in.h>
18415#endif
18416#ifdef HAVE_ARPA_INET_H
18417# include <arpa/inet.h>
18418#endif
18419
18420"
18421if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
18422
18423cat >>confdefs.h <<_ACEOF
18424#define HAVE_STRUCT_IN6_ADDR 1
18425_ACEOF
18426
18427
18428fi
18429
18430
18431# some glibcs have broken sockaddr_storage members
18432if test "x-$ac_cv_type_struct_sockaddr_storage" = "x-yes" ; then
18433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __ss_family member in struct sockaddr_storage" >&5
18434$as_echo_n "checking for broken __ss_family member in struct sockaddr_storage... " >&6; }
18435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436/* end confdefs.h.  */
18437
18438#include "ac-stdint.h"
18439#ifdef HAVE_SYS_TYPES_H
18440# include <sys/types.h>
18441#endif
18442#ifdef HAVE_SYS_SOCKET_H
18443# include <sys/socket.h>
18444#endif
18445#ifdef HAVE_NETINET_IN_H
18446# include <netinet/in.h>
18447#endif
18448#ifdef HAVE_ARPA_INET_H
18449# include <arpa/inet.h>
18450#endif
18451
18452int
18453main ()
18454{
18455do {
18456                                             struct sockaddr_storage s;
18457                                             s.__ss_family = 0;
18458                                         } while(0)
18459  ;
18460  return 0;
18461}
18462_ACEOF
18463if ac_fn_c_try_compile "$LINENO"; then :
18464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18465$as_echo "yes" >&6; }
18466
18467$as_echo "#define ss_family __ss_family" >>confdefs.h
18468
18469else
18470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471$as_echo "no" >&6; }
18472fi
18473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474
18475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __ss_len member in struct sockaddr_storage" >&5
18476$as_echo_n "checking for broken __ss_len member in struct sockaddr_storage... " >&6; }
18477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478/* end confdefs.h.  */
18479
18480#include "ac-stdint.h"
18481#ifdef HAVE_SYS_TYPES_H
18482# include <sys/types.h>
18483#endif
18484#ifdef HAVE_SYS_SOCKET_H
18485# include <sys/socket.h>
18486#endif
18487#ifdef HAVE_NETINET_IN_H
18488# include <netinet/in.h>
18489#endif
18490#ifdef HAVE_ARPA_INET_H
18491# include <arpa/inet.h>
18492#endif
18493
18494int
18495main ()
18496{
18497do {
18498                                             struct sockaddr_storage s;
18499                                             s.__ss_len = 0;
18500                                         } while(0)
18501  ;
18502  return 0;
18503}
18504_ACEOF
18505if ac_fn_c_try_compile "$LINENO"; then :
18506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507$as_echo "yes" >&6; }
18508
18509$as_echo "#define ss_len __ss_len" >>confdefs.h
18510
18511else
18512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513$as_echo "no" >&6; }
18514fi
18515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516fi
18517
18518
18519#
18520# mio backend selection
18521
18522# Check whether --enable-mio was given.
18523if test "${enable_mio+set}" = set; then :
18524  enableval=$enable_mio; mio_check=$enableval
18525else
18526  mio_check='select poll epoll kqueue'
18527fi
18528
18529
18530mio_backend=''
18531for backend in $mio_check ; do
18532    case x-$backend in
18533
18534        x-kqueue)
18535        for ac_header in sys/event.h
18536do :
18537  ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
18538if test "x$ac_cv_header_sys_event_h" = xyes; then :
18539  cat >>confdefs.h <<_ACEOF
18540#define HAVE_SYS_EVENT_H 1
18541_ACEOF
18542
18543fi
18544
18545done
18546
18547        if test "x-$ac_cv_header_sys_event_h" = "x-yes" ; then
18548            for ac_func in kqueue
18549do :
18550  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
18551if test "x$ac_cv_func_kqueue" = xyes; then :
18552  cat >>confdefs.h <<_ACEOF
18553#define HAVE_KQUEUE 1
18554_ACEOF
18555
18556                mio_backend='kqueue'
18557
18558$as_echo "#define MIO_KQUEUE 1" >>confdefs.h
18559
18560fi
18561done
18562
18563        fi
18564        ;;
18565
18566        x-epoll)
18567            for ac_header in sys/epoll.h
18568do :
18569  ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
18570if test "x$ac_cv_header_sys_epoll_h" = xyes; then :
18571  cat >>confdefs.h <<_ACEOF
18572#define HAVE_SYS_EPOLL_H 1
18573_ACEOF
18574
18575fi
18576
18577done
18578
18579            if test "x-$ac_cv_header_sys_epoll_h" = "x-yes" ; then
18580                for ac_func in epoll_create
18581do :
18582  ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
18583if test "x$ac_cv_func_epoll_create" = xyes; then :
18584  cat >>confdefs.h <<_ACEOF
18585#define HAVE_EPOLL_CREATE 1
18586_ACEOF
18587
18588                    mio_backend='epoll'
18589
18590$as_echo "#define MIO_EPOLL 1" >>confdefs.h
18591
18592fi
18593done
18594
18595            fi
18596            ;;
18597
18598        x-poll)
18599            for ac_header in poll.h
18600do :
18601  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
18602if test "x$ac_cv_header_poll_h" = xyes; then :
18603  cat >>confdefs.h <<_ACEOF
18604#define HAVE_POLL_H 1
18605_ACEOF
18606
18607fi
18608
18609done
18610
18611            if test "x-$ac_cv_header_poll_h" = "x-yes" ; then
18612                for ac_func in poll
18613do :
18614  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
18615if test "x$ac_cv_func_poll" = xyes; then :
18616  cat >>confdefs.h <<_ACEOF
18617#define HAVE_POLL 1
18618_ACEOF
18619
18620                    mio_backend='poll'
18621
18622$as_echo "#define MIO_POLL 1" >>confdefs.h
18623
18624fi
18625done
18626
18627            fi
18628            ;;
18629
18630        x-select)
18631            for ac_header in sys/select.h
18632do :
18633  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
18634if test "x$ac_cv_header_sys_select_h" = xyes; then :
18635  cat >>confdefs.h <<_ACEOF
18636#define HAVE_SYS_SELECT_H 1
18637_ACEOF
18638
18639fi
18640
18641done
18642
18643            if test "x-$ac_cv_header_sys_select_h" = "x-yes" ; then
18644                for ac_func in select
18645do :
18646  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
18647if test "x$ac_cv_func_select" = xyes; then :
18648  cat >>confdefs.h <<_ACEOF
18649#define HAVE_SELECT 1
18650_ACEOF
18651 have_select=yes
18652fi
18653done
18654
18655            fi
18656
18657            if test "x-$have_select" != "x-yes" -a "x-$ac_cv_header_winsock2_h" = "x-yes" ; then
18658                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in ws2_32" >&5
18659$as_echo_n "checking for select in ws2_32... " >&6; }
18660                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661/* end confdefs.h.  */
18662#include <winsock2.h>
18663int
18664main ()
18665{
18666select(0,0,0,0,0)
18667  ;
18668  return 0;
18669}
18670_ACEOF
18671if ac_fn_c_try_link "$LINENO"; then :
18672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673$as_echo "yes" >&6; }
18674                                have_select=yes
18675else
18676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18677$as_echo "no" >&6; }
18678fi
18679rm -f core conftest.err conftest.$ac_objext \
18680    conftest$ac_exeext conftest.$ac_ext
18681            fi
18682
18683            if test "x-$have_select" = "x-yes" ; then
18684                mio_backend='select'
18685
18686$as_echo "#define MIO_SELECT 1" >>confdefs.h
18687
18688            fi
18689            ;;
18690    esac
18691done
18692
18693if test "x-$mio_backend" = "x-" ; then
18694    as_fn_error $? "no MIO backend available out of: $mio_check" "$LINENO" 5
18695else
18696    { $as_echo "$as_me:${as_lineno-$LINENO}: using MIO backend: $mio_backend" >&5
18697$as_echo "$as_me: using MIO backend: $mio_backend" >&6;}
18698fi
18699
18700# use libc function substitution library?
18701
18702# Check whether --with-subst was given.
18703if test "${with_subst+set}" = set; then :
18704  withval=$with_subst; OPT_LIBSUBST="$withval"
18705fi
18706
18707
18708 if test "$OPT_LIBSUBST" != "no"; then
18709  USE_LIBSUBST_TRUE=
18710  USE_LIBSUBST_FALSE='#'
18711else
18712  USE_LIBSUBST_TRUE='#'
18713  USE_LIBSUBST_FALSE=
18714fi
18715
18716
18717# conditional features
18718# Check whether --enable-superseded was given.
18719if test "${enable_superseded+set}" = set; then :
18720  enableval=$enable_superseded; want_superseded=$enableval
18721else
18722  want_superseded=no
18723fi
18724
18725if test "x-$want_superseded" = "x-yes" ; then
18726
18727$as_echo "#define ENABLE_SUPERSEDED 1" >>confdefs.h
18728
18729fi
18730
18731# Check whether --enable-experimental was given.
18732if test "${enable_experimental+set}" = set; then :
18733  enableval=$enable_experimental; want_experimental=$enableval
18734else
18735  want_experimental=no
18736fi
18737
18738if test "x-$want_experimental" = "x-yes" ; then
18739
18740$as_echo "#define ENABLE_EXPERIMENTAL 1" >>confdefs.h
18741
18742fi
18743 if test "x-$want_experimental" = "x-yes"; then
18744  ENABLE_EXPERIMENTAL_TRUE=
18745  ENABLE_EXPERIMENTAL_FALSE='#'
18746else
18747  ENABLE_EXPERIMENTAL_TRUE='#'
18748  ENABLE_EXPERIMENTAL_FALSE=
18749fi
18750
18751
18752# Check whether --enable-tests was given.
18753if test "${enable_tests+set}" = set; then :
18754  enableval=$enable_tests; want_tests=$enableval
18755else
18756  want_tests=yes
18757fi
18758
18759if test "x-$want_tests" = "x-yes" ; then
18760
18761pkg_failed=no
18762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
18763$as_echo_n "checking for CHECK... " >&6; }
18764
18765if test -n "$CHECK_CFLAGS"; then
18766    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
18767 elif test -n "$PKG_CONFIG"; then
18768    if test -n "$PKG_CONFIG" && \
18769    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18770  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18771  ac_status=$?
18772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773  test $ac_status = 0; }; then
18774  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
18775		      test "x$?" != "x0" && pkg_failed=yes
18776else
18777  pkg_failed=yes
18778fi
18779 else
18780    pkg_failed=untried
18781fi
18782if test -n "$CHECK_LIBS"; then
18783    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
18784 elif test -n "$PKG_CONFIG"; then
18785    if test -n "$PKG_CONFIG" && \
18786    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18787  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18788  ac_status=$?
18789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790  test $ac_status = 0; }; then
18791  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
18792		      test "x$?" != "x0" && pkg_failed=yes
18793else
18794  pkg_failed=yes
18795fi
18796 else
18797    pkg_failed=untried
18798fi
18799
18800
18801
18802if test $pkg_failed = yes; then
18803   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18804$as_echo "no" >&6; }
18805
18806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18807        _pkg_short_errors_supported=yes
18808else
18809        _pkg_short_errors_supported=no
18810fi
18811        if test $_pkg_short_errors_supported = yes; then
18812	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
18813        else
18814	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
18815        fi
18816	# Put the nasty error message in config.log where it belongs
18817	echo "$CHECK_PKG_ERRORS" >&5
18818
18819	want_tests=no
18820elif test $pkg_failed = untried; then
18821     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18822$as_echo "no" >&6; }
18823	want_tests=no
18824else
18825	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
18826	CHECK_LIBS=$pkg_cv_CHECK_LIBS
18827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18828$as_echo "yes" >&6; }
18829	want_tests=yes
18830fi
18831fi
18832 if test "x-$want_tests" = "x-yes"; then
18833  ENABLE_TESTS_TRUE=
18834  ENABLE_TESTS_FALSE='#'
18835else
18836  ENABLE_TESTS_TRUE='#'
18837  ENABLE_TESTS_FALSE=
18838fi
18839
18840
18841# Check whether --enable-werror was given.
18842if test "${enable_werror+set}" = set; then :
18843  enableval=$enable_werror; CFLAGS="-Wall -Werror $CFLAGS"
18844fi
18845
18846
18847# Generate Makefiles
18848ac_config_files="$ac_config_files Doxyfile Makefile etc/Makefile etc/templates/Makefile man/Makefile subst/Makefile util/Makefile mio/Makefile sx/Makefile storage/Makefile c2s/Makefile router/Makefile s2s/Makefile sm/Makefile tools/Makefile tests/Makefile"
18849
18850cat >confcache <<\_ACEOF
18851# This file is a shell script that caches the results of configure
18852# tests run on this system so they can be shared between configure
18853# scripts and configure runs, see configure's option --config-cache.
18854# It is not useful on other systems.  If it contains results you don't
18855# want to keep, you may remove or edit it.
18856#
18857# config.status only pays attention to the cache file if you give it
18858# the --recheck option to rerun configure.
18859#
18860# `ac_cv_env_foo' variables (set or unset) will be overridden when
18861# loading this file, other *unset* `ac_cv_foo' will be assigned the
18862# following values.
18863
18864_ACEOF
18865
18866# The following way of writing the cache mishandles newlines in values,
18867# but we know of no workaround that is simple, portable, and efficient.
18868# So, we kill variables containing newlines.
18869# Ultrix sh set writes to stderr and can't be redirected directly,
18870# and sets the high bit in the cache file unless we assign to the vars.
18871(
18872  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18873    eval ac_val=\$$ac_var
18874    case $ac_val in #(
18875    *${as_nl}*)
18876      case $ac_var in #(
18877      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18878$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18879      esac
18880      case $ac_var in #(
18881      _ | IFS | as_nl) ;; #(
18882      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18883      *) { eval $ac_var=; unset $ac_var;} ;;
18884      esac ;;
18885    esac
18886  done
18887
18888  (set) 2>&1 |
18889    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18890    *${as_nl}ac_space=\ *)
18891      # `set' does not quote correctly, so add quotes: double-quote
18892      # substitution turns \\\\ into \\, and sed turns \\ into \.
18893      sed -n \
18894	"s/'/'\\\\''/g;
18895	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18896      ;; #(
18897    *)
18898      # `set' quotes correctly as required by POSIX, so do not add quotes.
18899      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18900      ;;
18901    esac |
18902    sort
18903) |
18904  sed '
18905     /^ac_cv_env_/b end
18906     t clear
18907     :clear
18908     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18909     t end
18910     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18911     :end' >>confcache
18912if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18913  if test -w "$cache_file"; then
18914    if test "x$cache_file" != "x/dev/null"; then
18915      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18916$as_echo "$as_me: updating cache $cache_file" >&6;}
18917      if test ! -f "$cache_file" || test -h "$cache_file"; then
18918	cat confcache >"$cache_file"
18919      else
18920        case $cache_file in #(
18921        */* | ?:*)
18922	  mv -f confcache "$cache_file"$$ &&
18923	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18924        *)
18925	  mv -f confcache "$cache_file" ;;
18926	esac
18927      fi
18928    fi
18929  else
18930    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18931$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18932  fi
18933fi
18934rm -f confcache
18935
18936test "x$prefix" = xNONE && prefix=$ac_default_prefix
18937# Let make expand exec_prefix.
18938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18939
18940DEFS=-DHAVE_CONFIG_H
18941
18942ac_libobjs=
18943ac_ltlibobjs=
18944U=
18945for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18946  # 1. Remove the extension, and $U if already installed.
18947  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18948  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18949  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18950  #    will be set to the directory where LIBOBJS objects are built.
18951  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18952  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18953done
18954LIBOBJS=$ac_libobjs
18955
18956LTLIBOBJS=$ac_ltlibobjs
18957
18958
18959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18960$as_echo_n "checking that generated files are newer than configure... " >&6; }
18961   if test -n "$am_sleep_pid"; then
18962     # Hide warnings about reused PIDs.
18963     wait $am_sleep_pid 2>/dev/null
18964   fi
18965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18966$as_echo "done" >&6; }
18967 if test -n "$EXEEXT"; then
18968  am__EXEEXT_TRUE=
18969  am__EXEEXT_FALSE='#'
18970else
18971  am__EXEEXT_TRUE='#'
18972  am__EXEEXT_FALSE=
18973fi
18974
18975if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18976  as_fn_error $? "conditional \"AMDEP\" was never defined.
18977Usually this means the macro was only invoked conditionally." "$LINENO" 5
18978fi
18979if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18980  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18981Usually this means the macro was only invoked conditionally." "$LINENO" 5
18982fi
18983if test -z "${HAVE_CRYPT_TRUE}" && test -z "${HAVE_CRYPT_FALSE}"; then
18984  as_fn_error $? "conditional \"HAVE_CRYPT\" was never defined.
18985Usually this means the macro was only invoked conditionally." "$LINENO" 5
18986fi
18987if test -z "${HAVE_SSL_TRUE}" && test -z "${HAVE_SSL_FALSE}"; then
18988  as_fn_error $? "conditional \"HAVE_SSL\" was never defined.
18989Usually this means the macro was only invoked conditionally." "$LINENO" 5
18990fi
18991if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
18992  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
18993Usually this means the macro was only invoked conditionally." "$LINENO" 5
18994fi
18995if test -z "${STORAGE_MYSQL_TRUE}" && test -z "${STORAGE_MYSQL_FALSE}"; then
18996  as_fn_error $? "conditional \"STORAGE_MYSQL\" was never defined.
18997Usually this means the macro was only invoked conditionally." "$LINENO" 5
18998fi
18999if test -z "${STORAGE_PGSQL_TRUE}" && test -z "${STORAGE_PGSQL_FALSE}"; then
19000  as_fn_error $? "conditional \"STORAGE_PGSQL\" was never defined.
19001Usually this means the macro was only invoked conditionally." "$LINENO" 5
19002fi
19003if test -z "${STORAGE_SQLITE_TRUE}" && test -z "${STORAGE_SQLITE_FALSE}"; then
19004  as_fn_error $? "conditional \"STORAGE_SQLITE\" was never defined.
19005Usually this means the macro was only invoked conditionally." "$LINENO" 5
19006fi
19007if test -z "${STORAGE_DB_TRUE}" && test -z "${STORAGE_DB_FALSE}"; then
19008  as_fn_error $? "conditional \"STORAGE_DB\" was never defined.
19009Usually this means the macro was only invoked conditionally." "$LINENO" 5
19010fi
19011if test -z "${STORAGE_ORACLE_TRUE}" && test -z "${STORAGE_ORACLE_FALSE}"; then
19012  as_fn_error $? "conditional \"STORAGE_ORACLE\" was never defined.
19013Usually this means the macro was only invoked conditionally." "$LINENO" 5
19014fi
19015if test -z "${STORAGE_LDAP_TRUE}" && test -z "${STORAGE_LDAP_FALSE}"; then
19016  as_fn_error $? "conditional \"STORAGE_LDAP\" was never defined.
19017Usually this means the macro was only invoked conditionally." "$LINENO" 5
19018fi
19019if test -z "${STORAGE_PAM_TRUE}" && test -z "${STORAGE_PAM_FALSE}"; then
19020  as_fn_error $? "conditional \"STORAGE_PAM\" was never defined.
19021Usually this means the macro was only invoked conditionally." "$LINENO" 5
19022fi
19023if test -z "${STORAGE_PIPE_TRUE}" && test -z "${STORAGE_PIPE_FALSE}"; then
19024  as_fn_error $? "conditional \"STORAGE_PIPE\" was never defined.
19025Usually this means the macro was only invoked conditionally." "$LINENO" 5
19026fi
19027if test -z "${STORAGE_ANON_TRUE}" && test -z "${STORAGE_ANON_FALSE}"; then
19028  as_fn_error $? "conditional \"STORAGE_ANON\" was never defined.
19029Usually this means the macro was only invoked conditionally." "$LINENO" 5
19030fi
19031if test -z "${STORAGE_FS_TRUE}" && test -z "${STORAGE_FS_FALSE}"; then
19032  as_fn_error $? "conditional \"STORAGE_FS\" was never defined.
19033Usually this means the macro was only invoked conditionally." "$LINENO" 5
19034fi
19035if test -z "${USE_WEBSOCKET_TRUE}" && test -z "${USE_WEBSOCKET_FALSE}"; then
19036  as_fn_error $? "conditional \"USE_WEBSOCKET\" was never defined.
19037Usually this means the macro was only invoked conditionally." "$LINENO" 5
19038fi
19039if test -z "${USE_LIBSUBST_TRUE}" && test -z "${USE_LIBSUBST_FALSE}"; then
19040  as_fn_error $? "conditional \"USE_LIBSUBST\" was never defined.
19041Usually this means the macro was only invoked conditionally." "$LINENO" 5
19042fi
19043if test -z "${ENABLE_EXPERIMENTAL_TRUE}" && test -z "${ENABLE_EXPERIMENTAL_FALSE}"; then
19044  as_fn_error $? "conditional \"ENABLE_EXPERIMENTAL\" was never defined.
19045Usually this means the macro was only invoked conditionally." "$LINENO" 5
19046fi
19047if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19048  as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
19049Usually this means the macro was only invoked conditionally." "$LINENO" 5
19050fi
19051
19052: "${CONFIG_STATUS=./config.status}"
19053ac_write_fail=0
19054ac_clean_files_save=$ac_clean_files
19055ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19056{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19057$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19058as_write_fail=0
19059cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19060#! $SHELL
19061# Generated by $as_me.
19062# Run this file to recreate the current configuration.
19063# Compiler output produced by configure, useful for debugging
19064# configure, is in config.log if it exists.
19065
19066debug=false
19067ac_cs_recheck=false
19068ac_cs_silent=false
19069
19070SHELL=\${CONFIG_SHELL-$SHELL}
19071export SHELL
19072_ASEOF
19073cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19074## -------------------- ##
19075## M4sh Initialization. ##
19076## -------------------- ##
19077
19078# Be more Bourne compatible
19079DUALCASE=1; export DUALCASE # for MKS sh
19080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19081  emulate sh
19082  NULLCMD=:
19083  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19084  # is contrary to our usage.  Disable this feature.
19085  alias -g '${1+"$@"}'='"$@"'
19086  setopt NO_GLOB_SUBST
19087else
19088  case `(set -o) 2>/dev/null` in #(
19089  *posix*) :
19090    set -o posix ;; #(
19091  *) :
19092     ;;
19093esac
19094fi
19095
19096
19097as_nl='
19098'
19099export as_nl
19100# Printing a long string crashes Solaris 7 /usr/bin/printf.
19101as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19102as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19103as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19104# Prefer a ksh shell builtin over an external printf program on Solaris,
19105# but without wasting forks for bash or zsh.
19106if test -z "$BASH_VERSION$ZSH_VERSION" \
19107    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19108  as_echo='print -r --'
19109  as_echo_n='print -rn --'
19110elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19111  as_echo='printf %s\n'
19112  as_echo_n='printf %s'
19113else
19114  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19115    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19116    as_echo_n='/usr/ucb/echo -n'
19117  else
19118    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19119    as_echo_n_body='eval
19120      arg=$1;
19121      case $arg in #(
19122      *"$as_nl"*)
19123	expr "X$arg" : "X\\(.*\\)$as_nl";
19124	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19125      esac;
19126      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19127    '
19128    export as_echo_n_body
19129    as_echo_n='sh -c $as_echo_n_body as_echo'
19130  fi
19131  export as_echo_body
19132  as_echo='sh -c $as_echo_body as_echo'
19133fi
19134
19135# The user is always right.
19136if test "${PATH_SEPARATOR+set}" != set; then
19137  PATH_SEPARATOR=:
19138  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19139    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19140      PATH_SEPARATOR=';'
19141  }
19142fi
19143
19144
19145# IFS
19146# We need space, tab and new line, in precisely that order.  Quoting is
19147# there to prevent editors from complaining about space-tab.
19148# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19149# splitting by setting IFS to empty value.)
19150IFS=" ""	$as_nl"
19151
19152# Find who we are.  Look in the path if we contain no directory separator.
19153as_myself=
19154case $0 in #((
19155  *[\\/]* ) as_myself=$0 ;;
19156  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19157for as_dir in $PATH
19158do
19159  IFS=$as_save_IFS
19160  test -z "$as_dir" && as_dir=.
19161    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19162  done
19163IFS=$as_save_IFS
19164
19165     ;;
19166esac
19167# We did not find ourselves, most probably we were run as `sh COMMAND'
19168# in which case we are not to be found in the path.
19169if test "x$as_myself" = x; then
19170  as_myself=$0
19171fi
19172if test ! -f "$as_myself"; then
19173  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19174  exit 1
19175fi
19176
19177# Unset variables that we do not need and which cause bugs (e.g. in
19178# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19179# suppresses any "Segmentation fault" message there.  '((' could
19180# trigger a bug in pdksh 5.2.14.
19181for as_var in BASH_ENV ENV MAIL MAILPATH
19182do eval test x\${$as_var+set} = xset \
19183  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19184done
19185PS1='$ '
19186PS2='> '
19187PS4='+ '
19188
19189# NLS nuisances.
19190LC_ALL=C
19191export LC_ALL
19192LANGUAGE=C
19193export LANGUAGE
19194
19195# CDPATH.
19196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19197
19198
19199# as_fn_error STATUS ERROR [LINENO LOG_FD]
19200# ----------------------------------------
19201# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19202# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19203# script with STATUS, using 1 if that was 0.
19204as_fn_error ()
19205{
19206  as_status=$1; test $as_status -eq 0 && as_status=1
19207  if test "$4"; then
19208    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19209    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19210  fi
19211  $as_echo "$as_me: error: $2" >&2
19212  as_fn_exit $as_status
19213} # as_fn_error
19214
19215
19216# as_fn_set_status STATUS
19217# -----------------------
19218# Set $? to STATUS, without forking.
19219as_fn_set_status ()
19220{
19221  return $1
19222} # as_fn_set_status
19223
19224# as_fn_exit STATUS
19225# -----------------
19226# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19227as_fn_exit ()
19228{
19229  set +e
19230  as_fn_set_status $1
19231  exit $1
19232} # as_fn_exit
19233
19234# as_fn_unset VAR
19235# ---------------
19236# Portably unset VAR.
19237as_fn_unset ()
19238{
19239  { eval $1=; unset $1;}
19240}
19241as_unset=as_fn_unset
19242# as_fn_append VAR VALUE
19243# ----------------------
19244# Append the text in VALUE to the end of the definition contained in VAR. Take
19245# advantage of any shell optimizations that allow amortized linear growth over
19246# repeated appends, instead of the typical quadratic growth present in naive
19247# implementations.
19248if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19249  eval 'as_fn_append ()
19250  {
19251    eval $1+=\$2
19252  }'
19253else
19254  as_fn_append ()
19255  {
19256    eval $1=\$$1\$2
19257  }
19258fi # as_fn_append
19259
19260# as_fn_arith ARG...
19261# ------------------
19262# Perform arithmetic evaluation on the ARGs, and store the result in the
19263# global $as_val. Take advantage of shells that can avoid forks. The arguments
19264# must be portable across $(()) and expr.
19265if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19266  eval 'as_fn_arith ()
19267  {
19268    as_val=$(( $* ))
19269  }'
19270else
19271  as_fn_arith ()
19272  {
19273    as_val=`expr "$@" || test $? -eq 1`
19274  }
19275fi # as_fn_arith
19276
19277
19278if expr a : '\(a\)' >/dev/null 2>&1 &&
19279   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19280  as_expr=expr
19281else
19282  as_expr=false
19283fi
19284
19285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19286  as_basename=basename
19287else
19288  as_basename=false
19289fi
19290
19291if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19292  as_dirname=dirname
19293else
19294  as_dirname=false
19295fi
19296
19297as_me=`$as_basename -- "$0" ||
19298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19299	 X"$0" : 'X\(//\)$' \| \
19300	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19301$as_echo X/"$0" |
19302    sed '/^.*\/\([^/][^/]*\)\/*$/{
19303	    s//\1/
19304	    q
19305	  }
19306	  /^X\/\(\/\/\)$/{
19307	    s//\1/
19308	    q
19309	  }
19310	  /^X\/\(\/\).*/{
19311	    s//\1/
19312	    q
19313	  }
19314	  s/.*/./; q'`
19315
19316# Avoid depending upon Character Ranges.
19317as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19318as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19319as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19320as_cr_digits='0123456789'
19321as_cr_alnum=$as_cr_Letters$as_cr_digits
19322
19323ECHO_C= ECHO_N= ECHO_T=
19324case `echo -n x` in #(((((
19325-n*)
19326  case `echo 'xy\c'` in
19327  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19328  xy)  ECHO_C='\c';;
19329  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19330       ECHO_T='	';;
19331  esac;;
19332*)
19333  ECHO_N='-n';;
19334esac
19335
19336rm -f conf$$ conf$$.exe conf$$.file
19337if test -d conf$$.dir; then
19338  rm -f conf$$.dir/conf$$.file
19339else
19340  rm -f conf$$.dir
19341  mkdir conf$$.dir 2>/dev/null
19342fi
19343if (echo >conf$$.file) 2>/dev/null; then
19344  if ln -s conf$$.file conf$$ 2>/dev/null; then
19345    as_ln_s='ln -s'
19346    # ... but there are two gotchas:
19347    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19348    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19349    # In both cases, we have to default to `cp -pR'.
19350    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19351      as_ln_s='cp -pR'
19352  elif ln conf$$.file conf$$ 2>/dev/null; then
19353    as_ln_s=ln
19354  else
19355    as_ln_s='cp -pR'
19356  fi
19357else
19358  as_ln_s='cp -pR'
19359fi
19360rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19361rmdir conf$$.dir 2>/dev/null
19362
19363
19364# as_fn_mkdir_p
19365# -------------
19366# Create "$as_dir" as a directory, including parents if necessary.
19367as_fn_mkdir_p ()
19368{
19369
19370  case $as_dir in #(
19371  -*) as_dir=./$as_dir;;
19372  esac
19373  test -d "$as_dir" || eval $as_mkdir_p || {
19374    as_dirs=
19375    while :; do
19376      case $as_dir in #(
19377      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19378      *) as_qdir=$as_dir;;
19379      esac
19380      as_dirs="'$as_qdir' $as_dirs"
19381      as_dir=`$as_dirname -- "$as_dir" ||
19382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19383	 X"$as_dir" : 'X\(//\)[^/]' \| \
19384	 X"$as_dir" : 'X\(//\)$' \| \
19385	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19386$as_echo X"$as_dir" |
19387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19388	    s//\1/
19389	    q
19390	  }
19391	  /^X\(\/\/\)[^/].*/{
19392	    s//\1/
19393	    q
19394	  }
19395	  /^X\(\/\/\)$/{
19396	    s//\1/
19397	    q
19398	  }
19399	  /^X\(\/\).*/{
19400	    s//\1/
19401	    q
19402	  }
19403	  s/.*/./; q'`
19404      test -d "$as_dir" && break
19405    done
19406    test -z "$as_dirs" || eval "mkdir $as_dirs"
19407  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19408
19409
19410} # as_fn_mkdir_p
19411if mkdir -p . 2>/dev/null; then
19412  as_mkdir_p='mkdir -p "$as_dir"'
19413else
19414  test -d ./-p && rmdir ./-p
19415  as_mkdir_p=false
19416fi
19417
19418
19419# as_fn_executable_p FILE
19420# -----------------------
19421# Test if FILE is an executable regular file.
19422as_fn_executable_p ()
19423{
19424  test -f "$1" && test -x "$1"
19425} # as_fn_executable_p
19426as_test_x='test -x'
19427as_executable_p=as_fn_executable_p
19428
19429# Sed expression to map a string onto a valid CPP name.
19430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19431
19432# Sed expression to map a string onto a valid variable name.
19433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19434
19435
19436exec 6>&1
19437## ----------------------------------- ##
19438## Main body of $CONFIG_STATUS script. ##
19439## ----------------------------------- ##
19440_ASEOF
19441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19442
19443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19444# Save the log message, to keep $0 and so on meaningful, and to
19445# report actual input values of CONFIG_FILES etc. instead of their
19446# values after options handling.
19447ac_log="
19448This file was extended by jabberd $as_me 2.7.0, which was
19449generated by GNU Autoconf 2.69.  Invocation command line was
19450
19451  CONFIG_FILES    = $CONFIG_FILES
19452  CONFIG_HEADERS  = $CONFIG_HEADERS
19453  CONFIG_LINKS    = $CONFIG_LINKS
19454  CONFIG_COMMANDS = $CONFIG_COMMANDS
19455  $ $0 $@
19456
19457on `(hostname || uname -n) 2>/dev/null | sed 1q`
19458"
19459
19460_ACEOF
19461
19462case $ac_config_files in *"
19463"*) set x $ac_config_files; shift; ac_config_files=$*;;
19464esac
19465
19466case $ac_config_headers in *"
19467"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19468esac
19469
19470
19471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19472# Files that config.status was made for.
19473config_files="$ac_config_files"
19474config_headers="$ac_config_headers"
19475config_links="$ac_config_links"
19476config_commands="$ac_config_commands"
19477
19478_ACEOF
19479
19480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481ac_cs_usage="\
19482\`$as_me' instantiates files and other configuration actions
19483from templates according to the current configuration.  Unless the files
19484and actions are specified as TAGs, all are instantiated by default.
19485
19486Usage: $0 [OPTION]... [TAG]...
19487
19488  -h, --help       print this help, then exit
19489  -V, --version    print version number and configuration settings, then exit
19490      --config     print configuration, then exit
19491  -q, --quiet, --silent
19492                   do not print progress messages
19493  -d, --debug      don't remove temporary files
19494      --recheck    update $as_me by reconfiguring in the same conditions
19495      --file=FILE[:TEMPLATE]
19496                   instantiate the configuration file FILE
19497      --header=FILE[:TEMPLATE]
19498                   instantiate the configuration header FILE
19499
19500Configuration files:
19501$config_files
19502
19503Configuration headers:
19504$config_headers
19505
19506Configuration links:
19507$config_links
19508
19509Configuration commands:
19510$config_commands
19511
19512Report bugs to <jabberd2@lists.xiaoka.com>."
19513
19514_ACEOF
19515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19516ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19517ac_cs_version="\\
19518jabberd config.status 2.7.0
19519configured by $0, generated by GNU Autoconf 2.69,
19520  with options \\"\$ac_cs_config\\"
19521
19522Copyright (C) 2012 Free Software Foundation, Inc.
19523This config.status script is free software; the Free Software Foundation
19524gives unlimited permission to copy, distribute and modify it."
19525
19526ac_pwd='$ac_pwd'
19527srcdir='$srcdir'
19528INSTALL='$INSTALL'
19529MKDIR_P='$MKDIR_P'
19530AWK='$AWK'
19531test -n "\$AWK" || AWK=awk
19532_ACEOF
19533
19534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19535# The default lists apply if the user does not specify any file.
19536ac_need_defaults=:
19537while test $# != 0
19538do
19539  case $1 in
19540  --*=?*)
19541    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19542    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19543    ac_shift=:
19544    ;;
19545  --*=)
19546    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19547    ac_optarg=
19548    ac_shift=:
19549    ;;
19550  *)
19551    ac_option=$1
19552    ac_optarg=$2
19553    ac_shift=shift
19554    ;;
19555  esac
19556
19557  case $ac_option in
19558  # Handling of the options.
19559  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19560    ac_cs_recheck=: ;;
19561  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19562    $as_echo "$ac_cs_version"; exit ;;
19563  --config | --confi | --conf | --con | --co | --c )
19564    $as_echo "$ac_cs_config"; exit ;;
19565  --debug | --debu | --deb | --de | --d | -d )
19566    debug=: ;;
19567  --file | --fil | --fi | --f )
19568    $ac_shift
19569    case $ac_optarg in
19570    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19571    '') as_fn_error $? "missing file argument" ;;
19572    esac
19573    as_fn_append CONFIG_FILES " '$ac_optarg'"
19574    ac_need_defaults=false;;
19575  --header | --heade | --head | --hea )
19576    $ac_shift
19577    case $ac_optarg in
19578    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19579    esac
19580    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19581    ac_need_defaults=false;;
19582  --he | --h)
19583    # Conflict between --help and --header
19584    as_fn_error $? "ambiguous option: \`$1'
19585Try \`$0 --help' for more information.";;
19586  --help | --hel | -h )
19587    $as_echo "$ac_cs_usage"; exit ;;
19588  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19589  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19590    ac_cs_silent=: ;;
19591
19592  # This is an error.
19593  -*) as_fn_error $? "unrecognized option: \`$1'
19594Try \`$0 --help' for more information." ;;
19595
19596  *) as_fn_append ac_config_targets " $1"
19597     ac_need_defaults=false ;;
19598
19599  esac
19600  shift
19601done
19602
19603ac_configure_extra_args=
19604
19605if $ac_cs_silent; then
19606  exec 6>/dev/null
19607  ac_configure_extra_args="$ac_configure_extra_args --silent"
19608fi
19609
19610_ACEOF
19611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19612if \$ac_cs_recheck; then
19613  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19614  shift
19615  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19616  CONFIG_SHELL='$SHELL'
19617  export CONFIG_SHELL
19618  exec "\$@"
19619fi
19620
19621_ACEOF
19622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19623exec 5>>config.log
19624{
19625  echo
19626  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19627## Running $as_me. ##
19628_ASBOX
19629  $as_echo "$ac_log"
19630} >&5
19631
19632_ACEOF
19633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19634#
19635# INIT-COMMANDS
19636#
19637AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19638
19639
19640# The HP-UX ksh and POSIX shell print the target directory to stdout
19641# if CDPATH is set.
19642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19643
19644sed_quote_subst='$sed_quote_subst'
19645double_quote_subst='$double_quote_subst'
19646delay_variable_subst='$delay_variable_subst'
19647enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19648macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19649macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19650enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19651pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19652enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19653shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19654SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19655ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19656PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19657host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19658host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19659host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19660build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19661build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19662build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19663SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19664Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19665GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19666EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19667FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19668LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19669NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19670LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19671max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19672ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19673exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19674lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19675lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19676lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19677lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19678lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19679reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19680reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19681OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19682deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19683file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19684file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19685want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19686DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19687sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19688AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19689AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19690archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19691STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19692RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19693old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19694old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19695old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19696lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19697CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19698CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19699compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19700GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19701lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19702lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19703lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19704lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19705lt_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"`'
19706lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19707nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19708lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19709lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19710objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19711MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19712lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19713lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19714lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19715lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19716lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19717need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19718MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19719DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19720NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19721LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19722OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19723OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19724libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19725shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19726extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19727archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19728enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19729export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19730whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19731compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19732old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19733old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19734archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19735archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19736module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19737module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19738with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19739allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19740no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19741hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19742hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19743hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19744hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19745hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19746hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19747hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19748inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19749link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19750always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19751export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19752exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19753include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19754prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19755postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19756file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19757variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19758need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19759need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19760version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19761runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19762shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19763shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19764libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19765library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19766soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19767install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19768postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19769postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19770finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19771finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19772hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19773sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19774configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19775configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19776hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19777enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19778enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19779enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19780old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19781striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19782
19783LTCC='$LTCC'
19784LTCFLAGS='$LTCFLAGS'
19785compiler='$compiler_DEFAULT'
19786
19787# A function that is used when there is no print builtin or printf.
19788func_fallback_echo ()
19789{
19790  eval 'cat <<_LTECHO_EOF
19791\$1
19792_LTECHO_EOF'
19793}
19794
19795# Quote evaled strings.
19796for var in SHELL \
19797ECHO \
19798PATH_SEPARATOR \
19799SED \
19800GREP \
19801EGREP \
19802FGREP \
19803LD \
19804NM \
19805LN_S \
19806lt_SP2NL \
19807lt_NL2SP \
19808reload_flag \
19809OBJDUMP \
19810deplibs_check_method \
19811file_magic_cmd \
19812file_magic_glob \
19813want_nocaseglob \
19814DLLTOOL \
19815sharedlib_from_linklib_cmd \
19816AR \
19817AR_FLAGS \
19818archiver_list_spec \
19819STRIP \
19820RANLIB \
19821CC \
19822CFLAGS \
19823compiler \
19824lt_cv_sys_global_symbol_pipe \
19825lt_cv_sys_global_symbol_to_cdecl \
19826lt_cv_sys_global_symbol_to_import \
19827lt_cv_sys_global_symbol_to_c_name_address \
19828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19829lt_cv_nm_interface \
19830nm_file_list_spec \
19831lt_cv_truncate_bin \
19832lt_prog_compiler_no_builtin_flag \
19833lt_prog_compiler_pic \
19834lt_prog_compiler_wl \
19835lt_prog_compiler_static \
19836lt_cv_prog_compiler_c_o \
19837need_locks \
19838MANIFEST_TOOL \
19839DSYMUTIL \
19840NMEDIT \
19841LIPO \
19842OTOOL \
19843OTOOL64 \
19844shrext_cmds \
19845export_dynamic_flag_spec \
19846whole_archive_flag_spec \
19847compiler_needs_object \
19848with_gnu_ld \
19849allow_undefined_flag \
19850no_undefined_flag \
19851hardcode_libdir_flag_spec \
19852hardcode_libdir_separator \
19853exclude_expsyms \
19854include_expsyms \
19855file_list_spec \
19856variables_saved_for_relink \
19857libname_spec \
19858library_names_spec \
19859soname_spec \
19860install_override_mode \
19861finish_eval \
19862old_striplib \
19863striplib; do
19864    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19865    *[\\\\\\\`\\"\\\$]*)
19866      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19867      ;;
19868    *)
19869      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19870      ;;
19871    esac
19872done
19873
19874# Double-quote double-evaled strings.
19875for var in reload_cmds \
19876old_postinstall_cmds \
19877old_postuninstall_cmds \
19878old_archive_cmds \
19879extract_expsyms_cmds \
19880old_archive_from_new_cmds \
19881old_archive_from_expsyms_cmds \
19882archive_cmds \
19883archive_expsym_cmds \
19884module_cmds \
19885module_expsym_cmds \
19886export_symbols_cmds \
19887prelink_cmds \
19888postlink_cmds \
19889postinstall_cmds \
19890postuninstall_cmds \
19891finish_cmds \
19892sys_lib_search_path_spec \
19893configure_time_dlsearch_path \
19894configure_time_lt_sys_library_path; do
19895    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19896    *[\\\\\\\`\\"\\\$]*)
19897      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19898      ;;
19899    *)
19900      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19901      ;;
19902    esac
19903done
19904
19905ac_aux_dir='$ac_aux_dir'
19906
19907# See if we are running on zsh, and set the options that allow our
19908# commands through without removal of \ escapes INIT.
19909if test -n "\${ZSH_VERSION+set}"; then
19910   setopt NO_GLOB_SUBST
19911fi
19912
19913
19914    PACKAGE='$PACKAGE'
19915    VERSION='$VERSION'
19916    RM='$RM'
19917    ofile='$ofile'
19918
19919
19920
19921
19922_ACEOF
19923
19924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19925
19926# Handling of arguments.
19927for ac_config_target in $ac_config_targets
19928do
19929  case $ac_config_target in
19930    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19931    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19932    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19933    "$ac_config_libobj_dir/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
19934    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
19935    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19936    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
19937    "etc/templates/Makefile") CONFIG_FILES="$CONFIG_FILES etc/templates/Makefile" ;;
19938    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19939    "subst/Makefile") CONFIG_FILES="$CONFIG_FILES subst/Makefile" ;;
19940    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19941    "mio/Makefile") CONFIG_FILES="$CONFIG_FILES mio/Makefile" ;;
19942    "sx/Makefile") CONFIG_FILES="$CONFIG_FILES sx/Makefile" ;;
19943    "storage/Makefile") CONFIG_FILES="$CONFIG_FILES storage/Makefile" ;;
19944    "c2s/Makefile") CONFIG_FILES="$CONFIG_FILES c2s/Makefile" ;;
19945    "router/Makefile") CONFIG_FILES="$CONFIG_FILES router/Makefile" ;;
19946    "s2s/Makefile") CONFIG_FILES="$CONFIG_FILES s2s/Makefile" ;;
19947    "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
19948    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19949    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19950
19951  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19952  esac
19953done
19954
19955
19956# If the user did not use the arguments to specify the items to instantiate,
19957# then the envvar interface is used.  Set only those that are not.
19958# We use the long form for the default assignment because of an extremely
19959# bizarre bug on SunOS 4.1.3.
19960if $ac_need_defaults; then
19961  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19962  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19963  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19964  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19965fi
19966
19967# Have a temporary directory for convenience.  Make it in the build tree
19968# simply because there is no reason against having it here, and in addition,
19969# creating and moving files from /tmp can sometimes cause problems.
19970# Hook for its removal unless debugging.
19971# Note that there is a small window in which the directory will not be cleaned:
19972# after its creation but before its name has been assigned to `$tmp'.
19973$debug ||
19974{
19975  tmp= ac_tmp=
19976  trap 'exit_status=$?
19977  : "${ac_tmp:=$tmp}"
19978  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19979' 0
19980  trap 'as_fn_exit 1' 1 2 13 15
19981}
19982# Create a (secure) tmp directory for tmp files.
19983
19984{
19985  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19986  test -d "$tmp"
19987}  ||
19988{
19989  tmp=./conf$$-$RANDOM
19990  (umask 077 && mkdir "$tmp")
19991} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19992ac_tmp=$tmp
19993
19994# Set up the scripts for CONFIG_FILES section.
19995# No need to generate them if there are no CONFIG_FILES.
19996# This happens for instance with `./config.status config.h'.
19997if test -n "$CONFIG_FILES"; then
19998
19999
20000ac_cr=`echo X | tr X '\015'`
20001# On cygwin, bash can eat \r inside `` if the user requested igncr.
20002# But we know of no other shell where ac_cr would be empty at this
20003# point, so we can use a bashism as a fallback.
20004if test "x$ac_cr" = x; then
20005  eval ac_cr=\$\'\\r\'
20006fi
20007ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20008if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20009  ac_cs_awk_cr='\\r'
20010else
20011  ac_cs_awk_cr=$ac_cr
20012fi
20013
20014echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20015_ACEOF
20016
20017
20018{
20019  echo "cat >conf$$subs.awk <<_ACEOF" &&
20020  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20021  echo "_ACEOF"
20022} >conf$$subs.sh ||
20023  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20024ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20025ac_delim='%!_!# '
20026for ac_last_try in false false false false false :; do
20027  . ./conf$$subs.sh ||
20028    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20029
20030  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20031  if test $ac_delim_n = $ac_delim_num; then
20032    break
20033  elif $ac_last_try; then
20034    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20035  else
20036    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20037  fi
20038done
20039rm -f conf$$subs.sh
20040
20041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20042cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20043_ACEOF
20044sed -n '
20045h
20046s/^/S["/; s/!.*/"]=/
20047p
20048g
20049s/^[^!]*!//
20050:repl
20051t repl
20052s/'"$ac_delim"'$//
20053t delim
20054:nl
20055h
20056s/\(.\{148\}\)..*/\1/
20057t more1
20058s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20059p
20060n
20061b repl
20062:more1
20063s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20064p
20065g
20066s/.\{148\}//
20067t nl
20068:delim
20069h
20070s/\(.\{148\}\)..*/\1/
20071t more2
20072s/["\\]/\\&/g; s/^/"/; s/$/"/
20073p
20074b
20075:more2
20076s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20077p
20078g
20079s/.\{148\}//
20080t delim
20081' <conf$$subs.awk | sed '
20082/^[^""]/{
20083  N
20084  s/\n//
20085}
20086' >>$CONFIG_STATUS || ac_write_fail=1
20087rm -f conf$$subs.awk
20088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20089_ACAWK
20090cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20091  for (key in S) S_is_set[key] = 1
20092  FS = ""
20093
20094}
20095{
20096  line = $ 0
20097  nfields = split(line, field, "@")
20098  substed = 0
20099  len = length(field[1])
20100  for (i = 2; i < nfields; i++) {
20101    key = field[i]
20102    keylen = length(key)
20103    if (S_is_set[key]) {
20104      value = S[key]
20105      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20106      len += length(value) + length(field[++i])
20107      substed = 1
20108    } else
20109      len += 1 + keylen
20110  }
20111
20112  print line
20113}
20114
20115_ACAWK
20116_ACEOF
20117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20118if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20119  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20120else
20121  cat
20122fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20123  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20124_ACEOF
20125
20126# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20127# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20128# trailing colons and then remove the whole line if VPATH becomes empty
20129# (actually we leave an empty line to preserve line numbers).
20130if test "x$srcdir" = x.; then
20131  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20132h
20133s///
20134s/^/:/
20135s/[	 ]*$/:/
20136s/:\$(srcdir):/:/g
20137s/:\${srcdir}:/:/g
20138s/:@srcdir@:/:/g
20139s/^:*//
20140s/:*$//
20141x
20142s/\(=[	 ]*\).*/\1/
20143G
20144s/\n//
20145s/^[^=]*=[	 ]*$//
20146}'
20147fi
20148
20149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20150fi # test -n "$CONFIG_FILES"
20151
20152# Set up the scripts for CONFIG_HEADERS section.
20153# No need to generate them if there are no CONFIG_HEADERS.
20154# This happens for instance with `./config.status Makefile'.
20155if test -n "$CONFIG_HEADERS"; then
20156cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20157BEGIN {
20158_ACEOF
20159
20160# Transform confdefs.h into an awk script `defines.awk', embedded as
20161# here-document in config.status, that substitutes the proper values into
20162# config.h.in to produce config.h.
20163
20164# Create a delimiter string that does not exist in confdefs.h, to ease
20165# handling of long lines.
20166ac_delim='%!_!# '
20167for ac_last_try in false false :; do
20168  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20169  if test -z "$ac_tt"; then
20170    break
20171  elif $ac_last_try; then
20172    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20173  else
20174    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20175  fi
20176done
20177
20178# For the awk script, D is an array of macro values keyed by name,
20179# likewise P contains macro parameters if any.  Preserve backslash
20180# newline sequences.
20181
20182ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20183sed -n '
20184s/.\{148\}/&'"$ac_delim"'/g
20185t rset
20186:rset
20187s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20188t def
20189d
20190:def
20191s/\\$//
20192t bsnl
20193s/["\\]/\\&/g
20194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20195D["\1"]=" \3"/p
20196s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20197d
20198:bsnl
20199s/["\\]/\\&/g
20200s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20201D["\1"]=" \3\\\\\\n"\\/p
20202t cont
20203s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20204t cont
20205d
20206:cont
20207n
20208s/.\{148\}/&'"$ac_delim"'/g
20209t clear
20210:clear
20211s/\\$//
20212t bsnlc
20213s/["\\]/\\&/g; s/^/"/; s/$/"/p
20214d
20215:bsnlc
20216s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20217b cont
20218' <confdefs.h | sed '
20219s/'"$ac_delim"'/"\\\
20220"/g' >>$CONFIG_STATUS || ac_write_fail=1
20221
20222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20223  for (key in D) D_is_set[key] = 1
20224  FS = ""
20225}
20226/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20227  line = \$ 0
20228  split(line, arg, " ")
20229  if (arg[1] == "#") {
20230    defundef = arg[2]
20231    mac1 = arg[3]
20232  } else {
20233    defundef = substr(arg[1], 2)
20234    mac1 = arg[2]
20235  }
20236  split(mac1, mac2, "(") #)
20237  macro = mac2[1]
20238  prefix = substr(line, 1, index(line, defundef) - 1)
20239  if (D_is_set[macro]) {
20240    # Preserve the white space surrounding the "#".
20241    print prefix "define", macro P[macro] D[macro]
20242    next
20243  } else {
20244    # Replace #undef with comments.  This is necessary, for example,
20245    # in the case of _POSIX_SOURCE, which is predefined and required
20246    # on some systems where configure will not decide to define it.
20247    if (defundef == "undef") {
20248      print "/*", prefix defundef, macro, "*/"
20249      next
20250    }
20251  }
20252}
20253{ print }
20254_ACAWK
20255_ACEOF
20256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20257  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20258fi # test -n "$CONFIG_HEADERS"
20259
20260
20261eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
20262shift
20263for ac_tag
20264do
20265  case $ac_tag in
20266  :[FHLC]) ac_mode=$ac_tag; continue;;
20267  esac
20268  case $ac_mode$ac_tag in
20269  :[FHL]*:*);;
20270  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20271  :[FH]-) ac_tag=-:-;;
20272  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20273  esac
20274  ac_save_IFS=$IFS
20275  IFS=:
20276  set x $ac_tag
20277  IFS=$ac_save_IFS
20278  shift
20279  ac_file=$1
20280  shift
20281
20282  case $ac_mode in
20283  :L) ac_source=$1;;
20284  :[FH])
20285    ac_file_inputs=
20286    for ac_f
20287    do
20288      case $ac_f in
20289      -) ac_f="$ac_tmp/stdin";;
20290      *) # Look for the file first in the build tree, then in the source tree
20291	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20292	 # because $ac_f cannot contain `:'.
20293	 test -f "$ac_f" ||
20294	   case $ac_f in
20295	   [\\/$]*) false;;
20296	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20297	   esac ||
20298	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20299      esac
20300      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20301      as_fn_append ac_file_inputs " '$ac_f'"
20302    done
20303
20304    # Let's still pretend it is `configure' which instantiates (i.e., don't
20305    # use $as_me), people would be surprised to read:
20306    #    /* config.h.  Generated by config.status.  */
20307    configure_input='Generated from '`
20308	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20309	`' by configure.'
20310    if test x"$ac_file" != x-; then
20311      configure_input="$ac_file.  $configure_input"
20312      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20313$as_echo "$as_me: creating $ac_file" >&6;}
20314    fi
20315    # Neutralize special characters interpreted by sed in replacement strings.
20316    case $configure_input in #(
20317    *\&* | *\|* | *\\* )
20318       ac_sed_conf_input=`$as_echo "$configure_input" |
20319       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20320    *) ac_sed_conf_input=$configure_input;;
20321    esac
20322
20323    case $ac_tag in
20324    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20325      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20326    esac
20327    ;;
20328  esac
20329
20330  ac_dir=`$as_dirname -- "$ac_file" ||
20331$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20332	 X"$ac_file" : 'X\(//\)[^/]' \| \
20333	 X"$ac_file" : 'X\(//\)$' \| \
20334	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20335$as_echo X"$ac_file" |
20336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20337	    s//\1/
20338	    q
20339	  }
20340	  /^X\(\/\/\)[^/].*/{
20341	    s//\1/
20342	    q
20343	  }
20344	  /^X\(\/\/\)$/{
20345	    s//\1/
20346	    q
20347	  }
20348	  /^X\(\/\).*/{
20349	    s//\1/
20350	    q
20351	  }
20352	  s/.*/./; q'`
20353  as_dir="$ac_dir"; as_fn_mkdir_p
20354  ac_builddir=.
20355
20356case "$ac_dir" in
20357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20358*)
20359  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20360  # A ".." for each directory in $ac_dir_suffix.
20361  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20362  case $ac_top_builddir_sub in
20363  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20364  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20365  esac ;;
20366esac
20367ac_abs_top_builddir=$ac_pwd
20368ac_abs_builddir=$ac_pwd$ac_dir_suffix
20369# for backward compatibility:
20370ac_top_builddir=$ac_top_build_prefix
20371
20372case $srcdir in
20373  .)  # We are building in place.
20374    ac_srcdir=.
20375    ac_top_srcdir=$ac_top_builddir_sub
20376    ac_abs_top_srcdir=$ac_pwd ;;
20377  [\\/]* | ?:[\\/]* )  # Absolute name.
20378    ac_srcdir=$srcdir$ac_dir_suffix;
20379    ac_top_srcdir=$srcdir
20380    ac_abs_top_srcdir=$srcdir ;;
20381  *) # Relative name.
20382    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20383    ac_top_srcdir=$ac_top_build_prefix$srcdir
20384    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20385esac
20386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20387
20388
20389  case $ac_mode in
20390  :F)
20391  #
20392  # CONFIG_FILE
20393  #
20394
20395  case $INSTALL in
20396  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20397  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20398  esac
20399  ac_MKDIR_P=$MKDIR_P
20400  case $MKDIR_P in
20401  [\\/$]* | ?:[\\/]* ) ;;
20402  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20403  esac
20404_ACEOF
20405
20406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20407# If the template does not know about datarootdir, expand it.
20408# FIXME: This hack should be removed a few years after 2.60.
20409ac_datarootdir_hack=; ac_datarootdir_seen=
20410ac_sed_dataroot='
20411/datarootdir/ {
20412  p
20413  q
20414}
20415/@datadir@/p
20416/@docdir@/p
20417/@infodir@/p
20418/@localedir@/p
20419/@mandir@/p'
20420case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20421*datarootdir*) ac_datarootdir_seen=yes;;
20422*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20423  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20424$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20425_ACEOF
20426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20427  ac_datarootdir_hack='
20428  s&@datadir@&$datadir&g
20429  s&@docdir@&$docdir&g
20430  s&@infodir@&$infodir&g
20431  s&@localedir@&$localedir&g
20432  s&@mandir@&$mandir&g
20433  s&\\\${datarootdir}&$datarootdir&g' ;;
20434esac
20435_ACEOF
20436
20437# Neutralize VPATH when `$srcdir' = `.'.
20438# Shell code in configure.ac might set extrasub.
20439# FIXME: do we really want to maintain this feature?
20440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20441ac_sed_extra="$ac_vpsub
20442$extrasub
20443_ACEOF
20444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20445:t
20446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20447s|@configure_input@|$ac_sed_conf_input|;t t
20448s&@top_builddir@&$ac_top_builddir_sub&;t t
20449s&@top_build_prefix@&$ac_top_build_prefix&;t t
20450s&@srcdir@&$ac_srcdir&;t t
20451s&@abs_srcdir@&$ac_abs_srcdir&;t t
20452s&@top_srcdir@&$ac_top_srcdir&;t t
20453s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20454s&@builddir@&$ac_builddir&;t t
20455s&@abs_builddir@&$ac_abs_builddir&;t t
20456s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20457s&@INSTALL@&$ac_INSTALL&;t t
20458s&@MKDIR_P@&$ac_MKDIR_P&;t t
20459$ac_datarootdir_hack
20460"
20461eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20462  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20463
20464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20465  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20466  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20467      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20468  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20469which seems to be undefined.  Please make sure it is defined" >&5
20470$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20471which seems to be undefined.  Please make sure it is defined" >&2;}
20472
20473  rm -f "$ac_tmp/stdin"
20474  case $ac_file in
20475  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20476  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20477  esac \
20478  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20479 ;;
20480  :H)
20481  #
20482  # CONFIG_HEADER
20483  #
20484  if test x"$ac_file" != x-; then
20485    {
20486      $as_echo "/* $configure_input  */" \
20487      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20488    } >"$ac_tmp/config.h" \
20489      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20490    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20491      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20492$as_echo "$as_me: $ac_file is unchanged" >&6;}
20493    else
20494      rm -f "$ac_file"
20495      mv "$ac_tmp/config.h" "$ac_file" \
20496	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20497    fi
20498  else
20499    $as_echo "/* $configure_input  */" \
20500      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20501      || as_fn_error $? "could not create -" "$LINENO" 5
20502  fi
20503# Compute "$ac_file"'s index in $config_headers.
20504_am_arg="$ac_file"
20505_am_stamp_count=1
20506for _am_header in $config_headers :; do
20507  case $_am_header in
20508    $_am_arg | $_am_arg:* )
20509      break ;;
20510    * )
20511      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20512  esac
20513done
20514echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20515$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20516	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20517	 X"$_am_arg" : 'X\(//\)$' \| \
20518	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20519$as_echo X"$_am_arg" |
20520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20521	    s//\1/
20522	    q
20523	  }
20524	  /^X\(\/\/\)[^/].*/{
20525	    s//\1/
20526	    q
20527	  }
20528	  /^X\(\/\/\)$/{
20529	    s//\1/
20530	    q
20531	  }
20532	  /^X\(\/\).*/{
20533	    s//\1/
20534	    q
20535	  }
20536	  s/.*/./; q'`/stamp-h$_am_stamp_count
20537 ;;
20538  :L)
20539  #
20540  # CONFIG_LINK
20541  #
20542
20543  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20544    :
20545  else
20546    # Prefer the file from the source tree if names are identical.
20547    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20548      ac_source=$srcdir/$ac_source
20549    fi
20550
20551    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20552$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20553
20554    if test ! -r "$ac_source"; then
20555      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20556    fi
20557    rm -f "$ac_file"
20558
20559    # Try a relative symlink, then a hard link, then a copy.
20560    case $ac_source in
20561    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20562	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20563    esac
20564    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20565      ln "$ac_source" "$ac_file" 2>/dev/null ||
20566      cp -p "$ac_source" "$ac_file" ||
20567      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20568  fi
20569 ;;
20570  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20571$as_echo "$as_me: executing $ac_file commands" >&6;}
20572 ;;
20573  esac
20574
20575
20576  case $ac_file$ac_mode in
20577    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20578  # Older Autoconf quotes --file arguments for eval, but not when files
20579  # are listed without --file.  Let's play safe and only enable the eval
20580  # if we detect the quoting.
20581  case $CONFIG_FILES in
20582  *\'*) eval set x "$CONFIG_FILES" ;;
20583  *)   set x $CONFIG_FILES ;;
20584  esac
20585  shift
20586  for mf
20587  do
20588    # Strip MF so we end up with the name of the file.
20589    mf=`echo "$mf" | sed -e 's/:.*$//'`
20590    # Check whether this is an Automake generated Makefile or not.
20591    # We used to match only the files named 'Makefile.in', but
20592    # some people rename them; so instead we look at the file content.
20593    # Grep'ing the first line is not enough: some people post-process
20594    # each Makefile.in and add a new line on top of each file to say so.
20595    # Grep'ing the whole file is not good either: AIX grep has a line
20596    # limit of 2048, but all sed's we know have understand at least 4000.
20597    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20598      dirpart=`$as_dirname -- "$mf" ||
20599$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20600	 X"$mf" : 'X\(//\)[^/]' \| \
20601	 X"$mf" : 'X\(//\)$' \| \
20602	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20603$as_echo X"$mf" |
20604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20605	    s//\1/
20606	    q
20607	  }
20608	  /^X\(\/\/\)[^/].*/{
20609	    s//\1/
20610	    q
20611	  }
20612	  /^X\(\/\/\)$/{
20613	    s//\1/
20614	    q
20615	  }
20616	  /^X\(\/\).*/{
20617	    s//\1/
20618	    q
20619	  }
20620	  s/.*/./; q'`
20621    else
20622      continue
20623    fi
20624    # Extract the definition of DEPDIR, am__include, and am__quote
20625    # from the Makefile without running 'make'.
20626    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20627    test -z "$DEPDIR" && continue
20628    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20629    test -z "$am__include" && continue
20630    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20631    # Find all dependency output files, they are included files with
20632    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20633    # simplest approach to changing $(DEPDIR) to its actual value in the
20634    # expansion.
20635    for file in `sed -n "
20636      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20637	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20638      # Make sure the directory exists.
20639      test -f "$dirpart/$file" && continue
20640      fdir=`$as_dirname -- "$file" ||
20641$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20642	 X"$file" : 'X\(//\)[^/]' \| \
20643	 X"$file" : 'X\(//\)$' \| \
20644	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20645$as_echo X"$file" |
20646    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20647	    s//\1/
20648	    q
20649	  }
20650	  /^X\(\/\/\)[^/].*/{
20651	    s//\1/
20652	    q
20653	  }
20654	  /^X\(\/\/\)$/{
20655	    s//\1/
20656	    q
20657	  }
20658	  /^X\(\/\).*/{
20659	    s//\1/
20660	    q
20661	  }
20662	  s/.*/./; q'`
20663      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20664      # echo "creating $dirpart/$file"
20665      echo '# dummy' > "$dirpart/$file"
20666    done
20667  done
20668}
20669 ;;
20670    "libtool":C)
20671
20672    # See if we are running on zsh, and set the options that allow our
20673    # commands through without removal of \ escapes.
20674    if test -n "${ZSH_VERSION+set}"; then
20675      setopt NO_GLOB_SUBST
20676    fi
20677
20678    cfgfile=${ofile}T
20679    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20680    $RM "$cfgfile"
20681
20682    cat <<_LT_EOF >> "$cfgfile"
20683#! $SHELL
20684# Generated automatically by $as_me ($PACKAGE) $VERSION
20685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20686# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20687
20688# Provide generalized library-building support services.
20689# Written by Gordon Matzigkeit, 1996
20690
20691# Copyright (C) 2014 Free Software Foundation, Inc.
20692# This is free software; see the source for copying conditions.  There is NO
20693# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20694
20695# GNU Libtool is free software; you can redistribute it and/or modify
20696# it under the terms of the GNU General Public License as published by
20697# the Free Software Foundation; either version 2 of of the License, or
20698# (at your option) any later version.
20699#
20700# As a special exception to the GNU General Public License, if you
20701# distribute this file as part of a program or library that is built
20702# using GNU Libtool, you may include this file under the  same
20703# distribution terms that you use for the rest of that program.
20704#
20705# GNU Libtool is distributed in the hope that it will be useful, but
20706# WITHOUT ANY WARRANTY; without even the implied warranty of
20707# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20708# GNU General Public License for more details.
20709#
20710# You should have received a copy of the GNU General Public License
20711# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20712
20713
20714# The names of the tagged configurations supported by this script.
20715available_tags=''
20716
20717# Configured defaults for sys_lib_dlsearch_path munging.
20718: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20719
20720# ### BEGIN LIBTOOL CONFIG
20721
20722# Whether or not to build static libraries.
20723build_old_libs=$enable_static
20724
20725# Which release of libtool.m4 was used?
20726macro_version=$macro_version
20727macro_revision=$macro_revision
20728
20729# Whether or not to build shared libraries.
20730build_libtool_libs=$enable_shared
20731
20732# What type of objects to build.
20733pic_mode=$pic_mode
20734
20735# Whether or not to optimize for fast installation.
20736fast_install=$enable_fast_install
20737
20738# Shared archive member basename,for filename based shared library versioning on AIX.
20739shared_archive_member_spec=$shared_archive_member_spec
20740
20741# Shell to use when invoking shell scripts.
20742SHELL=$lt_SHELL
20743
20744# An echo program that protects backslashes.
20745ECHO=$lt_ECHO
20746
20747# The PATH separator for the build system.
20748PATH_SEPARATOR=$lt_PATH_SEPARATOR
20749
20750# The host system.
20751host_alias=$host_alias
20752host=$host
20753host_os=$host_os
20754
20755# The build system.
20756build_alias=$build_alias
20757build=$build
20758build_os=$build_os
20759
20760# A sed program that does not truncate output.
20761SED=$lt_SED
20762
20763# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20764Xsed="\$SED -e 1s/^X//"
20765
20766# A grep program that handles long lines.
20767GREP=$lt_GREP
20768
20769# An ERE matcher.
20770EGREP=$lt_EGREP
20771
20772# A literal string matcher.
20773FGREP=$lt_FGREP
20774
20775# A BSD- or MS-compatible name lister.
20776NM=$lt_NM
20777
20778# Whether we need soft or hard links.
20779LN_S=$lt_LN_S
20780
20781# What is the maximum length of a command?
20782max_cmd_len=$max_cmd_len
20783
20784# Object file suffix (normally "o").
20785objext=$ac_objext
20786
20787# Executable file suffix (normally "").
20788exeext=$exeext
20789
20790# whether the shell understands "unset".
20791lt_unset=$lt_unset
20792
20793# turn spaces into newlines.
20794SP2NL=$lt_lt_SP2NL
20795
20796# turn newlines into spaces.
20797NL2SP=$lt_lt_NL2SP
20798
20799# convert \$build file names to \$host format.
20800to_host_file_cmd=$lt_cv_to_host_file_cmd
20801
20802# convert \$build files to toolchain format.
20803to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20804
20805# An object symbol dumper.
20806OBJDUMP=$lt_OBJDUMP
20807
20808# Method to check whether dependent libraries are shared objects.
20809deplibs_check_method=$lt_deplibs_check_method
20810
20811# Command to use when deplibs_check_method = "file_magic".
20812file_magic_cmd=$lt_file_magic_cmd
20813
20814# How to find potential files when deplibs_check_method = "file_magic".
20815file_magic_glob=$lt_file_magic_glob
20816
20817# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20818want_nocaseglob=$lt_want_nocaseglob
20819
20820# DLL creation program.
20821DLLTOOL=$lt_DLLTOOL
20822
20823# Command to associate shared and link libraries.
20824sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20825
20826# The archiver.
20827AR=$lt_AR
20828
20829# Flags to create an archive.
20830AR_FLAGS=$lt_AR_FLAGS
20831
20832# How to feed a file listing to the archiver.
20833archiver_list_spec=$lt_archiver_list_spec
20834
20835# A symbol stripping program.
20836STRIP=$lt_STRIP
20837
20838# Commands used to install an old-style archive.
20839RANLIB=$lt_RANLIB
20840old_postinstall_cmds=$lt_old_postinstall_cmds
20841old_postuninstall_cmds=$lt_old_postuninstall_cmds
20842
20843# Whether to use a lock for old archive extraction.
20844lock_old_archive_extraction=$lock_old_archive_extraction
20845
20846# A C compiler.
20847LTCC=$lt_CC
20848
20849# LTCC compiler flags.
20850LTCFLAGS=$lt_CFLAGS
20851
20852# Take the output of nm and produce a listing of raw symbols and C names.
20853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20854
20855# Transform the output of nm in a proper C declaration.
20856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20857
20858# Transform the output of nm into a list of symbols to manually relocate.
20859global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20860
20861# Transform the output of nm in a C name address pair.
20862global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20863
20864# Transform the output of nm in a C name address pair when lib prefix is needed.
20865global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20866
20867# The name lister interface.
20868nm_interface=$lt_lt_cv_nm_interface
20869
20870# Specify filename containing input files for \$NM.
20871nm_file_list_spec=$lt_nm_file_list_spec
20872
20873# The root where to search for dependent libraries,and where our libraries should be installed.
20874lt_sysroot=$lt_sysroot
20875
20876# Command to truncate a binary pipe.
20877lt_truncate_bin=$lt_lt_cv_truncate_bin
20878
20879# The name of the directory that contains temporary libtool files.
20880objdir=$objdir
20881
20882# Used to examine libraries when file_magic_cmd begins with "file".
20883MAGIC_CMD=$MAGIC_CMD
20884
20885# Must we lock files when doing compilation?
20886need_locks=$lt_need_locks
20887
20888# Manifest tool.
20889MANIFEST_TOOL=$lt_MANIFEST_TOOL
20890
20891# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20892DSYMUTIL=$lt_DSYMUTIL
20893
20894# Tool to change global to local symbols on Mac OS X.
20895NMEDIT=$lt_NMEDIT
20896
20897# Tool to manipulate fat objects and archives on Mac OS X.
20898LIPO=$lt_LIPO
20899
20900# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20901OTOOL=$lt_OTOOL
20902
20903# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20904OTOOL64=$lt_OTOOL64
20905
20906# Old archive suffix (normally "a").
20907libext=$libext
20908
20909# Shared library suffix (normally ".so").
20910shrext_cmds=$lt_shrext_cmds
20911
20912# The commands to extract the exported symbol list from a shared archive.
20913extract_expsyms_cmds=$lt_extract_expsyms_cmds
20914
20915# Variables whose values should be saved in libtool wrapper scripts and
20916# restored at link time.
20917variables_saved_for_relink=$lt_variables_saved_for_relink
20918
20919# Do we need the "lib" prefix for modules?
20920need_lib_prefix=$need_lib_prefix
20921
20922# Do we need a version for libraries?
20923need_version=$need_version
20924
20925# Library versioning type.
20926version_type=$version_type
20927
20928# Shared library runtime path variable.
20929runpath_var=$runpath_var
20930
20931# Shared library path variable.
20932shlibpath_var=$shlibpath_var
20933
20934# Is shlibpath searched before the hard-coded library search path?
20935shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20936
20937# Format of library name prefix.
20938libname_spec=$lt_libname_spec
20939
20940# List of archive names.  First name is the real one, the rest are links.
20941# The last name is the one that the linker finds with -lNAME
20942library_names_spec=$lt_library_names_spec
20943
20944# The coded name of the library, if different from the real name.
20945soname_spec=$lt_soname_spec
20946
20947# Permission mode override for installation of shared libraries.
20948install_override_mode=$lt_install_override_mode
20949
20950# Command to use after installation of a shared archive.
20951postinstall_cmds=$lt_postinstall_cmds
20952
20953# Command to use after uninstallation of a shared archive.
20954postuninstall_cmds=$lt_postuninstall_cmds
20955
20956# Commands used to finish a libtool library installation in a directory.
20957finish_cmds=$lt_finish_cmds
20958
20959# As "finish_cmds", except a single script fragment to be evaled but
20960# not shown.
20961finish_eval=$lt_finish_eval
20962
20963# Whether we should hardcode library paths into libraries.
20964hardcode_into_libs=$hardcode_into_libs
20965
20966# Compile-time system search path for libraries.
20967sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20968
20969# Detected run-time system search path for libraries.
20970sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20971
20972# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20973configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20974
20975# Whether dlopen is supported.
20976dlopen_support=$enable_dlopen
20977
20978# Whether dlopen of programs is supported.
20979dlopen_self=$enable_dlopen_self
20980
20981# Whether dlopen of statically linked programs is supported.
20982dlopen_self_static=$enable_dlopen_self_static
20983
20984# Commands to strip libraries.
20985old_striplib=$lt_old_striplib
20986striplib=$lt_striplib
20987
20988
20989# The linker used to build libraries.
20990LD=$lt_LD
20991
20992# How to create reloadable object files.
20993reload_flag=$lt_reload_flag
20994reload_cmds=$lt_reload_cmds
20995
20996# Commands used to build an old-style archive.
20997old_archive_cmds=$lt_old_archive_cmds
20998
20999# A language specific compiler.
21000CC=$lt_compiler
21001
21002# Is the compiler the GNU compiler?
21003with_gcc=$GCC
21004
21005# Compiler flag to turn off builtin functions.
21006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21007
21008# Additional compiler flags for building library objects.
21009pic_flag=$lt_lt_prog_compiler_pic
21010
21011# How to pass a linker flag through the compiler.
21012wl=$lt_lt_prog_compiler_wl
21013
21014# Compiler flag to prevent dynamic linking.
21015link_static_flag=$lt_lt_prog_compiler_static
21016
21017# Does compiler simultaneously support -c and -o options?
21018compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21019
21020# Whether or not to add -lc for building shared libraries.
21021build_libtool_need_lc=$archive_cmds_need_lc
21022
21023# Whether or not to disallow shared libs when runtime libs are static.
21024allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21025
21026# Compiler flag to allow reflexive dlopens.
21027export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21028
21029# Compiler flag to generate shared objects directly from archives.
21030whole_archive_flag_spec=$lt_whole_archive_flag_spec
21031
21032# Whether the compiler copes with passing no objects directly.
21033compiler_needs_object=$lt_compiler_needs_object
21034
21035# Create an old-style archive from a shared archive.
21036old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21037
21038# Create a temporary old-style archive to link instead of a shared archive.
21039old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21040
21041# Commands used to build a shared archive.
21042archive_cmds=$lt_archive_cmds
21043archive_expsym_cmds=$lt_archive_expsym_cmds
21044
21045# Commands used to build a loadable module if different from building
21046# a shared archive.
21047module_cmds=$lt_module_cmds
21048module_expsym_cmds=$lt_module_expsym_cmds
21049
21050# Whether we are building with GNU ld or not.
21051with_gnu_ld=$lt_with_gnu_ld
21052
21053# Flag that allows shared libraries with undefined symbols to be built.
21054allow_undefined_flag=$lt_allow_undefined_flag
21055
21056# Flag that enforces no undefined symbols.
21057no_undefined_flag=$lt_no_undefined_flag
21058
21059# Flag to hardcode \$libdir into a binary during linking.
21060# This must work even if \$libdir does not exist
21061hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21062
21063# Whether we need a single "-rpath" flag with a separated argument.
21064hardcode_libdir_separator=$lt_hardcode_libdir_separator
21065
21066# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21067# DIR into the resulting binary.
21068hardcode_direct=$hardcode_direct
21069
21070# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21071# DIR into the resulting binary and the resulting library dependency is
21072# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21073# library is relocated.
21074hardcode_direct_absolute=$hardcode_direct_absolute
21075
21076# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21077# into the resulting binary.
21078hardcode_minus_L=$hardcode_minus_L
21079
21080# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21081# into the resulting binary.
21082hardcode_shlibpath_var=$hardcode_shlibpath_var
21083
21084# Set to "yes" if building a shared library automatically hardcodes DIR
21085# into the library and all subsequent libraries and executables linked
21086# against it.
21087hardcode_automatic=$hardcode_automatic
21088
21089# Set to yes if linker adds runtime paths of dependent libraries
21090# to runtime path list.
21091inherit_rpath=$inherit_rpath
21092
21093# Whether libtool must link a program against all its dependency libraries.
21094link_all_deplibs=$link_all_deplibs
21095
21096# Set to "yes" if exported symbols are required.
21097always_export_symbols=$always_export_symbols
21098
21099# The commands to list exported symbols.
21100export_symbols_cmds=$lt_export_symbols_cmds
21101
21102# Symbols that should not be listed in the preloaded symbols.
21103exclude_expsyms=$lt_exclude_expsyms
21104
21105# Symbols that must always be exported.
21106include_expsyms=$lt_include_expsyms
21107
21108# Commands necessary for linking programs (against libraries) with templates.
21109prelink_cmds=$lt_prelink_cmds
21110
21111# Commands necessary for finishing linking programs.
21112postlink_cmds=$lt_postlink_cmds
21113
21114# Specify filename containing input files.
21115file_list_spec=$lt_file_list_spec
21116
21117# How to hardcode a shared library path into an executable.
21118hardcode_action=$hardcode_action
21119
21120# ### END LIBTOOL CONFIG
21121
21122_LT_EOF
21123
21124    cat <<'_LT_EOF' >> "$cfgfile"
21125
21126# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21127
21128# func_munge_path_list VARIABLE PATH
21129# -----------------------------------
21130# VARIABLE is name of variable containing _space_ separated list of
21131# directories to be munged by the contents of PATH, which is string
21132# having a format:
21133# "DIR[:DIR]:"
21134#       string "DIR[ DIR]" will be prepended to VARIABLE
21135# ":DIR[:DIR]"
21136#       string "DIR[ DIR]" will be appended to VARIABLE
21137# "DIRP[:DIRP]::[DIRA:]DIRA"
21138#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21139#       "DIRA[ DIRA]" will be appended to VARIABLE
21140# "DIR[:DIR]"
21141#       VARIABLE will be replaced by "DIR[ DIR]"
21142func_munge_path_list ()
21143{
21144    case x$2 in
21145    x)
21146        ;;
21147    *:)
21148        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21149        ;;
21150    x:*)
21151        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21152        ;;
21153    *::*)
21154        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21155        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21156        ;;
21157    *)
21158        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21159        ;;
21160    esac
21161}
21162
21163
21164# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21165func_cc_basename ()
21166{
21167    for cc_temp in $*""; do
21168      case $cc_temp in
21169        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21170        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21171        \-*) ;;
21172        *) break;;
21173      esac
21174    done
21175    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21176}
21177
21178
21179# ### END FUNCTIONS SHARED WITH CONFIGURE
21180
21181_LT_EOF
21182
21183  case $host_os in
21184  aix3*)
21185    cat <<\_LT_EOF >> "$cfgfile"
21186# AIX sometimes has problems with the GCC collect2 program.  For some
21187# reason, if we set the COLLECT_NAMES environment variable, the problems
21188# vanish in a puff of smoke.
21189if test set != "${COLLECT_NAMES+set}"; then
21190  COLLECT_NAMES=
21191  export COLLECT_NAMES
21192fi
21193_LT_EOF
21194    ;;
21195  esac
21196
21197
21198ltmain=$ac_aux_dir/ltmain.sh
21199
21200
21201  # We use sed instead of cat because bash on DJGPP gets confused if
21202  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21203  # text mode, it properly converts lines to CR/LF.  This bash problem
21204  # is reportedly fixed, but why not run on old versions too?
21205  sed '$q' "$ltmain" >> "$cfgfile" \
21206     || (rm -f "$cfgfile"; exit 1)
21207
21208   mv -f "$cfgfile" "$ofile" ||
21209    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21210  chmod +x "$ofile"
21211
21212 ;;
21213
21214  esac
21215done # for ac_tag
21216
21217
21218as_fn_exit 0
21219_ACEOF
21220ac_clean_files=$ac_clean_files_save
21221
21222test $ac_write_fail = 0 ||
21223  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21224
21225
21226# configure is writing to config.log, and then calls config.status.
21227# config.status does its own redirection, appending to config.log.
21228# Unfortunately, on DOS this fails, as config.log is still kept open
21229# by configure, so config.status won't be able to write to it; its
21230# output is simply discarded.  So we exec the FD to /dev/null,
21231# effectively closing config.log, so it can be properly (re)opened and
21232# appended to by config.status.  When coming back to configure, we
21233# need to make the FD available again.
21234if test "$no_create" != yes; then
21235  ac_cs_success=:
21236  ac_config_status_args=
21237  test "$silent" = yes &&
21238    ac_config_status_args="$ac_config_status_args --quiet"
21239  exec 5>/dev/null
21240  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21241  exec 5>>config.log
21242  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21243  # would make configure fail if this is the last instruction.
21244  $ac_cs_success || as_fn_exit 1
21245fi
21246if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21247  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21248$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21249fi
21250
21251