1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libmd5 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='libmd5'
592PACKAGE_TARNAME='libmd5'
593PACKAGE_VERSION='1.21'
594PACKAGE_STRING='libmd5 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
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685LN_S
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
734runstatedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL
754am__quote'
755ac_subst_files=''
756ac_user_opts='
757enable_option_checking
758enable_silent_rules
759enable_dependency_tracking
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764with_aix_soname
765with_gnu_ld
766with_sysroot
767enable_libtool_lock
768with_int32
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'
819runstatedir='${localstatedir}/run'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *=)   ac_optarg= ;;
846  *)    ac_optarg=yes ;;
847  esac
848
849  # Accept the important Cygnus configure options, so we can diagnose typos.
850
851  case $ac_dashdash$ac_option in
852  --)
853    ac_dashdash=yes ;;
854
855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856    ac_prev=bindir ;;
857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858    bindir=$ac_optarg ;;
859
860  -build | --build | --buil | --bui | --bu)
861    ac_prev=build_alias ;;
862  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863    build_alias=$ac_optarg ;;
864
865  -cache-file | --cache-file | --cache-fil | --cache-fi \
866  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867    ac_prev=cache_file ;;
868  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870    cache_file=$ac_optarg ;;
871
872  --config-cache | -C)
873    cache_file=config.cache ;;
874
875  -datadir | --datadir | --datadi | --datad)
876    ac_prev=datadir ;;
877  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878    datadir=$ac_optarg ;;
879
880  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881  | --dataroo | --dataro | --datar)
882    ac_prev=datarootdir ;;
883  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885    datarootdir=$ac_optarg ;;
886
887  -disable-* | --disable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=no ;;
902
903  -docdir | --docdir | --docdi | --doc | --do)
904    ac_prev=docdir ;;
905  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906    docdir=$ac_optarg ;;
907
908  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909    ac_prev=dvidir ;;
910  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911    dvidir=$ac_optarg ;;
912
913  -enable-* | --enable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=\$ac_optarg ;;
928
929  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931  | --exec | --exe | --ex)
932    ac_prev=exec_prefix ;;
933  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935  | --exec=* | --exe=* | --ex=*)
936    exec_prefix=$ac_optarg ;;
937
938  -gas | --gas | --ga | --g)
939    # Obsolete; use --with-gas.
940    with_gas=yes ;;
941
942  -help | --help | --hel | --he | -h)
943    ac_init_help=long ;;
944  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945    ac_init_help=recursive ;;
946  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947    ac_init_help=short ;;
948
949  -host | --host | --hos | --ho)
950    ac_prev=host_alias ;;
951  -host=* | --host=* | --hos=* | --ho=*)
952    host_alias=$ac_optarg ;;
953
954  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955    ac_prev=htmldir ;;
956  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957  | --ht=*)
958    htmldir=$ac_optarg ;;
959
960  -includedir | --includedir | --includedi | --included | --include \
961  | --includ | --inclu | --incl | --inc)
962    ac_prev=includedir ;;
963  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964  | --includ=* | --inclu=* | --incl=* | --inc=*)
965    includedir=$ac_optarg ;;
966
967  -infodir | --infodir | --infodi | --infod | --info | --inf)
968    ac_prev=infodir ;;
969  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970    infodir=$ac_optarg ;;
971
972  -libdir | --libdir | --libdi | --libd)
973    ac_prev=libdir ;;
974  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975    libdir=$ac_optarg ;;
976
977  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978  | --libexe | --libex | --libe)
979    ac_prev=libexecdir ;;
980  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981  | --libexe=* | --libex=* | --libe=*)
982    libexecdir=$ac_optarg ;;
983
984  -localedir | --localedir | --localedi | --localed | --locale)
985    ac_prev=localedir ;;
986  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987    localedir=$ac_optarg ;;
988
989  -localstatedir | --localstatedir | --localstatedi | --localstated \
990  | --localstate | --localstat | --localsta | --localst | --locals)
991    ac_prev=localstatedir ;;
992  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994    localstatedir=$ac_optarg ;;
995
996  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997    ac_prev=mandir ;;
998  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999    mandir=$ac_optarg ;;
1000
1001  -nfp | --nfp | --nf)
1002    # Obsolete; use --without-fp.
1003    with_fp=no ;;
1004
1005  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006  | --no-cr | --no-c | -n)
1007    no_create=yes ;;
1008
1009  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011    no_recursion=yes ;;
1012
1013  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015  | --oldin | --oldi | --old | --ol | --o)
1016    ac_prev=oldincludedir ;;
1017  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020    oldincludedir=$ac_optarg ;;
1021
1022  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023    ac_prev=prefix ;;
1024  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025    prefix=$ac_optarg ;;
1026
1027  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028  | --program-pre | --program-pr | --program-p)
1029    ac_prev=program_prefix ;;
1030  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032    program_prefix=$ac_optarg ;;
1033
1034  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035  | --program-suf | --program-su | --program-s)
1036    ac_prev=program_suffix ;;
1037  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039    program_suffix=$ac_optarg ;;
1040
1041  -program-transform-name | --program-transform-name \
1042  | --program-transform-nam | --program-transform-na \
1043  | --program-transform-n | --program-transform- \
1044  | --program-transform | --program-transfor \
1045  | --program-transfo | --program-transf \
1046  | --program-trans | --program-tran \
1047  | --progr-tra | --program-tr | --program-t)
1048    ac_prev=program_transform_name ;;
1049  -program-transform-name=* | --program-transform-name=* \
1050  | --program-transform-nam=* | --program-transform-na=* \
1051  | --program-transform-n=* | --program-transform-=* \
1052  | --program-transform=* | --program-transfor=* \
1053  | --program-transfo=* | --program-transf=* \
1054  | --program-trans=* | --program-tran=* \
1055  | --progr-tra=* | --program-tr=* | --program-t=*)
1056    program_transform_name=$ac_optarg ;;
1057
1058  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059    ac_prev=pdfdir ;;
1060  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061    pdfdir=$ac_optarg ;;
1062
1063  -psdir | --psdir | --psdi | --psd | --ps)
1064    ac_prev=psdir ;;
1065  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066    psdir=$ac_optarg ;;
1067
1068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069  | -silent | --silent | --silen | --sile | --sil)
1070    silent=yes ;;
1071
1072  -runstatedir | --runstatedir | --runstatedi | --runstated \
1073  | --runstate | --runstat | --runsta | --runst | --runs \
1074  | --run | --ru | --r)
1075    ac_prev=runstatedir ;;
1076  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1077  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1078  | --run=* | --ru=* | --r=*)
1079    runstatedir=$ac_optarg ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir runstatedir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures libmd5 1.21 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1372  --libdir=DIR            object code libraries [EPREFIX/lib]
1373  --includedir=DIR        C header files [PREFIX/include]
1374  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377  --infodir=DIR           info documentation [DATAROOTDIR/info]
1378  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379  --mandir=DIR            man documentation [DATAROOTDIR/man]
1380  --docdir=DIR            documentation root [DATAROOTDIR/doc/libmd5]
1381  --htmldir=DIR           html documentation [DOCDIR]
1382  --dvidir=DIR            dvi documentation [DOCDIR]
1383  --pdfdir=DIR            pdf documentation [DOCDIR]
1384  --psdir=DIR             ps documentation [DOCDIR]
1385_ACEOF
1386
1387  cat <<\_ACEOF
1388
1389Program names:
1390  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394System types:
1395  --build=BUILD     configure for building on BUILD [guessed]
1396  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of libmd5 1.21:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --enable-silent-rules   less verbose build output (undo: "make V=1")
1411  --disable-silent-rules  verbose build output (undo: "make V=0")
1412  --enable-dependency-tracking
1413                          do not reject slow dependency extractors
1414  --disable-dependency-tracking
1415                          speeds up one-time build
1416  --enable-shared[=PKGS]  build shared libraries [default=yes]
1417  --enable-static[=PKGS]  build static libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --disable-largefile     omit support for large files
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-aix-soname=aix|svr4|both
1429                          shared library versioning (aka "SONAME") variant to
1430                          provide on AIX, [default=aix].
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1433                          compiler's sysroot if not specified).
1434  --with-int32='type'     use 'type' for an unsigned 32 bit integer type
1435                          ( default is 'unsigned')
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  LT_SYS_LIBRARY_PATH
1446              User-defined run-time library search path.
1447  CPP         C preprocessor
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to <courier-users@lists.sourceforge.net>.
1453_ACEOF
1454ac_status=$?
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458  # If there are subdirs, report their specific --help.
1459  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460    test -d "$ac_dir" ||
1461      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462      continue
1463    ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469  # A ".." for each directory in $ac_dir_suffix.
1470  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471  case $ac_top_builddir_sub in
1472  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474  esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482  .)  # We are building in place.
1483    ac_srcdir=.
1484    ac_top_srcdir=$ac_top_builddir_sub
1485    ac_abs_top_srcdir=$ac_pwd ;;
1486  [\\/]* | ?:[\\/]* )  # Absolute name.
1487    ac_srcdir=$srcdir$ac_dir_suffix;
1488    ac_top_srcdir=$srcdir
1489    ac_abs_top_srcdir=$srcdir ;;
1490  *) # Relative name.
1491    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492    ac_top_srcdir=$ac_top_build_prefix$srcdir
1493    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497    cd "$ac_dir" || { ac_status=$?; continue; }
1498    # Check for guested configure.
1499    if test -f "$ac_srcdir/configure.gnu"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502    elif test -f "$ac_srcdir/configure"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure" --help=recursive
1505    else
1506      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507    fi || ac_status=$?
1508    cd "$ac_pwd" || { ac_status=$?; break; }
1509  done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514  cat <<\_ACEOF
1515libmd5 configure 1.21
1516generated by GNU Autoconf 2.69
1517
1518Copyright (C) 2012 Free Software Foundation, Inc.
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
1522  exit
1523fi
1524
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
1528
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  rm -f conftest.$ac_objext
1536  if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_compile") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } && {
1552	 test -z "$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       } && test -s conftest.$ac_objext; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560	ac_retval=1
1561fi
1562  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563  as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_link LINENO
1568# -----------------------
1569# Try to link conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_link ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext conftest$ac_exeext
1574  if { { ac_try="$ac_link"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_link") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest$ac_exeext && {
1593	 test "$cross_compiling" = yes ||
1594	 test -x conftest$ac_exeext
1595       }; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605  # interfere with the next link command; also delete a directory that is
1606  # left behind by Apple's compiler.  We do this before executing the actions.
1607  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_link
1612
1613# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614# -------------------------------------------------------
1615# Tests whether HEADER exists and can be compiled using the include files in
1616# INCLUDES, setting the cache variable VAR accordingly.
1617ac_fn_c_check_header_compile ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621$as_echo_n "checking for $2... " >&6; }
1622if eval \${$3+:} false; then :
1623  $as_echo_n "(cached) " >&6
1624else
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628#include <$2>
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631  eval "$3=yes"
1632else
1633  eval "$3=no"
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636fi
1637eval ac_res=\$$3
1638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639$as_echo "$ac_res" >&6; }
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642} # ac_fn_c_check_header_compile
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } > conftest.i && {
1666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674    ac_retval=1
1675fi
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_try_run LINENO
1682# ----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684# that executables *can* be run.
1685ac_fn_c_try_run ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>&5
1696  ac_status=$?
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699  { { case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_try") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; }; }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: program exited with status $ac_status" >&5
1712       $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715       ac_retval=$ac_status
1716fi
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_run
1722
1723# ac_fn_c_check_func LINENO FUNC VAR
1724# ----------------------------------
1725# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ac_fn_c_check_func ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732  $as_echo_n "(cached) " >&6
1733else
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741    which can conflict with char $2 (); below.
1742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1743    <limits.h> exists even on freestanding compilers.  */
1744
1745#ifdef __STDC__
1746# include <limits.h>
1747#else
1748# include <assert.h>
1749#endif
1750
1751#undef $2
1752
1753/* Override any GCC internal prototype to avoid an error.
1754   Use char because int might match the return type of a GCC
1755   builtin and then its argument prototype would still apply.  */
1756#ifdef __cplusplus
1757extern "C"
1758#endif
1759char $2 ();
1760/* The GNU C library defines this for functions which it implements
1761    to always fail with ENOSYS.  Some functions are actually named
1762    something starting with __ and the normal name is an alias.  */
1763#if defined __stub_$2 || defined __stub___$2
1764choke me
1765#endif
1766
1767int
1768main ()
1769{
1770return $2 ();
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_link "$LINENO"; then :
1776  eval "$3=yes"
1777else
1778  eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext \
1781    conftest$ac_exeext conftest.$ac_ext
1782fi
1783eval ac_res=\$$3
1784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788} # ac_fn_c_check_func
1789
1790# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793# the include files in INCLUDES and setting the cache variable VAR
1794# accordingly.
1795ac_fn_c_check_header_mongrel ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  if eval \${$3+:} false; then :
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807else
1808  # Is the header compilable?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810$as_echo_n "checking $2 usability... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$4
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817  ac_header_compiler=yes
1818else
1819  ac_header_compiler=no
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823$as_echo "$ac_header_compiler" >&6; }
1824
1825# Is the header present?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827$as_echo_n "checking $2 presence... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_cpp "$LINENO"; then :
1833  ac_header_preproc=yes
1834else
1835  ac_header_preproc=no
1836fi
1837rm -f conftest.err conftest.i conftest.$ac_ext
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839$as_echo "$ac_header_preproc" >&6; }
1840
1841# So?  What about this header?
1842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843  yes:no: )
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848    ;;
1849  no:yes:* )
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1853$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1857$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860( $as_echo "## -------------------------------------------------- ##
1861## Report this to courier-users@lists.sourceforge.net ##
1862## -------------------------------------------------- ##"
1863     ) | sed "s/^/$as_me: WARNING:     /" >&2
1864    ;;
1865esac
1866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval \${$3+:} false; then :
1869  $as_echo_n "(cached) " >&6
1870else
1871  eval "$3=\$ac_header_compiler"
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876fi
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879} # ac_fn_c_check_header_mongrel
1880
1881# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1882# --------------------------------------------
1883# Tries to find the compile-time value of EXPR in a program that includes
1884# INCLUDES, setting VAR accordingly. Returns whether the value could be
1885# computed
1886ac_fn_c_compute_int ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  if test "$cross_compiling" = yes; then
1890    # Depending upon the size, compute the lo and hi bounds.
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894int
1895main ()
1896{
1897static int test_array [1 - 2 * !(($2) >= 0)];
1898test_array [0] = 0;
1899return test_array [0];
1900
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  ac_lo=0 ac_mid=0
1907  while :; do
1908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910$4
1911int
1912main ()
1913{
1914static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915test_array [0] = 0;
1916return test_array [0];
1917
1918  ;
1919  return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923  ac_hi=$ac_mid; break
1924else
1925  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1926			if test $ac_lo -le $ac_mid; then
1927			  ac_lo= ac_hi=
1928			  break
1929			fi
1930			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933  done
1934else
1935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h.  */
1937$4
1938int
1939main ()
1940{
1941static int test_array [1 - 2 * !(($2) < 0)];
1942test_array [0] = 0;
1943return test_array [0];
1944
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950  ac_hi=-1 ac_mid=-1
1951  while :; do
1952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h.  */
1954$4
1955int
1956main ()
1957{
1958static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1959test_array [0] = 0;
1960return test_array [0];
1961
1962  ;
1963  return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967  ac_lo=$ac_mid; break
1968else
1969  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1970			if test $ac_mid -le $ac_hi; then
1971			  ac_lo= ac_hi=
1972			  break
1973			fi
1974			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977  done
1978else
1979  ac_lo= ac_hi=
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984# Binary search between lo and hi bounds.
1985while test "x$ac_lo" != "x$ac_hi"; do
1986  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990int
1991main ()
1992{
1993static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1994test_array [0] = 0;
1995return test_array [0];
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  ac_hi=$ac_mid
2003else
2004  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007done
2008case $ac_lo in #((
2009?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2010'') ac_retval=1 ;;
2011esac
2012  else
2013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015$4
2016static long int longval () { return $2; }
2017static unsigned long int ulongval () { return $2; }
2018#include <stdio.h>
2019#include <stdlib.h>
2020int
2021main ()
2022{
2023
2024  FILE *f = fopen ("conftest.val", "w");
2025  if (! f)
2026    return 1;
2027  if (($2) < 0)
2028    {
2029      long int i = longval ();
2030      if (i != ($2))
2031	return 1;
2032      fprintf (f, "%ld", i);
2033    }
2034  else
2035    {
2036      unsigned long int i = ulongval ();
2037      if (i != ($2))
2038	return 1;
2039      fprintf (f, "%lu", i);
2040    }
2041  /* Do not output a trailing newline, as this causes \r\n confusion
2042     on some platforms.  */
2043  return ferror (f) || fclose (f) != 0;
2044
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_run "$LINENO"; then :
2050  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2051else
2052  ac_retval=1
2053fi
2054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2055  conftest.$ac_objext conftest.beam conftest.$ac_ext
2056rm -f conftest.val
2057
2058  fi
2059  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060  as_fn_set_status $ac_retval
2061
2062} # ac_fn_c_compute_int
2063cat >config.log <<_ACEOF
2064This file contains any messages produced by compilers while
2065running configure, to aid debugging if configure makes a mistake.
2066
2067It was created by libmd5 $as_me 1.21, which was
2068generated by GNU Autoconf 2.69.  Invocation command line was
2069
2070  $ $0 $@
2071
2072_ACEOF
2073exec 5>>config.log
2074{
2075cat <<_ASUNAME
2076## --------- ##
2077## Platform. ##
2078## --------- ##
2079
2080hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2088
2089/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2090/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2091/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2093/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2094/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2095/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2096
2097_ASUNAME
2098
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104    $as_echo "PATH: $as_dir"
2105  done
2106IFS=$as_save_IFS
2107
2108} >&5
2109
2110cat >&5 <<_ACEOF
2111
2112
2113## ----------- ##
2114## Core tests. ##
2115## ----------- ##
2116
2117_ACEOF
2118
2119
2120# Keep a trace of the command line.
2121# Strip out --no-create and --no-recursion so they do not pile up.
2122# Strip out --silent because we don't want to record it for future runs.
2123# Also quote any args containing shell meta-characters.
2124# Make two passes to allow for proper duplicate-argument suppression.
2125ac_configure_args=
2126ac_configure_args0=
2127ac_configure_args1=
2128ac_must_keep_next=false
2129for ac_pass in 1 2
2130do
2131  for ac_arg
2132  do
2133    case $ac_arg in
2134    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136    | -silent | --silent | --silen | --sile | --sil)
2137      continue ;;
2138    *\'*)
2139      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140    esac
2141    case $ac_pass in
2142    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2143    2)
2144      as_fn_append ac_configure_args1 " '$ac_arg'"
2145      if test $ac_must_keep_next = true; then
2146	ac_must_keep_next=false # Got value, back to normal.
2147      else
2148	case $ac_arg in
2149	  *=* | --config-cache | -C | -disable-* | --disable-* \
2150	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152	  | -with-* | --with-* | -without-* | --without-* | --x)
2153	    case "$ac_configure_args0 " in
2154	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155	    esac
2156	    ;;
2157	  -* ) ac_must_keep_next=true ;;
2158	esac
2159      fi
2160      as_fn_append ac_configure_args " '$ac_arg'"
2161      ;;
2162    esac
2163  done
2164done
2165{ ac_configure_args0=; unset ac_configure_args0;}
2166{ ac_configure_args1=; unset ac_configure_args1;}
2167
2168# When interrupted or exit'd, cleanup temporary files, and complete
2169# config.log.  We remove comments because anyway the quotes in there
2170# would cause problems or look ugly.
2171# WARNING: Use '\'' to represent an apostrophe within the trap.
2172# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173trap 'exit_status=$?
2174  # Save into config.log some information that might help in debugging.
2175  {
2176    echo
2177
2178    $as_echo "## ---------------- ##
2179## Cache variables. ##
2180## ---------------- ##"
2181    echo
2182    # The following way of writing the cache mishandles newlines in values,
2183(
2184  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2185    eval ac_val=\$$ac_var
2186    case $ac_val in #(
2187    *${as_nl}*)
2188      case $ac_var in #(
2189      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2190$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2191      esac
2192      case $ac_var in #(
2193      _ | IFS | as_nl) ;; #(
2194      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2195      *) { eval $ac_var=; unset $ac_var;} ;;
2196      esac ;;
2197    esac
2198  done
2199  (set) 2>&1 |
2200    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2201    *${as_nl}ac_space=\ *)
2202      sed -n \
2203	"s/'\''/'\''\\\\'\'''\''/g;
2204	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2205      ;; #(
2206    *)
2207      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208      ;;
2209    esac |
2210    sort
2211)
2212    echo
2213
2214    $as_echo "## ----------------- ##
2215## Output variables. ##
2216## ----------------- ##"
2217    echo
2218    for ac_var in $ac_subst_vars
2219    do
2220      eval ac_val=\$$ac_var
2221      case $ac_val in
2222      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223      esac
2224      $as_echo "$ac_var='\''$ac_val'\''"
2225    done | sort
2226    echo
2227
2228    if test -n "$ac_subst_files"; then
2229      $as_echo "## ------------------- ##
2230## File substitutions. ##
2231## ------------------- ##"
2232      echo
2233      for ac_var in $ac_subst_files
2234      do
2235	eval ac_val=\$$ac_var
2236	case $ac_val in
2237	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238	esac
2239	$as_echo "$ac_var='\''$ac_val'\''"
2240      done | sort
2241      echo
2242    fi
2243
2244    if test -s confdefs.h; then
2245      $as_echo "## ----------- ##
2246## confdefs.h. ##
2247## ----------- ##"
2248      echo
2249      cat confdefs.h
2250      echo
2251    fi
2252    test "$ac_signal" != 0 &&
2253      $as_echo "$as_me: caught signal $ac_signal"
2254    $as_echo "$as_me: exit $exit_status"
2255  } >&5
2256  rm -f core *.core core.conftest.* &&
2257    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2258    exit $exit_status
2259' 0
2260for ac_signal in 1 2 13 15; do
2261  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2262done
2263ac_signal=0
2264
2265# confdefs.h avoids OS command line length limits that DEFS can exceed.
2266rm -f -r conftest* confdefs.h
2267
2268$as_echo "/* confdefs.h */" > confdefs.h
2269
2270# Predefined preprocessor variables.
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_NAME "$PACKAGE_NAME"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_VERSION "$PACKAGE_VERSION"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_STRING "$PACKAGE_STRING"
2286_ACEOF
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_URL "$PACKAGE_URL"
2294_ACEOF
2295
2296
2297# Let the site file select an alternate cache file if it wants to.
2298# Prefer an explicitly selected file to automatically selected ones.
2299ac_site_file1=NONE
2300ac_site_file2=NONE
2301if test -n "$CONFIG_SITE"; then
2302  # We do not want a PATH search for config.site.
2303  case $CONFIG_SITE in #((
2304    -*)  ac_site_file1=./$CONFIG_SITE;;
2305    */*) ac_site_file1=$CONFIG_SITE;;
2306    *)   ac_site_file1=./$CONFIG_SITE;;
2307  esac
2308elif test "x$prefix" != xNONE; then
2309  ac_site_file1=$prefix/share/config.site
2310  ac_site_file2=$prefix/etc/config.site
2311else
2312  ac_site_file1=$ac_default_prefix/share/config.site
2313  ac_site_file2=$ac_default_prefix/etc/config.site
2314fi
2315for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2316do
2317  test "x$ac_site_file" = xNONE && continue
2318  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2319    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2320$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2321    sed 's/^/| /' "$ac_site_file" >&5
2322    . "$ac_site_file" \
2323      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325as_fn_error $? "failed to load site script $ac_site_file
2326See \`config.log' for more details" "$LINENO" 5; }
2327  fi
2328done
2329
2330if test -r "$cache_file"; then
2331  # Some versions of bash will fail to source /dev/null (special files
2332  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2333  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2334    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2335$as_echo "$as_me: loading cache $cache_file" >&6;}
2336    case $cache_file in
2337      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338      *)                      . "./$cache_file";;
2339    esac
2340  fi
2341else
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2343$as_echo "$as_me: creating cache $cache_file" >&6;}
2344  >$cache_file
2345fi
2346
2347# Check that the precious variables saved in the cache have kept the same
2348# value.
2349ac_cache_corrupted=false
2350for ac_var in $ac_precious_vars; do
2351  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2352  eval ac_new_set=\$ac_env_${ac_var}_set
2353  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2354  eval ac_new_val=\$ac_env_${ac_var}_value
2355  case $ac_old_set,$ac_new_set in
2356    set,)
2357      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2359      ac_cache_corrupted=: ;;
2360    ,set)
2361      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2363      ac_cache_corrupted=: ;;
2364    ,);;
2365    *)
2366      if test "x$ac_old_val" != "x$ac_new_val"; then
2367	# differences in whitespace do not lead to failure.
2368	ac_old_val_w=`echo x $ac_old_val`
2369	ac_new_val_w=`echo x $ac_new_val`
2370	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2371	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2373	  ac_cache_corrupted=:
2374	else
2375	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2377	  eval $ac_var=\$ac_old_val
2378	fi
2379	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2380$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2381	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2382$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2383      fi;;
2384  esac
2385  # Pass precious variables to config.status.
2386  if test "$ac_new_set" = set; then
2387    case $ac_new_val in
2388    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2389    *) ac_arg=$ac_var=$ac_new_val ;;
2390    esac
2391    case " $ac_configure_args " in
2392      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2393      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394    esac
2395  fi
2396done
2397if $ac_cache_corrupted; then
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2402  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403fi
2404## -------------------- ##
2405## Main body of script. ##
2406## -------------------- ##
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414
2415
2416>confdefs.h  # Kill PACKAGE_ macros
2417
2418
2419ac_aux_dir=
2420for ac_dir in ../.. "$srcdir"/../..; do
2421  if test -f "$ac_dir/install-sh"; then
2422    ac_aux_dir=$ac_dir
2423    ac_install_sh="$ac_aux_dir/install-sh -c"
2424    break
2425  elif test -f "$ac_dir/install.sh"; then
2426    ac_aux_dir=$ac_dir
2427    ac_install_sh="$ac_aux_dir/install.sh -c"
2428    break
2429  elif test -f "$ac_dir/shtool"; then
2430    ac_aux_dir=$ac_dir
2431    ac_install_sh="$ac_aux_dir/shtool install -c"
2432    break
2433  fi
2434done
2435if test -z "$ac_aux_dir"; then
2436  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2437fi
2438
2439# These three variables are undocumented and unsupported,
2440# and are intended to be withdrawn in a future Autoconf release.
2441# They can cause serious problems if a builder's source tree is in a directory
2442# whose full name contains unusual characters.
2443ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2444ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2445ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2446
2447
2448ac_config_headers="$ac_config_headers config.h"
2449
2450am__api_version='1.16'
2451
2452# Find a good install program.  We prefer a C program (faster),
2453# so one script is as good as another.  But avoid the broken or
2454# incompatible versions:
2455# SysV /etc/install, /usr/sbin/install
2456# SunOS /usr/etc/install
2457# IRIX /sbin/install
2458# AIX /bin/install
2459# AmigaOS /C/install, which installs bootblocks on floppy discs
2460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2463# OS/2's system install, which has a completely different semantic
2464# ./install, which can be erroneously created by make from ./install.sh.
2465# Reject install programs that cannot install multiple files.
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467$as_echo_n "checking for a BSD-compatible install... " >&6; }
2468if test -z "$INSTALL"; then
2469if ${ac_cv_path_install+:} false; then :
2470  $as_echo_n "(cached) " >&6
2471else
2472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    # Account for people who put trailing slashes in PATH elements.
2478case $as_dir/ in #((
2479  ./ | .// | /[cC]/* | \
2480  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2481  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2482  /usr/ucb/* ) ;;
2483  *)
2484    # OSF1 and SCO ODT 3.0 have their own names for install.
2485    # Don't use installbsd from OSF since it installs stuff as root
2486    # by default.
2487    for ac_prog in ginstall scoinst install; do
2488      for ac_exec_ext in '' $ac_executable_extensions; do
2489	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2490	  if test $ac_prog = install &&
2491	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492	    # AIX install.  It has an incompatible calling convention.
2493	    :
2494	  elif test $ac_prog = install &&
2495	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496	    # program-specific install script used by HP pwplus--don't use.
2497	    :
2498	  else
2499	    rm -rf conftest.one conftest.two conftest.dir
2500	    echo one > conftest.one
2501	    echo two > conftest.two
2502	    mkdir conftest.dir
2503	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504	      test -s conftest.one && test -s conftest.two &&
2505	      test -s conftest.dir/conftest.one &&
2506	      test -s conftest.dir/conftest.two
2507	    then
2508	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509	      break 3
2510	    fi
2511	  fi
2512	fi
2513      done
2514    done
2515    ;;
2516esac
2517
2518  done
2519IFS=$as_save_IFS
2520
2521rm -rf conftest.one conftest.two conftest.dir
2522
2523fi
2524  if test "${ac_cv_path_install+set}" = set; then
2525    INSTALL=$ac_cv_path_install
2526  else
2527    # As a last resort, use the slow shell script.  Don't cache a
2528    # value for INSTALL within a source directory, because that will
2529    # break other packages using the cache if that directory is
2530    # removed, or if the value is a relative name.
2531    INSTALL=$ac_install_sh
2532  fi
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535$as_echo "$INSTALL" >&6; }
2536
2537# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538# It thinks the first close brace ends the variable substitution.
2539test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540
2541test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542
2543test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2546$as_echo_n "checking whether build environment is sane... " >&6; }
2547# Reject unsafe characters in $srcdir or the absolute working directory
2548# name.  Accept space and tab only in the latter.
2549am_lf='
2550'
2551case `pwd` in
2552  *[\\\"\#\$\&\'\`$am_lf]*)
2553    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2554esac
2555case $srcdir in
2556  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2557    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2558esac
2559
2560# Do 'set' in a subshell so we don't clobber the current shell's
2561# arguments.  Must try -L first in case configure is actually a
2562# symlink; some systems play weird games with the mod time of symlinks
2563# (eg FreeBSD returns the mod time of the symlink's containing
2564# directory).
2565if (
2566   am_has_slept=no
2567   for am_try in 1 2; do
2568     echo "timestamp, slept: $am_has_slept" > conftest.file
2569     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2570     if test "$*" = "X"; then
2571	# -L didn't work.
2572	set X `ls -t "$srcdir/configure" conftest.file`
2573     fi
2574     if test "$*" != "X $srcdir/configure conftest.file" \
2575	&& test "$*" != "X conftest.file $srcdir/configure"; then
2576
2577	# If neither matched, then we have a broken ls.  This can happen
2578	# if, for instance, CONFIG_SHELL is bash and it inherits a
2579	# broken ls alias from the environment.  This has actually
2580	# happened.  Such a system could not be considered "sane".
2581	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2582  alias in your environment" "$LINENO" 5
2583     fi
2584     if test "$2" = conftest.file || test $am_try -eq 2; then
2585       break
2586     fi
2587     # Just in case.
2588     sleep 1
2589     am_has_slept=yes
2590   done
2591   test "$2" = conftest.file
2592   )
2593then
2594   # Ok.
2595   :
2596else
2597   as_fn_error $? "newly created file is older than distributed files!
2598Check your system clock" "$LINENO" 5
2599fi
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601$as_echo "yes" >&6; }
2602# If we didn't sleep, we still need to ensure time stamps of config.status and
2603# generated files are strictly newer.
2604am_sleep_pid=
2605if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2606  ( sleep 1 ) &
2607  am_sleep_pid=$!
2608fi
2609
2610rm -f conftest.file
2611
2612test "$program_prefix" != NONE &&
2613  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614# Use a double $ so make ignores it.
2615test "$program_suffix" != NONE &&
2616  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617# Double any \ or $.
2618# By default was `s,x,x', remove it if useless.
2619ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621
2622# Expand $ac_aux_dir to an absolute path.
2623am_aux_dir=`cd "$ac_aux_dir" && pwd`
2624
2625if test x"${MISSING+set}" != xset; then
2626  case $am_aux_dir in
2627  *\ * | *\	*)
2628    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2629  *)
2630    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2631  esac
2632fi
2633# Use eval to expand $SHELL
2634if eval "$MISSING --is-lightweight"; then
2635  am_missing_run="$MISSING "
2636else
2637  am_missing_run=
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2639$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2640fi
2641
2642if test x"${install_sh+set}" != xset; then
2643  case $am_aux_dir in
2644  *\ * | *\	*)
2645    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2646  *)
2647    install_sh="\${SHELL} $am_aux_dir/install-sh"
2648  esac
2649fi
2650
2651# Installed binaries are usually stripped using 'strip' when the user
2652# run "make install-strip".  However 'strip' might not be the right
2653# tool to use in cross-compilation environments, therefore Automake
2654# will honor the 'STRIP' environment variable to overrule this program.
2655if test "$cross_compiling" != no; then
2656  if test -n "$ac_tool_prefix"; then
2657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658set dummy ${ac_tool_prefix}strip; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if ${ac_cv_prog_STRIP+:} false; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if test -n "$STRIP"; then
2665  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672    for ac_exec_ext in '' $ac_executable_extensions; do
2673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679  done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684STRIP=$ac_cv_prog_STRIP
2685if test -n "$STRIP"; then
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687$as_echo "$STRIP" >&6; }
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693
2694fi
2695if test -z "$ac_cv_prog_STRIP"; then
2696  ac_ct_STRIP=$STRIP
2697  # Extract the first word of "strip", so it can be a program name with args.
2698set dummy strip; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  if test -n "$ac_ct_STRIP"; then
2705  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710  IFS=$as_save_IFS
2711  test -z "$as_dir" && as_dir=.
2712    for ac_exec_ext in '' $ac_executable_extensions; do
2713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714    ac_cv_prog_ac_ct_STRIP="strip"
2715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716    break 2
2717  fi
2718done
2719  done
2720IFS=$as_save_IFS
2721
2722fi
2723fi
2724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725if test -n "$ac_ct_STRIP"; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727$as_echo "$ac_ct_STRIP" >&6; }
2728else
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733  if test "x$ac_ct_STRIP" = x; then
2734    STRIP=":"
2735  else
2736    case $cross_compiling:$ac_tool_warned in
2737yes:)
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740ac_tool_warned=yes ;;
2741esac
2742    STRIP=$ac_ct_STRIP
2743  fi
2744else
2745  STRIP="$ac_cv_prog_STRIP"
2746fi
2747
2748fi
2749INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753if test -z "$MKDIR_P"; then
2754  if ${ac_cv_path_mkdir+:} false; then :
2755  $as_echo_n "(cached) " >&6
2756else
2757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2759do
2760  IFS=$as_save_IFS
2761  test -z "$as_dir" && as_dir=.
2762    for ac_prog in mkdir gmkdir; do
2763	 for ac_exec_ext in '' $ac_executable_extensions; do
2764	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2765	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766	     'mkdir (GNU coreutils) '* | \
2767	     'mkdir (coreutils) '* | \
2768	     'mkdir (fileutils) '4.1*)
2769	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2770	       break 3;;
2771	   esac
2772	 done
2773       done
2774  done
2775IFS=$as_save_IFS
2776
2777fi
2778
2779  test -d ./--version && rmdir ./--version
2780  if test "${ac_cv_path_mkdir+set}" = set; then
2781    MKDIR_P="$ac_cv_path_mkdir -p"
2782  else
2783    # As a last resort, use the slow shell script.  Don't cache a
2784    # value for MKDIR_P within a source directory, because that will
2785    # break other packages using the cache if that directory is
2786    # removed, or if the value is a relative name.
2787    MKDIR_P="$ac_install_sh -d"
2788  fi
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791$as_echo "$MKDIR_P" >&6; }
2792
2793for ac_prog in gawk mawk nawk awk
2794do
2795  # Extract the first word of "$ac_prog", so it can be a program name with args.
2796set dummy $ac_prog; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if ${ac_cv_prog_AWK+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$AWK"; then
2803  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_AWK="$ac_prog"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822AWK=$ac_cv_prog_AWK
2823if test -n "$AWK"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2825$as_echo "$AWK" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832  test -n "$AWK" && break
2833done
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2836$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2837set x ${MAKE-make}
2838ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2839if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  cat >conftest.make <<\_ACEOF
2843SHELL = /bin/sh
2844all:
2845	@echo '@@@%%%=$(MAKE)=@@@%%%'
2846_ACEOF
2847# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2848case `${MAKE-make} -f conftest.make 2>/dev/null` in
2849  *@@@%%%=?*=@@@%%%*)
2850    eval ac_cv_prog_make_${ac_make}_set=yes;;
2851  *)
2852    eval ac_cv_prog_make_${ac_make}_set=no;;
2853esac
2854rm -f conftest.make
2855fi
2856if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858$as_echo "yes" >&6; }
2859  SET_MAKE=
2860else
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863  SET_MAKE="MAKE=${MAKE-make}"
2864fi
2865
2866rm -rf .tst 2>/dev/null
2867mkdir .tst 2>/dev/null
2868if test -d .tst; then
2869  am__leading_dot=.
2870else
2871  am__leading_dot=_
2872fi
2873rmdir .tst 2>/dev/null
2874
2875# Check whether --enable-silent-rules was given.
2876if test "${enable_silent_rules+set}" = set; then :
2877  enableval=$enable_silent_rules;
2878fi
2879
2880case $enable_silent_rules in # (((
2881  yes) AM_DEFAULT_VERBOSITY=0;;
2882   no) AM_DEFAULT_VERBOSITY=1;;
2883    *) AM_DEFAULT_VERBOSITY=1;;
2884esac
2885am_make=${MAKE-make}
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2887$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2888if ${am_cv_make_support_nested_variables+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if $as_echo 'TRUE=$(BAR$(V))
2892BAR0=false
2893BAR1=true
2894V=1
2895am__doit:
2896	@$(TRUE)
2897.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2898  am_cv_make_support_nested_variables=yes
2899else
2900  am_cv_make_support_nested_variables=no
2901fi
2902fi
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2904$as_echo "$am_cv_make_support_nested_variables" >&6; }
2905if test $am_cv_make_support_nested_variables = yes; then
2906    AM_V='$(V)'
2907  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2908else
2909  AM_V=$AM_DEFAULT_VERBOSITY
2910  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2911fi
2912AM_BACKSLASH='\'
2913
2914if test "`cd $srcdir && pwd`" != "`pwd`"; then
2915  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2916  # is not polluted with repeated "-I."
2917  am__isrc=' -I$(srcdir)'
2918  # test to see if srcdir already configured
2919  if test -f $srcdir/config.status; then
2920    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2921  fi
2922fi
2923
2924# test whether we have cygpath
2925if test -z "$CYGPATH_W"; then
2926  if (cygpath --version) >/dev/null 2>/dev/null; then
2927    CYGPATH_W='cygpath -w'
2928  else
2929    CYGPATH_W=echo
2930  fi
2931fi
2932
2933
2934# Define the identity of the package.
2935 PACKAGE='libmd5'
2936 VERSION='1.21'
2937
2938
2939# Some tools Automake needs.
2940
2941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2942
2943
2944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2945
2946
2947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2948
2949
2950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2951
2952
2953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2954
2955# For better backward compatibility.  To be removed once Automake 1.9.x
2956# dies out for good.  For more background, see:
2957# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2958# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2959mkdir_p='$(MKDIR_P)'
2960
2961# We need awk for the "check" target (and possibly the TAP driver).  The
2962# system "awk" is bad on some platforms.
2963# Always define AMTAR for backward compatibility.  Yes, it's still used
2964# in the wild :-(  We should find a proper way to deprecate it ...
2965AMTAR='$${TAR-tar}'
2966
2967
2968# We'll loop over all known methods to create a tar archive until one works.
2969_am_tools='gnutar  pax cpio none'
2970
2971am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2972
2973
2974
2975
2976
2977
2978# POSIX will say in a future version that running "rm -f" with no argument
2979# is OK; and we want to be able to make that assumption in our Makefile
2980# recipes.  So use an aggressive probe to check that the usage we want is
2981# actually supported "in the wild" to an acceptable degree.
2982# See automake bug#10828.
2983# To make any issue more visible, cause the running configure to be aborted
2984# by default if the 'rm' program in use doesn't match our expectations; the
2985# user can still override this though.
2986if rm -f && rm -fr && rm -rf; then : OK; else
2987  cat >&2 <<'END'
2988Oops!
2989
2990Your 'rm' program seems unable to run without file operands specified
2991on the command line, even when the '-f' option is present.  This is contrary
2992to the behaviour of most rm programs out there, and not conforming with
2993the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2994
2995Please tell bug-automake@gnu.org about your system, including the value
2996of your $PATH and any error possibly output before this message.  This
2997can help us improve future automake versions.
2998
2999END
3000  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3001    echo 'Configuration will proceed anyway, since you have set the' >&2
3002    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3003    echo >&2
3004  else
3005    cat >&2 <<'END'
3006Aborting the configuration process, to ensure you take notice of the issue.
3007
3008You can download and install GNU coreutils to get an 'rm' implementation
3009that behaves properly: <https://www.gnu.org/software/coreutils/>.
3010
3011If you want to complete the configuration process using your problematic
3012'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3013to "yes", and re-run configure.
3014
3015END
3016    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3017  fi
3018fi
3019
3020
3021 if test -d ${srcdir}/../libhmac; then
3022  HMACC_TRUE=
3023  HMACC_FALSE='#'
3024else
3025  HMACC_TRUE='#'
3026  HMACC_FALSE=
3027fi
3028
3029
3030for ac_prog in gawk mawk nawk awk
3031do
3032  # Extract the first word of "$ac_prog", so it can be a program name with args.
3033set dummy $ac_prog; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if ${ac_cv_prog_AWK+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$AWK"; then
3040  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049    ac_cv_prog_AWK="$ac_prog"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059AWK=$ac_cv_prog_AWK
3060if test -n "$AWK"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062$as_echo "$AWK" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  test -n "$AWK" && break
3070done
3071
3072
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3074$as_echo_n "checking whether ln -s works... " >&6; }
3075LN_S=$as_ln_s
3076if test "$LN_S" = "ln -s"; then
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3078$as_echo "yes" >&6; }
3079else
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3081$as_echo "no, using $LN_S" >&6; }
3082fi
3083
3084ac_ext=c
3085ac_cpp='$CPP $CPPFLAGS'
3086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089if test -n "$ac_tool_prefix"; then
3090  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3091set dummy ${ac_tool_prefix}gcc; ac_word=$2
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093$as_echo_n "checking for $ac_word... " >&6; }
3094if ${ac_cv_prog_CC+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  if test -n "$CC"; then
3098  ac_cv_prog_CC="$CC" # Let the user override the test.
3099else
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103  IFS=$as_save_IFS
3104  test -z "$as_dir" && as_dir=.
3105    for ac_exec_ext in '' $ac_executable_extensions; do
3106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109    break 2
3110  fi
3111done
3112  done
3113IFS=$as_save_IFS
3114
3115fi
3116fi
3117CC=$ac_cv_prog_CC
3118if test -n "$CC"; then
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120$as_echo "$CC" >&6; }
3121else
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123$as_echo "no" >&6; }
3124fi
3125
3126
3127fi
3128if test -z "$ac_cv_prog_CC"; then
3129  ac_ct_CC=$CC
3130  # Extract the first word of "gcc", so it can be a program name with args.
3131set dummy gcc; ac_word=$2
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133$as_echo_n "checking for $ac_word... " >&6; }
3134if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  if test -n "$ac_ct_CC"; then
3138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143  IFS=$as_save_IFS
3144  test -z "$as_dir" && as_dir=.
3145    for ac_exec_ext in '' $ac_executable_extensions; do
3146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147    ac_cv_prog_ac_ct_CC="gcc"
3148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149    break 2
3150  fi
3151done
3152  done
3153IFS=$as_save_IFS
3154
3155fi
3156fi
3157ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158if test -n "$ac_ct_CC"; then
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160$as_echo "$ac_ct_CC" >&6; }
3161else
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164fi
3165
3166  if test "x$ac_ct_CC" = x; then
3167    CC=""
3168  else
3169    case $cross_compiling:$ac_tool_warned in
3170yes:)
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173ac_tool_warned=yes ;;
3174esac
3175    CC=$ac_ct_CC
3176  fi
3177else
3178  CC="$ac_cv_prog_CC"
3179fi
3180
3181if test -z "$CC"; then
3182          if test -n "$ac_tool_prefix"; then
3183    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3184set dummy ${ac_tool_prefix}cc; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if ${ac_cv_prog_CC+:} false; then :
3188  $as_echo_n "(cached) " >&6
3189else
3190  if test -n "$CC"; then
3191  ac_cv_prog_CC="$CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198    for ac_exec_ext in '' $ac_executable_extensions; do
3199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200    ac_cv_prog_CC="${ac_tool_prefix}cc"
3201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202    break 2
3203  fi
3204done
3205  done
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210CC=$ac_cv_prog_CC
3211if test -n "$CC"; then
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213$as_echo "$CC" >&6; }
3214else
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220  fi
3221fi
3222if test -z "$CC"; then
3223  # Extract the first word of "cc", so it can be a program name with args.
3224set dummy cc; ac_word=$2
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226$as_echo_n "checking for $ac_word... " >&6; }
3227if ${ac_cv_prog_CC+:} false; then :
3228  $as_echo_n "(cached) " >&6
3229else
3230  if test -n "$CC"; then
3231  ac_cv_prog_CC="$CC" # Let the user override the test.
3232else
3233  ac_prog_rejected=no
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237  IFS=$as_save_IFS
3238  test -z "$as_dir" && as_dir=.
3239    for ac_exec_ext in '' $ac_executable_extensions; do
3240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3242       ac_prog_rejected=yes
3243       continue
3244     fi
3245    ac_cv_prog_CC="cc"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253if test $ac_prog_rejected = yes; then
3254  # We found a bogon in the path, so make sure we never use it.
3255  set dummy $ac_cv_prog_CC
3256  shift
3257  if test $# != 0; then
3258    # We chose a different compiler from the bogus one.
3259    # However, it has the same basename, so the bogon will be chosen
3260    # first if we set CC to just the basename; use the full file name.
3261    shift
3262    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263  fi
3264fi
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270$as_echo "$CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277fi
3278if test -z "$CC"; then
3279  if test -n "$ac_tool_prefix"; then
3280  for ac_prog in cl.exe
3281  do
3282    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if ${ac_cv_prog_CC+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  if test -n "$CC"; then
3290  ac_cv_prog_CC="$CC" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295  IFS=$as_save_IFS
3296  test -z "$as_dir" && as_dir=.
3297    for ac_exec_ext in '' $ac_executable_extensions; do
3298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301    break 2
3302  fi
3303done
3304  done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309CC=$ac_cv_prog_CC
3310if test -n "$CC"; then
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312$as_echo "$CC" >&6; }
3313else
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316fi
3317
3318
3319    test -n "$CC" && break
3320  done
3321fi
3322if test -z "$CC"; then
3323  ac_ct_CC=$CC
3324  for ac_prog in cl.exe
3325do
3326  # Extract the first word of "$ac_prog", so it can be a program name with args.
3327set dummy $ac_prog; ac_word=$2
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
3330if ${ac_cv_prog_ac_ct_CC+:} false; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  if test -n "$ac_ct_CC"; then
3334  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341    for ac_exec_ext in '' $ac_executable_extensions; do
3342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343    ac_cv_prog_ac_ct_CC="$ac_prog"
3344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348  done
3349IFS=$as_save_IFS
3350
3351fi
3352fi
3353ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354if test -n "$ac_ct_CC"; then
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3356$as_echo "$ac_ct_CC" >&6; }
3357else
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362
3363  test -n "$ac_ct_CC" && break
3364done
3365
3366  if test "x$ac_ct_CC" = x; then
3367    CC=""
3368  else
3369    case $cross_compiling:$ac_tool_warned in
3370yes:)
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373ac_tool_warned=yes ;;
3374esac
3375    CC=$ac_ct_CC
3376  fi
3377fi
3378
3379fi
3380
3381
3382test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error $? "no acceptable C compiler found in \$PATH
3385See \`config.log' for more details" "$LINENO" 5; }
3386
3387# Provide some information about the compiler.
3388$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3389set X $ac_compile
3390ac_compiler=$2
3391for ac_option in --version -v -V -qversion; do
3392  { { ac_try="$ac_compiler $ac_option >&5"
3393case "(($ac_try" in
3394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395  *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398$as_echo "$ac_try_echo"; } >&5
3399  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3400  ac_status=$?
3401  if test -s conftest.err; then
3402    sed '10a\
3403... rest of stderr output deleted ...
3404         10q' conftest.err >conftest.er1
3405    cat conftest.er1 >&5
3406  fi
3407  rm -f conftest.er1 conftest.err
3408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409  test $ac_status = 0; }
3410done
3411
3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414
3415int
3416main ()
3417{
3418
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423ac_clean_files_save=$ac_clean_files
3424ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3425# Try to create an executable without -o first, disregard a.out.
3426# It will help us diagnose broken compilers, and finding out an intuition
3427# of exeext.
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3429$as_echo_n "checking whether the C compiler works... " >&6; }
3430ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3431
3432# The possible output files:
3433ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3434
3435ac_rmfiles=
3436for ac_file in $ac_files
3437do
3438  case $ac_file in
3439    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3441  esac
3442done
3443rm -f $ac_rmfiles
3444
3445if { { ac_try="$ac_link_default"
3446case "(($ac_try" in
3447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448  *) ac_try_echo=$ac_try;;
3449esac
3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451$as_echo "$ac_try_echo"; } >&5
3452  (eval "$ac_link_default") 2>&5
3453  ac_status=$?
3454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455  test $ac_status = 0; }; then :
3456  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3457# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3458# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3459# so that the user can short-circuit this test for compilers unknown to
3460# Autoconf.
3461for ac_file in $ac_files ''
3462do
3463  test -f "$ac_file" || continue
3464  case $ac_file in
3465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3466	;;
3467    [ab].out )
3468	# We found the default executable, but exeext='' is most
3469	# certainly right.
3470	break;;
3471    *.* )
3472	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3473	then :; else
3474	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475	fi
3476	# We set ac_cv_exeext here because the later test for it is not
3477	# safe: cross compilers may not add the suffix if given an `-o'
3478	# argument, so we may need to know it at that point already.
3479	# Even if this section looks crufty: it has the advantage of
3480	# actually working.
3481	break;;
3482    * )
3483	break;;
3484  esac
3485done
3486test "$ac_cv_exeext" = no && ac_cv_exeext=
3487
3488else
3489  ac_file=''
3490fi
3491if test -z "$ac_file"; then :
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493$as_echo "no" >&6; }
3494$as_echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499as_fn_error 77 "C compiler cannot create executables
3500See \`config.log' for more details" "$LINENO" 5; }
3501else
3502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503$as_echo "yes" >&6; }
3504fi
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3506$as_echo_n "checking for C compiler default output file name... " >&6; }
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3508$as_echo "$ac_file" >&6; }
3509ac_exeext=$ac_cv_exeext
3510
3511rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3512ac_clean_files=$ac_clean_files_save
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3514$as_echo_n "checking for suffix of executables... " >&6; }
3515if { { ac_try="$ac_link"
3516case "(($ac_try" in
3517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518  *) ac_try_echo=$ac_try;;
3519esac
3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521$as_echo "$ac_try_echo"; } >&5
3522  (eval "$ac_link") 2>&5
3523  ac_status=$?
3524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525  test $ac_status = 0; }; then :
3526  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3528# work properly (i.e., refer to `conftest.exe'), while it won't with
3529# `rm'.
3530for ac_file in conftest.exe conftest conftest.*; do
3531  test -f "$ac_file" || continue
3532  case $ac_file in
3533    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535	  break;;
3536    * ) break;;
3537  esac
3538done
3539else
3540  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3543See \`config.log' for more details" "$LINENO" 5; }
3544fi
3545rm -f conftest conftest$ac_cv_exeext
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3547$as_echo "$ac_cv_exeext" >&6; }
3548
3549rm -f conftest.$ac_ext
3550EXEEXT=$ac_cv_exeext
3551ac_exeext=$EXEEXT
3552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h.  */
3554#include <stdio.h>
3555int
3556main ()
3557{
3558FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565ac_clean_files="$ac_clean_files conftest.out"
3566# Check that the compiler produces executables we can run.  If not, either
3567# the compiler is broken, or we cross compile.
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3569$as_echo_n "checking whether we are cross compiling... " >&6; }
3570if test "$cross_compiling" != yes; then
3571  { { ac_try="$ac_link"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_link") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }
3582  if { ac_try='./conftest$ac_cv_exeext'
3583  { { case "(($ac_try" in
3584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585  *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589  (eval "$ac_try") 2>&5
3590  ac_status=$?
3591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592  test $ac_status = 0; }; }; then
3593    cross_compiling=no
3594  else
3595    if test "$cross_compiling" = maybe; then
3596	cross_compiling=yes
3597    else
3598	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600as_fn_error $? "cannot run C compiled programs.
3601If you meant to cross compile, use \`--host'.
3602See \`config.log' for more details" "$LINENO" 5; }
3603    fi
3604  fi
3605fi
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3607$as_echo "$cross_compiling" >&6; }
3608
3609rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3610ac_clean_files=$ac_clean_files_save
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3612$as_echo_n "checking for suffix of object files... " >&6; }
3613if ${ac_cv_objext+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618
3619int
3620main ()
3621{
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627rm -f conftest.o conftest.obj
3628if { { ac_try="$ac_compile"
3629case "(($ac_try" in
3630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631  *) ac_try_echo=$ac_try;;
3632esac
3633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634$as_echo "$ac_try_echo"; } >&5
3635  (eval "$ac_compile") 2>&5
3636  ac_status=$?
3637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638  test $ac_status = 0; }; then :
3639  for ac_file in conftest.o conftest.obj conftest.*; do
3640  test -f "$ac_file" || continue;
3641  case $ac_file in
3642    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3643    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3644       break;;
3645  esac
3646done
3647else
3648  $as_echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653as_fn_error $? "cannot compute suffix of object files: cannot compile
3654See \`config.log' for more details" "$LINENO" 5; }
3655fi
3656rm -f conftest.$ac_cv_objext conftest.$ac_ext
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3659$as_echo "$ac_cv_objext" >&6; }
3660OBJEXT=$ac_cv_objext
3661ac_objext=$OBJEXT
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3663$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3664if ${ac_cv_c_compiler_gnu+:} false; then :
3665  $as_echo_n "(cached) " >&6
3666else
3667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h.  */
3669
3670int
3671main ()
3672{
3673#ifndef __GNUC__
3674       choke me
3675#endif
3676
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681if ac_fn_c_try_compile "$LINENO"; then :
3682  ac_compiler_gnu=yes
3683else
3684  ac_compiler_gnu=no
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687ac_cv_c_compiler_gnu=$ac_compiler_gnu
3688
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3691$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3692if test $ac_compiler_gnu = yes; then
3693  GCC=yes
3694else
3695  GCC=
3696fi
3697ac_test_CFLAGS=${CFLAGS+set}
3698ac_save_CFLAGS=$CFLAGS
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3700$as_echo_n "checking whether $CC accepts -g... " >&6; }
3701if ${ac_cv_prog_cc_g+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  ac_save_c_werror_flag=$ac_c_werror_flag
3705   ac_c_werror_flag=yes
3706   ac_cv_prog_cc_g=no
3707   CFLAGS="-g"
3708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710
3711int
3712main ()
3713{
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719if ac_fn_c_try_compile "$LINENO"; then :
3720  ac_cv_prog_cc_g=yes
3721else
3722  CFLAGS=""
3723      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725
3726int
3727main ()
3728{
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734if ac_fn_c_try_compile "$LINENO"; then :
3735
3736else
3737  ac_c_werror_flag=$ac_save_c_werror_flag
3738	 CFLAGS="-g"
3739	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741
3742int
3743main ()
3744{
3745
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751  ac_cv_prog_cc_g=yes
3752fi
3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754fi
3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756fi
3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758   ac_c_werror_flag=$ac_save_c_werror_flag
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3761$as_echo "$ac_cv_prog_cc_g" >&6; }
3762if test "$ac_test_CFLAGS" = set; then
3763  CFLAGS=$ac_save_CFLAGS
3764elif test $ac_cv_prog_cc_g = yes; then
3765  if test "$GCC" = yes; then
3766    CFLAGS="-g -O2"
3767  else
3768    CFLAGS="-g"
3769  fi
3770else
3771  if test "$GCC" = yes; then
3772    CFLAGS="-O2"
3773  else
3774    CFLAGS=
3775  fi
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3778$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3779if ${ac_cv_prog_cc_c89+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  ac_cv_prog_cc_c89=no
3783ac_save_CC=$CC
3784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786#include <stdarg.h>
3787#include <stdio.h>
3788struct stat;
3789/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3790struct buf { int x; };
3791FILE * (*rcsopen) (struct buf *, struct stat *, int);
3792static char *e (p, i)
3793     char **p;
3794     int i;
3795{
3796  return p[i];
3797}
3798static char *f (char * (*g) (char **, int), char **p, ...)
3799{
3800  char *s;
3801  va_list v;
3802  va_start (v,p);
3803  s = g (p, va_arg (v,int));
3804  va_end (v);
3805  return s;
3806}
3807
3808/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3809   function prototypes and stuff, but not '\xHH' hex character constants.
3810   These don't provoke an error unfortunately, instead are silently treated
3811   as 'x'.  The following induces an error, until -std is added to get
3812   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3813   array size at least.  It's necessary to write '\x00'==0 to get something
3814   that's true only with -std.  */
3815int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3816
3817/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3818   inside strings and character constants.  */
3819#define FOO(x) 'x'
3820int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3821
3822int test (int i, double x);
3823struct s1 {int (*f) (int a);};
3824struct s2 {int (*f) (double a);};
3825int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3826int argc;
3827char **argv;
3828int
3829main ()
3830{
3831return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3837	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3838do
3839  CC="$ac_save_CC $ac_arg"
3840  if ac_fn_c_try_compile "$LINENO"; then :
3841  ac_cv_prog_cc_c89=$ac_arg
3842fi
3843rm -f core conftest.err conftest.$ac_objext
3844  test "x$ac_cv_prog_cc_c89" != "xno" && break
3845done
3846rm -f conftest.$ac_ext
3847CC=$ac_save_CC
3848
3849fi
3850# AC_CACHE_VAL
3851case "x$ac_cv_prog_cc_c89" in
3852  x)
3853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854$as_echo "none needed" >&6; } ;;
3855  xno)
3856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3857$as_echo "unsupported" >&6; } ;;
3858  *)
3859    CC="$CC $ac_cv_prog_cc_c89"
3860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3861$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862esac
3863if test "x$ac_cv_prog_cc_c89" != xno; then :
3864
3865fi
3866
3867ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
3873ac_ext=c
3874ac_cpp='$CPP $CPPFLAGS'
3875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3879$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3880if ${am_cv_prog_cc_c_o+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894  # Make sure it works both with $CC and with simple cc.
3895  # Following AC_PROG_CC_C_O, we do the test twice because some
3896  # compilers refuse to overwrite an existing .o file with -o,
3897  # though they will create one.
3898  am_cv_prog_cc_c_o=yes
3899  for am_i in 1 2; do
3900    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3901   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } \
3905         && test -f conftest2.$ac_objext; then
3906      : OK
3907    else
3908      am_cv_prog_cc_c_o=no
3909      break
3910    fi
3911  done
3912  rm -f core conftest*
3913  unset am_i
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3916$as_echo "$am_cv_prog_cc_c_o" >&6; }
3917if test "$am_cv_prog_cc_c_o" != yes; then
3918   # Losing compiler, so override with the script.
3919   # FIXME: It is wrong to rewrite CC.
3920   # But if we don't then we get into trouble of one sort or another.
3921   # A longer-term fix would be to have automake use am__CC in this case,
3922   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3923   CC="$am_aux_dir/compile $CC"
3924fi
3925ac_ext=c
3926ac_cpp='$CPP $CPPFLAGS'
3927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931DEPDIR="${am__leading_dot}deps"
3932
3933ac_config_commands="$ac_config_commands depfiles"
3934
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3936$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3937cat > confinc.mk << 'END'
3938am__doit:
3939	@echo this is the am__doit target >confinc.out
3940.PHONY: am__doit
3941END
3942am__include="#"
3943am__quote=
3944# BSD make does it like this.
3945echo '.include "confinc.mk" # ignored' > confmf.BSD
3946# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3947echo 'include confinc.mk # ignored' > confmf.GNU
3948_am_result=no
3949for s in GNU BSD; do
3950  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3951   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); }
3955  case $?:`cat confinc.out 2>/dev/null` in #(
3956  '0:this is the am__doit target') :
3957    case $s in #(
3958  BSD) :
3959    am__include='.include' am__quote='"' ;; #(
3960  *) :
3961    am__include='include' am__quote='' ;;
3962esac ;; #(
3963  *) :
3964     ;;
3965esac
3966  if test "$am__include" != "#"; then
3967    _am_result="yes ($s style)"
3968    break
3969  fi
3970done
3971rm -f confinc.* confmf.*
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3973$as_echo "${_am_result}" >&6; }
3974
3975# Check whether --enable-dependency-tracking was given.
3976if test "${enable_dependency_tracking+set}" = set; then :
3977  enableval=$enable_dependency_tracking;
3978fi
3979
3980if test "x$enable_dependency_tracking" != xno; then
3981  am_depcomp="$ac_aux_dir/depcomp"
3982  AMDEPBACKSLASH='\'
3983  am__nodep='_no'
3984fi
3985 if test "x$enable_dependency_tracking" != xno; then
3986  AMDEP_TRUE=
3987  AMDEP_FALSE='#'
3988else
3989  AMDEP_TRUE='#'
3990  AMDEP_FALSE=
3991fi
3992
3993
3994
3995depcc="$CC"   am_compiler_list=
3996
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3998$as_echo_n "checking dependency style of $depcc... " >&6; }
3999if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4000  $as_echo_n "(cached) " >&6
4001else
4002  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4003  # We make a subdir and do the tests there.  Otherwise we can end up
4004  # making bogus files that we don't know about and never remove.  For
4005  # instance it was reported that on HP-UX the gcc test will end up
4006  # making a dummy file named 'D' -- because '-MD' means "put the output
4007  # in D".
4008  rm -rf conftest.dir
4009  mkdir conftest.dir
4010  # Copy depcomp to subdir because otherwise we won't find it if we're
4011  # using a relative directory.
4012  cp "$am_depcomp" conftest.dir
4013  cd conftest.dir
4014  # We will build objects and dependencies in a subdirectory because
4015  # it helps to detect inapplicable dependency modes.  For instance
4016  # both Tru64's cc and ICC support -MD to output dependencies as a
4017  # side effect of compilation, but ICC will put the dependencies in
4018  # the current directory while Tru64 will put them in the object
4019  # directory.
4020  mkdir sub
4021
4022  am_cv_CC_dependencies_compiler_type=none
4023  if test "$am_compiler_list" = ""; then
4024     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4025  fi
4026  am__universal=false
4027  case " $depcc " in #(
4028     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4029     esac
4030
4031  for depmode in $am_compiler_list; do
4032    # Setup a source with many dependencies, because some compilers
4033    # like to wrap large dependency lists on column 80 (with \), and
4034    # we should not choose a depcomp mode which is confused by this.
4035    #
4036    # We need to recreate these files for each test, as the compiler may
4037    # overwrite some of them when testing with obscure command lines.
4038    # This happens at least with the AIX C compiler.
4039    : > sub/conftest.c
4040    for i in 1 2 3 4 5 6; do
4041      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4042      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4043      # Solaris 10 /bin/sh.
4044      echo '/* dummy */' > sub/conftst$i.h
4045    done
4046    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047
4048    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4049    # mode.  It turns out that the SunPro C++ compiler does not properly
4050    # handle '-M -o', and we need to detect this.  Also, some Intel
4051    # versions had trouble with output in subdirs.
4052    am__obj=sub/conftest.${OBJEXT-o}
4053    am__minus_obj="-o $am__obj"
4054    case $depmode in
4055    gcc)
4056      # This depmode causes a compiler race in universal mode.
4057      test "$am__universal" = false || continue
4058      ;;
4059    nosideeffect)
4060      # After this tag, mechanisms are not by side-effect, so they'll
4061      # only be used when explicitly requested.
4062      if test "x$enable_dependency_tracking" = xyes; then
4063	continue
4064      else
4065	break
4066      fi
4067      ;;
4068    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4069      # This compiler won't grok '-c -o', but also, the minuso test has
4070      # not run yet.  These depmodes are late enough in the game, and
4071      # so weak that their functioning should not be impacted.
4072      am__obj=conftest.${OBJEXT-o}
4073      am__minus_obj=
4074      ;;
4075    none) break ;;
4076    esac
4077    if depmode=$depmode \
4078       source=sub/conftest.c object=$am__obj \
4079       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4080       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4081         >/dev/null 2>conftest.err &&
4082       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4083       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4085       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086      # icc doesn't choke on unknown options, it will just issue warnings
4087      # or remarks (even with -Werror).  So we grep stderr for any message
4088      # that says an option was ignored or not supported.
4089      # When given -MP, icc 7.0 and 7.1 complain thusly:
4090      #   icc: Command line warning: ignoring option '-M'; no argument required
4091      # The diagnosis changed in icc 8.0:
4092      #   icc: Command line remark: option '-MP' not supported
4093      if (grep 'ignoring option' conftest.err ||
4094          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095        am_cv_CC_dependencies_compiler_type=$depmode
4096        break
4097      fi
4098    fi
4099  done
4100
4101  cd ..
4102  rm -rf conftest.dir
4103else
4104  am_cv_CC_dependencies_compiler_type=none
4105fi
4106
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4109$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4110CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4111
4112 if
4113  test "x$enable_dependency_tracking" != xno \
4114  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4115  am__fastdepCC_TRUE=
4116  am__fastdepCC_FALSE='#'
4117else
4118  am__fastdepCC_TRUE='#'
4119  am__fastdepCC_FALSE=
4120fi
4121
4122
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4124$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4125if ${ac_cv_prog_cc_c99+:} false; then :
4126  $as_echo_n "(cached) " >&6
4127else
4128  ac_cv_prog_cc_c99=no
4129ac_save_CC=$CC
4130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132#include <stdarg.h>
4133#include <stdbool.h>
4134#include <stdlib.h>
4135#include <wchar.h>
4136#include <stdio.h>
4137
4138// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4139#define debug(...) fprintf (stderr, __VA_ARGS__)
4140#define showlist(...) puts (#__VA_ARGS__)
4141#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4142static void
4143test_varargs_macros (void)
4144{
4145  int x = 1234;
4146  int y = 5678;
4147  debug ("Flag");
4148  debug ("X = %d\n", x);
4149  showlist (The first, second, and third items.);
4150  report (x>y, "x is %d but y is %d", x, y);
4151}
4152
4153// Check long long types.
4154#define BIG64 18446744073709551615ull
4155#define BIG32 4294967295ul
4156#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4157#if !BIG_OK
4158  your preprocessor is broken;
4159#endif
4160#if BIG_OK
4161#else
4162  your preprocessor is broken;
4163#endif
4164static long long int bignum = -9223372036854775807LL;
4165static unsigned long long int ubignum = BIG64;
4166
4167struct incomplete_array
4168{
4169  int datasize;
4170  double data[];
4171};
4172
4173struct named_init {
4174  int number;
4175  const wchar_t *name;
4176  double average;
4177};
4178
4179typedef const char *ccp;
4180
4181static inline int
4182test_restrict (ccp restrict text)
4183{
4184  // See if C++-style comments work.
4185  // Iterate through items via the restricted pointer.
4186  // Also check for declarations in for loops.
4187  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4188    continue;
4189  return 0;
4190}
4191
4192// Check varargs and va_copy.
4193static void
4194test_varargs (const char *format, ...)
4195{
4196  va_list args;
4197  va_start (args, format);
4198  va_list args_copy;
4199  va_copy (args_copy, args);
4200
4201  const char *str;
4202  int number;
4203  float fnumber;
4204
4205  while (*format)
4206    {
4207      switch (*format++)
4208	{
4209	case 's': // string
4210	  str = va_arg (args_copy, const char *);
4211	  break;
4212	case 'd': // int
4213	  number = va_arg (args_copy, int);
4214	  break;
4215	case 'f': // float
4216	  fnumber = va_arg (args_copy, double);
4217	  break;
4218	default:
4219	  break;
4220	}
4221    }
4222  va_end (args_copy);
4223  va_end (args);
4224}
4225
4226int
4227main ()
4228{
4229
4230  // Check bool.
4231  _Bool success = false;
4232
4233  // Check restrict.
4234  if (test_restrict ("String literal") == 0)
4235    success = true;
4236  char *restrict newvar = "Another string";
4237
4238  // Check varargs.
4239  test_varargs ("s, d' f .", "string", 65, 34.234);
4240  test_varargs_macros ();
4241
4242  // Check flexible array members.
4243  struct incomplete_array *ia =
4244    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4245  ia->datasize = 10;
4246  for (int i = 0; i < ia->datasize; ++i)
4247    ia->data[i] = i * 1.234;
4248
4249  // Check named initializers.
4250  struct named_init ni = {
4251    .number = 34,
4252    .name = L"Test wide string",
4253    .average = 543.34343,
4254  };
4255
4256  ni.number = 58;
4257
4258  int dynamic_array[ni.number];
4259  dynamic_array[ni.number - 1] = 543;
4260
4261  // work around unused variable warnings
4262  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4263	  || dynamic_array[ni.number - 1] != 543);
4264
4265  ;
4266  return 0;
4267}
4268_ACEOF
4269for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4270do
4271  CC="$ac_save_CC $ac_arg"
4272  if ac_fn_c_try_compile "$LINENO"; then :
4273  ac_cv_prog_cc_c99=$ac_arg
4274fi
4275rm -f core conftest.err conftest.$ac_objext
4276  test "x$ac_cv_prog_cc_c99" != "xno" && break
4277done
4278rm -f conftest.$ac_ext
4279CC=$ac_save_CC
4280
4281fi
4282# AC_CACHE_VAL
4283case "x$ac_cv_prog_cc_c99" in
4284  x)
4285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4286$as_echo "none needed" >&6; } ;;
4287  xno)
4288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4289$as_echo "unsupported" >&6; } ;;
4290  *)
4291    CC="$CC $ac_cv_prog_cc_c99"
4292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4293$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4294esac
4295if test "x$ac_cv_prog_cc_c99" != xno; then :
4296
4297fi
4298
4299
4300case `pwd` in
4301  *\ * | *\	*)
4302    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4303$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4304esac
4305
4306
4307
4308macro_version='2.4.6'
4309macro_revision='2.4.6'
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323ltmain=$ac_aux_dir/ltmain.sh
4324
4325# Make sure we can run config.sub.
4326$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4327  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4328
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4330$as_echo_n "checking build system type... " >&6; }
4331if ${ac_cv_build+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  ac_build_alias=$build_alias
4335test "x$ac_build_alias" = x &&
4336  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4337test "x$ac_build_alias" = x &&
4338  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4339ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4340  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4341
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4344$as_echo "$ac_cv_build" >&6; }
4345case $ac_cv_build in
4346*-*-*) ;;
4347*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4348esac
4349build=$ac_cv_build
4350ac_save_IFS=$IFS; IFS='-'
4351set x $ac_cv_build
4352shift
4353build_cpu=$1
4354build_vendor=$2
4355shift; shift
4356# Remember, the first character of IFS is used to create $*,
4357# except with old shells:
4358build_os=$*
4359IFS=$ac_save_IFS
4360case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4361
4362
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4364$as_echo_n "checking host system type... " >&6; }
4365if ${ac_cv_host+:} false; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  if test "x$host_alias" = x; then
4369  ac_cv_host=$ac_cv_build
4370else
4371  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4372    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4373fi
4374
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4377$as_echo "$ac_cv_host" >&6; }
4378case $ac_cv_host in
4379*-*-*) ;;
4380*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4381esac
4382host=$ac_cv_host
4383ac_save_IFS=$IFS; IFS='-'
4384set x $ac_cv_host
4385shift
4386host_cpu=$1
4387host_vendor=$2
4388shift; shift
4389# Remember, the first character of IFS is used to create $*,
4390# except with old shells:
4391host_os=$*
4392IFS=$ac_save_IFS
4393case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4394
4395
4396# Backslashify metacharacters that are still active within
4397# double-quoted strings.
4398sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4399
4400# Same as above, but do not quote variable references.
4401double_quote_subst='s/\(["`\\]\)/\\\1/g'
4402
4403# Sed substitution to delay expansion of an escaped shell variable in a
4404# double_quote_subst'ed string.
4405delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4406
4407# Sed substitution to delay expansion of an escaped single quote.
4408delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4409
4410# Sed substitution to avoid accidental globbing in evaled expressions
4411no_glob_subst='s/\*/\\\*/g'
4412
4413ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4415ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4416
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4418$as_echo_n "checking how to print strings... " >&6; }
4419# Test print first, because it will be a builtin if present.
4420if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4421   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4422  ECHO='print -r --'
4423elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4424  ECHO='printf %s\n'
4425else
4426  # Use this function as a fallback that always works.
4427  func_fallback_echo ()
4428  {
4429    eval 'cat <<_LTECHO_EOF
4430$1
4431_LTECHO_EOF'
4432  }
4433  ECHO='func_fallback_echo'
4434fi
4435
4436# func_echo_all arg...
4437# Invoke $ECHO with all args, space-separated.
4438func_echo_all ()
4439{
4440    $ECHO ""
4441}
4442
4443case $ECHO in
4444  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4445$as_echo "printf" >&6; } ;;
4446  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4447$as_echo "print -r" >&6; } ;;
4448  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4449$as_echo "cat" >&6; } ;;
4450esac
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4466$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4467if ${ac_cv_path_SED+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4471     for ac_i in 1 2 3 4 5 6 7; do
4472       ac_script="$ac_script$as_nl$ac_script"
4473     done
4474     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4475     { ac_script=; unset ac_script;}
4476     if test -z "$SED"; then
4477  ac_path_SED_found=false
4478  # Loop through the user's path and test for each of PROGNAME-LIST
4479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482  IFS=$as_save_IFS
4483  test -z "$as_dir" && as_dir=.
4484    for ac_prog in sed gsed; do
4485    for ac_exec_ext in '' $ac_executable_extensions; do
4486      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4487      as_fn_executable_p "$ac_path_SED" || continue
4488# Check for GNU ac_path_SED and select it if it is found.
4489  # Check for GNU $ac_path_SED
4490case `"$ac_path_SED" --version 2>&1` in
4491*GNU*)
4492  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4493*)
4494  ac_count=0
4495  $as_echo_n 0123456789 >"conftest.in"
4496  while :
4497  do
4498    cat "conftest.in" "conftest.in" >"conftest.tmp"
4499    mv "conftest.tmp" "conftest.in"
4500    cp "conftest.in" "conftest.nl"
4501    $as_echo '' >> "conftest.nl"
4502    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504    as_fn_arith $ac_count + 1 && ac_count=$as_val
4505    if test $ac_count -gt ${ac_path_SED_max-0}; then
4506      # Best one so far, save it but keep looking for a better one
4507      ac_cv_path_SED="$ac_path_SED"
4508      ac_path_SED_max=$ac_count
4509    fi
4510    # 10*(2^10) chars as input seems more than enough
4511    test $ac_count -gt 10 && break
4512  done
4513  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514esac
4515
4516      $ac_path_SED_found && break 3
4517    done
4518  done
4519  done
4520IFS=$as_save_IFS
4521  if test -z "$ac_cv_path_SED"; then
4522    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4523  fi
4524else
4525  ac_cv_path_SED=$SED
4526fi
4527
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4530$as_echo "$ac_cv_path_SED" >&6; }
4531 SED="$ac_cv_path_SED"
4532  rm -f conftest.sed
4533
4534test -z "$SED" && SED=sed
4535Xsed="$SED -e 1s/^X//"
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4548$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4549if ${ac_cv_path_GREP+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  if test -z "$GREP"; then
4553  ac_path_GREP_found=false
4554  # Loop through the user's path and test for each of PROGNAME-LIST
4555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560    for ac_prog in grep ggrep; do
4561    for ac_exec_ext in '' $ac_executable_extensions; do
4562      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4563      as_fn_executable_p "$ac_path_GREP" || continue
4564# Check for GNU ac_path_GREP and select it if it is found.
4565  # Check for GNU $ac_path_GREP
4566case `"$ac_path_GREP" --version 2>&1` in
4567*GNU*)
4568  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4569*)
4570  ac_count=0
4571  $as_echo_n 0123456789 >"conftest.in"
4572  while :
4573  do
4574    cat "conftest.in" "conftest.in" >"conftest.tmp"
4575    mv "conftest.tmp" "conftest.in"
4576    cp "conftest.in" "conftest.nl"
4577    $as_echo 'GREP' >> "conftest.nl"
4578    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580    as_fn_arith $ac_count + 1 && ac_count=$as_val
4581    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4582      # Best one so far, save it but keep looking for a better one
4583      ac_cv_path_GREP="$ac_path_GREP"
4584      ac_path_GREP_max=$ac_count
4585    fi
4586    # 10*(2^10) chars as input seems more than enough
4587    test $ac_count -gt 10 && break
4588  done
4589  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590esac
4591
4592      $ac_path_GREP_found && break 3
4593    done
4594  done
4595  done
4596IFS=$as_save_IFS
4597  if test -z "$ac_cv_path_GREP"; then
4598    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599  fi
4600else
4601  ac_cv_path_GREP=$GREP
4602fi
4603
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4606$as_echo "$ac_cv_path_GREP" >&6; }
4607 GREP="$ac_cv_path_GREP"
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4611$as_echo_n "checking for egrep... " >&6; }
4612if ${ac_cv_path_EGREP+:} false; then :
4613  $as_echo_n "(cached) " >&6
4614else
4615  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4616   then ac_cv_path_EGREP="$GREP -E"
4617   else
4618     if test -z "$EGREP"; then
4619  ac_path_EGREP_found=false
4620  # Loop through the user's path and test for each of PROGNAME-LIST
4621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626    for ac_prog in egrep; do
4627    for ac_exec_ext in '' $ac_executable_extensions; do
4628      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4629      as_fn_executable_p "$ac_path_EGREP" || continue
4630# Check for GNU ac_path_EGREP and select it if it is found.
4631  # Check for GNU $ac_path_EGREP
4632case `"$ac_path_EGREP" --version 2>&1` in
4633*GNU*)
4634  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4635*)
4636  ac_count=0
4637  $as_echo_n 0123456789 >"conftest.in"
4638  while :
4639  do
4640    cat "conftest.in" "conftest.in" >"conftest.tmp"
4641    mv "conftest.tmp" "conftest.in"
4642    cp "conftest.in" "conftest.nl"
4643    $as_echo 'EGREP' >> "conftest.nl"
4644    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646    as_fn_arith $ac_count + 1 && ac_count=$as_val
4647    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648      # Best one so far, save it but keep looking for a better one
4649      ac_cv_path_EGREP="$ac_path_EGREP"
4650      ac_path_EGREP_max=$ac_count
4651    fi
4652    # 10*(2^10) chars as input seems more than enough
4653    test $ac_count -gt 10 && break
4654  done
4655  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656esac
4657
4658      $ac_path_EGREP_found && break 3
4659    done
4660  done
4661  done
4662IFS=$as_save_IFS
4663  if test -z "$ac_cv_path_EGREP"; then
4664    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665  fi
4666else
4667  ac_cv_path_EGREP=$EGREP
4668fi
4669
4670   fi
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4673$as_echo "$ac_cv_path_EGREP" >&6; }
4674 EGREP="$ac_cv_path_EGREP"
4675
4676
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4678$as_echo_n "checking for fgrep... " >&6; }
4679if ${ac_cv_path_FGREP+:} false; then :
4680  $as_echo_n "(cached) " >&6
4681else
4682  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4683   then ac_cv_path_FGREP="$GREP -F"
4684   else
4685     if test -z "$FGREP"; then
4686  ac_path_FGREP_found=false
4687  # Loop through the user's path and test for each of PROGNAME-LIST
4688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690do
4691  IFS=$as_save_IFS
4692  test -z "$as_dir" && as_dir=.
4693    for ac_prog in fgrep; do
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4696      as_fn_executable_p "$ac_path_FGREP" || continue
4697# Check for GNU ac_path_FGREP and select it if it is found.
4698  # Check for GNU $ac_path_FGREP
4699case `"$ac_path_FGREP" --version 2>&1` in
4700*GNU*)
4701  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4702*)
4703  ac_count=0
4704  $as_echo_n 0123456789 >"conftest.in"
4705  while :
4706  do
4707    cat "conftest.in" "conftest.in" >"conftest.tmp"
4708    mv "conftest.tmp" "conftest.in"
4709    cp "conftest.in" "conftest.nl"
4710    $as_echo 'FGREP' >> "conftest.nl"
4711    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713    as_fn_arith $ac_count + 1 && ac_count=$as_val
4714    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4715      # Best one so far, save it but keep looking for a better one
4716      ac_cv_path_FGREP="$ac_path_FGREP"
4717      ac_path_FGREP_max=$ac_count
4718    fi
4719    # 10*(2^10) chars as input seems more than enough
4720    test $ac_count -gt 10 && break
4721  done
4722  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723esac
4724
4725      $ac_path_FGREP_found && break 3
4726    done
4727  done
4728  done
4729IFS=$as_save_IFS
4730  if test -z "$ac_cv_path_FGREP"; then
4731    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732  fi
4733else
4734  ac_cv_path_FGREP=$FGREP
4735fi
4736
4737   fi
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4740$as_echo "$ac_cv_path_FGREP" >&6; }
4741 FGREP="$ac_cv_path_FGREP"
4742
4743
4744test -z "$GREP" && GREP=grep
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764# Check whether --with-gnu-ld was given.
4765if test "${with_gnu_ld+set}" = set; then :
4766  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4767else
4768  with_gnu_ld=no
4769fi
4770
4771ac_prog=ld
4772if test yes = "$GCC"; then
4773  # Check if gcc -print-prog-name=ld gives a path.
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4775$as_echo_n "checking for ld used by $CC... " >&6; }
4776  case $host in
4777  *-*-mingw*)
4778    # gcc leaves a trailing carriage return, which upsets mingw
4779    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4780  *)
4781    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4782  esac
4783  case $ac_prog in
4784    # Accept absolute paths.
4785    [\\/]* | ?:[\\/]*)
4786      re_direlt='/[^/][^/]*/\.\./'
4787      # Canonicalize the pathname of ld
4788      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4789      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4790	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4791      done
4792      test -z "$LD" && LD=$ac_prog
4793      ;;
4794  "")
4795    # If it fails, then pretend we aren't using GCC.
4796    ac_prog=ld
4797    ;;
4798  *)
4799    # If it is relative, then search for the first ld in PATH.
4800    with_gnu_ld=unknown
4801    ;;
4802  esac
4803elif test yes = "$with_gnu_ld"; then
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4805$as_echo_n "checking for GNU ld... " >&6; }
4806else
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4808$as_echo_n "checking for non-GNU ld... " >&6; }
4809fi
4810if ${lt_cv_path_LD+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  if test -z "$LD"; then
4814  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4815  for ac_dir in $PATH; do
4816    IFS=$lt_save_ifs
4817    test -z "$ac_dir" && ac_dir=.
4818    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4819      lt_cv_path_LD=$ac_dir/$ac_prog
4820      # Check to see if the program is GNU ld.  I'd rather use --version,
4821      # but apparently some variants of GNU ld only accept -v.
4822      # Break only if it was the GNU/non-GNU ld that we prefer.
4823      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4824      *GNU* | *'with BFD'*)
4825	test no != "$with_gnu_ld" && break
4826	;;
4827      *)
4828	test yes != "$with_gnu_ld" && break
4829	;;
4830      esac
4831    fi
4832  done
4833  IFS=$lt_save_ifs
4834else
4835  lt_cv_path_LD=$LD # Let the user override the test with a path.
4836fi
4837fi
4838
4839LD=$lt_cv_path_LD
4840if test -n "$LD"; then
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4842$as_echo "$LD" >&6; }
4843else
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
4846fi
4847test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4849$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4850if ${lt_cv_prog_gnu_ld+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4854case `$LD -v 2>&1 </dev/null` in
4855*GNU* | *'with BFD'*)
4856  lt_cv_prog_gnu_ld=yes
4857  ;;
4858*)
4859  lt_cv_prog_gnu_ld=no
4860  ;;
4861esac
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4864$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4865with_gnu_ld=$lt_cv_prog_gnu_ld
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4876$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4877if ${lt_cv_path_NM+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  if test -n "$NM"; then
4881  # Let the user override the test.
4882  lt_cv_path_NM=$NM
4883else
4884  lt_nm_to_check=${ac_tool_prefix}nm
4885  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4886    lt_nm_to_check="$lt_nm_to_check nm"
4887  fi
4888  for lt_tmp_nm in $lt_nm_to_check; do
4889    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4890    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4891      IFS=$lt_save_ifs
4892      test -z "$ac_dir" && ac_dir=.
4893      tmp_nm=$ac_dir/$lt_tmp_nm
4894      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4895	# Check to see if the nm accepts a BSD-compat flag.
4896	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4897	#   nm: unknown option "B" ignored
4898	# Tru64's nm complains that /dev/null is an invalid object file
4899	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4900	case $build_os in
4901	mingw*) lt_bad_file=conftest.nm/nofile ;;
4902	*) lt_bad_file=/dev/null ;;
4903	esac
4904	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4905	*$lt_bad_file* | *'Invalid file or object type'*)
4906	  lt_cv_path_NM="$tmp_nm -B"
4907	  break 2
4908	  ;;
4909	*)
4910	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4911	  */dev/null*)
4912	    lt_cv_path_NM="$tmp_nm -p"
4913	    break 2
4914	    ;;
4915	  *)
4916	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4917	    continue # so that we can try to find one that supports BSD flags
4918	    ;;
4919	  esac
4920	  ;;
4921	esac
4922      fi
4923    done
4924    IFS=$lt_save_ifs
4925  done
4926  : ${lt_cv_path_NM=no}
4927fi
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4930$as_echo "$lt_cv_path_NM" >&6; }
4931if test no != "$lt_cv_path_NM"; then
4932  NM=$lt_cv_path_NM
4933else
4934  # Didn't find any BSD compatible name lister, look for dumpbin.
4935  if test -n "$DUMPBIN"; then :
4936    # Let the user override the test.
4937  else
4938    if test -n "$ac_tool_prefix"; then
4939  for ac_prog in dumpbin "link -dump"
4940  do
4941    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if ${ac_cv_prog_DUMPBIN+:} false; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  if test -n "$DUMPBIN"; then
4949  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954  IFS=$as_save_IFS
4955  test -z "$as_dir" && as_dir=.
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960    break 2
4961  fi
4962done
4963  done
4964IFS=$as_save_IFS
4965
4966fi
4967fi
4968DUMPBIN=$ac_cv_prog_DUMPBIN
4969if test -n "$DUMPBIN"; then
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4971$as_echo "$DUMPBIN" >&6; }
4972else
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978    test -n "$DUMPBIN" && break
4979  done
4980fi
4981if test -z "$DUMPBIN"; then
4982  ac_ct_DUMPBIN=$DUMPBIN
4983  for ac_prog in dumpbin "link -dump"
4984do
4985  # Extract the first word of "$ac_prog", so it can be a program name with args.
4986set dummy $ac_prog; ac_word=$2
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988$as_echo_n "checking for $ac_word... " >&6; }
4989if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  if test -n "$ac_ct_DUMPBIN"; then
4993  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998  IFS=$as_save_IFS
4999  test -z "$as_dir" && as_dir=.
5000    for ac_exec_ext in '' $ac_executable_extensions; do
5001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004    break 2
5005  fi
5006done
5007  done
5008IFS=$as_save_IFS
5009
5010fi
5011fi
5012ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5013if test -n "$ac_ct_DUMPBIN"; then
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5015$as_echo "$ac_ct_DUMPBIN" >&6; }
5016else
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018$as_echo "no" >&6; }
5019fi
5020
5021
5022  test -n "$ac_ct_DUMPBIN" && break
5023done
5024
5025  if test "x$ac_ct_DUMPBIN" = x; then
5026    DUMPBIN=":"
5027  else
5028    case $cross_compiling:$ac_tool_warned in
5029yes:)
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032ac_tool_warned=yes ;;
5033esac
5034    DUMPBIN=$ac_ct_DUMPBIN
5035  fi
5036fi
5037
5038    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5039    *COFF*)
5040      DUMPBIN="$DUMPBIN -symbols -headers"
5041      ;;
5042    *)
5043      DUMPBIN=:
5044      ;;
5045    esac
5046  fi
5047
5048  if test : != "$DUMPBIN"; then
5049    NM=$DUMPBIN
5050  fi
5051fi
5052test -z "$NM" && NM=nm
5053
5054
5055
5056
5057
5058
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5060$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5061if ${lt_cv_nm_interface+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  lt_cv_nm_interface="BSD nm"
5065  echo "int some_variable = 0;" > conftest.$ac_ext
5066  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5067  (eval "$ac_compile" 2>conftest.err)
5068  cat conftest.err >&5
5069  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5070  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5071  cat conftest.err >&5
5072  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5073  cat conftest.out >&5
5074  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5075    lt_cv_nm_interface="MS dumpbin"
5076  fi
5077  rm -f conftest*
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5080$as_echo "$lt_cv_nm_interface" >&6; }
5081
5082# find the maximum length of command line arguments
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5084$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5085if ${lt_cv_sys_max_cmd_len+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088    i=0
5089  teststring=ABCD
5090
5091  case $build_os in
5092  msdosdjgpp*)
5093    # On DJGPP, this test can blow up pretty badly due to problems in libc
5094    # (any single argument exceeding 2000 bytes causes a buffer overrun
5095    # during glob expansion).  Even if it were fixed, the result of this
5096    # check would be larger than it should be.
5097    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5098    ;;
5099
5100  gnu*)
5101    # Under GNU Hurd, this test is not required because there is
5102    # no limit to the length of command line arguments.
5103    # Libtool will interpret -1 as no limit whatsoever
5104    lt_cv_sys_max_cmd_len=-1;
5105    ;;
5106
5107  cygwin* | mingw* | cegcc*)
5108    # On Win9x/ME, this test blows up -- it succeeds, but takes
5109    # about 5 minutes as the teststring grows exponentially.
5110    # Worse, since 9x/ME are not pre-emptively multitasking,
5111    # you end up with a "frozen" computer, even though with patience
5112    # the test eventually succeeds (with a max line length of 256k).
5113    # Instead, let's just punt: use the minimum linelength reported by
5114    # all of the supported platforms: 8192 (on NT/2K/XP).
5115    lt_cv_sys_max_cmd_len=8192;
5116    ;;
5117
5118  mint*)
5119    # On MiNT this can take a long time and run out of memory.
5120    lt_cv_sys_max_cmd_len=8192;
5121    ;;
5122
5123  amigaos*)
5124    # On AmigaOS with pdksh, this test takes hours, literally.
5125    # So we just punt and use a minimum line length of 8192.
5126    lt_cv_sys_max_cmd_len=8192;
5127    ;;
5128
5129  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5130    # This has been around since 386BSD, at least.  Likely further.
5131    if test -x /sbin/sysctl; then
5132      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5133    elif test -x /usr/sbin/sysctl; then
5134      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5135    else
5136      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5137    fi
5138    # And add a safety zone
5139    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5140    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5141    ;;
5142
5143  interix*)
5144    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5145    lt_cv_sys_max_cmd_len=196608
5146    ;;
5147
5148  os2*)
5149    # The test takes a long time on OS/2.
5150    lt_cv_sys_max_cmd_len=8192
5151    ;;
5152
5153  osf*)
5154    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5155    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5156    # nice to cause kernel panics so lets avoid the loop below.
5157    # First set a reasonable default.
5158    lt_cv_sys_max_cmd_len=16384
5159    #
5160    if test -x /sbin/sysconfig; then
5161      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5162        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5163      esac
5164    fi
5165    ;;
5166  sco3.2v5*)
5167    lt_cv_sys_max_cmd_len=102400
5168    ;;
5169  sysv5* | sco5v6* | sysv4.2uw2*)
5170    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5171    if test -n "$kargmax"; then
5172      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5173    else
5174      lt_cv_sys_max_cmd_len=32768
5175    fi
5176    ;;
5177  *)
5178    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5179    if test -n "$lt_cv_sys_max_cmd_len" && \
5180       test undefined != "$lt_cv_sys_max_cmd_len"; then
5181      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5182      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5183    else
5184      # Make teststring a little bigger before we do anything with it.
5185      # a 1K string should be a reasonable start.
5186      for i in 1 2 3 4 5 6 7 8; do
5187        teststring=$teststring$teststring
5188      done
5189      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5190      # If test is not a shell built-in, we'll probably end up computing a
5191      # maximum length that is only half of the actual maximum length, but
5192      # we can't tell.
5193      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5194	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5195	      test 17 != "$i" # 1/2 MB should be enough
5196      do
5197        i=`expr $i + 1`
5198        teststring=$teststring$teststring
5199      done
5200      # Only check the string length outside the loop.
5201      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5202      teststring=
5203      # Add a significant safety factor because C++ compilers can tack on
5204      # massive amounts of additional arguments before passing them to the
5205      # linker.  It appears as though 1/2 is a usable value.
5206      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5207    fi
5208    ;;
5209  esac
5210
5211fi
5212
5213if test -n "$lt_cv_sys_max_cmd_len"; then
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5215$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5216else
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5218$as_echo "none" >&6; }
5219fi
5220max_cmd_len=$lt_cv_sys_max_cmd_len
5221
5222
5223
5224
5225
5226
5227: ${CP="cp -f"}
5228: ${MV="mv -f"}
5229: ${RM="rm -f"}
5230
5231if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5232  lt_unset=unset
5233else
5234  lt_unset=false
5235fi
5236
5237
5238
5239
5240
5241# test EBCDIC or ASCII
5242case `echo X|tr X '\101'` in
5243 A) # ASCII based system
5244    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5245  lt_SP2NL='tr \040 \012'
5246  lt_NL2SP='tr \015\012 \040\040'
5247  ;;
5248 *) # EBCDIC based system
5249  lt_SP2NL='tr \100 \n'
5250  lt_NL2SP='tr \r\n \100\100'
5251  ;;
5252esac
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5263$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5264if ${lt_cv_to_host_file_cmd+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  case $host in
5268  *-*-mingw* )
5269    case $build in
5270      *-*-mingw* ) # actually msys
5271        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5272        ;;
5273      *-*-cygwin* )
5274        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5275        ;;
5276      * ) # otherwise, assume *nix
5277        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5278        ;;
5279    esac
5280    ;;
5281  *-*-cygwin* )
5282    case $build in
5283      *-*-mingw* ) # actually msys
5284        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5285        ;;
5286      *-*-cygwin* )
5287        lt_cv_to_host_file_cmd=func_convert_file_noop
5288        ;;
5289      * ) # otherwise, assume *nix
5290        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5291        ;;
5292    esac
5293    ;;
5294  * ) # unhandled hosts (and "normal" native builds)
5295    lt_cv_to_host_file_cmd=func_convert_file_noop
5296    ;;
5297esac
5298
5299fi
5300
5301to_host_file_cmd=$lt_cv_to_host_file_cmd
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5303$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5304
5305
5306
5307
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5310$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5311if ${lt_cv_to_tool_file_cmd+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  #assume ordinary cross tools, or native build.
5315lt_cv_to_tool_file_cmd=func_convert_file_noop
5316case $host in
5317  *-*-mingw* )
5318    case $build in
5319      *-*-mingw* ) # actually msys
5320        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5321        ;;
5322    esac
5323    ;;
5324esac
5325
5326fi
5327
5328to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5330$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5331
5332
5333
5334
5335
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5337$as_echo_n "checking for $LD option to reload object files... " >&6; }
5338if ${lt_cv_ld_reload_flag+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  lt_cv_ld_reload_flag='-r'
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5344$as_echo "$lt_cv_ld_reload_flag" >&6; }
5345reload_flag=$lt_cv_ld_reload_flag
5346case $reload_flag in
5347"" | " "*) ;;
5348*) reload_flag=" $reload_flag" ;;
5349esac
5350reload_cmds='$LD$reload_flag -o $output$reload_objs'
5351case $host_os in
5352  cygwin* | mingw* | pw32* | cegcc*)
5353    if test yes != "$GCC"; then
5354      reload_cmds=false
5355    fi
5356    ;;
5357  darwin*)
5358    if test yes = "$GCC"; then
5359      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5360    else
5361      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362    fi
5363    ;;
5364esac
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374if test -n "$ac_tool_prefix"; then
5375  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5376set dummy ${ac_tool_prefix}objdump; ac_word=$2
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378$as_echo_n "checking for $ac_word... " >&6; }
5379if ${ac_cv_prog_OBJDUMP+:} false; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  if test -n "$OBJDUMP"; then
5383  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388  IFS=$as_save_IFS
5389  test -z "$as_dir" && as_dir=.
5390    for ac_exec_ext in '' $ac_executable_extensions; do
5391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394    break 2
5395  fi
5396done
5397  done
5398IFS=$as_save_IFS
5399
5400fi
5401fi
5402OBJDUMP=$ac_cv_prog_OBJDUMP
5403if test -n "$OBJDUMP"; then
5404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5405$as_echo "$OBJDUMP" >&6; }
5406else
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408$as_echo "no" >&6; }
5409fi
5410
5411
5412fi
5413if test -z "$ac_cv_prog_OBJDUMP"; then
5414  ac_ct_OBJDUMP=$OBJDUMP
5415  # Extract the first word of "objdump", so it can be a program name with args.
5416set dummy objdump; ac_word=$2
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418$as_echo_n "checking for $ac_word... " >&6; }
5419if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  if test -n "$ac_ct_OBJDUMP"; then
5423  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5424else
5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH
5427do
5428  IFS=$as_save_IFS
5429  test -z "$as_dir" && as_dir=.
5430    for ac_exec_ext in '' $ac_executable_extensions; do
5431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434    break 2
5435  fi
5436done
5437  done
5438IFS=$as_save_IFS
5439
5440fi
5441fi
5442ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5443if test -n "$ac_ct_OBJDUMP"; then
5444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5445$as_echo "$ac_ct_OBJDUMP" >&6; }
5446else
5447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448$as_echo "no" >&6; }
5449fi
5450
5451  if test "x$ac_ct_OBJDUMP" = x; then
5452    OBJDUMP="false"
5453  else
5454    case $cross_compiling:$ac_tool_warned in
5455yes:)
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458ac_tool_warned=yes ;;
5459esac
5460    OBJDUMP=$ac_ct_OBJDUMP
5461  fi
5462else
5463  OBJDUMP="$ac_cv_prog_OBJDUMP"
5464fi
5465
5466test -z "$OBJDUMP" && OBJDUMP=objdump
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5477$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5478if ${lt_cv_deplibs_check_method+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  lt_cv_file_magic_cmd='$MAGIC_CMD'
5482lt_cv_file_magic_test_file=
5483lt_cv_deplibs_check_method='unknown'
5484# Need to set the preceding variable on all platforms that support
5485# interlibrary dependencies.
5486# 'none' -- dependencies not supported.
5487# 'unknown' -- same as none, but documents that we really don't know.
5488# 'pass_all' -- all dependencies passed with no checks.
5489# 'test_compile' -- check by making test program.
5490# 'file_magic [[regex]]' -- check by looking for files in library path
5491# that responds to the $file_magic_cmd with a given extended regex.
5492# If you have 'file' or equivalent on your system and you're not sure
5493# whether 'pass_all' will *always* work, you probably want this one.
5494
5495case $host_os in
5496aix[4-9]*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499
5500beos*)
5501  lt_cv_deplibs_check_method=pass_all
5502  ;;
5503
5504bsdi[45]*)
5505  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5506  lt_cv_file_magic_cmd='/usr/bin/file -L'
5507  lt_cv_file_magic_test_file=/shlib/libc.so
5508  ;;
5509
5510cygwin*)
5511  # func_win32_libid is a shell function defined in ltmain.sh
5512  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5513  lt_cv_file_magic_cmd='func_win32_libid'
5514  ;;
5515
5516mingw* | pw32*)
5517  # Base MSYS/MinGW do not provide the 'file' command needed by
5518  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5519  # unless we find 'file', for example because we are cross-compiling.
5520  if ( file / ) >/dev/null 2>&1; then
5521    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522    lt_cv_file_magic_cmd='func_win32_libid'
5523  else
5524    # Keep this pattern in sync with the one in func_win32_libid.
5525    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5526    lt_cv_file_magic_cmd='$OBJDUMP -f'
5527  fi
5528  ;;
5529
5530cegcc*)
5531  # use the weaker test based on 'objdump'. See mingw*.
5532  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5533  lt_cv_file_magic_cmd='$OBJDUMP -f'
5534  ;;
5535
5536darwin* | rhapsody*)
5537  lt_cv_deplibs_check_method=pass_all
5538  ;;
5539
5540freebsd* | dragonfly*)
5541  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5542    case $host_cpu in
5543    i*86 )
5544      # Not sure whether the presence of OpenBSD here was a mistake.
5545      # Let's accept both of them until this is cleared up.
5546      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5547      lt_cv_file_magic_cmd=/usr/bin/file
5548      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5549      ;;
5550    esac
5551  else
5552    lt_cv_deplibs_check_method=pass_all
5553  fi
5554  ;;
5555
5556haiku*)
5557  lt_cv_deplibs_check_method=pass_all
5558  ;;
5559
5560hpux10.20* | hpux11*)
5561  lt_cv_file_magic_cmd=/usr/bin/file
5562  case $host_cpu in
5563  ia64*)
5564    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5565    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5566    ;;
5567  hppa*64*)
5568    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]'
5569    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5570    ;;
5571  *)
5572    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5573    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5574    ;;
5575  esac
5576  ;;
5577
5578interix[3-9]*)
5579  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5580  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5581  ;;
5582
5583irix5* | irix6* | nonstopux*)
5584  case $LD in
5585  *-32|*"-32 ") libmagic=32-bit;;
5586  *-n32|*"-n32 ") libmagic=N32;;
5587  *-64|*"-64 ") libmagic=64-bit;;
5588  *) libmagic=never-match;;
5589  esac
5590  lt_cv_deplibs_check_method=pass_all
5591  ;;
5592
5593# This must be glibc/ELF.
5594linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5595  lt_cv_deplibs_check_method=pass_all
5596  ;;
5597
5598netbsd*)
5599  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5600    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5601  else
5602    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5603  fi
5604  ;;
5605
5606newos6*)
5607  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5608  lt_cv_file_magic_cmd=/usr/bin/file
5609  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5610  ;;
5611
5612*nto* | *qnx*)
5613  lt_cv_deplibs_check_method=pass_all
5614  ;;
5615
5616openbsd* | bitrig*)
5617  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5618    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5619  else
5620    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621  fi
5622  ;;
5623
5624osf3* | osf4* | osf5*)
5625  lt_cv_deplibs_check_method=pass_all
5626  ;;
5627
5628rdos*)
5629  lt_cv_deplibs_check_method=pass_all
5630  ;;
5631
5632solaris*)
5633  lt_cv_deplibs_check_method=pass_all
5634  ;;
5635
5636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5637  lt_cv_deplibs_check_method=pass_all
5638  ;;
5639
5640sysv4 | sysv4.3*)
5641  case $host_vendor in
5642  motorola)
5643    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]'
5644    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5645    ;;
5646  ncr)
5647    lt_cv_deplibs_check_method=pass_all
5648    ;;
5649  sequent)
5650    lt_cv_file_magic_cmd='/bin/file'
5651    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5652    ;;
5653  sni)
5654    lt_cv_file_magic_cmd='/bin/file'
5655    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5656    lt_cv_file_magic_test_file=/lib/libc.so
5657    ;;
5658  siemens)
5659    lt_cv_deplibs_check_method=pass_all
5660    ;;
5661  pc)
5662    lt_cv_deplibs_check_method=pass_all
5663    ;;
5664  esac
5665  ;;
5666
5667tpf*)
5668  lt_cv_deplibs_check_method=pass_all
5669  ;;
5670os2*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673esac
5674
5675fi
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677$as_echo "$lt_cv_deplibs_check_method" >&6; }
5678
5679file_magic_glob=
5680want_nocaseglob=no
5681if test "$build" = "$host"; then
5682  case $host_os in
5683  mingw* | pw32*)
5684    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5685      want_nocaseglob=yes
5686    else
5687      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5688    fi
5689    ;;
5690  esac
5691fi
5692
5693file_magic_cmd=$lt_cv_file_magic_cmd
5694deplibs_check_method=$lt_cv_deplibs_check_method
5695test -z "$deplibs_check_method" && deplibs_check_method=unknown
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718if test -n "$ac_tool_prefix"; then
5719  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5720set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
5723if ${ac_cv_prog_DLLTOOL+:} false; then :
5724  $as_echo_n "(cached) " >&6
5725else
5726  if test -n "$DLLTOOL"; then
5727  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732  IFS=$as_save_IFS
5733  test -z "$as_dir" && as_dir=.
5734    for ac_exec_ext in '' $ac_executable_extensions; do
5735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738    break 2
5739  fi
5740done
5741  done
5742IFS=$as_save_IFS
5743
5744fi
5745fi
5746DLLTOOL=$ac_cv_prog_DLLTOOL
5747if test -n "$DLLTOOL"; then
5748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5749$as_echo "$DLLTOOL" >&6; }
5750else
5751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753fi
5754
5755
5756fi
5757if test -z "$ac_cv_prog_DLLTOOL"; then
5758  ac_ct_DLLTOOL=$DLLTOOL
5759  # Extract the first word of "dlltool", so it can be a program name with args.
5760set dummy dlltool; ac_word=$2
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  if test -n "$ac_ct_DLLTOOL"; then
5767  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772  IFS=$as_save_IFS
5773  test -z "$as_dir" && as_dir=.
5774    for ac_exec_ext in '' $ac_executable_extensions; do
5775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778    break 2
5779  fi
5780done
5781  done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5787if test -n "$ac_ct_DLLTOOL"; then
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5789$as_echo "$ac_ct_DLLTOOL" >&6; }
5790else
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795  if test "x$ac_ct_DLLTOOL" = x; then
5796    DLLTOOL="false"
5797  else
5798    case $cross_compiling:$ac_tool_warned in
5799yes:)
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802ac_tool_warned=yes ;;
5803esac
5804    DLLTOOL=$ac_ct_DLLTOOL
5805  fi
5806else
5807  DLLTOOL="$ac_cv_prog_DLLTOOL"
5808fi
5809
5810test -z "$DLLTOOL" && DLLTOOL=dlltool
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5822$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5823if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  lt_cv_sharedlib_from_linklib_cmd='unknown'
5827
5828case $host_os in
5829cygwin* | mingw* | pw32* | cegcc*)
5830  # two different shell functions defined in ltmain.sh;
5831  # decide which one to use based on capabilities of $DLLTOOL
5832  case `$DLLTOOL --help 2>&1` in
5833  *--identify-strict*)
5834    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5835    ;;
5836  *)
5837    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5838    ;;
5839  esac
5840  ;;
5841*)
5842  # fallback: assume linklib IS sharedlib
5843  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5844  ;;
5845esac
5846
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5849$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5850sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5851test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5852
5853
5854
5855
5856
5857
5858
5859
5860if test -n "$ac_tool_prefix"; then
5861  for ac_prog in ar
5862  do
5863    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if ${ac_cv_prog_AR+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  if test -n "$AR"; then
5871  ac_cv_prog_AR="$AR" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885  done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890AR=$ac_cv_prog_AR
5891if test -n "$AR"; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5893$as_echo "$AR" >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899
5900    test -n "$AR" && break
5901  done
5902fi
5903if test -z "$AR"; then
5904  ac_ct_AR=$AR
5905  for ac_prog in ar
5906do
5907  # Extract the first word of "$ac_prog", so it can be a program name with args.
5908set dummy $ac_prog; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
5911if ${ac_cv_prog_ac_ct_AR+:} false; then :
5912  $as_echo_n "(cached) " >&6
5913else
5914  if test -n "$ac_ct_AR"; then
5915  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920  IFS=$as_save_IFS
5921  test -z "$as_dir" && as_dir=.
5922    for ac_exec_ext in '' $ac_executable_extensions; do
5923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924    ac_cv_prog_ac_ct_AR="$ac_prog"
5925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926    break 2
5927  fi
5928done
5929  done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934ac_ct_AR=$ac_cv_prog_ac_ct_AR
5935if test -n "$ac_ct_AR"; then
5936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5937$as_echo "$ac_ct_AR" >&6; }
5938else
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944  test -n "$ac_ct_AR" && break
5945done
5946
5947  if test "x$ac_ct_AR" = x; then
5948    AR="false"
5949  else
5950    case $cross_compiling:$ac_tool_warned in
5951yes:)
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954ac_tool_warned=yes ;;
5955esac
5956    AR=$ac_ct_AR
5957  fi
5958fi
5959
5960: ${AR=ar}
5961: ${AR_FLAGS=cru}
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5974$as_echo_n "checking for archiver @FILE support... " >&6; }
5975if ${lt_cv_ar_at_file+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  lt_cv_ar_at_file=no
5979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981
5982int
5983main ()
5984{
5985
5986  ;
5987  return 0;
5988}
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"; then :
5991  echo conftest.$ac_objext > conftest.lst
5992      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5993      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5994  (eval $lt_ar_try) 2>&5
5995  ac_status=$?
5996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5997  test $ac_status = 0; }
5998      if test 0 -eq "$ac_status"; then
5999	# Ensure the archiver fails upon bogus file names.
6000	rm -f conftest.$ac_objext libconftest.a
6001	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6002  (eval $lt_ar_try) 2>&5
6003  ac_status=$?
6004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005  test $ac_status = 0; }
6006	if test 0 -ne "$ac_status"; then
6007          lt_cv_ar_at_file=@
6008        fi
6009      fi
6010      rm -f conftest.* libconftest.a
6011
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6017$as_echo "$lt_cv_ar_at_file" >&6; }
6018
6019if test no = "$lt_cv_ar_at_file"; then
6020  archiver_list_spec=
6021else
6022  archiver_list_spec=$lt_cv_ar_at_file
6023fi
6024
6025
6026
6027
6028
6029
6030
6031if test -n "$ac_tool_prefix"; then
6032  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}strip; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if ${ac_cv_prog_STRIP+:} false; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$STRIP"; then
6040  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047    for ac_exec_ext in '' $ac_executable_extensions; do
6048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059STRIP=$ac_cv_prog_STRIP
6060if test -n "$STRIP"; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6062$as_echo "$STRIP" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068
6069fi
6070if test -z "$ac_cv_prog_STRIP"; then
6071  ac_ct_STRIP=$STRIP
6072  # Extract the first word of "strip", so it can be a program name with args.
6073set dummy strip; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$ac_ct_STRIP"; then
6080  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089    ac_cv_prog_ac_ct_STRIP="strip"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6100if test -n "$ac_ct_STRIP"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6102$as_echo "$ac_ct_STRIP" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108  if test "x$ac_ct_STRIP" = x; then
6109    STRIP=":"
6110  else
6111    case $cross_compiling:$ac_tool_warned in
6112yes:)
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115ac_tool_warned=yes ;;
6116esac
6117    STRIP=$ac_ct_STRIP
6118  fi
6119else
6120  STRIP="$ac_cv_prog_STRIP"
6121fi
6122
6123test -z "$STRIP" && STRIP=:
6124
6125
6126
6127
6128
6129
6130if test -n "$ac_tool_prefix"; then
6131  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134$as_echo_n "checking for $ac_word... " >&6; }
6135if ${ac_cv_prog_RANLIB+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  if test -n "$RANLIB"; then
6139  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146    for ac_exec_ext in '' $ac_executable_extensions; do
6147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153  done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158RANLIB=$ac_cv_prog_RANLIB
6159if test -n "$RANLIB"; then
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6161$as_echo "$RANLIB" >&6; }
6162else
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164$as_echo "no" >&6; }
6165fi
6166
6167
6168fi
6169if test -z "$ac_cv_prog_RANLIB"; then
6170  ac_ct_RANLIB=$RANLIB
6171  # Extract the first word of "ranlib", so it can be a program name with args.
6172set dummy ranlib; ac_word=$2
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174$as_echo_n "checking for $ac_word... " >&6; }
6175if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6176  $as_echo_n "(cached) " >&6
6177else
6178  if test -n "$ac_ct_RANLIB"; then
6179  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184  IFS=$as_save_IFS
6185  test -z "$as_dir" && as_dir=.
6186    for ac_exec_ext in '' $ac_executable_extensions; do
6187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188    ac_cv_prog_ac_ct_RANLIB="ranlib"
6189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190    break 2
6191  fi
6192done
6193  done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6199if test -n "$ac_ct_RANLIB"; then
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6201$as_echo "$ac_ct_RANLIB" >&6; }
6202else
6203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204$as_echo "no" >&6; }
6205fi
6206
6207  if test "x$ac_ct_RANLIB" = x; then
6208    RANLIB=":"
6209  else
6210    case $cross_compiling:$ac_tool_warned in
6211yes:)
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214ac_tool_warned=yes ;;
6215esac
6216    RANLIB=$ac_ct_RANLIB
6217  fi
6218else
6219  RANLIB="$ac_cv_prog_RANLIB"
6220fi
6221
6222test -z "$RANLIB" && RANLIB=:
6223
6224
6225
6226
6227
6228
6229# Determine commands to create old-style static archives.
6230old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6231old_postinstall_cmds='chmod 644 $oldlib'
6232old_postuninstall_cmds=
6233
6234if test -n "$RANLIB"; then
6235  case $host_os in
6236  bitrig* | openbsd*)
6237    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6238    ;;
6239  *)
6240    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6241    ;;
6242  esac
6243  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6244fi
6245
6246case $host_os in
6247  darwin*)
6248    lock_old_archive_extraction=yes ;;
6249  *)
6250    lock_old_archive_extraction=no ;;
6251esac
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291# If no C compiler was specified, use CC.
6292LTCC=${LTCC-"$CC"}
6293
6294# If no C compiler flags were specified, use CFLAGS.
6295LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6296
6297# Allow CC to be a program name with arguments.
6298compiler=$CC
6299
6300
6301# Check for command to grab the raw symbol name followed by C symbol from nm.
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6303$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6304if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307
6308# These are sane defaults that work on at least a few old systems.
6309# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6310
6311# Character class describing NM global symbol codes.
6312symcode='[BCDEGRST]'
6313
6314# Regexp to match symbols that can be accessed directly from C.
6315sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6316
6317# Define system-specific variables.
6318case $host_os in
6319aix*)
6320  symcode='[BCDT]'
6321  ;;
6322cygwin* | mingw* | pw32* | cegcc*)
6323  symcode='[ABCDGISTW]'
6324  ;;
6325hpux*)
6326  if test ia64 = "$host_cpu"; then
6327    symcode='[ABCDEGRST]'
6328  fi
6329  ;;
6330irix* | nonstopux*)
6331  symcode='[BCDEGRST]'
6332  ;;
6333osf*)
6334  symcode='[BCDEGQRST]'
6335  ;;
6336solaris*)
6337  symcode='[BDRT]'
6338  ;;
6339sco3.2v5*)
6340  symcode='[DT]'
6341  ;;
6342sysv4.2uw2*)
6343  symcode='[DT]'
6344  ;;
6345sysv5* | sco5v6* | unixware* | OpenUNIX*)
6346  symcode='[ABDT]'
6347  ;;
6348sysv4)
6349  symcode='[DFNSTU]'
6350  ;;
6351esac
6352
6353# If we're using GNU nm, then use its standard symbol codes.
6354case `$NM -V 2>&1` in
6355*GNU* | *'with BFD'*)
6356  symcode='[ABCDGIRSTW]' ;;
6357esac
6358
6359if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6360  # Gets list of data symbols to import.
6361  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6362  # Adjust the below global symbol transforms to fixup imported variables.
6363  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6364  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6365  lt_c_name_lib_hook="\
6366  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6367  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6368else
6369  # Disable hooks by default.
6370  lt_cv_sys_global_symbol_to_import=
6371  lt_cdecl_hook=
6372  lt_c_name_hook=
6373  lt_c_name_lib_hook=
6374fi
6375
6376# Transform an extracted symbol line into a proper C declaration.
6377# Some systems (esp. on ia64) link data and code symbols differently,
6378# so use this general approach.
6379lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6380$lt_cdecl_hook\
6381" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6382" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6383
6384# Transform an extracted symbol line into symbol name and symbol address
6385lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6386$lt_c_name_hook\
6387" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6388" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6389
6390# Transform an extracted symbol line into symbol name with lib prefix and
6391# symbol address.
6392lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6393$lt_c_name_lib_hook\
6394" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6395" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6396" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6397
6398# Handle CRLF in mingw tool chain
6399opt_cr=
6400case $build_os in
6401mingw*)
6402  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6403  ;;
6404esac
6405
6406# Try without a prefix underscore, then with it.
6407for ac_symprfx in "" "_"; do
6408
6409  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6410  symxfrm="\\1 $ac_symprfx\\2 \\2"
6411
6412  # Write the raw and C identifiers.
6413  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6414    # Fake it for dumpbin and say T for any non-static function,
6415    # D for any global variable and I for any imported variable.
6416    # Also find C++ and __fastcall symbols from MSVC++,
6417    # which start with @ or ?.
6418    lt_cv_sys_global_symbol_pipe="$AWK '"\
6419"     {last_section=section; section=\$ 3};"\
6420"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6421"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6422"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6423"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6424"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6425"     \$ 0!~/External *\|/{next};"\
6426"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6427"     {if(hide[section]) next};"\
6428"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6429"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6430"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6431"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6432"     ' prfx=^$ac_symprfx"
6433  else
6434    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6435  fi
6436  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6437
6438  # Check to see that the pipe works correctly.
6439  pipe_works=no
6440
6441  rm -f conftest*
6442  cat > conftest.$ac_ext <<_LT_EOF
6443#ifdef __cplusplus
6444extern "C" {
6445#endif
6446char nm_test_var;
6447void nm_test_func(void);
6448void nm_test_func(void){}
6449#ifdef __cplusplus
6450}
6451#endif
6452int main(){nm_test_var='a';nm_test_func();return(0);}
6453_LT_EOF
6454
6455  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6456  (eval $ac_compile) 2>&5
6457  ac_status=$?
6458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459  test $ac_status = 0; }; then
6460    # Now try to grab the symbols.
6461    nlist=conftest.nm
6462    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6463  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6464  ac_status=$?
6465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466  test $ac_status = 0; } && test -s "$nlist"; then
6467      # Try sorting and uniquifying the output.
6468      if sort "$nlist" | uniq > "$nlist"T; then
6469	mv -f "$nlist"T "$nlist"
6470      else
6471	rm -f "$nlist"T
6472      fi
6473
6474      # Make sure that we snagged all the symbols we need.
6475      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6476	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6477	  cat <<_LT_EOF > conftest.$ac_ext
6478/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6479#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6480/* DATA imports from DLLs on WIN32 can't be const, because runtime
6481   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6482# define LT_DLSYM_CONST
6483#elif defined __osf__
6484/* This system does not cope well with relocations in const data.  */
6485# define LT_DLSYM_CONST
6486#else
6487# define LT_DLSYM_CONST const
6488#endif
6489
6490#ifdef __cplusplus
6491extern "C" {
6492#endif
6493
6494_LT_EOF
6495	  # Now generate the symbol file.
6496	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6497
6498	  cat <<_LT_EOF >> conftest.$ac_ext
6499
6500/* The mapping between symbol names and symbols.  */
6501LT_DLSYM_CONST struct {
6502  const char *name;
6503  void       *address;
6504}
6505lt__PROGRAM__LTX_preloaded_symbols[] =
6506{
6507  { "@PROGRAM@", (void *) 0 },
6508_LT_EOF
6509	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6510	  cat <<\_LT_EOF >> conftest.$ac_ext
6511  {0, (void *) 0}
6512};
6513
6514/* This works around a problem in FreeBSD linker */
6515#ifdef FREEBSD_WORKAROUND
6516static const void *lt_preloaded_setup() {
6517  return lt__PROGRAM__LTX_preloaded_symbols;
6518}
6519#endif
6520
6521#ifdef __cplusplus
6522}
6523#endif
6524_LT_EOF
6525	  # Now try linking the two files.
6526	  mv conftest.$ac_objext conftstm.$ac_objext
6527	  lt_globsym_save_LIBS=$LIBS
6528	  lt_globsym_save_CFLAGS=$CFLAGS
6529	  LIBS=conftstm.$ac_objext
6530	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6531	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6532  (eval $ac_link) 2>&5
6533  ac_status=$?
6534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6536	    pipe_works=yes
6537	  fi
6538	  LIBS=$lt_globsym_save_LIBS
6539	  CFLAGS=$lt_globsym_save_CFLAGS
6540	else
6541	  echo "cannot find nm_test_func in $nlist" >&5
6542	fi
6543      else
6544	echo "cannot find nm_test_var in $nlist" >&5
6545      fi
6546    else
6547      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6548    fi
6549  else
6550    echo "$progname: failed program was:" >&5
6551    cat conftest.$ac_ext >&5
6552  fi
6553  rm -rf conftest* conftst*
6554
6555  # Do not use the global_symbol_pipe unless it works.
6556  if test yes = "$pipe_works"; then
6557    break
6558  else
6559    lt_cv_sys_global_symbol_pipe=
6560  fi
6561done
6562
6563fi
6564
6565if test -z "$lt_cv_sys_global_symbol_pipe"; then
6566  lt_cv_sys_global_symbol_to_cdecl=
6567fi
6568if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6570$as_echo "failed" >&6; }
6571else
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6573$as_echo "ok" >&6; }
6574fi
6575
6576# Response file support.
6577if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6578  nm_file_list_spec='@'
6579elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6580  nm_file_list_spec='@'
6581fi
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6620$as_echo_n "checking for sysroot... " >&6; }
6621
6622# Check whether --with-sysroot was given.
6623if test "${with_sysroot+set}" = set; then :
6624  withval=$with_sysroot;
6625else
6626  with_sysroot=no
6627fi
6628
6629
6630lt_sysroot=
6631case $with_sysroot in #(
6632 yes)
6633   if test yes = "$GCC"; then
6634     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6635   fi
6636   ;; #(
6637 /*)
6638   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6639   ;; #(
6640 no|'')
6641   ;; #(
6642 *)
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6644$as_echo "$with_sysroot" >&6; }
6645   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6646   ;;
6647esac
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6650$as_echo "${lt_sysroot:-no}" >&6; }
6651
6652
6653
6654
6655
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6657$as_echo_n "checking for a working dd... " >&6; }
6658if ${ac_cv_path_lt_DD+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  printf 0123456789abcdef0123456789abcdef >conftest.i
6662cat conftest.i conftest.i >conftest2.i
6663: ${lt_DD:=$DD}
6664if test -z "$lt_DD"; then
6665  ac_path_lt_DD_found=false
6666  # Loop through the user's path and test for each of PROGNAME-LIST
6667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672    for ac_prog in dd; do
6673    for ac_exec_ext in '' $ac_executable_extensions; do
6674      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6675      as_fn_executable_p "$ac_path_lt_DD" || continue
6676if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6677  cmp -s conftest.i conftest.out \
6678  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6679fi
6680      $ac_path_lt_DD_found && break 3
6681    done
6682  done
6683  done
6684IFS=$as_save_IFS
6685  if test -z "$ac_cv_path_lt_DD"; then
6686    :
6687  fi
6688else
6689  ac_cv_path_lt_DD=$lt_DD
6690fi
6691
6692rm -f conftest.i conftest2.i conftest.out
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6695$as_echo "$ac_cv_path_lt_DD" >&6; }
6696
6697
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6699$as_echo_n "checking how to truncate binary pipes... " >&6; }
6700if ${lt_cv_truncate_bin+:} false; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703  printf 0123456789abcdef0123456789abcdef >conftest.i
6704cat conftest.i conftest.i >conftest2.i
6705lt_cv_truncate_bin=
6706if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6707  cmp -s conftest.i conftest.out \
6708  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6709fi
6710rm -f conftest.i conftest2.i conftest.out
6711test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6714$as_echo "$lt_cv_truncate_bin" >&6; }
6715
6716
6717
6718
6719
6720
6721
6722# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6723func_cc_basename ()
6724{
6725    for cc_temp in $*""; do
6726      case $cc_temp in
6727        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6728        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6729        \-*) ;;
6730        *) break;;
6731      esac
6732    done
6733    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6734}
6735
6736# Check whether --enable-libtool-lock was given.
6737if test "${enable_libtool_lock+set}" = set; then :
6738  enableval=$enable_libtool_lock;
6739fi
6740
6741test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6742
6743# Some flags need to be propagated to the compiler or linker for good
6744# libtool support.
6745case $host in
6746ia64-*-hpux*)
6747  # Find out what ABI is being produced by ac_compile, and set mode
6748  # options accordingly.
6749  echo 'int i;' > conftest.$ac_ext
6750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6751  (eval $ac_compile) 2>&5
6752  ac_status=$?
6753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754  test $ac_status = 0; }; then
6755    case `/usr/bin/file conftest.$ac_objext` in
6756      *ELF-32*)
6757	HPUX_IA64_MODE=32
6758	;;
6759      *ELF-64*)
6760	HPUX_IA64_MODE=64
6761	;;
6762    esac
6763  fi
6764  rm -rf conftest*
6765  ;;
6766*-*-irix6*)
6767  # Find out what ABI is being produced by ac_compile, and set linker
6768  # options accordingly.
6769  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6770  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6771  (eval $ac_compile) 2>&5
6772  ac_status=$?
6773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774  test $ac_status = 0; }; then
6775    if test yes = "$lt_cv_prog_gnu_ld"; then
6776      case `/usr/bin/file conftest.$ac_objext` in
6777	*32-bit*)
6778	  LD="${LD-ld} -melf32bsmip"
6779	  ;;
6780	*N32*)
6781	  LD="${LD-ld} -melf32bmipn32"
6782	  ;;
6783	*64-bit*)
6784	  LD="${LD-ld} -melf64bmip"
6785	;;
6786      esac
6787    else
6788      case `/usr/bin/file conftest.$ac_objext` in
6789	*32-bit*)
6790	  LD="${LD-ld} -32"
6791	  ;;
6792	*N32*)
6793	  LD="${LD-ld} -n32"
6794	  ;;
6795	*64-bit*)
6796	  LD="${LD-ld} -64"
6797	  ;;
6798      esac
6799    fi
6800  fi
6801  rm -rf conftest*
6802  ;;
6803
6804mips64*-*linux*)
6805  # Find out what ABI is being produced by ac_compile, and set linker
6806  # options accordingly.
6807  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6808  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6809  (eval $ac_compile) 2>&5
6810  ac_status=$?
6811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812  test $ac_status = 0; }; then
6813    emul=elf
6814    case `/usr/bin/file conftest.$ac_objext` in
6815      *32-bit*)
6816	emul="${emul}32"
6817	;;
6818      *64-bit*)
6819	emul="${emul}64"
6820	;;
6821    esac
6822    case `/usr/bin/file conftest.$ac_objext` in
6823      *MSB*)
6824	emul="${emul}btsmip"
6825	;;
6826      *LSB*)
6827	emul="${emul}ltsmip"
6828	;;
6829    esac
6830    case `/usr/bin/file conftest.$ac_objext` in
6831      *N32*)
6832	emul="${emul}n32"
6833	;;
6834    esac
6835    LD="${LD-ld} -m $emul"
6836  fi
6837  rm -rf conftest*
6838  ;;
6839
6840x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6841s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6842  # Find out what ABI is being produced by ac_compile, and set linker
6843  # options accordingly.  Note that the listed cases only cover the
6844  # situations where additional linker options are needed (such as when
6845  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6846  # vice versa); the common cases where no linker options are needed do
6847  # not appear in the list.
6848  echo 'int i;' > conftest.$ac_ext
6849  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850  (eval $ac_compile) 2>&5
6851  ac_status=$?
6852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853  test $ac_status = 0; }; then
6854    case `/usr/bin/file conftest.o` in
6855      *32-bit*)
6856	case $host in
6857	  x86_64-*kfreebsd*-gnu)
6858	    LD="${LD-ld} -m elf_i386_fbsd"
6859	    ;;
6860	  x86_64-*linux*)
6861	    case `/usr/bin/file conftest.o` in
6862	      *x86-64*)
6863		LD="${LD-ld} -m elf32_x86_64"
6864		;;
6865	      *)
6866		LD="${LD-ld} -m elf_i386"
6867		;;
6868	    esac
6869	    ;;
6870	  powerpc64le-*linux*)
6871	    LD="${LD-ld} -m elf32lppclinux"
6872	    ;;
6873	  powerpc64-*linux*)
6874	    LD="${LD-ld} -m elf32ppclinux"
6875	    ;;
6876	  s390x-*linux*)
6877	    LD="${LD-ld} -m elf_s390"
6878	    ;;
6879	  sparc64-*linux*)
6880	    LD="${LD-ld} -m elf32_sparc"
6881	    ;;
6882	esac
6883	;;
6884      *64-bit*)
6885	case $host in
6886	  x86_64-*kfreebsd*-gnu)
6887	    LD="${LD-ld} -m elf_x86_64_fbsd"
6888	    ;;
6889	  x86_64-*linux*)
6890	    LD="${LD-ld} -m elf_x86_64"
6891	    ;;
6892	  powerpcle-*linux*)
6893	    LD="${LD-ld} -m elf64lppc"
6894	    ;;
6895	  powerpc-*linux*)
6896	    LD="${LD-ld} -m elf64ppc"
6897	    ;;
6898	  s390*-*linux*|s390*-*tpf*)
6899	    LD="${LD-ld} -m elf64_s390"
6900	    ;;
6901	  sparc*-*linux*)
6902	    LD="${LD-ld} -m elf64_sparc"
6903	    ;;
6904	esac
6905	;;
6906    esac
6907  fi
6908  rm -rf conftest*
6909  ;;
6910
6911*-*-sco3.2v5*)
6912  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6913  SAVE_CFLAGS=$CFLAGS
6914  CFLAGS="$CFLAGS -belf"
6915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6916$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6917if ${lt_cv_cc_needs_belf+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  ac_ext=c
6921ac_cpp='$CPP $CPPFLAGS'
6922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925
6926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928
6929int
6930main ()
6931{
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937if ac_fn_c_try_link "$LINENO"; then :
6938  lt_cv_cc_needs_belf=yes
6939else
6940  lt_cv_cc_needs_belf=no
6941fi
6942rm -f core conftest.err conftest.$ac_objext \
6943    conftest$ac_exeext conftest.$ac_ext
6944     ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6952$as_echo "$lt_cv_cc_needs_belf" >&6; }
6953  if test yes != "$lt_cv_cc_needs_belf"; then
6954    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6955    CFLAGS=$SAVE_CFLAGS
6956  fi
6957  ;;
6958*-*solaris*)
6959  # Find out what ABI is being produced by ac_compile, and set linker
6960  # options accordingly.
6961  echo 'int i;' > conftest.$ac_ext
6962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963  (eval $ac_compile) 2>&5
6964  ac_status=$?
6965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966  test $ac_status = 0; }; then
6967    case `/usr/bin/file conftest.o` in
6968    *64-bit*)
6969      case $lt_cv_prog_gnu_ld in
6970      yes*)
6971        case $host in
6972        i?86-*-solaris*|x86_64-*-solaris*)
6973          LD="${LD-ld} -m elf_x86_64"
6974          ;;
6975        sparc*-*-solaris*)
6976          LD="${LD-ld} -m elf64_sparc"
6977          ;;
6978        esac
6979        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6980        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6981          LD=${LD-ld}_sol2
6982        fi
6983        ;;
6984      *)
6985	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6986	  LD="${LD-ld} -64"
6987	fi
6988	;;
6989      esac
6990      ;;
6991    esac
6992  fi
6993  rm -rf conftest*
6994  ;;
6995esac
6996
6997need_locks=$enable_libtool_lock
6998
6999if test -n "$ac_tool_prefix"; then
7000  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}mt; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$MANIFEST_TOOL"; then
7008  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015    for ac_exec_ext in '' $ac_executable_extensions; do
7016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022  done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7028if test -n "$MANIFEST_TOOL"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7030$as_echo "$MANIFEST_TOOL" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
7038if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7039  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7040  # Extract the first word of "mt", so it can be a program name with args.
7041set dummy mt; ac_word=$2
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
7044if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  if test -n "$ac_ct_MANIFEST_TOOL"; then
7048  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055    for ac_exec_ext in '' $ac_executable_extensions; do
7056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059    break 2
7060  fi
7061done
7062  done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
7067ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7068if test -n "$ac_ct_MANIFEST_TOOL"; then
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7070$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7071else
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7077    MANIFEST_TOOL=":"
7078  else
7079    case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
7085    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7086  fi
7087else
7088  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7089fi
7090
7091test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7093$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7094if ${lt_cv_path_mainfest_tool+:} false; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  lt_cv_path_mainfest_tool=no
7098  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7099  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7100  cat conftest.err >&5
7101  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7102    lt_cv_path_mainfest_tool=yes
7103  fi
7104  rm -f conftest*
7105fi
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7107$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7108if test yes != "$lt_cv_path_mainfest_tool"; then
7109  MANIFEST_TOOL=:
7110fi
7111
7112
7113
7114
7115
7116
7117  case $host_os in
7118    rhapsody* | darwin*)
7119    if test -n "$ac_tool_prefix"; then
7120  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7121set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123$as_echo_n "checking for $ac_word... " >&6; }
7124if ${ac_cv_prog_DSYMUTIL+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  if test -n "$DSYMUTIL"; then
7128  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7129else
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133  IFS=$as_save_IFS
7134  test -z "$as_dir" && as_dir=.
7135    for ac_exec_ext in '' $ac_executable_extensions; do
7136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139    break 2
7140  fi
7141done
7142  done
7143IFS=$as_save_IFS
7144
7145fi
7146fi
7147DSYMUTIL=$ac_cv_prog_DSYMUTIL
7148if test -n "$DSYMUTIL"; then
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7150$as_echo "$DSYMUTIL" >&6; }
7151else
7152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
7154fi
7155
7156
7157fi
7158if test -z "$ac_cv_prog_DSYMUTIL"; then
7159  ac_ct_DSYMUTIL=$DSYMUTIL
7160  # Extract the first word of "dsymutil", so it can be a program name with args.
7161set dummy dsymutil; ac_word=$2
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163$as_echo_n "checking for $ac_word... " >&6; }
7164if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  if test -n "$ac_ct_DSYMUTIL"; then
7168  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173  IFS=$as_save_IFS
7174  test -z "$as_dir" && as_dir=.
7175    for ac_exec_ext in '' $ac_executable_extensions; do
7176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179    break 2
7180  fi
7181done
7182  done
7183IFS=$as_save_IFS
7184
7185fi
7186fi
7187ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7188if test -n "$ac_ct_DSYMUTIL"; then
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7190$as_echo "$ac_ct_DSYMUTIL" >&6; }
7191else
7192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193$as_echo "no" >&6; }
7194fi
7195
7196  if test "x$ac_ct_DSYMUTIL" = x; then
7197    DSYMUTIL=":"
7198  else
7199    case $cross_compiling:$ac_tool_warned in
7200yes:)
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203ac_tool_warned=yes ;;
7204esac
7205    DSYMUTIL=$ac_ct_DSYMUTIL
7206  fi
7207else
7208  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7209fi
7210
7211    if test -n "$ac_tool_prefix"; then
7212  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7213set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215$as_echo_n "checking for $ac_word... " >&6; }
7216if ${ac_cv_prog_NMEDIT+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  if test -n "$NMEDIT"; then
7220  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227    for ac_exec_ext in '' $ac_executable_extensions; do
7228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234  done
7235IFS=$as_save_IFS
7236
7237fi
7238fi
7239NMEDIT=$ac_cv_prog_NMEDIT
7240if test -n "$NMEDIT"; then
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7242$as_echo "$NMEDIT" >&6; }
7243else
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245$as_echo "no" >&6; }
7246fi
7247
7248
7249fi
7250if test -z "$ac_cv_prog_NMEDIT"; then
7251  ac_ct_NMEDIT=$NMEDIT
7252  # Extract the first word of "nmedit", so it can be a program name with args.
7253set dummy nmedit; ac_word=$2
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
7256if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  if test -n "$ac_ct_NMEDIT"; then
7260  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267    for ac_exec_ext in '' $ac_executable_extensions; do
7268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274  done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7280if test -n "$ac_ct_NMEDIT"; then
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7282$as_echo "$ac_ct_NMEDIT" >&6; }
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288  if test "x$ac_ct_NMEDIT" = x; then
7289    NMEDIT=":"
7290  else
7291    case $cross_compiling:$ac_tool_warned in
7292yes:)
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295ac_tool_warned=yes ;;
7296esac
7297    NMEDIT=$ac_ct_NMEDIT
7298  fi
7299else
7300  NMEDIT="$ac_cv_prog_NMEDIT"
7301fi
7302
7303    if test -n "$ac_tool_prefix"; then
7304  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7305set dummy ${ac_tool_prefix}lipo; ac_word=$2
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307$as_echo_n "checking for $ac_word... " >&6; }
7308if ${ac_cv_prog_LIPO+:} false; then :
7309  $as_echo_n "(cached) " >&6
7310else
7311  if test -n "$LIPO"; then
7312  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317  IFS=$as_save_IFS
7318  test -z "$as_dir" && as_dir=.
7319    for ac_exec_ext in '' $ac_executable_extensions; do
7320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326  done
7327IFS=$as_save_IFS
7328
7329fi
7330fi
7331LIPO=$ac_cv_prog_LIPO
7332if test -n "$LIPO"; then
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7334$as_echo "$LIPO" >&6; }
7335else
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337$as_echo "no" >&6; }
7338fi
7339
7340
7341fi
7342if test -z "$ac_cv_prog_LIPO"; then
7343  ac_ct_LIPO=$LIPO
7344  # Extract the first word of "lipo", so it can be a program name with args.
7345set dummy lipo; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test -n "$ac_ct_LIPO"; then
7352  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361    ac_cv_prog_ac_ct_LIPO="lipo"
7362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366  done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7372if test -n "$ac_ct_LIPO"; then
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7374$as_echo "$ac_ct_LIPO" >&6; }
7375else
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380  if test "x$ac_ct_LIPO" = x; then
7381    LIPO=":"
7382  else
7383    case $cross_compiling:$ac_tool_warned in
7384yes:)
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387ac_tool_warned=yes ;;
7388esac
7389    LIPO=$ac_ct_LIPO
7390  fi
7391else
7392  LIPO="$ac_cv_prog_LIPO"
7393fi
7394
7395    if test -n "$ac_tool_prefix"; then
7396  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7397set dummy ${ac_tool_prefix}otool; ac_word=$2
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if ${ac_cv_prog_OTOOL+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  if test -n "$OTOOL"; then
7404  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411    for ac_exec_ext in '' $ac_executable_extensions; do
7412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415    break 2
7416  fi
7417done
7418  done
7419IFS=$as_save_IFS
7420
7421fi
7422fi
7423OTOOL=$ac_cv_prog_OTOOL
7424if test -n "$OTOOL"; then
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7426$as_echo "$OTOOL" >&6; }
7427else
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430fi
7431
7432
7433fi
7434if test -z "$ac_cv_prog_OTOOL"; then
7435  ac_ct_OTOOL=$OTOOL
7436  # Extract the first word of "otool", so it can be a program name with args.
7437set dummy otool; ac_word=$2
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439$as_echo_n "checking for $ac_word... " >&6; }
7440if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7441  $as_echo_n "(cached) " >&6
7442else
7443  if test -n "$ac_ct_OTOOL"; then
7444  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7445else
7446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449  IFS=$as_save_IFS
7450  test -z "$as_dir" && as_dir=.
7451    for ac_exec_ext in '' $ac_executable_extensions; do
7452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453    ac_cv_prog_ac_ct_OTOOL="otool"
7454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455    break 2
7456  fi
7457done
7458  done
7459IFS=$as_save_IFS
7460
7461fi
7462fi
7463ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7464if test -n "$ac_ct_OTOOL"; then
7465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7466$as_echo "$ac_ct_OTOOL" >&6; }
7467else
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470fi
7471
7472  if test "x$ac_ct_OTOOL" = x; then
7473    OTOOL=":"
7474  else
7475    case $cross_compiling:$ac_tool_warned in
7476yes:)
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479ac_tool_warned=yes ;;
7480esac
7481    OTOOL=$ac_ct_OTOOL
7482  fi
7483else
7484  OTOOL="$ac_cv_prog_OTOOL"
7485fi
7486
7487    if test -n "$ac_tool_prefix"; then
7488  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7489set dummy ${ac_tool_prefix}otool64; ac_word=$2
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if ${ac_cv_prog_OTOOL64+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  if test -n "$OTOOL64"; then
7496  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501  IFS=$as_save_IFS
7502  test -z "$as_dir" && as_dir=.
7503    for ac_exec_ext in '' $ac_executable_extensions; do
7504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507    break 2
7508  fi
7509done
7510  done
7511IFS=$as_save_IFS
7512
7513fi
7514fi
7515OTOOL64=$ac_cv_prog_OTOOL64
7516if test -n "$OTOOL64"; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7518$as_echo "$OTOOL64" >&6; }
7519else
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
7522fi
7523
7524
7525fi
7526if test -z "$ac_cv_prog_OTOOL64"; then
7527  ac_ct_OTOOL64=$OTOOL64
7528  # Extract the first word of "otool64", so it can be a program name with args.
7529set dummy otool64; ac_word=$2
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7533  $as_echo_n "(cached) " >&6
7534else
7535  if test -n "$ac_ct_OTOOL64"; then
7536  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541  IFS=$as_save_IFS
7542  test -z "$as_dir" && as_dir=.
7543    for ac_exec_ext in '' $ac_executable_extensions; do
7544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545    ac_cv_prog_ac_ct_OTOOL64="otool64"
7546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547    break 2
7548  fi
7549done
7550  done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7556if test -n "$ac_ct_OTOOL64"; then
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7558$as_echo "$ac_ct_OTOOL64" >&6; }
7559else
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564  if test "x$ac_ct_OTOOL64" = x; then
7565    OTOOL64=":"
7566  else
7567    case $cross_compiling:$ac_tool_warned in
7568yes:)
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571ac_tool_warned=yes ;;
7572esac
7573    OTOOL64=$ac_ct_OTOOL64
7574  fi
7575else
7576  OTOOL64="$ac_cv_prog_OTOOL64"
7577fi
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7606$as_echo_n "checking for -single_module linker flag... " >&6; }
7607if ${lt_cv_apple_cc_single_mod+:} false; then :
7608  $as_echo_n "(cached) " >&6
7609else
7610  lt_cv_apple_cc_single_mod=no
7611      if test -z "$LT_MULTI_MODULE"; then
7612	# By default we will add the -single_module flag. You can override
7613	# by either setting the environment variable LT_MULTI_MODULE
7614	# non-empty at configure time, or by adding -multi_module to the
7615	# link flags.
7616	rm -rf libconftest.dylib*
7617	echo "int foo(void){return 1;}" > conftest.c
7618	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7619-dynamiclib -Wl,-single_module conftest.c" >&5
7620	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7621	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7622        _lt_result=$?
7623	# If there is a non-empty error log, and "single_module"
7624	# appears in it, assume the flag caused a linker warning
7625        if test -s conftest.err && $GREP single_module conftest.err; then
7626	  cat conftest.err >&5
7627	# Otherwise, if the output was created with a 0 exit code from
7628	# the compiler, it worked.
7629	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7630	  lt_cv_apple_cc_single_mod=yes
7631	else
7632	  cat conftest.err >&5
7633	fi
7634	rm -rf libconftest.dylib*
7635	rm -f conftest.*
7636      fi
7637fi
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7639$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7640
7641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7642$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7643if ${lt_cv_ld_exported_symbols_list+:} false; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  lt_cv_ld_exported_symbols_list=no
7647      save_LDFLAGS=$LDFLAGS
7648      echo "_main" > conftest.sym
7649      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7650      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661if ac_fn_c_try_link "$LINENO"; then :
7662  lt_cv_ld_exported_symbols_list=yes
7663else
7664  lt_cv_ld_exported_symbols_list=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext \
7667    conftest$ac_exeext conftest.$ac_ext
7668	LDFLAGS=$save_LDFLAGS
7669
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7672$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7673
7674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7675$as_echo_n "checking for -force_load linker flag... " >&6; }
7676if ${lt_cv_ld_force_load+:} false; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  lt_cv_ld_force_load=no
7680      cat > conftest.c << _LT_EOF
7681int forced_loaded() { return 2;}
7682_LT_EOF
7683      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7684      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7685      echo "$AR cru libconftest.a conftest.o" >&5
7686      $AR cru libconftest.a conftest.o 2>&5
7687      echo "$RANLIB libconftest.a" >&5
7688      $RANLIB libconftest.a 2>&5
7689      cat > conftest.c << _LT_EOF
7690int main() { return 0;}
7691_LT_EOF
7692      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7693      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7694      _lt_result=$?
7695      if test -s conftest.err && $GREP force_load conftest.err; then
7696	cat conftest.err >&5
7697      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7698	lt_cv_ld_force_load=yes
7699      else
7700	cat conftest.err >&5
7701      fi
7702        rm -f conftest.err libconftest.a conftest conftest.c
7703        rm -rf conftest.dSYM
7704
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7707$as_echo "$lt_cv_ld_force_load" >&6; }
7708    case $host_os in
7709    rhapsody* | darwin1.[012])
7710      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7711    darwin1.*)
7712      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7713    darwin*) # darwin 5.x on
7714      # if running on 10.5 or later, the deployment target defaults
7715      # to the OS version, if on x86, and 10.4, the deployment
7716      # target defaults to 10.4. Don't you love it?
7717      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7718	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7719	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7720	10.[012][,.]*)
7721	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7722	10.*)
7723	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7724      esac
7725    ;;
7726  esac
7727    if test yes = "$lt_cv_apple_cc_single_mod"; then
7728      _lt_dar_single_mod='$single_module'
7729    fi
7730    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7731      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7732    else
7733      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7734    fi
7735    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7736      _lt_dsymutil='~$DSYMUTIL $lib || :'
7737    else
7738      _lt_dsymutil=
7739    fi
7740    ;;
7741  esac
7742
7743# func_munge_path_list VARIABLE PATH
7744# -----------------------------------
7745# VARIABLE is name of variable containing _space_ separated list of
7746# directories to be munged by the contents of PATH, which is string
7747# having a format:
7748# "DIR[:DIR]:"
7749#       string "DIR[ DIR]" will be prepended to VARIABLE
7750# ":DIR[:DIR]"
7751#       string "DIR[ DIR]" will be appended to VARIABLE
7752# "DIRP[:DIRP]::[DIRA:]DIRA"
7753#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7754#       "DIRA[ DIRA]" will be appended to VARIABLE
7755# "DIR[:DIR]"
7756#       VARIABLE will be replaced by "DIR[ DIR]"
7757func_munge_path_list ()
7758{
7759    case x$2 in
7760    x)
7761        ;;
7762    *:)
7763        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7764        ;;
7765    x:*)
7766        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7767        ;;
7768    *::*)
7769        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7770        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7771        ;;
7772    *)
7773        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7774        ;;
7775    esac
7776}
7777
7778ac_ext=c
7779ac_cpp='$CPP $CPPFLAGS'
7780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7784$as_echo_n "checking how to run the C preprocessor... " >&6; }
7785# On Suns, sometimes $CPP names a directory.
7786if test -n "$CPP" && test -d "$CPP"; then
7787  CPP=
7788fi
7789if test -z "$CPP"; then
7790  if ${ac_cv_prog_CPP+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793      # Double quotes because CPP needs to be expanded
7794    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7795    do
7796      ac_preproc_ok=false
7797for ac_c_preproc_warn_flag in '' yes
7798do
7799  # Use a header file that comes with gcc, so configuring glibc
7800  # with a fresh cross-compiler works.
7801  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802  # <limits.h> exists even on freestanding compilers.
7803  # On the NeXT, cc -E runs the code through the compiler's parser,
7804  # not just through cpp. "Syntax error" is here to catch this case.
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807#ifdef __STDC__
7808# include <limits.h>
7809#else
7810# include <assert.h>
7811#endif
7812		     Syntax error
7813_ACEOF
7814if ac_fn_c_try_cpp "$LINENO"; then :
7815
7816else
7817  # Broken: fails on valid input.
7818continue
7819fi
7820rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822  # OK, works on sane cases.  Now check whether nonexistent headers
7823  # can be detected and how.
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826#include <ac_nonexistent.h>
7827_ACEOF
7828if ac_fn_c_try_cpp "$LINENO"; then :
7829  # Broken: success on invalid input.
7830continue
7831else
7832  # Passes both tests.
7833ac_preproc_ok=:
7834break
7835fi
7836rm -f conftest.err conftest.i conftest.$ac_ext
7837
7838done
7839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840rm -f conftest.i conftest.err conftest.$ac_ext
7841if $ac_preproc_ok; then :
7842  break
7843fi
7844
7845    done
7846    ac_cv_prog_CPP=$CPP
7847
7848fi
7849  CPP=$ac_cv_prog_CPP
7850else
7851  ac_cv_prog_CPP=$CPP
7852fi
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7854$as_echo "$CPP" >&6; }
7855ac_preproc_ok=false
7856for ac_c_preproc_warn_flag in '' yes
7857do
7858  # Use a header file that comes with gcc, so configuring glibc
7859  # with a fresh cross-compiler works.
7860  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861  # <limits.h> exists even on freestanding compilers.
7862  # On the NeXT, cc -E runs the code through the compiler's parser,
7863  # not just through cpp. "Syntax error" is here to catch this case.
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866#ifdef __STDC__
7867# include <limits.h>
7868#else
7869# include <assert.h>
7870#endif
7871		     Syntax error
7872_ACEOF
7873if ac_fn_c_try_cpp "$LINENO"; then :
7874
7875else
7876  # Broken: fails on valid input.
7877continue
7878fi
7879rm -f conftest.err conftest.i conftest.$ac_ext
7880
7881  # OK, works on sane cases.  Now check whether nonexistent headers
7882  # can be detected and how.
7883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885#include <ac_nonexistent.h>
7886_ACEOF
7887if ac_fn_c_try_cpp "$LINENO"; then :
7888  # Broken: success on invalid input.
7889continue
7890else
7891  # Passes both tests.
7892ac_preproc_ok=:
7893break
7894fi
7895rm -f conftest.err conftest.i conftest.$ac_ext
7896
7897done
7898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7899rm -f conftest.i conftest.err conftest.$ac_ext
7900if $ac_preproc_ok; then :
7901
7902else
7903  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7905as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7906See \`config.log' for more details" "$LINENO" 5; }
7907fi
7908
7909ac_ext=c
7910ac_cpp='$CPP $CPPFLAGS'
7911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
7915
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7917$as_echo_n "checking for ANSI C header files... " >&6; }
7918if ${ac_cv_header_stdc+:} false; then :
7919  $as_echo_n "(cached) " >&6
7920else
7921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h.  */
7923#include <stdlib.h>
7924#include <stdarg.h>
7925#include <string.h>
7926#include <float.h>
7927
7928int
7929main ()
7930{
7931
7932  ;
7933  return 0;
7934}
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"; then :
7937  ac_cv_header_stdc=yes
7938else
7939  ac_cv_header_stdc=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942
7943if test $ac_cv_header_stdc = yes; then
7944  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h.  */
7947#include <string.h>
7948
7949_ACEOF
7950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951  $EGREP "memchr" >/dev/null 2>&1; then :
7952
7953else
7954  ac_cv_header_stdc=no
7955fi
7956rm -f conftest*
7957
7958fi
7959
7960if test $ac_cv_header_stdc = yes; then
7961  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964#include <stdlib.h>
7965
7966_ACEOF
7967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968  $EGREP "free" >/dev/null 2>&1; then :
7969
7970else
7971  ac_cv_header_stdc=no
7972fi
7973rm -f conftest*
7974
7975fi
7976
7977if test $ac_cv_header_stdc = yes; then
7978  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7979  if test "$cross_compiling" = yes; then :
7980  :
7981else
7982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984#include <ctype.h>
7985#include <stdlib.h>
7986#if ((' ' & 0x0FF) == 0x020)
7987# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7988# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7989#else
7990# define ISLOWER(c) \
7991		   (('a' <= (c) && (c) <= 'i') \
7992		     || ('j' <= (c) && (c) <= 'r') \
7993		     || ('s' <= (c) && (c) <= 'z'))
7994# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7995#endif
7996
7997#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7998int
7999main ()
8000{
8001  int i;
8002  for (i = 0; i < 256; i++)
8003    if (XOR (islower (i), ISLOWER (i))
8004	|| toupper (i) != TOUPPER (i))
8005      return 2;
8006  return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_run "$LINENO"; then :
8010
8011else
8012  ac_cv_header_stdc=no
8013fi
8014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8015  conftest.$ac_objext conftest.beam conftest.$ac_ext
8016fi
8017
8018fi
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8021$as_echo "$ac_cv_header_stdc" >&6; }
8022if test $ac_cv_header_stdc = yes; then
8023
8024$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8025
8026fi
8027
8028# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8029for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030		  inttypes.h stdint.h unistd.h
8031do :
8032  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8034"
8035if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8036  cat >>confdefs.h <<_ACEOF
8037#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8038_ACEOF
8039
8040fi
8041
8042done
8043
8044
8045for ac_header in dlfcn.h
8046do :
8047  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8048"
8049if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8050  cat >>confdefs.h <<_ACEOF
8051#define HAVE_DLFCN_H 1
8052_ACEOF
8053
8054fi
8055
8056done
8057
8058
8059
8060
8061
8062# Set options
8063
8064
8065
8066        enable_dlopen=no
8067
8068
8069  enable_win32_dll=no
8070
8071
8072            # Check whether --enable-shared was given.
8073if test "${enable_shared+set}" = set; then :
8074  enableval=$enable_shared; p=${PACKAGE-default}
8075    case $enableval in
8076    yes) enable_shared=yes ;;
8077    no) enable_shared=no ;;
8078    *)
8079      enable_shared=no
8080      # Look at the argument we got.  We use all the common list separators.
8081      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8082      for pkg in $enableval; do
8083	IFS=$lt_save_ifs
8084	if test "X$pkg" = "X$p"; then
8085	  enable_shared=yes
8086	fi
8087      done
8088      IFS=$lt_save_ifs
8089      ;;
8090    esac
8091else
8092  enable_shared=yes
8093fi
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103  # Check whether --enable-static was given.
8104if test "${enable_static+set}" = set; then :
8105  enableval=$enable_static; p=${PACKAGE-default}
8106    case $enableval in
8107    yes) enable_static=yes ;;
8108    no) enable_static=no ;;
8109    *)
8110     enable_static=no
8111      # Look at the argument we got.  We use all the common list separators.
8112      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8113      for pkg in $enableval; do
8114	IFS=$lt_save_ifs
8115	if test "X$pkg" = "X$p"; then
8116	  enable_static=yes
8117	fi
8118      done
8119      IFS=$lt_save_ifs
8120      ;;
8121    esac
8122else
8123  enable_static=yes
8124fi
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135# Check whether --with-pic was given.
8136if test "${with_pic+set}" = set; then :
8137  withval=$with_pic; lt_p=${PACKAGE-default}
8138    case $withval in
8139    yes|no) pic_mode=$withval ;;
8140    *)
8141      pic_mode=default
8142      # Look at the argument we got.  We use all the common list separators.
8143      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8144      for lt_pkg in $withval; do
8145	IFS=$lt_save_ifs
8146	if test "X$lt_pkg" = "X$lt_p"; then
8147	  pic_mode=yes
8148	fi
8149      done
8150      IFS=$lt_save_ifs
8151      ;;
8152    esac
8153else
8154  pic_mode=default
8155fi
8156
8157
8158
8159
8160
8161
8162
8163
8164  # Check whether --enable-fast-install was given.
8165if test "${enable_fast_install+set}" = set; then :
8166  enableval=$enable_fast_install; p=${PACKAGE-default}
8167    case $enableval in
8168    yes) enable_fast_install=yes ;;
8169    no) enable_fast_install=no ;;
8170    *)
8171      enable_fast_install=no
8172      # Look at the argument we got.  We use all the common list separators.
8173      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8174      for pkg in $enableval; do
8175	IFS=$lt_save_ifs
8176	if test "X$pkg" = "X$p"; then
8177	  enable_fast_install=yes
8178	fi
8179      done
8180      IFS=$lt_save_ifs
8181      ;;
8182    esac
8183else
8184  enable_fast_install=yes
8185fi
8186
8187
8188
8189
8190
8191
8192
8193
8194  shared_archive_member_spec=
8195case $host,$enable_shared in
8196power*-*-aix[5-9]*,yes)
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8198$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8199
8200# Check whether --with-aix-soname was given.
8201if test "${with_aix_soname+set}" = set; then :
8202  withval=$with_aix_soname; case $withval in
8203    aix|svr4|both)
8204      ;;
8205    *)
8206      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8207      ;;
8208    esac
8209    lt_cv_with_aix_soname=$with_aix_soname
8210else
8211  if ${lt_cv_with_aix_soname+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  lt_cv_with_aix_soname=aix
8215fi
8216
8217    with_aix_soname=$lt_cv_with_aix_soname
8218fi
8219
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8221$as_echo "$with_aix_soname" >&6; }
8222  if test aix != "$with_aix_soname"; then
8223    # For the AIX way of multilib, we name the shared archive member
8224    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8225    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8226    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8227    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8228    if test 64 = "${OBJECT_MODE-32}"; then
8229      shared_archive_member_spec=shr_64
8230    else
8231      shared_archive_member_spec=shr
8232    fi
8233  fi
8234  ;;
8235*)
8236  with_aix_soname=aix
8237  ;;
8238esac
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249# This can be used to rebuild libtool when needed
8250LIBTOOL_DEPS=$ltmain
8251
8252# Always use our own libtool.
8253LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284test -z "$LN_S" && LN_S="ln -s"
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299if test -n "${ZSH_VERSION+set}"; then
8300   setopt NO_GLOB_SUBST
8301fi
8302
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8304$as_echo_n "checking for objdir... " >&6; }
8305if ${lt_cv_objdir+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  rm -f .libs 2>/dev/null
8309mkdir .libs 2>/dev/null
8310if test -d .libs; then
8311  lt_cv_objdir=.libs
8312else
8313  # MS-DOS does not allow filenames that begin with a dot.
8314  lt_cv_objdir=_libs
8315fi
8316rmdir .libs 2>/dev/null
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8319$as_echo "$lt_cv_objdir" >&6; }
8320objdir=$lt_cv_objdir
8321
8322
8323
8324
8325
8326cat >>confdefs.h <<_ACEOF
8327#define LT_OBJDIR "$lt_cv_objdir/"
8328_ACEOF
8329
8330
8331
8332
8333case $host_os in
8334aix3*)
8335  # AIX sometimes has problems with the GCC collect2 program.  For some
8336  # reason, if we set the COLLECT_NAMES environment variable, the problems
8337  # vanish in a puff of smoke.
8338  if test set != "${COLLECT_NAMES+set}"; then
8339    COLLECT_NAMES=
8340    export COLLECT_NAMES
8341  fi
8342  ;;
8343esac
8344
8345# Global variables:
8346ofile=libtool
8347can_build_shared=yes
8348
8349# All known linkers require a '.a' archive for static linking (except MSVC,
8350# which needs '.lib').
8351libext=a
8352
8353with_gnu_ld=$lt_cv_prog_gnu_ld
8354
8355old_CC=$CC
8356old_CFLAGS=$CFLAGS
8357
8358# Set sane defaults for various variables
8359test -z "$CC" && CC=cc
8360test -z "$LTCC" && LTCC=$CC
8361test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8362test -z "$LD" && LD=ld
8363test -z "$ac_objext" && ac_objext=o
8364
8365func_cc_basename $compiler
8366cc_basename=$func_cc_basename_result
8367
8368
8369# Only perform the check for file, if the check method requires it
8370test -z "$MAGIC_CMD" && MAGIC_CMD=file
8371case $deplibs_check_method in
8372file_magic*)
8373  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8375$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8376if ${lt_cv_path_MAGIC_CMD+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  case $MAGIC_CMD in
8380[\\/*] |  ?:[\\/]*)
8381  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8382  ;;
8383*)
8384  lt_save_MAGIC_CMD=$MAGIC_CMD
8385  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8386  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8387  for ac_dir in $ac_dummy; do
8388    IFS=$lt_save_ifs
8389    test -z "$ac_dir" && ac_dir=.
8390    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8391      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8392      if test -n "$file_magic_test_file"; then
8393	case $deplibs_check_method in
8394	"file_magic "*)
8395	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8396	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8397	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8398	    $EGREP "$file_magic_regex" > /dev/null; then
8399	    :
8400	  else
8401	    cat <<_LT_EOF 1>&2
8402
8403*** Warning: the command libtool uses to detect shared libraries,
8404*** $file_magic_cmd, produces output that libtool cannot recognize.
8405*** The result is that libtool may fail to recognize shared libraries
8406*** as such.  This will affect the creation of libtool libraries that
8407*** depend on shared libraries, but programs linked with such libtool
8408*** libraries will work regardless of this problem.  Nevertheless, you
8409*** may want to report the problem to your system manager and/or to
8410*** bug-libtool@gnu.org
8411
8412_LT_EOF
8413	  fi ;;
8414	esac
8415      fi
8416      break
8417    fi
8418  done
8419  IFS=$lt_save_ifs
8420  MAGIC_CMD=$lt_save_MAGIC_CMD
8421  ;;
8422esac
8423fi
8424
8425MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8426if test -n "$MAGIC_CMD"; then
8427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8428$as_echo "$MAGIC_CMD" >&6; }
8429else
8430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431$as_echo "no" >&6; }
8432fi
8433
8434
8435
8436
8437
8438if test -z "$lt_cv_path_MAGIC_CMD"; then
8439  if test -n "$ac_tool_prefix"; then
8440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8441$as_echo_n "checking for file... " >&6; }
8442if ${lt_cv_path_MAGIC_CMD+:} false; then :
8443  $as_echo_n "(cached) " >&6
8444else
8445  case $MAGIC_CMD in
8446[\\/*] |  ?:[\\/]*)
8447  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8448  ;;
8449*)
8450  lt_save_MAGIC_CMD=$MAGIC_CMD
8451  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8452  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8453  for ac_dir in $ac_dummy; do
8454    IFS=$lt_save_ifs
8455    test -z "$ac_dir" && ac_dir=.
8456    if test -f "$ac_dir/file"; then
8457      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8458      if test -n "$file_magic_test_file"; then
8459	case $deplibs_check_method in
8460	"file_magic "*)
8461	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8462	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8463	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8464	    $EGREP "$file_magic_regex" > /dev/null; then
8465	    :
8466	  else
8467	    cat <<_LT_EOF 1>&2
8468
8469*** Warning: the command libtool uses to detect shared libraries,
8470*** $file_magic_cmd, produces output that libtool cannot recognize.
8471*** The result is that libtool may fail to recognize shared libraries
8472*** as such.  This will affect the creation of libtool libraries that
8473*** depend on shared libraries, but programs linked with such libtool
8474*** libraries will work regardless of this problem.  Nevertheless, you
8475*** may want to report the problem to your system manager and/or to
8476*** bug-libtool@gnu.org
8477
8478_LT_EOF
8479	  fi ;;
8480	esac
8481      fi
8482      break
8483    fi
8484  done
8485  IFS=$lt_save_ifs
8486  MAGIC_CMD=$lt_save_MAGIC_CMD
8487  ;;
8488esac
8489fi
8490
8491MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8492if test -n "$MAGIC_CMD"; then
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8494$as_echo "$MAGIC_CMD" >&6; }
8495else
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
8498fi
8499
8500
8501  else
8502    MAGIC_CMD=:
8503  fi
8504fi
8505
8506  fi
8507  ;;
8508esac
8509
8510# Use C for the default configuration in the libtool script
8511
8512lt_save_CC=$CC
8513ac_ext=c
8514ac_cpp='$CPP $CPPFLAGS'
8515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517ac_compiler_gnu=$ac_cv_c_compiler_gnu
8518
8519
8520# Source file extension for C test sources.
8521ac_ext=c
8522
8523# Object file extension for compiled C test sources.
8524objext=o
8525objext=$objext
8526
8527# Code to be used in simple compile tests
8528lt_simple_compile_test_code="int some_variable = 0;"
8529
8530# Code to be used in simple link tests
8531lt_simple_link_test_code='int main(){return(0);}'
8532
8533
8534
8535
8536
8537
8538
8539# If no C compiler was specified, use CC.
8540LTCC=${LTCC-"$CC"}
8541
8542# If no C compiler flags were specified, use CFLAGS.
8543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8544
8545# Allow CC to be a program name with arguments.
8546compiler=$CC
8547
8548# Save the default compiler, since it gets overwritten when the other
8549# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8550compiler_DEFAULT=$CC
8551
8552# save warnings/boilerplate of simple test code
8553ac_outfile=conftest.$ac_objext
8554echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8555eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8556_lt_compiler_boilerplate=`cat conftest.err`
8557$RM conftest*
8558
8559ac_outfile=conftest.$ac_objext
8560echo "$lt_simple_link_test_code" >conftest.$ac_ext
8561eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8562_lt_linker_boilerplate=`cat conftest.err`
8563$RM -r conftest*
8564
8565
8566if test -n "$compiler"; then
8567
8568lt_prog_compiler_no_builtin_flag=
8569
8570if test yes = "$GCC"; then
8571  case $cc_basename in
8572  nvcc*)
8573    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8574  *)
8575    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8576  esac
8577
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8579$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8580if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  lt_cv_prog_compiler_rtti_exceptions=no
8584   ac_outfile=conftest.$ac_objext
8585   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8586   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8587   # Insert the option either (1) after the last *FLAGS variable, or
8588   # (2) before a word containing "conftest.", or (3) at the end.
8589   # Note that $ac_compile itself does not contain backslashes and begins
8590   # with a dollar sign (not a hyphen), so the echo should work correctly.
8591   # The option is referenced via a variable to avoid confusing sed.
8592   lt_compile=`echo "$ac_compile" | $SED \
8593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595   -e 's:$: $lt_compiler_flag:'`
8596   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8597   (eval "$lt_compile" 2>conftest.err)
8598   ac_status=$?
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   if (exit $ac_status) && test -s "$ac_outfile"; then
8602     # The compiler can only warn and ignore the option if not recognized
8603     # So say no if there are warnings other than the usual output.
8604     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8605     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8606     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8607       lt_cv_prog_compiler_rtti_exceptions=yes
8608     fi
8609   fi
8610   $RM conftest*
8611
8612fi
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8614$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8615
8616if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8617    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8618else
8619    :
8620fi
8621
8622fi
8623
8624
8625
8626
8627
8628
8629  lt_prog_compiler_wl=
8630lt_prog_compiler_pic=
8631lt_prog_compiler_static=
8632
8633
8634  if test yes = "$GCC"; then
8635    lt_prog_compiler_wl='-Wl,'
8636    lt_prog_compiler_static='-static'
8637
8638    case $host_os in
8639      aix*)
8640      # All AIX code is PIC.
8641      if test ia64 = "$host_cpu"; then
8642	# AIX 5 now supports IA64 processor
8643	lt_prog_compiler_static='-Bstatic'
8644      fi
8645      lt_prog_compiler_pic='-fPIC'
8646      ;;
8647
8648    amigaos*)
8649      case $host_cpu in
8650      powerpc)
8651            # see comment about AmigaOS4 .so support
8652            lt_prog_compiler_pic='-fPIC'
8653        ;;
8654      m68k)
8655            # FIXME: we need at least 68020 code to build shared libraries, but
8656            # adding the '-m68020' flag to GCC prevents building anything better,
8657            # like '-m68040'.
8658            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8659        ;;
8660      esac
8661      ;;
8662
8663    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8664      # PIC is the default for these OSes.
8665      ;;
8666
8667    mingw* | cygwin* | pw32* | os2* | cegcc*)
8668      # This hack is so that the source file can tell whether it is being
8669      # built for inclusion in a dll (and should export symbols for example).
8670      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8671      # (--disable-auto-import) libraries
8672      lt_prog_compiler_pic='-DDLL_EXPORT'
8673      case $host_os in
8674      os2*)
8675	lt_prog_compiler_static='$wl-static'
8676	;;
8677      esac
8678      ;;
8679
8680    darwin* | rhapsody*)
8681      # PIC is the default on this platform
8682      # Common symbols not allowed in MH_DYLIB files
8683      lt_prog_compiler_pic='-fno-common'
8684      ;;
8685
8686    haiku*)
8687      # PIC is the default for Haiku.
8688      # The "-static" flag exists, but is broken.
8689      lt_prog_compiler_static=
8690      ;;
8691
8692    hpux*)
8693      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8694      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8695      # sets the default TLS model and affects inlining.
8696      case $host_cpu in
8697      hppa*64*)
8698	# +Z the default
8699	;;
8700      *)
8701	lt_prog_compiler_pic='-fPIC'
8702	;;
8703      esac
8704      ;;
8705
8706    interix[3-9]*)
8707      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8708      # Instead, we relocate shared libraries at runtime.
8709      ;;
8710
8711    msdosdjgpp*)
8712      # Just because we use GCC doesn't mean we suddenly get shared libraries
8713      # on systems that don't support them.
8714      lt_prog_compiler_can_build_shared=no
8715      enable_shared=no
8716      ;;
8717
8718    *nto* | *qnx*)
8719      # QNX uses GNU C++, but need to define -shared option too, otherwise
8720      # it will coredump.
8721      lt_prog_compiler_pic='-fPIC -shared'
8722      ;;
8723
8724    sysv4*MP*)
8725      if test -d /usr/nec; then
8726	lt_prog_compiler_pic=-Kconform_pic
8727      fi
8728      ;;
8729
8730    *)
8731      lt_prog_compiler_pic='-fPIC'
8732      ;;
8733    esac
8734
8735    case $cc_basename in
8736    nvcc*) # Cuda Compiler Driver 2.2
8737      lt_prog_compiler_wl='-Xlinker '
8738      if test -n "$lt_prog_compiler_pic"; then
8739        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8740      fi
8741      ;;
8742    esac
8743  else
8744    # PORTME Check for flag to pass linker flags through the system compiler.
8745    case $host_os in
8746    aix*)
8747      lt_prog_compiler_wl='-Wl,'
8748      if test ia64 = "$host_cpu"; then
8749	# AIX 5 now supports IA64 processor
8750	lt_prog_compiler_static='-Bstatic'
8751      else
8752	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8753      fi
8754      ;;
8755
8756    darwin* | rhapsody*)
8757      # PIC is the default on this platform
8758      # Common symbols not allowed in MH_DYLIB files
8759      lt_prog_compiler_pic='-fno-common'
8760      case $cc_basename in
8761      nagfor*)
8762        # NAG Fortran compiler
8763        lt_prog_compiler_wl='-Wl,-Wl,,'
8764        lt_prog_compiler_pic='-PIC'
8765        lt_prog_compiler_static='-Bstatic'
8766        ;;
8767      esac
8768      ;;
8769
8770    mingw* | cygwin* | pw32* | os2* | cegcc*)
8771      # This hack is so that the source file can tell whether it is being
8772      # built for inclusion in a dll (and should export symbols for example).
8773      lt_prog_compiler_pic='-DDLL_EXPORT'
8774      case $host_os in
8775      os2*)
8776	lt_prog_compiler_static='$wl-static'
8777	;;
8778      esac
8779      ;;
8780
8781    hpux9* | hpux10* | hpux11*)
8782      lt_prog_compiler_wl='-Wl,'
8783      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8784      # not for PA HP-UX.
8785      case $host_cpu in
8786      hppa*64*|ia64*)
8787	# +Z the default
8788	;;
8789      *)
8790	lt_prog_compiler_pic='+Z'
8791	;;
8792      esac
8793      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8794      lt_prog_compiler_static='$wl-a ${wl}archive'
8795      ;;
8796
8797    irix5* | irix6* | nonstopux*)
8798      lt_prog_compiler_wl='-Wl,'
8799      # PIC (with -KPIC) is the default.
8800      lt_prog_compiler_static='-non_shared'
8801      ;;
8802
8803    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8804      case $cc_basename in
8805      # old Intel for x86_64, which still supported -KPIC.
8806      ecc*)
8807	lt_prog_compiler_wl='-Wl,'
8808	lt_prog_compiler_pic='-KPIC'
8809	lt_prog_compiler_static='-static'
8810        ;;
8811      # icc used to be incompatible with GCC.
8812      # ICC 10 doesn't accept -KPIC any more.
8813      icc* | ifort*)
8814	lt_prog_compiler_wl='-Wl,'
8815	lt_prog_compiler_pic='-fPIC'
8816	lt_prog_compiler_static='-static'
8817        ;;
8818      # Lahey Fortran 8.1.
8819      lf95*)
8820	lt_prog_compiler_wl='-Wl,'
8821	lt_prog_compiler_pic='--shared'
8822	lt_prog_compiler_static='--static'
8823	;;
8824      nagfor*)
8825	# NAG Fortran compiler
8826	lt_prog_compiler_wl='-Wl,-Wl,,'
8827	lt_prog_compiler_pic='-PIC'
8828	lt_prog_compiler_static='-Bstatic'
8829	;;
8830      tcc*)
8831	# Fabrice Bellard et al's Tiny C Compiler
8832	lt_prog_compiler_wl='-Wl,'
8833	lt_prog_compiler_pic='-fPIC'
8834	lt_prog_compiler_static='-static'
8835	;;
8836      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8837        # Portland Group compilers (*not* the Pentium gcc compiler,
8838	# which looks to be a dead project)
8839	lt_prog_compiler_wl='-Wl,'
8840	lt_prog_compiler_pic='-fpic'
8841	lt_prog_compiler_static='-Bstatic'
8842        ;;
8843      ccc*)
8844        lt_prog_compiler_wl='-Wl,'
8845        # All Alpha code is PIC.
8846        lt_prog_compiler_static='-non_shared'
8847        ;;
8848      xl* | bgxl* | bgf* | mpixl*)
8849	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8850	lt_prog_compiler_wl='-Wl,'
8851	lt_prog_compiler_pic='-qpic'
8852	lt_prog_compiler_static='-qstaticlink'
8853	;;
8854      *)
8855	case `$CC -V 2>&1 | sed 5q` in
8856	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8857	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8858	  lt_prog_compiler_pic='-KPIC'
8859	  lt_prog_compiler_static='-Bstatic'
8860	  lt_prog_compiler_wl=''
8861	  ;;
8862	*Sun\ F* | *Sun*Fortran*)
8863	  lt_prog_compiler_pic='-KPIC'
8864	  lt_prog_compiler_static='-Bstatic'
8865	  lt_prog_compiler_wl='-Qoption ld '
8866	  ;;
8867	*Sun\ C*)
8868	  # Sun C 5.9
8869	  lt_prog_compiler_pic='-KPIC'
8870	  lt_prog_compiler_static='-Bstatic'
8871	  lt_prog_compiler_wl='-Wl,'
8872	  ;;
8873        *Intel*\ [CF]*Compiler*)
8874	  lt_prog_compiler_wl='-Wl,'
8875	  lt_prog_compiler_pic='-fPIC'
8876	  lt_prog_compiler_static='-static'
8877	  ;;
8878	*Portland\ Group*)
8879	  lt_prog_compiler_wl='-Wl,'
8880	  lt_prog_compiler_pic='-fpic'
8881	  lt_prog_compiler_static='-Bstatic'
8882	  ;;
8883	esac
8884	;;
8885      esac
8886      ;;
8887
8888    newsos6)
8889      lt_prog_compiler_pic='-KPIC'
8890      lt_prog_compiler_static='-Bstatic'
8891      ;;
8892
8893    *nto* | *qnx*)
8894      # QNX uses GNU C++, but need to define -shared option too, otherwise
8895      # it will coredump.
8896      lt_prog_compiler_pic='-fPIC -shared'
8897      ;;
8898
8899    osf3* | osf4* | osf5*)
8900      lt_prog_compiler_wl='-Wl,'
8901      # All OSF/1 code is PIC.
8902      lt_prog_compiler_static='-non_shared'
8903      ;;
8904
8905    rdos*)
8906      lt_prog_compiler_static='-non_shared'
8907      ;;
8908
8909    solaris*)
8910      lt_prog_compiler_pic='-KPIC'
8911      lt_prog_compiler_static='-Bstatic'
8912      case $cc_basename in
8913      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8914	lt_prog_compiler_wl='-Qoption ld ';;
8915      *)
8916	lt_prog_compiler_wl='-Wl,';;
8917      esac
8918      ;;
8919
8920    sunos4*)
8921      lt_prog_compiler_wl='-Qoption ld '
8922      lt_prog_compiler_pic='-PIC'
8923      lt_prog_compiler_static='-Bstatic'
8924      ;;
8925
8926    sysv4 | sysv4.2uw2* | sysv4.3*)
8927      lt_prog_compiler_wl='-Wl,'
8928      lt_prog_compiler_pic='-KPIC'
8929      lt_prog_compiler_static='-Bstatic'
8930      ;;
8931
8932    sysv4*MP*)
8933      if test -d /usr/nec; then
8934	lt_prog_compiler_pic='-Kconform_pic'
8935	lt_prog_compiler_static='-Bstatic'
8936      fi
8937      ;;
8938
8939    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8940      lt_prog_compiler_wl='-Wl,'
8941      lt_prog_compiler_pic='-KPIC'
8942      lt_prog_compiler_static='-Bstatic'
8943      ;;
8944
8945    unicos*)
8946      lt_prog_compiler_wl='-Wl,'
8947      lt_prog_compiler_can_build_shared=no
8948      ;;
8949
8950    uts4*)
8951      lt_prog_compiler_pic='-pic'
8952      lt_prog_compiler_static='-Bstatic'
8953      ;;
8954
8955    *)
8956      lt_prog_compiler_can_build_shared=no
8957      ;;
8958    esac
8959  fi
8960
8961case $host_os in
8962  # For platforms that do not support PIC, -DPIC is meaningless:
8963  *djgpp*)
8964    lt_prog_compiler_pic=
8965    ;;
8966  *)
8967    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8968    ;;
8969esac
8970
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8972$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8973if ${lt_cv_prog_compiler_pic+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8979$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8980lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8981
8982#
8983# Check to make sure the PIC flag actually works.
8984#
8985if test -n "$lt_prog_compiler_pic"; then
8986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8987$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8988if ${lt_cv_prog_compiler_pic_works+:} false; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  lt_cv_prog_compiler_pic_works=no
8992   ac_outfile=conftest.$ac_objext
8993   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8995   # Insert the option either (1) after the last *FLAGS variable, or
8996   # (2) before a word containing "conftest.", or (3) at the end.
8997   # Note that $ac_compile itself does not contain backslashes and begins
8998   # with a dollar sign (not a hyphen), so the echo should work correctly.
8999   # The option is referenced via a variable to avoid confusing sed.
9000   lt_compile=`echo "$ac_compile" | $SED \
9001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003   -e 's:$: $lt_compiler_flag:'`
9004   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005   (eval "$lt_compile" 2>conftest.err)
9006   ac_status=$?
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   if (exit $ac_status) && test -s "$ac_outfile"; then
9010     # The compiler can only warn and ignore the option if not recognized
9011     # So say no if there are warnings other than the usual output.
9012     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9013     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9014     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9015       lt_cv_prog_compiler_pic_works=yes
9016     fi
9017   fi
9018   $RM conftest*
9019
9020fi
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9022$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9023
9024if test yes = "$lt_cv_prog_compiler_pic_works"; then
9025    case $lt_prog_compiler_pic in
9026     "" | " "*) ;;
9027     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9028     esac
9029else
9030    lt_prog_compiler_pic=
9031     lt_prog_compiler_can_build_shared=no
9032fi
9033
9034fi
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046#
9047# Check to make sure the static flag actually works.
9048#
9049wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9051$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9052if ${lt_cv_prog_compiler_static_works+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  lt_cv_prog_compiler_static_works=no
9056   save_LDFLAGS=$LDFLAGS
9057   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9058   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9059   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9060     # The linker can only warn and ignore the option if not recognized
9061     # So say no if there are warnings
9062     if test -s conftest.err; then
9063       # Append any errors to the config.log.
9064       cat conftest.err 1>&5
9065       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9066       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9067       if diff conftest.exp conftest.er2 >/dev/null; then
9068         lt_cv_prog_compiler_static_works=yes
9069       fi
9070     else
9071       lt_cv_prog_compiler_static_works=yes
9072     fi
9073   fi
9074   $RM -r conftest*
9075   LDFLAGS=$save_LDFLAGS
9076
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9079$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9080
9081if test yes = "$lt_cv_prog_compiler_static_works"; then
9082    :
9083else
9084    lt_prog_compiler_static=
9085fi
9086
9087
9088
9089
9090
9091
9092
9093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9094$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9095if ${lt_cv_prog_compiler_c_o+:} false; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098  lt_cv_prog_compiler_c_o=no
9099   $RM -r conftest 2>/dev/null
9100   mkdir conftest
9101   cd conftest
9102   mkdir out
9103   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9104
9105   lt_compiler_flag="-o out/conftest2.$ac_objext"
9106   # Insert the option either (1) after the last *FLAGS variable, or
9107   # (2) before a word containing "conftest.", or (3) at the end.
9108   # Note that $ac_compile itself does not contain backslashes and begins
9109   # with a dollar sign (not a hyphen), so the echo should work correctly.
9110   lt_compile=`echo "$ac_compile" | $SED \
9111   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9113   -e 's:$: $lt_compiler_flag:'`
9114   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9115   (eval "$lt_compile" 2>out/conftest.err)
9116   ac_status=$?
9117   cat out/conftest.err >&5
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9120   then
9121     # The compiler can only warn and ignore the option if not recognized
9122     # So say no if there are warnings
9123     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9124     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9125     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9126       lt_cv_prog_compiler_c_o=yes
9127     fi
9128   fi
9129   chmod u+w . 2>&5
9130   $RM conftest*
9131   # SGI C++ compiler will create directory out/ii_files/ for
9132   # template instantiation
9133   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9134   $RM out/* && rmdir out
9135   cd ..
9136   $RM -r conftest
9137   $RM conftest*
9138
9139fi
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9141$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9142
9143
9144
9145
9146
9147
9148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9150if ${lt_cv_prog_compiler_c_o+:} false; then :
9151  $as_echo_n "(cached) " >&6
9152else
9153  lt_cv_prog_compiler_c_o=no
9154   $RM -r conftest 2>/dev/null
9155   mkdir conftest
9156   cd conftest
9157   mkdir out
9158   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9159
9160   lt_compiler_flag="-o out/conftest2.$ac_objext"
9161   # Insert the option either (1) after the last *FLAGS variable, or
9162   # (2) before a word containing "conftest.", or (3) at the end.
9163   # Note that $ac_compile itself does not contain backslashes and begins
9164   # with a dollar sign (not a hyphen), so the echo should work correctly.
9165   lt_compile=`echo "$ac_compile" | $SED \
9166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9168   -e 's:$: $lt_compiler_flag:'`
9169   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9170   (eval "$lt_compile" 2>out/conftest.err)
9171   ac_status=$?
9172   cat out/conftest.err >&5
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9175   then
9176     # The compiler can only warn and ignore the option if not recognized
9177     # So say no if there are warnings
9178     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9179     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9180     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9181       lt_cv_prog_compiler_c_o=yes
9182     fi
9183   fi
9184   chmod u+w . 2>&5
9185   $RM conftest*
9186   # SGI C++ compiler will create directory out/ii_files/ for
9187   # template instantiation
9188   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9189   $RM out/* && rmdir out
9190   cd ..
9191   $RM -r conftest
9192   $RM conftest*
9193
9194fi
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9196$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9197
9198
9199
9200
9201hard_links=nottested
9202if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9203  # do not overwrite the value of need_locks provided by the user
9204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9205$as_echo_n "checking if we can lock with hard links... " >&6; }
9206  hard_links=yes
9207  $RM conftest*
9208  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9209  touch conftest.a
9210  ln conftest.a conftest.b 2>&5 || hard_links=no
9211  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9213$as_echo "$hard_links" >&6; }
9214  if test no = "$hard_links"; then
9215    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9216$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9217    need_locks=warn
9218  fi
9219else
9220  need_locks=no
9221fi
9222
9223
9224
9225
9226
9227
9228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9229$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9230
9231  runpath_var=
9232  allow_undefined_flag=
9233  always_export_symbols=no
9234  archive_cmds=
9235  archive_expsym_cmds=
9236  compiler_needs_object=no
9237  enable_shared_with_static_runtimes=no
9238  export_dynamic_flag_spec=
9239  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9240  hardcode_automatic=no
9241  hardcode_direct=no
9242  hardcode_direct_absolute=no
9243  hardcode_libdir_flag_spec=
9244  hardcode_libdir_separator=
9245  hardcode_minus_L=no
9246  hardcode_shlibpath_var=unsupported
9247  inherit_rpath=no
9248  link_all_deplibs=unknown
9249  module_cmds=
9250  module_expsym_cmds=
9251  old_archive_from_new_cmds=
9252  old_archive_from_expsyms_cmds=
9253  thread_safe_flag_spec=
9254  whole_archive_flag_spec=
9255  # include_expsyms should be a list of space-separated symbols to be *always*
9256  # included in the symbol list
9257  include_expsyms=
9258  # exclude_expsyms can be an extended regexp of symbols to exclude
9259  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9260  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9261  # as well as any symbol that contains 'd'.
9262  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9263  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9264  # platforms (ab)use it in PIC code, but their linkers get confused if
9265  # the symbol is explicitly referenced.  Since portable code cannot
9266  # rely on this symbol name, it's probably fine to never include it in
9267  # preloaded symbol tables.
9268  # Exclude shared library initialization/finalization symbols.
9269  extract_expsyms_cmds=
9270
9271  case $host_os in
9272  cygwin* | mingw* | pw32* | cegcc*)
9273    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9274    # When not using gcc, we currently assume that we are using
9275    # Microsoft Visual C++.
9276    if test yes != "$GCC"; then
9277      with_gnu_ld=no
9278    fi
9279    ;;
9280  interix*)
9281    # we just hope/assume this is gcc and not c89 (= MSVC++)
9282    with_gnu_ld=yes
9283    ;;
9284  openbsd* | bitrig*)
9285    with_gnu_ld=no
9286    ;;
9287  esac
9288
9289  ld_shlibs=yes
9290
9291  # On some targets, GNU ld is compatible enough with the native linker
9292  # that we're better off using the native interface for both.
9293  lt_use_gnu_ld_interface=no
9294  if test yes = "$with_gnu_ld"; then
9295    case $host_os in
9296      aix*)
9297	# The AIX port of GNU ld has always aspired to compatibility
9298	# with the native linker.  However, as the warning in the GNU ld
9299	# block says, versions before 2.19.5* couldn't really create working
9300	# shared libraries, regardless of the interface used.
9301	case `$LD -v 2>&1` in
9302	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9303	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9304	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9305	  *)
9306	    lt_use_gnu_ld_interface=yes
9307	    ;;
9308	esac
9309	;;
9310      *)
9311	lt_use_gnu_ld_interface=yes
9312	;;
9313    esac
9314  fi
9315
9316  if test yes = "$lt_use_gnu_ld_interface"; then
9317    # If archive_cmds runs LD, not CC, wlarc should be empty
9318    wlarc='$wl'
9319
9320    # Set some defaults for GNU ld with shared library support. These
9321    # are reset later if shared libraries are not supported. Putting them
9322    # here allows them to be overridden if necessary.
9323    runpath_var=LD_RUN_PATH
9324    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9325    export_dynamic_flag_spec='$wl--export-dynamic'
9326    # ancient GNU ld didn't support --whole-archive et. al.
9327    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9328      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9329    else
9330      whole_archive_flag_spec=
9331    fi
9332    supports_anon_versioning=no
9333    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9334      *GNU\ gold*) supports_anon_versioning=yes ;;
9335      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9336      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9337      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9338      *\ 2.11.*) ;; # other 2.11 versions
9339      *) supports_anon_versioning=yes ;;
9340    esac
9341
9342    # See if GNU ld supports shared libraries.
9343    case $host_os in
9344    aix[3-9]*)
9345      # On AIX/PPC, the GNU linker is very broken
9346      if test ia64 != "$host_cpu"; then
9347	ld_shlibs=no
9348	cat <<_LT_EOF 1>&2
9349
9350*** Warning: the GNU linker, at least up to release 2.19, is reported
9351*** to be unable to reliably create shared libraries on AIX.
9352*** Therefore, libtool is disabling shared libraries support.  If you
9353*** really care for shared libraries, you may want to install binutils
9354*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9355*** You will then need to restart the configuration process.
9356
9357_LT_EOF
9358      fi
9359      ;;
9360
9361    amigaos*)
9362      case $host_cpu in
9363      powerpc)
9364            # see comment about AmigaOS4 .so support
9365            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9366            archive_expsym_cmds=''
9367        ;;
9368      m68k)
9369            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)'
9370            hardcode_libdir_flag_spec='-L$libdir'
9371            hardcode_minus_L=yes
9372        ;;
9373      esac
9374      ;;
9375
9376    beos*)
9377      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9378	allow_undefined_flag=unsupported
9379	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9380	# support --undefined.  This deserves some investigation.  FIXME
9381	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9382      else
9383	ld_shlibs=no
9384      fi
9385      ;;
9386
9387    cygwin* | mingw* | pw32* | cegcc*)
9388      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9389      # as there is no search path for DLLs.
9390      hardcode_libdir_flag_spec='-L$libdir'
9391      export_dynamic_flag_spec='$wl--export-all-symbols'
9392      allow_undefined_flag=unsupported
9393      always_export_symbols=no
9394      enable_shared_with_static_runtimes=yes
9395      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'
9396      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9397
9398      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9399        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9400	# If the export-symbols file already is a .def file, use it as
9401	# is; otherwise, prepend EXPORTS...
9402	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9403          cp $export_symbols $output_objdir/$soname.def;
9404        else
9405          echo EXPORTS > $output_objdir/$soname.def;
9406          cat $export_symbols >> $output_objdir/$soname.def;
9407        fi~
9408        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9409      else
9410	ld_shlibs=no
9411      fi
9412      ;;
9413
9414    haiku*)
9415      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9416      link_all_deplibs=yes
9417      ;;
9418
9419    os2*)
9420      hardcode_libdir_flag_spec='-L$libdir'
9421      hardcode_minus_L=yes
9422      allow_undefined_flag=unsupported
9423      shrext_cmds=.dll
9424      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9425	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9426	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9427	$ECHO EXPORTS >> $output_objdir/$libname.def~
9428	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9429	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9430	emximp -o $lib $output_objdir/$libname.def'
9431      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9432	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9433	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9434	$ECHO EXPORTS >> $output_objdir/$libname.def~
9435	prefix_cmds="$SED"~
9436	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9437	  prefix_cmds="$prefix_cmds -e 1d";
9438	fi~
9439	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9440	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9441	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9442	emximp -o $lib $output_objdir/$libname.def'
9443      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9444      enable_shared_with_static_runtimes=yes
9445      ;;
9446
9447    interix[3-9]*)
9448      hardcode_direct=no
9449      hardcode_shlibpath_var=no
9450      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9451      export_dynamic_flag_spec='$wl-E'
9452      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9453      # Instead, shared libraries are loaded at an image base (0x10000000 by
9454      # default) and relocated if they conflict, which is a slow very memory
9455      # consuming and fragmenting process.  To avoid this, we pick a random,
9456      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9457      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9458      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9459      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'
9460      ;;
9461
9462    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9463      tmp_diet=no
9464      if test linux-dietlibc = "$host_os"; then
9465	case $cc_basename in
9466	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9467	esac
9468      fi
9469      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9470	 && test no = "$tmp_diet"
9471      then
9472	tmp_addflag=' $pic_flag'
9473	tmp_sharedflag='-shared'
9474	case $cc_basename,$host_cpu in
9475        pgcc*)				# Portland Group C compiler
9476	  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'
9477	  tmp_addflag=' $pic_flag'
9478	  ;;
9479	pgf77* | pgf90* | pgf95* | pgfortran*)
9480					# Portland Group f77 and f90 compilers
9481	  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'
9482	  tmp_addflag=' $pic_flag -Mnomain' ;;
9483	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9484	  tmp_addflag=' -i_dynamic' ;;
9485	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9486	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9487	ifc* | ifort*)			# Intel Fortran compiler
9488	  tmp_addflag=' -nofor_main' ;;
9489	lf95*)				# Lahey Fortran 8.1
9490	  whole_archive_flag_spec=
9491	  tmp_sharedflag='--shared' ;;
9492        nagfor*)                        # NAGFOR 5.3
9493          tmp_sharedflag='-Wl,-shared' ;;
9494	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9495	  tmp_sharedflag='-qmkshrobj'
9496	  tmp_addflag= ;;
9497	nvcc*)	# Cuda Compiler Driver 2.2
9498	  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'
9499	  compiler_needs_object=yes
9500	  ;;
9501	esac
9502	case `$CC -V 2>&1 | sed 5q` in
9503	*Sun\ C*)			# Sun C 5.9
9504	  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'
9505	  compiler_needs_object=yes
9506	  tmp_sharedflag='-G' ;;
9507	*Sun\ F*)			# Sun Fortran 8.3
9508	  tmp_sharedflag='-G' ;;
9509	esac
9510	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511
9512        if test yes = "$supports_anon_versioning"; then
9513          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9514            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9515            echo "local: *; };" >> $output_objdir/$libname.ver~
9516            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9517        fi
9518
9519	case $cc_basename in
9520	tcc*)
9521	  export_dynamic_flag_spec='-rdynamic'
9522	  ;;
9523	xlf* | bgf* | bgxlf* | mpixlf*)
9524	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9525	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9526	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9527	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9528	  if test yes = "$supports_anon_versioning"; then
9529	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9530              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9531              echo "local: *; };" >> $output_objdir/$libname.ver~
9532              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9533	  fi
9534	  ;;
9535	esac
9536      else
9537        ld_shlibs=no
9538      fi
9539      ;;
9540
9541    netbsd*)
9542      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9543	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9544	wlarc=
9545      else
9546	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9547	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9548      fi
9549      ;;
9550
9551    solaris*)
9552      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9553	ld_shlibs=no
9554	cat <<_LT_EOF 1>&2
9555
9556*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9557*** create shared libraries on Solaris systems.  Therefore, libtool
9558*** is disabling shared libraries support.  We urge you to upgrade GNU
9559*** binutils to release 2.9.1 or newer.  Another option is to modify
9560*** your PATH or compiler configuration so that the native linker is
9561*** used, and then restart.
9562
9563_LT_EOF
9564      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9565	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9566	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9567      else
9568	ld_shlibs=no
9569      fi
9570      ;;
9571
9572    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9573      case `$LD -v 2>&1` in
9574        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9575	ld_shlibs=no
9576	cat <<_LT_EOF 1>&2
9577
9578*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9579*** reliably create shared libraries on SCO systems.  Therefore, libtool
9580*** is disabling shared libraries support.  We urge you to upgrade GNU
9581*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9582*** your PATH or compiler configuration so that the native linker is
9583*** used, and then restart.
9584
9585_LT_EOF
9586	;;
9587	*)
9588	  # For security reasons, it is highly recommended that you always
9589	  # use absolute paths for naming shared libraries, and exclude the
9590	  # DT_RUNPATH tag from executables and libraries.  But doing so
9591	  # requires that you compile everything twice, which is a pain.
9592	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9593	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9594	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9595	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9596	  else
9597	    ld_shlibs=no
9598	  fi
9599	;;
9600      esac
9601      ;;
9602
9603    sunos4*)
9604      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9605      wlarc=
9606      hardcode_direct=yes
9607      hardcode_shlibpath_var=no
9608      ;;
9609
9610    *)
9611      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9612	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9613	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9614      else
9615	ld_shlibs=no
9616      fi
9617      ;;
9618    esac
9619
9620    if test no = "$ld_shlibs"; then
9621      runpath_var=
9622      hardcode_libdir_flag_spec=
9623      export_dynamic_flag_spec=
9624      whole_archive_flag_spec=
9625    fi
9626  else
9627    # PORTME fill in a description of your system's linker (not GNU ld)
9628    case $host_os in
9629    aix3*)
9630      allow_undefined_flag=unsupported
9631      always_export_symbols=yes
9632      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'
9633      # Note: this linker hardcodes the directories in LIBPATH if there
9634      # are no directories specified by -L.
9635      hardcode_minus_L=yes
9636      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9637	# Neither direct hardcoding nor static linking is supported with a
9638	# broken collect2.
9639	hardcode_direct=unsupported
9640      fi
9641      ;;
9642
9643    aix[4-9]*)
9644      if test ia64 = "$host_cpu"; then
9645	# On IA64, the linker does run time linking by default, so we don't
9646	# have to do anything special.
9647	aix_use_runtimelinking=no
9648	exp_sym_flag='-Bexport'
9649	no_entry_flag=
9650      else
9651	# If we're using GNU nm, then we don't want the "-C" option.
9652	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9653	# Without the "-l" option, or with the "-B" option, AIX nm treats
9654	# weak defined symbols like other global defined symbols, whereas
9655	# GNU nm marks them as "W".
9656	# While the 'weak' keyword is ignored in the Export File, we need
9657	# it in the Import File for the 'aix-soname' feature, so we have
9658	# to replace the "-B" option with "-P" for AIX nm.
9659	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9660	  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'
9661	else
9662	  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'
9663	fi
9664	aix_use_runtimelinking=no
9665
9666	# Test if we are trying to use run time linking or normal
9667	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9668	# have runtime linking enabled, and use it for executables.
9669	# For shared libraries, we enable/disable runtime linking
9670	# depending on the kind of the shared library created -
9671	# when "with_aix_soname,aix_use_runtimelinking" is:
9672	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9673	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9674	#            lib.a           static archive
9675	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9676	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9677	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9678	#            lib.a(lib.so.V) shared, rtl:no
9679	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9680	#            lib.a           static archive
9681	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9682	  for ld_flag in $LDFLAGS; do
9683	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9684	    aix_use_runtimelinking=yes
9685	    break
9686	  fi
9687	  done
9688	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9689	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9690	    # so we don't have lib.a shared libs to link our executables.
9691	    # We have to force runtime linking in this case.
9692	    aix_use_runtimelinking=yes
9693	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9694	  fi
9695	  ;;
9696	esac
9697
9698	exp_sym_flag='-bexport'
9699	no_entry_flag='-bnoentry'
9700      fi
9701
9702      # When large executables or shared objects are built, AIX ld can
9703      # have problems creating the table of contents.  If linking a library
9704      # or program results in "error TOC overflow" add -mminimal-toc to
9705      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9706      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9707
9708      archive_cmds=''
9709      hardcode_direct=yes
9710      hardcode_direct_absolute=yes
9711      hardcode_libdir_separator=':'
9712      link_all_deplibs=yes
9713      file_list_spec='$wl-f,'
9714      case $with_aix_soname,$aix_use_runtimelinking in
9715      aix,*) ;; # traditional, no import file
9716      svr4,* | *,yes) # use import file
9717	# The Import File defines what to hardcode.
9718	hardcode_direct=no
9719	hardcode_direct_absolute=no
9720	;;
9721      esac
9722
9723      if test yes = "$GCC"; then
9724	case $host_os in aix4.[012]|aix4.[012].*)
9725	# We only want to do this on AIX 4.2 and lower, the check
9726	# below for broken collect2 doesn't work under 4.3+
9727	  collect2name=`$CC -print-prog-name=collect2`
9728	  if test -f "$collect2name" &&
9729	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730	  then
9731	  # We have reworked collect2
9732	  :
9733	  else
9734	  # We have old collect2
9735	  hardcode_direct=unsupported
9736	  # It fails to find uninstalled libraries when the uninstalled
9737	  # path is not listed in the libpath.  Setting hardcode_minus_L
9738	  # to unsupported forces relinking
9739	  hardcode_minus_L=yes
9740	  hardcode_libdir_flag_spec='-L$libdir'
9741	  hardcode_libdir_separator=
9742	  fi
9743	  ;;
9744	esac
9745	shared_flag='-shared'
9746	if test yes = "$aix_use_runtimelinking"; then
9747	  shared_flag="$shared_flag "'$wl-G'
9748	fi
9749	# Need to ensure runtime linking is disabled for the traditional
9750	# shared library, or the linker may eventually find shared libraries
9751	# /with/ Import File - we do not want to mix them.
9752	shared_flag_aix='-shared'
9753	shared_flag_svr4='-shared $wl-G'
9754      else
9755	# not using gcc
9756	if test ia64 = "$host_cpu"; then
9757	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9758	# chokes on -Wl,-G. The following line is correct:
9759	  shared_flag='-G'
9760	else
9761	  if test yes = "$aix_use_runtimelinking"; then
9762	    shared_flag='$wl-G'
9763	  else
9764	    shared_flag='$wl-bM:SRE'
9765	  fi
9766	  shared_flag_aix='$wl-bM:SRE'
9767	  shared_flag_svr4='$wl-G'
9768	fi
9769      fi
9770
9771      export_dynamic_flag_spec='$wl-bexpall'
9772      # It seems that -bexpall does not export symbols beginning with
9773      # underscore (_), so it is better to generate a list of symbols to export.
9774      always_export_symbols=yes
9775      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9776	# Warning - without using the other runtime loading flags (-brtl),
9777	# -berok will link without error, but may produce a broken library.
9778	allow_undefined_flag='-berok'
9779        # Determine the default libpath from the value encoded in an
9780        # empty executable.
9781        if test set = "${lt_cv_aix_libpath+set}"; then
9782  aix_libpath=$lt_cv_aix_libpath
9783else
9784  if ${lt_cv_aix_libpath_+:} false; then :
9785  $as_echo_n "(cached) " >&6
9786else
9787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789
9790int
9791main ()
9792{
9793
9794  ;
9795  return 0;
9796}
9797_ACEOF
9798if ac_fn_c_try_link "$LINENO"; then :
9799
9800  lt_aix_libpath_sed='
9801      /Import File Strings/,/^$/ {
9802	  /^0/ {
9803	      s/^0  *\([^ ]*\) *$/\1/
9804	      p
9805	  }
9806      }'
9807  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9808  # Check for a 64-bit object if we didn't find anything.
9809  if test -z "$lt_cv_aix_libpath_"; then
9810    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811  fi
9812fi
9813rm -f core conftest.err conftest.$ac_objext \
9814    conftest$ac_exeext conftest.$ac_ext
9815  if test -z "$lt_cv_aix_libpath_"; then
9816    lt_cv_aix_libpath_=/usr/lib:/lib
9817  fi
9818
9819fi
9820
9821  aix_libpath=$lt_cv_aix_libpath_
9822fi
9823
9824        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9825        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
9826      else
9827	if test ia64 = "$host_cpu"; then
9828	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9829	  allow_undefined_flag="-z nodefs"
9830	  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"
9831	else
9832	 # Determine the default libpath from the value encoded in an
9833	 # empty executable.
9834	 if test set = "${lt_cv_aix_libpath+set}"; then
9835  aix_libpath=$lt_cv_aix_libpath
9836else
9837  if ${lt_cv_aix_libpath_+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h.  */
9842
9843int
9844main ()
9845{
9846
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852
9853  lt_aix_libpath_sed='
9854      /Import File Strings/,/^$/ {
9855	  /^0/ {
9856	      s/^0  *\([^ ]*\) *$/\1/
9857	      p
9858	  }
9859      }'
9860  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861  # Check for a 64-bit object if we didn't find anything.
9862  if test -z "$lt_cv_aix_libpath_"; then
9863    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864  fi
9865fi
9866rm -f core conftest.err conftest.$ac_objext \
9867    conftest$ac_exeext conftest.$ac_ext
9868  if test -z "$lt_cv_aix_libpath_"; then
9869    lt_cv_aix_libpath_=/usr/lib:/lib
9870  fi
9871
9872fi
9873
9874  aix_libpath=$lt_cv_aix_libpath_
9875fi
9876
9877	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9878	  # Warning - without using the other run time loading flags,
9879	  # -berok will link without error, but may produce a broken library.
9880	  no_undefined_flag=' $wl-bernotok'
9881	  allow_undefined_flag=' $wl-berok'
9882	  if test yes = "$with_gnu_ld"; then
9883	    # We only use this code for GNU lds that support --whole-archive.
9884	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9885	  else
9886	    # Exported symbols can be pulled into shared objects from archives
9887	    whole_archive_flag_spec='$convenience'
9888	  fi
9889	  archive_cmds_need_lc=yes
9890	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9891	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9892	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9893	  if test svr4 != "$with_aix_soname"; then
9894	    # This is similar to how AIX traditionally builds its shared libraries.
9895	    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'
9896	  fi
9897	  if test aix != "$with_aix_soname"; then
9898	    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'
9899	  else
9900	    # used by -dlpreopen to get the symbols
9901	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9902	  fi
9903	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9904	fi
9905      fi
9906      ;;
9907
9908    amigaos*)
9909      case $host_cpu in
9910      powerpc)
9911            # see comment about AmigaOS4 .so support
9912            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9913            archive_expsym_cmds=''
9914        ;;
9915      m68k)
9916            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)'
9917            hardcode_libdir_flag_spec='-L$libdir'
9918            hardcode_minus_L=yes
9919        ;;
9920      esac
9921      ;;
9922
9923    bsdi[45]*)
9924      export_dynamic_flag_spec=-rdynamic
9925      ;;
9926
9927    cygwin* | mingw* | pw32* | cegcc*)
9928      # When not using gcc, we currently assume that we are using
9929      # Microsoft Visual C++.
9930      # hardcode_libdir_flag_spec is actually meaningless, as there is
9931      # no search path for DLLs.
9932      case $cc_basename in
9933      cl*)
9934	# Native MSVC
9935	hardcode_libdir_flag_spec=' '
9936	allow_undefined_flag=unsupported
9937	always_export_symbols=yes
9938	file_list_spec='@'
9939	# Tell ltmain to make .lib files, not .a files.
9940	libext=lib
9941	# Tell ltmain to make .dll files, not .so files.
9942	shrext_cmds=.dll
9943	# FIXME: Setting linknames here is a bad hack.
9944	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9945	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9946            cp "$export_symbols" "$output_objdir/$soname.def";
9947            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9948          else
9949            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9950          fi~
9951          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9952          linknames='
9953	# The linker will not automatically build a static lib if we build a DLL.
9954	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9955	enable_shared_with_static_runtimes=yes
9956	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9957	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9958	# Don't use ranlib
9959	old_postinstall_cmds='chmod 644 $oldlib'
9960	postlink_cmds='lt_outputfile="@OUTPUT@"~
9961          lt_tool_outputfile="@TOOL_OUTPUT@"~
9962          case $lt_outputfile in
9963            *.exe|*.EXE) ;;
9964            *)
9965              lt_outputfile=$lt_outputfile.exe
9966              lt_tool_outputfile=$lt_tool_outputfile.exe
9967              ;;
9968          esac~
9969          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9970            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9971            $RM "$lt_outputfile.manifest";
9972          fi'
9973	;;
9974      *)
9975	# Assume MSVC wrapper
9976	hardcode_libdir_flag_spec=' '
9977	allow_undefined_flag=unsupported
9978	# Tell ltmain to make .lib files, not .a files.
9979	libext=lib
9980	# Tell ltmain to make .dll files, not .so files.
9981	shrext_cmds=.dll
9982	# FIXME: Setting linknames here is a bad hack.
9983	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9984	# The linker will automatically build a .lib file if we build a DLL.
9985	old_archive_from_new_cmds='true'
9986	# FIXME: Should let the user specify the lib program.
9987	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9988	enable_shared_with_static_runtimes=yes
9989	;;
9990      esac
9991      ;;
9992
9993    darwin* | rhapsody*)
9994
9995
9996  archive_cmds_need_lc=no
9997  hardcode_direct=no
9998  hardcode_automatic=yes
9999  hardcode_shlibpath_var=unsupported
10000  if test yes = "$lt_cv_ld_force_load"; then
10001    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\"`'
10002
10003  else
10004    whole_archive_flag_spec=''
10005  fi
10006  link_all_deplibs=yes
10007  allow_undefined_flag=$_lt_dar_allow_undefined
10008  case $cc_basename in
10009     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10010     *) _lt_dar_can_shared=$GCC ;;
10011  esac
10012  if test yes = "$_lt_dar_can_shared"; then
10013    output_verbose_link_cmd=func_echo_all
10014    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10015    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10016    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"
10017    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"
10018
10019  else
10020  ld_shlibs=no
10021  fi
10022
10023      ;;
10024
10025    dgux*)
10026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10027      hardcode_libdir_flag_spec='-L$libdir'
10028      hardcode_shlibpath_var=no
10029      ;;
10030
10031    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10032    # support.  Future versions do this automatically, but an explicit c++rt0.o
10033    # does not break anything, and helps significantly (at the cost of a little
10034    # extra space).
10035    freebsd2.2*)
10036      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10037      hardcode_libdir_flag_spec='-R$libdir'
10038      hardcode_direct=yes
10039      hardcode_shlibpath_var=no
10040      ;;
10041
10042    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10043    freebsd2.*)
10044      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10045      hardcode_direct=yes
10046      hardcode_minus_L=yes
10047      hardcode_shlibpath_var=no
10048      ;;
10049
10050    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10051    freebsd* | dragonfly*)
10052      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10053      hardcode_libdir_flag_spec='-R$libdir'
10054      hardcode_direct=yes
10055      hardcode_shlibpath_var=no
10056      ;;
10057
10058    hpux9*)
10059      if test yes = "$GCC"; then
10060	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'
10061      else
10062	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'
10063      fi
10064      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10065      hardcode_libdir_separator=:
10066      hardcode_direct=yes
10067
10068      # hardcode_minus_L: Not really in the search PATH,
10069      # but as the default location of the library.
10070      hardcode_minus_L=yes
10071      export_dynamic_flag_spec='$wl-E'
10072      ;;
10073
10074    hpux10*)
10075      if test yes,no = "$GCC,$with_gnu_ld"; then
10076	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10077      else
10078	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10079      fi
10080      if test no = "$with_gnu_ld"; then
10081	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10082	hardcode_libdir_separator=:
10083	hardcode_direct=yes
10084	hardcode_direct_absolute=yes
10085	export_dynamic_flag_spec='$wl-E'
10086	# hardcode_minus_L: Not really in the search PATH,
10087	# but as the default location of the library.
10088	hardcode_minus_L=yes
10089      fi
10090      ;;
10091
10092    hpux11*)
10093      if test yes,no = "$GCC,$with_gnu_ld"; then
10094	case $host_cpu in
10095	hppa*64*)
10096	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10097	  ;;
10098	ia64*)
10099	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10100	  ;;
10101	*)
10102	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10103	  ;;
10104	esac
10105      else
10106	case $host_cpu in
10107	hppa*64*)
10108	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10109	  ;;
10110	ia64*)
10111	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10112	  ;;
10113	*)
10114
10115	  # Older versions of the 11.00 compiler do not understand -b yet
10116	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10117	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10118$as_echo_n "checking if $CC understands -b... " >&6; }
10119if ${lt_cv_prog_compiler__b+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  lt_cv_prog_compiler__b=no
10123   save_LDFLAGS=$LDFLAGS
10124   LDFLAGS="$LDFLAGS -b"
10125   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10126   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10127     # The linker can only warn and ignore the option if not recognized
10128     # So say no if there are warnings
10129     if test -s conftest.err; then
10130       # Append any errors to the config.log.
10131       cat conftest.err 1>&5
10132       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10133       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134       if diff conftest.exp conftest.er2 >/dev/null; then
10135         lt_cv_prog_compiler__b=yes
10136       fi
10137     else
10138       lt_cv_prog_compiler__b=yes
10139     fi
10140   fi
10141   $RM -r conftest*
10142   LDFLAGS=$save_LDFLAGS
10143
10144fi
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10146$as_echo "$lt_cv_prog_compiler__b" >&6; }
10147
10148if test yes = "$lt_cv_prog_compiler__b"; then
10149    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10150else
10151    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10152fi
10153
10154	  ;;
10155	esac
10156      fi
10157      if test no = "$with_gnu_ld"; then
10158	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10159	hardcode_libdir_separator=:
10160
10161	case $host_cpu in
10162	hppa*64*|ia64*)
10163	  hardcode_direct=no
10164	  hardcode_shlibpath_var=no
10165	  ;;
10166	*)
10167	  hardcode_direct=yes
10168	  hardcode_direct_absolute=yes
10169	  export_dynamic_flag_spec='$wl-E'
10170
10171	  # hardcode_minus_L: Not really in the search PATH,
10172	  # but as the default location of the library.
10173	  hardcode_minus_L=yes
10174	  ;;
10175	esac
10176      fi
10177      ;;
10178
10179    irix5* | irix6* | nonstopux*)
10180      if test yes = "$GCC"; then
10181	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'
10182	# Try to use the -exported_symbol ld option, if it does not
10183	# work, assume that -exports_file does not work either and
10184	# implicitly export all symbols.
10185	# This should be the same for all languages, so no per-tag cache variable.
10186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10187$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10188if ${lt_cv_irix_exported_symbol+:} false; then :
10189  $as_echo_n "(cached) " >&6
10190else
10191  save_LDFLAGS=$LDFLAGS
10192	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10193	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h.  */
10195int foo (void) { return 0; }
10196_ACEOF
10197if ac_fn_c_try_link "$LINENO"; then :
10198  lt_cv_irix_exported_symbol=yes
10199else
10200  lt_cv_irix_exported_symbol=no
10201fi
10202rm -f core conftest.err conftest.$ac_objext \
10203    conftest$ac_exeext conftest.$ac_ext
10204           LDFLAGS=$save_LDFLAGS
10205fi
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10207$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10208	if test yes = "$lt_cv_irix_exported_symbol"; then
10209          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'
10210	fi
10211      else
10212	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'
10213	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'
10214      fi
10215      archive_cmds_need_lc='no'
10216      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10217      hardcode_libdir_separator=:
10218      inherit_rpath=yes
10219      link_all_deplibs=yes
10220      ;;
10221
10222    linux*)
10223      case $cc_basename in
10224      tcc*)
10225	# Fabrice Bellard et al's Tiny C Compiler
10226	ld_shlibs=yes
10227	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10228	;;
10229      esac
10230      ;;
10231
10232    netbsd*)
10233      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10234	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10235      else
10236	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10237      fi
10238      hardcode_libdir_flag_spec='-R$libdir'
10239      hardcode_direct=yes
10240      hardcode_shlibpath_var=no
10241      ;;
10242
10243    newsos6)
10244      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245      hardcode_direct=yes
10246      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10247      hardcode_libdir_separator=:
10248      hardcode_shlibpath_var=no
10249      ;;
10250
10251    *nto* | *qnx*)
10252      ;;
10253
10254    openbsd* | bitrig*)
10255      if test -f /usr/libexec/ld.so; then
10256	hardcode_direct=yes
10257	hardcode_shlibpath_var=no
10258	hardcode_direct_absolute=yes
10259	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10260	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10261	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10262	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10263	  export_dynamic_flag_spec='$wl-E'
10264	else
10265	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10266	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10267	fi
10268      else
10269	ld_shlibs=no
10270      fi
10271      ;;
10272
10273    os2*)
10274      hardcode_libdir_flag_spec='-L$libdir'
10275      hardcode_minus_L=yes
10276      allow_undefined_flag=unsupported
10277      shrext_cmds=.dll
10278      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10279	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10280	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10281	$ECHO EXPORTS >> $output_objdir/$libname.def~
10282	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10283	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10284	emximp -o $lib $output_objdir/$libname.def'
10285      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10286	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10287	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10288	$ECHO EXPORTS >> $output_objdir/$libname.def~
10289	prefix_cmds="$SED"~
10290	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10291	  prefix_cmds="$prefix_cmds -e 1d";
10292	fi~
10293	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10294	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10295	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10296	emximp -o $lib $output_objdir/$libname.def'
10297      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10298      enable_shared_with_static_runtimes=yes
10299      ;;
10300
10301    osf3*)
10302      if test yes = "$GCC"; then
10303	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10304	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'
10305      else
10306	allow_undefined_flag=' -expect_unresolved \*'
10307	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'
10308      fi
10309      archive_cmds_need_lc='no'
10310      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10311      hardcode_libdir_separator=:
10312      ;;
10313
10314    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10315      if test yes = "$GCC"; then
10316	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10317	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'
10318	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10319      else
10320	allow_undefined_flag=' -expect_unresolved \*'
10321	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'
10322	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~
10323          $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'
10324
10325	# Both c and cxx compiler support -rpath directly
10326	hardcode_libdir_flag_spec='-rpath $libdir'
10327      fi
10328      archive_cmds_need_lc='no'
10329      hardcode_libdir_separator=:
10330      ;;
10331
10332    solaris*)
10333      no_undefined_flag=' -z defs'
10334      if test yes = "$GCC"; then
10335	wlarc='$wl'
10336	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10337	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10338          $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'
10339      else
10340	case `$CC -V 2>&1` in
10341	*"Compilers 5.0"*)
10342	  wlarc=''
10343	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10345            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10346	  ;;
10347	*)
10348	  wlarc='$wl'
10349	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10350	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10351            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10352	  ;;
10353	esac
10354      fi
10355      hardcode_libdir_flag_spec='-R$libdir'
10356      hardcode_shlibpath_var=no
10357      case $host_os in
10358      solaris2.[0-5] | solaris2.[0-5].*) ;;
10359      *)
10360	# The compiler driver will combine and reorder linker options,
10361	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10362	# but is careful enough not to reorder.
10363	# Supported since Solaris 2.6 (maybe 2.5.1?)
10364	if test yes = "$GCC"; then
10365	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10366	else
10367	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10368	fi
10369	;;
10370      esac
10371      link_all_deplibs=yes
10372      ;;
10373
10374    sunos4*)
10375      if test sequent = "$host_vendor"; then
10376	# Use $CC to link under sequent, because it throws in some extra .o
10377	# files that make .init and .fini sections work.
10378	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10379      else
10380	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10381      fi
10382      hardcode_libdir_flag_spec='-L$libdir'
10383      hardcode_direct=yes
10384      hardcode_minus_L=yes
10385      hardcode_shlibpath_var=no
10386      ;;
10387
10388    sysv4)
10389      case $host_vendor in
10390	sni)
10391	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392	  hardcode_direct=yes # is this really true???
10393	;;
10394	siemens)
10395	  ## LD is ld it makes a PLAMLIB
10396	  ## CC just makes a GrossModule.
10397	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10398	  reload_cmds='$CC -r -o $output$reload_objs'
10399	  hardcode_direct=no
10400        ;;
10401	motorola)
10402	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10404	;;
10405      esac
10406      runpath_var='LD_RUN_PATH'
10407      hardcode_shlibpath_var=no
10408      ;;
10409
10410    sysv4.3*)
10411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412      hardcode_shlibpath_var=no
10413      export_dynamic_flag_spec='-Bexport'
10414      ;;
10415
10416    sysv4*MP*)
10417      if test -d /usr/nec; then
10418	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10419	hardcode_shlibpath_var=no
10420	runpath_var=LD_RUN_PATH
10421	hardcode_runpath_var=yes
10422	ld_shlibs=yes
10423      fi
10424      ;;
10425
10426    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10427      no_undefined_flag='$wl-z,text'
10428      archive_cmds_need_lc=no
10429      hardcode_shlibpath_var=no
10430      runpath_var='LD_RUN_PATH'
10431
10432      if test yes = "$GCC"; then
10433	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10434	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10435      else
10436	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10437	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10438      fi
10439      ;;
10440
10441    sysv5* | sco3.2v5* | sco5v6*)
10442      # Note: We CANNOT use -z defs as we might desire, because we do not
10443      # link with -lc, and that would cause any symbols used from libc to
10444      # always be unresolved, which means just about no library would
10445      # ever link correctly.  If we're not using GNU ld we use -z text
10446      # though, which does catch some bad symbols but isn't as heavy-handed
10447      # as -z defs.
10448      no_undefined_flag='$wl-z,text'
10449      allow_undefined_flag='$wl-z,nodefs'
10450      archive_cmds_need_lc=no
10451      hardcode_shlibpath_var=no
10452      hardcode_libdir_flag_spec='$wl-R,$libdir'
10453      hardcode_libdir_separator=':'
10454      link_all_deplibs=yes
10455      export_dynamic_flag_spec='$wl-Bexport'
10456      runpath_var='LD_RUN_PATH'
10457
10458      if test yes = "$GCC"; then
10459	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461      else
10462	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10463	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10464      fi
10465      ;;
10466
10467    uts4*)
10468      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469      hardcode_libdir_flag_spec='-L$libdir'
10470      hardcode_shlibpath_var=no
10471      ;;
10472
10473    *)
10474      ld_shlibs=no
10475      ;;
10476    esac
10477
10478    if test sni = "$host_vendor"; then
10479      case $host in
10480      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10481	export_dynamic_flag_spec='$wl-Blargedynsym'
10482	;;
10483      esac
10484    fi
10485  fi
10486
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10488$as_echo "$ld_shlibs" >&6; }
10489test no = "$ld_shlibs" && can_build_shared=no
10490
10491with_gnu_ld=$with_gnu_ld
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507#
10508# Do we need to explicitly link libc?
10509#
10510case "x$archive_cmds_need_lc" in
10511x|xyes)
10512  # Assume -lc should be added
10513  archive_cmds_need_lc=yes
10514
10515  if test yes,yes = "$GCC,$enable_shared"; then
10516    case $archive_cmds in
10517    *'~'*)
10518      # FIXME: we may have to deal with multi-command sequences.
10519      ;;
10520    '$CC '*)
10521      # Test whether the compiler implicitly links with -lc since on some
10522      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10523      # to ld, don't add -lc before -lgcc.
10524      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10526if ${lt_cv_archive_cmds_need_lc+:} false; then :
10527  $as_echo_n "(cached) " >&6
10528else
10529  $RM conftest*
10530	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10531
10532	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10533  (eval $ac_compile) 2>&5
10534  ac_status=$?
10535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10536  test $ac_status = 0; } 2>conftest.err; then
10537	  soname=conftest
10538	  lib=conftest
10539	  libobjs=conftest.$ac_objext
10540	  deplibs=
10541	  wl=$lt_prog_compiler_wl
10542	  pic_flag=$lt_prog_compiler_pic
10543	  compiler_flags=-v
10544	  linker_flags=-v
10545	  verstring=
10546	  output_objdir=.
10547	  libname=conftest
10548	  lt_save_allow_undefined_flag=$allow_undefined_flag
10549	  allow_undefined_flag=
10550	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10551  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10552  ac_status=$?
10553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10554  test $ac_status = 0; }
10555	  then
10556	    lt_cv_archive_cmds_need_lc=no
10557	  else
10558	    lt_cv_archive_cmds_need_lc=yes
10559	  fi
10560	  allow_undefined_flag=$lt_save_allow_undefined_flag
10561	else
10562	  cat conftest.err 1>&5
10563	fi
10564	$RM conftest*
10565
10566fi
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10568$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10569      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10570      ;;
10571    esac
10572  fi
10573  ;;
10574esac
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
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10728$as_echo_n "checking dynamic linker characteristics... " >&6; }
10729
10730if test yes = "$GCC"; then
10731  case $host_os in
10732    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10733    *) lt_awk_arg='/^libraries:/' ;;
10734  esac
10735  case $host_os in
10736    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10737    *) lt_sed_strip_eq='s|=/|/|g' ;;
10738  esac
10739  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10740  case $lt_search_path_spec in
10741  *\;*)
10742    # if the path contains ";" then we assume it to be the separator
10743    # otherwise default to the standard path separator (i.e. ":") - it is
10744    # assumed that no part of a normal pathname contains ";" but that should
10745    # okay in the real world where ";" in dirpaths is itself problematic.
10746    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10747    ;;
10748  *)
10749    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10750    ;;
10751  esac
10752  # Ok, now we have the path, separated by spaces, we can step through it
10753  # and add multilib dir if necessary...
10754  lt_tmp_lt_search_path_spec=
10755  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10756  # ...but if some path component already ends with the multilib dir we assume
10757  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10758  case "$lt_multi_os_dir; $lt_search_path_spec " in
10759  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10760    lt_multi_os_dir=
10761    ;;
10762  esac
10763  for lt_sys_path in $lt_search_path_spec; do
10764    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10765      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10766    elif test -n "$lt_multi_os_dir"; then
10767      test -d "$lt_sys_path" && \
10768	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10769    fi
10770  done
10771  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10772BEGIN {RS = " "; FS = "/|\n";} {
10773  lt_foo = "";
10774  lt_count = 0;
10775  for (lt_i = NF; lt_i > 0; lt_i--) {
10776    if ($lt_i != "" && $lt_i != ".") {
10777      if ($lt_i == "..") {
10778        lt_count++;
10779      } else {
10780        if (lt_count == 0) {
10781          lt_foo = "/" $lt_i lt_foo;
10782        } else {
10783          lt_count--;
10784        }
10785      }
10786    }
10787  }
10788  if (lt_foo != "") { lt_freq[lt_foo]++; }
10789  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10790}'`
10791  # AWK program above erroneously prepends '/' to C:/dos/paths
10792  # for these hosts.
10793  case $host_os in
10794    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10795      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10796  esac
10797  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10798else
10799  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10800fi
10801library_names_spec=
10802libname_spec='lib$name'
10803soname_spec=
10804shrext_cmds=.so
10805postinstall_cmds=
10806postuninstall_cmds=
10807finish_cmds=
10808finish_eval=
10809shlibpath_var=
10810shlibpath_overrides_runpath=unknown
10811version_type=none
10812dynamic_linker="$host_os ld.so"
10813sys_lib_dlsearch_path_spec="/lib /usr/lib"
10814need_lib_prefix=unknown
10815hardcode_into_libs=no
10816
10817# when you set need_version to no, make sure it does not cause -set_version
10818# flags to be left without arguments
10819need_version=unknown
10820
10821
10822
10823case $host_os in
10824aix3*)
10825  version_type=linux # correct to gnu/linux during the next big refactor
10826  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10827  shlibpath_var=LIBPATH
10828
10829  # AIX 3 has no versioning support, so we append a major version to the name.
10830  soname_spec='$libname$release$shared_ext$major'
10831  ;;
10832
10833aix[4-9]*)
10834  version_type=linux # correct to gnu/linux during the next big refactor
10835  need_lib_prefix=no
10836  need_version=no
10837  hardcode_into_libs=yes
10838  if test ia64 = "$host_cpu"; then
10839    # AIX 5 supports IA64
10840    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10841    shlibpath_var=LD_LIBRARY_PATH
10842  else
10843    # With GCC up to 2.95.x, collect2 would create an import file
10844    # for dependence libraries.  The import file would start with
10845    # the line '#! .'.  This would cause the generated library to
10846    # depend on '.', always an invalid library.  This was fixed in
10847    # development snapshots of GCC prior to 3.0.
10848    case $host_os in
10849      aix4 | aix4.[01] | aix4.[01].*)
10850      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10851	   echo ' yes '
10852	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10853	:
10854      else
10855	can_build_shared=no
10856      fi
10857      ;;
10858    esac
10859    # Using Import Files as archive members, it is possible to support
10860    # filename-based versioning of shared library archives on AIX. While
10861    # this would work for both with and without runtime linking, it will
10862    # prevent static linking of such archives. So we do filename-based
10863    # shared library versioning with .so extension only, which is used
10864    # when both runtime linking and shared linking is enabled.
10865    # Unfortunately, runtime linking may impact performance, so we do
10866    # not want this to be the default eventually. Also, we use the
10867    # versioned .so libs for executables only if there is the -brtl
10868    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10869    # To allow for filename-based versioning support, we need to create
10870    # libNAME.so.V as an archive file, containing:
10871    # *) an Import File, referring to the versioned filename of the
10872    #    archive as well as the shared archive member, telling the
10873    #    bitwidth (32 or 64) of that shared object, and providing the
10874    #    list of exported symbols of that shared object, eventually
10875    #    decorated with the 'weak' keyword
10876    # *) the shared object with the F_LOADONLY flag set, to really avoid
10877    #    it being seen by the linker.
10878    # At run time we better use the real file rather than another symlink,
10879    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10880
10881    case $with_aix_soname,$aix_use_runtimelinking in
10882    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10883    # soname into executable. Probably we can add versioning support to
10884    # collect2, so additional links can be useful in future.
10885    aix,yes) # traditional libtool
10886      dynamic_linker='AIX unversionable lib.so'
10887      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10888      # instead of lib<name>.a to let people know that these are not
10889      # typical AIX shared libraries.
10890      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10891      ;;
10892    aix,no) # traditional AIX only
10893      dynamic_linker='AIX lib.a(lib.so.V)'
10894      # We preserve .a as extension for shared libraries through AIX4.2
10895      # and later when we are not doing run time linking.
10896      library_names_spec='$libname$release.a $libname.a'
10897      soname_spec='$libname$release$shared_ext$major'
10898      ;;
10899    svr4,*) # full svr4 only
10900      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10901      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10902      # We do not specify a path in Import Files, so LIBPATH fires.
10903      shlibpath_overrides_runpath=yes
10904      ;;
10905    *,yes) # both, prefer svr4
10906      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10907      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10908      # unpreferred sharedlib libNAME.a needs extra handling
10909      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"'
10910      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"'
10911      # We do not specify a path in Import Files, so LIBPATH fires.
10912      shlibpath_overrides_runpath=yes
10913      ;;
10914    *,no) # both, prefer aix
10915      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10916      library_names_spec='$libname$release.a $libname.a'
10917      soname_spec='$libname$release$shared_ext$major'
10918      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10919      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)'
10920      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"'
10921      ;;
10922    esac
10923    shlibpath_var=LIBPATH
10924  fi
10925  ;;
10926
10927amigaos*)
10928  case $host_cpu in
10929  powerpc)
10930    # Since July 2007 AmigaOS4 officially supports .so libraries.
10931    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10932    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933    ;;
10934  m68k)
10935    library_names_spec='$libname.ixlibrary $libname.a'
10936    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10937    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'
10938    ;;
10939  esac
10940  ;;
10941
10942beos*)
10943  library_names_spec='$libname$shared_ext'
10944  dynamic_linker="$host_os ld.so"
10945  shlibpath_var=LIBRARY_PATH
10946  ;;
10947
10948bsdi[45]*)
10949  version_type=linux # correct to gnu/linux during the next big refactor
10950  need_version=no
10951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952  soname_spec='$libname$release$shared_ext$major'
10953  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10954  shlibpath_var=LD_LIBRARY_PATH
10955  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10956  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10957  # the default ld.so.conf also contains /usr/contrib/lib and
10958  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10959  # libtool to hard-code these into programs
10960  ;;
10961
10962cygwin* | mingw* | pw32* | cegcc*)
10963  version_type=windows
10964  shrext_cmds=.dll
10965  need_version=no
10966  need_lib_prefix=no
10967
10968  case $GCC,$cc_basename in
10969  yes,*)
10970    # gcc
10971    library_names_spec='$libname.dll.a'
10972    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10973    postinstall_cmds='base_file=`basename \$file`~
10974      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10975      dldir=$destdir/`dirname \$dlpath`~
10976      test -d \$dldir || mkdir -p \$dldir~
10977      $install_prog $dir/$dlname \$dldir/$dlname~
10978      chmod a+x \$dldir/$dlname~
10979      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10980        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10981      fi'
10982    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10983      dlpath=$dir/\$dldll~
10984       $RM \$dlpath'
10985    shlibpath_overrides_runpath=yes
10986
10987    case $host_os in
10988    cygwin*)
10989      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10990      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10991
10992      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10993      ;;
10994    mingw* | cegcc*)
10995      # MinGW DLLs use traditional 'lib' prefix
10996      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10997      ;;
10998    pw32*)
10999      # pw32 DLLs use 'pw' prefix rather than 'lib'
11000      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11001      ;;
11002    esac
11003    dynamic_linker='Win32 ld.exe'
11004    ;;
11005
11006  *,cl*)
11007    # Native MSVC
11008    libname_spec='$name'
11009    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11010    library_names_spec='$libname.dll.lib'
11011
11012    case $build_os in
11013    mingw*)
11014      sys_lib_search_path_spec=
11015      lt_save_ifs=$IFS
11016      IFS=';'
11017      for lt_path in $LIB
11018      do
11019        IFS=$lt_save_ifs
11020        # Let DOS variable expansion print the short 8.3 style file name.
11021        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11022        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11023      done
11024      IFS=$lt_save_ifs
11025      # Convert to MSYS style.
11026      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11027      ;;
11028    cygwin*)
11029      # Convert to unix form, then to dos form, then back to unix form
11030      # but this time dos style (no spaces!) so that the unix form looks
11031      # like /cygdrive/c/PROGRA~1:/cygdr...
11032      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11033      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11034      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11035      ;;
11036    *)
11037      sys_lib_search_path_spec=$LIB
11038      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11039        # It is most probably a Windows format PATH.
11040        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11041      else
11042        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11043      fi
11044      # FIXME: find the short name or the path components, as spaces are
11045      # common. (e.g. "Program Files" -> "PROGRA~1")
11046      ;;
11047    esac
11048
11049    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11050    postinstall_cmds='base_file=`basename \$file`~
11051      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11052      dldir=$destdir/`dirname \$dlpath`~
11053      test -d \$dldir || mkdir -p \$dldir~
11054      $install_prog $dir/$dlname \$dldir/$dlname'
11055    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11056      dlpath=$dir/\$dldll~
11057       $RM \$dlpath'
11058    shlibpath_overrides_runpath=yes
11059    dynamic_linker='Win32 link.exe'
11060    ;;
11061
11062  *)
11063    # Assume MSVC wrapper
11064    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11065    dynamic_linker='Win32 ld.exe'
11066    ;;
11067  esac
11068  # FIXME: first we should search . and the directory the executable is in
11069  shlibpath_var=PATH
11070  ;;
11071
11072darwin* | rhapsody*)
11073  dynamic_linker="$host_os dyld"
11074  version_type=darwin
11075  need_lib_prefix=no
11076  need_version=no
11077  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11078  soname_spec='$libname$release$major$shared_ext'
11079  shlibpath_overrides_runpath=yes
11080  shlibpath_var=DYLD_LIBRARY_PATH
11081  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11082
11083  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11084  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11085  ;;
11086
11087dgux*)
11088  version_type=linux # correct to gnu/linux during the next big refactor
11089  need_lib_prefix=no
11090  need_version=no
11091  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092  soname_spec='$libname$release$shared_ext$major'
11093  shlibpath_var=LD_LIBRARY_PATH
11094  ;;
11095
11096freebsd* | dragonfly*)
11097  # DragonFly does not have aout.  When/if they implement a new
11098  # versioning mechanism, adjust this.
11099  if test -x /usr/bin/objformat; then
11100    objformat=`/usr/bin/objformat`
11101  else
11102    case $host_os in
11103    freebsd[23].*) objformat=aout ;;
11104    *) objformat=elf ;;
11105    esac
11106  fi
11107  version_type=freebsd-$objformat
11108  case $version_type in
11109    freebsd-elf*)
11110      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111      soname_spec='$libname$release$shared_ext$major'
11112      need_version=no
11113      need_lib_prefix=no
11114      ;;
11115    freebsd-*)
11116      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11117      need_version=yes
11118      ;;
11119  esac
11120  shlibpath_var=LD_LIBRARY_PATH
11121  case $host_os in
11122  freebsd2.*)
11123    shlibpath_overrides_runpath=yes
11124    ;;
11125  freebsd3.[01]* | freebsdelf3.[01]*)
11126    shlibpath_overrides_runpath=yes
11127    hardcode_into_libs=yes
11128    ;;
11129  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11130  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11131    shlibpath_overrides_runpath=no
11132    hardcode_into_libs=yes
11133    ;;
11134  *) # from 4.6 on, and DragonFly
11135    shlibpath_overrides_runpath=yes
11136    hardcode_into_libs=yes
11137    ;;
11138  esac
11139  ;;
11140
11141haiku*)
11142  version_type=linux # correct to gnu/linux during the next big refactor
11143  need_lib_prefix=no
11144  need_version=no
11145  dynamic_linker="$host_os runtime_loader"
11146  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147  soname_spec='$libname$release$shared_ext$major'
11148  shlibpath_var=LIBRARY_PATH
11149  shlibpath_overrides_runpath=no
11150  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11151  hardcode_into_libs=yes
11152  ;;
11153
11154hpux9* | hpux10* | hpux11*)
11155  # Give a soname corresponding to the major version so that dld.sl refuses to
11156  # link against other versions.
11157  version_type=sunos
11158  need_lib_prefix=no
11159  need_version=no
11160  case $host_cpu in
11161  ia64*)
11162    shrext_cmds='.so'
11163    hardcode_into_libs=yes
11164    dynamic_linker="$host_os dld.so"
11165    shlibpath_var=LD_LIBRARY_PATH
11166    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11167    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168    soname_spec='$libname$release$shared_ext$major'
11169    if test 32 = "$HPUX_IA64_MODE"; then
11170      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11171      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11172    else
11173      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11174      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11175    fi
11176    ;;
11177  hppa*64*)
11178    shrext_cmds='.sl'
11179    hardcode_into_libs=yes
11180    dynamic_linker="$host_os dld.sl"
11181    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11182    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11183    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184    soname_spec='$libname$release$shared_ext$major'
11185    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11186    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11187    ;;
11188  *)
11189    shrext_cmds='.sl'
11190    dynamic_linker="$host_os dld.sl"
11191    shlibpath_var=SHLIB_PATH
11192    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11193    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11194    soname_spec='$libname$release$shared_ext$major'
11195    ;;
11196  esac
11197  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11198  postinstall_cmds='chmod 555 $lib'
11199  # or fails outright, so override atomically:
11200  install_override_mode=555
11201  ;;
11202
11203interix[3-9]*)
11204  version_type=linux # correct to gnu/linux during the next big refactor
11205  need_lib_prefix=no
11206  need_version=no
11207  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208  soname_spec='$libname$release$shared_ext$major'
11209  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11210  shlibpath_var=LD_LIBRARY_PATH
11211  shlibpath_overrides_runpath=no
11212  hardcode_into_libs=yes
11213  ;;
11214
11215irix5* | irix6* | nonstopux*)
11216  case $host_os in
11217    nonstopux*) version_type=nonstopux ;;
11218    *)
11219	if test yes = "$lt_cv_prog_gnu_ld"; then
11220		version_type=linux # correct to gnu/linux during the next big refactor
11221	else
11222		version_type=irix
11223	fi ;;
11224  esac
11225  need_lib_prefix=no
11226  need_version=no
11227  soname_spec='$libname$release$shared_ext$major'
11228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11229  case $host_os in
11230  irix5* | nonstopux*)
11231    libsuff= shlibsuff=
11232    ;;
11233  *)
11234    case $LD in # libtool.m4 will add one of these switches to LD
11235    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11236      libsuff= shlibsuff= libmagic=32-bit;;
11237    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11238      libsuff=32 shlibsuff=N32 libmagic=N32;;
11239    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11240      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11241    *) libsuff= shlibsuff= libmagic=never-match;;
11242    esac
11243    ;;
11244  esac
11245  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11246  shlibpath_overrides_runpath=no
11247  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11248  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11249  hardcode_into_libs=yes
11250  ;;
11251
11252# No shared lib support for Linux oldld, aout, or coff.
11253linux*oldld* | linux*aout* | linux*coff*)
11254  dynamic_linker=no
11255  ;;
11256
11257linux*android*)
11258  version_type=none # Android doesn't support versioned libraries.
11259  need_lib_prefix=no
11260  need_version=no
11261  library_names_spec='$libname$release$shared_ext'
11262  soname_spec='$libname$release$shared_ext'
11263  finish_cmds=
11264  shlibpath_var=LD_LIBRARY_PATH
11265  shlibpath_overrides_runpath=yes
11266
11267  # This implies no fast_install, which is unacceptable.
11268  # Some rework will be needed to allow for fast_install
11269  # before this can be enabled.
11270  hardcode_into_libs=yes
11271
11272  dynamic_linker='Android linker'
11273  # Don't embed -rpath directories since the linker doesn't support them.
11274  hardcode_libdir_flag_spec='-L$libdir'
11275  ;;
11276
11277# This must be glibc/ELF.
11278linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11279  version_type=linux # correct to gnu/linux during the next big refactor
11280  need_lib_prefix=no
11281  need_version=no
11282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283  soname_spec='$libname$release$shared_ext$major'
11284  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11285  shlibpath_var=LD_LIBRARY_PATH
11286  shlibpath_overrides_runpath=no
11287
11288  # Some binutils ld are patched to set DT_RUNPATH
11289  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11290  $as_echo_n "(cached) " >&6
11291else
11292  lt_cv_shlibpath_overrides_runpath=no
11293    save_LDFLAGS=$LDFLAGS
11294    save_libdir=$libdir
11295    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11296	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h.  */
11299
11300int
11301main ()
11302{
11303
11304  ;
11305  return 0;
11306}
11307_ACEOF
11308if ac_fn_c_try_link "$LINENO"; then :
11309  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11310  lt_cv_shlibpath_overrides_runpath=yes
11311fi
11312fi
11313rm -f core conftest.err conftest.$ac_objext \
11314    conftest$ac_exeext conftest.$ac_ext
11315    LDFLAGS=$save_LDFLAGS
11316    libdir=$save_libdir
11317
11318fi
11319
11320  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11321
11322  # This implies no fast_install, which is unacceptable.
11323  # Some rework will be needed to allow for fast_install
11324  # before this can be enabled.
11325  hardcode_into_libs=yes
11326
11327  # Add ABI-specific directories to the system library path.
11328  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11329
11330  # Ideally, we could use ldconfig to report *all* directores which are
11331  # searched for libraries, however this is still not possible.  Aside from not
11332  # being certain /sbin/ldconfig is available, command
11333  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11334  # even though it is searched at run-time.  Try to do the best guess by
11335  # appending ld.so.conf contents (and includes) to the search path.
11336  if test -f /etc/ld.so.conf; then
11337    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' ' '`
11338    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11339  fi
11340
11341  # We used to test for /lib/ld.so.1 and disable shared libraries on
11342  # powerpc, because MkLinux only supported shared libraries with the
11343  # GNU dynamic linker.  Since this was broken with cross compilers,
11344  # most powerpc-linux boxes support dynamic linking these days and
11345  # people can always --disable-shared, the test was removed, and we
11346  # assume the GNU/Linux dynamic linker is in use.
11347  dynamic_linker='GNU/Linux ld.so'
11348  ;;
11349
11350netbsd*)
11351  version_type=sunos
11352  need_lib_prefix=no
11353  need_version=no
11354  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11355    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11356    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11357    dynamic_linker='NetBSD (a.out) ld.so'
11358  else
11359    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11360    soname_spec='$libname$release$shared_ext$major'
11361    dynamic_linker='NetBSD ld.elf_so'
11362  fi
11363  shlibpath_var=LD_LIBRARY_PATH
11364  shlibpath_overrides_runpath=yes
11365  hardcode_into_libs=yes
11366  ;;
11367
11368newsos6)
11369  version_type=linux # correct to gnu/linux during the next big refactor
11370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11371  shlibpath_var=LD_LIBRARY_PATH
11372  shlibpath_overrides_runpath=yes
11373  ;;
11374
11375*nto* | *qnx*)
11376  version_type=qnx
11377  need_lib_prefix=no
11378  need_version=no
11379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380  soname_spec='$libname$release$shared_ext$major'
11381  shlibpath_var=LD_LIBRARY_PATH
11382  shlibpath_overrides_runpath=no
11383  hardcode_into_libs=yes
11384  dynamic_linker='ldqnx.so'
11385  ;;
11386
11387openbsd* | bitrig*)
11388  version_type=sunos
11389  sys_lib_dlsearch_path_spec=/usr/lib
11390  need_lib_prefix=no
11391  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11392    need_version=no
11393  else
11394    need_version=yes
11395  fi
11396  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11397  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398  shlibpath_var=LD_LIBRARY_PATH
11399  shlibpath_overrides_runpath=yes
11400  ;;
11401
11402os2*)
11403  libname_spec='$name'
11404  version_type=windows
11405  shrext_cmds=.dll
11406  need_version=no
11407  need_lib_prefix=no
11408  # OS/2 can only load a DLL with a base name of 8 characters or less.
11409  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11410    v=$($ECHO $release$versuffix | tr -d .-);
11411    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11412    $ECHO $n$v`$shared_ext'
11413  library_names_spec='${libname}_dll.$libext'
11414  dynamic_linker='OS/2 ld.exe'
11415  shlibpath_var=BEGINLIBPATH
11416  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11417  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11418  postinstall_cmds='base_file=`basename \$file`~
11419    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11420    dldir=$destdir/`dirname \$dlpath`~
11421    test -d \$dldir || mkdir -p \$dldir~
11422    $install_prog $dir/$dlname \$dldir/$dlname~
11423    chmod a+x \$dldir/$dlname~
11424    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11425      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11426    fi'
11427  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11428    dlpath=$dir/\$dldll~
11429    $RM \$dlpath'
11430  ;;
11431
11432osf3* | osf4* | osf5*)
11433  version_type=osf
11434  need_lib_prefix=no
11435  need_version=no
11436  soname_spec='$libname$release$shared_ext$major'
11437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438  shlibpath_var=LD_LIBRARY_PATH
11439  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11440  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11441  ;;
11442
11443rdos*)
11444  dynamic_linker=no
11445  ;;
11446
11447solaris*)
11448  version_type=linux # correct to gnu/linux during the next big refactor
11449  need_lib_prefix=no
11450  need_version=no
11451  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452  soname_spec='$libname$release$shared_ext$major'
11453  shlibpath_var=LD_LIBRARY_PATH
11454  shlibpath_overrides_runpath=yes
11455  hardcode_into_libs=yes
11456  # ldd complains unless libraries are executable
11457  postinstall_cmds='chmod +x $lib'
11458  ;;
11459
11460sunos4*)
11461  version_type=sunos
11462  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11463  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11464  shlibpath_var=LD_LIBRARY_PATH
11465  shlibpath_overrides_runpath=yes
11466  if test yes = "$with_gnu_ld"; then
11467    need_lib_prefix=no
11468  fi
11469  need_version=yes
11470  ;;
11471
11472sysv4 | sysv4.3*)
11473  version_type=linux # correct to gnu/linux during the next big refactor
11474  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11475  soname_spec='$libname$release$shared_ext$major'
11476  shlibpath_var=LD_LIBRARY_PATH
11477  case $host_vendor in
11478    sni)
11479      shlibpath_overrides_runpath=no
11480      need_lib_prefix=no
11481      runpath_var=LD_RUN_PATH
11482      ;;
11483    siemens)
11484      need_lib_prefix=no
11485      ;;
11486    motorola)
11487      need_lib_prefix=no
11488      need_version=no
11489      shlibpath_overrides_runpath=no
11490      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11491      ;;
11492  esac
11493  ;;
11494
11495sysv4*MP*)
11496  if test -d /usr/nec; then
11497    version_type=linux # correct to gnu/linux during the next big refactor
11498    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11499    soname_spec='$libname$shared_ext.$major'
11500    shlibpath_var=LD_LIBRARY_PATH
11501  fi
11502  ;;
11503
11504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11505  version_type=sco
11506  need_lib_prefix=no
11507  need_version=no
11508  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11509  soname_spec='$libname$release$shared_ext$major'
11510  shlibpath_var=LD_LIBRARY_PATH
11511  shlibpath_overrides_runpath=yes
11512  hardcode_into_libs=yes
11513  if test yes = "$with_gnu_ld"; then
11514    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11515  else
11516    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11517    case $host_os in
11518      sco3.2v5*)
11519        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11520	;;
11521    esac
11522  fi
11523  sys_lib_dlsearch_path_spec='/usr/lib'
11524  ;;
11525
11526tpf*)
11527  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11528  version_type=linux # correct to gnu/linux during the next big refactor
11529  need_lib_prefix=no
11530  need_version=no
11531  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532  shlibpath_var=LD_LIBRARY_PATH
11533  shlibpath_overrides_runpath=no
11534  hardcode_into_libs=yes
11535  ;;
11536
11537uts4*)
11538  version_type=linux # correct to gnu/linux during the next big refactor
11539  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540  soname_spec='$libname$release$shared_ext$major'
11541  shlibpath_var=LD_LIBRARY_PATH
11542  ;;
11543
11544*)
11545  dynamic_linker=no
11546  ;;
11547esac
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11549$as_echo "$dynamic_linker" >&6; }
11550test no = "$dynamic_linker" && can_build_shared=no
11551
11552variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11553if test yes = "$GCC"; then
11554  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11555fi
11556
11557if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11558  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11559fi
11560
11561if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11562  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11563fi
11564
11565# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11566configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11567
11568# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11569func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11570
11571# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11572configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11671$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11672hardcode_action=
11673if test -n "$hardcode_libdir_flag_spec" ||
11674   test -n "$runpath_var" ||
11675   test yes = "$hardcode_automatic"; then
11676
11677  # We can hardcode non-existent directories.
11678  if test no != "$hardcode_direct" &&
11679     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11680     # have to relink, otherwise we might link with an installed library
11681     # when we should be linking with a yet-to-be-installed one
11682     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11683     test no != "$hardcode_minus_L"; then
11684    # Linking always hardcodes the temporary library directory.
11685    hardcode_action=relink
11686  else
11687    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11688    hardcode_action=immediate
11689  fi
11690else
11691  # We cannot hardcode anything, or else we can only hardcode existing
11692  # directories.
11693  hardcode_action=unsupported
11694fi
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11696$as_echo "$hardcode_action" >&6; }
11697
11698if test relink = "$hardcode_action" ||
11699   test yes = "$inherit_rpath"; then
11700  # Fast installation is not supported
11701  enable_fast_install=no
11702elif test yes = "$shlibpath_overrides_runpath" ||
11703     test no = "$enable_shared"; then
11704  # Fast installation is not necessary
11705  enable_fast_install=needless
11706fi
11707
11708
11709
11710
11711
11712
11713  if test yes != "$enable_dlopen"; then
11714  enable_dlopen=unknown
11715  enable_dlopen_self=unknown
11716  enable_dlopen_self_static=unknown
11717else
11718  lt_cv_dlopen=no
11719  lt_cv_dlopen_libs=
11720
11721  case $host_os in
11722  beos*)
11723    lt_cv_dlopen=load_add_on
11724    lt_cv_dlopen_libs=
11725    lt_cv_dlopen_self=yes
11726    ;;
11727
11728  mingw* | pw32* | cegcc*)
11729    lt_cv_dlopen=LoadLibrary
11730    lt_cv_dlopen_libs=
11731    ;;
11732
11733  cygwin*)
11734    lt_cv_dlopen=dlopen
11735    lt_cv_dlopen_libs=
11736    ;;
11737
11738  darwin*)
11739    # if libdl is installed we need to link against it
11740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11741$as_echo_n "checking for dlopen in -ldl... " >&6; }
11742if ${ac_cv_lib_dl_dlopen+:} false; then :
11743  $as_echo_n "(cached) " >&6
11744else
11745  ac_check_lib_save_LIBS=$LIBS
11746LIBS="-ldl  $LIBS"
11747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748/* end confdefs.h.  */
11749
11750/* Override any GCC internal prototype to avoid an error.
11751   Use char because int might match the return type of a GCC
11752   builtin and then its argument prototype would still apply.  */
11753#ifdef __cplusplus
11754extern "C"
11755#endif
11756char dlopen ();
11757int
11758main ()
11759{
11760return dlopen ();
11761  ;
11762  return 0;
11763}
11764_ACEOF
11765if ac_fn_c_try_link "$LINENO"; then :
11766  ac_cv_lib_dl_dlopen=yes
11767else
11768  ac_cv_lib_dl_dlopen=no
11769fi
11770rm -f core conftest.err conftest.$ac_objext \
11771    conftest$ac_exeext conftest.$ac_ext
11772LIBS=$ac_check_lib_save_LIBS
11773fi
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11775$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11776if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11777  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11778else
11779
11780    lt_cv_dlopen=dyld
11781    lt_cv_dlopen_libs=
11782    lt_cv_dlopen_self=yes
11783
11784fi
11785
11786    ;;
11787
11788  tpf*)
11789    # Don't try to run any link tests for TPF.  We know it's impossible
11790    # because TPF is a cross-compiler, and we know how we open DSOs.
11791    lt_cv_dlopen=dlopen
11792    lt_cv_dlopen_libs=
11793    lt_cv_dlopen_self=no
11794    ;;
11795
11796  *)
11797    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11798if test "x$ac_cv_func_shl_load" = xyes; then :
11799  lt_cv_dlopen=shl_load
11800else
11801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11802$as_echo_n "checking for shl_load in -ldld... " >&6; }
11803if ${ac_cv_lib_dld_shl_load+:} false; then :
11804  $as_echo_n "(cached) " >&6
11805else
11806  ac_check_lib_save_LIBS=$LIBS
11807LIBS="-ldld  $LIBS"
11808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h.  */
11810
11811/* Override any GCC internal prototype to avoid an error.
11812   Use char because int might match the return type of a GCC
11813   builtin and then its argument prototype would still apply.  */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817char shl_load ();
11818int
11819main ()
11820{
11821return shl_load ();
11822  ;
11823  return 0;
11824}
11825_ACEOF
11826if ac_fn_c_try_link "$LINENO"; then :
11827  ac_cv_lib_dld_shl_load=yes
11828else
11829  ac_cv_lib_dld_shl_load=no
11830fi
11831rm -f core conftest.err conftest.$ac_objext \
11832    conftest$ac_exeext conftest.$ac_ext
11833LIBS=$ac_check_lib_save_LIBS
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11836$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11837if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11838  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11839else
11840  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11841if test "x$ac_cv_func_dlopen" = xyes; then :
11842  lt_cv_dlopen=dlopen
11843else
11844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11845$as_echo_n "checking for dlopen in -ldl... " >&6; }
11846if ${ac_cv_lib_dl_dlopen+:} false; then :
11847  $as_echo_n "(cached) " >&6
11848else
11849  ac_check_lib_save_LIBS=$LIBS
11850LIBS="-ldl  $LIBS"
11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h.  */
11853
11854/* Override any GCC internal prototype to avoid an error.
11855   Use char because int might match the return type of a GCC
11856   builtin and then its argument prototype would still apply.  */
11857#ifdef __cplusplus
11858extern "C"
11859#endif
11860char dlopen ();
11861int
11862main ()
11863{
11864return dlopen ();
11865  ;
11866  return 0;
11867}
11868_ACEOF
11869if ac_fn_c_try_link "$LINENO"; then :
11870  ac_cv_lib_dl_dlopen=yes
11871else
11872  ac_cv_lib_dl_dlopen=no
11873fi
11874rm -f core conftest.err conftest.$ac_objext \
11875    conftest$ac_exeext conftest.$ac_ext
11876LIBS=$ac_check_lib_save_LIBS
11877fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11880if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11881  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11882else
11883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11884$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11885if ${ac_cv_lib_svld_dlopen+:} false; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  ac_check_lib_save_LIBS=$LIBS
11889LIBS="-lsvld  $LIBS"
11890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891/* end confdefs.h.  */
11892
11893/* Override any GCC internal prototype to avoid an error.
11894   Use char because int might match the return type of a GCC
11895   builtin and then its argument prototype would still apply.  */
11896#ifdef __cplusplus
11897extern "C"
11898#endif
11899char dlopen ();
11900int
11901main ()
11902{
11903return dlopen ();
11904  ;
11905  return 0;
11906}
11907_ACEOF
11908if ac_fn_c_try_link "$LINENO"; then :
11909  ac_cv_lib_svld_dlopen=yes
11910else
11911  ac_cv_lib_svld_dlopen=no
11912fi
11913rm -f core conftest.err conftest.$ac_objext \
11914    conftest$ac_exeext conftest.$ac_ext
11915LIBS=$ac_check_lib_save_LIBS
11916fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11918$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11919if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11920  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11921else
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11923$as_echo_n "checking for dld_link in -ldld... " >&6; }
11924if ${ac_cv_lib_dld_dld_link+:} false; then :
11925  $as_echo_n "(cached) " >&6
11926else
11927  ac_check_lib_save_LIBS=$LIBS
11928LIBS="-ldld  $LIBS"
11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930/* end confdefs.h.  */
11931
11932/* Override any GCC internal prototype to avoid an error.
11933   Use char because int might match the return type of a GCC
11934   builtin and then its argument prototype would still apply.  */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938char dld_link ();
11939int
11940main ()
11941{
11942return dld_link ();
11943  ;
11944  return 0;
11945}
11946_ACEOF
11947if ac_fn_c_try_link "$LINENO"; then :
11948  ac_cv_lib_dld_dld_link=yes
11949else
11950  ac_cv_lib_dld_dld_link=no
11951fi
11952rm -f core conftest.err conftest.$ac_objext \
11953    conftest$ac_exeext conftest.$ac_ext
11954LIBS=$ac_check_lib_save_LIBS
11955fi
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11957$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11958if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11959  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11960fi
11961
11962
11963fi
11964
11965
11966fi
11967
11968
11969fi
11970
11971
11972fi
11973
11974
11975fi
11976
11977    ;;
11978  esac
11979
11980  if test no = "$lt_cv_dlopen"; then
11981    enable_dlopen=no
11982  else
11983    enable_dlopen=yes
11984  fi
11985
11986  case $lt_cv_dlopen in
11987  dlopen)
11988    save_CPPFLAGS=$CPPFLAGS
11989    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11990
11991    save_LDFLAGS=$LDFLAGS
11992    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11993
11994    save_LIBS=$LIBS
11995    LIBS="$lt_cv_dlopen_libs $LIBS"
11996
11997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11998$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11999if ${lt_cv_dlopen_self+:} false; then :
12000  $as_echo_n "(cached) " >&6
12001else
12002  	  if test yes = "$cross_compiling"; then :
12003  lt_cv_dlopen_self=cross
12004else
12005  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12006  lt_status=$lt_dlunknown
12007  cat > conftest.$ac_ext <<_LT_EOF
12008#line $LINENO "configure"
12009#include "confdefs.h"
12010
12011#if HAVE_DLFCN_H
12012#include <dlfcn.h>
12013#endif
12014
12015#include <stdio.h>
12016
12017#ifdef RTLD_GLOBAL
12018#  define LT_DLGLOBAL		RTLD_GLOBAL
12019#else
12020#  ifdef DL_GLOBAL
12021#    define LT_DLGLOBAL		DL_GLOBAL
12022#  else
12023#    define LT_DLGLOBAL		0
12024#  endif
12025#endif
12026
12027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12028   find out it does not work in some platform. */
12029#ifndef LT_DLLAZY_OR_NOW
12030#  ifdef RTLD_LAZY
12031#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12032#  else
12033#    ifdef DL_LAZY
12034#      define LT_DLLAZY_OR_NOW		DL_LAZY
12035#    else
12036#      ifdef RTLD_NOW
12037#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12038#      else
12039#        ifdef DL_NOW
12040#          define LT_DLLAZY_OR_NOW	DL_NOW
12041#        else
12042#          define LT_DLLAZY_OR_NOW	0
12043#        endif
12044#      endif
12045#    endif
12046#  endif
12047#endif
12048
12049/* When -fvisibility=hidden is used, assume the code has been annotated
12050   correspondingly for the symbols needed.  */
12051#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12052int fnord () __attribute__((visibility("default")));
12053#endif
12054
12055int fnord () { return 42; }
12056int main ()
12057{
12058  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12059  int status = $lt_dlunknown;
12060
12061  if (self)
12062    {
12063      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12064      else
12065        {
12066	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12067          else puts (dlerror ());
12068	}
12069      /* dlclose (self); */
12070    }
12071  else
12072    puts (dlerror ());
12073
12074  return status;
12075}
12076_LT_EOF
12077  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12078  (eval $ac_link) 2>&5
12079  ac_status=$?
12080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12081  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12082    (./conftest; exit; ) >&5 2>/dev/null
12083    lt_status=$?
12084    case x$lt_status in
12085      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12086      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12087      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12088    esac
12089  else :
12090    # compilation failed
12091    lt_cv_dlopen_self=no
12092  fi
12093fi
12094rm -fr conftest*
12095
12096
12097fi
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12099$as_echo "$lt_cv_dlopen_self" >&6; }
12100
12101    if test yes = "$lt_cv_dlopen_self"; then
12102      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12103      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12104$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12105if ${lt_cv_dlopen_self_static+:} false; then :
12106  $as_echo_n "(cached) " >&6
12107else
12108  	  if test yes = "$cross_compiling"; then :
12109  lt_cv_dlopen_self_static=cross
12110else
12111  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12112  lt_status=$lt_dlunknown
12113  cat > conftest.$ac_ext <<_LT_EOF
12114#line $LINENO "configure"
12115#include "confdefs.h"
12116
12117#if HAVE_DLFCN_H
12118#include <dlfcn.h>
12119#endif
12120
12121#include <stdio.h>
12122
12123#ifdef RTLD_GLOBAL
12124#  define LT_DLGLOBAL		RTLD_GLOBAL
12125#else
12126#  ifdef DL_GLOBAL
12127#    define LT_DLGLOBAL		DL_GLOBAL
12128#  else
12129#    define LT_DLGLOBAL		0
12130#  endif
12131#endif
12132
12133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12134   find out it does not work in some platform. */
12135#ifndef LT_DLLAZY_OR_NOW
12136#  ifdef RTLD_LAZY
12137#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12138#  else
12139#    ifdef DL_LAZY
12140#      define LT_DLLAZY_OR_NOW		DL_LAZY
12141#    else
12142#      ifdef RTLD_NOW
12143#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12144#      else
12145#        ifdef DL_NOW
12146#          define LT_DLLAZY_OR_NOW	DL_NOW
12147#        else
12148#          define LT_DLLAZY_OR_NOW	0
12149#        endif
12150#      endif
12151#    endif
12152#  endif
12153#endif
12154
12155/* When -fvisibility=hidden is used, assume the code has been annotated
12156   correspondingly for the symbols needed.  */
12157#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12158int fnord () __attribute__((visibility("default")));
12159#endif
12160
12161int fnord () { return 42; }
12162int main ()
12163{
12164  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165  int status = $lt_dlunknown;
12166
12167  if (self)
12168    {
12169      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12170      else
12171        {
12172	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12173          else puts (dlerror ());
12174	}
12175      /* dlclose (self); */
12176    }
12177  else
12178    puts (dlerror ());
12179
12180  return status;
12181}
12182_LT_EOF
12183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12184  (eval $ac_link) 2>&5
12185  ac_status=$?
12186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12188    (./conftest; exit; ) >&5 2>/dev/null
12189    lt_status=$?
12190    case x$lt_status in
12191      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12192      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12193      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12194    esac
12195  else :
12196    # compilation failed
12197    lt_cv_dlopen_self_static=no
12198  fi
12199fi
12200rm -fr conftest*
12201
12202
12203fi
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12205$as_echo "$lt_cv_dlopen_self_static" >&6; }
12206    fi
12207
12208    CPPFLAGS=$save_CPPFLAGS
12209    LDFLAGS=$save_LDFLAGS
12210    LIBS=$save_LIBS
12211    ;;
12212  esac
12213
12214  case $lt_cv_dlopen_self in
12215  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12216  *) enable_dlopen_self=unknown ;;
12217  esac
12218
12219  case $lt_cv_dlopen_self_static in
12220  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12221  *) enable_dlopen_self_static=unknown ;;
12222  esac
12223fi
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241striplib=
12242old_striplib=
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12244$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12245if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12246  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12247  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12249$as_echo "yes" >&6; }
12250else
12251# FIXME - insert some real tests, host_os isn't really good enough
12252  case $host_os in
12253  darwin*)
12254    if test -n "$STRIP"; then
12255      striplib="$STRIP -x"
12256      old_striplib="$STRIP -S"
12257      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12258$as_echo "yes" >&6; }
12259    else
12260      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
12262    fi
12263    ;;
12264  *)
12265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
12267    ;;
12268  esac
12269fi
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282  # Report what library types will actually be built
12283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12284$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12286$as_echo "$can_build_shared" >&6; }
12287
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12289$as_echo_n "checking whether to build shared libraries... " >&6; }
12290  test no = "$can_build_shared" && enable_shared=no
12291
12292  # On AIX, shared libraries and static libraries use the same namespace, and
12293  # are all built from PIC.
12294  case $host_os in
12295  aix3*)
12296    test yes = "$enable_shared" && enable_static=no
12297    if test -n "$RANLIB"; then
12298      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12299      postinstall_cmds='$RANLIB $lib'
12300    fi
12301    ;;
12302
12303  aix[4-9]*)
12304    if test ia64 != "$host_cpu"; then
12305      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12306      yes,aix,yes) ;;			# shared object as lib.so file only
12307      yes,svr4,*) ;;			# shared object as lib.so archive member only
12308      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12309      esac
12310    fi
12311    ;;
12312  esac
12313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12314$as_echo "$enable_shared" >&6; }
12315
12316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12317$as_echo_n "checking whether to build static libraries... " >&6; }
12318  # Make sure either enable_shared or enable_static is yes.
12319  test yes = "$enable_shared" || enable_static=yes
12320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12321$as_echo "$enable_static" >&6; }
12322
12323
12324
12325
12326fi
12327ac_ext=c
12328ac_cpp='$CPP $CPPFLAGS'
12329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_c_compiler_gnu
12332
12333CC=$lt_save_CC
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349        ac_config_commands="$ac_config_commands libtool"
12350
12351
12352
12353
12354# Only expand once:
12355
12356
12357
12358if test "$GCC" = yes
12359then
12360	CFLAGS="-Wall $CFLAGS"
12361fi
12362
12363CFLAGS="$CFLAGS -I$srcdir/.. -I.."
12364
12365
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12367$as_echo_n "checking for ANSI C header files... " >&6; }
12368if ${ac_cv_header_stdc+:} false; then :
12369  $as_echo_n "(cached) " >&6
12370else
12371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372/* end confdefs.h.  */
12373#include <stdlib.h>
12374#include <stdarg.h>
12375#include <string.h>
12376#include <float.h>
12377
12378int
12379main ()
12380{
12381
12382  ;
12383  return 0;
12384}
12385_ACEOF
12386if ac_fn_c_try_compile "$LINENO"; then :
12387  ac_cv_header_stdc=yes
12388else
12389  ac_cv_header_stdc=no
12390fi
12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392
12393if test $ac_cv_header_stdc = yes; then
12394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396/* end confdefs.h.  */
12397#include <string.h>
12398
12399_ACEOF
12400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12401  $EGREP "memchr" >/dev/null 2>&1; then :
12402
12403else
12404  ac_cv_header_stdc=no
12405fi
12406rm -f conftest*
12407
12408fi
12409
12410if test $ac_cv_header_stdc = yes; then
12411  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414#include <stdlib.h>
12415
12416_ACEOF
12417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12418  $EGREP "free" >/dev/null 2>&1; then :
12419
12420else
12421  ac_cv_header_stdc=no
12422fi
12423rm -f conftest*
12424
12425fi
12426
12427if test $ac_cv_header_stdc = yes; then
12428  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12429  if test "$cross_compiling" = yes; then :
12430  :
12431else
12432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433/* end confdefs.h.  */
12434#include <ctype.h>
12435#include <stdlib.h>
12436#if ((' ' & 0x0FF) == 0x020)
12437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12439#else
12440# define ISLOWER(c) \
12441		   (('a' <= (c) && (c) <= 'i') \
12442		     || ('j' <= (c) && (c) <= 'r') \
12443		     || ('s' <= (c) && (c) <= 'z'))
12444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12445#endif
12446
12447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12448int
12449main ()
12450{
12451  int i;
12452  for (i = 0; i < 256; i++)
12453    if (XOR (islower (i), ISLOWER (i))
12454	|| toupper (i) != TOUPPER (i))
12455      return 2;
12456  return 0;
12457}
12458_ACEOF
12459if ac_fn_c_try_run "$LINENO"; then :
12460
12461else
12462  ac_cv_header_stdc=no
12463fi
12464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12465  conftest.$ac_objext conftest.beam conftest.$ac_ext
12466fi
12467
12468fi
12469fi
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12471$as_echo "$ac_cv_header_stdc" >&6; }
12472if test $ac_cv_header_stdc = yes; then
12473
12474$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12475
12476fi
12477
12478
12479for ac_header in sys/types.h stdint.h
12480do :
12481  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12482ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12483if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12484  cat >>confdefs.h <<_ACEOF
12485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12486_ACEOF
12487
12488fi
12489
12490done
12491
12492
12493
12494
12495# Check whether --with-int32 was given.
12496if test "${with_int32+set}" = set; then :
12497  withval=$with_int32; int32="$withval"
12498else
12499
12500
12501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
12502$as_echo_n "checking for uint32_t... " >&6; }
12503
12504		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505/* end confdefs.h.  */
12506
12507#if HAVE_SYS_TYPES_H
12508#include	<sys/types.h>
12509#endif
12510#if HAVE_STDINT_H
12511#include	<stdint.h>
12512#endif
12513uint32_t i;
12514
12515int
12516main ()
12517{
12518
12519
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524if ac_fn_c_try_compile "$LINENO"; then :
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526$as_echo "yes" >&6; } ; int32="uint32_t"
12527else
12528
12529
12530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
12533$as_echo_n "checking for u_int_32_t... " >&6; }
12534
12535		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536/* end confdefs.h.  */
12537
12538#if HAVE_SYS_TYPES_H
12539#include	<sys/types.h>
12540#endif
12541#if HAVE_STDINT_H
12542#include	<stdint.h>
12543#endif
12544u_int32_t	i;
12545
12546int
12547main ()
12548{
12549
12550
12551  ;
12552  return 0;
12553}
12554_ACEOF
12555if ac_fn_c_try_compile "$LINENO"; then :
12556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12557$as_echo "yes" >&6; }; int32="u_int32_t"
12558else
12559
12560
12561			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562$as_echo "no" >&6; }
12563
12564			# The cast to long int works around a bug in the HP C Compiler
12565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12567# This bug is HP SR number 8606223364.
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12569$as_echo_n "checking size of unsigned... " >&6; }
12570if ${ac_cv_sizeof_unsigned+:} false; then :
12571  $as_echo_n "(cached) " >&6
12572else
12573  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
12574
12575else
12576  if test "$ac_cv_type_unsigned" = yes; then
12577     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12579as_fn_error 77 "cannot compute sizeof (unsigned)
12580See \`config.log' for more details" "$LINENO" 5; }
12581   else
12582     ac_cv_sizeof_unsigned=0
12583   fi
12584fi
12585
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12588$as_echo "$ac_cv_sizeof_unsigned" >&6; }
12589
12590
12591
12592cat >>confdefs.h <<_ACEOF
12593#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12594_ACEOF
12595
12596
12597			if test "$ac_cv_sizeof_unsigned" != 4
12598			then
12599				# The cast to long int works around a bug in the HP C Compiler
12600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12602# This bug is HP SR number 8606223364.
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12604$as_echo_n "checking size of unsigned long... " >&6; }
12605if ${ac_cv_sizeof_unsigned_long+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
12609
12610else
12611  if test "$ac_cv_type_unsigned_long" = yes; then
12612     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614as_fn_error 77 "cannot compute sizeof (unsigned long)
12615See \`config.log' for more details" "$LINENO" 5; }
12616   else
12617     ac_cv_sizeof_unsigned_long=0
12618   fi
12619fi
12620
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12623$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12624
12625
12626
12627cat >>confdefs.h <<_ACEOF
12628#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12629_ACEOF
12630
12631
12632				if test "$ac_cv_sizeof_unsigned_long" != 4
12633				then
12634					# The cast to long int works around a bug in the HP C Compiler
12635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12637# This bug is HP SR number 8606223364.
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12639$as_echo_n "checking size of unsigned short... " >&6; }
12640if ${ac_cv_sizeof_unsigned_short+:} false; then :
12641  $as_echo_n "(cached) " >&6
12642else
12643  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
12644
12645else
12646  if test "$ac_cv_type_unsigned_short" = yes; then
12647     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12649as_fn_error 77 "cannot compute sizeof (unsigned short)
12650See \`config.log' for more details" "$LINENO" 5; }
12651   else
12652     ac_cv_sizeof_unsigned_short=0
12653   fi
12654fi
12655
12656fi
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12658$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12659
12660
12661
12662cat >>confdefs.h <<_ACEOF
12663#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12664_ACEOF
12665
12666
12667					if test "$ac_cv_sizeof_unsigned_short" != 4
12668					then
12669						as_fn_error $? "--with-int32 option is required" "$LINENO" 5
12670					fi
12671					int32="unsigned short"
12672				fi
12673				int32="unsigned long"
12674			else
12675				int32="unsigned"
12676			fi
12677
12678fi
12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680
12681fi
12682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683
12684
12685fi
12686
12687UINT32="$int32"
12688
12689
12690cat >>confdefs.h <<_ACEOF
12691#define MD5_WORD $UINT32
12692_ACEOF
12693
12694
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12696$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12697if ${ac_cv_c_const+:} false; then :
12698  $as_echo_n "(cached) " >&6
12699else
12700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701/* end confdefs.h.  */
12702
12703int
12704main ()
12705{
12706
12707#ifndef __cplusplus
12708  /* Ultrix mips cc rejects this sort of thing.  */
12709  typedef int charset[2];
12710  const charset cs = { 0, 0 };
12711  /* SunOS 4.1.1 cc rejects this.  */
12712  char const *const *pcpcc;
12713  char **ppc;
12714  /* NEC SVR4.0.2 mips cc rejects this.  */
12715  struct point {int x, y;};
12716  static struct point const zero = {0,0};
12717  /* AIX XL C 1.02.0.0 rejects this.
12718     It does not let you subtract one const X* pointer from another in
12719     an arm of an if-expression whose if-part is not a constant
12720     expression */
12721  const char *g = "string";
12722  pcpcc = &g + (g ? g-g : 0);
12723  /* HPUX 7.0 cc rejects these. */
12724  ++pcpcc;
12725  ppc = (char**) pcpcc;
12726  pcpcc = (char const *const *) ppc;
12727  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12728    char tx;
12729    char *t = &tx;
12730    char const *s = 0 ? (char *) 0 : (char const *) 0;
12731
12732    *t++ = 0;
12733    if (s) return 0;
12734  }
12735  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12736    int x[] = {25, 17};
12737    const int *foo = &x[0];
12738    ++foo;
12739  }
12740  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12741    typedef const int *iptr;
12742    iptr p = 0;
12743    ++p;
12744  }
12745  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12746       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12747    struct s { int j; const int *ap[3]; } bx;
12748    struct s *b = &bx; b->j = 5;
12749  }
12750  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12751    const int foo = 10;
12752    if (!foo) return 0;
12753  }
12754  return !cs[0] && !zero.x;
12755#endif
12756
12757  ;
12758  return 0;
12759}
12760_ACEOF
12761if ac_fn_c_try_compile "$LINENO"; then :
12762  ac_cv_c_const=yes
12763else
12764  ac_cv_c_const=no
12765fi
12766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12767fi
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12769$as_echo "$ac_cv_c_const" >&6; }
12770if test $ac_cv_c_const = no; then
12771
12772$as_echo "#define const /**/" >>confdefs.h
12773
12774fi
12775
12776# Check whether --enable-largefile was given.
12777if test "${enable_largefile+set}" = set; then :
12778  enableval=$enable_largefile;
12779fi
12780
12781if test "$enable_largefile" != no; then
12782
12783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12784$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12785if ${ac_cv_sys_largefile_CC+:} false; then :
12786  $as_echo_n "(cached) " >&6
12787else
12788  ac_cv_sys_largefile_CC=no
12789     if test "$GCC" != yes; then
12790       ac_save_CC=$CC
12791       while :; do
12792	 # IRIX 6.2 and later do not support large files by default,
12793	 # so use the C compiler's -n32 option if that helps.
12794	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h.  */
12796#include <sys/types.h>
12797 /* Check that off_t can represent 2**63 - 1 correctly.
12798    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12799    since some C++ compilers masquerading as C compilers
12800    incorrectly reject 9223372036854775807.  */
12801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12802  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12803		       && LARGE_OFF_T % 2147483647 == 1)
12804		      ? 1 : -1];
12805int
12806main ()
12807{
12808
12809  ;
12810  return 0;
12811}
12812_ACEOF
12813	 if ac_fn_c_try_compile "$LINENO"; then :
12814  break
12815fi
12816rm -f core conftest.err conftest.$ac_objext
12817	 CC="$CC -n32"
12818	 if ac_fn_c_try_compile "$LINENO"; then :
12819  ac_cv_sys_largefile_CC=' -n32'; break
12820fi
12821rm -f core conftest.err conftest.$ac_objext
12822	 break
12823       done
12824       CC=$ac_save_CC
12825       rm -f conftest.$ac_ext
12826    fi
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12829$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12830  if test "$ac_cv_sys_largefile_CC" != no; then
12831    CC=$CC$ac_cv_sys_largefile_CC
12832  fi
12833
12834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12835$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12836if ${ac_cv_sys_file_offset_bits+:} false; then :
12837  $as_echo_n "(cached) " >&6
12838else
12839  while :; do
12840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h.  */
12842#include <sys/types.h>
12843 /* Check that off_t can represent 2**63 - 1 correctly.
12844    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12845    since some C++ compilers masquerading as C compilers
12846    incorrectly reject 9223372036854775807.  */
12847#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12848  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12849		       && LARGE_OFF_T % 2147483647 == 1)
12850		      ? 1 : -1];
12851int
12852main ()
12853{
12854
12855  ;
12856  return 0;
12857}
12858_ACEOF
12859if ac_fn_c_try_compile "$LINENO"; then :
12860  ac_cv_sys_file_offset_bits=no; break
12861fi
12862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864/* end confdefs.h.  */
12865#define _FILE_OFFSET_BITS 64
12866#include <sys/types.h>
12867 /* Check that off_t can represent 2**63 - 1 correctly.
12868    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12869    since some C++ compilers masquerading as C compilers
12870    incorrectly reject 9223372036854775807.  */
12871#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12872  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12873		       && LARGE_OFF_T % 2147483647 == 1)
12874		      ? 1 : -1];
12875int
12876main ()
12877{
12878
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883if ac_fn_c_try_compile "$LINENO"; then :
12884  ac_cv_sys_file_offset_bits=64; break
12885fi
12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887  ac_cv_sys_file_offset_bits=unknown
12888  break
12889done
12890fi
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12892$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12893case $ac_cv_sys_file_offset_bits in #(
12894  no | unknown) ;;
12895  *)
12896cat >>confdefs.h <<_ACEOF
12897#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12898_ACEOF
12899;;
12900esac
12901rm -rf conftest*
12902  if test $ac_cv_sys_file_offset_bits = unknown; then
12903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12904$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12905if ${ac_cv_sys_large_files+:} false; then :
12906  $as_echo_n "(cached) " >&6
12907else
12908  while :; do
12909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910/* end confdefs.h.  */
12911#include <sys/types.h>
12912 /* Check that off_t can represent 2**63 - 1 correctly.
12913    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12914    since some C++ compilers masquerading as C compilers
12915    incorrectly reject 9223372036854775807.  */
12916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12917  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12918		       && LARGE_OFF_T % 2147483647 == 1)
12919		      ? 1 : -1];
12920int
12921main ()
12922{
12923
12924  ;
12925  return 0;
12926}
12927_ACEOF
12928if ac_fn_c_try_compile "$LINENO"; then :
12929  ac_cv_sys_large_files=no; break
12930fi
12931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933/* end confdefs.h.  */
12934#define _LARGE_FILES 1
12935#include <sys/types.h>
12936 /* Check that off_t can represent 2**63 - 1 correctly.
12937    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12938    since some C++ compilers masquerading as C compilers
12939    incorrectly reject 9223372036854775807.  */
12940#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12941  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12942		       && LARGE_OFF_T % 2147483647 == 1)
12943		      ? 1 : -1];
12944int
12945main ()
12946{
12947
12948  ;
12949  return 0;
12950}
12951_ACEOF
12952if ac_fn_c_try_compile "$LINENO"; then :
12953  ac_cv_sys_large_files=1; break
12954fi
12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956  ac_cv_sys_large_files=unknown
12957  break
12958done
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12961$as_echo "$ac_cv_sys_large_files" >&6; }
12962case $ac_cv_sys_large_files in #(
12963  no | unknown) ;;
12964  *)
12965cat >>confdefs.h <<_ACEOF
12966#define _LARGE_FILES $ac_cv_sys_large_files
12967_ACEOF
12968;;
12969esac
12970rm -rf conftest*
12971  fi
12972
12973
12974fi
12975
12976
12977
12978ac_config_files="$ac_config_files Makefile"
12979
12980cat >confcache <<\_ACEOF
12981# This file is a shell script that caches the results of configure
12982# tests run on this system so they can be shared between configure
12983# scripts and configure runs, see configure's option --config-cache.
12984# It is not useful on other systems.  If it contains results you don't
12985# want to keep, you may remove or edit it.
12986#
12987# config.status only pays attention to the cache file if you give it
12988# the --recheck option to rerun configure.
12989#
12990# `ac_cv_env_foo' variables (set or unset) will be overridden when
12991# loading this file, other *unset* `ac_cv_foo' will be assigned the
12992# following values.
12993
12994_ACEOF
12995
12996# The following way of writing the cache mishandles newlines in values,
12997# but we know of no workaround that is simple, portable, and efficient.
12998# So, we kill variables containing newlines.
12999# Ultrix sh set writes to stderr and can't be redirected directly,
13000# and sets the high bit in the cache file unless we assign to the vars.
13001(
13002  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13003    eval ac_val=\$$ac_var
13004    case $ac_val in #(
13005    *${as_nl}*)
13006      case $ac_var in #(
13007      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13008$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13009      esac
13010      case $ac_var in #(
13011      _ | IFS | as_nl) ;; #(
13012      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13013      *) { eval $ac_var=; unset $ac_var;} ;;
13014      esac ;;
13015    esac
13016  done
13017
13018  (set) 2>&1 |
13019    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13020    *${as_nl}ac_space=\ *)
13021      # `set' does not quote correctly, so add quotes: double-quote
13022      # substitution turns \\\\ into \\, and sed turns \\ into \.
13023      sed -n \
13024	"s/'/'\\\\''/g;
13025	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13026      ;; #(
13027    *)
13028      # `set' quotes correctly as required by POSIX, so do not add quotes.
13029      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13030      ;;
13031    esac |
13032    sort
13033) |
13034  sed '
13035     /^ac_cv_env_/b end
13036     t clear
13037     :clear
13038     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13039     t end
13040     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13041     :end' >>confcache
13042if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13043  if test -w "$cache_file"; then
13044    if test "x$cache_file" != "x/dev/null"; then
13045      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13046$as_echo "$as_me: updating cache $cache_file" >&6;}
13047      if test ! -f "$cache_file" || test -h "$cache_file"; then
13048	cat confcache >"$cache_file"
13049      else
13050        case $cache_file in #(
13051        */* | ?:*)
13052	  mv -f confcache "$cache_file"$$ &&
13053	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13054        *)
13055	  mv -f confcache "$cache_file" ;;
13056	esac
13057      fi
13058    fi
13059  else
13060    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13061$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13062  fi
13063fi
13064rm -f confcache
13065
13066test "x$prefix" = xNONE && prefix=$ac_default_prefix
13067# Let make expand exec_prefix.
13068test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13069
13070DEFS=-DHAVE_CONFIG_H
13071
13072ac_libobjs=
13073ac_ltlibobjs=
13074U=
13075for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13076  # 1. Remove the extension, and $U if already installed.
13077  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13078  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13079  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13080  #    will be set to the directory where LIBOBJS objects are built.
13081  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13082  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13083done
13084LIBOBJS=$ac_libobjs
13085
13086LTLIBOBJS=$ac_ltlibobjs
13087
13088
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13090$as_echo_n "checking that generated files are newer than configure... " >&6; }
13091   if test -n "$am_sleep_pid"; then
13092     # Hide warnings about reused PIDs.
13093     wait $am_sleep_pid 2>/dev/null
13094   fi
13095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13096$as_echo "done" >&6; }
13097 if test -n "$EXEEXT"; then
13098  am__EXEEXT_TRUE=
13099  am__EXEEXT_FALSE='#'
13100else
13101  am__EXEEXT_TRUE='#'
13102  am__EXEEXT_FALSE=
13103fi
13104
13105if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
13106  as_fn_error $? "conditional \"HMACC\" was never defined.
13107Usually this means the macro was only invoked conditionally." "$LINENO" 5
13108fi
13109if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13110  as_fn_error $? "conditional \"AMDEP\" was never defined.
13111Usually this means the macro was only invoked conditionally." "$LINENO" 5
13112fi
13113if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13114  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13115Usually this means the macro was only invoked conditionally." "$LINENO" 5
13116fi
13117
13118: "${CONFIG_STATUS=./config.status}"
13119ac_write_fail=0
13120ac_clean_files_save=$ac_clean_files
13121ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13123$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13124as_write_fail=0
13125cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13126#! $SHELL
13127# Generated by $as_me.
13128# Run this file to recreate the current configuration.
13129# Compiler output produced by configure, useful for debugging
13130# configure, is in config.log if it exists.
13131
13132debug=false
13133ac_cs_recheck=false
13134ac_cs_silent=false
13135
13136SHELL=\${CONFIG_SHELL-$SHELL}
13137export SHELL
13138_ASEOF
13139cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13140## -------------------- ##
13141## M4sh Initialization. ##
13142## -------------------- ##
13143
13144# Be more Bourne compatible
13145DUALCASE=1; export DUALCASE # for MKS sh
13146if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13147  emulate sh
13148  NULLCMD=:
13149  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13150  # is contrary to our usage.  Disable this feature.
13151  alias -g '${1+"$@"}'='"$@"'
13152  setopt NO_GLOB_SUBST
13153else
13154  case `(set -o) 2>/dev/null` in #(
13155  *posix*) :
13156    set -o posix ;; #(
13157  *) :
13158     ;;
13159esac
13160fi
13161
13162
13163as_nl='
13164'
13165export as_nl
13166# Printing a long string crashes Solaris 7 /usr/bin/printf.
13167as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13168as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13169as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13170# Prefer a ksh shell builtin over an external printf program on Solaris,
13171# but without wasting forks for bash or zsh.
13172if test -z "$BASH_VERSION$ZSH_VERSION" \
13173    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13174  as_echo='print -r --'
13175  as_echo_n='print -rn --'
13176elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13177  as_echo='printf %s\n'
13178  as_echo_n='printf %s'
13179else
13180  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13181    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13182    as_echo_n='/usr/ucb/echo -n'
13183  else
13184    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13185    as_echo_n_body='eval
13186      arg=$1;
13187      case $arg in #(
13188      *"$as_nl"*)
13189	expr "X$arg" : "X\\(.*\\)$as_nl";
13190	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13191      esac;
13192      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13193    '
13194    export as_echo_n_body
13195    as_echo_n='sh -c $as_echo_n_body as_echo'
13196  fi
13197  export as_echo_body
13198  as_echo='sh -c $as_echo_body as_echo'
13199fi
13200
13201# The user is always right.
13202if test "${PATH_SEPARATOR+set}" != set; then
13203  PATH_SEPARATOR=:
13204  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13205    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13206      PATH_SEPARATOR=';'
13207  }
13208fi
13209
13210
13211# IFS
13212# We need space, tab and new line, in precisely that order.  Quoting is
13213# there to prevent editors from complaining about space-tab.
13214# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13215# splitting by setting IFS to empty value.)
13216IFS=" ""	$as_nl"
13217
13218# Find who we are.  Look in the path if we contain no directory separator.
13219as_myself=
13220case $0 in #((
13221  *[\\/]* ) as_myself=$0 ;;
13222  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225  IFS=$as_save_IFS
13226  test -z "$as_dir" && as_dir=.
13227    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13228  done
13229IFS=$as_save_IFS
13230
13231     ;;
13232esac
13233# We did not find ourselves, most probably we were run as `sh COMMAND'
13234# in which case we are not to be found in the path.
13235if test "x$as_myself" = x; then
13236  as_myself=$0
13237fi
13238if test ! -f "$as_myself"; then
13239  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13240  exit 1
13241fi
13242
13243# Unset variables that we do not need and which cause bugs (e.g. in
13244# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13245# suppresses any "Segmentation fault" message there.  '((' could
13246# trigger a bug in pdksh 5.2.14.
13247for as_var in BASH_ENV ENV MAIL MAILPATH
13248do eval test x\${$as_var+set} = xset \
13249  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13250done
13251PS1='$ '
13252PS2='> '
13253PS4='+ '
13254
13255# NLS nuisances.
13256LC_ALL=C
13257export LC_ALL
13258LANGUAGE=C
13259export LANGUAGE
13260
13261# CDPATH.
13262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13263
13264
13265# as_fn_error STATUS ERROR [LINENO LOG_FD]
13266# ----------------------------------------
13267# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13268# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13269# script with STATUS, using 1 if that was 0.
13270as_fn_error ()
13271{
13272  as_status=$1; test $as_status -eq 0 && as_status=1
13273  if test "$4"; then
13274    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13275    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13276  fi
13277  $as_echo "$as_me: error: $2" >&2
13278  as_fn_exit $as_status
13279} # as_fn_error
13280
13281
13282# as_fn_set_status STATUS
13283# -----------------------
13284# Set $? to STATUS, without forking.
13285as_fn_set_status ()
13286{
13287  return $1
13288} # as_fn_set_status
13289
13290# as_fn_exit STATUS
13291# -----------------
13292# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13293as_fn_exit ()
13294{
13295  set +e
13296  as_fn_set_status $1
13297  exit $1
13298} # as_fn_exit
13299
13300# as_fn_unset VAR
13301# ---------------
13302# Portably unset VAR.
13303as_fn_unset ()
13304{
13305  { eval $1=; unset $1;}
13306}
13307as_unset=as_fn_unset
13308# as_fn_append VAR VALUE
13309# ----------------------
13310# Append the text in VALUE to the end of the definition contained in VAR. Take
13311# advantage of any shell optimizations that allow amortized linear growth over
13312# repeated appends, instead of the typical quadratic growth present in naive
13313# implementations.
13314if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13315  eval 'as_fn_append ()
13316  {
13317    eval $1+=\$2
13318  }'
13319else
13320  as_fn_append ()
13321  {
13322    eval $1=\$$1\$2
13323  }
13324fi # as_fn_append
13325
13326# as_fn_arith ARG...
13327# ------------------
13328# Perform arithmetic evaluation on the ARGs, and store the result in the
13329# global $as_val. Take advantage of shells that can avoid forks. The arguments
13330# must be portable across $(()) and expr.
13331if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13332  eval 'as_fn_arith ()
13333  {
13334    as_val=$(( $* ))
13335  }'
13336else
13337  as_fn_arith ()
13338  {
13339    as_val=`expr "$@" || test $? -eq 1`
13340  }
13341fi # as_fn_arith
13342
13343
13344if expr a : '\(a\)' >/dev/null 2>&1 &&
13345   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13346  as_expr=expr
13347else
13348  as_expr=false
13349fi
13350
13351if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13352  as_basename=basename
13353else
13354  as_basename=false
13355fi
13356
13357if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13358  as_dirname=dirname
13359else
13360  as_dirname=false
13361fi
13362
13363as_me=`$as_basename -- "$0" ||
13364$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13365	 X"$0" : 'X\(//\)$' \| \
13366	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13367$as_echo X/"$0" |
13368    sed '/^.*\/\([^/][^/]*\)\/*$/{
13369	    s//\1/
13370	    q
13371	  }
13372	  /^X\/\(\/\/\)$/{
13373	    s//\1/
13374	    q
13375	  }
13376	  /^X\/\(\/\).*/{
13377	    s//\1/
13378	    q
13379	  }
13380	  s/.*/./; q'`
13381
13382# Avoid depending upon Character Ranges.
13383as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13384as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13385as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13386as_cr_digits='0123456789'
13387as_cr_alnum=$as_cr_Letters$as_cr_digits
13388
13389ECHO_C= ECHO_N= ECHO_T=
13390case `echo -n x` in #(((((
13391-n*)
13392  case `echo 'xy\c'` in
13393  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13394  xy)  ECHO_C='\c';;
13395  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13396       ECHO_T='	';;
13397  esac;;
13398*)
13399  ECHO_N='-n';;
13400esac
13401
13402rm -f conf$$ conf$$.exe conf$$.file
13403if test -d conf$$.dir; then
13404  rm -f conf$$.dir/conf$$.file
13405else
13406  rm -f conf$$.dir
13407  mkdir conf$$.dir 2>/dev/null
13408fi
13409if (echo >conf$$.file) 2>/dev/null; then
13410  if ln -s conf$$.file conf$$ 2>/dev/null; then
13411    as_ln_s='ln -s'
13412    # ... but there are two gotchas:
13413    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13414    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13415    # In both cases, we have to default to `cp -pR'.
13416    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13417      as_ln_s='cp -pR'
13418  elif ln conf$$.file conf$$ 2>/dev/null; then
13419    as_ln_s=ln
13420  else
13421    as_ln_s='cp -pR'
13422  fi
13423else
13424  as_ln_s='cp -pR'
13425fi
13426rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13427rmdir conf$$.dir 2>/dev/null
13428
13429
13430# as_fn_mkdir_p
13431# -------------
13432# Create "$as_dir" as a directory, including parents if necessary.
13433as_fn_mkdir_p ()
13434{
13435
13436  case $as_dir in #(
13437  -*) as_dir=./$as_dir;;
13438  esac
13439  test -d "$as_dir" || eval $as_mkdir_p || {
13440    as_dirs=
13441    while :; do
13442      case $as_dir in #(
13443      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13444      *) as_qdir=$as_dir;;
13445      esac
13446      as_dirs="'$as_qdir' $as_dirs"
13447      as_dir=`$as_dirname -- "$as_dir" ||
13448$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13449	 X"$as_dir" : 'X\(//\)[^/]' \| \
13450	 X"$as_dir" : 'X\(//\)$' \| \
13451	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13452$as_echo X"$as_dir" |
13453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13454	    s//\1/
13455	    q
13456	  }
13457	  /^X\(\/\/\)[^/].*/{
13458	    s//\1/
13459	    q
13460	  }
13461	  /^X\(\/\/\)$/{
13462	    s//\1/
13463	    q
13464	  }
13465	  /^X\(\/\).*/{
13466	    s//\1/
13467	    q
13468	  }
13469	  s/.*/./; q'`
13470      test -d "$as_dir" && break
13471    done
13472    test -z "$as_dirs" || eval "mkdir $as_dirs"
13473  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13474
13475
13476} # as_fn_mkdir_p
13477if mkdir -p . 2>/dev/null; then
13478  as_mkdir_p='mkdir -p "$as_dir"'
13479else
13480  test -d ./-p && rmdir ./-p
13481  as_mkdir_p=false
13482fi
13483
13484
13485# as_fn_executable_p FILE
13486# -----------------------
13487# Test if FILE is an executable regular file.
13488as_fn_executable_p ()
13489{
13490  test -f "$1" && test -x "$1"
13491} # as_fn_executable_p
13492as_test_x='test -x'
13493as_executable_p=as_fn_executable_p
13494
13495# Sed expression to map a string onto a valid CPP name.
13496as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13497
13498# Sed expression to map a string onto a valid variable name.
13499as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13500
13501
13502exec 6>&1
13503## ----------------------------------- ##
13504## Main body of $CONFIG_STATUS script. ##
13505## ----------------------------------- ##
13506_ASEOF
13507test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13508
13509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13510# Save the log message, to keep $0 and so on meaningful, and to
13511# report actual input values of CONFIG_FILES etc. instead of their
13512# values after options handling.
13513ac_log="
13514This file was extended by libmd5 $as_me 1.21, which was
13515generated by GNU Autoconf 2.69.  Invocation command line was
13516
13517  CONFIG_FILES    = $CONFIG_FILES
13518  CONFIG_HEADERS  = $CONFIG_HEADERS
13519  CONFIG_LINKS    = $CONFIG_LINKS
13520  CONFIG_COMMANDS = $CONFIG_COMMANDS
13521  $ $0 $@
13522
13523on `(hostname || uname -n) 2>/dev/null | sed 1q`
13524"
13525
13526_ACEOF
13527
13528case $ac_config_files in *"
13529"*) set x $ac_config_files; shift; ac_config_files=$*;;
13530esac
13531
13532case $ac_config_headers in *"
13533"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13534esac
13535
13536
13537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13538# Files that config.status was made for.
13539config_files="$ac_config_files"
13540config_headers="$ac_config_headers"
13541config_commands="$ac_config_commands"
13542
13543_ACEOF
13544
13545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13546ac_cs_usage="\
13547\`$as_me' instantiates files and other configuration actions
13548from templates according to the current configuration.  Unless the files
13549and actions are specified as TAGs, all are instantiated by default.
13550
13551Usage: $0 [OPTION]... [TAG]...
13552
13553  -h, --help       print this help, then exit
13554  -V, --version    print version number and configuration settings, then exit
13555      --config     print configuration, then exit
13556  -q, --quiet, --silent
13557                   do not print progress messages
13558  -d, --debug      don't remove temporary files
13559      --recheck    update $as_me by reconfiguring in the same conditions
13560      --file=FILE[:TEMPLATE]
13561                   instantiate the configuration file FILE
13562      --header=FILE[:TEMPLATE]
13563                   instantiate the configuration header FILE
13564
13565Configuration files:
13566$config_files
13567
13568Configuration headers:
13569$config_headers
13570
13571Configuration commands:
13572$config_commands
13573
13574Report bugs to <courier-users@lists.sourceforge.net>."
13575
13576_ACEOF
13577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13578ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13579ac_cs_version="\\
13580libmd5 config.status 1.21
13581configured by $0, generated by GNU Autoconf 2.69,
13582  with options \\"\$ac_cs_config\\"
13583
13584Copyright (C) 2012 Free Software Foundation, Inc.
13585This config.status script is free software; the Free Software Foundation
13586gives unlimited permission to copy, distribute and modify it."
13587
13588ac_pwd='$ac_pwd'
13589srcdir='$srcdir'
13590INSTALL='$INSTALL'
13591MKDIR_P='$MKDIR_P'
13592AWK='$AWK'
13593test -n "\$AWK" || AWK=awk
13594_ACEOF
13595
13596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597# The default lists apply if the user does not specify any file.
13598ac_need_defaults=:
13599while test $# != 0
13600do
13601  case $1 in
13602  --*=?*)
13603    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13604    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13605    ac_shift=:
13606    ;;
13607  --*=)
13608    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13609    ac_optarg=
13610    ac_shift=:
13611    ;;
13612  *)
13613    ac_option=$1
13614    ac_optarg=$2
13615    ac_shift=shift
13616    ;;
13617  esac
13618
13619  case $ac_option in
13620  # Handling of the options.
13621  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13622    ac_cs_recheck=: ;;
13623  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13624    $as_echo "$ac_cs_version"; exit ;;
13625  --config | --confi | --conf | --con | --co | --c )
13626    $as_echo "$ac_cs_config"; exit ;;
13627  --debug | --debu | --deb | --de | --d | -d )
13628    debug=: ;;
13629  --file | --fil | --fi | --f )
13630    $ac_shift
13631    case $ac_optarg in
13632    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13633    '') as_fn_error $? "missing file argument" ;;
13634    esac
13635    as_fn_append CONFIG_FILES " '$ac_optarg'"
13636    ac_need_defaults=false;;
13637  --header | --heade | --head | --hea )
13638    $ac_shift
13639    case $ac_optarg in
13640    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13641    esac
13642    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13643    ac_need_defaults=false;;
13644  --he | --h)
13645    # Conflict between --help and --header
13646    as_fn_error $? "ambiguous option: \`$1'
13647Try \`$0 --help' for more information.";;
13648  --help | --hel | -h )
13649    $as_echo "$ac_cs_usage"; exit ;;
13650  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13651  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13652    ac_cs_silent=: ;;
13653
13654  # This is an error.
13655  -*) as_fn_error $? "unrecognized option: \`$1'
13656Try \`$0 --help' for more information." ;;
13657
13658  *) as_fn_append ac_config_targets " $1"
13659     ac_need_defaults=false ;;
13660
13661  esac
13662  shift
13663done
13664
13665ac_configure_extra_args=
13666
13667if $ac_cs_silent; then
13668  exec 6>/dev/null
13669  ac_configure_extra_args="$ac_configure_extra_args --silent"
13670fi
13671
13672_ACEOF
13673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13674if \$ac_cs_recheck; then
13675  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13676  shift
13677  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13678  CONFIG_SHELL='$SHELL'
13679  export CONFIG_SHELL
13680  exec "\$@"
13681fi
13682
13683_ACEOF
13684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685exec 5>>config.log
13686{
13687  echo
13688  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13689## Running $as_me. ##
13690_ASBOX
13691  $as_echo "$ac_log"
13692} >&5
13693
13694_ACEOF
13695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13696#
13697# INIT-COMMANDS
13698#
13699AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13700
13701
13702# The HP-UX ksh and POSIX shell print the target directory to stdout
13703# if CDPATH is set.
13704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13705
13706sed_quote_subst='$sed_quote_subst'
13707double_quote_subst='$double_quote_subst'
13708delay_variable_subst='$delay_variable_subst'
13709macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13710macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13711enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13712enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13713pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13714enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13715shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13716SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13717ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13718PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13719host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13720host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13721host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13722build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13723build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13724build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13725SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13726Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13727GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13728EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13729FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13730LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13731NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13732LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13733max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13734ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13735exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13736lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13737lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13738lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13739lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13740lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13741reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13742reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13743OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13744deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13745file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13746file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13747want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13748DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13749sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13750AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13751AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13752archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13753STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13754RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13755old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13756old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13757old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13758lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13759CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13760CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13761compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13762GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13763lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13764lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13765lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13766lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13767lt_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"`'
13768lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13769nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13770lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13771lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13772objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13773MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13774lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13775lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13776lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13777lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13778lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13779need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13780MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13781DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13782NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13783LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13784OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13785OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13786libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13787shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13788extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13789archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13790enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13791export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13792whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13793compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13794old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13795old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13796archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13797archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13798module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13799module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13800with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13801allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13802no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13803hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13804hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13805hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13806hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13807hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13808hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13809hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13810inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13811link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13812always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13813export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13814exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13815include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13816prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13817postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13818file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13819variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13820need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13821need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13822version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13823runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13824shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13825shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13826libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13827library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13828soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13829install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13830postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13831postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13832finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13833finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13834hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13835sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13836configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13837configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13838hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13839enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13840enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13841enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13842old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13843striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13844
13845LTCC='$LTCC'
13846LTCFLAGS='$LTCFLAGS'
13847compiler='$compiler_DEFAULT'
13848
13849# A function that is used when there is no print builtin or printf.
13850func_fallback_echo ()
13851{
13852  eval 'cat <<_LTECHO_EOF
13853\$1
13854_LTECHO_EOF'
13855}
13856
13857# Quote evaled strings.
13858for var in SHELL \
13859ECHO \
13860PATH_SEPARATOR \
13861SED \
13862GREP \
13863EGREP \
13864FGREP \
13865LD \
13866NM \
13867LN_S \
13868lt_SP2NL \
13869lt_NL2SP \
13870reload_flag \
13871OBJDUMP \
13872deplibs_check_method \
13873file_magic_cmd \
13874file_magic_glob \
13875want_nocaseglob \
13876DLLTOOL \
13877sharedlib_from_linklib_cmd \
13878AR \
13879AR_FLAGS \
13880archiver_list_spec \
13881STRIP \
13882RANLIB \
13883CC \
13884CFLAGS \
13885compiler \
13886lt_cv_sys_global_symbol_pipe \
13887lt_cv_sys_global_symbol_to_cdecl \
13888lt_cv_sys_global_symbol_to_import \
13889lt_cv_sys_global_symbol_to_c_name_address \
13890lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13891lt_cv_nm_interface \
13892nm_file_list_spec \
13893lt_cv_truncate_bin \
13894lt_prog_compiler_no_builtin_flag \
13895lt_prog_compiler_pic \
13896lt_prog_compiler_wl \
13897lt_prog_compiler_static \
13898lt_cv_prog_compiler_c_o \
13899need_locks \
13900MANIFEST_TOOL \
13901DSYMUTIL \
13902NMEDIT \
13903LIPO \
13904OTOOL \
13905OTOOL64 \
13906shrext_cmds \
13907export_dynamic_flag_spec \
13908whole_archive_flag_spec \
13909compiler_needs_object \
13910with_gnu_ld \
13911allow_undefined_flag \
13912no_undefined_flag \
13913hardcode_libdir_flag_spec \
13914hardcode_libdir_separator \
13915exclude_expsyms \
13916include_expsyms \
13917file_list_spec \
13918variables_saved_for_relink \
13919libname_spec \
13920library_names_spec \
13921soname_spec \
13922install_override_mode \
13923finish_eval \
13924old_striplib \
13925striplib; do
13926    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13927    *[\\\\\\\`\\"\\\$]*)
13928      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13929      ;;
13930    *)
13931      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13932      ;;
13933    esac
13934done
13935
13936# Double-quote double-evaled strings.
13937for var in reload_cmds \
13938old_postinstall_cmds \
13939old_postuninstall_cmds \
13940old_archive_cmds \
13941extract_expsyms_cmds \
13942old_archive_from_new_cmds \
13943old_archive_from_expsyms_cmds \
13944archive_cmds \
13945archive_expsym_cmds \
13946module_cmds \
13947module_expsym_cmds \
13948export_symbols_cmds \
13949prelink_cmds \
13950postlink_cmds \
13951postinstall_cmds \
13952postuninstall_cmds \
13953finish_cmds \
13954sys_lib_search_path_spec \
13955configure_time_dlsearch_path \
13956configure_time_lt_sys_library_path; do
13957    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13958    *[\\\\\\\`\\"\\\$]*)
13959      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13960      ;;
13961    *)
13962      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13963      ;;
13964    esac
13965done
13966
13967ac_aux_dir='$ac_aux_dir'
13968
13969# See if we are running on zsh, and set the options that allow our
13970# commands through without removal of \ escapes INIT.
13971if test -n "\${ZSH_VERSION+set}"; then
13972   setopt NO_GLOB_SUBST
13973fi
13974
13975
13976    PACKAGE='$PACKAGE'
13977    VERSION='$VERSION'
13978    RM='$RM'
13979    ofile='$ofile'
13980
13981
13982
13983
13984_ACEOF
13985
13986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13987
13988# Handling of arguments.
13989for ac_config_target in $ac_config_targets
13990do
13991  case $ac_config_target in
13992    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13993    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13994    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13995    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13996
13997  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13998  esac
13999done
14000
14001
14002# If the user did not use the arguments to specify the items to instantiate,
14003# then the envvar interface is used.  Set only those that are not.
14004# We use the long form for the default assignment because of an extremely
14005# bizarre bug on SunOS 4.1.3.
14006if $ac_need_defaults; then
14007  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14008  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14009  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14010fi
14011
14012# Have a temporary directory for convenience.  Make it in the build tree
14013# simply because there is no reason against having it here, and in addition,
14014# creating and moving files from /tmp can sometimes cause problems.
14015# Hook for its removal unless debugging.
14016# Note that there is a small window in which the directory will not be cleaned:
14017# after its creation but before its name has been assigned to `$tmp'.
14018$debug ||
14019{
14020  tmp= ac_tmp=
14021  trap 'exit_status=$?
14022  : "${ac_tmp:=$tmp}"
14023  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14024' 0
14025  trap 'as_fn_exit 1' 1 2 13 15
14026}
14027# Create a (secure) tmp directory for tmp files.
14028
14029{
14030  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14031  test -d "$tmp"
14032}  ||
14033{
14034  tmp=./conf$$-$RANDOM
14035  (umask 077 && mkdir "$tmp")
14036} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14037ac_tmp=$tmp
14038
14039# Set up the scripts for CONFIG_FILES section.
14040# No need to generate them if there are no CONFIG_FILES.
14041# This happens for instance with `./config.status config.h'.
14042if test -n "$CONFIG_FILES"; then
14043
14044
14045ac_cr=`echo X | tr X '\015'`
14046# On cygwin, bash can eat \r inside `` if the user requested igncr.
14047# But we know of no other shell where ac_cr would be empty at this
14048# point, so we can use a bashism as a fallback.
14049if test "x$ac_cr" = x; then
14050  eval ac_cr=\$\'\\r\'
14051fi
14052ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14053if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14054  ac_cs_awk_cr='\\r'
14055else
14056  ac_cs_awk_cr=$ac_cr
14057fi
14058
14059echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14060_ACEOF
14061
14062
14063{
14064  echo "cat >conf$$subs.awk <<_ACEOF" &&
14065  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14066  echo "_ACEOF"
14067} >conf$$subs.sh ||
14068  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14069ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14070ac_delim='%!_!# '
14071for ac_last_try in false false false false false :; do
14072  . ./conf$$subs.sh ||
14073    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14074
14075  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14076  if test $ac_delim_n = $ac_delim_num; then
14077    break
14078  elif $ac_last_try; then
14079    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14080  else
14081    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14082  fi
14083done
14084rm -f conf$$subs.sh
14085
14086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14087cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14088_ACEOF
14089sed -n '
14090h
14091s/^/S["/; s/!.*/"]=/
14092p
14093g
14094s/^[^!]*!//
14095:repl
14096t repl
14097s/'"$ac_delim"'$//
14098t delim
14099:nl
14100h
14101s/\(.\{148\}\)..*/\1/
14102t more1
14103s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14104p
14105n
14106b repl
14107:more1
14108s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14109p
14110g
14111s/.\{148\}//
14112t nl
14113:delim
14114h
14115s/\(.\{148\}\)..*/\1/
14116t more2
14117s/["\\]/\\&/g; s/^/"/; s/$/"/
14118p
14119b
14120:more2
14121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14122p
14123g
14124s/.\{148\}//
14125t delim
14126' <conf$$subs.awk | sed '
14127/^[^""]/{
14128  N
14129  s/\n//
14130}
14131' >>$CONFIG_STATUS || ac_write_fail=1
14132rm -f conf$$subs.awk
14133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14134_ACAWK
14135cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14136  for (key in S) S_is_set[key] = 1
14137  FS = ""
14138
14139}
14140{
14141  line = $ 0
14142  nfields = split(line, field, "@")
14143  substed = 0
14144  len = length(field[1])
14145  for (i = 2; i < nfields; i++) {
14146    key = field[i]
14147    keylen = length(key)
14148    if (S_is_set[key]) {
14149      value = S[key]
14150      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14151      len += length(value) + length(field[++i])
14152      substed = 1
14153    } else
14154      len += 1 + keylen
14155  }
14156
14157  print line
14158}
14159
14160_ACAWK
14161_ACEOF
14162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14163if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14164  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14165else
14166  cat
14167fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14168  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14169_ACEOF
14170
14171# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14172# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14173# trailing colons and then remove the whole line if VPATH becomes empty
14174# (actually we leave an empty line to preserve line numbers).
14175if test "x$srcdir" = x.; then
14176  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14177h
14178s///
14179s/^/:/
14180s/[	 ]*$/:/
14181s/:\$(srcdir):/:/g
14182s/:\${srcdir}:/:/g
14183s/:@srcdir@:/:/g
14184s/^:*//
14185s/:*$//
14186x
14187s/\(=[	 ]*\).*/\1/
14188G
14189s/\n//
14190s/^[^=]*=[	 ]*$//
14191}'
14192fi
14193
14194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14195fi # test -n "$CONFIG_FILES"
14196
14197# Set up the scripts for CONFIG_HEADERS section.
14198# No need to generate them if there are no CONFIG_HEADERS.
14199# This happens for instance with `./config.status Makefile'.
14200if test -n "$CONFIG_HEADERS"; then
14201cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14202BEGIN {
14203_ACEOF
14204
14205# Transform confdefs.h into an awk script `defines.awk', embedded as
14206# here-document in config.status, that substitutes the proper values into
14207# config.h.in to produce config.h.
14208
14209# Create a delimiter string that does not exist in confdefs.h, to ease
14210# handling of long lines.
14211ac_delim='%!_!# '
14212for ac_last_try in false false :; do
14213  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14214  if test -z "$ac_tt"; then
14215    break
14216  elif $ac_last_try; then
14217    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14218  else
14219    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14220  fi
14221done
14222
14223# For the awk script, D is an array of macro values keyed by name,
14224# likewise P contains macro parameters if any.  Preserve backslash
14225# newline sequences.
14226
14227ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14228sed -n '
14229s/.\{148\}/&'"$ac_delim"'/g
14230t rset
14231:rset
14232s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14233t def
14234d
14235:def
14236s/\\$//
14237t bsnl
14238s/["\\]/\\&/g
14239s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14240D["\1"]=" \3"/p
14241s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14242d
14243:bsnl
14244s/["\\]/\\&/g
14245s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14246D["\1"]=" \3\\\\\\n"\\/p
14247t cont
14248s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14249t cont
14250d
14251:cont
14252n
14253s/.\{148\}/&'"$ac_delim"'/g
14254t clear
14255:clear
14256s/\\$//
14257t bsnlc
14258s/["\\]/\\&/g; s/^/"/; s/$/"/p
14259d
14260:bsnlc
14261s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14262b cont
14263' <confdefs.h | sed '
14264s/'"$ac_delim"'/"\\\
14265"/g' >>$CONFIG_STATUS || ac_write_fail=1
14266
14267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14268  for (key in D) D_is_set[key] = 1
14269  FS = ""
14270}
14271/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14272  line = \$ 0
14273  split(line, arg, " ")
14274  if (arg[1] == "#") {
14275    defundef = arg[2]
14276    mac1 = arg[3]
14277  } else {
14278    defundef = substr(arg[1], 2)
14279    mac1 = arg[2]
14280  }
14281  split(mac1, mac2, "(") #)
14282  macro = mac2[1]
14283  prefix = substr(line, 1, index(line, defundef) - 1)
14284  if (D_is_set[macro]) {
14285    # Preserve the white space surrounding the "#".
14286    print prefix "define", macro P[macro] D[macro]
14287    next
14288  } else {
14289    # Replace #undef with comments.  This is necessary, for example,
14290    # in the case of _POSIX_SOURCE, which is predefined and required
14291    # on some systems where configure will not decide to define it.
14292    if (defundef == "undef") {
14293      print "/*", prefix defundef, macro, "*/"
14294      next
14295    }
14296  }
14297}
14298{ print }
14299_ACAWK
14300_ACEOF
14301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14302  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14303fi # test -n "$CONFIG_HEADERS"
14304
14305
14306eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14307shift
14308for ac_tag
14309do
14310  case $ac_tag in
14311  :[FHLC]) ac_mode=$ac_tag; continue;;
14312  esac
14313  case $ac_mode$ac_tag in
14314  :[FHL]*:*);;
14315  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14316  :[FH]-) ac_tag=-:-;;
14317  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14318  esac
14319  ac_save_IFS=$IFS
14320  IFS=:
14321  set x $ac_tag
14322  IFS=$ac_save_IFS
14323  shift
14324  ac_file=$1
14325  shift
14326
14327  case $ac_mode in
14328  :L) ac_source=$1;;
14329  :[FH])
14330    ac_file_inputs=
14331    for ac_f
14332    do
14333      case $ac_f in
14334      -) ac_f="$ac_tmp/stdin";;
14335      *) # Look for the file first in the build tree, then in the source tree
14336	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14337	 # because $ac_f cannot contain `:'.
14338	 test -f "$ac_f" ||
14339	   case $ac_f in
14340	   [\\/$]*) false;;
14341	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14342	   esac ||
14343	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14344      esac
14345      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14346      as_fn_append ac_file_inputs " '$ac_f'"
14347    done
14348
14349    # Let's still pretend it is `configure' which instantiates (i.e., don't
14350    # use $as_me), people would be surprised to read:
14351    #    /* config.h.  Generated by config.status.  */
14352    configure_input='Generated from '`
14353	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14354	`' by configure.'
14355    if test x"$ac_file" != x-; then
14356      configure_input="$ac_file.  $configure_input"
14357      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14358$as_echo "$as_me: creating $ac_file" >&6;}
14359    fi
14360    # Neutralize special characters interpreted by sed in replacement strings.
14361    case $configure_input in #(
14362    *\&* | *\|* | *\\* )
14363       ac_sed_conf_input=`$as_echo "$configure_input" |
14364       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14365    *) ac_sed_conf_input=$configure_input;;
14366    esac
14367
14368    case $ac_tag in
14369    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14370      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14371    esac
14372    ;;
14373  esac
14374
14375  ac_dir=`$as_dirname -- "$ac_file" ||
14376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14377	 X"$ac_file" : 'X\(//\)[^/]' \| \
14378	 X"$ac_file" : 'X\(//\)$' \| \
14379	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14380$as_echo X"$ac_file" |
14381    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14382	    s//\1/
14383	    q
14384	  }
14385	  /^X\(\/\/\)[^/].*/{
14386	    s//\1/
14387	    q
14388	  }
14389	  /^X\(\/\/\)$/{
14390	    s//\1/
14391	    q
14392	  }
14393	  /^X\(\/\).*/{
14394	    s//\1/
14395	    q
14396	  }
14397	  s/.*/./; q'`
14398  as_dir="$ac_dir"; as_fn_mkdir_p
14399  ac_builddir=.
14400
14401case "$ac_dir" in
14402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14403*)
14404  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14405  # A ".." for each directory in $ac_dir_suffix.
14406  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14407  case $ac_top_builddir_sub in
14408  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14409  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14410  esac ;;
14411esac
14412ac_abs_top_builddir=$ac_pwd
14413ac_abs_builddir=$ac_pwd$ac_dir_suffix
14414# for backward compatibility:
14415ac_top_builddir=$ac_top_build_prefix
14416
14417case $srcdir in
14418  .)  # We are building in place.
14419    ac_srcdir=.
14420    ac_top_srcdir=$ac_top_builddir_sub
14421    ac_abs_top_srcdir=$ac_pwd ;;
14422  [\\/]* | ?:[\\/]* )  # Absolute name.
14423    ac_srcdir=$srcdir$ac_dir_suffix;
14424    ac_top_srcdir=$srcdir
14425    ac_abs_top_srcdir=$srcdir ;;
14426  *) # Relative name.
14427    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14428    ac_top_srcdir=$ac_top_build_prefix$srcdir
14429    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14430esac
14431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14432
14433
14434  case $ac_mode in
14435  :F)
14436  #
14437  # CONFIG_FILE
14438  #
14439
14440  case $INSTALL in
14441  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14442  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14443  esac
14444  ac_MKDIR_P=$MKDIR_P
14445  case $MKDIR_P in
14446  [\\/$]* | ?:[\\/]* ) ;;
14447  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14448  esac
14449_ACEOF
14450
14451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452# If the template does not know about datarootdir, expand it.
14453# FIXME: This hack should be removed a few years after 2.60.
14454ac_datarootdir_hack=; ac_datarootdir_seen=
14455ac_sed_dataroot='
14456/datarootdir/ {
14457  p
14458  q
14459}
14460/@datadir@/p
14461/@docdir@/p
14462/@infodir@/p
14463/@localedir@/p
14464/@mandir@/p'
14465case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14466*datarootdir*) ac_datarootdir_seen=yes;;
14467*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14468  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14469$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14470_ACEOF
14471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472  ac_datarootdir_hack='
14473  s&@datadir@&$datadir&g
14474  s&@docdir@&$docdir&g
14475  s&@infodir@&$infodir&g
14476  s&@localedir@&$localedir&g
14477  s&@mandir@&$mandir&g
14478  s&\\\${datarootdir}&$datarootdir&g' ;;
14479esac
14480_ACEOF
14481
14482# Neutralize VPATH when `$srcdir' = `.'.
14483# Shell code in configure.ac might set extrasub.
14484# FIXME: do we really want to maintain this feature?
14485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14486ac_sed_extra="$ac_vpsub
14487$extrasub
14488_ACEOF
14489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14490:t
14491/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14492s|@configure_input@|$ac_sed_conf_input|;t t
14493s&@top_builddir@&$ac_top_builddir_sub&;t t
14494s&@top_build_prefix@&$ac_top_build_prefix&;t t
14495s&@srcdir@&$ac_srcdir&;t t
14496s&@abs_srcdir@&$ac_abs_srcdir&;t t
14497s&@top_srcdir@&$ac_top_srcdir&;t t
14498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14499s&@builddir@&$ac_builddir&;t t
14500s&@abs_builddir@&$ac_abs_builddir&;t t
14501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14502s&@INSTALL@&$ac_INSTALL&;t t
14503s&@MKDIR_P@&$ac_MKDIR_P&;t t
14504$ac_datarootdir_hack
14505"
14506eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14507  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14508
14509test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14510  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14511  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14512      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14513  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14514which seems to be undefined.  Please make sure it is defined" >&5
14515$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14516which seems to be undefined.  Please make sure it is defined" >&2;}
14517
14518  rm -f "$ac_tmp/stdin"
14519  case $ac_file in
14520  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14521  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14522  esac \
14523  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14524 ;;
14525  :H)
14526  #
14527  # CONFIG_HEADER
14528  #
14529  if test x"$ac_file" != x-; then
14530    {
14531      $as_echo "/* $configure_input  */" \
14532      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14533    } >"$ac_tmp/config.h" \
14534      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14535    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14536      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14537$as_echo "$as_me: $ac_file is unchanged" >&6;}
14538    else
14539      rm -f "$ac_file"
14540      mv "$ac_tmp/config.h" "$ac_file" \
14541	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14542    fi
14543  else
14544    $as_echo "/* $configure_input  */" \
14545      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14546      || as_fn_error $? "could not create -" "$LINENO" 5
14547  fi
14548# Compute "$ac_file"'s index in $config_headers.
14549_am_arg="$ac_file"
14550_am_stamp_count=1
14551for _am_header in $config_headers :; do
14552  case $_am_header in
14553    $_am_arg | $_am_arg:* )
14554      break ;;
14555    * )
14556      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14557  esac
14558done
14559echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14560$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14562	 X"$_am_arg" : 'X\(//\)$' \| \
14563	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14564$as_echo X"$_am_arg" |
14565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14566	    s//\1/
14567	    q
14568	  }
14569	  /^X\(\/\/\)[^/].*/{
14570	    s//\1/
14571	    q
14572	  }
14573	  /^X\(\/\/\)$/{
14574	    s//\1/
14575	    q
14576	  }
14577	  /^X\(\/\).*/{
14578	    s//\1/
14579	    q
14580	  }
14581	  s/.*/./; q'`/stamp-h$_am_stamp_count
14582 ;;
14583
14584  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14585$as_echo "$as_me: executing $ac_file commands" >&6;}
14586 ;;
14587  esac
14588
14589
14590  case $ac_file$ac_mode in
14591    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14592  # Older Autoconf quotes --file arguments for eval, but not when files
14593  # are listed without --file.  Let's play safe and only enable the eval
14594  # if we detect the quoting.
14595  # TODO: see whether this extra hack can be removed once we start
14596  # requiring Autoconf 2.70 or later.
14597  case $CONFIG_FILES in #(
14598  *\'*) :
14599    eval set x "$CONFIG_FILES" ;; #(
14600  *) :
14601    set x $CONFIG_FILES ;; #(
14602  *) :
14603     ;;
14604esac
14605  shift
14606  # Used to flag and report bootstrapping failures.
14607  am_rc=0
14608  for am_mf
14609  do
14610    # Strip MF so we end up with the name of the file.
14611    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14612    # Check whether this is an Automake generated Makefile which includes
14613    # dependency-tracking related rules and includes.
14614    # Grep'ing the whole file directly is not great: AIX grep has a line
14615    # limit of 2048, but all sed's we know have understand at least 4000.
14616    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14617      || continue
14618    am_dirpart=`$as_dirname -- "$am_mf" ||
14619$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14620	 X"$am_mf" : 'X\(//\)[^/]' \| \
14621	 X"$am_mf" : 'X\(//\)$' \| \
14622	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14623$as_echo X"$am_mf" |
14624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14625	    s//\1/
14626	    q
14627	  }
14628	  /^X\(\/\/\)[^/].*/{
14629	    s//\1/
14630	    q
14631	  }
14632	  /^X\(\/\/\)$/{
14633	    s//\1/
14634	    q
14635	  }
14636	  /^X\(\/\).*/{
14637	    s//\1/
14638	    q
14639	  }
14640	  s/.*/./; q'`
14641    am_filepart=`$as_basename -- "$am_mf" ||
14642$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14643	 X"$am_mf" : 'X\(//\)$' \| \
14644	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14645$as_echo X/"$am_mf" |
14646    sed '/^.*\/\([^/][^/]*\)\/*$/{
14647	    s//\1/
14648	    q
14649	  }
14650	  /^X\/\(\/\/\)$/{
14651	    s//\1/
14652	    q
14653	  }
14654	  /^X\/\(\/\).*/{
14655	    s//\1/
14656	    q
14657	  }
14658	  s/.*/./; q'`
14659    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14660      && sed -e '/# am--include-marker/d' "$am_filepart" \
14661        | $MAKE -f - am--depfiles" >&5
14662   (cd "$am_dirpart" \
14663      && sed -e '/# am--include-marker/d' "$am_filepart" \
14664        | $MAKE -f - am--depfiles) >&5 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } || am_rc=$?
14668  done
14669  if test $am_rc -ne 0; then
14670    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14672as_fn_error $? "Something went wrong bootstrapping makefile fragments
14673    for automatic dependency tracking.  If GNU make was not used, consider
14674    re-running the configure script with MAKE=\"gmake\" (or whatever is
14675    necessary).  You can also try re-running configure with the
14676    '--disable-dependency-tracking' option to at least be able to build
14677    the package (albeit without support for automatic dependency tracking).
14678See \`config.log' for more details" "$LINENO" 5; }
14679  fi
14680  { am_dirpart=; unset am_dirpart;}
14681  { am_filepart=; unset am_filepart;}
14682  { am_mf=; unset am_mf;}
14683  { am_rc=; unset am_rc;}
14684  rm -f conftest-deps.mk
14685}
14686 ;;
14687    "libtool":C)
14688
14689    # See if we are running on zsh, and set the options that allow our
14690    # commands through without removal of \ escapes.
14691    if test -n "${ZSH_VERSION+set}"; then
14692      setopt NO_GLOB_SUBST
14693    fi
14694
14695    cfgfile=${ofile}T
14696    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14697    $RM "$cfgfile"
14698
14699    cat <<_LT_EOF >> "$cfgfile"
14700#! $SHELL
14701# Generated automatically by $as_me ($PACKAGE) $VERSION
14702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14703# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14704
14705# Provide generalized library-building support services.
14706# Written by Gordon Matzigkeit, 1996
14707
14708# Copyright (C) 2014 Free Software Foundation, Inc.
14709# This is free software; see the source for copying conditions.  There is NO
14710# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14711
14712# GNU Libtool is free software; you can redistribute it and/or modify
14713# it under the terms of the GNU General Public License as published by
14714# the Free Software Foundation; either version 2 of of the License, or
14715# (at your option) any later version.
14716#
14717# As a special exception to the GNU General Public License, if you
14718# distribute this file as part of a program or library that is built
14719# using GNU Libtool, you may include this file under the  same
14720# distribution terms that you use for the rest of that program.
14721#
14722# GNU Libtool is distributed in the hope that it will be useful, but
14723# WITHOUT ANY WARRANTY; without even the implied warranty of
14724# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14725# GNU General Public License for more details.
14726#
14727# You should have received a copy of the GNU General Public License
14728# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14729
14730
14731# The names of the tagged configurations supported by this script.
14732available_tags=''
14733
14734# Configured defaults for sys_lib_dlsearch_path munging.
14735: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14736
14737# ### BEGIN LIBTOOL CONFIG
14738
14739# Which release of libtool.m4 was used?
14740macro_version=$macro_version
14741macro_revision=$macro_revision
14742
14743# Whether or not to build shared libraries.
14744build_libtool_libs=$enable_shared
14745
14746# Whether or not to build static libraries.
14747build_old_libs=$enable_static
14748
14749# What type of objects to build.
14750pic_mode=$pic_mode
14751
14752# Whether or not to optimize for fast installation.
14753fast_install=$enable_fast_install
14754
14755# Shared archive member basename,for filename based shared library versioning on AIX.
14756shared_archive_member_spec=$shared_archive_member_spec
14757
14758# Shell to use when invoking shell scripts.
14759SHELL=$lt_SHELL
14760
14761# An echo program that protects backslashes.
14762ECHO=$lt_ECHO
14763
14764# The PATH separator for the build system.
14765PATH_SEPARATOR=$lt_PATH_SEPARATOR
14766
14767# The host system.
14768host_alias=$host_alias
14769host=$host
14770host_os=$host_os
14771
14772# The build system.
14773build_alias=$build_alias
14774build=$build
14775build_os=$build_os
14776
14777# A sed program that does not truncate output.
14778SED=$lt_SED
14779
14780# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14781Xsed="\$SED -e 1s/^X//"
14782
14783# A grep program that handles long lines.
14784GREP=$lt_GREP
14785
14786# An ERE matcher.
14787EGREP=$lt_EGREP
14788
14789# A literal string matcher.
14790FGREP=$lt_FGREP
14791
14792# A BSD- or MS-compatible name lister.
14793NM=$lt_NM
14794
14795# Whether we need soft or hard links.
14796LN_S=$lt_LN_S
14797
14798# What is the maximum length of a command?
14799max_cmd_len=$max_cmd_len
14800
14801# Object file suffix (normally "o").
14802objext=$ac_objext
14803
14804# Executable file suffix (normally "").
14805exeext=$exeext
14806
14807# whether the shell understands "unset".
14808lt_unset=$lt_unset
14809
14810# turn spaces into newlines.
14811SP2NL=$lt_lt_SP2NL
14812
14813# turn newlines into spaces.
14814NL2SP=$lt_lt_NL2SP
14815
14816# convert \$build file names to \$host format.
14817to_host_file_cmd=$lt_cv_to_host_file_cmd
14818
14819# convert \$build files to toolchain format.
14820to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14821
14822# An object symbol dumper.
14823OBJDUMP=$lt_OBJDUMP
14824
14825# Method to check whether dependent libraries are shared objects.
14826deplibs_check_method=$lt_deplibs_check_method
14827
14828# Command to use when deplibs_check_method = "file_magic".
14829file_magic_cmd=$lt_file_magic_cmd
14830
14831# How to find potential files when deplibs_check_method = "file_magic".
14832file_magic_glob=$lt_file_magic_glob
14833
14834# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14835want_nocaseglob=$lt_want_nocaseglob
14836
14837# DLL creation program.
14838DLLTOOL=$lt_DLLTOOL
14839
14840# Command to associate shared and link libraries.
14841sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14842
14843# The archiver.
14844AR=$lt_AR
14845
14846# Flags to create an archive.
14847AR_FLAGS=$lt_AR_FLAGS
14848
14849# How to feed a file listing to the archiver.
14850archiver_list_spec=$lt_archiver_list_spec
14851
14852# A symbol stripping program.
14853STRIP=$lt_STRIP
14854
14855# Commands used to install an old-style archive.
14856RANLIB=$lt_RANLIB
14857old_postinstall_cmds=$lt_old_postinstall_cmds
14858old_postuninstall_cmds=$lt_old_postuninstall_cmds
14859
14860# Whether to use a lock for old archive extraction.
14861lock_old_archive_extraction=$lock_old_archive_extraction
14862
14863# A C compiler.
14864LTCC=$lt_CC
14865
14866# LTCC compiler flags.
14867LTCFLAGS=$lt_CFLAGS
14868
14869# Take the output of nm and produce a listing of raw symbols and C names.
14870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14871
14872# Transform the output of nm in a proper C declaration.
14873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14874
14875# Transform the output of nm into a list of symbols to manually relocate.
14876global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14877
14878# Transform the output of nm in a C name address pair.
14879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14880
14881# Transform the output of nm in a C name address pair when lib prefix is needed.
14882global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14883
14884# The name lister interface.
14885nm_interface=$lt_lt_cv_nm_interface
14886
14887# Specify filename containing input files for \$NM.
14888nm_file_list_spec=$lt_nm_file_list_spec
14889
14890# The root where to search for dependent libraries,and where our libraries should be installed.
14891lt_sysroot=$lt_sysroot
14892
14893# Command to truncate a binary pipe.
14894lt_truncate_bin=$lt_lt_cv_truncate_bin
14895
14896# The name of the directory that contains temporary libtool files.
14897objdir=$objdir
14898
14899# Used to examine libraries when file_magic_cmd begins with "file".
14900MAGIC_CMD=$MAGIC_CMD
14901
14902# Must we lock files when doing compilation?
14903need_locks=$lt_need_locks
14904
14905# Manifest tool.
14906MANIFEST_TOOL=$lt_MANIFEST_TOOL
14907
14908# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14909DSYMUTIL=$lt_DSYMUTIL
14910
14911# Tool to change global to local symbols on Mac OS X.
14912NMEDIT=$lt_NMEDIT
14913
14914# Tool to manipulate fat objects and archives on Mac OS X.
14915LIPO=$lt_LIPO
14916
14917# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14918OTOOL=$lt_OTOOL
14919
14920# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14921OTOOL64=$lt_OTOOL64
14922
14923# Old archive suffix (normally "a").
14924libext=$libext
14925
14926# Shared library suffix (normally ".so").
14927shrext_cmds=$lt_shrext_cmds
14928
14929# The commands to extract the exported symbol list from a shared archive.
14930extract_expsyms_cmds=$lt_extract_expsyms_cmds
14931
14932# Variables whose values should be saved in libtool wrapper scripts and
14933# restored at link time.
14934variables_saved_for_relink=$lt_variables_saved_for_relink
14935
14936# Do we need the "lib" prefix for modules?
14937need_lib_prefix=$need_lib_prefix
14938
14939# Do we need a version for libraries?
14940need_version=$need_version
14941
14942# Library versioning type.
14943version_type=$version_type
14944
14945# Shared library runtime path variable.
14946runpath_var=$runpath_var
14947
14948# Shared library path variable.
14949shlibpath_var=$shlibpath_var
14950
14951# Is shlibpath searched before the hard-coded library search path?
14952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14953
14954# Format of library name prefix.
14955libname_spec=$lt_libname_spec
14956
14957# List of archive names.  First name is the real one, the rest are links.
14958# The last name is the one that the linker finds with -lNAME
14959library_names_spec=$lt_library_names_spec
14960
14961# The coded name of the library, if different from the real name.
14962soname_spec=$lt_soname_spec
14963
14964# Permission mode override for installation of shared libraries.
14965install_override_mode=$lt_install_override_mode
14966
14967# Command to use after installation of a shared archive.
14968postinstall_cmds=$lt_postinstall_cmds
14969
14970# Command to use after uninstallation of a shared archive.
14971postuninstall_cmds=$lt_postuninstall_cmds
14972
14973# Commands used to finish a libtool library installation in a directory.
14974finish_cmds=$lt_finish_cmds
14975
14976# As "finish_cmds", except a single script fragment to be evaled but
14977# not shown.
14978finish_eval=$lt_finish_eval
14979
14980# Whether we should hardcode library paths into libraries.
14981hardcode_into_libs=$hardcode_into_libs
14982
14983# Compile-time system search path for libraries.
14984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14985
14986# Detected run-time system search path for libraries.
14987sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14988
14989# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14990configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14991
14992# Whether dlopen is supported.
14993dlopen_support=$enable_dlopen
14994
14995# Whether dlopen of programs is supported.
14996dlopen_self=$enable_dlopen_self
14997
14998# Whether dlopen of statically linked programs is supported.
14999dlopen_self_static=$enable_dlopen_self_static
15000
15001# Commands to strip libraries.
15002old_striplib=$lt_old_striplib
15003striplib=$lt_striplib
15004
15005
15006# The linker used to build libraries.
15007LD=$lt_LD
15008
15009# How to create reloadable object files.
15010reload_flag=$lt_reload_flag
15011reload_cmds=$lt_reload_cmds
15012
15013# Commands used to build an old-style archive.
15014old_archive_cmds=$lt_old_archive_cmds
15015
15016# A language specific compiler.
15017CC=$lt_compiler
15018
15019# Is the compiler the GNU compiler?
15020with_gcc=$GCC
15021
15022# Compiler flag to turn off builtin functions.
15023no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15024
15025# Additional compiler flags for building library objects.
15026pic_flag=$lt_lt_prog_compiler_pic
15027
15028# How to pass a linker flag through the compiler.
15029wl=$lt_lt_prog_compiler_wl
15030
15031# Compiler flag to prevent dynamic linking.
15032link_static_flag=$lt_lt_prog_compiler_static
15033
15034# Does compiler simultaneously support -c and -o options?
15035compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15036
15037# Whether or not to add -lc for building shared libraries.
15038build_libtool_need_lc=$archive_cmds_need_lc
15039
15040# Whether or not to disallow shared libs when runtime libs are static.
15041allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15042
15043# Compiler flag to allow reflexive dlopens.
15044export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15045
15046# Compiler flag to generate shared objects directly from archives.
15047whole_archive_flag_spec=$lt_whole_archive_flag_spec
15048
15049# Whether the compiler copes with passing no objects directly.
15050compiler_needs_object=$lt_compiler_needs_object
15051
15052# Create an old-style archive from a shared archive.
15053old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15054
15055# Create a temporary old-style archive to link instead of a shared archive.
15056old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15057
15058# Commands used to build a shared archive.
15059archive_cmds=$lt_archive_cmds
15060archive_expsym_cmds=$lt_archive_expsym_cmds
15061
15062# Commands used to build a loadable module if different from building
15063# a shared archive.
15064module_cmds=$lt_module_cmds
15065module_expsym_cmds=$lt_module_expsym_cmds
15066
15067# Whether we are building with GNU ld or not.
15068with_gnu_ld=$lt_with_gnu_ld
15069
15070# Flag that allows shared libraries with undefined symbols to be built.
15071allow_undefined_flag=$lt_allow_undefined_flag
15072
15073# Flag that enforces no undefined symbols.
15074no_undefined_flag=$lt_no_undefined_flag
15075
15076# Flag to hardcode \$libdir into a binary during linking.
15077# This must work even if \$libdir does not exist
15078hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15079
15080# Whether we need a single "-rpath" flag with a separated argument.
15081hardcode_libdir_separator=$lt_hardcode_libdir_separator
15082
15083# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15084# DIR into the resulting binary.
15085hardcode_direct=$hardcode_direct
15086
15087# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15088# DIR into the resulting binary and the resulting library dependency is
15089# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15090# library is relocated.
15091hardcode_direct_absolute=$hardcode_direct_absolute
15092
15093# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15094# into the resulting binary.
15095hardcode_minus_L=$hardcode_minus_L
15096
15097# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15098# into the resulting binary.
15099hardcode_shlibpath_var=$hardcode_shlibpath_var
15100
15101# Set to "yes" if building a shared library automatically hardcodes DIR
15102# into the library and all subsequent libraries and executables linked
15103# against it.
15104hardcode_automatic=$hardcode_automatic
15105
15106# Set to yes if linker adds runtime paths of dependent libraries
15107# to runtime path list.
15108inherit_rpath=$inherit_rpath
15109
15110# Whether libtool must link a program against all its dependency libraries.
15111link_all_deplibs=$link_all_deplibs
15112
15113# Set to "yes" if exported symbols are required.
15114always_export_symbols=$always_export_symbols
15115
15116# The commands to list exported symbols.
15117export_symbols_cmds=$lt_export_symbols_cmds
15118
15119# Symbols that should not be listed in the preloaded symbols.
15120exclude_expsyms=$lt_exclude_expsyms
15121
15122# Symbols that must always be exported.
15123include_expsyms=$lt_include_expsyms
15124
15125# Commands necessary for linking programs (against libraries) with templates.
15126prelink_cmds=$lt_prelink_cmds
15127
15128# Commands necessary for finishing linking programs.
15129postlink_cmds=$lt_postlink_cmds
15130
15131# Specify filename containing input files.
15132file_list_spec=$lt_file_list_spec
15133
15134# How to hardcode a shared library path into an executable.
15135hardcode_action=$hardcode_action
15136
15137# ### END LIBTOOL CONFIG
15138
15139_LT_EOF
15140
15141    cat <<'_LT_EOF' >> "$cfgfile"
15142
15143# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15144
15145# func_munge_path_list VARIABLE PATH
15146# -----------------------------------
15147# VARIABLE is name of variable containing _space_ separated list of
15148# directories to be munged by the contents of PATH, which is string
15149# having a format:
15150# "DIR[:DIR]:"
15151#       string "DIR[ DIR]" will be prepended to VARIABLE
15152# ":DIR[:DIR]"
15153#       string "DIR[ DIR]" will be appended to VARIABLE
15154# "DIRP[:DIRP]::[DIRA:]DIRA"
15155#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15156#       "DIRA[ DIRA]" will be appended to VARIABLE
15157# "DIR[:DIR]"
15158#       VARIABLE will be replaced by "DIR[ DIR]"
15159func_munge_path_list ()
15160{
15161    case x$2 in
15162    x)
15163        ;;
15164    *:)
15165        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15166        ;;
15167    x:*)
15168        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15169        ;;
15170    *::*)
15171        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15172        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15173        ;;
15174    *)
15175        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15176        ;;
15177    esac
15178}
15179
15180
15181# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15182func_cc_basename ()
15183{
15184    for cc_temp in $*""; do
15185      case $cc_temp in
15186        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15187        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15188        \-*) ;;
15189        *) break;;
15190      esac
15191    done
15192    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15193}
15194
15195
15196# ### END FUNCTIONS SHARED WITH CONFIGURE
15197
15198_LT_EOF
15199
15200  case $host_os in
15201  aix3*)
15202    cat <<\_LT_EOF >> "$cfgfile"
15203# AIX sometimes has problems with the GCC collect2 program.  For some
15204# reason, if we set the COLLECT_NAMES environment variable, the problems
15205# vanish in a puff of smoke.
15206if test set != "${COLLECT_NAMES+set}"; then
15207  COLLECT_NAMES=
15208  export COLLECT_NAMES
15209fi
15210_LT_EOF
15211    ;;
15212  esac
15213
15214
15215ltmain=$ac_aux_dir/ltmain.sh
15216
15217
15218  # We use sed instead of cat because bash on DJGPP gets confused if
15219  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15220  # text mode, it properly converts lines to CR/LF.  This bash problem
15221  # is reportedly fixed, but why not run on old versions too?
15222  sed '$q' "$ltmain" >> "$cfgfile" \
15223     || (rm -f "$cfgfile"; exit 1)
15224
15225   mv -f "$cfgfile" "$ofile" ||
15226    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15227  chmod +x "$ofile"
15228
15229 ;;
15230
15231  esac
15232done # for ac_tag
15233
15234
15235as_fn_exit 0
15236_ACEOF
15237ac_clean_files=$ac_clean_files_save
15238
15239test $ac_write_fail = 0 ||
15240  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15241
15242
15243# configure is writing to config.log, and then calls config.status.
15244# config.status does its own redirection, appending to config.log.
15245# Unfortunately, on DOS this fails, as config.log is still kept open
15246# by configure, so config.status won't be able to write to it; its
15247# output is simply discarded.  So we exec the FD to /dev/null,
15248# effectively closing config.log, so it can be properly (re)opened and
15249# appended to by config.status.  When coming back to configure, we
15250# need to make the FD available again.
15251if test "$no_create" != yes; then
15252  ac_cs_success=:
15253  ac_config_status_args=
15254  test "$silent" = yes &&
15255    ac_config_status_args="$ac_config_status_args --quiet"
15256  exec 5>/dev/null
15257  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15258  exec 5>>config.log
15259  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15260  # would make configure fail if this is the last instruction.
15261  $ac_cs_success || as_fn_exit 1
15262fi
15263if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15264  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15265$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15266fi
15267
15268