1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libltdl 2.4.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: bug-libtool@gnu.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libltdl'
592PACKAGE_TARNAME='libltdl'
593PACKAGE_VERSION='2.4.2'
594PACKAGE_STRING='libltdl 2.4.2'
595PACKAGE_BUGREPORT='bug-libtool@gnu.org'
596PACKAGE_URL=''
597
598ac_unique_file="ltdl.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LTDLOPEN
639LT_CONFIG_H
640CONVENIENCE_LTDL_FALSE
641CONVENIENCE_LTDL_TRUE
642INSTALL_LTDL_FALSE
643INSTALL_LTDL_TRUE
644ARGZ_H
645LIBOBJS
646sys_symbol_underscore
647LIBADD_DL
648LT_DLPREOPEN
649LIBADD_DLD_LINK
650LIBADD_SHL_LOAD
651LIBADD_DLOPEN
652LT_DLLOADERS
653CPP
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669EGREP
670GREP
671SED
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697LIBTOOL
698OBJDUMP
699DLLTOOL
700AS
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769enable_dependency_tracking
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_ltdl_install
774'
775      ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  as_fn_error $? "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255  as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260  ac_srcdir_defaulted=yes
1261  # Try the directory containing this script, then the parent directory.
1262  ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265	 X"$as_myself" : 'X\(//\)$' \| \
1266	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)[^/].*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\).*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  s/.*/./; q'`
1285  srcdir=$ac_confdir
1286  if test ! -r "$srcdir/$ac_unique_file"; then
1287    srcdir=..
1288  fi
1289else
1290  ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299	pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302  srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_env_${ac_var}_value=\$${ac_var}
1313  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321  # Omit some internal or obsolete options to make the list less imposing.
1322  # This message is too long to be a string in the A/UX 3.1 sh.
1323  cat <<_ACEOF
1324\`configure' configures libltdl 2.4.2 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334  -h, --help              display this help and exit
1335      --help=short        display options specific to this package
1336      --help=recursive    display the short help of all the included packages
1337  -V, --version           display version information and exit
1338  -q, --quiet, --silent   do not print \`checking ...' messages
1339      --cache-file=FILE   cache test results in FILE [disabled]
1340  -C, --config-cache      alias for \`--cache-file=config.cache'
1341  -n, --no-create         do not create output files
1342      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345  --prefix=PREFIX         install architecture-independent files in PREFIX
1346                          [$ac_default_prefix]
1347  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                          [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358  --bindir=DIR            user executables [EPREFIX/bin]
1359  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364  --libdir=DIR            object code libraries [EPREFIX/lib]
1365  --includedir=DIR        C header files [PREFIX/include]
1366  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372  --docdir=DIR            documentation root [DATAROOTDIR/doc/libltdl]
1373  --htmldir=DIR           html documentation [DOCDIR]
1374  --dvidir=DIR            dvi documentation [DOCDIR]
1375  --pdfdir=DIR            pdf documentation [DOCDIR]
1376  --psdir=DIR             ps documentation [DOCDIR]
1377_ACEOF
1378
1379  cat <<\_ACEOF
1380
1381Program names:
1382  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393  case $ac_init_help in
1394     short | recursive ) echo "Configuration of libltdl 2.4.2:";;
1395   esac
1396  cat <<\_ACEOF
1397
1398Optional Features:
1399  --disable-option-checking  ignore unrecognized --enable/--with options
1400  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402  --enable-shared[=PKGS]  build shared libraries [default=yes]
1403  --enable-static[=PKGS]  build static libraries [default=yes]
1404  --enable-fast-install[=PKGS]
1405                          optimize for fast installation [default=yes]
1406  --disable-dependency-tracking  speeds up one-time build
1407  --enable-dependency-tracking   do not reject slow dependency extractors
1408  --disable-libtool-lock  avoid locking (might break parallel builds)
1409  --enable-ltdl-install   install libltdl
1410
1411Optional Packages:
1412  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1413  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1414  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1415                          both]
1416  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417  --with-sysroot=DIR Search for dependent libraries within DIR
1418                        (or the compiler's sysroot if not specified).
1419
1420Some influential environment variables:
1421  CC          C compiler command
1422  CFLAGS      C compiler flags
1423  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424              nonstandard directory <lib dir>
1425  LIBS        libraries to pass to the linker, e.g. -l<library>
1426  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427              you have headers in a nonstandard directory <include dir>
1428  CPP         C preprocessor
1429
1430Use these variables to override the choices made by `configure' or to help
1431it to find libraries and programs with nonstandard names/locations.
1432
1433Report bugs to <bug-libtool@gnu.org>.
1434_ACEOF
1435ac_status=$?
1436fi
1437
1438if test "$ac_init_help" = "recursive"; then
1439  # If there are subdirs, report their specific --help.
1440  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441    test -d "$ac_dir" ||
1442      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443      continue
1444    ac_builddir=.
1445
1446case "$ac_dir" in
1447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448*)
1449  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450  # A ".." for each directory in $ac_dir_suffix.
1451  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452  case $ac_top_builddir_sub in
1453  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455  esac ;;
1456esac
1457ac_abs_top_builddir=$ac_pwd
1458ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459# for backward compatibility:
1460ac_top_builddir=$ac_top_build_prefix
1461
1462case $srcdir in
1463  .)  # We are building in place.
1464    ac_srcdir=.
1465    ac_top_srcdir=$ac_top_builddir_sub
1466    ac_abs_top_srcdir=$ac_pwd ;;
1467  [\\/]* | ?:[\\/]* )  # Absolute name.
1468    ac_srcdir=$srcdir$ac_dir_suffix;
1469    ac_top_srcdir=$srcdir
1470    ac_abs_top_srcdir=$srcdir ;;
1471  *) # Relative name.
1472    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473    ac_top_srcdir=$ac_top_build_prefix$srcdir
1474    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475esac
1476ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478    cd "$ac_dir" || { ac_status=$?; continue; }
1479    # Check for guested configure.
1480    if test -f "$ac_srcdir/configure.gnu"; then
1481      echo &&
1482      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483    elif test -f "$ac_srcdir/configure"; then
1484      echo &&
1485      $SHELL "$ac_srcdir/configure" --help=recursive
1486    else
1487      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488    fi || ac_status=$?
1489    cd "$ac_pwd" || { ac_status=$?; break; }
1490  done
1491fi
1492
1493test -n "$ac_init_help" && exit $ac_status
1494if $ac_init_version; then
1495  cat <<\_ACEOF
1496libltdl configure 2.4.2
1497generated by GNU Autoconf 2.69
1498
1499Copyright (C) 2012 Free Software Foundation, Inc.
1500This configure script is free software; the Free Software Foundation
1501gives unlimited permission to copy, distribute and modify it.
1502_ACEOF
1503  exit
1504fi
1505
1506## ------------------------ ##
1507## Autoconf initialization. ##
1508## ------------------------ ##
1509
1510# ac_fn_c_try_compile LINENO
1511# --------------------------
1512# Try to compile conftest.$ac_ext, and return whether this succeeded.
1513ac_fn_c_try_compile ()
1514{
1515  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516  rm -f conftest.$ac_objext
1517  if { { ac_try="$ac_compile"
1518case "(($ac_try" in
1519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520  *) ac_try_echo=$ac_try;;
1521esac
1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523$as_echo "$ac_try_echo"; } >&5
1524  (eval "$ac_compile") 2>conftest.err
1525  ac_status=$?
1526  if test -s conftest.err; then
1527    grep -v '^ *+' conftest.err >conftest.er1
1528    cat conftest.er1 >&5
1529    mv -f conftest.er1 conftest.err
1530  fi
1531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532  test $ac_status = 0; } && {
1533	 test -z "$ac_c_werror_flag" ||
1534	 test ! -s conftest.err
1535       } && test -s conftest.$ac_objext; then :
1536  ac_retval=0
1537else
1538  $as_echo "$as_me: failed program was:" >&5
1539sed 's/^/| /' conftest.$ac_ext >&5
1540
1541	ac_retval=1
1542fi
1543  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544  as_fn_set_status $ac_retval
1545
1546} # ac_fn_c_try_compile
1547
1548# ac_fn_c_try_link LINENO
1549# -----------------------
1550# Try to link conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_link ()
1552{
1553  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554  rm -f conftest.$ac_objext conftest$ac_exeext
1555  if { { ac_try="$ac_link"
1556case "(($ac_try" in
1557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558  *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562  (eval "$ac_link") 2>conftest.err
1563  ac_status=$?
1564  if test -s conftest.err; then
1565    grep -v '^ *+' conftest.err >conftest.er1
1566    cat conftest.er1 >&5
1567    mv -f conftest.er1 conftest.err
1568  fi
1569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570  test $ac_status = 0; } && {
1571	 test -z "$ac_c_werror_flag" ||
1572	 test ! -s conftest.err
1573       } && test -s conftest$ac_exeext && {
1574	 test "$cross_compiling" = yes ||
1575	 test -x conftest$ac_exeext
1576       }; then :
1577  ac_retval=0
1578else
1579  $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582	ac_retval=1
1583fi
1584  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586  # interfere with the next link command; also delete a directory that is
1587  # left behind by Apple's compiler.  We do this before executing the actions.
1588  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590  as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_link
1593
1594# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595# -------------------------------------------------------
1596# Tests whether HEADER exists and can be compiled using the include files in
1597# INCLUDES, setting the cache variable VAR accordingly.
1598ac_fn_c_check_header_compile ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604  $as_echo_n "(cached) " >&6
1605else
1606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h.  */
1608$4
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_compile "$LINENO"; then :
1612  eval "$3=yes"
1613else
1614  eval "$3=no"
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617fi
1618eval ac_res=\$$3
1619	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_c_check_header_compile
1624
1625# ac_fn_c_try_cpp LINENO
1626# ----------------------
1627# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_cpp ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  if { { ac_try="$ac_cpp conftest.$ac_ext"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } > conftest.i && {
1647	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       }; then :
1650  ac_retval=0
1651else
1652  $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655    ac_retval=1
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_cpp
1661
1662# ac_fn_c_try_run LINENO
1663# ----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665# that executables *can* be run.
1666ac_fn_c_try_run ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_link") 2>&5
1677  ac_status=$?
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680  { { case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_try") 2>&5
1687  ac_status=$?
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; }; }; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: program exited with status $ac_status" >&5
1693       $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696       ac_retval=$ac_status
1697fi
1698  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700  as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_run
1703
1704# ac_fn_c_check_func LINENO FUNC VAR
1705# ----------------------------------
1706# Tests whether FUNC exists, setting the cache variable VAR accordingly
1707ac_fn_c_check_func ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713  $as_echo_n "(cached) " >&6
1714else
1715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h.  */
1717/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1719#define $2 innocuous_$2
1720
1721/* System header to define __stub macros and hopefully few prototypes,
1722    which can conflict with char $2 (); below.
1723    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724    <limits.h> exists even on freestanding compilers.  */
1725
1726#ifdef __STDC__
1727# include <limits.h>
1728#else
1729# include <assert.h>
1730#endif
1731
1732#undef $2
1733
1734/* Override any GCC internal prototype to avoid an error.
1735   Use char because int might match the return type of a GCC
1736   builtin and then its argument prototype would still apply.  */
1737#ifdef __cplusplus
1738extern "C"
1739#endif
1740char $2 ();
1741/* The GNU C library defines this for functions which it implements
1742    to always fail with ENOSYS.  Some functions are actually named
1743    something starting with __ and the normal name is an alias.  */
1744#if defined __stub_$2 || defined __stub___$2
1745choke me
1746#endif
1747
1748int
1749main ()
1750{
1751return $2 ();
1752  ;
1753  return 0;
1754}
1755_ACEOF
1756if ac_fn_c_try_link "$LINENO"; then :
1757  eval "$3=yes"
1758else
1759  eval "$3=no"
1760fi
1761rm -f core conftest.err conftest.$ac_objext \
1762    conftest$ac_exeext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_func
1770
1771# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1772# ---------------------------------------------
1773# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1774# accordingly.
1775ac_fn_c_check_decl ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  as_decl_name=`echo $2|sed 's/ *(.*//'`
1779  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1781$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1782if eval \${$3+:} false; then :
1783  $as_echo_n "(cached) " >&6
1784else
1785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787$4
1788int
1789main ()
1790{
1791#ifndef $as_decl_name
1792#ifdef __cplusplus
1793  (void) $as_decl_use;
1794#else
1795  (void) $as_decl_name;
1796#endif
1797#endif
1798
1799  ;
1800  return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804  eval "$3=yes"
1805else
1806  eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815} # ac_fn_c_check_decl
1816
1817# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1818# -------------------------------------------
1819# Tests whether TYPE exists after having included INCLUDES, setting cache
1820# variable VAR accordingly.
1821ac_fn_c_check_type ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  eval "$3=no"
1830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h.  */
1832$4
1833int
1834main ()
1835{
1836if (sizeof ($2))
1837	 return 0;
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845$4
1846int
1847main ()
1848{
1849if (sizeof (($2)))
1850	    return 0;
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856
1857else
1858  eval "$3=yes"
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869} # ac_fn_c_check_type
1870cat >config.log <<_ACEOF
1871This file contains any messages produced by compilers while
1872running configure, to aid debugging if configure makes a mistake.
1873
1874It was created by libltdl $as_me 2.4.2, which was
1875generated by GNU Autoconf 2.69.  Invocation command line was
1876
1877  $ $0 $@
1878
1879_ACEOF
1880exec 5>>config.log
1881{
1882cat <<_ASUNAME
1883## --------- ##
1884## Platform. ##
1885## --------- ##
1886
1887hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1895
1896/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1897/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1898/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1900/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1901/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1902/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1903
1904_ASUNAME
1905
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911    $as_echo "PATH: $as_dir"
1912  done
1913IFS=$as_save_IFS
1914
1915} >&5
1916
1917cat >&5 <<_ACEOF
1918
1919
1920## ----------- ##
1921## Core tests. ##
1922## ----------- ##
1923
1924_ACEOF
1925
1926
1927# Keep a trace of the command line.
1928# Strip out --no-create and --no-recursion so they do not pile up.
1929# Strip out --silent because we don't want to record it for future runs.
1930# Also quote any args containing shell meta-characters.
1931# Make two passes to allow for proper duplicate-argument suppression.
1932ac_configure_args=
1933ac_configure_args0=
1934ac_configure_args1=
1935ac_must_keep_next=false
1936for ac_pass in 1 2
1937do
1938  for ac_arg
1939  do
1940    case $ac_arg in
1941    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943    | -silent | --silent | --silen | --sile | --sil)
1944      continue ;;
1945    *\'*)
1946      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947    esac
1948    case $ac_pass in
1949    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1950    2)
1951      as_fn_append ac_configure_args1 " '$ac_arg'"
1952      if test $ac_must_keep_next = true; then
1953	ac_must_keep_next=false # Got value, back to normal.
1954      else
1955	case $ac_arg in
1956	  *=* | --config-cache | -C | -disable-* | --disable-* \
1957	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959	  | -with-* | --with-* | -without-* | --without-* | --x)
1960	    case "$ac_configure_args0 " in
1961	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962	    esac
1963	    ;;
1964	  -* ) ac_must_keep_next=true ;;
1965	esac
1966      fi
1967      as_fn_append ac_configure_args " '$ac_arg'"
1968      ;;
1969    esac
1970  done
1971done
1972{ ac_configure_args0=; unset ac_configure_args0;}
1973{ ac_configure_args1=; unset ac_configure_args1;}
1974
1975# When interrupted or exit'd, cleanup temporary files, and complete
1976# config.log.  We remove comments because anyway the quotes in there
1977# would cause problems or look ugly.
1978# WARNING: Use '\'' to represent an apostrophe within the trap.
1979# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980trap 'exit_status=$?
1981  # Save into config.log some information that might help in debugging.
1982  {
1983    echo
1984
1985    $as_echo "## ---------------- ##
1986## Cache variables. ##
1987## ---------------- ##"
1988    echo
1989    # The following way of writing the cache mishandles newlines in values,
1990(
1991  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992    eval ac_val=\$$ac_var
1993    case $ac_val in #(
1994    *${as_nl}*)
1995      case $ac_var in #(
1996      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998      esac
1999      case $ac_var in #(
2000      _ | IFS | as_nl) ;; #(
2001      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002      *) { eval $ac_var=; unset $ac_var;} ;;
2003      esac ;;
2004    esac
2005  done
2006  (set) 2>&1 |
2007    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008    *${as_nl}ac_space=\ *)
2009      sed -n \
2010	"s/'\''/'\''\\\\'\'''\''/g;
2011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012      ;; #(
2013    *)
2014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015      ;;
2016    esac |
2017    sort
2018)
2019    echo
2020
2021    $as_echo "## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##"
2024    echo
2025    for ac_var in $ac_subst_vars
2026    do
2027      eval ac_val=\$$ac_var
2028      case $ac_val in
2029      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030      esac
2031      $as_echo "$ac_var='\''$ac_val'\''"
2032    done | sort
2033    echo
2034
2035    if test -n "$ac_subst_files"; then
2036      $as_echo "## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##"
2039      echo
2040      for ac_var in $ac_subst_files
2041      do
2042	eval ac_val=\$$ac_var
2043	case $ac_val in
2044	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045	esac
2046	$as_echo "$ac_var='\''$ac_val'\''"
2047      done | sort
2048      echo
2049    fi
2050
2051    if test -s confdefs.h; then
2052      $as_echo "## ----------- ##
2053## confdefs.h. ##
2054## ----------- ##"
2055      echo
2056      cat confdefs.h
2057      echo
2058    fi
2059    test "$ac_signal" != 0 &&
2060      $as_echo "$as_me: caught signal $ac_signal"
2061    $as_echo "$as_me: exit $exit_status"
2062  } >&5
2063  rm -f core *.core core.conftest.* &&
2064    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065    exit $exit_status
2066' 0
2067for ac_signal in 1 2 13 15; do
2068  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073rm -f -r conftest* confdefs.h
2074
2075$as_echo "/* confdefs.h */" > confdefs.h
2076
2077# Predefined preprocessor variables.
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_NAME "$PACKAGE_NAME"
2081_ACEOF
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_VERSION "$PACKAGE_VERSION"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_STRING "$PACKAGE_STRING"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_URL "$PACKAGE_URL"
2101_ACEOF
2102
2103
2104# Let the site file select an alternate cache file if it wants to.
2105# Prefer an explicitly selected file to automatically selected ones.
2106ac_site_file1=NONE
2107ac_site_file2=NONE
2108if test -n "$CONFIG_SITE"; then
2109  # We do not want a PATH search for config.site.
2110  case $CONFIG_SITE in #((
2111    -*)  ac_site_file1=./$CONFIG_SITE;;
2112    */*) ac_site_file1=$CONFIG_SITE;;
2113    *)   ac_site_file1=./$CONFIG_SITE;;
2114  esac
2115elif test "x$prefix" != xNONE; then
2116  ac_site_file1=$prefix/share/config.site
2117  ac_site_file2=$prefix/etc/config.site
2118else
2119  ac_site_file1=$ac_default_prefix/share/config.site
2120  ac_site_file2=$ac_default_prefix/etc/config.site
2121fi
2122for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123do
2124  test "x$ac_site_file" = xNONE && continue
2125  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128    sed 's/^/| /' "$ac_site_file" >&5
2129    . "$ac_site_file" \
2130      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132as_fn_error $? "failed to load site script $ac_site_file
2133See \`config.log' for more details" "$LINENO" 5; }
2134  fi
2135done
2136
2137if test -r "$cache_file"; then
2138  # Some versions of bash will fail to source /dev/null (special files
2139  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2140  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142$as_echo "$as_me: loading cache $cache_file" >&6;}
2143    case $cache_file in
2144      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145      *)                      . "./$cache_file";;
2146    esac
2147  fi
2148else
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150$as_echo "$as_me: creating cache $cache_file" >&6;}
2151  >$cache_file
2152fi
2153
2154# Check that the precious variables saved in the cache have kept the same
2155# value.
2156ac_cache_corrupted=false
2157for ac_var in $ac_precious_vars; do
2158  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159  eval ac_new_set=\$ac_env_${ac_var}_set
2160  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161  eval ac_new_val=\$ac_env_${ac_var}_value
2162  case $ac_old_set,$ac_new_set in
2163    set,)
2164      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166      ac_cache_corrupted=: ;;
2167    ,set)
2168      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170      ac_cache_corrupted=: ;;
2171    ,);;
2172    *)
2173      if test "x$ac_old_val" != "x$ac_new_val"; then
2174	# differences in whitespace do not lead to failure.
2175	ac_old_val_w=`echo x $ac_old_val`
2176	ac_new_val_w=`echo x $ac_new_val`
2177	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180	  ac_cache_corrupted=:
2181	else
2182	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184	  eval $ac_var=\$ac_old_val
2185	fi
2186	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2187$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2188	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2189$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2190      fi;;
2191  esac
2192  # Pass precious variables to config.status.
2193  if test "$ac_new_set" = set; then
2194    case $ac_new_val in
2195    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196    *) ac_arg=$ac_var=$ac_new_val ;;
2197    esac
2198    case " $ac_configure_args " in
2199      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2200      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201    esac
2202  fi
2203done
2204if $ac_cache_corrupted; then
2205  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210fi
2211## -------------------- ##
2212## Main body of script. ##
2213## -------------------- ##
2214
2215ac_ext=c
2216ac_cpp='$CPP $CPPFLAGS'
2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222ac_config_headers="$ac_config_headers config.h:config-h.in"
2223
2224
2225ac_aux_dir=
2226for ac_dir in config "$srcdir"/config; do
2227  if test -f "$ac_dir/install-sh"; then
2228    ac_aux_dir=$ac_dir
2229    ac_install_sh="$ac_aux_dir/install-sh -c"
2230    break
2231  elif test -f "$ac_dir/install.sh"; then
2232    ac_aux_dir=$ac_dir
2233    ac_install_sh="$ac_aux_dir/install.sh -c"
2234    break
2235  elif test -f "$ac_dir/shtool"; then
2236    ac_aux_dir=$ac_dir
2237    ac_install_sh="$ac_aux_dir/shtool install -c"
2238    break
2239  fi
2240done
2241if test -z "$ac_aux_dir"; then
2242  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2243fi
2244
2245# These three variables are undocumented and unsupported,
2246# and are intended to be withdrawn in a future Autoconf release.
2247# They can cause serious problems if a builder's source tree is in a directory
2248# whose full name contains unusual characters.
2249ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2250ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2251ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2252
2253
2254
2255
2256
2257
2258
2259
2260 # I am me!
2261
2262
2263## ------------------------ ##
2264## Automake Initialisation. ##
2265## ------------------------ ##
2266
2267am__api_version='1.11'
2268
2269# Find a good install program.  We prefer a C program (faster),
2270# so one script is as good as another.  But avoid the broken or
2271# incompatible versions:
2272# SysV /etc/install, /usr/sbin/install
2273# SunOS /usr/etc/install
2274# IRIX /sbin/install
2275# AIX /bin/install
2276# AmigaOS /C/install, which installs bootblocks on floppy discs
2277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280# OS/2's system install, which has a completely different semantic
2281# ./install, which can be erroneously created by make from ./install.sh.
2282# Reject install programs that cannot install multiple files.
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284$as_echo_n "checking for a BSD-compatible install... " >&6; }
2285if test -z "$INSTALL"; then
2286if ${ac_cv_path_install+:} false; then :
2287  $as_echo_n "(cached) " >&6
2288else
2289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292  IFS=$as_save_IFS
2293  test -z "$as_dir" && as_dir=.
2294    # Account for people who put trailing slashes in PATH elements.
2295case $as_dir/ in #((
2296  ./ | .// | /[cC]/* | \
2297  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299  /usr/ucb/* ) ;;
2300  *)
2301    # OSF1 and SCO ODT 3.0 have their own names for install.
2302    # Don't use installbsd from OSF since it installs stuff as root
2303    # by default.
2304    for ac_prog in ginstall scoinst install; do
2305      for ac_exec_ext in '' $ac_executable_extensions; do
2306	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307	  if test $ac_prog = install &&
2308	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309	    # AIX install.  It has an incompatible calling convention.
2310	    :
2311	  elif test $ac_prog = install &&
2312	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313	    # program-specific install script used by HP pwplus--don't use.
2314	    :
2315	  else
2316	    rm -rf conftest.one conftest.two conftest.dir
2317	    echo one > conftest.one
2318	    echo two > conftest.two
2319	    mkdir conftest.dir
2320	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321	      test -s conftest.one && test -s conftest.two &&
2322	      test -s conftest.dir/conftest.one &&
2323	      test -s conftest.dir/conftest.two
2324	    then
2325	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326	      break 3
2327	    fi
2328	  fi
2329	fi
2330      done
2331    done
2332    ;;
2333esac
2334
2335  done
2336IFS=$as_save_IFS
2337
2338rm -rf conftest.one conftest.two conftest.dir
2339
2340fi
2341  if test "${ac_cv_path_install+set}" = set; then
2342    INSTALL=$ac_cv_path_install
2343  else
2344    # As a last resort, use the slow shell script.  Don't cache a
2345    # value for INSTALL within a source directory, because that will
2346    # break other packages using the cache if that directory is
2347    # removed, or if the value is a relative name.
2348    INSTALL=$ac_install_sh
2349  fi
2350fi
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352$as_echo "$INSTALL" >&6; }
2353
2354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355# It thinks the first close brace ends the variable substitution.
2356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
2358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
2360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363$as_echo_n "checking whether build environment is sane... " >&6; }
2364# Just in case
2365sleep 1
2366echo timestamp > conftest.file
2367# Reject unsafe characters in $srcdir or the absolute working directory
2368# name.  Accept space and tab only in the latter.
2369am_lf='
2370'
2371case `pwd` in
2372  *[\\\"\#\$\&\'\`$am_lf]*)
2373    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2374esac
2375case $srcdir in
2376  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2377    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2378esac
2379
2380# Do `set' in a subshell so we don't clobber the current shell's
2381# arguments.  Must try -L first in case configure is actually a
2382# symlink; some systems play weird games with the mod time of symlinks
2383# (eg FreeBSD returns the mod time of the symlink's containing
2384# directory).
2385if (
2386   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387   if test "$*" = "X"; then
2388      # -L didn't work.
2389      set X `ls -t "$srcdir/configure" conftest.file`
2390   fi
2391   rm -f conftest.file
2392   if test "$*" != "X $srcdir/configure conftest.file" \
2393      && test "$*" != "X conftest.file $srcdir/configure"; then
2394
2395      # If neither matched, then we have a broken ls.  This can happen
2396      # if, for instance, CONFIG_SHELL is bash and it inherits a
2397      # broken ls alias from the environment.  This has actually
2398      # happened.  Such a system could not be considered "sane".
2399      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2400alias in your environment" "$LINENO" 5
2401   fi
2402
2403   test "$2" = conftest.file
2404   )
2405then
2406   # Ok.
2407   :
2408else
2409   as_fn_error $? "newly created file is older than distributed files!
2410Check your system clock" "$LINENO" 5
2411fi
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2413$as_echo "yes" >&6; }
2414test "$program_prefix" != NONE &&
2415  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2416# Use a double $ so make ignores it.
2417test "$program_suffix" != NONE &&
2418  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2419# Double any \ or $.
2420# By default was `s,x,x', remove it if useless.
2421ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2422program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2423
2424# expand $ac_aux_dir to an absolute path
2425am_aux_dir=`cd $ac_aux_dir && pwd`
2426
2427if test x"${MISSING+set}" != xset; then
2428  case $am_aux_dir in
2429  *\ * | *\	*)
2430    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2431  *)
2432    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2433  esac
2434fi
2435# Use eval to expand $SHELL
2436if eval "$MISSING --run true"; then
2437  am_missing_run="$MISSING --run "
2438else
2439  am_missing_run=
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2441$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2442fi
2443
2444if test x"${install_sh}" != xset; then
2445  case $am_aux_dir in
2446  *\ * | *\	*)
2447    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2448  *)
2449    install_sh="\${SHELL} $am_aux_dir/install-sh"
2450  esac
2451fi
2452
2453# Installed binaries are usually stripped using `strip' when the user
2454# run `make install-strip'.  However `strip' might not be the right
2455# tool to use in cross-compilation environments, therefore Automake
2456# will honor the `STRIP' environment variable to overrule this program.
2457if test "$cross_compiling" != no; then
2458  if test -n "$ac_tool_prefix"; then
2459  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460set dummy ${ac_tool_prefix}strip; ac_word=$2
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if ${ac_cv_prog_STRIP+:} false; then :
2464  $as_echo_n "(cached) " >&6
2465else
2466  if test -n "$STRIP"; then
2467  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474    for ac_exec_ext in '' $ac_executable_extensions; do
2475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481  done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486STRIP=$ac_cv_prog_STRIP
2487if test -n "$STRIP"; then
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2489$as_echo "$STRIP" >&6; }
2490else
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496fi
2497if test -z "$ac_cv_prog_STRIP"; then
2498  ac_ct_STRIP=$STRIP
2499  # Extract the first word of "strip", so it can be a program name with args.
2500set dummy strip; ac_word=$2
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2504  $as_echo_n "(cached) " >&6
2505else
2506  if test -n "$ac_ct_STRIP"; then
2507  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514    for ac_exec_ext in '' $ac_executable_extensions; do
2515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516    ac_cv_prog_ac_ct_STRIP="strip"
2517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518    break 2
2519  fi
2520done
2521  done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527if test -n "$ac_ct_STRIP"; then
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2529$as_echo "$ac_ct_STRIP" >&6; }
2530else
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535  if test "x$ac_ct_STRIP" = x; then
2536    STRIP=":"
2537  else
2538    case $cross_compiling:$ac_tool_warned in
2539yes:)
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542ac_tool_warned=yes ;;
2543esac
2544    STRIP=$ac_ct_STRIP
2545  fi
2546else
2547  STRIP="$ac_cv_prog_STRIP"
2548fi
2549
2550fi
2551INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2552
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2554$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2555if test -z "$MKDIR_P"; then
2556  if ${ac_cv_path_mkdir+:} false; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564    for ac_prog in mkdir gmkdir; do
2565	 for ac_exec_ext in '' $ac_executable_extensions; do
2566	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2567	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568	     'mkdir (GNU coreutils) '* | \
2569	     'mkdir (coreutils) '* | \
2570	     'mkdir (fileutils) '4.1*)
2571	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572	       break 3;;
2573	   esac
2574	 done
2575       done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580
2581  test -d ./--version && rmdir ./--version
2582  if test "${ac_cv_path_mkdir+set}" = set; then
2583    MKDIR_P="$ac_cv_path_mkdir -p"
2584  else
2585    # As a last resort, use the slow shell script.  Don't cache a
2586    # value for MKDIR_P within a source directory, because that will
2587    # break other packages using the cache if that directory is
2588    # removed, or if the value is a relative name.
2589    MKDIR_P="$ac_install_sh -d"
2590  fi
2591fi
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2593$as_echo "$MKDIR_P" >&6; }
2594
2595mkdir_p="$MKDIR_P"
2596case $mkdir_p in
2597  [\\/$]* | ?:[\\/]*) ;;
2598  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2599esac
2600
2601for ac_prog in gawk mawk nawk awk
2602do
2603  # Extract the first word of "$ac_prog", so it can be a program name with args.
2604set dummy $ac_prog; ac_word=$2
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606$as_echo_n "checking for $ac_word... " >&6; }
2607if ${ac_cv_prog_AWK+:} false; then :
2608  $as_echo_n "(cached) " >&6
2609else
2610  if test -n "$AWK"; then
2611  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2612else
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  test -z "$as_dir" && as_dir=.
2618    for ac_exec_ext in '' $ac_executable_extensions; do
2619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620    ac_cv_prog_AWK="$ac_prog"
2621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622    break 2
2623  fi
2624done
2625  done
2626IFS=$as_save_IFS
2627
2628fi
2629fi
2630AWK=$ac_cv_prog_AWK
2631if test -n "$AWK"; then
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2633$as_echo "$AWK" >&6; }
2634else
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636$as_echo "no" >&6; }
2637fi
2638
2639
2640  test -n "$AWK" && break
2641done
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2644$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2645set x ${MAKE-make}
2646ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2647if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  cat >conftest.make <<\_ACEOF
2651SHELL = /bin/sh
2652all:
2653	@echo '@@@%%%=$(MAKE)=@@@%%%'
2654_ACEOF
2655# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2656case `${MAKE-make} -f conftest.make 2>/dev/null` in
2657  *@@@%%%=?*=@@@%%%*)
2658    eval ac_cv_prog_make_${ac_make}_set=yes;;
2659  *)
2660    eval ac_cv_prog_make_${ac_make}_set=no;;
2661esac
2662rm -f conftest.make
2663fi
2664if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666$as_echo "yes" >&6; }
2667  SET_MAKE=
2668else
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670$as_echo "no" >&6; }
2671  SET_MAKE="MAKE=${MAKE-make}"
2672fi
2673
2674rm -rf .tst 2>/dev/null
2675mkdir .tst 2>/dev/null
2676if test -d .tst; then
2677  am__leading_dot=.
2678else
2679  am__leading_dot=_
2680fi
2681rmdir .tst 2>/dev/null
2682
2683if test "`cd $srcdir && pwd`" != "`pwd`"; then
2684  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2685  # is not polluted with repeated "-I."
2686  am__isrc=' -I$(srcdir)'
2687  # test to see if srcdir already configured
2688  if test -f $srcdir/config.status; then
2689    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2690  fi
2691fi
2692
2693# test whether we have cygpath
2694if test -z "$CYGPATH_W"; then
2695  if (cygpath --version) >/dev/null 2>/dev/null; then
2696    CYGPATH_W='cygpath -w'
2697  else
2698    CYGPATH_W=echo
2699  fi
2700fi
2701
2702
2703# Define the identity of the package.
2704 PACKAGE='libltdl'
2705 VERSION='2.4.2'
2706
2707
2708cat >>confdefs.h <<_ACEOF
2709#define PACKAGE "$PACKAGE"
2710_ACEOF
2711
2712
2713cat >>confdefs.h <<_ACEOF
2714#define VERSION "$VERSION"
2715_ACEOF
2716
2717# Some tools Automake needs.
2718
2719ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2720
2721
2722AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2723
2724
2725AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2726
2727
2728AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2729
2730
2731MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2732
2733# We need awk for the "check" target.  The system "awk" is bad on
2734# some platforms.
2735# Always define AMTAR for backward compatibility.  Yes, it's still used
2736# in the wild :-(  We should find a proper way to deprecate it ...
2737AMTAR='$${TAR-tar}'
2738
2739am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2740
2741
2742
2743
2744
2745
2746
2747## ------------------------------- ##
2748## Libtool specific configuration. ##
2749## ------------------------------- ##
2750pkgdatadir='${datadir}'"/${PACKAGE}"
2751
2752
2753## ----------------------- ##
2754## Libtool initialisation. ##
2755## ----------------------- ##
2756case `pwd` in
2757  *\ * | *\	*)
2758    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2759$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2760esac
2761
2762
2763
2764macro_version='2.4.2'
2765macro_revision='1.3337'
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779ltmain="$ac_aux_dir/ltmain.sh"
2780
2781# Make sure we can run config.sub.
2782$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2783  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2786$as_echo_n "checking build system type... " >&6; }
2787if ${ac_cv_build+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  ac_build_alias=$build_alias
2791test "x$ac_build_alias" = x &&
2792  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2793test "x$ac_build_alias" = x &&
2794  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2795ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2796  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2797
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2800$as_echo "$ac_cv_build" >&6; }
2801case $ac_cv_build in
2802*-*-*) ;;
2803*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2804esac
2805build=$ac_cv_build
2806ac_save_IFS=$IFS; IFS='-'
2807set x $ac_cv_build
2808shift
2809build_cpu=$1
2810build_vendor=$2
2811shift; shift
2812# Remember, the first character of IFS is used to create $*,
2813# except with old shells:
2814build_os=$*
2815IFS=$ac_save_IFS
2816case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2817
2818
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2820$as_echo_n "checking host system type... " >&6; }
2821if ${ac_cv_host+:} false; then :
2822  $as_echo_n "(cached) " >&6
2823else
2824  if test "x$host_alias" = x; then
2825  ac_cv_host=$ac_cv_build
2826else
2827  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2828    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2829fi
2830
2831fi
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2833$as_echo "$ac_cv_host" >&6; }
2834case $ac_cv_host in
2835*-*-*) ;;
2836*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2837esac
2838host=$ac_cv_host
2839ac_save_IFS=$IFS; IFS='-'
2840set x $ac_cv_host
2841shift
2842host_cpu=$1
2843host_vendor=$2
2844shift; shift
2845# Remember, the first character of IFS is used to create $*,
2846# except with old shells:
2847host_os=$*
2848IFS=$ac_save_IFS
2849case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2850
2851
2852# Backslashify metacharacters that are still active within
2853# double-quoted strings.
2854sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2855
2856# Same as above, but do not quote variable references.
2857double_quote_subst='s/\(["`\\]\)/\\\1/g'
2858
2859# Sed substitution to delay expansion of an escaped shell variable in a
2860# double_quote_subst'ed string.
2861delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2862
2863# Sed substitution to delay expansion of an escaped single quote.
2864delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2865
2866# Sed substitution to avoid accidental globbing in evaled expressions
2867no_glob_subst='s/\*/\\\*/g'
2868
2869ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2870ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2871ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2872
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2874$as_echo_n "checking how to print strings... " >&6; }
2875# Test print first, because it will be a builtin if present.
2876if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2877   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2878  ECHO='print -r --'
2879elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2880  ECHO='printf %s\n'
2881else
2882  # Use this function as a fallback that always works.
2883  func_fallback_echo ()
2884  {
2885    eval 'cat <<_LTECHO_EOF
2886$1
2887_LTECHO_EOF'
2888  }
2889  ECHO='func_fallback_echo'
2890fi
2891
2892# func_echo_all arg...
2893# Invoke $ECHO with all args, space-separated.
2894func_echo_all ()
2895{
2896    $ECHO ""
2897}
2898
2899case "$ECHO" in
2900  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2901$as_echo "printf" >&6; } ;;
2902  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2903$as_echo "print -r" >&6; } ;;
2904  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2905$as_echo "cat" >&6; } ;;
2906esac
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921DEPDIR="${am__leading_dot}deps"
2922
2923ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926am_make=${MAKE-make}
2927cat > confinc << 'END'
2928am__doit:
2929	@echo this is the am__doit target
2930.PHONY: am__doit
2931END
2932# If we don't find an include directive, just comment out the code.
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2934$as_echo_n "checking for style of include used by $am_make... " >&6; }
2935am__include="#"
2936am__quote=
2937_am_result=none
2938# First try GNU make style include.
2939echo "include confinc" > confmf
2940# Ignore all kinds of additional output from `make'.
2941case `$am_make -s -f confmf 2> /dev/null` in #(
2942*the\ am__doit\ target*)
2943  am__include=include
2944  am__quote=
2945  _am_result=GNU
2946  ;;
2947esac
2948# Now try BSD make style include.
2949if test "$am__include" = "#"; then
2950   echo '.include "confinc"' > confmf
2951   case `$am_make -s -f confmf 2> /dev/null` in #(
2952   *the\ am__doit\ target*)
2953     am__include=.include
2954     am__quote="\""
2955     _am_result=BSD
2956     ;;
2957   esac
2958fi
2959
2960
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2962$as_echo "$_am_result" >&6; }
2963rm -f confinc confmf
2964
2965# Check whether --enable-dependency-tracking was given.
2966if test "${enable_dependency_tracking+set}" = set; then :
2967  enableval=$enable_dependency_tracking;
2968fi
2969
2970if test "x$enable_dependency_tracking" != xno; then
2971  am_depcomp="$ac_aux_dir/depcomp"
2972  AMDEPBACKSLASH='\'
2973  am__nodep='_no'
2974fi
2975 if test "x$enable_dependency_tracking" != xno; then
2976  AMDEP_TRUE=
2977  AMDEP_FALSE='#'
2978else
2979  AMDEP_TRUE='#'
2980  AMDEP_FALSE=
2981fi
2982
2983
2984ac_ext=c
2985ac_cpp='$CPP $CPPFLAGS'
2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989if test -n "$ac_tool_prefix"; then
2990  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if ${ac_cv_prog_CC+:} false; then :
2995  $as_echo_n "(cached) " >&6
2996else
2997  if test -n "$CC"; then
2998  ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003  IFS=$as_save_IFS
3004  test -z "$as_dir" && as_dir=.
3005    for ac_exec_ext in '' $ac_executable_extensions; do
3006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009    break 2
3010  fi
3011done
3012  done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017CC=$ac_cv_prog_CC
3018if test -n "$CC"; then
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020$as_echo "$CC" >&6; }
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027fi
3028if test -z "$ac_cv_prog_CC"; then
3029  ac_ct_CC=$CC
3030  # Extract the first word of "gcc", so it can be a program name with args.
3031set dummy gcc; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  if test -n "$ac_ct_CC"; then
3038  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_ac_ct_CC="gcc"
3048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058if test -n "$ac_ct_CC"; then
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060$as_echo "$ac_ct_CC" >&6; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066  if test "x$ac_ct_CC" = x; then
3067    CC=""
3068  else
3069    case $cross_compiling:$ac_tool_warned in
3070yes:)
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073ac_tool_warned=yes ;;
3074esac
3075    CC=$ac_ct_CC
3076  fi
3077else
3078  CC="$ac_cv_prog_CC"
3079fi
3080
3081if test -z "$CC"; then
3082          if test -n "$ac_tool_prefix"; then
3083    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084set dummy ${ac_tool_prefix}cc; ac_word=$2
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if ${ac_cv_prog_CC+:} false; then :
3088  $as_echo_n "(cached) " >&6
3089else
3090  if test -n "$CC"; then
3091  ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098    for ac_exec_ext in '' $ac_executable_extensions; do
3099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100    ac_cv_prog_CC="${ac_tool_prefix}cc"
3101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105  done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110CC=$ac_cv_prog_CC
3111if test -n "$CC"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113$as_echo "$CC" >&6; }
3114else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117fi
3118
3119
3120  fi
3121fi
3122if test -z "$CC"; then
3123  # Extract the first word of "cc", so it can be a program name with args.
3124set dummy cc; ac_word=$2
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126$as_echo_n "checking for $ac_word... " >&6; }
3127if ${ac_cv_prog_CC+:} false; then :
3128  $as_echo_n "(cached) " >&6
3129else
3130  if test -n "$CC"; then
3131  ac_cv_prog_CC="$CC" # Let the user override the test.
3132else
3133  ac_prog_rejected=no
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139    for ac_exec_ext in '' $ac_executable_extensions; do
3140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142       ac_prog_rejected=yes
3143       continue
3144     fi
3145    ac_cv_prog_CC="cc"
3146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147    break 2
3148  fi
3149done
3150  done
3151IFS=$as_save_IFS
3152
3153if test $ac_prog_rejected = yes; then
3154  # We found a bogon in the path, so make sure we never use it.
3155  set dummy $ac_cv_prog_CC
3156  shift
3157  if test $# != 0; then
3158    # We chose a different compiler from the bogus one.
3159    # However, it has the same basename, so the bogon will be chosen
3160    # first if we set CC to just the basename; use the full file name.
3161    shift
3162    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3163  fi
3164fi
3165fi
3166fi
3167CC=$ac_cv_prog_CC
3168if test -n "$CC"; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170$as_echo "$CC" >&6; }
3171else
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177fi
3178if test -z "$CC"; then
3179  if test -n "$ac_tool_prefix"; then
3180  for ac_prog in cl.exe
3181  do
3182    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_CC+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if test -n "$CC"; then
3190  ac_cv_prog_CC="$CC" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204  done
3205IFS=$as_save_IFS
3206
3207fi
3208fi
3209CC=$ac_cv_prog_CC
3210if test -n "$CC"; then
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212$as_echo "$CC" >&6; }
3213else
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216fi
3217
3218
3219    test -n "$CC" && break
3220  done
3221fi
3222if test -z "$CC"; then
3223  ac_ct_CC=$CC
3224  for ac_prog in cl.exe
3225do
3226  # Extract the first word of "$ac_prog", so it can be a program name with args.
3227set dummy $ac_prog; ac_word=$2
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if ${ac_cv_prog_ac_ct_CC+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  if test -n "$ac_ct_CC"; then
3234  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241    for ac_exec_ext in '' $ac_executable_extensions; do
3242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243    ac_cv_prog_ac_ct_CC="$ac_prog"
3244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248  done
3249IFS=$as_save_IFS
3250
3251fi
3252fi
3253ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254if test -n "$ac_ct_CC"; then
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256$as_echo "$ac_ct_CC" >&6; }
3257else
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
3260fi
3261
3262
3263  test -n "$ac_ct_CC" && break
3264done
3265
3266  if test "x$ac_ct_CC" = x; then
3267    CC=""
3268  else
3269    case $cross_compiling:$ac_tool_warned in
3270yes:)
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273ac_tool_warned=yes ;;
3274esac
3275    CC=$ac_ct_CC
3276  fi
3277fi
3278
3279fi
3280
3281
3282test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284as_fn_error $? "no acceptable C compiler found in \$PATH
3285See \`config.log' for more details" "$LINENO" 5; }
3286
3287# Provide some information about the compiler.
3288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289set X $ac_compile
3290ac_compiler=$2
3291for ac_option in --version -v -V -qversion; do
3292  { { ac_try="$ac_compiler $ac_option >&5"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3300  ac_status=$?
3301  if test -s conftest.err; then
3302    sed '10a\
3303... rest of stderr output deleted ...
3304         10q' conftest.err >conftest.er1
3305    cat conftest.er1 >&5
3306  fi
3307  rm -f conftest.er1 conftest.err
3308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309  test $ac_status = 0; }
3310done
3311
3312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323ac_clean_files_save=$ac_clean_files
3324ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3325# Try to create an executable without -o first, disregard a.out.
3326# It will help us diagnose broken compilers, and finding out an intuition
3327# of exeext.
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329$as_echo_n "checking whether the C compiler works... " >&6; }
3330ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3331
3332# The possible output files:
3333ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3334
3335ac_rmfiles=
3336for ac_file in $ac_files
3337do
3338  case $ac_file in
3339    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341  esac
3342done
3343rm -f $ac_rmfiles
3344
3345if { { ac_try="$ac_link_default"
3346case "(($ac_try" in
3347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348  *) ac_try_echo=$ac_try;;
3349esac
3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351$as_echo "$ac_try_echo"; } >&5
3352  (eval "$ac_link_default") 2>&5
3353  ac_status=$?
3354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355  test $ac_status = 0; }; then :
3356  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3359# so that the user can short-circuit this test for compilers unknown to
3360# Autoconf.
3361for ac_file in $ac_files ''
3362do
3363  test -f "$ac_file" || continue
3364  case $ac_file in
3365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3366	;;
3367    [ab].out )
3368	# We found the default executable, but exeext='' is most
3369	# certainly right.
3370	break;;
3371    *.* )
3372	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3373	then :; else
3374	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375	fi
3376	# We set ac_cv_exeext here because the later test for it is not
3377	# safe: cross compilers may not add the suffix if given an `-o'
3378	# argument, so we may need to know it at that point already.
3379	# Even if this section looks crufty: it has the advantage of
3380	# actually working.
3381	break;;
3382    * )
3383	break;;
3384  esac
3385done
3386test "$ac_cv_exeext" = no && ac_cv_exeext=
3387
3388else
3389  ac_file=''
3390fi
3391if test -z "$ac_file"; then :
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393$as_echo "no" >&6; }
3394$as_echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error 77 "C compiler cannot create executables
3400See \`config.log' for more details" "$LINENO" 5; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403$as_echo "yes" >&6; }
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406$as_echo_n "checking for C compiler default output file name... " >&6; }
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408$as_echo "$ac_file" >&6; }
3409ac_exeext=$ac_cv_exeext
3410
3411rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3412ac_clean_files=$ac_clean_files_save
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414$as_echo_n "checking for suffix of executables... " >&6; }
3415if { { ac_try="$ac_link"
3416case "(($ac_try" in
3417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418  *) ac_try_echo=$ac_try;;
3419esac
3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421$as_echo "$ac_try_echo"; } >&5
3422  (eval "$ac_link") 2>&5
3423  ac_status=$?
3424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425  test $ac_status = 0; }; then :
3426  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3428# work properly (i.e., refer to `conftest.exe'), while it won't with
3429# `rm'.
3430for ac_file in conftest.exe conftest conftest.*; do
3431  test -f "$ac_file" || continue
3432  case $ac_file in
3433    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435	  break;;
3436    * ) break;;
3437  esac
3438done
3439else
3440  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3443See \`config.log' for more details" "$LINENO" 5; }
3444fi
3445rm -f conftest conftest$ac_cv_exeext
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447$as_echo "$ac_cv_exeext" >&6; }
3448
3449rm -f conftest.$ac_ext
3450EXEEXT=$ac_cv_exeext
3451ac_exeext=$EXEEXT
3452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#include <stdio.h>
3455int
3456main ()
3457{
3458FILE *f = fopen ("conftest.out", "w");
3459 return ferror (f) || fclose (f) != 0;
3460
3461  ;
3462  return 0;
3463}
3464_ACEOF
3465ac_clean_files="$ac_clean_files conftest.out"
3466# Check that the compiler produces executables we can run.  If not, either
3467# the compiler is broken, or we cross compile.
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469$as_echo_n "checking whether we are cross compiling... " >&6; }
3470if test "$cross_compiling" != yes; then
3471  { { ac_try="$ac_link"
3472case "(($ac_try" in
3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474  *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477$as_echo "$ac_try_echo"; } >&5
3478  (eval "$ac_link") 2>&5
3479  ac_status=$?
3480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481  test $ac_status = 0; }
3482  if { ac_try='./conftest$ac_cv_exeext'
3483  { { case "(($ac_try" in
3484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485  *) ac_try_echo=$ac_try;;
3486esac
3487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488$as_echo "$ac_try_echo"; } >&5
3489  (eval "$ac_try") 2>&5
3490  ac_status=$?
3491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492  test $ac_status = 0; }; }; then
3493    cross_compiling=no
3494  else
3495    if test "$cross_compiling" = maybe; then
3496	cross_compiling=yes
3497    else
3498	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "cannot run C compiled programs.
3501If you meant to cross compile, use \`--host'.
3502See \`config.log' for more details" "$LINENO" 5; }
3503    fi
3504  fi
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507$as_echo "$cross_compiling" >&6; }
3508
3509rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510ac_clean_files=$ac_clean_files_save
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512$as_echo_n "checking for suffix of object files... " >&6; }
3513if ${ac_cv_objext+:} false; then :
3514  $as_echo_n "(cached) " >&6
3515else
3516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527rm -f conftest.o conftest.obj
3528if { { ac_try="$ac_compile"
3529case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535  (eval "$ac_compile") 2>&5
3536  ac_status=$?
3537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538  test $ac_status = 0; }; then :
3539  for ac_file in conftest.o conftest.obj conftest.*; do
3540  test -f "$ac_file" || continue;
3541  case $ac_file in
3542    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544       break;;
3545  esac
3546done
3547else
3548  $as_echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "cannot compute suffix of object files: cannot compile
3554See \`config.log' for more details" "$LINENO" 5; }
3555fi
3556rm -f conftest.$ac_cv_objext conftest.$ac_ext
3557fi
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559$as_echo "$ac_cv_objext" >&6; }
3560OBJEXT=$ac_cv_objext
3561ac_objext=$OBJEXT
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564if ${ac_cv_c_compiler_gnu+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573#ifndef __GNUC__
3574       choke me
3575#endif
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581if ac_fn_c_try_compile "$LINENO"; then :
3582  ac_compiler_gnu=yes
3583else
3584  ac_compiler_gnu=no
3585fi
3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592if test $ac_compiler_gnu = yes; then
3593  GCC=yes
3594else
3595  GCC=
3596fi
3597ac_test_CFLAGS=${CFLAGS+set}
3598ac_save_CFLAGS=$CFLAGS
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600$as_echo_n "checking whether $CC accepts -g... " >&6; }
3601if ${ac_cv_prog_cc_g+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  ac_save_c_werror_flag=$ac_c_werror_flag
3605   ac_c_werror_flag=yes
3606   ac_cv_prog_cc_g=no
3607   CFLAGS="-g"
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609/* end confdefs.h.  */
3610
3611int
3612main ()
3613{
3614
3615  ;
3616  return 0;
3617}
3618_ACEOF
3619if ac_fn_c_try_compile "$LINENO"; then :
3620  ac_cv_prog_cc_g=yes
3621else
3622  CFLAGS=""
3623      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625
3626int
3627main ()
3628{
3629
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634if ac_fn_c_try_compile "$LINENO"; then :
3635
3636else
3637  ac_c_werror_flag=$ac_save_c_werror_flag
3638	 CFLAGS="-g"
3639	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650if ac_fn_c_try_compile "$LINENO"; then :
3651  ac_cv_prog_cc_g=yes
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656fi
3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658   ac_c_werror_flag=$ac_save_c_werror_flag
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661$as_echo "$ac_cv_prog_cc_g" >&6; }
3662if test "$ac_test_CFLAGS" = set; then
3663  CFLAGS=$ac_save_CFLAGS
3664elif test $ac_cv_prog_cc_g = yes; then
3665  if test "$GCC" = yes; then
3666    CFLAGS="-g -O2"
3667  else
3668    CFLAGS="-g"
3669  fi
3670else
3671  if test "$GCC" = yes; then
3672    CFLAGS="-O2"
3673  else
3674    CFLAGS=
3675  fi
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679if ${ac_cv_prog_cc_c89+:} false; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  ac_cv_prog_cc_c89=no
3683ac_save_CC=$CC
3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685/* end confdefs.h.  */
3686#include <stdarg.h>
3687#include <stdio.h>
3688struct stat;
3689/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3690struct buf { int x; };
3691FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692static char *e (p, i)
3693     char **p;
3694     int i;
3695{
3696  return p[i];
3697}
3698static char *f (char * (*g) (char **, int), char **p, ...)
3699{
3700  char *s;
3701  va_list v;
3702  va_start (v,p);
3703  s = g (p, va_arg (v,int));
3704  va_end (v);
3705  return s;
3706}
3707
3708/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3709   function prototypes and stuff, but not '\xHH' hex character constants.
3710   These don't provoke an error unfortunately, instead are silently treated
3711   as 'x'.  The following induces an error, until -std is added to get
3712   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3713   array size at least.  It's necessary to write '\x00'==0 to get something
3714   that's true only with -std.  */
3715int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716
3717/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718   inside strings and character constants.  */
3719#define FOO(x) 'x'
3720int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721
3722int test (int i, double x);
3723struct s1 {int (*f) (int a);};
3724struct s2 {int (*f) (double a);};
3725int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726int argc;
3727char **argv;
3728int
3729main ()
3730{
3731return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3732  ;
3733  return 0;
3734}
3735_ACEOF
3736for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738do
3739  CC="$ac_save_CC $ac_arg"
3740  if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_prog_cc_c89=$ac_arg
3742fi
3743rm -f core conftest.err conftest.$ac_objext
3744  test "x$ac_cv_prog_cc_c89" != "xno" && break
3745done
3746rm -f conftest.$ac_ext
3747CC=$ac_save_CC
3748
3749fi
3750# AC_CACHE_VAL
3751case "x$ac_cv_prog_cc_c89" in
3752  x)
3753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754$as_echo "none needed" >&6; } ;;
3755  xno)
3756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757$as_echo "unsupported" >&6; } ;;
3758  *)
3759    CC="$CC $ac_cv_prog_cc_c89"
3760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762esac
3763if test "x$ac_cv_prog_cc_c89" != xno; then :
3764
3765fi
3766
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773depcc="$CC"   am_compiler_list=
3774
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776$as_echo_n "checking dependency style of $depcc... " >&6; }
3777if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3778  $as_echo_n "(cached) " >&6
3779else
3780  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781  # We make a subdir and do the tests there.  Otherwise we can end up
3782  # making bogus files that we don't know about and never remove.  For
3783  # instance it was reported that on HP-UX the gcc test will end up
3784  # making a dummy file named `D' -- because `-MD' means `put the output
3785  # in D'.
3786  rm -rf conftest.dir
3787  mkdir conftest.dir
3788  # Copy depcomp to subdir because otherwise we won't find it if we're
3789  # using a relative directory.
3790  cp "$am_depcomp" conftest.dir
3791  cd conftest.dir
3792  # We will build objects and dependencies in a subdirectory because
3793  # it helps to detect inapplicable dependency modes.  For instance
3794  # both Tru64's cc and ICC support -MD to output dependencies as a
3795  # side effect of compilation, but ICC will put the dependencies in
3796  # the current directory while Tru64 will put them in the object
3797  # directory.
3798  mkdir sub
3799
3800  am_cv_CC_dependencies_compiler_type=none
3801  if test "$am_compiler_list" = ""; then
3802     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803  fi
3804  am__universal=false
3805  case " $depcc " in #(
3806     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807     esac
3808
3809  for depmode in $am_compiler_list; do
3810    # Setup a source with many dependencies, because some compilers
3811    # like to wrap large dependency lists on column 80 (with \), and
3812    # we should not choose a depcomp mode which is confused by this.
3813    #
3814    # We need to recreate these files for each test, as the compiler may
3815    # overwrite some of them when testing with obscure command lines.
3816    # This happens at least with the AIX C compiler.
3817    : > sub/conftest.c
3818    for i in 1 2 3 4 5 6; do
3819      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821      # Solaris 8's {/usr,}/bin/sh.
3822      touch sub/conftst$i.h
3823    done
3824    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825
3826    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827    # mode.  It turns out that the SunPro C++ compiler does not properly
3828    # handle `-M -o', and we need to detect this.  Also, some Intel
3829    # versions had trouble with output in subdirs
3830    am__obj=sub/conftest.${OBJEXT-o}
3831    am__minus_obj="-o $am__obj"
3832    case $depmode in
3833    gcc)
3834      # This depmode causes a compiler race in universal mode.
3835      test "$am__universal" = false || continue
3836      ;;
3837    nosideeffect)
3838      # after this tag, mechanisms are not by side-effect, so they'll
3839      # only be used when explicitly requested
3840      if test "x$enable_dependency_tracking" = xyes; then
3841	continue
3842      else
3843	break
3844      fi
3845      ;;
3846    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847      # This compiler won't grok `-c -o', but also, the minuso test has
3848      # not run yet.  These depmodes are late enough in the game, and
3849      # so weak that their functioning should not be impacted.
3850      am__obj=conftest.${OBJEXT-o}
3851      am__minus_obj=
3852      ;;
3853    none) break ;;
3854    esac
3855    if depmode=$depmode \
3856       source=sub/conftest.c object=$am__obj \
3857       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859         >/dev/null 2>conftest.err &&
3860       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864      # icc doesn't choke on unknown options, it will just issue warnings
3865      # or remarks (even with -Werror).  So we grep stderr for any message
3866      # that says an option was ignored or not supported.
3867      # When given -MP, icc 7.0 and 7.1 complain thusly:
3868      #   icc: Command line warning: ignoring option '-M'; no argument required
3869      # The diagnosis changed in icc 8.0:
3870      #   icc: Command line remark: option '-MP' not supported
3871      if (grep 'ignoring option' conftest.err ||
3872          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873        am_cv_CC_dependencies_compiler_type=$depmode
3874        break
3875      fi
3876    fi
3877  done
3878
3879  cd ..
3880  rm -rf conftest.dir
3881else
3882  am_cv_CC_dependencies_compiler_type=none
3883fi
3884
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890 if
3891  test "x$enable_dependency_tracking" != xno \
3892  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893  am__fastdepCC_TRUE=
3894  am__fastdepCC_FALSE='#'
3895else
3896  am__fastdepCC_TRUE='#'
3897  am__fastdepCC_FALSE=
3898fi
3899
3900
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3902$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3903if ${ac_cv_path_SED+:} false; then :
3904  $as_echo_n "(cached) " >&6
3905else
3906            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3907     for ac_i in 1 2 3 4 5 6 7; do
3908       ac_script="$ac_script$as_nl$ac_script"
3909     done
3910     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3911     { ac_script=; unset ac_script;}
3912     if test -z "$SED"; then
3913  ac_path_SED_found=false
3914  # Loop through the user's path and test for each of PROGNAME-LIST
3915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918  IFS=$as_save_IFS
3919  test -z "$as_dir" && as_dir=.
3920    for ac_prog in sed gsed; do
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3923      as_fn_executable_p "$ac_path_SED" || continue
3924# Check for GNU ac_path_SED and select it if it is found.
3925  # Check for GNU $ac_path_SED
3926case `"$ac_path_SED" --version 2>&1` in
3927*GNU*)
3928  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3929*)
3930  ac_count=0
3931  $as_echo_n 0123456789 >"conftest.in"
3932  while :
3933  do
3934    cat "conftest.in" "conftest.in" >"conftest.tmp"
3935    mv "conftest.tmp" "conftest.in"
3936    cp "conftest.in" "conftest.nl"
3937    $as_echo '' >> "conftest.nl"
3938    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940    as_fn_arith $ac_count + 1 && ac_count=$as_val
3941    if test $ac_count -gt ${ac_path_SED_max-0}; then
3942      # Best one so far, save it but keep looking for a better one
3943      ac_cv_path_SED="$ac_path_SED"
3944      ac_path_SED_max=$ac_count
3945    fi
3946    # 10*(2^10) chars as input seems more than enough
3947    test $ac_count -gt 10 && break
3948  done
3949  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950esac
3951
3952      $ac_path_SED_found && break 3
3953    done
3954  done
3955  done
3956IFS=$as_save_IFS
3957  if test -z "$ac_cv_path_SED"; then
3958    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3959  fi
3960else
3961  ac_cv_path_SED=$SED
3962fi
3963
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3966$as_echo "$ac_cv_path_SED" >&6; }
3967 SED="$ac_cv_path_SED"
3968  rm -f conftest.sed
3969
3970test -z "$SED" && SED=sed
3971Xsed="$SED -e 1s/^X//"
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3984$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3985if ${ac_cv_path_GREP+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  if test -z "$GREP"; then
3989  ac_path_GREP_found=false
3990  # Loop through the user's path and test for each of PROGNAME-LIST
3991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993do
3994  IFS=$as_save_IFS
3995  test -z "$as_dir" && as_dir=.
3996    for ac_prog in grep ggrep; do
3997    for ac_exec_ext in '' $ac_executable_extensions; do
3998      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3999      as_fn_executable_p "$ac_path_GREP" || continue
4000# Check for GNU ac_path_GREP and select it if it is found.
4001  # Check for GNU $ac_path_GREP
4002case `"$ac_path_GREP" --version 2>&1` in
4003*GNU*)
4004  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4005*)
4006  ac_count=0
4007  $as_echo_n 0123456789 >"conftest.in"
4008  while :
4009  do
4010    cat "conftest.in" "conftest.in" >"conftest.tmp"
4011    mv "conftest.tmp" "conftest.in"
4012    cp "conftest.in" "conftest.nl"
4013    $as_echo 'GREP' >> "conftest.nl"
4014    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4015    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4016    as_fn_arith $ac_count + 1 && ac_count=$as_val
4017    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4018      # Best one so far, save it but keep looking for a better one
4019      ac_cv_path_GREP="$ac_path_GREP"
4020      ac_path_GREP_max=$ac_count
4021    fi
4022    # 10*(2^10) chars as input seems more than enough
4023    test $ac_count -gt 10 && break
4024  done
4025  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4026esac
4027
4028      $ac_path_GREP_found && break 3
4029    done
4030  done
4031  done
4032IFS=$as_save_IFS
4033  if test -z "$ac_cv_path_GREP"; then
4034    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4035  fi
4036else
4037  ac_cv_path_GREP=$GREP
4038fi
4039
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4042$as_echo "$ac_cv_path_GREP" >&6; }
4043 GREP="$ac_cv_path_GREP"
4044
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4047$as_echo_n "checking for egrep... " >&6; }
4048if ${ac_cv_path_EGREP+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4052   then ac_cv_path_EGREP="$GREP -E"
4053   else
4054     if test -z "$EGREP"; then
4055  ac_path_EGREP_found=false
4056  # Loop through the user's path and test for each of PROGNAME-LIST
4057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059do
4060  IFS=$as_save_IFS
4061  test -z "$as_dir" && as_dir=.
4062    for ac_prog in egrep; do
4063    for ac_exec_ext in '' $ac_executable_extensions; do
4064      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065      as_fn_executable_p "$ac_path_EGREP" || continue
4066# Check for GNU ac_path_EGREP and select it if it is found.
4067  # Check for GNU $ac_path_EGREP
4068case `"$ac_path_EGREP" --version 2>&1` in
4069*GNU*)
4070  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4071*)
4072  ac_count=0
4073  $as_echo_n 0123456789 >"conftest.in"
4074  while :
4075  do
4076    cat "conftest.in" "conftest.in" >"conftest.tmp"
4077    mv "conftest.tmp" "conftest.in"
4078    cp "conftest.in" "conftest.nl"
4079    $as_echo 'EGREP' >> "conftest.nl"
4080    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082    as_fn_arith $ac_count + 1 && ac_count=$as_val
4083    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084      # Best one so far, save it but keep looking for a better one
4085      ac_cv_path_EGREP="$ac_path_EGREP"
4086      ac_path_EGREP_max=$ac_count
4087    fi
4088    # 10*(2^10) chars as input seems more than enough
4089    test $ac_count -gt 10 && break
4090  done
4091  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092esac
4093
4094      $ac_path_EGREP_found && break 3
4095    done
4096  done
4097  done
4098IFS=$as_save_IFS
4099  if test -z "$ac_cv_path_EGREP"; then
4100    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4101  fi
4102else
4103  ac_cv_path_EGREP=$EGREP
4104fi
4105
4106   fi
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4109$as_echo "$ac_cv_path_EGREP" >&6; }
4110 EGREP="$ac_cv_path_EGREP"
4111
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4114$as_echo_n "checking for fgrep... " >&6; }
4115if ${ac_cv_path_FGREP+:} false; then :
4116  $as_echo_n "(cached) " >&6
4117else
4118  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4119   then ac_cv_path_FGREP="$GREP -F"
4120   else
4121     if test -z "$FGREP"; then
4122  ac_path_FGREP_found=false
4123  # Loop through the user's path and test for each of PROGNAME-LIST
4124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129    for ac_prog in fgrep; do
4130    for ac_exec_ext in '' $ac_executable_extensions; do
4131      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4132      as_fn_executable_p "$ac_path_FGREP" || continue
4133# Check for GNU ac_path_FGREP and select it if it is found.
4134  # Check for GNU $ac_path_FGREP
4135case `"$ac_path_FGREP" --version 2>&1` in
4136*GNU*)
4137  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4138*)
4139  ac_count=0
4140  $as_echo_n 0123456789 >"conftest.in"
4141  while :
4142  do
4143    cat "conftest.in" "conftest.in" >"conftest.tmp"
4144    mv "conftest.tmp" "conftest.in"
4145    cp "conftest.in" "conftest.nl"
4146    $as_echo 'FGREP' >> "conftest.nl"
4147    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149    as_fn_arith $ac_count + 1 && ac_count=$as_val
4150    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4151      # Best one so far, save it but keep looking for a better one
4152      ac_cv_path_FGREP="$ac_path_FGREP"
4153      ac_path_FGREP_max=$ac_count
4154    fi
4155    # 10*(2^10) chars as input seems more than enough
4156    test $ac_count -gt 10 && break
4157  done
4158  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159esac
4160
4161      $ac_path_FGREP_found && break 3
4162    done
4163  done
4164  done
4165IFS=$as_save_IFS
4166  if test -z "$ac_cv_path_FGREP"; then
4167    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4168  fi
4169else
4170  ac_cv_path_FGREP=$FGREP
4171fi
4172
4173   fi
4174fi
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4176$as_echo "$ac_cv_path_FGREP" >&6; }
4177 FGREP="$ac_cv_path_FGREP"
4178
4179
4180test -z "$GREP" && GREP=grep
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200# Check whether --with-gnu-ld was given.
4201if test "${with_gnu_ld+set}" = set; then :
4202  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4203else
4204  with_gnu_ld=no
4205fi
4206
4207ac_prog=ld
4208if test "$GCC" = yes; then
4209  # Check if gcc -print-prog-name=ld gives a path.
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4211$as_echo_n "checking for ld used by $CC... " >&6; }
4212  case $host in
4213  *-*-mingw*)
4214    # gcc leaves a trailing carriage return which upsets mingw
4215    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4216  *)
4217    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4218  esac
4219  case $ac_prog in
4220    # Accept absolute paths.
4221    [\\/]* | ?:[\\/]*)
4222      re_direlt='/[^/][^/]*/\.\./'
4223      # Canonicalize the pathname of ld
4224      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4225      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4226	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4227      done
4228      test -z "$LD" && LD="$ac_prog"
4229      ;;
4230  "")
4231    # If it fails, then pretend we aren't using GCC.
4232    ac_prog=ld
4233    ;;
4234  *)
4235    # If it is relative, then search for the first ld in PATH.
4236    with_gnu_ld=unknown
4237    ;;
4238  esac
4239elif test "$with_gnu_ld" = yes; then
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4241$as_echo_n "checking for GNU ld... " >&6; }
4242else
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4244$as_echo_n "checking for non-GNU ld... " >&6; }
4245fi
4246if ${lt_cv_path_LD+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if test -z "$LD"; then
4250  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4251  for ac_dir in $PATH; do
4252    IFS="$lt_save_ifs"
4253    test -z "$ac_dir" && ac_dir=.
4254    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4255      lt_cv_path_LD="$ac_dir/$ac_prog"
4256      # Check to see if the program is GNU ld.  I'd rather use --version,
4257      # but apparently some variants of GNU ld only accept -v.
4258      # Break only if it was the GNU/non-GNU ld that we prefer.
4259      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4260      *GNU* | *'with BFD'*)
4261	test "$with_gnu_ld" != no && break
4262	;;
4263      *)
4264	test "$with_gnu_ld" != yes && break
4265	;;
4266      esac
4267    fi
4268  done
4269  IFS="$lt_save_ifs"
4270else
4271  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4272fi
4273fi
4274
4275LD="$lt_cv_path_LD"
4276if test -n "$LD"; then
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4278$as_echo "$LD" >&6; }
4279else
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281$as_echo "no" >&6; }
4282fi
4283test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4285$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4286if ${lt_cv_prog_gnu_ld+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290case `$LD -v 2>&1 </dev/null` in
4291*GNU* | *'with BFD'*)
4292  lt_cv_prog_gnu_ld=yes
4293  ;;
4294*)
4295  lt_cv_prog_gnu_ld=no
4296  ;;
4297esac
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4300$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4301with_gnu_ld=$lt_cv_prog_gnu_ld
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4312$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4313if ${lt_cv_path_NM+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if test -n "$NM"; then
4317  # Let the user override the test.
4318  lt_cv_path_NM="$NM"
4319else
4320  lt_nm_to_check="${ac_tool_prefix}nm"
4321  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4322    lt_nm_to_check="$lt_nm_to_check nm"
4323  fi
4324  for lt_tmp_nm in $lt_nm_to_check; do
4325    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4326    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4327      IFS="$lt_save_ifs"
4328      test -z "$ac_dir" && ac_dir=.
4329      tmp_nm="$ac_dir/$lt_tmp_nm"
4330      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4331	# Check to see if the nm accepts a BSD-compat flag.
4332	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4333	#   nm: unknown option "B" ignored
4334	# Tru64's nm complains that /dev/null is an invalid object file
4335	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4336	*/dev/null* | *'Invalid file or object type'*)
4337	  lt_cv_path_NM="$tmp_nm -B"
4338	  break
4339	  ;;
4340	*)
4341	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4342	  */dev/null*)
4343	    lt_cv_path_NM="$tmp_nm -p"
4344	    break
4345	    ;;
4346	  *)
4347	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4348	    continue # so that we can try to find one that supports BSD flags
4349	    ;;
4350	  esac
4351	  ;;
4352	esac
4353      fi
4354    done
4355    IFS="$lt_save_ifs"
4356  done
4357  : ${lt_cv_path_NM=no}
4358fi
4359fi
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4361$as_echo "$lt_cv_path_NM" >&6; }
4362if test "$lt_cv_path_NM" != "no"; then
4363  NM="$lt_cv_path_NM"
4364else
4365  # Didn't find any BSD compatible name lister, look for dumpbin.
4366  if test -n "$DUMPBIN"; then :
4367    # Let the user override the test.
4368  else
4369    if test -n "$ac_tool_prefix"; then
4370  for ac_prog in dumpbin "link -dump"
4371  do
4372    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375$as_echo_n "checking for $ac_word... " >&6; }
4376if ${ac_cv_prog_DUMPBIN+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  if test -n "$DUMPBIN"; then
4380  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385  IFS=$as_save_IFS
4386  test -z "$as_dir" && as_dir=.
4387    for ac_exec_ext in '' $ac_executable_extensions; do
4388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391    break 2
4392  fi
4393done
4394  done
4395IFS=$as_save_IFS
4396
4397fi
4398fi
4399DUMPBIN=$ac_cv_prog_DUMPBIN
4400if test -n "$DUMPBIN"; then
4401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4402$as_echo "$DUMPBIN" >&6; }
4403else
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406fi
4407
4408
4409    test -n "$DUMPBIN" && break
4410  done
4411fi
4412if test -z "$DUMPBIN"; then
4413  ac_ct_DUMPBIN=$DUMPBIN
4414  for ac_prog in dumpbin "link -dump"
4415do
4416  # Extract the first word of "$ac_prog", so it can be a program name with args.
4417set dummy $ac_prog; ac_word=$2
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419$as_echo_n "checking for $ac_word... " >&6; }
4420if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4421  $as_echo_n "(cached) " >&6
4422else
4423  if test -n "$ac_ct_DUMPBIN"; then
4424  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429  IFS=$as_save_IFS
4430  test -z "$as_dir" && as_dir=.
4431    for ac_exec_ext in '' $ac_executable_extensions; do
4432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435    break 2
4436  fi
4437done
4438  done
4439IFS=$as_save_IFS
4440
4441fi
4442fi
4443ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4444if test -n "$ac_ct_DUMPBIN"; then
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4446$as_echo "$ac_ct_DUMPBIN" >&6; }
4447else
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450fi
4451
4452
4453  test -n "$ac_ct_DUMPBIN" && break
4454done
4455
4456  if test "x$ac_ct_DUMPBIN" = x; then
4457    DUMPBIN=":"
4458  else
4459    case $cross_compiling:$ac_tool_warned in
4460yes:)
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463ac_tool_warned=yes ;;
4464esac
4465    DUMPBIN=$ac_ct_DUMPBIN
4466  fi
4467fi
4468
4469    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4470    *COFF*)
4471      DUMPBIN="$DUMPBIN -symbols"
4472      ;;
4473    *)
4474      DUMPBIN=:
4475      ;;
4476    esac
4477  fi
4478
4479  if test "$DUMPBIN" != ":"; then
4480    NM="$DUMPBIN"
4481  fi
4482fi
4483test -z "$NM" && NM=nm
4484
4485
4486
4487
4488
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4491$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4492if ${lt_cv_nm_interface+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495  lt_cv_nm_interface="BSD nm"
4496  echo "int some_variable = 0;" > conftest.$ac_ext
4497  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4498  (eval "$ac_compile" 2>conftest.err)
4499  cat conftest.err >&5
4500  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4501  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4502  cat conftest.err >&5
4503  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4504  cat conftest.out >&5
4505  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4506    lt_cv_nm_interface="MS dumpbin"
4507  fi
4508  rm -f conftest*
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4511$as_echo "$lt_cv_nm_interface" >&6; }
4512
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4514$as_echo_n "checking whether ln -s works... " >&6; }
4515LN_S=$as_ln_s
4516if test "$LN_S" = "ln -s"; then
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518$as_echo "yes" >&6; }
4519else
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4521$as_echo "no, using $LN_S" >&6; }
4522fi
4523
4524# find the maximum length of command line arguments
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4526$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4527if ${lt_cv_sys_max_cmd_len+:} false; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530    i=0
4531  teststring="ABCD"
4532
4533  case $build_os in
4534  msdosdjgpp*)
4535    # On DJGPP, this test can blow up pretty badly due to problems in libc
4536    # (any single argument exceeding 2000 bytes causes a buffer overrun
4537    # during glob expansion).  Even if it were fixed, the result of this
4538    # check would be larger than it should be.
4539    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4540    ;;
4541
4542  gnu*)
4543    # Under GNU Hurd, this test is not required because there is
4544    # no limit to the length of command line arguments.
4545    # Libtool will interpret -1 as no limit whatsoever
4546    lt_cv_sys_max_cmd_len=-1;
4547    ;;
4548
4549  cygwin* | mingw* | cegcc*)
4550    # On Win9x/ME, this test blows up -- it succeeds, but takes
4551    # about 5 minutes as the teststring grows exponentially.
4552    # Worse, since 9x/ME are not pre-emptively multitasking,
4553    # you end up with a "frozen" computer, even though with patience
4554    # the test eventually succeeds (with a max line length of 256k).
4555    # Instead, let's just punt: use the minimum linelength reported by
4556    # all of the supported platforms: 8192 (on NT/2K/XP).
4557    lt_cv_sys_max_cmd_len=8192;
4558    ;;
4559
4560  mint*)
4561    # On MiNT this can take a long time and run out of memory.
4562    lt_cv_sys_max_cmd_len=8192;
4563    ;;
4564
4565  amigaos*)
4566    # On AmigaOS with pdksh, this test takes hours, literally.
4567    # So we just punt and use a minimum line length of 8192.
4568    lt_cv_sys_max_cmd_len=8192;
4569    ;;
4570
4571  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4572    # This has been around since 386BSD, at least.  Likely further.
4573    if test -x /sbin/sysctl; then
4574      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4575    elif test -x /usr/sbin/sysctl; then
4576      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4577    else
4578      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4579    fi
4580    # And add a safety zone
4581    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4582    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4583    ;;
4584
4585  interix*)
4586    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4587    lt_cv_sys_max_cmd_len=196608
4588    ;;
4589
4590  os2*)
4591    # The test takes a long time on OS/2.
4592    lt_cv_sys_max_cmd_len=8192
4593    ;;
4594
4595  osf*)
4596    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4597    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4598    # nice to cause kernel panics so lets avoid the loop below.
4599    # First set a reasonable default.
4600    lt_cv_sys_max_cmd_len=16384
4601    #
4602    if test -x /sbin/sysconfig; then
4603      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4604        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4605      esac
4606    fi
4607    ;;
4608  sco3.2v5*)
4609    lt_cv_sys_max_cmd_len=102400
4610    ;;
4611  sysv5* | sco5v6* | sysv4.2uw2*)
4612    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4613    if test -n "$kargmax"; then
4614      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4615    else
4616      lt_cv_sys_max_cmd_len=32768
4617    fi
4618    ;;
4619  *)
4620    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4621    if test -n "$lt_cv_sys_max_cmd_len"; then
4622      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4623      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4624    else
4625      # Make teststring a little bigger before we do anything with it.
4626      # a 1K string should be a reasonable start.
4627      for i in 1 2 3 4 5 6 7 8 ; do
4628        teststring=$teststring$teststring
4629      done
4630      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4631      # If test is not a shell built-in, we'll probably end up computing a
4632      # maximum length that is only half of the actual maximum length, but
4633      # we can't tell.
4634      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4635	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4636	      test $i != 17 # 1/2 MB should be enough
4637      do
4638        i=`expr $i + 1`
4639        teststring=$teststring$teststring
4640      done
4641      # Only check the string length outside the loop.
4642      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4643      teststring=
4644      # Add a significant safety factor because C++ compilers can tack on
4645      # massive amounts of additional arguments before passing them to the
4646      # linker.  It appears as though 1/2 is a usable value.
4647      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4648    fi
4649    ;;
4650  esac
4651
4652fi
4653
4654if test -n $lt_cv_sys_max_cmd_len ; then
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4656$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4657else
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4659$as_echo "none" >&6; }
4660fi
4661max_cmd_len=$lt_cv_sys_max_cmd_len
4662
4663
4664
4665
4666
4667
4668: ${CP="cp -f"}
4669: ${MV="mv -f"}
4670: ${RM="rm -f"}
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4673$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4674# Try some XSI features
4675xsi_shell=no
4676( _lt_dummy="a/b/c"
4677  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4678      = c,a/b,b/c, \
4679    && eval 'test $(( 1 + 1 )) -eq 2 \
4680    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4681  && xsi_shell=yes
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4683$as_echo "$xsi_shell" >&6; }
4684
4685
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4687$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4688lt_shell_append=no
4689( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4690    >/dev/null 2>&1 \
4691  && lt_shell_append=yes
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4693$as_echo "$lt_shell_append" >&6; }
4694
4695
4696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4697  lt_unset=unset
4698else
4699  lt_unset=false
4700fi
4701
4702
4703
4704
4705
4706# test EBCDIC or ASCII
4707case `echo X|tr X '\101'` in
4708 A) # ASCII based system
4709    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4710  lt_SP2NL='tr \040 \012'
4711  lt_NL2SP='tr \015\012 \040\040'
4712  ;;
4713 *) # EBCDIC based system
4714  lt_SP2NL='tr \100 \n'
4715  lt_NL2SP='tr \r\n \100\100'
4716  ;;
4717esac
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4728$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4729if ${lt_cv_to_host_file_cmd+:} false; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732  case $host in
4733  *-*-mingw* )
4734    case $build in
4735      *-*-mingw* ) # actually msys
4736        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4737        ;;
4738      *-*-cygwin* )
4739        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4740        ;;
4741      * ) # otherwise, assume *nix
4742        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4743        ;;
4744    esac
4745    ;;
4746  *-*-cygwin* )
4747    case $build in
4748      *-*-mingw* ) # actually msys
4749        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4750        ;;
4751      *-*-cygwin* )
4752        lt_cv_to_host_file_cmd=func_convert_file_noop
4753        ;;
4754      * ) # otherwise, assume *nix
4755        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4756        ;;
4757    esac
4758    ;;
4759  * ) # unhandled hosts (and "normal" native builds)
4760    lt_cv_to_host_file_cmd=func_convert_file_noop
4761    ;;
4762esac
4763
4764fi
4765
4766to_host_file_cmd=$lt_cv_to_host_file_cmd
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4768$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4769
4770
4771
4772
4773
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4775$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4776if ${lt_cv_to_tool_file_cmd+:} false; then :
4777  $as_echo_n "(cached) " >&6
4778else
4779  #assume ordinary cross tools, or native build.
4780lt_cv_to_tool_file_cmd=func_convert_file_noop
4781case $host in
4782  *-*-mingw* )
4783    case $build in
4784      *-*-mingw* ) # actually msys
4785        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4786        ;;
4787    esac
4788    ;;
4789esac
4790
4791fi
4792
4793to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4795$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4796
4797
4798
4799
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4802$as_echo_n "checking for $LD option to reload object files... " >&6; }
4803if ${lt_cv_ld_reload_flag+:} false; then :
4804  $as_echo_n "(cached) " >&6
4805else
4806  lt_cv_ld_reload_flag='-r'
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4809$as_echo "$lt_cv_ld_reload_flag" >&6; }
4810reload_flag=$lt_cv_ld_reload_flag
4811case $reload_flag in
4812"" | " "*) ;;
4813*) reload_flag=" $reload_flag" ;;
4814esac
4815reload_cmds='$LD$reload_flag -o $output$reload_objs'
4816case $host_os in
4817  cygwin* | mingw* | pw32* | cegcc*)
4818    if test "$GCC" != yes; then
4819      reload_cmds=false
4820    fi
4821    ;;
4822  darwin*)
4823    if test "$GCC" = yes; then
4824      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4825    else
4826      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4827    fi
4828    ;;
4829esac
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839if test -n "$ac_tool_prefix"; then
4840  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4841set dummy ${ac_tool_prefix}objdump; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if ${ac_cv_prog_OBJDUMP+:} false; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  if test -n "$OBJDUMP"; then
4848  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853  IFS=$as_save_IFS
4854  test -z "$as_dir" && as_dir=.
4855    for ac_exec_ext in '' $ac_executable_extensions; do
4856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859    break 2
4860  fi
4861done
4862  done
4863IFS=$as_save_IFS
4864
4865fi
4866fi
4867OBJDUMP=$ac_cv_prog_OBJDUMP
4868if test -n "$OBJDUMP"; then
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4870$as_echo "$OBJDUMP" >&6; }
4871else
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
4874fi
4875
4876
4877fi
4878if test -z "$ac_cv_prog_OBJDUMP"; then
4879  ac_ct_OBJDUMP=$OBJDUMP
4880  # Extract the first word of "objdump", so it can be a program name with args.
4881set dummy objdump; ac_word=$2
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883$as_echo_n "checking for $ac_word... " >&6; }
4884if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  if test -n "$ac_ct_OBJDUMP"; then
4888  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893  IFS=$as_save_IFS
4894  test -z "$as_dir" && as_dir=.
4895    for ac_exec_ext in '' $ac_executable_extensions; do
4896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899    break 2
4900  fi
4901done
4902  done
4903IFS=$as_save_IFS
4904
4905fi
4906fi
4907ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4908if test -n "$ac_ct_OBJDUMP"; then
4909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4910$as_echo "$ac_ct_OBJDUMP" >&6; }
4911else
4912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
4915
4916  if test "x$ac_ct_OBJDUMP" = x; then
4917    OBJDUMP="false"
4918  else
4919    case $cross_compiling:$ac_tool_warned in
4920yes:)
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923ac_tool_warned=yes ;;
4924esac
4925    OBJDUMP=$ac_ct_OBJDUMP
4926  fi
4927else
4928  OBJDUMP="$ac_cv_prog_OBJDUMP"
4929fi
4930
4931test -z "$OBJDUMP" && OBJDUMP=objdump
4932
4933
4934
4935
4936
4937
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4939$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4940if ${lt_cv_deplibs_check_method+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  lt_cv_file_magic_cmd='$MAGIC_CMD'
4944lt_cv_file_magic_test_file=
4945lt_cv_deplibs_check_method='unknown'
4946# Need to set the preceding variable on all platforms that support
4947# interlibrary dependencies.
4948# 'none' -- dependencies not supported.
4949# `unknown' -- same as none, but documents that we really don't know.
4950# 'pass_all' -- all dependencies passed with no checks.
4951# 'test_compile' -- check by making test program.
4952# 'file_magic [[regex]]' -- check by looking for files in library path
4953# which responds to the $file_magic_cmd with a given extended regex.
4954# If you have `file' or equivalent on your system and you're not sure
4955# whether `pass_all' will *always* work, you probably want this one.
4956
4957case $host_os in
4958aix[4-9]*)
4959  lt_cv_deplibs_check_method=pass_all
4960  ;;
4961
4962beos*)
4963  lt_cv_deplibs_check_method=pass_all
4964  ;;
4965
4966bsdi[45]*)
4967  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4968  lt_cv_file_magic_cmd='/usr/bin/file -L'
4969  lt_cv_file_magic_test_file=/shlib/libc.so
4970  ;;
4971
4972cygwin*)
4973  # func_win32_libid is a shell function defined in ltmain.sh
4974  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4975  lt_cv_file_magic_cmd='func_win32_libid'
4976  ;;
4977
4978mingw* | pw32*)
4979  # Base MSYS/MinGW do not provide the 'file' command needed by
4980  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4981  # unless we find 'file', for example because we are cross-compiling.
4982  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4983  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4984    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4985    lt_cv_file_magic_cmd='func_win32_libid'
4986  else
4987    # Keep this pattern in sync with the one in func_win32_libid.
4988    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4989    lt_cv_file_magic_cmd='$OBJDUMP -f'
4990  fi
4991  ;;
4992
4993cegcc*)
4994  # use the weaker test based on 'objdump'. See mingw*.
4995  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4996  lt_cv_file_magic_cmd='$OBJDUMP -f'
4997  ;;
4998
4999darwin* | rhapsody*)
5000  lt_cv_deplibs_check_method=pass_all
5001  ;;
5002
5003freebsd* | dragonfly*)
5004  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5005    case $host_cpu in
5006    i*86 )
5007      # Not sure whether the presence of OpenBSD here was a mistake.
5008      # Let's accept both of them until this is cleared up.
5009      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5010      lt_cv_file_magic_cmd=/usr/bin/file
5011      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5012      ;;
5013    esac
5014  else
5015    lt_cv_deplibs_check_method=pass_all
5016  fi
5017  ;;
5018
5019haiku*)
5020  lt_cv_deplibs_check_method=pass_all
5021  ;;
5022
5023hpux10.20* | hpux11*)
5024  lt_cv_file_magic_cmd=/usr/bin/file
5025  case $host_cpu in
5026  ia64*)
5027    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5028    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5029    ;;
5030  hppa*64*)
5031    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]'
5032    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5033    ;;
5034  *)
5035    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5036    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5037    ;;
5038  esac
5039  ;;
5040
5041interix[3-9]*)
5042  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5043  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5044  ;;
5045
5046irix5* | irix6* | nonstopux*)
5047  case $LD in
5048  *-32|*"-32 ") libmagic=32-bit;;
5049  *-n32|*"-n32 ") libmagic=N32;;
5050  *-64|*"-64 ") libmagic=64-bit;;
5051  *) libmagic=never-match;;
5052  esac
5053  lt_cv_deplibs_check_method=pass_all
5054  ;;
5055
5056# This must be glibc/ELF.
5057linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5058  lt_cv_deplibs_check_method=pass_all
5059  ;;
5060
5061netbsd* | netbsdelf*-gnu)
5062  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5063    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5064  else
5065    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5066  fi
5067  ;;
5068
5069newos6*)
5070  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5071  lt_cv_file_magic_cmd=/usr/bin/file
5072  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5073  ;;
5074
5075*nto* | *qnx*)
5076  lt_cv_deplibs_check_method=pass_all
5077  ;;
5078
5079openbsd*)
5080  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5082  else
5083    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5084  fi
5085  ;;
5086
5087osf3* | osf4* | osf5*)
5088  lt_cv_deplibs_check_method=pass_all
5089  ;;
5090
5091rdos*)
5092  lt_cv_deplibs_check_method=pass_all
5093  ;;
5094
5095solaris*)
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098
5099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5100  lt_cv_deplibs_check_method=pass_all
5101  ;;
5102
5103sysv4 | sysv4.3*)
5104  case $host_vendor in
5105  motorola)
5106    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]'
5107    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5108    ;;
5109  ncr)
5110    lt_cv_deplibs_check_method=pass_all
5111    ;;
5112  sequent)
5113    lt_cv_file_magic_cmd='/bin/file'
5114    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5115    ;;
5116  sni)
5117    lt_cv_file_magic_cmd='/bin/file'
5118    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5119    lt_cv_file_magic_test_file=/lib/libc.so
5120    ;;
5121  siemens)
5122    lt_cv_deplibs_check_method=pass_all
5123    ;;
5124  pc)
5125    lt_cv_deplibs_check_method=pass_all
5126    ;;
5127  esac
5128  ;;
5129
5130tpf*)
5131  lt_cv_deplibs_check_method=pass_all
5132  ;;
5133esac
5134
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5137$as_echo "$lt_cv_deplibs_check_method" >&6; }
5138
5139file_magic_glob=
5140want_nocaseglob=no
5141if test "$build" = "$host"; then
5142  case $host_os in
5143  mingw* | pw32*)
5144    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5145      want_nocaseglob=yes
5146    else
5147      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5148    fi
5149    ;;
5150  esac
5151fi
5152
5153file_magic_cmd=$lt_cv_file_magic_cmd
5154deplibs_check_method=$lt_cv_deplibs_check_method
5155test -z "$deplibs_check_method" && deplibs_check_method=unknown
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178if test -n "$ac_tool_prefix"; then
5179  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5180set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if ${ac_cv_prog_DLLTOOL+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  if test -n "$DLLTOOL"; then
5187  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194    for ac_exec_ext in '' $ac_executable_extensions; do
5195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201  done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206DLLTOOL=$ac_cv_prog_DLLTOOL
5207if test -n "$DLLTOOL"; then
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5209$as_echo "$DLLTOOL" >&6; }
5210else
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216fi
5217if test -z "$ac_cv_prog_DLLTOOL"; then
5218  ac_ct_DLLTOOL=$DLLTOOL
5219  # Extract the first word of "dlltool", so it can be a program name with args.
5220set dummy dlltool; ac_word=$2
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222$as_echo_n "checking for $ac_word... " >&6; }
5223if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  if test -n "$ac_ct_DLLTOOL"; then
5227  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5228else
5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH
5231do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234    for ac_exec_ext in '' $ac_executable_extensions; do
5235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240done
5241  done
5242IFS=$as_save_IFS
5243
5244fi
5245fi
5246ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5247if test -n "$ac_ct_DLLTOOL"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5249$as_echo "$ac_ct_DLLTOOL" >&6; }
5250else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255  if test "x$ac_ct_DLLTOOL" = x; then
5256    DLLTOOL="false"
5257  else
5258    case $cross_compiling:$ac_tool_warned in
5259yes:)
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262ac_tool_warned=yes ;;
5263esac
5264    DLLTOOL=$ac_ct_DLLTOOL
5265  fi
5266else
5267  DLLTOOL="$ac_cv_prog_DLLTOOL"
5268fi
5269
5270test -z "$DLLTOOL" && DLLTOOL=dlltool
5271
5272
5273
5274
5275
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5279$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5280if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  lt_cv_sharedlib_from_linklib_cmd='unknown'
5284
5285case $host_os in
5286cygwin* | mingw* | pw32* | cegcc*)
5287  # two different shell functions defined in ltmain.sh
5288  # decide which to use based on capabilities of $DLLTOOL
5289  case `$DLLTOOL --help 2>&1` in
5290  *--identify-strict*)
5291    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5292    ;;
5293  *)
5294    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5295    ;;
5296  esac
5297  ;;
5298*)
5299  # fallback: assume linklib IS sharedlib
5300  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5301  ;;
5302esac
5303
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5306$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5307sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5308test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5309
5310
5311
5312
5313
5314
5315
5316
5317if test -n "$ac_tool_prefix"; then
5318  for ac_prog in ar
5319  do
5320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323$as_echo_n "checking for $ac_word... " >&6; }
5324if ${ac_cv_prog_AR+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  if test -n "$AR"; then
5328  ac_cv_prog_AR="$AR" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335    for ac_exec_ext in '' $ac_executable_extensions; do
5336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339    break 2
5340  fi
5341done
5342  done
5343IFS=$as_save_IFS
5344
5345fi
5346fi
5347AR=$ac_cv_prog_AR
5348if test -n "$AR"; then
5349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5350$as_echo "$AR" >&6; }
5351else
5352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }
5354fi
5355
5356
5357    test -n "$AR" && break
5358  done
5359fi
5360if test -z "$AR"; then
5361  ac_ct_AR=$AR
5362  for ac_prog in ar
5363do
5364  # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if ${ac_cv_prog_ac_ct_AR+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  if test -n "$ac_ct_AR"; then
5372  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379    for ac_exec_ext in '' $ac_executable_extensions; do
5380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381    ac_cv_prog_ac_ct_AR="$ac_prog"
5382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386  done
5387IFS=$as_save_IFS
5388
5389fi
5390fi
5391ac_ct_AR=$ac_cv_prog_ac_ct_AR
5392if test -n "$ac_ct_AR"; then
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5394$as_echo "$ac_ct_AR" >&6; }
5395else
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400
5401  test -n "$ac_ct_AR" && break
5402done
5403
5404  if test "x$ac_ct_AR" = x; then
5405    AR="false"
5406  else
5407    case $cross_compiling:$ac_tool_warned in
5408yes:)
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413    AR=$ac_ct_AR
5414  fi
5415fi
5416
5417: ${AR=ar}
5418: ${AR_FLAGS=cru}
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5431$as_echo_n "checking for archiver @FILE support... " >&6; }
5432if ${lt_cv_ar_at_file+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  lt_cv_ar_at_file=no
5436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438
5439int
5440main ()
5441{
5442
5443  ;
5444  return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_compile "$LINENO"; then :
5448  echo conftest.$ac_objext > conftest.lst
5449      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5450      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5451  (eval $lt_ar_try) 2>&5
5452  ac_status=$?
5453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454  test $ac_status = 0; }
5455      if test "$ac_status" -eq 0; then
5456	# Ensure the archiver fails upon bogus file names.
5457	rm -f conftest.$ac_objext libconftest.a
5458	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5459  (eval $lt_ar_try) 2>&5
5460  ac_status=$?
5461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462  test $ac_status = 0; }
5463	if test "$ac_status" -ne 0; then
5464          lt_cv_ar_at_file=@
5465        fi
5466      fi
5467      rm -f conftest.* libconftest.a
5468
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5474$as_echo "$lt_cv_ar_at_file" >&6; }
5475
5476if test "x$lt_cv_ar_at_file" = xno; then
5477  archiver_list_spec=
5478else
5479  archiver_list_spec=$lt_cv_ar_at_file
5480fi
5481
5482
5483
5484
5485
5486
5487
5488if test -n "$ac_tool_prefix"; then
5489  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5490set dummy ${ac_tool_prefix}strip; ac_word=$2
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492$as_echo_n "checking for $ac_word... " >&6; }
5493if ${ac_cv_prog_STRIP+:} false; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496  if test -n "$STRIP"; then
5497  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5498else
5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $PATH
5501do
5502  IFS=$as_save_IFS
5503  test -z "$as_dir" && as_dir=.
5504    for ac_exec_ext in '' $ac_executable_extensions; do
5505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508    break 2
5509  fi
5510done
5511  done
5512IFS=$as_save_IFS
5513
5514fi
5515fi
5516STRIP=$ac_cv_prog_STRIP
5517if test -n "$STRIP"; then
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5519$as_echo "$STRIP" >&6; }
5520else
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522$as_echo "no" >&6; }
5523fi
5524
5525
5526fi
5527if test -z "$ac_cv_prog_STRIP"; then
5528  ac_ct_STRIP=$STRIP
5529  # Extract the first word of "strip", so it can be a program name with args.
5530set dummy strip; ac_word=$2
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532$as_echo_n "checking for $ac_word... " >&6; }
5533if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  if test -n "$ac_ct_STRIP"; then
5537  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5538else
5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH
5541do
5542  IFS=$as_save_IFS
5543  test -z "$as_dir" && as_dir=.
5544    for ac_exec_ext in '' $ac_executable_extensions; do
5545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546    ac_cv_prog_ac_ct_STRIP="strip"
5547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548    break 2
5549  fi
5550done
5551  done
5552IFS=$as_save_IFS
5553
5554fi
5555fi
5556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5557if test -n "$ac_ct_STRIP"; then
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5559$as_echo "$ac_ct_STRIP" >&6; }
5560else
5561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562$as_echo "no" >&6; }
5563fi
5564
5565  if test "x$ac_ct_STRIP" = x; then
5566    STRIP=":"
5567  else
5568    case $cross_compiling:$ac_tool_warned in
5569yes:)
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572ac_tool_warned=yes ;;
5573esac
5574    STRIP=$ac_ct_STRIP
5575  fi
5576else
5577  STRIP="$ac_cv_prog_STRIP"
5578fi
5579
5580test -z "$STRIP" && STRIP=:
5581
5582
5583
5584
5585
5586
5587if test -n "$ac_tool_prefix"; then
5588  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5589set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
5592if ${ac_cv_prog_RANLIB+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  if test -n "$RANLIB"; then
5596  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601  IFS=$as_save_IFS
5602  test -z "$as_dir" && as_dir=.
5603    for ac_exec_ext in '' $ac_executable_extensions; do
5604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607    break 2
5608  fi
5609done
5610  done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615RANLIB=$ac_cv_prog_RANLIB
5616if test -n "$RANLIB"; then
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5618$as_echo "$RANLIB" >&6; }
5619else
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624
5625fi
5626if test -z "$ac_cv_prog_RANLIB"; then
5627  ac_ct_RANLIB=$RANLIB
5628  # Extract the first word of "ranlib", so it can be a program name with args.
5629set dummy ranlib; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
5632if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  if test -n "$ac_ct_RANLIB"; then
5636  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641  IFS=$as_save_IFS
5642  test -z "$as_dir" && as_dir=.
5643    for ac_exec_ext in '' $ac_executable_extensions; do
5644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645    ac_cv_prog_ac_ct_RANLIB="ranlib"
5646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647    break 2
5648  fi
5649done
5650  done
5651IFS=$as_save_IFS
5652
5653fi
5654fi
5655ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5656if test -n "$ac_ct_RANLIB"; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5658$as_echo "$ac_ct_RANLIB" >&6; }
5659else
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664  if test "x$ac_ct_RANLIB" = x; then
5665    RANLIB=":"
5666  else
5667    case $cross_compiling:$ac_tool_warned in
5668yes:)
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671ac_tool_warned=yes ;;
5672esac
5673    RANLIB=$ac_ct_RANLIB
5674  fi
5675else
5676  RANLIB="$ac_cv_prog_RANLIB"
5677fi
5678
5679test -z "$RANLIB" && RANLIB=:
5680
5681
5682
5683
5684
5685
5686# Determine commands to create old-style static archives.
5687old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5688old_postinstall_cmds='chmod 644 $oldlib'
5689old_postuninstall_cmds=
5690
5691if test -n "$RANLIB"; then
5692  case $host_os in
5693  openbsd*)
5694    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5695    ;;
5696  *)
5697    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5698    ;;
5699  esac
5700  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5701fi
5702
5703case $host_os in
5704  darwin*)
5705    lock_old_archive_extraction=yes ;;
5706  *)
5707    lock_old_archive_extraction=no ;;
5708esac
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748# If no C compiler was specified, use CC.
5749LTCC=${LTCC-"$CC"}
5750
5751# If no C compiler flags were specified, use CFLAGS.
5752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5753
5754# Allow CC to be a program name with arguments.
5755compiler=$CC
5756
5757
5758# Check for command to grab the raw symbol name followed by C symbol from nm.
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5760$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5761if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764
5765# These are sane defaults that work on at least a few old systems.
5766# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5767
5768# Character class describing NM global symbol codes.
5769symcode='[BCDEGRST]'
5770
5771# Regexp to match symbols that can be accessed directly from C.
5772sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5773
5774# Define system-specific variables.
5775case $host_os in
5776aix*)
5777  symcode='[BCDT]'
5778  ;;
5779cygwin* | mingw* | pw32* | cegcc*)
5780  symcode='[ABCDGISTW]'
5781  ;;
5782hpux*)
5783  if test "$host_cpu" = ia64; then
5784    symcode='[ABCDEGRST]'
5785  fi
5786  ;;
5787irix* | nonstopux*)
5788  symcode='[BCDEGRST]'
5789  ;;
5790osf*)
5791  symcode='[BCDEGQRST]'
5792  ;;
5793solaris*)
5794  symcode='[BDRT]'
5795  ;;
5796sco3.2v5*)
5797  symcode='[DT]'
5798  ;;
5799sysv4.2uw2*)
5800  symcode='[DT]'
5801  ;;
5802sysv5* | sco5v6* | unixware* | OpenUNIX*)
5803  symcode='[ABDT]'
5804  ;;
5805sysv4)
5806  symcode='[DFNSTU]'
5807  ;;
5808esac
5809
5810# If we're using GNU nm, then use its standard symbol codes.
5811case `$NM -V 2>&1` in
5812*GNU* | *'with BFD'*)
5813  symcode='[ABCDGIRSTW]' ;;
5814esac
5815
5816# Transform an extracted symbol line into a proper C declaration.
5817# Some systems (esp. on ia64) link data and code symbols differently,
5818# so use this general approach.
5819lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5820
5821# Transform an extracted symbol line into symbol name and symbol address
5822lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5823lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5824
5825# Handle CRLF in mingw tool chain
5826opt_cr=
5827case $build_os in
5828mingw*)
5829  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5830  ;;
5831esac
5832
5833# Try without a prefix underscore, then with it.
5834for ac_symprfx in "" "_"; do
5835
5836  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5837  symxfrm="\\1 $ac_symprfx\\2 \\2"
5838
5839  # Write the raw and C identifiers.
5840  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5841    # Fake it for dumpbin and say T for any non-static function
5842    # and D for any global variable.
5843    # Also find C++ and __fastcall symbols from MSVC++,
5844    # which start with @ or ?.
5845    lt_cv_sys_global_symbol_pipe="$AWK '"\
5846"     {last_section=section; section=\$ 3};"\
5847"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5848"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5849"     \$ 0!~/External *\|/{next};"\
5850"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5851"     {if(hide[section]) next};"\
5852"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5853"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5854"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5855"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5856"     ' prfx=^$ac_symprfx"
5857  else
5858    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5859  fi
5860  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5861
5862  # Check to see that the pipe works correctly.
5863  pipe_works=no
5864
5865  rm -f conftest*
5866  cat > conftest.$ac_ext <<_LT_EOF
5867#ifdef __cplusplus
5868extern "C" {
5869#endif
5870char nm_test_var;
5871void nm_test_func(void);
5872void nm_test_func(void){}
5873#ifdef __cplusplus
5874}
5875#endif
5876int main(){nm_test_var='a';nm_test_func();return(0);}
5877_LT_EOF
5878
5879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5880  (eval $ac_compile) 2>&5
5881  ac_status=$?
5882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883  test $ac_status = 0; }; then
5884    # Now try to grab the symbols.
5885    nlist=conftest.nm
5886    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5887  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5888  ac_status=$?
5889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890  test $ac_status = 0; } && test -s "$nlist"; then
5891      # Try sorting and uniquifying the output.
5892      if sort "$nlist" | uniq > "$nlist"T; then
5893	mv -f "$nlist"T "$nlist"
5894      else
5895	rm -f "$nlist"T
5896      fi
5897
5898      # Make sure that we snagged all the symbols we need.
5899      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5900	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5901	  cat <<_LT_EOF > conftest.$ac_ext
5902/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5903#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5904/* DATA imports from DLLs on WIN32 con't be const, because runtime
5905   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5906# define LT_DLSYM_CONST
5907#elif defined(__osf__)
5908/* This system does not cope well with relocations in const data.  */
5909# define LT_DLSYM_CONST
5910#else
5911# define LT_DLSYM_CONST const
5912#endif
5913
5914#ifdef __cplusplus
5915extern "C" {
5916#endif
5917
5918_LT_EOF
5919	  # Now generate the symbol file.
5920	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5921
5922	  cat <<_LT_EOF >> conftest.$ac_ext
5923
5924/* The mapping between symbol names and symbols.  */
5925LT_DLSYM_CONST struct {
5926  const char *name;
5927  void       *address;
5928}
5929lt__PROGRAM__LTX_preloaded_symbols[] =
5930{
5931  { "@PROGRAM@", (void *) 0 },
5932_LT_EOF
5933	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5934	  cat <<\_LT_EOF >> conftest.$ac_ext
5935  {0, (void *) 0}
5936};
5937
5938/* This works around a problem in FreeBSD linker */
5939#ifdef FREEBSD_WORKAROUND
5940static const void *lt_preloaded_setup() {
5941  return lt__PROGRAM__LTX_preloaded_symbols;
5942}
5943#endif
5944
5945#ifdef __cplusplus
5946}
5947#endif
5948_LT_EOF
5949	  # Now try linking the two files.
5950	  mv conftest.$ac_objext conftstm.$ac_objext
5951	  lt_globsym_save_LIBS=$LIBS
5952	  lt_globsym_save_CFLAGS=$CFLAGS
5953	  LIBS="conftstm.$ac_objext"
5954	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5955	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5956  (eval $ac_link) 2>&5
5957  ac_status=$?
5958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5960	    pipe_works=yes
5961	  fi
5962	  LIBS=$lt_globsym_save_LIBS
5963	  CFLAGS=$lt_globsym_save_CFLAGS
5964	else
5965	  echo "cannot find nm_test_func in $nlist" >&5
5966	fi
5967      else
5968	echo "cannot find nm_test_var in $nlist" >&5
5969      fi
5970    else
5971      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5972    fi
5973  else
5974    echo "$progname: failed program was:" >&5
5975    cat conftest.$ac_ext >&5
5976  fi
5977  rm -rf conftest* conftst*
5978
5979  # Do not use the global_symbol_pipe unless it works.
5980  if test "$pipe_works" = yes; then
5981    break
5982  else
5983    lt_cv_sys_global_symbol_pipe=
5984  fi
5985done
5986
5987fi
5988
5989if test -z "$lt_cv_sys_global_symbol_pipe"; then
5990  lt_cv_sys_global_symbol_to_cdecl=
5991fi
5992if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5994$as_echo "failed" >&6; }
5995else
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5997$as_echo "ok" >&6; }
5998fi
5999
6000# Response file support.
6001if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6002  nm_file_list_spec='@'
6003elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6004  nm_file_list_spec='@'
6005fi
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6034$as_echo_n "checking for sysroot... " >&6; }
6035
6036# Check whether --with-sysroot was given.
6037if test "${with_sysroot+set}" = set; then :
6038  withval=$with_sysroot;
6039else
6040  with_sysroot=no
6041fi
6042
6043
6044lt_sysroot=
6045case ${with_sysroot} in #(
6046 yes)
6047   if test "$GCC" = yes; then
6048     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6049   fi
6050   ;; #(
6051 /*)
6052   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6053   ;; #(
6054 no|'')
6055   ;; #(
6056 *)
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6058$as_echo "${with_sysroot}" >&6; }
6059   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6060   ;;
6061esac
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6064$as_echo "${lt_sysroot:-no}" >&6; }
6065
6066
6067
6068
6069
6070# Check whether --enable-libtool-lock was given.
6071if test "${enable_libtool_lock+set}" = set; then :
6072  enableval=$enable_libtool_lock;
6073fi
6074
6075test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6076
6077# Some flags need to be propagated to the compiler or linker for good
6078# libtool support.
6079case $host in
6080ia64-*-hpux*)
6081  # Find out which ABI we are using.
6082  echo 'int i;' > conftest.$ac_ext
6083  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6084  (eval $ac_compile) 2>&5
6085  ac_status=$?
6086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087  test $ac_status = 0; }; then
6088    case `/usr/bin/file conftest.$ac_objext` in
6089      *ELF-32*)
6090	HPUX_IA64_MODE="32"
6091	;;
6092      *ELF-64*)
6093	HPUX_IA64_MODE="64"
6094	;;
6095    esac
6096  fi
6097  rm -rf conftest*
6098  ;;
6099*-*-irix6*)
6100  # Find out which ABI we are using.
6101  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6102  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6103  (eval $ac_compile) 2>&5
6104  ac_status=$?
6105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6106  test $ac_status = 0; }; then
6107    if test "$lt_cv_prog_gnu_ld" = yes; then
6108      case `/usr/bin/file conftest.$ac_objext` in
6109	*32-bit*)
6110	  LD="${LD-ld} -melf32bsmip"
6111	  ;;
6112	*N32*)
6113	  LD="${LD-ld} -melf32bmipn32"
6114	  ;;
6115	*64-bit*)
6116	  LD="${LD-ld} -melf64bmip"
6117	;;
6118      esac
6119    else
6120      case `/usr/bin/file conftest.$ac_objext` in
6121	*32-bit*)
6122	  LD="${LD-ld} -32"
6123	  ;;
6124	*N32*)
6125	  LD="${LD-ld} -n32"
6126	  ;;
6127	*64-bit*)
6128	  LD="${LD-ld} -64"
6129	  ;;
6130      esac
6131    fi
6132  fi
6133  rm -rf conftest*
6134  ;;
6135
6136x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6137s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6138  # Find out which ABI we are using.
6139  echo 'int i;' > conftest.$ac_ext
6140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6141  (eval $ac_compile) 2>&5
6142  ac_status=$?
6143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144  test $ac_status = 0; }; then
6145    case `/usr/bin/file conftest.o` in
6146      *32-bit*)
6147	case $host in
6148	  x86_64-*kfreebsd*-gnu)
6149	    LD="${LD-ld} -m elf_i386_fbsd"
6150	    ;;
6151	  x86_64-*linux*)
6152	    LD="${LD-ld} -m elf_i386"
6153	    ;;
6154	  ppc64-*linux*|powerpc64-*linux*)
6155	    LD="${LD-ld} -m elf32ppclinux"
6156	    ;;
6157	  s390x-*linux*)
6158	    LD="${LD-ld} -m elf_s390"
6159	    ;;
6160	  sparc64-*linux*)
6161	    LD="${LD-ld} -m elf32_sparc"
6162	    ;;
6163	esac
6164	;;
6165      *64-bit*)
6166	case $host in
6167	  x86_64-*kfreebsd*-gnu)
6168	    LD="${LD-ld} -m elf_x86_64_fbsd"
6169	    ;;
6170	  x86_64-*linux*)
6171	    LD="${LD-ld} -m elf_x86_64"
6172	    ;;
6173	  ppc*-*linux*|powerpc*-*linux*)
6174	    LD="${LD-ld} -m elf64ppc"
6175	    ;;
6176	  s390*-*linux*|s390*-*tpf*)
6177	    LD="${LD-ld} -m elf64_s390"
6178	    ;;
6179	  sparc*-*linux*)
6180	    LD="${LD-ld} -m elf64_sparc"
6181	    ;;
6182	esac
6183	;;
6184    esac
6185  fi
6186  rm -rf conftest*
6187  ;;
6188
6189*-*-sco3.2v5*)
6190  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6191  SAVE_CFLAGS="$CFLAGS"
6192  CFLAGS="$CFLAGS -belf"
6193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6194$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6195if ${lt_cv_cc_needs_belf+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  ac_ext=c
6199ac_cpp='$CPP $CPPFLAGS'
6200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206
6207int
6208main ()
6209{
6210
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_link "$LINENO"; then :
6216  lt_cv_cc_needs_belf=yes
6217else
6218  lt_cv_cc_needs_belf=no
6219fi
6220rm -f core conftest.err conftest.$ac_objext \
6221    conftest$ac_exeext conftest.$ac_ext
6222     ac_ext=c
6223ac_cpp='$CPP $CPPFLAGS'
6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6230$as_echo "$lt_cv_cc_needs_belf" >&6; }
6231  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6232    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6233    CFLAGS="$SAVE_CFLAGS"
6234  fi
6235  ;;
6236*-*solaris*)
6237  # Find out which ABI we are using.
6238  echo 'int i;' > conftest.$ac_ext
6239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240  (eval $ac_compile) 2>&5
6241  ac_status=$?
6242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243  test $ac_status = 0; }; then
6244    case `/usr/bin/file conftest.o` in
6245    *64-bit*)
6246      case $lt_cv_prog_gnu_ld in
6247      yes*)
6248        case $host in
6249        i?86-*-solaris*)
6250          LD="${LD-ld} -m elf_x86_64"
6251          ;;
6252        sparc*-*-solaris*)
6253          LD="${LD-ld} -m elf64_sparc"
6254          ;;
6255        esac
6256        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6257        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6258          LD="${LD-ld}_sol2"
6259        fi
6260        ;;
6261      *)
6262	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6263	  LD="${LD-ld} -64"
6264	fi
6265	;;
6266      esac
6267      ;;
6268    esac
6269  fi
6270  rm -rf conftest*
6271  ;;
6272esac
6273
6274need_locks="$enable_libtool_lock"
6275
6276if test -n "$ac_tool_prefix"; then
6277  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6278set dummy ${ac_tool_prefix}mt; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  if test -n "$MANIFEST_TOOL"; then
6285  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290  IFS=$as_save_IFS
6291  test -z "$as_dir" && as_dir=.
6292    for ac_exec_ext in '' $ac_executable_extensions; do
6293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296    break 2
6297  fi
6298done
6299  done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6305if test -n "$MANIFEST_TOOL"; then
6306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6307$as_echo "$MANIFEST_TOOL" >&6; }
6308else
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313
6314fi
6315if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6316  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6317  # Extract the first word of "mt", so it can be a program name with args.
6318set dummy mt; ac_word=$2
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320$as_echo_n "checking for $ac_word... " >&6; }
6321if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  if test -n "$ac_ct_MANIFEST_TOOL"; then
6325  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330  IFS=$as_save_IFS
6331  test -z "$as_dir" && as_dir=.
6332    for ac_exec_ext in '' $ac_executable_extensions; do
6333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339  done
6340IFS=$as_save_IFS
6341
6342fi
6343fi
6344ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6345if test -n "$ac_ct_MANIFEST_TOOL"; then
6346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6347$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6348else
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350$as_echo "no" >&6; }
6351fi
6352
6353  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6354    MANIFEST_TOOL=":"
6355  else
6356    case $cross_compiling:$ac_tool_warned in
6357yes:)
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360ac_tool_warned=yes ;;
6361esac
6362    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6363  fi
6364else
6365  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6366fi
6367
6368test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6370$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6371if ${lt_cv_path_mainfest_tool+:} false; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  lt_cv_path_mainfest_tool=no
6375  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6376  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6377  cat conftest.err >&5
6378  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6379    lt_cv_path_mainfest_tool=yes
6380  fi
6381  rm -f conftest*
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6384$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6385if test "x$lt_cv_path_mainfest_tool" != xyes; then
6386  MANIFEST_TOOL=:
6387fi
6388
6389
6390
6391
6392
6393
6394  case $host_os in
6395    rhapsody* | darwin*)
6396    if test -n "$ac_tool_prefix"; then
6397  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6398set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
6401if ${ac_cv_prog_DSYMUTIL+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  if test -n "$DSYMUTIL"; then
6405  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410  IFS=$as_save_IFS
6411  test -z "$as_dir" && as_dir=.
6412    for ac_exec_ext in '' $ac_executable_extensions; do
6413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416    break 2
6417  fi
6418done
6419  done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424DSYMUTIL=$ac_cv_prog_DSYMUTIL
6425if test -n "$DSYMUTIL"; then
6426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6427$as_echo "$DSYMUTIL" >&6; }
6428else
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
6431fi
6432
6433
6434fi
6435if test -z "$ac_cv_prog_DSYMUTIL"; then
6436  ac_ct_DSYMUTIL=$DSYMUTIL
6437  # Extract the first word of "dsymutil", so it can be a program name with args.
6438set dummy dsymutil; ac_word=$2
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
6441if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  if test -n "$ac_ct_DSYMUTIL"; then
6445  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450  IFS=$as_save_IFS
6451  test -z "$as_dir" && as_dir=.
6452    for ac_exec_ext in '' $ac_executable_extensions; do
6453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456    break 2
6457  fi
6458done
6459  done
6460IFS=$as_save_IFS
6461
6462fi
6463fi
6464ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6465if test -n "$ac_ct_DSYMUTIL"; then
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6467$as_echo "$ac_ct_DSYMUTIL" >&6; }
6468else
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
6473  if test "x$ac_ct_DSYMUTIL" = x; then
6474    DSYMUTIL=":"
6475  else
6476    case $cross_compiling:$ac_tool_warned in
6477yes:)
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480ac_tool_warned=yes ;;
6481esac
6482    DSYMUTIL=$ac_ct_DSYMUTIL
6483  fi
6484else
6485  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6486fi
6487
6488    if test -n "$ac_tool_prefix"; then
6489  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6490set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if ${ac_cv_prog_NMEDIT+:} false; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  if test -n "$NMEDIT"; then
6497  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502  IFS=$as_save_IFS
6503  test -z "$as_dir" && as_dir=.
6504    for ac_exec_ext in '' $ac_executable_extensions; do
6505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508    break 2
6509  fi
6510done
6511  done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516NMEDIT=$ac_cv_prog_NMEDIT
6517if test -n "$NMEDIT"; then
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6519$as_echo "$NMEDIT" >&6; }
6520else
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525
6526fi
6527if test -z "$ac_cv_prog_NMEDIT"; then
6528  ac_ct_NMEDIT=$NMEDIT
6529  # Extract the first word of "nmedit", so it can be a program name with args.
6530set dummy nmedit; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  if test -n "$ac_ct_NMEDIT"; then
6537  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542  IFS=$as_save_IFS
6543  test -z "$as_dir" && as_dir=.
6544    for ac_exec_ext in '' $ac_executable_extensions; do
6545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548    break 2
6549  fi
6550done
6551  done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6557if test -n "$ac_ct_NMEDIT"; then
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6559$as_echo "$ac_ct_NMEDIT" >&6; }
6560else
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565  if test "x$ac_ct_NMEDIT" = x; then
6566    NMEDIT=":"
6567  else
6568    case $cross_compiling:$ac_tool_warned in
6569yes:)
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572ac_tool_warned=yes ;;
6573esac
6574    NMEDIT=$ac_ct_NMEDIT
6575  fi
6576else
6577  NMEDIT="$ac_cv_prog_NMEDIT"
6578fi
6579
6580    if test -n "$ac_tool_prefix"; then
6581  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}lipo; ac_word=$2
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
6585if ${ac_cv_prog_LIPO+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  if test -n "$LIPO"; then
6589  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  test -z "$as_dir" && as_dir=.
6596    for ac_exec_ext in '' $ac_executable_extensions; do
6597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600    break 2
6601  fi
6602done
6603  done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
6608LIPO=$ac_cv_prog_LIPO
6609if test -n "$LIPO"; then
6610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6611$as_echo "$LIPO" >&6; }
6612else
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618fi
6619if test -z "$ac_cv_prog_LIPO"; then
6620  ac_ct_LIPO=$LIPO
6621  # Extract the first word of "lipo", so it can be a program name with args.
6622set dummy lipo; ac_word=$2
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
6625if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  if test -n "$ac_ct_LIPO"; then
6629  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634  IFS=$as_save_IFS
6635  test -z "$as_dir" && as_dir=.
6636    for ac_exec_ext in '' $ac_executable_extensions; do
6637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638    ac_cv_prog_ac_ct_LIPO="lipo"
6639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643  done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6649if test -n "$ac_ct_LIPO"; then
6650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6651$as_echo "$ac_ct_LIPO" >&6; }
6652else
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
6657  if test "x$ac_ct_LIPO" = x; then
6658    LIPO=":"
6659  else
6660    case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666    LIPO=$ac_ct_LIPO
6667  fi
6668else
6669  LIPO="$ac_cv_prog_LIPO"
6670fi
6671
6672    if test -n "$ac_tool_prefix"; then
6673  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6674set dummy ${ac_tool_prefix}otool; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if ${ac_cv_prog_OTOOL+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  if test -n "$OTOOL"; then
6681  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688    for ac_exec_ext in '' $ac_executable_extensions; do
6689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695  done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700OTOOL=$ac_cv_prog_OTOOL
6701if test -n "$OTOOL"; then
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6703$as_echo "$OTOOL" >&6; }
6704else
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708
6709
6710fi
6711if test -z "$ac_cv_prog_OTOOL"; then
6712  ac_ct_OTOOL=$OTOOL
6713  # Extract the first word of "otool", so it can be a program name with args.
6714set dummy otool; ac_word=$2
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
6717if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  if test -n "$ac_ct_OTOOL"; then
6721  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728    for ac_exec_ext in '' $ac_executable_extensions; do
6729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730    ac_cv_prog_ac_ct_OTOOL="otool"
6731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732    break 2
6733  fi
6734done
6735  done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6741if test -n "$ac_ct_OTOOL"; then
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6743$as_echo "$ac_ct_OTOOL" >&6; }
6744else
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
6748
6749  if test "x$ac_ct_OTOOL" = x; then
6750    OTOOL=":"
6751  else
6752    case $cross_compiling:$ac_tool_warned in
6753yes:)
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756ac_tool_warned=yes ;;
6757esac
6758    OTOOL=$ac_ct_OTOOL
6759  fi
6760else
6761  OTOOL="$ac_cv_prog_OTOOL"
6762fi
6763
6764    if test -n "$ac_tool_prefix"; then
6765  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6766set dummy ${ac_tool_prefix}otool64; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if ${ac_cv_prog_OTOOL64+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$OTOOL64"; then
6773  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  test -z "$as_dir" && as_dir=.
6780    for ac_exec_ext in '' $ac_executable_extensions; do
6781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784    break 2
6785  fi
6786done
6787  done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792OTOOL64=$ac_cv_prog_OTOOL64
6793if test -n "$OTOOL64"; then
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6795$as_echo "$OTOOL64" >&6; }
6796else
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801
6802fi
6803if test -z "$ac_cv_prog_OTOOL64"; then
6804  ac_ct_OTOOL64=$OTOOL64
6805  # Extract the first word of "otool64", so it can be a program name with args.
6806set dummy otool64; ac_word=$2
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  if test -n "$ac_ct_OTOOL64"; then
6813  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  test -z "$as_dir" && as_dir=.
6820    for ac_exec_ext in '' $ac_executable_extensions; do
6821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822    ac_cv_prog_ac_ct_OTOOL64="otool64"
6823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824    break 2
6825  fi
6826done
6827  done
6828IFS=$as_save_IFS
6829
6830fi
6831fi
6832ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6833if test -n "$ac_ct_OTOOL64"; then
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6835$as_echo "$ac_ct_OTOOL64" >&6; }
6836else
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
6839fi
6840
6841  if test "x$ac_ct_OTOOL64" = x; then
6842    OTOOL64=":"
6843  else
6844    case $cross_compiling:$ac_tool_warned in
6845yes:)
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848ac_tool_warned=yes ;;
6849esac
6850    OTOOL64=$ac_ct_OTOOL64
6851  fi
6852else
6853  OTOOL64="$ac_cv_prog_OTOOL64"
6854fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6883$as_echo_n "checking for -single_module linker flag... " >&6; }
6884if ${lt_cv_apple_cc_single_mod+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  lt_cv_apple_cc_single_mod=no
6888      if test -z "${LT_MULTI_MODULE}"; then
6889	# By default we will add the -single_module flag. You can override
6890	# by either setting the environment variable LT_MULTI_MODULE
6891	# non-empty at configure time, or by adding -multi_module to the
6892	# link flags.
6893	rm -rf libconftest.dylib*
6894	echo "int foo(void){return 1;}" > conftest.c
6895	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6896-dynamiclib -Wl,-single_module conftest.c" >&5
6897	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6898	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6899        _lt_result=$?
6900	# If there is a non-empty error log, and "single_module"
6901	# appears in it, assume the flag caused a linker warning
6902        if test -s conftest.err && $GREP single_module conftest.err; then
6903	  cat conftest.err >&5
6904	# Otherwise, if the output was created with a 0 exit code from
6905	# the compiler, it worked.
6906	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6907	  lt_cv_apple_cc_single_mod=yes
6908	else
6909	  cat conftest.err >&5
6910	fi
6911	rm -rf libconftest.dylib*
6912	rm -f conftest.*
6913      fi
6914fi
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6916$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6917
6918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6919$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6920if ${lt_cv_ld_exported_symbols_list+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  lt_cv_ld_exported_symbols_list=no
6924      save_LDFLAGS=$LDFLAGS
6925      echo "_main" > conftest.sym
6926      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6927      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929
6930int
6931main ()
6932{
6933
6934  ;
6935  return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_link "$LINENO"; then :
6939  lt_cv_ld_exported_symbols_list=yes
6940else
6941  lt_cv_ld_exported_symbols_list=no
6942fi
6943rm -f core conftest.err conftest.$ac_objext \
6944    conftest$ac_exeext conftest.$ac_ext
6945	LDFLAGS="$save_LDFLAGS"
6946
6947fi
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6949$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6950
6951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6952$as_echo_n "checking for -force_load linker flag... " >&6; }
6953if ${lt_cv_ld_force_load+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  lt_cv_ld_force_load=no
6957      cat > conftest.c << _LT_EOF
6958int forced_loaded() { return 2;}
6959_LT_EOF
6960      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6961      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6962      echo "$AR cru libconftest.a conftest.o" >&5
6963      $AR cru libconftest.a conftest.o 2>&5
6964      echo "$RANLIB libconftest.a" >&5
6965      $RANLIB libconftest.a 2>&5
6966      cat > conftest.c << _LT_EOF
6967int main() { return 0;}
6968_LT_EOF
6969      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6970      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6971      _lt_result=$?
6972      if test -s conftest.err && $GREP force_load conftest.err; then
6973	cat conftest.err >&5
6974      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6975	lt_cv_ld_force_load=yes
6976      else
6977	cat conftest.err >&5
6978      fi
6979        rm -f conftest.err libconftest.a conftest conftest.c
6980        rm -rf conftest.dSYM
6981
6982fi
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6984$as_echo "$lt_cv_ld_force_load" >&6; }
6985    case $host_os in
6986    rhapsody* | darwin1.[012])
6987      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6988    darwin1.*)
6989      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6990    darwin*) # darwin 5.x on
6991      # if running on 10.5 or later, the deployment target defaults
6992      # to the OS version, if on x86, and 10.4, the deployment
6993      # target defaults to 10.4. Don't you love it?
6994      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6995	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6996	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6997	10.[012]*)
6998	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6999	10.*)
7000	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7001      esac
7002    ;;
7003  esac
7004    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7005      _lt_dar_single_mod='$single_module'
7006    fi
7007    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7008      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7009    else
7010      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7011    fi
7012    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7013      _lt_dsymutil='~$DSYMUTIL $lib || :'
7014    else
7015      _lt_dsymutil=
7016    fi
7017    ;;
7018  esac
7019
7020ac_ext=c
7021ac_cpp='$CPP $CPPFLAGS'
7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7026$as_echo_n "checking how to run the C preprocessor... " >&6; }
7027# On Suns, sometimes $CPP names a directory.
7028if test -n "$CPP" && test -d "$CPP"; then
7029  CPP=
7030fi
7031if test -z "$CPP"; then
7032  if ${ac_cv_prog_CPP+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035      # Double quotes because CPP needs to be expanded
7036    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7037    do
7038      ac_preproc_ok=false
7039for ac_c_preproc_warn_flag in '' yes
7040do
7041  # Use a header file that comes with gcc, so configuring glibc
7042  # with a fresh cross-compiler works.
7043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7044  # <limits.h> exists even on freestanding compilers.
7045  # On the NeXT, cc -E runs the code through the compiler's parser,
7046  # not just through cpp. "Syntax error" is here to catch this case.
7047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049#ifdef __STDC__
7050# include <limits.h>
7051#else
7052# include <assert.h>
7053#endif
7054		     Syntax error
7055_ACEOF
7056if ac_fn_c_try_cpp "$LINENO"; then :
7057
7058else
7059  # Broken: fails on valid input.
7060continue
7061fi
7062rm -f conftest.err conftest.i conftest.$ac_ext
7063
7064  # OK, works on sane cases.  Now check whether nonexistent headers
7065  # can be detected and how.
7066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068#include <ac_nonexistent.h>
7069_ACEOF
7070if ac_fn_c_try_cpp "$LINENO"; then :
7071  # Broken: success on invalid input.
7072continue
7073else
7074  # Passes both tests.
7075ac_preproc_ok=:
7076break
7077fi
7078rm -f conftest.err conftest.i conftest.$ac_ext
7079
7080done
7081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7082rm -f conftest.i conftest.err conftest.$ac_ext
7083if $ac_preproc_ok; then :
7084  break
7085fi
7086
7087    done
7088    ac_cv_prog_CPP=$CPP
7089
7090fi
7091  CPP=$ac_cv_prog_CPP
7092else
7093  ac_cv_prog_CPP=$CPP
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7096$as_echo "$CPP" >&6; }
7097ac_preproc_ok=false
7098for ac_c_preproc_warn_flag in '' yes
7099do
7100  # Use a header file that comes with gcc, so configuring glibc
7101  # with a fresh cross-compiler works.
7102  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7103  # <limits.h> exists even on freestanding compilers.
7104  # On the NeXT, cc -E runs the code through the compiler's parser,
7105  # not just through cpp. "Syntax error" is here to catch this case.
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108#ifdef __STDC__
7109# include <limits.h>
7110#else
7111# include <assert.h>
7112#endif
7113		     Syntax error
7114_ACEOF
7115if ac_fn_c_try_cpp "$LINENO"; then :
7116
7117else
7118  # Broken: fails on valid input.
7119continue
7120fi
7121rm -f conftest.err conftest.i conftest.$ac_ext
7122
7123  # OK, works on sane cases.  Now check whether nonexistent headers
7124  # can be detected and how.
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127#include <ac_nonexistent.h>
7128_ACEOF
7129if ac_fn_c_try_cpp "$LINENO"; then :
7130  # Broken: success on invalid input.
7131continue
7132else
7133  # Passes both tests.
7134ac_preproc_ok=:
7135break
7136fi
7137rm -f conftest.err conftest.i conftest.$ac_ext
7138
7139done
7140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7141rm -f conftest.i conftest.err conftest.$ac_ext
7142if $ac_preproc_ok; then :
7143
7144else
7145  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7147as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7148See \`config.log' for more details" "$LINENO" 5; }
7149fi
7150
7151ac_ext=c
7152ac_cpp='$CPP $CPPFLAGS'
7153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156
7157
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7159$as_echo_n "checking for ANSI C header files... " >&6; }
7160if ${ac_cv_header_stdc+:} false; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165#include <stdlib.h>
7166#include <stdarg.h>
7167#include <string.h>
7168#include <float.h>
7169
7170int
7171main ()
7172{
7173
7174  ;
7175  return 0;
7176}
7177_ACEOF
7178if ac_fn_c_try_compile "$LINENO"; then :
7179  ac_cv_header_stdc=yes
7180else
7181  ac_cv_header_stdc=no
7182fi
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184
7185if test $ac_cv_header_stdc = yes; then
7186  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189#include <string.h>
7190
7191_ACEOF
7192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193  $EGREP "memchr" >/dev/null 2>&1; then :
7194
7195else
7196  ac_cv_header_stdc=no
7197fi
7198rm -f conftest*
7199
7200fi
7201
7202if test $ac_cv_header_stdc = yes; then
7203  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206#include <stdlib.h>
7207
7208_ACEOF
7209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210  $EGREP "free" >/dev/null 2>&1; then :
7211
7212else
7213  ac_cv_header_stdc=no
7214fi
7215rm -f conftest*
7216
7217fi
7218
7219if test $ac_cv_header_stdc = yes; then
7220  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7221  if test "$cross_compiling" = yes; then :
7222  :
7223else
7224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226#include <ctype.h>
7227#include <stdlib.h>
7228#if ((' ' & 0x0FF) == 0x020)
7229# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7230# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7231#else
7232# define ISLOWER(c) \
7233		   (('a' <= (c) && (c) <= 'i') \
7234		     || ('j' <= (c) && (c) <= 'r') \
7235		     || ('s' <= (c) && (c) <= 'z'))
7236# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7237#endif
7238
7239#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7240int
7241main ()
7242{
7243  int i;
7244  for (i = 0; i < 256; i++)
7245    if (XOR (islower (i), ISLOWER (i))
7246	|| toupper (i) != TOUPPER (i))
7247      return 2;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_run "$LINENO"; then :
7252
7253else
7254  ac_cv_header_stdc=no
7255fi
7256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7257  conftest.$ac_objext conftest.beam conftest.$ac_ext
7258fi
7259
7260fi
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7263$as_echo "$ac_cv_header_stdc" >&6; }
7264if test $ac_cv_header_stdc = yes; then
7265
7266$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7267
7268fi
7269
7270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7272		  inttypes.h stdint.h unistd.h
7273do :
7274  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7275ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7276"
7277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7278  cat >>confdefs.h <<_ACEOF
7279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280_ACEOF
7281
7282fi
7283
7284done
7285
7286
7287for ac_header in dlfcn.h
7288do :
7289  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7290"
7291if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7292  cat >>confdefs.h <<_ACEOF
7293#define HAVE_DLFCN_H 1
7294_ACEOF
7295
7296fi
7297
7298done
7299
7300
7301
7302
7303
7304# Set options
7305enable_dlopen=yes
7306enable_win32_dll=yes
7307
7308case $host in
7309*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7310  if test -n "$ac_tool_prefix"; then
7311  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7312set dummy ${ac_tool_prefix}as; ac_word=$2
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if ${ac_cv_prog_AS+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  if test -n "$AS"; then
7319  ac_cv_prog_AS="$AS" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324  IFS=$as_save_IFS
7325  test -z "$as_dir" && as_dir=.
7326    for ac_exec_ext in '' $ac_executable_extensions; do
7327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328    ac_cv_prog_AS="${ac_tool_prefix}as"
7329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330    break 2
7331  fi
7332done
7333  done
7334IFS=$as_save_IFS
7335
7336fi
7337fi
7338AS=$ac_cv_prog_AS
7339if test -n "$AS"; then
7340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7341$as_echo "$AS" >&6; }
7342else
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344$as_echo "no" >&6; }
7345fi
7346
7347
7348fi
7349if test -z "$ac_cv_prog_AS"; then
7350  ac_ct_AS=$AS
7351  # Extract the first word of "as", so it can be a program name with args.
7352set dummy as; ac_word=$2
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if ${ac_cv_prog_ac_ct_AS+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  if test -n "$ac_ct_AS"; then
7359  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366    for ac_exec_ext in '' $ac_executable_extensions; do
7367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_ac_ct_AS="as"
7369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373  done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378ac_ct_AS=$ac_cv_prog_ac_ct_AS
7379if test -n "$ac_ct_AS"; then
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7381$as_echo "$ac_ct_AS" >&6; }
7382else
7383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387  if test "x$ac_ct_AS" = x; then
7388    AS="false"
7389  else
7390    case $cross_compiling:$ac_tool_warned in
7391yes:)
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396    AS=$ac_ct_AS
7397  fi
7398else
7399  AS="$ac_cv_prog_AS"
7400fi
7401
7402  if test -n "$ac_tool_prefix"; then
7403  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7404set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if ${ac_cv_prog_DLLTOOL+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  if test -n "$DLLTOOL"; then
7411  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418    for ac_exec_ext in '' $ac_executable_extensions; do
7419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425  done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430DLLTOOL=$ac_cv_prog_DLLTOOL
7431if test -n "$DLLTOOL"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7433$as_echo "$DLLTOOL" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439
7440fi
7441if test -z "$ac_cv_prog_DLLTOOL"; then
7442  ac_ct_DLLTOOL=$DLLTOOL
7443  # Extract the first word of "dlltool", so it can be a program name with args.
7444set dummy dlltool; ac_word=$2
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446$as_echo_n "checking for $ac_word... " >&6; }
7447if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  if test -n "$ac_ct_DLLTOOL"; then
7451  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456  IFS=$as_save_IFS
7457  test -z "$as_dir" && as_dir=.
7458    for ac_exec_ext in '' $ac_executable_extensions; do
7459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462    break 2
7463  fi
7464done
7465  done
7466IFS=$as_save_IFS
7467
7468fi
7469fi
7470ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7471if test -n "$ac_ct_DLLTOOL"; then
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7473$as_echo "$ac_ct_DLLTOOL" >&6; }
7474else
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477fi
7478
7479  if test "x$ac_ct_DLLTOOL" = x; then
7480    DLLTOOL="false"
7481  else
7482    case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486ac_tool_warned=yes ;;
7487esac
7488    DLLTOOL=$ac_ct_DLLTOOL
7489  fi
7490else
7491  DLLTOOL="$ac_cv_prog_DLLTOOL"
7492fi
7493
7494  if test -n "$ac_tool_prefix"; then
7495  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7496set dummy ${ac_tool_prefix}objdump; ac_word=$2
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498$as_echo_n "checking for $ac_word... " >&6; }
7499if ${ac_cv_prog_OBJDUMP+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  if test -n "$OBJDUMP"; then
7503  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7504else
7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508  IFS=$as_save_IFS
7509  test -z "$as_dir" && as_dir=.
7510    for ac_exec_ext in '' $ac_executable_extensions; do
7511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514    break 2
7515  fi
7516done
7517  done
7518IFS=$as_save_IFS
7519
7520fi
7521fi
7522OBJDUMP=$ac_cv_prog_OBJDUMP
7523if test -n "$OBJDUMP"; then
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7525$as_echo "$OBJDUMP" >&6; }
7526else
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
7529fi
7530
7531
7532fi
7533if test -z "$ac_cv_prog_OBJDUMP"; then
7534  ac_ct_OBJDUMP=$OBJDUMP
7535  # Extract the first word of "objdump", so it can be a program name with args.
7536set dummy objdump; ac_word=$2
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538$as_echo_n "checking for $ac_word... " >&6; }
7539if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  if test -n "$ac_ct_OBJDUMP"; then
7543  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548  IFS=$as_save_IFS
7549  test -z "$as_dir" && as_dir=.
7550    for ac_exec_ext in '' $ac_executable_extensions; do
7551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554    break 2
7555  fi
7556done
7557  done
7558IFS=$as_save_IFS
7559
7560fi
7561fi
7562ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7563if test -n "$ac_ct_OBJDUMP"; then
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7565$as_echo "$ac_ct_OBJDUMP" >&6; }
7566else
7567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
7569fi
7570
7571  if test "x$ac_ct_OBJDUMP" = x; then
7572    OBJDUMP="false"
7573  else
7574    case $cross_compiling:$ac_tool_warned in
7575yes:)
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578ac_tool_warned=yes ;;
7579esac
7580    OBJDUMP=$ac_ct_OBJDUMP
7581  fi
7582else
7583  OBJDUMP="$ac_cv_prog_OBJDUMP"
7584fi
7585
7586  ;;
7587esac
7588
7589test -z "$AS" && AS=as
7590
7591
7592
7593
7594
7595test -z "$DLLTOOL" && DLLTOOL=dlltool
7596
7597
7598
7599
7600
7601test -z "$OBJDUMP" && OBJDUMP=objdump
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611            # Check whether --enable-shared was given.
7612if test "${enable_shared+set}" = set; then :
7613  enableval=$enable_shared; p=${PACKAGE-default}
7614    case $enableval in
7615    yes) enable_shared=yes ;;
7616    no) enable_shared=no ;;
7617    *)
7618      enable_shared=no
7619      # Look at the argument we got.  We use all the common list separators.
7620      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7621      for pkg in $enableval; do
7622	IFS="$lt_save_ifs"
7623	if test "X$pkg" = "X$p"; then
7624	  enable_shared=yes
7625	fi
7626      done
7627      IFS="$lt_save_ifs"
7628      ;;
7629    esac
7630else
7631  enable_shared=yes
7632fi
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642  # Check whether --enable-static was given.
7643if test "${enable_static+set}" = set; then :
7644  enableval=$enable_static; p=${PACKAGE-default}
7645    case $enableval in
7646    yes) enable_static=yes ;;
7647    no) enable_static=no ;;
7648    *)
7649     enable_static=no
7650      # Look at the argument we got.  We use all the common list separators.
7651      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652      for pkg in $enableval; do
7653	IFS="$lt_save_ifs"
7654	if test "X$pkg" = "X$p"; then
7655	  enable_static=yes
7656	fi
7657      done
7658      IFS="$lt_save_ifs"
7659      ;;
7660    esac
7661else
7662  enable_static=yes
7663fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674# Check whether --with-pic was given.
7675if test "${with_pic+set}" = set; then :
7676  withval=$with_pic; lt_p=${PACKAGE-default}
7677    case $withval in
7678    yes|no) pic_mode=$withval ;;
7679    *)
7680      pic_mode=default
7681      # Look at the argument we got.  We use all the common list separators.
7682      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683      for lt_pkg in $withval; do
7684	IFS="$lt_save_ifs"
7685	if test "X$lt_pkg" = "X$lt_p"; then
7686	  pic_mode=yes
7687	fi
7688      done
7689      IFS="$lt_save_ifs"
7690      ;;
7691    esac
7692else
7693  pic_mode=default
7694fi
7695
7696
7697test -z "$pic_mode" && pic_mode=default
7698
7699
7700
7701
7702
7703
7704
7705  # Check whether --enable-fast-install was given.
7706if test "${enable_fast_install+set}" = set; then :
7707  enableval=$enable_fast_install; p=${PACKAGE-default}
7708    case $enableval in
7709    yes) enable_fast_install=yes ;;
7710    no) enable_fast_install=no ;;
7711    *)
7712      enable_fast_install=no
7713      # Look at the argument we got.  We use all the common list separators.
7714      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7715      for pkg in $enableval; do
7716	IFS="$lt_save_ifs"
7717	if test "X$pkg" = "X$p"; then
7718	  enable_fast_install=yes
7719	fi
7720      done
7721      IFS="$lt_save_ifs"
7722      ;;
7723    esac
7724else
7725  enable_fast_install=yes
7726fi
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738# This can be used to rebuild libtool when needed
7739LIBTOOL_DEPS="$ltmain"
7740
7741# Always use our own libtool.
7742LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773test -z "$LN_S" && LN_S="ln -s"
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788if test -n "${ZSH_VERSION+set}" ; then
7789   setopt NO_GLOB_SUBST
7790fi
7791
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7793$as_echo_n "checking for objdir... " >&6; }
7794if ${lt_cv_objdir+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  rm -f .libs 2>/dev/null
7798mkdir .libs 2>/dev/null
7799if test -d .libs; then
7800  lt_cv_objdir=.libs
7801else
7802  # MS-DOS does not allow filenames that begin with a dot.
7803  lt_cv_objdir=_libs
7804fi
7805rmdir .libs 2>/dev/null
7806fi
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7808$as_echo "$lt_cv_objdir" >&6; }
7809objdir=$lt_cv_objdir
7810
7811
7812
7813
7814
7815cat >>confdefs.h <<_ACEOF
7816#define LT_OBJDIR "$lt_cv_objdir/"
7817_ACEOF
7818
7819
7820
7821
7822case $host_os in
7823aix3*)
7824  # AIX sometimes has problems with the GCC collect2 program.  For some
7825  # reason, if we set the COLLECT_NAMES environment variable, the problems
7826  # vanish in a puff of smoke.
7827  if test "X${COLLECT_NAMES+set}" != Xset; then
7828    COLLECT_NAMES=
7829    export COLLECT_NAMES
7830  fi
7831  ;;
7832esac
7833
7834# Global variables:
7835ofile=libtool
7836can_build_shared=yes
7837
7838# All known linkers require a `.a' archive for static linking (except MSVC,
7839# which needs '.lib').
7840libext=a
7841
7842with_gnu_ld="$lt_cv_prog_gnu_ld"
7843
7844old_CC="$CC"
7845old_CFLAGS="$CFLAGS"
7846
7847# Set sane defaults for various variables
7848test -z "$CC" && CC=cc
7849test -z "$LTCC" && LTCC=$CC
7850test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7851test -z "$LD" && LD=ld
7852test -z "$ac_objext" && ac_objext=o
7853
7854for cc_temp in $compiler""; do
7855  case $cc_temp in
7856    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7857    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7858    \-*) ;;
7859    *) break;;
7860  esac
7861done
7862cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7863
7864
7865# Only perform the check for file, if the check method requires it
7866test -z "$MAGIC_CMD" && MAGIC_CMD=file
7867case $deplibs_check_method in
7868file_magic*)
7869  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7871$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7872if ${lt_cv_path_MAGIC_CMD+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  case $MAGIC_CMD in
7876[\\/*] |  ?:[\\/]*)
7877  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7878  ;;
7879*)
7880  lt_save_MAGIC_CMD="$MAGIC_CMD"
7881  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7882  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7883  for ac_dir in $ac_dummy; do
7884    IFS="$lt_save_ifs"
7885    test -z "$ac_dir" && ac_dir=.
7886    if test -f $ac_dir/${ac_tool_prefix}file; then
7887      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7888      if test -n "$file_magic_test_file"; then
7889	case $deplibs_check_method in
7890	"file_magic "*)
7891	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7892	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7893	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7894	    $EGREP "$file_magic_regex" > /dev/null; then
7895	    :
7896	  else
7897	    cat <<_LT_EOF 1>&2
7898
7899*** Warning: the command libtool uses to detect shared libraries,
7900*** $file_magic_cmd, produces output that libtool cannot recognize.
7901*** The result is that libtool may fail to recognize shared libraries
7902*** as such.  This will affect the creation of libtool libraries that
7903*** depend on shared libraries, but programs linked with such libtool
7904*** libraries will work regardless of this problem.  Nevertheless, you
7905*** may want to report the problem to your system manager and/or to
7906*** bug-libtool@gnu.org
7907
7908_LT_EOF
7909	  fi ;;
7910	esac
7911      fi
7912      break
7913    fi
7914  done
7915  IFS="$lt_save_ifs"
7916  MAGIC_CMD="$lt_save_MAGIC_CMD"
7917  ;;
7918esac
7919fi
7920
7921MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7922if test -n "$MAGIC_CMD"; then
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7924$as_echo "$MAGIC_CMD" >&6; }
7925else
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927$as_echo "no" >&6; }
7928fi
7929
7930
7931
7932
7933
7934if test -z "$lt_cv_path_MAGIC_CMD"; then
7935  if test -n "$ac_tool_prefix"; then
7936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7937$as_echo_n "checking for file... " >&6; }
7938if ${lt_cv_path_MAGIC_CMD+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  case $MAGIC_CMD in
7942[\\/*] |  ?:[\\/]*)
7943  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7944  ;;
7945*)
7946  lt_save_MAGIC_CMD="$MAGIC_CMD"
7947  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949  for ac_dir in $ac_dummy; do
7950    IFS="$lt_save_ifs"
7951    test -z "$ac_dir" && ac_dir=.
7952    if test -f $ac_dir/file; then
7953      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7954      if test -n "$file_magic_test_file"; then
7955	case $deplibs_check_method in
7956	"file_magic "*)
7957	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960	    $EGREP "$file_magic_regex" > /dev/null; then
7961	    :
7962	  else
7963	    cat <<_LT_EOF 1>&2
7964
7965*** Warning: the command libtool uses to detect shared libraries,
7966*** $file_magic_cmd, produces output that libtool cannot recognize.
7967*** The result is that libtool may fail to recognize shared libraries
7968*** as such.  This will affect the creation of libtool libraries that
7969*** depend on shared libraries, but programs linked with such libtool
7970*** libraries will work regardless of this problem.  Nevertheless, you
7971*** may want to report the problem to your system manager and/or to
7972*** bug-libtool@gnu.org
7973
7974_LT_EOF
7975	  fi ;;
7976	esac
7977      fi
7978      break
7979    fi
7980  done
7981  IFS="$lt_save_ifs"
7982  MAGIC_CMD="$lt_save_MAGIC_CMD"
7983  ;;
7984esac
7985fi
7986
7987MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988if test -n "$MAGIC_CMD"; then
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7990$as_echo "$MAGIC_CMD" >&6; }
7991else
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994fi
7995
7996
7997  else
7998    MAGIC_CMD=:
7999  fi
8000fi
8001
8002  fi
8003  ;;
8004esac
8005
8006# Use C for the default configuration in the libtool script
8007
8008lt_save_CC="$CC"
8009ac_ext=c
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014
8015
8016# Source file extension for C test sources.
8017ac_ext=c
8018
8019# Object file extension for compiled C test sources.
8020objext=o
8021objext=$objext
8022
8023# Code to be used in simple compile tests
8024lt_simple_compile_test_code="int some_variable = 0;"
8025
8026# Code to be used in simple link tests
8027lt_simple_link_test_code='int main(){return(0);}'
8028
8029
8030
8031
8032
8033
8034
8035# If no C compiler was specified, use CC.
8036LTCC=${LTCC-"$CC"}
8037
8038# If no C compiler flags were specified, use CFLAGS.
8039LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8040
8041# Allow CC to be a program name with arguments.
8042compiler=$CC
8043
8044# Save the default compiler, since it gets overwritten when the other
8045# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8046compiler_DEFAULT=$CC
8047
8048# save warnings/boilerplate of simple test code
8049ac_outfile=conftest.$ac_objext
8050echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8051eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8052_lt_compiler_boilerplate=`cat conftest.err`
8053$RM conftest*
8054
8055ac_outfile=conftest.$ac_objext
8056echo "$lt_simple_link_test_code" >conftest.$ac_ext
8057eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8058_lt_linker_boilerplate=`cat conftest.err`
8059$RM -r conftest*
8060
8061
8062## CAVEAT EMPTOR:
8063## There is no encapsulation within the following macros, do not change
8064## the running order or otherwise move them around unless you know exactly
8065## what you are doing...
8066if test -n "$compiler"; then
8067
8068lt_prog_compiler_no_builtin_flag=
8069
8070if test "$GCC" = yes; then
8071  case $cc_basename in
8072  nvcc*)
8073    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8074  *)
8075    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8076  esac
8077
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8079$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8080if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8081  $as_echo_n "(cached) " >&6
8082else
8083  lt_cv_prog_compiler_rtti_exceptions=no
8084   ac_outfile=conftest.$ac_objext
8085   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086   lt_compiler_flag="-fno-rtti -fno-exceptions"
8087   # Insert the option either (1) after the last *FLAGS variable, or
8088   # (2) before a word containing "conftest.", or (3) at the end.
8089   # Note that $ac_compile itself does not contain backslashes and begins
8090   # with a dollar sign (not a hyphen), so the echo should work correctly.
8091   # The option is referenced via a variable to avoid confusing sed.
8092   lt_compile=`echo "$ac_compile" | $SED \
8093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095   -e 's:$: $lt_compiler_flag:'`
8096   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8097   (eval "$lt_compile" 2>conftest.err)
8098   ac_status=$?
8099   cat conftest.err >&5
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   if (exit $ac_status) && test -s "$ac_outfile"; then
8102     # The compiler can only warn and ignore the option if not recognized
8103     # So say no if there are warnings other than the usual output.
8104     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8105     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8106     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8107       lt_cv_prog_compiler_rtti_exceptions=yes
8108     fi
8109   fi
8110   $RM conftest*
8111
8112fi
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8114$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8115
8116if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8117    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8118else
8119    :
8120fi
8121
8122fi
8123
8124
8125
8126
8127
8128
8129  lt_prog_compiler_wl=
8130lt_prog_compiler_pic=
8131lt_prog_compiler_static=
8132
8133
8134  if test "$GCC" = yes; then
8135    lt_prog_compiler_wl='-Wl,'
8136    lt_prog_compiler_static='-static'
8137
8138    case $host_os in
8139      aix*)
8140      # All AIX code is PIC.
8141      if test "$host_cpu" = ia64; then
8142	# AIX 5 now supports IA64 processor
8143	lt_prog_compiler_static='-Bstatic'
8144      fi
8145      ;;
8146
8147    amigaos*)
8148      case $host_cpu in
8149      powerpc)
8150            # see comment about AmigaOS4 .so support
8151            lt_prog_compiler_pic='-fPIC'
8152        ;;
8153      m68k)
8154            # FIXME: we need at least 68020 code to build shared libraries, but
8155            # adding the `-m68020' flag to GCC prevents building anything better,
8156            # like `-m68040'.
8157            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8158        ;;
8159      esac
8160      ;;
8161
8162    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8163      # PIC is the default for these OSes.
8164      ;;
8165
8166    mingw* | cygwin* | pw32* | os2* | cegcc*)
8167      # This hack is so that the source file can tell whether it is being
8168      # built for inclusion in a dll (and should export symbols for example).
8169      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8170      # (--disable-auto-import) libraries
8171      lt_prog_compiler_pic='-DDLL_EXPORT'
8172      ;;
8173
8174    darwin* | rhapsody*)
8175      # PIC is the default on this platform
8176      # Common symbols not allowed in MH_DYLIB files
8177      lt_prog_compiler_pic='-fno-common'
8178      ;;
8179
8180    haiku*)
8181      # PIC is the default for Haiku.
8182      # The "-static" flag exists, but is broken.
8183      lt_prog_compiler_static=
8184      ;;
8185
8186    hpux*)
8187      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8188      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8189      # sets the default TLS model and affects inlining.
8190      case $host_cpu in
8191      hppa*64*)
8192	# +Z the default
8193	;;
8194      *)
8195	lt_prog_compiler_pic='-fPIC'
8196	;;
8197      esac
8198      ;;
8199
8200    interix[3-9]*)
8201      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8202      # Instead, we relocate shared libraries at runtime.
8203      ;;
8204
8205    msdosdjgpp*)
8206      # Just because we use GCC doesn't mean we suddenly get shared libraries
8207      # on systems that don't support them.
8208      lt_prog_compiler_can_build_shared=no
8209      enable_shared=no
8210      ;;
8211
8212    *nto* | *qnx*)
8213      # QNX uses GNU C++, but need to define -shared option too, otherwise
8214      # it will coredump.
8215      lt_prog_compiler_pic='-fPIC -shared'
8216      ;;
8217
8218    sysv4*MP*)
8219      if test -d /usr/nec; then
8220	lt_prog_compiler_pic=-Kconform_pic
8221      fi
8222      ;;
8223
8224    *)
8225      lt_prog_compiler_pic='-fPIC'
8226      ;;
8227    esac
8228
8229    case $cc_basename in
8230    nvcc*) # Cuda Compiler Driver 2.2
8231      lt_prog_compiler_wl='-Xlinker '
8232      if test -n "$lt_prog_compiler_pic"; then
8233        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8234      fi
8235      ;;
8236    esac
8237  else
8238    # PORTME Check for flag to pass linker flags through the system compiler.
8239    case $host_os in
8240    aix*)
8241      lt_prog_compiler_wl='-Wl,'
8242      if test "$host_cpu" = ia64; then
8243	# AIX 5 now supports IA64 processor
8244	lt_prog_compiler_static='-Bstatic'
8245      else
8246	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8247      fi
8248      ;;
8249
8250    mingw* | cygwin* | pw32* | os2* | cegcc*)
8251      # This hack is so that the source file can tell whether it is being
8252      # built for inclusion in a dll (and should export symbols for example).
8253      lt_prog_compiler_pic='-DDLL_EXPORT'
8254      ;;
8255
8256    hpux9* | hpux10* | hpux11*)
8257      lt_prog_compiler_wl='-Wl,'
8258      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8259      # not for PA HP-UX.
8260      case $host_cpu in
8261      hppa*64*|ia64*)
8262	# +Z the default
8263	;;
8264      *)
8265	lt_prog_compiler_pic='+Z'
8266	;;
8267      esac
8268      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8269      lt_prog_compiler_static='${wl}-a ${wl}archive'
8270      ;;
8271
8272    irix5* | irix6* | nonstopux*)
8273      lt_prog_compiler_wl='-Wl,'
8274      # PIC (with -KPIC) is the default.
8275      lt_prog_compiler_static='-non_shared'
8276      ;;
8277
8278    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8279      case $cc_basename in
8280      # old Intel for x86_64 which still supported -KPIC.
8281      ecc*)
8282	lt_prog_compiler_wl='-Wl,'
8283	lt_prog_compiler_pic='-KPIC'
8284	lt_prog_compiler_static='-static'
8285        ;;
8286      # icc used to be incompatible with GCC.
8287      # ICC 10 doesn't accept -KPIC any more.
8288      icc* | ifort*)
8289	lt_prog_compiler_wl='-Wl,'
8290	lt_prog_compiler_pic='-fPIC'
8291	lt_prog_compiler_static='-static'
8292        ;;
8293      # Lahey Fortran 8.1.
8294      lf95*)
8295	lt_prog_compiler_wl='-Wl,'
8296	lt_prog_compiler_pic='--shared'
8297	lt_prog_compiler_static='--static'
8298	;;
8299      nagfor*)
8300	# NAG Fortran compiler
8301	lt_prog_compiler_wl='-Wl,-Wl,,'
8302	lt_prog_compiler_pic='-PIC'
8303	lt_prog_compiler_static='-Bstatic'
8304	;;
8305      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8306        # Portland Group compilers (*not* the Pentium gcc compiler,
8307	# which looks to be a dead project)
8308	lt_prog_compiler_wl='-Wl,'
8309	lt_prog_compiler_pic='-fpic'
8310	lt_prog_compiler_static='-Bstatic'
8311        ;;
8312      ccc*)
8313        lt_prog_compiler_wl='-Wl,'
8314        # All Alpha code is PIC.
8315        lt_prog_compiler_static='-non_shared'
8316        ;;
8317      xl* | bgxl* | bgf* | mpixl*)
8318	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8319	lt_prog_compiler_wl='-Wl,'
8320	lt_prog_compiler_pic='-qpic'
8321	lt_prog_compiler_static='-qstaticlink'
8322	;;
8323      *)
8324	case `$CC -V 2>&1 | sed 5q` in
8325	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8326	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8327	  lt_prog_compiler_pic='-KPIC'
8328	  lt_prog_compiler_static='-Bstatic'
8329	  lt_prog_compiler_wl=''
8330	  ;;
8331	*Sun\ F* | *Sun*Fortran*)
8332	  lt_prog_compiler_pic='-KPIC'
8333	  lt_prog_compiler_static='-Bstatic'
8334	  lt_prog_compiler_wl='-Qoption ld '
8335	  ;;
8336	*Sun\ C*)
8337	  # Sun C 5.9
8338	  lt_prog_compiler_pic='-KPIC'
8339	  lt_prog_compiler_static='-Bstatic'
8340	  lt_prog_compiler_wl='-Wl,'
8341	  ;;
8342        *Intel*\ [CF]*Compiler*)
8343	  lt_prog_compiler_wl='-Wl,'
8344	  lt_prog_compiler_pic='-fPIC'
8345	  lt_prog_compiler_static='-static'
8346	  ;;
8347	*Portland\ Group*)
8348	  lt_prog_compiler_wl='-Wl,'
8349	  lt_prog_compiler_pic='-fpic'
8350	  lt_prog_compiler_static='-Bstatic'
8351	  ;;
8352	esac
8353	;;
8354      esac
8355      ;;
8356
8357    newsos6)
8358      lt_prog_compiler_pic='-KPIC'
8359      lt_prog_compiler_static='-Bstatic'
8360      ;;
8361
8362    *nto* | *qnx*)
8363      # QNX uses GNU C++, but need to define -shared option too, otherwise
8364      # it will coredump.
8365      lt_prog_compiler_pic='-fPIC -shared'
8366      ;;
8367
8368    osf3* | osf4* | osf5*)
8369      lt_prog_compiler_wl='-Wl,'
8370      # All OSF/1 code is PIC.
8371      lt_prog_compiler_static='-non_shared'
8372      ;;
8373
8374    rdos*)
8375      lt_prog_compiler_static='-non_shared'
8376      ;;
8377
8378    solaris*)
8379      lt_prog_compiler_pic='-KPIC'
8380      lt_prog_compiler_static='-Bstatic'
8381      case $cc_basename in
8382      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8383	lt_prog_compiler_wl='-Qoption ld ';;
8384      *)
8385	lt_prog_compiler_wl='-Wl,';;
8386      esac
8387      ;;
8388
8389    sunos4*)
8390      lt_prog_compiler_wl='-Qoption ld '
8391      lt_prog_compiler_pic='-PIC'
8392      lt_prog_compiler_static='-Bstatic'
8393      ;;
8394
8395    sysv4 | sysv4.2uw2* | sysv4.3*)
8396      lt_prog_compiler_wl='-Wl,'
8397      lt_prog_compiler_pic='-KPIC'
8398      lt_prog_compiler_static='-Bstatic'
8399      ;;
8400
8401    sysv4*MP*)
8402      if test -d /usr/nec ;then
8403	lt_prog_compiler_pic='-Kconform_pic'
8404	lt_prog_compiler_static='-Bstatic'
8405      fi
8406      ;;
8407
8408    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8409      lt_prog_compiler_wl='-Wl,'
8410      lt_prog_compiler_pic='-KPIC'
8411      lt_prog_compiler_static='-Bstatic'
8412      ;;
8413
8414    unicos*)
8415      lt_prog_compiler_wl='-Wl,'
8416      lt_prog_compiler_can_build_shared=no
8417      ;;
8418
8419    uts4*)
8420      lt_prog_compiler_pic='-pic'
8421      lt_prog_compiler_static='-Bstatic'
8422      ;;
8423
8424    *)
8425      lt_prog_compiler_can_build_shared=no
8426      ;;
8427    esac
8428  fi
8429
8430case $host_os in
8431  # For platforms which do not support PIC, -DPIC is meaningless:
8432  *djgpp*)
8433    lt_prog_compiler_pic=
8434    ;;
8435  *)
8436    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8437    ;;
8438esac
8439
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8441$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8442if ${lt_cv_prog_compiler_pic+:} false; then :
8443  $as_echo_n "(cached) " >&6
8444else
8445  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8446fi
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8448$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8449lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8450
8451#
8452# Check to make sure the PIC flag actually works.
8453#
8454if test -n "$lt_prog_compiler_pic"; then
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8456$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8457if ${lt_cv_prog_compiler_pic_works+:} false; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460  lt_cv_prog_compiler_pic_works=no
8461   ac_outfile=conftest.$ac_objext
8462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8463   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8464   # Insert the option either (1) after the last *FLAGS variable, or
8465   # (2) before a word containing "conftest.", or (3) at the end.
8466   # Note that $ac_compile itself does not contain backslashes and begins
8467   # with a dollar sign (not a hyphen), so the echo should work correctly.
8468   # The option is referenced via a variable to avoid confusing sed.
8469   lt_compile=`echo "$ac_compile" | $SED \
8470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472   -e 's:$: $lt_compiler_flag:'`
8473   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474   (eval "$lt_compile" 2>conftest.err)
8475   ac_status=$?
8476   cat conftest.err >&5
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   if (exit $ac_status) && test -s "$ac_outfile"; then
8479     # The compiler can only warn and ignore the option if not recognized
8480     # So say no if there are warnings other than the usual output.
8481     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8484       lt_cv_prog_compiler_pic_works=yes
8485     fi
8486   fi
8487   $RM conftest*
8488
8489fi
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8491$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8492
8493if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8494    case $lt_prog_compiler_pic in
8495     "" | " "*) ;;
8496     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8497     esac
8498else
8499    lt_prog_compiler_pic=
8500     lt_prog_compiler_can_build_shared=no
8501fi
8502
8503fi
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515#
8516# Check to make sure the static flag actually works.
8517#
8518wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8520$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8521if ${lt_cv_prog_compiler_static_works+:} false; then :
8522  $as_echo_n "(cached) " >&6
8523else
8524  lt_cv_prog_compiler_static_works=no
8525   save_LDFLAGS="$LDFLAGS"
8526   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8527   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8528   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8529     # The linker can only warn and ignore the option if not recognized
8530     # So say no if there are warnings
8531     if test -s conftest.err; then
8532       # Append any errors to the config.log.
8533       cat conftest.err 1>&5
8534       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8535       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8536       if diff conftest.exp conftest.er2 >/dev/null; then
8537         lt_cv_prog_compiler_static_works=yes
8538       fi
8539     else
8540       lt_cv_prog_compiler_static_works=yes
8541     fi
8542   fi
8543   $RM -r conftest*
8544   LDFLAGS="$save_LDFLAGS"
8545
8546fi
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8548$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8549
8550if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8551    :
8552else
8553    lt_prog_compiler_static=
8554fi
8555
8556
8557
8558
8559
8560
8561
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8563$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8564if ${lt_cv_prog_compiler_c_o+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  lt_cv_prog_compiler_c_o=no
8568   $RM -r conftest 2>/dev/null
8569   mkdir conftest
8570   cd conftest
8571   mkdir out
8572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573
8574   lt_compiler_flag="-o out/conftest2.$ac_objext"
8575   # Insert the option either (1) after the last *FLAGS variable, or
8576   # (2) before a word containing "conftest.", or (3) at the end.
8577   # Note that $ac_compile itself does not contain backslashes and begins
8578   # with a dollar sign (not a hyphen), so the echo should work correctly.
8579   lt_compile=`echo "$ac_compile" | $SED \
8580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582   -e 's:$: $lt_compiler_flag:'`
8583   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584   (eval "$lt_compile" 2>out/conftest.err)
8585   ac_status=$?
8586   cat out/conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589   then
8590     # The compiler can only warn and ignore the option if not recognized
8591     # So say no if there are warnings
8592     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8593     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8594     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8595       lt_cv_prog_compiler_c_o=yes
8596     fi
8597   fi
8598   chmod u+w . 2>&5
8599   $RM conftest*
8600   # SGI C++ compiler will create directory out/ii_files/ for
8601   # template instantiation
8602   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8603   $RM out/* && rmdir out
8604   cd ..
8605   $RM -r conftest
8606   $RM conftest*
8607
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8610$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8611
8612
8613
8614
8615
8616
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8618$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8619if ${lt_cv_prog_compiler_c_o+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  lt_cv_prog_compiler_c_o=no
8623   $RM -r conftest 2>/dev/null
8624   mkdir conftest
8625   cd conftest
8626   mkdir out
8627   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628
8629   lt_compiler_flag="-o out/conftest2.$ac_objext"
8630   # Insert the option either (1) after the last *FLAGS variable, or
8631   # (2) before a word containing "conftest.", or (3) at the end.
8632   # Note that $ac_compile itself does not contain backslashes and begins
8633   # with a dollar sign (not a hyphen), so the echo should work correctly.
8634   lt_compile=`echo "$ac_compile" | $SED \
8635   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637   -e 's:$: $lt_compiler_flag:'`
8638   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639   (eval "$lt_compile" 2>out/conftest.err)
8640   ac_status=$?
8641   cat out/conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644   then
8645     # The compiler can only warn and ignore the option if not recognized
8646     # So say no if there are warnings
8647     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8648     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8649     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8650       lt_cv_prog_compiler_c_o=yes
8651     fi
8652   fi
8653   chmod u+w . 2>&5
8654   $RM conftest*
8655   # SGI C++ compiler will create directory out/ii_files/ for
8656   # template instantiation
8657   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8658   $RM out/* && rmdir out
8659   cd ..
8660   $RM -r conftest
8661   $RM conftest*
8662
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8665$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8666
8667
8668
8669
8670hard_links="nottested"
8671if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8672  # do not overwrite the value of need_locks provided by the user
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8674$as_echo_n "checking if we can lock with hard links... " >&6; }
8675  hard_links=yes
8676  $RM conftest*
8677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678  touch conftest.a
8679  ln conftest.a conftest.b 2>&5 || hard_links=no
8680  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8682$as_echo "$hard_links" >&6; }
8683  if test "$hard_links" = no; then
8684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8685$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8686    need_locks=warn
8687  fi
8688else
8689  need_locks=no
8690fi
8691
8692
8693
8694
8695
8696
8697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8698$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8699
8700  runpath_var=
8701  allow_undefined_flag=
8702  always_export_symbols=no
8703  archive_cmds=
8704  archive_expsym_cmds=
8705  compiler_needs_object=no
8706  enable_shared_with_static_runtimes=no
8707  export_dynamic_flag_spec=
8708  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8709  hardcode_automatic=no
8710  hardcode_direct=no
8711  hardcode_direct_absolute=no
8712  hardcode_libdir_flag_spec=
8713  hardcode_libdir_separator=
8714  hardcode_minus_L=no
8715  hardcode_shlibpath_var=unsupported
8716  inherit_rpath=no
8717  link_all_deplibs=unknown
8718  module_cmds=
8719  module_expsym_cmds=
8720  old_archive_from_new_cmds=
8721  old_archive_from_expsyms_cmds=
8722  thread_safe_flag_spec=
8723  whole_archive_flag_spec=
8724  # include_expsyms should be a list of space-separated symbols to be *always*
8725  # included in the symbol list
8726  include_expsyms=
8727  # exclude_expsyms can be an extended regexp of symbols to exclude
8728  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8729  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8730  # as well as any symbol that contains `d'.
8731  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8732  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8733  # platforms (ab)use it in PIC code, but their linkers get confused if
8734  # the symbol is explicitly referenced.  Since portable code cannot
8735  # rely on this symbol name, it's probably fine to never include it in
8736  # preloaded symbol tables.
8737  # Exclude shared library initialization/finalization symbols.
8738  extract_expsyms_cmds=
8739
8740  case $host_os in
8741  cygwin* | mingw* | pw32* | cegcc*)
8742    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8743    # When not using gcc, we currently assume that we are using
8744    # Microsoft Visual C++.
8745    if test "$GCC" != yes; then
8746      with_gnu_ld=no
8747    fi
8748    ;;
8749  interix*)
8750    # we just hope/assume this is gcc and not c89 (= MSVC++)
8751    with_gnu_ld=yes
8752    ;;
8753  openbsd*)
8754    with_gnu_ld=no
8755    ;;
8756  linux* | k*bsd*-gnu | gnu*)
8757    link_all_deplibs=no
8758    ;;
8759  esac
8760
8761  ld_shlibs=yes
8762
8763  # On some targets, GNU ld is compatible enough with the native linker
8764  # that we're better off using the native interface for both.
8765  lt_use_gnu_ld_interface=no
8766  if test "$with_gnu_ld" = yes; then
8767    case $host_os in
8768      aix*)
8769	# The AIX port of GNU ld has always aspired to compatibility
8770	# with the native linker.  However, as the warning in the GNU ld
8771	# block says, versions before 2.19.5* couldn't really create working
8772	# shared libraries, regardless of the interface used.
8773	case `$LD -v 2>&1` in
8774	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8775	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8776	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8777	  *)
8778	    lt_use_gnu_ld_interface=yes
8779	    ;;
8780	esac
8781	;;
8782      *)
8783	lt_use_gnu_ld_interface=yes
8784	;;
8785    esac
8786  fi
8787
8788  if test "$lt_use_gnu_ld_interface" = yes; then
8789    # If archive_cmds runs LD, not CC, wlarc should be empty
8790    wlarc='${wl}'
8791
8792    # Set some defaults for GNU ld with shared library support. These
8793    # are reset later if shared libraries are not supported. Putting them
8794    # here allows them to be overridden if necessary.
8795    runpath_var=LD_RUN_PATH
8796    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797    export_dynamic_flag_spec='${wl}--export-dynamic'
8798    # ancient GNU ld didn't support --whole-archive et. al.
8799    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8800      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8801    else
8802      whole_archive_flag_spec=
8803    fi
8804    supports_anon_versioning=no
8805    case `$LD -v 2>&1` in
8806      *GNU\ gold*) supports_anon_versioning=yes ;;
8807      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8808      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8809      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8810      *\ 2.11.*) ;; # other 2.11 versions
8811      *) supports_anon_versioning=yes ;;
8812    esac
8813
8814    # See if GNU ld supports shared libraries.
8815    case $host_os in
8816    aix[3-9]*)
8817      # On AIX/PPC, the GNU linker is very broken
8818      if test "$host_cpu" != ia64; then
8819	ld_shlibs=no
8820	cat <<_LT_EOF 1>&2
8821
8822*** Warning: the GNU linker, at least up to release 2.19, is reported
8823*** to be unable to reliably create shared libraries on AIX.
8824*** Therefore, libtool is disabling shared libraries support.  If you
8825*** really care for shared libraries, you may want to install binutils
8826*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8827*** You will then need to restart the configuration process.
8828
8829_LT_EOF
8830      fi
8831      ;;
8832
8833    amigaos*)
8834      case $host_cpu in
8835      powerpc)
8836            # see comment about AmigaOS4 .so support
8837            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838            archive_expsym_cmds=''
8839        ;;
8840      m68k)
8841            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)'
8842            hardcode_libdir_flag_spec='-L$libdir'
8843            hardcode_minus_L=yes
8844        ;;
8845      esac
8846      ;;
8847
8848    beos*)
8849      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8850	allow_undefined_flag=unsupported
8851	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8852	# support --undefined.  This deserves some investigation.  FIXME
8853	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854      else
8855	ld_shlibs=no
8856      fi
8857      ;;
8858
8859    cygwin* | mingw* | pw32* | cegcc*)
8860      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8861      # as there is no search path for DLLs.
8862      hardcode_libdir_flag_spec='-L$libdir'
8863      export_dynamic_flag_spec='${wl}--export-all-symbols'
8864      allow_undefined_flag=unsupported
8865      always_export_symbols=no
8866      enable_shared_with_static_runtimes=yes
8867      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'
8868      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8869
8870      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8871        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872	# If the export-symbols file already is a .def file (1st line
8873	# is EXPORTS), use it as is; otherwise, prepend...
8874	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8875	  cp $export_symbols $output_objdir/$soname.def;
8876	else
8877	  echo EXPORTS > $output_objdir/$soname.def;
8878	  cat $export_symbols >> $output_objdir/$soname.def;
8879	fi~
8880	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881      else
8882	ld_shlibs=no
8883      fi
8884      ;;
8885
8886    haiku*)
8887      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888      link_all_deplibs=yes
8889      ;;
8890
8891    interix[3-9]*)
8892      hardcode_direct=no
8893      hardcode_shlibpath_var=no
8894      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895      export_dynamic_flag_spec='${wl}-E'
8896      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897      # Instead, shared libraries are loaded at an image base (0x10000000 by
8898      # default) and relocated if they conflict, which is a slow very memory
8899      # consuming and fragmenting process.  To avoid this, we pick a random,
8900      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8902      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903      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'
8904      ;;
8905
8906    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8907      tmp_diet=no
8908      if test "$host_os" = linux-dietlibc; then
8909	case $cc_basename in
8910	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8911	esac
8912      fi
8913      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8914	 && test "$tmp_diet" = no
8915      then
8916	tmp_addflag=' $pic_flag'
8917	tmp_sharedflag='-shared'
8918	case $cc_basename,$host_cpu in
8919        pgcc*)				# Portland Group C compiler
8920	  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'
8921	  tmp_addflag=' $pic_flag'
8922	  ;;
8923	pgf77* | pgf90* | pgf95* | pgfortran*)
8924					# Portland Group f77 and f90 compilers
8925	  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'
8926	  tmp_addflag=' $pic_flag -Mnomain' ;;
8927	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8928	  tmp_addflag=' -i_dynamic' ;;
8929	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8930	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8931	ifc* | ifort*)			# Intel Fortran compiler
8932	  tmp_addflag=' -nofor_main' ;;
8933	lf95*)				# Lahey Fortran 8.1
8934	  whole_archive_flag_spec=
8935	  tmp_sharedflag='--shared' ;;
8936	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8937	  tmp_sharedflag='-qmkshrobj'
8938	  tmp_addflag= ;;
8939	nvcc*)	# Cuda Compiler Driver 2.2
8940	  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'
8941	  compiler_needs_object=yes
8942	  ;;
8943	esac
8944	case `$CC -V 2>&1 | sed 5q` in
8945	*Sun\ C*)			# Sun C 5.9
8946	  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'
8947	  compiler_needs_object=yes
8948	  tmp_sharedflag='-G' ;;
8949	*Sun\ F*)			# Sun Fortran 8.3
8950	  tmp_sharedflag='-G' ;;
8951	esac
8952	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953
8954        if test "x$supports_anon_versioning" = xyes; then
8955          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8956	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8957	    echo "local: *; };" >> $output_objdir/$libname.ver~
8958	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8959        fi
8960
8961	case $cc_basename in
8962	xlf* | bgf* | bgxlf* | mpixlf*)
8963	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8964	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8965	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8967	  if test "x$supports_anon_versioning" = xyes; then
8968	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970	      echo "local: *; };" >> $output_objdir/$libname.ver~
8971	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8972	  fi
8973	  ;;
8974	esac
8975      else
8976        ld_shlibs=no
8977      fi
8978      ;;
8979
8980    netbsd* | netbsdelf*-gnu)
8981      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8982	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8983	wlarc=
8984      else
8985	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987      fi
8988      ;;
8989
8990    solaris*)
8991      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8992	ld_shlibs=no
8993	cat <<_LT_EOF 1>&2
8994
8995*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8996*** create shared libraries on Solaris systems.  Therefore, libtool
8997*** is disabling shared libraries support.  We urge you to upgrade GNU
8998*** binutils to release 2.9.1 or newer.  Another option is to modify
8999*** your PATH or compiler configuration so that the native linker is
9000*** used, and then restart.
9001
9002_LT_EOF
9003      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006      else
9007	ld_shlibs=no
9008      fi
9009      ;;
9010
9011    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9012      case `$LD -v 2>&1` in
9013        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9014	ld_shlibs=no
9015	cat <<_LT_EOF 1>&2
9016
9017*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9018*** reliably create shared libraries on SCO systems.  Therefore, libtool
9019*** is disabling shared libraries support.  We urge you to upgrade GNU
9020*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9021*** your PATH or compiler configuration so that the native linker is
9022*** used, and then restart.
9023
9024_LT_EOF
9025	;;
9026	*)
9027	  # For security reasons, it is highly recommended that you always
9028	  # use absolute paths for naming shared libraries, and exclude the
9029	  # DT_RUNPATH tag from executables and libraries.  But doing so
9030	  # requires that you compile everything twice, which is a pain.
9031	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035	  else
9036	    ld_shlibs=no
9037	  fi
9038	;;
9039      esac
9040      ;;
9041
9042    sunos4*)
9043      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9044      wlarc=
9045      hardcode_direct=yes
9046      hardcode_shlibpath_var=no
9047      ;;
9048
9049    *)
9050      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9051	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053      else
9054	ld_shlibs=no
9055      fi
9056      ;;
9057    esac
9058
9059    if test "$ld_shlibs" = no; then
9060      runpath_var=
9061      hardcode_libdir_flag_spec=
9062      export_dynamic_flag_spec=
9063      whole_archive_flag_spec=
9064    fi
9065  else
9066    # PORTME fill in a description of your system's linker (not GNU ld)
9067    case $host_os in
9068    aix3*)
9069      allow_undefined_flag=unsupported
9070      always_export_symbols=yes
9071      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'
9072      # Note: this linker hardcodes the directories in LIBPATH if there
9073      # are no directories specified by -L.
9074      hardcode_minus_L=yes
9075      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9076	# Neither direct hardcoding nor static linking is supported with a
9077	# broken collect2.
9078	hardcode_direct=unsupported
9079      fi
9080      ;;
9081
9082    aix[4-9]*)
9083      if test "$host_cpu" = ia64; then
9084	# On IA64, the linker does run time linking by default, so we don't
9085	# have to do anything special.
9086	aix_use_runtimelinking=no
9087	exp_sym_flag='-Bexport'
9088	no_entry_flag=""
9089      else
9090	# If we're using GNU nm, then we don't want the "-C" option.
9091	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9092	# Also, AIX nm treats weak defined symbols like other global
9093	# defined symbols, whereas GNU nm marks them as "W".
9094	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9095	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9096	else
9097	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9098	fi
9099	aix_use_runtimelinking=no
9100
9101	# Test if we are trying to use run time linking or normal
9102	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9103	# need to do runtime linking.
9104	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9105	  for ld_flag in $LDFLAGS; do
9106	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9107	    aix_use_runtimelinking=yes
9108	    break
9109	  fi
9110	  done
9111	  ;;
9112	esac
9113
9114	exp_sym_flag='-bexport'
9115	no_entry_flag='-bnoentry'
9116      fi
9117
9118      # When large executables or shared objects are built, AIX ld can
9119      # have problems creating the table of contents.  If linking a library
9120      # or program results in "error TOC overflow" add -mminimal-toc to
9121      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9122      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9123
9124      archive_cmds=''
9125      hardcode_direct=yes
9126      hardcode_direct_absolute=yes
9127      hardcode_libdir_separator=':'
9128      link_all_deplibs=yes
9129      file_list_spec='${wl}-f,'
9130
9131      if test "$GCC" = yes; then
9132	case $host_os in aix4.[012]|aix4.[012].*)
9133	# We only want to do this on AIX 4.2 and lower, the check
9134	# below for broken collect2 doesn't work under 4.3+
9135	  collect2name=`${CC} -print-prog-name=collect2`
9136	  if test -f "$collect2name" &&
9137	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9138	  then
9139	  # We have reworked collect2
9140	  :
9141	  else
9142	  # We have old collect2
9143	  hardcode_direct=unsupported
9144	  # It fails to find uninstalled libraries when the uninstalled
9145	  # path is not listed in the libpath.  Setting hardcode_minus_L
9146	  # to unsupported forces relinking
9147	  hardcode_minus_L=yes
9148	  hardcode_libdir_flag_spec='-L$libdir'
9149	  hardcode_libdir_separator=
9150	  fi
9151	  ;;
9152	esac
9153	shared_flag='-shared'
9154	if test "$aix_use_runtimelinking" = yes; then
9155	  shared_flag="$shared_flag "'${wl}-G'
9156	fi
9157	link_all_deplibs=no
9158      else
9159	# not using gcc
9160	if test "$host_cpu" = ia64; then
9161	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9162	# chokes on -Wl,-G. The following line is correct:
9163	  shared_flag='-G'
9164	else
9165	  if test "$aix_use_runtimelinking" = yes; then
9166	    shared_flag='${wl}-G'
9167	  else
9168	    shared_flag='${wl}-bM:SRE'
9169	  fi
9170	fi
9171      fi
9172
9173      export_dynamic_flag_spec='${wl}-bexpall'
9174      # It seems that -bexpall does not export symbols beginning with
9175      # underscore (_), so it is better to generate a list of symbols to export.
9176      always_export_symbols=yes
9177      if test "$aix_use_runtimelinking" = yes; then
9178	# Warning - without using the other runtime loading flags (-brtl),
9179	# -berok will link without error, but may produce a broken library.
9180	allow_undefined_flag='-berok'
9181        # Determine the default libpath from the value encoded in an
9182        # empty executable.
9183        if test "${lt_cv_aix_libpath+set}" = set; then
9184  aix_libpath=$lt_cv_aix_libpath
9185else
9186  if ${lt_cv_aix_libpath_+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191
9192int
9193main ()
9194{
9195
9196  ;
9197  return 0;
9198}
9199_ACEOF
9200if ac_fn_c_try_link "$LINENO"; then :
9201
9202  lt_aix_libpath_sed='
9203      /Import File Strings/,/^$/ {
9204	  /^0/ {
9205	      s/^0  *\([^ ]*\) *$/\1/
9206	      p
9207	  }
9208      }'
9209  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210  # Check for a 64-bit object if we didn't find anything.
9211  if test -z "$lt_cv_aix_libpath_"; then
9212    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213  fi
9214fi
9215rm -f core conftest.err conftest.$ac_objext \
9216    conftest$ac_exeext conftest.$ac_ext
9217  if test -z "$lt_cv_aix_libpath_"; then
9218    lt_cv_aix_libpath_="/usr/lib:/lib"
9219  fi
9220
9221fi
9222
9223  aix_libpath=$lt_cv_aix_libpath_
9224fi
9225
9226        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9228      else
9229	if test "$host_cpu" = ia64; then
9230	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9231	  allow_undefined_flag="-z nodefs"
9232	  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"
9233	else
9234	 # Determine the default libpath from the value encoded in an
9235	 # empty executable.
9236	 if test "${lt_cv_aix_libpath+set}" = set; then
9237  aix_libpath=$lt_cv_aix_libpath
9238else
9239  if ${lt_cv_aix_libpath_+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244
9245int
9246main ()
9247{
9248
9249  ;
9250  return 0;
9251}
9252_ACEOF
9253if ac_fn_c_try_link "$LINENO"; then :
9254
9255  lt_aix_libpath_sed='
9256      /Import File Strings/,/^$/ {
9257	  /^0/ {
9258	      s/^0  *\([^ ]*\) *$/\1/
9259	      p
9260	  }
9261      }'
9262  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263  # Check for a 64-bit object if we didn't find anything.
9264  if test -z "$lt_cv_aix_libpath_"; then
9265    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266  fi
9267fi
9268rm -f core conftest.err conftest.$ac_objext \
9269    conftest$ac_exeext conftest.$ac_ext
9270  if test -z "$lt_cv_aix_libpath_"; then
9271    lt_cv_aix_libpath_="/usr/lib:/lib"
9272  fi
9273
9274fi
9275
9276  aix_libpath=$lt_cv_aix_libpath_
9277fi
9278
9279	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9280	  # Warning - without using the other run time loading flags,
9281	  # -berok will link without error, but may produce a broken library.
9282	  no_undefined_flag=' ${wl}-bernotok'
9283	  allow_undefined_flag=' ${wl}-berok'
9284	  if test "$with_gnu_ld" = yes; then
9285	    # We only use this code for GNU lds that support --whole-archive.
9286	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9287	  else
9288	    # Exported symbols can be pulled into shared objects from archives
9289	    whole_archive_flag_spec='$convenience'
9290	  fi
9291	  archive_cmds_need_lc=yes
9292	  # This is similar to how AIX traditionally builds its shared libraries.
9293	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9294	fi
9295      fi
9296      ;;
9297
9298    amigaos*)
9299      case $host_cpu in
9300      powerpc)
9301            # see comment about AmigaOS4 .so support
9302            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303            archive_expsym_cmds=''
9304        ;;
9305      m68k)
9306            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)'
9307            hardcode_libdir_flag_spec='-L$libdir'
9308            hardcode_minus_L=yes
9309        ;;
9310      esac
9311      ;;
9312
9313    bsdi[45]*)
9314      export_dynamic_flag_spec=-rdynamic
9315      ;;
9316
9317    cygwin* | mingw* | pw32* | cegcc*)
9318      # When not using gcc, we currently assume that we are using
9319      # Microsoft Visual C++.
9320      # hardcode_libdir_flag_spec is actually meaningless, as there is
9321      # no search path for DLLs.
9322      case $cc_basename in
9323      cl*)
9324	# Native MSVC
9325	hardcode_libdir_flag_spec=' '
9326	allow_undefined_flag=unsupported
9327	always_export_symbols=yes
9328	file_list_spec='@'
9329	# Tell ltmain to make .lib files, not .a files.
9330	libext=lib
9331	# Tell ltmain to make .dll files, not .so files.
9332	shrext_cmds=".dll"
9333	# FIXME: Setting linknames here is a bad hack.
9334	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9335	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9336	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9337	  else
9338	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9339	  fi~
9340	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9341	  linknames='
9342	# The linker will not automatically build a static lib if we build a DLL.
9343	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9344	enable_shared_with_static_runtimes=yes
9345	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9346	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9347	# Don't use ranlib
9348	old_postinstall_cmds='chmod 644 $oldlib'
9349	postlink_cmds='lt_outputfile="@OUTPUT@"~
9350	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9351	  case $lt_outputfile in
9352	    *.exe|*.EXE) ;;
9353	    *)
9354	      lt_outputfile="$lt_outputfile.exe"
9355	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9356	      ;;
9357	  esac~
9358	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9359	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9360	    $RM "$lt_outputfile.manifest";
9361	  fi'
9362	;;
9363      *)
9364	# Assume MSVC wrapper
9365	hardcode_libdir_flag_spec=' '
9366	allow_undefined_flag=unsupported
9367	# Tell ltmain to make .lib files, not .a files.
9368	libext=lib
9369	# Tell ltmain to make .dll files, not .so files.
9370	shrext_cmds=".dll"
9371	# FIXME: Setting linknames here is a bad hack.
9372	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9373	# The linker will automatically build a .lib file if we build a DLL.
9374	old_archive_from_new_cmds='true'
9375	# FIXME: Should let the user specify the lib program.
9376	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9377	enable_shared_with_static_runtimes=yes
9378	;;
9379      esac
9380      ;;
9381
9382    darwin* | rhapsody*)
9383
9384
9385  archive_cmds_need_lc=no
9386  hardcode_direct=no
9387  hardcode_automatic=yes
9388  hardcode_shlibpath_var=unsupported
9389  if test "$lt_cv_ld_force_load" = "yes"; then
9390    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\"`'
9391
9392  else
9393    whole_archive_flag_spec=''
9394  fi
9395  link_all_deplibs=yes
9396  allow_undefined_flag="$_lt_dar_allow_undefined"
9397  case $cc_basename in
9398     ifort*) _lt_dar_can_shared=yes ;;
9399     *) _lt_dar_can_shared=$GCC ;;
9400  esac
9401  if test "$_lt_dar_can_shared" = "yes"; then
9402    output_verbose_link_cmd=func_echo_all
9403    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9404    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9405    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}"
9406    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}"
9407
9408  else
9409  ld_shlibs=no
9410  fi
9411
9412      ;;
9413
9414    dgux*)
9415      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416      hardcode_libdir_flag_spec='-L$libdir'
9417      hardcode_shlibpath_var=no
9418      ;;
9419
9420    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9421    # support.  Future versions do this automatically, but an explicit c++rt0.o
9422    # does not break anything, and helps significantly (at the cost of a little
9423    # extra space).
9424    freebsd2.2*)
9425      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9426      hardcode_libdir_flag_spec='-R$libdir'
9427      hardcode_direct=yes
9428      hardcode_shlibpath_var=no
9429      ;;
9430
9431    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9432    freebsd2.*)
9433      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434      hardcode_direct=yes
9435      hardcode_minus_L=yes
9436      hardcode_shlibpath_var=no
9437      ;;
9438
9439    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9440    freebsd* | dragonfly*)
9441      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9442      hardcode_libdir_flag_spec='-R$libdir'
9443      hardcode_direct=yes
9444      hardcode_shlibpath_var=no
9445      ;;
9446
9447    hpux9*)
9448      if test "$GCC" = yes; then
9449	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9450      else
9451	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9452      fi
9453      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454      hardcode_libdir_separator=:
9455      hardcode_direct=yes
9456
9457      # hardcode_minus_L: Not really in the search PATH,
9458      # but as the default location of the library.
9459      hardcode_minus_L=yes
9460      export_dynamic_flag_spec='${wl}-E'
9461      ;;
9462
9463    hpux10*)
9464      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9465	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466      else
9467	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9468      fi
9469      if test "$with_gnu_ld" = no; then
9470	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471	hardcode_libdir_separator=:
9472	hardcode_direct=yes
9473	hardcode_direct_absolute=yes
9474	export_dynamic_flag_spec='${wl}-E'
9475	# hardcode_minus_L: Not really in the search PATH,
9476	# but as the default location of the library.
9477	hardcode_minus_L=yes
9478      fi
9479      ;;
9480
9481    hpux11*)
9482      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9483	case $host_cpu in
9484	hppa*64*)
9485	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486	  ;;
9487	ia64*)
9488	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9489	  ;;
9490	*)
9491	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492	  ;;
9493	esac
9494      else
9495	case $host_cpu in
9496	hppa*64*)
9497	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498	  ;;
9499	ia64*)
9500	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9501	  ;;
9502	*)
9503
9504	  # Older versions of the 11.00 compiler do not understand -b yet
9505	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9506	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9507$as_echo_n "checking if $CC understands -b... " >&6; }
9508if ${lt_cv_prog_compiler__b+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  lt_cv_prog_compiler__b=no
9512   save_LDFLAGS="$LDFLAGS"
9513   LDFLAGS="$LDFLAGS -b"
9514   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9515   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9516     # The linker can only warn and ignore the option if not recognized
9517     # So say no if there are warnings
9518     if test -s conftest.err; then
9519       # Append any errors to the config.log.
9520       cat conftest.err 1>&5
9521       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9522       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9523       if diff conftest.exp conftest.er2 >/dev/null; then
9524         lt_cv_prog_compiler__b=yes
9525       fi
9526     else
9527       lt_cv_prog_compiler__b=yes
9528     fi
9529   fi
9530   $RM -r conftest*
9531   LDFLAGS="$save_LDFLAGS"
9532
9533fi
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9535$as_echo "$lt_cv_prog_compiler__b" >&6; }
9536
9537if test x"$lt_cv_prog_compiler__b" = xyes; then
9538    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9539else
9540    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9541fi
9542
9543	  ;;
9544	esac
9545      fi
9546      if test "$with_gnu_ld" = no; then
9547	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9548	hardcode_libdir_separator=:
9549
9550	case $host_cpu in
9551	hppa*64*|ia64*)
9552	  hardcode_direct=no
9553	  hardcode_shlibpath_var=no
9554	  ;;
9555	*)
9556	  hardcode_direct=yes
9557	  hardcode_direct_absolute=yes
9558	  export_dynamic_flag_spec='${wl}-E'
9559
9560	  # hardcode_minus_L: Not really in the search PATH,
9561	  # but as the default location of the library.
9562	  hardcode_minus_L=yes
9563	  ;;
9564	esac
9565      fi
9566      ;;
9567
9568    irix5* | irix6* | nonstopux*)
9569      if test "$GCC" = yes; then
9570	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'
9571	# Try to use the -exported_symbol ld option, if it does not
9572	# work, assume that -exports_file does not work either and
9573	# implicitly export all symbols.
9574	# This should be the same for all languages, so no per-tag cache variable.
9575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9576$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9577if ${lt_cv_irix_exported_symbol+:} false; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  save_LDFLAGS="$LDFLAGS"
9581	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9582	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int foo (void) { return 0; }
9585_ACEOF
9586if ac_fn_c_try_link "$LINENO"; then :
9587  lt_cv_irix_exported_symbol=yes
9588else
9589  lt_cv_irix_exported_symbol=no
9590fi
9591rm -f core conftest.err conftest.$ac_objext \
9592    conftest$ac_exeext conftest.$ac_ext
9593           LDFLAGS="$save_LDFLAGS"
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9596$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9597	if test "$lt_cv_irix_exported_symbol" = yes; then
9598          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'
9599	fi
9600      else
9601	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'
9602	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'
9603      fi
9604      archive_cmds_need_lc='no'
9605      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606      hardcode_libdir_separator=:
9607      inherit_rpath=yes
9608      link_all_deplibs=yes
9609      ;;
9610
9611    netbsd* | netbsdelf*-gnu)
9612      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9614      else
9615	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9616      fi
9617      hardcode_libdir_flag_spec='-R$libdir'
9618      hardcode_direct=yes
9619      hardcode_shlibpath_var=no
9620      ;;
9621
9622    newsos6)
9623      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624      hardcode_direct=yes
9625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626      hardcode_libdir_separator=:
9627      hardcode_shlibpath_var=no
9628      ;;
9629
9630    *nto* | *qnx*)
9631      ;;
9632
9633    openbsd*)
9634      if test -f /usr/libexec/ld.so; then
9635	hardcode_direct=yes
9636	hardcode_shlibpath_var=no
9637	hardcode_direct_absolute=yes
9638	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9639	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9641	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642	  export_dynamic_flag_spec='${wl}-E'
9643	else
9644	  case $host_os in
9645	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9646	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647	     hardcode_libdir_flag_spec='-R$libdir'
9648	     ;;
9649	   *)
9650	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9652	     ;;
9653	  esac
9654	fi
9655      else
9656	ld_shlibs=no
9657      fi
9658      ;;
9659
9660    os2*)
9661      hardcode_libdir_flag_spec='-L$libdir'
9662      hardcode_minus_L=yes
9663      allow_undefined_flag=unsupported
9664      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9665      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9666      ;;
9667
9668    osf3*)
9669      if test "$GCC" = yes; then
9670	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9671	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'
9672      else
9673	allow_undefined_flag=' -expect_unresolved \*'
9674	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'
9675      fi
9676      archive_cmds_need_lc='no'
9677      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678      hardcode_libdir_separator=:
9679      ;;
9680
9681    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9682      if test "$GCC" = yes; then
9683	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9684	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'
9685	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686      else
9687	allow_undefined_flag=' -expect_unresolved \*'
9688	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'
9689	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~
9690	$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'
9691
9692	# Both c and cxx compiler support -rpath directly
9693	hardcode_libdir_flag_spec='-rpath $libdir'
9694      fi
9695      archive_cmds_need_lc='no'
9696      hardcode_libdir_separator=:
9697      ;;
9698
9699    solaris*)
9700      no_undefined_flag=' -z defs'
9701      if test "$GCC" = yes; then
9702	wlarc='${wl}'
9703	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9705	  $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'
9706      else
9707	case `$CC -V 2>&1` in
9708	*"Compilers 5.0"*)
9709	  wlarc=''
9710	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9712	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9713	  ;;
9714	*)
9715	  wlarc='${wl}'
9716	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9717	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9719	  ;;
9720	esac
9721      fi
9722      hardcode_libdir_flag_spec='-R$libdir'
9723      hardcode_shlibpath_var=no
9724      case $host_os in
9725      solaris2.[0-5] | solaris2.[0-5].*) ;;
9726      *)
9727	# The compiler driver will combine and reorder linker options,
9728	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9729	# but is careful enough not to reorder.
9730	# Supported since Solaris 2.6 (maybe 2.5.1?)
9731	if test "$GCC" = yes; then
9732	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9733	else
9734	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9735	fi
9736	;;
9737      esac
9738      link_all_deplibs=yes
9739      ;;
9740
9741    sunos4*)
9742      if test "x$host_vendor" = xsequent; then
9743	# Use $CC to link under sequent, because it throws in some extra .o
9744	# files that make .init and .fini sections work.
9745	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9746      else
9747	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9748      fi
9749      hardcode_libdir_flag_spec='-L$libdir'
9750      hardcode_direct=yes
9751      hardcode_minus_L=yes
9752      hardcode_shlibpath_var=no
9753      ;;
9754
9755    sysv4)
9756      case $host_vendor in
9757	sni)
9758	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759	  hardcode_direct=yes # is this really true???
9760	;;
9761	siemens)
9762	  ## LD is ld it makes a PLAMLIB
9763	  ## CC just makes a GrossModule.
9764	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9765	  reload_cmds='$CC -r -o $output$reload_objs'
9766	  hardcode_direct=no
9767        ;;
9768	motorola)
9769	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9771	;;
9772      esac
9773      runpath_var='LD_RUN_PATH'
9774      hardcode_shlibpath_var=no
9775      ;;
9776
9777    sysv4.3*)
9778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779      hardcode_shlibpath_var=no
9780      export_dynamic_flag_spec='-Bexport'
9781      ;;
9782
9783    sysv4*MP*)
9784      if test -d /usr/nec; then
9785	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786	hardcode_shlibpath_var=no
9787	runpath_var=LD_RUN_PATH
9788	hardcode_runpath_var=yes
9789	ld_shlibs=yes
9790      fi
9791      ;;
9792
9793    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9794      no_undefined_flag='${wl}-z,text'
9795      archive_cmds_need_lc=no
9796      hardcode_shlibpath_var=no
9797      runpath_var='LD_RUN_PATH'
9798
9799      if test "$GCC" = yes; then
9800	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802      else
9803	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805      fi
9806      ;;
9807
9808    sysv5* | sco3.2v5* | sco5v6*)
9809      # Note: We can NOT use -z defs as we might desire, because we do not
9810      # link with -lc, and that would cause any symbols used from libc to
9811      # always be unresolved, which means just about no library would
9812      # ever link correctly.  If we're not using GNU ld we use -z text
9813      # though, which does catch some bad symbols but isn't as heavy-handed
9814      # as -z defs.
9815      no_undefined_flag='${wl}-z,text'
9816      allow_undefined_flag='${wl}-z,nodefs'
9817      archive_cmds_need_lc=no
9818      hardcode_shlibpath_var=no
9819      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9820      hardcode_libdir_separator=':'
9821      link_all_deplibs=yes
9822      export_dynamic_flag_spec='${wl}-Bexport'
9823      runpath_var='LD_RUN_PATH'
9824
9825      if test "$GCC" = yes; then
9826	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828      else
9829	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831      fi
9832      ;;
9833
9834    uts4*)
9835      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836      hardcode_libdir_flag_spec='-L$libdir'
9837      hardcode_shlibpath_var=no
9838      ;;
9839
9840    *)
9841      ld_shlibs=no
9842      ;;
9843    esac
9844
9845    if test x$host_vendor = xsni; then
9846      case $host in
9847      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9848	export_dynamic_flag_spec='${wl}-Blargedynsym'
9849	;;
9850      esac
9851    fi
9852  fi
9853
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9855$as_echo "$ld_shlibs" >&6; }
9856test "$ld_shlibs" = no && can_build_shared=no
9857
9858with_gnu_ld=$with_gnu_ld
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874#
9875# Do we need to explicitly link libc?
9876#
9877case "x$archive_cmds_need_lc" in
9878x|xyes)
9879  # Assume -lc should be added
9880  archive_cmds_need_lc=yes
9881
9882  if test "$enable_shared" = yes && test "$GCC" = yes; then
9883    case $archive_cmds in
9884    *'~'*)
9885      # FIXME: we may have to deal with multi-command sequences.
9886      ;;
9887    '$CC '*)
9888      # Test whether the compiler implicitly links with -lc since on some
9889      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9890      # to ld, don't add -lc before -lgcc.
9891      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9892$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9893if ${lt_cv_archive_cmds_need_lc+:} false; then :
9894  $as_echo_n "(cached) " >&6
9895else
9896  $RM conftest*
9897	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9898
9899	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9900  (eval $ac_compile) 2>&5
9901  ac_status=$?
9902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903  test $ac_status = 0; } 2>conftest.err; then
9904	  soname=conftest
9905	  lib=conftest
9906	  libobjs=conftest.$ac_objext
9907	  deplibs=
9908	  wl=$lt_prog_compiler_wl
9909	  pic_flag=$lt_prog_compiler_pic
9910	  compiler_flags=-v
9911	  linker_flags=-v
9912	  verstring=
9913	  output_objdir=.
9914	  libname=conftest
9915	  lt_save_allow_undefined_flag=$allow_undefined_flag
9916	  allow_undefined_flag=
9917	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9918  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9919  ac_status=$?
9920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921  test $ac_status = 0; }
9922	  then
9923	    lt_cv_archive_cmds_need_lc=no
9924	  else
9925	    lt_cv_archive_cmds_need_lc=yes
9926	  fi
9927	  allow_undefined_flag=$lt_save_allow_undefined_flag
9928	else
9929	  cat conftest.err 1>&5
9930	fi
9931	$RM conftest*
9932
9933fi
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9935$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9936      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9937      ;;
9938    esac
9939  fi
9940  ;;
9941esac
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10095$as_echo_n "checking dynamic linker characteristics... " >&6; }
10096
10097if test "$GCC" = yes; then
10098  case $host_os in
10099    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10100    *) lt_awk_arg="/^libraries:/" ;;
10101  esac
10102  case $host_os in
10103    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10104    *) lt_sed_strip_eq="s,=/,/,g" ;;
10105  esac
10106  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10107  case $lt_search_path_spec in
10108  *\;*)
10109    # if the path contains ";" then we assume it to be the separator
10110    # otherwise default to the standard path separator (i.e. ":") - it is
10111    # assumed that no part of a normal pathname contains ";" but that should
10112    # okay in the real world where ";" in dirpaths is itself problematic.
10113    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10114    ;;
10115  *)
10116    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10117    ;;
10118  esac
10119  # Ok, now we have the path, separated by spaces, we can step through it
10120  # and add multilib dir if necessary.
10121  lt_tmp_lt_search_path_spec=
10122  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10123  for lt_sys_path in $lt_search_path_spec; do
10124    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10125      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10126    else
10127      test -d "$lt_sys_path" && \
10128	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10129    fi
10130  done
10131  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10132BEGIN {RS=" "; FS="/|\n";} {
10133  lt_foo="";
10134  lt_count=0;
10135  for (lt_i = NF; lt_i > 0; lt_i--) {
10136    if ($lt_i != "" && $lt_i != ".") {
10137      if ($lt_i == "..") {
10138        lt_count++;
10139      } else {
10140        if (lt_count == 0) {
10141          lt_foo="/" $lt_i lt_foo;
10142        } else {
10143          lt_count--;
10144        }
10145      }
10146    }
10147  }
10148  if (lt_foo != "") { lt_freq[lt_foo]++; }
10149  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10150}'`
10151  # AWK program above erroneously prepends '/' to C:/dos/paths
10152  # for these hosts.
10153  case $host_os in
10154    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10155      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10156  esac
10157  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10158else
10159  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10160fi
10161library_names_spec=
10162libname_spec='lib$name'
10163soname_spec=
10164shrext_cmds=".so"
10165postinstall_cmds=
10166postuninstall_cmds=
10167finish_cmds=
10168finish_eval=
10169shlibpath_var=
10170shlibpath_overrides_runpath=unknown
10171version_type=none
10172dynamic_linker="$host_os ld.so"
10173sys_lib_dlsearch_path_spec="/lib /usr/lib"
10174need_lib_prefix=unknown
10175hardcode_into_libs=no
10176
10177# when you set need_version to no, make sure it does not cause -set_version
10178# flags to be left without arguments
10179need_version=unknown
10180
10181case $host_os in
10182aix3*)
10183  version_type=linux # correct to gnu/linux during the next big refactor
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10185  shlibpath_var=LIBPATH
10186
10187  # AIX 3 has no versioning support, so we append a major version to the name.
10188  soname_spec='${libname}${release}${shared_ext}$major'
10189  ;;
10190
10191aix[4-9]*)
10192  version_type=linux # correct to gnu/linux during the next big refactor
10193  need_lib_prefix=no
10194  need_version=no
10195  hardcode_into_libs=yes
10196  if test "$host_cpu" = ia64; then
10197    # AIX 5 supports IA64
10198    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10199    shlibpath_var=LD_LIBRARY_PATH
10200  else
10201    # With GCC up to 2.95.x, collect2 would create an import file
10202    # for dependence libraries.  The import file would start with
10203    # the line `#! .'.  This would cause the generated library to
10204    # depend on `.', always an invalid library.  This was fixed in
10205    # development snapshots of GCC prior to 3.0.
10206    case $host_os in
10207      aix4 | aix4.[01] | aix4.[01].*)
10208      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10209	   echo ' yes '
10210	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10211	:
10212      else
10213	can_build_shared=no
10214      fi
10215      ;;
10216    esac
10217    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10218    # soname into executable. Probably we can add versioning support to
10219    # collect2, so additional links can be useful in future.
10220    if test "$aix_use_runtimelinking" = yes; then
10221      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10222      # instead of lib<name>.a to let people know that these are not
10223      # typical AIX shared libraries.
10224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225    else
10226      # We preserve .a as extension for shared libraries through AIX4.2
10227      # and later when we are not doing run time linking.
10228      library_names_spec='${libname}${release}.a $libname.a'
10229      soname_spec='${libname}${release}${shared_ext}$major'
10230    fi
10231    shlibpath_var=LIBPATH
10232  fi
10233  ;;
10234
10235amigaos*)
10236  case $host_cpu in
10237  powerpc)
10238    # Since July 2007 AmigaOS4 officially supports .so libraries.
10239    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10240    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241    ;;
10242  m68k)
10243    library_names_spec='$libname.ixlibrary $libname.a'
10244    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10245    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10246    ;;
10247  esac
10248  ;;
10249
10250beos*)
10251  library_names_spec='${libname}${shared_ext}'
10252  dynamic_linker="$host_os ld.so"
10253  shlibpath_var=LIBRARY_PATH
10254  ;;
10255
10256bsdi[45]*)
10257  version_type=linux # correct to gnu/linux during the next big refactor
10258  need_version=no
10259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260  soname_spec='${libname}${release}${shared_ext}$major'
10261  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10262  shlibpath_var=LD_LIBRARY_PATH
10263  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10264  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10265  # the default ld.so.conf also contains /usr/contrib/lib and
10266  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10267  # libtool to hard-code these into programs
10268  ;;
10269
10270cygwin* | mingw* | pw32* | cegcc*)
10271  version_type=windows
10272  shrext_cmds=".dll"
10273  need_version=no
10274  need_lib_prefix=no
10275
10276  case $GCC,$cc_basename in
10277  yes,*)
10278    # gcc
10279    library_names_spec='$libname.dll.a'
10280    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10281    postinstall_cmds='base_file=`basename \${file}`~
10282      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10283      dldir=$destdir/`dirname \$dlpath`~
10284      test -d \$dldir || mkdir -p \$dldir~
10285      $install_prog $dir/$dlname \$dldir/$dlname~
10286      chmod a+x \$dldir/$dlname~
10287      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10288        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10289      fi'
10290    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10291      dlpath=$dir/\$dldll~
10292       $RM \$dlpath'
10293    shlibpath_overrides_runpath=yes
10294
10295    case $host_os in
10296    cygwin*)
10297      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10298      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10299
10300      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10301      ;;
10302    mingw* | cegcc*)
10303      # MinGW DLLs use traditional 'lib' prefix
10304      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10305      ;;
10306    pw32*)
10307      # pw32 DLLs use 'pw' prefix rather than 'lib'
10308      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10309      ;;
10310    esac
10311    dynamic_linker='Win32 ld.exe'
10312    ;;
10313
10314  *,cl*)
10315    # Native MSVC
10316    libname_spec='$name'
10317    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10318    library_names_spec='${libname}.dll.lib'
10319
10320    case $build_os in
10321    mingw*)
10322      sys_lib_search_path_spec=
10323      lt_save_ifs=$IFS
10324      IFS=';'
10325      for lt_path in $LIB
10326      do
10327        IFS=$lt_save_ifs
10328        # Let DOS variable expansion print the short 8.3 style file name.
10329        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10330        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10331      done
10332      IFS=$lt_save_ifs
10333      # Convert to MSYS style.
10334      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10335      ;;
10336    cygwin*)
10337      # Convert to unix form, then to dos form, then back to unix form
10338      # but this time dos style (no spaces!) so that the unix form looks
10339      # like /cygdrive/c/PROGRA~1:/cygdr...
10340      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10341      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10342      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10343      ;;
10344    *)
10345      sys_lib_search_path_spec="$LIB"
10346      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10347        # It is most probably a Windows format PATH.
10348        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10349      else
10350        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10351      fi
10352      # FIXME: find the short name or the path components, as spaces are
10353      # common. (e.g. "Program Files" -> "PROGRA~1")
10354      ;;
10355    esac
10356
10357    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10358    postinstall_cmds='base_file=`basename \${file}`~
10359      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10360      dldir=$destdir/`dirname \$dlpath`~
10361      test -d \$dldir || mkdir -p \$dldir~
10362      $install_prog $dir/$dlname \$dldir/$dlname'
10363    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10364      dlpath=$dir/\$dldll~
10365       $RM \$dlpath'
10366    shlibpath_overrides_runpath=yes
10367    dynamic_linker='Win32 link.exe'
10368    ;;
10369
10370  *)
10371    # Assume MSVC wrapper
10372    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10373    dynamic_linker='Win32 ld.exe'
10374    ;;
10375  esac
10376  # FIXME: first we should search . and the directory the executable is in
10377  shlibpath_var=PATH
10378  ;;
10379
10380darwin* | rhapsody*)
10381  dynamic_linker="$host_os dyld"
10382  version_type=darwin
10383  need_lib_prefix=no
10384  need_version=no
10385  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10386  soname_spec='${libname}${release}${major}$shared_ext'
10387  shlibpath_overrides_runpath=yes
10388  shlibpath_var=DYLD_LIBRARY_PATH
10389  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10390
10391  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10392  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10393  ;;
10394
10395dgux*)
10396  version_type=linux # correct to gnu/linux during the next big refactor
10397  need_lib_prefix=no
10398  need_version=no
10399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10400  soname_spec='${libname}${release}${shared_ext}$major'
10401  shlibpath_var=LD_LIBRARY_PATH
10402  ;;
10403
10404freebsd* | dragonfly*)
10405  # DragonFly does not have aout.  When/if they implement a new
10406  # versioning mechanism, adjust this.
10407  if test -x /usr/bin/objformat; then
10408    objformat=`/usr/bin/objformat`
10409  else
10410    case $host_os in
10411    freebsd[23].*) objformat=aout ;;
10412    *) objformat=elf ;;
10413    esac
10414  fi
10415  version_type=freebsd-$objformat
10416  case $version_type in
10417    freebsd-elf*)
10418      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10419      need_version=no
10420      need_lib_prefix=no
10421      ;;
10422    freebsd-*)
10423      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10424      need_version=yes
10425      ;;
10426  esac
10427  shlibpath_var=LD_LIBRARY_PATH
10428  case $host_os in
10429  freebsd2.*)
10430    shlibpath_overrides_runpath=yes
10431    ;;
10432  freebsd3.[01]* | freebsdelf3.[01]*)
10433    shlibpath_overrides_runpath=yes
10434    hardcode_into_libs=yes
10435    ;;
10436  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10437  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10438    shlibpath_overrides_runpath=no
10439    hardcode_into_libs=yes
10440    ;;
10441  *) # from 4.6 on, and DragonFly
10442    shlibpath_overrides_runpath=yes
10443    hardcode_into_libs=yes
10444    ;;
10445  esac
10446  ;;
10447
10448haiku*)
10449  version_type=linux # correct to gnu/linux during the next big refactor
10450  need_lib_prefix=no
10451  need_version=no
10452  dynamic_linker="$host_os runtime_loader"
10453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10454  soname_spec='${libname}${release}${shared_ext}$major'
10455  shlibpath_var=LIBRARY_PATH
10456  shlibpath_overrides_runpath=yes
10457  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10458  hardcode_into_libs=yes
10459  ;;
10460
10461hpux9* | hpux10* | hpux11*)
10462  # Give a soname corresponding to the major version so that dld.sl refuses to
10463  # link against other versions.
10464  version_type=sunos
10465  need_lib_prefix=no
10466  need_version=no
10467  case $host_cpu in
10468  ia64*)
10469    shrext_cmds='.so'
10470    hardcode_into_libs=yes
10471    dynamic_linker="$host_os dld.so"
10472    shlibpath_var=LD_LIBRARY_PATH
10473    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475    soname_spec='${libname}${release}${shared_ext}$major'
10476    if test "X$HPUX_IA64_MODE" = X32; then
10477      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478    else
10479      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480    fi
10481    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482    ;;
10483  hppa*64*)
10484    shrext_cmds='.sl'
10485    hardcode_into_libs=yes
10486    dynamic_linker="$host_os dld.sl"
10487    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490    soname_spec='${libname}${release}${shared_ext}$major'
10491    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493    ;;
10494  *)
10495    shrext_cmds='.sl'
10496    dynamic_linker="$host_os dld.sl"
10497    shlibpath_var=SHLIB_PATH
10498    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500    soname_spec='${libname}${release}${shared_ext}$major'
10501    ;;
10502  esac
10503  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10504  postinstall_cmds='chmod 555 $lib'
10505  # or fails outright, so override atomically:
10506  install_override_mode=555
10507  ;;
10508
10509interix[3-9]*)
10510  version_type=linux # correct to gnu/linux during the next big refactor
10511  need_lib_prefix=no
10512  need_version=no
10513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514  soname_spec='${libname}${release}${shared_ext}$major'
10515  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10516  shlibpath_var=LD_LIBRARY_PATH
10517  shlibpath_overrides_runpath=no
10518  hardcode_into_libs=yes
10519  ;;
10520
10521irix5* | irix6* | nonstopux*)
10522  case $host_os in
10523    nonstopux*) version_type=nonstopux ;;
10524    *)
10525	if test "$lt_cv_prog_gnu_ld" = yes; then
10526		version_type=linux # correct to gnu/linux during the next big refactor
10527	else
10528		version_type=irix
10529	fi ;;
10530  esac
10531  need_lib_prefix=no
10532  need_version=no
10533  soname_spec='${libname}${release}${shared_ext}$major'
10534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10535  case $host_os in
10536  irix5* | nonstopux*)
10537    libsuff= shlibsuff=
10538    ;;
10539  *)
10540    case $LD in # libtool.m4 will add one of these switches to LD
10541    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10542      libsuff= shlibsuff= libmagic=32-bit;;
10543    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10544      libsuff=32 shlibsuff=N32 libmagic=N32;;
10545    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10546      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10547    *) libsuff= shlibsuff= libmagic=never-match;;
10548    esac
10549    ;;
10550  esac
10551  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10552  shlibpath_overrides_runpath=no
10553  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10554  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10555  hardcode_into_libs=yes
10556  ;;
10557
10558# No shared lib support for Linux oldld, aout, or coff.
10559linux*oldld* | linux*aout* | linux*coff*)
10560  dynamic_linker=no
10561  ;;
10562
10563# This must be glibc/ELF.
10564linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10565  version_type=linux # correct to gnu/linux during the next big refactor
10566  need_lib_prefix=no
10567  need_version=no
10568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569  soname_spec='${libname}${release}${shared_ext}$major'
10570  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10571  shlibpath_var=LD_LIBRARY_PATH
10572  shlibpath_overrides_runpath=no
10573
10574  # Some binutils ld are patched to set DT_RUNPATH
10575  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10576  $as_echo_n "(cached) " >&6
10577else
10578  lt_cv_shlibpath_overrides_runpath=no
10579    save_LDFLAGS=$LDFLAGS
10580    save_libdir=$libdir
10581    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10582	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10583    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584/* end confdefs.h.  */
10585
10586int
10587main ()
10588{
10589
10590  ;
10591  return 0;
10592}
10593_ACEOF
10594if ac_fn_c_try_link "$LINENO"; then :
10595  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10596  lt_cv_shlibpath_overrides_runpath=yes
10597fi
10598fi
10599rm -f core conftest.err conftest.$ac_objext \
10600    conftest$ac_exeext conftest.$ac_ext
10601    LDFLAGS=$save_LDFLAGS
10602    libdir=$save_libdir
10603
10604fi
10605
10606  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10607
10608  # This implies no fast_install, which is unacceptable.
10609  # Some rework will be needed to allow for fast_install
10610  # before this can be enabled.
10611  hardcode_into_libs=yes
10612
10613  # Append ld.so.conf contents to the search path
10614  if test -f /etc/ld.so.conf; then
10615    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' ' '`
10616    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10617  fi
10618
10619  # We used to test for /lib/ld.so.1 and disable shared libraries on
10620  # powerpc, because MkLinux only supported shared libraries with the
10621  # GNU dynamic linker.  Since this was broken with cross compilers,
10622  # most powerpc-linux boxes support dynamic linking these days and
10623  # people can always --disable-shared, the test was removed, and we
10624  # assume the GNU/Linux dynamic linker is in use.
10625  dynamic_linker='GNU/Linux ld.so'
10626  ;;
10627
10628netbsdelf*-gnu)
10629  version_type=linux
10630  need_lib_prefix=no
10631  need_version=no
10632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633  soname_spec='${libname}${release}${shared_ext}$major'
10634  shlibpath_var=LD_LIBRARY_PATH
10635  shlibpath_overrides_runpath=no
10636  hardcode_into_libs=yes
10637  dynamic_linker='NetBSD ld.elf_so'
10638  ;;
10639
10640netbsd*)
10641  version_type=sunos
10642  need_lib_prefix=no
10643  need_version=no
10644  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647    dynamic_linker='NetBSD (a.out) ld.so'
10648  else
10649    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650    soname_spec='${libname}${release}${shared_ext}$major'
10651    dynamic_linker='NetBSD ld.elf_so'
10652  fi
10653  shlibpath_var=LD_LIBRARY_PATH
10654  shlibpath_overrides_runpath=yes
10655  hardcode_into_libs=yes
10656  ;;
10657
10658newsos6)
10659  version_type=linux # correct to gnu/linux during the next big refactor
10660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661  shlibpath_var=LD_LIBRARY_PATH
10662  shlibpath_overrides_runpath=yes
10663  ;;
10664
10665*nto* | *qnx*)
10666  version_type=qnx
10667  need_lib_prefix=no
10668  need_version=no
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670  soname_spec='${libname}${release}${shared_ext}$major'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  shlibpath_overrides_runpath=no
10673  hardcode_into_libs=yes
10674  dynamic_linker='ldqnx.so'
10675  ;;
10676
10677openbsd*)
10678  version_type=sunos
10679  sys_lib_dlsearch_path_spec="/usr/lib"
10680  need_lib_prefix=no
10681  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10682  case $host_os in
10683    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10684    *)				need_version=no  ;;
10685  esac
10686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688  shlibpath_var=LD_LIBRARY_PATH
10689  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690    case $host_os in
10691      openbsd2.[89] | openbsd2.[89].*)
10692	shlibpath_overrides_runpath=no
10693	;;
10694      *)
10695	shlibpath_overrides_runpath=yes
10696	;;
10697      esac
10698  else
10699    shlibpath_overrides_runpath=yes
10700  fi
10701  ;;
10702
10703os2*)
10704  libname_spec='$name'
10705  shrext_cmds=".dll"
10706  need_lib_prefix=no
10707  library_names_spec='$libname${shared_ext} $libname.a'
10708  dynamic_linker='OS/2 ld.exe'
10709  shlibpath_var=LIBPATH
10710  ;;
10711
10712osf3* | osf4* | osf5*)
10713  version_type=osf
10714  need_lib_prefix=no
10715  need_version=no
10716  soname_spec='${libname}${release}${shared_ext}$major'
10717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718  shlibpath_var=LD_LIBRARY_PATH
10719  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10720  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10721  ;;
10722
10723rdos*)
10724  dynamic_linker=no
10725  ;;
10726
10727solaris*)
10728  version_type=linux # correct to gnu/linux during the next big refactor
10729  need_lib_prefix=no
10730  need_version=no
10731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732  soname_spec='${libname}${release}${shared_ext}$major'
10733  shlibpath_var=LD_LIBRARY_PATH
10734  shlibpath_overrides_runpath=yes
10735  hardcode_into_libs=yes
10736  # ldd complains unless libraries are executable
10737  postinstall_cmds='chmod +x $lib'
10738  ;;
10739
10740sunos4*)
10741  version_type=sunos
10742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  shlibpath_overrides_runpath=yes
10746  if test "$with_gnu_ld" = yes; then
10747    need_lib_prefix=no
10748  fi
10749  need_version=yes
10750  ;;
10751
10752sysv4 | sysv4.3*)
10753  version_type=linux # correct to gnu/linux during the next big refactor
10754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755  soname_spec='${libname}${release}${shared_ext}$major'
10756  shlibpath_var=LD_LIBRARY_PATH
10757  case $host_vendor in
10758    sni)
10759      shlibpath_overrides_runpath=no
10760      need_lib_prefix=no
10761      runpath_var=LD_RUN_PATH
10762      ;;
10763    siemens)
10764      need_lib_prefix=no
10765      ;;
10766    motorola)
10767      need_lib_prefix=no
10768      need_version=no
10769      shlibpath_overrides_runpath=no
10770      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10771      ;;
10772  esac
10773  ;;
10774
10775sysv4*MP*)
10776  if test -d /usr/nec ;then
10777    version_type=linux # correct to gnu/linux during the next big refactor
10778    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10779    soname_spec='$libname${shared_ext}.$major'
10780    shlibpath_var=LD_LIBRARY_PATH
10781  fi
10782  ;;
10783
10784sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10785  version_type=freebsd-elf
10786  need_lib_prefix=no
10787  need_version=no
10788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789  soname_spec='${libname}${release}${shared_ext}$major'
10790  shlibpath_var=LD_LIBRARY_PATH
10791  shlibpath_overrides_runpath=yes
10792  hardcode_into_libs=yes
10793  if test "$with_gnu_ld" = yes; then
10794    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10795  else
10796    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10797    case $host_os in
10798      sco3.2v5*)
10799        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10800	;;
10801    esac
10802  fi
10803  sys_lib_dlsearch_path_spec='/usr/lib'
10804  ;;
10805
10806tpf*)
10807  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10808  version_type=linux # correct to gnu/linux during the next big refactor
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812  shlibpath_var=LD_LIBRARY_PATH
10813  shlibpath_overrides_runpath=no
10814  hardcode_into_libs=yes
10815  ;;
10816
10817uts4*)
10818  version_type=linux # correct to gnu/linux during the next big refactor
10819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820  soname_spec='${libname}${release}${shared_ext}$major'
10821  shlibpath_var=LD_LIBRARY_PATH
10822  ;;
10823
10824*)
10825  dynamic_linker=no
10826  ;;
10827esac
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10829$as_echo "$dynamic_linker" >&6; }
10830test "$dynamic_linker" = no && can_build_shared=no
10831
10832variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10833if test "$GCC" = yes; then
10834  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10835fi
10836
10837if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10838  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10839fi
10840if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10841  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10842fi
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10936$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10937hardcode_action=
10938if test -n "$hardcode_libdir_flag_spec" ||
10939   test -n "$runpath_var" ||
10940   test "X$hardcode_automatic" = "Xyes" ; then
10941
10942  # We can hardcode non-existent directories.
10943  if test "$hardcode_direct" != no &&
10944     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10945     # have to relink, otherwise we might link with an installed library
10946     # when we should be linking with a yet-to-be-installed one
10947     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10948     test "$hardcode_minus_L" != no; then
10949    # Linking always hardcodes the temporary library directory.
10950    hardcode_action=relink
10951  else
10952    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10953    hardcode_action=immediate
10954  fi
10955else
10956  # We cannot hardcode anything, or else we can only hardcode existing
10957  # directories.
10958  hardcode_action=unsupported
10959fi
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10961$as_echo "$hardcode_action" >&6; }
10962
10963if test "$hardcode_action" = relink ||
10964   test "$inherit_rpath" = yes; then
10965  # Fast installation is not supported
10966  enable_fast_install=no
10967elif test "$shlibpath_overrides_runpath" = yes ||
10968     test "$enable_shared" = no; then
10969  # Fast installation is not necessary
10970  enable_fast_install=needless
10971fi
10972
10973
10974
10975
10976
10977
10978  if test "x$enable_dlopen" != xyes; then
10979  enable_dlopen=unknown
10980  enable_dlopen_self=unknown
10981  enable_dlopen_self_static=unknown
10982else
10983  lt_cv_dlopen=no
10984  lt_cv_dlopen_libs=
10985
10986  case $host_os in
10987  beos*)
10988    lt_cv_dlopen="load_add_on"
10989    lt_cv_dlopen_libs=
10990    lt_cv_dlopen_self=yes
10991    ;;
10992
10993  mingw* | pw32* | cegcc*)
10994    lt_cv_dlopen="LoadLibrary"
10995    lt_cv_dlopen_libs=
10996    ;;
10997
10998  cygwin*)
10999    lt_cv_dlopen="dlopen"
11000    lt_cv_dlopen_libs=
11001    ;;
11002
11003  darwin*)
11004  # if libdl is installed we need to link against it
11005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11006$as_echo_n "checking for dlopen in -ldl... " >&6; }
11007if ${ac_cv_lib_dl_dlopen+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  ac_check_lib_save_LIBS=$LIBS
11011LIBS="-ldl  $LIBS"
11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014
11015/* Override any GCC internal prototype to avoid an error.
11016   Use char because int might match the return type of a GCC
11017   builtin and then its argument prototype would still apply.  */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021char dlopen ();
11022int
11023main ()
11024{
11025return dlopen ();
11026  ;
11027  return 0;
11028}
11029_ACEOF
11030if ac_fn_c_try_link "$LINENO"; then :
11031  ac_cv_lib_dl_dlopen=yes
11032else
11033  ac_cv_lib_dl_dlopen=no
11034fi
11035rm -f core conftest.err conftest.$ac_objext \
11036    conftest$ac_exeext conftest.$ac_ext
11037LIBS=$ac_check_lib_save_LIBS
11038fi
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11040$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11042  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11043else
11044
11045    lt_cv_dlopen="dyld"
11046    lt_cv_dlopen_libs=
11047    lt_cv_dlopen_self=yes
11048
11049fi
11050
11051    ;;
11052
11053  *)
11054    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11055if test "x$ac_cv_func_shl_load" = xyes; then :
11056  lt_cv_dlopen="shl_load"
11057else
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11059$as_echo_n "checking for shl_load in -ldld... " >&6; }
11060if ${ac_cv_lib_dld_shl_load+:} false; then :
11061  $as_echo_n "(cached) " >&6
11062else
11063  ac_check_lib_save_LIBS=$LIBS
11064LIBS="-ldld  $LIBS"
11065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067
11068/* Override any GCC internal prototype to avoid an error.
11069   Use char because int might match the return type of a GCC
11070   builtin and then its argument prototype would still apply.  */
11071#ifdef __cplusplus
11072extern "C"
11073#endif
11074char shl_load ();
11075int
11076main ()
11077{
11078return shl_load ();
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_link "$LINENO"; then :
11084  ac_cv_lib_dld_shl_load=yes
11085else
11086  ac_cv_lib_dld_shl_load=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089    conftest$ac_exeext conftest.$ac_ext
11090LIBS=$ac_check_lib_save_LIBS
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11093$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11094if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11095  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11096else
11097  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11098if test "x$ac_cv_func_dlopen" = xyes; then :
11099  lt_cv_dlopen="dlopen"
11100else
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11102$as_echo_n "checking for dlopen in -ldl... " >&6; }
11103if ${ac_cv_lib_dl_dlopen+:} false; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  ac_check_lib_save_LIBS=$LIBS
11107LIBS="-ldl  $LIBS"
11108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h.  */
11110
11111/* Override any GCC internal prototype to avoid an error.
11112   Use char because int might match the return type of a GCC
11113   builtin and then its argument prototype would still apply.  */
11114#ifdef __cplusplus
11115extern "C"
11116#endif
11117char dlopen ();
11118int
11119main ()
11120{
11121return dlopen ();
11122  ;
11123  return 0;
11124}
11125_ACEOF
11126if ac_fn_c_try_link "$LINENO"; then :
11127  ac_cv_lib_dl_dlopen=yes
11128else
11129  ac_cv_lib_dl_dlopen=no
11130fi
11131rm -f core conftest.err conftest.$ac_objext \
11132    conftest$ac_exeext conftest.$ac_ext
11133LIBS=$ac_check_lib_save_LIBS
11134fi
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11136$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11137if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11138  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11139else
11140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11141$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11142if ${ac_cv_lib_svld_dlopen+:} false; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  ac_check_lib_save_LIBS=$LIBS
11146LIBS="-lsvld  $LIBS"
11147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h.  */
11149
11150/* Override any GCC internal prototype to avoid an error.
11151   Use char because int might match the return type of a GCC
11152   builtin and then its argument prototype would still apply.  */
11153#ifdef __cplusplus
11154extern "C"
11155#endif
11156char dlopen ();
11157int
11158main ()
11159{
11160return dlopen ();
11161  ;
11162  return 0;
11163}
11164_ACEOF
11165if ac_fn_c_try_link "$LINENO"; then :
11166  ac_cv_lib_svld_dlopen=yes
11167else
11168  ac_cv_lib_svld_dlopen=no
11169fi
11170rm -f core conftest.err conftest.$ac_objext \
11171    conftest$ac_exeext conftest.$ac_ext
11172LIBS=$ac_check_lib_save_LIBS
11173fi
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11175$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11176if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11177  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11178else
11179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11180$as_echo_n "checking for dld_link in -ldld... " >&6; }
11181if ${ac_cv_lib_dld_dld_link+:} false; then :
11182  $as_echo_n "(cached) " >&6
11183else
11184  ac_check_lib_save_LIBS=$LIBS
11185LIBS="-ldld  $LIBS"
11186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187/* end confdefs.h.  */
11188
11189/* Override any GCC internal prototype to avoid an error.
11190   Use char because int might match the return type of a GCC
11191   builtin and then its argument prototype would still apply.  */
11192#ifdef __cplusplus
11193extern "C"
11194#endif
11195char dld_link ();
11196int
11197main ()
11198{
11199return dld_link ();
11200  ;
11201  return 0;
11202}
11203_ACEOF
11204if ac_fn_c_try_link "$LINENO"; then :
11205  ac_cv_lib_dld_dld_link=yes
11206else
11207  ac_cv_lib_dld_dld_link=no
11208fi
11209rm -f core conftest.err conftest.$ac_objext \
11210    conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS
11212fi
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11214$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11215if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11216  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11217fi
11218
11219
11220fi
11221
11222
11223fi
11224
11225
11226fi
11227
11228
11229fi
11230
11231
11232fi
11233
11234    ;;
11235  esac
11236
11237  if test "x$lt_cv_dlopen" != xno; then
11238    enable_dlopen=yes
11239  else
11240    enable_dlopen=no
11241  fi
11242
11243  case $lt_cv_dlopen in
11244  dlopen)
11245    save_CPPFLAGS="$CPPFLAGS"
11246    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11247
11248    save_LDFLAGS="$LDFLAGS"
11249    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11250
11251    save_LIBS="$LIBS"
11252    LIBS="$lt_cv_dlopen_libs $LIBS"
11253
11254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11255$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11256if ${lt_cv_dlopen_self+:} false; then :
11257  $as_echo_n "(cached) " >&6
11258else
11259  	  if test "$cross_compiling" = yes; then :
11260  lt_cv_dlopen_self=cross
11261else
11262  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11263  lt_status=$lt_dlunknown
11264  cat > conftest.$ac_ext <<_LT_EOF
11265#line $LINENO "configure"
11266#include "confdefs.h"
11267
11268#if HAVE_DLFCN_H
11269#include <dlfcn.h>
11270#endif
11271
11272#include <stdio.h>
11273
11274#ifdef RTLD_GLOBAL
11275#  define LT_DLGLOBAL		RTLD_GLOBAL
11276#else
11277#  ifdef DL_GLOBAL
11278#    define LT_DLGLOBAL		DL_GLOBAL
11279#  else
11280#    define LT_DLGLOBAL		0
11281#  endif
11282#endif
11283
11284/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11285   find out it does not work in some platform. */
11286#ifndef LT_DLLAZY_OR_NOW
11287#  ifdef RTLD_LAZY
11288#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11289#  else
11290#    ifdef DL_LAZY
11291#      define LT_DLLAZY_OR_NOW		DL_LAZY
11292#    else
11293#      ifdef RTLD_NOW
11294#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11295#      else
11296#        ifdef DL_NOW
11297#          define LT_DLLAZY_OR_NOW	DL_NOW
11298#        else
11299#          define LT_DLLAZY_OR_NOW	0
11300#        endif
11301#      endif
11302#    endif
11303#  endif
11304#endif
11305
11306/* When -fvisbility=hidden is used, assume the code has been annotated
11307   correspondingly for the symbols needed.  */
11308#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11309int fnord () __attribute__((visibility("default")));
11310#endif
11311
11312int fnord () { return 42; }
11313int main ()
11314{
11315  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11316  int status = $lt_dlunknown;
11317
11318  if (self)
11319    {
11320      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11321      else
11322        {
11323	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11324          else puts (dlerror ());
11325	}
11326      /* dlclose (self); */
11327    }
11328  else
11329    puts (dlerror ());
11330
11331  return status;
11332}
11333_LT_EOF
11334  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11335  (eval $ac_link) 2>&5
11336  ac_status=$?
11337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11339    (./conftest; exit; ) >&5 2>/dev/null
11340    lt_status=$?
11341    case x$lt_status in
11342      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11343      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11344      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11345    esac
11346  else :
11347    # compilation failed
11348    lt_cv_dlopen_self=no
11349  fi
11350fi
11351rm -fr conftest*
11352
11353
11354fi
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11356$as_echo "$lt_cv_dlopen_self" >&6; }
11357
11358    if test "x$lt_cv_dlopen_self" = xyes; then
11359      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11360      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11361$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11362if ${lt_cv_dlopen_self_static+:} false; then :
11363  $as_echo_n "(cached) " >&6
11364else
11365  	  if test "$cross_compiling" = yes; then :
11366  lt_cv_dlopen_self_static=cross
11367else
11368  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11369  lt_status=$lt_dlunknown
11370  cat > conftest.$ac_ext <<_LT_EOF
11371#line $LINENO "configure"
11372#include "confdefs.h"
11373
11374#if HAVE_DLFCN_H
11375#include <dlfcn.h>
11376#endif
11377
11378#include <stdio.h>
11379
11380#ifdef RTLD_GLOBAL
11381#  define LT_DLGLOBAL		RTLD_GLOBAL
11382#else
11383#  ifdef DL_GLOBAL
11384#    define LT_DLGLOBAL		DL_GLOBAL
11385#  else
11386#    define LT_DLGLOBAL		0
11387#  endif
11388#endif
11389
11390/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11391   find out it does not work in some platform. */
11392#ifndef LT_DLLAZY_OR_NOW
11393#  ifdef RTLD_LAZY
11394#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11395#  else
11396#    ifdef DL_LAZY
11397#      define LT_DLLAZY_OR_NOW		DL_LAZY
11398#    else
11399#      ifdef RTLD_NOW
11400#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11401#      else
11402#        ifdef DL_NOW
11403#          define LT_DLLAZY_OR_NOW	DL_NOW
11404#        else
11405#          define LT_DLLAZY_OR_NOW	0
11406#        endif
11407#      endif
11408#    endif
11409#  endif
11410#endif
11411
11412/* When -fvisbility=hidden is used, assume the code has been annotated
11413   correspondingly for the symbols needed.  */
11414#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11415int fnord () __attribute__((visibility("default")));
11416#endif
11417
11418int fnord () { return 42; }
11419int main ()
11420{
11421  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422  int status = $lt_dlunknown;
11423
11424  if (self)
11425    {
11426      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11427      else
11428        {
11429	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11430          else puts (dlerror ());
11431	}
11432      /* dlclose (self); */
11433    }
11434  else
11435    puts (dlerror ());
11436
11437  return status;
11438}
11439_LT_EOF
11440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11441  (eval $ac_link) 2>&5
11442  ac_status=$?
11443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11445    (./conftest; exit; ) >&5 2>/dev/null
11446    lt_status=$?
11447    case x$lt_status in
11448      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11449      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11450      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11451    esac
11452  else :
11453    # compilation failed
11454    lt_cv_dlopen_self_static=no
11455  fi
11456fi
11457rm -fr conftest*
11458
11459
11460fi
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11462$as_echo "$lt_cv_dlopen_self_static" >&6; }
11463    fi
11464
11465    CPPFLAGS="$save_CPPFLAGS"
11466    LDFLAGS="$save_LDFLAGS"
11467    LIBS="$save_LIBS"
11468    ;;
11469  esac
11470
11471  case $lt_cv_dlopen_self in
11472  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11473  *) enable_dlopen_self=unknown ;;
11474  esac
11475
11476  case $lt_cv_dlopen_self_static in
11477  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11478  *) enable_dlopen_self_static=unknown ;;
11479  esac
11480fi
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498striplib=
11499old_striplib=
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11501$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11502if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11503  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11504  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506$as_echo "yes" >&6; }
11507else
11508# FIXME - insert some real tests, host_os isn't really good enough
11509  case $host_os in
11510  darwin*)
11511    if test -n "$STRIP" ; then
11512      striplib="$STRIP -x"
11513      old_striplib="$STRIP -S"
11514      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515$as_echo "yes" >&6; }
11516    else
11517      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518$as_echo "no" >&6; }
11519    fi
11520    ;;
11521  *)
11522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
11524    ;;
11525  esac
11526fi
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539  # Report which library types will actually be built
11540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11541$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11543$as_echo "$can_build_shared" >&6; }
11544
11545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11546$as_echo_n "checking whether to build shared libraries... " >&6; }
11547  test "$can_build_shared" = "no" && enable_shared=no
11548
11549  # On AIX, shared libraries and static libraries use the same namespace, and
11550  # are all built from PIC.
11551  case $host_os in
11552  aix3*)
11553    test "$enable_shared" = yes && enable_static=no
11554    if test -n "$RANLIB"; then
11555      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11556      postinstall_cmds='$RANLIB $lib'
11557    fi
11558    ;;
11559
11560  aix[4-9]*)
11561    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11562      test "$enable_shared" = yes && enable_static=no
11563    fi
11564    ;;
11565  esac
11566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11567$as_echo "$enable_shared" >&6; }
11568
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11570$as_echo_n "checking whether to build static libraries... " >&6; }
11571  # Make sure either enable_shared or enable_static is yes.
11572  test "$enable_shared" = yes || enable_static=yes
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11574$as_echo "$enable_static" >&6; }
11575
11576
11577
11578
11579fi
11580ac_ext=c
11581ac_cpp='$CPP $CPPFLAGS'
11582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584ac_compiler_gnu=$ac_cv_c_compiler_gnu
11585
11586CC="$lt_save_CC"
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602        ac_config_commands="$ac_config_commands libtool"
11603
11604
11605
11606
11607# Only expand once:
11608
11609
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11611$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11612if ${libltdl_cv_shlibext+:} false; then :
11613  $as_echo_n "(cached) " >&6
11614else
11615
11616module=yes
11617eval libltdl_cv_shlibext=$shrext_cmds
11618module=no
11619eval libltdl_cv_shrext=$shrext_cmds
11620
11621fi
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11623$as_echo "$libltdl_cv_shlibext" >&6; }
11624if test -n "$libltdl_cv_shlibext"; then
11625
11626cat >>confdefs.h <<_ACEOF
11627#define LT_MODULE_EXT "$libltdl_cv_shlibext"
11628_ACEOF
11629
11630fi
11631if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11632
11633cat >>confdefs.h <<_ACEOF
11634#define LT_SHARED_EXT "$libltdl_cv_shrext"
11635_ACEOF
11636
11637fi
11638
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11640$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11641if ${lt_cv_module_path_var+:} false; then :
11642  $as_echo_n "(cached) " >&6
11643else
11644  lt_cv_module_path_var="$shlibpath_var"
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11647$as_echo "$lt_cv_module_path_var" >&6; }
11648if test -n "$lt_cv_module_path_var"; then
11649
11650cat >>confdefs.h <<_ACEOF
11651#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11652_ACEOF
11653
11654fi
11655
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11657$as_echo_n "checking for the default library search path... " >&6; }
11658if ${lt_cv_sys_dlsearch_path+:} false; then :
11659  $as_echo_n "(cached) " >&6
11660else
11661  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11664$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11665if test -n "$lt_cv_sys_dlsearch_path"; then
11666  sys_dlsearch_path=
11667  for dir in $lt_cv_sys_dlsearch_path; do
11668    if test -z "$sys_dlsearch_path"; then
11669      sys_dlsearch_path="$dir"
11670    else
11671      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11672    fi
11673  done
11674
11675cat >>confdefs.h <<_ACEOF
11676#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11677_ACEOF
11678
11679fi
11680
11681
11682LT_DLLOADERS=
11683
11684
11685ac_ext=c
11686ac_cpp='$CPP $CPPFLAGS'
11687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11689ac_compiler_gnu=$ac_cv_c_compiler_gnu
11690
11691
11692LIBADD_DLOPEN=
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11694$as_echo_n "checking for library containing dlopen... " >&6; }
11695if ${ac_cv_search_dlopen+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  ac_func_search_save_LIBS=$LIBS
11699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700/* end confdefs.h.  */
11701
11702/* Override any GCC internal prototype to avoid an error.
11703   Use char because int might match the return type of a GCC
11704   builtin and then its argument prototype would still apply.  */
11705#ifdef __cplusplus
11706extern "C"
11707#endif
11708char dlopen ();
11709int
11710main ()
11711{
11712return dlopen ();
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717for ac_lib in '' dl; do
11718  if test -z "$ac_lib"; then
11719    ac_res="none required"
11720  else
11721    ac_res=-l$ac_lib
11722    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11723  fi
11724  if ac_fn_c_try_link "$LINENO"; then :
11725  ac_cv_search_dlopen=$ac_res
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext
11729  if ${ac_cv_search_dlopen+:} false; then :
11730  break
11731fi
11732done
11733if ${ac_cv_search_dlopen+:} false; then :
11734
11735else
11736  ac_cv_search_dlopen=no
11737fi
11738rm conftest.$ac_ext
11739LIBS=$ac_func_search_save_LIBS
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11742$as_echo "$ac_cv_search_dlopen" >&6; }
11743ac_res=$ac_cv_search_dlopen
11744if test "$ac_res" != no; then :
11745  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11746
11747$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11748
11749	if test "$ac_cv_search_dlopen" != "none required" ; then
11750	  LIBADD_DLOPEN="-ldl"
11751	fi
11752	libltdl_cv_lib_dl_dlopen="yes"
11753	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11754else
11755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756/* end confdefs.h.  */
11757#if HAVE_DLFCN_H
11758#  include <dlfcn.h>
11759#endif
11760
11761int
11762main ()
11763{
11764dlopen(0, 0);
11765  ;
11766  return 0;
11767}
11768_ACEOF
11769if ac_fn_c_try_link "$LINENO"; then :
11770
11771$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11772
11773	    libltdl_cv_func_dlopen="yes"
11774	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11775else
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11777$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11778if ${ac_cv_lib_svld_dlopen+:} false; then :
11779  $as_echo_n "(cached) " >&6
11780else
11781  ac_check_lib_save_LIBS=$LIBS
11782LIBS="-lsvld  $LIBS"
11783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784/* end confdefs.h.  */
11785
11786/* Override any GCC internal prototype to avoid an error.
11787   Use char because int might match the return type of a GCC
11788   builtin and then its argument prototype would still apply.  */
11789#ifdef __cplusplus
11790extern "C"
11791#endif
11792char dlopen ();
11793int
11794main ()
11795{
11796return dlopen ();
11797  ;
11798  return 0;
11799}
11800_ACEOF
11801if ac_fn_c_try_link "$LINENO"; then :
11802  ac_cv_lib_svld_dlopen=yes
11803else
11804  ac_cv_lib_svld_dlopen=no
11805fi
11806rm -f core conftest.err conftest.$ac_objext \
11807    conftest$ac_exeext conftest.$ac_ext
11808LIBS=$ac_check_lib_save_LIBS
11809fi
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11811$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11812if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11813
11814$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11815
11816	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11817		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11818fi
11819
11820fi
11821rm -f core conftest.err conftest.$ac_objext \
11822    conftest$ac_exeext conftest.$ac_ext
11823fi
11824
11825if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11826then
11827  lt_save_LIBS="$LIBS"
11828  LIBS="$LIBS $LIBADD_DLOPEN"
11829  for ac_func in dlerror
11830do :
11831  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11832if test "x$ac_cv_func_dlerror" = xyes; then :
11833  cat >>confdefs.h <<_ACEOF
11834#define HAVE_DLERROR 1
11835_ACEOF
11836
11837fi
11838done
11839
11840  LIBS="$lt_save_LIBS"
11841fi
11842
11843
11844LIBADD_SHL_LOAD=
11845ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11846if test "x$ac_cv_func_shl_load" = xyes; then :
11847
11848$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11849
11850	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11851else
11852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11853$as_echo_n "checking for shl_load in -ldld... " >&6; }
11854if ${ac_cv_lib_dld_shl_load+:} false; then :
11855  $as_echo_n "(cached) " >&6
11856else
11857  ac_check_lib_save_LIBS=$LIBS
11858LIBS="-ldld  $LIBS"
11859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h.  */
11861
11862/* Override any GCC internal prototype to avoid an error.
11863   Use char because int might match the return type of a GCC
11864   builtin and then its argument prototype would still apply.  */
11865#ifdef __cplusplus
11866extern "C"
11867#endif
11868char shl_load ();
11869int
11870main ()
11871{
11872return shl_load ();
11873  ;
11874  return 0;
11875}
11876_ACEOF
11877if ac_fn_c_try_link "$LINENO"; then :
11878  ac_cv_lib_dld_shl_load=yes
11879else
11880  ac_cv_lib_dld_shl_load=no
11881fi
11882rm -f core conftest.err conftest.$ac_objext \
11883    conftest$ac_exeext conftest.$ac_ext
11884LIBS=$ac_check_lib_save_LIBS
11885fi
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11887$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11888if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11889
11890$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11891
11892	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11893	    LIBADD_SHL_LOAD="-ldld"
11894fi
11895
11896fi
11897
11898
11899
11900case $host_os in
11901darwin[1567].*)
11902# We only want this for pre-Mac OS X 10.4.
11903  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11904if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11905
11906$as_echo "#define HAVE_DYLD 1" >>confdefs.h
11907
11908	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11909fi
11910
11911  ;;
11912beos*)
11913  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11914  ;;
11915cygwin* | mingw* | os2* | pw32*)
11916  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11917"
11918if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11919  ac_have_decl=1
11920else
11921  ac_have_decl=0
11922fi
11923
11924cat >>confdefs.h <<_ACEOF
11925#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11926_ACEOF
11927
11928  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11929  ;;
11930esac
11931
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11933$as_echo_n "checking for dld_link in -ldld... " >&6; }
11934if ${ac_cv_lib_dld_dld_link+:} false; then :
11935  $as_echo_n "(cached) " >&6
11936else
11937  ac_check_lib_save_LIBS=$LIBS
11938LIBS="-ldld  $LIBS"
11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940/* end confdefs.h.  */
11941
11942/* Override any GCC internal prototype to avoid an error.
11943   Use char because int might match the return type of a GCC
11944   builtin and then its argument prototype would still apply.  */
11945#ifdef __cplusplus
11946extern "C"
11947#endif
11948char dld_link ();
11949int
11950main ()
11951{
11952return dld_link ();
11953  ;
11954  return 0;
11955}
11956_ACEOF
11957if ac_fn_c_try_link "$LINENO"; then :
11958  ac_cv_lib_dld_dld_link=yes
11959else
11960  ac_cv_lib_dld_dld_link=no
11961fi
11962rm -f core conftest.err conftest.$ac_objext \
11963    conftest$ac_exeext conftest.$ac_ext
11964LIBS=$ac_check_lib_save_LIBS
11965fi
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11967$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11968if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11969
11970$as_echo "#define HAVE_DLD 1" >>confdefs.h
11971
11972		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11973fi
11974
11975
11976
11977
11978LT_DLPREOPEN=
11979if test -n "$LT_DLLOADERS"
11980then
11981  for lt_loader in $LT_DLLOADERS; do
11982    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11983  done
11984
11985$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11986
11987fi
11988
11989
11990LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11991
11992
11993ac_ext=c
11994ac_cpp='$CPP $CPPFLAGS'
11995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997ac_compiler_gnu=$ac_cv_c_compiler_gnu
11998
11999
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12001$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12002if ${lt_cv_sys_symbol_underscore+:} false; then :
12003  $as_echo_n "(cached) " >&6
12004else
12005  lt_cv_sys_symbol_underscore=no
12006  cat > conftest.$ac_ext <<_LT_EOF
12007void nm_test_func(){}
12008int main(){nm_test_func;return 0;}
12009_LT_EOF
12010  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12011  (eval $ac_compile) 2>&5
12012  ac_status=$?
12013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12014  test $ac_status = 0; }; then
12015    # Now try to grab the symbols.
12016    ac_nlist=conftest.nm
12017    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12018  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12019  ac_status=$?
12020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021  test $ac_status = 0; } && test -s "$ac_nlist"; then
12022      # See whether the symbols have a leading underscore.
12023      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12024        lt_cv_sys_symbol_underscore=yes
12025      else
12026        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12027	  :
12028        else
12029	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12030        fi
12031      fi
12032    else
12033      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12034    fi
12035  else
12036    echo "configure: failed program was:" >&5
12037    cat conftest.c >&5
12038  fi
12039  rm -rf conftest*
12040
12041fi
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12043$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12044  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12045
12046
12047if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12048  if test x"$libltdl_cv_func_dlopen" = xyes ||
12049     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12051$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12052if ${libltdl_cv_need_uscore+:} false; then :
12053  $as_echo_n "(cached) " >&6
12054else
12055  libltdl_cv_need_uscore=unknown
12056          save_LIBS="$LIBS"
12057          LIBS="$LIBS $LIBADD_DLOPEN"
12058	  if test "$cross_compiling" = yes; then :
12059  libltdl_cv_need_uscore=cross
12060else
12061  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062  lt_status=$lt_dlunknown
12063  cat > conftest.$ac_ext <<_LT_EOF
12064#line $LINENO "configure"
12065#include "confdefs.h"
12066
12067#if HAVE_DLFCN_H
12068#include <dlfcn.h>
12069#endif
12070
12071#include <stdio.h>
12072
12073#ifdef RTLD_GLOBAL
12074#  define LT_DLGLOBAL		RTLD_GLOBAL
12075#else
12076#  ifdef DL_GLOBAL
12077#    define LT_DLGLOBAL		DL_GLOBAL
12078#  else
12079#    define LT_DLGLOBAL		0
12080#  endif
12081#endif
12082
12083/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084   find out it does not work in some platform. */
12085#ifndef LT_DLLAZY_OR_NOW
12086#  ifdef RTLD_LAZY
12087#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12088#  else
12089#    ifdef DL_LAZY
12090#      define LT_DLLAZY_OR_NOW		DL_LAZY
12091#    else
12092#      ifdef RTLD_NOW
12093#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12094#      else
12095#        ifdef DL_NOW
12096#          define LT_DLLAZY_OR_NOW	DL_NOW
12097#        else
12098#          define LT_DLLAZY_OR_NOW	0
12099#        endif
12100#      endif
12101#    endif
12102#  endif
12103#endif
12104
12105/* When -fvisbility=hidden is used, assume the code has been annotated
12106   correspondingly for the symbols needed.  */
12107#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12108int fnord () __attribute__((visibility("default")));
12109#endif
12110
12111int fnord () { return 42; }
12112int main ()
12113{
12114  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12115  int status = $lt_dlunknown;
12116
12117  if (self)
12118    {
12119      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12120      else
12121        {
12122	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12123          else puts (dlerror ());
12124	}
12125      /* dlclose (self); */
12126    }
12127  else
12128    puts (dlerror ());
12129
12130  return status;
12131}
12132_LT_EOF
12133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12134  (eval $ac_link) 2>&5
12135  ac_status=$?
12136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12137  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12138    (./conftest; exit; ) >&5 2>/dev/null
12139    lt_status=$?
12140    case x$lt_status in
12141      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12142      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12143      x$lt_dlunknown|x*)  ;;
12144    esac
12145  else :
12146    # compilation failed
12147
12148  fi
12149fi
12150rm -fr conftest*
12151
12152	  LIBS="$save_LIBS"
12153
12154fi
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12156$as_echo "$libltdl_cv_need_uscore" >&6; }
12157  fi
12158fi
12159
12160if test x"$libltdl_cv_need_uscore" = xyes; then
12161
12162$as_echo "#define NEED_USCORE 1" >>confdefs.h
12163
12164fi
12165
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12167$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12168if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12169  $as_echo_n "(cached) " >&6
12170else
12171  # PORTME does your system automatically load deplibs for dlopen?
12172  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12173  # For now, we just catch OSes we know something about -- in the
12174  # future, we'll try test this programmatically.
12175  lt_cv_sys_dlopen_deplibs=unknown
12176  case $host_os in
12177  aix3*|aix4.1.*|aix4.2.*)
12178    # Unknown whether this is true for these versions of AIX, but
12179    # we want this `case' here to explicitly catch those versions.
12180    lt_cv_sys_dlopen_deplibs=unknown
12181    ;;
12182  aix[4-9]*)
12183    lt_cv_sys_dlopen_deplibs=yes
12184    ;;
12185  amigaos*)
12186    case $host_cpu in
12187    powerpc)
12188      lt_cv_sys_dlopen_deplibs=no
12189      ;;
12190    esac
12191    ;;
12192  darwin*)
12193    # Assuming the user has installed a libdl from somewhere, this is true
12194    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12195    lt_cv_sys_dlopen_deplibs=yes
12196    ;;
12197  freebsd* | dragonfly*)
12198    lt_cv_sys_dlopen_deplibs=yes
12199    ;;
12200  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12201    # GNU and its variants, using gnu ld.so (Glibc)
12202    lt_cv_sys_dlopen_deplibs=yes
12203    ;;
12204  hpux10*|hpux11*)
12205    lt_cv_sys_dlopen_deplibs=yes
12206    ;;
12207  interix*)
12208    lt_cv_sys_dlopen_deplibs=yes
12209    ;;
12210  irix[12345]*|irix6.[01]*)
12211    # Catch all versions of IRIX before 6.2, and indicate that we don't
12212    # know how it worked for any of those versions.
12213    lt_cv_sys_dlopen_deplibs=unknown
12214    ;;
12215  irix*)
12216    # The case above catches anything before 6.2, and it's known that
12217    # at 6.2 and later dlopen does load deplibs.
12218    lt_cv_sys_dlopen_deplibs=yes
12219    ;;
12220  netbsd* | netbsdelf*-gnu)
12221    lt_cv_sys_dlopen_deplibs=yes
12222    ;;
12223  openbsd*)
12224    lt_cv_sys_dlopen_deplibs=yes
12225    ;;
12226  osf[1234]*)
12227    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12228    # it did *not* use an RPATH in a shared library to find objects the
12229    # library depends on, so we explicitly say `no'.
12230    lt_cv_sys_dlopen_deplibs=no
12231    ;;
12232  osf5.0|osf5.0a|osf5.1)
12233    # dlopen *does* load deplibs and with the right loader patch applied
12234    # it even uses RPATH in a shared library to search for shared objects
12235    # that the library depends on, but there's no easy way to know if that
12236    # patch is installed.  Since this is the case, all we can really
12237    # say is unknown -- it depends on the patch being installed.  If
12238    # it is, this changes to `yes'.  Without it, it would be `no'.
12239    lt_cv_sys_dlopen_deplibs=unknown
12240    ;;
12241  osf*)
12242    # the two cases above should catch all versions of osf <= 5.1.  Read
12243    # the comments above for what we know about them.
12244    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12245    # is used to find them so we can finally say `yes'.
12246    lt_cv_sys_dlopen_deplibs=yes
12247    ;;
12248  qnx*)
12249    lt_cv_sys_dlopen_deplibs=yes
12250    ;;
12251  solaris*)
12252    lt_cv_sys_dlopen_deplibs=yes
12253    ;;
12254  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12255    libltdl_cv_sys_dlopen_deplibs=yes
12256    ;;
12257  esac
12258
12259fi
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12261$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12262if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12263
12264$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12265
12266fi
12267
12268:
12269
12270for ac_header in argz.h
12271do :
12272  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12273"
12274if test "x$ac_cv_header_argz_h" = xyes; then :
12275  cat >>confdefs.h <<_ACEOF
12276#define HAVE_ARGZ_H 1
12277_ACEOF
12278
12279fi
12280
12281done
12282
12283
12284ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12285#  include <argz.h>
12286#endif
12287"
12288if test "x$ac_cv_type_error_t" = xyes; then :
12289
12290cat >>confdefs.h <<_ACEOF
12291#define HAVE_ERROR_T 1
12292_ACEOF
12293
12294
12295else
12296
12297$as_echo "#define error_t int" >>confdefs.h
12298
12299
12300$as_echo "#define __error_t_defined 1" >>confdefs.h
12301
12302fi
12303
12304
12305ARGZ_H=
12306for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12307	argz_next argz_stringify
12308do :
12309  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12310ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12311if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12312  cat >>confdefs.h <<_ACEOF
12313#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12314_ACEOF
12315
12316else
12317  ARGZ_H=argz.h; case " $LIBOBJS " in
12318  *" argz.$ac_objext "* ) ;;
12319  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12320 ;;
12321esac
12322
12323fi
12324done
12325
12326
12327if test -z "$ARGZ_H"; then :
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12329$as_echo_n "checking if argz actually works... " >&6; }
12330if ${lt_cv_sys_argz_works+:} false; then :
12331  $as_echo_n "(cached) " >&6
12332else
12333  case $host_os in #(
12334	 *cygwin*)
12335	   lt_cv_sys_argz_works=no
12336	   if test "$cross_compiling" != no; then
12337	     lt_cv_sys_argz_works="guessing no"
12338	   else
12339	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12340	     save_IFS=$IFS
12341	     IFS=-.
12342	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12343	     IFS=$save_IFS
12344	     lt_os_major=${2-0}
12345	     lt_os_minor=${3-0}
12346	     lt_os_micro=${4-0}
12347	     if test "$lt_os_major" -gt 1 \
12348		|| { test "$lt_os_major" -eq 1 \
12349		  && { test "$lt_os_minor" -gt 5 \
12350		    || { test "$lt_os_minor" -eq 5 \
12351		      && test "$lt_os_micro" -gt 24; }; }; }; then
12352	       lt_cv_sys_argz_works=yes
12353	     fi
12354	   fi
12355	   ;; #(
12356	 *) lt_cv_sys_argz_works=yes ;;
12357	 esac
12358fi
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12360$as_echo "$lt_cv_sys_argz_works" >&6; }
12361     if test "$lt_cv_sys_argz_works" = yes; then :
12362
12363$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12364
12365else
12366  ARGZ_H=argz.h
12367        case " $LIBOBJS " in
12368  *" argz.$ac_objext "* ) ;;
12369  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12370 ;;
12371esac
12372
12373fi
12374fi
12375
12376
12377
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12379$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12380if ${libltdl_cv_preloaded_symbols+:} false; then :
12381  $as_echo_n "(cached) " >&6
12382else
12383  if test -n "$lt_cv_sys_global_symbol_pipe"; then
12384    libltdl_cv_preloaded_symbols=yes
12385  else
12386    libltdl_cv_preloaded_symbols=no
12387  fi
12388
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12391$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12392if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12393
12394$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12395
12396fi
12397
12398
12399
12400# Check whether --enable-ltdl-install was given.
12401if test "${enable_ltdl_install+set}" = set; then :
12402  enableval=$enable_ltdl_install;
12403fi
12404
12405
12406case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12407  *yes*) ;;
12408  *) enable_ltdl_convenience=yes ;;
12409esac
12410
12411 if test x"${enable_ltdl_install-no}" != xno; then
12412  INSTALL_LTDL_TRUE=
12413  INSTALL_LTDL_FALSE='#'
12414else
12415  INSTALL_LTDL_TRUE='#'
12416  INSTALL_LTDL_FALSE=
12417fi
12418
12419  if test x"${enable_ltdl_convenience-no}" != xno; then
12420  CONVENIENCE_LTDL_TRUE=
12421  CONVENIENCE_LTDL_FALSE='#'
12422else
12423  CONVENIENCE_LTDL_TRUE='#'
12424  CONVENIENCE_LTDL_FALSE=
12425fi
12426
12427
12428
12429
12430
12431
12432# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12433# the user used.  This is so that ltdl.h can pick up the parent projects
12434# config.h file, The first file in AC_CONFIG_HEADERS must contain the
12435# definitions required by ltdl.c.
12436# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12437
12438
12439
12440for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12441do :
12442  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12443ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12444"
12445if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12446  cat >>confdefs.h <<_ACEOF
12447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12448_ACEOF
12449
12450fi
12451
12452done
12453
12454
12455for ac_func in closedir opendir readdir
12456do :
12457  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12458ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12459if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12460  cat >>confdefs.h <<_ACEOF
12461#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12462_ACEOF
12463
12464else
12465  case " $LIBOBJS " in
12466  *" lt__dirent.$ac_objext "* ) ;;
12467  *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12468 ;;
12469esac
12470
12471fi
12472done
12473
12474for ac_func in strlcat strlcpy
12475do :
12476  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12478if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12479  cat >>confdefs.h <<_ACEOF
12480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12481_ACEOF
12482
12483else
12484  case " $LIBOBJS " in
12485  *" lt__strl.$ac_objext "* ) ;;
12486  *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12487 ;;
12488esac
12489
12490fi
12491done
12492
12493
12494
12495cat >>confdefs.h <<_ACEOF
12496#define LT_LIBEXT "$libext"
12497_ACEOF
12498
12499
12500name=
12501eval "lt_libprefix=\"$libname_spec\""
12502
12503cat >>confdefs.h <<_ACEOF
12504#define LT_LIBPREFIX "$lt_libprefix"
12505_ACEOF
12506
12507
12508name=ltdl
12509eval "LTDLOPEN=\"$libname_spec\""
12510
12511
12512
12513
12514## -------- ##
12515## Outputs. ##
12516## -------- ##
12517ac_config_files="$ac_config_files Makefile"
12518
12519cat >confcache <<\_ACEOF
12520# This file is a shell script that caches the results of configure
12521# tests run on this system so they can be shared between configure
12522# scripts and configure runs, see configure's option --config-cache.
12523# It is not useful on other systems.  If it contains results you don't
12524# want to keep, you may remove or edit it.
12525#
12526# config.status only pays attention to the cache file if you give it
12527# the --recheck option to rerun configure.
12528#
12529# `ac_cv_env_foo' variables (set or unset) will be overridden when
12530# loading this file, other *unset* `ac_cv_foo' will be assigned the
12531# following values.
12532
12533_ACEOF
12534
12535# The following way of writing the cache mishandles newlines in values,
12536# but we know of no workaround that is simple, portable, and efficient.
12537# So, we kill variables containing newlines.
12538# Ultrix sh set writes to stderr and can't be redirected directly,
12539# and sets the high bit in the cache file unless we assign to the vars.
12540(
12541  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12542    eval ac_val=\$$ac_var
12543    case $ac_val in #(
12544    *${as_nl}*)
12545      case $ac_var in #(
12546      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12547$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12548      esac
12549      case $ac_var in #(
12550      _ | IFS | as_nl) ;; #(
12551      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12552      *) { eval $ac_var=; unset $ac_var;} ;;
12553      esac ;;
12554    esac
12555  done
12556
12557  (set) 2>&1 |
12558    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12559    *${as_nl}ac_space=\ *)
12560      # `set' does not quote correctly, so add quotes: double-quote
12561      # substitution turns \\\\ into \\, and sed turns \\ into \.
12562      sed -n \
12563	"s/'/'\\\\''/g;
12564	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12565      ;; #(
12566    *)
12567      # `set' quotes correctly as required by POSIX, so do not add quotes.
12568      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12569      ;;
12570    esac |
12571    sort
12572) |
12573  sed '
12574     /^ac_cv_env_/b end
12575     t clear
12576     :clear
12577     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12578     t end
12579     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12580     :end' >>confcache
12581if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12582  if test -w "$cache_file"; then
12583    if test "x$cache_file" != "x/dev/null"; then
12584      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12585$as_echo "$as_me: updating cache $cache_file" >&6;}
12586      if test ! -f "$cache_file" || test -h "$cache_file"; then
12587	cat confcache >"$cache_file"
12588      else
12589        case $cache_file in #(
12590        */* | ?:*)
12591	  mv -f confcache "$cache_file"$$ &&
12592	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12593        *)
12594	  mv -f confcache "$cache_file" ;;
12595	esac
12596      fi
12597    fi
12598  else
12599    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12600$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12601  fi
12602fi
12603rm -f confcache
12604
12605test "x$prefix" = xNONE && prefix=$ac_default_prefix
12606# Let make expand exec_prefix.
12607test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12608
12609DEFS=-DHAVE_CONFIG_H
12610
12611ac_libobjs=
12612ac_ltlibobjs=
12613U=
12614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12615  # 1. Remove the extension, and $U if already installed.
12616  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12617  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12618  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12619  #    will be set to the directory where LIBOBJS objects are built.
12620  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12621  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12622done
12623LIBOBJS=$ac_libobjs
12624
12625LTLIBOBJS=$ac_ltlibobjs
12626
12627
12628 if test -n "$EXEEXT"; then
12629  am__EXEEXT_TRUE=
12630  am__EXEEXT_FALSE='#'
12631else
12632  am__EXEEXT_TRUE='#'
12633  am__EXEEXT_FALSE=
12634fi
12635
12636if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12637  as_fn_error $? "conditional \"AMDEP\" was never defined.
12638Usually this means the macro was only invoked conditionally." "$LINENO" 5
12639fi
12640if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12641  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12642Usually this means the macro was only invoked conditionally." "$LINENO" 5
12643fi
12644if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12645  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12646Usually this means the macro was only invoked conditionally." "$LINENO" 5
12647fi
12648if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12649  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12650Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651fi
12652LT_CONFIG_H=config.h
12653
12654: "${CONFIG_STATUS=./config.status}"
12655ac_write_fail=0
12656ac_clean_files_save=$ac_clean_files
12657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12659$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12660as_write_fail=0
12661cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12662#! $SHELL
12663# Generated by $as_me.
12664# Run this file to recreate the current configuration.
12665# Compiler output produced by configure, useful for debugging
12666# configure, is in config.log if it exists.
12667
12668debug=false
12669ac_cs_recheck=false
12670ac_cs_silent=false
12671
12672SHELL=\${CONFIG_SHELL-$SHELL}
12673export SHELL
12674_ASEOF
12675cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12676## -------------------- ##
12677## M4sh Initialization. ##
12678## -------------------- ##
12679
12680# Be more Bourne compatible
12681DUALCASE=1; export DUALCASE # for MKS sh
12682if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12683  emulate sh
12684  NULLCMD=:
12685  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12686  # is contrary to our usage.  Disable this feature.
12687  alias -g '${1+"$@"}'='"$@"'
12688  setopt NO_GLOB_SUBST
12689else
12690  case `(set -o) 2>/dev/null` in #(
12691  *posix*) :
12692    set -o posix ;; #(
12693  *) :
12694     ;;
12695esac
12696fi
12697
12698
12699as_nl='
12700'
12701export as_nl
12702# Printing a long string crashes Solaris 7 /usr/bin/printf.
12703as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12704as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12705as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12706# Prefer a ksh shell builtin over an external printf program on Solaris,
12707# but without wasting forks for bash or zsh.
12708if test -z "$BASH_VERSION$ZSH_VERSION" \
12709    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12710  as_echo='print -r --'
12711  as_echo_n='print -rn --'
12712elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12713  as_echo='printf %s\n'
12714  as_echo_n='printf %s'
12715else
12716  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12717    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12718    as_echo_n='/usr/ucb/echo -n'
12719  else
12720    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12721    as_echo_n_body='eval
12722      arg=$1;
12723      case $arg in #(
12724      *"$as_nl"*)
12725	expr "X$arg" : "X\\(.*\\)$as_nl";
12726	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12727      esac;
12728      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12729    '
12730    export as_echo_n_body
12731    as_echo_n='sh -c $as_echo_n_body as_echo'
12732  fi
12733  export as_echo_body
12734  as_echo='sh -c $as_echo_body as_echo'
12735fi
12736
12737# The user is always right.
12738if test "${PATH_SEPARATOR+set}" != set; then
12739  PATH_SEPARATOR=:
12740  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12741    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12742      PATH_SEPARATOR=';'
12743  }
12744fi
12745
12746
12747# IFS
12748# We need space, tab and new line, in precisely that order.  Quoting is
12749# there to prevent editors from complaining about space-tab.
12750# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12751# splitting by setting IFS to empty value.)
12752IFS=" ""	$as_nl"
12753
12754# Find who we are.  Look in the path if we contain no directory separator.
12755as_myself=
12756case $0 in #((
12757  *[\\/]* ) as_myself=$0 ;;
12758  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761  IFS=$as_save_IFS
12762  test -z "$as_dir" && as_dir=.
12763    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12764  done
12765IFS=$as_save_IFS
12766
12767     ;;
12768esac
12769# We did not find ourselves, most probably we were run as `sh COMMAND'
12770# in which case we are not to be found in the path.
12771if test "x$as_myself" = x; then
12772  as_myself=$0
12773fi
12774if test ! -f "$as_myself"; then
12775  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12776  exit 1
12777fi
12778
12779# Unset variables that we do not need and which cause bugs (e.g. in
12780# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12781# suppresses any "Segmentation fault" message there.  '((' could
12782# trigger a bug in pdksh 5.2.14.
12783for as_var in BASH_ENV ENV MAIL MAILPATH
12784do eval test x\${$as_var+set} = xset \
12785  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12786done
12787PS1='$ '
12788PS2='> '
12789PS4='+ '
12790
12791# NLS nuisances.
12792LC_ALL=C
12793export LC_ALL
12794LANGUAGE=C
12795export LANGUAGE
12796
12797# CDPATH.
12798(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12799
12800
12801# as_fn_error STATUS ERROR [LINENO LOG_FD]
12802# ----------------------------------------
12803# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12804# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12805# script with STATUS, using 1 if that was 0.
12806as_fn_error ()
12807{
12808  as_status=$1; test $as_status -eq 0 && as_status=1
12809  if test "$4"; then
12810    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12811    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12812  fi
12813  $as_echo "$as_me: error: $2" >&2
12814  as_fn_exit $as_status
12815} # as_fn_error
12816
12817
12818# as_fn_set_status STATUS
12819# -----------------------
12820# Set $? to STATUS, without forking.
12821as_fn_set_status ()
12822{
12823  return $1
12824} # as_fn_set_status
12825
12826# as_fn_exit STATUS
12827# -----------------
12828# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12829as_fn_exit ()
12830{
12831  set +e
12832  as_fn_set_status $1
12833  exit $1
12834} # as_fn_exit
12835
12836# as_fn_unset VAR
12837# ---------------
12838# Portably unset VAR.
12839as_fn_unset ()
12840{
12841  { eval $1=; unset $1;}
12842}
12843as_unset=as_fn_unset
12844# as_fn_append VAR VALUE
12845# ----------------------
12846# Append the text in VALUE to the end of the definition contained in VAR. Take
12847# advantage of any shell optimizations that allow amortized linear growth over
12848# repeated appends, instead of the typical quadratic growth present in naive
12849# implementations.
12850if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12851  eval 'as_fn_append ()
12852  {
12853    eval $1+=\$2
12854  }'
12855else
12856  as_fn_append ()
12857  {
12858    eval $1=\$$1\$2
12859  }
12860fi # as_fn_append
12861
12862# as_fn_arith ARG...
12863# ------------------
12864# Perform arithmetic evaluation on the ARGs, and store the result in the
12865# global $as_val. Take advantage of shells that can avoid forks. The arguments
12866# must be portable across $(()) and expr.
12867if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12868  eval 'as_fn_arith ()
12869  {
12870    as_val=$(( $* ))
12871  }'
12872else
12873  as_fn_arith ()
12874  {
12875    as_val=`expr "$@" || test $? -eq 1`
12876  }
12877fi # as_fn_arith
12878
12879
12880if expr a : '\(a\)' >/dev/null 2>&1 &&
12881   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12882  as_expr=expr
12883else
12884  as_expr=false
12885fi
12886
12887if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12888  as_basename=basename
12889else
12890  as_basename=false
12891fi
12892
12893if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12894  as_dirname=dirname
12895else
12896  as_dirname=false
12897fi
12898
12899as_me=`$as_basename -- "$0" ||
12900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12901	 X"$0" : 'X\(//\)$' \| \
12902	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12903$as_echo X/"$0" |
12904    sed '/^.*\/\([^/][^/]*\)\/*$/{
12905	    s//\1/
12906	    q
12907	  }
12908	  /^X\/\(\/\/\)$/{
12909	    s//\1/
12910	    q
12911	  }
12912	  /^X\/\(\/\).*/{
12913	    s//\1/
12914	    q
12915	  }
12916	  s/.*/./; q'`
12917
12918# Avoid depending upon Character Ranges.
12919as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12920as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12921as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12922as_cr_digits='0123456789'
12923as_cr_alnum=$as_cr_Letters$as_cr_digits
12924
12925ECHO_C= ECHO_N= ECHO_T=
12926case `echo -n x` in #(((((
12927-n*)
12928  case `echo 'xy\c'` in
12929  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12930  xy)  ECHO_C='\c';;
12931  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12932       ECHO_T='	';;
12933  esac;;
12934*)
12935  ECHO_N='-n';;
12936esac
12937
12938rm -f conf$$ conf$$.exe conf$$.file
12939if test -d conf$$.dir; then
12940  rm -f conf$$.dir/conf$$.file
12941else
12942  rm -f conf$$.dir
12943  mkdir conf$$.dir 2>/dev/null
12944fi
12945if (echo >conf$$.file) 2>/dev/null; then
12946  if ln -s conf$$.file conf$$ 2>/dev/null; then
12947    as_ln_s='ln -s'
12948    # ... but there are two gotchas:
12949    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12950    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12951    # In both cases, we have to default to `cp -pR'.
12952    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12953      as_ln_s='cp -pR'
12954  elif ln conf$$.file conf$$ 2>/dev/null; then
12955    as_ln_s=ln
12956  else
12957    as_ln_s='cp -pR'
12958  fi
12959else
12960  as_ln_s='cp -pR'
12961fi
12962rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12963rmdir conf$$.dir 2>/dev/null
12964
12965
12966# as_fn_mkdir_p
12967# -------------
12968# Create "$as_dir" as a directory, including parents if necessary.
12969as_fn_mkdir_p ()
12970{
12971
12972  case $as_dir in #(
12973  -*) as_dir=./$as_dir;;
12974  esac
12975  test -d "$as_dir" || eval $as_mkdir_p || {
12976    as_dirs=
12977    while :; do
12978      case $as_dir in #(
12979      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12980      *) as_qdir=$as_dir;;
12981      esac
12982      as_dirs="'$as_qdir' $as_dirs"
12983      as_dir=`$as_dirname -- "$as_dir" ||
12984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12985	 X"$as_dir" : 'X\(//\)[^/]' \| \
12986	 X"$as_dir" : 'X\(//\)$' \| \
12987	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12988$as_echo X"$as_dir" |
12989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12990	    s//\1/
12991	    q
12992	  }
12993	  /^X\(\/\/\)[^/].*/{
12994	    s//\1/
12995	    q
12996	  }
12997	  /^X\(\/\/\)$/{
12998	    s//\1/
12999	    q
13000	  }
13001	  /^X\(\/\).*/{
13002	    s//\1/
13003	    q
13004	  }
13005	  s/.*/./; q'`
13006      test -d "$as_dir" && break
13007    done
13008    test -z "$as_dirs" || eval "mkdir $as_dirs"
13009  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13010
13011
13012} # as_fn_mkdir_p
13013if mkdir -p . 2>/dev/null; then
13014  as_mkdir_p='mkdir -p "$as_dir"'
13015else
13016  test -d ./-p && rmdir ./-p
13017  as_mkdir_p=false
13018fi
13019
13020
13021# as_fn_executable_p FILE
13022# -----------------------
13023# Test if FILE is an executable regular file.
13024as_fn_executable_p ()
13025{
13026  test -f "$1" && test -x "$1"
13027} # as_fn_executable_p
13028as_test_x='test -x'
13029as_executable_p=as_fn_executable_p
13030
13031# Sed expression to map a string onto a valid CPP name.
13032as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13033
13034# Sed expression to map a string onto a valid variable name.
13035as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13036
13037
13038exec 6>&1
13039## ----------------------------------- ##
13040## Main body of $CONFIG_STATUS script. ##
13041## ----------------------------------- ##
13042_ASEOF
13043test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13044
13045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046# Save the log message, to keep $0 and so on meaningful, and to
13047# report actual input values of CONFIG_FILES etc. instead of their
13048# values after options handling.
13049ac_log="
13050This file was extended by libltdl $as_me 2.4.2, which was
13051generated by GNU Autoconf 2.69.  Invocation command line was
13052
13053  CONFIG_FILES    = $CONFIG_FILES
13054  CONFIG_HEADERS  = $CONFIG_HEADERS
13055  CONFIG_LINKS    = $CONFIG_LINKS
13056  CONFIG_COMMANDS = $CONFIG_COMMANDS
13057  $ $0 $@
13058
13059on `(hostname || uname -n) 2>/dev/null | sed 1q`
13060"
13061
13062_ACEOF
13063
13064case $ac_config_files in *"
13065"*) set x $ac_config_files; shift; ac_config_files=$*;;
13066esac
13067
13068case $ac_config_headers in *"
13069"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13070esac
13071
13072
13073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074# Files that config.status was made for.
13075config_files="$ac_config_files"
13076config_headers="$ac_config_headers"
13077config_commands="$ac_config_commands"
13078
13079_ACEOF
13080
13081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082ac_cs_usage="\
13083\`$as_me' instantiates files and other configuration actions
13084from templates according to the current configuration.  Unless the files
13085and actions are specified as TAGs, all are instantiated by default.
13086
13087Usage: $0 [OPTION]... [TAG]...
13088
13089  -h, --help       print this help, then exit
13090  -V, --version    print version number and configuration settings, then exit
13091      --config     print configuration, then exit
13092  -q, --quiet, --silent
13093                   do not print progress messages
13094  -d, --debug      don't remove temporary files
13095      --recheck    update $as_me by reconfiguring in the same conditions
13096      --file=FILE[:TEMPLATE]
13097                   instantiate the configuration file FILE
13098      --header=FILE[:TEMPLATE]
13099                   instantiate the configuration header FILE
13100
13101Configuration files:
13102$config_files
13103
13104Configuration headers:
13105$config_headers
13106
13107Configuration commands:
13108$config_commands
13109
13110Report bugs to <bug-libtool@gnu.org>."
13111
13112_ACEOF
13113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13114ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13115ac_cs_version="\\
13116libltdl config.status 2.4.2
13117configured by $0, generated by GNU Autoconf 2.69,
13118  with options \\"\$ac_cs_config\\"
13119
13120Copyright (C) 2012 Free Software Foundation, Inc.
13121This config.status script is free software; the Free Software Foundation
13122gives unlimited permission to copy, distribute and modify it."
13123
13124ac_pwd='$ac_pwd'
13125srcdir='$srcdir'
13126INSTALL='$INSTALL'
13127MKDIR_P='$MKDIR_P'
13128AWK='$AWK'
13129test -n "\$AWK" || AWK=awk
13130_ACEOF
13131
13132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13133# The default lists apply if the user does not specify any file.
13134ac_need_defaults=:
13135while test $# != 0
13136do
13137  case $1 in
13138  --*=?*)
13139    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13140    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13141    ac_shift=:
13142    ;;
13143  --*=)
13144    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13145    ac_optarg=
13146    ac_shift=:
13147    ;;
13148  *)
13149    ac_option=$1
13150    ac_optarg=$2
13151    ac_shift=shift
13152    ;;
13153  esac
13154
13155  case $ac_option in
13156  # Handling of the options.
13157  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13158    ac_cs_recheck=: ;;
13159  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13160    $as_echo "$ac_cs_version"; exit ;;
13161  --config | --confi | --conf | --con | --co | --c )
13162    $as_echo "$ac_cs_config"; exit ;;
13163  --debug | --debu | --deb | --de | --d | -d )
13164    debug=: ;;
13165  --file | --fil | --fi | --f )
13166    $ac_shift
13167    case $ac_optarg in
13168    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13169    '') as_fn_error $? "missing file argument" ;;
13170    esac
13171    as_fn_append CONFIG_FILES " '$ac_optarg'"
13172    ac_need_defaults=false;;
13173  --header | --heade | --head | --hea )
13174    $ac_shift
13175    case $ac_optarg in
13176    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177    esac
13178    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13179    ac_need_defaults=false;;
13180  --he | --h)
13181    # Conflict between --help and --header
13182    as_fn_error $? "ambiguous option: \`$1'
13183Try \`$0 --help' for more information.";;
13184  --help | --hel | -h )
13185    $as_echo "$ac_cs_usage"; exit ;;
13186  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13187  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13188    ac_cs_silent=: ;;
13189
13190  # This is an error.
13191  -*) as_fn_error $? "unrecognized option: \`$1'
13192Try \`$0 --help' for more information." ;;
13193
13194  *) as_fn_append ac_config_targets " $1"
13195     ac_need_defaults=false ;;
13196
13197  esac
13198  shift
13199done
13200
13201ac_configure_extra_args=
13202
13203if $ac_cs_silent; then
13204  exec 6>/dev/null
13205  ac_configure_extra_args="$ac_configure_extra_args --silent"
13206fi
13207
13208_ACEOF
13209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210if \$ac_cs_recheck; then
13211  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13212  shift
13213  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13214  CONFIG_SHELL='$SHELL'
13215  export CONFIG_SHELL
13216  exec "\$@"
13217fi
13218
13219_ACEOF
13220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221exec 5>>config.log
13222{
13223  echo
13224  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13225## Running $as_me. ##
13226_ASBOX
13227  $as_echo "$ac_log"
13228} >&5
13229
13230_ACEOF
13231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232#
13233# INIT-COMMANDS
13234#
13235AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13236
13237
13238# The HP-UX ksh and POSIX shell print the target directory to stdout
13239# if CDPATH is set.
13240(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13241
13242sed_quote_subst='$sed_quote_subst'
13243double_quote_subst='$double_quote_subst'
13244delay_variable_subst='$delay_variable_subst'
13245macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13246macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13247AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13248DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13249OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13250enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13251enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13252pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13253enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13254SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13255ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13256PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13257host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13258host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13259host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13260build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13261build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13262build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13263SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13264Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13265GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13266EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13267FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13268LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13269NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13270LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13271max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13272ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13273exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13274lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13275lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13276lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13277lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13278lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13279reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13280reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13281deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13282file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13283file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13284want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13285sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13286AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13287AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13288archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13289STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13290RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13291old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13292old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13293old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13294lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13295CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13296CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13297compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13298GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13299lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13300lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13301lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13302lt_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"`'
13303nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13304lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13305objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13306MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13307lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13308lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13309lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13310lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13311lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13312need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13313MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13314DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13315NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13316LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13317OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13318OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13319libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13320shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13321extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13322archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13323enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13324export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13325whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13326compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13327old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13328old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13329archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13330archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13331module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13332module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13333with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13334allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13335no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13336hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13337hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13338hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13339hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13340hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13341hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13342hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13343inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13344link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13345always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13346export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13347exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13348include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13349prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13350postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13351file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13352variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13353need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13354need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13355version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13356runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13357shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13358shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13359libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13360library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13361soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13362install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13363postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13364postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13365finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13366finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13367hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13368sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13369sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13370hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13371enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13372enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13373enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13374old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13375striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13376
13377LTCC='$LTCC'
13378LTCFLAGS='$LTCFLAGS'
13379compiler='$compiler_DEFAULT'
13380
13381# A function that is used when there is no print builtin or printf.
13382func_fallback_echo ()
13383{
13384  eval 'cat <<_LTECHO_EOF
13385\$1
13386_LTECHO_EOF'
13387}
13388
13389# Quote evaled strings.
13390for var in AS \
13391DLLTOOL \
13392OBJDUMP \
13393SHELL \
13394ECHO \
13395PATH_SEPARATOR \
13396SED \
13397GREP \
13398EGREP \
13399FGREP \
13400LD \
13401NM \
13402LN_S \
13403lt_SP2NL \
13404lt_NL2SP \
13405reload_flag \
13406deplibs_check_method \
13407file_magic_cmd \
13408file_magic_glob \
13409want_nocaseglob \
13410sharedlib_from_linklib_cmd \
13411AR \
13412AR_FLAGS \
13413archiver_list_spec \
13414STRIP \
13415RANLIB \
13416CC \
13417CFLAGS \
13418compiler \
13419lt_cv_sys_global_symbol_pipe \
13420lt_cv_sys_global_symbol_to_cdecl \
13421lt_cv_sys_global_symbol_to_c_name_address \
13422lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13423nm_file_list_spec \
13424lt_prog_compiler_no_builtin_flag \
13425lt_prog_compiler_pic \
13426lt_prog_compiler_wl \
13427lt_prog_compiler_static \
13428lt_cv_prog_compiler_c_o \
13429need_locks \
13430MANIFEST_TOOL \
13431DSYMUTIL \
13432NMEDIT \
13433LIPO \
13434OTOOL \
13435OTOOL64 \
13436shrext_cmds \
13437export_dynamic_flag_spec \
13438whole_archive_flag_spec \
13439compiler_needs_object \
13440with_gnu_ld \
13441allow_undefined_flag \
13442no_undefined_flag \
13443hardcode_libdir_flag_spec \
13444hardcode_libdir_separator \
13445exclude_expsyms \
13446include_expsyms \
13447file_list_spec \
13448variables_saved_for_relink \
13449libname_spec \
13450library_names_spec \
13451soname_spec \
13452install_override_mode \
13453finish_eval \
13454old_striplib \
13455striplib; do
13456    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13457    *[\\\\\\\`\\"\\\$]*)
13458      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13459      ;;
13460    *)
13461      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13462      ;;
13463    esac
13464done
13465
13466# Double-quote double-evaled strings.
13467for var in reload_cmds \
13468old_postinstall_cmds \
13469old_postuninstall_cmds \
13470old_archive_cmds \
13471extract_expsyms_cmds \
13472old_archive_from_new_cmds \
13473old_archive_from_expsyms_cmds \
13474archive_cmds \
13475archive_expsym_cmds \
13476module_cmds \
13477module_expsym_cmds \
13478export_symbols_cmds \
13479prelink_cmds \
13480postlink_cmds \
13481postinstall_cmds \
13482postuninstall_cmds \
13483finish_cmds \
13484sys_lib_search_path_spec \
13485sys_lib_dlsearch_path_spec; do
13486    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13487    *[\\\\\\\`\\"\\\$]*)
13488      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13489      ;;
13490    *)
13491      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13492      ;;
13493    esac
13494done
13495
13496ac_aux_dir='$ac_aux_dir'
13497xsi_shell='$xsi_shell'
13498lt_shell_append='$lt_shell_append'
13499
13500# See if we are running on zsh, and set the options which allow our
13501# commands through without removal of \ escapes INIT.
13502if test -n "\${ZSH_VERSION+set}" ; then
13503   setopt NO_GLOB_SUBST
13504fi
13505
13506
13507    PACKAGE='$PACKAGE'
13508    VERSION='$VERSION'
13509    TIMESTAMP='$TIMESTAMP'
13510    RM='$RM'
13511    ofile='$ofile'
13512
13513
13514
13515
13516_ACEOF
13517
13518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519
13520# Handling of arguments.
13521for ac_config_target in $ac_config_targets
13522do
13523  case $ac_config_target in
13524    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13525    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13526    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13527    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13528
13529  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13530  esac
13531done
13532
13533
13534# If the user did not use the arguments to specify the items to instantiate,
13535# then the envvar interface is used.  Set only those that are not.
13536# We use the long form for the default assignment because of an extremely
13537# bizarre bug on SunOS 4.1.3.
13538if $ac_need_defaults; then
13539  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13540  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13541  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13542fi
13543
13544# Have a temporary directory for convenience.  Make it in the build tree
13545# simply because there is no reason against having it here, and in addition,
13546# creating and moving files from /tmp can sometimes cause problems.
13547# Hook for its removal unless debugging.
13548# Note that there is a small window in which the directory will not be cleaned:
13549# after its creation but before its name has been assigned to `$tmp'.
13550$debug ||
13551{
13552  tmp= ac_tmp=
13553  trap 'exit_status=$?
13554  : "${ac_tmp:=$tmp}"
13555  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13556' 0
13557  trap 'as_fn_exit 1' 1 2 13 15
13558}
13559# Create a (secure) tmp directory for tmp files.
13560
13561{
13562  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13563  test -d "$tmp"
13564}  ||
13565{
13566  tmp=./conf$$-$RANDOM
13567  (umask 077 && mkdir "$tmp")
13568} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13569ac_tmp=$tmp
13570
13571# Set up the scripts for CONFIG_FILES section.
13572# No need to generate them if there are no CONFIG_FILES.
13573# This happens for instance with `./config.status config.h'.
13574if test -n "$CONFIG_FILES"; then
13575
13576
13577ac_cr=`echo X | tr X '\015'`
13578# On cygwin, bash can eat \r inside `` if the user requested igncr.
13579# But we know of no other shell where ac_cr would be empty at this
13580# point, so we can use a bashism as a fallback.
13581if test "x$ac_cr" = x; then
13582  eval ac_cr=\$\'\\r\'
13583fi
13584ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13585if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13586  ac_cs_awk_cr='\\r'
13587else
13588  ac_cs_awk_cr=$ac_cr
13589fi
13590
13591echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13592_ACEOF
13593
13594
13595{
13596  echo "cat >conf$$subs.awk <<_ACEOF" &&
13597  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13598  echo "_ACEOF"
13599} >conf$$subs.sh ||
13600  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13601ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13602ac_delim='%!_!# '
13603for ac_last_try in false false false false false :; do
13604  . ./conf$$subs.sh ||
13605    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13606
13607  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13608  if test $ac_delim_n = $ac_delim_num; then
13609    break
13610  elif $ac_last_try; then
13611    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13612  else
13613    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13614  fi
13615done
13616rm -f conf$$subs.sh
13617
13618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13619cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13620_ACEOF
13621sed -n '
13622h
13623s/^/S["/; s/!.*/"]=/
13624p
13625g
13626s/^[^!]*!//
13627:repl
13628t repl
13629s/'"$ac_delim"'$//
13630t delim
13631:nl
13632h
13633s/\(.\{148\}\)..*/\1/
13634t more1
13635s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13636p
13637n
13638b repl
13639:more1
13640s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13641p
13642g
13643s/.\{148\}//
13644t nl
13645:delim
13646h
13647s/\(.\{148\}\)..*/\1/
13648t more2
13649s/["\\]/\\&/g; s/^/"/; s/$/"/
13650p
13651b
13652:more2
13653s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13654p
13655g
13656s/.\{148\}//
13657t delim
13658' <conf$$subs.awk | sed '
13659/^[^""]/{
13660  N
13661  s/\n//
13662}
13663' >>$CONFIG_STATUS || ac_write_fail=1
13664rm -f conf$$subs.awk
13665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13666_ACAWK
13667cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13668  for (key in S) S_is_set[key] = 1
13669  FS = ""
13670
13671}
13672{
13673  line = $ 0
13674  nfields = split(line, field, "@")
13675  substed = 0
13676  len = length(field[1])
13677  for (i = 2; i < nfields; i++) {
13678    key = field[i]
13679    keylen = length(key)
13680    if (S_is_set[key]) {
13681      value = S[key]
13682      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13683      len += length(value) + length(field[++i])
13684      substed = 1
13685    } else
13686      len += 1 + keylen
13687  }
13688
13689  print line
13690}
13691
13692_ACAWK
13693_ACEOF
13694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13695if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13696  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13697else
13698  cat
13699fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13700  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13701_ACEOF
13702
13703# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13704# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13705# trailing colons and then remove the whole line if VPATH becomes empty
13706# (actually we leave an empty line to preserve line numbers).
13707if test "x$srcdir" = x.; then
13708  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13709h
13710s///
13711s/^/:/
13712s/[	 ]*$/:/
13713s/:\$(srcdir):/:/g
13714s/:\${srcdir}:/:/g
13715s/:@srcdir@:/:/g
13716s/^:*//
13717s/:*$//
13718x
13719s/\(=[	 ]*\).*/\1/
13720G
13721s/\n//
13722s/^[^=]*=[	 ]*$//
13723}'
13724fi
13725
13726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13727fi # test -n "$CONFIG_FILES"
13728
13729# Set up the scripts for CONFIG_HEADERS section.
13730# No need to generate them if there are no CONFIG_HEADERS.
13731# This happens for instance with `./config.status Makefile'.
13732if test -n "$CONFIG_HEADERS"; then
13733cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13734BEGIN {
13735_ACEOF
13736
13737# Transform confdefs.h into an awk script `defines.awk', embedded as
13738# here-document in config.status, that substitutes the proper values into
13739# config.h.in to produce config.h.
13740
13741# Create a delimiter string that does not exist in confdefs.h, to ease
13742# handling of long lines.
13743ac_delim='%!_!# '
13744for ac_last_try in false false :; do
13745  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13746  if test -z "$ac_tt"; then
13747    break
13748  elif $ac_last_try; then
13749    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13750  else
13751    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13752  fi
13753done
13754
13755# For the awk script, D is an array of macro values keyed by name,
13756# likewise P contains macro parameters if any.  Preserve backslash
13757# newline sequences.
13758
13759ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13760sed -n '
13761s/.\{148\}/&'"$ac_delim"'/g
13762t rset
13763:rset
13764s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13765t def
13766d
13767:def
13768s/\\$//
13769t bsnl
13770s/["\\]/\\&/g
13771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13772D["\1"]=" \3"/p
13773s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13774d
13775:bsnl
13776s/["\\]/\\&/g
13777s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13778D["\1"]=" \3\\\\\\n"\\/p
13779t cont
13780s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13781t cont
13782d
13783:cont
13784n
13785s/.\{148\}/&'"$ac_delim"'/g
13786t clear
13787:clear
13788s/\\$//
13789t bsnlc
13790s/["\\]/\\&/g; s/^/"/; s/$/"/p
13791d
13792:bsnlc
13793s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13794b cont
13795' <confdefs.h | sed '
13796s/'"$ac_delim"'/"\\\
13797"/g' >>$CONFIG_STATUS || ac_write_fail=1
13798
13799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13800  for (key in D) D_is_set[key] = 1
13801  FS = ""
13802}
13803/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13804  line = \$ 0
13805  split(line, arg, " ")
13806  if (arg[1] == "#") {
13807    defundef = arg[2]
13808    mac1 = arg[3]
13809  } else {
13810    defundef = substr(arg[1], 2)
13811    mac1 = arg[2]
13812  }
13813  split(mac1, mac2, "(") #)
13814  macro = mac2[1]
13815  prefix = substr(line, 1, index(line, defundef) - 1)
13816  if (D_is_set[macro]) {
13817    # Preserve the white space surrounding the "#".
13818    print prefix "define", macro P[macro] D[macro]
13819    next
13820  } else {
13821    # Replace #undef with comments.  This is necessary, for example,
13822    # in the case of _POSIX_SOURCE, which is predefined and required
13823    # on some systems where configure will not decide to define it.
13824    if (defundef == "undef") {
13825      print "/*", prefix defundef, macro, "*/"
13826      next
13827    }
13828  }
13829}
13830{ print }
13831_ACAWK
13832_ACEOF
13833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13834  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13835fi # test -n "$CONFIG_HEADERS"
13836
13837
13838eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13839shift
13840for ac_tag
13841do
13842  case $ac_tag in
13843  :[FHLC]) ac_mode=$ac_tag; continue;;
13844  esac
13845  case $ac_mode$ac_tag in
13846  :[FHL]*:*);;
13847  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13848  :[FH]-) ac_tag=-:-;;
13849  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13850  esac
13851  ac_save_IFS=$IFS
13852  IFS=:
13853  set x $ac_tag
13854  IFS=$ac_save_IFS
13855  shift
13856  ac_file=$1
13857  shift
13858
13859  case $ac_mode in
13860  :L) ac_source=$1;;
13861  :[FH])
13862    ac_file_inputs=
13863    for ac_f
13864    do
13865      case $ac_f in
13866      -) ac_f="$ac_tmp/stdin";;
13867      *) # Look for the file first in the build tree, then in the source tree
13868	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13869	 # because $ac_f cannot contain `:'.
13870	 test -f "$ac_f" ||
13871	   case $ac_f in
13872	   [\\/$]*) false;;
13873	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13874	   esac ||
13875	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13876      esac
13877      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13878      as_fn_append ac_file_inputs " '$ac_f'"
13879    done
13880
13881    # Let's still pretend it is `configure' which instantiates (i.e., don't
13882    # use $as_me), people would be surprised to read:
13883    #    /* config.h.  Generated by config.status.  */
13884    configure_input='Generated from '`
13885	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13886	`' by configure.'
13887    if test x"$ac_file" != x-; then
13888      configure_input="$ac_file.  $configure_input"
13889      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13890$as_echo "$as_me: creating $ac_file" >&6;}
13891    fi
13892    # Neutralize special characters interpreted by sed in replacement strings.
13893    case $configure_input in #(
13894    *\&* | *\|* | *\\* )
13895       ac_sed_conf_input=`$as_echo "$configure_input" |
13896       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13897    *) ac_sed_conf_input=$configure_input;;
13898    esac
13899
13900    case $ac_tag in
13901    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13902      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13903    esac
13904    ;;
13905  esac
13906
13907  ac_dir=`$as_dirname -- "$ac_file" ||
13908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13909	 X"$ac_file" : 'X\(//\)[^/]' \| \
13910	 X"$ac_file" : 'X\(//\)$' \| \
13911	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13912$as_echo X"$ac_file" |
13913    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13914	    s//\1/
13915	    q
13916	  }
13917	  /^X\(\/\/\)[^/].*/{
13918	    s//\1/
13919	    q
13920	  }
13921	  /^X\(\/\/\)$/{
13922	    s//\1/
13923	    q
13924	  }
13925	  /^X\(\/\).*/{
13926	    s//\1/
13927	    q
13928	  }
13929	  s/.*/./; q'`
13930  as_dir="$ac_dir"; as_fn_mkdir_p
13931  ac_builddir=.
13932
13933case "$ac_dir" in
13934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13935*)
13936  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13937  # A ".." for each directory in $ac_dir_suffix.
13938  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13939  case $ac_top_builddir_sub in
13940  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13941  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13942  esac ;;
13943esac
13944ac_abs_top_builddir=$ac_pwd
13945ac_abs_builddir=$ac_pwd$ac_dir_suffix
13946# for backward compatibility:
13947ac_top_builddir=$ac_top_build_prefix
13948
13949case $srcdir in
13950  .)  # We are building in place.
13951    ac_srcdir=.
13952    ac_top_srcdir=$ac_top_builddir_sub
13953    ac_abs_top_srcdir=$ac_pwd ;;
13954  [\\/]* | ?:[\\/]* )  # Absolute name.
13955    ac_srcdir=$srcdir$ac_dir_suffix;
13956    ac_top_srcdir=$srcdir
13957    ac_abs_top_srcdir=$srcdir ;;
13958  *) # Relative name.
13959    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13960    ac_top_srcdir=$ac_top_build_prefix$srcdir
13961    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13962esac
13963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13964
13965
13966  case $ac_mode in
13967  :F)
13968  #
13969  # CONFIG_FILE
13970  #
13971
13972  case $INSTALL in
13973  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13974  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13975  esac
13976  ac_MKDIR_P=$MKDIR_P
13977  case $MKDIR_P in
13978  [\\/$]* | ?:[\\/]* ) ;;
13979  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13980  esac
13981_ACEOF
13982
13983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984# If the template does not know about datarootdir, expand it.
13985# FIXME: This hack should be removed a few years after 2.60.
13986ac_datarootdir_hack=; ac_datarootdir_seen=
13987ac_sed_dataroot='
13988/datarootdir/ {
13989  p
13990  q
13991}
13992/@datadir@/p
13993/@docdir@/p
13994/@infodir@/p
13995/@localedir@/p
13996/@mandir@/p'
13997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13998*datarootdir*) ac_datarootdir_seen=yes;;
13999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14000  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14001$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14002_ACEOF
14003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004  ac_datarootdir_hack='
14005  s&@datadir@&$datadir&g
14006  s&@docdir@&$docdir&g
14007  s&@infodir@&$infodir&g
14008  s&@localedir@&$localedir&g
14009  s&@mandir@&$mandir&g
14010  s&\\\${datarootdir}&$datarootdir&g' ;;
14011esac
14012_ACEOF
14013
14014# Neutralize VPATH when `$srcdir' = `.'.
14015# Shell code in configure.ac might set extrasub.
14016# FIXME: do we really want to maintain this feature?
14017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14018ac_sed_extra="$ac_vpsub
14019$extrasub
14020_ACEOF
14021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14022:t
14023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14024s|@configure_input@|$ac_sed_conf_input|;t t
14025s&@top_builddir@&$ac_top_builddir_sub&;t t
14026s&@top_build_prefix@&$ac_top_build_prefix&;t t
14027s&@srcdir@&$ac_srcdir&;t t
14028s&@abs_srcdir@&$ac_abs_srcdir&;t t
14029s&@top_srcdir@&$ac_top_srcdir&;t t
14030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14031s&@builddir@&$ac_builddir&;t t
14032s&@abs_builddir@&$ac_abs_builddir&;t t
14033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14034s&@INSTALL@&$ac_INSTALL&;t t
14035s&@MKDIR_P@&$ac_MKDIR_P&;t t
14036$ac_datarootdir_hack
14037"
14038eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14039  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14040
14041test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14042  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14043  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14044      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14045  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14046which seems to be undefined.  Please make sure it is defined" >&5
14047$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14048which seems to be undefined.  Please make sure it is defined" >&2;}
14049
14050  rm -f "$ac_tmp/stdin"
14051  case $ac_file in
14052  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14053  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14054  esac \
14055  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14056 ;;
14057  :H)
14058  #
14059  # CONFIG_HEADER
14060  #
14061  if test x"$ac_file" != x-; then
14062    {
14063      $as_echo "/* $configure_input  */" \
14064      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14065    } >"$ac_tmp/config.h" \
14066      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14067    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14068      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14069$as_echo "$as_me: $ac_file is unchanged" >&6;}
14070    else
14071      rm -f "$ac_file"
14072      mv "$ac_tmp/config.h" "$ac_file" \
14073	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14074    fi
14075  else
14076    $as_echo "/* $configure_input  */" \
14077      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14078      || as_fn_error $? "could not create -" "$LINENO" 5
14079  fi
14080# Compute "$ac_file"'s index in $config_headers.
14081_am_arg="$ac_file"
14082_am_stamp_count=1
14083for _am_header in $config_headers :; do
14084  case $_am_header in
14085    $_am_arg | $_am_arg:* )
14086      break ;;
14087    * )
14088      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14089  esac
14090done
14091echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14092$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14093	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14094	 X"$_am_arg" : 'X\(//\)$' \| \
14095	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14096$as_echo X"$_am_arg" |
14097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14098	    s//\1/
14099	    q
14100	  }
14101	  /^X\(\/\/\)[^/].*/{
14102	    s//\1/
14103	    q
14104	  }
14105	  /^X\(\/\/\)$/{
14106	    s//\1/
14107	    q
14108	  }
14109	  /^X\(\/\).*/{
14110	    s//\1/
14111	    q
14112	  }
14113	  s/.*/./; q'`/stamp-h$_am_stamp_count
14114 ;;
14115
14116  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14117$as_echo "$as_me: executing $ac_file commands" >&6;}
14118 ;;
14119  esac
14120
14121
14122  case $ac_file$ac_mode in
14123    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14124  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14125  # are listed without --file.  Let's play safe and only enable the eval
14126  # if we detect the quoting.
14127  case $CONFIG_FILES in
14128  *\'*) eval set x "$CONFIG_FILES" ;;
14129  *)   set x $CONFIG_FILES ;;
14130  esac
14131  shift
14132  for mf
14133  do
14134    # Strip MF so we end up with the name of the file.
14135    mf=`echo "$mf" | sed -e 's/:.*$//'`
14136    # Check whether this is an Automake generated Makefile or not.
14137    # We used to match only the files named `Makefile.in', but
14138    # some people rename them; so instead we look at the file content.
14139    # Grep'ing the first line is not enough: some people post-process
14140    # each Makefile.in and add a new line on top of each file to say so.
14141    # Grep'ing the whole file is not good either: AIX grep has a line
14142    # limit of 2048, but all sed's we know have understand at least 4000.
14143    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14144      dirpart=`$as_dirname -- "$mf" ||
14145$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14146	 X"$mf" : 'X\(//\)[^/]' \| \
14147	 X"$mf" : 'X\(//\)$' \| \
14148	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14149$as_echo X"$mf" |
14150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14151	    s//\1/
14152	    q
14153	  }
14154	  /^X\(\/\/\)[^/].*/{
14155	    s//\1/
14156	    q
14157	  }
14158	  /^X\(\/\/\)$/{
14159	    s//\1/
14160	    q
14161	  }
14162	  /^X\(\/\).*/{
14163	    s//\1/
14164	    q
14165	  }
14166	  s/.*/./; q'`
14167    else
14168      continue
14169    fi
14170    # Extract the definition of DEPDIR, am__include, and am__quote
14171    # from the Makefile without running `make'.
14172    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14173    test -z "$DEPDIR" && continue
14174    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14175    test -z "am__include" && continue
14176    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14177    # When using ansi2knr, U may be empty or an underscore; expand it
14178    U=`sed -n 's/^U = //p' < "$mf"`
14179    # Find all dependency output files, they are included files with
14180    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14181    # simplest approach to changing $(DEPDIR) to its actual value in the
14182    # expansion.
14183    for file in `sed -n "
14184      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14185	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14186      # Make sure the directory exists.
14187      test -f "$dirpart/$file" && continue
14188      fdir=`$as_dirname -- "$file" ||
14189$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14190	 X"$file" : 'X\(//\)[^/]' \| \
14191	 X"$file" : 'X\(//\)$' \| \
14192	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14193$as_echo X"$file" |
14194    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14195	    s//\1/
14196	    q
14197	  }
14198	  /^X\(\/\/\)[^/].*/{
14199	    s//\1/
14200	    q
14201	  }
14202	  /^X\(\/\/\)$/{
14203	    s//\1/
14204	    q
14205	  }
14206	  /^X\(\/\).*/{
14207	    s//\1/
14208	    q
14209	  }
14210	  s/.*/./; q'`
14211      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14212      # echo "creating $dirpart/$file"
14213      echo '# dummy' > "$dirpart/$file"
14214    done
14215  done
14216}
14217 ;;
14218    "libtool":C)
14219
14220    # See if we are running on zsh, and set the options which allow our
14221    # commands through without removal of \ escapes.
14222    if test -n "${ZSH_VERSION+set}" ; then
14223      setopt NO_GLOB_SUBST
14224    fi
14225
14226    cfgfile="${ofile}T"
14227    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14228    $RM "$cfgfile"
14229
14230    cat <<_LT_EOF >> "$cfgfile"
14231#! $SHELL
14232
14233# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14234# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14236# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14237#
14238#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14239#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14240#                 Foundation, Inc.
14241#   Written by Gordon Matzigkeit, 1996
14242#
14243#   This file is part of GNU Libtool.
14244#
14245# GNU Libtool is free software; you can redistribute it and/or
14246# modify it under the terms of the GNU General Public License as
14247# published by the Free Software Foundation; either version 2 of
14248# the License, or (at your option) any later version.
14249#
14250# As a special exception to the GNU General Public License,
14251# if you distribute this file as part of a program or library that
14252# is built using GNU Libtool, you may include this file under the
14253# same distribution terms that you use for the rest of that program.
14254#
14255# GNU Libtool is distributed in the hope that it will be useful,
14256# but WITHOUT ANY WARRANTY; without even the implied warranty of
14257# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14258# GNU General Public License for more details.
14259#
14260# You should have received a copy of the GNU General Public License
14261# along with GNU Libtool; see the file COPYING.  If not, a copy
14262# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14263# obtained by writing to the Free Software Foundation, Inc.,
14264# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14265
14266
14267# The names of the tagged configurations supported by this script.
14268available_tags=""
14269
14270# ### BEGIN LIBTOOL CONFIG
14271
14272# Which release of libtool.m4 was used?
14273macro_version=$macro_version
14274macro_revision=$macro_revision
14275
14276# Assembler program.
14277AS=$lt_AS
14278
14279# DLL creation program.
14280DLLTOOL=$lt_DLLTOOL
14281
14282# Object dumper program.
14283OBJDUMP=$lt_OBJDUMP
14284
14285# Whether or not to build shared libraries.
14286build_libtool_libs=$enable_shared
14287
14288# Whether or not to build static libraries.
14289build_old_libs=$enable_static
14290
14291# What type of objects to build.
14292pic_mode=$pic_mode
14293
14294# Whether or not to optimize for fast installation.
14295fast_install=$enable_fast_install
14296
14297# Shell to use when invoking shell scripts.
14298SHELL=$lt_SHELL
14299
14300# An echo program that protects backslashes.
14301ECHO=$lt_ECHO
14302
14303# The PATH separator for the build system.
14304PATH_SEPARATOR=$lt_PATH_SEPARATOR
14305
14306# The host system.
14307host_alias=$host_alias
14308host=$host
14309host_os=$host_os
14310
14311# The build system.
14312build_alias=$build_alias
14313build=$build
14314build_os=$build_os
14315
14316# A sed program that does not truncate output.
14317SED=$lt_SED
14318
14319# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14320Xsed="\$SED -e 1s/^X//"
14321
14322# A grep program that handles long lines.
14323GREP=$lt_GREP
14324
14325# An ERE matcher.
14326EGREP=$lt_EGREP
14327
14328# A literal string matcher.
14329FGREP=$lt_FGREP
14330
14331# A BSD- or MS-compatible name lister.
14332NM=$lt_NM
14333
14334# Whether we need soft or hard links.
14335LN_S=$lt_LN_S
14336
14337# What is the maximum length of a command?
14338max_cmd_len=$max_cmd_len
14339
14340# Object file suffix (normally "o").
14341objext=$ac_objext
14342
14343# Executable file suffix (normally "").
14344exeext=$exeext
14345
14346# whether the shell understands "unset".
14347lt_unset=$lt_unset
14348
14349# turn spaces into newlines.
14350SP2NL=$lt_lt_SP2NL
14351
14352# turn newlines into spaces.
14353NL2SP=$lt_lt_NL2SP
14354
14355# convert \$build file names to \$host format.
14356to_host_file_cmd=$lt_cv_to_host_file_cmd
14357
14358# convert \$build files to toolchain format.
14359to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14360
14361# Method to check whether dependent libraries are shared objects.
14362deplibs_check_method=$lt_deplibs_check_method
14363
14364# Command to use when deplibs_check_method = "file_magic".
14365file_magic_cmd=$lt_file_magic_cmd
14366
14367# How to find potential files when deplibs_check_method = "file_magic".
14368file_magic_glob=$lt_file_magic_glob
14369
14370# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14371want_nocaseglob=$lt_want_nocaseglob
14372
14373# Command to associate shared and link libraries.
14374sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14375
14376# The archiver.
14377AR=$lt_AR
14378
14379# Flags to create an archive.
14380AR_FLAGS=$lt_AR_FLAGS
14381
14382# How to feed a file listing to the archiver.
14383archiver_list_spec=$lt_archiver_list_spec
14384
14385# A symbol stripping program.
14386STRIP=$lt_STRIP
14387
14388# Commands used to install an old-style archive.
14389RANLIB=$lt_RANLIB
14390old_postinstall_cmds=$lt_old_postinstall_cmds
14391old_postuninstall_cmds=$lt_old_postuninstall_cmds
14392
14393# Whether to use a lock for old archive extraction.
14394lock_old_archive_extraction=$lock_old_archive_extraction
14395
14396# A C compiler.
14397LTCC=$lt_CC
14398
14399# LTCC compiler flags.
14400LTCFLAGS=$lt_CFLAGS
14401
14402# Take the output of nm and produce a listing of raw symbols and C names.
14403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14404
14405# Transform the output of nm in a proper C declaration.
14406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14407
14408# Transform the output of nm in a C name address pair.
14409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14410
14411# Transform the output of nm in a C name address pair when lib prefix is needed.
14412global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14413
14414# Specify filename containing input files for \$NM.
14415nm_file_list_spec=$lt_nm_file_list_spec
14416
14417# The root where to search for dependent libraries,and in which our libraries should be installed.
14418lt_sysroot=$lt_sysroot
14419
14420# The name of the directory that contains temporary libtool files.
14421objdir=$objdir
14422
14423# Used to examine libraries when file_magic_cmd begins with "file".
14424MAGIC_CMD=$MAGIC_CMD
14425
14426# Must we lock files when doing compilation?
14427need_locks=$lt_need_locks
14428
14429# Manifest tool.
14430MANIFEST_TOOL=$lt_MANIFEST_TOOL
14431
14432# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14433DSYMUTIL=$lt_DSYMUTIL
14434
14435# Tool to change global to local symbols on Mac OS X.
14436NMEDIT=$lt_NMEDIT
14437
14438# Tool to manipulate fat objects and archives on Mac OS X.
14439LIPO=$lt_LIPO
14440
14441# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14442OTOOL=$lt_OTOOL
14443
14444# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14445OTOOL64=$lt_OTOOL64
14446
14447# Old archive suffix (normally "a").
14448libext=$libext
14449
14450# Shared library suffix (normally ".so").
14451shrext_cmds=$lt_shrext_cmds
14452
14453# The commands to extract the exported symbol list from a shared archive.
14454extract_expsyms_cmds=$lt_extract_expsyms_cmds
14455
14456# Variables whose values should be saved in libtool wrapper scripts and
14457# restored at link time.
14458variables_saved_for_relink=$lt_variables_saved_for_relink
14459
14460# Do we need the "lib" prefix for modules?
14461need_lib_prefix=$need_lib_prefix
14462
14463# Do we need a version for libraries?
14464need_version=$need_version
14465
14466# Library versioning type.
14467version_type=$version_type
14468
14469# Shared library runtime path variable.
14470runpath_var=$runpath_var
14471
14472# Shared library path variable.
14473shlibpath_var=$shlibpath_var
14474
14475# Is shlibpath searched before the hard-coded library search path?
14476shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14477
14478# Format of library name prefix.
14479libname_spec=$lt_libname_spec
14480
14481# List of archive names.  First name is the real one, the rest are links.
14482# The last name is the one that the linker finds with -lNAME
14483library_names_spec=$lt_library_names_spec
14484
14485# The coded name of the library, if different from the real name.
14486soname_spec=$lt_soname_spec
14487
14488# Permission mode override for installation of shared libraries.
14489install_override_mode=$lt_install_override_mode
14490
14491# Command to use after installation of a shared archive.
14492postinstall_cmds=$lt_postinstall_cmds
14493
14494# Command to use after uninstallation of a shared archive.
14495postuninstall_cmds=$lt_postuninstall_cmds
14496
14497# Commands used to finish a libtool library installation in a directory.
14498finish_cmds=$lt_finish_cmds
14499
14500# As "finish_cmds", except a single script fragment to be evaled but
14501# not shown.
14502finish_eval=$lt_finish_eval
14503
14504# Whether we should hardcode library paths into libraries.
14505hardcode_into_libs=$hardcode_into_libs
14506
14507# Compile-time system search path for libraries.
14508sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14509
14510# Run-time system search path for libraries.
14511sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14512
14513# Whether dlopen is supported.
14514dlopen_support=$enable_dlopen
14515
14516# Whether dlopen of programs is supported.
14517dlopen_self=$enable_dlopen_self
14518
14519# Whether dlopen of statically linked programs is supported.
14520dlopen_self_static=$enable_dlopen_self_static
14521
14522# Commands to strip libraries.
14523old_striplib=$lt_old_striplib
14524striplib=$lt_striplib
14525
14526
14527# The linker used to build libraries.
14528LD=$lt_LD
14529
14530# How to create reloadable object files.
14531reload_flag=$lt_reload_flag
14532reload_cmds=$lt_reload_cmds
14533
14534# Commands used to build an old-style archive.
14535old_archive_cmds=$lt_old_archive_cmds
14536
14537# A language specific compiler.
14538CC=$lt_compiler
14539
14540# Is the compiler the GNU compiler?
14541with_gcc=$GCC
14542
14543# Compiler flag to turn off builtin functions.
14544no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14545
14546# Additional compiler flags for building library objects.
14547pic_flag=$lt_lt_prog_compiler_pic
14548
14549# How to pass a linker flag through the compiler.
14550wl=$lt_lt_prog_compiler_wl
14551
14552# Compiler flag to prevent dynamic linking.
14553link_static_flag=$lt_lt_prog_compiler_static
14554
14555# Does compiler simultaneously support -c and -o options?
14556compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14557
14558# Whether or not to add -lc for building shared libraries.
14559build_libtool_need_lc=$archive_cmds_need_lc
14560
14561# Whether or not to disallow shared libs when runtime libs are static.
14562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14563
14564# Compiler flag to allow reflexive dlopens.
14565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14566
14567# Compiler flag to generate shared objects directly from archives.
14568whole_archive_flag_spec=$lt_whole_archive_flag_spec
14569
14570# Whether the compiler copes with passing no objects directly.
14571compiler_needs_object=$lt_compiler_needs_object
14572
14573# Create an old-style archive from a shared archive.
14574old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14575
14576# Create a temporary old-style archive to link instead of a shared archive.
14577old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14578
14579# Commands used to build a shared archive.
14580archive_cmds=$lt_archive_cmds
14581archive_expsym_cmds=$lt_archive_expsym_cmds
14582
14583# Commands used to build a loadable module if different from building
14584# a shared archive.
14585module_cmds=$lt_module_cmds
14586module_expsym_cmds=$lt_module_expsym_cmds
14587
14588# Whether we are building with GNU ld or not.
14589with_gnu_ld=$lt_with_gnu_ld
14590
14591# Flag that allows shared libraries with undefined symbols to be built.
14592allow_undefined_flag=$lt_allow_undefined_flag
14593
14594# Flag that enforces no undefined symbols.
14595no_undefined_flag=$lt_no_undefined_flag
14596
14597# Flag to hardcode \$libdir into a binary during linking.
14598# This must work even if \$libdir does not exist
14599hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14600
14601# Whether we need a single "-rpath" flag with a separated argument.
14602hardcode_libdir_separator=$lt_hardcode_libdir_separator
14603
14604# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14605# DIR into the resulting binary.
14606hardcode_direct=$hardcode_direct
14607
14608# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14609# DIR into the resulting binary and the resulting library dependency is
14610# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14611# library is relocated.
14612hardcode_direct_absolute=$hardcode_direct_absolute
14613
14614# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14615# into the resulting binary.
14616hardcode_minus_L=$hardcode_minus_L
14617
14618# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14619# into the resulting binary.
14620hardcode_shlibpath_var=$hardcode_shlibpath_var
14621
14622# Set to "yes" if building a shared library automatically hardcodes DIR
14623# into the library and all subsequent libraries and executables linked
14624# against it.
14625hardcode_automatic=$hardcode_automatic
14626
14627# Set to yes if linker adds runtime paths of dependent libraries
14628# to runtime path list.
14629inherit_rpath=$inherit_rpath
14630
14631# Whether libtool must link a program against all its dependency libraries.
14632link_all_deplibs=$link_all_deplibs
14633
14634# Set to "yes" if exported symbols are required.
14635always_export_symbols=$always_export_symbols
14636
14637# The commands to list exported symbols.
14638export_symbols_cmds=$lt_export_symbols_cmds
14639
14640# Symbols that should not be listed in the preloaded symbols.
14641exclude_expsyms=$lt_exclude_expsyms
14642
14643# Symbols that must always be exported.
14644include_expsyms=$lt_include_expsyms
14645
14646# Commands necessary for linking programs (against libraries) with templates.
14647prelink_cmds=$lt_prelink_cmds
14648
14649# Commands necessary for finishing linking programs.
14650postlink_cmds=$lt_postlink_cmds
14651
14652# Specify filename containing input files.
14653file_list_spec=$lt_file_list_spec
14654
14655# How to hardcode a shared library path into an executable.
14656hardcode_action=$hardcode_action
14657
14658# ### END LIBTOOL CONFIG
14659
14660_LT_EOF
14661
14662  case $host_os in
14663  aix3*)
14664    cat <<\_LT_EOF >> "$cfgfile"
14665# AIX sometimes has problems with the GCC collect2 program.  For some
14666# reason, if we set the COLLECT_NAMES environment variable, the problems
14667# vanish in a puff of smoke.
14668if test "X${COLLECT_NAMES+set}" != Xset; then
14669  COLLECT_NAMES=
14670  export COLLECT_NAMES
14671fi
14672_LT_EOF
14673    ;;
14674  esac
14675
14676
14677ltmain="$ac_aux_dir/ltmain.sh"
14678
14679
14680  # We use sed instead of cat because bash on DJGPP gets confused if
14681  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14682  # text mode, it properly converts lines to CR/LF.  This bash problem
14683  # is reportedly fixed, but why not run on old versions too?
14684  sed '$q' "$ltmain" >> "$cfgfile" \
14685     || (rm -f "$cfgfile"; exit 1)
14686
14687  if test x"$xsi_shell" = xyes; then
14688  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14689func_dirname ()\
14690{\
14691\    case ${1} in\
14692\      */*) func_dirname_result="${1%/*}${2}" ;;\
14693\      *  ) func_dirname_result="${3}" ;;\
14694\    esac\
14695} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14696  && mv -f "$cfgfile.tmp" "$cfgfile" \
14697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698test 0 -eq $? || _lt_function_replace_fail=:
14699
14700
14701  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14702func_basename ()\
14703{\
14704\    func_basename_result="${1##*/}"\
14705} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14706  && mv -f "$cfgfile.tmp" "$cfgfile" \
14707    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14708test 0 -eq $? || _lt_function_replace_fail=:
14709
14710
14711  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14712func_dirname_and_basename ()\
14713{\
14714\    case ${1} in\
14715\      */*) func_dirname_result="${1%/*}${2}" ;;\
14716\      *  ) func_dirname_result="${3}" ;;\
14717\    esac\
14718\    func_basename_result="${1##*/}"\
14719} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14720  && mv -f "$cfgfile.tmp" "$cfgfile" \
14721    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14722test 0 -eq $? || _lt_function_replace_fail=:
14723
14724
14725  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14726func_stripname ()\
14727{\
14728\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14729\    # positional parameters, so assign one to ordinary parameter first.\
14730\    func_stripname_result=${3}\
14731\    func_stripname_result=${func_stripname_result#"${1}"}\
14732\    func_stripname_result=${func_stripname_result%"${2}"}\
14733} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14734  && mv -f "$cfgfile.tmp" "$cfgfile" \
14735    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14736test 0 -eq $? || _lt_function_replace_fail=:
14737
14738
14739  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14740func_split_long_opt ()\
14741{\
14742\    func_split_long_opt_name=${1%%=*}\
14743\    func_split_long_opt_arg=${1#*=}\
14744} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14745  && mv -f "$cfgfile.tmp" "$cfgfile" \
14746    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14747test 0 -eq $? || _lt_function_replace_fail=:
14748
14749
14750  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14751func_split_short_opt ()\
14752{\
14753\    func_split_short_opt_arg=${1#??}\
14754\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14755} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14756  && mv -f "$cfgfile.tmp" "$cfgfile" \
14757    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14758test 0 -eq $? || _lt_function_replace_fail=:
14759
14760
14761  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14762func_lo2o ()\
14763{\
14764\    case ${1} in\
14765\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14766\      *)    func_lo2o_result=${1} ;;\
14767\    esac\
14768} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14769  && mv -f "$cfgfile.tmp" "$cfgfile" \
14770    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14771test 0 -eq $? || _lt_function_replace_fail=:
14772
14773
14774  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14775func_xform ()\
14776{\
14777    func_xform_result=${1%.*}.lo\
14778} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14779  && mv -f "$cfgfile.tmp" "$cfgfile" \
14780    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781test 0 -eq $? || _lt_function_replace_fail=:
14782
14783
14784  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14785func_arith ()\
14786{\
14787    func_arith_result=$(( $* ))\
14788} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14789  && mv -f "$cfgfile.tmp" "$cfgfile" \
14790    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14791test 0 -eq $? || _lt_function_replace_fail=:
14792
14793
14794  sed -e '/^func_len ()$/,/^} # func_len /c\
14795func_len ()\
14796{\
14797    func_len_result=${#1}\
14798} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14799  && mv -f "$cfgfile.tmp" "$cfgfile" \
14800    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14801test 0 -eq $? || _lt_function_replace_fail=:
14802
14803fi
14804
14805if test x"$lt_shell_append" = xyes; then
14806  sed -e '/^func_append ()$/,/^} # func_append /c\
14807func_append ()\
14808{\
14809    eval "${1}+=\\${2}"\
14810} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14811  && mv -f "$cfgfile.tmp" "$cfgfile" \
14812    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14813test 0 -eq $? || _lt_function_replace_fail=:
14814
14815
14816  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14817func_append_quoted ()\
14818{\
14819\    func_quote_for_eval "${2}"\
14820\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14821} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14822  && mv -f "$cfgfile.tmp" "$cfgfile" \
14823    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14824test 0 -eq $? || _lt_function_replace_fail=:
14825
14826
14827  # Save a `func_append' function call where possible by direct use of '+='
14828  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14829    && mv -f "$cfgfile.tmp" "$cfgfile" \
14830      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14831  test 0 -eq $? || _lt_function_replace_fail=:
14832else
14833  # Save a `func_append' function call even when '+=' is not available
14834  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14835    && mv -f "$cfgfile.tmp" "$cfgfile" \
14836      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14837  test 0 -eq $? || _lt_function_replace_fail=:
14838fi
14839
14840if test x"$_lt_function_replace_fail" = x":"; then
14841  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14842$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14843fi
14844
14845
14846   mv -f "$cfgfile" "$ofile" ||
14847    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14848  chmod +x "$ofile"
14849
14850 ;;
14851
14852  esac
14853done # for ac_tag
14854
14855
14856as_fn_exit 0
14857_ACEOF
14858ac_clean_files=$ac_clean_files_save
14859
14860test $ac_write_fail = 0 ||
14861  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14862
14863
14864# configure is writing to config.log, and then calls config.status.
14865# config.status does its own redirection, appending to config.log.
14866# Unfortunately, on DOS this fails, as config.log is still kept open
14867# by configure, so config.status won't be able to write to it; its
14868# output is simply discarded.  So we exec the FD to /dev/null,
14869# effectively closing config.log, so it can be properly (re)opened and
14870# appended to by config.status.  When coming back to configure, we
14871# need to make the FD available again.
14872if test "$no_create" != yes; then
14873  ac_cs_success=:
14874  ac_config_status_args=
14875  test "$silent" = yes &&
14876    ac_config_status_args="$ac_config_status_args --quiet"
14877  exec 5>/dev/null
14878  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14879  exec 5>>config.log
14880  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14881  # would make configure fail if this is the last instruction.
14882  $ac_cs_success || as_fn_exit 1
14883fi
14884if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14885  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14886$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14887fi
14888
14889