1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libuv 1.37.0.
4#
5# Report bugs to <https://github.com/libuv/libuv/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in
172  *posix*) set -o posix ;;
173esac
174fi
175"
176  as_required="as_fn_return () { (exit \$1); }
177as_fn_success () { as_fn_return 0; }
178as_fn_failure () { as_fn_return 1; }
179as_fn_ret_success () { return 0; }
180as_fn_ret_failure () { return 1; }
181
182exitcode=0
183as_fn_success || { exitcode=1; echo as_fn_success failed.; }
184as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189else
190  exitcode=1; echo positional parameters were not saved.
191fi
192test x\$exitcode = x0 || exit 1
193test -x / || exit 1"
194  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198
199  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
200    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
201    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    PATH=/empty FPATH=/empty; export PATH FPATH
204    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
205      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
206test \$(( 1 + 1 )) = 2 || exit 1"
207  if (eval "$as_required") 2>/dev/null; then :
208  as_have_required=yes
209else
210  as_have_required=no
211fi
212  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213
214else
215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216as_found=false
217for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218do
219  IFS=$as_save_IFS
220  test -z "$as_dir" && as_dir=.
221  as_found=:
222  case $as_dir in #(
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     # Try only shells that exist, to save several forks.
226	     as_shell=$as_dir/$as_base
227	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
229  CONFIG_SHELL=$as_shell as_have_required=yes
230		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231  break 2
232fi
233fi
234	   done;;
235       esac
236  as_found=false
237done
238$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240  CONFIG_SHELL=$SHELL as_have_required=yes
241fi; }
242IFS=$as_save_IFS
243
244
245      if test "x$CONFIG_SHELL" != x; then :
246  export CONFIG_SHELL
247             # We cannot yet assume a decent shell, so we have to provide a
248# neutralization value for shells without unset; and this also
249# works around shells that cannot unset nonexistent variables.
250# Preserve -v and -x to the replacement shell.
251BASH_ENV=/dev/null
252ENV=/dev/null
253(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254case $- in # ((((
255  *v*x* | *x*v* ) as_opts=-vx ;;
256  *v* ) as_opts=-v ;;
257  *x* ) as_opts=-x ;;
258  * ) as_opts= ;;
259esac
260exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261# Admittedly, this is quite paranoid, since all the known shells bail
262# out after a failed `exec'.
263$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264exit 255
265fi
266
267    if test x$as_have_required = xno; then :
268  $as_echo "$0: This script requires a shell more modern than all"
269  $as_echo "$0: the shells that I found on your system."
270  if test x${ZSH_VERSION+set} = xset ; then
271    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
273  else
274    $as_echo "$0: Please tell bug-autoconf@gnu.org and
275$0: https://github.com/libuv/libuv/issues about your
276$0: system, including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libuv'
589PACKAGE_TARNAME='libuv'
590PACKAGE_VERSION='1.37.0'
591PACKAGE_STRING='libuv 1.37.0'
592PACKAGE_BUGREPORT='https://github.com/libuv/libuv/issues'
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635WINNT_FALSE
636WINNT_TRUE
637SUNOS_FALSE
638SUNOS_TRUE
639OS400_FALSE
640OS400_TRUE
641OS390_FALSE
642OS390_TRUE
643OPENBSD_FALSE
644OPENBSD_TRUE
645NETBSD_FALSE
646NETBSD_TRUE
647MSYS_FALSE
648MSYS_TRUE
649LINUX_FALSE
650LINUX_TRUE
651HURD_FALSE
652HURD_TRUE
653HAIKU_FALSE
654HAIKU_TRUE
655FREEBSD_FALSE
656FREEBSD_TRUE
657DRAGONFLY_FALSE
658DRAGONFLY_TRUE
659DARWIN_FALSE
660DARWIN_TRUE
661CYGWIN_FALSE
662CYGWIN_TRUE
663ANDROID_FALSE
664ANDROID_TRUE
665AIX_FALSE
666AIX_TRUE
667CPP
668LT_SYS_LIBRARY_PATH
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674MANIFEST_TOOL
675RANLIB
676DLLTOOL
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684EGREP
685GREP
686SED
687LIBTOOL
688ac_ct_AR
689AR
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
714AM_BACKSLASH
715AM_DEFAULT_VERBOSITY
716AM_DEFAULT_V
717AM_V
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL
779am__quote'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_shared
785enable_static
786enable_dependency_tracking
787with_pic
788enable_fast_install
789with_aix_soname
790with_gnu_ld
791with_sysroot
792enable_libtool_lock
793enable_largefile
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803LT_SYS_LIBRARY_PATH
804CPP'
805
806
807# Initialize some variables set by options.
808ac_init_help=
809ac_init_version=false
810ac_unrecognized_opts=
811ac_unrecognized_sep=
812# The variables have the same names as the options, with
813# dashes changed to underlines.
814cache_file=/dev/null
815exec_prefix=NONE
816no_create=
817no_recursion=
818prefix=NONE
819program_prefix=NONE
820program_suffix=NONE
821program_transform_name=s,x,x,
822silent=
823site=
824srcdir=
825verbose=
826x_includes=NONE
827x_libraries=NONE
828
829# Installation directory options.
830# These are left unexpanded so users can "make install exec_prefix=/foo"
831# and all the variables that are supposed to be based on exec_prefix
832# by default will actually change.
833# Use braces instead of parens because sh, perl, etc. also accept them.
834# (The list follows the same order as the GNU Coding Standards.)
835bindir='${exec_prefix}/bin'
836sbindir='${exec_prefix}/sbin'
837libexecdir='${exec_prefix}/libexec'
838datarootdir='${prefix}/share'
839datadir='${datarootdir}'
840sysconfdir='${prefix}/etc'
841sharedstatedir='${prefix}/com'
842localstatedir='${prefix}/var'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  # Accept the important Cygnus configure options, so we can diagnose typos.
873
874  case $ac_dashdash$ac_option in
875  --)
876    ac_dashdash=yes ;;
877
878  -bindir | --bindir | --bindi | --bind | --bin | --bi)
879    ac_prev=bindir ;;
880  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881    bindir=$ac_optarg ;;
882
883  -build | --build | --buil | --bui | --bu)
884    ac_prev=build_alias ;;
885  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886    build_alias=$ac_optarg ;;
887
888  -cache-file | --cache-file | --cache-fil | --cache-fi \
889  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890    ac_prev=cache_file ;;
891  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893    cache_file=$ac_optarg ;;
894
895  --config-cache | -C)
896    cache_file=config.cache ;;
897
898  -datadir | --datadir | --datadi | --datad)
899    ac_prev=datadir ;;
900  -datadir=* | --datadir=* | --datadi=* | --datad=*)
901    datadir=$ac_optarg ;;
902
903  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904  | --dataroo | --dataro | --datar)
905    ac_prev=datarootdir ;;
906  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908    datarootdir=$ac_optarg ;;
909
910  -disable-* | --disable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: $ac_useropt"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=\$ac_optarg ;;
951
952  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954  | --exec | --exe | --ex)
955    ac_prev=exec_prefix ;;
956  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958  | --exec=* | --exe=* | --ex=*)
959    exec_prefix=$ac_optarg ;;
960
961  -gas | --gas | --ga | --g)
962    # Obsolete; use --with-gas.
963    with_gas=yes ;;
964
965  -help | --help | --hel | --he | -h)
966    ac_init_help=long ;;
967  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968    ac_init_help=recursive ;;
969  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970    ac_init_help=short ;;
971
972  -host | --host | --hos | --ho)
973    ac_prev=host_alias ;;
974  -host=* | --host=* | --hos=* | --ho=*)
975    host_alias=$ac_optarg ;;
976
977  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978    ac_prev=htmldir ;;
979  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980  | --ht=*)
981    htmldir=$ac_optarg ;;
982
983  -includedir | --includedir | --includedi | --included | --include \
984  | --includ | --inclu | --incl | --inc)
985    ac_prev=includedir ;;
986  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987  | --includ=* | --inclu=* | --incl=* | --inc=*)
988    includedir=$ac_optarg ;;
989
990  -infodir | --infodir | --infodi | --infod | --info | --inf)
991    ac_prev=infodir ;;
992  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993    infodir=$ac_optarg ;;
994
995  -libdir | --libdir | --libdi | --libd)
996    ac_prev=libdir ;;
997  -libdir=* | --libdir=* | --libdi=* | --libd=*)
998    libdir=$ac_optarg ;;
999
1000  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001  | --libexe | --libex | --libe)
1002    ac_prev=libexecdir ;;
1003  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004  | --libexe=* | --libex=* | --libe=*)
1005    libexecdir=$ac_optarg ;;
1006
1007  -localedir | --localedir | --localedi | --localed | --locale)
1008    ac_prev=localedir ;;
1009  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010    localedir=$ac_optarg ;;
1011
1012  -localstatedir | --localstatedir | --localstatedi | --localstated \
1013  | --localstate | --localstat | --localsta | --localst | --locals)
1014    ac_prev=localstatedir ;;
1015  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017    localstatedir=$ac_optarg ;;
1018
1019  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020    ac_prev=mandir ;;
1021  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022    mandir=$ac_optarg ;;
1023
1024  -nfp | --nfp | --nf)
1025    # Obsolete; use --without-fp.
1026    with_fp=no ;;
1027
1028  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029  | --no-cr | --no-c | -n)
1030    no_create=yes ;;
1031
1032  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034    no_recursion=yes ;;
1035
1036  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038  | --oldin | --oldi | --old | --ol | --o)
1039    ac_prev=oldincludedir ;;
1040  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043    oldincludedir=$ac_optarg ;;
1044
1045  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046    ac_prev=prefix ;;
1047  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048    prefix=$ac_optarg ;;
1049
1050  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051  | --program-pre | --program-pr | --program-p)
1052    ac_prev=program_prefix ;;
1053  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055    program_prefix=$ac_optarg ;;
1056
1057  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058  | --program-suf | --program-su | --program-s)
1059    ac_prev=program_suffix ;;
1060  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062    program_suffix=$ac_optarg ;;
1063
1064  -program-transform-name | --program-transform-name \
1065  | --program-transform-nam | --program-transform-na \
1066  | --program-transform-n | --program-transform- \
1067  | --program-transform | --program-transfor \
1068  | --program-transfo | --program-transf \
1069  | --program-trans | --program-tran \
1070  | --progr-tra | --program-tr | --program-t)
1071    ac_prev=program_transform_name ;;
1072  -program-transform-name=* | --program-transform-name=* \
1073  | --program-transform-nam=* | --program-transform-na=* \
1074  | --program-transform-n=* | --program-transform-=* \
1075  | --program-transform=* | --program-transfor=* \
1076  | --program-transfo=* | --program-transf=* \
1077  | --program-trans=* | --program-tran=* \
1078  | --progr-tra=* | --program-tr=* | --program-t=*)
1079    program_transform_name=$ac_optarg ;;
1080
1081  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082    ac_prev=pdfdir ;;
1083  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084    pdfdir=$ac_optarg ;;
1085
1086  -psdir | --psdir | --psdi | --psd | --ps)
1087    ac_prev=psdir ;;
1088  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089    psdir=$ac_optarg ;;
1090
1091  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092  | -silent | --silent | --silen | --sile | --sil)
1093    silent=yes ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: $ac_useropt"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288$as_echo X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures libuv 1.37.0 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --libdir=DIR            object code libraries [EPREFIX/lib]
1386  --includedir=DIR        C header files [PREFIX/include]
1387  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1388  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1389  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1390  --infodir=DIR           info documentation [DATAROOTDIR/info]
1391  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1392  --mandir=DIR            man documentation [DATAROOTDIR/man]
1393  --docdir=DIR            documentation root [DATAROOTDIR/doc/libuv]
1394  --htmldir=DIR           html documentation [DOCDIR]
1395  --dvidir=DIR            dvi documentation [DOCDIR]
1396  --pdfdir=DIR            pdf documentation [DOCDIR]
1397  --psdir=DIR             ps documentation [DOCDIR]
1398_ACEOF
1399
1400  cat <<\_ACEOF
1401
1402Program names:
1403  --program-prefix=PREFIX            prepend PREFIX to installed program names
1404  --program-suffix=SUFFIX            append SUFFIX to installed program names
1405  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1406
1407System types:
1408  --build=BUILD     configure for building on BUILD [guessed]
1409  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1410_ACEOF
1411fi
1412
1413if test -n "$ac_init_help"; then
1414  case $ac_init_help in
1415     short | recursive ) echo "Configuration of libuv 1.37.0:";;
1416   esac
1417  cat <<\_ACEOF
1418
1419Optional Features:
1420  --disable-option-checking  ignore unrecognized --enable/--with options
1421  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1422  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1423  --enable-silent-rules   less verbose build output (undo: "make V=1")
1424  --disable-silent-rules  verbose build output (undo: "make V=0")
1425  --enable-shared[=PKGS]  build shared libraries [default=yes]
1426  --enable-static[=PKGS]  build static libraries [default=yes]
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --enable-fast-install[=PKGS]
1432                          optimize for fast installation [default=yes]
1433  --disable-libtool-lock  avoid locking (might break parallel builds)
1434  --disable-largefile     omit support for large files
1435
1436Optional Packages:
1437  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1440                          both]
1441  --with-aix-soname=aix|svr4|both
1442                          shared library versioning (aka "SONAME") variant to
1443                          provide on AIX, [default=aix].
1444  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1446                          compiler's sysroot if not specified).
1447
1448Some influential environment variables:
1449  CC          C compiler command
1450  CFLAGS      C compiler flags
1451  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1452              nonstandard directory <lib dir>
1453  LIBS        libraries to pass to the linker, e.g. -l<library>
1454  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455              you have headers in a nonstandard directory <include dir>
1456  LT_SYS_LIBRARY_PATH
1457              User-defined run-time library search path.
1458  CPP         C preprocessor
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to <https://github.com/libuv/libuv/issues>.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469  # If there are subdirs, report their specific --help.
1470  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471    test -d "$ac_dir" ||
1472      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473      continue
1474    ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480  # A ".." for each directory in $ac_dir_suffix.
1481  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482  case $ac_top_builddir_sub in
1483  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485  esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493  .)  # We are building in place.
1494    ac_srcdir=.
1495    ac_top_srcdir=$ac_top_builddir_sub
1496    ac_abs_top_srcdir=$ac_pwd ;;
1497  [\\/]* | ?:[\\/]* )  # Absolute name.
1498    ac_srcdir=$srcdir$ac_dir_suffix;
1499    ac_top_srcdir=$srcdir
1500    ac_abs_top_srcdir=$srcdir ;;
1501  *) # Relative name.
1502    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503    ac_top_srcdir=$ac_top_build_prefix$srcdir
1504    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508    cd "$ac_dir" || { ac_status=$?; continue; }
1509    # Check for guested configure.
1510    if test -f "$ac_srcdir/configure.gnu"; then
1511      echo &&
1512      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513    elif test -f "$ac_srcdir/configure"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure" --help=recursive
1516    else
1517      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518    fi || ac_status=$?
1519    cd "$ac_pwd" || { ac_status=$?; break; }
1520  done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525  cat <<\_ACEOF
1526libuv configure 1.37.0
1527generated by GNU Autoconf 2.69
1528
1529Copyright (C) 2012 Free Software Foundation, Inc.
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533  exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  rm -f conftest.$ac_objext
1547  if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_compile") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } && {
1563	 test -z "$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       } && test -s conftest.$ac_objext; then :
1566  ac_retval=0
1567else
1568  $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571	ac_retval=1
1572fi
1573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574  as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_compile
1577
1578# ac_fn_c_try_link LINENO
1579# -----------------------
1580# Try to link conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_link ()
1582{
1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584  rm -f conftest.$ac_objext conftest$ac_exeext
1585  if { { ac_try="$ac_link"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_link") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } && {
1601	 test -z "$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       } && test -s conftest$ac_exeext && {
1604	 test "$cross_compiling" = yes ||
1605	 test -x conftest$ac_exeext
1606       }; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612	ac_retval=1
1613fi
1614  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616  # interfere with the next link command; also delete a directory that is
1617  # left behind by Apple's compiler.  We do this before executing the actions.
1618  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_link
1623
1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625# -------------------------------------------------------
1626# Tests whether HEADER exists and can be compiled using the include files in
1627# INCLUDES, setting the cache variable VAR accordingly.
1628ac_fn_c_check_header_compile ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
1633if eval \${$3+:} false; then :
1634  $as_echo_n "(cached) " >&6
1635else
1636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
1642  eval "$3=yes"
1643else
1644  eval "$3=no"
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647fi
1648eval ac_res=\$$3
1649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653} # ac_fn_c_check_header_compile
1654
1655# ac_fn_c_try_cpp LINENO
1656# ----------------------
1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_cpp ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  if { { ac_try="$ac_cpp conftest.$ac_ext"
1662case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669  ac_status=$?
1670  if test -s conftest.err; then
1671    grep -v '^ *+' conftest.err >conftest.er1
1672    cat conftest.er1 >&5
1673    mv -f conftest.er1 conftest.err
1674  fi
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; } > conftest.i && {
1677	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678	 test ! -s conftest.err
1679       }; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685    ac_retval=1
1686fi
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_cpp
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710  { { case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_try") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; }; }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: program exited with status $ac_status" >&5
1723       $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726       ac_retval=$ac_status
1727fi
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752    which can conflict with char $2 (); below.
1753    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754    <limits.h> exists even on freestanding compilers.  */
1755
1756#ifdef __STDC__
1757# include <limits.h>
1758#else
1759# include <assert.h>
1760#endif
1761
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765   Use char because int might match the return type of a GCC
1766   builtin and then its argument prototype would still apply.  */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 ();
1771/* The GNU C library defines this for functions which it implements
1772    to always fail with ENOSYS.  Some functions are actually named
1773    something starting with __ and the normal name is an alias.  */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main ()
1780{
1781return $2 ();
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"; then :
1787  eval "$3=yes"
1788else
1789  eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext \
1792    conftest$ac_exeext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_func
1800
1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804# the include files in INCLUDES and setting the cache variable VAR
1805# accordingly.
1806ac_fn_c_check_header_mongrel ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  if eval \${$3+:} false; then :
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814fi
1815eval ac_res=\$$3
1816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818else
1819  # Is the header compilable?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821$as_echo_n "checking $2 usability... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  ac_header_compiler=yes
1829else
1830  ac_header_compiler=no
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834$as_echo "$ac_header_compiler" >&6; }
1835
1836# Is the header present?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838$as_echo_n "checking $2 presence... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_cpp "$LINENO"; then :
1844  ac_header_preproc=yes
1845else
1846  ac_header_preproc=no
1847fi
1848rm -f conftest.err conftest.i conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850$as_echo "$ac_header_preproc" >&6; }
1851
1852# So?  What about this header?
1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854  yes:no: )
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859    ;;
1860  no:yes:* )
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1864$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1868$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871( $as_echo "## ---------------------------------------------------- ##
1872## Report this to https://github.com/libuv/libuv/issues ##
1873## ---------------------------------------------------- ##"
1874     ) | sed "s/^/$as_me: WARNING:     /" >&2
1875    ;;
1876esac
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  eval "$3=\$ac_header_compiler"
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887fi
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_header_mongrel
1891cat >config.log <<_ACEOF
1892This file contains any messages produced by compilers while
1893running configure, to aid debugging if configure makes a mistake.
1894
1895It was created by libuv $as_me 1.37.0, which was
1896generated by GNU Autoconf 2.69.  Invocation command line was
1897
1898  $ $0 $@
1899
1900_ACEOF
1901exec 5>>config.log
1902{
1903cat <<_ASUNAME
1904## --------- ##
1905## Platform. ##
1906## --------- ##
1907
1908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1916
1917/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1918/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1919/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1921/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1922/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1923/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1924
1925_ASUNAME
1926
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930  IFS=$as_save_IFS
1931  test -z "$as_dir" && as_dir=.
1932    $as_echo "PATH: $as_dir"
1933  done
1934IFS=$as_save_IFS
1935
1936} >&5
1937
1938cat >&5 <<_ACEOF
1939
1940
1941## ----------- ##
1942## Core tests. ##
1943## ----------- ##
1944
1945_ACEOF
1946
1947
1948# Keep a trace of the command line.
1949# Strip out --no-create and --no-recursion so they do not pile up.
1950# Strip out --silent because we don't want to record it for future runs.
1951# Also quote any args containing shell meta-characters.
1952# Make two passes to allow for proper duplicate-argument suppression.
1953ac_configure_args=
1954ac_configure_args0=
1955ac_configure_args1=
1956ac_must_keep_next=false
1957for ac_pass in 1 2
1958do
1959  for ac_arg
1960  do
1961    case $ac_arg in
1962    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964    | -silent | --silent | --silen | --sile | --sil)
1965      continue ;;
1966    *\'*)
1967      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968    esac
1969    case $ac_pass in
1970    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971    2)
1972      as_fn_append ac_configure_args1 " '$ac_arg'"
1973      if test $ac_must_keep_next = true; then
1974	ac_must_keep_next=false # Got value, back to normal.
1975      else
1976	case $ac_arg in
1977	  *=* | --config-cache | -C | -disable-* | --disable-* \
1978	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980	  | -with-* | --with-* | -without-* | --without-* | --x)
1981	    case "$ac_configure_args0 " in
1982	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983	    esac
1984	    ;;
1985	  -* ) ac_must_keep_next=true ;;
1986	esac
1987      fi
1988      as_fn_append ac_configure_args " '$ac_arg'"
1989      ;;
1990    esac
1991  done
1992done
1993{ ac_configure_args0=; unset ac_configure_args0;}
1994{ ac_configure_args1=; unset ac_configure_args1;}
1995
1996# When interrupted or exit'd, cleanup temporary files, and complete
1997# config.log.  We remove comments because anyway the quotes in there
1998# would cause problems or look ugly.
1999# WARNING: Use '\'' to represent an apostrophe within the trap.
2000# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001trap 'exit_status=$?
2002  # Save into config.log some information that might help in debugging.
2003  {
2004    echo
2005
2006    $as_echo "## ---------------- ##
2007## Cache variables. ##
2008## ---------------- ##"
2009    echo
2010    # The following way of writing the cache mishandles newlines in values,
2011(
2012  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2013    eval ac_val=\$$ac_var
2014    case $ac_val in #(
2015    *${as_nl}*)
2016      case $ac_var in #(
2017      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2018$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019      esac
2020      case $ac_var in #(
2021      _ | IFS | as_nl) ;; #(
2022      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2023      *) { eval $ac_var=; unset $ac_var;} ;;
2024      esac ;;
2025    esac
2026  done
2027  (set) 2>&1 |
2028    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2029    *${as_nl}ac_space=\ *)
2030      sed -n \
2031	"s/'\''/'\''\\\\'\'''\''/g;
2032	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033      ;; #(
2034    *)
2035      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2036      ;;
2037    esac |
2038    sort
2039)
2040    echo
2041
2042    $as_echo "## ----------------- ##
2043## Output variables. ##
2044## ----------------- ##"
2045    echo
2046    for ac_var in $ac_subst_vars
2047    do
2048      eval ac_val=\$$ac_var
2049      case $ac_val in
2050      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051      esac
2052      $as_echo "$ac_var='\''$ac_val'\''"
2053    done | sort
2054    echo
2055
2056    if test -n "$ac_subst_files"; then
2057      $as_echo "## ------------------- ##
2058## File substitutions. ##
2059## ------------------- ##"
2060      echo
2061      for ac_var in $ac_subst_files
2062      do
2063	eval ac_val=\$$ac_var
2064	case $ac_val in
2065	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066	esac
2067	$as_echo "$ac_var='\''$ac_val'\''"
2068      done | sort
2069      echo
2070    fi
2071
2072    if test -s confdefs.h; then
2073      $as_echo "## ----------- ##
2074## confdefs.h. ##
2075## ----------- ##"
2076      echo
2077      cat confdefs.h
2078      echo
2079    fi
2080    test "$ac_signal" != 0 &&
2081      $as_echo "$as_me: caught signal $ac_signal"
2082    $as_echo "$as_me: exit $exit_status"
2083  } >&5
2084  rm -f core *.core core.conftest.* &&
2085    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086    exit $exit_status
2087' 0
2088for ac_signal in 1 2 13 15; do
2089  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090done
2091ac_signal=0
2092
2093# confdefs.h avoids OS command line length limits that DEFS can exceed.
2094rm -f -r conftest* confdefs.h
2095
2096$as_echo "/* confdefs.h */" > confdefs.h
2097
2098# Predefined preprocessor variables.
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_NAME "$PACKAGE_NAME"
2102_ACEOF
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106_ACEOF
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_VERSION "$PACKAGE_VERSION"
2110_ACEOF
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_STRING "$PACKAGE_STRING"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_URL "$PACKAGE_URL"
2122_ACEOF
2123
2124
2125# Let the site file select an alternate cache file if it wants to.
2126# Prefer an explicitly selected file to automatically selected ones.
2127ac_site_file1=NONE
2128ac_site_file2=NONE
2129if test -n "$CONFIG_SITE"; then
2130  # We do not want a PATH search for config.site.
2131  case $CONFIG_SITE in #((
2132    -*)  ac_site_file1=./$CONFIG_SITE;;
2133    */*) ac_site_file1=$CONFIG_SITE;;
2134    *)   ac_site_file1=./$CONFIG_SITE;;
2135  esac
2136elif test "x$prefix" != xNONE; then
2137  ac_site_file1=$prefix/share/config.site
2138  ac_site_file2=$prefix/etc/config.site
2139else
2140  ac_site_file1=$ac_default_prefix/share/config.site
2141  ac_site_file2=$ac_default_prefix/etc/config.site
2142fi
2143for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144do
2145  test "x$ac_site_file" = xNONE && continue
2146  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2147    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2148$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149    sed 's/^/| /' "$ac_site_file" >&5
2150    . "$ac_site_file" \
2151      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2153as_fn_error $? "failed to load site script $ac_site_file
2154See \`config.log' for more details" "$LINENO" 5; }
2155  fi
2156done
2157
2158if test -r "$cache_file"; then
2159  # Some versions of bash will fail to source /dev/null (special files
2160  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2161  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163$as_echo "$as_me: loading cache $cache_file" >&6;}
2164    case $cache_file in
2165      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166      *)                      . "./$cache_file";;
2167    esac
2168  fi
2169else
2170  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171$as_echo "$as_me: creating cache $cache_file" >&6;}
2172  >$cache_file
2173fi
2174
2175# Check that the precious variables saved in the cache have kept the same
2176# value.
2177ac_cache_corrupted=false
2178for ac_var in $ac_precious_vars; do
2179  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180  eval ac_new_set=\$ac_env_${ac_var}_set
2181  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182  eval ac_new_val=\$ac_env_${ac_var}_value
2183  case $ac_old_set,$ac_new_set in
2184    set,)
2185      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2187      ac_cache_corrupted=: ;;
2188    ,set)
2189      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2191      ac_cache_corrupted=: ;;
2192    ,);;
2193    *)
2194      if test "x$ac_old_val" != "x$ac_new_val"; then
2195	# differences in whitespace do not lead to failure.
2196	ac_old_val_w=`echo x $ac_old_val`
2197	ac_new_val_w=`echo x $ac_new_val`
2198	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201	  ac_cache_corrupted=:
2202	else
2203	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205	  eval $ac_var=\$ac_old_val
2206	fi
2207	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2208$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2209	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2210$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2211      fi;;
2212  esac
2213  # Pass precious variables to config.status.
2214  if test "$ac_new_set" = set; then
2215    case $ac_new_val in
2216    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2217    *) ac_arg=$ac_var=$ac_new_val ;;
2218    esac
2219    case " $ac_configure_args " in
2220      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2221      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2222    esac
2223  fi
2224done
2225if $ac_cache_corrupted; then
2226  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231fi
2232## -------------------- ##
2233## Main body of script. ##
2234## -------------------- ##
2235
2236ac_ext=c
2237ac_cpp='$CPP $CPPFLAGS'
2238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241
2242
2243
2244
2245
2246# AS_CASE(WORD, [PATTERN1], [IF-MATCHED1]...[DEFAULT])
2247# ----------------------------------------------------
2248# Expand into
2249# | case WORD in
2250# | PATTERN1) IF-MATCHED1 ;;
2251# | ...
2252# | *) DEFAULT ;;
2253# | esac
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308am__api_version='1.16'
2309
2310ac_aux_dir=
2311for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2312  if test -f "$ac_dir/install-sh"; then
2313    ac_aux_dir=$ac_dir
2314    ac_install_sh="$ac_aux_dir/install-sh -c"
2315    break
2316  elif test -f "$ac_dir/install.sh"; then
2317    ac_aux_dir=$ac_dir
2318    ac_install_sh="$ac_aux_dir/install.sh -c"
2319    break
2320  elif test -f "$ac_dir/shtool"; then
2321    ac_aux_dir=$ac_dir
2322    ac_install_sh="$ac_aux_dir/shtool install -c"
2323    break
2324  fi
2325done
2326if test -z "$ac_aux_dir"; then
2327  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2328fi
2329
2330# These three variables are undocumented and unsupported,
2331# and are intended to be withdrawn in a future Autoconf release.
2332# They can cause serious problems if a builder's source tree is in a directory
2333# whose full name contains unusual characters.
2334ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2335ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2336ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2337
2338
2339# Find a good install program.  We prefer a C program (faster),
2340# so one script is as good as another.  But avoid the broken or
2341# incompatible versions:
2342# SysV /etc/install, /usr/sbin/install
2343# SunOS /usr/etc/install
2344# IRIX /sbin/install
2345# AIX /bin/install
2346# AmigaOS /C/install, which installs bootblocks on floppy discs
2347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350# OS/2's system install, which has a completely different semantic
2351# ./install, which can be erroneously created by make from ./install.sh.
2352# Reject install programs that cannot install multiple files.
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354$as_echo_n "checking for a BSD-compatible install... " >&6; }
2355if test -z "$INSTALL"; then
2356if ${ac_cv_path_install+:} false; then :
2357  $as_echo_n "(cached) " >&6
2358else
2359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    # Account for people who put trailing slashes in PATH elements.
2365case $as_dir/ in #((
2366  ./ | .// | /[cC]/* | \
2367  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369  /usr/ucb/* ) ;;
2370  *)
2371    # OSF1 and SCO ODT 3.0 have their own names for install.
2372    # Don't use installbsd from OSF since it installs stuff as root
2373    # by default.
2374    for ac_prog in ginstall scoinst install; do
2375      for ac_exec_ext in '' $ac_executable_extensions; do
2376	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2377	  if test $ac_prog = install &&
2378	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379	    # AIX install.  It has an incompatible calling convention.
2380	    :
2381	  elif test $ac_prog = install &&
2382	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383	    # program-specific install script used by HP pwplus--don't use.
2384	    :
2385	  else
2386	    rm -rf conftest.one conftest.two conftest.dir
2387	    echo one > conftest.one
2388	    echo two > conftest.two
2389	    mkdir conftest.dir
2390	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391	      test -s conftest.one && test -s conftest.two &&
2392	      test -s conftest.dir/conftest.one &&
2393	      test -s conftest.dir/conftest.two
2394	    then
2395	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2396	      break 3
2397	    fi
2398	  fi
2399	fi
2400      done
2401    done
2402    ;;
2403esac
2404
2405  done
2406IFS=$as_save_IFS
2407
2408rm -rf conftest.one conftest.two conftest.dir
2409
2410fi
2411  if test "${ac_cv_path_install+set}" = set; then
2412    INSTALL=$ac_cv_path_install
2413  else
2414    # As a last resort, use the slow shell script.  Don't cache a
2415    # value for INSTALL within a source directory, because that will
2416    # break other packages using the cache if that directory is
2417    # removed, or if the value is a relative name.
2418    INSTALL=$ac_install_sh
2419  fi
2420fi
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422$as_echo "$INSTALL" >&6; }
2423
2424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425# It thinks the first close brace ends the variable substitution.
2426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433$as_echo_n "checking whether build environment is sane... " >&6; }
2434# Reject unsafe characters in $srcdir or the absolute working directory
2435# name.  Accept space and tab only in the latter.
2436am_lf='
2437'
2438case `pwd` in
2439  *[\\\"\#\$\&\'\`$am_lf]*)
2440    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441esac
2442case $srcdir in
2443  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2444    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2445esac
2446
2447# Do 'set' in a subshell so we don't clobber the current shell's
2448# arguments.  Must try -L first in case configure is actually a
2449# symlink; some systems play weird games with the mod time of symlinks
2450# (eg FreeBSD returns the mod time of the symlink's containing
2451# directory).
2452if (
2453   am_has_slept=no
2454   for am_try in 1 2; do
2455     echo "timestamp, slept: $am_has_slept" > conftest.file
2456     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457     if test "$*" = "X"; then
2458	# -L didn't work.
2459	set X `ls -t "$srcdir/configure" conftest.file`
2460     fi
2461     if test "$*" != "X $srcdir/configure conftest.file" \
2462	&& test "$*" != "X conftest.file $srcdir/configure"; then
2463
2464	# If neither matched, then we have a broken ls.  This can happen
2465	# if, for instance, CONFIG_SHELL is bash and it inherits a
2466	# broken ls alias from the environment.  This has actually
2467	# happened.  Such a system could not be considered "sane".
2468	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2469  alias in your environment" "$LINENO" 5
2470     fi
2471     if test "$2" = conftest.file || test $am_try -eq 2; then
2472       break
2473     fi
2474     # Just in case.
2475     sleep 1
2476     am_has_slept=yes
2477   done
2478   test "$2" = conftest.file
2479   )
2480then
2481   # Ok.
2482   :
2483else
2484   as_fn_error $? "newly created file is older than distributed files!
2485Check your system clock" "$LINENO" 5
2486fi
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488$as_echo "yes" >&6; }
2489# If we didn't sleep, we still need to ensure time stamps of config.status and
2490# generated files are strictly newer.
2491am_sleep_pid=
2492if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2493  ( sleep 1 ) &
2494  am_sleep_pid=$!
2495fi
2496
2497rm -f conftest.file
2498
2499test "$program_prefix" != NONE &&
2500  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501# Use a double $ so make ignores it.
2502test "$program_suffix" != NONE &&
2503  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504# Double any \ or $.
2505# By default was `s,x,x', remove it if useless.
2506ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2508
2509# Expand $ac_aux_dir to an absolute path.
2510am_aux_dir=`cd "$ac_aux_dir" && pwd`
2511
2512if test x"${MISSING+set}" != xset; then
2513  case $am_aux_dir in
2514  *\ * | *\	*)
2515    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516  *)
2517    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518  esac
2519fi
2520# Use eval to expand $SHELL
2521if eval "$MISSING --is-lightweight"; then
2522  am_missing_run="$MISSING "
2523else
2524  am_missing_run=
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2526$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2527fi
2528
2529if test x"${install_sh+set}" != xset; then
2530  case $am_aux_dir in
2531  *\ * | *\	*)
2532    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533  *)
2534    install_sh="\${SHELL} $am_aux_dir/install-sh"
2535  esac
2536fi
2537
2538# Installed binaries are usually stripped using 'strip' when the user
2539# run "make install-strip".  However 'strip' might not be the right
2540# tool to use in cross-compilation environments, therefore Automake
2541# will honor the 'STRIP' environment variable to overrule this program.
2542if test "$cross_compiling" != no; then
2543  if test -n "$ac_tool_prefix"; then
2544  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545set dummy ${ac_tool_prefix}strip; ac_word=$2
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if ${ac_cv_prog_STRIP+:} false; then :
2549  $as_echo_n "(cached) " >&6
2550else
2551  if test -n "$STRIP"; then
2552  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557  IFS=$as_save_IFS
2558  test -z "$as_dir" && as_dir=.
2559    for ac_exec_ext in '' $ac_executable_extensions; do
2560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563    break 2
2564  fi
2565done
2566  done
2567IFS=$as_save_IFS
2568
2569fi
2570fi
2571STRIP=$ac_cv_prog_STRIP
2572if test -n "$STRIP"; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574$as_echo "$STRIP" >&6; }
2575else
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
2578fi
2579
2580
2581fi
2582if test -z "$ac_cv_prog_STRIP"; then
2583  ac_ct_STRIP=$STRIP
2584  # Extract the first word of "strip", so it can be a program name with args.
2585set dummy strip; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589  $as_echo_n "(cached) " >&6
2590else
2591  if test -n "$ac_ct_STRIP"; then
2592  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  test -z "$as_dir" && as_dir=.
2599    for ac_exec_ext in '' $ac_executable_extensions; do
2600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601    ac_cv_prog_ac_ct_STRIP="strip"
2602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603    break 2
2604  fi
2605done
2606  done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612if test -n "$ac_ct_STRIP"; then
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614$as_echo "$ac_ct_STRIP" >&6; }
2615else
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618fi
2619
2620  if test "x$ac_ct_STRIP" = x; then
2621    STRIP=":"
2622  else
2623    case $cross_compiling:$ac_tool_warned in
2624yes:)
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627ac_tool_warned=yes ;;
2628esac
2629    STRIP=$ac_ct_STRIP
2630  fi
2631else
2632  STRIP="$ac_cv_prog_STRIP"
2633fi
2634
2635fi
2636INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640if test -z "$MKDIR_P"; then
2641  if ${ac_cv_path_mkdir+:} false; then :
2642  $as_echo_n "(cached) " >&6
2643else
2644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649    for ac_prog in mkdir gmkdir; do
2650	 for ac_exec_ext in '' $ac_executable_extensions; do
2651	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2652	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653	     'mkdir (GNU coreutils) '* | \
2654	     'mkdir (coreutils) '* | \
2655	     'mkdir (fileutils) '4.1*)
2656	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657	       break 3;;
2658	   esac
2659	 done
2660       done
2661  done
2662IFS=$as_save_IFS
2663
2664fi
2665
2666  test -d ./--version && rmdir ./--version
2667  if test "${ac_cv_path_mkdir+set}" = set; then
2668    MKDIR_P="$ac_cv_path_mkdir -p"
2669  else
2670    # As a last resort, use the slow shell script.  Don't cache a
2671    # value for MKDIR_P within a source directory, because that will
2672    # break other packages using the cache if that directory is
2673    # removed, or if the value is a relative name.
2674    MKDIR_P="$ac_install_sh -d"
2675  fi
2676fi
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678$as_echo "$MKDIR_P" >&6; }
2679
2680for ac_prog in gawk mawk nawk awk
2681do
2682  # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_AWK+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$AWK"; then
2690  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    ac_cv_prog_AWK="$ac_prog"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709AWK=$ac_cv_prog_AWK
2710if test -n "$AWK"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712$as_echo "$AWK" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719  test -n "$AWK" && break
2720done
2721
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2724set x ${MAKE-make}
2725ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  cat >conftest.make <<\_ACEOF
2730SHELL = /bin/sh
2731all:
2732	@echo '@@@%%%=$(MAKE)=@@@%%%'
2733_ACEOF
2734# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735case `${MAKE-make} -f conftest.make 2>/dev/null` in
2736  *@@@%%%=?*=@@@%%%*)
2737    eval ac_cv_prog_make_${ac_make}_set=yes;;
2738  *)
2739    eval ac_cv_prog_make_${ac_make}_set=no;;
2740esac
2741rm -f conftest.make
2742fi
2743if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745$as_echo "yes" >&6; }
2746  SET_MAKE=
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750  SET_MAKE="MAKE=${MAKE-make}"
2751fi
2752
2753rm -rf .tst 2>/dev/null
2754mkdir .tst 2>/dev/null
2755if test -d .tst; then
2756  am__leading_dot=.
2757else
2758  am__leading_dot=_
2759fi
2760rmdir .tst 2>/dev/null
2761
2762# Check whether --enable-silent-rules was given.
2763if test "${enable_silent_rules+set}" = set; then :
2764  enableval=$enable_silent_rules;
2765fi
2766
2767case $enable_silent_rules in # (((
2768  yes) AM_DEFAULT_VERBOSITY=0;;
2769   no) AM_DEFAULT_VERBOSITY=1;;
2770    *) AM_DEFAULT_VERBOSITY=1;;
2771esac
2772am_make=${MAKE-make}
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775if ${am_cv_make_support_nested_variables+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if $as_echo 'TRUE=$(BAR$(V))
2779BAR0=false
2780BAR1=true
2781V=1
2782am__doit:
2783	@$(TRUE)
2784.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785  am_cv_make_support_nested_variables=yes
2786else
2787  am_cv_make_support_nested_variables=no
2788fi
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791$as_echo "$am_cv_make_support_nested_variables" >&6; }
2792if test $am_cv_make_support_nested_variables = yes; then
2793    AM_V='$(V)'
2794  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795else
2796  AM_V=$AM_DEFAULT_VERBOSITY
2797  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798fi
2799AM_BACKSLASH='\'
2800
2801if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803  # is not polluted with repeated "-I."
2804  am__isrc=' -I$(srcdir)'
2805  # test to see if srcdir already configured
2806  if test -f $srcdir/config.status; then
2807    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2808  fi
2809fi
2810
2811# test whether we have cygpath
2812if test -z "$CYGPATH_W"; then
2813  if (cygpath --version) >/dev/null 2>/dev/null; then
2814    CYGPATH_W='cygpath -w'
2815  else
2816    CYGPATH_W=echo
2817  fi
2818fi
2819
2820
2821# Define the identity of the package.
2822 PACKAGE='libuv'
2823 VERSION='1.37.0'
2824
2825
2826cat >>confdefs.h <<_ACEOF
2827#define PACKAGE "$PACKAGE"
2828_ACEOF
2829
2830
2831cat >>confdefs.h <<_ACEOF
2832#define VERSION "$VERSION"
2833_ACEOF
2834
2835# Some tools Automake needs.
2836
2837ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2838
2839
2840AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2841
2842
2843AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2844
2845
2846AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2847
2848
2849MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2850
2851# For better backward compatibility.  To be removed once Automake 1.9.x
2852# dies out for good.  For more background, see:
2853# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2854# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2855mkdir_p='$(MKDIR_P)'
2856
2857# We need awk for the "check" target (and possibly the TAP driver).  The
2858# system "awk" is bad on some platforms.
2859# Always define AMTAR for backward compatibility.  Yes, it's still used
2860# in the wild :-(  We should find a proper way to deprecate it ...
2861AMTAR='$${TAR-tar}'
2862
2863
2864# We'll loop over all known methods to create a tar archive until one works.
2865_am_tools='gnutar  pax cpio none'
2866
2867am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2868
2869
2870
2871
2872
2873
2874# POSIX will say in a future version that running "rm -f" with no argument
2875# is OK; and we want to be able to make that assumption in our Makefile
2876# recipes.  So use an aggressive probe to check that the usage we want is
2877# actually supported "in the wild" to an acceptable degree.
2878# See automake bug#10828.
2879# To make any issue more visible, cause the running configure to be aborted
2880# by default if the 'rm' program in use doesn't match our expectations; the
2881# user can still override this though.
2882if rm -f && rm -fr && rm -rf; then : OK; else
2883  cat >&2 <<'END'
2884Oops!
2885
2886Your 'rm' program seems unable to run without file operands specified
2887on the command line, even when the '-f' option is present.  This is contrary
2888to the behaviour of most rm programs out there, and not conforming with
2889the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2890
2891Please tell bug-automake@gnu.org about your system, including the value
2892of your $PATH and any error possibly output before this message.  This
2893can help us improve future automake versions.
2894
2895END
2896  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2897    echo 'Configuration will proceed anyway, since you have set the' >&2
2898    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2899    echo >&2
2900  else
2901    cat >&2 <<'END'
2902Aborting the configuration process, to ensure you take notice of the issue.
2903
2904You can download and install GNU coreutils to get an 'rm' implementation
2905that behaves properly: <https://www.gnu.org/software/coreutils/>.
2906
2907If you want to complete the configuration process using your problematic
2908'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2909to "yes", and re-run configure.
2910
2911END
2912    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2913  fi
2914fi
2915
2916# Make sure we can run config.sub.
2917$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2918  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2921$as_echo_n "checking build system type... " >&6; }
2922if ${ac_cv_build+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  ac_build_alias=$build_alias
2926test "x$ac_build_alias" = x &&
2927  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2928test "x$ac_build_alias" = x &&
2929  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2930ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2931  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2932
2933fi
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2935$as_echo "$ac_cv_build" >&6; }
2936case $ac_cv_build in
2937*-*-*) ;;
2938*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2939esac
2940build=$ac_cv_build
2941ac_save_IFS=$IFS; IFS='-'
2942set x $ac_cv_build
2943shift
2944build_cpu=$1
2945build_vendor=$2
2946shift; shift
2947# Remember, the first character of IFS is used to create $*,
2948# except with old shells:
2949build_os=$*
2950IFS=$ac_save_IFS
2951case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2952
2953
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2955$as_echo_n "checking host system type... " >&6; }
2956if ${ac_cv_host+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test "x$host_alias" = x; then
2960  ac_cv_host=$ac_cv_build
2961else
2962  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2963    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2964fi
2965
2966fi
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2968$as_echo "$ac_cv_host" >&6; }
2969case $ac_cv_host in
2970*-*-*) ;;
2971*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2972esac
2973host=$ac_cv_host
2974ac_save_IFS=$IFS; IFS='-'
2975set x $ac_cv_host
2976shift
2977host_cpu=$1
2978host_vendor=$2
2979shift; shift
2980# Remember, the first character of IFS is used to create $*,
2981# except with old shells:
2982host_os=$*
2983IFS=$ac_save_IFS
2984case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2985
2986
2987# Check whether --enable-shared was given.
2988if test "${enable_shared+set}" = set; then :
2989  enableval=$enable_shared; p=${PACKAGE-default}
2990    case $enableval in
2991    yes) enable_shared=yes ;;
2992    no) enable_shared=no ;;
2993    *)
2994      enable_shared=no
2995      # Look at the argument we got.  We use all the common list separators.
2996      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2997      for pkg in $enableval; do
2998	IFS=$lt_save_ifs
2999	if test "X$pkg" = "X$p"; then
3000	  enable_shared=yes
3001	fi
3002      done
3003      IFS=$lt_save_ifs
3004      ;;
3005    esac
3006else
3007  enable_shared=yes
3008fi
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018# Check whether --enable-static was given.
3019if test "${enable_static+set}" = set; then :
3020  enableval=$enable_static; p=${PACKAGE-default}
3021    case $enableval in
3022    yes) enable_static=yes ;;
3023    no) enable_static=no ;;
3024    *)
3025     enable_static=no
3026      # Look at the argument we got.  We use all the common list separators.
3027      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3028      for pkg in $enableval; do
3029	IFS=$lt_save_ifs
3030	if test "X$pkg" = "X$p"; then
3031	  enable_static=yes
3032	fi
3033      done
3034      IFS=$lt_save_ifs
3035      ;;
3036    esac
3037else
3038  enable_static=yes
3039fi
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049ac_ext=c
3050ac_cpp='$CPP $CPPFLAGS'
3051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054if test -n "$ac_tool_prefix"; then
3055  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3056set dummy ${ac_tool_prefix}gcc; ac_word=$2
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
3059if ${ac_cv_prog_CC+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  if test -n "$CC"; then
3063  ac_cv_prog_CC="$CC" # Let the user override the test.
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068  IFS=$as_save_IFS
3069  test -z "$as_dir" && as_dir=.
3070    for ac_exec_ext in '' $ac_executable_extensions; do
3071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074    break 2
3075  fi
3076done
3077  done
3078IFS=$as_save_IFS
3079
3080fi
3081fi
3082CC=$ac_cv_prog_CC
3083if test -n "$CC"; then
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085$as_echo "$CC" >&6; }
3086else
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088$as_echo "no" >&6; }
3089fi
3090
3091
3092fi
3093if test -z "$ac_cv_prog_CC"; then
3094  ac_ct_CC=$CC
3095  # Extract the first word of "gcc", so it can be a program name with args.
3096set dummy gcc; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if ${ac_cv_prog_ac_ct_CC+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$ac_ct_CC"; then
3103  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112    ac_cv_prog_ac_ct_CC="gcc"
3113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117  done
3118IFS=$as_save_IFS
3119
3120fi
3121fi
3122ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123if test -n "$ac_ct_CC"; then
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125$as_echo "$ac_ct_CC" >&6; }
3126else
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131  if test "x$ac_ct_CC" = x; then
3132    CC=""
3133  else
3134    case $cross_compiling:$ac_tool_warned in
3135yes:)
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138ac_tool_warned=yes ;;
3139esac
3140    CC=$ac_ct_CC
3141  fi
3142else
3143  CC="$ac_cv_prog_CC"
3144fi
3145
3146if test -z "$CC"; then
3147          if test -n "$ac_tool_prefix"; then
3148    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3149set dummy ${ac_tool_prefix}cc; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
3152if ${ac_cv_prog_CC+:} false; then :
3153  $as_echo_n "(cached) " >&6
3154else
3155  if test -n "$CC"; then
3156  ac_cv_prog_CC="$CC" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161  IFS=$as_save_IFS
3162  test -z "$as_dir" && as_dir=.
3163    for ac_exec_ext in '' $ac_executable_extensions; do
3164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165    ac_cv_prog_CC="${ac_tool_prefix}cc"
3166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167    break 2
3168  fi
3169done
3170  done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175CC=$ac_cv_prog_CC
3176if test -n "$CC"; then
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178$as_echo "$CC" >&6; }
3179else
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184
3185  fi
3186fi
3187if test -z "$CC"; then
3188  # Extract the first word of "cc", so it can be a program name with args.
3189set dummy cc; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if ${ac_cv_prog_CC+:} false; then :
3193  $as_echo_n "(cached) " >&6
3194else
3195  if test -n "$CC"; then
3196  ac_cv_prog_CC="$CC" # Let the user override the test.
3197else
3198  ac_prog_rejected=no
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204    for ac_exec_ext in '' $ac_executable_extensions; do
3205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3207       ac_prog_rejected=yes
3208       continue
3209     fi
3210    ac_cv_prog_CC="cc"
3211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212    break 2
3213  fi
3214done
3215  done
3216IFS=$as_save_IFS
3217
3218if test $ac_prog_rejected = yes; then
3219  # We found a bogon in the path, so make sure we never use it.
3220  set dummy $ac_cv_prog_CC
3221  shift
3222  if test $# != 0; then
3223    # We chose a different compiler from the bogus one.
3224    # However, it has the same basename, so the bogon will be chosen
3225    # first if we set CC to just the basename; use the full file name.
3226    shift
3227    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3228  fi
3229fi
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235$as_echo "$CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242fi
3243if test -z "$CC"; then
3244  if test -n "$ac_tool_prefix"; then
3245  for ac_prog in cl.exe
3246  do
3247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
3251if ${ac_cv_prog_CC+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  if test -n "$CC"; then
3255  ac_cv_prog_CC="$CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260  IFS=$as_save_IFS
3261  test -z "$as_dir" && as_dir=.
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284    test -n "$CC" && break
3285  done
3286fi
3287if test -z "$CC"; then
3288  ac_ct_CC=$CC
3289  for ac_prog in cl.exe
3290do
3291  # Extract the first word of "$ac_prog", so it can be a program name with args.
3292set dummy $ac_prog; ac_word=$2
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294$as_echo_n "checking for $ac_word... " >&6; }
3295if ${ac_cv_prog_ac_ct_CC+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  if test -n "$ac_ct_CC"; then
3299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306    for ac_exec_ext in '' $ac_executable_extensions; do
3307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308    ac_cv_prog_ac_ct_CC="$ac_prog"
3309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313  done
3314IFS=$as_save_IFS
3315
3316fi
3317fi
3318ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319if test -n "$ac_ct_CC"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321$as_echo "$ac_ct_CC" >&6; }
3322else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325fi
3326
3327
3328  test -n "$ac_ct_CC" && break
3329done
3330
3331  if test "x$ac_ct_CC" = x; then
3332    CC=""
3333  else
3334    case $cross_compiling:$ac_tool_warned in
3335yes:)
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3338ac_tool_warned=yes ;;
3339esac
3340    CC=$ac_ct_CC
3341  fi
3342fi
3343
3344fi
3345
3346
3347test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349as_fn_error $? "no acceptable C compiler found in \$PATH
3350See \`config.log' for more details" "$LINENO" 5; }
3351
3352# Provide some information about the compiler.
3353$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3354set X $ac_compile
3355ac_compiler=$2
3356for ac_option in --version -v -V -qversion; do
3357  { { ac_try="$ac_compiler $ac_option >&5"
3358case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363$as_echo "$ac_try_echo"; } >&5
3364  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3365  ac_status=$?
3366  if test -s conftest.err; then
3367    sed '10a\
3368... rest of stderr output deleted ...
3369         10q' conftest.err >conftest.er1
3370    cat conftest.er1 >&5
3371  fi
3372  rm -f conftest.er1 conftest.err
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }
3375done
3376
3377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379
3380int
3381main ()
3382{
3383
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388ac_clean_files_save=$ac_clean_files
3389ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3390# Try to create an executable without -o first, disregard a.out.
3391# It will help us diagnose broken compilers, and finding out an intuition
3392# of exeext.
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3394$as_echo_n "checking whether the C compiler works... " >&6; }
3395ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3396
3397# The possible output files:
3398ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3399
3400ac_rmfiles=
3401for ac_file in $ac_files
3402do
3403  case $ac_file in
3404    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3406  esac
3407done
3408rm -f $ac_rmfiles
3409
3410if { { ac_try="$ac_link_default"
3411case "(($ac_try" in
3412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413  *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
3417  (eval "$ac_link_default") 2>&5
3418  ac_status=$?
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }; then :
3421  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3422# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3423# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3424# so that the user can short-circuit this test for compilers unknown to
3425# Autoconf.
3426for ac_file in $ac_files ''
3427do
3428  test -f "$ac_file" || continue
3429  case $ac_file in
3430    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3431	;;
3432    [ab].out )
3433	# We found the default executable, but exeext='' is most
3434	# certainly right.
3435	break;;
3436    *.* )
3437	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3438	then :; else
3439	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440	fi
3441	# We set ac_cv_exeext here because the later test for it is not
3442	# safe: cross compilers may not add the suffix if given an `-o'
3443	# argument, so we may need to know it at that point already.
3444	# Even if this section looks crufty: it has the advantage of
3445	# actually working.
3446	break;;
3447    * )
3448	break;;
3449  esac
3450done
3451test "$ac_cv_exeext" = no && ac_cv_exeext=
3452
3453else
3454  ac_file=''
3455fi
3456if test -z "$ac_file"; then :
3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459$as_echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error 77 "C compiler cannot create executables
3465See \`config.log' for more details" "$LINENO" 5; }
3466else
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3468$as_echo "yes" >&6; }
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3471$as_echo_n "checking for C compiler default output file name... " >&6; }
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3473$as_echo "$ac_file" >&6; }
3474ac_exeext=$ac_cv_exeext
3475
3476rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3477ac_clean_files=$ac_clean_files_save
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3479$as_echo_n "checking for suffix of executables... " >&6; }
3480if { { ac_try="$ac_link"
3481case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487  (eval "$ac_link") 2>&5
3488  ac_status=$?
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }; then :
3491  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3492# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3493# work properly (i.e., refer to `conftest.exe'), while it won't with
3494# `rm'.
3495for ac_file in conftest.exe conftest conftest.*; do
3496  test -f "$ac_file" || continue
3497  case $ac_file in
3498    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500	  break;;
3501    * ) break;;
3502  esac
3503done
3504else
3505  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3508See \`config.log' for more details" "$LINENO" 5; }
3509fi
3510rm -f conftest conftest$ac_cv_exeext
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3512$as_echo "$ac_cv_exeext" >&6; }
3513
3514rm -f conftest.$ac_ext
3515EXEEXT=$ac_cv_exeext
3516ac_exeext=$EXEEXT
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519#include <stdio.h>
3520int
3521main ()
3522{
3523FILE *f = fopen ("conftest.out", "w");
3524 return ferror (f) || fclose (f) != 0;
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530ac_clean_files="$ac_clean_files conftest.out"
3531# Check that the compiler produces executables we can run.  If not, either
3532# the compiler is broken, or we cross compile.
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3534$as_echo_n "checking whether we are cross compiling... " >&6; }
3535if test "$cross_compiling" != yes; then
3536  { { ac_try="$ac_link"
3537case "(($ac_try" in
3538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539  *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
3543  (eval "$ac_link") 2>&5
3544  ac_status=$?
3545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546  test $ac_status = 0; }
3547  if { ac_try='./conftest$ac_cv_exeext'
3548  { { case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554  (eval "$ac_try") 2>&5
3555  ac_status=$?
3556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557  test $ac_status = 0; }; }; then
3558    cross_compiling=no
3559  else
3560    if test "$cross_compiling" = maybe; then
3561	cross_compiling=yes
3562    else
3563	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565as_fn_error $? "cannot run C compiled programs.
3566If you meant to cross compile, use \`--host'.
3567See \`config.log' for more details" "$LINENO" 5; }
3568    fi
3569  fi
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3572$as_echo "$cross_compiling" >&6; }
3573
3574rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3575ac_clean_files=$ac_clean_files_save
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3577$as_echo_n "checking for suffix of object files... " >&6; }
3578if ${ac_cv_objext+:} false; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592rm -f conftest.o conftest.obj
3593if { { ac_try="$ac_compile"
3594case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600  (eval "$ac_compile") 2>&5
3601  ac_status=$?
3602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603  test $ac_status = 0; }; then :
3604  for ac_file in conftest.o conftest.obj conftest.*; do
3605  test -f "$ac_file" || continue;
3606  case $ac_file in
3607    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3608    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3609       break;;
3610  esac
3611done
3612else
3613  $as_echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618as_fn_error $? "cannot compute suffix of object files: cannot compile
3619See \`config.log' for more details" "$LINENO" 5; }
3620fi
3621rm -f conftest.$ac_cv_objext conftest.$ac_ext
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3624$as_echo "$ac_cv_objext" >&6; }
3625OBJEXT=$ac_cv_objext
3626ac_objext=$OBJEXT
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3628$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3629if ${ac_cv_c_compiler_gnu+:} false; then :
3630  $as_echo_n "(cached) " >&6
3631else
3632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638#ifndef __GNUC__
3639       choke me
3640#endif
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646if ac_fn_c_try_compile "$LINENO"; then :
3647  ac_compiler_gnu=yes
3648else
3649  ac_compiler_gnu=no
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652ac_cv_c_compiler_gnu=$ac_compiler_gnu
3653
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3656$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3657if test $ac_compiler_gnu = yes; then
3658  GCC=yes
3659else
3660  GCC=
3661fi
3662ac_test_CFLAGS=${CFLAGS+set}
3663ac_save_CFLAGS=$CFLAGS
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3665$as_echo_n "checking whether $CC accepts -g... " >&6; }
3666if ${ac_cv_prog_cc_g+:} false; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  ac_save_c_werror_flag=$ac_c_werror_flag
3670   ac_c_werror_flag=yes
3671   ac_cv_prog_cc_g=no
3672   CFLAGS="-g"
3673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684if ac_fn_c_try_compile "$LINENO"; then :
3685  ac_cv_prog_cc_g=yes
3686else
3687  CFLAGS=""
3688      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690
3691int
3692main ()
3693{
3694
3695  ;
3696  return 0;
3697}
3698_ACEOF
3699if ac_fn_c_try_compile "$LINENO"; then :
3700
3701else
3702  ac_c_werror_flag=$ac_save_c_werror_flag
3703	 CFLAGS="-g"
3704	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706
3707int
3708main ()
3709{
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716  ac_cv_prog_cc_g=yes
3717fi
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721fi
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723   ac_c_werror_flag=$ac_save_c_werror_flag
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3726$as_echo "$ac_cv_prog_cc_g" >&6; }
3727if test "$ac_test_CFLAGS" = set; then
3728  CFLAGS=$ac_save_CFLAGS
3729elif test $ac_cv_prog_cc_g = yes; then
3730  if test "$GCC" = yes; then
3731    CFLAGS="-g -O2"
3732  else
3733    CFLAGS="-g"
3734  fi
3735else
3736  if test "$GCC" = yes; then
3737    CFLAGS="-O2"
3738  else
3739    CFLAGS=
3740  fi
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3743$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744if ${ac_cv_prog_cc_c89+:} false; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  ac_cv_prog_cc_c89=no
3748ac_save_CC=$CC
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <stdarg.h>
3752#include <stdio.h>
3753struct stat;
3754/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3755struct buf { int x; };
3756FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757static char *e (p, i)
3758     char **p;
3759     int i;
3760{
3761  return p[i];
3762}
3763static char *f (char * (*g) (char **, int), char **p, ...)
3764{
3765  char *s;
3766  va_list v;
3767  va_start (v,p);
3768  s = g (p, va_arg (v,int));
3769  va_end (v);
3770  return s;
3771}
3772
3773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3774   function prototypes and stuff, but not '\xHH' hex character constants.
3775   These don't provoke an error unfortunately, instead are silently treated
3776   as 'x'.  The following induces an error, until -std is added to get
3777   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3778   array size at least.  It's necessary to write '\x00'==0 to get something
3779   that's true only with -std.  */
3780int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3781
3782/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3783   inside strings and character constants.  */
3784#define FOO(x) 'x'
3785int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3786
3787int test (int i, double x);
3788struct s1 {int (*f) (int a);};
3789struct s2 {int (*f) (double a);};
3790int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3791int argc;
3792char **argv;
3793int
3794main ()
3795{
3796return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3802	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803do
3804  CC="$ac_save_CC $ac_arg"
3805  if ac_fn_c_try_compile "$LINENO"; then :
3806  ac_cv_prog_cc_c89=$ac_arg
3807fi
3808rm -f core conftest.err conftest.$ac_objext
3809  test "x$ac_cv_prog_cc_c89" != "xno" && break
3810done
3811rm -f conftest.$ac_ext
3812CC=$ac_save_CC
3813
3814fi
3815# AC_CACHE_VAL
3816case "x$ac_cv_prog_cc_c89" in
3817  x)
3818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3819$as_echo "none needed" >&6; } ;;
3820  xno)
3821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3822$as_echo "unsupported" >&6; } ;;
3823  *)
3824    CC="$CC $ac_cv_prog_cc_c89"
3825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3826$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3827esac
3828if test "x$ac_cv_prog_cc_c89" != xno; then :
3829
3830fi
3831
3832ac_ext=c
3833ac_cpp='$CPP $CPPFLAGS'
3834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837
3838ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3844$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3845if ${am_cv_prog_cc_c_o+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859  # Make sure it works both with $CC and with simple cc.
3860  # Following AC_PROG_CC_C_O, we do the test twice because some
3861  # compilers refuse to overwrite an existing .o file with -o,
3862  # though they will create one.
3863  am_cv_prog_cc_c_o=yes
3864  for am_i in 1 2; do
3865    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3866   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } \
3870         && test -f conftest2.$ac_objext; then
3871      : OK
3872    else
3873      am_cv_prog_cc_c_o=no
3874      break
3875    fi
3876  done
3877  rm -f core conftest*
3878  unset am_i
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3881$as_echo "$am_cv_prog_cc_c_o" >&6; }
3882if test "$am_cv_prog_cc_c_o" != yes; then
3883   # Losing compiler, so override with the script.
3884   # FIXME: It is wrong to rewrite CC.
3885   # But if we don't then we get into trouble of one sort or another.
3886   # A longer-term fix would be to have automake use am__CC in this case,
3887   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3888   CC="$am_aux_dir/compile $CC"
3889fi
3890ac_ext=c
3891ac_cpp='$CPP $CPPFLAGS'
3892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895
3896DEPDIR="${am__leading_dot}deps"
3897
3898ac_config_commands="$ac_config_commands depfiles"
3899
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3901$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3902cat > confinc.mk << 'END'
3903am__doit:
3904	@echo this is the am__doit target >confinc.out
3905.PHONY: am__doit
3906END
3907am__include="#"
3908am__quote=
3909# BSD make does it like this.
3910echo '.include "confinc.mk" # ignored' > confmf.BSD
3911# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3912echo 'include confinc.mk # ignored' > confmf.GNU
3913_am_result=no
3914for s in GNU BSD; do
3915  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3916   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); }
3920  case $?:`cat confinc.out 2>/dev/null` in
3921  '0:this is the am__doit target') case $s in
3922  BSD) am__include='.include' am__quote='"' ;;
3923  *) am__include='include' am__quote='' ;;
3924esac ;;
3925esac
3926  if test "$am__include" != "#"; then
3927    _am_result="yes ($s style)"
3928    break
3929  fi
3930done
3931rm -f confinc.* confmf.*
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3933$as_echo "${_am_result}" >&6; }
3934
3935# Check whether --enable-dependency-tracking was given.
3936if test "${enable_dependency_tracking+set}" = set; then :
3937  enableval=$enable_dependency_tracking;
3938fi
3939
3940if test "x$enable_dependency_tracking" != xno; then
3941  am_depcomp="$ac_aux_dir/depcomp"
3942  AMDEPBACKSLASH='\'
3943  am__nodep='_no'
3944fi
3945 if test "x$enable_dependency_tracking" != xno; then
3946  AMDEP_TRUE=
3947  AMDEP_FALSE='#'
3948else
3949  AMDEP_TRUE='#'
3950  AMDEP_FALSE=
3951fi
3952
3953
3954
3955depcc="$CC"   am_compiler_list=
3956
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3958$as_echo_n "checking dependency style of $depcc... " >&6; }
3959if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3960  $as_echo_n "(cached) " >&6
3961else
3962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963  # We make a subdir and do the tests there.  Otherwise we can end up
3964  # making bogus files that we don't know about and never remove.  For
3965  # instance it was reported that on HP-UX the gcc test will end up
3966  # making a dummy file named 'D' -- because '-MD' means "put the output
3967  # in D".
3968  rm -rf conftest.dir
3969  mkdir conftest.dir
3970  # Copy depcomp to subdir because otherwise we won't find it if we're
3971  # using a relative directory.
3972  cp "$am_depcomp" conftest.dir
3973  cd conftest.dir
3974  # We will build objects and dependencies in a subdirectory because
3975  # it helps to detect inapplicable dependency modes.  For instance
3976  # both Tru64's cc and ICC support -MD to output dependencies as a
3977  # side effect of compilation, but ICC will put the dependencies in
3978  # the current directory while Tru64 will put them in the object
3979  # directory.
3980  mkdir sub
3981
3982  am_cv_CC_dependencies_compiler_type=none
3983  if test "$am_compiler_list" = ""; then
3984     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985  fi
3986  am__universal=false
3987  case " $depcc " in #(
3988     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3989     esac
3990
3991  for depmode in $am_compiler_list; do
3992    # Setup a source with many dependencies, because some compilers
3993    # like to wrap large dependency lists on column 80 (with \), and
3994    # we should not choose a depcomp mode which is confused by this.
3995    #
3996    # We need to recreate these files for each test, as the compiler may
3997    # overwrite some of them when testing with obscure command lines.
3998    # This happens at least with the AIX C compiler.
3999    : > sub/conftest.c
4000    for i in 1 2 3 4 5 6; do
4001      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4002      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4003      # Solaris 10 /bin/sh.
4004      echo '/* dummy */' > sub/conftst$i.h
4005    done
4006    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007
4008    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4009    # mode.  It turns out that the SunPro C++ compiler does not properly
4010    # handle '-M -o', and we need to detect this.  Also, some Intel
4011    # versions had trouble with output in subdirs.
4012    am__obj=sub/conftest.${OBJEXT-o}
4013    am__minus_obj="-o $am__obj"
4014    case $depmode in
4015    gcc)
4016      # This depmode causes a compiler race in universal mode.
4017      test "$am__universal" = false || continue
4018      ;;
4019    nosideeffect)
4020      # After this tag, mechanisms are not by side-effect, so they'll
4021      # only be used when explicitly requested.
4022      if test "x$enable_dependency_tracking" = xyes; then
4023	continue
4024      else
4025	break
4026      fi
4027      ;;
4028    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4029      # This compiler won't grok '-c -o', but also, the minuso test has
4030      # not run yet.  These depmodes are late enough in the game, and
4031      # so weak that their functioning should not be impacted.
4032      am__obj=conftest.${OBJEXT-o}
4033      am__minus_obj=
4034      ;;
4035    none) break ;;
4036    esac
4037    if depmode=$depmode \
4038       source=sub/conftest.c object=$am__obj \
4039       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4040       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4041         >/dev/null 2>conftest.err &&
4042       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4043       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4044       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4045       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4046      # icc doesn't choke on unknown options, it will just issue warnings
4047      # or remarks (even with -Werror).  So we grep stderr for any message
4048      # that says an option was ignored or not supported.
4049      # When given -MP, icc 7.0 and 7.1 complain thusly:
4050      #   icc: Command line warning: ignoring option '-M'; no argument required
4051      # The diagnosis changed in icc 8.0:
4052      #   icc: Command line remark: option '-MP' not supported
4053      if (grep 'ignoring option' conftest.err ||
4054          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4055        am_cv_CC_dependencies_compiler_type=$depmode
4056        break
4057      fi
4058    fi
4059  done
4060
4061  cd ..
4062  rm -rf conftest.dir
4063else
4064  am_cv_CC_dependencies_compiler_type=none
4065fi
4066
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4069$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4070CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4071
4072 if
4073  test "x$enable_dependency_tracking" != xno \
4074  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4075  am__fastdepCC_TRUE=
4076  am__fastdepCC_FALSE='#'
4077else
4078  am__fastdepCC_TRUE='#'
4079  am__fastdepCC_FALSE=
4080fi
4081
4082
4083
4084
4085
4086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
4087$as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
4088if ${cc_cv_werror+:} false; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091
4092  if ${cc_cv_cflags__Werror+:} false; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  ac_save_CFLAGS="$CFLAGS"
4096     CFLAGS="$CFLAGS -Werror"
4097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099int a;
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"; then :
4102  eval "cc_cv_cflags__Werror='yes'"
4103else
4104  eval "cc_cv_cflags__Werror='no'"
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107     CFLAGS="$ac_save_CFLAGS"
4108
4109fi
4110
4111
4112  if eval test x$cc_cv_cflags__Werror = xyes; then :
4113  cc_cv_werror=-Werror
4114else
4115
4116  if ${cc_cv_cflags__errwarn__all+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  ac_save_CFLAGS="$CFLAGS"
4120     CFLAGS="$CFLAGS -errwarn=%all"
4121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123int a;
4124_ACEOF
4125if ac_fn_c_try_compile "$LINENO"; then :
4126  eval "cc_cv_cflags__errwarn__all='yes'"
4127else
4128  eval "cc_cv_cflags__errwarn__all='no'"
4129fi
4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131     CFLAGS="$ac_save_CFLAGS"
4132
4133fi
4134
4135
4136  if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
4137  cc_cv_werror=-errwarn=%all
4138fi
4139
4140fi
4141
4142
4143fi
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
4145$as_echo "$cc_cv_werror" >&6; }
4146
4147
4148
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
4150$as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
4151if ${cc_cv_flag_visibility+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  cc_flag_visibility_save_CFLAGS="$CFLAGS"
4155     CFLAGS="$CFLAGS $cc_cv_werror"
4156
4157  if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  ac_save_CFLAGS="$CFLAGS"
4161     CFLAGS="$CFLAGS -fvisibility=hidden"
4162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164int a;
4165_ACEOF
4166if ac_fn_c_try_compile "$LINENO"; then :
4167  eval "cc_cv_cflags__fvisibility_hidden='yes'"
4168else
4169  eval "cc_cv_cflags__fvisibility_hidden='no'"
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172     CFLAGS="$ac_save_CFLAGS"
4173
4174fi
4175
4176
4177  if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
4178  cc_cv_flag_visibility='yes'
4179else
4180  cc_cv_flag_visibility='no'
4181fi
4182
4183     CFLAGS="$cc_flag_visibility_save_CFLAGS"
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
4186$as_echo "$cc_cv_flag_visibility" >&6; }
4187
4188  if test "x$cc_cv_flag_visibility" = "xyes"; then :
4189
4190$as_echo "#define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
4191
4192
4193fi
4194 #[-fvisibility=hidden]
4195
4196  for flag in -g; do
4197
4198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4199$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4200if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203
4204  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  ac_save_CFLAGS="$CFLAGS"
4208     CFLAGS="$CFLAGS $flag"
4209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211int a;
4212_ACEOF
4213if ac_fn_c_try_compile "$LINENO"; then :
4214  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4215else
4216  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219     CFLAGS="$ac_save_CFLAGS"
4220
4221fi
4222
4223
4224  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4225
4226fi
4227
4228fi
4229eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4230	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4231$as_echo "$ac_res" >&6; }
4232
4233  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4234  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4235fi
4236
4237  done
4238
4239
4240  for flag in -std=gnu89; do
4241
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4243$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4244if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247
4248  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  ac_save_CFLAGS="$CFLAGS"
4252     CFLAGS="$CFLAGS $flag"
4253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h.  */
4255int a;
4256_ACEOF
4257if ac_fn_c_try_compile "$LINENO"; then :
4258  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4259else
4260  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4261fi
4262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263     CFLAGS="$ac_save_CFLAGS"
4264
4265fi
4266
4267
4268  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4269
4270fi
4271
4272fi
4273eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4274	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4275$as_echo "$ac_res" >&6; }
4276
4277  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4278  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4279fi
4280
4281  done
4282
4283
4284  for flag in -Wall; do
4285
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4287$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4288if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4289  $as_echo_n "(cached) " >&6
4290else
4291
4292  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  ac_save_CFLAGS="$CFLAGS"
4296     CFLAGS="$CFLAGS $flag"
4297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h.  */
4299int a;
4300_ACEOF
4301if ac_fn_c_try_compile "$LINENO"; then :
4302  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4303else
4304  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4305fi
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307     CFLAGS="$ac_save_CFLAGS"
4308
4309fi
4310
4311
4312  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4313
4314fi
4315
4316fi
4317eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4318	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4319$as_echo "$ac_res" >&6; }
4320
4321  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4322  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4323fi
4324
4325  done
4326
4327
4328  for flag in -Wextra; do
4329
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4331$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4332if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335
4336  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339  ac_save_CFLAGS="$CFLAGS"
4340     CFLAGS="$CFLAGS $flag"
4341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343int a;
4344_ACEOF
4345if ac_fn_c_try_compile "$LINENO"; then :
4346  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4347else
4348  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4349fi
4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351     CFLAGS="$ac_save_CFLAGS"
4352
4353fi
4354
4355
4356  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4357
4358fi
4359
4360fi
4361eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4362	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4363$as_echo "$ac_res" >&6; }
4364
4365  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4366  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4367fi
4368
4369  done
4370
4371
4372  for flag in -Wno-long-long; do
4373
4374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4375$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4376if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379
4380  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383  ac_save_CFLAGS="$CFLAGS"
4384     CFLAGS="$CFLAGS $flag"
4385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387int a;
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4391else
4392  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395     CFLAGS="$ac_save_CFLAGS"
4396
4397fi
4398
4399
4400  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4401
4402fi
4403
4404fi
4405eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4406	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4407$as_echo "$ac_res" >&6; }
4408
4409  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4410  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4411fi
4412
4413  done
4414
4415
4416  for flag in -Wno-unused-parameter; do
4417
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4419$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4420if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4421  $as_echo_n "(cached) " >&6
4422else
4423
4424  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  ac_save_CFLAGS="$CFLAGS"
4428     CFLAGS="$CFLAGS $flag"
4429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h.  */
4431int a;
4432_ACEOF
4433if ac_fn_c_try_compile "$LINENO"; then :
4434  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4435else
4436  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4437fi
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439     CFLAGS="$ac_save_CFLAGS"
4440
4441fi
4442
4443
4444  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4445
4446fi
4447
4448fi
4449eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4450	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4451$as_echo "$ac_res" >&6; }
4452
4453  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4454  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4455fi
4456
4457  done
4458
4459
4460  for flag in -Wstrict-prototypes; do
4461
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
4463$as_echo_n "checking if $CC supports $flag flag... " >&6; }
4464if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467
4468  if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  ac_save_CFLAGS="$CFLAGS"
4472     CFLAGS="$CFLAGS $flag"
4473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h.  */
4475int a;
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
4479else
4480  eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483     CFLAGS="$ac_save_CFLAGS"
4484
4485fi
4486
4487
4488  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4489
4490fi
4491
4492fi
4493eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
4494	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4495$as_echo "$ac_res" >&6; }
4496
4497  if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
4498  CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
4499fi
4500
4501  done
4502
4503# AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12.
4504if test -n "$ac_tool_prefix"; then
4505  for ac_prog in ar lib "link -lib"
4506  do
4507    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_prog_AR+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  if test -n "$AR"; then
4515  ac_cv_prog_AR="$AR" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520  IFS=$as_save_IFS
4521  test -z "$as_dir" && as_dir=.
4522    for ac_exec_ext in '' $ac_executable_extensions; do
4523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526    break 2
4527  fi
4528done
4529  done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534AR=$ac_cv_prog_AR
4535if test -n "$AR"; then
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4537$as_echo "$AR" >&6; }
4538else
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544    test -n "$AR" && break
4545  done
4546fi
4547if test -z "$AR"; then
4548  ac_ct_AR=$AR
4549  for ac_prog in ar lib "link -lib"
4550do
4551  # Extract the first word of "$ac_prog", so it can be a program name with args.
4552set dummy $ac_prog; ac_word=$2
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
4555if ${ac_cv_prog_ac_ct_AR+:} false; then :
4556  $as_echo_n "(cached) " >&6
4557else
4558  if test -n "$ac_ct_AR"; then
4559  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564  IFS=$as_save_IFS
4565  test -z "$as_dir" && as_dir=.
4566    for ac_exec_ext in '' $ac_executable_extensions; do
4567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568    ac_cv_prog_ac_ct_AR="$ac_prog"
4569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570    break 2
4571  fi
4572done
4573  done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578ac_ct_AR=$ac_cv_prog_ac_ct_AR
4579if test -n "$ac_ct_AR"; then
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4581$as_echo "$ac_ct_AR" >&6; }
4582else
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587
4588  test -n "$ac_ct_AR" && break
4589done
4590
4591  if test "x$ac_ct_AR" = x; then
4592    AR="false"
4593  else
4594    case $cross_compiling:$ac_tool_warned in
4595yes:)
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598ac_tool_warned=yes ;;
4599esac
4600    AR=$ac_ct_AR
4601  fi
4602fi
4603
4604: ${AR=ar}
4605
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4607$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4608if ${am_cv_ar_interface+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  ac_ext=c
4612ac_cpp='$CPP $CPPFLAGS'
4613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
4617   am_cv_ar_interface=ar
4618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h.  */
4620int some_variable = 0;
4621_ACEOF
4622if ac_fn_c_try_compile "$LINENO"; then :
4623  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4624      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4625  (eval $am_ar_try) 2>&5
4626  ac_status=$?
4627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628  test $ac_status = 0; }
4629      if test "$ac_status" -eq 0; then
4630        am_cv_ar_interface=ar
4631      else
4632        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4633        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4634  (eval $am_ar_try) 2>&5
4635  ac_status=$?
4636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637  test $ac_status = 0; }
4638        if test "$ac_status" -eq 0; then
4639          am_cv_ar_interface=lib
4640        else
4641          am_cv_ar_interface=unknown
4642        fi
4643      fi
4644      rm -f conftest.lib libconftest.a
4645
4646fi
4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648   ac_ext=c
4649ac_cpp='$CPP $CPPFLAGS'
4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4656$as_echo "$am_cv_ar_interface" >&6; }
4657
4658case $am_cv_ar_interface in
4659ar)
4660  ;;
4661lib)
4662  # Microsoft lib, so override with the ar-lib wrapper script.
4663  # FIXME: It is wrong to rewrite AR.
4664  # But if we don't then we get into trouble of one sort or another.
4665  # A longer-term fix would be to have automake use am__AR in this case,
4666  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4667  # similar.
4668  AR="$am_aux_dir/ar-lib $AR"
4669  ;;
4670unknown)
4671  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4672  ;;
4673esac
4674
4675# autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR.
4676case `pwd` in
4677  *\ * | *\	*)
4678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4679$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4680esac
4681
4682
4683
4684macro_version='2.4.6'
4685macro_revision='2.4.6'
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699ltmain=$ac_aux_dir/ltmain.sh
4700
4701# Backslashify metacharacters that are still active within
4702# double-quoted strings.
4703sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4704
4705# Same as above, but do not quote variable references.
4706double_quote_subst='s/\(["`\\]\)/\\\1/g'
4707
4708# Sed substitution to delay expansion of an escaped shell variable in a
4709# double_quote_subst'ed string.
4710delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4711
4712# Sed substitution to delay expansion of an escaped single quote.
4713delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4714
4715# Sed substitution to avoid accidental globbing in evaled expressions
4716no_glob_subst='s/\*/\\\*/g'
4717
4718ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4719ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4720ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4723$as_echo_n "checking how to print strings... " >&6; }
4724# Test print first, because it will be a builtin if present.
4725if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4726   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4727  ECHO='print -r --'
4728elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4729  ECHO='printf %s\n'
4730else
4731  # Use this function as a fallback that always works.
4732  func_fallback_echo ()
4733  {
4734    eval 'cat <<_LTECHO_EOF
4735$1
4736_LTECHO_EOF'
4737  }
4738  ECHO='func_fallback_echo'
4739fi
4740
4741# func_echo_all arg...
4742# Invoke $ECHO with all args, space-separated.
4743func_echo_all ()
4744{
4745    $ECHO ""
4746}
4747
4748case $ECHO in
4749  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4750$as_echo "printf" >&6; } ;;
4751  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4752$as_echo "print -r" >&6; } ;;
4753  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4754$as_echo "cat" >&6; } ;;
4755esac
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4771$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4772if ${ac_cv_path_SED+:} false; then :
4773  $as_echo_n "(cached) " >&6
4774else
4775            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4776     for ac_i in 1 2 3 4 5 6 7; do
4777       ac_script="$ac_script$as_nl$ac_script"
4778     done
4779     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4780     { ac_script=; unset ac_script;}
4781     if test -z "$SED"; then
4782  ac_path_SED_found=false
4783  # Loop through the user's path and test for each of PROGNAME-LIST
4784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789    for ac_prog in sed gsed; do
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4792      as_fn_executable_p "$ac_path_SED" || continue
4793# Check for GNU ac_path_SED and select it if it is found.
4794  # Check for GNU $ac_path_SED
4795case `"$ac_path_SED" --version 2>&1` in
4796*GNU*)
4797  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4798*)
4799  ac_count=0
4800  $as_echo_n 0123456789 >"conftest.in"
4801  while :
4802  do
4803    cat "conftest.in" "conftest.in" >"conftest.tmp"
4804    mv "conftest.tmp" "conftest.in"
4805    cp "conftest.in" "conftest.nl"
4806    $as_echo '' >> "conftest.nl"
4807    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809    as_fn_arith $ac_count + 1 && ac_count=$as_val
4810    if test $ac_count -gt ${ac_path_SED_max-0}; then
4811      # Best one so far, save it but keep looking for a better one
4812      ac_cv_path_SED="$ac_path_SED"
4813      ac_path_SED_max=$ac_count
4814    fi
4815    # 10*(2^10) chars as input seems more than enough
4816    test $ac_count -gt 10 && break
4817  done
4818  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819esac
4820
4821      $ac_path_SED_found && break 3
4822    done
4823  done
4824  done
4825IFS=$as_save_IFS
4826  if test -z "$ac_cv_path_SED"; then
4827    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4828  fi
4829else
4830  ac_cv_path_SED=$SED
4831fi
4832
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4835$as_echo "$ac_cv_path_SED" >&6; }
4836 SED="$ac_cv_path_SED"
4837  rm -f conftest.sed
4838
4839test -z "$SED" && SED=sed
4840Xsed="$SED -e 1s/^X//"
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4853$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4854if ${ac_cv_path_GREP+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  if test -z "$GREP"; then
4858  ac_path_GREP_found=false
4859  # Loop through the user's path and test for each of PROGNAME-LIST
4860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865    for ac_prog in grep ggrep; do
4866    for ac_exec_ext in '' $ac_executable_extensions; do
4867      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4868      as_fn_executable_p "$ac_path_GREP" || continue
4869# Check for GNU ac_path_GREP and select it if it is found.
4870  # Check for GNU $ac_path_GREP
4871case `"$ac_path_GREP" --version 2>&1` in
4872*GNU*)
4873  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4874*)
4875  ac_count=0
4876  $as_echo_n 0123456789 >"conftest.in"
4877  while :
4878  do
4879    cat "conftest.in" "conftest.in" >"conftest.tmp"
4880    mv "conftest.tmp" "conftest.in"
4881    cp "conftest.in" "conftest.nl"
4882    $as_echo 'GREP' >> "conftest.nl"
4883    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885    as_fn_arith $ac_count + 1 && ac_count=$as_val
4886    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4887      # Best one so far, save it but keep looking for a better one
4888      ac_cv_path_GREP="$ac_path_GREP"
4889      ac_path_GREP_max=$ac_count
4890    fi
4891    # 10*(2^10) chars as input seems more than enough
4892    test $ac_count -gt 10 && break
4893  done
4894  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895esac
4896
4897      $ac_path_GREP_found && break 3
4898    done
4899  done
4900  done
4901IFS=$as_save_IFS
4902  if test -z "$ac_cv_path_GREP"; then
4903    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904  fi
4905else
4906  ac_cv_path_GREP=$GREP
4907fi
4908
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4911$as_echo "$ac_cv_path_GREP" >&6; }
4912 GREP="$ac_cv_path_GREP"
4913
4914
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4916$as_echo_n "checking for egrep... " >&6; }
4917if ${ac_cv_path_EGREP+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4921   then ac_cv_path_EGREP="$GREP -E"
4922   else
4923     if test -z "$EGREP"; then
4924  ac_path_EGREP_found=false
4925  # Loop through the user's path and test for each of PROGNAME-LIST
4926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928do
4929  IFS=$as_save_IFS
4930  test -z "$as_dir" && as_dir=.
4931    for ac_prog in egrep; do
4932    for ac_exec_ext in '' $ac_executable_extensions; do
4933      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4934      as_fn_executable_p "$ac_path_EGREP" || continue
4935# Check for GNU ac_path_EGREP and select it if it is found.
4936  # Check for GNU $ac_path_EGREP
4937case `"$ac_path_EGREP" --version 2>&1` in
4938*GNU*)
4939  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4940*)
4941  ac_count=0
4942  $as_echo_n 0123456789 >"conftest.in"
4943  while :
4944  do
4945    cat "conftest.in" "conftest.in" >"conftest.tmp"
4946    mv "conftest.tmp" "conftest.in"
4947    cp "conftest.in" "conftest.nl"
4948    $as_echo 'EGREP' >> "conftest.nl"
4949    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951    as_fn_arith $ac_count + 1 && ac_count=$as_val
4952    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4953      # Best one so far, save it but keep looking for a better one
4954      ac_cv_path_EGREP="$ac_path_EGREP"
4955      ac_path_EGREP_max=$ac_count
4956    fi
4957    # 10*(2^10) chars as input seems more than enough
4958    test $ac_count -gt 10 && break
4959  done
4960  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961esac
4962
4963      $ac_path_EGREP_found && break 3
4964    done
4965  done
4966  done
4967IFS=$as_save_IFS
4968  if test -z "$ac_cv_path_EGREP"; then
4969    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970  fi
4971else
4972  ac_cv_path_EGREP=$EGREP
4973fi
4974
4975   fi
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4978$as_echo "$ac_cv_path_EGREP" >&6; }
4979 EGREP="$ac_cv_path_EGREP"
4980
4981
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4983$as_echo_n "checking for fgrep... " >&6; }
4984if ${ac_cv_path_FGREP+:} false; then :
4985  $as_echo_n "(cached) " >&6
4986else
4987  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4988   then ac_cv_path_FGREP="$GREP -F"
4989   else
4990     if test -z "$FGREP"; then
4991  ac_path_FGREP_found=false
4992  # Loop through the user's path and test for each of PROGNAME-LIST
4993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_prog in fgrep; do
4999    for ac_exec_ext in '' $ac_executable_extensions; do
5000      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5001      as_fn_executable_p "$ac_path_FGREP" || continue
5002# Check for GNU ac_path_FGREP and select it if it is found.
5003  # Check for GNU $ac_path_FGREP
5004case `"$ac_path_FGREP" --version 2>&1` in
5005*GNU*)
5006  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5007*)
5008  ac_count=0
5009  $as_echo_n 0123456789 >"conftest.in"
5010  while :
5011  do
5012    cat "conftest.in" "conftest.in" >"conftest.tmp"
5013    mv "conftest.tmp" "conftest.in"
5014    cp "conftest.in" "conftest.nl"
5015    $as_echo 'FGREP' >> "conftest.nl"
5016    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018    as_fn_arith $ac_count + 1 && ac_count=$as_val
5019    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5020      # Best one so far, save it but keep looking for a better one
5021      ac_cv_path_FGREP="$ac_path_FGREP"
5022      ac_path_FGREP_max=$ac_count
5023    fi
5024    # 10*(2^10) chars as input seems more than enough
5025    test $ac_count -gt 10 && break
5026  done
5027  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028esac
5029
5030      $ac_path_FGREP_found && break 3
5031    done
5032  done
5033  done
5034IFS=$as_save_IFS
5035  if test -z "$ac_cv_path_FGREP"; then
5036    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037  fi
5038else
5039  ac_cv_path_FGREP=$FGREP
5040fi
5041
5042   fi
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5045$as_echo "$ac_cv_path_FGREP" >&6; }
5046 FGREP="$ac_cv_path_FGREP"
5047
5048
5049test -z "$GREP" && GREP=grep
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069# Check whether --with-gnu-ld was given.
5070if test "${with_gnu_ld+set}" = set; then :
5071  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5072else
5073  with_gnu_ld=no
5074fi
5075
5076ac_prog=ld
5077if test yes = "$GCC"; then
5078  # Check if gcc -print-prog-name=ld gives a path.
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5080$as_echo_n "checking for ld used by $CC... " >&6; }
5081  case $host in
5082  *-*-mingw*)
5083    # gcc leaves a trailing carriage return, which upsets mingw
5084    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5085  *)
5086    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5087  esac
5088  case $ac_prog in
5089    # Accept absolute paths.
5090    [\\/]* | ?:[\\/]*)
5091      re_direlt='/[^/][^/]*/\.\./'
5092      # Canonicalize the pathname of ld
5093      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5094      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5095	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5096      done
5097      test -z "$LD" && LD=$ac_prog
5098      ;;
5099  "")
5100    # If it fails, then pretend we aren't using GCC.
5101    ac_prog=ld
5102    ;;
5103  *)
5104    # If it is relative, then search for the first ld in PATH.
5105    with_gnu_ld=unknown
5106    ;;
5107  esac
5108elif test yes = "$with_gnu_ld"; then
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5110$as_echo_n "checking for GNU ld... " >&6; }
5111else
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5113$as_echo_n "checking for non-GNU ld... " >&6; }
5114fi
5115if ${lt_cv_path_LD+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  if test -z "$LD"; then
5119  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5120  for ac_dir in $PATH; do
5121    IFS=$lt_save_ifs
5122    test -z "$ac_dir" && ac_dir=.
5123    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5124      lt_cv_path_LD=$ac_dir/$ac_prog
5125      # Check to see if the program is GNU ld.  I'd rather use --version,
5126      # but apparently some variants of GNU ld only accept -v.
5127      # Break only if it was the GNU/non-GNU ld that we prefer.
5128      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5129      *GNU* | *'with BFD'*)
5130	test no != "$with_gnu_ld" && break
5131	;;
5132      *)
5133	test yes != "$with_gnu_ld" && break
5134	;;
5135      esac
5136    fi
5137  done
5138  IFS=$lt_save_ifs
5139else
5140  lt_cv_path_LD=$LD # Let the user override the test with a path.
5141fi
5142fi
5143
5144LD=$lt_cv_path_LD
5145if test -n "$LD"; then
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5147$as_echo "$LD" >&6; }
5148else
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5154$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5155if ${lt_cv_prog_gnu_ld+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5159case `$LD -v 2>&1 </dev/null` in
5160*GNU* | *'with BFD'*)
5161  lt_cv_prog_gnu_ld=yes
5162  ;;
5163*)
5164  lt_cv_prog_gnu_ld=no
5165  ;;
5166esac
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5169$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5170with_gnu_ld=$lt_cv_prog_gnu_ld
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5181$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5182if ${lt_cv_path_NM+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$NM"; then
5186  # Let the user override the test.
5187  lt_cv_path_NM=$NM
5188else
5189  lt_nm_to_check=${ac_tool_prefix}nm
5190  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5191    lt_nm_to_check="$lt_nm_to_check nm"
5192  fi
5193  for lt_tmp_nm in $lt_nm_to_check; do
5194    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5195    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5196      IFS=$lt_save_ifs
5197      test -z "$ac_dir" && ac_dir=.
5198      tmp_nm=$ac_dir/$lt_tmp_nm
5199      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5200	# Check to see if the nm accepts a BSD-compat flag.
5201	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5202	#   nm: unknown option "B" ignored
5203	# Tru64's nm complains that /dev/null is an invalid object file
5204	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5205	case $build_os in
5206	mingw*) lt_bad_file=conftest.nm/nofile ;;
5207	*) lt_bad_file=/dev/null ;;
5208	esac
5209	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5210	*$lt_bad_file* | *'Invalid file or object type'*)
5211	  lt_cv_path_NM="$tmp_nm -B"
5212	  break 2
5213	  ;;
5214	*)
5215	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5216	  */dev/null*)
5217	    lt_cv_path_NM="$tmp_nm -p"
5218	    break 2
5219	    ;;
5220	  *)
5221	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5222	    continue # so that we can try to find one that supports BSD flags
5223	    ;;
5224	  esac
5225	  ;;
5226	esac
5227      fi
5228    done
5229    IFS=$lt_save_ifs
5230  done
5231  : ${lt_cv_path_NM=no}
5232fi
5233fi
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5235$as_echo "$lt_cv_path_NM" >&6; }
5236if test no != "$lt_cv_path_NM"; then
5237  NM=$lt_cv_path_NM
5238else
5239  # Didn't find any BSD compatible name lister, look for dumpbin.
5240  if test -n "$DUMPBIN"; then :
5241    # Let the user override the test.
5242  else
5243    if test -n "$ac_tool_prefix"; then
5244  for ac_prog in dumpbin "link -dump"
5245  do
5246    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if ${ac_cv_prog_DUMPBIN+:} false; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  if test -n "$DUMPBIN"; then
5254  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259  IFS=$as_save_IFS
5260  test -z "$as_dir" && as_dir=.
5261    for ac_exec_ext in '' $ac_executable_extensions; do
5262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265    break 2
5266  fi
5267done
5268  done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273DUMPBIN=$ac_cv_prog_DUMPBIN
5274if test -n "$DUMPBIN"; then
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5276$as_echo "$DUMPBIN" >&6; }
5277else
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282
5283    test -n "$DUMPBIN" && break
5284  done
5285fi
5286if test -z "$DUMPBIN"; then
5287  ac_ct_DUMPBIN=$DUMPBIN
5288  for ac_prog in dumpbin "link -dump"
5289do
5290  # Extract the first word of "$ac_prog", so it can be a program name with args.
5291set dummy $ac_prog; ac_word=$2
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293$as_echo_n "checking for $ac_word... " >&6; }
5294if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5295  $as_echo_n "(cached) " >&6
5296else
5297  if test -n "$ac_ct_DUMPBIN"; then
5298  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5299else
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303  IFS=$as_save_IFS
5304  test -z "$as_dir" && as_dir=.
5305    for ac_exec_ext in '' $ac_executable_extensions; do
5306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309    break 2
5310  fi
5311done
5312  done
5313IFS=$as_save_IFS
5314
5315fi
5316fi
5317ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5318if test -n "$ac_ct_DUMPBIN"; then
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5320$as_echo "$ac_ct_DUMPBIN" >&6; }
5321else
5322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324fi
5325
5326
5327  test -n "$ac_ct_DUMPBIN" && break
5328done
5329
5330  if test "x$ac_ct_DUMPBIN" = x; then
5331    DUMPBIN=":"
5332  else
5333    case $cross_compiling:$ac_tool_warned in
5334yes:)
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337ac_tool_warned=yes ;;
5338esac
5339    DUMPBIN=$ac_ct_DUMPBIN
5340  fi
5341fi
5342
5343    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5344    *COFF*)
5345      DUMPBIN="$DUMPBIN -symbols -headers"
5346      ;;
5347    *)
5348      DUMPBIN=:
5349      ;;
5350    esac
5351  fi
5352
5353  if test : != "$DUMPBIN"; then
5354    NM=$DUMPBIN
5355  fi
5356fi
5357test -z "$NM" && NM=nm
5358
5359
5360
5361
5362
5363
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5365$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5366if ${lt_cv_nm_interface+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  lt_cv_nm_interface="BSD nm"
5370  echo "int some_variable = 0;" > conftest.$ac_ext
5371  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5372  (eval "$ac_compile" 2>conftest.err)
5373  cat conftest.err >&5
5374  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5375  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5376  cat conftest.err >&5
5377  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5378  cat conftest.out >&5
5379  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5380    lt_cv_nm_interface="MS dumpbin"
5381  fi
5382  rm -f conftest*
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5385$as_echo "$lt_cv_nm_interface" >&6; }
5386
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5388$as_echo_n "checking whether ln -s works... " >&6; }
5389LN_S=$as_ln_s
5390if test "$LN_S" = "ln -s"; then
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392$as_echo "yes" >&6; }
5393else
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5395$as_echo "no, using $LN_S" >&6; }
5396fi
5397
5398# find the maximum length of command line arguments
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5400$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5401if ${lt_cv_sys_max_cmd_len+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404    i=0
5405  teststring=ABCD
5406
5407  case $build_os in
5408  msdosdjgpp*)
5409    # On DJGPP, this test can blow up pretty badly due to problems in libc
5410    # (any single argument exceeding 2000 bytes causes a buffer overrun
5411    # during glob expansion).  Even if it were fixed, the result of this
5412    # check would be larger than it should be.
5413    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5414    ;;
5415
5416  gnu*)
5417    # Under GNU Hurd, this test is not required because there is
5418    # no limit to the length of command line arguments.
5419    # Libtool will interpret -1 as no limit whatsoever
5420    lt_cv_sys_max_cmd_len=-1;
5421    ;;
5422
5423  cygwin* | mingw* | cegcc*)
5424    # On Win9x/ME, this test blows up -- it succeeds, but takes
5425    # about 5 minutes as the teststring grows exponentially.
5426    # Worse, since 9x/ME are not pre-emptively multitasking,
5427    # you end up with a "frozen" computer, even though with patience
5428    # the test eventually succeeds (with a max line length of 256k).
5429    # Instead, let's just punt: use the minimum linelength reported by
5430    # all of the supported platforms: 8192 (on NT/2K/XP).
5431    lt_cv_sys_max_cmd_len=8192;
5432    ;;
5433
5434  mint*)
5435    # On MiNT this can take a long time and run out of memory.
5436    lt_cv_sys_max_cmd_len=8192;
5437    ;;
5438
5439  amigaos*)
5440    # On AmigaOS with pdksh, this test takes hours, literally.
5441    # So we just punt and use a minimum line length of 8192.
5442    lt_cv_sys_max_cmd_len=8192;
5443    ;;
5444
5445  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5446    # This has been around since 386BSD, at least.  Likely further.
5447    if test -x /sbin/sysctl; then
5448      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5449    elif test -x /usr/sbin/sysctl; then
5450      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5451    else
5452      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5453    fi
5454    # And add a safety zone
5455    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5456    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5457    ;;
5458
5459  interix*)
5460    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5461    lt_cv_sys_max_cmd_len=196608
5462    ;;
5463
5464  os2*)
5465    # The test takes a long time on OS/2.
5466    lt_cv_sys_max_cmd_len=8192
5467    ;;
5468
5469  osf*)
5470    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5471    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5472    # nice to cause kernel panics so lets avoid the loop below.
5473    # First set a reasonable default.
5474    lt_cv_sys_max_cmd_len=16384
5475    #
5476    if test -x /sbin/sysconfig; then
5477      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5478        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5479      esac
5480    fi
5481    ;;
5482  sco3.2v5*)
5483    lt_cv_sys_max_cmd_len=102400
5484    ;;
5485  sysv5* | sco5v6* | sysv4.2uw2*)
5486    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5487    if test -n "$kargmax"; then
5488      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5489    else
5490      lt_cv_sys_max_cmd_len=32768
5491    fi
5492    ;;
5493  *)
5494    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5495    if test -n "$lt_cv_sys_max_cmd_len" && \
5496       test undefined != "$lt_cv_sys_max_cmd_len"; then
5497      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5498      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5499    else
5500      # Make teststring a little bigger before we do anything with it.
5501      # a 1K string should be a reasonable start.
5502      for i in 1 2 3 4 5 6 7 8; do
5503        teststring=$teststring$teststring
5504      done
5505      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5506      # If test is not a shell built-in, we'll probably end up computing a
5507      # maximum length that is only half of the actual maximum length, but
5508      # we can't tell.
5509      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5510	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5511	      test 17 != "$i" # 1/2 MB should be enough
5512      do
5513        i=`expr $i + 1`
5514        teststring=$teststring$teststring
5515      done
5516      # Only check the string length outside the loop.
5517      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5518      teststring=
5519      # Add a significant safety factor because C++ compilers can tack on
5520      # massive amounts of additional arguments before passing them to the
5521      # linker.  It appears as though 1/2 is a usable value.
5522      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5523    fi
5524    ;;
5525  esac
5526
5527fi
5528
5529if test -n "$lt_cv_sys_max_cmd_len"; then
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5531$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5532else
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5534$as_echo "none" >&6; }
5535fi
5536max_cmd_len=$lt_cv_sys_max_cmd_len
5537
5538
5539
5540
5541
5542
5543: ${CP="cp -f"}
5544: ${MV="mv -f"}
5545: ${RM="rm -f"}
5546
5547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5548  lt_unset=unset
5549else
5550  lt_unset=false
5551fi
5552
5553
5554
5555
5556
5557# test EBCDIC or ASCII
5558case `echo X|tr X '\101'` in
5559 A) # ASCII based system
5560    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5561  lt_SP2NL='tr \040 \012'
5562  lt_NL2SP='tr \015\012 \040\040'
5563  ;;
5564 *) # EBCDIC based system
5565  lt_SP2NL='tr \100 \n'
5566  lt_NL2SP='tr \r\n \100\100'
5567  ;;
5568esac
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5579$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5580if ${lt_cv_to_host_file_cmd+:} false; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  case $host in
5584  *-*-mingw* )
5585    case $build in
5586      *-*-mingw* ) # actually msys
5587        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5588        ;;
5589      *-*-cygwin* )
5590        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5591        ;;
5592      * ) # otherwise, assume *nix
5593        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5594        ;;
5595    esac
5596    ;;
5597  *-*-cygwin* )
5598    case $build in
5599      *-*-mingw* ) # actually msys
5600        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5601        ;;
5602      *-*-cygwin* )
5603        lt_cv_to_host_file_cmd=func_convert_file_noop
5604        ;;
5605      * ) # otherwise, assume *nix
5606        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5607        ;;
5608    esac
5609    ;;
5610  * ) # unhandled hosts (and "normal" native builds)
5611    lt_cv_to_host_file_cmd=func_convert_file_noop
5612    ;;
5613esac
5614
5615fi
5616
5617to_host_file_cmd=$lt_cv_to_host_file_cmd
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5619$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5620
5621
5622
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5626$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5627if ${lt_cv_to_tool_file_cmd+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  #assume ordinary cross tools, or native build.
5631lt_cv_to_tool_file_cmd=func_convert_file_noop
5632case $host in
5633  *-*-mingw* )
5634    case $build in
5635      *-*-mingw* ) # actually msys
5636        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5637        ;;
5638    esac
5639    ;;
5640esac
5641
5642fi
5643
5644to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5646$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5647
5648
5649
5650
5651
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5653$as_echo_n "checking for $LD option to reload object files... " >&6; }
5654if ${lt_cv_ld_reload_flag+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  lt_cv_ld_reload_flag='-r'
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5660$as_echo "$lt_cv_ld_reload_flag" >&6; }
5661reload_flag=$lt_cv_ld_reload_flag
5662case $reload_flag in
5663"" | " "*) ;;
5664*) reload_flag=" $reload_flag" ;;
5665esac
5666reload_cmds='$LD$reload_flag -o $output$reload_objs'
5667case $host_os in
5668  cygwin* | mingw* | pw32* | cegcc*)
5669    if test yes != "$GCC"; then
5670      reload_cmds=false
5671    fi
5672    ;;
5673  darwin*)
5674    if test yes = "$GCC"; then
5675      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5676    else
5677      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5678    fi
5679    ;;
5680esac
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690if test -n "$ac_tool_prefix"; then
5691  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5692set dummy ${ac_tool_prefix}objdump; ac_word=$2
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694$as_echo_n "checking for $ac_word... " >&6; }
5695if ${ac_cv_prog_OBJDUMP+:} false; then :
5696  $as_echo_n "(cached) " >&6
5697else
5698  if test -n "$OBJDUMP"; then
5699  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5700else
5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704  IFS=$as_save_IFS
5705  test -z "$as_dir" && as_dir=.
5706    for ac_exec_ext in '' $ac_executable_extensions; do
5707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710    break 2
5711  fi
5712done
5713  done
5714IFS=$as_save_IFS
5715
5716fi
5717fi
5718OBJDUMP=$ac_cv_prog_OBJDUMP
5719if test -n "$OBJDUMP"; then
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5721$as_echo "$OBJDUMP" >&6; }
5722else
5723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724$as_echo "no" >&6; }
5725fi
5726
5727
5728fi
5729if test -z "$ac_cv_prog_OBJDUMP"; then
5730  ac_ct_OBJDUMP=$OBJDUMP
5731  # Extract the first word of "objdump", so it can be a program name with args.
5732set dummy objdump; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
5735if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  if test -n "$ac_ct_OBJDUMP"; then
5739  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744  IFS=$as_save_IFS
5745  test -z "$as_dir" && as_dir=.
5746    for ac_exec_ext in '' $ac_executable_extensions; do
5747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753  done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5759if test -n "$ac_ct_OBJDUMP"; then
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5761$as_echo "$ac_ct_OBJDUMP" >&6; }
5762else
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767  if test "x$ac_ct_OBJDUMP" = x; then
5768    OBJDUMP="false"
5769  else
5770    case $cross_compiling:$ac_tool_warned in
5771yes:)
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774ac_tool_warned=yes ;;
5775esac
5776    OBJDUMP=$ac_ct_OBJDUMP
5777  fi
5778else
5779  OBJDUMP="$ac_cv_prog_OBJDUMP"
5780fi
5781
5782test -z "$OBJDUMP" && OBJDUMP=objdump
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5793$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5794if ${lt_cv_deplibs_check_method+:} false; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  lt_cv_file_magic_cmd='$MAGIC_CMD'
5798lt_cv_file_magic_test_file=
5799lt_cv_deplibs_check_method='unknown'
5800# Need to set the preceding variable on all platforms that support
5801# interlibrary dependencies.
5802# 'none' -- dependencies not supported.
5803# 'unknown' -- same as none, but documents that we really don't know.
5804# 'pass_all' -- all dependencies passed with no checks.
5805# 'test_compile' -- check by making test program.
5806# 'file_magic [[regex]]' -- check by looking for files in library path
5807# that responds to the $file_magic_cmd with a given extended regex.
5808# If you have 'file' or equivalent on your system and you're not sure
5809# whether 'pass_all' will *always* work, you probably want this one.
5810
5811case $host_os in
5812aix[4-9]*)
5813  lt_cv_deplibs_check_method=pass_all
5814  ;;
5815
5816beos*)
5817  lt_cv_deplibs_check_method=pass_all
5818  ;;
5819
5820bsdi[45]*)
5821  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5822  lt_cv_file_magic_cmd='/usr/bin/file -L'
5823  lt_cv_file_magic_test_file=/shlib/libc.so
5824  ;;
5825
5826cygwin*)
5827  # func_win32_libid is a shell function defined in ltmain.sh
5828  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5829  lt_cv_file_magic_cmd='func_win32_libid'
5830  ;;
5831
5832mingw* | pw32*)
5833  # Base MSYS/MinGW do not provide the 'file' command needed by
5834  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5835  # unless we find 'file', for example because we are cross-compiling.
5836  if ( file / ) >/dev/null 2>&1; then
5837    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5838    lt_cv_file_magic_cmd='func_win32_libid'
5839  else
5840    # Keep this pattern in sync with the one in func_win32_libid.
5841    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5842    lt_cv_file_magic_cmd='$OBJDUMP -f'
5843  fi
5844  ;;
5845
5846cegcc*)
5847  # use the weaker test based on 'objdump'. See mingw*.
5848  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5849  lt_cv_file_magic_cmd='$OBJDUMP -f'
5850  ;;
5851
5852darwin* | rhapsody*)
5853  lt_cv_deplibs_check_method=pass_all
5854  ;;
5855
5856freebsd* | dragonfly*)
5857  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5858    case $host_cpu in
5859    i*86 )
5860      # Not sure whether the presence of OpenBSD here was a mistake.
5861      # Let's accept both of them until this is cleared up.
5862      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5863      lt_cv_file_magic_cmd=/usr/bin/file
5864      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5865      ;;
5866    esac
5867  else
5868    lt_cv_deplibs_check_method=pass_all
5869  fi
5870  ;;
5871
5872haiku*)
5873  lt_cv_deplibs_check_method=pass_all
5874  ;;
5875
5876hpux10.20* | hpux11*)
5877  lt_cv_file_magic_cmd=/usr/bin/file
5878  case $host_cpu in
5879  ia64*)
5880    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5881    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5882    ;;
5883  hppa*64*)
5884    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]'
5885    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5886    ;;
5887  *)
5888    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5889    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5890    ;;
5891  esac
5892  ;;
5893
5894interix[3-9]*)
5895  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5896  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5897  ;;
5898
5899irix5* | irix6* | nonstopux*)
5900  case $LD in
5901  *-32|*"-32 ") libmagic=32-bit;;
5902  *-n32|*"-n32 ") libmagic=N32;;
5903  *-64|*"-64 ") libmagic=64-bit;;
5904  *) libmagic=never-match;;
5905  esac
5906  lt_cv_deplibs_check_method=pass_all
5907  ;;
5908
5909# This must be glibc/ELF.
5910linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5911  lt_cv_deplibs_check_method=pass_all
5912  ;;
5913
5914netbsd*)
5915  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5916    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5917  else
5918    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5919  fi
5920  ;;
5921
5922newos6*)
5923  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5924  lt_cv_file_magic_cmd=/usr/bin/file
5925  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5926  ;;
5927
5928*nto* | *qnx*)
5929  lt_cv_deplibs_check_method=pass_all
5930  ;;
5931
5932openbsd* | bitrig*)
5933  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5935  else
5936    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5937  fi
5938  ;;
5939
5940osf3* | osf4* | osf5*)
5941  lt_cv_deplibs_check_method=pass_all
5942  ;;
5943
5944rdos*)
5945  lt_cv_deplibs_check_method=pass_all
5946  ;;
5947
5948solaris*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956sysv4 | sysv4.3*)
5957  case $host_vendor in
5958  motorola)
5959    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]'
5960    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5961    ;;
5962  ncr)
5963    lt_cv_deplibs_check_method=pass_all
5964    ;;
5965  sequent)
5966    lt_cv_file_magic_cmd='/bin/file'
5967    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5968    ;;
5969  sni)
5970    lt_cv_file_magic_cmd='/bin/file'
5971    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5972    lt_cv_file_magic_test_file=/lib/libc.so
5973    ;;
5974  siemens)
5975    lt_cv_deplibs_check_method=pass_all
5976    ;;
5977  pc)
5978    lt_cv_deplibs_check_method=pass_all
5979    ;;
5980  esac
5981  ;;
5982
5983tpf*)
5984  lt_cv_deplibs_check_method=pass_all
5985  ;;
5986os2*)
5987  lt_cv_deplibs_check_method=pass_all
5988  ;;
5989esac
5990
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5993$as_echo "$lt_cv_deplibs_check_method" >&6; }
5994
5995file_magic_glob=
5996want_nocaseglob=no
5997if test "$build" = "$host"; then
5998  case $host_os in
5999  mingw* | pw32*)
6000    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6001      want_nocaseglob=yes
6002    else
6003      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6004    fi
6005    ;;
6006  esac
6007fi
6008
6009file_magic_cmd=$lt_cv_file_magic_cmd
6010deplibs_check_method=$lt_cv_deplibs_check_method
6011test -z "$deplibs_check_method" && deplibs_check_method=unknown
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034if test -n "$ac_tool_prefix"; then
6035  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6036set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if ${ac_cv_prog_DLLTOOL+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  if test -n "$DLLTOOL"; then
6043  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057  done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062DLLTOOL=$ac_cv_prog_DLLTOOL
6063if test -n "$DLLTOOL"; then
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6065$as_echo "$DLLTOOL" >&6; }
6066else
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071
6072fi
6073if test -z "$ac_cv_prog_DLLTOOL"; then
6074  ac_ct_DLLTOOL=$DLLTOOL
6075  # Extract the first word of "dlltool", so it can be a program name with args.
6076set dummy dlltool; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  if test -n "$ac_ct_DLLTOOL"; then
6083  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090    for ac_exec_ext in '' $ac_executable_extensions; do
6091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097  done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6103if test -n "$ac_ct_DLLTOOL"; then
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6105$as_echo "$ac_ct_DLLTOOL" >&6; }
6106else
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109fi
6110
6111  if test "x$ac_ct_DLLTOOL" = x; then
6112    DLLTOOL="false"
6113  else
6114    case $cross_compiling:$ac_tool_warned in
6115yes:)
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120    DLLTOOL=$ac_ct_DLLTOOL
6121  fi
6122else
6123  DLLTOOL="$ac_cv_prog_DLLTOOL"
6124fi
6125
6126test -z "$DLLTOOL" && DLLTOOL=dlltool
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6138$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6139if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  lt_cv_sharedlib_from_linklib_cmd='unknown'
6143
6144case $host_os in
6145cygwin* | mingw* | pw32* | cegcc*)
6146  # two different shell functions defined in ltmain.sh;
6147  # decide which one to use based on capabilities of $DLLTOOL
6148  case `$DLLTOOL --help 2>&1` in
6149  *--identify-strict*)
6150    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6151    ;;
6152  *)
6153    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6154    ;;
6155  esac
6156  ;;
6157*)
6158  # fallback: assume linklib IS sharedlib
6159  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6160  ;;
6161esac
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6165$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6166sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6167test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6168
6169
6170
6171
6172
6173
6174
6175if test -n "$ac_tool_prefix"; then
6176  for ac_prog in ar
6177  do
6178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_AR+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$AR"; then
6186  ac_cv_prog_AR="$AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205AR=$ac_cv_prog_AR
6206if test -n "$AR"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6208$as_echo "$AR" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215    test -n "$AR" && break
6216  done
6217fi
6218if test -z "$AR"; then
6219  ac_ct_AR=$AR
6220  for ac_prog in ar
6221do
6222  # Extract the first word of "$ac_prog", so it can be a program name with args.
6223set dummy $ac_prog; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  if test -n "$ac_ct_AR"; then
6230  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239    ac_cv_prog_ac_ct_AR="$ac_prog"
6240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250if test -n "$ac_ct_AR"; then
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252$as_echo "$ac_ct_AR" >&6; }
6253else
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258
6259  test -n "$ac_ct_AR" && break
6260done
6261
6262  if test "x$ac_ct_AR" = x; then
6263    AR="false"
6264  else
6265    case $cross_compiling:$ac_tool_warned in
6266yes:)
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269ac_tool_warned=yes ;;
6270esac
6271    AR=$ac_ct_AR
6272  fi
6273fi
6274
6275: ${AR=ar}
6276: ${AR_FLAGS=cru}
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6289$as_echo_n "checking for archiver @FILE support... " >&6; }
6290if ${lt_cv_ar_at_file+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  lt_cv_ar_at_file=no
6294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h.  */
6296
6297int
6298main ()
6299{
6300
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then :
6306  echo conftest.$ac_objext > conftest.lst
6307      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6308      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6309  (eval $lt_ar_try) 2>&5
6310  ac_status=$?
6311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312  test $ac_status = 0; }
6313      if test 0 -eq "$ac_status"; then
6314	# Ensure the archiver fails upon bogus file names.
6315	rm -f conftest.$ac_objext libconftest.a
6316	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6317  (eval $lt_ar_try) 2>&5
6318  ac_status=$?
6319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320  test $ac_status = 0; }
6321	if test 0 -ne "$ac_status"; then
6322          lt_cv_ar_at_file=@
6323        fi
6324      fi
6325      rm -f conftest.* libconftest.a
6326
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6332$as_echo "$lt_cv_ar_at_file" >&6; }
6333
6334if test no = "$lt_cv_ar_at_file"; then
6335  archiver_list_spec=
6336else
6337  archiver_list_spec=$lt_cv_ar_at_file
6338fi
6339
6340
6341
6342
6343
6344
6345
6346if test -n "$ac_tool_prefix"; then
6347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}strip; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if ${ac_cv_prog_STRIP+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  if test -n "$STRIP"; then
6355  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  test -z "$as_dir" && as_dir=.
6362    for ac_exec_ext in '' $ac_executable_extensions; do
6363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369  done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374STRIP=$ac_cv_prog_STRIP
6375if test -n "$STRIP"; then
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377$as_echo "$STRIP" >&6; }
6378else
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384fi
6385if test -z "$ac_cv_prog_STRIP"; then
6386  ac_ct_STRIP=$STRIP
6387  # Extract the first word of "strip", so it can be a program name with args.
6388set dummy strip; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  if test -n "$ac_ct_STRIP"; then
6395  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400  IFS=$as_save_IFS
6401  test -z "$as_dir" && as_dir=.
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404    ac_cv_prog_ac_ct_STRIP="strip"
6405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406    break 2
6407  fi
6408done
6409  done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415if test -n "$ac_ct_STRIP"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417$as_echo "$ac_ct_STRIP" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423  if test "x$ac_ct_STRIP" = x; then
6424    STRIP=":"
6425  else
6426    case $cross_compiling:$ac_tool_warned in
6427yes:)
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430ac_tool_warned=yes ;;
6431esac
6432    STRIP=$ac_ct_STRIP
6433  fi
6434else
6435  STRIP="$ac_cv_prog_STRIP"
6436fi
6437
6438test -z "$STRIP" && STRIP=:
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_RANLIB+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$RANLIB"; then
6454  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473RANLIB=$ac_cv_prog_RANLIB
6474if test -n "$RANLIB"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476$as_echo "$RANLIB" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_RANLIB"; then
6485  ac_ct_RANLIB=$RANLIB
6486  # Extract the first word of "ranlib", so it can be a program name with args.
6487set dummy ranlib; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  if test -n "$ac_ct_RANLIB"; then
6494  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499  IFS=$as_save_IFS
6500  test -z "$as_dir" && as_dir=.
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503    ac_cv_prog_ac_ct_RANLIB="ranlib"
6504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505    break 2
6506  fi
6507done
6508  done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514if test -n "$ac_ct_RANLIB"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516$as_echo "$ac_ct_RANLIB" >&6; }
6517else
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522  if test "x$ac_ct_RANLIB" = x; then
6523    RANLIB=":"
6524  else
6525    case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531    RANLIB=$ac_ct_RANLIB
6532  fi
6533else
6534  RANLIB="$ac_cv_prog_RANLIB"
6535fi
6536
6537test -z "$RANLIB" && RANLIB=:
6538
6539
6540
6541
6542
6543
6544# Determine commands to create old-style static archives.
6545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6546old_postinstall_cmds='chmod 644 $oldlib'
6547old_postuninstall_cmds=
6548
6549if test -n "$RANLIB"; then
6550  case $host_os in
6551  bitrig* | openbsd*)
6552    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6553    ;;
6554  *)
6555    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6556    ;;
6557  esac
6558  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6559fi
6560
6561case $host_os in
6562  darwin*)
6563    lock_old_archive_extraction=yes ;;
6564  *)
6565    lock_old_archive_extraction=no ;;
6566esac
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
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# If no C compiler was specified, use CC.
6607LTCC=${LTCC-"$CC"}
6608
6609# If no C compiler flags were specified, use CFLAGS.
6610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6611
6612# Allow CC to be a program name with arguments.
6613compiler=$CC
6614
6615
6616# Check for command to grab the raw symbol name followed by C symbol from nm.
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6618$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6619if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622
6623# These are sane defaults that work on at least a few old systems.
6624# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6625
6626# Character class describing NM global symbol codes.
6627symcode='[BCDEGRST]'
6628
6629# Regexp to match symbols that can be accessed directly from C.
6630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6631
6632# Define system-specific variables.
6633case $host_os in
6634aix*)
6635  symcode='[BCDT]'
6636  ;;
6637cygwin* | mingw* | pw32* | cegcc*)
6638  symcode='[ABCDGISTW]'
6639  ;;
6640hpux*)
6641  if test ia64 = "$host_cpu"; then
6642    symcode='[ABCDEGRST]'
6643  fi
6644  ;;
6645irix* | nonstopux*)
6646  symcode='[BCDEGRST]'
6647  ;;
6648osf*)
6649  symcode='[BCDEGQRST]'
6650  ;;
6651solaris*)
6652  symcode='[BDRT]'
6653  ;;
6654sco3.2v5*)
6655  symcode='[DT]'
6656  ;;
6657sysv4.2uw2*)
6658  symcode='[DT]'
6659  ;;
6660sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661  symcode='[ABDT]'
6662  ;;
6663sysv4)
6664  symcode='[DFNSTU]'
6665  ;;
6666esac
6667
6668# If we're using GNU nm, then use its standard symbol codes.
6669case `$NM -V 2>&1` in
6670*GNU* | *'with BFD'*)
6671  symcode='[ABCDGIRSTW]' ;;
6672esac
6673
6674if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6675  # Gets list of data symbols to import.
6676  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6677  # Adjust the below global symbol transforms to fixup imported variables.
6678  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6679  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6680  lt_c_name_lib_hook="\
6681  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6682  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6683else
6684  # Disable hooks by default.
6685  lt_cv_sys_global_symbol_to_import=
6686  lt_cdecl_hook=
6687  lt_c_name_hook=
6688  lt_c_name_lib_hook=
6689fi
6690
6691# Transform an extracted symbol line into a proper C declaration.
6692# Some systems (esp. on ia64) link data and code symbols differently,
6693# so use this general approach.
6694lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6695$lt_cdecl_hook\
6696" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6697" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6698
6699# Transform an extracted symbol line into symbol name and symbol address
6700lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6701$lt_c_name_hook\
6702" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6703" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6704
6705# Transform an extracted symbol line into symbol name with lib prefix and
6706# symbol address.
6707lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6708$lt_c_name_lib_hook\
6709" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6710" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6711" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6712
6713# Handle CRLF in mingw tool chain
6714opt_cr=
6715case $build_os in
6716mingw*)
6717  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6718  ;;
6719esac
6720
6721# Try without a prefix underscore, then with it.
6722for ac_symprfx in "" "_"; do
6723
6724  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6725  symxfrm="\\1 $ac_symprfx\\2 \\2"
6726
6727  # Write the raw and C identifiers.
6728  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6729    # Fake it for dumpbin and say T for any non-static function,
6730    # D for any global variable and I for any imported variable.
6731    # Also find C++ and __fastcall symbols from MSVC++,
6732    # which start with @ or ?.
6733    lt_cv_sys_global_symbol_pipe="$AWK '"\
6734"     {last_section=section; section=\$ 3};"\
6735"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6736"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6737"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6738"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6739"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6740"     \$ 0!~/External *\|/{next};"\
6741"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6742"     {if(hide[section]) next};"\
6743"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6744"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6745"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6746"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6747"     ' prfx=^$ac_symprfx"
6748  else
6749    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6750  fi
6751  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6752
6753  # Check to see that the pipe works correctly.
6754  pipe_works=no
6755
6756  rm -f conftest*
6757  cat > conftest.$ac_ext <<_LT_EOF
6758#ifdef __cplusplus
6759extern "C" {
6760#endif
6761char nm_test_var;
6762void nm_test_func(void);
6763void nm_test_func(void){}
6764#ifdef __cplusplus
6765}
6766#endif
6767int main(){nm_test_var='a';nm_test_func();return(0);}
6768_LT_EOF
6769
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    # Now try to grab the symbols.
6776    nlist=conftest.nm
6777    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6778  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6779  ac_status=$?
6780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781  test $ac_status = 0; } && test -s "$nlist"; then
6782      # Try sorting and uniquifying the output.
6783      if sort "$nlist" | uniq > "$nlist"T; then
6784	mv -f "$nlist"T "$nlist"
6785      else
6786	rm -f "$nlist"T
6787      fi
6788
6789      # Make sure that we snagged all the symbols we need.
6790      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6791	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6792	  cat <<_LT_EOF > conftest.$ac_ext
6793/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6794#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6795/* DATA imports from DLLs on WIN32 can't be const, because runtime
6796   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6797# define LT_DLSYM_CONST
6798#elif defined __osf__
6799/* This system does not cope well with relocations in const data.  */
6800# define LT_DLSYM_CONST
6801#else
6802# define LT_DLSYM_CONST const
6803#endif
6804
6805#ifdef __cplusplus
6806extern "C" {
6807#endif
6808
6809_LT_EOF
6810	  # Now generate the symbol file.
6811	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6812
6813	  cat <<_LT_EOF >> conftest.$ac_ext
6814
6815/* The mapping between symbol names and symbols.  */
6816LT_DLSYM_CONST struct {
6817  const char *name;
6818  void       *address;
6819}
6820lt__PROGRAM__LTX_preloaded_symbols[] =
6821{
6822  { "@PROGRAM@", (void *) 0 },
6823_LT_EOF
6824	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6825	  cat <<\_LT_EOF >> conftest.$ac_ext
6826  {0, (void *) 0}
6827};
6828
6829/* This works around a problem in FreeBSD linker */
6830#ifdef FREEBSD_WORKAROUND
6831static const void *lt_preloaded_setup() {
6832  return lt__PROGRAM__LTX_preloaded_symbols;
6833}
6834#endif
6835
6836#ifdef __cplusplus
6837}
6838#endif
6839_LT_EOF
6840	  # Now try linking the two files.
6841	  mv conftest.$ac_objext conftstm.$ac_objext
6842	  lt_globsym_save_LIBS=$LIBS
6843	  lt_globsym_save_CFLAGS=$CFLAGS
6844	  LIBS=conftstm.$ac_objext
6845	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6846	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6847  (eval $ac_link) 2>&5
6848  ac_status=$?
6849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6851	    pipe_works=yes
6852	  fi
6853	  LIBS=$lt_globsym_save_LIBS
6854	  CFLAGS=$lt_globsym_save_CFLAGS
6855	else
6856	  echo "cannot find nm_test_func in $nlist" >&5
6857	fi
6858      else
6859	echo "cannot find nm_test_var in $nlist" >&5
6860      fi
6861    else
6862      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6863    fi
6864  else
6865    echo "$progname: failed program was:" >&5
6866    cat conftest.$ac_ext >&5
6867  fi
6868  rm -rf conftest* conftst*
6869
6870  # Do not use the global_symbol_pipe unless it works.
6871  if test yes = "$pipe_works"; then
6872    break
6873  else
6874    lt_cv_sys_global_symbol_pipe=
6875  fi
6876done
6877
6878fi
6879
6880if test -z "$lt_cv_sys_global_symbol_pipe"; then
6881  lt_cv_sys_global_symbol_to_cdecl=
6882fi
6883if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6885$as_echo "failed" >&6; }
6886else
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6888$as_echo "ok" >&6; }
6889fi
6890
6891# Response file support.
6892if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6893  nm_file_list_spec='@'
6894elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6895  nm_file_list_spec='@'
6896fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6935$as_echo_n "checking for sysroot... " >&6; }
6936
6937# Check whether --with-sysroot was given.
6938if test "${with_sysroot+set}" = set; then :
6939  withval=$with_sysroot;
6940else
6941  with_sysroot=no
6942fi
6943
6944
6945lt_sysroot=
6946case $with_sysroot in #(
6947 yes)
6948   if test yes = "$GCC"; then
6949     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6950   fi
6951   ;; #(
6952 /*)
6953   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6954   ;; #(
6955 no|'')
6956   ;; #(
6957 *)
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6959$as_echo "$with_sysroot" >&6; }
6960   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6961   ;;
6962esac
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6965$as_echo "${lt_sysroot:-no}" >&6; }
6966
6967
6968
6969
6970
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6972$as_echo_n "checking for a working dd... " >&6; }
6973if ${ac_cv_path_lt_DD+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  printf 0123456789abcdef0123456789abcdef >conftest.i
6977cat conftest.i conftest.i >conftest2.i
6978: ${lt_DD:=$DD}
6979if test -z "$lt_DD"; then
6980  ac_path_lt_DD_found=false
6981  # Loop through the user's path and test for each of PROGNAME-LIST
6982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985  IFS=$as_save_IFS
6986  test -z "$as_dir" && as_dir=.
6987    for ac_prog in dd; do
6988    for ac_exec_ext in '' $ac_executable_extensions; do
6989      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6990      as_fn_executable_p "$ac_path_lt_DD" || continue
6991if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6992  cmp -s conftest.i conftest.out \
6993  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6994fi
6995      $ac_path_lt_DD_found && break 3
6996    done
6997  done
6998  done
6999IFS=$as_save_IFS
7000  if test -z "$ac_cv_path_lt_DD"; then
7001    :
7002  fi
7003else
7004  ac_cv_path_lt_DD=$lt_DD
7005fi
7006
7007rm -f conftest.i conftest2.i conftest.out
7008fi
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7010$as_echo "$ac_cv_path_lt_DD" >&6; }
7011
7012
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7014$as_echo_n "checking how to truncate binary pipes... " >&6; }
7015if ${lt_cv_truncate_bin+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  printf 0123456789abcdef0123456789abcdef >conftest.i
7019cat conftest.i conftest.i >conftest2.i
7020lt_cv_truncate_bin=
7021if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7022  cmp -s conftest.i conftest.out \
7023  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7024fi
7025rm -f conftest.i conftest2.i conftest.out
7026test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7029$as_echo "$lt_cv_truncate_bin" >&6; }
7030
7031
7032
7033
7034
7035
7036
7037# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7038func_cc_basename ()
7039{
7040    for cc_temp in $*""; do
7041      case $cc_temp in
7042        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7043        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7044        \-*) ;;
7045        *) break;;
7046      esac
7047    done
7048    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7049}
7050
7051# Check whether --enable-libtool-lock was given.
7052if test "${enable_libtool_lock+set}" = set; then :
7053  enableval=$enable_libtool_lock;
7054fi
7055
7056test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7057
7058# Some flags need to be propagated to the compiler or linker for good
7059# libtool support.
7060case $host in
7061ia64-*-hpux*)
7062  # Find out what ABI is being produced by ac_compile, and set mode
7063  # options accordingly.
7064  echo 'int i;' > conftest.$ac_ext
7065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7066  (eval $ac_compile) 2>&5
7067  ac_status=$?
7068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069  test $ac_status = 0; }; then
7070    case `/usr/bin/file conftest.$ac_objext` in
7071      *ELF-32*)
7072	HPUX_IA64_MODE=32
7073	;;
7074      *ELF-64*)
7075	HPUX_IA64_MODE=64
7076	;;
7077    esac
7078  fi
7079  rm -rf conftest*
7080  ;;
7081*-*-irix6*)
7082  # Find out what ABI is being produced by ac_compile, and set linker
7083  # options accordingly.
7084  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7085  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7086  (eval $ac_compile) 2>&5
7087  ac_status=$?
7088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089  test $ac_status = 0; }; then
7090    if test yes = "$lt_cv_prog_gnu_ld"; then
7091      case `/usr/bin/file conftest.$ac_objext` in
7092	*32-bit*)
7093	  LD="${LD-ld} -melf32bsmip"
7094	  ;;
7095	*N32*)
7096	  LD="${LD-ld} -melf32bmipn32"
7097	  ;;
7098	*64-bit*)
7099	  LD="${LD-ld} -melf64bmip"
7100	;;
7101      esac
7102    else
7103      case `/usr/bin/file conftest.$ac_objext` in
7104	*32-bit*)
7105	  LD="${LD-ld} -32"
7106	  ;;
7107	*N32*)
7108	  LD="${LD-ld} -n32"
7109	  ;;
7110	*64-bit*)
7111	  LD="${LD-ld} -64"
7112	  ;;
7113      esac
7114    fi
7115  fi
7116  rm -rf conftest*
7117  ;;
7118
7119mips64*-*linux*)
7120  # Find out what ABI is being produced by ac_compile, and set linker
7121  # options accordingly.
7122  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7123  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124  (eval $ac_compile) 2>&5
7125  ac_status=$?
7126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127  test $ac_status = 0; }; then
7128    emul=elf
7129    case `/usr/bin/file conftest.$ac_objext` in
7130      *32-bit*)
7131	emul="${emul}32"
7132	;;
7133      *64-bit*)
7134	emul="${emul}64"
7135	;;
7136    esac
7137    case `/usr/bin/file conftest.$ac_objext` in
7138      *MSB*)
7139	emul="${emul}btsmip"
7140	;;
7141      *LSB*)
7142	emul="${emul}ltsmip"
7143	;;
7144    esac
7145    case `/usr/bin/file conftest.$ac_objext` in
7146      *N32*)
7147	emul="${emul}n32"
7148	;;
7149    esac
7150    LD="${LD-ld} -m $emul"
7151  fi
7152  rm -rf conftest*
7153  ;;
7154
7155x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7156s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7157  # Find out what ABI is being produced by ac_compile, and set linker
7158  # options accordingly.  Note that the listed cases only cover the
7159  # situations where additional linker options are needed (such as when
7160  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7161  # vice versa); the common cases where no linker options are needed do
7162  # not appear in the list.
7163  echo 'int i;' > conftest.$ac_ext
7164  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165  (eval $ac_compile) 2>&5
7166  ac_status=$?
7167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168  test $ac_status = 0; }; then
7169    case `/usr/bin/file conftest.o` in
7170      *32-bit*)
7171	case $host in
7172	  x86_64-*kfreebsd*-gnu)
7173	    LD="${LD-ld} -m elf_i386_fbsd"
7174	    ;;
7175	  x86_64-*linux*)
7176	    case `/usr/bin/file conftest.o` in
7177	      *x86-64*)
7178		LD="${LD-ld} -m elf32_x86_64"
7179		;;
7180	      *)
7181		LD="${LD-ld} -m elf_i386"
7182		;;
7183	    esac
7184	    ;;
7185	  powerpc64le-*linux*)
7186	    LD="${LD-ld} -m elf32lppclinux"
7187	    ;;
7188	  powerpc64-*linux*)
7189	    LD="${LD-ld} -m elf32ppclinux"
7190	    ;;
7191	  s390x-*linux*)
7192	    LD="${LD-ld} -m elf_s390"
7193	    ;;
7194	  sparc64-*linux*)
7195	    LD="${LD-ld} -m elf32_sparc"
7196	    ;;
7197	esac
7198	;;
7199      *64-bit*)
7200	case $host in
7201	  x86_64-*kfreebsd*-gnu)
7202	    LD="${LD-ld} -m elf_x86_64_fbsd"
7203	    ;;
7204	  x86_64-*linux*)
7205	    LD="${LD-ld} -m elf_x86_64"
7206	    ;;
7207	  powerpcle-*linux*)
7208	    LD="${LD-ld} -m elf64lppc"
7209	    ;;
7210	  powerpc-*linux*)
7211	    LD="${LD-ld} -m elf64ppc"
7212	    ;;
7213	  s390*-*linux*|s390*-*tpf*)
7214	    LD="${LD-ld} -m elf64_s390"
7215	    ;;
7216	  sparc*-*linux*)
7217	    LD="${LD-ld} -m elf64_sparc"
7218	    ;;
7219	esac
7220	;;
7221    esac
7222  fi
7223  rm -rf conftest*
7224  ;;
7225
7226*-*-sco3.2v5*)
7227  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7228  SAVE_CFLAGS=$CFLAGS
7229  CFLAGS="$CFLAGS -belf"
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7231$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7232if ${lt_cv_cc_needs_belf+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  ac_ext=c
7236ac_cpp='$CPP $CPPFLAGS'
7237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7239ac_compiler_gnu=$ac_cv_c_compiler_gnu
7240
7241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243
7244int
7245main ()
7246{
7247
7248  ;
7249  return 0;
7250}
7251_ACEOF
7252if ac_fn_c_try_link "$LINENO"; then :
7253  lt_cv_cc_needs_belf=yes
7254else
7255  lt_cv_cc_needs_belf=no
7256fi
7257rm -f core conftest.err conftest.$ac_objext \
7258    conftest$ac_exeext conftest.$ac_ext
7259     ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265fi
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7267$as_echo "$lt_cv_cc_needs_belf" >&6; }
7268  if test yes != "$lt_cv_cc_needs_belf"; then
7269    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7270    CFLAGS=$SAVE_CFLAGS
7271  fi
7272  ;;
7273*-*solaris*)
7274  # Find out what ABI is being produced by ac_compile, and set linker
7275  # options accordingly.
7276  echo 'int i;' > conftest.$ac_ext
7277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278  (eval $ac_compile) 2>&5
7279  ac_status=$?
7280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281  test $ac_status = 0; }; then
7282    case `/usr/bin/file conftest.o` in
7283    *64-bit*)
7284      case $lt_cv_prog_gnu_ld in
7285      yes*)
7286        case $host in
7287        i?86-*-solaris*|x86_64-*-solaris*)
7288          LD="${LD-ld} -m elf_x86_64"
7289          ;;
7290        sparc*-*-solaris*)
7291          LD="${LD-ld} -m elf64_sparc"
7292          ;;
7293        esac
7294        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7295        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7296          LD=${LD-ld}_sol2
7297        fi
7298        ;;
7299      *)
7300	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7301	  LD="${LD-ld} -64"
7302	fi
7303	;;
7304      esac
7305      ;;
7306    esac
7307  fi
7308  rm -rf conftest*
7309  ;;
7310esac
7311
7312need_locks=$enable_libtool_lock
7313
7314if test -n "$ac_tool_prefix"; then
7315  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7316set dummy ${ac_tool_prefix}mt; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  if test -n "$MANIFEST_TOOL"; then
7323  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337  done
7338IFS=$as_save_IFS
7339
7340fi
7341fi
7342MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7343if test -n "$MANIFEST_TOOL"; then
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7345$as_echo "$MANIFEST_TOOL" >&6; }
7346else
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
7349fi
7350
7351
7352fi
7353if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7354  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7355  # Extract the first word of "mt", so it can be a program name with args.
7356set dummy mt; ac_word=$2
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358$as_echo_n "checking for $ac_word... " >&6; }
7359if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7360  $as_echo_n "(cached) " >&6
7361else
7362  if test -n "$ac_ct_MANIFEST_TOOL"; then
7363  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7364else
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368  IFS=$as_save_IFS
7369  test -z "$as_dir" && as_dir=.
7370    for ac_exec_ext in '' $ac_executable_extensions; do
7371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374    break 2
7375  fi
7376done
7377  done
7378IFS=$as_save_IFS
7379
7380fi
7381fi
7382ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7383if test -n "$ac_ct_MANIFEST_TOOL"; then
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7385$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7386else
7387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388$as_echo "no" >&6; }
7389fi
7390
7391  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7392    MANIFEST_TOOL=":"
7393  else
7394    case $cross_compiling:$ac_tool_warned in
7395yes:)
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398ac_tool_warned=yes ;;
7399esac
7400    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7401  fi
7402else
7403  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7404fi
7405
7406test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7408$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7409if ${lt_cv_path_mainfest_tool+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  lt_cv_path_mainfest_tool=no
7413  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7414  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7415  cat conftest.err >&5
7416  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7417    lt_cv_path_mainfest_tool=yes
7418  fi
7419  rm -f conftest*
7420fi
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7422$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7423if test yes != "$lt_cv_path_mainfest_tool"; then
7424  MANIFEST_TOOL=:
7425fi
7426
7427
7428
7429
7430
7431
7432  case $host_os in
7433    rhapsody* | darwin*)
7434    if test -n "$ac_tool_prefix"; then
7435  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7436set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438$as_echo_n "checking for $ac_word... " >&6; }
7439if ${ac_cv_prog_DSYMUTIL+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442  if test -n "$DSYMUTIL"; then
7443  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7444else
7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448  IFS=$as_save_IFS
7449  test -z "$as_dir" && as_dir=.
7450    for ac_exec_ext in '' $ac_executable_extensions; do
7451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454    break 2
7455  fi
7456done
7457  done
7458IFS=$as_save_IFS
7459
7460fi
7461fi
7462DSYMUTIL=$ac_cv_prog_DSYMUTIL
7463if test -n "$DSYMUTIL"; then
7464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7465$as_echo "$DSYMUTIL" >&6; }
7466else
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468$as_echo "no" >&6; }
7469fi
7470
7471
7472fi
7473if test -z "$ac_cv_prog_DSYMUTIL"; then
7474  ac_ct_DSYMUTIL=$DSYMUTIL
7475  # Extract the first word of "dsymutil", so it can be a program name with args.
7476set dummy dsymutil; ac_word=$2
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478$as_echo_n "checking for $ac_word... " >&6; }
7479if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  if test -n "$ac_ct_DSYMUTIL"; then
7483  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7484else
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488  IFS=$as_save_IFS
7489  test -z "$as_dir" && as_dir=.
7490    for ac_exec_ext in '' $ac_executable_extensions; do
7491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494    break 2
7495  fi
7496done
7497  done
7498IFS=$as_save_IFS
7499
7500fi
7501fi
7502ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7503if test -n "$ac_ct_DSYMUTIL"; then
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7505$as_echo "$ac_ct_DSYMUTIL" >&6; }
7506else
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508$as_echo "no" >&6; }
7509fi
7510
7511  if test "x$ac_ct_DSYMUTIL" = x; then
7512    DSYMUTIL=":"
7513  else
7514    case $cross_compiling:$ac_tool_warned in
7515yes:)
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7518ac_tool_warned=yes ;;
7519esac
7520    DSYMUTIL=$ac_ct_DSYMUTIL
7521  fi
7522else
7523  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7524fi
7525
7526    if test -n "$ac_tool_prefix"; then
7527  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7528set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
7531if ${ac_cv_prog_NMEDIT+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  if test -n "$NMEDIT"; then
7535  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540  IFS=$as_save_IFS
7541  test -z "$as_dir" && as_dir=.
7542    for ac_exec_ext in '' $ac_executable_extensions; do
7543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546    break 2
7547  fi
7548done
7549  done
7550IFS=$as_save_IFS
7551
7552fi
7553fi
7554NMEDIT=$ac_cv_prog_NMEDIT
7555if test -n "$NMEDIT"; then
7556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7557$as_echo "$NMEDIT" >&6; }
7558else
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
7561fi
7562
7563
7564fi
7565if test -z "$ac_cv_prog_NMEDIT"; then
7566  ac_ct_NMEDIT=$NMEDIT
7567  # Extract the first word of "nmedit", so it can be a program name with args.
7568set dummy nmedit; ac_word=$2
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570$as_echo_n "checking for $ac_word... " >&6; }
7571if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  if test -n "$ac_ct_NMEDIT"; then
7575  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7576else
7577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580  IFS=$as_save_IFS
7581  test -z "$as_dir" && as_dir=.
7582    for ac_exec_ext in '' $ac_executable_extensions; do
7583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586    break 2
7587  fi
7588done
7589  done
7590IFS=$as_save_IFS
7591
7592fi
7593fi
7594ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7595if test -n "$ac_ct_NMEDIT"; then
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7597$as_echo "$ac_ct_NMEDIT" >&6; }
7598else
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
7601fi
7602
7603  if test "x$ac_ct_NMEDIT" = x; then
7604    NMEDIT=":"
7605  else
7606    case $cross_compiling:$ac_tool_warned in
7607yes:)
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610ac_tool_warned=yes ;;
7611esac
7612    NMEDIT=$ac_ct_NMEDIT
7613  fi
7614else
7615  NMEDIT="$ac_cv_prog_NMEDIT"
7616fi
7617
7618    if test -n "$ac_tool_prefix"; then
7619  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7620set dummy ${ac_tool_prefix}lipo; ac_word=$2
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622$as_echo_n "checking for $ac_word... " >&6; }
7623if ${ac_cv_prog_LIPO+:} false; then :
7624  $as_echo_n "(cached) " >&6
7625else
7626  if test -n "$LIPO"; then
7627  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634    for ac_exec_ext in '' $ac_executable_extensions; do
7635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641  done
7642IFS=$as_save_IFS
7643
7644fi
7645fi
7646LIPO=$ac_cv_prog_LIPO
7647if test -n "$LIPO"; then
7648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7649$as_echo "$LIPO" >&6; }
7650else
7651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
7653fi
7654
7655
7656fi
7657if test -z "$ac_cv_prog_LIPO"; then
7658  ac_ct_LIPO=$LIPO
7659  # Extract the first word of "lipo", so it can be a program name with args.
7660set dummy lipo; ac_word=$2
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662$as_echo_n "checking for $ac_word... " >&6; }
7663if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  if test -n "$ac_ct_LIPO"; then
7667  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674    for ac_exec_ext in '' $ac_executable_extensions; do
7675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_ac_ct_LIPO="lipo"
7677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681  done
7682IFS=$as_save_IFS
7683
7684fi
7685fi
7686ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7687if test -n "$ac_ct_LIPO"; then
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7689$as_echo "$ac_ct_LIPO" >&6; }
7690else
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693fi
7694
7695  if test "x$ac_ct_LIPO" = x; then
7696    LIPO=":"
7697  else
7698    case $cross_compiling:$ac_tool_warned in
7699yes:)
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702ac_tool_warned=yes ;;
7703esac
7704    LIPO=$ac_ct_LIPO
7705  fi
7706else
7707  LIPO="$ac_cv_prog_LIPO"
7708fi
7709
7710    if test -n "$ac_tool_prefix"; then
7711  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7712set dummy ${ac_tool_prefix}otool; ac_word=$2
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714$as_echo_n "checking for $ac_word... " >&6; }
7715if ${ac_cv_prog_OTOOL+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  if test -n "$OTOOL"; then
7719  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726    for ac_exec_ext in '' $ac_executable_extensions; do
7727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733  done
7734IFS=$as_save_IFS
7735
7736fi
7737fi
7738OTOOL=$ac_cv_prog_OTOOL
7739if test -n "$OTOOL"; then
7740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7741$as_echo "$OTOOL" >&6; }
7742else
7743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744$as_echo "no" >&6; }
7745fi
7746
7747
7748fi
7749if test -z "$ac_cv_prog_OTOOL"; then
7750  ac_ct_OTOOL=$OTOOL
7751  # Extract the first word of "otool", so it can be a program name with args.
7752set dummy otool; ac_word=$2
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754$as_echo_n "checking for $ac_word... " >&6; }
7755if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  if test -n "$ac_ct_OTOOL"; then
7759  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764  IFS=$as_save_IFS
7765  test -z "$as_dir" && as_dir=.
7766    for ac_exec_ext in '' $ac_executable_extensions; do
7767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768    ac_cv_prog_ac_ct_OTOOL="otool"
7769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770    break 2
7771  fi
7772done
7773  done
7774IFS=$as_save_IFS
7775
7776fi
7777fi
7778ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7779if test -n "$ac_ct_OTOOL"; then
7780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7781$as_echo "$ac_ct_OTOOL" >&6; }
7782else
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784$as_echo "no" >&6; }
7785fi
7786
7787  if test "x$ac_ct_OTOOL" = x; then
7788    OTOOL=":"
7789  else
7790    case $cross_compiling:$ac_tool_warned in
7791yes:)
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794ac_tool_warned=yes ;;
7795esac
7796    OTOOL=$ac_ct_OTOOL
7797  fi
7798else
7799  OTOOL="$ac_cv_prog_OTOOL"
7800fi
7801
7802    if test -n "$ac_tool_prefix"; then
7803  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7804set dummy ${ac_tool_prefix}otool64; ac_word=$2
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806$as_echo_n "checking for $ac_word... " >&6; }
7807if ${ac_cv_prog_OTOOL64+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  if test -n "$OTOOL64"; then
7811  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7812else
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816  IFS=$as_save_IFS
7817  test -z "$as_dir" && as_dir=.
7818    for ac_exec_ext in '' $ac_executable_extensions; do
7819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822    break 2
7823  fi
7824done
7825  done
7826IFS=$as_save_IFS
7827
7828fi
7829fi
7830OTOOL64=$ac_cv_prog_OTOOL64
7831if test -n "$OTOOL64"; then
7832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7833$as_echo "$OTOOL64" >&6; }
7834else
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
7837fi
7838
7839
7840fi
7841if test -z "$ac_cv_prog_OTOOL64"; then
7842  ac_ct_OTOOL64=$OTOOL64
7843  # Extract the first word of "otool64", so it can be a program name with args.
7844set dummy otool64; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  if test -n "$ac_ct_OTOOL64"; then
7851  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856  IFS=$as_save_IFS
7857  test -z "$as_dir" && as_dir=.
7858    for ac_exec_ext in '' $ac_executable_extensions; do
7859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860    ac_cv_prog_ac_ct_OTOOL64="otool64"
7861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862    break 2
7863  fi
7864done
7865  done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7871if test -n "$ac_ct_OTOOL64"; then
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7873$as_echo "$ac_ct_OTOOL64" >&6; }
7874else
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879  if test "x$ac_ct_OTOOL64" = x; then
7880    OTOOL64=":"
7881  else
7882    case $cross_compiling:$ac_tool_warned in
7883yes:)
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886ac_tool_warned=yes ;;
7887esac
7888    OTOOL64=$ac_ct_OTOOL64
7889  fi
7890else
7891  OTOOL64="$ac_cv_prog_OTOOL64"
7892fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7921$as_echo_n "checking for -single_module linker flag... " >&6; }
7922if ${lt_cv_apple_cc_single_mod+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  lt_cv_apple_cc_single_mod=no
7926      if test -z "$LT_MULTI_MODULE"; then
7927	# By default we will add the -single_module flag. You can override
7928	# by either setting the environment variable LT_MULTI_MODULE
7929	# non-empty at configure time, or by adding -multi_module to the
7930	# link flags.
7931	rm -rf libconftest.dylib*
7932	echo "int foo(void){return 1;}" > conftest.c
7933	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934-dynamiclib -Wl,-single_module conftest.c" >&5
7935	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7937        _lt_result=$?
7938	# If there is a non-empty error log, and "single_module"
7939	# appears in it, assume the flag caused a linker warning
7940        if test -s conftest.err && $GREP single_module conftest.err; then
7941	  cat conftest.err >&5
7942	# Otherwise, if the output was created with a 0 exit code from
7943	# the compiler, it worked.
7944	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7945	  lt_cv_apple_cc_single_mod=yes
7946	else
7947	  cat conftest.err >&5
7948	fi
7949	rm -rf libconftest.dylib*
7950	rm -f conftest.*
7951      fi
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7954$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7955
7956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7957$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7958if ${lt_cv_ld_exported_symbols_list+:} false; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  lt_cv_ld_exported_symbols_list=no
7962      save_LDFLAGS=$LDFLAGS
7963      echo "_main" > conftest.sym
7964      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967
7968int
7969main ()
7970{
7971
7972  ;
7973  return 0;
7974}
7975_ACEOF
7976if ac_fn_c_try_link "$LINENO"; then :
7977  lt_cv_ld_exported_symbols_list=yes
7978else
7979  lt_cv_ld_exported_symbols_list=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext \
7982    conftest$ac_exeext conftest.$ac_ext
7983	LDFLAGS=$save_LDFLAGS
7984
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7987$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7988
7989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7990$as_echo_n "checking for -force_load linker flag... " >&6; }
7991if ${lt_cv_ld_force_load+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  lt_cv_ld_force_load=no
7995      cat > conftest.c << _LT_EOF
7996int forced_loaded() { return 2;}
7997_LT_EOF
7998      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7999      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8000      echo "$AR cru libconftest.a conftest.o" >&5
8001      $AR cru libconftest.a conftest.o 2>&5
8002      echo "$RANLIB libconftest.a" >&5
8003      $RANLIB libconftest.a 2>&5
8004      cat > conftest.c << _LT_EOF
8005int main() { return 0;}
8006_LT_EOF
8007      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8008      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8009      _lt_result=$?
8010      if test -s conftest.err && $GREP force_load conftest.err; then
8011	cat conftest.err >&5
8012      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8013	lt_cv_ld_force_load=yes
8014      else
8015	cat conftest.err >&5
8016      fi
8017        rm -f conftest.err libconftest.a conftest conftest.c
8018        rm -rf conftest.dSYM
8019
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8022$as_echo "$lt_cv_ld_force_load" >&6; }
8023    case $host_os in
8024    rhapsody* | darwin1.[012])
8025      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8026    darwin1.*)
8027      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8028    darwin*) # darwin 5.x on
8029      # if running on 10.5 or later, the deployment target defaults
8030      # to the OS version, if on x86, and 10.4, the deployment
8031      # target defaults to 10.4. Don't you love it?
8032      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8033	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8034	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8035	10.[012][,.]*)
8036	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8037	10.*)
8038	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8039      esac
8040    ;;
8041  esac
8042    if test yes = "$lt_cv_apple_cc_single_mod"; then
8043      _lt_dar_single_mod='$single_module'
8044    fi
8045    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8046      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8047    else
8048      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8049    fi
8050    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8051      _lt_dsymutil='~$DSYMUTIL $lib || :'
8052    else
8053      _lt_dsymutil=
8054    fi
8055    ;;
8056  esac
8057
8058# func_munge_path_list VARIABLE PATH
8059# -----------------------------------
8060# VARIABLE is name of variable containing _space_ separated list of
8061# directories to be munged by the contents of PATH, which is string
8062# having a format:
8063# "DIR[:DIR]:"
8064#       string "DIR[ DIR]" will be prepended to VARIABLE
8065# ":DIR[:DIR]"
8066#       string "DIR[ DIR]" will be appended to VARIABLE
8067# "DIRP[:DIRP]::[DIRA:]DIRA"
8068#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8069#       "DIRA[ DIRA]" will be appended to VARIABLE
8070# "DIR[:DIR]"
8071#       VARIABLE will be replaced by "DIR[ DIR]"
8072func_munge_path_list ()
8073{
8074    case x$2 in
8075    x)
8076        ;;
8077    *:)
8078        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8079        ;;
8080    x:*)
8081        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8082        ;;
8083    *::*)
8084        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8085        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8086        ;;
8087    *)
8088        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8089        ;;
8090    esac
8091}
8092
8093ac_ext=c
8094ac_cpp='$CPP $CPPFLAGS'
8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8099$as_echo_n "checking how to run the C preprocessor... " >&6; }
8100# On Suns, sometimes $CPP names a directory.
8101if test -n "$CPP" && test -d "$CPP"; then
8102  CPP=
8103fi
8104if test -z "$CPP"; then
8105  if ${ac_cv_prog_CPP+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108      # Double quotes because CPP needs to be expanded
8109    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8110    do
8111      ac_preproc_ok=false
8112for ac_c_preproc_warn_flag in '' yes
8113do
8114  # Use a header file that comes with gcc, so configuring glibc
8115  # with a fresh cross-compiler works.
8116  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8117  # <limits.h> exists even on freestanding compilers.
8118  # On the NeXT, cc -E runs the code through the compiler's parser,
8119  # not just through cpp. "Syntax error" is here to catch this case.
8120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h.  */
8122#ifdef __STDC__
8123# include <limits.h>
8124#else
8125# include <assert.h>
8126#endif
8127		     Syntax error
8128_ACEOF
8129if ac_fn_c_try_cpp "$LINENO"; then :
8130
8131else
8132  # Broken: fails on valid input.
8133continue
8134fi
8135rm -f conftest.err conftest.i conftest.$ac_ext
8136
8137  # OK, works on sane cases.  Now check whether nonexistent headers
8138  # can be detected and how.
8139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h.  */
8141#include <ac_nonexistent.h>
8142_ACEOF
8143if ac_fn_c_try_cpp "$LINENO"; then :
8144  # Broken: success on invalid input.
8145continue
8146else
8147  # Passes both tests.
8148ac_preproc_ok=:
8149break
8150fi
8151rm -f conftest.err conftest.i conftest.$ac_ext
8152
8153done
8154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8155rm -f conftest.i conftest.err conftest.$ac_ext
8156if $ac_preproc_ok; then :
8157  break
8158fi
8159
8160    done
8161    ac_cv_prog_CPP=$CPP
8162
8163fi
8164  CPP=$ac_cv_prog_CPP
8165else
8166  ac_cv_prog_CPP=$CPP
8167fi
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8169$as_echo "$CPP" >&6; }
8170ac_preproc_ok=false
8171for ac_c_preproc_warn_flag in '' yes
8172do
8173  # Use a header file that comes with gcc, so configuring glibc
8174  # with a fresh cross-compiler works.
8175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8176  # <limits.h> exists even on freestanding compilers.
8177  # On the NeXT, cc -E runs the code through the compiler's parser,
8178  # not just through cpp. "Syntax error" is here to catch this case.
8179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181#ifdef __STDC__
8182# include <limits.h>
8183#else
8184# include <assert.h>
8185#endif
8186		     Syntax error
8187_ACEOF
8188if ac_fn_c_try_cpp "$LINENO"; then :
8189
8190else
8191  # Broken: fails on valid input.
8192continue
8193fi
8194rm -f conftest.err conftest.i conftest.$ac_ext
8195
8196  # OK, works on sane cases.  Now check whether nonexistent headers
8197  # can be detected and how.
8198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199/* end confdefs.h.  */
8200#include <ac_nonexistent.h>
8201_ACEOF
8202if ac_fn_c_try_cpp "$LINENO"; then :
8203  # Broken: success on invalid input.
8204continue
8205else
8206  # Passes both tests.
8207ac_preproc_ok=:
8208break
8209fi
8210rm -f conftest.err conftest.i conftest.$ac_ext
8211
8212done
8213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8214rm -f conftest.i conftest.err conftest.$ac_ext
8215if $ac_preproc_ok; then :
8216
8217else
8218  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8221See \`config.log' for more details" "$LINENO" 5; }
8222fi
8223
8224ac_ext=c
8225ac_cpp='$CPP $CPPFLAGS'
8226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8232$as_echo_n "checking for ANSI C header files... " >&6; }
8233if ${ac_cv_header_stdc+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h.  */
8238#include <stdlib.h>
8239#include <stdarg.h>
8240#include <string.h>
8241#include <float.h>
8242
8243int
8244main ()
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_compile "$LINENO"; then :
8252  ac_cv_header_stdc=yes
8253else
8254  ac_cv_header_stdc=no
8255fi
8256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257
8258if test $ac_cv_header_stdc = yes; then
8259  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261/* end confdefs.h.  */
8262#include <string.h>
8263
8264_ACEOF
8265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8266  $EGREP "memchr" >/dev/null 2>&1; then :
8267
8268else
8269  ac_cv_header_stdc=no
8270fi
8271rm -f conftest*
8272
8273fi
8274
8275if test $ac_cv_header_stdc = yes; then
8276  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h.  */
8279#include <stdlib.h>
8280
8281_ACEOF
8282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283  $EGREP "free" >/dev/null 2>&1; then :
8284
8285else
8286  ac_cv_header_stdc=no
8287fi
8288rm -f conftest*
8289
8290fi
8291
8292if test $ac_cv_header_stdc = yes; then
8293  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8294  if test "$cross_compiling" = yes; then :
8295  :
8296else
8297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h.  */
8299#include <ctype.h>
8300#include <stdlib.h>
8301#if ((' ' & 0x0FF) == 0x020)
8302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8304#else
8305# define ISLOWER(c) \
8306		   (('a' <= (c) && (c) <= 'i') \
8307		     || ('j' <= (c) && (c) <= 'r') \
8308		     || ('s' <= (c) && (c) <= 'z'))
8309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8310#endif
8311
8312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8313int
8314main ()
8315{
8316  int i;
8317  for (i = 0; i < 256; i++)
8318    if (XOR (islower (i), ISLOWER (i))
8319	|| toupper (i) != TOUPPER (i))
8320      return 2;
8321  return 0;
8322}
8323_ACEOF
8324if ac_fn_c_try_run "$LINENO"; then :
8325
8326else
8327  ac_cv_header_stdc=no
8328fi
8329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8330  conftest.$ac_objext conftest.beam conftest.$ac_ext
8331fi
8332
8333fi
8334fi
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8336$as_echo "$ac_cv_header_stdc" >&6; }
8337if test $ac_cv_header_stdc = yes; then
8338
8339$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8340
8341fi
8342
8343# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8345		  inttypes.h stdint.h unistd.h
8346do :
8347  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8348ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8349"
8350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8351  cat >>confdefs.h <<_ACEOF
8352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8353_ACEOF
8354
8355fi
8356
8357done
8358
8359
8360for ac_header in dlfcn.h
8361do :
8362  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8363"
8364if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8365  cat >>confdefs.h <<_ACEOF
8366#define HAVE_DLFCN_H 1
8367_ACEOF
8368
8369fi
8370
8371done
8372
8373
8374
8375
8376
8377# Set options
8378
8379
8380
8381        enable_dlopen=no
8382
8383
8384  enable_win32_dll=no
8385
8386
8387
8388
8389
8390# Check whether --with-pic was given.
8391if test "${with_pic+set}" = set; then :
8392  withval=$with_pic; lt_p=${PACKAGE-default}
8393    case $withval in
8394    yes|no) pic_mode=$withval ;;
8395    *)
8396      pic_mode=default
8397      # Look at the argument we got.  We use all the common list separators.
8398      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8399      for lt_pkg in $withval; do
8400	IFS=$lt_save_ifs
8401	if test "X$lt_pkg" = "X$lt_p"; then
8402	  pic_mode=yes
8403	fi
8404      done
8405      IFS=$lt_save_ifs
8406      ;;
8407    esac
8408else
8409  pic_mode=default
8410fi
8411
8412
8413
8414
8415
8416
8417
8418
8419  # Check whether --enable-fast-install was given.
8420if test "${enable_fast_install+set}" = set; then :
8421  enableval=$enable_fast_install; p=${PACKAGE-default}
8422    case $enableval in
8423    yes) enable_fast_install=yes ;;
8424    no) enable_fast_install=no ;;
8425    *)
8426      enable_fast_install=no
8427      # Look at the argument we got.  We use all the common list separators.
8428      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8429      for pkg in $enableval; do
8430	IFS=$lt_save_ifs
8431	if test "X$pkg" = "X$p"; then
8432	  enable_fast_install=yes
8433	fi
8434      done
8435      IFS=$lt_save_ifs
8436      ;;
8437    esac
8438else
8439  enable_fast_install=yes
8440fi
8441
8442
8443
8444
8445
8446
8447
8448
8449  shared_archive_member_spec=
8450case $host,$enable_shared in
8451power*-*-aix[5-9]*,yes)
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8453$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8454
8455# Check whether --with-aix-soname was given.
8456if test "${with_aix_soname+set}" = set; then :
8457  withval=$with_aix_soname; case $withval in
8458    aix|svr4|both)
8459      ;;
8460    *)
8461      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8462      ;;
8463    esac
8464    lt_cv_with_aix_soname=$with_aix_soname
8465else
8466  if ${lt_cv_with_aix_soname+:} false; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  lt_cv_with_aix_soname=aix
8470fi
8471
8472    with_aix_soname=$lt_cv_with_aix_soname
8473fi
8474
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8476$as_echo "$with_aix_soname" >&6; }
8477  if test aix != "$with_aix_soname"; then
8478    # For the AIX way of multilib, we name the shared archive member
8479    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8480    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8481    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8482    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8483    if test 64 = "${OBJECT_MODE-32}"; then
8484      shared_archive_member_spec=shr_64
8485    else
8486      shared_archive_member_spec=shr
8487    fi
8488  fi
8489  ;;
8490*)
8491  with_aix_soname=aix
8492  ;;
8493esac
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504# This can be used to rebuild libtool when needed
8505LIBTOOL_DEPS=$ltmain
8506
8507# Always use our own libtool.
8508LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539test -z "$LN_S" && LN_S="ln -s"
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554if test -n "${ZSH_VERSION+set}"; then
8555   setopt NO_GLOB_SUBST
8556fi
8557
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8559$as_echo_n "checking for objdir... " >&6; }
8560if ${lt_cv_objdir+:} false; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  rm -f .libs 2>/dev/null
8564mkdir .libs 2>/dev/null
8565if test -d .libs; then
8566  lt_cv_objdir=.libs
8567else
8568  # MS-DOS does not allow filenames that begin with a dot.
8569  lt_cv_objdir=_libs
8570fi
8571rmdir .libs 2>/dev/null
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8574$as_echo "$lt_cv_objdir" >&6; }
8575objdir=$lt_cv_objdir
8576
8577
8578
8579
8580
8581cat >>confdefs.h <<_ACEOF
8582#define LT_OBJDIR "$lt_cv_objdir/"
8583_ACEOF
8584
8585
8586
8587
8588case $host_os in
8589aix3*)
8590  # AIX sometimes has problems with the GCC collect2 program.  For some
8591  # reason, if we set the COLLECT_NAMES environment variable, the problems
8592  # vanish in a puff of smoke.
8593  if test set != "${COLLECT_NAMES+set}"; then
8594    COLLECT_NAMES=
8595    export COLLECT_NAMES
8596  fi
8597  ;;
8598esac
8599
8600# Global variables:
8601ofile=libtool
8602can_build_shared=yes
8603
8604# All known linkers require a '.a' archive for static linking (except MSVC,
8605# which needs '.lib').
8606libext=a
8607
8608with_gnu_ld=$lt_cv_prog_gnu_ld
8609
8610old_CC=$CC
8611old_CFLAGS=$CFLAGS
8612
8613# Set sane defaults for various variables
8614test -z "$CC" && CC=cc
8615test -z "$LTCC" && LTCC=$CC
8616test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8617test -z "$LD" && LD=ld
8618test -z "$ac_objext" && ac_objext=o
8619
8620func_cc_basename $compiler
8621cc_basename=$func_cc_basename_result
8622
8623
8624# Only perform the check for file, if the check method requires it
8625test -z "$MAGIC_CMD" && MAGIC_CMD=file
8626case $deplibs_check_method in
8627file_magic*)
8628  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8630$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8631if ${lt_cv_path_MAGIC_CMD+:} false; then :
8632  $as_echo_n "(cached) " >&6
8633else
8634  case $MAGIC_CMD in
8635[\\/*] |  ?:[\\/]*)
8636  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8637  ;;
8638*)
8639  lt_save_MAGIC_CMD=$MAGIC_CMD
8640  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8641  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642  for ac_dir in $ac_dummy; do
8643    IFS=$lt_save_ifs
8644    test -z "$ac_dir" && ac_dir=.
8645    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8646      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8647      if test -n "$file_magic_test_file"; then
8648	case $deplibs_check_method in
8649	"file_magic "*)
8650	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8652	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653	    $EGREP "$file_magic_regex" > /dev/null; then
8654	    :
8655	  else
8656	    cat <<_LT_EOF 1>&2
8657
8658*** Warning: the command libtool uses to detect shared libraries,
8659*** $file_magic_cmd, produces output that libtool cannot recognize.
8660*** The result is that libtool may fail to recognize shared libraries
8661*** as such.  This will affect the creation of libtool libraries that
8662*** depend on shared libraries, but programs linked with such libtool
8663*** libraries will work regardless of this problem.  Nevertheless, you
8664*** may want to report the problem to your system manager and/or to
8665*** bug-libtool@gnu.org
8666
8667_LT_EOF
8668	  fi ;;
8669	esac
8670      fi
8671      break
8672    fi
8673  done
8674  IFS=$lt_save_ifs
8675  MAGIC_CMD=$lt_save_MAGIC_CMD
8676  ;;
8677esac
8678fi
8679
8680MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8681if test -n "$MAGIC_CMD"; then
8682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683$as_echo "$MAGIC_CMD" >&6; }
8684else
8685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
8687fi
8688
8689
8690
8691
8692
8693if test -z "$lt_cv_path_MAGIC_CMD"; then
8694  if test -n "$ac_tool_prefix"; then
8695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8696$as_echo_n "checking for file... " >&6; }
8697if ${lt_cv_path_MAGIC_CMD+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  case $MAGIC_CMD in
8701[\\/*] |  ?:[\\/]*)
8702  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8703  ;;
8704*)
8705  lt_save_MAGIC_CMD=$MAGIC_CMD
8706  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8707  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8708  for ac_dir in $ac_dummy; do
8709    IFS=$lt_save_ifs
8710    test -z "$ac_dir" && ac_dir=.
8711    if test -f "$ac_dir/file"; then
8712      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8713      if test -n "$file_magic_test_file"; then
8714	case $deplibs_check_method in
8715	"file_magic "*)
8716	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8717	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8718	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8719	    $EGREP "$file_magic_regex" > /dev/null; then
8720	    :
8721	  else
8722	    cat <<_LT_EOF 1>&2
8723
8724*** Warning: the command libtool uses to detect shared libraries,
8725*** $file_magic_cmd, produces output that libtool cannot recognize.
8726*** The result is that libtool may fail to recognize shared libraries
8727*** as such.  This will affect the creation of libtool libraries that
8728*** depend on shared libraries, but programs linked with such libtool
8729*** libraries will work regardless of this problem.  Nevertheless, you
8730*** may want to report the problem to your system manager and/or to
8731*** bug-libtool@gnu.org
8732
8733_LT_EOF
8734	  fi ;;
8735	esac
8736      fi
8737      break
8738    fi
8739  done
8740  IFS=$lt_save_ifs
8741  MAGIC_CMD=$lt_save_MAGIC_CMD
8742  ;;
8743esac
8744fi
8745
8746MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8747if test -n "$MAGIC_CMD"; then
8748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8749$as_echo "$MAGIC_CMD" >&6; }
8750else
8751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
8753fi
8754
8755
8756  else
8757    MAGIC_CMD=:
8758  fi
8759fi
8760
8761  fi
8762  ;;
8763esac
8764
8765# Use C for the default configuration in the libtool script
8766
8767lt_save_CC=$CC
8768ac_ext=c
8769ac_cpp='$CPP $CPPFLAGS'
8770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774
8775# Source file extension for C test sources.
8776ac_ext=c
8777
8778# Object file extension for compiled C test sources.
8779objext=o
8780objext=$objext
8781
8782# Code to be used in simple compile tests
8783lt_simple_compile_test_code="int some_variable = 0;"
8784
8785# Code to be used in simple link tests
8786lt_simple_link_test_code='int main(){return(0);}'
8787
8788
8789
8790
8791
8792
8793
8794# If no C compiler was specified, use CC.
8795LTCC=${LTCC-"$CC"}
8796
8797# If no C compiler flags were specified, use CFLAGS.
8798LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8799
8800# Allow CC to be a program name with arguments.
8801compiler=$CC
8802
8803# Save the default compiler, since it gets overwritten when the other
8804# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8805compiler_DEFAULT=$CC
8806
8807# save warnings/boilerplate of simple test code
8808ac_outfile=conftest.$ac_objext
8809echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8810eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8811_lt_compiler_boilerplate=`cat conftest.err`
8812$RM conftest*
8813
8814ac_outfile=conftest.$ac_objext
8815echo "$lt_simple_link_test_code" >conftest.$ac_ext
8816eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817_lt_linker_boilerplate=`cat conftest.err`
8818$RM -r conftest*
8819
8820
8821## CAVEAT EMPTOR:
8822## There is no encapsulation within the following macros, do not change
8823## the running order or otherwise move them around unless you know exactly
8824## what you are doing...
8825if test -n "$compiler"; then
8826
8827lt_prog_compiler_no_builtin_flag=
8828
8829if test yes = "$GCC"; then
8830  case $cc_basename in
8831  nvcc*)
8832    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8833  *)
8834    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8835  esac
8836
8837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8840  $as_echo_n "(cached) " >&6
8841else
8842  lt_cv_prog_compiler_rtti_exceptions=no
8843   ac_outfile=conftest.$ac_objext
8844   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8846   # Insert the option either (1) after the last *FLAGS variable, or
8847   # (2) before a word containing "conftest.", or (3) at the end.
8848   # Note that $ac_compile itself does not contain backslashes and begins
8849   # with a dollar sign (not a hyphen), so the echo should work correctly.
8850   # The option is referenced via a variable to avoid confusing sed.
8851   lt_compile=`echo "$ac_compile" | $SED \
8852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854   -e 's:$: $lt_compiler_flag:'`
8855   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856   (eval "$lt_compile" 2>conftest.err)
8857   ac_status=$?
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   if (exit $ac_status) && test -s "$ac_outfile"; then
8861     # The compiler can only warn and ignore the option if not recognized
8862     # So say no if there are warnings other than the usual output.
8863     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8864     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8865     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8866       lt_cv_prog_compiler_rtti_exceptions=yes
8867     fi
8868   fi
8869   $RM conftest*
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8873$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8874
8875if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8876    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8877else
8878    :
8879fi
8880
8881fi
8882
8883
8884
8885
8886
8887
8888  lt_prog_compiler_wl=
8889lt_prog_compiler_pic=
8890lt_prog_compiler_static=
8891
8892
8893  if test yes = "$GCC"; then
8894    lt_prog_compiler_wl='-Wl,'
8895    lt_prog_compiler_static='-static'
8896
8897    case $host_os in
8898      aix*)
8899      # All AIX code is PIC.
8900      if test ia64 = "$host_cpu"; then
8901	# AIX 5 now supports IA64 processor
8902	lt_prog_compiler_static='-Bstatic'
8903      fi
8904      lt_prog_compiler_pic='-fPIC'
8905      ;;
8906
8907    amigaos*)
8908      case $host_cpu in
8909      powerpc)
8910            # see comment about AmigaOS4 .so support
8911            lt_prog_compiler_pic='-fPIC'
8912        ;;
8913      m68k)
8914            # FIXME: we need at least 68020 code to build shared libraries, but
8915            # adding the '-m68020' flag to GCC prevents building anything better,
8916            # like '-m68040'.
8917            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8918        ;;
8919      esac
8920      ;;
8921
8922    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8923      # PIC is the default for these OSes.
8924      ;;
8925
8926    mingw* | cygwin* | pw32* | os2* | cegcc*)
8927      # This hack is so that the source file can tell whether it is being
8928      # built for inclusion in a dll (and should export symbols for example).
8929      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8930      # (--disable-auto-import) libraries
8931      lt_prog_compiler_pic='-DDLL_EXPORT'
8932      case $host_os in
8933      os2*)
8934	lt_prog_compiler_static='$wl-static'
8935	;;
8936      esac
8937      ;;
8938
8939    darwin* | rhapsody*)
8940      # PIC is the default on this platform
8941      # Common symbols not allowed in MH_DYLIB files
8942      lt_prog_compiler_pic='-fno-common'
8943      ;;
8944
8945    haiku*)
8946      # PIC is the default for Haiku.
8947      # The "-static" flag exists, but is broken.
8948      lt_prog_compiler_static=
8949      ;;
8950
8951    hpux*)
8952      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8953      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8954      # sets the default TLS model and affects inlining.
8955      case $host_cpu in
8956      hppa*64*)
8957	# +Z the default
8958	;;
8959      *)
8960	lt_prog_compiler_pic='-fPIC'
8961	;;
8962      esac
8963      ;;
8964
8965    interix[3-9]*)
8966      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8967      # Instead, we relocate shared libraries at runtime.
8968      ;;
8969
8970    msdosdjgpp*)
8971      # Just because we use GCC doesn't mean we suddenly get shared libraries
8972      # on systems that don't support them.
8973      lt_prog_compiler_can_build_shared=no
8974      enable_shared=no
8975      ;;
8976
8977    *nto* | *qnx*)
8978      # QNX uses GNU C++, but need to define -shared option too, otherwise
8979      # it will coredump.
8980      lt_prog_compiler_pic='-fPIC -shared'
8981      ;;
8982
8983    sysv4*MP*)
8984      if test -d /usr/nec; then
8985	lt_prog_compiler_pic=-Kconform_pic
8986      fi
8987      ;;
8988
8989    *)
8990      lt_prog_compiler_pic='-fPIC'
8991      ;;
8992    esac
8993
8994    case $cc_basename in
8995    nvcc*) # Cuda Compiler Driver 2.2
8996      lt_prog_compiler_wl='-Xlinker '
8997      if test -n "$lt_prog_compiler_pic"; then
8998        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8999      fi
9000      ;;
9001    esac
9002  else
9003    # PORTME Check for flag to pass linker flags through the system compiler.
9004    case $host_os in
9005    aix*)
9006      lt_prog_compiler_wl='-Wl,'
9007      if test ia64 = "$host_cpu"; then
9008	# AIX 5 now supports IA64 processor
9009	lt_prog_compiler_static='-Bstatic'
9010      else
9011	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9012      fi
9013      ;;
9014
9015    darwin* | rhapsody*)
9016      # PIC is the default on this platform
9017      # Common symbols not allowed in MH_DYLIB files
9018      lt_prog_compiler_pic='-fno-common'
9019      case $cc_basename in
9020      nagfor*)
9021        # NAG Fortran compiler
9022        lt_prog_compiler_wl='-Wl,-Wl,,'
9023        lt_prog_compiler_pic='-PIC'
9024        lt_prog_compiler_static='-Bstatic'
9025        ;;
9026      esac
9027      ;;
9028
9029    mingw* | cygwin* | pw32* | os2* | cegcc*)
9030      # This hack is so that the source file can tell whether it is being
9031      # built for inclusion in a dll (and should export symbols for example).
9032      lt_prog_compiler_pic='-DDLL_EXPORT'
9033      case $host_os in
9034      os2*)
9035	lt_prog_compiler_static='$wl-static'
9036	;;
9037      esac
9038      ;;
9039
9040    hpux9* | hpux10* | hpux11*)
9041      lt_prog_compiler_wl='-Wl,'
9042      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9043      # not for PA HP-UX.
9044      case $host_cpu in
9045      hppa*64*|ia64*)
9046	# +Z the default
9047	;;
9048      *)
9049	lt_prog_compiler_pic='+Z'
9050	;;
9051      esac
9052      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9053      lt_prog_compiler_static='$wl-a ${wl}archive'
9054      ;;
9055
9056    irix5* | irix6* | nonstopux*)
9057      lt_prog_compiler_wl='-Wl,'
9058      # PIC (with -KPIC) is the default.
9059      lt_prog_compiler_static='-non_shared'
9060      ;;
9061
9062    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9063      case $cc_basename in
9064      # old Intel for x86_64, which still supported -KPIC.
9065      ecc*)
9066	lt_prog_compiler_wl='-Wl,'
9067	lt_prog_compiler_pic='-KPIC'
9068	lt_prog_compiler_static='-static'
9069        ;;
9070      # icc used to be incompatible with GCC.
9071      # ICC 10 doesn't accept -KPIC any more.
9072      icc* | ifort*)
9073	lt_prog_compiler_wl='-Wl,'
9074	lt_prog_compiler_pic='-fPIC'
9075	lt_prog_compiler_static='-static'
9076        ;;
9077      # Lahey Fortran 8.1.
9078      lf95*)
9079	lt_prog_compiler_wl='-Wl,'
9080	lt_prog_compiler_pic='--shared'
9081	lt_prog_compiler_static='--static'
9082	;;
9083      nagfor*)
9084	# NAG Fortran compiler
9085	lt_prog_compiler_wl='-Wl,-Wl,,'
9086	lt_prog_compiler_pic='-PIC'
9087	lt_prog_compiler_static='-Bstatic'
9088	;;
9089      tcc*)
9090	# Fabrice Bellard et al's Tiny C Compiler
9091	lt_prog_compiler_wl='-Wl,'
9092	lt_prog_compiler_pic='-fPIC'
9093	lt_prog_compiler_static='-static'
9094	;;
9095      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9096        # Portland Group compilers (*not* the Pentium gcc compiler,
9097	# which looks to be a dead project)
9098	lt_prog_compiler_wl='-Wl,'
9099	lt_prog_compiler_pic='-fpic'
9100	lt_prog_compiler_static='-Bstatic'
9101        ;;
9102      ccc*)
9103        lt_prog_compiler_wl='-Wl,'
9104        # All Alpha code is PIC.
9105        lt_prog_compiler_static='-non_shared'
9106        ;;
9107      xl* | bgxl* | bgf* | mpixl*)
9108	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9109	lt_prog_compiler_wl='-Wl,'
9110	lt_prog_compiler_pic='-qpic'
9111	lt_prog_compiler_static='-qstaticlink'
9112	;;
9113      *)
9114	case `$CC -V 2>&1 | sed 5q` in
9115	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9116	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9117	  lt_prog_compiler_pic='-KPIC'
9118	  lt_prog_compiler_static='-Bstatic'
9119	  lt_prog_compiler_wl=''
9120	  ;;
9121	*Sun\ F* | *Sun*Fortran*)
9122	  lt_prog_compiler_pic='-KPIC'
9123	  lt_prog_compiler_static='-Bstatic'
9124	  lt_prog_compiler_wl='-Qoption ld '
9125	  ;;
9126	*Sun\ C*)
9127	  # Sun C 5.9
9128	  lt_prog_compiler_pic='-KPIC'
9129	  lt_prog_compiler_static='-Bstatic'
9130	  lt_prog_compiler_wl='-Wl,'
9131	  ;;
9132        *Intel*\ [CF]*Compiler*)
9133	  lt_prog_compiler_wl='-Wl,'
9134	  lt_prog_compiler_pic='-fPIC'
9135	  lt_prog_compiler_static='-static'
9136	  ;;
9137	*Portland\ Group*)
9138	  lt_prog_compiler_wl='-Wl,'
9139	  lt_prog_compiler_pic='-fpic'
9140	  lt_prog_compiler_static='-Bstatic'
9141	  ;;
9142	esac
9143	;;
9144      esac
9145      ;;
9146
9147    newsos6)
9148      lt_prog_compiler_pic='-KPIC'
9149      lt_prog_compiler_static='-Bstatic'
9150      ;;
9151
9152    *nto* | *qnx*)
9153      # QNX uses GNU C++, but need to define -shared option too, otherwise
9154      # it will coredump.
9155      lt_prog_compiler_pic='-fPIC -shared'
9156      ;;
9157
9158    osf3* | osf4* | osf5*)
9159      lt_prog_compiler_wl='-Wl,'
9160      # All OSF/1 code is PIC.
9161      lt_prog_compiler_static='-non_shared'
9162      ;;
9163
9164    rdos*)
9165      lt_prog_compiler_static='-non_shared'
9166      ;;
9167
9168    solaris*)
9169      lt_prog_compiler_pic='-KPIC'
9170      lt_prog_compiler_static='-Bstatic'
9171      case $cc_basename in
9172      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9173	lt_prog_compiler_wl='-Qoption ld ';;
9174      *)
9175	lt_prog_compiler_wl='-Wl,';;
9176      esac
9177      ;;
9178
9179    sunos4*)
9180      lt_prog_compiler_wl='-Qoption ld '
9181      lt_prog_compiler_pic='-PIC'
9182      lt_prog_compiler_static='-Bstatic'
9183      ;;
9184
9185    sysv4 | sysv4.2uw2* | sysv4.3*)
9186      lt_prog_compiler_wl='-Wl,'
9187      lt_prog_compiler_pic='-KPIC'
9188      lt_prog_compiler_static='-Bstatic'
9189      ;;
9190
9191    sysv4*MP*)
9192      if test -d /usr/nec; then
9193	lt_prog_compiler_pic='-Kconform_pic'
9194	lt_prog_compiler_static='-Bstatic'
9195      fi
9196      ;;
9197
9198    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9199      lt_prog_compiler_wl='-Wl,'
9200      lt_prog_compiler_pic='-KPIC'
9201      lt_prog_compiler_static='-Bstatic'
9202      ;;
9203
9204    unicos*)
9205      lt_prog_compiler_wl='-Wl,'
9206      lt_prog_compiler_can_build_shared=no
9207      ;;
9208
9209    uts4*)
9210      lt_prog_compiler_pic='-pic'
9211      lt_prog_compiler_static='-Bstatic'
9212      ;;
9213
9214    *)
9215      lt_prog_compiler_can_build_shared=no
9216      ;;
9217    esac
9218  fi
9219
9220case $host_os in
9221  # For platforms that do not support PIC, -DPIC is meaningless:
9222  *djgpp*)
9223    lt_prog_compiler_pic=
9224    ;;
9225  *)
9226    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9227    ;;
9228esac
9229
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9231$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9232if ${lt_cv_prog_compiler_pic+:} false; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9238$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9239lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9240
9241#
9242# Check to make sure the PIC flag actually works.
9243#
9244if test -n "$lt_prog_compiler_pic"; then
9245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9246$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9247if ${lt_cv_prog_compiler_pic_works+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  lt_cv_prog_compiler_pic_works=no
9251   ac_outfile=conftest.$ac_objext
9252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9254   # Insert the option either (1) after the last *FLAGS variable, or
9255   # (2) before a word containing "conftest.", or (3) at the end.
9256   # Note that $ac_compile itself does not contain backslashes and begins
9257   # with a dollar sign (not a hyphen), so the echo should work correctly.
9258   # The option is referenced via a variable to avoid confusing sed.
9259   lt_compile=`echo "$ac_compile" | $SED \
9260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262   -e 's:$: $lt_compiler_flag:'`
9263   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9264   (eval "$lt_compile" 2>conftest.err)
9265   ac_status=$?
9266   cat conftest.err >&5
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   if (exit $ac_status) && test -s "$ac_outfile"; then
9269     # The compiler can only warn and ignore the option if not recognized
9270     # So say no if there are warnings other than the usual output.
9271     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9272     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9273     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9274       lt_cv_prog_compiler_pic_works=yes
9275     fi
9276   fi
9277   $RM conftest*
9278
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9281$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9282
9283if test yes = "$lt_cv_prog_compiler_pic_works"; then
9284    case $lt_prog_compiler_pic in
9285     "" | " "*) ;;
9286     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9287     esac
9288else
9289    lt_prog_compiler_pic=
9290     lt_prog_compiler_can_build_shared=no
9291fi
9292
9293fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305#
9306# Check to make sure the static flag actually works.
9307#
9308wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9310$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9311if ${lt_cv_prog_compiler_static_works+:} false; then :
9312  $as_echo_n "(cached) " >&6
9313else
9314  lt_cv_prog_compiler_static_works=no
9315   save_LDFLAGS=$LDFLAGS
9316   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9317   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9318   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9319     # The linker can only warn and ignore the option if not recognized
9320     # So say no if there are warnings
9321     if test -s conftest.err; then
9322       # Append any errors to the config.log.
9323       cat conftest.err 1>&5
9324       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9325       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326       if diff conftest.exp conftest.er2 >/dev/null; then
9327         lt_cv_prog_compiler_static_works=yes
9328       fi
9329     else
9330       lt_cv_prog_compiler_static_works=yes
9331     fi
9332   fi
9333   $RM -r conftest*
9334   LDFLAGS=$save_LDFLAGS
9335
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9338$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9339
9340if test yes = "$lt_cv_prog_compiler_static_works"; then
9341    :
9342else
9343    lt_prog_compiler_static=
9344fi
9345
9346
9347
9348
9349
9350
9351
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9353$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9354if ${lt_cv_prog_compiler_c_o+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  lt_cv_prog_compiler_c_o=no
9358   $RM -r conftest 2>/dev/null
9359   mkdir conftest
9360   cd conftest
9361   mkdir out
9362   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364   lt_compiler_flag="-o out/conftest2.$ac_objext"
9365   # Insert the option either (1) after the last *FLAGS variable, or
9366   # (2) before a word containing "conftest.", or (3) at the end.
9367   # Note that $ac_compile itself does not contain backslashes and begins
9368   # with a dollar sign (not a hyphen), so the echo should work correctly.
9369   lt_compile=`echo "$ac_compile" | $SED \
9370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372   -e 's:$: $lt_compiler_flag:'`
9373   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9374   (eval "$lt_compile" 2>out/conftest.err)
9375   ac_status=$?
9376   cat out/conftest.err >&5
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379   then
9380     # The compiler can only warn and ignore the option if not recognized
9381     # So say no if there are warnings
9382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9383     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385       lt_cv_prog_compiler_c_o=yes
9386     fi
9387   fi
9388   chmod u+w . 2>&5
9389   $RM conftest*
9390   # SGI C++ compiler will create directory out/ii_files/ for
9391   # template instantiation
9392   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393   $RM out/* && rmdir out
9394   cd ..
9395   $RM -r conftest
9396   $RM conftest*
9397
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9401
9402
9403
9404
9405
9406
9407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9408$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9409if ${lt_cv_prog_compiler_c_o+:} false; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  lt_cv_prog_compiler_c_o=no
9413   $RM -r conftest 2>/dev/null
9414   mkdir conftest
9415   cd conftest
9416   mkdir out
9417   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418
9419   lt_compiler_flag="-o out/conftest2.$ac_objext"
9420   # Insert the option either (1) after the last *FLAGS variable, or
9421   # (2) before a word containing "conftest.", or (3) at the end.
9422   # Note that $ac_compile itself does not contain backslashes and begins
9423   # with a dollar sign (not a hyphen), so the echo should work correctly.
9424   lt_compile=`echo "$ac_compile" | $SED \
9425   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427   -e 's:$: $lt_compiler_flag:'`
9428   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9429   (eval "$lt_compile" 2>out/conftest.err)
9430   ac_status=$?
9431   cat out/conftest.err >&5
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9434   then
9435     # The compiler can only warn and ignore the option if not recognized
9436     # So say no if there are warnings
9437     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9438     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9439     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9440       lt_cv_prog_compiler_c_o=yes
9441     fi
9442   fi
9443   chmod u+w . 2>&5
9444   $RM conftest*
9445   # SGI C++ compiler will create directory out/ii_files/ for
9446   # template instantiation
9447   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9448   $RM out/* && rmdir out
9449   cd ..
9450   $RM -r conftest
9451   $RM conftest*
9452
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9455$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9456
9457
9458
9459
9460hard_links=nottested
9461if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9462  # do not overwrite the value of need_locks provided by the user
9463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9464$as_echo_n "checking if we can lock with hard links... " >&6; }
9465  hard_links=yes
9466  $RM conftest*
9467  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9468  touch conftest.a
9469  ln conftest.a conftest.b 2>&5 || hard_links=no
9470  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9472$as_echo "$hard_links" >&6; }
9473  if test no = "$hard_links"; then
9474    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9475$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9476    need_locks=warn
9477  fi
9478else
9479  need_locks=no
9480fi
9481
9482
9483
9484
9485
9486
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9488$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9489
9490  runpath_var=
9491  allow_undefined_flag=
9492  always_export_symbols=no
9493  archive_cmds=
9494  archive_expsym_cmds=
9495  compiler_needs_object=no
9496  enable_shared_with_static_runtimes=no
9497  export_dynamic_flag_spec=
9498  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9499  hardcode_automatic=no
9500  hardcode_direct=no
9501  hardcode_direct_absolute=no
9502  hardcode_libdir_flag_spec=
9503  hardcode_libdir_separator=
9504  hardcode_minus_L=no
9505  hardcode_shlibpath_var=unsupported
9506  inherit_rpath=no
9507  link_all_deplibs=unknown
9508  module_cmds=
9509  module_expsym_cmds=
9510  old_archive_from_new_cmds=
9511  old_archive_from_expsyms_cmds=
9512  thread_safe_flag_spec=
9513  whole_archive_flag_spec=
9514  # include_expsyms should be a list of space-separated symbols to be *always*
9515  # included in the symbol list
9516  include_expsyms=
9517  # exclude_expsyms can be an extended regexp of symbols to exclude
9518  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9519  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9520  # as well as any symbol that contains 'd'.
9521  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9522  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9523  # platforms (ab)use it in PIC code, but their linkers get confused if
9524  # the symbol is explicitly referenced.  Since portable code cannot
9525  # rely on this symbol name, it's probably fine to never include it in
9526  # preloaded symbol tables.
9527  # Exclude shared library initialization/finalization symbols.
9528  extract_expsyms_cmds=
9529
9530  case $host_os in
9531  cygwin* | mingw* | pw32* | cegcc*)
9532    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9533    # When not using gcc, we currently assume that we are using
9534    # Microsoft Visual C++.
9535    if test yes != "$GCC"; then
9536      with_gnu_ld=no
9537    fi
9538    ;;
9539  interix*)
9540    # we just hope/assume this is gcc and not c89 (= MSVC++)
9541    with_gnu_ld=yes
9542    ;;
9543  openbsd* | bitrig*)
9544    with_gnu_ld=no
9545    ;;
9546  esac
9547
9548  ld_shlibs=yes
9549
9550  # On some targets, GNU ld is compatible enough with the native linker
9551  # that we're better off using the native interface for both.
9552  lt_use_gnu_ld_interface=no
9553  if test yes = "$with_gnu_ld"; then
9554    case $host_os in
9555      aix*)
9556	# The AIX port of GNU ld has always aspired to compatibility
9557	# with the native linker.  However, as the warning in the GNU ld
9558	# block says, versions before 2.19.5* couldn't really create working
9559	# shared libraries, regardless of the interface used.
9560	case `$LD -v 2>&1` in
9561	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9562	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9563	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9564	  *)
9565	    lt_use_gnu_ld_interface=yes
9566	    ;;
9567	esac
9568	;;
9569      *)
9570	lt_use_gnu_ld_interface=yes
9571	;;
9572    esac
9573  fi
9574
9575  if test yes = "$lt_use_gnu_ld_interface"; then
9576    # If archive_cmds runs LD, not CC, wlarc should be empty
9577    wlarc='$wl'
9578
9579    # Set some defaults for GNU ld with shared library support. These
9580    # are reset later if shared libraries are not supported. Putting them
9581    # here allows them to be overridden if necessary.
9582    runpath_var=LD_RUN_PATH
9583    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9584    export_dynamic_flag_spec='$wl--export-dynamic'
9585    # ancient GNU ld didn't support --whole-archive et. al.
9586    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9587      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9588    else
9589      whole_archive_flag_spec=
9590    fi
9591    supports_anon_versioning=no
9592    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9593      *GNU\ gold*) supports_anon_versioning=yes ;;
9594      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9595      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9596      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9597      *\ 2.11.*) ;; # other 2.11 versions
9598      *) supports_anon_versioning=yes ;;
9599    esac
9600
9601    # See if GNU ld supports shared libraries.
9602    case $host_os in
9603    aix[3-9]*)
9604      # On AIX/PPC, the GNU linker is very broken
9605      if test ia64 != "$host_cpu"; then
9606	ld_shlibs=no
9607	cat <<_LT_EOF 1>&2
9608
9609*** Warning: the GNU linker, at least up to release 2.19, is reported
9610*** to be unable to reliably create shared libraries on AIX.
9611*** Therefore, libtool is disabling shared libraries support.  If you
9612*** really care for shared libraries, you may want to install binutils
9613*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9614*** You will then need to restart the configuration process.
9615
9616_LT_EOF
9617      fi
9618      ;;
9619
9620    amigaos*)
9621      case $host_cpu in
9622      powerpc)
9623            # see comment about AmigaOS4 .so support
9624            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9625            archive_expsym_cmds=''
9626        ;;
9627      m68k)
9628            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)'
9629            hardcode_libdir_flag_spec='-L$libdir'
9630            hardcode_minus_L=yes
9631        ;;
9632      esac
9633      ;;
9634
9635    beos*)
9636      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637	allow_undefined_flag=unsupported
9638	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9639	# support --undefined.  This deserves some investigation.  FIXME
9640	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9641      else
9642	ld_shlibs=no
9643      fi
9644      ;;
9645
9646    cygwin* | mingw* | pw32* | cegcc*)
9647      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9648      # as there is no search path for DLLs.
9649      hardcode_libdir_flag_spec='-L$libdir'
9650      export_dynamic_flag_spec='$wl--export-all-symbols'
9651      allow_undefined_flag=unsupported
9652      always_export_symbols=no
9653      enable_shared_with_static_runtimes=yes
9654      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'
9655      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9656
9657      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9658        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9659	# If the export-symbols file already is a .def file, use it as
9660	# is; otherwise, prepend EXPORTS...
9661	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9662          cp $export_symbols $output_objdir/$soname.def;
9663        else
9664          echo EXPORTS > $output_objdir/$soname.def;
9665          cat $export_symbols >> $output_objdir/$soname.def;
9666        fi~
9667        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9668      else
9669	ld_shlibs=no
9670      fi
9671      ;;
9672
9673    haiku*)
9674      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9675      link_all_deplibs=yes
9676      ;;
9677
9678    os2*)
9679      hardcode_libdir_flag_spec='-L$libdir'
9680      hardcode_minus_L=yes
9681      allow_undefined_flag=unsupported
9682      shrext_cmds=.dll
9683      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9684	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9685	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9686	$ECHO EXPORTS >> $output_objdir/$libname.def~
9687	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9688	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9689	emximp -o $lib $output_objdir/$libname.def'
9690      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9691	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9692	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9693	$ECHO EXPORTS >> $output_objdir/$libname.def~
9694	prefix_cmds="$SED"~
9695	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9696	  prefix_cmds="$prefix_cmds -e 1d";
9697	fi~
9698	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9699	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9700	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9701	emximp -o $lib $output_objdir/$libname.def'
9702      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9703      enable_shared_with_static_runtimes=yes
9704      ;;
9705
9706    interix[3-9]*)
9707      hardcode_direct=no
9708      hardcode_shlibpath_var=no
9709      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9710      export_dynamic_flag_spec='$wl-E'
9711      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9712      # Instead, shared libraries are loaded at an image base (0x10000000 by
9713      # default) and relocated if they conflict, which is a slow very memory
9714      # consuming and fragmenting process.  To avoid this, we pick a random,
9715      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9716      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9717      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9718      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'
9719      ;;
9720
9721    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9722      tmp_diet=no
9723      if test linux-dietlibc = "$host_os"; then
9724	case $cc_basename in
9725	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9726	esac
9727      fi
9728      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9729	 && test no = "$tmp_diet"
9730      then
9731	tmp_addflag=' $pic_flag'
9732	tmp_sharedflag='-shared'
9733	case $cc_basename,$host_cpu in
9734        pgcc*)				# Portland Group C compiler
9735	  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'
9736	  tmp_addflag=' $pic_flag'
9737	  ;;
9738	pgf77* | pgf90* | pgf95* | pgfortran*)
9739					# Portland Group f77 and f90 compilers
9740	  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'
9741	  tmp_addflag=' $pic_flag -Mnomain' ;;
9742	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9743	  tmp_addflag=' -i_dynamic' ;;
9744	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9745	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9746	ifc* | ifort*)			# Intel Fortran compiler
9747	  tmp_addflag=' -nofor_main' ;;
9748	lf95*)				# Lahey Fortran 8.1
9749	  whole_archive_flag_spec=
9750	  tmp_sharedflag='--shared' ;;
9751        nagfor*)                        # NAGFOR 5.3
9752          tmp_sharedflag='-Wl,-shared' ;;
9753	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9754	  tmp_sharedflag='-qmkshrobj'
9755	  tmp_addflag= ;;
9756	nvcc*)	# Cuda Compiler Driver 2.2
9757	  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'
9758	  compiler_needs_object=yes
9759	  ;;
9760	esac
9761	case `$CC -V 2>&1 | sed 5q` in
9762	*Sun\ C*)			# Sun C 5.9
9763	  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'
9764	  compiler_needs_object=yes
9765	  tmp_sharedflag='-G' ;;
9766	*Sun\ F*)			# Sun Fortran 8.3
9767	  tmp_sharedflag='-G' ;;
9768	esac
9769	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9770
9771        if test yes = "$supports_anon_versioning"; then
9772          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9773            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9774            echo "local: *; };" >> $output_objdir/$libname.ver~
9775            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9776        fi
9777
9778	case $cc_basename in
9779	tcc*)
9780	  export_dynamic_flag_spec='-rdynamic'
9781	  ;;
9782	xlf* | bgf* | bgxlf* | mpixlf*)
9783	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9784	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9785	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9786	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9787	  if test yes = "$supports_anon_versioning"; then
9788	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9789              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9790              echo "local: *; };" >> $output_objdir/$libname.ver~
9791              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9792	  fi
9793	  ;;
9794	esac
9795      else
9796        ld_shlibs=no
9797      fi
9798      ;;
9799
9800    netbsd*)
9801      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9802	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9803	wlarc=
9804      else
9805	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9806	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9807      fi
9808      ;;
9809
9810    solaris*)
9811      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9812	ld_shlibs=no
9813	cat <<_LT_EOF 1>&2
9814
9815*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9816*** create shared libraries on Solaris systems.  Therefore, libtool
9817*** is disabling shared libraries support.  We urge you to upgrade GNU
9818*** binutils to release 2.9.1 or newer.  Another option is to modify
9819*** your PATH or compiler configuration so that the native linker is
9820*** used, and then restart.
9821
9822_LT_EOF
9823      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9824	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9825	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9826      else
9827	ld_shlibs=no
9828      fi
9829      ;;
9830
9831    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9832      case `$LD -v 2>&1` in
9833        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9834	ld_shlibs=no
9835	cat <<_LT_EOF 1>&2
9836
9837*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9838*** reliably create shared libraries on SCO systems.  Therefore, libtool
9839*** is disabling shared libraries support.  We urge you to upgrade GNU
9840*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9841*** your PATH or compiler configuration so that the native linker is
9842*** used, and then restart.
9843
9844_LT_EOF
9845	;;
9846	*)
9847	  # For security reasons, it is highly recommended that you always
9848	  # use absolute paths for naming shared libraries, and exclude the
9849	  # DT_RUNPATH tag from executables and libraries.  But doing so
9850	  # requires that you compile everything twice, which is a pain.
9851	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9852	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9853	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9854	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9855	  else
9856	    ld_shlibs=no
9857	  fi
9858	;;
9859      esac
9860      ;;
9861
9862    sunos4*)
9863      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9864      wlarc=
9865      hardcode_direct=yes
9866      hardcode_shlibpath_var=no
9867      ;;
9868
9869    *)
9870      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9872	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9873      else
9874	ld_shlibs=no
9875      fi
9876      ;;
9877    esac
9878
9879    if test no = "$ld_shlibs"; then
9880      runpath_var=
9881      hardcode_libdir_flag_spec=
9882      export_dynamic_flag_spec=
9883      whole_archive_flag_spec=
9884    fi
9885  else
9886    # PORTME fill in a description of your system's linker (not GNU ld)
9887    case $host_os in
9888    aix3*)
9889      allow_undefined_flag=unsupported
9890      always_export_symbols=yes
9891      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'
9892      # Note: this linker hardcodes the directories in LIBPATH if there
9893      # are no directories specified by -L.
9894      hardcode_minus_L=yes
9895      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9896	# Neither direct hardcoding nor static linking is supported with a
9897	# broken collect2.
9898	hardcode_direct=unsupported
9899      fi
9900      ;;
9901
9902    aix[4-9]*)
9903      if test ia64 = "$host_cpu"; then
9904	# On IA64, the linker does run time linking by default, so we don't
9905	# have to do anything special.
9906	aix_use_runtimelinking=no
9907	exp_sym_flag='-Bexport'
9908	no_entry_flag=
9909      else
9910	# If we're using GNU nm, then we don't want the "-C" option.
9911	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9912	# Without the "-l" option, or with the "-B" option, AIX nm treats
9913	# weak defined symbols like other global defined symbols, whereas
9914	# GNU nm marks them as "W".
9915	# While the 'weak' keyword is ignored in the Export File, we need
9916	# it in the Import File for the 'aix-soname' feature, so we have
9917	# to replace the "-B" option with "-P" for AIX nm.
9918	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9919	  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'
9920	else
9921	  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'
9922	fi
9923	aix_use_runtimelinking=no
9924
9925	# Test if we are trying to use run time linking or normal
9926	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9927	# have runtime linking enabled, and use it for executables.
9928	# For shared libraries, we enable/disable runtime linking
9929	# depending on the kind of the shared library created -
9930	# when "with_aix_soname,aix_use_runtimelinking" is:
9931	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9932	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9933	#            lib.a           static archive
9934	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9935	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9936	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9937	#            lib.a(lib.so.V) shared, rtl:no
9938	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9939	#            lib.a           static archive
9940	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9941	  for ld_flag in $LDFLAGS; do
9942	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9943	    aix_use_runtimelinking=yes
9944	    break
9945	  fi
9946	  done
9947	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9948	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9949	    # so we don't have lib.a shared libs to link our executables.
9950	    # We have to force runtime linking in this case.
9951	    aix_use_runtimelinking=yes
9952	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9953	  fi
9954	  ;;
9955	esac
9956
9957	exp_sym_flag='-bexport'
9958	no_entry_flag='-bnoentry'
9959      fi
9960
9961      # When large executables or shared objects are built, AIX ld can
9962      # have problems creating the table of contents.  If linking a library
9963      # or program results in "error TOC overflow" add -mminimal-toc to
9964      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9965      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9966
9967      archive_cmds=''
9968      hardcode_direct=yes
9969      hardcode_direct_absolute=yes
9970      hardcode_libdir_separator=':'
9971      link_all_deplibs=yes
9972      file_list_spec='$wl-f,'
9973      case $with_aix_soname,$aix_use_runtimelinking in
9974      aix,*) ;; # traditional, no import file
9975      svr4,* | *,yes) # use import file
9976	# The Import File defines what to hardcode.
9977	hardcode_direct=no
9978	hardcode_direct_absolute=no
9979	;;
9980      esac
9981
9982      if test yes = "$GCC"; then
9983	case $host_os in aix4.[012]|aix4.[012].*)
9984	# We only want to do this on AIX 4.2 and lower, the check
9985	# below for broken collect2 doesn't work under 4.3+
9986	  collect2name=`$CC -print-prog-name=collect2`
9987	  if test -f "$collect2name" &&
9988	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9989	  then
9990	  # We have reworked collect2
9991	  :
9992	  else
9993	  # We have old collect2
9994	  hardcode_direct=unsupported
9995	  # It fails to find uninstalled libraries when the uninstalled
9996	  # path is not listed in the libpath.  Setting hardcode_minus_L
9997	  # to unsupported forces relinking
9998	  hardcode_minus_L=yes
9999	  hardcode_libdir_flag_spec='-L$libdir'
10000	  hardcode_libdir_separator=
10001	  fi
10002	  ;;
10003	esac
10004	shared_flag='-shared'
10005	if test yes = "$aix_use_runtimelinking"; then
10006	  shared_flag="$shared_flag "'$wl-G'
10007	fi
10008	# Need to ensure runtime linking is disabled for the traditional
10009	# shared library, or the linker may eventually find shared libraries
10010	# /with/ Import File - we do not want to mix them.
10011	shared_flag_aix='-shared'
10012	shared_flag_svr4='-shared $wl-G'
10013      else
10014	# not using gcc
10015	if test ia64 = "$host_cpu"; then
10016	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10017	# chokes on -Wl,-G. The following line is correct:
10018	  shared_flag='-G'
10019	else
10020	  if test yes = "$aix_use_runtimelinking"; then
10021	    shared_flag='$wl-G'
10022	  else
10023	    shared_flag='$wl-bM:SRE'
10024	  fi
10025	  shared_flag_aix='$wl-bM:SRE'
10026	  shared_flag_svr4='$wl-G'
10027	fi
10028      fi
10029
10030      export_dynamic_flag_spec='$wl-bexpall'
10031      # It seems that -bexpall does not export symbols beginning with
10032      # underscore (_), so it is better to generate a list of symbols to export.
10033      always_export_symbols=yes
10034      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10035	# Warning - without using the other runtime loading flags (-brtl),
10036	# -berok will link without error, but may produce a broken library.
10037	allow_undefined_flag='-berok'
10038        # Determine the default libpath from the value encoded in an
10039        # empty executable.
10040        if test set = "${lt_cv_aix_libpath+set}"; then
10041  aix_libpath=$lt_cv_aix_libpath
10042else
10043  if ${lt_cv_aix_libpath_+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048
10049int
10050main ()
10051{
10052
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058
10059  lt_aix_libpath_sed='
10060      /Import File Strings/,/^$/ {
10061	  /^0/ {
10062	      s/^0  *\([^ ]*\) *$/\1/
10063	      p
10064	  }
10065      }'
10066  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067  # Check for a 64-bit object if we didn't find anything.
10068  if test -z "$lt_cv_aix_libpath_"; then
10069    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10070  fi
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074  if test -z "$lt_cv_aix_libpath_"; then
10075    lt_cv_aix_libpath_=/usr/lib:/lib
10076  fi
10077
10078fi
10079
10080  aix_libpath=$lt_cv_aix_libpath_
10081fi
10082
10083        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10084        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
10085      else
10086	if test ia64 = "$host_cpu"; then
10087	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10088	  allow_undefined_flag="-z nodefs"
10089	  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"
10090	else
10091	 # Determine the default libpath from the value encoded in an
10092	 # empty executable.
10093	 if test set = "${lt_cv_aix_libpath+set}"; then
10094  aix_libpath=$lt_cv_aix_libpath
10095else
10096  if ${lt_cv_aix_libpath_+:} false; then :
10097  $as_echo_n "(cached) " >&6
10098else
10099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h.  */
10101
10102int
10103main ()
10104{
10105
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110if ac_fn_c_try_link "$LINENO"; then :
10111
10112  lt_aix_libpath_sed='
10113      /Import File Strings/,/^$/ {
10114	  /^0/ {
10115	      s/^0  *\([^ ]*\) *$/\1/
10116	      p
10117	  }
10118      }'
10119  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120  # Check for a 64-bit object if we didn't find anything.
10121  if test -z "$lt_cv_aix_libpath_"; then
10122    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123  fi
10124fi
10125rm -f core conftest.err conftest.$ac_objext \
10126    conftest$ac_exeext conftest.$ac_ext
10127  if test -z "$lt_cv_aix_libpath_"; then
10128    lt_cv_aix_libpath_=/usr/lib:/lib
10129  fi
10130
10131fi
10132
10133  aix_libpath=$lt_cv_aix_libpath_
10134fi
10135
10136	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10137	  # Warning - without using the other run time loading flags,
10138	  # -berok will link without error, but may produce a broken library.
10139	  no_undefined_flag=' $wl-bernotok'
10140	  allow_undefined_flag=' $wl-berok'
10141	  if test yes = "$with_gnu_ld"; then
10142	    # We only use this code for GNU lds that support --whole-archive.
10143	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10144	  else
10145	    # Exported symbols can be pulled into shared objects from archives
10146	    whole_archive_flag_spec='$convenience'
10147	  fi
10148	  archive_cmds_need_lc=yes
10149	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10150	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10151	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10152	  if test svr4 != "$with_aix_soname"; then
10153	    # This is similar to how AIX traditionally builds its shared libraries.
10154	    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'
10155	  fi
10156	  if test aix != "$with_aix_soname"; then
10157	    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'
10158	  else
10159	    # used by -dlpreopen to get the symbols
10160	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10161	  fi
10162	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10163	fi
10164      fi
10165      ;;
10166
10167    amigaos*)
10168      case $host_cpu in
10169      powerpc)
10170            # see comment about AmigaOS4 .so support
10171            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10172            archive_expsym_cmds=''
10173        ;;
10174      m68k)
10175            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)'
10176            hardcode_libdir_flag_spec='-L$libdir'
10177            hardcode_minus_L=yes
10178        ;;
10179      esac
10180      ;;
10181
10182    bsdi[45]*)
10183      export_dynamic_flag_spec=-rdynamic
10184      ;;
10185
10186    cygwin* | mingw* | pw32* | cegcc*)
10187      # When not using gcc, we currently assume that we are using
10188      # Microsoft Visual C++.
10189      # hardcode_libdir_flag_spec is actually meaningless, as there is
10190      # no search path for DLLs.
10191      case $cc_basename in
10192      cl*)
10193	# Native MSVC
10194	hardcode_libdir_flag_spec=' '
10195	allow_undefined_flag=unsupported
10196	always_export_symbols=yes
10197	file_list_spec='@'
10198	# Tell ltmain to make .lib files, not .a files.
10199	libext=lib
10200	# Tell ltmain to make .dll files, not .so files.
10201	shrext_cmds=.dll
10202	# FIXME: Setting linknames here is a bad hack.
10203	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10204	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10205            cp "$export_symbols" "$output_objdir/$soname.def";
10206            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10207          else
10208            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10209          fi~
10210          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10211          linknames='
10212	# The linker will not automatically build a static lib if we build a DLL.
10213	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10214	enable_shared_with_static_runtimes=yes
10215	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10216	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10217	# Don't use ranlib
10218	old_postinstall_cmds='chmod 644 $oldlib'
10219	postlink_cmds='lt_outputfile="@OUTPUT@"~
10220          lt_tool_outputfile="@TOOL_OUTPUT@"~
10221          case $lt_outputfile in
10222            *.exe|*.EXE) ;;
10223            *)
10224              lt_outputfile=$lt_outputfile.exe
10225              lt_tool_outputfile=$lt_tool_outputfile.exe
10226              ;;
10227          esac~
10228          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10229            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10230            $RM "$lt_outputfile.manifest";
10231          fi'
10232	;;
10233      *)
10234	# Assume MSVC wrapper
10235	hardcode_libdir_flag_spec=' '
10236	allow_undefined_flag=unsupported
10237	# Tell ltmain to make .lib files, not .a files.
10238	libext=lib
10239	# Tell ltmain to make .dll files, not .so files.
10240	shrext_cmds=.dll
10241	# FIXME: Setting linknames here is a bad hack.
10242	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10243	# The linker will automatically build a .lib file if we build a DLL.
10244	old_archive_from_new_cmds='true'
10245	# FIXME: Should let the user specify the lib program.
10246	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10247	enable_shared_with_static_runtimes=yes
10248	;;
10249      esac
10250      ;;
10251
10252    darwin* | rhapsody*)
10253
10254
10255  archive_cmds_need_lc=no
10256  hardcode_direct=no
10257  hardcode_automatic=yes
10258  hardcode_shlibpath_var=unsupported
10259  if test yes = "$lt_cv_ld_force_load"; then
10260    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\"`'
10261
10262  else
10263    whole_archive_flag_spec=''
10264  fi
10265  link_all_deplibs=yes
10266  allow_undefined_flag=$_lt_dar_allow_undefined
10267  case $cc_basename in
10268     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10269     *) _lt_dar_can_shared=$GCC ;;
10270  esac
10271  if test yes = "$_lt_dar_can_shared"; then
10272    output_verbose_link_cmd=func_echo_all
10273    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10274    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10275    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"
10276    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"
10277
10278  else
10279  ld_shlibs=no
10280  fi
10281
10282      ;;
10283
10284    dgux*)
10285      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286      hardcode_libdir_flag_spec='-L$libdir'
10287      hardcode_shlibpath_var=no
10288      ;;
10289
10290    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10291    # support.  Future versions do this automatically, but an explicit c++rt0.o
10292    # does not break anything, and helps significantly (at the cost of a little
10293    # extra space).
10294    freebsd2.2*)
10295      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10296      hardcode_libdir_flag_spec='-R$libdir'
10297      hardcode_direct=yes
10298      hardcode_shlibpath_var=no
10299      ;;
10300
10301    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10302    freebsd2.*)
10303      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10304      hardcode_direct=yes
10305      hardcode_minus_L=yes
10306      hardcode_shlibpath_var=no
10307      ;;
10308
10309    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10310    freebsd* | dragonfly*)
10311      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10312      hardcode_libdir_flag_spec='-R$libdir'
10313      hardcode_direct=yes
10314      hardcode_shlibpath_var=no
10315      ;;
10316
10317    hpux9*)
10318      if test yes = "$GCC"; then
10319	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'
10320      else
10321	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'
10322      fi
10323      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10324      hardcode_libdir_separator=:
10325      hardcode_direct=yes
10326
10327      # hardcode_minus_L: Not really in the search PATH,
10328      # but as the default location of the library.
10329      hardcode_minus_L=yes
10330      export_dynamic_flag_spec='$wl-E'
10331      ;;
10332
10333    hpux10*)
10334      if test yes,no = "$GCC,$with_gnu_ld"; then
10335	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336      else
10337	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10338      fi
10339      if test no = "$with_gnu_ld"; then
10340	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10341	hardcode_libdir_separator=:
10342	hardcode_direct=yes
10343	hardcode_direct_absolute=yes
10344	export_dynamic_flag_spec='$wl-E'
10345	# hardcode_minus_L: Not really in the search PATH,
10346	# but as the default location of the library.
10347	hardcode_minus_L=yes
10348      fi
10349      ;;
10350
10351    hpux11*)
10352      if test yes,no = "$GCC,$with_gnu_ld"; then
10353	case $host_cpu in
10354	hppa*64*)
10355	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10356	  ;;
10357	ia64*)
10358	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10359	  ;;
10360	*)
10361	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10362	  ;;
10363	esac
10364      else
10365	case $host_cpu in
10366	hppa*64*)
10367	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10368	  ;;
10369	ia64*)
10370	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10371	  ;;
10372	*)
10373
10374	  # Older versions of the 11.00 compiler do not understand -b yet
10375	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10376	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10377$as_echo_n "checking if $CC understands -b... " >&6; }
10378if ${lt_cv_prog_compiler__b+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  lt_cv_prog_compiler__b=no
10382   save_LDFLAGS=$LDFLAGS
10383   LDFLAGS="$LDFLAGS -b"
10384   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10385   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10386     # The linker can only warn and ignore the option if not recognized
10387     # So say no if there are warnings
10388     if test -s conftest.err; then
10389       # Append any errors to the config.log.
10390       cat conftest.err 1>&5
10391       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10392       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10393       if diff conftest.exp conftest.er2 >/dev/null; then
10394         lt_cv_prog_compiler__b=yes
10395       fi
10396     else
10397       lt_cv_prog_compiler__b=yes
10398     fi
10399   fi
10400   $RM -r conftest*
10401   LDFLAGS=$save_LDFLAGS
10402
10403fi
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10405$as_echo "$lt_cv_prog_compiler__b" >&6; }
10406
10407if test yes = "$lt_cv_prog_compiler__b"; then
10408    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10409else
10410    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10411fi
10412
10413	  ;;
10414	esac
10415      fi
10416      if test no = "$with_gnu_ld"; then
10417	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10418	hardcode_libdir_separator=:
10419
10420	case $host_cpu in
10421	hppa*64*|ia64*)
10422	  hardcode_direct=no
10423	  hardcode_shlibpath_var=no
10424	  ;;
10425	*)
10426	  hardcode_direct=yes
10427	  hardcode_direct_absolute=yes
10428	  export_dynamic_flag_spec='$wl-E'
10429
10430	  # hardcode_minus_L: Not really in the search PATH,
10431	  # but as the default location of the library.
10432	  hardcode_minus_L=yes
10433	  ;;
10434	esac
10435      fi
10436      ;;
10437
10438    irix5* | irix6* | nonstopux*)
10439      if test yes = "$GCC"; then
10440	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'
10441	# Try to use the -exported_symbol ld option, if it does not
10442	# work, assume that -exports_file does not work either and
10443	# implicitly export all symbols.
10444	# This should be the same for all languages, so no per-tag cache variable.
10445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10446$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10447if ${lt_cv_irix_exported_symbol+:} false; then :
10448  $as_echo_n "(cached) " >&6
10449else
10450  save_LDFLAGS=$LDFLAGS
10451	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10452	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453/* end confdefs.h.  */
10454int foo (void) { return 0; }
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457  lt_cv_irix_exported_symbol=yes
10458else
10459  lt_cv_irix_exported_symbol=no
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462    conftest$ac_exeext conftest.$ac_ext
10463           LDFLAGS=$save_LDFLAGS
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10466$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10467	if test yes = "$lt_cv_irix_exported_symbol"; then
10468          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'
10469	fi
10470      else
10471	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'
10472	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'
10473      fi
10474      archive_cmds_need_lc='no'
10475      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10476      hardcode_libdir_separator=:
10477      inherit_rpath=yes
10478      link_all_deplibs=yes
10479      ;;
10480
10481    linux*)
10482      case $cc_basename in
10483      tcc*)
10484	# Fabrice Bellard et al's Tiny C Compiler
10485	ld_shlibs=yes
10486	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10487	;;
10488      esac
10489      ;;
10490
10491    netbsd*)
10492      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10493	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10494      else
10495	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10496      fi
10497      hardcode_libdir_flag_spec='-R$libdir'
10498      hardcode_direct=yes
10499      hardcode_shlibpath_var=no
10500      ;;
10501
10502    newsos6)
10503      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10504      hardcode_direct=yes
10505      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10506      hardcode_libdir_separator=:
10507      hardcode_shlibpath_var=no
10508      ;;
10509
10510    *nto* | *qnx*)
10511      ;;
10512
10513    openbsd* | bitrig*)
10514      if test -f /usr/libexec/ld.so; then
10515	hardcode_direct=yes
10516	hardcode_shlibpath_var=no
10517	hardcode_direct_absolute=yes
10518	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10519	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10520	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10521	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10522	  export_dynamic_flag_spec='$wl-E'
10523	else
10524	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10525	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10526	fi
10527      else
10528	ld_shlibs=no
10529      fi
10530      ;;
10531
10532    os2*)
10533      hardcode_libdir_flag_spec='-L$libdir'
10534      hardcode_minus_L=yes
10535      allow_undefined_flag=unsupported
10536      shrext_cmds=.dll
10537      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10538	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10539	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10540	$ECHO EXPORTS >> $output_objdir/$libname.def~
10541	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10542	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10543	emximp -o $lib $output_objdir/$libname.def'
10544      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10545	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10546	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10547	$ECHO EXPORTS >> $output_objdir/$libname.def~
10548	prefix_cmds="$SED"~
10549	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10550	  prefix_cmds="$prefix_cmds -e 1d";
10551	fi~
10552	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10553	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10554	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10555	emximp -o $lib $output_objdir/$libname.def'
10556      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10557      enable_shared_with_static_runtimes=yes
10558      ;;
10559
10560    osf3*)
10561      if test yes = "$GCC"; then
10562	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10563	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'
10564      else
10565	allow_undefined_flag=' -expect_unresolved \*'
10566	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'
10567      fi
10568      archive_cmds_need_lc='no'
10569      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10570      hardcode_libdir_separator=:
10571      ;;
10572
10573    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10574      if test yes = "$GCC"; then
10575	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10576	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'
10577	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10578      else
10579	allow_undefined_flag=' -expect_unresolved \*'
10580	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'
10581	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~
10582          $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'
10583
10584	# Both c and cxx compiler support -rpath directly
10585	hardcode_libdir_flag_spec='-rpath $libdir'
10586      fi
10587      archive_cmds_need_lc='no'
10588      hardcode_libdir_separator=:
10589      ;;
10590
10591    solaris*)
10592      no_undefined_flag=' -z defs'
10593      if test yes = "$GCC"; then
10594	wlarc='$wl'
10595	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10596	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10597          $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'
10598      else
10599	case `$CC -V 2>&1` in
10600	*"Compilers 5.0"*)
10601	  wlarc=''
10602	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10604            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10605	  ;;
10606	*)
10607	  wlarc='$wl'
10608	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10609	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10610            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10611	  ;;
10612	esac
10613      fi
10614      hardcode_libdir_flag_spec='-R$libdir'
10615      hardcode_shlibpath_var=no
10616      case $host_os in
10617      solaris2.[0-5] | solaris2.[0-5].*) ;;
10618      *)
10619	# The compiler driver will combine and reorder linker options,
10620	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10621	# but is careful enough not to reorder.
10622	# Supported since Solaris 2.6 (maybe 2.5.1?)
10623	if test yes = "$GCC"; then
10624	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10625	else
10626	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10627	fi
10628	;;
10629      esac
10630      link_all_deplibs=yes
10631      ;;
10632
10633    sunos4*)
10634      if test sequent = "$host_vendor"; then
10635	# Use $CC to link under sequent, because it throws in some extra .o
10636	# files that make .init and .fini sections work.
10637	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10638      else
10639	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10640      fi
10641      hardcode_libdir_flag_spec='-L$libdir'
10642      hardcode_direct=yes
10643      hardcode_minus_L=yes
10644      hardcode_shlibpath_var=no
10645      ;;
10646
10647    sysv4)
10648      case $host_vendor in
10649	sni)
10650	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651	  hardcode_direct=yes # is this really true???
10652	;;
10653	siemens)
10654	  ## LD is ld it makes a PLAMLIB
10655	  ## CC just makes a GrossModule.
10656	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10657	  reload_cmds='$CC -r -o $output$reload_objs'
10658	  hardcode_direct=no
10659        ;;
10660	motorola)
10661	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10662	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10663	;;
10664      esac
10665      runpath_var='LD_RUN_PATH'
10666      hardcode_shlibpath_var=no
10667      ;;
10668
10669    sysv4.3*)
10670      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10671      hardcode_shlibpath_var=no
10672      export_dynamic_flag_spec='-Bexport'
10673      ;;
10674
10675    sysv4*MP*)
10676      if test -d /usr/nec; then
10677	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10678	hardcode_shlibpath_var=no
10679	runpath_var=LD_RUN_PATH
10680	hardcode_runpath_var=yes
10681	ld_shlibs=yes
10682      fi
10683      ;;
10684
10685    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10686      no_undefined_flag='$wl-z,text'
10687      archive_cmds_need_lc=no
10688      hardcode_shlibpath_var=no
10689      runpath_var='LD_RUN_PATH'
10690
10691      if test yes = "$GCC"; then
10692	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694      else
10695	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697      fi
10698      ;;
10699
10700    sysv5* | sco3.2v5* | sco5v6*)
10701      # Note: We CANNOT use -z defs as we might desire, because we do not
10702      # link with -lc, and that would cause any symbols used from libc to
10703      # always be unresolved, which means just about no library would
10704      # ever link correctly.  If we're not using GNU ld we use -z text
10705      # though, which does catch some bad symbols but isn't as heavy-handed
10706      # as -z defs.
10707      no_undefined_flag='$wl-z,text'
10708      allow_undefined_flag='$wl-z,nodefs'
10709      archive_cmds_need_lc=no
10710      hardcode_shlibpath_var=no
10711      hardcode_libdir_flag_spec='$wl-R,$libdir'
10712      hardcode_libdir_separator=':'
10713      link_all_deplibs=yes
10714      export_dynamic_flag_spec='$wl-Bexport'
10715      runpath_var='LD_RUN_PATH'
10716
10717      if test yes = "$GCC"; then
10718	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720      else
10721	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723      fi
10724      ;;
10725
10726    uts4*)
10727      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728      hardcode_libdir_flag_spec='-L$libdir'
10729      hardcode_shlibpath_var=no
10730      ;;
10731
10732    *)
10733      ld_shlibs=no
10734      ;;
10735    esac
10736
10737    if test sni = "$host_vendor"; then
10738      case $host in
10739      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10740	export_dynamic_flag_spec='$wl-Blargedynsym'
10741	;;
10742      esac
10743    fi
10744  fi
10745
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10747$as_echo "$ld_shlibs" >&6; }
10748test no = "$ld_shlibs" && can_build_shared=no
10749
10750with_gnu_ld=$with_gnu_ld
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766#
10767# Do we need to explicitly link libc?
10768#
10769case "x$archive_cmds_need_lc" in
10770x|xyes)
10771  # Assume -lc should be added
10772  archive_cmds_need_lc=yes
10773
10774  if test yes,yes = "$GCC,$enable_shared"; then
10775    case $archive_cmds in
10776    *'~'*)
10777      # FIXME: we may have to deal with multi-command sequences.
10778      ;;
10779    '$CC '*)
10780      # Test whether the compiler implicitly links with -lc since on some
10781      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10782      # to ld, don't add -lc before -lgcc.
10783      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10784$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10785if ${lt_cv_archive_cmds_need_lc+:} false; then :
10786  $as_echo_n "(cached) " >&6
10787else
10788  $RM conftest*
10789	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10790
10791	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10792  (eval $ac_compile) 2>&5
10793  ac_status=$?
10794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795  test $ac_status = 0; } 2>conftest.err; then
10796	  soname=conftest
10797	  lib=conftest
10798	  libobjs=conftest.$ac_objext
10799	  deplibs=
10800	  wl=$lt_prog_compiler_wl
10801	  pic_flag=$lt_prog_compiler_pic
10802	  compiler_flags=-v
10803	  linker_flags=-v
10804	  verstring=
10805	  output_objdir=.
10806	  libname=conftest
10807	  lt_save_allow_undefined_flag=$allow_undefined_flag
10808	  allow_undefined_flag=
10809	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10810  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10811  ac_status=$?
10812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813  test $ac_status = 0; }
10814	  then
10815	    lt_cv_archive_cmds_need_lc=no
10816	  else
10817	    lt_cv_archive_cmds_need_lc=yes
10818	  fi
10819	  allow_undefined_flag=$lt_save_allow_undefined_flag
10820	else
10821	  cat conftest.err 1>&5
10822	fi
10823	$RM conftest*
10824
10825fi
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10827$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10828      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10829      ;;
10830    esac
10831  fi
10832  ;;
10833esac
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10987$as_echo_n "checking dynamic linker characteristics... " >&6; }
10988
10989if test yes = "$GCC"; then
10990  case $host_os in
10991    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10992    *) lt_awk_arg='/^libraries:/' ;;
10993  esac
10994  case $host_os in
10995    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10996    *) lt_sed_strip_eq='s|=/|/|g' ;;
10997  esac
10998  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10999  case $lt_search_path_spec in
11000  *\;*)
11001    # if the path contains ";" then we assume it to be the separator
11002    # otherwise default to the standard path separator (i.e. ":") - it is
11003    # assumed that no part of a normal pathname contains ";" but that should
11004    # okay in the real world where ";" in dirpaths is itself problematic.
11005    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11006    ;;
11007  *)
11008    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11009    ;;
11010  esac
11011  # Ok, now we have the path, separated by spaces, we can step through it
11012  # and add multilib dir if necessary...
11013  lt_tmp_lt_search_path_spec=
11014  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11015  # ...but if some path component already ends with the multilib dir we assume
11016  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11017  case "$lt_multi_os_dir; $lt_search_path_spec " in
11018  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11019    lt_multi_os_dir=
11020    ;;
11021  esac
11022  for lt_sys_path in $lt_search_path_spec; do
11023    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11024      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11025    elif test -n "$lt_multi_os_dir"; then
11026      test -d "$lt_sys_path" && \
11027	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11028    fi
11029  done
11030  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11031BEGIN {RS = " "; FS = "/|\n";} {
11032  lt_foo = "";
11033  lt_count = 0;
11034  for (lt_i = NF; lt_i > 0; lt_i--) {
11035    if ($lt_i != "" && $lt_i != ".") {
11036      if ($lt_i == "..") {
11037        lt_count++;
11038      } else {
11039        if (lt_count == 0) {
11040          lt_foo = "/" $lt_i lt_foo;
11041        } else {
11042          lt_count--;
11043        }
11044      }
11045    }
11046  }
11047  if (lt_foo != "") { lt_freq[lt_foo]++; }
11048  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11049}'`
11050  # AWK program above erroneously prepends '/' to C:/dos/paths
11051  # for these hosts.
11052  case $host_os in
11053    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11054      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11055  esac
11056  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11057else
11058  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11059fi
11060library_names_spec=
11061libname_spec='lib$name'
11062soname_spec=
11063shrext_cmds=.so
11064postinstall_cmds=
11065postuninstall_cmds=
11066finish_cmds=
11067finish_eval=
11068shlibpath_var=
11069shlibpath_overrides_runpath=unknown
11070version_type=none
11071dynamic_linker="$host_os ld.so"
11072sys_lib_dlsearch_path_spec="/lib /usr/lib"
11073need_lib_prefix=unknown
11074hardcode_into_libs=no
11075
11076# when you set need_version to no, make sure it does not cause -set_version
11077# flags to be left without arguments
11078need_version=unknown
11079
11080
11081
11082case $host_os in
11083aix3*)
11084  version_type=linux # correct to gnu/linux during the next big refactor
11085  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11086  shlibpath_var=LIBPATH
11087
11088  # AIX 3 has no versioning support, so we append a major version to the name.
11089  soname_spec='$libname$release$shared_ext$major'
11090  ;;
11091
11092aix[4-9]*)
11093  version_type=linux # correct to gnu/linux during the next big refactor
11094  need_lib_prefix=no
11095  need_version=no
11096  hardcode_into_libs=yes
11097  if test ia64 = "$host_cpu"; then
11098    # AIX 5 supports IA64
11099    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11100    shlibpath_var=LD_LIBRARY_PATH
11101  else
11102    # With GCC up to 2.95.x, collect2 would create an import file
11103    # for dependence libraries.  The import file would start with
11104    # the line '#! .'.  This would cause the generated library to
11105    # depend on '.', always an invalid library.  This was fixed in
11106    # development snapshots of GCC prior to 3.0.
11107    case $host_os in
11108      aix4 | aix4.[01] | aix4.[01].*)
11109      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11110	   echo ' yes '
11111	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11112	:
11113      else
11114	can_build_shared=no
11115      fi
11116      ;;
11117    esac
11118    # Using Import Files as archive members, it is possible to support
11119    # filename-based versioning of shared library archives on AIX. While
11120    # this would work for both with and without runtime linking, it will
11121    # prevent static linking of such archives. So we do filename-based
11122    # shared library versioning with .so extension only, which is used
11123    # when both runtime linking and shared linking is enabled.
11124    # Unfortunately, runtime linking may impact performance, so we do
11125    # not want this to be the default eventually. Also, we use the
11126    # versioned .so libs for executables only if there is the -brtl
11127    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11128    # To allow for filename-based versioning support, we need to create
11129    # libNAME.so.V as an archive file, containing:
11130    # *) an Import File, referring to the versioned filename of the
11131    #    archive as well as the shared archive member, telling the
11132    #    bitwidth (32 or 64) of that shared object, and providing the
11133    #    list of exported symbols of that shared object, eventually
11134    #    decorated with the 'weak' keyword
11135    # *) the shared object with the F_LOADONLY flag set, to really avoid
11136    #    it being seen by the linker.
11137    # At run time we better use the real file rather than another symlink,
11138    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11139
11140    case $with_aix_soname,$aix_use_runtimelinking in
11141    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11142    # soname into executable. Probably we can add versioning support to
11143    # collect2, so additional links can be useful in future.
11144    aix,yes) # traditional libtool
11145      dynamic_linker='AIX unversionable lib.so'
11146      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11147      # instead of lib<name>.a to let people know that these are not
11148      # typical AIX shared libraries.
11149      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11150      ;;
11151    aix,no) # traditional AIX only
11152      dynamic_linker='AIX lib.a(lib.so.V)'
11153      # We preserve .a as extension for shared libraries through AIX4.2
11154      # and later when we are not doing run time linking.
11155      library_names_spec='$libname$release.a $libname.a'
11156      soname_spec='$libname$release$shared_ext$major'
11157      ;;
11158    svr4,*) # full svr4 only
11159      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11160      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11161      # We do not specify a path in Import Files, so LIBPATH fires.
11162      shlibpath_overrides_runpath=yes
11163      ;;
11164    *,yes) # both, prefer svr4
11165      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11166      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11167      # unpreferred sharedlib libNAME.a needs extra handling
11168      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"'
11169      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"'
11170      # We do not specify a path in Import Files, so LIBPATH fires.
11171      shlibpath_overrides_runpath=yes
11172      ;;
11173    *,no) # both, prefer aix
11174      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11175      library_names_spec='$libname$release.a $libname.a'
11176      soname_spec='$libname$release$shared_ext$major'
11177      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11178      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)'
11179      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"'
11180      ;;
11181    esac
11182    shlibpath_var=LIBPATH
11183  fi
11184  ;;
11185
11186amigaos*)
11187  case $host_cpu in
11188  powerpc)
11189    # Since July 2007 AmigaOS4 officially supports .so libraries.
11190    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11191    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192    ;;
11193  m68k)
11194    library_names_spec='$libname.ixlibrary $libname.a'
11195    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196    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'
11197    ;;
11198  esac
11199  ;;
11200
11201beos*)
11202  library_names_spec='$libname$shared_ext'
11203  dynamic_linker="$host_os ld.so"
11204  shlibpath_var=LIBRARY_PATH
11205  ;;
11206
11207bsdi[45]*)
11208  version_type=linux # correct to gnu/linux during the next big refactor
11209  need_version=no
11210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11211  soname_spec='$libname$release$shared_ext$major'
11212  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11213  shlibpath_var=LD_LIBRARY_PATH
11214  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11215  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11216  # the default ld.so.conf also contains /usr/contrib/lib and
11217  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11218  # libtool to hard-code these into programs
11219  ;;
11220
11221cygwin* | mingw* | pw32* | cegcc*)
11222  version_type=windows
11223  shrext_cmds=.dll
11224  need_version=no
11225  need_lib_prefix=no
11226
11227  case $GCC,$cc_basename in
11228  yes,*)
11229    # gcc
11230    library_names_spec='$libname.dll.a'
11231    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11232    postinstall_cmds='base_file=`basename \$file`~
11233      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11234      dldir=$destdir/`dirname \$dlpath`~
11235      test -d \$dldir || mkdir -p \$dldir~
11236      $install_prog $dir/$dlname \$dldir/$dlname~
11237      chmod a+x \$dldir/$dlname~
11238      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11239        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11240      fi'
11241    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11242      dlpath=$dir/\$dldll~
11243       $RM \$dlpath'
11244    shlibpath_overrides_runpath=yes
11245
11246    case $host_os in
11247    cygwin*)
11248      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11249      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11250
11251      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11252      ;;
11253    mingw* | cegcc*)
11254      # MinGW DLLs use traditional 'lib' prefix
11255      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11256      ;;
11257    pw32*)
11258      # pw32 DLLs use 'pw' prefix rather than 'lib'
11259      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11260      ;;
11261    esac
11262    dynamic_linker='Win32 ld.exe'
11263    ;;
11264
11265  *,cl*)
11266    # Native MSVC
11267    libname_spec='$name'
11268    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11269    library_names_spec='$libname.dll.lib'
11270
11271    case $build_os in
11272    mingw*)
11273      sys_lib_search_path_spec=
11274      lt_save_ifs=$IFS
11275      IFS=';'
11276      for lt_path in $LIB
11277      do
11278        IFS=$lt_save_ifs
11279        # Let DOS variable expansion print the short 8.3 style file name.
11280        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11281        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11282      done
11283      IFS=$lt_save_ifs
11284      # Convert to MSYS style.
11285      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11286      ;;
11287    cygwin*)
11288      # Convert to unix form, then to dos form, then back to unix form
11289      # but this time dos style (no spaces!) so that the unix form looks
11290      # like /cygdrive/c/PROGRA~1:/cygdr...
11291      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11292      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11293      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11294      ;;
11295    *)
11296      sys_lib_search_path_spec=$LIB
11297      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11298        # It is most probably a Windows format PATH.
11299        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11300      else
11301        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11302      fi
11303      # FIXME: find the short name or the path components, as spaces are
11304      # common. (e.g. "Program Files" -> "PROGRA~1")
11305      ;;
11306    esac
11307
11308    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309    postinstall_cmds='base_file=`basename \$file`~
11310      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11311      dldir=$destdir/`dirname \$dlpath`~
11312      test -d \$dldir || mkdir -p \$dldir~
11313      $install_prog $dir/$dlname \$dldir/$dlname'
11314    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11315      dlpath=$dir/\$dldll~
11316       $RM \$dlpath'
11317    shlibpath_overrides_runpath=yes
11318    dynamic_linker='Win32 link.exe'
11319    ;;
11320
11321  *)
11322    # Assume MSVC wrapper
11323    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11324    dynamic_linker='Win32 ld.exe'
11325    ;;
11326  esac
11327  # FIXME: first we should search . and the directory the executable is in
11328  shlibpath_var=PATH
11329  ;;
11330
11331darwin* | rhapsody*)
11332  dynamic_linker="$host_os dyld"
11333  version_type=darwin
11334  need_lib_prefix=no
11335  need_version=no
11336  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11337  soname_spec='$libname$release$major$shared_ext'
11338  shlibpath_overrides_runpath=yes
11339  shlibpath_var=DYLD_LIBRARY_PATH
11340  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11341
11342  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11343  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11344  ;;
11345
11346dgux*)
11347  version_type=linux # correct to gnu/linux during the next big refactor
11348  need_lib_prefix=no
11349  need_version=no
11350  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351  soname_spec='$libname$release$shared_ext$major'
11352  shlibpath_var=LD_LIBRARY_PATH
11353  ;;
11354
11355freebsd* | dragonfly*)
11356  # DragonFly does not have aout.  When/if they implement a new
11357  # versioning mechanism, adjust this.
11358  if test -x /usr/bin/objformat; then
11359    objformat=`/usr/bin/objformat`
11360  else
11361    case $host_os in
11362    freebsd[23].*) objformat=aout ;;
11363    *) objformat=elf ;;
11364    esac
11365  fi
11366  version_type=freebsd-$objformat
11367  case $version_type in
11368    freebsd-elf*)
11369      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370      soname_spec='$libname$release$shared_ext$major'
11371      need_version=no
11372      need_lib_prefix=no
11373      ;;
11374    freebsd-*)
11375      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11376      need_version=yes
11377      ;;
11378  esac
11379  shlibpath_var=LD_LIBRARY_PATH
11380  case $host_os in
11381  freebsd2.*)
11382    shlibpath_overrides_runpath=yes
11383    ;;
11384  freebsd3.[01]* | freebsdelf3.[01]*)
11385    shlibpath_overrides_runpath=yes
11386    hardcode_into_libs=yes
11387    ;;
11388  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11389  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11390    shlibpath_overrides_runpath=no
11391    hardcode_into_libs=yes
11392    ;;
11393  *) # from 4.6 on, and DragonFly
11394    shlibpath_overrides_runpath=yes
11395    hardcode_into_libs=yes
11396    ;;
11397  esac
11398  ;;
11399
11400haiku*)
11401  version_type=linux # correct to gnu/linux during the next big refactor
11402  need_lib_prefix=no
11403  need_version=no
11404  dynamic_linker="$host_os runtime_loader"
11405  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11406  soname_spec='$libname$release$shared_ext$major'
11407  shlibpath_var=LIBRARY_PATH
11408  shlibpath_overrides_runpath=no
11409  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11410  hardcode_into_libs=yes
11411  ;;
11412
11413hpux9* | hpux10* | hpux11*)
11414  # Give a soname corresponding to the major version so that dld.sl refuses to
11415  # link against other versions.
11416  version_type=sunos
11417  need_lib_prefix=no
11418  need_version=no
11419  case $host_cpu in
11420  ia64*)
11421    shrext_cmds='.so'
11422    hardcode_into_libs=yes
11423    dynamic_linker="$host_os dld.so"
11424    shlibpath_var=LD_LIBRARY_PATH
11425    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11426    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427    soname_spec='$libname$release$shared_ext$major'
11428    if test 32 = "$HPUX_IA64_MODE"; then
11429      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11430      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11431    else
11432      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11433      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11434    fi
11435    ;;
11436  hppa*64*)
11437    shrext_cmds='.sl'
11438    hardcode_into_libs=yes
11439    dynamic_linker="$host_os dld.sl"
11440    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11441    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11442    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443    soname_spec='$libname$release$shared_ext$major'
11444    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11445    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11446    ;;
11447  *)
11448    shrext_cmds='.sl'
11449    dynamic_linker="$host_os dld.sl"
11450    shlibpath_var=SHLIB_PATH
11451    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11452    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453    soname_spec='$libname$release$shared_ext$major'
11454    ;;
11455  esac
11456  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11457  postinstall_cmds='chmod 555 $lib'
11458  # or fails outright, so override atomically:
11459  install_override_mode=555
11460  ;;
11461
11462interix[3-9]*)
11463  version_type=linux # correct to gnu/linux during the next big refactor
11464  need_lib_prefix=no
11465  need_version=no
11466  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467  soname_spec='$libname$release$shared_ext$major'
11468  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11469  shlibpath_var=LD_LIBRARY_PATH
11470  shlibpath_overrides_runpath=no
11471  hardcode_into_libs=yes
11472  ;;
11473
11474irix5* | irix6* | nonstopux*)
11475  case $host_os in
11476    nonstopux*) version_type=nonstopux ;;
11477    *)
11478	if test yes = "$lt_cv_prog_gnu_ld"; then
11479		version_type=linux # correct to gnu/linux during the next big refactor
11480	else
11481		version_type=irix
11482	fi ;;
11483  esac
11484  need_lib_prefix=no
11485  need_version=no
11486  soname_spec='$libname$release$shared_ext$major'
11487  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11488  case $host_os in
11489  irix5* | nonstopux*)
11490    libsuff= shlibsuff=
11491    ;;
11492  *)
11493    case $LD in # libtool.m4 will add one of these switches to LD
11494    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11495      libsuff= shlibsuff= libmagic=32-bit;;
11496    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11497      libsuff=32 shlibsuff=N32 libmagic=N32;;
11498    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11499      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11500    *) libsuff= shlibsuff= libmagic=never-match;;
11501    esac
11502    ;;
11503  esac
11504  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11505  shlibpath_overrides_runpath=no
11506  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11507  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11508  hardcode_into_libs=yes
11509  ;;
11510
11511# No shared lib support for Linux oldld, aout, or coff.
11512linux*oldld* | linux*aout* | linux*coff*)
11513  dynamic_linker=no
11514  ;;
11515
11516linux*android*)
11517  version_type=none # Android doesn't support versioned libraries.
11518  need_lib_prefix=no
11519  need_version=no
11520  library_names_spec='$libname$release$shared_ext'
11521  soname_spec='$libname$release$shared_ext'
11522  finish_cmds=
11523  shlibpath_var=LD_LIBRARY_PATH
11524  shlibpath_overrides_runpath=yes
11525
11526  # This implies no fast_install, which is unacceptable.
11527  # Some rework will be needed to allow for fast_install
11528  # before this can be enabled.
11529  hardcode_into_libs=yes
11530
11531  dynamic_linker='Android linker'
11532  # Don't embed -rpath directories since the linker doesn't support them.
11533  hardcode_libdir_flag_spec='-L$libdir'
11534  ;;
11535
11536# This must be glibc/ELF.
11537linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11538  version_type=linux # correct to gnu/linux during the next big refactor
11539  need_lib_prefix=no
11540  need_version=no
11541  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11542  soname_spec='$libname$release$shared_ext$major'
11543  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11544  shlibpath_var=LD_LIBRARY_PATH
11545  shlibpath_overrides_runpath=no
11546
11547  # Some binutils ld are patched to set DT_RUNPATH
11548  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11549  $as_echo_n "(cached) " >&6
11550else
11551  lt_cv_shlibpath_overrides_runpath=no
11552    save_LDFLAGS=$LDFLAGS
11553    save_libdir=$libdir
11554    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11555	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h.  */
11558
11559int
11560main ()
11561{
11562
11563  ;
11564  return 0;
11565}
11566_ACEOF
11567if ac_fn_c_try_link "$LINENO"; then :
11568  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11569  lt_cv_shlibpath_overrides_runpath=yes
11570fi
11571fi
11572rm -f core conftest.err conftest.$ac_objext \
11573    conftest$ac_exeext conftest.$ac_ext
11574    LDFLAGS=$save_LDFLAGS
11575    libdir=$save_libdir
11576
11577fi
11578
11579  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11580
11581  # This implies no fast_install, which is unacceptable.
11582  # Some rework will be needed to allow for fast_install
11583  # before this can be enabled.
11584  hardcode_into_libs=yes
11585
11586  # Ideally, we could use ldconfig to report *all* directores which are
11587  # searched for libraries, however this is still not possible.  Aside from not
11588  # being certain /sbin/ldconfig is available, command
11589  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11590  # even though it is searched at run-time.  Try to do the best guess by
11591  # appending ld.so.conf contents (and includes) to the search path.
11592  if test -f /etc/ld.so.conf; then
11593    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' ' '`
11594    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11595  fi
11596
11597  # We used to test for /lib/ld.so.1 and disable shared libraries on
11598  # powerpc, because MkLinux only supported shared libraries with the
11599  # GNU dynamic linker.  Since this was broken with cross compilers,
11600  # most powerpc-linux boxes support dynamic linking these days and
11601  # people can always --disable-shared, the test was removed, and we
11602  # assume the GNU/Linux dynamic linker is in use.
11603  dynamic_linker='GNU/Linux ld.so'
11604  ;;
11605
11606netbsd*)
11607  version_type=sunos
11608  need_lib_prefix=no
11609  need_version=no
11610  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11611    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11612    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11613    dynamic_linker='NetBSD (a.out) ld.so'
11614  else
11615    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11616    soname_spec='$libname$release$shared_ext$major'
11617    dynamic_linker='NetBSD ld.elf_so'
11618  fi
11619  shlibpath_var=LD_LIBRARY_PATH
11620  shlibpath_overrides_runpath=yes
11621  hardcode_into_libs=yes
11622  ;;
11623
11624newsos6)
11625  version_type=linux # correct to gnu/linux during the next big refactor
11626  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11627  shlibpath_var=LD_LIBRARY_PATH
11628  shlibpath_overrides_runpath=yes
11629  ;;
11630
11631*nto* | *qnx*)
11632  version_type=qnx
11633  need_lib_prefix=no
11634  need_version=no
11635  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11636  soname_spec='$libname$release$shared_ext$major'
11637  shlibpath_var=LD_LIBRARY_PATH
11638  shlibpath_overrides_runpath=no
11639  hardcode_into_libs=yes
11640  dynamic_linker='ldqnx.so'
11641  ;;
11642
11643openbsd* | bitrig*)
11644  version_type=sunos
11645  sys_lib_dlsearch_path_spec=/usr/lib
11646  need_lib_prefix=no
11647  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11648    need_version=no
11649  else
11650    need_version=yes
11651  fi
11652  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11653  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11654  shlibpath_var=LD_LIBRARY_PATH
11655  shlibpath_overrides_runpath=yes
11656  ;;
11657
11658os2*)
11659  libname_spec='$name'
11660  version_type=windows
11661  shrext_cmds=.dll
11662  need_version=no
11663  need_lib_prefix=no
11664  # OS/2 can only load a DLL with a base name of 8 characters or less.
11665  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11666    v=$($ECHO $release$versuffix | tr -d .-);
11667    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11668    $ECHO $n$v`$shared_ext'
11669  library_names_spec='${libname}_dll.$libext'
11670  dynamic_linker='OS/2 ld.exe'
11671  shlibpath_var=BEGINLIBPATH
11672  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11673  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11674  postinstall_cmds='base_file=`basename \$file`~
11675    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11676    dldir=$destdir/`dirname \$dlpath`~
11677    test -d \$dldir || mkdir -p \$dldir~
11678    $install_prog $dir/$dlname \$dldir/$dlname~
11679    chmod a+x \$dldir/$dlname~
11680    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11681      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11682    fi'
11683  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11684    dlpath=$dir/\$dldll~
11685    $RM \$dlpath'
11686  ;;
11687
11688osf3* | osf4* | osf5*)
11689  version_type=osf
11690  need_lib_prefix=no
11691  need_version=no
11692  soname_spec='$libname$release$shared_ext$major'
11693  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694  shlibpath_var=LD_LIBRARY_PATH
11695  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11696  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11697  ;;
11698
11699rdos*)
11700  dynamic_linker=no
11701  ;;
11702
11703solaris*)
11704  version_type=linux # correct to gnu/linux during the next big refactor
11705  need_lib_prefix=no
11706  need_version=no
11707  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708  soname_spec='$libname$release$shared_ext$major'
11709  shlibpath_var=LD_LIBRARY_PATH
11710  shlibpath_overrides_runpath=yes
11711  hardcode_into_libs=yes
11712  # ldd complains unless libraries are executable
11713  postinstall_cmds='chmod +x $lib'
11714  ;;
11715
11716sunos4*)
11717  version_type=sunos
11718  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11720  shlibpath_var=LD_LIBRARY_PATH
11721  shlibpath_overrides_runpath=yes
11722  if test yes = "$with_gnu_ld"; then
11723    need_lib_prefix=no
11724  fi
11725  need_version=yes
11726  ;;
11727
11728sysv4 | sysv4.3*)
11729  version_type=linux # correct to gnu/linux during the next big refactor
11730  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731  soname_spec='$libname$release$shared_ext$major'
11732  shlibpath_var=LD_LIBRARY_PATH
11733  case $host_vendor in
11734    sni)
11735      shlibpath_overrides_runpath=no
11736      need_lib_prefix=no
11737      runpath_var=LD_RUN_PATH
11738      ;;
11739    siemens)
11740      need_lib_prefix=no
11741      ;;
11742    motorola)
11743      need_lib_prefix=no
11744      need_version=no
11745      shlibpath_overrides_runpath=no
11746      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11747      ;;
11748  esac
11749  ;;
11750
11751sysv4*MP*)
11752  if test -d /usr/nec; then
11753    version_type=linux # correct to gnu/linux during the next big refactor
11754    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11755    soname_spec='$libname$shared_ext.$major'
11756    shlibpath_var=LD_LIBRARY_PATH
11757  fi
11758  ;;
11759
11760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11761  version_type=sco
11762  need_lib_prefix=no
11763  need_version=no
11764  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11765  soname_spec='$libname$release$shared_ext$major'
11766  shlibpath_var=LD_LIBRARY_PATH
11767  shlibpath_overrides_runpath=yes
11768  hardcode_into_libs=yes
11769  if test yes = "$with_gnu_ld"; then
11770    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11771  else
11772    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11773    case $host_os in
11774      sco3.2v5*)
11775        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11776	;;
11777    esac
11778  fi
11779  sys_lib_dlsearch_path_spec='/usr/lib'
11780  ;;
11781
11782tpf*)
11783  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11784  version_type=linux # correct to gnu/linux during the next big refactor
11785  need_lib_prefix=no
11786  need_version=no
11787  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788  shlibpath_var=LD_LIBRARY_PATH
11789  shlibpath_overrides_runpath=no
11790  hardcode_into_libs=yes
11791  ;;
11792
11793uts4*)
11794  version_type=linux # correct to gnu/linux during the next big refactor
11795  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11796  soname_spec='$libname$release$shared_ext$major'
11797  shlibpath_var=LD_LIBRARY_PATH
11798  ;;
11799
11800*)
11801  dynamic_linker=no
11802  ;;
11803esac
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11805$as_echo "$dynamic_linker" >&6; }
11806test no = "$dynamic_linker" && can_build_shared=no
11807
11808variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11809if test yes = "$GCC"; then
11810  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11811fi
11812
11813if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11814  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11815fi
11816
11817if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11818  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11819fi
11820
11821# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11822configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11823
11824# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11825func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11826
11827# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11828configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11927$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11928hardcode_action=
11929if test -n "$hardcode_libdir_flag_spec" ||
11930   test -n "$runpath_var" ||
11931   test yes = "$hardcode_automatic"; then
11932
11933  # We can hardcode non-existent directories.
11934  if test no != "$hardcode_direct" &&
11935     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11936     # have to relink, otherwise we might link with an installed library
11937     # when we should be linking with a yet-to-be-installed one
11938     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11939     test no != "$hardcode_minus_L"; then
11940    # Linking always hardcodes the temporary library directory.
11941    hardcode_action=relink
11942  else
11943    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11944    hardcode_action=immediate
11945  fi
11946else
11947  # We cannot hardcode anything, or else we can only hardcode existing
11948  # directories.
11949  hardcode_action=unsupported
11950fi
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11952$as_echo "$hardcode_action" >&6; }
11953
11954if test relink = "$hardcode_action" ||
11955   test yes = "$inherit_rpath"; then
11956  # Fast installation is not supported
11957  enable_fast_install=no
11958elif test yes = "$shlibpath_overrides_runpath" ||
11959     test no = "$enable_shared"; then
11960  # Fast installation is not necessary
11961  enable_fast_install=needless
11962fi
11963
11964
11965
11966
11967
11968
11969  if test yes != "$enable_dlopen"; then
11970  enable_dlopen=unknown
11971  enable_dlopen_self=unknown
11972  enable_dlopen_self_static=unknown
11973else
11974  lt_cv_dlopen=no
11975  lt_cv_dlopen_libs=
11976
11977  case $host_os in
11978  beos*)
11979    lt_cv_dlopen=load_add_on
11980    lt_cv_dlopen_libs=
11981    lt_cv_dlopen_self=yes
11982    ;;
11983
11984  mingw* | pw32* | cegcc*)
11985    lt_cv_dlopen=LoadLibrary
11986    lt_cv_dlopen_libs=
11987    ;;
11988
11989  cygwin*)
11990    lt_cv_dlopen=dlopen
11991    lt_cv_dlopen_libs=
11992    ;;
11993
11994  darwin*)
11995    # if libdl is installed we need to link against it
11996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11997$as_echo_n "checking for dlopen in -ldl... " >&6; }
11998if ${ac_cv_lib_dl_dlopen+:} false; then :
11999  $as_echo_n "(cached) " >&6
12000else
12001  ac_check_lib_save_LIBS=$LIBS
12002LIBS="-ldl  $LIBS"
12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h.  */
12005
12006/* Override any GCC internal prototype to avoid an error.
12007   Use char because int might match the return type of a GCC
12008   builtin and then its argument prototype would still apply.  */
12009#ifdef __cplusplus
12010extern "C"
12011#endif
12012char dlopen ();
12013int
12014main ()
12015{
12016return dlopen ();
12017  ;
12018  return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_link "$LINENO"; then :
12022  ac_cv_lib_dl_dlopen=yes
12023else
12024  ac_cv_lib_dl_dlopen=no
12025fi
12026rm -f core conftest.err conftest.$ac_objext \
12027    conftest$ac_exeext conftest.$ac_ext
12028LIBS=$ac_check_lib_save_LIBS
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12031$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12032if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12033  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12034else
12035
12036    lt_cv_dlopen=dyld
12037    lt_cv_dlopen_libs=
12038    lt_cv_dlopen_self=yes
12039
12040fi
12041
12042    ;;
12043
12044  tpf*)
12045    # Don't try to run any link tests for TPF.  We know it's impossible
12046    # because TPF is a cross-compiler, and we know how we open DSOs.
12047    lt_cv_dlopen=dlopen
12048    lt_cv_dlopen_libs=
12049    lt_cv_dlopen_self=no
12050    ;;
12051
12052  *)
12053    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12054if test "x$ac_cv_func_shl_load" = xyes; then :
12055  lt_cv_dlopen=shl_load
12056else
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12058$as_echo_n "checking for shl_load in -ldld... " >&6; }
12059if ${ac_cv_lib_dld_shl_load+:} false; then :
12060  $as_echo_n "(cached) " >&6
12061else
12062  ac_check_lib_save_LIBS=$LIBS
12063LIBS="-ldld  $LIBS"
12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h.  */
12066
12067/* Override any GCC internal prototype to avoid an error.
12068   Use char because int might match the return type of a GCC
12069   builtin and then its argument prototype would still apply.  */
12070#ifdef __cplusplus
12071extern "C"
12072#endif
12073char shl_load ();
12074int
12075main ()
12076{
12077return shl_load ();
12078  ;
12079  return 0;
12080}
12081_ACEOF
12082if ac_fn_c_try_link "$LINENO"; then :
12083  ac_cv_lib_dld_shl_load=yes
12084else
12085  ac_cv_lib_dld_shl_load=no
12086fi
12087rm -f core conftest.err conftest.$ac_objext \
12088    conftest$ac_exeext conftest.$ac_ext
12089LIBS=$ac_check_lib_save_LIBS
12090fi
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12092$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12093if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12094  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12095else
12096  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12097if test "x$ac_cv_func_dlopen" = xyes; then :
12098  lt_cv_dlopen=dlopen
12099else
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12101$as_echo_n "checking for dlopen in -ldl... " >&6; }
12102if ${ac_cv_lib_dl_dlopen+:} false; then :
12103  $as_echo_n "(cached) " >&6
12104else
12105  ac_check_lib_save_LIBS=$LIBS
12106LIBS="-ldl  $LIBS"
12107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108/* end confdefs.h.  */
12109
12110/* Override any GCC internal prototype to avoid an error.
12111   Use char because int might match the return type of a GCC
12112   builtin and then its argument prototype would still apply.  */
12113#ifdef __cplusplus
12114extern "C"
12115#endif
12116char dlopen ();
12117int
12118main ()
12119{
12120return dlopen ();
12121  ;
12122  return 0;
12123}
12124_ACEOF
12125if ac_fn_c_try_link "$LINENO"; then :
12126  ac_cv_lib_dl_dlopen=yes
12127else
12128  ac_cv_lib_dl_dlopen=no
12129fi
12130rm -f core conftest.err conftest.$ac_objext \
12131    conftest$ac_exeext conftest.$ac_ext
12132LIBS=$ac_check_lib_save_LIBS
12133fi
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12135$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12136if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12137  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12138else
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12140$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12141if ${ac_cv_lib_svld_dlopen+:} false; then :
12142  $as_echo_n "(cached) " >&6
12143else
12144  ac_check_lib_save_LIBS=$LIBS
12145LIBS="-lsvld  $LIBS"
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148
12149/* Override any GCC internal prototype to avoid an error.
12150   Use char because int might match the return type of a GCC
12151   builtin and then its argument prototype would still apply.  */
12152#ifdef __cplusplus
12153extern "C"
12154#endif
12155char dlopen ();
12156int
12157main ()
12158{
12159return dlopen ();
12160  ;
12161  return 0;
12162}
12163_ACEOF
12164if ac_fn_c_try_link "$LINENO"; then :
12165  ac_cv_lib_svld_dlopen=yes
12166else
12167  ac_cv_lib_svld_dlopen=no
12168fi
12169rm -f core conftest.err conftest.$ac_objext \
12170    conftest$ac_exeext conftest.$ac_ext
12171LIBS=$ac_check_lib_save_LIBS
12172fi
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12174$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12175if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12176  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12177else
12178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12179$as_echo_n "checking for dld_link in -ldld... " >&6; }
12180if ${ac_cv_lib_dld_dld_link+:} false; then :
12181  $as_echo_n "(cached) " >&6
12182else
12183  ac_check_lib_save_LIBS=$LIBS
12184LIBS="-ldld  $LIBS"
12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187
12188/* Override any GCC internal prototype to avoid an error.
12189   Use char because int might match the return type of a GCC
12190   builtin and then its argument prototype would still apply.  */
12191#ifdef __cplusplus
12192extern "C"
12193#endif
12194char dld_link ();
12195int
12196main ()
12197{
12198return dld_link ();
12199  ;
12200  return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_link "$LINENO"; then :
12204  ac_cv_lib_dld_dld_link=yes
12205else
12206  ac_cv_lib_dld_dld_link=no
12207fi
12208rm -f core conftest.err conftest.$ac_objext \
12209    conftest$ac_exeext conftest.$ac_ext
12210LIBS=$ac_check_lib_save_LIBS
12211fi
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12213$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12214if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12215  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12216fi
12217
12218
12219fi
12220
12221
12222fi
12223
12224
12225fi
12226
12227
12228fi
12229
12230
12231fi
12232
12233    ;;
12234  esac
12235
12236  if test no = "$lt_cv_dlopen"; then
12237    enable_dlopen=no
12238  else
12239    enable_dlopen=yes
12240  fi
12241
12242  case $lt_cv_dlopen in
12243  dlopen)
12244    save_CPPFLAGS=$CPPFLAGS
12245    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12246
12247    save_LDFLAGS=$LDFLAGS
12248    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12249
12250    save_LIBS=$LIBS
12251    LIBS="$lt_cv_dlopen_libs $LIBS"
12252
12253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12254$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12255if ${lt_cv_dlopen_self+:} false; then :
12256  $as_echo_n "(cached) " >&6
12257else
12258  	  if test yes = "$cross_compiling"; then :
12259  lt_cv_dlopen_self=cross
12260else
12261  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12262  lt_status=$lt_dlunknown
12263  cat > conftest.$ac_ext <<_LT_EOF
12264#line $LINENO "configure"
12265#include "confdefs.h"
12266
12267#if HAVE_DLFCN_H
12268#include <dlfcn.h>
12269#endif
12270
12271#include <stdio.h>
12272
12273#ifdef RTLD_GLOBAL
12274#  define LT_DLGLOBAL		RTLD_GLOBAL
12275#else
12276#  ifdef DL_GLOBAL
12277#    define LT_DLGLOBAL		DL_GLOBAL
12278#  else
12279#    define LT_DLGLOBAL		0
12280#  endif
12281#endif
12282
12283/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12284   find out it does not work in some platform. */
12285#ifndef LT_DLLAZY_OR_NOW
12286#  ifdef RTLD_LAZY
12287#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12288#  else
12289#    ifdef DL_LAZY
12290#      define LT_DLLAZY_OR_NOW		DL_LAZY
12291#    else
12292#      ifdef RTLD_NOW
12293#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12294#      else
12295#        ifdef DL_NOW
12296#          define LT_DLLAZY_OR_NOW	DL_NOW
12297#        else
12298#          define LT_DLLAZY_OR_NOW	0
12299#        endif
12300#      endif
12301#    endif
12302#  endif
12303#endif
12304
12305/* When -fvisibility=hidden is used, assume the code has been annotated
12306   correspondingly for the symbols needed.  */
12307#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12308int fnord () __attribute__((visibility("default")));
12309#endif
12310
12311int fnord () { return 42; }
12312int main ()
12313{
12314  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12315  int status = $lt_dlunknown;
12316
12317  if (self)
12318    {
12319      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12320      else
12321        {
12322	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12323          else puts (dlerror ());
12324	}
12325      /* dlclose (self); */
12326    }
12327  else
12328    puts (dlerror ());
12329
12330  return status;
12331}
12332_LT_EOF
12333  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12334  (eval $ac_link) 2>&5
12335  ac_status=$?
12336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12337  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12338    (./conftest; exit; ) >&5 2>/dev/null
12339    lt_status=$?
12340    case x$lt_status in
12341      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12342      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12343      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12344    esac
12345  else :
12346    # compilation failed
12347    lt_cv_dlopen_self=no
12348  fi
12349fi
12350rm -fr conftest*
12351
12352
12353fi
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12355$as_echo "$lt_cv_dlopen_self" >&6; }
12356
12357    if test yes = "$lt_cv_dlopen_self"; then
12358      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12359      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12360$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12361if ${lt_cv_dlopen_self_static+:} false; then :
12362  $as_echo_n "(cached) " >&6
12363else
12364  	  if test yes = "$cross_compiling"; then :
12365  lt_cv_dlopen_self_static=cross
12366else
12367  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12368  lt_status=$lt_dlunknown
12369  cat > conftest.$ac_ext <<_LT_EOF
12370#line $LINENO "configure"
12371#include "confdefs.h"
12372
12373#if HAVE_DLFCN_H
12374#include <dlfcn.h>
12375#endif
12376
12377#include <stdio.h>
12378
12379#ifdef RTLD_GLOBAL
12380#  define LT_DLGLOBAL		RTLD_GLOBAL
12381#else
12382#  ifdef DL_GLOBAL
12383#    define LT_DLGLOBAL		DL_GLOBAL
12384#  else
12385#    define LT_DLGLOBAL		0
12386#  endif
12387#endif
12388
12389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12390   find out it does not work in some platform. */
12391#ifndef LT_DLLAZY_OR_NOW
12392#  ifdef RTLD_LAZY
12393#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12394#  else
12395#    ifdef DL_LAZY
12396#      define LT_DLLAZY_OR_NOW		DL_LAZY
12397#    else
12398#      ifdef RTLD_NOW
12399#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12400#      else
12401#        ifdef DL_NOW
12402#          define LT_DLLAZY_OR_NOW	DL_NOW
12403#        else
12404#          define LT_DLLAZY_OR_NOW	0
12405#        endif
12406#      endif
12407#    endif
12408#  endif
12409#endif
12410
12411/* When -fvisibility=hidden is used, assume the code has been annotated
12412   correspondingly for the symbols needed.  */
12413#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12414int fnord () __attribute__((visibility("default")));
12415#endif
12416
12417int fnord () { return 42; }
12418int main ()
12419{
12420  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12421  int status = $lt_dlunknown;
12422
12423  if (self)
12424    {
12425      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12426      else
12427        {
12428	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12429          else puts (dlerror ());
12430	}
12431      /* dlclose (self); */
12432    }
12433  else
12434    puts (dlerror ());
12435
12436  return status;
12437}
12438_LT_EOF
12439  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12440  (eval $ac_link) 2>&5
12441  ac_status=$?
12442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12443  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12444    (./conftest; exit; ) >&5 2>/dev/null
12445    lt_status=$?
12446    case x$lt_status in
12447      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12448      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12449      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12450    esac
12451  else :
12452    # compilation failed
12453    lt_cv_dlopen_self_static=no
12454  fi
12455fi
12456rm -fr conftest*
12457
12458
12459fi
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12461$as_echo "$lt_cv_dlopen_self_static" >&6; }
12462    fi
12463
12464    CPPFLAGS=$save_CPPFLAGS
12465    LDFLAGS=$save_LDFLAGS
12466    LIBS=$save_LIBS
12467    ;;
12468  esac
12469
12470  case $lt_cv_dlopen_self in
12471  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12472  *) enable_dlopen_self=unknown ;;
12473  esac
12474
12475  case $lt_cv_dlopen_self_static in
12476  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12477  *) enable_dlopen_self_static=unknown ;;
12478  esac
12479fi
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497striplib=
12498old_striplib=
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12500$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12501if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12502  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12503  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12505$as_echo "yes" >&6; }
12506else
12507# FIXME - insert some real tests, host_os isn't really good enough
12508  case $host_os in
12509  darwin*)
12510    if test -n "$STRIP"; then
12511      striplib="$STRIP -x"
12512      old_striplib="$STRIP -S"
12513      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12514$as_echo "yes" >&6; }
12515    else
12516      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517$as_echo "no" >&6; }
12518    fi
12519    ;;
12520  *)
12521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522$as_echo "no" >&6; }
12523    ;;
12524  esac
12525fi
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538  # Report what library types will actually be built
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12540$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12542$as_echo "$can_build_shared" >&6; }
12543
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12545$as_echo_n "checking whether to build shared libraries... " >&6; }
12546  test no = "$can_build_shared" && enable_shared=no
12547
12548  # On AIX, shared libraries and static libraries use the same namespace, and
12549  # are all built from PIC.
12550  case $host_os in
12551  aix3*)
12552    test yes = "$enable_shared" && enable_static=no
12553    if test -n "$RANLIB"; then
12554      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12555      postinstall_cmds='$RANLIB $lib'
12556    fi
12557    ;;
12558
12559  aix[4-9]*)
12560    if test ia64 != "$host_cpu"; then
12561      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12562      yes,aix,yes) ;;			# shared object as lib.so file only
12563      yes,svr4,*) ;;			# shared object as lib.so archive member only
12564      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12565      esac
12566    fi
12567    ;;
12568  esac
12569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12570$as_echo "$enable_shared" >&6; }
12571
12572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12573$as_echo_n "checking whether to build static libraries... " >&6; }
12574  # Make sure either enable_shared or enable_static is yes.
12575  test yes = "$enable_shared" || enable_static=yes
12576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12577$as_echo "$enable_static" >&6; }
12578
12579
12580
12581
12582fi
12583ac_ext=c
12584ac_cpp='$CPP $CPPFLAGS'
12585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589CC=$lt_save_CC
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605        ac_config_commands="$ac_config_commands libtool"
12606
12607
12608
12609
12610# Only expand once:
12611
12612
12613# Check whether --enable-silent-rules was given.
12614if test "${enable_silent_rules+set}" = set; then :
12615  enableval=$enable_silent_rules;
12616fi
12617
12618case $enable_silent_rules in # (((
12619  yes) AM_DEFAULT_VERBOSITY=0;;
12620   no) AM_DEFAULT_VERBOSITY=1;;
12621    *) AM_DEFAULT_VERBOSITY=0;;
12622esac
12623am_make=${MAKE-make}
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12625$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12626if ${am_cv_make_support_nested_variables+:} false; then :
12627  $as_echo_n "(cached) " >&6
12628else
12629  if $as_echo 'TRUE=$(BAR$(V))
12630BAR0=false
12631BAR1=true
12632V=1
12633am__doit:
12634	@$(TRUE)
12635.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12636  am_cv_make_support_nested_variables=yes
12637else
12638  am_cv_make_support_nested_variables=no
12639fi
12640fi
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12642$as_echo "$am_cv_make_support_nested_variables" >&6; }
12643if test $am_cv_make_support_nested_variables = yes; then
12644    AM_V='$(V)'
12645  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12646else
12647  AM_V=$AM_DEFAULT_VERBOSITY
12648  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12649fi
12650AM_BACKSLASH='\'
12651
12652
12653# TODO(bnoordhuis) Check for -pthread vs. -pthreads
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12655$as_echo_n "checking for dlopen in -ldl... " >&6; }
12656if ${ac_cv_lib_dl_dlopen+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  ac_check_lib_save_LIBS=$LIBS
12660LIBS="-ldl  $LIBS"
12661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662/* end confdefs.h.  */
12663
12664/* Override any GCC internal prototype to avoid an error.
12665   Use char because int might match the return type of a GCC
12666   builtin and then its argument prototype would still apply.  */
12667#ifdef __cplusplus
12668extern "C"
12669#endif
12670char dlopen ();
12671int
12672main ()
12673{
12674return dlopen ();
12675  ;
12676  return 0;
12677}
12678_ACEOF
12679if ac_fn_c_try_link "$LINENO"; then :
12680  ac_cv_lib_dl_dlopen=yes
12681else
12682  ac_cv_lib_dl_dlopen=no
12683fi
12684rm -f core conftest.err conftest.$ac_objext \
12685    conftest$ac_exeext conftest.$ac_ext
12686LIBS=$ac_check_lib_save_LIBS
12687fi
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12689$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12690if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12691  cat >>confdefs.h <<_ACEOF
12692#define HAVE_LIBDL 1
12693_ACEOF
12694
12695  LIBS="-ldl $LIBS"
12696
12697fi
12698
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_lookup in -lkstat" >&5
12700$as_echo_n "checking for kstat_lookup in -lkstat... " >&6; }
12701if ${ac_cv_lib_kstat_kstat_lookup+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  ac_check_lib_save_LIBS=$LIBS
12705LIBS="-lkstat  $LIBS"
12706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707/* end confdefs.h.  */
12708
12709/* Override any GCC internal prototype to avoid an error.
12710   Use char because int might match the return type of a GCC
12711   builtin and then its argument prototype would still apply.  */
12712#ifdef __cplusplus
12713extern "C"
12714#endif
12715char kstat_lookup ();
12716int
12717main ()
12718{
12719return kstat_lookup ();
12720  ;
12721  return 0;
12722}
12723_ACEOF
12724if ac_fn_c_try_link "$LINENO"; then :
12725  ac_cv_lib_kstat_kstat_lookup=yes
12726else
12727  ac_cv_lib_kstat_kstat_lookup=no
12728fi
12729rm -f core conftest.err conftest.$ac_objext \
12730    conftest$ac_exeext conftest.$ac_ext
12731LIBS=$ac_check_lib_save_LIBS
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_lookup" >&5
12734$as_echo "$ac_cv_lib_kstat_kstat_lookup" >&6; }
12735if test "x$ac_cv_lib_kstat_kstat_lookup" = xyes; then :
12736  cat >>confdefs.h <<_ACEOF
12737#define HAVE_LIBKSTAT 1
12738_ACEOF
12739
12740  LIBS="-lkstat $LIBS"
12741
12742fi
12743
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12745$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12746if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12747  $as_echo_n "(cached) " >&6
12748else
12749  ac_check_lib_save_LIBS=$LIBS
12750LIBS="-lnsl  $LIBS"
12751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h.  */
12753
12754/* Override any GCC internal prototype to avoid an error.
12755   Use char because int might match the return type of a GCC
12756   builtin and then its argument prototype would still apply.  */
12757#ifdef __cplusplus
12758extern "C"
12759#endif
12760char gethostbyname ();
12761int
12762main ()
12763{
12764return gethostbyname ();
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_link "$LINENO"; then :
12770  ac_cv_lib_nsl_gethostbyname=yes
12771else
12772  ac_cv_lib_nsl_gethostbyname=no
12773fi
12774rm -f core conftest.err conftest.$ac_objext \
12775    conftest$ac_exeext conftest.$ac_ext
12776LIBS=$ac_check_lib_save_LIBS
12777fi
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12779$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12780if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12781  cat >>confdefs.h <<_ACEOF
12782#define HAVE_LIBNSL 1
12783_ACEOF
12784
12785  LIBS="-lnsl $LIBS"
12786
12787fi
12788
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu in -lperfstat" >&5
12790$as_echo_n "checking for perfstat_cpu in -lperfstat... " >&6; }
12791if ${ac_cv_lib_perfstat_perfstat_cpu+:} false; then :
12792  $as_echo_n "(cached) " >&6
12793else
12794  ac_check_lib_save_LIBS=$LIBS
12795LIBS="-lperfstat  $LIBS"
12796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h.  */
12798
12799/* Override any GCC internal prototype to avoid an error.
12800   Use char because int might match the return type of a GCC
12801   builtin and then its argument prototype would still apply.  */
12802#ifdef __cplusplus
12803extern "C"
12804#endif
12805char perfstat_cpu ();
12806int
12807main ()
12808{
12809return perfstat_cpu ();
12810  ;
12811  return 0;
12812}
12813_ACEOF
12814if ac_fn_c_try_link "$LINENO"; then :
12815  ac_cv_lib_perfstat_perfstat_cpu=yes
12816else
12817  ac_cv_lib_perfstat_perfstat_cpu=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext \
12820    conftest$ac_exeext conftest.$ac_ext
12821LIBS=$ac_check_lib_save_LIBS
12822fi
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu" >&5
12824$as_echo "$ac_cv_lib_perfstat_perfstat_cpu" >&6; }
12825if test "x$ac_cv_lib_perfstat_perfstat_cpu" = xyes; then :
12826  cat >>confdefs.h <<_ACEOF
12827#define HAVE_LIBPERFSTAT 1
12828_ACEOF
12829
12830  LIBS="-lperfstat $LIBS"
12831
12832fi
12833
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
12835$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
12836if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
12837  $as_echo_n "(cached) " >&6
12838else
12839  ac_check_lib_save_LIBS=$LIBS
12840LIBS="-lpthread  $LIBS"
12841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h.  */
12843
12844/* Override any GCC internal prototype to avoid an error.
12845   Use char because int might match the return type of a GCC
12846   builtin and then its argument prototype would still apply.  */
12847#ifdef __cplusplus
12848extern "C"
12849#endif
12850char pthread_mutex_init ();
12851int
12852main ()
12853{
12854return pthread_mutex_init ();
12855  ;
12856  return 0;
12857}
12858_ACEOF
12859if ac_fn_c_try_link "$LINENO"; then :
12860  ac_cv_lib_pthread_pthread_mutex_init=yes
12861else
12862  ac_cv_lib_pthread_pthread_mutex_init=no
12863fi
12864rm -f core conftest.err conftest.$ac_objext \
12865    conftest$ac_exeext conftest.$ac_ext
12866LIBS=$ac_check_lib_save_LIBS
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12869$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12870if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
12871  cat >>confdefs.h <<_ACEOF
12872#define HAVE_LIBPTHREAD 1
12873_ACEOF
12874
12875  LIBS="-lpthread $LIBS"
12876
12877fi
12878
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12880$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12881if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12882  $as_echo_n "(cached) " >&6
12883else
12884  ac_check_lib_save_LIBS=$LIBS
12885LIBS="-lrt  $LIBS"
12886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887/* end confdefs.h.  */
12888
12889/* Override any GCC internal prototype to avoid an error.
12890   Use char because int might match the return type of a GCC
12891   builtin and then its argument prototype would still apply.  */
12892#ifdef __cplusplus
12893extern "C"
12894#endif
12895char clock_gettime ();
12896int
12897main ()
12898{
12899return clock_gettime ();
12900  ;
12901  return 0;
12902}
12903_ACEOF
12904if ac_fn_c_try_link "$LINENO"; then :
12905  ac_cv_lib_rt_clock_gettime=yes
12906else
12907  ac_cv_lib_rt_clock_gettime=no
12908fi
12909rm -f core conftest.err conftest.$ac_objext \
12910    conftest$ac_exeext conftest.$ac_ext
12911LIBS=$ac_check_lib_save_LIBS
12912fi
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12914$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12915if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12916  cat >>confdefs.h <<_ACEOF
12917#define HAVE_LIBRT 1
12918_ACEOF
12919
12920  LIBS="-lrt $LIBS"
12921
12922fi
12923
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
12925$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
12926if ${ac_cv_lib_sendfile_sendfile+:} false; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  ac_check_lib_save_LIBS=$LIBS
12930LIBS="-lsendfile  $LIBS"
12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933
12934/* Override any GCC internal prototype to avoid an error.
12935   Use char because int might match the return type of a GCC
12936   builtin and then its argument prototype would still apply.  */
12937#ifdef __cplusplus
12938extern "C"
12939#endif
12940char sendfile ();
12941int
12942main ()
12943{
12944return sendfile ();
12945  ;
12946  return 0;
12947}
12948_ACEOF
12949if ac_fn_c_try_link "$LINENO"; then :
12950  ac_cv_lib_sendfile_sendfile=yes
12951else
12952  ac_cv_lib_sendfile_sendfile=no
12953fi
12954rm -f core conftest.err conftest.$ac_objext \
12955    conftest$ac_exeext conftest.$ac_ext
12956LIBS=$ac_check_lib_save_LIBS
12957fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
12959$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
12960if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
12961  cat >>confdefs.h <<_ACEOF
12962#define HAVE_LIBSENDFILE 1
12963_ACEOF
12964
12965  LIBS="-lsendfile $LIBS"
12966
12967fi
12968
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12970$as_echo_n "checking for socket in -lsocket... " >&6; }
12971if ${ac_cv_lib_socket_socket+:} false; then :
12972  $as_echo_n "(cached) " >&6
12973else
12974  ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lsocket  $LIBS"
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980   Use char because int might match the return type of a GCC
12981   builtin and then its argument prototype would still apply.  */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char socket ();
12986int
12987main ()
12988{
12989return socket ();
12990  ;
12991  return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_link "$LINENO"; then :
12995  ac_cv_lib_socket_socket=yes
12996else
12997  ac_cv_lib_socket_socket=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext \
13000    conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_check_lib_save_LIBS
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13004$as_echo "$ac_cv_lib_socket_socket" >&6; }
13005if test "x$ac_cv_lib_socket_socket" = xyes; then :
13006  cat >>confdefs.h <<_ACEOF
13007#define HAVE_LIBSOCKET 1
13008_ACEOF
13009
13010  LIBS="-lsocket $LIBS"
13011
13012fi
13013
13014# Check whether --enable-largefile was given.
13015if test "${enable_largefile+set}" = set; then :
13016  enableval=$enable_largefile;
13017fi
13018
13019if test "$enable_largefile" != no; then
13020
13021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13022$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13023if ${ac_cv_sys_largefile_CC+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  ac_cv_sys_largefile_CC=no
13027     if test "$GCC" != yes; then
13028       ac_save_CC=$CC
13029       while :; do
13030	 # IRIX 6.2 and later do not support large files by default,
13031	 # so use the C compiler's -n32 option if that helps.
13032	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h.  */
13034#include <sys/types.h>
13035 /* Check that off_t can represent 2**63 - 1 correctly.
13036    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13037    since some C++ compilers masquerading as C compilers
13038    incorrectly reject 9223372036854775807.  */
13039#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13040  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13041		       && LARGE_OFF_T % 2147483647 == 1)
13042		      ? 1 : -1];
13043int
13044main ()
13045{
13046
13047  ;
13048  return 0;
13049}
13050_ACEOF
13051	 if ac_fn_c_try_compile "$LINENO"; then :
13052  break
13053fi
13054rm -f core conftest.err conftest.$ac_objext
13055	 CC="$CC -n32"
13056	 if ac_fn_c_try_compile "$LINENO"; then :
13057  ac_cv_sys_largefile_CC=' -n32'; break
13058fi
13059rm -f core conftest.err conftest.$ac_objext
13060	 break
13061       done
13062       CC=$ac_save_CC
13063       rm -f conftest.$ac_ext
13064    fi
13065fi
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13067$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13068  if test "$ac_cv_sys_largefile_CC" != no; then
13069    CC=$CC$ac_cv_sys_largefile_CC
13070  fi
13071
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13073$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13074if ${ac_cv_sys_file_offset_bits+:} false; then :
13075  $as_echo_n "(cached) " >&6
13076else
13077  while :; do
13078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079/* end confdefs.h.  */
13080#include <sys/types.h>
13081 /* Check that off_t can represent 2**63 - 1 correctly.
13082    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13083    since some C++ compilers masquerading as C compilers
13084    incorrectly reject 9223372036854775807.  */
13085#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13086  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13087		       && LARGE_OFF_T % 2147483647 == 1)
13088		      ? 1 : -1];
13089int
13090main ()
13091{
13092
13093  ;
13094  return 0;
13095}
13096_ACEOF
13097if ac_fn_c_try_compile "$LINENO"; then :
13098  ac_cv_sys_file_offset_bits=no; break
13099fi
13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h.  */
13103#define _FILE_OFFSET_BITS 64
13104#include <sys/types.h>
13105 /* Check that off_t can represent 2**63 - 1 correctly.
13106    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13107    since some C++ compilers masquerading as C compilers
13108    incorrectly reject 9223372036854775807.  */
13109#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13110  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13111		       && LARGE_OFF_T % 2147483647 == 1)
13112		      ? 1 : -1];
13113int
13114main ()
13115{
13116
13117  ;
13118  return 0;
13119}
13120_ACEOF
13121if ac_fn_c_try_compile "$LINENO"; then :
13122  ac_cv_sys_file_offset_bits=64; break
13123fi
13124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125  ac_cv_sys_file_offset_bits=unknown
13126  break
13127done
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13130$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13131case $ac_cv_sys_file_offset_bits in #(
13132  no | unknown) ;;
13133  *)
13134cat >>confdefs.h <<_ACEOF
13135#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13136_ACEOF
13137;;
13138esac
13139rm -rf conftest*
13140  if test $ac_cv_sys_file_offset_bits = unknown; then
13141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13142$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13143if ${ac_cv_sys_large_files+:} false; then :
13144  $as_echo_n "(cached) " >&6
13145else
13146  while :; do
13147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h.  */
13149#include <sys/types.h>
13150 /* Check that off_t can represent 2**63 - 1 correctly.
13151    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13152    since some C++ compilers masquerading as C compilers
13153    incorrectly reject 9223372036854775807.  */
13154#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13155  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13156		       && LARGE_OFF_T % 2147483647 == 1)
13157		      ? 1 : -1];
13158int
13159main ()
13160{
13161
13162  ;
13163  return 0;
13164}
13165_ACEOF
13166if ac_fn_c_try_compile "$LINENO"; then :
13167  ac_cv_sys_large_files=no; break
13168fi
13169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171/* end confdefs.h.  */
13172#define _LARGE_FILES 1
13173#include <sys/types.h>
13174 /* Check that off_t can represent 2**63 - 1 correctly.
13175    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13176    since some C++ compilers masquerading as C compilers
13177    incorrectly reject 9223372036854775807.  */
13178#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13179  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13180		       && LARGE_OFF_T % 2147483647 == 1)
13181		      ? 1 : -1];
13182int
13183main ()
13184{
13185
13186  ;
13187  return 0;
13188}
13189_ACEOF
13190if ac_fn_c_try_compile "$LINENO"; then :
13191  ac_cv_sys_large_files=1; break
13192fi
13193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194  ac_cv_sys_large_files=unknown
13195  break
13196done
13197fi
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13199$as_echo "$ac_cv_sys_large_files" >&6; }
13200case $ac_cv_sys_large_files in #(
13201  no | unknown) ;;
13202  *)
13203cat >>confdefs.h <<_ACEOF
13204#define _LARGE_FILES $ac_cv_sys_large_files
13205_ACEOF
13206;;
13207esac
13208rm -rf conftest*
13209  fi
13210
13211
13212fi
13213
13214 if case $host_os in
13215  aix*) true ;;
13216  *) false ;;
13217esac; then
13218  AIX_TRUE=
13219  AIX_FALSE='#'
13220else
13221  AIX_TRUE='#'
13222  AIX_FALSE=
13223fi
13224
13225 if case $host_os in
13226  linux-android*) true ;;
13227  *) false ;;
13228esac; then
13229  ANDROID_TRUE=
13230  ANDROID_FALSE='#'
13231else
13232  ANDROID_TRUE='#'
13233  ANDROID_FALSE=
13234fi
13235
13236 if case $host_os in
13237  cygwin*) true ;;
13238  *) false ;;
13239esac; then
13240  CYGWIN_TRUE=
13241  CYGWIN_FALSE='#'
13242else
13243  CYGWIN_TRUE='#'
13244  CYGWIN_FALSE=
13245fi
13246
13247 if case $host_os in
13248  darwin*) true ;;
13249  *) false ;;
13250esac; then
13251  DARWIN_TRUE=
13252  DARWIN_FALSE='#'
13253else
13254  DARWIN_TRUE='#'
13255  DARWIN_FALSE=
13256fi
13257
13258 if case $host_os in
13259  dragonfly*) true ;;
13260  *) false ;;
13261esac; then
13262  DRAGONFLY_TRUE=
13263  DRAGONFLY_FALSE='#'
13264else
13265  DRAGONFLY_TRUE='#'
13266  DRAGONFLY_FALSE=
13267fi
13268
13269 if case $host_os in
13270  *freebsd*) true ;;
13271  *) false ;;
13272esac; then
13273  FREEBSD_TRUE=
13274  FREEBSD_FALSE='#'
13275else
13276  FREEBSD_TRUE='#'
13277  FREEBSD_FALSE=
13278fi
13279
13280 if case $host_os in
13281  haiku) true ;;
13282  *) false ;;
13283esac; then
13284  HAIKU_TRUE=
13285  HAIKU_FALSE='#'
13286else
13287  HAIKU_TRUE='#'
13288  HAIKU_FALSE=
13289fi
13290
13291 if case $host_os in
13292  gnu*) true ;;
13293  *) false ;;
13294esac; then
13295  HURD_TRUE=
13296  HURD_FALSE='#'
13297else
13298  HURD_TRUE='#'
13299  HURD_FALSE=
13300fi
13301
13302 if case $host_os in
13303  linux*) true ;;
13304  *) false ;;
13305esac; then
13306  LINUX_TRUE=
13307  LINUX_FALSE='#'
13308else
13309  LINUX_TRUE='#'
13310  LINUX_FALSE=
13311fi
13312
13313 if case $host_os in
13314  msys*) true ;;
13315  *) false ;;
13316esac; then
13317  MSYS_TRUE=
13318  MSYS_FALSE='#'
13319else
13320  MSYS_TRUE='#'
13321  MSYS_FALSE=
13322fi
13323
13324 if case $host_os in
13325  netbsd*) true ;;
13326  *) false ;;
13327esac; then
13328  NETBSD_TRUE=
13329  NETBSD_FALSE='#'
13330else
13331  NETBSD_TRUE='#'
13332  NETBSD_FALSE=
13333fi
13334
13335 if case $host_os in
13336  openbsd*) true ;;
13337  *) false ;;
13338esac; then
13339  OPENBSD_TRUE=
13340  OPENBSD_FALSE='#'
13341else
13342  OPENBSD_TRUE='#'
13343  OPENBSD_FALSE=
13344fi
13345
13346 if case $host_os in
13347  openedition*) true ;;
13348  *) false ;;
13349esac; then
13350  OS390_TRUE=
13351  OS390_FALSE='#'
13352else
13353  OS390_TRUE='#'
13354  OS390_FALSE=
13355fi
13356
13357 if case $host_os in
13358  os400) true ;;
13359  *) false ;;
13360esac; then
13361  OS400_TRUE=
13362  OS400_FALSE='#'
13363else
13364  OS400_TRUE='#'
13365  OS400_FALSE=
13366fi
13367
13368 if case $host_os in
13369  solaris*) true ;;
13370  *) false ;;
13371esac; then
13372  SUNOS_TRUE=
13373  SUNOS_FALSE='#'
13374else
13375  SUNOS_TRUE='#'
13376  SUNOS_FALSE=
13377fi
13378
13379 if case $host_os in
13380  mingw*) true ;;
13381  *) false ;;
13382esac; then
13383  WINNT_TRUE=
13384  WINNT_FALSE='#'
13385else
13386  WINNT_TRUE='#'
13387  WINNT_FALSE=
13388fi
13389
13390case $host_os in
13391  mingw*)
13392    LIBS="$LIBS -lws2_32 -lpsapi -liphlpapi -lshell32 -luserenv -luser32"
13393 ;;
13394esac
13395case $host_os in
13396  netbsd*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13397$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13398if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13399  $as_echo_n "(cached) " >&6
13400else
13401  ac_check_lib_save_LIBS=$LIBS
13402LIBS="-lkvm  $LIBS"
13403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h.  */
13405
13406/* Override any GCC internal prototype to avoid an error.
13407   Use char because int might match the return type of a GCC
13408   builtin and then its argument prototype would still apply.  */
13409#ifdef __cplusplus
13410extern "C"
13411#endif
13412char kvm_open ();
13413int
13414main ()
13415{
13416return kvm_open ();
13417  ;
13418  return 0;
13419}
13420_ACEOF
13421if ac_fn_c_try_link "$LINENO"; then :
13422  ac_cv_lib_kvm_kvm_open=yes
13423else
13424  ac_cv_lib_kvm_kvm_open=no
13425fi
13426rm -f core conftest.err conftest.$ac_objext \
13427    conftest$ac_exeext conftest.$ac_ext
13428LIBS=$ac_check_lib_save_LIBS
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13431$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13432if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13433  cat >>confdefs.h <<_ACEOF
13434#define HAVE_LIBKVM 1
13435_ACEOF
13436
13437  LIBS="-lkvm $LIBS"
13438
13439fi
13440 ;;
13441esac
13442case $host_os in
13443  kfreebsd*)
13444    LIBS="$LIBS -lfreebsd-glue"
13445 ;;
13446esac
13447case $host_os in
13448  haiku)
13449    LIBS="$LIBS -lnetwork"
13450 ;;
13451esac
13452for ac_header in sys/ahafs_evProds.h
13453do :
13454  ac_fn_c_check_header_mongrel "$LINENO" "sys/ahafs_evProds.h" "ac_cv_header_sys_ahafs_evProds_h" "$ac_includes_default"
13455if test "x$ac_cv_header_sys_ahafs_evProds_h" = xyes; then :
13456  cat >>confdefs.h <<_ACEOF
13457#define HAVE_SYS_AHAFS_EVPRODS_H 1
13458_ACEOF
13459
13460fi
13461
13462done
13463
13464ac_config_files="$ac_config_files Makefile libuv.pc"
13465
13466ac_config_links="$ac_config_links test/fixtures/empty_file:test/fixtures/empty_file"
13467
13468ac_config_links="$ac_config_links test/fixtures/load_error.node:test/fixtures/load_error.node"
13469
13470ac_config_links="$ac_config_links test/fixtures/lorem_ipsum.txt:test/fixtures/lorem_ipsum.txt"
13471
13472cat >confcache <<\_ACEOF
13473# This file is a shell script that caches the results of configure
13474# tests run on this system so they can be shared between configure
13475# scripts and configure runs, see configure's option --config-cache.
13476# It is not useful on other systems.  If it contains results you don't
13477# want to keep, you may remove or edit it.
13478#
13479# config.status only pays attention to the cache file if you give it
13480# the --recheck option to rerun configure.
13481#
13482# `ac_cv_env_foo' variables (set or unset) will be overridden when
13483# loading this file, other *unset* `ac_cv_foo' will be assigned the
13484# following values.
13485
13486_ACEOF
13487
13488# The following way of writing the cache mishandles newlines in values,
13489# but we know of no workaround that is simple, portable, and efficient.
13490# So, we kill variables containing newlines.
13491# Ultrix sh set writes to stderr and can't be redirected directly,
13492# and sets the high bit in the cache file unless we assign to the vars.
13493(
13494  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13495    eval ac_val=\$$ac_var
13496    case $ac_val in #(
13497    *${as_nl}*)
13498      case $ac_var in #(
13499      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13500$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13501      esac
13502      case $ac_var in #(
13503      _ | IFS | as_nl) ;; #(
13504      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13505      *) { eval $ac_var=; unset $ac_var;} ;;
13506      esac ;;
13507    esac
13508  done
13509
13510  (set) 2>&1 |
13511    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13512    *${as_nl}ac_space=\ *)
13513      # `set' does not quote correctly, so add quotes: double-quote
13514      # substitution turns \\\\ into \\, and sed turns \\ into \.
13515      sed -n \
13516	"s/'/'\\\\''/g;
13517	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13518      ;; #(
13519    *)
13520      # `set' quotes correctly as required by POSIX, so do not add quotes.
13521      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13522      ;;
13523    esac |
13524    sort
13525) |
13526  sed '
13527     /^ac_cv_env_/b end
13528     t clear
13529     :clear
13530     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13531     t end
13532     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13533     :end' >>confcache
13534if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13535  if test -w "$cache_file"; then
13536    if test "x$cache_file" != "x/dev/null"; then
13537      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13538$as_echo "$as_me: updating cache $cache_file" >&6;}
13539      if test ! -f "$cache_file" || test -h "$cache_file"; then
13540	cat confcache >"$cache_file"
13541      else
13542        case $cache_file in #(
13543        */* | ?:*)
13544	  mv -f confcache "$cache_file"$$ &&
13545	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13546        *)
13547	  mv -f confcache "$cache_file" ;;
13548	esac
13549      fi
13550    fi
13551  else
13552    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13553$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13554  fi
13555fi
13556rm -f confcache
13557
13558test "x$prefix" = xNONE && prefix=$ac_default_prefix
13559# Let make expand exec_prefix.
13560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13561
13562# Transform confdefs.h into DEFS.
13563# Protect against shell expansion while executing Makefile rules.
13564# Protect against Makefile macro expansion.
13565#
13566# If the first sed substitution is executed (which looks for macros that
13567# take arguments), then branch to the quote section.  Otherwise,
13568# look for a macro that doesn't take arguments.
13569ac_script='
13570:mline
13571/\\$/{
13572 N
13573 s,\\\n,,
13574 b mline
13575}
13576t clear
13577:clear
13578s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
13579t quote
13580s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
13581t quote
13582b any
13583:quote
13584s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13585s/\[/\\&/g
13586s/\]/\\&/g
13587s/\$/$$/g
13588H
13589:any
13590${
13591	g
13592	s/^\n//
13593	s/\n/ /g
13594	p
13595}
13596'
13597DEFS=`sed -n "$ac_script" confdefs.h`
13598
13599
13600ac_libobjs=
13601ac_ltlibobjs=
13602U=
13603for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13604  # 1. Remove the extension, and $U if already installed.
13605  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13606  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13607  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13608  #    will be set to the directory where LIBOBJS objects are built.
13609  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13610  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13611done
13612LIBOBJS=$ac_libobjs
13613
13614LTLIBOBJS=$ac_ltlibobjs
13615
13616
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13618$as_echo_n "checking that generated files are newer than configure... " >&6; }
13619   if test -n "$am_sleep_pid"; then
13620     # Hide warnings about reused PIDs.
13621     wait $am_sleep_pid 2>/dev/null
13622   fi
13623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13624$as_echo "done" >&6; }
13625 if test -n "$EXEEXT"; then
13626  am__EXEEXT_TRUE=
13627  am__EXEEXT_FALSE='#'
13628else
13629  am__EXEEXT_TRUE='#'
13630  am__EXEEXT_FALSE=
13631fi
13632
13633if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13634  as_fn_error $? "conditional \"AMDEP\" was never defined.
13635Usually this means the macro was only invoked conditionally." "$LINENO" 5
13636fi
13637if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13638  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13639Usually this means the macro was only invoked conditionally." "$LINENO" 5
13640fi
13641if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
13642  as_fn_error $? "conditional \"AIX\" was never defined.
13643Usually this means the macro was only invoked conditionally." "$LINENO" 5
13644fi
13645if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
13646  as_fn_error $? "conditional \"ANDROID\" was never defined.
13647Usually this means the macro was only invoked conditionally." "$LINENO" 5
13648fi
13649if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
13650  as_fn_error $? "conditional \"CYGWIN\" was never defined.
13651Usually this means the macro was only invoked conditionally." "$LINENO" 5
13652fi
13653if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
13654  as_fn_error $? "conditional \"DARWIN\" was never defined.
13655Usually this means the macro was only invoked conditionally." "$LINENO" 5
13656fi
13657if test -z "${DRAGONFLY_TRUE}" && test -z "${DRAGONFLY_FALSE}"; then
13658  as_fn_error $? "conditional \"DRAGONFLY\" was never defined.
13659Usually this means the macro was only invoked conditionally." "$LINENO" 5
13660fi
13661if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
13662  as_fn_error $? "conditional \"FREEBSD\" was never defined.
13663Usually this means the macro was only invoked conditionally." "$LINENO" 5
13664fi
13665if test -z "${HAIKU_TRUE}" && test -z "${HAIKU_FALSE}"; then
13666  as_fn_error $? "conditional \"HAIKU\" was never defined.
13667Usually this means the macro was only invoked conditionally." "$LINENO" 5
13668fi
13669if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
13670  as_fn_error $? "conditional \"HURD\" was never defined.
13671Usually this means the macro was only invoked conditionally." "$LINENO" 5
13672fi
13673if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
13674  as_fn_error $? "conditional \"LINUX\" was never defined.
13675Usually this means the macro was only invoked conditionally." "$LINENO" 5
13676fi
13677if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
13678  as_fn_error $? "conditional \"MSYS\" was never defined.
13679Usually this means the macro was only invoked conditionally." "$LINENO" 5
13680fi
13681if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
13682  as_fn_error $? "conditional \"NETBSD\" was never defined.
13683Usually this means the macro was only invoked conditionally." "$LINENO" 5
13684fi
13685if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
13686  as_fn_error $? "conditional \"OPENBSD\" was never defined.
13687Usually this means the macro was only invoked conditionally." "$LINENO" 5
13688fi
13689if test -z "${OS390_TRUE}" && test -z "${OS390_FALSE}"; then
13690  as_fn_error $? "conditional \"OS390\" was never defined.
13691Usually this means the macro was only invoked conditionally." "$LINENO" 5
13692fi
13693if test -z "${OS400_TRUE}" && test -z "${OS400_FALSE}"; then
13694  as_fn_error $? "conditional \"OS400\" was never defined.
13695Usually this means the macro was only invoked conditionally." "$LINENO" 5
13696fi
13697if test -z "${SUNOS_TRUE}" && test -z "${SUNOS_FALSE}"; then
13698  as_fn_error $? "conditional \"SUNOS\" was never defined.
13699Usually this means the macro was only invoked conditionally." "$LINENO" 5
13700fi
13701if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
13702  as_fn_error $? "conditional \"WINNT\" was never defined.
13703Usually this means the macro was only invoked conditionally." "$LINENO" 5
13704fi
13705
13706: "${CONFIG_STATUS=./config.status}"
13707ac_write_fail=0
13708ac_clean_files_save=$ac_clean_files
13709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13712as_write_fail=0
13713cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13714#! $SHELL
13715# Generated by $as_me.
13716# Run this file to recreate the current configuration.
13717# Compiler output produced by configure, useful for debugging
13718# configure, is in config.log if it exists.
13719
13720debug=false
13721ac_cs_recheck=false
13722ac_cs_silent=false
13723
13724SHELL=\${CONFIG_SHELL-$SHELL}
13725export SHELL
13726_ASEOF
13727cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13728## -------------------- ##
13729## M4sh Initialization. ##
13730## -------------------- ##
13731
13732# Be more Bourne compatible
13733DUALCASE=1; export DUALCASE # for MKS sh
13734if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13735  emulate sh
13736  NULLCMD=:
13737  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13738  # is contrary to our usage.  Disable this feature.
13739  alias -g '${1+"$@"}'='"$@"'
13740  setopt NO_GLOB_SUBST
13741else
13742  case `(set -o) 2>/dev/null` in
13743  *posix*) set -o posix ;;
13744esac
13745fi
13746
13747
13748as_nl='
13749'
13750export as_nl
13751# Printing a long string crashes Solaris 7 /usr/bin/printf.
13752as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13753as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13754as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13755# Prefer a ksh shell builtin over an external printf program on Solaris,
13756# but without wasting forks for bash or zsh.
13757if test -z "$BASH_VERSION$ZSH_VERSION" \
13758    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13759  as_echo='print -r --'
13760  as_echo_n='print -rn --'
13761elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13762  as_echo='printf %s\n'
13763  as_echo_n='printf %s'
13764else
13765  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13766    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13767    as_echo_n='/usr/ucb/echo -n'
13768  else
13769    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13770    as_echo_n_body='eval
13771      arg=$1;
13772      case $arg in #(
13773      *"$as_nl"*)
13774	expr "X$arg" : "X\\(.*\\)$as_nl";
13775	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13776      esac;
13777      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13778    '
13779    export as_echo_n_body
13780    as_echo_n='sh -c $as_echo_n_body as_echo'
13781  fi
13782  export as_echo_body
13783  as_echo='sh -c $as_echo_body as_echo'
13784fi
13785
13786# The user is always right.
13787if test "${PATH_SEPARATOR+set}" != set; then
13788  PATH_SEPARATOR=:
13789  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13790    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13791      PATH_SEPARATOR=';'
13792  }
13793fi
13794
13795
13796# IFS
13797# We need space, tab and new line, in precisely that order.  Quoting is
13798# there to prevent editors from complaining about space-tab.
13799# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13800# splitting by setting IFS to empty value.)
13801IFS=" ""	$as_nl"
13802
13803# Find who we are.  Look in the path if we contain no directory separator.
13804as_myself=
13805case $0 in #((
13806  *[\\/]* ) as_myself=$0 ;;
13807  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808for as_dir in $PATH
13809do
13810  IFS=$as_save_IFS
13811  test -z "$as_dir" && as_dir=.
13812    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13813  done
13814IFS=$as_save_IFS
13815
13816     ;;
13817esac
13818# We did not find ourselves, most probably we were run as `sh COMMAND'
13819# in which case we are not to be found in the path.
13820if test "x$as_myself" = x; then
13821  as_myself=$0
13822fi
13823if test ! -f "$as_myself"; then
13824  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13825  exit 1
13826fi
13827
13828# Unset variables that we do not need and which cause bugs (e.g. in
13829# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13830# suppresses any "Segmentation fault" message there.  '((' could
13831# trigger a bug in pdksh 5.2.14.
13832for as_var in BASH_ENV ENV MAIL MAILPATH
13833do eval test x\${$as_var+set} = xset \
13834  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13835done
13836PS1='$ '
13837PS2='> '
13838PS4='+ '
13839
13840# NLS nuisances.
13841LC_ALL=C
13842export LC_ALL
13843LANGUAGE=C
13844export LANGUAGE
13845
13846# CDPATH.
13847(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13848
13849
13850# as_fn_error STATUS ERROR [LINENO LOG_FD]
13851# ----------------------------------------
13852# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13853# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13854# script with STATUS, using 1 if that was 0.
13855as_fn_error ()
13856{
13857  as_status=$1; test $as_status -eq 0 && as_status=1
13858  if test "$4"; then
13859    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13860    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13861  fi
13862  $as_echo "$as_me: error: $2" >&2
13863  as_fn_exit $as_status
13864} # as_fn_error
13865
13866
13867# as_fn_set_status STATUS
13868# -----------------------
13869# Set $? to STATUS, without forking.
13870as_fn_set_status ()
13871{
13872  return $1
13873} # as_fn_set_status
13874
13875# as_fn_exit STATUS
13876# -----------------
13877# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13878as_fn_exit ()
13879{
13880  set +e
13881  as_fn_set_status $1
13882  exit $1
13883} # as_fn_exit
13884
13885# as_fn_unset VAR
13886# ---------------
13887# Portably unset VAR.
13888as_fn_unset ()
13889{
13890  { eval $1=; unset $1;}
13891}
13892as_unset=as_fn_unset
13893# as_fn_append VAR VALUE
13894# ----------------------
13895# Append the text in VALUE to the end of the definition contained in VAR. Take
13896# advantage of any shell optimizations that allow amortized linear growth over
13897# repeated appends, instead of the typical quadratic growth present in naive
13898# implementations.
13899if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13900  eval 'as_fn_append ()
13901  {
13902    eval $1+=\$2
13903  }'
13904else
13905  as_fn_append ()
13906  {
13907    eval $1=\$$1\$2
13908  }
13909fi # as_fn_append
13910
13911# as_fn_arith ARG...
13912# ------------------
13913# Perform arithmetic evaluation on the ARGs, and store the result in the
13914# global $as_val. Take advantage of shells that can avoid forks. The arguments
13915# must be portable across $(()) and expr.
13916if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13917  eval 'as_fn_arith ()
13918  {
13919    as_val=$(( $* ))
13920  }'
13921else
13922  as_fn_arith ()
13923  {
13924    as_val=`expr "$@" || test $? -eq 1`
13925  }
13926fi # as_fn_arith
13927
13928
13929if expr a : '\(a\)' >/dev/null 2>&1 &&
13930   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13931  as_expr=expr
13932else
13933  as_expr=false
13934fi
13935
13936if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13937  as_basename=basename
13938else
13939  as_basename=false
13940fi
13941
13942if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13943  as_dirname=dirname
13944else
13945  as_dirname=false
13946fi
13947
13948as_me=`$as_basename -- "$0" ||
13949$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13950	 X"$0" : 'X\(//\)$' \| \
13951	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13952$as_echo X/"$0" |
13953    sed '/^.*\/\([^/][^/]*\)\/*$/{
13954	    s//\1/
13955	    q
13956	  }
13957	  /^X\/\(\/\/\)$/{
13958	    s//\1/
13959	    q
13960	  }
13961	  /^X\/\(\/\).*/{
13962	    s//\1/
13963	    q
13964	  }
13965	  s/.*/./; q'`
13966
13967# Avoid depending upon Character Ranges.
13968as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13969as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13970as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13971as_cr_digits='0123456789'
13972as_cr_alnum=$as_cr_Letters$as_cr_digits
13973
13974ECHO_C= ECHO_N= ECHO_T=
13975case `echo -n x` in #(((((
13976-n*)
13977  case `echo 'xy\c'` in
13978  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13979  xy)  ECHO_C='\c';;
13980  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13981       ECHO_T='	';;
13982  esac;;
13983*)
13984  ECHO_N='-n';;
13985esac
13986
13987rm -f conf$$ conf$$.exe conf$$.file
13988if test -d conf$$.dir; then
13989  rm -f conf$$.dir/conf$$.file
13990else
13991  rm -f conf$$.dir
13992  mkdir conf$$.dir 2>/dev/null
13993fi
13994if (echo >conf$$.file) 2>/dev/null; then
13995  if ln -s conf$$.file conf$$ 2>/dev/null; then
13996    as_ln_s='ln -s'
13997    # ... but there are two gotchas:
13998    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13999    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14000    # In both cases, we have to default to `cp -pR'.
14001    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14002      as_ln_s='cp -pR'
14003  elif ln conf$$.file conf$$ 2>/dev/null; then
14004    as_ln_s=ln
14005  else
14006    as_ln_s='cp -pR'
14007  fi
14008else
14009  as_ln_s='cp -pR'
14010fi
14011rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14012rmdir conf$$.dir 2>/dev/null
14013
14014
14015# as_fn_mkdir_p
14016# -------------
14017# Create "$as_dir" as a directory, including parents if necessary.
14018as_fn_mkdir_p ()
14019{
14020
14021  case $as_dir in #(
14022  -*) as_dir=./$as_dir;;
14023  esac
14024  test -d "$as_dir" || eval $as_mkdir_p || {
14025    as_dirs=
14026    while :; do
14027      case $as_dir in #(
14028      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14029      *) as_qdir=$as_dir;;
14030      esac
14031      as_dirs="'$as_qdir' $as_dirs"
14032      as_dir=`$as_dirname -- "$as_dir" ||
14033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14034	 X"$as_dir" : 'X\(//\)[^/]' \| \
14035	 X"$as_dir" : 'X\(//\)$' \| \
14036	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14037$as_echo X"$as_dir" |
14038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14039	    s//\1/
14040	    q
14041	  }
14042	  /^X\(\/\/\)[^/].*/{
14043	    s//\1/
14044	    q
14045	  }
14046	  /^X\(\/\/\)$/{
14047	    s//\1/
14048	    q
14049	  }
14050	  /^X\(\/\).*/{
14051	    s//\1/
14052	    q
14053	  }
14054	  s/.*/./; q'`
14055      test -d "$as_dir" && break
14056    done
14057    test -z "$as_dirs" || eval "mkdir $as_dirs"
14058  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14059
14060
14061} # as_fn_mkdir_p
14062if mkdir -p . 2>/dev/null; then
14063  as_mkdir_p='mkdir -p "$as_dir"'
14064else
14065  test -d ./-p && rmdir ./-p
14066  as_mkdir_p=false
14067fi
14068
14069
14070# as_fn_executable_p FILE
14071# -----------------------
14072# Test if FILE is an executable regular file.
14073as_fn_executable_p ()
14074{
14075  test -f "$1" && test -x "$1"
14076} # as_fn_executable_p
14077as_test_x='test -x'
14078as_executable_p=as_fn_executable_p
14079
14080# Sed expression to map a string onto a valid CPP name.
14081as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14082
14083# Sed expression to map a string onto a valid variable name.
14084as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14085
14086
14087exec 6>&1
14088## ----------------------------------- ##
14089## Main body of $CONFIG_STATUS script. ##
14090## ----------------------------------- ##
14091_ASEOF
14092test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14093
14094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14095# Save the log message, to keep $0 and so on meaningful, and to
14096# report actual input values of CONFIG_FILES etc. instead of their
14097# values after options handling.
14098ac_log="
14099This file was extended by libuv $as_me 1.37.0, which was
14100generated by GNU Autoconf 2.69.  Invocation command line was
14101
14102  CONFIG_FILES    = $CONFIG_FILES
14103  CONFIG_HEADERS  = $CONFIG_HEADERS
14104  CONFIG_LINKS    = $CONFIG_LINKS
14105  CONFIG_COMMANDS = $CONFIG_COMMANDS
14106  $ $0 $@
14107
14108on `(hostname || uname -n) 2>/dev/null | sed 1q`
14109"
14110
14111_ACEOF
14112
14113case $ac_config_files in *"
14114"*) set x $ac_config_files; shift; ac_config_files=$*;;
14115esac
14116
14117
14118
14119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120# Files that config.status was made for.
14121config_files="$ac_config_files"
14122config_links="$ac_config_links"
14123config_commands="$ac_config_commands"
14124
14125_ACEOF
14126
14127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14128ac_cs_usage="\
14129\`$as_me' instantiates files and other configuration actions
14130from templates according to the current configuration.  Unless the files
14131and actions are specified as TAGs, all are instantiated by default.
14132
14133Usage: $0 [OPTION]... [TAG]...
14134
14135  -h, --help       print this help, then exit
14136  -V, --version    print version number and configuration settings, then exit
14137      --config     print configuration, then exit
14138  -q, --quiet, --silent
14139                   do not print progress messages
14140  -d, --debug      don't remove temporary files
14141      --recheck    update $as_me by reconfiguring in the same conditions
14142      --file=FILE[:TEMPLATE]
14143                   instantiate the configuration file FILE
14144
14145Configuration files:
14146$config_files
14147
14148Configuration links:
14149$config_links
14150
14151Configuration commands:
14152$config_commands
14153
14154Report bugs to <https://github.com/libuv/libuv/issues>."
14155
14156_ACEOF
14157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14158ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14159ac_cs_version="\\
14160libuv config.status 1.37.0
14161configured by $0, generated by GNU Autoconf 2.69,
14162  with options \\"\$ac_cs_config\\"
14163
14164Copyright (C) 2012 Free Software Foundation, Inc.
14165This config.status script is free software; the Free Software Foundation
14166gives unlimited permission to copy, distribute and modify it."
14167
14168ac_pwd='$ac_pwd'
14169srcdir='$srcdir'
14170INSTALL='$INSTALL'
14171MKDIR_P='$MKDIR_P'
14172AWK='$AWK'
14173test -n "\$AWK" || AWK=awk
14174_ACEOF
14175
14176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14177# The default lists apply if the user does not specify any file.
14178ac_need_defaults=:
14179while test $# != 0
14180do
14181  case $1 in
14182  --*=?*)
14183    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14184    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14185    ac_shift=:
14186    ;;
14187  --*=)
14188    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14189    ac_optarg=
14190    ac_shift=:
14191    ;;
14192  *)
14193    ac_option=$1
14194    ac_optarg=$2
14195    ac_shift=shift
14196    ;;
14197  esac
14198
14199  case $ac_option in
14200  # Handling of the options.
14201  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14202    ac_cs_recheck=: ;;
14203  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14204    $as_echo "$ac_cs_version"; exit ;;
14205  --config | --confi | --conf | --con | --co | --c )
14206    $as_echo "$ac_cs_config"; exit ;;
14207  --debug | --debu | --deb | --de | --d | -d )
14208    debug=: ;;
14209  --file | --fil | --fi | --f )
14210    $ac_shift
14211    case $ac_optarg in
14212    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14213    '') as_fn_error $? "missing file argument" ;;
14214    esac
14215    as_fn_append CONFIG_FILES " '$ac_optarg'"
14216    ac_need_defaults=false;;
14217  --he | --h |  --help | --hel | -h )
14218    $as_echo "$ac_cs_usage"; exit ;;
14219  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14220  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14221    ac_cs_silent=: ;;
14222
14223  # This is an error.
14224  -*) as_fn_error $? "unrecognized option: \`$1'
14225Try \`$0 --help' for more information." ;;
14226
14227  *) as_fn_append ac_config_targets " $1"
14228     ac_need_defaults=false ;;
14229
14230  esac
14231  shift
14232done
14233
14234ac_configure_extra_args=
14235
14236if $ac_cs_silent; then
14237  exec 6>/dev/null
14238  ac_configure_extra_args="$ac_configure_extra_args --silent"
14239fi
14240
14241_ACEOF
14242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14243if \$ac_cs_recheck; then
14244  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14245  shift
14246  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14247  CONFIG_SHELL='$SHELL'
14248  export CONFIG_SHELL
14249  exec "\$@"
14250fi
14251
14252_ACEOF
14253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254exec 5>>config.log
14255{
14256  echo
14257  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14258## Running $as_me. ##
14259_ASBOX
14260  $as_echo "$ac_log"
14261} >&5
14262
14263_ACEOF
14264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14265#
14266# INIT-COMMANDS
14267#
14268AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14269
14270
14271# The HP-UX ksh and POSIX shell print the target directory to stdout
14272# if CDPATH is set.
14273(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14274
14275sed_quote_subst='$sed_quote_subst'
14276double_quote_subst='$double_quote_subst'
14277delay_variable_subst='$delay_variable_subst'
14278enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14279enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14280macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14281macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14282pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14283enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14284shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14285SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14286ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14287PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14288host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14289host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14290host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14291build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14292build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14293build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14294SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14295Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14296GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14297EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14298FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14299LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14300NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14301LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14302max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14303ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14304exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14305lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14306lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14307lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14308lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14309lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14310reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14311reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14312OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14313deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14314file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14315file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14316want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14317DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14318sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14319AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14320AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14321archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14322STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14323RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14324old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14325old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14326old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14327lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14328CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14329CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14330compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14331GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14332lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14333lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14334lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14335lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14336lt_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"`'
14337lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14338nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14339lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14340lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14341objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14342MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14343lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14344lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14345lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14346lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14347lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14348need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14349MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14350DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14351NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14352LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14353OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14354OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14355libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14356shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14357extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14358archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14359enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14360export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14361whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14362compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14363old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14364old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14365archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14366archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14367module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14368module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14369with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14370allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14371no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14372hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14373hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14374hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14375hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14376hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14377hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14378hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14379inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14380link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14381always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14382export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14383exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14384include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14385prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14386postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14387file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14388variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14389need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14390need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14391version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14392runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14393shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14394shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14395libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14396library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14397soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14398install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14399postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14400postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14401finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14402finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14403hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14404sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14405configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14406configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14407hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14408enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14409enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14410enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14411old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14412striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14413
14414LTCC='$LTCC'
14415LTCFLAGS='$LTCFLAGS'
14416compiler='$compiler_DEFAULT'
14417
14418# A function that is used when there is no print builtin or printf.
14419func_fallback_echo ()
14420{
14421  eval 'cat <<_LTECHO_EOF
14422\$1
14423_LTECHO_EOF'
14424}
14425
14426# Quote evaled strings.
14427for var in SHELL \
14428ECHO \
14429PATH_SEPARATOR \
14430SED \
14431GREP \
14432EGREP \
14433FGREP \
14434LD \
14435NM \
14436LN_S \
14437lt_SP2NL \
14438lt_NL2SP \
14439reload_flag \
14440OBJDUMP \
14441deplibs_check_method \
14442file_magic_cmd \
14443file_magic_glob \
14444want_nocaseglob \
14445DLLTOOL \
14446sharedlib_from_linklib_cmd \
14447AR \
14448AR_FLAGS \
14449archiver_list_spec \
14450STRIP \
14451RANLIB \
14452CC \
14453CFLAGS \
14454compiler \
14455lt_cv_sys_global_symbol_pipe \
14456lt_cv_sys_global_symbol_to_cdecl \
14457lt_cv_sys_global_symbol_to_import \
14458lt_cv_sys_global_symbol_to_c_name_address \
14459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14460lt_cv_nm_interface \
14461nm_file_list_spec \
14462lt_cv_truncate_bin \
14463lt_prog_compiler_no_builtin_flag \
14464lt_prog_compiler_pic \
14465lt_prog_compiler_wl \
14466lt_prog_compiler_static \
14467lt_cv_prog_compiler_c_o \
14468need_locks \
14469MANIFEST_TOOL \
14470DSYMUTIL \
14471NMEDIT \
14472LIPO \
14473OTOOL \
14474OTOOL64 \
14475shrext_cmds \
14476export_dynamic_flag_spec \
14477whole_archive_flag_spec \
14478compiler_needs_object \
14479with_gnu_ld \
14480allow_undefined_flag \
14481no_undefined_flag \
14482hardcode_libdir_flag_spec \
14483hardcode_libdir_separator \
14484exclude_expsyms \
14485include_expsyms \
14486file_list_spec \
14487variables_saved_for_relink \
14488libname_spec \
14489library_names_spec \
14490soname_spec \
14491install_override_mode \
14492finish_eval \
14493old_striplib \
14494striplib; do
14495    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14496    *[\\\\\\\`\\"\\\$]*)
14497      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14498      ;;
14499    *)
14500      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14501      ;;
14502    esac
14503done
14504
14505# Double-quote double-evaled strings.
14506for var in reload_cmds \
14507old_postinstall_cmds \
14508old_postuninstall_cmds \
14509old_archive_cmds \
14510extract_expsyms_cmds \
14511old_archive_from_new_cmds \
14512old_archive_from_expsyms_cmds \
14513archive_cmds \
14514archive_expsym_cmds \
14515module_cmds \
14516module_expsym_cmds \
14517export_symbols_cmds \
14518prelink_cmds \
14519postlink_cmds \
14520postinstall_cmds \
14521postuninstall_cmds \
14522finish_cmds \
14523sys_lib_search_path_spec \
14524configure_time_dlsearch_path \
14525configure_time_lt_sys_library_path; do
14526    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14527    *[\\\\\\\`\\"\\\$]*)
14528      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14529      ;;
14530    *)
14531      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14532      ;;
14533    esac
14534done
14535
14536ac_aux_dir='$ac_aux_dir'
14537
14538# See if we are running on zsh, and set the options that allow our
14539# commands through without removal of \ escapes INIT.
14540if test -n "\${ZSH_VERSION+set}"; then
14541   setopt NO_GLOB_SUBST
14542fi
14543
14544
14545    PACKAGE='$PACKAGE'
14546    VERSION='$VERSION'
14547    RM='$RM'
14548    ofile='$ofile'
14549
14550
14551
14552
14553_ACEOF
14554
14555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14556
14557# Handling of arguments.
14558for ac_config_target in $ac_config_targets
14559do
14560  case $ac_config_target in
14561    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14562    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14563    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14564    "libuv.pc") CONFIG_FILES="$CONFIG_FILES libuv.pc" ;;
14565    "test/fixtures/empty_file") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/empty_file:test/fixtures/empty_file" ;;
14566    "test/fixtures/load_error.node") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/load_error.node:test/fixtures/load_error.node" ;;
14567    "test/fixtures/lorem_ipsum.txt") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/lorem_ipsum.txt:test/fixtures/lorem_ipsum.txt" ;;
14568
14569  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14570  esac
14571done
14572
14573
14574# If the user did not use the arguments to specify the items to instantiate,
14575# then the envvar interface is used.  Set only those that are not.
14576# We use the long form for the default assignment because of an extremely
14577# bizarre bug on SunOS 4.1.3.
14578if $ac_need_defaults; then
14579  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14580  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14581  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14582fi
14583
14584# Have a temporary directory for convenience.  Make it in the build tree
14585# simply because there is no reason against having it here, and in addition,
14586# creating and moving files from /tmp can sometimes cause problems.
14587# Hook for its removal unless debugging.
14588# Note that there is a small window in which the directory will not be cleaned:
14589# after its creation but before its name has been assigned to `$tmp'.
14590$debug ||
14591{
14592  tmp= ac_tmp=
14593  trap 'exit_status=$?
14594  : "${ac_tmp:=$tmp}"
14595  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14596' 0
14597  trap 'as_fn_exit 1' 1 2 13 15
14598}
14599# Create a (secure) tmp directory for tmp files.
14600
14601{
14602  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14603  test -d "$tmp"
14604}  ||
14605{
14606  tmp=./conf$$-$RANDOM
14607  (umask 077 && mkdir "$tmp")
14608} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14609ac_tmp=$tmp
14610
14611# Set up the scripts for CONFIG_FILES section.
14612# No need to generate them if there are no CONFIG_FILES.
14613# This happens for instance with `./config.status config.h'.
14614if test -n "$CONFIG_FILES"; then
14615
14616
14617ac_cr=`echo X | tr X '\015'`
14618# On cygwin, bash can eat \r inside `` if the user requested igncr.
14619# But we know of no other shell where ac_cr would be empty at this
14620# point, so we can use a bashism as a fallback.
14621if test "x$ac_cr" = x; then
14622  eval ac_cr=\$\'\\r\'
14623fi
14624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14626  ac_cs_awk_cr='\\r'
14627else
14628  ac_cs_awk_cr=$ac_cr
14629fi
14630
14631echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14632_ACEOF
14633
14634
14635{
14636  echo "cat >conf$$subs.awk <<_ACEOF" &&
14637  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14638  echo "_ACEOF"
14639} >conf$$subs.sh ||
14640  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14641ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14642ac_delim='%!_!# '
14643for ac_last_try in false false false false false :; do
14644  . ./conf$$subs.sh ||
14645    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14646
14647  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14648  if test $ac_delim_n = $ac_delim_num; then
14649    break
14650  elif $ac_last_try; then
14651    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14652  else
14653    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14654  fi
14655done
14656rm -f conf$$subs.sh
14657
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14660_ACEOF
14661sed -n '
14662h
14663s/^/S["/; s/!.*/"]=/
14664p
14665g
14666s/^[^!]*!//
14667:repl
14668t repl
14669s/'"$ac_delim"'$//
14670t delim
14671:nl
14672h
14673s/\(.\{148\}\)..*/\1/
14674t more1
14675s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14676p
14677n
14678b repl
14679:more1
14680s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14681p
14682g
14683s/.\{148\}//
14684t nl
14685:delim
14686h
14687s/\(.\{148\}\)..*/\1/
14688t more2
14689s/["\\]/\\&/g; s/^/"/; s/$/"/
14690p
14691b
14692:more2
14693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14694p
14695g
14696s/.\{148\}//
14697t delim
14698' <conf$$subs.awk | sed '
14699/^[^""]/{
14700  N
14701  s/\n//
14702}
14703' >>$CONFIG_STATUS || ac_write_fail=1
14704rm -f conf$$subs.awk
14705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14706_ACAWK
14707cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14708  for (key in S) S_is_set[key] = 1
14709  FS = ""
14710
14711}
14712{
14713  line = $ 0
14714  nfields = split(line, field, "@")
14715  substed = 0
14716  len = length(field[1])
14717  for (i = 2; i < nfields; i++) {
14718    key = field[i]
14719    keylen = length(key)
14720    if (S_is_set[key]) {
14721      value = S[key]
14722      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14723      len += length(value) + length(field[++i])
14724      substed = 1
14725    } else
14726      len += 1 + keylen
14727  }
14728
14729  print line
14730}
14731
14732_ACAWK
14733_ACEOF
14734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14736  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14737else
14738  cat
14739fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14740  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14741_ACEOF
14742
14743# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14744# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14745# trailing colons and then remove the whole line if VPATH becomes empty
14746# (actually we leave an empty line to preserve line numbers).
14747if test "x$srcdir" = x.; then
14748  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14749h
14750s///
14751s/^/:/
14752s/[	 ]*$/:/
14753s/:\$(srcdir):/:/g
14754s/:\${srcdir}:/:/g
14755s/:@srcdir@:/:/g
14756s/^:*//
14757s/:*$//
14758x
14759s/\(=[	 ]*\).*/\1/
14760G
14761s/\n//
14762s/^[^=]*=[	 ]*$//
14763}'
14764fi
14765
14766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767fi # test -n "$CONFIG_FILES"
14768
14769
14770eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
14771shift
14772for ac_tag
14773do
14774  case $ac_tag in
14775  :[FHLC]) ac_mode=$ac_tag; continue;;
14776  esac
14777  case $ac_mode$ac_tag in
14778  :[FHL]*:*);;
14779  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14780  :[FH]-) ac_tag=-:-;;
14781  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14782  esac
14783  ac_save_IFS=$IFS
14784  IFS=:
14785  set x $ac_tag
14786  IFS=$ac_save_IFS
14787  shift
14788  ac_file=$1
14789  shift
14790
14791  case $ac_mode in
14792  :L) ac_source=$1;;
14793  :[FH])
14794    ac_file_inputs=
14795    for ac_f
14796    do
14797      case $ac_f in
14798      -) ac_f="$ac_tmp/stdin";;
14799      *) # Look for the file first in the build tree, then in the source tree
14800	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14801	 # because $ac_f cannot contain `:'.
14802	 test -f "$ac_f" ||
14803	   case $ac_f in
14804	   [\\/$]*) false;;
14805	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14806	   esac ||
14807	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14808      esac
14809      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14810      as_fn_append ac_file_inputs " '$ac_f'"
14811    done
14812
14813    # Let's still pretend it is `configure' which instantiates (i.e., don't
14814    # use $as_me), people would be surprised to read:
14815    #    /* config.h.  Generated by config.status.  */
14816    configure_input='Generated from '`
14817	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14818	`' by configure.'
14819    if test x"$ac_file" != x-; then
14820      configure_input="$ac_file.  $configure_input"
14821      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14822$as_echo "$as_me: creating $ac_file" >&6;}
14823    fi
14824    # Neutralize special characters interpreted by sed in replacement strings.
14825    case $configure_input in #(
14826    *\&* | *\|* | *\\* )
14827       ac_sed_conf_input=`$as_echo "$configure_input" |
14828       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14829    *) ac_sed_conf_input=$configure_input;;
14830    esac
14831
14832    case $ac_tag in
14833    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14834      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14835    esac
14836    ;;
14837  esac
14838
14839  ac_dir=`$as_dirname -- "$ac_file" ||
14840$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14841	 X"$ac_file" : 'X\(//\)[^/]' \| \
14842	 X"$ac_file" : 'X\(//\)$' \| \
14843	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14844$as_echo X"$ac_file" |
14845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14846	    s//\1/
14847	    q
14848	  }
14849	  /^X\(\/\/\)[^/].*/{
14850	    s//\1/
14851	    q
14852	  }
14853	  /^X\(\/\/\)$/{
14854	    s//\1/
14855	    q
14856	  }
14857	  /^X\(\/\).*/{
14858	    s//\1/
14859	    q
14860	  }
14861	  s/.*/./; q'`
14862  as_dir="$ac_dir"; as_fn_mkdir_p
14863  ac_builddir=.
14864
14865case "$ac_dir" in
14866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14867*)
14868  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14869  # A ".." for each directory in $ac_dir_suffix.
14870  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14871  case $ac_top_builddir_sub in
14872  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14873  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14874  esac ;;
14875esac
14876ac_abs_top_builddir=$ac_pwd
14877ac_abs_builddir=$ac_pwd$ac_dir_suffix
14878# for backward compatibility:
14879ac_top_builddir=$ac_top_build_prefix
14880
14881case $srcdir in
14882  .)  # We are building in place.
14883    ac_srcdir=.
14884    ac_top_srcdir=$ac_top_builddir_sub
14885    ac_abs_top_srcdir=$ac_pwd ;;
14886  [\\/]* | ?:[\\/]* )  # Absolute name.
14887    ac_srcdir=$srcdir$ac_dir_suffix;
14888    ac_top_srcdir=$srcdir
14889    ac_abs_top_srcdir=$srcdir ;;
14890  *) # Relative name.
14891    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14892    ac_top_srcdir=$ac_top_build_prefix$srcdir
14893    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14894esac
14895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14896
14897
14898  case $ac_mode in
14899  :F)
14900  #
14901  # CONFIG_FILE
14902  #
14903
14904  case $INSTALL in
14905  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14906  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14907  esac
14908  ac_MKDIR_P=$MKDIR_P
14909  case $MKDIR_P in
14910  [\\/$]* | ?:[\\/]* ) ;;
14911  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14912  esac
14913_ACEOF
14914
14915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14916# If the template does not know about datarootdir, expand it.
14917# FIXME: This hack should be removed a few years after 2.60.
14918ac_datarootdir_hack=; ac_datarootdir_seen=
14919ac_sed_dataroot='
14920/datarootdir/ {
14921  p
14922  q
14923}
14924/@datadir@/p
14925/@docdir@/p
14926/@infodir@/p
14927/@localedir@/p
14928/@mandir@/p'
14929case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14930*datarootdir*) ac_datarootdir_seen=yes;;
14931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14932  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14933$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14934_ACEOF
14935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14936  ac_datarootdir_hack='
14937  s&@datadir@&$datadir&g
14938  s&@docdir@&$docdir&g
14939  s&@infodir@&$infodir&g
14940  s&@localedir@&$localedir&g
14941  s&@mandir@&$mandir&g
14942  s&\\\${datarootdir}&$datarootdir&g' ;;
14943esac
14944_ACEOF
14945
14946# Neutralize VPATH when `$srcdir' = `.'.
14947# Shell code in configure.ac might set extrasub.
14948# FIXME: do we really want to maintain this feature?
14949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14950ac_sed_extra="$ac_vpsub
14951$extrasub
14952_ACEOF
14953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14954:t
14955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14956s|@configure_input@|$ac_sed_conf_input|;t t
14957s&@top_builddir@&$ac_top_builddir_sub&;t t
14958s&@top_build_prefix@&$ac_top_build_prefix&;t t
14959s&@srcdir@&$ac_srcdir&;t t
14960s&@abs_srcdir@&$ac_abs_srcdir&;t t
14961s&@top_srcdir@&$ac_top_srcdir&;t t
14962s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14963s&@builddir@&$ac_builddir&;t t
14964s&@abs_builddir@&$ac_abs_builddir&;t t
14965s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14966s&@INSTALL@&$ac_INSTALL&;t t
14967s&@MKDIR_P@&$ac_MKDIR_P&;t t
14968$ac_datarootdir_hack
14969"
14970eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14971  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14972
14973test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14974  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14975  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14976      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14977  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14978which seems to be undefined.  Please make sure it is defined" >&5
14979$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14980which seems to be undefined.  Please make sure it is defined" >&2;}
14981
14982  rm -f "$ac_tmp/stdin"
14983  case $ac_file in
14984  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14985  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14986  esac \
14987  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14988 ;;
14989
14990  :L)
14991  #
14992  # CONFIG_LINK
14993  #
14994
14995  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14996    :
14997  else
14998    # Prefer the file from the source tree if names are identical.
14999    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15000      ac_source=$srcdir/$ac_source
15001    fi
15002
15003    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15004$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15005
15006    if test ! -r "$ac_source"; then
15007      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15008    fi
15009    rm -f "$ac_file"
15010
15011    # Try a relative symlink, then a hard link, then a copy.
15012    case $ac_source in
15013    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15014	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15015    esac
15016    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15017      ln "$ac_source" "$ac_file" 2>/dev/null ||
15018      cp -p "$ac_source" "$ac_file" ||
15019      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15020  fi
15021 ;;
15022  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15023$as_echo "$as_me: executing $ac_file commands" >&6;}
15024 ;;
15025  esac
15026
15027
15028  case $ac_file$ac_mode in
15029    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15030  # Older Autoconf quotes --file arguments for eval, but not when files
15031  # are listed without --file.  Let's play safe and only enable the eval
15032  # if we detect the quoting.
15033  # TODO: see whether this extra hack can be removed once we start
15034  # requiring Autoconf 2.70 or later.
15035  case $CONFIG_FILES in
15036  *\'*) eval set x "$CONFIG_FILES" ;;
15037  *) set x $CONFIG_FILES ;;
15038esac
15039  shift
15040  # Used to flag and report bootstrapping failures.
15041  am_rc=0
15042  for am_mf
15043  do
15044    # Strip MF so we end up with the name of the file.
15045    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15046    # Check whether this is an Automake generated Makefile which includes
15047    # dependency-tracking related rules and includes.
15048    # Grep'ing the whole file directly is not great: AIX grep has a line
15049    # limit of 2048, but all sed's we know have understand at least 4000.
15050    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15051      || continue
15052    am_dirpart=`$as_dirname -- "$am_mf" ||
15053$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15054	 X"$am_mf" : 'X\(//\)[^/]' \| \
15055	 X"$am_mf" : 'X\(//\)$' \| \
15056	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15057$as_echo X"$am_mf" |
15058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15059	    s//\1/
15060	    q
15061	  }
15062	  /^X\(\/\/\)[^/].*/{
15063	    s//\1/
15064	    q
15065	  }
15066	  /^X\(\/\/\)$/{
15067	    s//\1/
15068	    q
15069	  }
15070	  /^X\(\/\).*/{
15071	    s//\1/
15072	    q
15073	  }
15074	  s/.*/./; q'`
15075    am_filepart=`$as_basename -- "$am_mf" ||
15076$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15077	 X"$am_mf" : 'X\(//\)$' \| \
15078	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15079$as_echo X/"$am_mf" |
15080    sed '/^.*\/\([^/][^/]*\)\/*$/{
15081	    s//\1/
15082	    q
15083	  }
15084	  /^X\/\(\/\/\)$/{
15085	    s//\1/
15086	    q
15087	  }
15088	  /^X\/\(\/\).*/{
15089	    s//\1/
15090	    q
15091	  }
15092	  s/.*/./; q'`
15093    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15094      && sed -e '/# am--include-marker/d' "$am_filepart" \
15095        | $MAKE -f - am--depfiles" >&5
15096   (cd "$am_dirpart" \
15097      && sed -e '/# am--include-marker/d' "$am_filepart" \
15098        | $MAKE -f - am--depfiles) >&5 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } || am_rc=$?
15102  done
15103  if test $am_rc -ne 0; then
15104    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15106as_fn_error $? "Something went wrong bootstrapping makefile fragments
15107    for automatic dependency tracking.  Try re-running configure with the
15108    '--disable-dependency-tracking' option to at least be able to build
15109    the package (albeit without support for automatic dependency tracking).
15110See \`config.log' for more details" "$LINENO" 5; }
15111  fi
15112  { am_dirpart=; unset am_dirpart;}
15113  { am_filepart=; unset am_filepart;}
15114  { am_mf=; unset am_mf;}
15115  { am_rc=; unset am_rc;}
15116  rm -f conftest-deps.mk
15117}
15118 ;;
15119    "libtool":C)
15120
15121    # See if we are running on zsh, and set the options that allow our
15122    # commands through without removal of \ escapes.
15123    if test -n "${ZSH_VERSION+set}"; then
15124      setopt NO_GLOB_SUBST
15125    fi
15126
15127    cfgfile=${ofile}T
15128    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15129    $RM "$cfgfile"
15130
15131    cat <<_LT_EOF >> "$cfgfile"
15132#! $SHELL
15133# Generated automatically by $as_me ($PACKAGE) $VERSION
15134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15135# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15136
15137# Provide generalized library-building support services.
15138# Written by Gordon Matzigkeit, 1996
15139
15140# Copyright (C) 2014 Free Software Foundation, Inc.
15141# This is free software; see the source for copying conditions.  There is NO
15142# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15143
15144# GNU Libtool is free software; you can redistribute it and/or modify
15145# it under the terms of the GNU General Public License as published by
15146# the Free Software Foundation; either version 2 of of the License, or
15147# (at your option) any later version.
15148#
15149# As a special exception to the GNU General Public License, if you
15150# distribute this file as part of a program or library that is built
15151# using GNU Libtool, you may include this file under the  same
15152# distribution terms that you use for the rest of that program.
15153#
15154# GNU Libtool is distributed in the hope that it will be useful, but
15155# WITHOUT ANY WARRANTY; without even the implied warranty of
15156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15157# GNU General Public License for more details.
15158#
15159# You should have received a copy of the GNU General Public License
15160# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15161
15162
15163# The names of the tagged configurations supported by this script.
15164available_tags=''
15165
15166# Configured defaults for sys_lib_dlsearch_path munging.
15167: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15168
15169# ### BEGIN LIBTOOL CONFIG
15170
15171# Whether or not to build shared libraries.
15172build_libtool_libs=$enable_shared
15173
15174# Whether or not to build static libraries.
15175build_old_libs=$enable_static
15176
15177# Which release of libtool.m4 was used?
15178macro_version=$macro_version
15179macro_revision=$macro_revision
15180
15181# What type of objects to build.
15182pic_mode=$pic_mode
15183
15184# Whether or not to optimize for fast installation.
15185fast_install=$enable_fast_install
15186
15187# Shared archive member basename,for filename based shared library versioning on AIX.
15188shared_archive_member_spec=$shared_archive_member_spec
15189
15190# Shell to use when invoking shell scripts.
15191SHELL=$lt_SHELL
15192
15193# An echo program that protects backslashes.
15194ECHO=$lt_ECHO
15195
15196# The PATH separator for the build system.
15197PATH_SEPARATOR=$lt_PATH_SEPARATOR
15198
15199# The host system.
15200host_alias=$host_alias
15201host=$host
15202host_os=$host_os
15203
15204# The build system.
15205build_alias=$build_alias
15206build=$build
15207build_os=$build_os
15208
15209# A sed program that does not truncate output.
15210SED=$lt_SED
15211
15212# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15213Xsed="\$SED -e 1s/^X//"
15214
15215# A grep program that handles long lines.
15216GREP=$lt_GREP
15217
15218# An ERE matcher.
15219EGREP=$lt_EGREP
15220
15221# A literal string matcher.
15222FGREP=$lt_FGREP
15223
15224# A BSD- or MS-compatible name lister.
15225NM=$lt_NM
15226
15227# Whether we need soft or hard links.
15228LN_S=$lt_LN_S
15229
15230# What is the maximum length of a command?
15231max_cmd_len=$max_cmd_len
15232
15233# Object file suffix (normally "o").
15234objext=$ac_objext
15235
15236# Executable file suffix (normally "").
15237exeext=$exeext
15238
15239# whether the shell understands "unset".
15240lt_unset=$lt_unset
15241
15242# turn spaces into newlines.
15243SP2NL=$lt_lt_SP2NL
15244
15245# turn newlines into spaces.
15246NL2SP=$lt_lt_NL2SP
15247
15248# convert \$build file names to \$host format.
15249to_host_file_cmd=$lt_cv_to_host_file_cmd
15250
15251# convert \$build files to toolchain format.
15252to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15253
15254# An object symbol dumper.
15255OBJDUMP=$lt_OBJDUMP
15256
15257# Method to check whether dependent libraries are shared objects.
15258deplibs_check_method=$lt_deplibs_check_method
15259
15260# Command to use when deplibs_check_method = "file_magic".
15261file_magic_cmd=$lt_file_magic_cmd
15262
15263# How to find potential files when deplibs_check_method = "file_magic".
15264file_magic_glob=$lt_file_magic_glob
15265
15266# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15267want_nocaseglob=$lt_want_nocaseglob
15268
15269# DLL creation program.
15270DLLTOOL=$lt_DLLTOOL
15271
15272# Command to associate shared and link libraries.
15273sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15274
15275# The archiver.
15276AR=$lt_AR
15277
15278# Flags to create an archive.
15279AR_FLAGS=$lt_AR_FLAGS
15280
15281# How to feed a file listing to the archiver.
15282archiver_list_spec=$lt_archiver_list_spec
15283
15284# A symbol stripping program.
15285STRIP=$lt_STRIP
15286
15287# Commands used to install an old-style archive.
15288RANLIB=$lt_RANLIB
15289old_postinstall_cmds=$lt_old_postinstall_cmds
15290old_postuninstall_cmds=$lt_old_postuninstall_cmds
15291
15292# Whether to use a lock for old archive extraction.
15293lock_old_archive_extraction=$lock_old_archive_extraction
15294
15295# A C compiler.
15296LTCC=$lt_CC
15297
15298# LTCC compiler flags.
15299LTCFLAGS=$lt_CFLAGS
15300
15301# Take the output of nm and produce a listing of raw symbols and C names.
15302global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15303
15304# Transform the output of nm in a proper C declaration.
15305global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15306
15307# Transform the output of nm into a list of symbols to manually relocate.
15308global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15309
15310# Transform the output of nm in a C name address pair.
15311global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15312
15313# Transform the output of nm in a C name address pair when lib prefix is needed.
15314global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15315
15316# The name lister interface.
15317nm_interface=$lt_lt_cv_nm_interface
15318
15319# Specify filename containing input files for \$NM.
15320nm_file_list_spec=$lt_nm_file_list_spec
15321
15322# The root where to search for dependent libraries,and where our libraries should be installed.
15323lt_sysroot=$lt_sysroot
15324
15325# Command to truncate a binary pipe.
15326lt_truncate_bin=$lt_lt_cv_truncate_bin
15327
15328# The name of the directory that contains temporary libtool files.
15329objdir=$objdir
15330
15331# Used to examine libraries when file_magic_cmd begins with "file".
15332MAGIC_CMD=$MAGIC_CMD
15333
15334# Must we lock files when doing compilation?
15335need_locks=$lt_need_locks
15336
15337# Manifest tool.
15338MANIFEST_TOOL=$lt_MANIFEST_TOOL
15339
15340# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15341DSYMUTIL=$lt_DSYMUTIL
15342
15343# Tool to change global to local symbols on Mac OS X.
15344NMEDIT=$lt_NMEDIT
15345
15346# Tool to manipulate fat objects and archives on Mac OS X.
15347LIPO=$lt_LIPO
15348
15349# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15350OTOOL=$lt_OTOOL
15351
15352# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15353OTOOL64=$lt_OTOOL64
15354
15355# Old archive suffix (normally "a").
15356libext=$libext
15357
15358# Shared library suffix (normally ".so").
15359shrext_cmds=$lt_shrext_cmds
15360
15361# The commands to extract the exported symbol list from a shared archive.
15362extract_expsyms_cmds=$lt_extract_expsyms_cmds
15363
15364# Variables whose values should be saved in libtool wrapper scripts and
15365# restored at link time.
15366variables_saved_for_relink=$lt_variables_saved_for_relink
15367
15368# Do we need the "lib" prefix for modules?
15369need_lib_prefix=$need_lib_prefix
15370
15371# Do we need a version for libraries?
15372need_version=$need_version
15373
15374# Library versioning type.
15375version_type=$version_type
15376
15377# Shared library runtime path variable.
15378runpath_var=$runpath_var
15379
15380# Shared library path variable.
15381shlibpath_var=$shlibpath_var
15382
15383# Is shlibpath searched before the hard-coded library search path?
15384shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15385
15386# Format of library name prefix.
15387libname_spec=$lt_libname_spec
15388
15389# List of archive names.  First name is the real one, the rest are links.
15390# The last name is the one that the linker finds with -lNAME
15391library_names_spec=$lt_library_names_spec
15392
15393# The coded name of the library, if different from the real name.
15394soname_spec=$lt_soname_spec
15395
15396# Permission mode override for installation of shared libraries.
15397install_override_mode=$lt_install_override_mode
15398
15399# Command to use after installation of a shared archive.
15400postinstall_cmds=$lt_postinstall_cmds
15401
15402# Command to use after uninstallation of a shared archive.
15403postuninstall_cmds=$lt_postuninstall_cmds
15404
15405# Commands used to finish a libtool library installation in a directory.
15406finish_cmds=$lt_finish_cmds
15407
15408# As "finish_cmds", except a single script fragment to be evaled but
15409# not shown.
15410finish_eval=$lt_finish_eval
15411
15412# Whether we should hardcode library paths into libraries.
15413hardcode_into_libs=$hardcode_into_libs
15414
15415# Compile-time system search path for libraries.
15416sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15417
15418# Detected run-time system search path for libraries.
15419sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15420
15421# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15422configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15423
15424# Whether dlopen is supported.
15425dlopen_support=$enable_dlopen
15426
15427# Whether dlopen of programs is supported.
15428dlopen_self=$enable_dlopen_self
15429
15430# Whether dlopen of statically linked programs is supported.
15431dlopen_self_static=$enable_dlopen_self_static
15432
15433# Commands to strip libraries.
15434old_striplib=$lt_old_striplib
15435striplib=$lt_striplib
15436
15437
15438# The linker used to build libraries.
15439LD=$lt_LD
15440
15441# How to create reloadable object files.
15442reload_flag=$lt_reload_flag
15443reload_cmds=$lt_reload_cmds
15444
15445# Commands used to build an old-style archive.
15446old_archive_cmds=$lt_old_archive_cmds
15447
15448# A language specific compiler.
15449CC=$lt_compiler
15450
15451# Is the compiler the GNU compiler?
15452with_gcc=$GCC
15453
15454# Compiler flag to turn off builtin functions.
15455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15456
15457# Additional compiler flags for building library objects.
15458pic_flag=$lt_lt_prog_compiler_pic
15459
15460# How to pass a linker flag through the compiler.
15461wl=$lt_lt_prog_compiler_wl
15462
15463# Compiler flag to prevent dynamic linking.
15464link_static_flag=$lt_lt_prog_compiler_static
15465
15466# Does compiler simultaneously support -c and -o options?
15467compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15468
15469# Whether or not to add -lc for building shared libraries.
15470build_libtool_need_lc=$archive_cmds_need_lc
15471
15472# Whether or not to disallow shared libs when runtime libs are static.
15473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15474
15475# Compiler flag to allow reflexive dlopens.
15476export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15477
15478# Compiler flag to generate shared objects directly from archives.
15479whole_archive_flag_spec=$lt_whole_archive_flag_spec
15480
15481# Whether the compiler copes with passing no objects directly.
15482compiler_needs_object=$lt_compiler_needs_object
15483
15484# Create an old-style archive from a shared archive.
15485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15486
15487# Create a temporary old-style archive to link instead of a shared archive.
15488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15489
15490# Commands used to build a shared archive.
15491archive_cmds=$lt_archive_cmds
15492archive_expsym_cmds=$lt_archive_expsym_cmds
15493
15494# Commands used to build a loadable module if different from building
15495# a shared archive.
15496module_cmds=$lt_module_cmds
15497module_expsym_cmds=$lt_module_expsym_cmds
15498
15499# Whether we are building with GNU ld or not.
15500with_gnu_ld=$lt_with_gnu_ld
15501
15502# Flag that allows shared libraries with undefined symbols to be built.
15503allow_undefined_flag=$lt_allow_undefined_flag
15504
15505# Flag that enforces no undefined symbols.
15506no_undefined_flag=$lt_no_undefined_flag
15507
15508# Flag to hardcode \$libdir into a binary during linking.
15509# This must work even if \$libdir does not exist
15510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15511
15512# Whether we need a single "-rpath" flag with a separated argument.
15513hardcode_libdir_separator=$lt_hardcode_libdir_separator
15514
15515# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15516# DIR into the resulting binary.
15517hardcode_direct=$hardcode_direct
15518
15519# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15520# DIR into the resulting binary and the resulting library dependency is
15521# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15522# library is relocated.
15523hardcode_direct_absolute=$hardcode_direct_absolute
15524
15525# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15526# into the resulting binary.
15527hardcode_minus_L=$hardcode_minus_L
15528
15529# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15530# into the resulting binary.
15531hardcode_shlibpath_var=$hardcode_shlibpath_var
15532
15533# Set to "yes" if building a shared library automatically hardcodes DIR
15534# into the library and all subsequent libraries and executables linked
15535# against it.
15536hardcode_automatic=$hardcode_automatic
15537
15538# Set to yes if linker adds runtime paths of dependent libraries
15539# to runtime path list.
15540inherit_rpath=$inherit_rpath
15541
15542# Whether libtool must link a program against all its dependency libraries.
15543link_all_deplibs=$link_all_deplibs
15544
15545# Set to "yes" if exported symbols are required.
15546always_export_symbols=$always_export_symbols
15547
15548# The commands to list exported symbols.
15549export_symbols_cmds=$lt_export_symbols_cmds
15550
15551# Symbols that should not be listed in the preloaded symbols.
15552exclude_expsyms=$lt_exclude_expsyms
15553
15554# Symbols that must always be exported.
15555include_expsyms=$lt_include_expsyms
15556
15557# Commands necessary for linking programs (against libraries) with templates.
15558prelink_cmds=$lt_prelink_cmds
15559
15560# Commands necessary for finishing linking programs.
15561postlink_cmds=$lt_postlink_cmds
15562
15563# Specify filename containing input files.
15564file_list_spec=$lt_file_list_spec
15565
15566# How to hardcode a shared library path into an executable.
15567hardcode_action=$hardcode_action
15568
15569# ### END LIBTOOL CONFIG
15570
15571_LT_EOF
15572
15573    cat <<'_LT_EOF' >> "$cfgfile"
15574
15575# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15576
15577# func_munge_path_list VARIABLE PATH
15578# -----------------------------------
15579# VARIABLE is name of variable containing _space_ separated list of
15580# directories to be munged by the contents of PATH, which is string
15581# having a format:
15582# "DIR[:DIR]:"
15583#       string "DIR[ DIR]" will be prepended to VARIABLE
15584# ":DIR[:DIR]"
15585#       string "DIR[ DIR]" will be appended to VARIABLE
15586# "DIRP[:DIRP]::[DIRA:]DIRA"
15587#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15588#       "DIRA[ DIRA]" will be appended to VARIABLE
15589# "DIR[:DIR]"
15590#       VARIABLE will be replaced by "DIR[ DIR]"
15591func_munge_path_list ()
15592{
15593    case x$2 in
15594    x)
15595        ;;
15596    *:)
15597        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15598        ;;
15599    x:*)
15600        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15601        ;;
15602    *::*)
15603        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15604        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15605        ;;
15606    *)
15607        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15608        ;;
15609    esac
15610}
15611
15612
15613# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15614func_cc_basename ()
15615{
15616    for cc_temp in $*""; do
15617      case $cc_temp in
15618        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15619        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15620        \-*) ;;
15621        *) break;;
15622      esac
15623    done
15624    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15625}
15626
15627
15628# ### END FUNCTIONS SHARED WITH CONFIGURE
15629
15630_LT_EOF
15631
15632  case $host_os in
15633  aix3*)
15634    cat <<\_LT_EOF >> "$cfgfile"
15635# AIX sometimes has problems with the GCC collect2 program.  For some
15636# reason, if we set the COLLECT_NAMES environment variable, the problems
15637# vanish in a puff of smoke.
15638if test set != "${COLLECT_NAMES+set}"; then
15639  COLLECT_NAMES=
15640  export COLLECT_NAMES
15641fi
15642_LT_EOF
15643    ;;
15644  esac
15645
15646
15647ltmain=$ac_aux_dir/ltmain.sh
15648
15649
15650  # We use sed instead of cat because bash on DJGPP gets confused if
15651  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15652  # text mode, it properly converts lines to CR/LF.  This bash problem
15653  # is reportedly fixed, but why not run on old versions too?
15654  sed '$q' "$ltmain" >> "$cfgfile" \
15655     || (rm -f "$cfgfile"; exit 1)
15656
15657   mv -f "$cfgfile" "$ofile" ||
15658    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15659  chmod +x "$ofile"
15660
15661 ;;
15662
15663  esac
15664done # for ac_tag
15665
15666
15667as_fn_exit 0
15668_ACEOF
15669ac_clean_files=$ac_clean_files_save
15670
15671test $ac_write_fail = 0 ||
15672  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15673
15674
15675# configure is writing to config.log, and then calls config.status.
15676# config.status does its own redirection, appending to config.log.
15677# Unfortunately, on DOS this fails, as config.log is still kept open
15678# by configure, so config.status won't be able to write to it; its
15679# output is simply discarded.  So we exec the FD to /dev/null,
15680# effectively closing config.log, so it can be properly (re)opened and
15681# appended to by config.status.  When coming back to configure, we
15682# need to make the FD available again.
15683if test "$no_create" != yes; then
15684  ac_cs_success=:
15685  ac_config_status_args=
15686  test "$silent" = yes &&
15687    ac_config_status_args="$ac_config_status_args --quiet"
15688  exec 5>/dev/null
15689  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15690  exec 5>>config.log
15691  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15692  # would make configure fail if this is the last instruction.
15693  $ac_cs_success || as_fn_exit 1
15694fi
15695if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15696  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15697$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15698fi
15699
15700