1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsha1 1.21.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
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: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
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='libsha1'
592PACKAGE_TARNAME='libsha1'
593PACKAGE_VERSION='1.21'
594PACKAGE_STRING='libsha1 1.21'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="hmac.c"
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_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CPP
640LT_SYS_LIBRARY_PATH
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646MANIFEST_TOOL
647RANLIB
648ac_ct_AR
649AR
650DLLTOOL
651OBJDUMP
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
668LIBTOOL
669LN_S
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686HMACC_FALSE
687HMACC_TRUE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL
753am__quote'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_silent_rules
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_aix_soname
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767with_int32
768with_int64
769enable_largefile
770'
771      ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779LT_SYS_LIBRARY_PATH
780CPP'
781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
786ac_unrecognized_opts=
787ac_unrecognized_sep=
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
830
831ac_prev=
832ac_dashdash=
833for ac_option
834do
835  # If the previous option needs an argument, assign it.
836  if test -n "$ac_prev"; then
837    eval $ac_prev=\$ac_option
838    ac_prev=
839    continue
840  fi
841
842  case $ac_option in
843  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844  *=)   ac_optarg= ;;
845  *)    ac_optarg=yes ;;
846  esac
847
848  # Accept the important Cygnus configure options, so we can diagnose typos.
849
850  case $ac_dashdash$ac_option in
851  --)
852    ac_dashdash=yes ;;
853
854  -bindir | --bindir | --bindi | --bind | --bin | --bi)
855    ac_prev=bindir ;;
856  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857    bindir=$ac_optarg ;;
858
859  -build | --build | --buil | --bui | --bu)
860    ac_prev=build_alias ;;
861  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862    build_alias=$ac_optarg ;;
863
864  -cache-file | --cache-file | --cache-fil | --cache-fi \
865  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866    ac_prev=cache_file ;;
867  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869    cache_file=$ac_optarg ;;
870
871  --config-cache | -C)
872    cache_file=config.cache ;;
873
874  -datadir | --datadir | --datadi | --datad)
875    ac_prev=datadir ;;
876  -datadir=* | --datadir=* | --datadi=* | --datad=*)
877    datadir=$ac_optarg ;;
878
879  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880  | --dataroo | --dataro | --datar)
881    ac_prev=datarootdir ;;
882  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884    datarootdir=$ac_optarg ;;
885
886  -disable-* | --disable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=no ;;
901
902  -docdir | --docdir | --docdi | --doc | --do)
903    ac_prev=docdir ;;
904  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905    docdir=$ac_optarg ;;
906
907  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908    ac_prev=dvidir ;;
909  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910    dvidir=$ac_optarg ;;
911
912  -enable-* | --enable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=\$ac_optarg ;;
927
928  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930  | --exec | --exe | --ex)
931    ac_prev=exec_prefix ;;
932  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934  | --exec=* | --exe=* | --ex=*)
935    exec_prefix=$ac_optarg ;;
936
937  -gas | --gas | --ga | --g)
938    # Obsolete; use --with-gas.
939    with_gas=yes ;;
940
941  -help | --help | --hel | --he | -h)
942    ac_init_help=long ;;
943  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944    ac_init_help=recursive ;;
945  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946    ac_init_help=short ;;
947
948  -host | --host | --hos | --ho)
949    ac_prev=host_alias ;;
950  -host=* | --host=* | --hos=* | --ho=*)
951    host_alias=$ac_optarg ;;
952
953  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954    ac_prev=htmldir ;;
955  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956  | --ht=*)
957    htmldir=$ac_optarg ;;
958
959  -includedir | --includedir | --includedi | --included | --include \
960  | --includ | --inclu | --incl | --inc)
961    ac_prev=includedir ;;
962  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963  | --includ=* | --inclu=* | --incl=* | --inc=*)
964    includedir=$ac_optarg ;;
965
966  -infodir | --infodir | --infodi | --infod | --info | --inf)
967    ac_prev=infodir ;;
968  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969    infodir=$ac_optarg ;;
970
971  -libdir | --libdir | --libdi | --libd)
972    ac_prev=libdir ;;
973  -libdir=* | --libdir=* | --libdi=* | --libd=*)
974    libdir=$ac_optarg ;;
975
976  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977  | --libexe | --libex | --libe)
978    ac_prev=libexecdir ;;
979  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980  | --libexe=* | --libex=* | --libe=*)
981    libexecdir=$ac_optarg ;;
982
983  -localedir | --localedir | --localedi | --localed | --locale)
984    ac_prev=localedir ;;
985  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986    localedir=$ac_optarg ;;
987
988  -localstatedir | --localstatedir | --localstatedi | --localstated \
989  | --localstate | --localstat | --localsta | --localst | --locals)
990    ac_prev=localstatedir ;;
991  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993    localstatedir=$ac_optarg ;;
994
995  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996    ac_prev=mandir ;;
997  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998    mandir=$ac_optarg ;;
999
1000  -nfp | --nfp | --nf)
1001    # Obsolete; use --without-fp.
1002    with_fp=no ;;
1003
1004  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005  | --no-cr | --no-c | -n)
1006    no_create=yes ;;
1007
1008  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010    no_recursion=yes ;;
1011
1012  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014  | --oldin | --oldi | --old | --ol | --o)
1015    ac_prev=oldincludedir ;;
1016  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019    oldincludedir=$ac_optarg ;;
1020
1021  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022    ac_prev=prefix ;;
1023  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024    prefix=$ac_optarg ;;
1025
1026  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027  | --program-pre | --program-pr | --program-p)
1028    ac_prev=program_prefix ;;
1029  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031    program_prefix=$ac_optarg ;;
1032
1033  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034  | --program-suf | --program-su | --program-s)
1035    ac_prev=program_suffix ;;
1036  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038    program_suffix=$ac_optarg ;;
1039
1040  -program-transform-name | --program-transform-name \
1041  | --program-transform-nam | --program-transform-na \
1042  | --program-transform-n | --program-transform- \
1043  | --program-transform | --program-transfor \
1044  | --program-transfo | --program-transf \
1045  | --program-trans | --program-tran \
1046  | --progr-tra | --program-tr | --program-t)
1047    ac_prev=program_transform_name ;;
1048  -program-transform-name=* | --program-transform-name=* \
1049  | --program-transform-nam=* | --program-transform-na=* \
1050  | --program-transform-n=* | --program-transform-=* \
1051  | --program-transform=* | --program-transfor=* \
1052  | --program-transfo=* | --program-transf=* \
1053  | --program-trans=* | --program-tran=* \
1054  | --progr-tra=* | --program-tr=* | --program-t=*)
1055    program_transform_name=$ac_optarg ;;
1056
1057  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058    ac_prev=pdfdir ;;
1059  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060    pdfdir=$ac_optarg ;;
1061
1062  -psdir | --psdir | --psdi | --psd | --ps)
1063    ac_prev=psdir ;;
1064  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065    psdir=$ac_optarg ;;
1066
1067  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068  | -silent | --silent | --silen | --sile | --sil)
1069    silent=yes ;;
1070
1071  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072    ac_prev=sbindir ;;
1073  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074  | --sbi=* | --sb=*)
1075    sbindir=$ac_optarg ;;
1076
1077  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079  | --sharedst | --shareds | --shared | --share | --shar \
1080  | --sha | --sh)
1081    ac_prev=sharedstatedir ;;
1082  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085  | --sha=* | --sh=*)
1086    sharedstatedir=$ac_optarg ;;
1087
1088  -site | --site | --sit)
1089    ac_prev=site ;;
1090  -site=* | --site=* | --sit=*)
1091    site=$ac_optarg ;;
1092
1093  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094    ac_prev=srcdir ;;
1095  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096    srcdir=$ac_optarg ;;
1097
1098  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099  | --syscon | --sysco | --sysc | --sys | --sy)
1100    ac_prev=sysconfdir ;;
1101  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103    sysconfdir=$ac_optarg ;;
1104
1105  -target | --target | --targe | --targ | --tar | --ta | --t)
1106    ac_prev=target_alias ;;
1107  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108    target_alias=$ac_optarg ;;
1109
1110  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111    verbose=yes ;;
1112
1113  -version | --version | --versio | --versi | --vers | -V)
1114    ac_init_version=: ;;
1115
1116  -with-* | --with-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error $? "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=\$ac_optarg ;;
1131
1132  -without-* | --without-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=no ;;
1147
1148  --x)
1149    # Obsolete; use --with-x.
1150    with_x=yes ;;
1151
1152  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153  | --x-incl | --x-inc | --x-in | --x-i)
1154    ac_prev=x_includes ;;
1155  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157    x_includes=$ac_optarg ;;
1158
1159  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161    ac_prev=x_libraries ;;
1162  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164    x_libraries=$ac_optarg ;;
1165
1166  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
1168    ;;
1169
1170  *=*)
1171    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172    # Reject names that are not valid shell variable names.
1173    case $ac_envvar in #(
1174      '' | [0-9]* | *[!_$as_cr_alnum]* )
1175      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176    esac
1177    eval $ac_envvar=\$ac_optarg
1178    export $ac_envvar ;;
1179
1180  *)
1181    # FIXME: should be removed in autoconf 3.0.
1182    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186    ;;
1187
1188  esac
1189done
1190
1191if test -n "$ac_prev"; then
1192  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193  as_fn_error $? "missing argument to $ac_option"
1194fi
1195
1196if test -n "$ac_unrecognized_opts"; then
1197  case $enable_option_checking in
1198    no) ;;
1199    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201  esac
1202fi
1203
1204# Check all directory arguments for consistency.
1205for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206		datadir sysconfdir sharedstatedir localstatedir includedir \
1207		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208		libdir localedir mandir
1209do
1210  eval ac_val=\$$ac_var
1211  # Remove trailing slashes.
1212  case $ac_val in
1213    */ )
1214      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215      eval $ac_var=\$ac_val;;
1216  esac
1217  # Be sure to have absolute directory names.
1218  case $ac_val in
1219    [\\/$]* | ?:[\\/]* )  continue;;
1220    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221  esac
1222  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234  if test "x$build_alias" = x; then
1235    cross_compiling=maybe
1236  elif test "x$build_alias" != "x$host_alias"; then
1237    cross_compiling=yes
1238  fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250  as_fn_error $? "working directory cannot be determined"
1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252  as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257  ac_srcdir_defaulted=yes
1258  # Try the directory containing this script, then the parent directory.
1259  ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261	 X"$as_myself" : 'X\(//\)[^/]' \| \
1262	 X"$as_myself" : 'X\(//\)$' \| \
1263	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
1265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)[^/].*/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\/\)$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\).*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  s/.*/./; q'`
1282  srcdir=$ac_confdir
1283  if test ! -r "$srcdir/$ac_unique_file"; then
1284    srcdir=..
1285  fi
1286else
1287  ac_srcdir_defaulted=no
1288fi
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
1295	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296	pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299  srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_env_${ac_var}_value=\$${ac_var}
1310  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318  # Omit some internal or obsolete options to make the list less imposing.
1319  # This message is too long to be a string in the A/UX 3.1 sh.
1320  cat <<_ACEOF
1321\`configure' configures libsha1 1.21 to adapt to many kinds of systems.
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331  -h, --help              display this help and exit
1332      --help=short        display options specific to this package
1333      --help=recursive    display the short help of all the included packages
1334  -V, --version           display version information and exit
1335  -q, --quiet, --silent   do not print \`checking ...' messages
1336      --cache-file=FILE   cache test results in FILE [disabled]
1337  -C, --config-cache      alias for \`--cache-file=config.cache'
1338  -n, --no-create         do not create output files
1339      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341Installation directories:
1342  --prefix=PREFIX         install architecture-independent files in PREFIX
1343                          [$ac_default_prefix]
1344  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                          [PREFIX]
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
1355  --bindir=DIR            user executables [EPREFIX/bin]
1356  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1357  --libexecdir=DIR        program executables [EPREFIX/libexec]
1358  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1359  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1360  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1361  --libdir=DIR            object code libraries [EPREFIX/lib]
1362  --includedir=DIR        C header files [PREFIX/include]
1363  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1364  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1365  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1366  --infodir=DIR           info documentation [DATAROOTDIR/info]
1367  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1368  --mandir=DIR            man documentation [DATAROOTDIR/man]
1369  --docdir=DIR            documentation root [DATAROOTDIR/doc/libsha1]
1370  --htmldir=DIR           html documentation [DOCDIR]
1371  --dvidir=DIR            dvi documentation [DOCDIR]
1372  --pdfdir=DIR            pdf documentation [DOCDIR]
1373  --psdir=DIR             ps documentation [DOCDIR]
1374_ACEOF
1375
1376  cat <<\_ACEOF
1377
1378Program names:
1379  --program-prefix=PREFIX            prepend PREFIX to installed program names
1380  --program-suffix=SUFFIX            append SUFFIX to installed program names
1381  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1382
1383System types:
1384  --build=BUILD     configure for building on BUILD [guessed]
1385  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390  case $ac_init_help in
1391     short | recursive ) echo "Configuration of libsha1 1.21:";;
1392   esac
1393  cat <<\_ACEOF
1394
1395Optional Features:
1396  --disable-option-checking  ignore unrecognized --enable/--with options
1397  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1398  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1399  --enable-silent-rules   less verbose build output (undo: "make V=1")
1400  --disable-silent-rules  verbose build output (undo: "make V=0")
1401  --enable-dependency-tracking
1402                          do not reject slow dependency extractors
1403  --disable-dependency-tracking
1404                          speeds up one-time build
1405  --enable-shared[=PKGS]  build shared libraries [default=yes]
1406  --enable-static[=PKGS]  build static libraries [default=yes]
1407  --enable-fast-install[=PKGS]
1408                          optimize for fast installation [default=yes]
1409  --disable-libtool-lock  avoid locking (might break parallel builds)
1410  --disable-largefile     omit support for large files
1411
1412Optional Packages:
1413  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1416                          both]
1417  --with-aix-soname=aix|svr4|both
1418                          shared library versioning (aka "SONAME") variant to
1419                          provide on AIX, [default=aix].
1420  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1421  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1422                          compiler's sysroot if not specified).
1423  --with-int32='type'     use 'type' for an unsigned 32 bit integer type
1424                          ( default is 'unsigned')
1425  --with-int64='type'     use 'type' for an unsigned 64 bit integer type
1426                          ( default is 'unsigned')
1427
1428Some influential environment variables:
1429  CC          C compiler command
1430  CFLAGS      C compiler flags
1431  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1432              nonstandard directory <lib dir>
1433  LIBS        libraries to pass to the linker, e.g. -l<library>
1434  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435              you have headers in a nonstandard directory <include dir>
1436  LT_SYS_LIBRARY_PATH
1437              User-defined run-time library search path.
1438  CPP         C preprocessor
1439
1440Use these variables to override the choices made by `configure' or to help
1441it to find libraries and programs with nonstandard names/locations.
1442
1443Report bugs to <courier-users@lists.sourceforge.net>.
1444_ACEOF
1445ac_status=$?
1446fi
1447
1448if test "$ac_init_help" = "recursive"; then
1449  # If there are subdirs, report their specific --help.
1450  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451    test -d "$ac_dir" ||
1452      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453      continue
1454    ac_builddir=.
1455
1456case "$ac_dir" in
1457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458*)
1459  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460  # A ".." for each directory in $ac_dir_suffix.
1461  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462  case $ac_top_builddir_sub in
1463  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465  esac ;;
1466esac
1467ac_abs_top_builddir=$ac_pwd
1468ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469# for backward compatibility:
1470ac_top_builddir=$ac_top_build_prefix
1471
1472case $srcdir in
1473  .)  # We are building in place.
1474    ac_srcdir=.
1475    ac_top_srcdir=$ac_top_builddir_sub
1476    ac_abs_top_srcdir=$ac_pwd ;;
1477  [\\/]* | ?:[\\/]* )  # Absolute name.
1478    ac_srcdir=$srcdir$ac_dir_suffix;
1479    ac_top_srcdir=$srcdir
1480    ac_abs_top_srcdir=$srcdir ;;
1481  *) # Relative name.
1482    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483    ac_top_srcdir=$ac_top_build_prefix$srcdir
1484    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485esac
1486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488    cd "$ac_dir" || { ac_status=$?; continue; }
1489    # Check for guested configure.
1490    if test -f "$ac_srcdir/configure.gnu"; then
1491      echo &&
1492      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493    elif test -f "$ac_srcdir/configure"; then
1494      echo &&
1495      $SHELL "$ac_srcdir/configure" --help=recursive
1496    else
1497      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498    fi || ac_status=$?
1499    cd "$ac_pwd" || { ac_status=$?; break; }
1500  done
1501fi
1502
1503test -n "$ac_init_help" && exit $ac_status
1504if $ac_init_version; then
1505  cat <<\_ACEOF
1506libsha1 configure 1.21
1507generated by GNU Autoconf 2.69
1508
1509Copyright (C) 2012 Free Software Foundation, Inc.
1510This configure script is free software; the Free Software Foundation
1511gives unlimited permission to copy, distribute and modify it.
1512_ACEOF
1513  exit
1514fi
1515
1516## ------------------------ ##
1517## Autoconf initialization. ##
1518## ------------------------ ##
1519
1520# ac_fn_c_try_compile LINENO
1521# --------------------------
1522# Try to compile conftest.$ac_ext, and return whether this succeeded.
1523ac_fn_c_try_compile ()
1524{
1525  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526  rm -f conftest.$ac_objext
1527  if { { ac_try="$ac_compile"
1528case "(($ac_try" in
1529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530  *) ac_try_echo=$ac_try;;
1531esac
1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533$as_echo "$ac_try_echo"; } >&5
1534  (eval "$ac_compile") 2>conftest.err
1535  ac_status=$?
1536  if test -s conftest.err; then
1537    grep -v '^ *+' conftest.err >conftest.er1
1538    cat conftest.er1 >&5
1539    mv -f conftest.er1 conftest.err
1540  fi
1541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542  test $ac_status = 0; } && {
1543	 test -z "$ac_c_werror_flag" ||
1544	 test ! -s conftest.err
1545       } && test -s conftest.$ac_objext; then :
1546  ac_retval=0
1547else
1548  $as_echo "$as_me: failed program was:" >&5
1549sed 's/^/| /' conftest.$ac_ext >&5
1550
1551	ac_retval=1
1552fi
1553  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554  as_fn_set_status $ac_retval
1555
1556} # ac_fn_c_try_compile
1557
1558# ac_fn_c_try_link LINENO
1559# -----------------------
1560# Try to link conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_link ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext conftest$ac_exeext
1565  if { { ac_try="$ac_link"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572  (eval "$ac_link") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest$ac_exeext && {
1584	 test "$cross_compiling" = yes ||
1585	 test -x conftest$ac_exeext
1586       }; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592	ac_retval=1
1593fi
1594  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1595  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1596  # interfere with the next link command; also delete a directory that is
1597  # left behind by Apple's compiler.  We do this before executing the actions.
1598  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600  as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_link
1603
1604# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1605# -------------------------------------------------------
1606# Tests whether HEADER exists and can be compiled using the include files in
1607# INCLUDES, setting the cache variable VAR accordingly.
1608ac_fn_c_check_header_compile ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
1613if eval \${$3+:} false; then :
1614  $as_echo_n "(cached) " >&6
1615else
1616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h.  */
1618$4
1619#include <$2>
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"; then :
1622  eval "$3=yes"
1623else
1624  eval "$3=no"
1625fi
1626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627fi
1628eval ac_res=\$$3
1629	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633} # ac_fn_c_check_header_compile
1634
1635# ac_fn_c_try_cpp LINENO
1636# ----------------------
1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_cpp ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  if { { ac_try="$ac_cpp conftest.$ac_ext"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } > conftest.i && {
1657	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       }; then :
1660  ac_retval=0
1661else
1662  $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665    ac_retval=1
1666fi
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668  as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_cpp
1671
1672# ac_fn_c_try_run LINENO
1673# ----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675# that executables *can* be run.
1676ac_fn_c_try_run ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_link") 2>&5
1687  ac_status=$?
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690  { { case "(($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_try") 2>&5
1697  ac_status=$?
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; }; }; then :
1700  ac_retval=0
1701else
1702  $as_echo "$as_me: program exited with status $ac_status" >&5
1703       $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706       ac_retval=$ac_status
1707fi
1708  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_run
1713
1714# ac_fn_c_check_func LINENO FUNC VAR
1715# ----------------------------------
1716# Tests whether FUNC exists, setting the cache variable VAR accordingly
1717ac_fn_c_check_func ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if eval \${$3+:} false; then :
1723  $as_echo_n "(cached) " >&6
1724else
1725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h.  */
1727/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1729#define $2 innocuous_$2
1730
1731/* System header to define __stub macros and hopefully few prototypes,
1732    which can conflict with char $2 (); below.
1733    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1734    <limits.h> exists even on freestanding compilers.  */
1735
1736#ifdef __STDC__
1737# include <limits.h>
1738#else
1739# include <assert.h>
1740#endif
1741
1742#undef $2
1743
1744/* Override any GCC internal prototype to avoid an error.
1745   Use char because int might match the return type of a GCC
1746   builtin and then its argument prototype would still apply.  */
1747#ifdef __cplusplus
1748extern "C"
1749#endif
1750char $2 ();
1751/* The GNU C library defines this for functions which it implements
1752    to always fail with ENOSYS.  Some functions are actually named
1753    something starting with __ and the normal name is an alias.  */
1754#if defined __stub_$2 || defined __stub___$2
1755choke me
1756#endif
1757
1758int
1759main ()
1760{
1761return $2 ();
1762  ;
1763  return 0;
1764}
1765_ACEOF
1766if ac_fn_c_try_link "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext \
1772    conftest$ac_exeext conftest.$ac_ext
1773fi
1774eval ac_res=\$$3
1775	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776$as_echo "$ac_res" >&6; }
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779} # ac_fn_c_check_func
1780
1781# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784# the include files in INCLUDES and setting the cache variable VAR
1785# accordingly.
1786ac_fn_c_check_header_mongrel ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  if eval \${$3+:} false; then :
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798else
1799  # Is the header compilable?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801$as_echo_n "checking $2 usability... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808  ac_header_compiler=yes
1809else
1810  ac_header_compiler=no
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814$as_echo "$ac_header_compiler" >&6; }
1815
1816# Is the header present?
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818$as_echo_n "checking $2 presence... " >&6; }
1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_cpp "$LINENO"; then :
1824  ac_header_preproc=yes
1825else
1826  ac_header_preproc=no
1827fi
1828rm -f conftest.err conftest.i conftest.$ac_ext
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830$as_echo "$ac_header_preproc" >&6; }
1831
1832# So?  What about this header?
1833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834  yes:no: )
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839    ;;
1840  no:yes:* )
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1844$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1848$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851( $as_echo "## -------------------------------------------------- ##
1852## Report this to courier-users@lists.sourceforge.net ##
1853## -------------------------------------------------- ##"
1854     ) | sed "s/^/$as_me: WARNING:     /" >&2
1855    ;;
1856esac
1857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if eval \${$3+:} false; then :
1860  $as_echo_n "(cached) " >&6
1861else
1862  eval "$3=\$ac_header_compiler"
1863fi
1864eval ac_res=\$$3
1865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867fi
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_header_mongrel
1871
1872# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1873# --------------------------------------------
1874# Tries to find the compile-time value of EXPR in a program that includes
1875# INCLUDES, setting VAR accordingly. Returns whether the value could be
1876# computed
1877ac_fn_c_compute_int ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  if test "$cross_compiling" = yes; then
1881    # Depending upon the size, compute the lo and hi bounds.
1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884$4
1885int
1886main ()
1887{
1888static int test_array [1 - 2 * !(($2) >= 0)];
1889test_array [0] = 0;
1890return test_array [0];
1891
1892  ;
1893  return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897  ac_lo=0 ac_mid=0
1898  while :; do
1899    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h.  */
1901$4
1902int
1903main ()
1904{
1905static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1906test_array [0] = 0;
1907return test_array [0];
1908
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914  ac_hi=$ac_mid; break
1915else
1916  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917			if test $ac_lo -le $ac_mid; then
1918			  ac_lo= ac_hi=
1919			  break
1920			fi
1921			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924  done
1925else
1926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) < 0)];
1933test_array [0] = 0;
1934return test_array [0];
1935
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941  ac_hi=-1 ac_mid=-1
1942  while :; do
1943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945$4
1946int
1947main ()
1948{
1949static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1950test_array [0] = 0;
1951return test_array [0];
1952
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958  ac_lo=$ac_mid; break
1959else
1960  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961			if test $ac_mid -le $ac_hi; then
1962			  ac_lo= ac_hi=
1963			  break
1964			fi
1965			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968  done
1969else
1970  ac_lo= ac_hi=
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975# Binary search between lo and hi bounds.
1976while test "x$ac_lo" != "x$ac_hi"; do
1977  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980$4
1981int
1982main ()
1983{
1984static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985test_array [0] = 0;
1986return test_array [0];
1987
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  ac_hi=$ac_mid
1994else
1995  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998done
1999case $ac_lo in #((
2000?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2001'') ac_retval=1 ;;
2002esac
2003  else
2004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007static long int longval () { return $2; }
2008static unsigned long int ulongval () { return $2; }
2009#include <stdio.h>
2010#include <stdlib.h>
2011int
2012main ()
2013{
2014
2015  FILE *f = fopen ("conftest.val", "w");
2016  if (! f)
2017    return 1;
2018  if (($2) < 0)
2019    {
2020      long int i = longval ();
2021      if (i != ($2))
2022	return 1;
2023      fprintf (f, "%ld", i);
2024    }
2025  else
2026    {
2027      unsigned long int i = ulongval ();
2028      if (i != ($2))
2029	return 1;
2030      fprintf (f, "%lu", i);
2031    }
2032  /* Do not output a trailing newline, as this causes \r\n confusion
2033     on some platforms.  */
2034  return ferror (f) || fclose (f) != 0;
2035
2036  ;
2037  return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_run "$LINENO"; then :
2041  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2042else
2043  ac_retval=1
2044fi
2045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046  conftest.$ac_objext conftest.beam conftest.$ac_ext
2047rm -f conftest.val
2048
2049  fi
2050  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051  as_fn_set_status $ac_retval
2052
2053} # ac_fn_c_compute_int
2054cat >config.log <<_ACEOF
2055This file contains any messages produced by compilers while
2056running configure, to aid debugging if configure makes a mistake.
2057
2058It was created by libsha1 $as_me 1.21, which was
2059generated by GNU Autoconf 2.69.  Invocation command line was
2060
2061  $ $0 $@
2062
2063_ACEOF
2064exec 5>>config.log
2065{
2066cat <<_ASUNAME
2067## --------- ##
2068## Platform. ##
2069## --------- ##
2070
2071hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2072uname -m = `(uname -m) 2>/dev/null || echo unknown`
2073uname -r = `(uname -r) 2>/dev/null || echo unknown`
2074uname -s = `(uname -s) 2>/dev/null || echo unknown`
2075uname -v = `(uname -v) 2>/dev/null || echo unknown`
2076
2077/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2078/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2079
2080/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2081/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2082/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2083/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2084/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2085/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2086/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2087
2088_ASUNAME
2089
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093  IFS=$as_save_IFS
2094  test -z "$as_dir" && as_dir=.
2095    $as_echo "PATH: $as_dir"
2096  done
2097IFS=$as_save_IFS
2098
2099} >&5
2100
2101cat >&5 <<_ACEOF
2102
2103
2104## ----------- ##
2105## Core tests. ##
2106## ----------- ##
2107
2108_ACEOF
2109
2110
2111# Keep a trace of the command line.
2112# Strip out --no-create and --no-recursion so they do not pile up.
2113# Strip out --silent because we don't want to record it for future runs.
2114# Also quote any args containing shell meta-characters.
2115# Make two passes to allow for proper duplicate-argument suppression.
2116ac_configure_args=
2117ac_configure_args0=
2118ac_configure_args1=
2119ac_must_keep_next=false
2120for ac_pass in 1 2
2121do
2122  for ac_arg
2123  do
2124    case $ac_arg in
2125    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2126    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2127    | -silent | --silent | --silen | --sile | --sil)
2128      continue ;;
2129    *\'*)
2130      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2131    esac
2132    case $ac_pass in
2133    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2134    2)
2135      as_fn_append ac_configure_args1 " '$ac_arg'"
2136      if test $ac_must_keep_next = true; then
2137	ac_must_keep_next=false # Got value, back to normal.
2138      else
2139	case $ac_arg in
2140	  *=* | --config-cache | -C | -disable-* | --disable-* \
2141	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2142	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2143	  | -with-* | --with-* | -without-* | --without-* | --x)
2144	    case "$ac_configure_args0 " in
2145	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2146	    esac
2147	    ;;
2148	  -* ) ac_must_keep_next=true ;;
2149	esac
2150      fi
2151      as_fn_append ac_configure_args " '$ac_arg'"
2152      ;;
2153    esac
2154  done
2155done
2156{ ac_configure_args0=; unset ac_configure_args0;}
2157{ ac_configure_args1=; unset ac_configure_args1;}
2158
2159# When interrupted or exit'd, cleanup temporary files, and complete
2160# config.log.  We remove comments because anyway the quotes in there
2161# would cause problems or look ugly.
2162# WARNING: Use '\'' to represent an apostrophe within the trap.
2163# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2164trap 'exit_status=$?
2165  # Save into config.log some information that might help in debugging.
2166  {
2167    echo
2168
2169    $as_echo "## ---------------- ##
2170## Cache variables. ##
2171## ---------------- ##"
2172    echo
2173    # The following way of writing the cache mishandles newlines in values,
2174(
2175  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2176    eval ac_val=\$$ac_var
2177    case $ac_val in #(
2178    *${as_nl}*)
2179      case $ac_var in #(
2180      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2181$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2182      esac
2183      case $ac_var in #(
2184      _ | IFS | as_nl) ;; #(
2185      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2186      *) { eval $ac_var=; unset $ac_var;} ;;
2187      esac ;;
2188    esac
2189  done
2190  (set) 2>&1 |
2191    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2192    *${as_nl}ac_space=\ *)
2193      sed -n \
2194	"s/'\''/'\''\\\\'\'''\''/g;
2195	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2196      ;; #(
2197    *)
2198      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2199      ;;
2200    esac |
2201    sort
2202)
2203    echo
2204
2205    $as_echo "## ----------------- ##
2206## Output variables. ##
2207## ----------------- ##"
2208    echo
2209    for ac_var in $ac_subst_vars
2210    do
2211      eval ac_val=\$$ac_var
2212      case $ac_val in
2213      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214      esac
2215      $as_echo "$ac_var='\''$ac_val'\''"
2216    done | sort
2217    echo
2218
2219    if test -n "$ac_subst_files"; then
2220      $as_echo "## ------------------- ##
2221## File substitutions. ##
2222## ------------------- ##"
2223      echo
2224      for ac_var in $ac_subst_files
2225      do
2226	eval ac_val=\$$ac_var
2227	case $ac_val in
2228	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229	esac
2230	$as_echo "$ac_var='\''$ac_val'\''"
2231      done | sort
2232      echo
2233    fi
2234
2235    if test -s confdefs.h; then
2236      $as_echo "## ----------- ##
2237## confdefs.h. ##
2238## ----------- ##"
2239      echo
2240      cat confdefs.h
2241      echo
2242    fi
2243    test "$ac_signal" != 0 &&
2244      $as_echo "$as_me: caught signal $ac_signal"
2245    $as_echo "$as_me: exit $exit_status"
2246  } >&5
2247  rm -f core *.core core.conftest.* &&
2248    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2249    exit $exit_status
2250' 0
2251for ac_signal in 1 2 13 15; do
2252  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2253done
2254ac_signal=0
2255
2256# confdefs.h avoids OS command line length limits that DEFS can exceed.
2257rm -f -r conftest* confdefs.h
2258
2259$as_echo "/* confdefs.h */" > confdefs.h
2260
2261# Predefined preprocessor variables.
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_NAME "$PACKAGE_NAME"
2265_ACEOF
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_VERSION "$PACKAGE_VERSION"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_STRING "$PACKAGE_STRING"
2277_ACEOF
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281_ACEOF
2282
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_URL "$PACKAGE_URL"
2285_ACEOF
2286
2287
2288# Let the site file select an alternate cache file if it wants to.
2289# Prefer an explicitly selected file to automatically selected ones.
2290ac_site_file1=NONE
2291ac_site_file2=NONE
2292if test -n "$CONFIG_SITE"; then
2293  # We do not want a PATH search for config.site.
2294  case $CONFIG_SITE in #((
2295    -*)  ac_site_file1=./$CONFIG_SITE;;
2296    */*) ac_site_file1=$CONFIG_SITE;;
2297    *)   ac_site_file1=./$CONFIG_SITE;;
2298  esac
2299elif test "x$prefix" != xNONE; then
2300  ac_site_file1=$prefix/share/config.site
2301  ac_site_file2=$prefix/etc/config.site
2302else
2303  ac_site_file1=$ac_default_prefix/share/config.site
2304  ac_site_file2=$ac_default_prefix/etc/config.site
2305fi
2306for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2307do
2308  test "x$ac_site_file" = xNONE && continue
2309  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2310    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2312    sed 's/^/| /' "$ac_site_file" >&5
2313    . "$ac_site_file" \
2314      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316as_fn_error $? "failed to load site script $ac_site_file
2317See \`config.log' for more details" "$LINENO" 5; }
2318  fi
2319done
2320
2321if test -r "$cache_file"; then
2322  # Some versions of bash will fail to source /dev/null (special files
2323  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2324  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2325    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2326$as_echo "$as_me: loading cache $cache_file" >&6;}
2327    case $cache_file in
2328      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2329      *)                      . "./$cache_file";;
2330    esac
2331  fi
2332else
2333  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2334$as_echo "$as_me: creating cache $cache_file" >&6;}
2335  >$cache_file
2336fi
2337
2338# Check that the precious variables saved in the cache have kept the same
2339# value.
2340ac_cache_corrupted=false
2341for ac_var in $ac_precious_vars; do
2342  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2343  eval ac_new_set=\$ac_env_${ac_var}_set
2344  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2345  eval ac_new_val=\$ac_env_${ac_var}_value
2346  case $ac_old_set,$ac_new_set in
2347    set,)
2348      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2349$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2350      ac_cache_corrupted=: ;;
2351    ,set)
2352      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2353$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2354      ac_cache_corrupted=: ;;
2355    ,);;
2356    *)
2357      if test "x$ac_old_val" != "x$ac_new_val"; then
2358	# differences in whitespace do not lead to failure.
2359	ac_old_val_w=`echo x $ac_old_val`
2360	ac_new_val_w=`echo x $ac_new_val`
2361	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2362	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2363$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2364	  ac_cache_corrupted=:
2365	else
2366	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2367$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2368	  eval $ac_var=\$ac_old_val
2369	fi
2370	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2371$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2372	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2373$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2374      fi;;
2375  esac
2376  # Pass precious variables to config.status.
2377  if test "$ac_new_set" = set; then
2378    case $ac_new_val in
2379    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2380    *) ac_arg=$ac_var=$ac_new_val ;;
2381    esac
2382    case " $ac_configure_args " in
2383      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2384      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2385    esac
2386  fi
2387done
2388if $ac_cache_corrupted; then
2389  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2392$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2393  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2394fi
2395## -------------------- ##
2396## Main body of script. ##
2397## -------------------- ##
2398
2399ac_ext=c
2400ac_cpp='$CPP $CPPFLAGS'
2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404
2405
2406
2407>confdefs.h  # Kill PACKAGE_ macros
2408
2409
2410ac_aux_dir=
2411for ac_dir in ../.. "$srcdir"/../..; do
2412  if test -f "$ac_dir/install-sh"; then
2413    ac_aux_dir=$ac_dir
2414    ac_install_sh="$ac_aux_dir/install-sh -c"
2415    break
2416  elif test -f "$ac_dir/install.sh"; then
2417    ac_aux_dir=$ac_dir
2418    ac_install_sh="$ac_aux_dir/install.sh -c"
2419    break
2420  elif test -f "$ac_dir/shtool"; then
2421    ac_aux_dir=$ac_dir
2422    ac_install_sh="$ac_aux_dir/shtool install -c"
2423    break
2424  fi
2425done
2426if test -z "$ac_aux_dir"; then
2427  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2428fi
2429
2430# These three variables are undocumented and unsupported,
2431# and are intended to be withdrawn in a future Autoconf release.
2432# They can cause serious problems if a builder's source tree is in a directory
2433# whose full name contains unusual characters.
2434ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2435ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2436ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2437
2438
2439ac_config_headers="$ac_config_headers config.h"
2440
2441am__api_version='1.16'
2442
2443# Find a good install program.  We prefer a C program (faster),
2444# so one script is as good as another.  But avoid the broken or
2445# incompatible versions:
2446# SysV /etc/install, /usr/sbin/install
2447# SunOS /usr/etc/install
2448# IRIX /sbin/install
2449# AIX /bin/install
2450# AmigaOS /C/install, which installs bootblocks on floppy discs
2451# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454# OS/2's system install, which has a completely different semantic
2455# ./install, which can be erroneously created by make from ./install.sh.
2456# Reject install programs that cannot install multiple files.
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458$as_echo_n "checking for a BSD-compatible install... " >&6; }
2459if test -z "$INSTALL"; then
2460if ${ac_cv_path_install+:} false; then :
2461  $as_echo_n "(cached) " >&6
2462else
2463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468    # Account for people who put trailing slashes in PATH elements.
2469case $as_dir/ in #((
2470  ./ | .// | /[cC]/* | \
2471  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473  /usr/ucb/* ) ;;
2474  *)
2475    # OSF1 and SCO ODT 3.0 have their own names for install.
2476    # Don't use installbsd from OSF since it installs stuff as root
2477    # by default.
2478    for ac_prog in ginstall scoinst install; do
2479      for ac_exec_ext in '' $ac_executable_extensions; do
2480	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481	  if test $ac_prog = install &&
2482	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483	    # AIX install.  It has an incompatible calling convention.
2484	    :
2485	  elif test $ac_prog = install &&
2486	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487	    # program-specific install script used by HP pwplus--don't use.
2488	    :
2489	  else
2490	    rm -rf conftest.one conftest.two conftest.dir
2491	    echo one > conftest.one
2492	    echo two > conftest.two
2493	    mkdir conftest.dir
2494	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495	      test -s conftest.one && test -s conftest.two &&
2496	      test -s conftest.dir/conftest.one &&
2497	      test -s conftest.dir/conftest.two
2498	    then
2499	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500	      break 3
2501	    fi
2502	  fi
2503	fi
2504      done
2505    done
2506    ;;
2507esac
2508
2509  done
2510IFS=$as_save_IFS
2511
2512rm -rf conftest.one conftest.two conftest.dir
2513
2514fi
2515  if test "${ac_cv_path_install+set}" = set; then
2516    INSTALL=$ac_cv_path_install
2517  else
2518    # As a last resort, use the slow shell script.  Don't cache a
2519    # value for INSTALL within a source directory, because that will
2520    # break other packages using the cache if that directory is
2521    # removed, or if the value is a relative name.
2522    INSTALL=$ac_install_sh
2523  fi
2524fi
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526$as_echo "$INSTALL" >&6; }
2527
2528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529# It thinks the first close brace ends the variable substitution.
2530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2537$as_echo_n "checking whether build environment is sane... " >&6; }
2538# Reject unsafe characters in $srcdir or the absolute working directory
2539# name.  Accept space and tab only in the latter.
2540am_lf='
2541'
2542case `pwd` in
2543  *[\\\"\#\$\&\'\`$am_lf]*)
2544    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2545esac
2546case $srcdir in
2547  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2548    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2549esac
2550
2551# Do 'set' in a subshell so we don't clobber the current shell's
2552# arguments.  Must try -L first in case configure is actually a
2553# symlink; some systems play weird games with the mod time of symlinks
2554# (eg FreeBSD returns the mod time of the symlink's containing
2555# directory).
2556if (
2557   am_has_slept=no
2558   for am_try in 1 2; do
2559     echo "timestamp, slept: $am_has_slept" > conftest.file
2560     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561     if test "$*" = "X"; then
2562	# -L didn't work.
2563	set X `ls -t "$srcdir/configure" conftest.file`
2564     fi
2565     if test "$*" != "X $srcdir/configure conftest.file" \
2566	&& test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568	# If neither matched, then we have a broken ls.  This can happen
2569	# if, for instance, CONFIG_SHELL is bash and it inherits a
2570	# broken ls alias from the environment.  This has actually
2571	# happened.  Such a system could not be considered "sane".
2572	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2573  alias in your environment" "$LINENO" 5
2574     fi
2575     if test "$2" = conftest.file || test $am_try -eq 2; then
2576       break
2577     fi
2578     # Just in case.
2579     sleep 1
2580     am_has_slept=yes
2581   done
2582   test "$2" = conftest.file
2583   )
2584then
2585   # Ok.
2586   :
2587else
2588   as_fn_error $? "newly created file is older than distributed files!
2589Check your system clock" "$LINENO" 5
2590fi
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592$as_echo "yes" >&6; }
2593# If we didn't sleep, we still need to ensure time stamps of config.status and
2594# generated files are strictly newer.
2595am_sleep_pid=
2596if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2597  ( sleep 1 ) &
2598  am_sleep_pid=$!
2599fi
2600
2601rm -f conftest.file
2602
2603test "$program_prefix" != NONE &&
2604  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2605# Use a double $ so make ignores it.
2606test "$program_suffix" != NONE &&
2607  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2608# Double any \ or $.
2609# By default was `s,x,x', remove it if useless.
2610ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612
2613# Expand $ac_aux_dir to an absolute path.
2614am_aux_dir=`cd "$ac_aux_dir" && pwd`
2615
2616if test x"${MISSING+set}" != xset; then
2617  case $am_aux_dir in
2618  *\ * | *\	*)
2619    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620  *)
2621    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2622  esac
2623fi
2624# Use eval to expand $SHELL
2625if eval "$MISSING --is-lightweight"; then
2626  am_missing_run="$MISSING "
2627else
2628  am_missing_run=
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2630$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2631fi
2632
2633if test x"${install_sh+set}" != xset; then
2634  case $am_aux_dir in
2635  *\ * | *\	*)
2636    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637  *)
2638    install_sh="\${SHELL} $am_aux_dir/install-sh"
2639  esac
2640fi
2641
2642# Installed binaries are usually stripped using 'strip' when the user
2643# run "make install-strip".  However 'strip' might not be the right
2644# tool to use in cross-compilation environments, therefore Automake
2645# will honor the 'STRIP' environment variable to overrule this program.
2646if test "$cross_compiling" != no; then
2647  if test -n "$ac_tool_prefix"; then
2648  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2649set dummy ${ac_tool_prefix}strip; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if ${ac_cv_prog_STRIP+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  if test -n "$STRIP"; then
2656  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661  IFS=$as_save_IFS
2662  test -z "$as_dir" && as_dir=.
2663    for ac_exec_ext in '' $ac_executable_extensions; do
2664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667    break 2
2668  fi
2669done
2670  done
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675STRIP=$ac_cv_prog_STRIP
2676if test -n "$STRIP"; then
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2678$as_echo "$STRIP" >&6; }
2679else
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
2682fi
2683
2684
2685fi
2686if test -z "$ac_cv_prog_STRIP"; then
2687  ac_ct_STRIP=$STRIP
2688  # Extract the first word of "strip", so it can be a program name with args.
2689set dummy strip; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test -n "$ac_ct_STRIP"; then
2696  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    for ac_exec_ext in '' $ac_executable_extensions; do
2704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705    ac_cv_prog_ac_ct_STRIP="strip"
2706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710  done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2716if test -n "$ac_ct_STRIP"; then
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2718$as_echo "$ac_ct_STRIP" >&6; }
2719else
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724  if test "x$ac_ct_STRIP" = x; then
2725    STRIP=":"
2726  else
2727    case $cross_compiling:$ac_tool_warned in
2728yes:)
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731ac_tool_warned=yes ;;
2732esac
2733    STRIP=$ac_ct_STRIP
2734  fi
2735else
2736  STRIP="$ac_cv_prog_STRIP"
2737fi
2738
2739fi
2740INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2743$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2744if test -z "$MKDIR_P"; then
2745  if ${ac_cv_path_mkdir+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750do
2751  IFS=$as_save_IFS
2752  test -z "$as_dir" && as_dir=.
2753    for ac_prog in mkdir gmkdir; do
2754	 for ac_exec_ext in '' $ac_executable_extensions; do
2755	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2756	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2757	     'mkdir (GNU coreutils) '* | \
2758	     'mkdir (coreutils) '* | \
2759	     'mkdir (fileutils) '4.1*)
2760	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761	       break 3;;
2762	   esac
2763	 done
2764       done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769
2770  test -d ./--version && rmdir ./--version
2771  if test "${ac_cv_path_mkdir+set}" = set; then
2772    MKDIR_P="$ac_cv_path_mkdir -p"
2773  else
2774    # As a last resort, use the slow shell script.  Don't cache a
2775    # value for MKDIR_P within a source directory, because that will
2776    # break other packages using the cache if that directory is
2777    # removed, or if the value is a relative name.
2778    MKDIR_P="$ac_install_sh -d"
2779  fi
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2782$as_echo "$MKDIR_P" >&6; }
2783
2784for ac_prog in gawk mawk nawk awk
2785do
2786  # Extract the first word of "$ac_prog", so it can be a program name with args.
2787set dummy $ac_prog; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_AWK+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$AWK"; then
2794  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_AWK="$ac_prog"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813AWK=$ac_cv_prog_AWK
2814if test -n "$AWK"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2816$as_echo "$AWK" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823  test -n "$AWK" && break
2824done
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2827$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828set x ${MAKE-make}
2829ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2830if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  cat >conftest.make <<\_ACEOF
2834SHELL = /bin/sh
2835all:
2836	@echo '@@@%%%=$(MAKE)=@@@%%%'
2837_ACEOF
2838# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2839case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840  *@@@%%%=?*=@@@%%%*)
2841    eval ac_cv_prog_make_${ac_make}_set=yes;;
2842  *)
2843    eval ac_cv_prog_make_${ac_make}_set=no;;
2844esac
2845rm -f conftest.make
2846fi
2847if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849$as_echo "yes" >&6; }
2850  SET_MAKE=
2851else
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854  SET_MAKE="MAKE=${MAKE-make}"
2855fi
2856
2857rm -rf .tst 2>/dev/null
2858mkdir .tst 2>/dev/null
2859if test -d .tst; then
2860  am__leading_dot=.
2861else
2862  am__leading_dot=_
2863fi
2864rmdir .tst 2>/dev/null
2865
2866# Check whether --enable-silent-rules was given.
2867if test "${enable_silent_rules+set}" = set; then :
2868  enableval=$enable_silent_rules;
2869fi
2870
2871case $enable_silent_rules in # (((
2872  yes) AM_DEFAULT_VERBOSITY=0;;
2873   no) AM_DEFAULT_VERBOSITY=1;;
2874    *) AM_DEFAULT_VERBOSITY=1;;
2875esac
2876am_make=${MAKE-make}
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2878$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2879if ${am_cv_make_support_nested_variables+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if $as_echo 'TRUE=$(BAR$(V))
2883BAR0=false
2884BAR1=true
2885V=1
2886am__doit:
2887	@$(TRUE)
2888.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2889  am_cv_make_support_nested_variables=yes
2890else
2891  am_cv_make_support_nested_variables=no
2892fi
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2895$as_echo "$am_cv_make_support_nested_variables" >&6; }
2896if test $am_cv_make_support_nested_variables = yes; then
2897    AM_V='$(V)'
2898  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2899else
2900  AM_V=$AM_DEFAULT_VERBOSITY
2901  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2902fi
2903AM_BACKSLASH='\'
2904
2905if test "`cd $srcdir && pwd`" != "`pwd`"; then
2906  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2907  # is not polluted with repeated "-I."
2908  am__isrc=' -I$(srcdir)'
2909  # test to see if srcdir already configured
2910  if test -f $srcdir/config.status; then
2911    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912  fi
2913fi
2914
2915# test whether we have cygpath
2916if test -z "$CYGPATH_W"; then
2917  if (cygpath --version) >/dev/null 2>/dev/null; then
2918    CYGPATH_W='cygpath -w'
2919  else
2920    CYGPATH_W=echo
2921  fi
2922fi
2923
2924
2925# Define the identity of the package.
2926 PACKAGE='libsha1'
2927 VERSION='1.21'
2928
2929
2930# Some tools Automake needs.
2931
2932ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933
2934
2935AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936
2937
2938AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939
2940
2941AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942
2943
2944MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945
2946# For better backward compatibility.  To be removed once Automake 1.9.x
2947# dies out for good.  For more background, see:
2948# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2949# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2950mkdir_p='$(MKDIR_P)'
2951
2952# We need awk for the "check" target (and possibly the TAP driver).  The
2953# system "awk" is bad on some platforms.
2954# Always define AMTAR for backward compatibility.  Yes, it's still used
2955# in the wild :-(  We should find a proper way to deprecate it ...
2956AMTAR='$${TAR-tar}'
2957
2958
2959# We'll loop over all known methods to create a tar archive until one works.
2960_am_tools='gnutar  pax cpio none'
2961
2962am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2963
2964
2965
2966
2967
2968
2969# POSIX will say in a future version that running "rm -f" with no argument
2970# is OK; and we want to be able to make that assumption in our Makefile
2971# recipes.  So use an aggressive probe to check that the usage we want is
2972# actually supported "in the wild" to an acceptable degree.
2973# See automake bug#10828.
2974# To make any issue more visible, cause the running configure to be aborted
2975# by default if the 'rm' program in use doesn't match our expectations; the
2976# user can still override this though.
2977if rm -f && rm -fr && rm -rf; then : OK; else
2978  cat >&2 <<'END'
2979Oops!
2980
2981Your 'rm' program seems unable to run without file operands specified
2982on the command line, even when the '-f' option is present.  This is contrary
2983to the behaviour of most rm programs out there, and not conforming with
2984the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2985
2986Please tell bug-automake@gnu.org about your system, including the value
2987of your $PATH and any error possibly output before this message.  This
2988can help us improve future automake versions.
2989
2990END
2991  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2992    echo 'Configuration will proceed anyway, since you have set the' >&2
2993    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2994    echo >&2
2995  else
2996    cat >&2 <<'END'
2997Aborting the configuration process, to ensure you take notice of the issue.
2998
2999You can download and install GNU coreutils to get an 'rm' implementation
3000that behaves properly: <https://www.gnu.org/software/coreutils/>.
3001
3002If you want to complete the configuration process using your problematic
3003'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3004to "yes", and re-run configure.
3005
3006END
3007    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008  fi
3009fi
3010
3011
3012 if test -d ${srcdir}/../libhmac; then
3013  HMACC_TRUE=
3014  HMACC_FALSE='#'
3015else
3016  HMACC_TRUE='#'
3017  HMACC_FALSE=
3018fi
3019
3020
3021ac_ext=c
3022ac_cpp='$CPP $CPPFLAGS'
3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026if test -n "$ac_tool_prefix"; then
3027  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028set dummy ${ac_tool_prefix}gcc; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if ${ac_cv_prog_CC+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$CC"; then
3035  ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042    for ac_exec_ext in '' $ac_executable_extensions; do
3043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057$as_echo "$CC" >&6; }
3058else
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064fi
3065if test -z "$ac_cv_prog_CC"; then
3066  ac_ct_CC=$CC
3067  # Extract the first word of "gcc", so it can be a program name with args.
3068set dummy gcc; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if ${ac_cv_prog_ac_ct_CC+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test -n "$ac_ct_CC"; then
3075  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_ac_ct_CC="gcc"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095if test -n "$ac_ct_CC"; then
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097$as_echo "$ac_ct_CC" >&6; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103  if test "x$ac_ct_CC" = x; then
3104    CC=""
3105  else
3106    case $cross_compiling:$ac_tool_warned in
3107yes:)
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110ac_tool_warned=yes ;;
3111esac
3112    CC=$ac_ct_CC
3113  fi
3114else
3115  CC="$ac_cv_prog_CC"
3116fi
3117
3118if test -z "$CC"; then
3119          if test -n "$ac_tool_prefix"; then
3120    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121set dummy ${ac_tool_prefix}cc; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_CC+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  if test -n "$CC"; then
3128  ac_cv_prog_CC="$CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_CC="${ac_tool_prefix}cc"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147CC=$ac_cv_prog_CC
3148if test -n "$CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150$as_echo "$CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157  fi
3158fi
3159if test -z "$CC"; then
3160  # Extract the first word of "cc", so it can be a program name with args.
3161set dummy cc; ac_word=$2
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
3164if ${ac_cv_prog_CC+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  if test -n "$CC"; then
3168  ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170  ac_prog_rejected=no
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174  IFS=$as_save_IFS
3175  test -z "$as_dir" && as_dir=.
3176    for ac_exec_ext in '' $ac_executable_extensions; do
3177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179       ac_prog_rejected=yes
3180       continue
3181     fi
3182    ac_cv_prog_CC="cc"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190if test $ac_prog_rejected = yes; then
3191  # We found a bogon in the path, so make sure we never use it.
3192  set dummy $ac_cv_prog_CC
3193  shift
3194  if test $# != 0; then
3195    # We chose a different compiler from the bogus one.
3196    # However, it has the same basename, so the bogon will be chosen
3197    # first if we set CC to just the basename; use the full file name.
3198    shift
3199    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3200  fi
3201fi
3202fi
3203fi
3204CC=$ac_cv_prog_CC
3205if test -n "$CC"; then
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207$as_echo "$CC" >&6; }
3208else
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214fi
3215if test -z "$CC"; then
3216  if test -n "$ac_tool_prefix"; then
3217  for ac_prog in cl.exe
3218  do
3219    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if ${ac_cv_prog_CC+:} false; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  if test -n "$CC"; then
3227  ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234    for ac_exec_ext in '' $ac_executable_extensions; do
3235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246CC=$ac_cv_prog_CC
3247if test -n "$CC"; then
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249$as_echo "$CC" >&6; }
3250else
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256    test -n "$CC" && break
3257  done
3258fi
3259if test -z "$CC"; then
3260  ac_ct_CC=$CC
3261  for ac_prog in cl.exe
3262do
3263  # Extract the first word of "$ac_prog", so it can be a program name with args.
3264set dummy $ac_prog; ac_word=$2
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
3267if ${ac_cv_prog_ac_ct_CC+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  if test -n "$ac_ct_CC"; then
3271  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280    ac_cv_prog_ac_ct_CC="$ac_prog"
3281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288fi
3289fi
3290ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291if test -n "$ac_ct_CC"; then
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293$as_echo "$ac_ct_CC" >&6; }
3294else
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297fi
3298
3299
3300  test -n "$ac_ct_CC" && break
3301done
3302
3303  if test "x$ac_ct_CC" = x; then
3304    CC=""
3305  else
3306    case $cross_compiling:$ac_tool_warned in
3307yes:)
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310ac_tool_warned=yes ;;
3311esac
3312    CC=$ac_ct_CC
3313  fi
3314fi
3315
3316fi
3317
3318
3319test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "no acceptable C compiler found in \$PATH
3322See \`config.log' for more details" "$LINENO" 5; }
3323
3324# Provide some information about the compiler.
3325$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3326set X $ac_compile
3327ac_compiler=$2
3328for ac_option in --version -v -V -qversion; do
3329  { { ac_try="$ac_compiler $ac_option >&5"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337  ac_status=$?
3338  if test -s conftest.err; then
3339    sed '10a\
3340... rest of stderr output deleted ...
3341         10q' conftest.err >conftest.er1
3342    cat conftest.er1 >&5
3343  fi
3344  rm -f conftest.er1 conftest.err
3345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346  test $ac_status = 0; }
3347done
3348
3349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h.  */
3351
3352int
3353main ()
3354{
3355
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360ac_clean_files_save=$ac_clean_files
3361ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3362# Try to create an executable without -o first, disregard a.out.
3363# It will help us diagnose broken compilers, and finding out an intuition
3364# of exeext.
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3366$as_echo_n "checking whether the C compiler works... " >&6; }
3367ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368
3369# The possible output files:
3370ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371
3372ac_rmfiles=
3373for ac_file in $ac_files
3374do
3375  case $ac_file in
3376    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3378  esac
3379done
3380rm -f $ac_rmfiles
3381
3382if { { ac_try="$ac_link_default"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389  (eval "$ac_link_default") 2>&5
3390  ac_status=$?
3391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392  test $ac_status = 0; }; then :
3393  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3394# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3395# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3396# so that the user can short-circuit this test for compilers unknown to
3397# Autoconf.
3398for ac_file in $ac_files ''
3399do
3400  test -f "$ac_file" || continue
3401  case $ac_file in
3402    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3403	;;
3404    [ab].out )
3405	# We found the default executable, but exeext='' is most
3406	# certainly right.
3407	break;;
3408    *.* )
3409	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3410	then :; else
3411	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412	fi
3413	# We set ac_cv_exeext here because the later test for it is not
3414	# safe: cross compilers may not add the suffix if given an `-o'
3415	# argument, so we may need to know it at that point already.
3416	# Even if this section looks crufty: it has the advantage of
3417	# actually working.
3418	break;;
3419    * )
3420	break;;
3421  esac
3422done
3423test "$ac_cv_exeext" = no && ac_cv_exeext=
3424
3425else
3426  ac_file=''
3427fi
3428if test -z "$ac_file"; then :
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430$as_echo "no" >&6; }
3431$as_echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436as_fn_error 77 "C compiler cannot create executables
3437See \`config.log' for more details" "$LINENO" 5; }
3438else
3439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440$as_echo "yes" >&6; }
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3443$as_echo_n "checking for C compiler default output file name... " >&6; }
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3445$as_echo "$ac_file" >&6; }
3446ac_exeext=$ac_cv_exeext
3447
3448rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3449ac_clean_files=$ac_clean_files_save
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3451$as_echo_n "checking for suffix of executables... " >&6; }
3452if { { ac_try="$ac_link"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
3459  (eval "$ac_link") 2>&5
3460  ac_status=$?
3461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462  test $ac_status = 0; }; then :
3463  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3464# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3465# work properly (i.e., refer to `conftest.exe'), while it won't with
3466# `rm'.
3467for ac_file in conftest.exe conftest conftest.*; do
3468  test -f "$ac_file" || continue
3469  case $ac_file in
3470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3471    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472	  break;;
3473    * ) break;;
3474  esac
3475done
3476else
3477  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3480See \`config.log' for more details" "$LINENO" 5; }
3481fi
3482rm -f conftest conftest$ac_cv_exeext
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3484$as_echo "$ac_cv_exeext" >&6; }
3485
3486rm -f conftest.$ac_ext
3487EXEEXT=$ac_cv_exeext
3488ac_exeext=$EXEEXT
3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491#include <stdio.h>
3492int
3493main ()
3494{
3495FILE *f = fopen ("conftest.out", "w");
3496 return ferror (f) || fclose (f) != 0;
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502ac_clean_files="$ac_clean_files conftest.out"
3503# Check that the compiler produces executables we can run.  If not, either
3504# the compiler is broken, or we cross compile.
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3506$as_echo_n "checking whether we are cross compiling... " >&6; }
3507if test "$cross_compiling" != yes; then
3508  { { ac_try="$ac_link"
3509case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515  (eval "$ac_link") 2>&5
3516  ac_status=$?
3517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518  test $ac_status = 0; }
3519  if { ac_try='./conftest$ac_cv_exeext'
3520  { { case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525$as_echo "$ac_try_echo"; } >&5
3526  (eval "$ac_try") 2>&5
3527  ac_status=$?
3528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529  test $ac_status = 0; }; }; then
3530    cross_compiling=no
3531  else
3532    if test "$cross_compiling" = maybe; then
3533	cross_compiling=yes
3534    else
3535	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537as_fn_error $? "cannot run C compiled programs.
3538If you meant to cross compile, use \`--host'.
3539See \`config.log' for more details" "$LINENO" 5; }
3540    fi
3541  fi
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3544$as_echo "$cross_compiling" >&6; }
3545
3546rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3547ac_clean_files=$ac_clean_files_save
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3549$as_echo_n "checking for suffix of object files... " >&6; }
3550if ${ac_cv_objext+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564rm -f conftest.o conftest.obj
3565if { { ac_try="$ac_compile"
3566case "(($ac_try" in
3567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568  *) ac_try_echo=$ac_try;;
3569esac
3570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571$as_echo "$ac_try_echo"; } >&5
3572  (eval "$ac_compile") 2>&5
3573  ac_status=$?
3574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575  test $ac_status = 0; }; then :
3576  for ac_file in conftest.o conftest.obj conftest.*; do
3577  test -f "$ac_file" || continue;
3578  case $ac_file in
3579    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3580    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3581       break;;
3582  esac
3583done
3584else
3585  $as_echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error $? "cannot compute suffix of object files: cannot compile
3591See \`config.log' for more details" "$LINENO" 5; }
3592fi
3593rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3596$as_echo "$ac_cv_objext" >&6; }
3597OBJEXT=$ac_cv_objext
3598ac_objext=$OBJEXT
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3600$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3601if ${ac_cv_c_compiler_gnu+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610#ifndef __GNUC__
3611       choke me
3612#endif
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618if ac_fn_c_try_compile "$LINENO"; then :
3619  ac_compiler_gnu=yes
3620else
3621  ac_compiler_gnu=no
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3628$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3629if test $ac_compiler_gnu = yes; then
3630  GCC=yes
3631else
3632  GCC=
3633fi
3634ac_test_CFLAGS=${CFLAGS+set}
3635ac_save_CFLAGS=$CFLAGS
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3637$as_echo_n "checking whether $CC accepts -g... " >&6; }
3638if ${ac_cv_prog_cc_g+:} false; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  ac_save_c_werror_flag=$ac_c_werror_flag
3642   ac_c_werror_flag=yes
3643   ac_cv_prog_cc_g=no
3644   CFLAGS="-g"
3645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h.  */
3647
3648int
3649main ()
3650{
3651
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656if ac_fn_c_try_compile "$LINENO"; then :
3657  ac_cv_prog_cc_g=yes
3658else
3659  CFLAGS=""
3660      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662
3663int
3664main ()
3665{
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_c_try_compile "$LINENO"; then :
3672
3673else
3674  ac_c_werror_flag=$ac_save_c_werror_flag
3675	 CFLAGS="-g"
3676	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678
3679int
3680main ()
3681{
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687if ac_fn_c_try_compile "$LINENO"; then :
3688  ac_cv_prog_cc_g=yes
3689fi
3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691fi
3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693fi
3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695   ac_c_werror_flag=$ac_save_c_werror_flag
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3698$as_echo "$ac_cv_prog_cc_g" >&6; }
3699if test "$ac_test_CFLAGS" = set; then
3700  CFLAGS=$ac_save_CFLAGS
3701elif test $ac_cv_prog_cc_g = yes; then
3702  if test "$GCC" = yes; then
3703    CFLAGS="-g -O2"
3704  else
3705    CFLAGS="-g"
3706  fi
3707else
3708  if test "$GCC" = yes; then
3709    CFLAGS="-O2"
3710  else
3711    CFLAGS=
3712  fi
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3715$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3716if ${ac_cv_prog_cc_c89+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  ac_cv_prog_cc_c89=no
3720ac_save_CC=$CC
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723#include <stdarg.h>
3724#include <stdio.h>
3725struct stat;
3726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3727struct buf { int x; };
3728FILE * (*rcsopen) (struct buf *, struct stat *, int);
3729static char *e (p, i)
3730     char **p;
3731     int i;
3732{
3733  return p[i];
3734}
3735static char *f (char * (*g) (char **, int), char **p, ...)
3736{
3737  char *s;
3738  va_list v;
3739  va_start (v,p);
3740  s = g (p, va_arg (v,int));
3741  va_end (v);
3742  return s;
3743}
3744
3745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3746   function prototypes and stuff, but not '\xHH' hex character constants.
3747   These don't provoke an error unfortunately, instead are silently treated
3748   as 'x'.  The following induces an error, until -std is added to get
3749   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3750   array size at least.  It's necessary to write '\x00'==0 to get something
3751   that's true only with -std.  */
3752int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753
3754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3755   inside strings and character constants.  */
3756#define FOO(x) 'x'
3757int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758
3759int test (int i, double x);
3760struct s1 {int (*f) (int a);};
3761struct s2 {int (*f) (double a);};
3762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763int argc;
3764char **argv;
3765int
3766main ()
3767{
3768return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3774	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775do
3776  CC="$ac_save_CC $ac_arg"
3777  if ac_fn_c_try_compile "$LINENO"; then :
3778  ac_cv_prog_cc_c89=$ac_arg
3779fi
3780rm -f core conftest.err conftest.$ac_objext
3781  test "x$ac_cv_prog_cc_c89" != "xno" && break
3782done
3783rm -f conftest.$ac_ext
3784CC=$ac_save_CC
3785
3786fi
3787# AC_CACHE_VAL
3788case "x$ac_cv_prog_cc_c89" in
3789  x)
3790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3791$as_echo "none needed" >&6; } ;;
3792  xno)
3793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3794$as_echo "unsupported" >&6; } ;;
3795  *)
3796    CC="$CC $ac_cv_prog_cc_c89"
3797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3799esac
3800if test "x$ac_cv_prog_cc_c89" != xno; then :
3801
3802fi
3803
3804ac_ext=c
3805ac_cpp='$CPP $CPPFLAGS'
3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809
3810ac_ext=c
3811ac_cpp='$CPP $CPPFLAGS'
3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3816$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3817if ${am_cv_prog_cc_c_o+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822
3823int
3824main ()
3825{
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831  # Make sure it works both with $CC and with simple cc.
3832  # Following AC_PROG_CC_C_O, we do the test twice because some
3833  # compilers refuse to overwrite an existing .o file with -o,
3834  # though they will create one.
3835  am_cv_prog_cc_c_o=yes
3836  for am_i in 1 2; do
3837    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3838   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); } \
3842         && test -f conftest2.$ac_objext; then
3843      : OK
3844    else
3845      am_cv_prog_cc_c_o=no
3846      break
3847    fi
3848  done
3849  rm -f core conftest*
3850  unset am_i
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3853$as_echo "$am_cv_prog_cc_c_o" >&6; }
3854if test "$am_cv_prog_cc_c_o" != yes; then
3855   # Losing compiler, so override with the script.
3856   # FIXME: It is wrong to rewrite CC.
3857   # But if we don't then we get into trouble of one sort or another.
3858   # A longer-term fix would be to have automake use am__CC in this case,
3859   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3860   CC="$am_aux_dir/compile $CC"
3861fi
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868DEPDIR="${am__leading_dot}deps"
3869
3870ac_config_commands="$ac_config_commands depfiles"
3871
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3873$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3874cat > confinc.mk << 'END'
3875am__doit:
3876	@echo this is the am__doit target >confinc.out
3877.PHONY: am__doit
3878END
3879am__include="#"
3880am__quote=
3881# BSD make does it like this.
3882echo '.include "confinc.mk" # ignored' > confmf.BSD
3883# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3884echo 'include confinc.mk # ignored' > confmf.GNU
3885_am_result=no
3886for s in GNU BSD; do
3887  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3888   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3889   ac_status=$?
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); }
3892  case $?:`cat confinc.out 2>/dev/null` in #(
3893  '0:this is the am__doit target') :
3894    case $s in #(
3895  BSD) :
3896    am__include='.include' am__quote='"' ;; #(
3897  *) :
3898    am__include='include' am__quote='' ;;
3899esac ;; #(
3900  *) :
3901     ;;
3902esac
3903  if test "$am__include" != "#"; then
3904    _am_result="yes ($s style)"
3905    break
3906  fi
3907done
3908rm -f confinc.* confmf.*
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3910$as_echo "${_am_result}" >&6; }
3911
3912# Check whether --enable-dependency-tracking was given.
3913if test "${enable_dependency_tracking+set}" = set; then :
3914  enableval=$enable_dependency_tracking;
3915fi
3916
3917if test "x$enable_dependency_tracking" != xno; then
3918  am_depcomp="$ac_aux_dir/depcomp"
3919  AMDEPBACKSLASH='\'
3920  am__nodep='_no'
3921fi
3922 if test "x$enable_dependency_tracking" != xno; then
3923  AMDEP_TRUE=
3924  AMDEP_FALSE='#'
3925else
3926  AMDEP_TRUE='#'
3927  AMDEP_FALSE=
3928fi
3929
3930
3931
3932depcc="$CC"   am_compiler_list=
3933
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3935$as_echo_n "checking dependency style of $depcc... " >&6; }
3936if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3940  # We make a subdir and do the tests there.  Otherwise we can end up
3941  # making bogus files that we don't know about and never remove.  For
3942  # instance it was reported that on HP-UX the gcc test will end up
3943  # making a dummy file named 'D' -- because '-MD' means "put the output
3944  # in D".
3945  rm -rf conftest.dir
3946  mkdir conftest.dir
3947  # Copy depcomp to subdir because otherwise we won't find it if we're
3948  # using a relative directory.
3949  cp "$am_depcomp" conftest.dir
3950  cd conftest.dir
3951  # We will build objects and dependencies in a subdirectory because
3952  # it helps to detect inapplicable dependency modes.  For instance
3953  # both Tru64's cc and ICC support -MD to output dependencies as a
3954  # side effect of compilation, but ICC will put the dependencies in
3955  # the current directory while Tru64 will put them in the object
3956  # directory.
3957  mkdir sub
3958
3959  am_cv_CC_dependencies_compiler_type=none
3960  if test "$am_compiler_list" = ""; then
3961     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962  fi
3963  am__universal=false
3964  case " $depcc " in #(
3965     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3966     esac
3967
3968  for depmode in $am_compiler_list; do
3969    # Setup a source with many dependencies, because some compilers
3970    # like to wrap large dependency lists on column 80 (with \), and
3971    # we should not choose a depcomp mode which is confused by this.
3972    #
3973    # We need to recreate these files for each test, as the compiler may
3974    # overwrite some of them when testing with obscure command lines.
3975    # This happens at least with the AIX C compiler.
3976    : > sub/conftest.c
3977    for i in 1 2 3 4 5 6; do
3978      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3979      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3980      # Solaris 10 /bin/sh.
3981      echo '/* dummy */' > sub/conftst$i.h
3982    done
3983    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984
3985    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3986    # mode.  It turns out that the SunPro C++ compiler does not properly
3987    # handle '-M -o', and we need to detect this.  Also, some Intel
3988    # versions had trouble with output in subdirs.
3989    am__obj=sub/conftest.${OBJEXT-o}
3990    am__minus_obj="-o $am__obj"
3991    case $depmode in
3992    gcc)
3993      # This depmode causes a compiler race in universal mode.
3994      test "$am__universal" = false || continue
3995      ;;
3996    nosideeffect)
3997      # After this tag, mechanisms are not by side-effect, so they'll
3998      # only be used when explicitly requested.
3999      if test "x$enable_dependency_tracking" = xyes; then
4000	continue
4001      else
4002	break
4003      fi
4004      ;;
4005    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4006      # This compiler won't grok '-c -o', but also, the minuso test has
4007      # not run yet.  These depmodes are late enough in the game, and
4008      # so weak that their functioning should not be impacted.
4009      am__obj=conftest.${OBJEXT-o}
4010      am__minus_obj=
4011      ;;
4012    none) break ;;
4013    esac
4014    if depmode=$depmode \
4015       source=sub/conftest.c object=$am__obj \
4016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4018         >/dev/null 2>conftest.err &&
4019       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4020       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4021       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4022       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023      # icc doesn't choke on unknown options, it will just issue warnings
4024      # or remarks (even with -Werror).  So we grep stderr for any message
4025      # that says an option was ignored or not supported.
4026      # When given -MP, icc 7.0 and 7.1 complain thusly:
4027      #   icc: Command line warning: ignoring option '-M'; no argument required
4028      # The diagnosis changed in icc 8.0:
4029      #   icc: Command line remark: option '-MP' not supported
4030      if (grep 'ignoring option' conftest.err ||
4031          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032        am_cv_CC_dependencies_compiler_type=$depmode
4033        break
4034      fi
4035    fi
4036  done
4037
4038  cd ..
4039  rm -rf conftest.dir
4040else
4041  am_cv_CC_dependencies_compiler_type=none
4042fi
4043
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4046$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4047CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4048
4049 if
4050  test "x$enable_dependency_tracking" != xno \
4051  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052  am__fastdepCC_TRUE=
4053  am__fastdepCC_FALSE='#'
4054else
4055  am__fastdepCC_TRUE='#'
4056  am__fastdepCC_FALSE=
4057fi
4058
4059
4060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4061$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4062if ${ac_cv_prog_cc_c99+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  ac_cv_prog_cc_c99=no
4066ac_save_CC=$CC
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069#include <stdarg.h>
4070#include <stdbool.h>
4071#include <stdlib.h>
4072#include <wchar.h>
4073#include <stdio.h>
4074
4075// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4076#define debug(...) fprintf (stderr, __VA_ARGS__)
4077#define showlist(...) puts (#__VA_ARGS__)
4078#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4079static void
4080test_varargs_macros (void)
4081{
4082  int x = 1234;
4083  int y = 5678;
4084  debug ("Flag");
4085  debug ("X = %d\n", x);
4086  showlist (The first, second, and third items.);
4087  report (x>y, "x is %d but y is %d", x, y);
4088}
4089
4090// Check long long types.
4091#define BIG64 18446744073709551615ull
4092#define BIG32 4294967295ul
4093#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4094#if !BIG_OK
4095  your preprocessor is broken;
4096#endif
4097#if BIG_OK
4098#else
4099  your preprocessor is broken;
4100#endif
4101static long long int bignum = -9223372036854775807LL;
4102static unsigned long long int ubignum = BIG64;
4103
4104struct incomplete_array
4105{
4106  int datasize;
4107  double data[];
4108};
4109
4110struct named_init {
4111  int number;
4112  const wchar_t *name;
4113  double average;
4114};
4115
4116typedef const char *ccp;
4117
4118static inline int
4119test_restrict (ccp restrict text)
4120{
4121  // See if C++-style comments work.
4122  // Iterate through items via the restricted pointer.
4123  // Also check for declarations in for loops.
4124  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4125    continue;
4126  return 0;
4127}
4128
4129// Check varargs and va_copy.
4130static void
4131test_varargs (const char *format, ...)
4132{
4133  va_list args;
4134  va_start (args, format);
4135  va_list args_copy;
4136  va_copy (args_copy, args);
4137
4138  const char *str;
4139  int number;
4140  float fnumber;
4141
4142  while (*format)
4143    {
4144      switch (*format++)
4145	{
4146	case 's': // string
4147	  str = va_arg (args_copy, const char *);
4148	  break;
4149	case 'd': // int
4150	  number = va_arg (args_copy, int);
4151	  break;
4152	case 'f': // float
4153	  fnumber = va_arg (args_copy, double);
4154	  break;
4155	default:
4156	  break;
4157	}
4158    }
4159  va_end (args_copy);
4160  va_end (args);
4161}
4162
4163int
4164main ()
4165{
4166
4167  // Check bool.
4168  _Bool success = false;
4169
4170  // Check restrict.
4171  if (test_restrict ("String literal") == 0)
4172    success = true;
4173  char *restrict newvar = "Another string";
4174
4175  // Check varargs.
4176  test_varargs ("s, d' f .", "string", 65, 34.234);
4177  test_varargs_macros ();
4178
4179  // Check flexible array members.
4180  struct incomplete_array *ia =
4181    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4182  ia->datasize = 10;
4183  for (int i = 0; i < ia->datasize; ++i)
4184    ia->data[i] = i * 1.234;
4185
4186  // Check named initializers.
4187  struct named_init ni = {
4188    .number = 34,
4189    .name = L"Test wide string",
4190    .average = 543.34343,
4191  };
4192
4193  ni.number = 58;
4194
4195  int dynamic_array[ni.number];
4196  dynamic_array[ni.number - 1] = 543;
4197
4198  // work around unused variable warnings
4199  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4200	  || dynamic_array[ni.number - 1] != 543);
4201
4202  ;
4203  return 0;
4204}
4205_ACEOF
4206for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4207do
4208  CC="$ac_save_CC $ac_arg"
4209  if ac_fn_c_try_compile "$LINENO"; then :
4210  ac_cv_prog_cc_c99=$ac_arg
4211fi
4212rm -f core conftest.err conftest.$ac_objext
4213  test "x$ac_cv_prog_cc_c99" != "xno" && break
4214done
4215rm -f conftest.$ac_ext
4216CC=$ac_save_CC
4217
4218fi
4219# AC_CACHE_VAL
4220case "x$ac_cv_prog_cc_c99" in
4221  x)
4222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223$as_echo "none needed" >&6; } ;;
4224  xno)
4225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226$as_echo "unsupported" >&6; } ;;
4227  *)
4228    CC="$CC $ac_cv_prog_cc_c99"
4229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4230$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4231esac
4232if test "x$ac_cv_prog_cc_c99" != xno; then :
4233
4234fi
4235
4236
4237
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4239$as_echo_n "checking whether ln -s works... " >&6; }
4240LN_S=$as_ln_s
4241if test "$LN_S" = "ln -s"; then
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243$as_echo "yes" >&6; }
4244else
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4246$as_echo "no, using $LN_S" >&6; }
4247fi
4248
4249case `pwd` in
4250  *\ * | *\	*)
4251    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4252$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4253esac
4254
4255
4256
4257macro_version='2.4.6'
4258macro_revision='2.4.6'
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272ltmain=$ac_aux_dir/ltmain.sh
4273
4274# Make sure we can run config.sub.
4275$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4276  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4277
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4279$as_echo_n "checking build system type... " >&6; }
4280if ${ac_cv_build+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  ac_build_alias=$build_alias
4284test "x$ac_build_alias" = x &&
4285  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4286test "x$ac_build_alias" = x &&
4287  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4288ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4289  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4290
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4293$as_echo "$ac_cv_build" >&6; }
4294case $ac_cv_build in
4295*-*-*) ;;
4296*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4297esac
4298build=$ac_cv_build
4299ac_save_IFS=$IFS; IFS='-'
4300set x $ac_cv_build
4301shift
4302build_cpu=$1
4303build_vendor=$2
4304shift; shift
4305# Remember, the first character of IFS is used to create $*,
4306# except with old shells:
4307build_os=$*
4308IFS=$ac_save_IFS
4309case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4310
4311
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4313$as_echo_n "checking host system type... " >&6; }
4314if ${ac_cv_host+:} false; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  if test "x$host_alias" = x; then
4318  ac_cv_host=$ac_cv_build
4319else
4320  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4321    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4322fi
4323
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4326$as_echo "$ac_cv_host" >&6; }
4327case $ac_cv_host in
4328*-*-*) ;;
4329*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4330esac
4331host=$ac_cv_host
4332ac_save_IFS=$IFS; IFS='-'
4333set x $ac_cv_host
4334shift
4335host_cpu=$1
4336host_vendor=$2
4337shift; shift
4338# Remember, the first character of IFS is used to create $*,
4339# except with old shells:
4340host_os=$*
4341IFS=$ac_save_IFS
4342case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4343
4344
4345# Backslashify metacharacters that are still active within
4346# double-quoted strings.
4347sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4348
4349# Same as above, but do not quote variable references.
4350double_quote_subst='s/\(["`\\]\)/\\\1/g'
4351
4352# Sed substitution to delay expansion of an escaped shell variable in a
4353# double_quote_subst'ed string.
4354delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4355
4356# Sed substitution to delay expansion of an escaped single quote.
4357delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4358
4359# Sed substitution to avoid accidental globbing in evaled expressions
4360no_glob_subst='s/\*/\\\*/g'
4361
4362ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4363ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4364ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4365
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4367$as_echo_n "checking how to print strings... " >&6; }
4368# Test print first, because it will be a builtin if present.
4369if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4370   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4371  ECHO='print -r --'
4372elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4373  ECHO='printf %s\n'
4374else
4375  # Use this function as a fallback that always works.
4376  func_fallback_echo ()
4377  {
4378    eval 'cat <<_LTECHO_EOF
4379$1
4380_LTECHO_EOF'
4381  }
4382  ECHO='func_fallback_echo'
4383fi
4384
4385# func_echo_all arg...
4386# Invoke $ECHO with all args, space-separated.
4387func_echo_all ()
4388{
4389    $ECHO ""
4390}
4391
4392case $ECHO in
4393  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4394$as_echo "printf" >&6; } ;;
4395  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4396$as_echo "print -r" >&6; } ;;
4397  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4398$as_echo "cat" >&6; } ;;
4399esac
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4415$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4416if ${ac_cv_path_SED+:} false; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4420     for ac_i in 1 2 3 4 5 6 7; do
4421       ac_script="$ac_script$as_nl$ac_script"
4422     done
4423     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4424     { ac_script=; unset ac_script;}
4425     if test -z "$SED"; then
4426  ac_path_SED_found=false
4427  # Loop through the user's path and test for each of PROGNAME-LIST
4428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431  IFS=$as_save_IFS
4432  test -z "$as_dir" && as_dir=.
4433    for ac_prog in sed gsed; do
4434    for ac_exec_ext in '' $ac_executable_extensions; do
4435      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4436      as_fn_executable_p "$ac_path_SED" || continue
4437# Check for GNU ac_path_SED and select it if it is found.
4438  # Check for GNU $ac_path_SED
4439case `"$ac_path_SED" --version 2>&1` in
4440*GNU*)
4441  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4442*)
4443  ac_count=0
4444  $as_echo_n 0123456789 >"conftest.in"
4445  while :
4446  do
4447    cat "conftest.in" "conftest.in" >"conftest.tmp"
4448    mv "conftest.tmp" "conftest.in"
4449    cp "conftest.in" "conftest.nl"
4450    $as_echo '' >> "conftest.nl"
4451    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4453    as_fn_arith $ac_count + 1 && ac_count=$as_val
4454    if test $ac_count -gt ${ac_path_SED_max-0}; then
4455      # Best one so far, save it but keep looking for a better one
4456      ac_cv_path_SED="$ac_path_SED"
4457      ac_path_SED_max=$ac_count
4458    fi
4459    # 10*(2^10) chars as input seems more than enough
4460    test $ac_count -gt 10 && break
4461  done
4462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4463esac
4464
4465      $ac_path_SED_found && break 3
4466    done
4467  done
4468  done
4469IFS=$as_save_IFS
4470  if test -z "$ac_cv_path_SED"; then
4471    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4472  fi
4473else
4474  ac_cv_path_SED=$SED
4475fi
4476
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4479$as_echo "$ac_cv_path_SED" >&6; }
4480 SED="$ac_cv_path_SED"
4481  rm -f conftest.sed
4482
4483test -z "$SED" && SED=sed
4484Xsed="$SED -e 1s/^X//"
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4497$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4498if ${ac_cv_path_GREP+:} false; then :
4499  $as_echo_n "(cached) " >&6
4500else
4501  if test -z "$GREP"; then
4502  ac_path_GREP_found=false
4503  # Loop through the user's path and test for each of PROGNAME-LIST
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_prog in grep ggrep; do
4510    for ac_exec_ext in '' $ac_executable_extensions; do
4511      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4512      as_fn_executable_p "$ac_path_GREP" || continue
4513# Check for GNU ac_path_GREP and select it if it is found.
4514  # Check for GNU $ac_path_GREP
4515case `"$ac_path_GREP" --version 2>&1` in
4516*GNU*)
4517  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4518*)
4519  ac_count=0
4520  $as_echo_n 0123456789 >"conftest.in"
4521  while :
4522  do
4523    cat "conftest.in" "conftest.in" >"conftest.tmp"
4524    mv "conftest.tmp" "conftest.in"
4525    cp "conftest.in" "conftest.nl"
4526    $as_echo 'GREP' >> "conftest.nl"
4527    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529    as_fn_arith $ac_count + 1 && ac_count=$as_val
4530    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4531      # Best one so far, save it but keep looking for a better one
4532      ac_cv_path_GREP="$ac_path_GREP"
4533      ac_path_GREP_max=$ac_count
4534    fi
4535    # 10*(2^10) chars as input seems more than enough
4536    test $ac_count -gt 10 && break
4537  done
4538  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539esac
4540
4541      $ac_path_GREP_found && break 3
4542    done
4543  done
4544  done
4545IFS=$as_save_IFS
4546  if test -z "$ac_cv_path_GREP"; then
4547    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4548  fi
4549else
4550  ac_cv_path_GREP=$GREP
4551fi
4552
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4555$as_echo "$ac_cv_path_GREP" >&6; }
4556 GREP="$ac_cv_path_GREP"
4557
4558
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4560$as_echo_n "checking for egrep... " >&6; }
4561if ${ac_cv_path_EGREP+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4565   then ac_cv_path_EGREP="$GREP -E"
4566   else
4567     if test -z "$EGREP"; then
4568  ac_path_EGREP_found=false
4569  # Loop through the user's path and test for each of PROGNAME-LIST
4570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572do
4573  IFS=$as_save_IFS
4574  test -z "$as_dir" && as_dir=.
4575    for ac_prog in egrep; do
4576    for ac_exec_ext in '' $ac_executable_extensions; do
4577      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4578      as_fn_executable_p "$ac_path_EGREP" || continue
4579# Check for GNU ac_path_EGREP and select it if it is found.
4580  # Check for GNU $ac_path_EGREP
4581case `"$ac_path_EGREP" --version 2>&1` in
4582*GNU*)
4583  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4584*)
4585  ac_count=0
4586  $as_echo_n 0123456789 >"conftest.in"
4587  while :
4588  do
4589    cat "conftest.in" "conftest.in" >"conftest.tmp"
4590    mv "conftest.tmp" "conftest.in"
4591    cp "conftest.in" "conftest.nl"
4592    $as_echo 'EGREP' >> "conftest.nl"
4593    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595    as_fn_arith $ac_count + 1 && ac_count=$as_val
4596    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4597      # Best one so far, save it but keep looking for a better one
4598      ac_cv_path_EGREP="$ac_path_EGREP"
4599      ac_path_EGREP_max=$ac_count
4600    fi
4601    # 10*(2^10) chars as input seems more than enough
4602    test $ac_count -gt 10 && break
4603  done
4604  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605esac
4606
4607      $ac_path_EGREP_found && break 3
4608    done
4609  done
4610  done
4611IFS=$as_save_IFS
4612  if test -z "$ac_cv_path_EGREP"; then
4613    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614  fi
4615else
4616  ac_cv_path_EGREP=$EGREP
4617fi
4618
4619   fi
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4622$as_echo "$ac_cv_path_EGREP" >&6; }
4623 EGREP="$ac_cv_path_EGREP"
4624
4625
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4627$as_echo_n "checking for fgrep... " >&6; }
4628if ${ac_cv_path_FGREP+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4632   then ac_cv_path_FGREP="$GREP -F"
4633   else
4634     if test -z "$FGREP"; then
4635  ac_path_FGREP_found=false
4636  # Loop through the user's path and test for each of PROGNAME-LIST
4637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642    for ac_prog in fgrep; do
4643    for ac_exec_ext in '' $ac_executable_extensions; do
4644      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4645      as_fn_executable_p "$ac_path_FGREP" || continue
4646# Check for GNU ac_path_FGREP and select it if it is found.
4647  # Check for GNU $ac_path_FGREP
4648case `"$ac_path_FGREP" --version 2>&1` in
4649*GNU*)
4650  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4651*)
4652  ac_count=0
4653  $as_echo_n 0123456789 >"conftest.in"
4654  while :
4655  do
4656    cat "conftest.in" "conftest.in" >"conftest.tmp"
4657    mv "conftest.tmp" "conftest.in"
4658    cp "conftest.in" "conftest.nl"
4659    $as_echo 'FGREP' >> "conftest.nl"
4660    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662    as_fn_arith $ac_count + 1 && ac_count=$as_val
4663    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4664      # Best one so far, save it but keep looking for a better one
4665      ac_cv_path_FGREP="$ac_path_FGREP"
4666      ac_path_FGREP_max=$ac_count
4667    fi
4668    # 10*(2^10) chars as input seems more than enough
4669    test $ac_count -gt 10 && break
4670  done
4671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672esac
4673
4674      $ac_path_FGREP_found && break 3
4675    done
4676  done
4677  done
4678IFS=$as_save_IFS
4679  if test -z "$ac_cv_path_FGREP"; then
4680    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681  fi
4682else
4683  ac_cv_path_FGREP=$FGREP
4684fi
4685
4686   fi
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4689$as_echo "$ac_cv_path_FGREP" >&6; }
4690 FGREP="$ac_cv_path_FGREP"
4691
4692
4693test -z "$GREP" && GREP=grep
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713# Check whether --with-gnu-ld was given.
4714if test "${with_gnu_ld+set}" = set; then :
4715  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4716else
4717  with_gnu_ld=no
4718fi
4719
4720ac_prog=ld
4721if test yes = "$GCC"; then
4722  # Check if gcc -print-prog-name=ld gives a path.
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4724$as_echo_n "checking for ld used by $CC... " >&6; }
4725  case $host in
4726  *-*-mingw*)
4727    # gcc leaves a trailing carriage return, which upsets mingw
4728    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4729  *)
4730    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4731  esac
4732  case $ac_prog in
4733    # Accept absolute paths.
4734    [\\/]* | ?:[\\/]*)
4735      re_direlt='/[^/][^/]*/\.\./'
4736      # Canonicalize the pathname of ld
4737      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4738      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4739	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4740      done
4741      test -z "$LD" && LD=$ac_prog
4742      ;;
4743  "")
4744    # If it fails, then pretend we aren't using GCC.
4745    ac_prog=ld
4746    ;;
4747  *)
4748    # If it is relative, then search for the first ld in PATH.
4749    with_gnu_ld=unknown
4750    ;;
4751  esac
4752elif test yes = "$with_gnu_ld"; then
4753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4754$as_echo_n "checking for GNU ld... " >&6; }
4755else
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4757$as_echo_n "checking for non-GNU ld... " >&6; }
4758fi
4759if ${lt_cv_path_LD+:} false; then :
4760  $as_echo_n "(cached) " >&6
4761else
4762  if test -z "$LD"; then
4763  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4764  for ac_dir in $PATH; do
4765    IFS=$lt_save_ifs
4766    test -z "$ac_dir" && ac_dir=.
4767    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4768      lt_cv_path_LD=$ac_dir/$ac_prog
4769      # Check to see if the program is GNU ld.  I'd rather use --version,
4770      # but apparently some variants of GNU ld only accept -v.
4771      # Break only if it was the GNU/non-GNU ld that we prefer.
4772      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4773      *GNU* | *'with BFD'*)
4774	test no != "$with_gnu_ld" && break
4775	;;
4776      *)
4777	test yes != "$with_gnu_ld" && break
4778	;;
4779      esac
4780    fi
4781  done
4782  IFS=$lt_save_ifs
4783else
4784  lt_cv_path_LD=$LD # Let the user override the test with a path.
4785fi
4786fi
4787
4788LD=$lt_cv_path_LD
4789if test -n "$LD"; then
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4791$as_echo "$LD" >&6; }
4792else
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
4795fi
4796test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4798$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4799if ${lt_cv_prog_gnu_ld+:} false; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4803case `$LD -v 2>&1 </dev/null` in
4804*GNU* | *'with BFD'*)
4805  lt_cv_prog_gnu_ld=yes
4806  ;;
4807*)
4808  lt_cv_prog_gnu_ld=no
4809  ;;
4810esac
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4813$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4814with_gnu_ld=$lt_cv_prog_gnu_ld
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4825$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4826if ${lt_cv_path_NM+:} false; then :
4827  $as_echo_n "(cached) " >&6
4828else
4829  if test -n "$NM"; then
4830  # Let the user override the test.
4831  lt_cv_path_NM=$NM
4832else
4833  lt_nm_to_check=${ac_tool_prefix}nm
4834  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4835    lt_nm_to_check="$lt_nm_to_check nm"
4836  fi
4837  for lt_tmp_nm in $lt_nm_to_check; do
4838    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4839    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4840      IFS=$lt_save_ifs
4841      test -z "$ac_dir" && ac_dir=.
4842      tmp_nm=$ac_dir/$lt_tmp_nm
4843      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4844	# Check to see if the nm accepts a BSD-compat flag.
4845	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4846	#   nm: unknown option "B" ignored
4847	# Tru64's nm complains that /dev/null is an invalid object file
4848	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4849	case $build_os in
4850	mingw*) lt_bad_file=conftest.nm/nofile ;;
4851	*) lt_bad_file=/dev/null ;;
4852	esac
4853	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4854	*$lt_bad_file* | *'Invalid file or object type'*)
4855	  lt_cv_path_NM="$tmp_nm -B"
4856	  break 2
4857	  ;;
4858	*)
4859	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4860	  */dev/null*)
4861	    lt_cv_path_NM="$tmp_nm -p"
4862	    break 2
4863	    ;;
4864	  *)
4865	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4866	    continue # so that we can try to find one that supports BSD flags
4867	    ;;
4868	  esac
4869	  ;;
4870	esac
4871      fi
4872    done
4873    IFS=$lt_save_ifs
4874  done
4875  : ${lt_cv_path_NM=no}
4876fi
4877fi
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4879$as_echo "$lt_cv_path_NM" >&6; }
4880if test no != "$lt_cv_path_NM"; then
4881  NM=$lt_cv_path_NM
4882else
4883  # Didn't find any BSD compatible name lister, look for dumpbin.
4884  if test -n "$DUMPBIN"; then :
4885    # Let the user override the test.
4886  else
4887    if test -n "$ac_tool_prefix"; then
4888  for ac_prog in dumpbin "link -dump"
4889  do
4890    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893$as_echo_n "checking for $ac_word... " >&6; }
4894if ${ac_cv_prog_DUMPBIN+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  if test -n "$DUMPBIN"; then
4898  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903  IFS=$as_save_IFS
4904  test -z "$as_dir" && as_dir=.
4905    for ac_exec_ext in '' $ac_executable_extensions; do
4906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909    break 2
4910  fi
4911done
4912  done
4913IFS=$as_save_IFS
4914
4915fi
4916fi
4917DUMPBIN=$ac_cv_prog_DUMPBIN
4918if test -n "$DUMPBIN"; then
4919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4920$as_echo "$DUMPBIN" >&6; }
4921else
4922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923$as_echo "no" >&6; }
4924fi
4925
4926
4927    test -n "$DUMPBIN" && break
4928  done
4929fi
4930if test -z "$DUMPBIN"; then
4931  ac_ct_DUMPBIN=$DUMPBIN
4932  for ac_prog in dumpbin "link -dump"
4933do
4934  # Extract the first word of "$ac_prog", so it can be a program name with args.
4935set dummy $ac_prog; ac_word=$2
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937$as_echo_n "checking for $ac_word... " >&6; }
4938if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941  if test -n "$ac_ct_DUMPBIN"; then
4942  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947  IFS=$as_save_IFS
4948  test -z "$as_dir" && as_dir=.
4949    for ac_exec_ext in '' $ac_executable_extensions; do
4950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953    break 2
4954  fi
4955done
4956  done
4957IFS=$as_save_IFS
4958
4959fi
4960fi
4961ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4962if test -n "$ac_ct_DUMPBIN"; then
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4964$as_echo "$ac_ct_DUMPBIN" >&6; }
4965else
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970
4971  test -n "$ac_ct_DUMPBIN" && break
4972done
4973
4974  if test "x$ac_ct_DUMPBIN" = x; then
4975    DUMPBIN=":"
4976  else
4977    case $cross_compiling:$ac_tool_warned in
4978yes:)
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981ac_tool_warned=yes ;;
4982esac
4983    DUMPBIN=$ac_ct_DUMPBIN
4984  fi
4985fi
4986
4987    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4988    *COFF*)
4989      DUMPBIN="$DUMPBIN -symbols -headers"
4990      ;;
4991    *)
4992      DUMPBIN=:
4993      ;;
4994    esac
4995  fi
4996
4997  if test : != "$DUMPBIN"; then
4998    NM=$DUMPBIN
4999  fi
5000fi
5001test -z "$NM" && NM=nm
5002
5003
5004
5005
5006
5007
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5009$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5010if ${lt_cv_nm_interface+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  lt_cv_nm_interface="BSD nm"
5014  echo "int some_variable = 0;" > conftest.$ac_ext
5015  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5016  (eval "$ac_compile" 2>conftest.err)
5017  cat conftest.err >&5
5018  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5019  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5020  cat conftest.err >&5
5021  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5022  cat conftest.out >&5
5023  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5024    lt_cv_nm_interface="MS dumpbin"
5025  fi
5026  rm -f conftest*
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5029$as_echo "$lt_cv_nm_interface" >&6; }
5030
5031# find the maximum length of command line arguments
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5033$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5034if ${lt_cv_sys_max_cmd_len+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037    i=0
5038  teststring=ABCD
5039
5040  case $build_os in
5041  msdosdjgpp*)
5042    # On DJGPP, this test can blow up pretty badly due to problems in libc
5043    # (any single argument exceeding 2000 bytes causes a buffer overrun
5044    # during glob expansion).  Even if it were fixed, the result of this
5045    # check would be larger than it should be.
5046    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5047    ;;
5048
5049  gnu*)
5050    # Under GNU Hurd, this test is not required because there is
5051    # no limit to the length of command line arguments.
5052    # Libtool will interpret -1 as no limit whatsoever
5053    lt_cv_sys_max_cmd_len=-1;
5054    ;;
5055
5056  cygwin* | mingw* | cegcc*)
5057    # On Win9x/ME, this test blows up -- it succeeds, but takes
5058    # about 5 minutes as the teststring grows exponentially.
5059    # Worse, since 9x/ME are not pre-emptively multitasking,
5060    # you end up with a "frozen" computer, even though with patience
5061    # the test eventually succeeds (with a max line length of 256k).
5062    # Instead, let's just punt: use the minimum linelength reported by
5063    # all of the supported platforms: 8192 (on NT/2K/XP).
5064    lt_cv_sys_max_cmd_len=8192;
5065    ;;
5066
5067  mint*)
5068    # On MiNT this can take a long time and run out of memory.
5069    lt_cv_sys_max_cmd_len=8192;
5070    ;;
5071
5072  amigaos*)
5073    # On AmigaOS with pdksh, this test takes hours, literally.
5074    # So we just punt and use a minimum line length of 8192.
5075    lt_cv_sys_max_cmd_len=8192;
5076    ;;
5077
5078  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5079    # This has been around since 386BSD, at least.  Likely further.
5080    if test -x /sbin/sysctl; then
5081      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5082    elif test -x /usr/sbin/sysctl; then
5083      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5084    else
5085      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5086    fi
5087    # And add a safety zone
5088    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5089    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5090    ;;
5091
5092  interix*)
5093    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5094    lt_cv_sys_max_cmd_len=196608
5095    ;;
5096
5097  os2*)
5098    # The test takes a long time on OS/2.
5099    lt_cv_sys_max_cmd_len=8192
5100    ;;
5101
5102  osf*)
5103    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5104    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5105    # nice to cause kernel panics so lets avoid the loop below.
5106    # First set a reasonable default.
5107    lt_cv_sys_max_cmd_len=16384
5108    #
5109    if test -x /sbin/sysconfig; then
5110      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5111        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5112      esac
5113    fi
5114    ;;
5115  sco3.2v5*)
5116    lt_cv_sys_max_cmd_len=102400
5117    ;;
5118  sysv5* | sco5v6* | sysv4.2uw2*)
5119    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5120    if test -n "$kargmax"; then
5121      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5122    else
5123      lt_cv_sys_max_cmd_len=32768
5124    fi
5125    ;;
5126  *)
5127    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5128    if test -n "$lt_cv_sys_max_cmd_len" && \
5129       test undefined != "$lt_cv_sys_max_cmd_len"; then
5130      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5131      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5132    else
5133      # Make teststring a little bigger before we do anything with it.
5134      # a 1K string should be a reasonable start.
5135      for i in 1 2 3 4 5 6 7 8; do
5136        teststring=$teststring$teststring
5137      done
5138      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5139      # If test is not a shell built-in, we'll probably end up computing a
5140      # maximum length that is only half of the actual maximum length, but
5141      # we can't tell.
5142      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5143	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5144	      test 17 != "$i" # 1/2 MB should be enough
5145      do
5146        i=`expr $i + 1`
5147        teststring=$teststring$teststring
5148      done
5149      # Only check the string length outside the loop.
5150      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5151      teststring=
5152      # Add a significant safety factor because C++ compilers can tack on
5153      # massive amounts of additional arguments before passing them to the
5154      # linker.  It appears as though 1/2 is a usable value.
5155      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5156    fi
5157    ;;
5158  esac
5159
5160fi
5161
5162if test -n "$lt_cv_sys_max_cmd_len"; then
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5164$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5165else
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5167$as_echo "none" >&6; }
5168fi
5169max_cmd_len=$lt_cv_sys_max_cmd_len
5170
5171
5172
5173
5174
5175
5176: ${CP="cp -f"}
5177: ${MV="mv -f"}
5178: ${RM="rm -f"}
5179
5180if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5181  lt_unset=unset
5182else
5183  lt_unset=false
5184fi
5185
5186
5187
5188
5189
5190# test EBCDIC or ASCII
5191case `echo X|tr X '\101'` in
5192 A) # ASCII based system
5193    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5194  lt_SP2NL='tr \040 \012'
5195  lt_NL2SP='tr \015\012 \040\040'
5196  ;;
5197 *) # EBCDIC based system
5198  lt_SP2NL='tr \100 \n'
5199  lt_NL2SP='tr \r\n \100\100'
5200  ;;
5201esac
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5212$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5213if ${lt_cv_to_host_file_cmd+:} false; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  case $host in
5217  *-*-mingw* )
5218    case $build in
5219      *-*-mingw* ) # actually msys
5220        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5221        ;;
5222      *-*-cygwin* )
5223        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5224        ;;
5225      * ) # otherwise, assume *nix
5226        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5227        ;;
5228    esac
5229    ;;
5230  *-*-cygwin* )
5231    case $build in
5232      *-*-mingw* ) # actually msys
5233        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5234        ;;
5235      *-*-cygwin* )
5236        lt_cv_to_host_file_cmd=func_convert_file_noop
5237        ;;
5238      * ) # otherwise, assume *nix
5239        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5240        ;;
5241    esac
5242    ;;
5243  * ) # unhandled hosts (and "normal" native builds)
5244    lt_cv_to_host_file_cmd=func_convert_file_noop
5245    ;;
5246esac
5247
5248fi
5249
5250to_host_file_cmd=$lt_cv_to_host_file_cmd
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5252$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5253
5254
5255
5256
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5259$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5260if ${lt_cv_to_tool_file_cmd+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  #assume ordinary cross tools, or native build.
5264lt_cv_to_tool_file_cmd=func_convert_file_noop
5265case $host in
5266  *-*-mingw* )
5267    case $build in
5268      *-*-mingw* ) # actually msys
5269        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5270        ;;
5271    esac
5272    ;;
5273esac
5274
5275fi
5276
5277to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5279$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5280
5281
5282
5283
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5286$as_echo_n "checking for $LD option to reload object files... " >&6; }
5287if ${lt_cv_ld_reload_flag+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  lt_cv_ld_reload_flag='-r'
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5293$as_echo "$lt_cv_ld_reload_flag" >&6; }
5294reload_flag=$lt_cv_ld_reload_flag
5295case $reload_flag in
5296"" | " "*) ;;
5297*) reload_flag=" $reload_flag" ;;
5298esac
5299reload_cmds='$LD$reload_flag -o $output$reload_objs'
5300case $host_os in
5301  cygwin* | mingw* | pw32* | cegcc*)
5302    if test yes != "$GCC"; then
5303      reload_cmds=false
5304    fi
5305    ;;
5306  darwin*)
5307    if test yes = "$GCC"; then
5308      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5309    else
5310      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311    fi
5312    ;;
5313esac
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323if test -n "$ac_tool_prefix"; then
5324  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5325set dummy ${ac_tool_prefix}objdump; ac_word=$2
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; }
5328if ${ac_cv_prog_OBJDUMP+:} false; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  if test -n "$OBJDUMP"; then
5332  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5333else
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337  IFS=$as_save_IFS
5338  test -z "$as_dir" && as_dir=.
5339    for ac_exec_ext in '' $ac_executable_extensions; do
5340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343    break 2
5344  fi
5345done
5346  done
5347IFS=$as_save_IFS
5348
5349fi
5350fi
5351OBJDUMP=$ac_cv_prog_OBJDUMP
5352if test -n "$OBJDUMP"; then
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5354$as_echo "$OBJDUMP" >&6; }
5355else
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357$as_echo "no" >&6; }
5358fi
5359
5360
5361fi
5362if test -z "$ac_cv_prog_OBJDUMP"; then
5363  ac_ct_OBJDUMP=$OBJDUMP
5364  # Extract the first word of "objdump", so it can be a program name with args.
5365set dummy objdump; ac_word=$2
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  if test -n "$ac_ct_OBJDUMP"; then
5372  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379    for ac_exec_ext in '' $ac_executable_extensions; do
5380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386  done
5387IFS=$as_save_IFS
5388
5389fi
5390fi
5391ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5392if test -n "$ac_ct_OBJDUMP"; then
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5394$as_echo "$ac_ct_OBJDUMP" >&6; }
5395else
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400  if test "x$ac_ct_OBJDUMP" = x; then
5401    OBJDUMP="false"
5402  else
5403    case $cross_compiling:$ac_tool_warned in
5404yes:)
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407ac_tool_warned=yes ;;
5408esac
5409    OBJDUMP=$ac_ct_OBJDUMP
5410  fi
5411else
5412  OBJDUMP="$ac_cv_prog_OBJDUMP"
5413fi
5414
5415test -z "$OBJDUMP" && OBJDUMP=objdump
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5426$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5427if ${lt_cv_deplibs_check_method+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  lt_cv_file_magic_cmd='$MAGIC_CMD'
5431lt_cv_file_magic_test_file=
5432lt_cv_deplibs_check_method='unknown'
5433# Need to set the preceding variable on all platforms that support
5434# interlibrary dependencies.
5435# 'none' -- dependencies not supported.
5436# 'unknown' -- same as none, but documents that we really don't know.
5437# 'pass_all' -- all dependencies passed with no checks.
5438# 'test_compile' -- check by making test program.
5439# 'file_magic [[regex]]' -- check by looking for files in library path
5440# that responds to the $file_magic_cmd with a given extended regex.
5441# If you have 'file' or equivalent on your system and you're not sure
5442# whether 'pass_all' will *always* work, you probably want this one.
5443
5444case $host_os in
5445aix[4-9]*)
5446  lt_cv_deplibs_check_method=pass_all
5447  ;;
5448
5449beos*)
5450  lt_cv_deplibs_check_method=pass_all
5451  ;;
5452
5453bsdi[45]*)
5454  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5455  lt_cv_file_magic_cmd='/usr/bin/file -L'
5456  lt_cv_file_magic_test_file=/shlib/libc.so
5457  ;;
5458
5459cygwin*)
5460  # func_win32_libid is a shell function defined in ltmain.sh
5461  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5462  lt_cv_file_magic_cmd='func_win32_libid'
5463  ;;
5464
5465mingw* | pw32*)
5466  # Base MSYS/MinGW do not provide the 'file' command needed by
5467  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5468  # unless we find 'file', for example because we are cross-compiling.
5469  if ( file / ) >/dev/null 2>&1; then
5470    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5471    lt_cv_file_magic_cmd='func_win32_libid'
5472  else
5473    # Keep this pattern in sync with the one in func_win32_libid.
5474    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5475    lt_cv_file_magic_cmd='$OBJDUMP -f'
5476  fi
5477  ;;
5478
5479cegcc*)
5480  # use the weaker test based on 'objdump'. See mingw*.
5481  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5482  lt_cv_file_magic_cmd='$OBJDUMP -f'
5483  ;;
5484
5485darwin* | rhapsody*)
5486  lt_cv_deplibs_check_method=pass_all
5487  ;;
5488
5489freebsd* | dragonfly*)
5490  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5491    case $host_cpu in
5492    i*86 )
5493      # Not sure whether the presence of OpenBSD here was a mistake.
5494      # Let's accept both of them until this is cleared up.
5495      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5496      lt_cv_file_magic_cmd=/usr/bin/file
5497      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5498      ;;
5499    esac
5500  else
5501    lt_cv_deplibs_check_method=pass_all
5502  fi
5503  ;;
5504
5505haiku*)
5506  lt_cv_deplibs_check_method=pass_all
5507  ;;
5508
5509hpux10.20* | hpux11*)
5510  lt_cv_file_magic_cmd=/usr/bin/file
5511  case $host_cpu in
5512  ia64*)
5513    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5514    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5515    ;;
5516  hppa*64*)
5517    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]'
5518    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5519    ;;
5520  *)
5521    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5522    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5523    ;;
5524  esac
5525  ;;
5526
5527interix[3-9]*)
5528  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5529  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5530  ;;
5531
5532irix5* | irix6* | nonstopux*)
5533  case $LD in
5534  *-32|*"-32 ") libmagic=32-bit;;
5535  *-n32|*"-n32 ") libmagic=N32;;
5536  *-64|*"-64 ") libmagic=64-bit;;
5537  *) libmagic=never-match;;
5538  esac
5539  lt_cv_deplibs_check_method=pass_all
5540  ;;
5541
5542# This must be glibc/ELF.
5543linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5544  lt_cv_deplibs_check_method=pass_all
5545  ;;
5546
5547netbsd*)
5548  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5549    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5550  else
5551    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5552  fi
5553  ;;
5554
5555newos6*)
5556  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5557  lt_cv_file_magic_cmd=/usr/bin/file
5558  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5559  ;;
5560
5561*nto* | *qnx*)
5562  lt_cv_deplibs_check_method=pass_all
5563  ;;
5564
5565openbsd* | bitrig*)
5566  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5567    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5568  else
5569    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5570  fi
5571  ;;
5572
5573osf3* | osf4* | osf5*)
5574  lt_cv_deplibs_check_method=pass_all
5575  ;;
5576
5577rdos*)
5578  lt_cv_deplibs_check_method=pass_all
5579  ;;
5580
5581solaris*)
5582  lt_cv_deplibs_check_method=pass_all
5583  ;;
5584
5585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5586  lt_cv_deplibs_check_method=pass_all
5587  ;;
5588
5589sysv4 | sysv4.3*)
5590  case $host_vendor in
5591  motorola)
5592    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]'
5593    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5594    ;;
5595  ncr)
5596    lt_cv_deplibs_check_method=pass_all
5597    ;;
5598  sequent)
5599    lt_cv_file_magic_cmd='/bin/file'
5600    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5601    ;;
5602  sni)
5603    lt_cv_file_magic_cmd='/bin/file'
5604    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5605    lt_cv_file_magic_test_file=/lib/libc.so
5606    ;;
5607  siemens)
5608    lt_cv_deplibs_check_method=pass_all
5609    ;;
5610  pc)
5611    lt_cv_deplibs_check_method=pass_all
5612    ;;
5613  esac
5614  ;;
5615
5616tpf*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619os2*)
5620  lt_cv_deplibs_check_method=pass_all
5621  ;;
5622esac
5623
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5626$as_echo "$lt_cv_deplibs_check_method" >&6; }
5627
5628file_magic_glob=
5629want_nocaseglob=no
5630if test "$build" = "$host"; then
5631  case $host_os in
5632  mingw* | pw32*)
5633    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5634      want_nocaseglob=yes
5635    else
5636      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5637    fi
5638    ;;
5639  esac
5640fi
5641
5642file_magic_cmd=$lt_cv_file_magic_cmd
5643deplibs_check_method=$lt_cv_deplibs_check_method
5644test -z "$deplibs_check_method" && deplibs_check_method=unknown
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667if test -n "$ac_tool_prefix"; then
5668  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5669set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671$as_echo_n "checking for $ac_word... " >&6; }
5672if ${ac_cv_prog_DLLTOOL+:} false; then :
5673  $as_echo_n "(cached) " >&6
5674else
5675  if test -n "$DLLTOOL"; then
5676  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5677else
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681  IFS=$as_save_IFS
5682  test -z "$as_dir" && as_dir=.
5683    for ac_exec_ext in '' $ac_executable_extensions; do
5684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687    break 2
5688  fi
5689done
5690  done
5691IFS=$as_save_IFS
5692
5693fi
5694fi
5695DLLTOOL=$ac_cv_prog_DLLTOOL
5696if test -n "$DLLTOOL"; then
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5698$as_echo "$DLLTOOL" >&6; }
5699else
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701$as_echo "no" >&6; }
5702fi
5703
5704
5705fi
5706if test -z "$ac_cv_prog_DLLTOOL"; then
5707  ac_ct_DLLTOOL=$DLLTOOL
5708  # Extract the first word of "dlltool", so it can be a program name with args.
5709set dummy dlltool; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  if test -n "$ac_ct_DLLTOOL"; then
5716  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721  IFS=$as_save_IFS
5722  test -z "$as_dir" && as_dir=.
5723    for ac_exec_ext in '' $ac_executable_extensions; do
5724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727    break 2
5728  fi
5729done
5730  done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5736if test -n "$ac_ct_DLLTOOL"; then
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5738$as_echo "$ac_ct_DLLTOOL" >&6; }
5739else
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744  if test "x$ac_ct_DLLTOOL" = x; then
5745    DLLTOOL="false"
5746  else
5747    case $cross_compiling:$ac_tool_warned in
5748yes:)
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5751ac_tool_warned=yes ;;
5752esac
5753    DLLTOOL=$ac_ct_DLLTOOL
5754  fi
5755else
5756  DLLTOOL="$ac_cv_prog_DLLTOOL"
5757fi
5758
5759test -z "$DLLTOOL" && DLLTOOL=dlltool
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5771$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5772if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  lt_cv_sharedlib_from_linklib_cmd='unknown'
5776
5777case $host_os in
5778cygwin* | mingw* | pw32* | cegcc*)
5779  # two different shell functions defined in ltmain.sh;
5780  # decide which one to use based on capabilities of $DLLTOOL
5781  case `$DLLTOOL --help 2>&1` in
5782  *--identify-strict*)
5783    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5784    ;;
5785  *)
5786    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5787    ;;
5788  esac
5789  ;;
5790*)
5791  # fallback: assume linklib IS sharedlib
5792  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5793  ;;
5794esac
5795
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5798$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5799sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5800test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5801
5802
5803
5804
5805
5806
5807
5808
5809if test -n "$ac_tool_prefix"; then
5810  for ac_prog in ar
5811  do
5812    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
5816if ${ac_cv_prog_AR+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  if test -n "$AR"; then
5820  ac_cv_prog_AR="$AR" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825  IFS=$as_save_IFS
5826  test -z "$as_dir" && as_dir=.
5827    for ac_exec_ext in '' $ac_executable_extensions; do
5828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831    break 2
5832  fi
5833done
5834  done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839AR=$ac_cv_prog_AR
5840if test -n "$AR"; then
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5842$as_echo "$AR" >&6; }
5843else
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846fi
5847
5848
5849    test -n "$AR" && break
5850  done
5851fi
5852if test -z "$AR"; then
5853  ac_ct_AR=$AR
5854  for ac_prog in ar
5855do
5856  # Extract the first word of "$ac_prog", so it can be a program name with args.
5857set dummy $ac_prog; ac_word=$2
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if ${ac_cv_prog_ac_ct_AR+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  if test -n "$ac_ct_AR"; then
5864  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871    for ac_exec_ext in '' $ac_executable_extensions; do
5872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873    ac_cv_prog_ac_ct_AR="$ac_prog"
5874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878  done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883ac_ct_AR=$ac_cv_prog_ac_ct_AR
5884if test -n "$ac_ct_AR"; then
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5886$as_echo "$ac_ct_AR" >&6; }
5887else
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892
5893  test -n "$ac_ct_AR" && break
5894done
5895
5896  if test "x$ac_ct_AR" = x; then
5897    AR="false"
5898  else
5899    case $cross_compiling:$ac_tool_warned in
5900yes:)
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903ac_tool_warned=yes ;;
5904esac
5905    AR=$ac_ct_AR
5906  fi
5907fi
5908
5909: ${AR=ar}
5910: ${AR_FLAGS=cru}
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5923$as_echo_n "checking for archiver @FILE support... " >&6; }
5924if ${lt_cv_ar_at_file+:} false; then :
5925  $as_echo_n "(cached) " >&6
5926else
5927  lt_cv_ar_at_file=no
5928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930
5931int
5932main ()
5933{
5934
5935  ;
5936  return 0;
5937}
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"; then :
5940  echo conftest.$ac_objext > conftest.lst
5941      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5942      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5943  (eval $lt_ar_try) 2>&5
5944  ac_status=$?
5945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946  test $ac_status = 0; }
5947      if test 0 -eq "$ac_status"; then
5948	# Ensure the archiver fails upon bogus file names.
5949	rm -f conftest.$ac_objext libconftest.a
5950	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5951  (eval $lt_ar_try) 2>&5
5952  ac_status=$?
5953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954  test $ac_status = 0; }
5955	if test 0 -ne "$ac_status"; then
5956          lt_cv_ar_at_file=@
5957        fi
5958      fi
5959      rm -f conftest.* libconftest.a
5960
5961fi
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5966$as_echo "$lt_cv_ar_at_file" >&6; }
5967
5968if test no = "$lt_cv_ar_at_file"; then
5969  archiver_list_spec=
5970else
5971  archiver_list_spec=$lt_cv_ar_at_file
5972fi
5973
5974
5975
5976
5977
5978
5979
5980if test -n "$ac_tool_prefix"; then
5981  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5982set dummy ${ac_tool_prefix}strip; ac_word=$2
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984$as_echo_n "checking for $ac_word... " >&6; }
5985if ${ac_cv_prog_STRIP+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  if test -n "$STRIP"; then
5989  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994  IFS=$as_save_IFS
5995  test -z "$as_dir" && as_dir=.
5996    for ac_exec_ext in '' $ac_executable_extensions; do
5997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000    break 2
6001  fi
6002done
6003  done
6004IFS=$as_save_IFS
6005
6006fi
6007fi
6008STRIP=$ac_cv_prog_STRIP
6009if test -n "$STRIP"; then
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6011$as_echo "$STRIP" >&6; }
6012else
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015fi
6016
6017
6018fi
6019if test -z "$ac_cv_prog_STRIP"; then
6020  ac_ct_STRIP=$STRIP
6021  # Extract the first word of "strip", so it can be a program name with args.
6022set dummy strip; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  if test -n "$ac_ct_STRIP"; then
6029  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6030else
6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034  IFS=$as_save_IFS
6035  test -z "$as_dir" && as_dir=.
6036    for ac_exec_ext in '' $ac_executable_extensions; do
6037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038    ac_cv_prog_ac_ct_STRIP="strip"
6039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040    break 2
6041  fi
6042done
6043  done
6044IFS=$as_save_IFS
6045
6046fi
6047fi
6048ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6049if test -n "$ac_ct_STRIP"; then
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6051$as_echo "$ac_ct_STRIP" >&6; }
6052else
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054$as_echo "no" >&6; }
6055fi
6056
6057  if test "x$ac_ct_STRIP" = x; then
6058    STRIP=":"
6059  else
6060    case $cross_compiling:$ac_tool_warned in
6061yes:)
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064ac_tool_warned=yes ;;
6065esac
6066    STRIP=$ac_ct_STRIP
6067  fi
6068else
6069  STRIP="$ac_cv_prog_STRIP"
6070fi
6071
6072test -z "$STRIP" && STRIP=:
6073
6074
6075
6076
6077
6078
6079if test -n "$ac_tool_prefix"; then
6080  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if ${ac_cv_prog_RANLIB+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  if test -n "$RANLIB"; then
6088  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  test -z "$as_dir" && as_dir=.
6095    for ac_exec_ext in '' $ac_executable_extensions; do
6096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099    break 2
6100  fi
6101done
6102  done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107RANLIB=$ac_cv_prog_RANLIB
6108if test -n "$RANLIB"; then
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6110$as_echo "$RANLIB" >&6; }
6111else
6112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116
6117fi
6118if test -z "$ac_cv_prog_RANLIB"; then
6119  ac_ct_RANLIB=$RANLIB
6120  # Extract the first word of "ranlib", so it can be a program name with args.
6121set dummy ranlib; ac_word=$2
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123$as_echo_n "checking for $ac_word... " >&6; }
6124if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127  if test -n "$ac_ct_RANLIB"; then
6128  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133  IFS=$as_save_IFS
6134  test -z "$as_dir" && as_dir=.
6135    for ac_exec_ext in '' $ac_executable_extensions; do
6136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137    ac_cv_prog_ac_ct_RANLIB="ranlib"
6138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139    break 2
6140  fi
6141done
6142  done
6143IFS=$as_save_IFS
6144
6145fi
6146fi
6147ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6148if test -n "$ac_ct_RANLIB"; then
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6150$as_echo "$ac_ct_RANLIB" >&6; }
6151else
6152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153$as_echo "no" >&6; }
6154fi
6155
6156  if test "x$ac_ct_RANLIB" = x; then
6157    RANLIB=":"
6158  else
6159    case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165    RANLIB=$ac_ct_RANLIB
6166  fi
6167else
6168  RANLIB="$ac_cv_prog_RANLIB"
6169fi
6170
6171test -z "$RANLIB" && RANLIB=:
6172
6173
6174
6175
6176
6177
6178# Determine commands to create old-style static archives.
6179old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6180old_postinstall_cmds='chmod 644 $oldlib'
6181old_postuninstall_cmds=
6182
6183if test -n "$RANLIB"; then
6184  case $host_os in
6185  bitrig* | openbsd*)
6186    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6187    ;;
6188  *)
6189    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6190    ;;
6191  esac
6192  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6193fi
6194
6195case $host_os in
6196  darwin*)
6197    lock_old_archive_extraction=yes ;;
6198  *)
6199    lock_old_archive_extraction=no ;;
6200esac
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240# If no C compiler was specified, use CC.
6241LTCC=${LTCC-"$CC"}
6242
6243# If no C compiler flags were specified, use CFLAGS.
6244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6245
6246# Allow CC to be a program name with arguments.
6247compiler=$CC
6248
6249
6250# Check for command to grab the raw symbol name followed by C symbol from nm.
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6252$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6253if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256
6257# These are sane defaults that work on at least a few old systems.
6258# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6259
6260# Character class describing NM global symbol codes.
6261symcode='[BCDEGRST]'
6262
6263# Regexp to match symbols that can be accessed directly from C.
6264sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6265
6266# Define system-specific variables.
6267case $host_os in
6268aix*)
6269  symcode='[BCDT]'
6270  ;;
6271cygwin* | mingw* | pw32* | cegcc*)
6272  symcode='[ABCDGISTW]'
6273  ;;
6274hpux*)
6275  if test ia64 = "$host_cpu"; then
6276    symcode='[ABCDEGRST]'
6277  fi
6278  ;;
6279irix* | nonstopux*)
6280  symcode='[BCDEGRST]'
6281  ;;
6282osf*)
6283  symcode='[BCDEGQRST]'
6284  ;;
6285solaris*)
6286  symcode='[BDRT]'
6287  ;;
6288sco3.2v5*)
6289  symcode='[DT]'
6290  ;;
6291sysv4.2uw2*)
6292  symcode='[DT]'
6293  ;;
6294sysv5* | sco5v6* | unixware* | OpenUNIX*)
6295  symcode='[ABDT]'
6296  ;;
6297sysv4)
6298  symcode='[DFNSTU]'
6299  ;;
6300esac
6301
6302# If we're using GNU nm, then use its standard symbol codes.
6303case `$NM -V 2>&1` in
6304*GNU* | *'with BFD'*)
6305  symcode='[ABCDGIRSTW]' ;;
6306esac
6307
6308if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6309  # Gets list of data symbols to import.
6310  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6311  # Adjust the below global symbol transforms to fixup imported variables.
6312  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6313  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6314  lt_c_name_lib_hook="\
6315  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6316  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6317else
6318  # Disable hooks by default.
6319  lt_cv_sys_global_symbol_to_import=
6320  lt_cdecl_hook=
6321  lt_c_name_hook=
6322  lt_c_name_lib_hook=
6323fi
6324
6325# Transform an extracted symbol line into a proper C declaration.
6326# Some systems (esp. on ia64) link data and code symbols differently,
6327# so use this general approach.
6328lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6329$lt_cdecl_hook\
6330" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6331" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6332
6333# Transform an extracted symbol line into symbol name and symbol address
6334lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6335$lt_c_name_hook\
6336" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6337" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6338
6339# Transform an extracted symbol line into symbol name with lib prefix and
6340# symbol address.
6341lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6342$lt_c_name_lib_hook\
6343" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6344" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6345" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6346
6347# Handle CRLF in mingw tool chain
6348opt_cr=
6349case $build_os in
6350mingw*)
6351  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352  ;;
6353esac
6354
6355# Try without a prefix underscore, then with it.
6356for ac_symprfx in "" "_"; do
6357
6358  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6359  symxfrm="\\1 $ac_symprfx\\2 \\2"
6360
6361  # Write the raw and C identifiers.
6362  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6363    # Fake it for dumpbin and say T for any non-static function,
6364    # D for any global variable and I for any imported variable.
6365    # Also find C++ and __fastcall symbols from MSVC++,
6366    # which start with @ or ?.
6367    lt_cv_sys_global_symbol_pipe="$AWK '"\
6368"     {last_section=section; section=\$ 3};"\
6369"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6370"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6371"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6372"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6373"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6374"     \$ 0!~/External *\|/{next};"\
6375"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6376"     {if(hide[section]) next};"\
6377"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6378"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6379"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6380"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6381"     ' prfx=^$ac_symprfx"
6382  else
6383    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6384  fi
6385  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6386
6387  # Check to see that the pipe works correctly.
6388  pipe_works=no
6389
6390  rm -f conftest*
6391  cat > conftest.$ac_ext <<_LT_EOF
6392#ifdef __cplusplus
6393extern "C" {
6394#endif
6395char nm_test_var;
6396void nm_test_func(void);
6397void nm_test_func(void){}
6398#ifdef __cplusplus
6399}
6400#endif
6401int main(){nm_test_var='a';nm_test_func();return(0);}
6402_LT_EOF
6403
6404  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405  (eval $ac_compile) 2>&5
6406  ac_status=$?
6407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408  test $ac_status = 0; }; then
6409    # Now try to grab the symbols.
6410    nlist=conftest.nm
6411    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6412  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6413  ac_status=$?
6414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415  test $ac_status = 0; } && test -s "$nlist"; then
6416      # Try sorting and uniquifying the output.
6417      if sort "$nlist" | uniq > "$nlist"T; then
6418	mv -f "$nlist"T "$nlist"
6419      else
6420	rm -f "$nlist"T
6421      fi
6422
6423      # Make sure that we snagged all the symbols we need.
6424      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6425	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6426	  cat <<_LT_EOF > conftest.$ac_ext
6427/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6428#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6429/* DATA imports from DLLs on WIN32 can't be const, because runtime
6430   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6431# define LT_DLSYM_CONST
6432#elif defined __osf__
6433/* This system does not cope well with relocations in const data.  */
6434# define LT_DLSYM_CONST
6435#else
6436# define LT_DLSYM_CONST const
6437#endif
6438
6439#ifdef __cplusplus
6440extern "C" {
6441#endif
6442
6443_LT_EOF
6444	  # Now generate the symbol file.
6445	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6446
6447	  cat <<_LT_EOF >> conftest.$ac_ext
6448
6449/* The mapping between symbol names and symbols.  */
6450LT_DLSYM_CONST struct {
6451  const char *name;
6452  void       *address;
6453}
6454lt__PROGRAM__LTX_preloaded_symbols[] =
6455{
6456  { "@PROGRAM@", (void *) 0 },
6457_LT_EOF
6458	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6459	  cat <<\_LT_EOF >> conftest.$ac_ext
6460  {0, (void *) 0}
6461};
6462
6463/* This works around a problem in FreeBSD linker */
6464#ifdef FREEBSD_WORKAROUND
6465static const void *lt_preloaded_setup() {
6466  return lt__PROGRAM__LTX_preloaded_symbols;
6467}
6468#endif
6469
6470#ifdef __cplusplus
6471}
6472#endif
6473_LT_EOF
6474	  # Now try linking the two files.
6475	  mv conftest.$ac_objext conftstm.$ac_objext
6476	  lt_globsym_save_LIBS=$LIBS
6477	  lt_globsym_save_CFLAGS=$CFLAGS
6478	  LIBS=conftstm.$ac_objext
6479	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6480	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6481  (eval $ac_link) 2>&5
6482  ac_status=$?
6483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6485	    pipe_works=yes
6486	  fi
6487	  LIBS=$lt_globsym_save_LIBS
6488	  CFLAGS=$lt_globsym_save_CFLAGS
6489	else
6490	  echo "cannot find nm_test_func in $nlist" >&5
6491	fi
6492      else
6493	echo "cannot find nm_test_var in $nlist" >&5
6494      fi
6495    else
6496      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6497    fi
6498  else
6499    echo "$progname: failed program was:" >&5
6500    cat conftest.$ac_ext >&5
6501  fi
6502  rm -rf conftest* conftst*
6503
6504  # Do not use the global_symbol_pipe unless it works.
6505  if test yes = "$pipe_works"; then
6506    break
6507  else
6508    lt_cv_sys_global_symbol_pipe=
6509  fi
6510done
6511
6512fi
6513
6514if test -z "$lt_cv_sys_global_symbol_pipe"; then
6515  lt_cv_sys_global_symbol_to_cdecl=
6516fi
6517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6519$as_echo "failed" >&6; }
6520else
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6522$as_echo "ok" >&6; }
6523fi
6524
6525# Response file support.
6526if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6527  nm_file_list_spec='@'
6528elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6529  nm_file_list_spec='@'
6530fi
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6569$as_echo_n "checking for sysroot... " >&6; }
6570
6571# Check whether --with-sysroot was given.
6572if test "${with_sysroot+set}" = set; then :
6573  withval=$with_sysroot;
6574else
6575  with_sysroot=no
6576fi
6577
6578
6579lt_sysroot=
6580case $with_sysroot in #(
6581 yes)
6582   if test yes = "$GCC"; then
6583     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6584   fi
6585   ;; #(
6586 /*)
6587   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6588   ;; #(
6589 no|'')
6590   ;; #(
6591 *)
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6593$as_echo "$with_sysroot" >&6; }
6594   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6595   ;;
6596esac
6597
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6599$as_echo "${lt_sysroot:-no}" >&6; }
6600
6601
6602
6603
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6606$as_echo_n "checking for a working dd... " >&6; }
6607if ${ac_cv_path_lt_DD+:} false; then :
6608  $as_echo_n "(cached) " >&6
6609else
6610  printf 0123456789abcdef0123456789abcdef >conftest.i
6611cat conftest.i conftest.i >conftest2.i
6612: ${lt_DD:=$DD}
6613if test -z "$lt_DD"; then
6614  ac_path_lt_DD_found=false
6615  # Loop through the user's path and test for each of PROGNAME-LIST
6616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619  IFS=$as_save_IFS
6620  test -z "$as_dir" && as_dir=.
6621    for ac_prog in dd; do
6622    for ac_exec_ext in '' $ac_executable_extensions; do
6623      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6624      as_fn_executable_p "$ac_path_lt_DD" || continue
6625if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6626  cmp -s conftest.i conftest.out \
6627  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6628fi
6629      $ac_path_lt_DD_found && break 3
6630    done
6631  done
6632  done
6633IFS=$as_save_IFS
6634  if test -z "$ac_cv_path_lt_DD"; then
6635    :
6636  fi
6637else
6638  ac_cv_path_lt_DD=$lt_DD
6639fi
6640
6641rm -f conftest.i conftest2.i conftest.out
6642fi
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6644$as_echo "$ac_cv_path_lt_DD" >&6; }
6645
6646
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6648$as_echo_n "checking how to truncate binary pipes... " >&6; }
6649if ${lt_cv_truncate_bin+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  printf 0123456789abcdef0123456789abcdef >conftest.i
6653cat conftest.i conftest.i >conftest2.i
6654lt_cv_truncate_bin=
6655if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6656  cmp -s conftest.i conftest.out \
6657  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6658fi
6659rm -f conftest.i conftest2.i conftest.out
6660test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6663$as_echo "$lt_cv_truncate_bin" >&6; }
6664
6665
6666
6667
6668
6669
6670
6671# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6672func_cc_basename ()
6673{
6674    for cc_temp in $*""; do
6675      case $cc_temp in
6676        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6677        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6678        \-*) ;;
6679        *) break;;
6680      esac
6681    done
6682    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6683}
6684
6685# Check whether --enable-libtool-lock was given.
6686if test "${enable_libtool_lock+set}" = set; then :
6687  enableval=$enable_libtool_lock;
6688fi
6689
6690test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6691
6692# Some flags need to be propagated to the compiler or linker for good
6693# libtool support.
6694case $host in
6695ia64-*-hpux*)
6696  # Find out what ABI is being produced by ac_compile, and set mode
6697  # options accordingly.
6698  echo 'int i;' > conftest.$ac_ext
6699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700  (eval $ac_compile) 2>&5
6701  ac_status=$?
6702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703  test $ac_status = 0; }; then
6704    case `/usr/bin/file conftest.$ac_objext` in
6705      *ELF-32*)
6706	HPUX_IA64_MODE=32
6707	;;
6708      *ELF-64*)
6709	HPUX_IA64_MODE=64
6710	;;
6711    esac
6712  fi
6713  rm -rf conftest*
6714  ;;
6715*-*-irix6*)
6716  # Find out what ABI is being produced by ac_compile, and set linker
6717  # options accordingly.
6718  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6719  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6720  (eval $ac_compile) 2>&5
6721  ac_status=$?
6722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723  test $ac_status = 0; }; then
6724    if test yes = "$lt_cv_prog_gnu_ld"; then
6725      case `/usr/bin/file conftest.$ac_objext` in
6726	*32-bit*)
6727	  LD="${LD-ld} -melf32bsmip"
6728	  ;;
6729	*N32*)
6730	  LD="${LD-ld} -melf32bmipn32"
6731	  ;;
6732	*64-bit*)
6733	  LD="${LD-ld} -melf64bmip"
6734	;;
6735      esac
6736    else
6737      case `/usr/bin/file conftest.$ac_objext` in
6738	*32-bit*)
6739	  LD="${LD-ld} -32"
6740	  ;;
6741	*N32*)
6742	  LD="${LD-ld} -n32"
6743	  ;;
6744	*64-bit*)
6745	  LD="${LD-ld} -64"
6746	  ;;
6747      esac
6748    fi
6749  fi
6750  rm -rf conftest*
6751  ;;
6752
6753mips64*-*linux*)
6754  # Find out what ABI is being produced by ac_compile, and set linker
6755  # options accordingly.
6756  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6757  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6758  (eval $ac_compile) 2>&5
6759  ac_status=$?
6760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761  test $ac_status = 0; }; then
6762    emul=elf
6763    case `/usr/bin/file conftest.$ac_objext` in
6764      *32-bit*)
6765	emul="${emul}32"
6766	;;
6767      *64-bit*)
6768	emul="${emul}64"
6769	;;
6770    esac
6771    case `/usr/bin/file conftest.$ac_objext` in
6772      *MSB*)
6773	emul="${emul}btsmip"
6774	;;
6775      *LSB*)
6776	emul="${emul}ltsmip"
6777	;;
6778    esac
6779    case `/usr/bin/file conftest.$ac_objext` in
6780      *N32*)
6781	emul="${emul}n32"
6782	;;
6783    esac
6784    LD="${LD-ld} -m $emul"
6785  fi
6786  rm -rf conftest*
6787  ;;
6788
6789x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6790s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6791  # Find out what ABI is being produced by ac_compile, and set linker
6792  # options accordingly.  Note that the listed cases only cover the
6793  # situations where additional linker options are needed (such as when
6794  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6795  # vice versa); the common cases where no linker options are needed do
6796  # not appear in the list.
6797  echo 'int i;' > conftest.$ac_ext
6798  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799  (eval $ac_compile) 2>&5
6800  ac_status=$?
6801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802  test $ac_status = 0; }; then
6803    case `/usr/bin/file conftest.o` in
6804      *32-bit*)
6805	case $host in
6806	  x86_64-*kfreebsd*-gnu)
6807	    LD="${LD-ld} -m elf_i386_fbsd"
6808	    ;;
6809	  x86_64-*linux*)
6810	    case `/usr/bin/file conftest.o` in
6811	      *x86-64*)
6812		LD="${LD-ld} -m elf32_x86_64"
6813		;;
6814	      *)
6815		LD="${LD-ld} -m elf_i386"
6816		;;
6817	    esac
6818	    ;;
6819	  powerpc64le-*linux*)
6820	    LD="${LD-ld} -m elf32lppclinux"
6821	    ;;
6822	  powerpc64-*linux*)
6823	    LD="${LD-ld} -m elf32ppclinux"
6824	    ;;
6825	  s390x-*linux*)
6826	    LD="${LD-ld} -m elf_s390"
6827	    ;;
6828	  sparc64-*linux*)
6829	    LD="${LD-ld} -m elf32_sparc"
6830	    ;;
6831	esac
6832	;;
6833      *64-bit*)
6834	case $host in
6835	  x86_64-*kfreebsd*-gnu)
6836	    LD="${LD-ld} -m elf_x86_64_fbsd"
6837	    ;;
6838	  x86_64-*linux*)
6839	    LD="${LD-ld} -m elf_x86_64"
6840	    ;;
6841	  powerpcle-*linux*)
6842	    LD="${LD-ld} -m elf64lppc"
6843	    ;;
6844	  powerpc-*linux*)
6845	    LD="${LD-ld} -m elf64ppc"
6846	    ;;
6847	  s390*-*linux*|s390*-*tpf*)
6848	    LD="${LD-ld} -m elf64_s390"
6849	    ;;
6850	  sparc*-*linux*)
6851	    LD="${LD-ld} -m elf64_sparc"
6852	    ;;
6853	esac
6854	;;
6855    esac
6856  fi
6857  rm -rf conftest*
6858  ;;
6859
6860*-*-sco3.2v5*)
6861  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6862  SAVE_CFLAGS=$CFLAGS
6863  CFLAGS="$CFLAGS -belf"
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6865$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6866if ${lt_cv_cc_needs_belf+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  ac_ext=c
6870ac_cpp='$CPP $CPPFLAGS'
6871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h.  */
6877
6878int
6879main ()
6880{
6881
6882  ;
6883  return 0;
6884}
6885_ACEOF
6886if ac_fn_c_try_link "$LINENO"; then :
6887  lt_cv_cc_needs_belf=yes
6888else
6889  lt_cv_cc_needs_belf=no
6890fi
6891rm -f core conftest.err conftest.$ac_objext \
6892    conftest$ac_exeext conftest.$ac_ext
6893     ac_ext=c
6894ac_cpp='$CPP $CPPFLAGS'
6895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6901$as_echo "$lt_cv_cc_needs_belf" >&6; }
6902  if test yes != "$lt_cv_cc_needs_belf"; then
6903    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6904    CFLAGS=$SAVE_CFLAGS
6905  fi
6906  ;;
6907*-*solaris*)
6908  # Find out what ABI is being produced by ac_compile, and set linker
6909  # options accordingly.
6910  echo 'int i;' > conftest.$ac_ext
6911  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912  (eval $ac_compile) 2>&5
6913  ac_status=$?
6914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915  test $ac_status = 0; }; then
6916    case `/usr/bin/file conftest.o` in
6917    *64-bit*)
6918      case $lt_cv_prog_gnu_ld in
6919      yes*)
6920        case $host in
6921        i?86-*-solaris*|x86_64-*-solaris*)
6922          LD="${LD-ld} -m elf_x86_64"
6923          ;;
6924        sparc*-*-solaris*)
6925          LD="${LD-ld} -m elf64_sparc"
6926          ;;
6927        esac
6928        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6929        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6930          LD=${LD-ld}_sol2
6931        fi
6932        ;;
6933      *)
6934	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6935	  LD="${LD-ld} -64"
6936	fi
6937	;;
6938      esac
6939      ;;
6940    esac
6941  fi
6942  rm -rf conftest*
6943  ;;
6944esac
6945
6946need_locks=$enable_libtool_lock
6947
6948if test -n "$ac_tool_prefix"; then
6949  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6950set dummy ${ac_tool_prefix}mt; ac_word=$2
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
6953if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  if test -n "$MANIFEST_TOOL"; then
6957  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964    for ac_exec_ext in '' $ac_executable_extensions; do
6965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968    break 2
6969  fi
6970done
6971  done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6977if test -n "$MANIFEST_TOOL"; then
6978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6979$as_echo "$MANIFEST_TOOL" >&6; }
6980else
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985
6986fi
6987if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6988  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6989  # Extract the first word of "mt", so it can be a program name with args.
6990set dummy mt; ac_word=$2
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992$as_echo_n "checking for $ac_word... " >&6; }
6993if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  if test -n "$ac_ct_MANIFEST_TOOL"; then
6997  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002  IFS=$as_save_IFS
7003  test -z "$as_dir" && as_dir=.
7004    for ac_exec_ext in '' $ac_executable_extensions; do
7005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008    break 2
7009  fi
7010done
7011  done
7012IFS=$as_save_IFS
7013
7014fi
7015fi
7016ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7017if test -n "$ac_ct_MANIFEST_TOOL"; then
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7019$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7020else
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023fi
7024
7025  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7026    MANIFEST_TOOL=":"
7027  else
7028    case $cross_compiling:$ac_tool_warned in
7029yes:)
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032ac_tool_warned=yes ;;
7033esac
7034    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7035  fi
7036else
7037  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7038fi
7039
7040test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7042$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7043if ${lt_cv_path_mainfest_tool+:} false; then :
7044  $as_echo_n "(cached) " >&6
7045else
7046  lt_cv_path_mainfest_tool=no
7047  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7048  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7049  cat conftest.err >&5
7050  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7051    lt_cv_path_mainfest_tool=yes
7052  fi
7053  rm -f conftest*
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7056$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7057if test yes != "$lt_cv_path_mainfest_tool"; then
7058  MANIFEST_TOOL=:
7059fi
7060
7061
7062
7063
7064
7065
7066  case $host_os in
7067    rhapsody* | darwin*)
7068    if test -n "$ac_tool_prefix"; then
7069  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7070set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if ${ac_cv_prog_DSYMUTIL+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  if test -n "$DSYMUTIL"; then
7077  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082  IFS=$as_save_IFS
7083  test -z "$as_dir" && as_dir=.
7084    for ac_exec_ext in '' $ac_executable_extensions; do
7085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088    break 2
7089  fi
7090done
7091  done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096DSYMUTIL=$ac_cv_prog_DSYMUTIL
7097if test -n "$DSYMUTIL"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7099$as_echo "$DSYMUTIL" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105
7106fi
7107if test -z "$ac_cv_prog_DSYMUTIL"; then
7108  ac_ct_DSYMUTIL=$DSYMUTIL
7109  # Extract the first word of "dsymutil", so it can be a program name with args.
7110set dummy dsymutil; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$ac_ct_DSYMUTIL"; then
7117  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7137if test -n "$ac_ct_DSYMUTIL"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7139$as_echo "$ac_ct_DSYMUTIL" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145  if test "x$ac_ct_DSYMUTIL" = x; then
7146    DSYMUTIL=":"
7147  else
7148    case $cross_compiling:$ac_tool_warned in
7149yes:)
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152ac_tool_warned=yes ;;
7153esac
7154    DSYMUTIL=$ac_ct_DSYMUTIL
7155  fi
7156else
7157  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7158fi
7159
7160    if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if ${ac_cv_prog_NMEDIT+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$NMEDIT"; then
7169  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188NMEDIT=$ac_cv_prog_NMEDIT
7189if test -n "$NMEDIT"; then
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7191$as_echo "$NMEDIT" >&6; }
7192else
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198fi
7199if test -z "$ac_cv_prog_NMEDIT"; then
7200  ac_ct_NMEDIT=$NMEDIT
7201  # Extract the first word of "nmedit", so it can be a program name with args.
7202set dummy nmedit; ac_word=$2
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7206  $as_echo_n "(cached) " >&6
7207else
7208  if test -n "$ac_ct_NMEDIT"; then
7209  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216    for ac_exec_ext in '' $ac_executable_extensions; do
7217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223  done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7229if test -n "$ac_ct_NMEDIT"; then
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7231$as_echo "$ac_ct_NMEDIT" >&6; }
7232else
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237  if test "x$ac_ct_NMEDIT" = x; then
7238    NMEDIT=":"
7239  else
7240    case $cross_compiling:$ac_tool_warned in
7241yes:)
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244ac_tool_warned=yes ;;
7245esac
7246    NMEDIT=$ac_ct_NMEDIT
7247  fi
7248else
7249  NMEDIT="$ac_cv_prog_NMEDIT"
7250fi
7251
7252    if test -n "$ac_tool_prefix"; then
7253  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7254set dummy ${ac_tool_prefix}lipo; ac_word=$2
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if ${ac_cv_prog_LIPO+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$LIPO"; then
7261  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275  done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280LIPO=$ac_cv_prog_LIPO
7281if test -n "$LIPO"; then
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7283$as_echo "$LIPO" >&6; }
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289
7290fi
7291if test -z "$ac_cv_prog_LIPO"; then
7292  ac_ct_LIPO=$LIPO
7293  # Extract the first word of "lipo", so it can be a program name with args.
7294set dummy lipo; ac_word=$2
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7298  $as_echo_n "(cached) " >&6
7299else
7300  if test -n "$ac_ct_LIPO"; then
7301  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308    for ac_exec_ext in '' $ac_executable_extensions; do
7309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310    ac_cv_prog_ac_ct_LIPO="lipo"
7311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315  done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7321if test -n "$ac_ct_LIPO"; then
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7323$as_echo "$ac_ct_LIPO" >&6; }
7324else
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329  if test "x$ac_ct_LIPO" = x; then
7330    LIPO=":"
7331  else
7332    case $cross_compiling:$ac_tool_warned in
7333yes:)
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336ac_tool_warned=yes ;;
7337esac
7338    LIPO=$ac_ct_LIPO
7339  fi
7340else
7341  LIPO="$ac_cv_prog_LIPO"
7342fi
7343
7344    if test -n "$ac_tool_prefix"; then
7345  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7346set dummy ${ac_tool_prefix}otool; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_prog_OTOOL+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  if test -n "$OTOOL"; then
7353  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360    for ac_exec_ext in '' $ac_executable_extensions; do
7361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367  done
7368IFS=$as_save_IFS
7369
7370fi
7371fi
7372OTOOL=$ac_cv_prog_OTOOL
7373if test -n "$OTOOL"; then
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7375$as_echo "$OTOOL" >&6; }
7376else
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381
7382fi
7383if test -z "$ac_cv_prog_OTOOL"; then
7384  ac_ct_OTOOL=$OTOOL
7385  # Extract the first word of "otool", so it can be a program name with args.
7386set dummy otool; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$ac_ct_OTOOL"; then
7393  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402    ac_cv_prog_ac_ct_OTOOL="otool"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7413if test -n "$ac_ct_OTOOL"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7415$as_echo "$ac_ct_OTOOL" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421  if test "x$ac_ct_OTOOL" = x; then
7422    OTOOL=":"
7423  else
7424    case $cross_compiling:$ac_tool_warned in
7425yes:)
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428ac_tool_warned=yes ;;
7429esac
7430    OTOOL=$ac_ct_OTOOL
7431  fi
7432else
7433  OTOOL="$ac_cv_prog_OTOOL"
7434fi
7435
7436    if test -n "$ac_tool_prefix"; then
7437  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7438set dummy ${ac_tool_prefix}otool64; ac_word=$2
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440$as_echo_n "checking for $ac_word... " >&6; }
7441if ${ac_cv_prog_OTOOL64+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  if test -n "$OTOOL64"; then
7445  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7446else
7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450  IFS=$as_save_IFS
7451  test -z "$as_dir" && as_dir=.
7452    for ac_exec_ext in '' $ac_executable_extensions; do
7453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456    break 2
7457  fi
7458done
7459  done
7460IFS=$as_save_IFS
7461
7462fi
7463fi
7464OTOOL64=$ac_cv_prog_OTOOL64
7465if test -n "$OTOOL64"; then
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7467$as_echo "$OTOOL64" >&6; }
7468else
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470$as_echo "no" >&6; }
7471fi
7472
7473
7474fi
7475if test -z "$ac_cv_prog_OTOOL64"; then
7476  ac_ct_OTOOL64=$OTOOL64
7477  # Extract the first word of "otool64", so it can be a program name with args.
7478set dummy otool64; ac_word=$2
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484  if test -n "$ac_ct_OTOOL64"; then
7485  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  test -z "$as_dir" && as_dir=.
7492    for ac_exec_ext in '' $ac_executable_extensions; do
7493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494    ac_cv_prog_ac_ct_OTOOL64="otool64"
7495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496    break 2
7497  fi
7498done
7499  done
7500IFS=$as_save_IFS
7501
7502fi
7503fi
7504ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7505if test -n "$ac_ct_OTOOL64"; then
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7507$as_echo "$ac_ct_OTOOL64" >&6; }
7508else
7509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
7511fi
7512
7513  if test "x$ac_ct_OTOOL64" = x; then
7514    OTOOL64=":"
7515  else
7516    case $cross_compiling:$ac_tool_warned in
7517yes:)
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520ac_tool_warned=yes ;;
7521esac
7522    OTOOL64=$ac_ct_OTOOL64
7523  fi
7524else
7525  OTOOL64="$ac_cv_prog_OTOOL64"
7526fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7555$as_echo_n "checking for -single_module linker flag... " >&6; }
7556if ${lt_cv_apple_cc_single_mod+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  lt_cv_apple_cc_single_mod=no
7560      if test -z "$LT_MULTI_MODULE"; then
7561	# By default we will add the -single_module flag. You can override
7562	# by either setting the environment variable LT_MULTI_MODULE
7563	# non-empty at configure time, or by adding -multi_module to the
7564	# link flags.
7565	rm -rf libconftest.dylib*
7566	echo "int foo(void){return 1;}" > conftest.c
7567	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7568-dynamiclib -Wl,-single_module conftest.c" >&5
7569	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7570	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7571        _lt_result=$?
7572	# If there is a non-empty error log, and "single_module"
7573	# appears in it, assume the flag caused a linker warning
7574        if test -s conftest.err && $GREP single_module conftest.err; then
7575	  cat conftest.err >&5
7576	# Otherwise, if the output was created with a 0 exit code from
7577	# the compiler, it worked.
7578	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7579	  lt_cv_apple_cc_single_mod=yes
7580	else
7581	  cat conftest.err >&5
7582	fi
7583	rm -rf libconftest.dylib*
7584	rm -f conftest.*
7585      fi
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7588$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7589
7590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7591$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7592if ${lt_cv_ld_exported_symbols_list+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  lt_cv_ld_exported_symbols_list=no
7596      save_LDFLAGS=$LDFLAGS
7597      echo "_main" > conftest.sym
7598      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7599      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601
7602int
7603main ()
7604{
7605
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_link "$LINENO"; then :
7611  lt_cv_ld_exported_symbols_list=yes
7612else
7613  lt_cv_ld_exported_symbols_list=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext \
7616    conftest$ac_exeext conftest.$ac_ext
7617	LDFLAGS=$save_LDFLAGS
7618
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7621$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7622
7623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7624$as_echo_n "checking for -force_load linker flag... " >&6; }
7625if ${lt_cv_ld_force_load+:} false; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  lt_cv_ld_force_load=no
7629      cat > conftest.c << _LT_EOF
7630int forced_loaded() { return 2;}
7631_LT_EOF
7632      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7633      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7634      echo "$AR cru libconftest.a conftest.o" >&5
7635      $AR cru libconftest.a conftest.o 2>&5
7636      echo "$RANLIB libconftest.a" >&5
7637      $RANLIB libconftest.a 2>&5
7638      cat > conftest.c << _LT_EOF
7639int main() { return 0;}
7640_LT_EOF
7641      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7642      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7643      _lt_result=$?
7644      if test -s conftest.err && $GREP force_load conftest.err; then
7645	cat conftest.err >&5
7646      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7647	lt_cv_ld_force_load=yes
7648      else
7649	cat conftest.err >&5
7650      fi
7651        rm -f conftest.err libconftest.a conftest conftest.c
7652        rm -rf conftest.dSYM
7653
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7656$as_echo "$lt_cv_ld_force_load" >&6; }
7657    case $host_os in
7658    rhapsody* | darwin1.[012])
7659      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7660    darwin1.*)
7661      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7662    darwin*) # darwin 5.x on
7663      # if running on 10.5 or later, the deployment target defaults
7664      # to the OS version, if on x86, and 10.4, the deployment
7665      # target defaults to 10.4. Don't you love it?
7666      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7667	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7668	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7669	10.[012][,.]*)
7670	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7671	10.*)
7672	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7673      esac
7674    ;;
7675  esac
7676    if test yes = "$lt_cv_apple_cc_single_mod"; then
7677      _lt_dar_single_mod='$single_module'
7678    fi
7679    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7680      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7681    else
7682      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7683    fi
7684    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7685      _lt_dsymutil='~$DSYMUTIL $lib || :'
7686    else
7687      _lt_dsymutil=
7688    fi
7689    ;;
7690  esac
7691
7692# func_munge_path_list VARIABLE PATH
7693# -----------------------------------
7694# VARIABLE is name of variable containing _space_ separated list of
7695# directories to be munged by the contents of PATH, which is string
7696# having a format:
7697# "DIR[:DIR]:"
7698#       string "DIR[ DIR]" will be prepended to VARIABLE
7699# ":DIR[:DIR]"
7700#       string "DIR[ DIR]" will be appended to VARIABLE
7701# "DIRP[:DIRP]::[DIRA:]DIRA"
7702#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7703#       "DIRA[ DIRA]" will be appended to VARIABLE
7704# "DIR[:DIR]"
7705#       VARIABLE will be replaced by "DIR[ DIR]"
7706func_munge_path_list ()
7707{
7708    case x$2 in
7709    x)
7710        ;;
7711    *:)
7712        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7713        ;;
7714    x:*)
7715        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7716        ;;
7717    *::*)
7718        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7719        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7720        ;;
7721    *)
7722        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7723        ;;
7724    esac
7725}
7726
7727ac_ext=c
7728ac_cpp='$CPP $CPPFLAGS'
7729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7733$as_echo_n "checking how to run the C preprocessor... " >&6; }
7734# On Suns, sometimes $CPP names a directory.
7735if test -n "$CPP" && test -d "$CPP"; then
7736  CPP=
7737fi
7738if test -z "$CPP"; then
7739  if ${ac_cv_prog_CPP+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742      # Double quotes because CPP needs to be expanded
7743    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7744    do
7745      ac_preproc_ok=false
7746for ac_c_preproc_warn_flag in '' yes
7747do
7748  # Use a header file that comes with gcc, so configuring glibc
7749  # with a fresh cross-compiler works.
7750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7751  # <limits.h> exists even on freestanding compilers.
7752  # On the NeXT, cc -E runs the code through the compiler's parser,
7753  # not just through cpp. "Syntax error" is here to catch this case.
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756#ifdef __STDC__
7757# include <limits.h>
7758#else
7759# include <assert.h>
7760#endif
7761		     Syntax error
7762_ACEOF
7763if ac_fn_c_try_cpp "$LINENO"; then :
7764
7765else
7766  # Broken: fails on valid input.
7767continue
7768fi
7769rm -f conftest.err conftest.i conftest.$ac_ext
7770
7771  # OK, works on sane cases.  Now check whether nonexistent headers
7772  # can be detected and how.
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775#include <ac_nonexistent.h>
7776_ACEOF
7777if ac_fn_c_try_cpp "$LINENO"; then :
7778  # Broken: success on invalid input.
7779continue
7780else
7781  # Passes both tests.
7782ac_preproc_ok=:
7783break
7784fi
7785rm -f conftest.err conftest.i conftest.$ac_ext
7786
7787done
7788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789rm -f conftest.i conftest.err conftest.$ac_ext
7790if $ac_preproc_ok; then :
7791  break
7792fi
7793
7794    done
7795    ac_cv_prog_CPP=$CPP
7796
7797fi
7798  CPP=$ac_cv_prog_CPP
7799else
7800  ac_cv_prog_CPP=$CPP
7801fi
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7803$as_echo "$CPP" >&6; }
7804ac_preproc_ok=false
7805for ac_c_preproc_warn_flag in '' yes
7806do
7807  # Use a header file that comes with gcc, so configuring glibc
7808  # with a fresh cross-compiler works.
7809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810  # <limits.h> exists even on freestanding compilers.
7811  # On the NeXT, cc -E runs the code through the compiler's parser,
7812  # not just through cpp. "Syntax error" is here to catch this case.
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815#ifdef __STDC__
7816# include <limits.h>
7817#else
7818# include <assert.h>
7819#endif
7820		     Syntax error
7821_ACEOF
7822if ac_fn_c_try_cpp "$LINENO"; then :
7823
7824else
7825  # Broken: fails on valid input.
7826continue
7827fi
7828rm -f conftest.err conftest.i conftest.$ac_ext
7829
7830  # OK, works on sane cases.  Now check whether nonexistent headers
7831  # can be detected and how.
7832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834#include <ac_nonexistent.h>
7835_ACEOF
7836if ac_fn_c_try_cpp "$LINENO"; then :
7837  # Broken: success on invalid input.
7838continue
7839else
7840  # Passes both tests.
7841ac_preproc_ok=:
7842break
7843fi
7844rm -f conftest.err conftest.i conftest.$ac_ext
7845
7846done
7847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7848rm -f conftest.i conftest.err conftest.$ac_ext
7849if $ac_preproc_ok; then :
7850
7851else
7852  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7855See \`config.log' for more details" "$LINENO" 5; }
7856fi
7857
7858ac_ext=c
7859ac_cpp='$CPP $CPPFLAGS'
7860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7866$as_echo_n "checking for ANSI C header files... " >&6; }
7867if ${ac_cv_header_stdc+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872#include <stdlib.h>
7873#include <stdarg.h>
7874#include <string.h>
7875#include <float.h>
7876
7877int
7878main ()
7879{
7880
7881  ;
7882  return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886  ac_cv_header_stdc=yes
7887else
7888  ac_cv_header_stdc=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892if test $ac_cv_header_stdc = yes; then
7893  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896#include <string.h>
7897
7898_ACEOF
7899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900  $EGREP "memchr" >/dev/null 2>&1; then :
7901
7902else
7903  ac_cv_header_stdc=no
7904fi
7905rm -f conftest*
7906
7907fi
7908
7909if test $ac_cv_header_stdc = yes; then
7910  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913#include <stdlib.h>
7914
7915_ACEOF
7916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917  $EGREP "free" >/dev/null 2>&1; then :
7918
7919else
7920  ac_cv_header_stdc=no
7921fi
7922rm -f conftest*
7923
7924fi
7925
7926if test $ac_cv_header_stdc = yes; then
7927  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7928  if test "$cross_compiling" = yes; then :
7929  :
7930else
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933#include <ctype.h>
7934#include <stdlib.h>
7935#if ((' ' & 0x0FF) == 0x020)
7936# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7937# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7938#else
7939# define ISLOWER(c) \
7940		   (('a' <= (c) && (c) <= 'i') \
7941		     || ('j' <= (c) && (c) <= 'r') \
7942		     || ('s' <= (c) && (c) <= 'z'))
7943# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7944#endif
7945
7946#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7947int
7948main ()
7949{
7950  int i;
7951  for (i = 0; i < 256; i++)
7952    if (XOR (islower (i), ISLOWER (i))
7953	|| toupper (i) != TOUPPER (i))
7954      return 2;
7955  return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_run "$LINENO"; then :
7959
7960else
7961  ac_cv_header_stdc=no
7962fi
7963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964  conftest.$ac_objext conftest.beam conftest.$ac_ext
7965fi
7966
7967fi
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7970$as_echo "$ac_cv_header_stdc" >&6; }
7971if test $ac_cv_header_stdc = yes; then
7972
7973$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7974
7975fi
7976
7977# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979		  inttypes.h stdint.h unistd.h
7980do :
7981  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7983"
7984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7985  cat >>confdefs.h <<_ACEOF
7986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7987_ACEOF
7988
7989fi
7990
7991done
7992
7993
7994for ac_header in dlfcn.h
7995do :
7996  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7997"
7998if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7999  cat >>confdefs.h <<_ACEOF
8000#define HAVE_DLFCN_H 1
8001_ACEOF
8002
8003fi
8004
8005done
8006
8007
8008
8009
8010
8011# Set options
8012
8013
8014
8015        enable_dlopen=no
8016
8017
8018  enable_win32_dll=no
8019
8020
8021            # Check whether --enable-shared was given.
8022if test "${enable_shared+set}" = set; then :
8023  enableval=$enable_shared; p=${PACKAGE-default}
8024    case $enableval in
8025    yes) enable_shared=yes ;;
8026    no) enable_shared=no ;;
8027    *)
8028      enable_shared=no
8029      # Look at the argument we got.  We use all the common list separators.
8030      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8031      for pkg in $enableval; do
8032	IFS=$lt_save_ifs
8033	if test "X$pkg" = "X$p"; then
8034	  enable_shared=yes
8035	fi
8036      done
8037      IFS=$lt_save_ifs
8038      ;;
8039    esac
8040else
8041  enable_shared=yes
8042fi
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052  # Check whether --enable-static was given.
8053if test "${enable_static+set}" = set; then :
8054  enableval=$enable_static; p=${PACKAGE-default}
8055    case $enableval in
8056    yes) enable_static=yes ;;
8057    no) enable_static=no ;;
8058    *)
8059     enable_static=no
8060      # Look at the argument we got.  We use all the common list separators.
8061      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8062      for pkg in $enableval; do
8063	IFS=$lt_save_ifs
8064	if test "X$pkg" = "X$p"; then
8065	  enable_static=yes
8066	fi
8067      done
8068      IFS=$lt_save_ifs
8069      ;;
8070    esac
8071else
8072  enable_static=yes
8073fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084# Check whether --with-pic was given.
8085if test "${with_pic+set}" = set; then :
8086  withval=$with_pic; lt_p=${PACKAGE-default}
8087    case $withval in
8088    yes|no) pic_mode=$withval ;;
8089    *)
8090      pic_mode=default
8091      # Look at the argument we got.  We use all the common list separators.
8092      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8093      for lt_pkg in $withval; do
8094	IFS=$lt_save_ifs
8095	if test "X$lt_pkg" = "X$lt_p"; then
8096	  pic_mode=yes
8097	fi
8098      done
8099      IFS=$lt_save_ifs
8100      ;;
8101    esac
8102else
8103  pic_mode=default
8104fi
8105
8106
8107
8108
8109
8110
8111
8112
8113  # Check whether --enable-fast-install was given.
8114if test "${enable_fast_install+set}" = set; then :
8115  enableval=$enable_fast_install; p=${PACKAGE-default}
8116    case $enableval in
8117    yes) enable_fast_install=yes ;;
8118    no) enable_fast_install=no ;;
8119    *)
8120      enable_fast_install=no
8121      # Look at the argument we got.  We use all the common list separators.
8122      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8123      for pkg in $enableval; do
8124	IFS=$lt_save_ifs
8125	if test "X$pkg" = "X$p"; then
8126	  enable_fast_install=yes
8127	fi
8128      done
8129      IFS=$lt_save_ifs
8130      ;;
8131    esac
8132else
8133  enable_fast_install=yes
8134fi
8135
8136
8137
8138
8139
8140
8141
8142
8143  shared_archive_member_spec=
8144case $host,$enable_shared in
8145power*-*-aix[5-9]*,yes)
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8147$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8148
8149# Check whether --with-aix-soname was given.
8150if test "${with_aix_soname+set}" = set; then :
8151  withval=$with_aix_soname; case $withval in
8152    aix|svr4|both)
8153      ;;
8154    *)
8155      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8156      ;;
8157    esac
8158    lt_cv_with_aix_soname=$with_aix_soname
8159else
8160  if ${lt_cv_with_aix_soname+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  lt_cv_with_aix_soname=aix
8164fi
8165
8166    with_aix_soname=$lt_cv_with_aix_soname
8167fi
8168
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8170$as_echo "$with_aix_soname" >&6; }
8171  if test aix != "$with_aix_soname"; then
8172    # For the AIX way of multilib, we name the shared archive member
8173    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8174    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8175    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8176    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8177    if test 64 = "${OBJECT_MODE-32}"; then
8178      shared_archive_member_spec=shr_64
8179    else
8180      shared_archive_member_spec=shr
8181    fi
8182  fi
8183  ;;
8184*)
8185  with_aix_soname=aix
8186  ;;
8187esac
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198# This can be used to rebuild libtool when needed
8199LIBTOOL_DEPS=$ltmain
8200
8201# Always use our own libtool.
8202LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233test -z "$LN_S" && LN_S="ln -s"
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248if test -n "${ZSH_VERSION+set}"; then
8249   setopt NO_GLOB_SUBST
8250fi
8251
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8253$as_echo_n "checking for objdir... " >&6; }
8254if ${lt_cv_objdir+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  rm -f .libs 2>/dev/null
8258mkdir .libs 2>/dev/null
8259if test -d .libs; then
8260  lt_cv_objdir=.libs
8261else
8262  # MS-DOS does not allow filenames that begin with a dot.
8263  lt_cv_objdir=_libs
8264fi
8265rmdir .libs 2>/dev/null
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8268$as_echo "$lt_cv_objdir" >&6; }
8269objdir=$lt_cv_objdir
8270
8271
8272
8273
8274
8275cat >>confdefs.h <<_ACEOF
8276#define LT_OBJDIR "$lt_cv_objdir/"
8277_ACEOF
8278
8279
8280
8281
8282case $host_os in
8283aix3*)
8284  # AIX sometimes has problems with the GCC collect2 program.  For some
8285  # reason, if we set the COLLECT_NAMES environment variable, the problems
8286  # vanish in a puff of smoke.
8287  if test set != "${COLLECT_NAMES+set}"; then
8288    COLLECT_NAMES=
8289    export COLLECT_NAMES
8290  fi
8291  ;;
8292esac
8293
8294# Global variables:
8295ofile=libtool
8296can_build_shared=yes
8297
8298# All known linkers require a '.a' archive for static linking (except MSVC,
8299# which needs '.lib').
8300libext=a
8301
8302with_gnu_ld=$lt_cv_prog_gnu_ld
8303
8304old_CC=$CC
8305old_CFLAGS=$CFLAGS
8306
8307# Set sane defaults for various variables
8308test -z "$CC" && CC=cc
8309test -z "$LTCC" && LTCC=$CC
8310test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8311test -z "$LD" && LD=ld
8312test -z "$ac_objext" && ac_objext=o
8313
8314func_cc_basename $compiler
8315cc_basename=$func_cc_basename_result
8316
8317
8318# Only perform the check for file, if the check method requires it
8319test -z "$MAGIC_CMD" && MAGIC_CMD=file
8320case $deplibs_check_method in
8321file_magic*)
8322  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8324$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8325if ${lt_cv_path_MAGIC_CMD+:} false; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  case $MAGIC_CMD in
8329[\\/*] |  ?:[\\/]*)
8330  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8331  ;;
8332*)
8333  lt_save_MAGIC_CMD=$MAGIC_CMD
8334  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8335  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8336  for ac_dir in $ac_dummy; do
8337    IFS=$lt_save_ifs
8338    test -z "$ac_dir" && ac_dir=.
8339    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8340      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8341      if test -n "$file_magic_test_file"; then
8342	case $deplibs_check_method in
8343	"file_magic "*)
8344	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8345	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8346	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8347	    $EGREP "$file_magic_regex" > /dev/null; then
8348	    :
8349	  else
8350	    cat <<_LT_EOF 1>&2
8351
8352*** Warning: the command libtool uses to detect shared libraries,
8353*** $file_magic_cmd, produces output that libtool cannot recognize.
8354*** The result is that libtool may fail to recognize shared libraries
8355*** as such.  This will affect the creation of libtool libraries that
8356*** depend on shared libraries, but programs linked with such libtool
8357*** libraries will work regardless of this problem.  Nevertheless, you
8358*** may want to report the problem to your system manager and/or to
8359*** bug-libtool@gnu.org
8360
8361_LT_EOF
8362	  fi ;;
8363	esac
8364      fi
8365      break
8366    fi
8367  done
8368  IFS=$lt_save_ifs
8369  MAGIC_CMD=$lt_save_MAGIC_CMD
8370  ;;
8371esac
8372fi
8373
8374MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8375if test -n "$MAGIC_CMD"; then
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8377$as_echo "$MAGIC_CMD" >&6; }
8378else
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380$as_echo "no" >&6; }
8381fi
8382
8383
8384
8385
8386
8387if test -z "$lt_cv_path_MAGIC_CMD"; then
8388  if test -n "$ac_tool_prefix"; then
8389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8390$as_echo_n "checking for file... " >&6; }
8391if ${lt_cv_path_MAGIC_CMD+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394  case $MAGIC_CMD in
8395[\\/*] |  ?:[\\/]*)
8396  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8397  ;;
8398*)
8399  lt_save_MAGIC_CMD=$MAGIC_CMD
8400  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8401  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8402  for ac_dir in $ac_dummy; do
8403    IFS=$lt_save_ifs
8404    test -z "$ac_dir" && ac_dir=.
8405    if test -f "$ac_dir/file"; then
8406      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8407      if test -n "$file_magic_test_file"; then
8408	case $deplibs_check_method in
8409	"file_magic "*)
8410	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8411	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8412	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8413	    $EGREP "$file_magic_regex" > /dev/null; then
8414	    :
8415	  else
8416	    cat <<_LT_EOF 1>&2
8417
8418*** Warning: the command libtool uses to detect shared libraries,
8419*** $file_magic_cmd, produces output that libtool cannot recognize.
8420*** The result is that libtool may fail to recognize shared libraries
8421*** as such.  This will affect the creation of libtool libraries that
8422*** depend on shared libraries, but programs linked with such libtool
8423*** libraries will work regardless of this problem.  Nevertheless, you
8424*** may want to report the problem to your system manager and/or to
8425*** bug-libtool@gnu.org
8426
8427_LT_EOF
8428	  fi ;;
8429	esac
8430      fi
8431      break
8432    fi
8433  done
8434  IFS=$lt_save_ifs
8435  MAGIC_CMD=$lt_save_MAGIC_CMD
8436  ;;
8437esac
8438fi
8439
8440MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8441if test -n "$MAGIC_CMD"; then
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8443$as_echo "$MAGIC_CMD" >&6; }
8444else
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
8447fi
8448
8449
8450  else
8451    MAGIC_CMD=:
8452  fi
8453fi
8454
8455  fi
8456  ;;
8457esac
8458
8459# Use C for the default configuration in the libtool script
8460
8461lt_save_CC=$CC
8462ac_ext=c
8463ac_cpp='$CPP $CPPFLAGS'
8464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467
8468
8469# Source file extension for C test sources.
8470ac_ext=c
8471
8472# Object file extension for compiled C test sources.
8473objext=o
8474objext=$objext
8475
8476# Code to be used in simple compile tests
8477lt_simple_compile_test_code="int some_variable = 0;"
8478
8479# Code to be used in simple link tests
8480lt_simple_link_test_code='int main(){return(0);}'
8481
8482
8483
8484
8485
8486
8487
8488# If no C compiler was specified, use CC.
8489LTCC=${LTCC-"$CC"}
8490
8491# If no C compiler flags were specified, use CFLAGS.
8492LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8493
8494# Allow CC to be a program name with arguments.
8495compiler=$CC
8496
8497# Save the default compiler, since it gets overwritten when the other
8498# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8499compiler_DEFAULT=$CC
8500
8501# save warnings/boilerplate of simple test code
8502ac_outfile=conftest.$ac_objext
8503echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8505_lt_compiler_boilerplate=`cat conftest.err`
8506$RM conftest*
8507
8508ac_outfile=conftest.$ac_objext
8509echo "$lt_simple_link_test_code" >conftest.$ac_ext
8510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8511_lt_linker_boilerplate=`cat conftest.err`
8512$RM -r conftest*
8513
8514
8515if test -n "$compiler"; then
8516
8517lt_prog_compiler_no_builtin_flag=
8518
8519if test yes = "$GCC"; then
8520  case $cc_basename in
8521  nvcc*)
8522    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8523  *)
8524    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8525  esac
8526
8527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8528$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8529if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8530  $as_echo_n "(cached) " >&6
8531else
8532  lt_cv_prog_compiler_rtti_exceptions=no
8533   ac_outfile=conftest.$ac_objext
8534   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8536   # Insert the option either (1) after the last *FLAGS variable, or
8537   # (2) before a word containing "conftest.", or (3) at the end.
8538   # Note that $ac_compile itself does not contain backslashes and begins
8539   # with a dollar sign (not a hyphen), so the echo should work correctly.
8540   # The option is referenced via a variable to avoid confusing sed.
8541   lt_compile=`echo "$ac_compile" | $SED \
8542   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8543   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8544   -e 's:$: $lt_compiler_flag:'`
8545   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8546   (eval "$lt_compile" 2>conftest.err)
8547   ac_status=$?
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   if (exit $ac_status) && test -s "$ac_outfile"; then
8551     # The compiler can only warn and ignore the option if not recognized
8552     # So say no if there are warnings other than the usual output.
8553     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8554     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8556       lt_cv_prog_compiler_rtti_exceptions=yes
8557     fi
8558   fi
8559   $RM conftest*
8560
8561fi
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8563$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8564
8565if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8566    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8567else
8568    :
8569fi
8570
8571fi
8572
8573
8574
8575
8576
8577
8578  lt_prog_compiler_wl=
8579lt_prog_compiler_pic=
8580lt_prog_compiler_static=
8581
8582
8583  if test yes = "$GCC"; then
8584    lt_prog_compiler_wl='-Wl,'
8585    lt_prog_compiler_static='-static'
8586
8587    case $host_os in
8588      aix*)
8589      # All AIX code is PIC.
8590      if test ia64 = "$host_cpu"; then
8591	# AIX 5 now supports IA64 processor
8592	lt_prog_compiler_static='-Bstatic'
8593      fi
8594      lt_prog_compiler_pic='-fPIC'
8595      ;;
8596
8597    amigaos*)
8598      case $host_cpu in
8599      powerpc)
8600            # see comment about AmigaOS4 .so support
8601            lt_prog_compiler_pic='-fPIC'
8602        ;;
8603      m68k)
8604            # FIXME: we need at least 68020 code to build shared libraries, but
8605            # adding the '-m68020' flag to GCC prevents building anything better,
8606            # like '-m68040'.
8607            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8608        ;;
8609      esac
8610      ;;
8611
8612    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8613      # PIC is the default for these OSes.
8614      ;;
8615
8616    mingw* | cygwin* | pw32* | os2* | cegcc*)
8617      # This hack is so that the source file can tell whether it is being
8618      # built for inclusion in a dll (and should export symbols for example).
8619      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8620      # (--disable-auto-import) libraries
8621      lt_prog_compiler_pic='-DDLL_EXPORT'
8622      case $host_os in
8623      os2*)
8624	lt_prog_compiler_static='$wl-static'
8625	;;
8626      esac
8627      ;;
8628
8629    darwin* | rhapsody*)
8630      # PIC is the default on this platform
8631      # Common symbols not allowed in MH_DYLIB files
8632      lt_prog_compiler_pic='-fno-common'
8633      ;;
8634
8635    haiku*)
8636      # PIC is the default for Haiku.
8637      # The "-static" flag exists, but is broken.
8638      lt_prog_compiler_static=
8639      ;;
8640
8641    hpux*)
8642      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8643      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8644      # sets the default TLS model and affects inlining.
8645      case $host_cpu in
8646      hppa*64*)
8647	# +Z the default
8648	;;
8649      *)
8650	lt_prog_compiler_pic='-fPIC'
8651	;;
8652      esac
8653      ;;
8654
8655    interix[3-9]*)
8656      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8657      # Instead, we relocate shared libraries at runtime.
8658      ;;
8659
8660    msdosdjgpp*)
8661      # Just because we use GCC doesn't mean we suddenly get shared libraries
8662      # on systems that don't support them.
8663      lt_prog_compiler_can_build_shared=no
8664      enable_shared=no
8665      ;;
8666
8667    *nto* | *qnx*)
8668      # QNX uses GNU C++, but need to define -shared option too, otherwise
8669      # it will coredump.
8670      lt_prog_compiler_pic='-fPIC -shared'
8671      ;;
8672
8673    sysv4*MP*)
8674      if test -d /usr/nec; then
8675	lt_prog_compiler_pic=-Kconform_pic
8676      fi
8677      ;;
8678
8679    *)
8680      lt_prog_compiler_pic='-fPIC'
8681      ;;
8682    esac
8683
8684    case $cc_basename in
8685    nvcc*) # Cuda Compiler Driver 2.2
8686      lt_prog_compiler_wl='-Xlinker '
8687      if test -n "$lt_prog_compiler_pic"; then
8688        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8689      fi
8690      ;;
8691    esac
8692  else
8693    # PORTME Check for flag to pass linker flags through the system compiler.
8694    case $host_os in
8695    aix*)
8696      lt_prog_compiler_wl='-Wl,'
8697      if test ia64 = "$host_cpu"; then
8698	# AIX 5 now supports IA64 processor
8699	lt_prog_compiler_static='-Bstatic'
8700      else
8701	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8702      fi
8703      ;;
8704
8705    darwin* | rhapsody*)
8706      # PIC is the default on this platform
8707      # Common symbols not allowed in MH_DYLIB files
8708      lt_prog_compiler_pic='-fno-common'
8709      case $cc_basename in
8710      nagfor*)
8711        # NAG Fortran compiler
8712        lt_prog_compiler_wl='-Wl,-Wl,,'
8713        lt_prog_compiler_pic='-PIC'
8714        lt_prog_compiler_static='-Bstatic'
8715        ;;
8716      esac
8717      ;;
8718
8719    mingw* | cygwin* | pw32* | os2* | cegcc*)
8720      # This hack is so that the source file can tell whether it is being
8721      # built for inclusion in a dll (and should export symbols for example).
8722      lt_prog_compiler_pic='-DDLL_EXPORT'
8723      case $host_os in
8724      os2*)
8725	lt_prog_compiler_static='$wl-static'
8726	;;
8727      esac
8728      ;;
8729
8730    hpux9* | hpux10* | hpux11*)
8731      lt_prog_compiler_wl='-Wl,'
8732      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8733      # not for PA HP-UX.
8734      case $host_cpu in
8735      hppa*64*|ia64*)
8736	# +Z the default
8737	;;
8738      *)
8739	lt_prog_compiler_pic='+Z'
8740	;;
8741      esac
8742      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8743      lt_prog_compiler_static='$wl-a ${wl}archive'
8744      ;;
8745
8746    irix5* | irix6* | nonstopux*)
8747      lt_prog_compiler_wl='-Wl,'
8748      # PIC (with -KPIC) is the default.
8749      lt_prog_compiler_static='-non_shared'
8750      ;;
8751
8752    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8753      case $cc_basename in
8754      # old Intel for x86_64, which still supported -KPIC.
8755      ecc*)
8756	lt_prog_compiler_wl='-Wl,'
8757	lt_prog_compiler_pic='-KPIC'
8758	lt_prog_compiler_static='-static'
8759        ;;
8760      # icc used to be incompatible with GCC.
8761      # ICC 10 doesn't accept -KPIC any more.
8762      icc* | ifort*)
8763	lt_prog_compiler_wl='-Wl,'
8764	lt_prog_compiler_pic='-fPIC'
8765	lt_prog_compiler_static='-static'
8766        ;;
8767      # Lahey Fortran 8.1.
8768      lf95*)
8769	lt_prog_compiler_wl='-Wl,'
8770	lt_prog_compiler_pic='--shared'
8771	lt_prog_compiler_static='--static'
8772	;;
8773      nagfor*)
8774	# NAG Fortran compiler
8775	lt_prog_compiler_wl='-Wl,-Wl,,'
8776	lt_prog_compiler_pic='-PIC'
8777	lt_prog_compiler_static='-Bstatic'
8778	;;
8779      tcc*)
8780	# Fabrice Bellard et al's Tiny C Compiler
8781	lt_prog_compiler_wl='-Wl,'
8782	lt_prog_compiler_pic='-fPIC'
8783	lt_prog_compiler_static='-static'
8784	;;
8785      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8786        # Portland Group compilers (*not* the Pentium gcc compiler,
8787	# which looks to be a dead project)
8788	lt_prog_compiler_wl='-Wl,'
8789	lt_prog_compiler_pic='-fpic'
8790	lt_prog_compiler_static='-Bstatic'
8791        ;;
8792      ccc*)
8793        lt_prog_compiler_wl='-Wl,'
8794        # All Alpha code is PIC.
8795        lt_prog_compiler_static='-non_shared'
8796        ;;
8797      xl* | bgxl* | bgf* | mpixl*)
8798	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8799	lt_prog_compiler_wl='-Wl,'
8800	lt_prog_compiler_pic='-qpic'
8801	lt_prog_compiler_static='-qstaticlink'
8802	;;
8803      *)
8804	case `$CC -V 2>&1 | sed 5q` in
8805	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8806	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8807	  lt_prog_compiler_pic='-KPIC'
8808	  lt_prog_compiler_static='-Bstatic'
8809	  lt_prog_compiler_wl=''
8810	  ;;
8811	*Sun\ F* | *Sun*Fortran*)
8812	  lt_prog_compiler_pic='-KPIC'
8813	  lt_prog_compiler_static='-Bstatic'
8814	  lt_prog_compiler_wl='-Qoption ld '
8815	  ;;
8816	*Sun\ C*)
8817	  # Sun C 5.9
8818	  lt_prog_compiler_pic='-KPIC'
8819	  lt_prog_compiler_static='-Bstatic'
8820	  lt_prog_compiler_wl='-Wl,'
8821	  ;;
8822        *Intel*\ [CF]*Compiler*)
8823	  lt_prog_compiler_wl='-Wl,'
8824	  lt_prog_compiler_pic='-fPIC'
8825	  lt_prog_compiler_static='-static'
8826	  ;;
8827	*Portland\ Group*)
8828	  lt_prog_compiler_wl='-Wl,'
8829	  lt_prog_compiler_pic='-fpic'
8830	  lt_prog_compiler_static='-Bstatic'
8831	  ;;
8832	esac
8833	;;
8834      esac
8835      ;;
8836
8837    newsos6)
8838      lt_prog_compiler_pic='-KPIC'
8839      lt_prog_compiler_static='-Bstatic'
8840      ;;
8841
8842    *nto* | *qnx*)
8843      # QNX uses GNU C++, but need to define -shared option too, otherwise
8844      # it will coredump.
8845      lt_prog_compiler_pic='-fPIC -shared'
8846      ;;
8847
8848    osf3* | osf4* | osf5*)
8849      lt_prog_compiler_wl='-Wl,'
8850      # All OSF/1 code is PIC.
8851      lt_prog_compiler_static='-non_shared'
8852      ;;
8853
8854    rdos*)
8855      lt_prog_compiler_static='-non_shared'
8856      ;;
8857
8858    solaris*)
8859      lt_prog_compiler_pic='-KPIC'
8860      lt_prog_compiler_static='-Bstatic'
8861      case $cc_basename in
8862      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8863	lt_prog_compiler_wl='-Qoption ld ';;
8864      *)
8865	lt_prog_compiler_wl='-Wl,';;
8866      esac
8867      ;;
8868
8869    sunos4*)
8870      lt_prog_compiler_wl='-Qoption ld '
8871      lt_prog_compiler_pic='-PIC'
8872      lt_prog_compiler_static='-Bstatic'
8873      ;;
8874
8875    sysv4 | sysv4.2uw2* | sysv4.3*)
8876      lt_prog_compiler_wl='-Wl,'
8877      lt_prog_compiler_pic='-KPIC'
8878      lt_prog_compiler_static='-Bstatic'
8879      ;;
8880
8881    sysv4*MP*)
8882      if test -d /usr/nec; then
8883	lt_prog_compiler_pic='-Kconform_pic'
8884	lt_prog_compiler_static='-Bstatic'
8885      fi
8886      ;;
8887
8888    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8889      lt_prog_compiler_wl='-Wl,'
8890      lt_prog_compiler_pic='-KPIC'
8891      lt_prog_compiler_static='-Bstatic'
8892      ;;
8893
8894    unicos*)
8895      lt_prog_compiler_wl='-Wl,'
8896      lt_prog_compiler_can_build_shared=no
8897      ;;
8898
8899    uts4*)
8900      lt_prog_compiler_pic='-pic'
8901      lt_prog_compiler_static='-Bstatic'
8902      ;;
8903
8904    *)
8905      lt_prog_compiler_can_build_shared=no
8906      ;;
8907    esac
8908  fi
8909
8910case $host_os in
8911  # For platforms that do not support PIC, -DPIC is meaningless:
8912  *djgpp*)
8913    lt_prog_compiler_pic=
8914    ;;
8915  *)
8916    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8917    ;;
8918esac
8919
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8921$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8922if ${lt_cv_prog_compiler_pic+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8928$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8929lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8930
8931#
8932# Check to make sure the PIC flag actually works.
8933#
8934if test -n "$lt_prog_compiler_pic"; then
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8936$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8937if ${lt_cv_prog_compiler_pic_works+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  lt_cv_prog_compiler_pic_works=no
8941   ac_outfile=conftest.$ac_objext
8942   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8944   # Insert the option either (1) after the last *FLAGS variable, or
8945   # (2) before a word containing "conftest.", or (3) at the end.
8946   # Note that $ac_compile itself does not contain backslashes and begins
8947   # with a dollar sign (not a hyphen), so the echo should work correctly.
8948   # The option is referenced via a variable to avoid confusing sed.
8949   lt_compile=`echo "$ac_compile" | $SED \
8950   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952   -e 's:$: $lt_compiler_flag:'`
8953   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954   (eval "$lt_compile" 2>conftest.err)
8955   ac_status=$?
8956   cat conftest.err >&5
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   if (exit $ac_status) && test -s "$ac_outfile"; then
8959     # The compiler can only warn and ignore the option if not recognized
8960     # So say no if there are warnings other than the usual output.
8961     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8962     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8964       lt_cv_prog_compiler_pic_works=yes
8965     fi
8966   fi
8967   $RM conftest*
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8971$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8972
8973if test yes = "$lt_cv_prog_compiler_pic_works"; then
8974    case $lt_prog_compiler_pic in
8975     "" | " "*) ;;
8976     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8977     esac
8978else
8979    lt_prog_compiler_pic=
8980     lt_prog_compiler_can_build_shared=no
8981fi
8982
8983fi
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995#
8996# Check to make sure the static flag actually works.
8997#
8998wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9000$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9001if ${lt_cv_prog_compiler_static_works+:} false; then :
9002  $as_echo_n "(cached) " >&6
9003else
9004  lt_cv_prog_compiler_static_works=no
9005   save_LDFLAGS=$LDFLAGS
9006   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9007   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9008   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9009     # The linker can only warn and ignore the option if not recognized
9010     # So say no if there are warnings
9011     if test -s conftest.err; then
9012       # Append any errors to the config.log.
9013       cat conftest.err 1>&5
9014       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9015       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016       if diff conftest.exp conftest.er2 >/dev/null; then
9017         lt_cv_prog_compiler_static_works=yes
9018       fi
9019     else
9020       lt_cv_prog_compiler_static_works=yes
9021     fi
9022   fi
9023   $RM -r conftest*
9024   LDFLAGS=$save_LDFLAGS
9025
9026fi
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9028$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9029
9030if test yes = "$lt_cv_prog_compiler_static_works"; then
9031    :
9032else
9033    lt_prog_compiler_static=
9034fi
9035
9036
9037
9038
9039
9040
9041
9042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9044if ${lt_cv_prog_compiler_c_o+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  lt_cv_prog_compiler_c_o=no
9048   $RM -r conftest 2>/dev/null
9049   mkdir conftest
9050   cd conftest
9051   mkdir out
9052   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9053
9054   lt_compiler_flag="-o out/conftest2.$ac_objext"
9055   # Insert the option either (1) after the last *FLAGS variable, or
9056   # (2) before a word containing "conftest.", or (3) at the end.
9057   # Note that $ac_compile itself does not contain backslashes and begins
9058   # with a dollar sign (not a hyphen), so the echo should work correctly.
9059   lt_compile=`echo "$ac_compile" | $SED \
9060   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9062   -e 's:$: $lt_compiler_flag:'`
9063   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9064   (eval "$lt_compile" 2>out/conftest.err)
9065   ac_status=$?
9066   cat out/conftest.err >&5
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9069   then
9070     # The compiler can only warn and ignore the option if not recognized
9071     # So say no if there are warnings
9072     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9073     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9074     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9075       lt_cv_prog_compiler_c_o=yes
9076     fi
9077   fi
9078   chmod u+w . 2>&5
9079   $RM conftest*
9080   # SGI C++ compiler will create directory out/ii_files/ for
9081   # template instantiation
9082   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9083   $RM out/* && rmdir out
9084   cd ..
9085   $RM -r conftest
9086   $RM conftest*
9087
9088fi
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9090$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9091
9092
9093
9094
9095
9096
9097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9099if ${lt_cv_prog_compiler_c_o+:} false; then :
9100  $as_echo_n "(cached) " >&6
9101else
9102  lt_cv_prog_compiler_c_o=no
9103   $RM -r conftest 2>/dev/null
9104   mkdir conftest
9105   cd conftest
9106   mkdir out
9107   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108
9109   lt_compiler_flag="-o out/conftest2.$ac_objext"
9110   # Insert the option either (1) after the last *FLAGS variable, or
9111   # (2) before a word containing "conftest.", or (3) at the end.
9112   # Note that $ac_compile itself does not contain backslashes and begins
9113   # with a dollar sign (not a hyphen), so the echo should work correctly.
9114   lt_compile=`echo "$ac_compile" | $SED \
9115   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9116   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9117   -e 's:$: $lt_compiler_flag:'`
9118   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9119   (eval "$lt_compile" 2>out/conftest.err)
9120   ac_status=$?
9121   cat out/conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9124   then
9125     # The compiler can only warn and ignore the option if not recognized
9126     # So say no if there are warnings
9127     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9128     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9129     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9130       lt_cv_prog_compiler_c_o=yes
9131     fi
9132   fi
9133   chmod u+w . 2>&5
9134   $RM conftest*
9135   # SGI C++ compiler will create directory out/ii_files/ for
9136   # template instantiation
9137   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9138   $RM out/* && rmdir out
9139   cd ..
9140   $RM -r conftest
9141   $RM conftest*
9142
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9145$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9146
9147
9148
9149
9150hard_links=nottested
9151if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9152  # do not overwrite the value of need_locks provided by the user
9153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9154$as_echo_n "checking if we can lock with hard links... " >&6; }
9155  hard_links=yes
9156  $RM conftest*
9157  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9158  touch conftest.a
9159  ln conftest.a conftest.b 2>&5 || hard_links=no
9160  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9162$as_echo "$hard_links" >&6; }
9163  if test no = "$hard_links"; then
9164    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9165$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9166    need_locks=warn
9167  fi
9168else
9169  need_locks=no
9170fi
9171
9172
9173
9174
9175
9176
9177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9178$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9179
9180  runpath_var=
9181  allow_undefined_flag=
9182  always_export_symbols=no
9183  archive_cmds=
9184  archive_expsym_cmds=
9185  compiler_needs_object=no
9186  enable_shared_with_static_runtimes=no
9187  export_dynamic_flag_spec=
9188  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9189  hardcode_automatic=no
9190  hardcode_direct=no
9191  hardcode_direct_absolute=no
9192  hardcode_libdir_flag_spec=
9193  hardcode_libdir_separator=
9194  hardcode_minus_L=no
9195  hardcode_shlibpath_var=unsupported
9196  inherit_rpath=no
9197  link_all_deplibs=unknown
9198  module_cmds=
9199  module_expsym_cmds=
9200  old_archive_from_new_cmds=
9201  old_archive_from_expsyms_cmds=
9202  thread_safe_flag_spec=
9203  whole_archive_flag_spec=
9204  # include_expsyms should be a list of space-separated symbols to be *always*
9205  # included in the symbol list
9206  include_expsyms=
9207  # exclude_expsyms can be an extended regexp of symbols to exclude
9208  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9209  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9210  # as well as any symbol that contains 'd'.
9211  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9212  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9213  # platforms (ab)use it in PIC code, but their linkers get confused if
9214  # the symbol is explicitly referenced.  Since portable code cannot
9215  # rely on this symbol name, it's probably fine to never include it in
9216  # preloaded symbol tables.
9217  # Exclude shared library initialization/finalization symbols.
9218  extract_expsyms_cmds=
9219
9220  case $host_os in
9221  cygwin* | mingw* | pw32* | cegcc*)
9222    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9223    # When not using gcc, we currently assume that we are using
9224    # Microsoft Visual C++.
9225    if test yes != "$GCC"; then
9226      with_gnu_ld=no
9227    fi
9228    ;;
9229  interix*)
9230    # we just hope/assume this is gcc and not c89 (= MSVC++)
9231    with_gnu_ld=yes
9232    ;;
9233  openbsd* | bitrig*)
9234    with_gnu_ld=no
9235    ;;
9236  esac
9237
9238  ld_shlibs=yes
9239
9240  # On some targets, GNU ld is compatible enough with the native linker
9241  # that we're better off using the native interface for both.
9242  lt_use_gnu_ld_interface=no
9243  if test yes = "$with_gnu_ld"; then
9244    case $host_os in
9245      aix*)
9246	# The AIX port of GNU ld has always aspired to compatibility
9247	# with the native linker.  However, as the warning in the GNU ld
9248	# block says, versions before 2.19.5* couldn't really create working
9249	# shared libraries, regardless of the interface used.
9250	case `$LD -v 2>&1` in
9251	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9252	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9253	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9254	  *)
9255	    lt_use_gnu_ld_interface=yes
9256	    ;;
9257	esac
9258	;;
9259      *)
9260	lt_use_gnu_ld_interface=yes
9261	;;
9262    esac
9263  fi
9264
9265  if test yes = "$lt_use_gnu_ld_interface"; then
9266    # If archive_cmds runs LD, not CC, wlarc should be empty
9267    wlarc='$wl'
9268
9269    # Set some defaults for GNU ld with shared library support. These
9270    # are reset later if shared libraries are not supported. Putting them
9271    # here allows them to be overridden if necessary.
9272    runpath_var=LD_RUN_PATH
9273    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9274    export_dynamic_flag_spec='$wl--export-dynamic'
9275    # ancient GNU ld didn't support --whole-archive et. al.
9276    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9277      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9278    else
9279      whole_archive_flag_spec=
9280    fi
9281    supports_anon_versioning=no
9282    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9283      *GNU\ gold*) supports_anon_versioning=yes ;;
9284      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9285      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9286      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9287      *\ 2.11.*) ;; # other 2.11 versions
9288      *) supports_anon_versioning=yes ;;
9289    esac
9290
9291    # See if GNU ld supports shared libraries.
9292    case $host_os in
9293    aix[3-9]*)
9294      # On AIX/PPC, the GNU linker is very broken
9295      if test ia64 != "$host_cpu"; then
9296	ld_shlibs=no
9297	cat <<_LT_EOF 1>&2
9298
9299*** Warning: the GNU linker, at least up to release 2.19, is reported
9300*** to be unable to reliably create shared libraries on AIX.
9301*** Therefore, libtool is disabling shared libraries support.  If you
9302*** really care for shared libraries, you may want to install binutils
9303*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9304*** You will then need to restart the configuration process.
9305
9306_LT_EOF
9307      fi
9308      ;;
9309
9310    amigaos*)
9311      case $host_cpu in
9312      powerpc)
9313            # see comment about AmigaOS4 .so support
9314            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9315            archive_expsym_cmds=''
9316        ;;
9317      m68k)
9318            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)'
9319            hardcode_libdir_flag_spec='-L$libdir'
9320            hardcode_minus_L=yes
9321        ;;
9322      esac
9323      ;;
9324
9325    beos*)
9326      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9327	allow_undefined_flag=unsupported
9328	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9329	# support --undefined.  This deserves some investigation.  FIXME
9330	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9331      else
9332	ld_shlibs=no
9333      fi
9334      ;;
9335
9336    cygwin* | mingw* | pw32* | cegcc*)
9337      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9338      # as there is no search path for DLLs.
9339      hardcode_libdir_flag_spec='-L$libdir'
9340      export_dynamic_flag_spec='$wl--export-all-symbols'
9341      allow_undefined_flag=unsupported
9342      always_export_symbols=no
9343      enable_shared_with_static_runtimes=yes
9344      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'
9345      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9346
9347      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9348        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9349	# If the export-symbols file already is a .def file, use it as
9350	# is; otherwise, prepend EXPORTS...
9351	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9352          cp $export_symbols $output_objdir/$soname.def;
9353        else
9354          echo EXPORTS > $output_objdir/$soname.def;
9355          cat $export_symbols >> $output_objdir/$soname.def;
9356        fi~
9357        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358      else
9359	ld_shlibs=no
9360      fi
9361      ;;
9362
9363    haiku*)
9364      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9365      link_all_deplibs=yes
9366      ;;
9367
9368    os2*)
9369      hardcode_libdir_flag_spec='-L$libdir'
9370      hardcode_minus_L=yes
9371      allow_undefined_flag=unsupported
9372      shrext_cmds=.dll
9373      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9374	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9375	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9376	$ECHO EXPORTS >> $output_objdir/$libname.def~
9377	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9378	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9379	emximp -o $lib $output_objdir/$libname.def'
9380      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9381	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9382	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9383	$ECHO EXPORTS >> $output_objdir/$libname.def~
9384	prefix_cmds="$SED"~
9385	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9386	  prefix_cmds="$prefix_cmds -e 1d";
9387	fi~
9388	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9389	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9390	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9391	emximp -o $lib $output_objdir/$libname.def'
9392      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9393      enable_shared_with_static_runtimes=yes
9394      ;;
9395
9396    interix[3-9]*)
9397      hardcode_direct=no
9398      hardcode_shlibpath_var=no
9399      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9400      export_dynamic_flag_spec='$wl-E'
9401      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9402      # Instead, shared libraries are loaded at an image base (0x10000000 by
9403      # default) and relocated if they conflict, which is a slow very memory
9404      # consuming and fragmenting process.  To avoid this, we pick a random,
9405      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9406      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9407      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9408      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'
9409      ;;
9410
9411    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9412      tmp_diet=no
9413      if test linux-dietlibc = "$host_os"; then
9414	case $cc_basename in
9415	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9416	esac
9417      fi
9418      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9419	 && test no = "$tmp_diet"
9420      then
9421	tmp_addflag=' $pic_flag'
9422	tmp_sharedflag='-shared'
9423	case $cc_basename,$host_cpu in
9424        pgcc*)				# Portland Group C compiler
9425	  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'
9426	  tmp_addflag=' $pic_flag'
9427	  ;;
9428	pgf77* | pgf90* | pgf95* | pgfortran*)
9429					# Portland Group f77 and f90 compilers
9430	  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'
9431	  tmp_addflag=' $pic_flag -Mnomain' ;;
9432	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9433	  tmp_addflag=' -i_dynamic' ;;
9434	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9435	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9436	ifc* | ifort*)			# Intel Fortran compiler
9437	  tmp_addflag=' -nofor_main' ;;
9438	lf95*)				# Lahey Fortran 8.1
9439	  whole_archive_flag_spec=
9440	  tmp_sharedflag='--shared' ;;
9441        nagfor*)                        # NAGFOR 5.3
9442          tmp_sharedflag='-Wl,-shared' ;;
9443	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9444	  tmp_sharedflag='-qmkshrobj'
9445	  tmp_addflag= ;;
9446	nvcc*)	# Cuda Compiler Driver 2.2
9447	  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'
9448	  compiler_needs_object=yes
9449	  ;;
9450	esac
9451	case `$CC -V 2>&1 | sed 5q` in
9452	*Sun\ C*)			# Sun C 5.9
9453	  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'
9454	  compiler_needs_object=yes
9455	  tmp_sharedflag='-G' ;;
9456	*Sun\ F*)			# Sun Fortran 8.3
9457	  tmp_sharedflag='-G' ;;
9458	esac
9459	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9460
9461        if test yes = "$supports_anon_versioning"; then
9462          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9463            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9464            echo "local: *; };" >> $output_objdir/$libname.ver~
9465            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9466        fi
9467
9468	case $cc_basename in
9469	tcc*)
9470	  export_dynamic_flag_spec='-rdynamic'
9471	  ;;
9472	xlf* | bgf* | bgxlf* | mpixlf*)
9473	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9474	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9475	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9476	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9477	  if test yes = "$supports_anon_versioning"; then
9478	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9479              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9480              echo "local: *; };" >> $output_objdir/$libname.ver~
9481              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9482	  fi
9483	  ;;
9484	esac
9485      else
9486        ld_shlibs=no
9487      fi
9488      ;;
9489
9490    netbsd*)
9491      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9492	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9493	wlarc=
9494      else
9495	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9496	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9497      fi
9498      ;;
9499
9500    solaris*)
9501      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9502	ld_shlibs=no
9503	cat <<_LT_EOF 1>&2
9504
9505*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9506*** create shared libraries on Solaris systems.  Therefore, libtool
9507*** is disabling shared libraries support.  We urge you to upgrade GNU
9508*** binutils to release 2.9.1 or newer.  Another option is to modify
9509*** your PATH or compiler configuration so that the native linker is
9510*** used, and then restart.
9511
9512_LT_EOF
9513      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9514	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9515	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9516      else
9517	ld_shlibs=no
9518      fi
9519      ;;
9520
9521    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9522      case `$LD -v 2>&1` in
9523        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9524	ld_shlibs=no
9525	cat <<_LT_EOF 1>&2
9526
9527*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9528*** reliably create shared libraries on SCO systems.  Therefore, libtool
9529*** is disabling shared libraries support.  We urge you to upgrade GNU
9530*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9531*** your PATH or compiler configuration so that the native linker is
9532*** used, and then restart.
9533
9534_LT_EOF
9535	;;
9536	*)
9537	  # For security reasons, it is highly recommended that you always
9538	  # use absolute paths for naming shared libraries, and exclude the
9539	  # DT_RUNPATH tag from executables and libraries.  But doing so
9540	  # requires that you compile everything twice, which is a pain.
9541	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9542	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9543	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9544	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9545	  else
9546	    ld_shlibs=no
9547	  fi
9548	;;
9549      esac
9550      ;;
9551
9552    sunos4*)
9553      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9554      wlarc=
9555      hardcode_direct=yes
9556      hardcode_shlibpath_var=no
9557      ;;
9558
9559    *)
9560      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9561	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9562	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9563      else
9564	ld_shlibs=no
9565      fi
9566      ;;
9567    esac
9568
9569    if test no = "$ld_shlibs"; then
9570      runpath_var=
9571      hardcode_libdir_flag_spec=
9572      export_dynamic_flag_spec=
9573      whole_archive_flag_spec=
9574    fi
9575  else
9576    # PORTME fill in a description of your system's linker (not GNU ld)
9577    case $host_os in
9578    aix3*)
9579      allow_undefined_flag=unsupported
9580      always_export_symbols=yes
9581      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'
9582      # Note: this linker hardcodes the directories in LIBPATH if there
9583      # are no directories specified by -L.
9584      hardcode_minus_L=yes
9585      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9586	# Neither direct hardcoding nor static linking is supported with a
9587	# broken collect2.
9588	hardcode_direct=unsupported
9589      fi
9590      ;;
9591
9592    aix[4-9]*)
9593      if test ia64 = "$host_cpu"; then
9594	# On IA64, the linker does run time linking by default, so we don't
9595	# have to do anything special.
9596	aix_use_runtimelinking=no
9597	exp_sym_flag='-Bexport'
9598	no_entry_flag=
9599      else
9600	# If we're using GNU nm, then we don't want the "-C" option.
9601	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9602	# Without the "-l" option, or with the "-B" option, AIX nm treats
9603	# weak defined symbols like other global defined symbols, whereas
9604	# GNU nm marks them as "W".
9605	# While the 'weak' keyword is ignored in the Export File, we need
9606	# it in the Import File for the 'aix-soname' feature, so we have
9607	# to replace the "-B" option with "-P" for AIX nm.
9608	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9609	  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'
9610	else
9611	  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'
9612	fi
9613	aix_use_runtimelinking=no
9614
9615	# Test if we are trying to use run time linking or normal
9616	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9617	# have runtime linking enabled, and use it for executables.
9618	# For shared libraries, we enable/disable runtime linking
9619	# depending on the kind of the shared library created -
9620	# when "with_aix_soname,aix_use_runtimelinking" is:
9621	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9622	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9623	#            lib.a           static archive
9624	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9625	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9626	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9627	#            lib.a(lib.so.V) shared, rtl:no
9628	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9629	#            lib.a           static archive
9630	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9631	  for ld_flag in $LDFLAGS; do
9632	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9633	    aix_use_runtimelinking=yes
9634	    break
9635	  fi
9636	  done
9637	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9638	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9639	    # so we don't have lib.a shared libs to link our executables.
9640	    # We have to force runtime linking in this case.
9641	    aix_use_runtimelinking=yes
9642	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9643	  fi
9644	  ;;
9645	esac
9646
9647	exp_sym_flag='-bexport'
9648	no_entry_flag='-bnoentry'
9649      fi
9650
9651      # When large executables or shared objects are built, AIX ld can
9652      # have problems creating the table of contents.  If linking a library
9653      # or program results in "error TOC overflow" add -mminimal-toc to
9654      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9655      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9656
9657      archive_cmds=''
9658      hardcode_direct=yes
9659      hardcode_direct_absolute=yes
9660      hardcode_libdir_separator=':'
9661      link_all_deplibs=yes
9662      file_list_spec='$wl-f,'
9663      case $with_aix_soname,$aix_use_runtimelinking in
9664      aix,*) ;; # traditional, no import file
9665      svr4,* | *,yes) # use import file
9666	# The Import File defines what to hardcode.
9667	hardcode_direct=no
9668	hardcode_direct_absolute=no
9669	;;
9670      esac
9671
9672      if test yes = "$GCC"; then
9673	case $host_os in aix4.[012]|aix4.[012].*)
9674	# We only want to do this on AIX 4.2 and lower, the check
9675	# below for broken collect2 doesn't work under 4.3+
9676	  collect2name=`$CC -print-prog-name=collect2`
9677	  if test -f "$collect2name" &&
9678	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9679	  then
9680	  # We have reworked collect2
9681	  :
9682	  else
9683	  # We have old collect2
9684	  hardcode_direct=unsupported
9685	  # It fails to find uninstalled libraries when the uninstalled
9686	  # path is not listed in the libpath.  Setting hardcode_minus_L
9687	  # to unsupported forces relinking
9688	  hardcode_minus_L=yes
9689	  hardcode_libdir_flag_spec='-L$libdir'
9690	  hardcode_libdir_separator=
9691	  fi
9692	  ;;
9693	esac
9694	shared_flag='-shared'
9695	if test yes = "$aix_use_runtimelinking"; then
9696	  shared_flag="$shared_flag "'$wl-G'
9697	fi
9698	# Need to ensure runtime linking is disabled for the traditional
9699	# shared library, or the linker may eventually find shared libraries
9700	# /with/ Import File - we do not want to mix them.
9701	shared_flag_aix='-shared'
9702	shared_flag_svr4='-shared $wl-G'
9703      else
9704	# not using gcc
9705	if test ia64 = "$host_cpu"; then
9706	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9707	# chokes on -Wl,-G. The following line is correct:
9708	  shared_flag='-G'
9709	else
9710	  if test yes = "$aix_use_runtimelinking"; then
9711	    shared_flag='$wl-G'
9712	  else
9713	    shared_flag='$wl-bM:SRE'
9714	  fi
9715	  shared_flag_aix='$wl-bM:SRE'
9716	  shared_flag_svr4='$wl-G'
9717	fi
9718      fi
9719
9720      export_dynamic_flag_spec='$wl-bexpall'
9721      # It seems that -bexpall does not export symbols beginning with
9722      # underscore (_), so it is better to generate a list of symbols to export.
9723      always_export_symbols=yes
9724      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9725	# Warning - without using the other runtime loading flags (-brtl),
9726	# -berok will link without error, but may produce a broken library.
9727	allow_undefined_flag='-berok'
9728        # Determine the default libpath from the value encoded in an
9729        # empty executable.
9730        if test set = "${lt_cv_aix_libpath+set}"; then
9731  aix_libpath=$lt_cv_aix_libpath
9732else
9733  if ${lt_cv_aix_libpath_+:} false; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738
9739int
9740main ()
9741{
9742
9743  ;
9744  return 0;
9745}
9746_ACEOF
9747if ac_fn_c_try_link "$LINENO"; then :
9748
9749  lt_aix_libpath_sed='
9750      /Import File Strings/,/^$/ {
9751	  /^0/ {
9752	      s/^0  *\([^ ]*\) *$/\1/
9753	      p
9754	  }
9755      }'
9756  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9757  # Check for a 64-bit object if we didn't find anything.
9758  if test -z "$lt_cv_aix_libpath_"; then
9759    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9760  fi
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763    conftest$ac_exeext conftest.$ac_ext
9764  if test -z "$lt_cv_aix_libpath_"; then
9765    lt_cv_aix_libpath_=/usr/lib:/lib
9766  fi
9767
9768fi
9769
9770  aix_libpath=$lt_cv_aix_libpath_
9771fi
9772
9773        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9774        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
9775      else
9776	if test ia64 = "$host_cpu"; then
9777	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9778	  allow_undefined_flag="-z nodefs"
9779	  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"
9780	else
9781	 # Determine the default libpath from the value encoded in an
9782	 # empty executable.
9783	 if test set = "${lt_cv_aix_libpath+set}"; then
9784  aix_libpath=$lt_cv_aix_libpath
9785else
9786  if ${lt_cv_aix_libpath_+:} false; then :
9787  $as_echo_n "(cached) " >&6
9788else
9789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h.  */
9791
9792int
9793main ()
9794{
9795
9796  ;
9797  return 0;
9798}
9799_ACEOF
9800if ac_fn_c_try_link "$LINENO"; then :
9801
9802  lt_aix_libpath_sed='
9803      /Import File Strings/,/^$/ {
9804	  /^0/ {
9805	      s/^0  *\([^ ]*\) *$/\1/
9806	      p
9807	  }
9808      }'
9809  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9810  # Check for a 64-bit object if we didn't find anything.
9811  if test -z "$lt_cv_aix_libpath_"; then
9812    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9813  fi
9814fi
9815rm -f core conftest.err conftest.$ac_objext \
9816    conftest$ac_exeext conftest.$ac_ext
9817  if test -z "$lt_cv_aix_libpath_"; then
9818    lt_cv_aix_libpath_=/usr/lib:/lib
9819  fi
9820
9821fi
9822
9823  aix_libpath=$lt_cv_aix_libpath_
9824fi
9825
9826	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9827	  # Warning - without using the other run time loading flags,
9828	  # -berok will link without error, but may produce a broken library.
9829	  no_undefined_flag=' $wl-bernotok'
9830	  allow_undefined_flag=' $wl-berok'
9831	  if test yes = "$with_gnu_ld"; then
9832	    # We only use this code for GNU lds that support --whole-archive.
9833	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9834	  else
9835	    # Exported symbols can be pulled into shared objects from archives
9836	    whole_archive_flag_spec='$convenience'
9837	  fi
9838	  archive_cmds_need_lc=yes
9839	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9840	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9841	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9842	  if test svr4 != "$with_aix_soname"; then
9843	    # This is similar to how AIX traditionally builds its shared libraries.
9844	    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'
9845	  fi
9846	  if test aix != "$with_aix_soname"; then
9847	    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'
9848	  else
9849	    # used by -dlpreopen to get the symbols
9850	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9851	  fi
9852	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9853	fi
9854      fi
9855      ;;
9856
9857    amigaos*)
9858      case $host_cpu in
9859      powerpc)
9860            # see comment about AmigaOS4 .so support
9861            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9862            archive_expsym_cmds=''
9863        ;;
9864      m68k)
9865            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)'
9866            hardcode_libdir_flag_spec='-L$libdir'
9867            hardcode_minus_L=yes
9868        ;;
9869      esac
9870      ;;
9871
9872    bsdi[45]*)
9873      export_dynamic_flag_spec=-rdynamic
9874      ;;
9875
9876    cygwin* | mingw* | pw32* | cegcc*)
9877      # When not using gcc, we currently assume that we are using
9878      # Microsoft Visual C++.
9879      # hardcode_libdir_flag_spec is actually meaningless, as there is
9880      # no search path for DLLs.
9881      case $cc_basename in
9882      cl*)
9883	# Native MSVC
9884	hardcode_libdir_flag_spec=' '
9885	allow_undefined_flag=unsupported
9886	always_export_symbols=yes
9887	file_list_spec='@'
9888	# Tell ltmain to make .lib files, not .a files.
9889	libext=lib
9890	# Tell ltmain to make .dll files, not .so files.
9891	shrext_cmds=.dll
9892	# FIXME: Setting linknames here is a bad hack.
9893	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9894	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9895            cp "$export_symbols" "$output_objdir/$soname.def";
9896            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9897          else
9898            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9899          fi~
9900          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9901          linknames='
9902	# The linker will not automatically build a static lib if we build a DLL.
9903	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9904	enable_shared_with_static_runtimes=yes
9905	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9906	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9907	# Don't use ranlib
9908	old_postinstall_cmds='chmod 644 $oldlib'
9909	postlink_cmds='lt_outputfile="@OUTPUT@"~
9910          lt_tool_outputfile="@TOOL_OUTPUT@"~
9911          case $lt_outputfile in
9912            *.exe|*.EXE) ;;
9913            *)
9914              lt_outputfile=$lt_outputfile.exe
9915              lt_tool_outputfile=$lt_tool_outputfile.exe
9916              ;;
9917          esac~
9918          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9919            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9920            $RM "$lt_outputfile.manifest";
9921          fi'
9922	;;
9923      *)
9924	# Assume MSVC wrapper
9925	hardcode_libdir_flag_spec=' '
9926	allow_undefined_flag=unsupported
9927	# Tell ltmain to make .lib files, not .a files.
9928	libext=lib
9929	# Tell ltmain to make .dll files, not .so files.
9930	shrext_cmds=.dll
9931	# FIXME: Setting linknames here is a bad hack.
9932	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9933	# The linker will automatically build a .lib file if we build a DLL.
9934	old_archive_from_new_cmds='true'
9935	# FIXME: Should let the user specify the lib program.
9936	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9937	enable_shared_with_static_runtimes=yes
9938	;;
9939      esac
9940      ;;
9941
9942    darwin* | rhapsody*)
9943
9944
9945  archive_cmds_need_lc=no
9946  hardcode_direct=no
9947  hardcode_automatic=yes
9948  hardcode_shlibpath_var=unsupported
9949  if test yes = "$lt_cv_ld_force_load"; then
9950    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\"`'
9951
9952  else
9953    whole_archive_flag_spec=''
9954  fi
9955  link_all_deplibs=yes
9956  allow_undefined_flag=$_lt_dar_allow_undefined
9957  case $cc_basename in
9958     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9959     *) _lt_dar_can_shared=$GCC ;;
9960  esac
9961  if test yes = "$_lt_dar_can_shared"; then
9962    output_verbose_link_cmd=func_echo_all
9963    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9964    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9965    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"
9966    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"
9967
9968  else
9969  ld_shlibs=no
9970  fi
9971
9972      ;;
9973
9974    dgux*)
9975      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976      hardcode_libdir_flag_spec='-L$libdir'
9977      hardcode_shlibpath_var=no
9978      ;;
9979
9980    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9981    # support.  Future versions do this automatically, but an explicit c++rt0.o
9982    # does not break anything, and helps significantly (at the cost of a little
9983    # extra space).
9984    freebsd2.2*)
9985      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9986      hardcode_libdir_flag_spec='-R$libdir'
9987      hardcode_direct=yes
9988      hardcode_shlibpath_var=no
9989      ;;
9990
9991    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9992    freebsd2.*)
9993      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9994      hardcode_direct=yes
9995      hardcode_minus_L=yes
9996      hardcode_shlibpath_var=no
9997      ;;
9998
9999    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10000    freebsd* | dragonfly*)
10001      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10002      hardcode_libdir_flag_spec='-R$libdir'
10003      hardcode_direct=yes
10004      hardcode_shlibpath_var=no
10005      ;;
10006
10007    hpux9*)
10008      if test yes = "$GCC"; then
10009	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'
10010      else
10011	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'
10012      fi
10013      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10014      hardcode_libdir_separator=:
10015      hardcode_direct=yes
10016
10017      # hardcode_minus_L: Not really in the search PATH,
10018      # but as the default location of the library.
10019      hardcode_minus_L=yes
10020      export_dynamic_flag_spec='$wl-E'
10021      ;;
10022
10023    hpux10*)
10024      if test yes,no = "$GCC,$with_gnu_ld"; then
10025	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026      else
10027	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10028      fi
10029      if test no = "$with_gnu_ld"; then
10030	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10031	hardcode_libdir_separator=:
10032	hardcode_direct=yes
10033	hardcode_direct_absolute=yes
10034	export_dynamic_flag_spec='$wl-E'
10035	# hardcode_minus_L: Not really in the search PATH,
10036	# but as the default location of the library.
10037	hardcode_minus_L=yes
10038      fi
10039      ;;
10040
10041    hpux11*)
10042      if test yes,no = "$GCC,$with_gnu_ld"; then
10043	case $host_cpu in
10044	hppa*64*)
10045	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10046	  ;;
10047	ia64*)
10048	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10049	  ;;
10050	*)
10051	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10052	  ;;
10053	esac
10054      else
10055	case $host_cpu in
10056	hppa*64*)
10057	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10058	  ;;
10059	ia64*)
10060	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10061	  ;;
10062	*)
10063
10064	  # Older versions of the 11.00 compiler do not understand -b yet
10065	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10066	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10067$as_echo_n "checking if $CC understands -b... " >&6; }
10068if ${lt_cv_prog_compiler__b+:} false; then :
10069  $as_echo_n "(cached) " >&6
10070else
10071  lt_cv_prog_compiler__b=no
10072   save_LDFLAGS=$LDFLAGS
10073   LDFLAGS="$LDFLAGS -b"
10074   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10075   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10076     # The linker can only warn and ignore the option if not recognized
10077     # So say no if there are warnings
10078     if test -s conftest.err; then
10079       # Append any errors to the config.log.
10080       cat conftest.err 1>&5
10081       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10082       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10083       if diff conftest.exp conftest.er2 >/dev/null; then
10084         lt_cv_prog_compiler__b=yes
10085       fi
10086     else
10087       lt_cv_prog_compiler__b=yes
10088     fi
10089   fi
10090   $RM -r conftest*
10091   LDFLAGS=$save_LDFLAGS
10092
10093fi
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10095$as_echo "$lt_cv_prog_compiler__b" >&6; }
10096
10097if test yes = "$lt_cv_prog_compiler__b"; then
10098    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10099else
10100    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10101fi
10102
10103	  ;;
10104	esac
10105      fi
10106      if test no = "$with_gnu_ld"; then
10107	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10108	hardcode_libdir_separator=:
10109
10110	case $host_cpu in
10111	hppa*64*|ia64*)
10112	  hardcode_direct=no
10113	  hardcode_shlibpath_var=no
10114	  ;;
10115	*)
10116	  hardcode_direct=yes
10117	  hardcode_direct_absolute=yes
10118	  export_dynamic_flag_spec='$wl-E'
10119
10120	  # hardcode_minus_L: Not really in the search PATH,
10121	  # but as the default location of the library.
10122	  hardcode_minus_L=yes
10123	  ;;
10124	esac
10125      fi
10126      ;;
10127
10128    irix5* | irix6* | nonstopux*)
10129      if test yes = "$GCC"; then
10130	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'
10131	# Try to use the -exported_symbol ld option, if it does not
10132	# work, assume that -exports_file does not work either and
10133	# implicitly export all symbols.
10134	# This should be the same for all languages, so no per-tag cache variable.
10135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10136$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10137if ${lt_cv_irix_exported_symbol+:} false; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  save_LDFLAGS=$LDFLAGS
10141	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10142	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144int foo (void) { return 0; }
10145_ACEOF
10146if ac_fn_c_try_link "$LINENO"; then :
10147  lt_cv_irix_exported_symbol=yes
10148else
10149  lt_cv_irix_exported_symbol=no
10150fi
10151rm -f core conftest.err conftest.$ac_objext \
10152    conftest$ac_exeext conftest.$ac_ext
10153           LDFLAGS=$save_LDFLAGS
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10156$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10157	if test yes = "$lt_cv_irix_exported_symbol"; then
10158          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'
10159	fi
10160      else
10161	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'
10162	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'
10163      fi
10164      archive_cmds_need_lc='no'
10165      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10166      hardcode_libdir_separator=:
10167      inherit_rpath=yes
10168      link_all_deplibs=yes
10169      ;;
10170
10171    linux*)
10172      case $cc_basename in
10173      tcc*)
10174	# Fabrice Bellard et al's Tiny C Compiler
10175	ld_shlibs=yes
10176	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10177	;;
10178      esac
10179      ;;
10180
10181    netbsd*)
10182      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10184      else
10185	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10186      fi
10187      hardcode_libdir_flag_spec='-R$libdir'
10188      hardcode_direct=yes
10189      hardcode_shlibpath_var=no
10190      ;;
10191
10192    newsos6)
10193      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194      hardcode_direct=yes
10195      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10196      hardcode_libdir_separator=:
10197      hardcode_shlibpath_var=no
10198      ;;
10199
10200    *nto* | *qnx*)
10201      ;;
10202
10203    openbsd* | bitrig*)
10204      if test -f /usr/libexec/ld.so; then
10205	hardcode_direct=yes
10206	hardcode_shlibpath_var=no
10207	hardcode_direct_absolute=yes
10208	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10209	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10210	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10211	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10212	  export_dynamic_flag_spec='$wl-E'
10213	else
10214	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10215	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10216	fi
10217      else
10218	ld_shlibs=no
10219      fi
10220      ;;
10221
10222    os2*)
10223      hardcode_libdir_flag_spec='-L$libdir'
10224      hardcode_minus_L=yes
10225      allow_undefined_flag=unsupported
10226      shrext_cmds=.dll
10227      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10228	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10229	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10230	$ECHO EXPORTS >> $output_objdir/$libname.def~
10231	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10232	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10233	emximp -o $lib $output_objdir/$libname.def'
10234      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10235	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10236	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10237	$ECHO EXPORTS >> $output_objdir/$libname.def~
10238	prefix_cmds="$SED"~
10239	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10240	  prefix_cmds="$prefix_cmds -e 1d";
10241	fi~
10242	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10243	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10244	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10245	emximp -o $lib $output_objdir/$libname.def'
10246      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10247      enable_shared_with_static_runtimes=yes
10248      ;;
10249
10250    osf3*)
10251      if test yes = "$GCC"; then
10252	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10253	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'
10254      else
10255	allow_undefined_flag=' -expect_unresolved \*'
10256	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'
10257      fi
10258      archive_cmds_need_lc='no'
10259      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10260      hardcode_libdir_separator=:
10261      ;;
10262
10263    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10264      if test yes = "$GCC"; then
10265	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10266	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'
10267	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268      else
10269	allow_undefined_flag=' -expect_unresolved \*'
10270	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'
10271	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~
10272          $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'
10273
10274	# Both c and cxx compiler support -rpath directly
10275	hardcode_libdir_flag_spec='-rpath $libdir'
10276      fi
10277      archive_cmds_need_lc='no'
10278      hardcode_libdir_separator=:
10279      ;;
10280
10281    solaris*)
10282      no_undefined_flag=' -z defs'
10283      if test yes = "$GCC"; then
10284	wlarc='$wl'
10285	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10286	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10287          $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'
10288      else
10289	case `$CC -V 2>&1` in
10290	*"Compilers 5.0"*)
10291	  wlarc=''
10292	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10294            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10295	  ;;
10296	*)
10297	  wlarc='$wl'
10298	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10299	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10300            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10301	  ;;
10302	esac
10303      fi
10304      hardcode_libdir_flag_spec='-R$libdir'
10305      hardcode_shlibpath_var=no
10306      case $host_os in
10307      solaris2.[0-5] | solaris2.[0-5].*) ;;
10308      *)
10309	# The compiler driver will combine and reorder linker options,
10310	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10311	# but is careful enough not to reorder.
10312	# Supported since Solaris 2.6 (maybe 2.5.1?)
10313	if test yes = "$GCC"; then
10314	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10315	else
10316	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10317	fi
10318	;;
10319      esac
10320      link_all_deplibs=yes
10321      ;;
10322
10323    sunos4*)
10324      if test sequent = "$host_vendor"; then
10325	# Use $CC to link under sequent, because it throws in some extra .o
10326	# files that make .init and .fini sections work.
10327	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10328      else
10329	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10330      fi
10331      hardcode_libdir_flag_spec='-L$libdir'
10332      hardcode_direct=yes
10333      hardcode_minus_L=yes
10334      hardcode_shlibpath_var=no
10335      ;;
10336
10337    sysv4)
10338      case $host_vendor in
10339	sni)
10340	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341	  hardcode_direct=yes # is this really true???
10342	;;
10343	siemens)
10344	  ## LD is ld it makes a PLAMLIB
10345	  ## CC just makes a GrossModule.
10346	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10347	  reload_cmds='$CC -r -o $output$reload_objs'
10348	  hardcode_direct=no
10349        ;;
10350	motorola)
10351	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10353	;;
10354      esac
10355      runpath_var='LD_RUN_PATH'
10356      hardcode_shlibpath_var=no
10357      ;;
10358
10359    sysv4.3*)
10360      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361      hardcode_shlibpath_var=no
10362      export_dynamic_flag_spec='-Bexport'
10363      ;;
10364
10365    sysv4*MP*)
10366      if test -d /usr/nec; then
10367	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368	hardcode_shlibpath_var=no
10369	runpath_var=LD_RUN_PATH
10370	hardcode_runpath_var=yes
10371	ld_shlibs=yes
10372      fi
10373      ;;
10374
10375    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10376      no_undefined_flag='$wl-z,text'
10377      archive_cmds_need_lc=no
10378      hardcode_shlibpath_var=no
10379      runpath_var='LD_RUN_PATH'
10380
10381      if test yes = "$GCC"; then
10382	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384      else
10385	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387      fi
10388      ;;
10389
10390    sysv5* | sco3.2v5* | sco5v6*)
10391      # Note: We CANNOT use -z defs as we might desire, because we do not
10392      # link with -lc, and that would cause any symbols used from libc to
10393      # always be unresolved, which means just about no library would
10394      # ever link correctly.  If we're not using GNU ld we use -z text
10395      # though, which does catch some bad symbols but isn't as heavy-handed
10396      # as -z defs.
10397      no_undefined_flag='$wl-z,text'
10398      allow_undefined_flag='$wl-z,nodefs'
10399      archive_cmds_need_lc=no
10400      hardcode_shlibpath_var=no
10401      hardcode_libdir_flag_spec='$wl-R,$libdir'
10402      hardcode_libdir_separator=':'
10403      link_all_deplibs=yes
10404      export_dynamic_flag_spec='$wl-Bexport'
10405      runpath_var='LD_RUN_PATH'
10406
10407      if test yes = "$GCC"; then
10408	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10409	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410      else
10411	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413      fi
10414      ;;
10415
10416    uts4*)
10417      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10418      hardcode_libdir_flag_spec='-L$libdir'
10419      hardcode_shlibpath_var=no
10420      ;;
10421
10422    *)
10423      ld_shlibs=no
10424      ;;
10425    esac
10426
10427    if test sni = "$host_vendor"; then
10428      case $host in
10429      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10430	export_dynamic_flag_spec='$wl-Blargedynsym'
10431	;;
10432      esac
10433    fi
10434  fi
10435
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10437$as_echo "$ld_shlibs" >&6; }
10438test no = "$ld_shlibs" && can_build_shared=no
10439
10440with_gnu_ld=$with_gnu_ld
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456#
10457# Do we need to explicitly link libc?
10458#
10459case "x$archive_cmds_need_lc" in
10460x|xyes)
10461  # Assume -lc should be added
10462  archive_cmds_need_lc=yes
10463
10464  if test yes,yes = "$GCC,$enable_shared"; then
10465    case $archive_cmds in
10466    *'~'*)
10467      # FIXME: we may have to deal with multi-command sequences.
10468      ;;
10469    '$CC '*)
10470      # Test whether the compiler implicitly links with -lc since on some
10471      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10472      # to ld, don't add -lc before -lgcc.
10473      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10474$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10475if ${lt_cv_archive_cmds_need_lc+:} false; then :
10476  $as_echo_n "(cached) " >&6
10477else
10478  $RM conftest*
10479	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10482  (eval $ac_compile) 2>&5
10483  ac_status=$?
10484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10485  test $ac_status = 0; } 2>conftest.err; then
10486	  soname=conftest
10487	  lib=conftest
10488	  libobjs=conftest.$ac_objext
10489	  deplibs=
10490	  wl=$lt_prog_compiler_wl
10491	  pic_flag=$lt_prog_compiler_pic
10492	  compiler_flags=-v
10493	  linker_flags=-v
10494	  verstring=
10495	  output_objdir=.
10496	  libname=conftest
10497	  lt_save_allow_undefined_flag=$allow_undefined_flag
10498	  allow_undefined_flag=
10499	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10500  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10501  ac_status=$?
10502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10503  test $ac_status = 0; }
10504	  then
10505	    lt_cv_archive_cmds_need_lc=no
10506	  else
10507	    lt_cv_archive_cmds_need_lc=yes
10508	  fi
10509	  allow_undefined_flag=$lt_save_allow_undefined_flag
10510	else
10511	  cat conftest.err 1>&5
10512	fi
10513	$RM conftest*
10514
10515fi
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10517$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10518      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10519      ;;
10520    esac
10521  fi
10522  ;;
10523esac
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10677$as_echo_n "checking dynamic linker characteristics... " >&6; }
10678
10679if test yes = "$GCC"; then
10680  case $host_os in
10681    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10682    *) lt_awk_arg='/^libraries:/' ;;
10683  esac
10684  case $host_os in
10685    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10686    *) lt_sed_strip_eq='s|=/|/|g' ;;
10687  esac
10688  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10689  case $lt_search_path_spec in
10690  *\;*)
10691    # if the path contains ";" then we assume it to be the separator
10692    # otherwise default to the standard path separator (i.e. ":") - it is
10693    # assumed that no part of a normal pathname contains ";" but that should
10694    # okay in the real world where ";" in dirpaths is itself problematic.
10695    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10696    ;;
10697  *)
10698    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10699    ;;
10700  esac
10701  # Ok, now we have the path, separated by spaces, we can step through it
10702  # and add multilib dir if necessary...
10703  lt_tmp_lt_search_path_spec=
10704  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10705  # ...but if some path component already ends with the multilib dir we assume
10706  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10707  case "$lt_multi_os_dir; $lt_search_path_spec " in
10708  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10709    lt_multi_os_dir=
10710    ;;
10711  esac
10712  for lt_sys_path in $lt_search_path_spec; do
10713    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10714      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10715    elif test -n "$lt_multi_os_dir"; then
10716      test -d "$lt_sys_path" && \
10717	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10718    fi
10719  done
10720  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10721BEGIN {RS = " "; FS = "/|\n";} {
10722  lt_foo = "";
10723  lt_count = 0;
10724  for (lt_i = NF; lt_i > 0; lt_i--) {
10725    if ($lt_i != "" && $lt_i != ".") {
10726      if ($lt_i == "..") {
10727        lt_count++;
10728      } else {
10729        if (lt_count == 0) {
10730          lt_foo = "/" $lt_i lt_foo;
10731        } else {
10732          lt_count--;
10733        }
10734      }
10735    }
10736  }
10737  if (lt_foo != "") { lt_freq[lt_foo]++; }
10738  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10739}'`
10740  # AWK program above erroneously prepends '/' to C:/dos/paths
10741  # for these hosts.
10742  case $host_os in
10743    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10744      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10745  esac
10746  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10747else
10748  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10749fi
10750library_names_spec=
10751libname_spec='lib$name'
10752soname_spec=
10753shrext_cmds=.so
10754postinstall_cmds=
10755postuninstall_cmds=
10756finish_cmds=
10757finish_eval=
10758shlibpath_var=
10759shlibpath_overrides_runpath=unknown
10760version_type=none
10761dynamic_linker="$host_os ld.so"
10762sys_lib_dlsearch_path_spec="/lib /usr/lib"
10763need_lib_prefix=unknown
10764hardcode_into_libs=no
10765
10766# when you set need_version to no, make sure it does not cause -set_version
10767# flags to be left without arguments
10768need_version=unknown
10769
10770
10771
10772case $host_os in
10773aix3*)
10774  version_type=linux # correct to gnu/linux during the next big refactor
10775  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10776  shlibpath_var=LIBPATH
10777
10778  # AIX 3 has no versioning support, so we append a major version to the name.
10779  soname_spec='$libname$release$shared_ext$major'
10780  ;;
10781
10782aix[4-9]*)
10783  version_type=linux # correct to gnu/linux during the next big refactor
10784  need_lib_prefix=no
10785  need_version=no
10786  hardcode_into_libs=yes
10787  if test ia64 = "$host_cpu"; then
10788    # AIX 5 supports IA64
10789    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10790    shlibpath_var=LD_LIBRARY_PATH
10791  else
10792    # With GCC up to 2.95.x, collect2 would create an import file
10793    # for dependence libraries.  The import file would start with
10794    # the line '#! .'.  This would cause the generated library to
10795    # depend on '.', always an invalid library.  This was fixed in
10796    # development snapshots of GCC prior to 3.0.
10797    case $host_os in
10798      aix4 | aix4.[01] | aix4.[01].*)
10799      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10800	   echo ' yes '
10801	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10802	:
10803      else
10804	can_build_shared=no
10805      fi
10806      ;;
10807    esac
10808    # Using Import Files as archive members, it is possible to support
10809    # filename-based versioning of shared library archives on AIX. While
10810    # this would work for both with and without runtime linking, it will
10811    # prevent static linking of such archives. So we do filename-based
10812    # shared library versioning with .so extension only, which is used
10813    # when both runtime linking and shared linking is enabled.
10814    # Unfortunately, runtime linking may impact performance, so we do
10815    # not want this to be the default eventually. Also, we use the
10816    # versioned .so libs for executables only if there is the -brtl
10817    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10818    # To allow for filename-based versioning support, we need to create
10819    # libNAME.so.V as an archive file, containing:
10820    # *) an Import File, referring to the versioned filename of the
10821    #    archive as well as the shared archive member, telling the
10822    #    bitwidth (32 or 64) of that shared object, and providing the
10823    #    list of exported symbols of that shared object, eventually
10824    #    decorated with the 'weak' keyword
10825    # *) the shared object with the F_LOADONLY flag set, to really avoid
10826    #    it being seen by the linker.
10827    # At run time we better use the real file rather than another symlink,
10828    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10829
10830    case $with_aix_soname,$aix_use_runtimelinking in
10831    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10832    # soname into executable. Probably we can add versioning support to
10833    # collect2, so additional links can be useful in future.
10834    aix,yes) # traditional libtool
10835      dynamic_linker='AIX unversionable lib.so'
10836      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10837      # instead of lib<name>.a to let people know that these are not
10838      # typical AIX shared libraries.
10839      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10840      ;;
10841    aix,no) # traditional AIX only
10842      dynamic_linker='AIX lib.a(lib.so.V)'
10843      # We preserve .a as extension for shared libraries through AIX4.2
10844      # and later when we are not doing run time linking.
10845      library_names_spec='$libname$release.a $libname.a'
10846      soname_spec='$libname$release$shared_ext$major'
10847      ;;
10848    svr4,*) # full svr4 only
10849      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10850      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10851      # We do not specify a path in Import Files, so LIBPATH fires.
10852      shlibpath_overrides_runpath=yes
10853      ;;
10854    *,yes) # both, prefer svr4
10855      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10856      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10857      # unpreferred sharedlib libNAME.a needs extra handling
10858      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"'
10859      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"'
10860      # We do not specify a path in Import Files, so LIBPATH fires.
10861      shlibpath_overrides_runpath=yes
10862      ;;
10863    *,no) # both, prefer aix
10864      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10865      library_names_spec='$libname$release.a $libname.a'
10866      soname_spec='$libname$release$shared_ext$major'
10867      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10868      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)'
10869      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"'
10870      ;;
10871    esac
10872    shlibpath_var=LIBPATH
10873  fi
10874  ;;
10875
10876amigaos*)
10877  case $host_cpu in
10878  powerpc)
10879    # Since July 2007 AmigaOS4 officially supports .so libraries.
10880    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10881    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10882    ;;
10883  m68k)
10884    library_names_spec='$libname.ixlibrary $libname.a'
10885    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10886    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'
10887    ;;
10888  esac
10889  ;;
10890
10891beos*)
10892  library_names_spec='$libname$shared_ext'
10893  dynamic_linker="$host_os ld.so"
10894  shlibpath_var=LIBRARY_PATH
10895  ;;
10896
10897bsdi[45]*)
10898  version_type=linux # correct to gnu/linux during the next big refactor
10899  need_version=no
10900  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901  soname_spec='$libname$release$shared_ext$major'
10902  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10903  shlibpath_var=LD_LIBRARY_PATH
10904  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10905  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10906  # the default ld.so.conf also contains /usr/contrib/lib and
10907  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10908  # libtool to hard-code these into programs
10909  ;;
10910
10911cygwin* | mingw* | pw32* | cegcc*)
10912  version_type=windows
10913  shrext_cmds=.dll
10914  need_version=no
10915  need_lib_prefix=no
10916
10917  case $GCC,$cc_basename in
10918  yes,*)
10919    # gcc
10920    library_names_spec='$libname.dll.a'
10921    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10922    postinstall_cmds='base_file=`basename \$file`~
10923      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10924      dldir=$destdir/`dirname \$dlpath`~
10925      test -d \$dldir || mkdir -p \$dldir~
10926      $install_prog $dir/$dlname \$dldir/$dlname~
10927      chmod a+x \$dldir/$dlname~
10928      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10929        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10930      fi'
10931    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10932      dlpath=$dir/\$dldll~
10933       $RM \$dlpath'
10934    shlibpath_overrides_runpath=yes
10935
10936    case $host_os in
10937    cygwin*)
10938      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10939      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10940
10941      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10942      ;;
10943    mingw* | cegcc*)
10944      # MinGW DLLs use traditional 'lib' prefix
10945      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946      ;;
10947    pw32*)
10948      # pw32 DLLs use 'pw' prefix rather than 'lib'
10949      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10950      ;;
10951    esac
10952    dynamic_linker='Win32 ld.exe'
10953    ;;
10954
10955  *,cl*)
10956    # Native MSVC
10957    libname_spec='$name'
10958    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10959    library_names_spec='$libname.dll.lib'
10960
10961    case $build_os in
10962    mingw*)
10963      sys_lib_search_path_spec=
10964      lt_save_ifs=$IFS
10965      IFS=';'
10966      for lt_path in $LIB
10967      do
10968        IFS=$lt_save_ifs
10969        # Let DOS variable expansion print the short 8.3 style file name.
10970        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10971        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10972      done
10973      IFS=$lt_save_ifs
10974      # Convert to MSYS style.
10975      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10976      ;;
10977    cygwin*)
10978      # Convert to unix form, then to dos form, then back to unix form
10979      # but this time dos style (no spaces!) so that the unix form looks
10980      # like /cygdrive/c/PROGRA~1:/cygdr...
10981      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10982      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10983      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10984      ;;
10985    *)
10986      sys_lib_search_path_spec=$LIB
10987      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10988        # It is most probably a Windows format PATH.
10989        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10990      else
10991        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10992      fi
10993      # FIXME: find the short name or the path components, as spaces are
10994      # common. (e.g. "Program Files" -> "PROGRA~1")
10995      ;;
10996    esac
10997
10998    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10999    postinstall_cmds='base_file=`basename \$file`~
11000      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11001      dldir=$destdir/`dirname \$dlpath`~
11002      test -d \$dldir || mkdir -p \$dldir~
11003      $install_prog $dir/$dlname \$dldir/$dlname'
11004    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11005      dlpath=$dir/\$dldll~
11006       $RM \$dlpath'
11007    shlibpath_overrides_runpath=yes
11008    dynamic_linker='Win32 link.exe'
11009    ;;
11010
11011  *)
11012    # Assume MSVC wrapper
11013    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11014    dynamic_linker='Win32 ld.exe'
11015    ;;
11016  esac
11017  # FIXME: first we should search . and the directory the executable is in
11018  shlibpath_var=PATH
11019  ;;
11020
11021darwin* | rhapsody*)
11022  dynamic_linker="$host_os dyld"
11023  version_type=darwin
11024  need_lib_prefix=no
11025  need_version=no
11026  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11027  soname_spec='$libname$release$major$shared_ext'
11028  shlibpath_overrides_runpath=yes
11029  shlibpath_var=DYLD_LIBRARY_PATH
11030  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11031
11032  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11033  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11034  ;;
11035
11036dgux*)
11037  version_type=linux # correct to gnu/linux during the next big refactor
11038  need_lib_prefix=no
11039  need_version=no
11040  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11041  soname_spec='$libname$release$shared_ext$major'
11042  shlibpath_var=LD_LIBRARY_PATH
11043  ;;
11044
11045freebsd* | dragonfly*)
11046  # DragonFly does not have aout.  When/if they implement a new
11047  # versioning mechanism, adjust this.
11048  if test -x /usr/bin/objformat; then
11049    objformat=`/usr/bin/objformat`
11050  else
11051    case $host_os in
11052    freebsd[23].*) objformat=aout ;;
11053    *) objformat=elf ;;
11054    esac
11055  fi
11056  version_type=freebsd-$objformat
11057  case $version_type in
11058    freebsd-elf*)
11059      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060      soname_spec='$libname$release$shared_ext$major'
11061      need_version=no
11062      need_lib_prefix=no
11063      ;;
11064    freebsd-*)
11065      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11066      need_version=yes
11067      ;;
11068  esac
11069  shlibpath_var=LD_LIBRARY_PATH
11070  case $host_os in
11071  freebsd2.*)
11072    shlibpath_overrides_runpath=yes
11073    ;;
11074  freebsd3.[01]* | freebsdelf3.[01]*)
11075    shlibpath_overrides_runpath=yes
11076    hardcode_into_libs=yes
11077    ;;
11078  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11079  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11080    shlibpath_overrides_runpath=no
11081    hardcode_into_libs=yes
11082    ;;
11083  *) # from 4.6 on, and DragonFly
11084    shlibpath_overrides_runpath=yes
11085    hardcode_into_libs=yes
11086    ;;
11087  esac
11088  ;;
11089
11090haiku*)
11091  version_type=linux # correct to gnu/linux during the next big refactor
11092  need_lib_prefix=no
11093  need_version=no
11094  dynamic_linker="$host_os runtime_loader"
11095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11096  soname_spec='$libname$release$shared_ext$major'
11097  shlibpath_var=LIBRARY_PATH
11098  shlibpath_overrides_runpath=no
11099  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11100  hardcode_into_libs=yes
11101  ;;
11102
11103hpux9* | hpux10* | hpux11*)
11104  # Give a soname corresponding to the major version so that dld.sl refuses to
11105  # link against other versions.
11106  version_type=sunos
11107  need_lib_prefix=no
11108  need_version=no
11109  case $host_cpu in
11110  ia64*)
11111    shrext_cmds='.so'
11112    hardcode_into_libs=yes
11113    dynamic_linker="$host_os dld.so"
11114    shlibpath_var=LD_LIBRARY_PATH
11115    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11116    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11117    soname_spec='$libname$release$shared_ext$major'
11118    if test 32 = "$HPUX_IA64_MODE"; then
11119      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11120      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11121    else
11122      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11123      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11124    fi
11125    ;;
11126  hppa*64*)
11127    shrext_cmds='.sl'
11128    hardcode_into_libs=yes
11129    dynamic_linker="$host_os dld.sl"
11130    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11131    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11132    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133    soname_spec='$libname$release$shared_ext$major'
11134    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11135    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11136    ;;
11137  *)
11138    shrext_cmds='.sl'
11139    dynamic_linker="$host_os dld.sl"
11140    shlibpath_var=SHLIB_PATH
11141    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11142    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143    soname_spec='$libname$release$shared_ext$major'
11144    ;;
11145  esac
11146  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11147  postinstall_cmds='chmod 555 $lib'
11148  # or fails outright, so override atomically:
11149  install_override_mode=555
11150  ;;
11151
11152interix[3-9]*)
11153  version_type=linux # correct to gnu/linux during the next big refactor
11154  need_lib_prefix=no
11155  need_version=no
11156  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11157  soname_spec='$libname$release$shared_ext$major'
11158  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11159  shlibpath_var=LD_LIBRARY_PATH
11160  shlibpath_overrides_runpath=no
11161  hardcode_into_libs=yes
11162  ;;
11163
11164irix5* | irix6* | nonstopux*)
11165  case $host_os in
11166    nonstopux*) version_type=nonstopux ;;
11167    *)
11168	if test yes = "$lt_cv_prog_gnu_ld"; then
11169		version_type=linux # correct to gnu/linux during the next big refactor
11170	else
11171		version_type=irix
11172	fi ;;
11173  esac
11174  need_lib_prefix=no
11175  need_version=no
11176  soname_spec='$libname$release$shared_ext$major'
11177  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11178  case $host_os in
11179  irix5* | nonstopux*)
11180    libsuff= shlibsuff=
11181    ;;
11182  *)
11183    case $LD in # libtool.m4 will add one of these switches to LD
11184    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11185      libsuff= shlibsuff= libmagic=32-bit;;
11186    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11187      libsuff=32 shlibsuff=N32 libmagic=N32;;
11188    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11189      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11190    *) libsuff= shlibsuff= libmagic=never-match;;
11191    esac
11192    ;;
11193  esac
11194  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11195  shlibpath_overrides_runpath=no
11196  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11197  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11198  hardcode_into_libs=yes
11199  ;;
11200
11201# No shared lib support for Linux oldld, aout, or coff.
11202linux*oldld* | linux*aout* | linux*coff*)
11203  dynamic_linker=no
11204  ;;
11205
11206linux*android*)
11207  version_type=none # Android doesn't support versioned libraries.
11208  need_lib_prefix=no
11209  need_version=no
11210  library_names_spec='$libname$release$shared_ext'
11211  soname_spec='$libname$release$shared_ext'
11212  finish_cmds=
11213  shlibpath_var=LD_LIBRARY_PATH
11214  shlibpath_overrides_runpath=yes
11215
11216  # This implies no fast_install, which is unacceptable.
11217  # Some rework will be needed to allow for fast_install
11218  # before this can be enabled.
11219  hardcode_into_libs=yes
11220
11221  dynamic_linker='Android linker'
11222  # Don't embed -rpath directories since the linker doesn't support them.
11223  hardcode_libdir_flag_spec='-L$libdir'
11224  ;;
11225
11226# This must be glibc/ELF.
11227linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11228  version_type=linux # correct to gnu/linux during the next big refactor
11229  need_lib_prefix=no
11230  need_version=no
11231  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11232  soname_spec='$libname$release$shared_ext$major'
11233  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11234  shlibpath_var=LD_LIBRARY_PATH
11235  shlibpath_overrides_runpath=no
11236
11237  # Some binutils ld are patched to set DT_RUNPATH
11238  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11239  $as_echo_n "(cached) " >&6
11240else
11241  lt_cv_shlibpath_overrides_runpath=no
11242    save_LDFLAGS=$LDFLAGS
11243    save_libdir=$libdir
11244    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11245	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11246    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247/* end confdefs.h.  */
11248
11249int
11250main ()
11251{
11252
11253  ;
11254  return 0;
11255}
11256_ACEOF
11257if ac_fn_c_try_link "$LINENO"; then :
11258  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11259  lt_cv_shlibpath_overrides_runpath=yes
11260fi
11261fi
11262rm -f core conftest.err conftest.$ac_objext \
11263    conftest$ac_exeext conftest.$ac_ext
11264    LDFLAGS=$save_LDFLAGS
11265    libdir=$save_libdir
11266
11267fi
11268
11269  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11270
11271  # This implies no fast_install, which is unacceptable.
11272  # Some rework will be needed to allow for fast_install
11273  # before this can be enabled.
11274  hardcode_into_libs=yes
11275
11276  # Add ABI-specific directories to the system library path.
11277  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11278
11279  # Ideally, we could use ldconfig to report *all* directores which are
11280  # searched for libraries, however this is still not possible.  Aside from not
11281  # being certain /sbin/ldconfig is available, command
11282  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11283  # even though it is searched at run-time.  Try to do the best guess by
11284  # appending ld.so.conf contents (and includes) to the search path.
11285  if test -f /etc/ld.so.conf; then
11286    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' ' '`
11287    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11288  fi
11289
11290  # We used to test for /lib/ld.so.1 and disable shared libraries on
11291  # powerpc, because MkLinux only supported shared libraries with the
11292  # GNU dynamic linker.  Since this was broken with cross compilers,
11293  # most powerpc-linux boxes support dynamic linking these days and
11294  # people can always --disable-shared, the test was removed, and we
11295  # assume the GNU/Linux dynamic linker is in use.
11296  dynamic_linker='GNU/Linux ld.so'
11297  ;;
11298
11299netbsd*)
11300  version_type=sunos
11301  need_lib_prefix=no
11302  need_version=no
11303  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11304    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11305    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11306    dynamic_linker='NetBSD (a.out) ld.so'
11307  else
11308    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11309    soname_spec='$libname$release$shared_ext$major'
11310    dynamic_linker='NetBSD ld.elf_so'
11311  fi
11312  shlibpath_var=LD_LIBRARY_PATH
11313  shlibpath_overrides_runpath=yes
11314  hardcode_into_libs=yes
11315  ;;
11316
11317newsos6)
11318  version_type=linux # correct to gnu/linux during the next big refactor
11319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320  shlibpath_var=LD_LIBRARY_PATH
11321  shlibpath_overrides_runpath=yes
11322  ;;
11323
11324*nto* | *qnx*)
11325  version_type=qnx
11326  need_lib_prefix=no
11327  need_version=no
11328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329  soname_spec='$libname$release$shared_ext$major'
11330  shlibpath_var=LD_LIBRARY_PATH
11331  shlibpath_overrides_runpath=no
11332  hardcode_into_libs=yes
11333  dynamic_linker='ldqnx.so'
11334  ;;
11335
11336openbsd* | bitrig*)
11337  version_type=sunos
11338  sys_lib_dlsearch_path_spec=/usr/lib
11339  need_lib_prefix=no
11340  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11341    need_version=no
11342  else
11343    need_version=yes
11344  fi
11345  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11346  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11347  shlibpath_var=LD_LIBRARY_PATH
11348  shlibpath_overrides_runpath=yes
11349  ;;
11350
11351os2*)
11352  libname_spec='$name'
11353  version_type=windows
11354  shrext_cmds=.dll
11355  need_version=no
11356  need_lib_prefix=no
11357  # OS/2 can only load a DLL with a base name of 8 characters or less.
11358  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11359    v=$($ECHO $release$versuffix | tr -d .-);
11360    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11361    $ECHO $n$v`$shared_ext'
11362  library_names_spec='${libname}_dll.$libext'
11363  dynamic_linker='OS/2 ld.exe'
11364  shlibpath_var=BEGINLIBPATH
11365  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11366  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11367  postinstall_cmds='base_file=`basename \$file`~
11368    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11369    dldir=$destdir/`dirname \$dlpath`~
11370    test -d \$dldir || mkdir -p \$dldir~
11371    $install_prog $dir/$dlname \$dldir/$dlname~
11372    chmod a+x \$dldir/$dlname~
11373    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11374      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11375    fi'
11376  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11377    dlpath=$dir/\$dldll~
11378    $RM \$dlpath'
11379  ;;
11380
11381osf3* | osf4* | osf5*)
11382  version_type=osf
11383  need_lib_prefix=no
11384  need_version=no
11385  soname_spec='$libname$release$shared_ext$major'
11386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11387  shlibpath_var=LD_LIBRARY_PATH
11388  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11389  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11390  ;;
11391
11392rdos*)
11393  dynamic_linker=no
11394  ;;
11395
11396solaris*)
11397  version_type=linux # correct to gnu/linux during the next big refactor
11398  need_lib_prefix=no
11399  need_version=no
11400  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401  soname_spec='$libname$release$shared_ext$major'
11402  shlibpath_var=LD_LIBRARY_PATH
11403  shlibpath_overrides_runpath=yes
11404  hardcode_into_libs=yes
11405  # ldd complains unless libraries are executable
11406  postinstall_cmds='chmod +x $lib'
11407  ;;
11408
11409sunos4*)
11410  version_type=sunos
11411  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11412  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11413  shlibpath_var=LD_LIBRARY_PATH
11414  shlibpath_overrides_runpath=yes
11415  if test yes = "$with_gnu_ld"; then
11416    need_lib_prefix=no
11417  fi
11418  need_version=yes
11419  ;;
11420
11421sysv4 | sysv4.3*)
11422  version_type=linux # correct to gnu/linux during the next big refactor
11423  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424  soname_spec='$libname$release$shared_ext$major'
11425  shlibpath_var=LD_LIBRARY_PATH
11426  case $host_vendor in
11427    sni)
11428      shlibpath_overrides_runpath=no
11429      need_lib_prefix=no
11430      runpath_var=LD_RUN_PATH
11431      ;;
11432    siemens)
11433      need_lib_prefix=no
11434      ;;
11435    motorola)
11436      need_lib_prefix=no
11437      need_version=no
11438      shlibpath_overrides_runpath=no
11439      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11440      ;;
11441  esac
11442  ;;
11443
11444sysv4*MP*)
11445  if test -d /usr/nec; then
11446    version_type=linux # correct to gnu/linux during the next big refactor
11447    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11448    soname_spec='$libname$shared_ext.$major'
11449    shlibpath_var=LD_LIBRARY_PATH
11450  fi
11451  ;;
11452
11453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11454  version_type=sco
11455  need_lib_prefix=no
11456  need_version=no
11457  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11458  soname_spec='$libname$release$shared_ext$major'
11459  shlibpath_var=LD_LIBRARY_PATH
11460  shlibpath_overrides_runpath=yes
11461  hardcode_into_libs=yes
11462  if test yes = "$with_gnu_ld"; then
11463    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11464  else
11465    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11466    case $host_os in
11467      sco3.2v5*)
11468        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11469	;;
11470    esac
11471  fi
11472  sys_lib_dlsearch_path_spec='/usr/lib'
11473  ;;
11474
11475tpf*)
11476  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11477  version_type=linux # correct to gnu/linux during the next big refactor
11478  need_lib_prefix=no
11479  need_version=no
11480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11481  shlibpath_var=LD_LIBRARY_PATH
11482  shlibpath_overrides_runpath=no
11483  hardcode_into_libs=yes
11484  ;;
11485
11486uts4*)
11487  version_type=linux # correct to gnu/linux during the next big refactor
11488  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489  soname_spec='$libname$release$shared_ext$major'
11490  shlibpath_var=LD_LIBRARY_PATH
11491  ;;
11492
11493*)
11494  dynamic_linker=no
11495  ;;
11496esac
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11498$as_echo "$dynamic_linker" >&6; }
11499test no = "$dynamic_linker" && can_build_shared=no
11500
11501variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11502if test yes = "$GCC"; then
11503  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11504fi
11505
11506if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11507  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11508fi
11509
11510if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11511  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11512fi
11513
11514# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11515configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11516
11517# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11518func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11519
11520# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11521configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11620$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11621hardcode_action=
11622if test -n "$hardcode_libdir_flag_spec" ||
11623   test -n "$runpath_var" ||
11624   test yes = "$hardcode_automatic"; then
11625
11626  # We can hardcode non-existent directories.
11627  if test no != "$hardcode_direct" &&
11628     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11629     # have to relink, otherwise we might link with an installed library
11630     # when we should be linking with a yet-to-be-installed one
11631     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11632     test no != "$hardcode_minus_L"; then
11633    # Linking always hardcodes the temporary library directory.
11634    hardcode_action=relink
11635  else
11636    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11637    hardcode_action=immediate
11638  fi
11639else
11640  # We cannot hardcode anything, or else we can only hardcode existing
11641  # directories.
11642  hardcode_action=unsupported
11643fi
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11645$as_echo "$hardcode_action" >&6; }
11646
11647if test relink = "$hardcode_action" ||
11648   test yes = "$inherit_rpath"; then
11649  # Fast installation is not supported
11650  enable_fast_install=no
11651elif test yes = "$shlibpath_overrides_runpath" ||
11652     test no = "$enable_shared"; then
11653  # Fast installation is not necessary
11654  enable_fast_install=needless
11655fi
11656
11657
11658
11659
11660
11661
11662  if test yes != "$enable_dlopen"; then
11663  enable_dlopen=unknown
11664  enable_dlopen_self=unknown
11665  enable_dlopen_self_static=unknown
11666else
11667  lt_cv_dlopen=no
11668  lt_cv_dlopen_libs=
11669
11670  case $host_os in
11671  beos*)
11672    lt_cv_dlopen=load_add_on
11673    lt_cv_dlopen_libs=
11674    lt_cv_dlopen_self=yes
11675    ;;
11676
11677  mingw* | pw32* | cegcc*)
11678    lt_cv_dlopen=LoadLibrary
11679    lt_cv_dlopen_libs=
11680    ;;
11681
11682  cygwin*)
11683    lt_cv_dlopen=dlopen
11684    lt_cv_dlopen_libs=
11685    ;;
11686
11687  darwin*)
11688    # if libdl is installed we need to link against it
11689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11690$as_echo_n "checking for dlopen in -ldl... " >&6; }
11691if ${ac_cv_lib_dl_dlopen+:} false; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  ac_check_lib_save_LIBS=$LIBS
11695LIBS="-ldl  $LIBS"
11696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697/* end confdefs.h.  */
11698
11699/* Override any GCC internal prototype to avoid an error.
11700   Use char because int might match the return type of a GCC
11701   builtin and then its argument prototype would still apply.  */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705char dlopen ();
11706int
11707main ()
11708{
11709return dlopen ();
11710  ;
11711  return 0;
11712}
11713_ACEOF
11714if ac_fn_c_try_link "$LINENO"; then :
11715  ac_cv_lib_dl_dlopen=yes
11716else
11717  ac_cv_lib_dl_dlopen=no
11718fi
11719rm -f core conftest.err conftest.$ac_objext \
11720    conftest$ac_exeext conftest.$ac_ext
11721LIBS=$ac_check_lib_save_LIBS
11722fi
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11724$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11725if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11726  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11727else
11728
11729    lt_cv_dlopen=dyld
11730    lt_cv_dlopen_libs=
11731    lt_cv_dlopen_self=yes
11732
11733fi
11734
11735    ;;
11736
11737  tpf*)
11738    # Don't try to run any link tests for TPF.  We know it's impossible
11739    # because TPF is a cross-compiler, and we know how we open DSOs.
11740    lt_cv_dlopen=dlopen
11741    lt_cv_dlopen_libs=
11742    lt_cv_dlopen_self=no
11743    ;;
11744
11745  *)
11746    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11747if test "x$ac_cv_func_shl_load" = xyes; then :
11748  lt_cv_dlopen=shl_load
11749else
11750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11751$as_echo_n "checking for shl_load in -ldld... " >&6; }
11752if ${ac_cv_lib_dld_shl_load+:} false; then :
11753  $as_echo_n "(cached) " >&6
11754else
11755  ac_check_lib_save_LIBS=$LIBS
11756LIBS="-ldld  $LIBS"
11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758/* end confdefs.h.  */
11759
11760/* Override any GCC internal prototype to avoid an error.
11761   Use char because int might match the return type of a GCC
11762   builtin and then its argument prototype would still apply.  */
11763#ifdef __cplusplus
11764extern "C"
11765#endif
11766char shl_load ();
11767int
11768main ()
11769{
11770return shl_load ();
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775if ac_fn_c_try_link "$LINENO"; then :
11776  ac_cv_lib_dld_shl_load=yes
11777else
11778  ac_cv_lib_dld_shl_load=no
11779fi
11780rm -f core conftest.err conftest.$ac_objext \
11781    conftest$ac_exeext conftest.$ac_ext
11782LIBS=$ac_check_lib_save_LIBS
11783fi
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11785$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11786if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11787  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11788else
11789  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11790if test "x$ac_cv_func_dlopen" = xyes; then :
11791  lt_cv_dlopen=dlopen
11792else
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11794$as_echo_n "checking for dlopen in -ldl... " >&6; }
11795if ${ac_cv_lib_dl_dlopen+:} false; then :
11796  $as_echo_n "(cached) " >&6
11797else
11798  ac_check_lib_save_LIBS=$LIBS
11799LIBS="-ldl  $LIBS"
11800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801/* end confdefs.h.  */
11802
11803/* Override any GCC internal prototype to avoid an error.
11804   Use char because int might match the return type of a GCC
11805   builtin and then its argument prototype would still apply.  */
11806#ifdef __cplusplus
11807extern "C"
11808#endif
11809char dlopen ();
11810int
11811main ()
11812{
11813return dlopen ();
11814  ;
11815  return 0;
11816}
11817_ACEOF
11818if ac_fn_c_try_link "$LINENO"; then :
11819  ac_cv_lib_dl_dlopen=yes
11820else
11821  ac_cv_lib_dl_dlopen=no
11822fi
11823rm -f core conftest.err conftest.$ac_objext \
11824    conftest$ac_exeext conftest.$ac_ext
11825LIBS=$ac_check_lib_save_LIBS
11826fi
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11828$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11829if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11830  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11831else
11832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11833$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11834if ${ac_cv_lib_svld_dlopen+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  ac_check_lib_save_LIBS=$LIBS
11838LIBS="-lsvld  $LIBS"
11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842/* Override any GCC internal prototype to avoid an error.
11843   Use char because int might match the return type of a GCC
11844   builtin and then its argument prototype would still apply.  */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848char dlopen ();
11849int
11850main ()
11851{
11852return dlopen ();
11853  ;
11854  return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then :
11858  ac_cv_lib_svld_dlopen=yes
11859else
11860  ac_cv_lib_svld_dlopen=no
11861fi
11862rm -f core conftest.err conftest.$ac_objext \
11863    conftest$ac_exeext conftest.$ac_ext
11864LIBS=$ac_check_lib_save_LIBS
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11867$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11868if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11869  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11870else
11871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11872$as_echo_n "checking for dld_link in -ldld... " >&6; }
11873if ${ac_cv_lib_dld_dld_link+:} false; then :
11874  $as_echo_n "(cached) " >&6
11875else
11876  ac_check_lib_save_LIBS=$LIBS
11877LIBS="-ldld  $LIBS"
11878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880
11881/* Override any GCC internal prototype to avoid an error.
11882   Use char because int might match the return type of a GCC
11883   builtin and then its argument prototype would still apply.  */
11884#ifdef __cplusplus
11885extern "C"
11886#endif
11887char dld_link ();
11888int
11889main ()
11890{
11891return dld_link ();
11892  ;
11893  return 0;
11894}
11895_ACEOF
11896if ac_fn_c_try_link "$LINENO"; then :
11897  ac_cv_lib_dld_dld_link=yes
11898else
11899  ac_cv_lib_dld_dld_link=no
11900fi
11901rm -f core conftest.err conftest.$ac_objext \
11902    conftest$ac_exeext conftest.$ac_ext
11903LIBS=$ac_check_lib_save_LIBS
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11906$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11907if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11908  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11909fi
11910
11911
11912fi
11913
11914
11915fi
11916
11917
11918fi
11919
11920
11921fi
11922
11923
11924fi
11925
11926    ;;
11927  esac
11928
11929  if test no = "$lt_cv_dlopen"; then
11930    enable_dlopen=no
11931  else
11932    enable_dlopen=yes
11933  fi
11934
11935  case $lt_cv_dlopen in
11936  dlopen)
11937    save_CPPFLAGS=$CPPFLAGS
11938    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11939
11940    save_LDFLAGS=$LDFLAGS
11941    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11942
11943    save_LIBS=$LIBS
11944    LIBS="$lt_cv_dlopen_libs $LIBS"
11945
11946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11947$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11948if ${lt_cv_dlopen_self+:} false; then :
11949  $as_echo_n "(cached) " >&6
11950else
11951  	  if test yes = "$cross_compiling"; then :
11952  lt_cv_dlopen_self=cross
11953else
11954  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11955  lt_status=$lt_dlunknown
11956  cat > conftest.$ac_ext <<_LT_EOF
11957#line $LINENO "configure"
11958#include "confdefs.h"
11959
11960#if HAVE_DLFCN_H
11961#include <dlfcn.h>
11962#endif
11963
11964#include <stdio.h>
11965
11966#ifdef RTLD_GLOBAL
11967#  define LT_DLGLOBAL		RTLD_GLOBAL
11968#else
11969#  ifdef DL_GLOBAL
11970#    define LT_DLGLOBAL		DL_GLOBAL
11971#  else
11972#    define LT_DLGLOBAL		0
11973#  endif
11974#endif
11975
11976/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11977   find out it does not work in some platform. */
11978#ifndef LT_DLLAZY_OR_NOW
11979#  ifdef RTLD_LAZY
11980#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11981#  else
11982#    ifdef DL_LAZY
11983#      define LT_DLLAZY_OR_NOW		DL_LAZY
11984#    else
11985#      ifdef RTLD_NOW
11986#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11987#      else
11988#        ifdef DL_NOW
11989#          define LT_DLLAZY_OR_NOW	DL_NOW
11990#        else
11991#          define LT_DLLAZY_OR_NOW	0
11992#        endif
11993#      endif
11994#    endif
11995#  endif
11996#endif
11997
11998/* When -fvisibility=hidden is used, assume the code has been annotated
11999   correspondingly for the symbols needed.  */
12000#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12001int fnord () __attribute__((visibility("default")));
12002#endif
12003
12004int fnord () { return 42; }
12005int main ()
12006{
12007  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12008  int status = $lt_dlunknown;
12009
12010  if (self)
12011    {
12012      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12013      else
12014        {
12015	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12016          else puts (dlerror ());
12017	}
12018      /* dlclose (self); */
12019    }
12020  else
12021    puts (dlerror ());
12022
12023  return status;
12024}
12025_LT_EOF
12026  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12027  (eval $ac_link) 2>&5
12028  ac_status=$?
12029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12031    (./conftest; exit; ) >&5 2>/dev/null
12032    lt_status=$?
12033    case x$lt_status in
12034      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12035      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12036      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12037    esac
12038  else :
12039    # compilation failed
12040    lt_cv_dlopen_self=no
12041  fi
12042fi
12043rm -fr conftest*
12044
12045
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12048$as_echo "$lt_cv_dlopen_self" >&6; }
12049
12050    if test yes = "$lt_cv_dlopen_self"; then
12051      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12052      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12053$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12054if ${lt_cv_dlopen_self_static+:} false; then :
12055  $as_echo_n "(cached) " >&6
12056else
12057  	  if test yes = "$cross_compiling"; then :
12058  lt_cv_dlopen_self_static=cross
12059else
12060  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12061  lt_status=$lt_dlunknown
12062  cat > conftest.$ac_ext <<_LT_EOF
12063#line $LINENO "configure"
12064#include "confdefs.h"
12065
12066#if HAVE_DLFCN_H
12067#include <dlfcn.h>
12068#endif
12069
12070#include <stdio.h>
12071
12072#ifdef RTLD_GLOBAL
12073#  define LT_DLGLOBAL		RTLD_GLOBAL
12074#else
12075#  ifdef DL_GLOBAL
12076#    define LT_DLGLOBAL		DL_GLOBAL
12077#  else
12078#    define LT_DLGLOBAL		0
12079#  endif
12080#endif
12081
12082/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12083   find out it does not work in some platform. */
12084#ifndef LT_DLLAZY_OR_NOW
12085#  ifdef RTLD_LAZY
12086#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12087#  else
12088#    ifdef DL_LAZY
12089#      define LT_DLLAZY_OR_NOW		DL_LAZY
12090#    else
12091#      ifdef RTLD_NOW
12092#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12093#      else
12094#        ifdef DL_NOW
12095#          define LT_DLLAZY_OR_NOW	DL_NOW
12096#        else
12097#          define LT_DLLAZY_OR_NOW	0
12098#        endif
12099#      endif
12100#    endif
12101#  endif
12102#endif
12103
12104/* When -fvisibility=hidden is used, assume the code has been annotated
12105   correspondingly for the symbols needed.  */
12106#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12107int fnord () __attribute__((visibility("default")));
12108#endif
12109
12110int fnord () { return 42; }
12111int main ()
12112{
12113  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12114  int status = $lt_dlunknown;
12115
12116  if (self)
12117    {
12118      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12119      else
12120        {
12121	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12122          else puts (dlerror ());
12123	}
12124      /* dlclose (self); */
12125    }
12126  else
12127    puts (dlerror ());
12128
12129  return status;
12130}
12131_LT_EOF
12132  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12133  (eval $ac_link) 2>&5
12134  ac_status=$?
12135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12136  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12137    (./conftest; exit; ) >&5 2>/dev/null
12138    lt_status=$?
12139    case x$lt_status in
12140      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12141      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12142      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12143    esac
12144  else :
12145    # compilation failed
12146    lt_cv_dlopen_self_static=no
12147  fi
12148fi
12149rm -fr conftest*
12150
12151
12152fi
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12154$as_echo "$lt_cv_dlopen_self_static" >&6; }
12155    fi
12156
12157    CPPFLAGS=$save_CPPFLAGS
12158    LDFLAGS=$save_LDFLAGS
12159    LIBS=$save_LIBS
12160    ;;
12161  esac
12162
12163  case $lt_cv_dlopen_self in
12164  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12165  *) enable_dlopen_self=unknown ;;
12166  esac
12167
12168  case $lt_cv_dlopen_self_static in
12169  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12170  *) enable_dlopen_self_static=unknown ;;
12171  esac
12172fi
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190striplib=
12191old_striplib=
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12193$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12194if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12195  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12196  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12198$as_echo "yes" >&6; }
12199else
12200# FIXME - insert some real tests, host_os isn't really good enough
12201  case $host_os in
12202  darwin*)
12203    if test -n "$STRIP"; then
12204      striplib="$STRIP -x"
12205      old_striplib="$STRIP -S"
12206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12207$as_echo "yes" >&6; }
12208    else
12209      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211    fi
12212    ;;
12213  *)
12214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216    ;;
12217  esac
12218fi
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231  # Report what library types will actually be built
12232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12233$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12235$as_echo "$can_build_shared" >&6; }
12236
12237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12238$as_echo_n "checking whether to build shared libraries... " >&6; }
12239  test no = "$can_build_shared" && enable_shared=no
12240
12241  # On AIX, shared libraries and static libraries use the same namespace, and
12242  # are all built from PIC.
12243  case $host_os in
12244  aix3*)
12245    test yes = "$enable_shared" && enable_static=no
12246    if test -n "$RANLIB"; then
12247      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12248      postinstall_cmds='$RANLIB $lib'
12249    fi
12250    ;;
12251
12252  aix[4-9]*)
12253    if test ia64 != "$host_cpu"; then
12254      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12255      yes,aix,yes) ;;			# shared object as lib.so file only
12256      yes,svr4,*) ;;			# shared object as lib.so archive member only
12257      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12258      esac
12259    fi
12260    ;;
12261  esac
12262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12263$as_echo "$enable_shared" >&6; }
12264
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12266$as_echo_n "checking whether to build static libraries... " >&6; }
12267  # Make sure either enable_shared or enable_static is yes.
12268  test yes = "$enable_shared" || enable_static=yes
12269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12270$as_echo "$enable_static" >&6; }
12271
12272
12273
12274
12275fi
12276ac_ext=c
12277ac_cpp='$CPP $CPPFLAGS'
12278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280ac_compiler_gnu=$ac_cv_c_compiler_gnu
12281
12282CC=$lt_save_CC
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298        ac_config_commands="$ac_config_commands libtool"
12299
12300
12301
12302
12303# Only expand once:
12304
12305
12306
12307if test "$GCC" = yes
12308then
12309	CFLAGS="-Wall $CFLAGS"
12310fi
12311CFLAGS="$CFLAGS -I$srcdir/.. -I.."
12312
12313
12314
12315for ac_header in sys/types.h
12316do :
12317  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12318if test "x$ac_cv_header_sys_types_h" = xyes; then :
12319  cat >>confdefs.h <<_ACEOF
12320#define HAVE_SYS_TYPES_H 1
12321_ACEOF
12322
12323fi
12324
12325done
12326
12327
12328
12329# Check whether --with-int32 was given.
12330if test "${with_int32+set}" = set; then :
12331  withval=$with_int32; int32="$withval"
12332else
12333
12334
12335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
12336$as_echo_n "checking for uint32_t... " >&6; }
12337
12338		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h.  */
12340
12341#if HAVE_SYS_TYPES_H
12342#include	<sys/types.h>
12343#endif
12344
12345int
12346main ()
12347{
12348
12349			uint32_t	i=0;
12350
12351  ;
12352  return 0;
12353}
12354_ACEOF
12355if ac_fn_c_try_compile "$LINENO"; then :
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12357$as_echo "yes" >&6; } ; int32="uint32_t"
12358else
12359
12360
12361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
12364$as_echo_n "checking for u_int_32_t... " >&6; }
12365
12366		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367/* end confdefs.h.  */
12368
12369#if HAVE_SYS_TYPES_H
12370#include	<sys/types.h>
12371#endif
12372
12373int
12374main ()
12375{
12376
12377				u_int32_t	i=0;
12378
12379  ;
12380  return 0;
12381}
12382_ACEOF
12383if ac_fn_c_try_compile "$LINENO"; then :
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12385$as_echo "yes" >&6; }; int32="u_int32_t"
12386else
12387
12388
12389			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391
12392			# The cast to long int works around a bug in the HP C Compiler
12393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12395# This bug is HP SR number 8606223364.
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12397$as_echo_n "checking size of unsigned... " >&6; }
12398if ${ac_cv_sizeof_unsigned+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
12402
12403else
12404  if test "$ac_cv_type_unsigned" = yes; then
12405     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12407as_fn_error 77 "cannot compute sizeof (unsigned)
12408See \`config.log' for more details" "$LINENO" 5; }
12409   else
12410     ac_cv_sizeof_unsigned=0
12411   fi
12412fi
12413
12414fi
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12416$as_echo "$ac_cv_sizeof_unsigned" >&6; }
12417
12418
12419
12420cat >>confdefs.h <<_ACEOF
12421#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12422_ACEOF
12423
12424
12425			if test "$ac_cv_sizeof_unsigned" != 4
12426			then
12427				# The cast to long int works around a bug in the HP C Compiler
12428# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12429# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12430# This bug is HP SR number 8606223364.
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12432$as_echo_n "checking size of unsigned long... " >&6; }
12433if ${ac_cv_sizeof_unsigned_long+:} false; then :
12434  $as_echo_n "(cached) " >&6
12435else
12436  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
12437
12438else
12439  if test "$ac_cv_type_unsigned_long" = yes; then
12440     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12442as_fn_error 77 "cannot compute sizeof (unsigned long)
12443See \`config.log' for more details" "$LINENO" 5; }
12444   else
12445     ac_cv_sizeof_unsigned_long=0
12446   fi
12447fi
12448
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12451$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12452
12453
12454
12455cat >>confdefs.h <<_ACEOF
12456#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12457_ACEOF
12458
12459
12460				if test "$ac_cv_sizeof_unsigned_long" != 4
12461				then
12462					# The cast to long int works around a bug in the HP C Compiler
12463# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12464# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12465# This bug is HP SR number 8606223364.
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12467$as_echo_n "checking size of unsigned short... " >&6; }
12468if ${ac_cv_sizeof_unsigned_short+:} false; then :
12469  $as_echo_n "(cached) " >&6
12470else
12471  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
12472
12473else
12474  if test "$ac_cv_type_unsigned_short" = yes; then
12475     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12477as_fn_error 77 "cannot compute sizeof (unsigned short)
12478See \`config.log' for more details" "$LINENO" 5; }
12479   else
12480     ac_cv_sizeof_unsigned_short=0
12481   fi
12482fi
12483
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12486$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12487
12488
12489
12490cat >>confdefs.h <<_ACEOF
12491#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12492_ACEOF
12493
12494
12495					if test "$ac_cv_sizeof_unsigned_short" != 4
12496					then
12497						as_fn_error $? "--with-int32 option is required" "$LINENO" 5
12498					fi
12499					int32="unsigned short"
12500				else
12501					int32="unsigned long"
12502				fi
12503			else
12504				int32="unsigned"
12505			fi
12506
12507fi
12508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509
12510fi
12511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512
12513
12514fi
12515
12516UINT32="$int32"
12517
12518
12519cat >>confdefs.h <<_ACEOF
12520#define SHA1_WORD $UINT32
12521_ACEOF
12522
12523
12524
12525# Check whether --with-int64 was given.
12526if test "${with_int64+set}" = set; then :
12527  withval=$with_int64; int64="$withval"
12528else
12529
12530
12531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
12532$as_echo_n "checking for uint64_t... " >&6; }
12533
12534		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535/* end confdefs.h.  */
12536
12537#if HAVE_SYS_TYPES_H
12538#include	<sys/types.h>
12539#endif
12540
12541int
12542main ()
12543{
12544
12545			uint64_t	i=0;
12546
12547  ;
12548  return 0;
12549}
12550_ACEOF
12551if ac_fn_c_try_compile "$LINENO"; then :
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12553$as_echo "yes" >&6; } ; int64="uint64_t"
12554else
12555
12556
12557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558$as_echo "no" >&6; }
12559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_64_t" >&5
12560$as_echo_n "checking for u_int_64_t... " >&6; }
12561
12562		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h.  */
12564
12565#if HAVE_SYS_TYPES_H
12566#include	<sys/types.h>
12567#endif
12568
12569int
12570main ()
12571{
12572
12573				u_int64_t	i=0;
12574
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_compile "$LINENO"; then :
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581$as_echo "yes" >&6; }; int64="u_int64_t"
12582else
12583
12584
12585			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587
12588			# The cast to long int works around a bug in the HP C Compiler
12589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12591# This bug is HP SR number 8606223364.
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12593$as_echo_n "checking size of unsigned... " >&6; }
12594if ${ac_cv_sizeof_unsigned+:} false; then :
12595  $as_echo_n "(cached) " >&6
12596else
12597  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
12598
12599else
12600  if test "$ac_cv_type_unsigned" = yes; then
12601     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12603as_fn_error 77 "cannot compute sizeof (unsigned)
12604See \`config.log' for more details" "$LINENO" 5; }
12605   else
12606     ac_cv_sizeof_unsigned=0
12607   fi
12608fi
12609
12610fi
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12612$as_echo "$ac_cv_sizeof_unsigned" >&6; }
12613
12614
12615
12616cat >>confdefs.h <<_ACEOF
12617#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12618_ACEOF
12619
12620
12621			if test "$ac_cv_sizeof_unsigned" != 8
12622			then
12623				# The cast to long int works around a bug in the HP C Compiler
12624# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12625# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12626# This bug is HP SR number 8606223364.
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12628$as_echo_n "checking size of unsigned long... " >&6; }
12629if ${ac_cv_sizeof_unsigned_long+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
12633
12634else
12635  if test "$ac_cv_type_unsigned_long" = yes; then
12636     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12638as_fn_error 77 "cannot compute sizeof (unsigned long)
12639See \`config.log' for more details" "$LINENO" 5; }
12640   else
12641     ac_cv_sizeof_unsigned_long=0
12642   fi
12643fi
12644
12645fi
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12647$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12648
12649
12650
12651cat >>confdefs.h <<_ACEOF
12652#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12653_ACEOF
12654
12655
12656				if test "$ac_cv_sizeof_unsigned_long" != 8
12657				then
12658					# The cast to long int works around a bug in the HP C Compiler
12659# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12660# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12661# This bug is HP SR number 8606223364.
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
12663$as_echo_n "checking size of unsigned long long... " >&6; }
12664if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
12668
12669else
12670  if test "$ac_cv_type_unsigned_long_long" = yes; then
12671     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12673as_fn_error 77 "cannot compute sizeof (unsigned long long)
12674See \`config.log' for more details" "$LINENO" 5; }
12675   else
12676     ac_cv_sizeof_unsigned_long_long=0
12677   fi
12678fi
12679
12680fi
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
12682$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
12683
12684
12685
12686cat >>confdefs.h <<_ACEOF
12687#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
12688_ACEOF
12689
12690
12691					if test "$ac_cv_sizeof_unsigned_long_long" != 8
12692					then
12693						# The cast to long int works around a bug in the HP C Compiler
12694# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696# This bug is HP SR number 8606223364.
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12698$as_echo_n "checking size of unsigned short... " >&6; }
12699if ${ac_cv_sizeof_unsigned_short+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
12703
12704else
12705  if test "$ac_cv_type_unsigned_short" = yes; then
12706     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12708as_fn_error 77 "cannot compute sizeof (unsigned short)
12709See \`config.log' for more details" "$LINENO" 5; }
12710   else
12711     ac_cv_sizeof_unsigned_short=0
12712   fi
12713fi
12714
12715fi
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12717$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12718
12719
12720
12721cat >>confdefs.h <<_ACEOF
12722#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12723_ACEOF
12724
12725
12726						if test "$ac_cv_sizeof_unsigned_short" != 8
12727						then
12728							as_fn_error $? "--with-int64 option is required" "$LINENO" 5
12729						fi
12730						int64="unsigned short"
12731					else
12732						int64="unsigned long long"
12733					fi
12734				else
12735					int64="unsigned long"
12736				fi
12737			else
12738				int64="unsigned"
12739			fi
12740
12741fi
12742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743
12744fi
12745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746
12747
12748fi
12749
12750UINT64="$int64"
12751
12752
12753cat >>confdefs.h <<_ACEOF
12754#define SHA512_WORD $UINT64
12755_ACEOF
12756
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12758$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12759if ${ac_cv_c_const+:} false; then :
12760  $as_echo_n "(cached) " >&6
12761else
12762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763/* end confdefs.h.  */
12764
12765int
12766main ()
12767{
12768
12769#ifndef __cplusplus
12770  /* Ultrix mips cc rejects this sort of thing.  */
12771  typedef int charset[2];
12772  const charset cs = { 0, 0 };
12773  /* SunOS 4.1.1 cc rejects this.  */
12774  char const *const *pcpcc;
12775  char **ppc;
12776  /* NEC SVR4.0.2 mips cc rejects this.  */
12777  struct point {int x, y;};
12778  static struct point const zero = {0,0};
12779  /* AIX XL C 1.02.0.0 rejects this.
12780     It does not let you subtract one const X* pointer from another in
12781     an arm of an if-expression whose if-part is not a constant
12782     expression */
12783  const char *g = "string";
12784  pcpcc = &g + (g ? g-g : 0);
12785  /* HPUX 7.0 cc rejects these. */
12786  ++pcpcc;
12787  ppc = (char**) pcpcc;
12788  pcpcc = (char const *const *) ppc;
12789  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12790    char tx;
12791    char *t = &tx;
12792    char const *s = 0 ? (char *) 0 : (char const *) 0;
12793
12794    *t++ = 0;
12795    if (s) return 0;
12796  }
12797  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12798    int x[] = {25, 17};
12799    const int *foo = &x[0];
12800    ++foo;
12801  }
12802  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12803    typedef const int *iptr;
12804    iptr p = 0;
12805    ++p;
12806  }
12807  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12808       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12809    struct s { int j; const int *ap[3]; } bx;
12810    struct s *b = &bx; b->j = 5;
12811  }
12812  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12813    const int foo = 10;
12814    if (!foo) return 0;
12815  }
12816  return !cs[0] && !zero.x;
12817#endif
12818
12819  ;
12820  return 0;
12821}
12822_ACEOF
12823if ac_fn_c_try_compile "$LINENO"; then :
12824  ac_cv_c_const=yes
12825else
12826  ac_cv_c_const=no
12827fi
12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12831$as_echo "$ac_cv_c_const" >&6; }
12832if test $ac_cv_c_const = no; then
12833
12834$as_echo "#define const /**/" >>confdefs.h
12835
12836fi
12837
12838# Check whether --enable-largefile was given.
12839if test "${enable_largefile+set}" = set; then :
12840  enableval=$enable_largefile;
12841fi
12842
12843if test "$enable_largefile" != no; then
12844
12845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12846$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12847if ${ac_cv_sys_largefile_CC+:} false; then :
12848  $as_echo_n "(cached) " >&6
12849else
12850  ac_cv_sys_largefile_CC=no
12851     if test "$GCC" != yes; then
12852       ac_save_CC=$CC
12853       while :; do
12854	 # IRIX 6.2 and later do not support large files by default,
12855	 # so use the C compiler's -n32 option if that helps.
12856	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h.  */
12858#include <sys/types.h>
12859 /* Check that off_t can represent 2**63 - 1 correctly.
12860    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12861    since some C++ compilers masquerading as C compilers
12862    incorrectly reject 9223372036854775807.  */
12863#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12864  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12865		       && LARGE_OFF_T % 2147483647 == 1)
12866		      ? 1 : -1];
12867int
12868main ()
12869{
12870
12871  ;
12872  return 0;
12873}
12874_ACEOF
12875	 if ac_fn_c_try_compile "$LINENO"; then :
12876  break
12877fi
12878rm -f core conftest.err conftest.$ac_objext
12879	 CC="$CC -n32"
12880	 if ac_fn_c_try_compile "$LINENO"; then :
12881  ac_cv_sys_largefile_CC=' -n32'; break
12882fi
12883rm -f core conftest.err conftest.$ac_objext
12884	 break
12885       done
12886       CC=$ac_save_CC
12887       rm -f conftest.$ac_ext
12888    fi
12889fi
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12891$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12892  if test "$ac_cv_sys_largefile_CC" != no; then
12893    CC=$CC$ac_cv_sys_largefile_CC
12894  fi
12895
12896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12897$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12898if ${ac_cv_sys_file_offset_bits+:} false; then :
12899  $as_echo_n "(cached) " >&6
12900else
12901  while :; do
12902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903/* end confdefs.h.  */
12904#include <sys/types.h>
12905 /* Check that off_t can represent 2**63 - 1 correctly.
12906    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12907    since some C++ compilers masquerading as C compilers
12908    incorrectly reject 9223372036854775807.  */
12909#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12910  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12911		       && LARGE_OFF_T % 2147483647 == 1)
12912		      ? 1 : -1];
12913int
12914main ()
12915{
12916
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_compile "$LINENO"; then :
12922  ac_cv_sys_file_offset_bits=no; break
12923fi
12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926/* end confdefs.h.  */
12927#define _FILE_OFFSET_BITS 64
12928#include <sys/types.h>
12929 /* Check that off_t can represent 2**63 - 1 correctly.
12930    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12931    since some C++ compilers masquerading as C compilers
12932    incorrectly reject 9223372036854775807.  */
12933#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12934  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12935		       && LARGE_OFF_T % 2147483647 == 1)
12936		      ? 1 : -1];
12937int
12938main ()
12939{
12940
12941  ;
12942  return 0;
12943}
12944_ACEOF
12945if ac_fn_c_try_compile "$LINENO"; then :
12946  ac_cv_sys_file_offset_bits=64; break
12947fi
12948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949  ac_cv_sys_file_offset_bits=unknown
12950  break
12951done
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12954$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12955case $ac_cv_sys_file_offset_bits in #(
12956  no | unknown) ;;
12957  *)
12958cat >>confdefs.h <<_ACEOF
12959#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12960_ACEOF
12961;;
12962esac
12963rm -rf conftest*
12964  if test $ac_cv_sys_file_offset_bits = unknown; then
12965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12966$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12967if ${ac_cv_sys_large_files+:} false; then :
12968  $as_echo_n "(cached) " >&6
12969else
12970  while :; do
12971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h.  */
12973#include <sys/types.h>
12974 /* Check that off_t can represent 2**63 - 1 correctly.
12975    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12976    since some C++ compilers masquerading as C compilers
12977    incorrectly reject 9223372036854775807.  */
12978#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12979  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12980		       && LARGE_OFF_T % 2147483647 == 1)
12981		      ? 1 : -1];
12982int
12983main ()
12984{
12985
12986  ;
12987  return 0;
12988}
12989_ACEOF
12990if ac_fn_c_try_compile "$LINENO"; then :
12991  ac_cv_sys_large_files=no; break
12992fi
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995/* end confdefs.h.  */
12996#define _LARGE_FILES 1
12997#include <sys/types.h>
12998 /* Check that off_t can represent 2**63 - 1 correctly.
12999    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13000    since some C++ compilers masquerading as C compilers
13001    incorrectly reject 9223372036854775807.  */
13002#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13003  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13004		       && LARGE_OFF_T % 2147483647 == 1)
13005		      ? 1 : -1];
13006int
13007main ()
13008{
13009
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014if ac_fn_c_try_compile "$LINENO"; then :
13015  ac_cv_sys_large_files=1; break
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018  ac_cv_sys_large_files=unknown
13019  break
13020done
13021fi
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13023$as_echo "$ac_cv_sys_large_files" >&6; }
13024case $ac_cv_sys_large_files in #(
13025  no | unknown) ;;
13026  *)
13027cat >>confdefs.h <<_ACEOF
13028#define _LARGE_FILES $ac_cv_sys_large_files
13029_ACEOF
13030;;
13031esac
13032rm -rf conftest*
13033  fi
13034
13035
13036fi
13037
13038
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13040$as_echo_n "checking for ANSI C header files... " >&6; }
13041if ${ac_cv_header_stdc+:} false; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046#include <stdlib.h>
13047#include <stdarg.h>
13048#include <string.h>
13049#include <float.h>
13050
13051int
13052main ()
13053{
13054
13055  ;
13056  return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_compile "$LINENO"; then :
13060  ac_cv_header_stdc=yes
13061else
13062  ac_cv_header_stdc=no
13063fi
13064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065
13066if test $ac_cv_header_stdc = yes; then
13067  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070#include <string.h>
13071
13072_ACEOF
13073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13074  $EGREP "memchr" >/dev/null 2>&1; then :
13075
13076else
13077  ac_cv_header_stdc=no
13078fi
13079rm -f conftest*
13080
13081fi
13082
13083if test $ac_cv_header_stdc = yes; then
13084  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h.  */
13087#include <stdlib.h>
13088
13089_ACEOF
13090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13091  $EGREP "free" >/dev/null 2>&1; then :
13092
13093else
13094  ac_cv_header_stdc=no
13095fi
13096rm -f conftest*
13097
13098fi
13099
13100if test $ac_cv_header_stdc = yes; then
13101  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13102  if test "$cross_compiling" = yes; then :
13103  :
13104else
13105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h.  */
13107#include <ctype.h>
13108#include <stdlib.h>
13109#if ((' ' & 0x0FF) == 0x020)
13110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13112#else
13113# define ISLOWER(c) \
13114		   (('a' <= (c) && (c) <= 'i') \
13115		     || ('j' <= (c) && (c) <= 'r') \
13116		     || ('s' <= (c) && (c) <= 'z'))
13117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13118#endif
13119
13120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13121int
13122main ()
13123{
13124  int i;
13125  for (i = 0; i < 256; i++)
13126    if (XOR (islower (i), ISLOWER (i))
13127	|| toupper (i) != TOUPPER (i))
13128      return 2;
13129  return 0;
13130}
13131_ACEOF
13132if ac_fn_c_try_run "$LINENO"; then :
13133
13134else
13135  ac_cv_header_stdc=no
13136fi
13137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13138  conftest.$ac_objext conftest.beam conftest.$ac_ext
13139fi
13140
13141fi
13142fi
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13144$as_echo "$ac_cv_header_stdc" >&6; }
13145if test $ac_cv_header_stdc = yes; then
13146
13147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13148
13149fi
13150
13151
13152ac_config_files="$ac_config_files Makefile"
13153
13154cat >confcache <<\_ACEOF
13155# This file is a shell script that caches the results of configure
13156# tests run on this system so they can be shared between configure
13157# scripts and configure runs, see configure's option --config-cache.
13158# It is not useful on other systems.  If it contains results you don't
13159# want to keep, you may remove or edit it.
13160#
13161# config.status only pays attention to the cache file if you give it
13162# the --recheck option to rerun configure.
13163#
13164# `ac_cv_env_foo' variables (set or unset) will be overridden when
13165# loading this file, other *unset* `ac_cv_foo' will be assigned the
13166# following values.
13167
13168_ACEOF
13169
13170# The following way of writing the cache mishandles newlines in values,
13171# but we know of no workaround that is simple, portable, and efficient.
13172# So, we kill variables containing newlines.
13173# Ultrix sh set writes to stderr and can't be redirected directly,
13174# and sets the high bit in the cache file unless we assign to the vars.
13175(
13176  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13177    eval ac_val=\$$ac_var
13178    case $ac_val in #(
13179    *${as_nl}*)
13180      case $ac_var in #(
13181      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13183      esac
13184      case $ac_var in #(
13185      _ | IFS | as_nl) ;; #(
13186      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13187      *) { eval $ac_var=; unset $ac_var;} ;;
13188      esac ;;
13189    esac
13190  done
13191
13192  (set) 2>&1 |
13193    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13194    *${as_nl}ac_space=\ *)
13195      # `set' does not quote correctly, so add quotes: double-quote
13196      # substitution turns \\\\ into \\, and sed turns \\ into \.
13197      sed -n \
13198	"s/'/'\\\\''/g;
13199	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13200      ;; #(
13201    *)
13202      # `set' quotes correctly as required by POSIX, so do not add quotes.
13203      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13204      ;;
13205    esac |
13206    sort
13207) |
13208  sed '
13209     /^ac_cv_env_/b end
13210     t clear
13211     :clear
13212     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13213     t end
13214     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13215     :end' >>confcache
13216if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13217  if test -w "$cache_file"; then
13218    if test "x$cache_file" != "x/dev/null"; then
13219      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13220$as_echo "$as_me: updating cache $cache_file" >&6;}
13221      if test ! -f "$cache_file" || test -h "$cache_file"; then
13222	cat confcache >"$cache_file"
13223      else
13224        case $cache_file in #(
13225        */* | ?:*)
13226	  mv -f confcache "$cache_file"$$ &&
13227	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13228        *)
13229	  mv -f confcache "$cache_file" ;;
13230	esac
13231      fi
13232    fi
13233  else
13234    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13235$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13236  fi
13237fi
13238rm -f confcache
13239
13240test "x$prefix" = xNONE && prefix=$ac_default_prefix
13241# Let make expand exec_prefix.
13242test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13243
13244DEFS=-DHAVE_CONFIG_H
13245
13246ac_libobjs=
13247ac_ltlibobjs=
13248U=
13249for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13250  # 1. Remove the extension, and $U if already installed.
13251  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13252  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13253  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13254  #    will be set to the directory where LIBOBJS objects are built.
13255  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13256  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13257done
13258LIBOBJS=$ac_libobjs
13259
13260LTLIBOBJS=$ac_ltlibobjs
13261
13262
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13264$as_echo_n "checking that generated files are newer than configure... " >&6; }
13265   if test -n "$am_sleep_pid"; then
13266     # Hide warnings about reused PIDs.
13267     wait $am_sleep_pid 2>/dev/null
13268   fi
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13270$as_echo "done" >&6; }
13271 if test -n "$EXEEXT"; then
13272  am__EXEEXT_TRUE=
13273  am__EXEEXT_FALSE='#'
13274else
13275  am__EXEEXT_TRUE='#'
13276  am__EXEEXT_FALSE=
13277fi
13278
13279if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
13280  as_fn_error $? "conditional \"HMACC\" was never defined.
13281Usually this means the macro was only invoked conditionally." "$LINENO" 5
13282fi
13283if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13284  as_fn_error $? "conditional \"AMDEP\" was never defined.
13285Usually this means the macro was only invoked conditionally." "$LINENO" 5
13286fi
13287if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13288  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13289Usually this means the macro was only invoked conditionally." "$LINENO" 5
13290fi
13291
13292: "${CONFIG_STATUS=./config.status}"
13293ac_write_fail=0
13294ac_clean_files_save=$ac_clean_files
13295ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13297$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13298as_write_fail=0
13299cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13300#! $SHELL
13301# Generated by $as_me.
13302# Run this file to recreate the current configuration.
13303# Compiler output produced by configure, useful for debugging
13304# configure, is in config.log if it exists.
13305
13306debug=false
13307ac_cs_recheck=false
13308ac_cs_silent=false
13309
13310SHELL=\${CONFIG_SHELL-$SHELL}
13311export SHELL
13312_ASEOF
13313cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13314## -------------------- ##
13315## M4sh Initialization. ##
13316## -------------------- ##
13317
13318# Be more Bourne compatible
13319DUALCASE=1; export DUALCASE # for MKS sh
13320if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13321  emulate sh
13322  NULLCMD=:
13323  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13324  # is contrary to our usage.  Disable this feature.
13325  alias -g '${1+"$@"}'='"$@"'
13326  setopt NO_GLOB_SUBST
13327else
13328  case `(set -o) 2>/dev/null` in #(
13329  *posix*) :
13330    set -o posix ;; #(
13331  *) :
13332     ;;
13333esac
13334fi
13335
13336
13337as_nl='
13338'
13339export as_nl
13340# Printing a long string crashes Solaris 7 /usr/bin/printf.
13341as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13342as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13343as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13344# Prefer a ksh shell builtin over an external printf program on Solaris,
13345# but without wasting forks for bash or zsh.
13346if test -z "$BASH_VERSION$ZSH_VERSION" \
13347    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13348  as_echo='print -r --'
13349  as_echo_n='print -rn --'
13350elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13351  as_echo='printf %s\n'
13352  as_echo_n='printf %s'
13353else
13354  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13355    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13356    as_echo_n='/usr/ucb/echo -n'
13357  else
13358    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13359    as_echo_n_body='eval
13360      arg=$1;
13361      case $arg in #(
13362      *"$as_nl"*)
13363	expr "X$arg" : "X\\(.*\\)$as_nl";
13364	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13365      esac;
13366      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13367    '
13368    export as_echo_n_body
13369    as_echo_n='sh -c $as_echo_n_body as_echo'
13370  fi
13371  export as_echo_body
13372  as_echo='sh -c $as_echo_body as_echo'
13373fi
13374
13375# The user is always right.
13376if test "${PATH_SEPARATOR+set}" != set; then
13377  PATH_SEPARATOR=:
13378  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13379    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13380      PATH_SEPARATOR=';'
13381  }
13382fi
13383
13384
13385# IFS
13386# We need space, tab and new line, in precisely that order.  Quoting is
13387# there to prevent editors from complaining about space-tab.
13388# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13389# splitting by setting IFS to empty value.)
13390IFS=" ""	$as_nl"
13391
13392# Find who we are.  Look in the path if we contain no directory separator.
13393as_myself=
13394case $0 in #((
13395  *[\\/]* ) as_myself=$0 ;;
13396  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397for as_dir in $PATH
13398do
13399  IFS=$as_save_IFS
13400  test -z "$as_dir" && as_dir=.
13401    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13402  done
13403IFS=$as_save_IFS
13404
13405     ;;
13406esac
13407# We did not find ourselves, most probably we were run as `sh COMMAND'
13408# in which case we are not to be found in the path.
13409if test "x$as_myself" = x; then
13410  as_myself=$0
13411fi
13412if test ! -f "$as_myself"; then
13413  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13414  exit 1
13415fi
13416
13417# Unset variables that we do not need and which cause bugs (e.g. in
13418# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13419# suppresses any "Segmentation fault" message there.  '((' could
13420# trigger a bug in pdksh 5.2.14.
13421for as_var in BASH_ENV ENV MAIL MAILPATH
13422do eval test x\${$as_var+set} = xset \
13423  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13424done
13425PS1='$ '
13426PS2='> '
13427PS4='+ '
13428
13429# NLS nuisances.
13430LC_ALL=C
13431export LC_ALL
13432LANGUAGE=C
13433export LANGUAGE
13434
13435# CDPATH.
13436(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13437
13438
13439# as_fn_error STATUS ERROR [LINENO LOG_FD]
13440# ----------------------------------------
13441# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13442# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13443# script with STATUS, using 1 if that was 0.
13444as_fn_error ()
13445{
13446  as_status=$1; test $as_status -eq 0 && as_status=1
13447  if test "$4"; then
13448    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13449    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13450  fi
13451  $as_echo "$as_me: error: $2" >&2
13452  as_fn_exit $as_status
13453} # as_fn_error
13454
13455
13456# as_fn_set_status STATUS
13457# -----------------------
13458# Set $? to STATUS, without forking.
13459as_fn_set_status ()
13460{
13461  return $1
13462} # as_fn_set_status
13463
13464# as_fn_exit STATUS
13465# -----------------
13466# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13467as_fn_exit ()
13468{
13469  set +e
13470  as_fn_set_status $1
13471  exit $1
13472} # as_fn_exit
13473
13474# as_fn_unset VAR
13475# ---------------
13476# Portably unset VAR.
13477as_fn_unset ()
13478{
13479  { eval $1=; unset $1;}
13480}
13481as_unset=as_fn_unset
13482# as_fn_append VAR VALUE
13483# ----------------------
13484# Append the text in VALUE to the end of the definition contained in VAR. Take
13485# advantage of any shell optimizations that allow amortized linear growth over
13486# repeated appends, instead of the typical quadratic growth present in naive
13487# implementations.
13488if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13489  eval 'as_fn_append ()
13490  {
13491    eval $1+=\$2
13492  }'
13493else
13494  as_fn_append ()
13495  {
13496    eval $1=\$$1\$2
13497  }
13498fi # as_fn_append
13499
13500# as_fn_arith ARG...
13501# ------------------
13502# Perform arithmetic evaluation on the ARGs, and store the result in the
13503# global $as_val. Take advantage of shells that can avoid forks. The arguments
13504# must be portable across $(()) and expr.
13505if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13506  eval 'as_fn_arith ()
13507  {
13508    as_val=$(( $* ))
13509  }'
13510else
13511  as_fn_arith ()
13512  {
13513    as_val=`expr "$@" || test $? -eq 1`
13514  }
13515fi # as_fn_arith
13516
13517
13518if expr a : '\(a\)' >/dev/null 2>&1 &&
13519   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13520  as_expr=expr
13521else
13522  as_expr=false
13523fi
13524
13525if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13526  as_basename=basename
13527else
13528  as_basename=false
13529fi
13530
13531if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13532  as_dirname=dirname
13533else
13534  as_dirname=false
13535fi
13536
13537as_me=`$as_basename -- "$0" ||
13538$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13539	 X"$0" : 'X\(//\)$' \| \
13540	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13541$as_echo X/"$0" |
13542    sed '/^.*\/\([^/][^/]*\)\/*$/{
13543	    s//\1/
13544	    q
13545	  }
13546	  /^X\/\(\/\/\)$/{
13547	    s//\1/
13548	    q
13549	  }
13550	  /^X\/\(\/\).*/{
13551	    s//\1/
13552	    q
13553	  }
13554	  s/.*/./; q'`
13555
13556# Avoid depending upon Character Ranges.
13557as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13558as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13559as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13560as_cr_digits='0123456789'
13561as_cr_alnum=$as_cr_Letters$as_cr_digits
13562
13563ECHO_C= ECHO_N= ECHO_T=
13564case `echo -n x` in #(((((
13565-n*)
13566  case `echo 'xy\c'` in
13567  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13568  xy)  ECHO_C='\c';;
13569  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13570       ECHO_T='	';;
13571  esac;;
13572*)
13573  ECHO_N='-n';;
13574esac
13575
13576rm -f conf$$ conf$$.exe conf$$.file
13577if test -d conf$$.dir; then
13578  rm -f conf$$.dir/conf$$.file
13579else
13580  rm -f conf$$.dir
13581  mkdir conf$$.dir 2>/dev/null
13582fi
13583if (echo >conf$$.file) 2>/dev/null; then
13584  if ln -s conf$$.file conf$$ 2>/dev/null; then
13585    as_ln_s='ln -s'
13586    # ... but there are two gotchas:
13587    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13588    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13589    # In both cases, we have to default to `cp -pR'.
13590    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13591      as_ln_s='cp -pR'
13592  elif ln conf$$.file conf$$ 2>/dev/null; then
13593    as_ln_s=ln
13594  else
13595    as_ln_s='cp -pR'
13596  fi
13597else
13598  as_ln_s='cp -pR'
13599fi
13600rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13601rmdir conf$$.dir 2>/dev/null
13602
13603
13604# as_fn_mkdir_p
13605# -------------
13606# Create "$as_dir" as a directory, including parents if necessary.
13607as_fn_mkdir_p ()
13608{
13609
13610  case $as_dir in #(
13611  -*) as_dir=./$as_dir;;
13612  esac
13613  test -d "$as_dir" || eval $as_mkdir_p || {
13614    as_dirs=
13615    while :; do
13616      case $as_dir in #(
13617      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13618      *) as_qdir=$as_dir;;
13619      esac
13620      as_dirs="'$as_qdir' $as_dirs"
13621      as_dir=`$as_dirname -- "$as_dir" ||
13622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13623	 X"$as_dir" : 'X\(//\)[^/]' \| \
13624	 X"$as_dir" : 'X\(//\)$' \| \
13625	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13626$as_echo X"$as_dir" |
13627    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13628	    s//\1/
13629	    q
13630	  }
13631	  /^X\(\/\/\)[^/].*/{
13632	    s//\1/
13633	    q
13634	  }
13635	  /^X\(\/\/\)$/{
13636	    s//\1/
13637	    q
13638	  }
13639	  /^X\(\/\).*/{
13640	    s//\1/
13641	    q
13642	  }
13643	  s/.*/./; q'`
13644      test -d "$as_dir" && break
13645    done
13646    test -z "$as_dirs" || eval "mkdir $as_dirs"
13647  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13648
13649
13650} # as_fn_mkdir_p
13651if mkdir -p . 2>/dev/null; then
13652  as_mkdir_p='mkdir -p "$as_dir"'
13653else
13654  test -d ./-p && rmdir ./-p
13655  as_mkdir_p=false
13656fi
13657
13658
13659# as_fn_executable_p FILE
13660# -----------------------
13661# Test if FILE is an executable regular file.
13662as_fn_executable_p ()
13663{
13664  test -f "$1" && test -x "$1"
13665} # as_fn_executable_p
13666as_test_x='test -x'
13667as_executable_p=as_fn_executable_p
13668
13669# Sed expression to map a string onto a valid CPP name.
13670as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13671
13672# Sed expression to map a string onto a valid variable name.
13673as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13674
13675
13676exec 6>&1
13677## ----------------------------------- ##
13678## Main body of $CONFIG_STATUS script. ##
13679## ----------------------------------- ##
13680_ASEOF
13681test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13682
13683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13684# Save the log message, to keep $0 and so on meaningful, and to
13685# report actual input values of CONFIG_FILES etc. instead of their
13686# values after options handling.
13687ac_log="
13688This file was extended by libsha1 $as_me 1.21, which was
13689generated by GNU Autoconf 2.69.  Invocation command line was
13690
13691  CONFIG_FILES    = $CONFIG_FILES
13692  CONFIG_HEADERS  = $CONFIG_HEADERS
13693  CONFIG_LINKS    = $CONFIG_LINKS
13694  CONFIG_COMMANDS = $CONFIG_COMMANDS
13695  $ $0 $@
13696
13697on `(hostname || uname -n) 2>/dev/null | sed 1q`
13698"
13699
13700_ACEOF
13701
13702case $ac_config_files in *"
13703"*) set x $ac_config_files; shift; ac_config_files=$*;;
13704esac
13705
13706case $ac_config_headers in *"
13707"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13708esac
13709
13710
13711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13712# Files that config.status was made for.
13713config_files="$ac_config_files"
13714config_headers="$ac_config_headers"
13715config_commands="$ac_config_commands"
13716
13717_ACEOF
13718
13719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13720ac_cs_usage="\
13721\`$as_me' instantiates files and other configuration actions
13722from templates according to the current configuration.  Unless the files
13723and actions are specified as TAGs, all are instantiated by default.
13724
13725Usage: $0 [OPTION]... [TAG]...
13726
13727  -h, --help       print this help, then exit
13728  -V, --version    print version number and configuration settings, then exit
13729      --config     print configuration, then exit
13730  -q, --quiet, --silent
13731                   do not print progress messages
13732  -d, --debug      don't remove temporary files
13733      --recheck    update $as_me by reconfiguring in the same conditions
13734      --file=FILE[:TEMPLATE]
13735                   instantiate the configuration file FILE
13736      --header=FILE[:TEMPLATE]
13737                   instantiate the configuration header FILE
13738
13739Configuration files:
13740$config_files
13741
13742Configuration headers:
13743$config_headers
13744
13745Configuration commands:
13746$config_commands
13747
13748Report bugs to <courier-users@lists.sourceforge.net>."
13749
13750_ACEOF
13751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13752ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13753ac_cs_version="\\
13754libsha1 config.status 1.21
13755configured by $0, generated by GNU Autoconf 2.69,
13756  with options \\"\$ac_cs_config\\"
13757
13758Copyright (C) 2012 Free Software Foundation, Inc.
13759This config.status script is free software; the Free Software Foundation
13760gives unlimited permission to copy, distribute and modify it."
13761
13762ac_pwd='$ac_pwd'
13763srcdir='$srcdir'
13764INSTALL='$INSTALL'
13765MKDIR_P='$MKDIR_P'
13766AWK='$AWK'
13767test -n "\$AWK" || AWK=awk
13768_ACEOF
13769
13770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771# The default lists apply if the user does not specify any file.
13772ac_need_defaults=:
13773while test $# != 0
13774do
13775  case $1 in
13776  --*=?*)
13777    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13778    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13779    ac_shift=:
13780    ;;
13781  --*=)
13782    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13783    ac_optarg=
13784    ac_shift=:
13785    ;;
13786  *)
13787    ac_option=$1
13788    ac_optarg=$2
13789    ac_shift=shift
13790    ;;
13791  esac
13792
13793  case $ac_option in
13794  # Handling of the options.
13795  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13796    ac_cs_recheck=: ;;
13797  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13798    $as_echo "$ac_cs_version"; exit ;;
13799  --config | --confi | --conf | --con | --co | --c )
13800    $as_echo "$ac_cs_config"; exit ;;
13801  --debug | --debu | --deb | --de | --d | -d )
13802    debug=: ;;
13803  --file | --fil | --fi | --f )
13804    $ac_shift
13805    case $ac_optarg in
13806    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13807    '') as_fn_error $? "missing file argument" ;;
13808    esac
13809    as_fn_append CONFIG_FILES " '$ac_optarg'"
13810    ac_need_defaults=false;;
13811  --header | --heade | --head | --hea )
13812    $ac_shift
13813    case $ac_optarg in
13814    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13815    esac
13816    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13817    ac_need_defaults=false;;
13818  --he | --h)
13819    # Conflict between --help and --header
13820    as_fn_error $? "ambiguous option: \`$1'
13821Try \`$0 --help' for more information.";;
13822  --help | --hel | -h )
13823    $as_echo "$ac_cs_usage"; exit ;;
13824  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13825  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13826    ac_cs_silent=: ;;
13827
13828  # This is an error.
13829  -*) as_fn_error $? "unrecognized option: \`$1'
13830Try \`$0 --help' for more information." ;;
13831
13832  *) as_fn_append ac_config_targets " $1"
13833     ac_need_defaults=false ;;
13834
13835  esac
13836  shift
13837done
13838
13839ac_configure_extra_args=
13840
13841if $ac_cs_silent; then
13842  exec 6>/dev/null
13843  ac_configure_extra_args="$ac_configure_extra_args --silent"
13844fi
13845
13846_ACEOF
13847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13848if \$ac_cs_recheck; then
13849  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13850  shift
13851  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13852  CONFIG_SHELL='$SHELL'
13853  export CONFIG_SHELL
13854  exec "\$@"
13855fi
13856
13857_ACEOF
13858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13859exec 5>>config.log
13860{
13861  echo
13862  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13863## Running $as_me. ##
13864_ASBOX
13865  $as_echo "$ac_log"
13866} >&5
13867
13868_ACEOF
13869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13870#
13871# INIT-COMMANDS
13872#
13873AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13874
13875
13876# The HP-UX ksh and POSIX shell print the target directory to stdout
13877# if CDPATH is set.
13878(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13879
13880sed_quote_subst='$sed_quote_subst'
13881double_quote_subst='$double_quote_subst'
13882delay_variable_subst='$delay_variable_subst'
13883macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13884macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13885enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13886enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13887pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13888enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13889shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13890SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13891ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13892PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13893host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13894host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13895host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13896build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13897build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13898build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13899SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13900Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13901GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13902EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13903FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13904LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13905NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13906LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13907max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13908ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13909exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13910lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13911lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13912lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13913lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13914lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13915reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13916reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13917OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13918deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13919file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13920file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13921want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13922DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13923sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13924AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13925AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13926archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13927STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13928RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13929old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13930old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13931old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13932lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13933CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13934CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13935compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13936GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13937lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13938lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13939lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13940lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13941lt_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"`'
13942lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13943nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13944lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13945lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13946objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13947MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13948lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13949lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13950lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13951lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13952lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13953need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13954MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13955DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13956NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13957LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13958OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13959OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13960libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13961shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13962extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13963archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13964enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13965export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13966whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13967compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13968old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13969old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13970archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13971archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13972module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13973module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13974with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13975allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13976no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13977hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13978hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13979hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13980hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13981hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13982hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13983hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13984inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13985link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13986always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13987export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13988exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13989include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13990prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13991postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13992file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13993variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13994need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13995need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13996version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13997runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13998shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13999shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14000libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14001library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14002soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14003install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14004postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14005postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14006finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14007finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14008hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14009sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14010configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14011configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14012hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14013enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14014enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14015enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14016old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14017striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14018
14019LTCC='$LTCC'
14020LTCFLAGS='$LTCFLAGS'
14021compiler='$compiler_DEFAULT'
14022
14023# A function that is used when there is no print builtin or printf.
14024func_fallback_echo ()
14025{
14026  eval 'cat <<_LTECHO_EOF
14027\$1
14028_LTECHO_EOF'
14029}
14030
14031# Quote evaled strings.
14032for var in SHELL \
14033ECHO \
14034PATH_SEPARATOR \
14035SED \
14036GREP \
14037EGREP \
14038FGREP \
14039LD \
14040NM \
14041LN_S \
14042lt_SP2NL \
14043lt_NL2SP \
14044reload_flag \
14045OBJDUMP \
14046deplibs_check_method \
14047file_magic_cmd \
14048file_magic_glob \
14049want_nocaseglob \
14050DLLTOOL \
14051sharedlib_from_linklib_cmd \
14052AR \
14053AR_FLAGS \
14054archiver_list_spec \
14055STRIP \
14056RANLIB \
14057CC \
14058CFLAGS \
14059compiler \
14060lt_cv_sys_global_symbol_pipe \
14061lt_cv_sys_global_symbol_to_cdecl \
14062lt_cv_sys_global_symbol_to_import \
14063lt_cv_sys_global_symbol_to_c_name_address \
14064lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14065lt_cv_nm_interface \
14066nm_file_list_spec \
14067lt_cv_truncate_bin \
14068lt_prog_compiler_no_builtin_flag \
14069lt_prog_compiler_pic \
14070lt_prog_compiler_wl \
14071lt_prog_compiler_static \
14072lt_cv_prog_compiler_c_o \
14073need_locks \
14074MANIFEST_TOOL \
14075DSYMUTIL \
14076NMEDIT \
14077LIPO \
14078OTOOL \
14079OTOOL64 \
14080shrext_cmds \
14081export_dynamic_flag_spec \
14082whole_archive_flag_spec \
14083compiler_needs_object \
14084with_gnu_ld \
14085allow_undefined_flag \
14086no_undefined_flag \
14087hardcode_libdir_flag_spec \
14088hardcode_libdir_separator \
14089exclude_expsyms \
14090include_expsyms \
14091file_list_spec \
14092variables_saved_for_relink \
14093libname_spec \
14094library_names_spec \
14095soname_spec \
14096install_override_mode \
14097finish_eval \
14098old_striplib \
14099striplib; do
14100    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14101    *[\\\\\\\`\\"\\\$]*)
14102      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14103      ;;
14104    *)
14105      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14106      ;;
14107    esac
14108done
14109
14110# Double-quote double-evaled strings.
14111for var in reload_cmds \
14112old_postinstall_cmds \
14113old_postuninstall_cmds \
14114old_archive_cmds \
14115extract_expsyms_cmds \
14116old_archive_from_new_cmds \
14117old_archive_from_expsyms_cmds \
14118archive_cmds \
14119archive_expsym_cmds \
14120module_cmds \
14121module_expsym_cmds \
14122export_symbols_cmds \
14123prelink_cmds \
14124postlink_cmds \
14125postinstall_cmds \
14126postuninstall_cmds \
14127finish_cmds \
14128sys_lib_search_path_spec \
14129configure_time_dlsearch_path \
14130configure_time_lt_sys_library_path; do
14131    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14132    *[\\\\\\\`\\"\\\$]*)
14133      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14134      ;;
14135    *)
14136      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14137      ;;
14138    esac
14139done
14140
14141ac_aux_dir='$ac_aux_dir'
14142
14143# See if we are running on zsh, and set the options that allow our
14144# commands through without removal of \ escapes INIT.
14145if test -n "\${ZSH_VERSION+set}"; then
14146   setopt NO_GLOB_SUBST
14147fi
14148
14149
14150    PACKAGE='$PACKAGE'
14151    VERSION='$VERSION'
14152    RM='$RM'
14153    ofile='$ofile'
14154
14155
14156
14157
14158_ACEOF
14159
14160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14161
14162# Handling of arguments.
14163for ac_config_target in $ac_config_targets
14164do
14165  case $ac_config_target in
14166    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14167    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14168    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14169    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14170
14171  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14172  esac
14173done
14174
14175
14176# If the user did not use the arguments to specify the items to instantiate,
14177# then the envvar interface is used.  Set only those that are not.
14178# We use the long form for the default assignment because of an extremely
14179# bizarre bug on SunOS 4.1.3.
14180if $ac_need_defaults; then
14181  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14182  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14183  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14184fi
14185
14186# Have a temporary directory for convenience.  Make it in the build tree
14187# simply because there is no reason against having it here, and in addition,
14188# creating and moving files from /tmp can sometimes cause problems.
14189# Hook for its removal unless debugging.
14190# Note that there is a small window in which the directory will not be cleaned:
14191# after its creation but before its name has been assigned to `$tmp'.
14192$debug ||
14193{
14194  tmp= ac_tmp=
14195  trap 'exit_status=$?
14196  : "${ac_tmp:=$tmp}"
14197  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14198' 0
14199  trap 'as_fn_exit 1' 1 2 13 15
14200}
14201# Create a (secure) tmp directory for tmp files.
14202
14203{
14204  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14205  test -d "$tmp"
14206}  ||
14207{
14208  tmp=./conf$$-$RANDOM
14209  (umask 077 && mkdir "$tmp")
14210} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14211ac_tmp=$tmp
14212
14213# Set up the scripts for CONFIG_FILES section.
14214# No need to generate them if there are no CONFIG_FILES.
14215# This happens for instance with `./config.status config.h'.
14216if test -n "$CONFIG_FILES"; then
14217
14218
14219ac_cr=`echo X | tr X '\015'`
14220# On cygwin, bash can eat \r inside `` if the user requested igncr.
14221# But we know of no other shell where ac_cr would be empty at this
14222# point, so we can use a bashism as a fallback.
14223if test "x$ac_cr" = x; then
14224  eval ac_cr=\$\'\\r\'
14225fi
14226ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14227if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14228  ac_cs_awk_cr='\\r'
14229else
14230  ac_cs_awk_cr=$ac_cr
14231fi
14232
14233echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14234_ACEOF
14235
14236
14237{
14238  echo "cat >conf$$subs.awk <<_ACEOF" &&
14239  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14240  echo "_ACEOF"
14241} >conf$$subs.sh ||
14242  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14243ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14244ac_delim='%!_!# '
14245for ac_last_try in false false false false false :; do
14246  . ./conf$$subs.sh ||
14247    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14248
14249  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14250  if test $ac_delim_n = $ac_delim_num; then
14251    break
14252  elif $ac_last_try; then
14253    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14254  else
14255    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14256  fi
14257done
14258rm -f conf$$subs.sh
14259
14260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14262_ACEOF
14263sed -n '
14264h
14265s/^/S["/; s/!.*/"]=/
14266p
14267g
14268s/^[^!]*!//
14269:repl
14270t repl
14271s/'"$ac_delim"'$//
14272t delim
14273:nl
14274h
14275s/\(.\{148\}\)..*/\1/
14276t more1
14277s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14278p
14279n
14280b repl
14281:more1
14282s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14283p
14284g
14285s/.\{148\}//
14286t nl
14287:delim
14288h
14289s/\(.\{148\}\)..*/\1/
14290t more2
14291s/["\\]/\\&/g; s/^/"/; s/$/"/
14292p
14293b
14294:more2
14295s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14296p
14297g
14298s/.\{148\}//
14299t delim
14300' <conf$$subs.awk | sed '
14301/^[^""]/{
14302  N
14303  s/\n//
14304}
14305' >>$CONFIG_STATUS || ac_write_fail=1
14306rm -f conf$$subs.awk
14307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14308_ACAWK
14309cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14310  for (key in S) S_is_set[key] = 1
14311  FS = ""
14312
14313}
14314{
14315  line = $ 0
14316  nfields = split(line, field, "@")
14317  substed = 0
14318  len = length(field[1])
14319  for (i = 2; i < nfields; i++) {
14320    key = field[i]
14321    keylen = length(key)
14322    if (S_is_set[key]) {
14323      value = S[key]
14324      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14325      len += length(value) + length(field[++i])
14326      substed = 1
14327    } else
14328      len += 1 + keylen
14329  }
14330
14331  print line
14332}
14333
14334_ACAWK
14335_ACEOF
14336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14337if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14338  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14339else
14340  cat
14341fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14342  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14343_ACEOF
14344
14345# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14346# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14347# trailing colons and then remove the whole line if VPATH becomes empty
14348# (actually we leave an empty line to preserve line numbers).
14349if test "x$srcdir" = x.; then
14350  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14351h
14352s///
14353s/^/:/
14354s/[	 ]*$/:/
14355s/:\$(srcdir):/:/g
14356s/:\${srcdir}:/:/g
14357s/:@srcdir@:/:/g
14358s/^:*//
14359s/:*$//
14360x
14361s/\(=[	 ]*\).*/\1/
14362G
14363s/\n//
14364s/^[^=]*=[	 ]*$//
14365}'
14366fi
14367
14368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369fi # test -n "$CONFIG_FILES"
14370
14371# Set up the scripts for CONFIG_HEADERS section.
14372# No need to generate them if there are no CONFIG_HEADERS.
14373# This happens for instance with `./config.status Makefile'.
14374if test -n "$CONFIG_HEADERS"; then
14375cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14376BEGIN {
14377_ACEOF
14378
14379# Transform confdefs.h into an awk script `defines.awk', embedded as
14380# here-document in config.status, that substitutes the proper values into
14381# config.h.in to produce config.h.
14382
14383# Create a delimiter string that does not exist in confdefs.h, to ease
14384# handling of long lines.
14385ac_delim='%!_!# '
14386for ac_last_try in false false :; do
14387  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14388  if test -z "$ac_tt"; then
14389    break
14390  elif $ac_last_try; then
14391    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14392  else
14393    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14394  fi
14395done
14396
14397# For the awk script, D is an array of macro values keyed by name,
14398# likewise P contains macro parameters if any.  Preserve backslash
14399# newline sequences.
14400
14401ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14402sed -n '
14403s/.\{148\}/&'"$ac_delim"'/g
14404t rset
14405:rset
14406s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14407t def
14408d
14409:def
14410s/\\$//
14411t bsnl
14412s/["\\]/\\&/g
14413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14414D["\1"]=" \3"/p
14415s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14416d
14417:bsnl
14418s/["\\]/\\&/g
14419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14420D["\1"]=" \3\\\\\\n"\\/p
14421t cont
14422s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14423t cont
14424d
14425:cont
14426n
14427s/.\{148\}/&'"$ac_delim"'/g
14428t clear
14429:clear
14430s/\\$//
14431t bsnlc
14432s/["\\]/\\&/g; s/^/"/; s/$/"/p
14433d
14434:bsnlc
14435s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14436b cont
14437' <confdefs.h | sed '
14438s/'"$ac_delim"'/"\\\
14439"/g' >>$CONFIG_STATUS || ac_write_fail=1
14440
14441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14442  for (key in D) D_is_set[key] = 1
14443  FS = ""
14444}
14445/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14446  line = \$ 0
14447  split(line, arg, " ")
14448  if (arg[1] == "#") {
14449    defundef = arg[2]
14450    mac1 = arg[3]
14451  } else {
14452    defundef = substr(arg[1], 2)
14453    mac1 = arg[2]
14454  }
14455  split(mac1, mac2, "(") #)
14456  macro = mac2[1]
14457  prefix = substr(line, 1, index(line, defundef) - 1)
14458  if (D_is_set[macro]) {
14459    # Preserve the white space surrounding the "#".
14460    print prefix "define", macro P[macro] D[macro]
14461    next
14462  } else {
14463    # Replace #undef with comments.  This is necessary, for example,
14464    # in the case of _POSIX_SOURCE, which is predefined and required
14465    # on some systems where configure will not decide to define it.
14466    if (defundef == "undef") {
14467      print "/*", prefix defundef, macro, "*/"
14468      next
14469    }
14470  }
14471}
14472{ print }
14473_ACAWK
14474_ACEOF
14475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14476  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14477fi # test -n "$CONFIG_HEADERS"
14478
14479
14480eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14481shift
14482for ac_tag
14483do
14484  case $ac_tag in
14485  :[FHLC]) ac_mode=$ac_tag; continue;;
14486  esac
14487  case $ac_mode$ac_tag in
14488  :[FHL]*:*);;
14489  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14490  :[FH]-) ac_tag=-:-;;
14491  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14492  esac
14493  ac_save_IFS=$IFS
14494  IFS=:
14495  set x $ac_tag
14496  IFS=$ac_save_IFS
14497  shift
14498  ac_file=$1
14499  shift
14500
14501  case $ac_mode in
14502  :L) ac_source=$1;;
14503  :[FH])
14504    ac_file_inputs=
14505    for ac_f
14506    do
14507      case $ac_f in
14508      -) ac_f="$ac_tmp/stdin";;
14509      *) # Look for the file first in the build tree, then in the source tree
14510	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14511	 # because $ac_f cannot contain `:'.
14512	 test -f "$ac_f" ||
14513	   case $ac_f in
14514	   [\\/$]*) false;;
14515	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14516	   esac ||
14517	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14518      esac
14519      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14520      as_fn_append ac_file_inputs " '$ac_f'"
14521    done
14522
14523    # Let's still pretend it is `configure' which instantiates (i.e., don't
14524    # use $as_me), people would be surprised to read:
14525    #    /* config.h.  Generated by config.status.  */
14526    configure_input='Generated from '`
14527	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14528	`' by configure.'
14529    if test x"$ac_file" != x-; then
14530      configure_input="$ac_file.  $configure_input"
14531      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14532$as_echo "$as_me: creating $ac_file" >&6;}
14533    fi
14534    # Neutralize special characters interpreted by sed in replacement strings.
14535    case $configure_input in #(
14536    *\&* | *\|* | *\\* )
14537       ac_sed_conf_input=`$as_echo "$configure_input" |
14538       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14539    *) ac_sed_conf_input=$configure_input;;
14540    esac
14541
14542    case $ac_tag in
14543    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14544      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14545    esac
14546    ;;
14547  esac
14548
14549  ac_dir=`$as_dirname -- "$ac_file" ||
14550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551	 X"$ac_file" : 'X\(//\)[^/]' \| \
14552	 X"$ac_file" : 'X\(//\)$' \| \
14553	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14554$as_echo X"$ac_file" |
14555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14556	    s//\1/
14557	    q
14558	  }
14559	  /^X\(\/\/\)[^/].*/{
14560	    s//\1/
14561	    q
14562	  }
14563	  /^X\(\/\/\)$/{
14564	    s//\1/
14565	    q
14566	  }
14567	  /^X\(\/\).*/{
14568	    s//\1/
14569	    q
14570	  }
14571	  s/.*/./; q'`
14572  as_dir="$ac_dir"; as_fn_mkdir_p
14573  ac_builddir=.
14574
14575case "$ac_dir" in
14576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14577*)
14578  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14579  # A ".." for each directory in $ac_dir_suffix.
14580  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14581  case $ac_top_builddir_sub in
14582  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14583  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14584  esac ;;
14585esac
14586ac_abs_top_builddir=$ac_pwd
14587ac_abs_builddir=$ac_pwd$ac_dir_suffix
14588# for backward compatibility:
14589ac_top_builddir=$ac_top_build_prefix
14590
14591case $srcdir in
14592  .)  # We are building in place.
14593    ac_srcdir=.
14594    ac_top_srcdir=$ac_top_builddir_sub
14595    ac_abs_top_srcdir=$ac_pwd ;;
14596  [\\/]* | ?:[\\/]* )  # Absolute name.
14597    ac_srcdir=$srcdir$ac_dir_suffix;
14598    ac_top_srcdir=$srcdir
14599    ac_abs_top_srcdir=$srcdir ;;
14600  *) # Relative name.
14601    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14602    ac_top_srcdir=$ac_top_build_prefix$srcdir
14603    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14604esac
14605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14606
14607
14608  case $ac_mode in
14609  :F)
14610  #
14611  # CONFIG_FILE
14612  #
14613
14614  case $INSTALL in
14615  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14616  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14617  esac
14618  ac_MKDIR_P=$MKDIR_P
14619  case $MKDIR_P in
14620  [\\/$]* | ?:[\\/]* ) ;;
14621  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14622  esac
14623_ACEOF
14624
14625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14626# If the template does not know about datarootdir, expand it.
14627# FIXME: This hack should be removed a few years after 2.60.
14628ac_datarootdir_hack=; ac_datarootdir_seen=
14629ac_sed_dataroot='
14630/datarootdir/ {
14631  p
14632  q
14633}
14634/@datadir@/p
14635/@docdir@/p
14636/@infodir@/p
14637/@localedir@/p
14638/@mandir@/p'
14639case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14640*datarootdir*) ac_datarootdir_seen=yes;;
14641*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14642  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14643$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14644_ACEOF
14645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14646  ac_datarootdir_hack='
14647  s&@datadir@&$datadir&g
14648  s&@docdir@&$docdir&g
14649  s&@infodir@&$infodir&g
14650  s&@localedir@&$localedir&g
14651  s&@mandir@&$mandir&g
14652  s&\\\${datarootdir}&$datarootdir&g' ;;
14653esac
14654_ACEOF
14655
14656# Neutralize VPATH when `$srcdir' = `.'.
14657# Shell code in configure.ac might set extrasub.
14658# FIXME: do we really want to maintain this feature?
14659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660ac_sed_extra="$ac_vpsub
14661$extrasub
14662_ACEOF
14663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14664:t
14665/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14666s|@configure_input@|$ac_sed_conf_input|;t t
14667s&@top_builddir@&$ac_top_builddir_sub&;t t
14668s&@top_build_prefix@&$ac_top_build_prefix&;t t
14669s&@srcdir@&$ac_srcdir&;t t
14670s&@abs_srcdir@&$ac_abs_srcdir&;t t
14671s&@top_srcdir@&$ac_top_srcdir&;t t
14672s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14673s&@builddir@&$ac_builddir&;t t
14674s&@abs_builddir@&$ac_abs_builddir&;t t
14675s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14676s&@INSTALL@&$ac_INSTALL&;t t
14677s&@MKDIR_P@&$ac_MKDIR_P&;t t
14678$ac_datarootdir_hack
14679"
14680eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14681  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14682
14683test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14684  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14685  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14686      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14687  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14688which seems to be undefined.  Please make sure it is defined" >&5
14689$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14690which seems to be undefined.  Please make sure it is defined" >&2;}
14691
14692  rm -f "$ac_tmp/stdin"
14693  case $ac_file in
14694  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14695  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14696  esac \
14697  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14698 ;;
14699  :H)
14700  #
14701  # CONFIG_HEADER
14702  #
14703  if test x"$ac_file" != x-; then
14704    {
14705      $as_echo "/* $configure_input  */" \
14706      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14707    } >"$ac_tmp/config.h" \
14708      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14709    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14710      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14711$as_echo "$as_me: $ac_file is unchanged" >&6;}
14712    else
14713      rm -f "$ac_file"
14714      mv "$ac_tmp/config.h" "$ac_file" \
14715	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14716    fi
14717  else
14718    $as_echo "/* $configure_input  */" \
14719      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14720      || as_fn_error $? "could not create -" "$LINENO" 5
14721  fi
14722# Compute "$ac_file"'s index in $config_headers.
14723_am_arg="$ac_file"
14724_am_stamp_count=1
14725for _am_header in $config_headers :; do
14726  case $_am_header in
14727    $_am_arg | $_am_arg:* )
14728      break ;;
14729    * )
14730      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14731  esac
14732done
14733echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14734$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14735	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14736	 X"$_am_arg" : 'X\(//\)$' \| \
14737	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14738$as_echo X"$_am_arg" |
14739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14740	    s//\1/
14741	    q
14742	  }
14743	  /^X\(\/\/\)[^/].*/{
14744	    s//\1/
14745	    q
14746	  }
14747	  /^X\(\/\/\)$/{
14748	    s//\1/
14749	    q
14750	  }
14751	  /^X\(\/\).*/{
14752	    s//\1/
14753	    q
14754	  }
14755	  s/.*/./; q'`/stamp-h$_am_stamp_count
14756 ;;
14757
14758  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14759$as_echo "$as_me: executing $ac_file commands" >&6;}
14760 ;;
14761  esac
14762
14763
14764  case $ac_file$ac_mode in
14765    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14766  # Older Autoconf quotes --file arguments for eval, but not when files
14767  # are listed without --file.  Let's play safe and only enable the eval
14768  # if we detect the quoting.
14769  # TODO: see whether this extra hack can be removed once we start
14770  # requiring Autoconf 2.70 or later.
14771  case $CONFIG_FILES in #(
14772  *\'*) :
14773    eval set x "$CONFIG_FILES" ;; #(
14774  *) :
14775    set x $CONFIG_FILES ;; #(
14776  *) :
14777     ;;
14778esac
14779  shift
14780  # Used to flag and report bootstrapping failures.
14781  am_rc=0
14782  for am_mf
14783  do
14784    # Strip MF so we end up with the name of the file.
14785    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14786    # Check whether this is an Automake generated Makefile which includes
14787    # dependency-tracking related rules and includes.
14788    # Grep'ing the whole file directly is not great: AIX grep has a line
14789    # limit of 2048, but all sed's we know have understand at least 4000.
14790    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14791      || continue
14792    am_dirpart=`$as_dirname -- "$am_mf" ||
14793$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14794	 X"$am_mf" : 'X\(//\)[^/]' \| \
14795	 X"$am_mf" : 'X\(//\)$' \| \
14796	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14797$as_echo X"$am_mf" |
14798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14799	    s//\1/
14800	    q
14801	  }
14802	  /^X\(\/\/\)[^/].*/{
14803	    s//\1/
14804	    q
14805	  }
14806	  /^X\(\/\/\)$/{
14807	    s//\1/
14808	    q
14809	  }
14810	  /^X\(\/\).*/{
14811	    s//\1/
14812	    q
14813	  }
14814	  s/.*/./; q'`
14815    am_filepart=`$as_basename -- "$am_mf" ||
14816$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14817	 X"$am_mf" : 'X\(//\)$' \| \
14818	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14819$as_echo X/"$am_mf" |
14820    sed '/^.*\/\([^/][^/]*\)\/*$/{
14821	    s//\1/
14822	    q
14823	  }
14824	  /^X\/\(\/\/\)$/{
14825	    s//\1/
14826	    q
14827	  }
14828	  /^X\/\(\/\).*/{
14829	    s//\1/
14830	    q
14831	  }
14832	  s/.*/./; q'`
14833    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14834      && sed -e '/# am--include-marker/d' "$am_filepart" \
14835        | $MAKE -f - am--depfiles" >&5
14836   (cd "$am_dirpart" \
14837      && sed -e '/# am--include-marker/d' "$am_filepart" \
14838        | $MAKE -f - am--depfiles) >&5 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } || am_rc=$?
14842  done
14843  if test $am_rc -ne 0; then
14844    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846as_fn_error $? "Something went wrong bootstrapping makefile fragments
14847    for automatic dependency tracking.  Try re-running configure with the
14848    '--disable-dependency-tracking' option to at least be able to build
14849    the package (albeit without support for automatic dependency tracking).
14850See \`config.log' for more details" "$LINENO" 5; }
14851  fi
14852  { am_dirpart=; unset am_dirpart;}
14853  { am_filepart=; unset am_filepart;}
14854  { am_mf=; unset am_mf;}
14855  { am_rc=; unset am_rc;}
14856  rm -f conftest-deps.mk
14857}
14858 ;;
14859    "libtool":C)
14860
14861    # See if we are running on zsh, and set the options that allow our
14862    # commands through without removal of \ escapes.
14863    if test -n "${ZSH_VERSION+set}"; then
14864      setopt NO_GLOB_SUBST
14865    fi
14866
14867    cfgfile=${ofile}T
14868    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14869    $RM "$cfgfile"
14870
14871    cat <<_LT_EOF >> "$cfgfile"
14872#! $SHELL
14873# Generated automatically by $as_me ($PACKAGE) $VERSION
14874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14875# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14876
14877# Provide generalized library-building support services.
14878# Written by Gordon Matzigkeit, 1996
14879
14880# Copyright (C) 2014 Free Software Foundation, Inc.
14881# This is free software; see the source for copying conditions.  There is NO
14882# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14883
14884# GNU Libtool is free software; you can redistribute it and/or modify
14885# it under the terms of the GNU General Public License as published by
14886# the Free Software Foundation; either version 2 of of the License, or
14887# (at your option) any later version.
14888#
14889# As a special exception to the GNU General Public License, if you
14890# distribute this file as part of a program or library that is built
14891# using GNU Libtool, you may include this file under the  same
14892# distribution terms that you use for the rest of that program.
14893#
14894# GNU Libtool is distributed in the hope that it will be useful, but
14895# WITHOUT ANY WARRANTY; without even the implied warranty of
14896# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14897# GNU General Public License for more details.
14898#
14899# You should have received a copy of the GNU General Public License
14900# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14901
14902
14903# The names of the tagged configurations supported by this script.
14904available_tags=''
14905
14906# Configured defaults for sys_lib_dlsearch_path munging.
14907: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14908
14909# ### BEGIN LIBTOOL CONFIG
14910
14911# Which release of libtool.m4 was used?
14912macro_version=$macro_version
14913macro_revision=$macro_revision
14914
14915# Whether or not to build shared libraries.
14916build_libtool_libs=$enable_shared
14917
14918# Whether or not to build static libraries.
14919build_old_libs=$enable_static
14920
14921# What type of objects to build.
14922pic_mode=$pic_mode
14923
14924# Whether or not to optimize for fast installation.
14925fast_install=$enable_fast_install
14926
14927# Shared archive member basename,for filename based shared library versioning on AIX.
14928shared_archive_member_spec=$shared_archive_member_spec
14929
14930# Shell to use when invoking shell scripts.
14931SHELL=$lt_SHELL
14932
14933# An echo program that protects backslashes.
14934ECHO=$lt_ECHO
14935
14936# The PATH separator for the build system.
14937PATH_SEPARATOR=$lt_PATH_SEPARATOR
14938
14939# The host system.
14940host_alias=$host_alias
14941host=$host
14942host_os=$host_os
14943
14944# The build system.
14945build_alias=$build_alias
14946build=$build
14947build_os=$build_os
14948
14949# A sed program that does not truncate output.
14950SED=$lt_SED
14951
14952# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14953Xsed="\$SED -e 1s/^X//"
14954
14955# A grep program that handles long lines.
14956GREP=$lt_GREP
14957
14958# An ERE matcher.
14959EGREP=$lt_EGREP
14960
14961# A literal string matcher.
14962FGREP=$lt_FGREP
14963
14964# A BSD- or MS-compatible name lister.
14965NM=$lt_NM
14966
14967# Whether we need soft or hard links.
14968LN_S=$lt_LN_S
14969
14970# What is the maximum length of a command?
14971max_cmd_len=$max_cmd_len
14972
14973# Object file suffix (normally "o").
14974objext=$ac_objext
14975
14976# Executable file suffix (normally "").
14977exeext=$exeext
14978
14979# whether the shell understands "unset".
14980lt_unset=$lt_unset
14981
14982# turn spaces into newlines.
14983SP2NL=$lt_lt_SP2NL
14984
14985# turn newlines into spaces.
14986NL2SP=$lt_lt_NL2SP
14987
14988# convert \$build file names to \$host format.
14989to_host_file_cmd=$lt_cv_to_host_file_cmd
14990
14991# convert \$build files to toolchain format.
14992to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14993
14994# An object symbol dumper.
14995OBJDUMP=$lt_OBJDUMP
14996
14997# Method to check whether dependent libraries are shared objects.
14998deplibs_check_method=$lt_deplibs_check_method
14999
15000# Command to use when deplibs_check_method = "file_magic".
15001file_magic_cmd=$lt_file_magic_cmd
15002
15003# How to find potential files when deplibs_check_method = "file_magic".
15004file_magic_glob=$lt_file_magic_glob
15005
15006# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15007want_nocaseglob=$lt_want_nocaseglob
15008
15009# DLL creation program.
15010DLLTOOL=$lt_DLLTOOL
15011
15012# Command to associate shared and link libraries.
15013sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15014
15015# The archiver.
15016AR=$lt_AR
15017
15018# Flags to create an archive.
15019AR_FLAGS=$lt_AR_FLAGS
15020
15021# How to feed a file listing to the archiver.
15022archiver_list_spec=$lt_archiver_list_spec
15023
15024# A symbol stripping program.
15025STRIP=$lt_STRIP
15026
15027# Commands used to install an old-style archive.
15028RANLIB=$lt_RANLIB
15029old_postinstall_cmds=$lt_old_postinstall_cmds
15030old_postuninstall_cmds=$lt_old_postuninstall_cmds
15031
15032# Whether to use a lock for old archive extraction.
15033lock_old_archive_extraction=$lock_old_archive_extraction
15034
15035# A C compiler.
15036LTCC=$lt_CC
15037
15038# LTCC compiler flags.
15039LTCFLAGS=$lt_CFLAGS
15040
15041# Take the output of nm and produce a listing of raw symbols and C names.
15042global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15043
15044# Transform the output of nm in a proper C declaration.
15045global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15046
15047# Transform the output of nm into a list of symbols to manually relocate.
15048global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15049
15050# Transform the output of nm in a C name address pair.
15051global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15052
15053# Transform the output of nm in a C name address pair when lib prefix is needed.
15054global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15055
15056# The name lister interface.
15057nm_interface=$lt_lt_cv_nm_interface
15058
15059# Specify filename containing input files for \$NM.
15060nm_file_list_spec=$lt_nm_file_list_spec
15061
15062# The root where to search for dependent libraries,and where our libraries should be installed.
15063lt_sysroot=$lt_sysroot
15064
15065# Command to truncate a binary pipe.
15066lt_truncate_bin=$lt_lt_cv_truncate_bin
15067
15068# The name of the directory that contains temporary libtool files.
15069objdir=$objdir
15070
15071# Used to examine libraries when file_magic_cmd begins with "file".
15072MAGIC_CMD=$MAGIC_CMD
15073
15074# Must we lock files when doing compilation?
15075need_locks=$lt_need_locks
15076
15077# Manifest tool.
15078MANIFEST_TOOL=$lt_MANIFEST_TOOL
15079
15080# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15081DSYMUTIL=$lt_DSYMUTIL
15082
15083# Tool to change global to local symbols on Mac OS X.
15084NMEDIT=$lt_NMEDIT
15085
15086# Tool to manipulate fat objects and archives on Mac OS X.
15087LIPO=$lt_LIPO
15088
15089# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15090OTOOL=$lt_OTOOL
15091
15092# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15093OTOOL64=$lt_OTOOL64
15094
15095# Old archive suffix (normally "a").
15096libext=$libext
15097
15098# Shared library suffix (normally ".so").
15099shrext_cmds=$lt_shrext_cmds
15100
15101# The commands to extract the exported symbol list from a shared archive.
15102extract_expsyms_cmds=$lt_extract_expsyms_cmds
15103
15104# Variables whose values should be saved in libtool wrapper scripts and
15105# restored at link time.
15106variables_saved_for_relink=$lt_variables_saved_for_relink
15107
15108# Do we need the "lib" prefix for modules?
15109need_lib_prefix=$need_lib_prefix
15110
15111# Do we need a version for libraries?
15112need_version=$need_version
15113
15114# Library versioning type.
15115version_type=$version_type
15116
15117# Shared library runtime path variable.
15118runpath_var=$runpath_var
15119
15120# Shared library path variable.
15121shlibpath_var=$shlibpath_var
15122
15123# Is shlibpath searched before the hard-coded library search path?
15124shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15125
15126# Format of library name prefix.
15127libname_spec=$lt_libname_spec
15128
15129# List of archive names.  First name is the real one, the rest are links.
15130# The last name is the one that the linker finds with -lNAME
15131library_names_spec=$lt_library_names_spec
15132
15133# The coded name of the library, if different from the real name.
15134soname_spec=$lt_soname_spec
15135
15136# Permission mode override for installation of shared libraries.
15137install_override_mode=$lt_install_override_mode
15138
15139# Command to use after installation of a shared archive.
15140postinstall_cmds=$lt_postinstall_cmds
15141
15142# Command to use after uninstallation of a shared archive.
15143postuninstall_cmds=$lt_postuninstall_cmds
15144
15145# Commands used to finish a libtool library installation in a directory.
15146finish_cmds=$lt_finish_cmds
15147
15148# As "finish_cmds", except a single script fragment to be evaled but
15149# not shown.
15150finish_eval=$lt_finish_eval
15151
15152# Whether we should hardcode library paths into libraries.
15153hardcode_into_libs=$hardcode_into_libs
15154
15155# Compile-time system search path for libraries.
15156sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15157
15158# Detected run-time system search path for libraries.
15159sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15160
15161# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15162configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15163
15164# Whether dlopen is supported.
15165dlopen_support=$enable_dlopen
15166
15167# Whether dlopen of programs is supported.
15168dlopen_self=$enable_dlopen_self
15169
15170# Whether dlopen of statically linked programs is supported.
15171dlopen_self_static=$enable_dlopen_self_static
15172
15173# Commands to strip libraries.
15174old_striplib=$lt_old_striplib
15175striplib=$lt_striplib
15176
15177
15178# The linker used to build libraries.
15179LD=$lt_LD
15180
15181# How to create reloadable object files.
15182reload_flag=$lt_reload_flag
15183reload_cmds=$lt_reload_cmds
15184
15185# Commands used to build an old-style archive.
15186old_archive_cmds=$lt_old_archive_cmds
15187
15188# A language specific compiler.
15189CC=$lt_compiler
15190
15191# Is the compiler the GNU compiler?
15192with_gcc=$GCC
15193
15194# Compiler flag to turn off builtin functions.
15195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15196
15197# Additional compiler flags for building library objects.
15198pic_flag=$lt_lt_prog_compiler_pic
15199
15200# How to pass a linker flag through the compiler.
15201wl=$lt_lt_prog_compiler_wl
15202
15203# Compiler flag to prevent dynamic linking.
15204link_static_flag=$lt_lt_prog_compiler_static
15205
15206# Does compiler simultaneously support -c and -o options?
15207compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15208
15209# Whether or not to add -lc for building shared libraries.
15210build_libtool_need_lc=$archive_cmds_need_lc
15211
15212# Whether or not to disallow shared libs when runtime libs are static.
15213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15214
15215# Compiler flag to allow reflexive dlopens.
15216export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15217
15218# Compiler flag to generate shared objects directly from archives.
15219whole_archive_flag_spec=$lt_whole_archive_flag_spec
15220
15221# Whether the compiler copes with passing no objects directly.
15222compiler_needs_object=$lt_compiler_needs_object
15223
15224# Create an old-style archive from a shared archive.
15225old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15226
15227# Create a temporary old-style archive to link instead of a shared archive.
15228old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15229
15230# Commands used to build a shared archive.
15231archive_cmds=$lt_archive_cmds
15232archive_expsym_cmds=$lt_archive_expsym_cmds
15233
15234# Commands used to build a loadable module if different from building
15235# a shared archive.
15236module_cmds=$lt_module_cmds
15237module_expsym_cmds=$lt_module_expsym_cmds
15238
15239# Whether we are building with GNU ld or not.
15240with_gnu_ld=$lt_with_gnu_ld
15241
15242# Flag that allows shared libraries with undefined symbols to be built.
15243allow_undefined_flag=$lt_allow_undefined_flag
15244
15245# Flag that enforces no undefined symbols.
15246no_undefined_flag=$lt_no_undefined_flag
15247
15248# Flag to hardcode \$libdir into a binary during linking.
15249# This must work even if \$libdir does not exist
15250hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15251
15252# Whether we need a single "-rpath" flag with a separated argument.
15253hardcode_libdir_separator=$lt_hardcode_libdir_separator
15254
15255# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15256# DIR into the resulting binary.
15257hardcode_direct=$hardcode_direct
15258
15259# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15260# DIR into the resulting binary and the resulting library dependency is
15261# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15262# library is relocated.
15263hardcode_direct_absolute=$hardcode_direct_absolute
15264
15265# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15266# into the resulting binary.
15267hardcode_minus_L=$hardcode_minus_L
15268
15269# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15270# into the resulting binary.
15271hardcode_shlibpath_var=$hardcode_shlibpath_var
15272
15273# Set to "yes" if building a shared library automatically hardcodes DIR
15274# into the library and all subsequent libraries and executables linked
15275# against it.
15276hardcode_automatic=$hardcode_automatic
15277
15278# Set to yes if linker adds runtime paths of dependent libraries
15279# to runtime path list.
15280inherit_rpath=$inherit_rpath
15281
15282# Whether libtool must link a program against all its dependency libraries.
15283link_all_deplibs=$link_all_deplibs
15284
15285# Set to "yes" if exported symbols are required.
15286always_export_symbols=$always_export_symbols
15287
15288# The commands to list exported symbols.
15289export_symbols_cmds=$lt_export_symbols_cmds
15290
15291# Symbols that should not be listed in the preloaded symbols.
15292exclude_expsyms=$lt_exclude_expsyms
15293
15294# Symbols that must always be exported.
15295include_expsyms=$lt_include_expsyms
15296
15297# Commands necessary for linking programs (against libraries) with templates.
15298prelink_cmds=$lt_prelink_cmds
15299
15300# Commands necessary for finishing linking programs.
15301postlink_cmds=$lt_postlink_cmds
15302
15303# Specify filename containing input files.
15304file_list_spec=$lt_file_list_spec
15305
15306# How to hardcode a shared library path into an executable.
15307hardcode_action=$hardcode_action
15308
15309# ### END LIBTOOL CONFIG
15310
15311_LT_EOF
15312
15313    cat <<'_LT_EOF' >> "$cfgfile"
15314
15315# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15316
15317# func_munge_path_list VARIABLE PATH
15318# -----------------------------------
15319# VARIABLE is name of variable containing _space_ separated list of
15320# directories to be munged by the contents of PATH, which is string
15321# having a format:
15322# "DIR[:DIR]:"
15323#       string "DIR[ DIR]" will be prepended to VARIABLE
15324# ":DIR[:DIR]"
15325#       string "DIR[ DIR]" will be appended to VARIABLE
15326# "DIRP[:DIRP]::[DIRA:]DIRA"
15327#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15328#       "DIRA[ DIRA]" will be appended to VARIABLE
15329# "DIR[:DIR]"
15330#       VARIABLE will be replaced by "DIR[ DIR]"
15331func_munge_path_list ()
15332{
15333    case x$2 in
15334    x)
15335        ;;
15336    *:)
15337        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15338        ;;
15339    x:*)
15340        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15341        ;;
15342    *::*)
15343        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15344        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15345        ;;
15346    *)
15347        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15348        ;;
15349    esac
15350}
15351
15352
15353# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15354func_cc_basename ()
15355{
15356    for cc_temp in $*""; do
15357      case $cc_temp in
15358        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15359        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15360        \-*) ;;
15361        *) break;;
15362      esac
15363    done
15364    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15365}
15366
15367
15368# ### END FUNCTIONS SHARED WITH CONFIGURE
15369
15370_LT_EOF
15371
15372  case $host_os in
15373  aix3*)
15374    cat <<\_LT_EOF >> "$cfgfile"
15375# AIX sometimes has problems with the GCC collect2 program.  For some
15376# reason, if we set the COLLECT_NAMES environment variable, the problems
15377# vanish in a puff of smoke.
15378if test set != "${COLLECT_NAMES+set}"; then
15379  COLLECT_NAMES=
15380  export COLLECT_NAMES
15381fi
15382_LT_EOF
15383    ;;
15384  esac
15385
15386
15387ltmain=$ac_aux_dir/ltmain.sh
15388
15389
15390  # We use sed instead of cat because bash on DJGPP gets confused if
15391  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15392  # text mode, it properly converts lines to CR/LF.  This bash problem
15393  # is reportedly fixed, but why not run on old versions too?
15394  sed '$q' "$ltmain" >> "$cfgfile" \
15395     || (rm -f "$cfgfile"; exit 1)
15396
15397   mv -f "$cfgfile" "$ofile" ||
15398    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15399  chmod +x "$ofile"
15400
15401 ;;
15402
15403  esac
15404done # for ac_tag
15405
15406
15407as_fn_exit 0
15408_ACEOF
15409ac_clean_files=$ac_clean_files_save
15410
15411test $ac_write_fail = 0 ||
15412  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15413
15414
15415# configure is writing to config.log, and then calls config.status.
15416# config.status does its own redirection, appending to config.log.
15417# Unfortunately, on DOS this fails, as config.log is still kept open
15418# by configure, so config.status won't be able to write to it; its
15419# output is simply discarded.  So we exec the FD to /dev/null,
15420# effectively closing config.log, so it can be properly (re)opened and
15421# appended to by config.status.  When coming back to configure, we
15422# need to make the FD available again.
15423if test "$no_create" != yes; then
15424  ac_cs_success=:
15425  ac_config_status_args=
15426  test "$silent" = yes &&
15427    ac_config_status_args="$ac_config_status_args --quiet"
15428  exec 5>/dev/null
15429  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15430  exec 5>>config.log
15431  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15432  # would make configure fail if this is the last instruction.
15433  $ac_cs_success || as_fn_exit 1
15434fi
15435if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15437$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15438fi
15439
15440