1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libusb 0.1.13beta.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# 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
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='libusb'
569PACKAGE_TARNAME='libusb'
570PACKAGE_VERSION='0.1.13beta'
571PACKAGE_STRING='libusb 0.1.13beta'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575ac_unique_file="usb.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615LIBOBJS
616BUILD_DOCS_FALSE
617BUILD_DOCS_TRUE
618LIBUSB_HAS_DOXYGEN
619DOXYGEN_PROJECT_NUMBER
620DOXYGEN_PROJECT_NAME
621DOXYGEN
622LIBUSB_HAVE_DOT
623JADE
624pkgconfigdir
625PKG_CONFIG
626BIGENDIAN
627CXXCPP
628am__fastdepCXX_FALSE
629am__fastdepCXX_TRUE
630CXXDEPMODE
631ac_ct_CXX
632CXXFLAGS
633CXX
634OSLIBS
635DARWIN_API_FALSE
636DARWIN_API_TRUE
637BSD_API_FALSE
638BSD_API_TRUE
639LINUX_API_FALSE
640LINUX_API_TRUE
641BSD_API
642LINUX_API
643DARWIN_API
644CPP
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650MANIFEST_TOOL
651RANLIB
652ac_ct_AR
653AR
654DLLTOOL
655OBJDUMP
656LN_S
657NM
658ac_ct_DUMPBIN
659DUMPBIN
660LD
661FGREP
662EGREP
663GREP
664SED
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689LIBTOOL
690LT_AGE
691LT_REVISION
692LT_CURRENT
693LT_RELEASE
694LIBUSB_BINARY_AGE
695LIBUSB_INTERFACE_AGE
696LIBUSB_VERSION
697LIBUSB_MICRO_VERSION
698LIBUSB_MINOR_VERSION
699LIBUSB_MAJOR_VERSION
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768enable_dependency_tracking
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772enable_debug
773with_pkgconfig
774enable_build_docs
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785CXX
786CXXFLAGS
787CCC
788CXXCPP'
789
790
791# Initialize some variables set by options.
792ac_init_help=
793ac_init_version=false
794ac_unrecognized_opts=
795ac_unrecognized_sep=
796# The variables have the same names as the options, with
797# dashes changed to underlines.
798cache_file=/dev/null
799exec_prefix=NONE
800no_create=
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
809verbose=
810x_includes=NONE
811x_libraries=NONE
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
818# (The list follows the same order as the GNU Coding Standards.)
819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
838
839ac_prev=
840ac_dashdash=
841for ac_option
842do
843  # If the previous option needs an argument, assign it.
844  if test -n "$ac_prev"; then
845    eval $ac_prev=\$ac_option
846    ac_prev=
847    continue
848  fi
849
850  case $ac_option in
851  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852  *=)   ac_optarg= ;;
853  *)    ac_optarg=yes ;;
854  esac
855
856  # Accept the important Cygnus configure options, so we can diagnose typos.
857
858  case $ac_dashdash$ac_option in
859  --)
860    ac_dashdash=yes ;;
861
862  -bindir | --bindir | --bindi | --bind | --bin | --bi)
863    ac_prev=bindir ;;
864  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865    bindir=$ac_optarg ;;
866
867  -build | --build | --buil | --bui | --bu)
868    ac_prev=build_alias ;;
869  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870    build_alias=$ac_optarg ;;
871
872  -cache-file | --cache-file | --cache-fil | --cache-fi \
873  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874    ac_prev=cache_file ;;
875  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877    cache_file=$ac_optarg ;;
878
879  --config-cache | -C)
880    cache_file=config.cache ;;
881
882  -datadir | --datadir | --datadi | --datad)
883    ac_prev=datadir ;;
884  -datadir=* | --datadir=* | --datadi=* | --datad=*)
885    datadir=$ac_optarg ;;
886
887  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888  | --dataroo | --dataro | --datar)
889    ac_prev=datarootdir ;;
890  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892    datarootdir=$ac_optarg ;;
893
894  -disable-* | --disable-*)
895    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896    # Reject names that are not valid shell variable names.
897    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898      as_fn_error $? "invalid feature name: $ac_useropt"
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=no ;;
909
910  -docdir | --docdir | --docdi | --doc | --do)
911    ac_prev=docdir ;;
912  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913    docdir=$ac_optarg ;;
914
915  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916    ac_prev=dvidir ;;
917  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918    dvidir=$ac_optarg ;;
919
920  -enable-* | --enable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: $ac_useropt"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=\$ac_optarg ;;
935
936  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938  | --exec | --exe | --ex)
939    ac_prev=exec_prefix ;;
940  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942  | --exec=* | --exe=* | --ex=*)
943    exec_prefix=$ac_optarg ;;
944
945  -gas | --gas | --ga | --g)
946    # Obsolete; use --with-gas.
947    with_gas=yes ;;
948
949  -help | --help | --hel | --he | -h)
950    ac_init_help=long ;;
951  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952    ac_init_help=recursive ;;
953  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954    ac_init_help=short ;;
955
956  -host | --host | --hos | --ho)
957    ac_prev=host_alias ;;
958  -host=* | --host=* | --hos=* | --ho=*)
959    host_alias=$ac_optarg ;;
960
961  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962    ac_prev=htmldir ;;
963  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964  | --ht=*)
965    htmldir=$ac_optarg ;;
966
967  -includedir | --includedir | --includedi | --included | --include \
968  | --includ | --inclu | --incl | --inc)
969    ac_prev=includedir ;;
970  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971  | --includ=* | --inclu=* | --incl=* | --inc=*)
972    includedir=$ac_optarg ;;
973
974  -infodir | --infodir | --infodi | --infod | --info | --inf)
975    ac_prev=infodir ;;
976  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977    infodir=$ac_optarg ;;
978
979  -libdir | --libdir | --libdi | --libd)
980    ac_prev=libdir ;;
981  -libdir=* | --libdir=* | --libdi=* | --libd=*)
982    libdir=$ac_optarg ;;
983
984  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985  | --libexe | --libex | --libe)
986    ac_prev=libexecdir ;;
987  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988  | --libexe=* | --libex=* | --libe=*)
989    libexecdir=$ac_optarg ;;
990
991  -localedir | --localedir | --localedi | --localed | --locale)
992    ac_prev=localedir ;;
993  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994    localedir=$ac_optarg ;;
995
996  -localstatedir | --localstatedir | --localstatedi | --localstated \
997  | --localstate | --localstat | --localsta | --localst | --locals)
998    ac_prev=localstatedir ;;
999  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001    localstatedir=$ac_optarg ;;
1002
1003  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004    ac_prev=mandir ;;
1005  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006    mandir=$ac_optarg ;;
1007
1008  -nfp | --nfp | --nf)
1009    # Obsolete; use --without-fp.
1010    with_fp=no ;;
1011
1012  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013  | --no-cr | --no-c | -n)
1014    no_create=yes ;;
1015
1016  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018    no_recursion=yes ;;
1019
1020  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022  | --oldin | --oldi | --old | --ol | --o)
1023    ac_prev=oldincludedir ;;
1024  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027    oldincludedir=$ac_optarg ;;
1028
1029  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030    ac_prev=prefix ;;
1031  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032    prefix=$ac_optarg ;;
1033
1034  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035  | --program-pre | --program-pr | --program-p)
1036    ac_prev=program_prefix ;;
1037  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039    program_prefix=$ac_optarg ;;
1040
1041  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042  | --program-suf | --program-su | --program-s)
1043    ac_prev=program_suffix ;;
1044  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046    program_suffix=$ac_optarg ;;
1047
1048  -program-transform-name | --program-transform-name \
1049  | --program-transform-nam | --program-transform-na \
1050  | --program-transform-n | --program-transform- \
1051  | --program-transform | --program-transfor \
1052  | --program-transfo | --program-transf \
1053  | --program-trans | --program-tran \
1054  | --progr-tra | --program-tr | --program-t)
1055    ac_prev=program_transform_name ;;
1056  -program-transform-name=* | --program-transform-name=* \
1057  | --program-transform-nam=* | --program-transform-na=* \
1058  | --program-transform-n=* | --program-transform-=* \
1059  | --program-transform=* | --program-transfor=* \
1060  | --program-transfo=* | --program-transf=* \
1061  | --program-trans=* | --program-tran=* \
1062  | --progr-tra=* | --program-tr=* | --program-t=*)
1063    program_transform_name=$ac_optarg ;;
1064
1065  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066    ac_prev=pdfdir ;;
1067  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068    pdfdir=$ac_optarg ;;
1069
1070  -psdir | --psdir | --psdi | --psd | --ps)
1071    ac_prev=psdir ;;
1072  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073    psdir=$ac_optarg ;;
1074
1075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076  | -silent | --silent | --silen | --sile | --sil)
1077    silent=yes ;;
1078
1079  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080    ac_prev=sbindir ;;
1081  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082  | --sbi=* | --sb=*)
1083    sbindir=$ac_optarg ;;
1084
1085  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087  | --sharedst | --shareds | --shared | --share | --shar \
1088  | --sha | --sh)
1089    ac_prev=sharedstatedir ;;
1090  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093  | --sha=* | --sh=*)
1094    sharedstatedir=$ac_optarg ;;
1095
1096  -site | --site | --sit)
1097    ac_prev=site ;;
1098  -site=* | --site=* | --sit=*)
1099    site=$ac_optarg ;;
1100
1101  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102    ac_prev=srcdir ;;
1103  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104    srcdir=$ac_optarg ;;
1105
1106  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107  | --syscon | --sysco | --sysc | --sys | --sy)
1108    ac_prev=sysconfdir ;;
1109  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111    sysconfdir=$ac_optarg ;;
1112
1113  -target | --target | --targe | --targ | --tar | --ta | --t)
1114    ac_prev=target_alias ;;
1115  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116    target_alias=$ac_optarg ;;
1117
1118  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119    verbose=yes ;;
1120
1121  -version | --version | --versio | --versi | --vers | -V)
1122    ac_init_version=: ;;
1123
1124  -with-* | --with-*)
1125    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126    # Reject names that are not valid shell variable names.
1127    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128      as_fn_error $? "invalid package name: $ac_useropt"
1129    ac_useropt_orig=$ac_useropt
1130    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131    case $ac_user_opts in
1132      *"
1133"with_$ac_useropt"
1134"*) ;;
1135      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136	 ac_unrecognized_sep=', ';;
1137    esac
1138    eval with_$ac_useropt=\$ac_optarg ;;
1139
1140  -without-* | --without-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: $ac_useropt"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=no ;;
1155
1156  --x)
1157    # Obsolete; use --with-x.
1158    with_x=yes ;;
1159
1160  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161  | --x-incl | --x-inc | --x-in | --x-i)
1162    ac_prev=x_includes ;;
1163  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165    x_includes=$ac_optarg ;;
1166
1167  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169    ac_prev=x_libraries ;;
1170  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172    x_libraries=$ac_optarg ;;
1173
1174  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175Try \`$0 --help' for more information"
1176    ;;
1177
1178  *=*)
1179    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180    # Reject names that are not valid shell variable names.
1181    case $ac_envvar in #(
1182      '' | [0-9]* | *[!_$as_cr_alnum]* )
1183      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184    esac
1185    eval $ac_envvar=\$ac_optarg
1186    export $ac_envvar ;;
1187
1188  *)
1189    # FIXME: should be removed in autoconf 3.0.
1190    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194    ;;
1195
1196  esac
1197done
1198
1199if test -n "$ac_prev"; then
1200  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201  as_fn_error $? "missing argument to $ac_option"
1202fi
1203
1204if test -n "$ac_unrecognized_opts"; then
1205  case $enable_option_checking in
1206    no) ;;
1207    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209  esac
1210fi
1211
1212# Check all directory arguments for consistency.
1213for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214		datadir sysconfdir sharedstatedir localstatedir includedir \
1215		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216		libdir localedir mandir
1217do
1218  eval ac_val=\$$ac_var
1219  # Remove trailing slashes.
1220  case $ac_val in
1221    */ )
1222      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223      eval $ac_var=\$ac_val;;
1224  esac
1225  # Be sure to have absolute directory names.
1226  case $ac_val in
1227    [\\/$]* | ?:[\\/]* )  continue;;
1228    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229  esac
1230  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231done
1232
1233# There might be people who depend on the old broken behavior: `$host'
1234# used to hold the argument of --host etc.
1235# FIXME: To remove some day.
1236build=$build_alias
1237host=$host_alias
1238target=$target_alias
1239
1240# FIXME: To remove some day.
1241if test "x$host_alias" != x; then
1242  if test "x$build_alias" = x; then
1243    cross_compiling=maybe
1244    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1245    If a cross compiler is detected then cross compile mode will be used" >&2
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures libusb 0.1.13beta to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/libusb]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of libusb 0.1.13beta:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-shared[=PKGS]  build shared libraries [default=yes]
1410  --enable-static[=PKGS]  build static libraries [default=yes]
1411  --enable-fast-install[=PKGS]
1412                          optimize for fast installation [default=yes]
1413  --disable-dependency-tracking  speeds up one-time build
1414  --enable-dependency-tracking   do not reject slow dependency extractors
1415  --disable-libtool-lock  avoid locking (might break parallel builds)
1416  --enable-debug=no/minimum/yes turn on debugging default=$debug_default
1417  --disable-build-docs    turn off building documentation
1418
1419Optional Packages:
1420  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1421  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1422  --with-pic              try to use only PIC/non-PIC objects [default=use
1423                          both]
1424  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1425  --with-sysroot=DIR Search for dependent libraries within DIR
1426                        (or the compiler's sysroot if not specified).
1427  --without-pkgconfig     don"t use pkg-config
1428
1429Some influential environment variables:
1430  CC          C compiler command
1431  CFLAGS      C compiler flags
1432  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1433              nonstandard directory <lib dir>
1434  LIBS        libraries to pass to the linker, e.g. -l<library>
1435  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436              you have headers in a nonstandard directory <include dir>
1437  CPP         C preprocessor
1438  CXX         C++ compiler command
1439  CXXFLAGS    C++ compiler flags
1440  CXXCPP      C++ preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to the package provider.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451  # If there are subdirs, report their specific --help.
1452  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453    test -d "$ac_dir" ||
1454      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455      continue
1456    ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462  # A ".." for each directory in $ac_dir_suffix.
1463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464  case $ac_top_builddir_sub in
1465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467  esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475  .)  # We are building in place.
1476    ac_srcdir=.
1477    ac_top_srcdir=$ac_top_builddir_sub
1478    ac_abs_top_srcdir=$ac_pwd ;;
1479  [\\/]* | ?:[\\/]* )  # Absolute name.
1480    ac_srcdir=$srcdir$ac_dir_suffix;
1481    ac_top_srcdir=$srcdir
1482    ac_abs_top_srcdir=$srcdir ;;
1483  *) # Relative name.
1484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485    ac_top_srcdir=$ac_top_build_prefix$srcdir
1486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490    cd "$ac_dir" || { ac_status=$?; continue; }
1491    # Check for guested configure.
1492    if test -f "$ac_srcdir/configure.gnu"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495    elif test -f "$ac_srcdir/configure"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure" --help=recursive
1498    else
1499      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500    fi || ac_status=$?
1501    cd "$ac_pwd" || { ac_status=$?; break; }
1502  done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508libusb configure 0.1.13beta
1509generated by GNU Autoconf 2.68
1510
1511Copyright (C) 2010 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  rm -f conftest.$ac_objext
1529  if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_compile") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && {
1545	 test -z "$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       } && test -s conftest.$ac_objext; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_c_try_link LINENO
1561# -----------------------
1562# Try to link conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_link ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext conftest$ac_exeext
1567  if { { ac_try="$ac_link"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_link") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest$ac_exeext && {
1586	 test "$cross_compiling" = yes ||
1587	 $as_test_x conftest$ac_exeext
1588       }; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1597  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1598  # interfere with the next link command; also delete a directory that is
1599  # left behind by Apple's compiler.  We do this before executing the actions.
1600  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_link
1605
1606# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607# -------------------------------------------------------
1608# Tests whether HEADER exists and can be compiled using the include files in
1609# INCLUDES, setting the cache variable VAR accordingly.
1610ac_fn_c_check_header_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617else
1618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620$4
1621#include <$2>
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"; then :
1624  eval "$3=yes"
1625else
1626  eval "$3=no"
1627fi
1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635} # ac_fn_c_check_header_compile
1636
1637# ac_fn_c_try_cpp LINENO
1638# ----------------------
1639# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_cpp ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_cpp conftest.$ac_ext"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } > conftest.i && {
1659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667    ac_retval=1
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670  as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_cpp
1673
1674# ac_fn_c_try_run LINENO
1675# ----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677# that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_run
1715
1716# ac_fn_c_check_func LINENO FUNC VAR
1717# ----------------------------------
1718# Tests whether FUNC exists, setting the cache variable VAR accordingly
1719ac_fn_c_check_func ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1731#define $2 innocuous_$2
1732
1733/* System header to define __stub macros and hopefully few prototypes,
1734    which can conflict with char $2 (); below.
1735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736    <limits.h> exists even on freestanding compilers.  */
1737
1738#ifdef __STDC__
1739# include <limits.h>
1740#else
1741# include <assert.h>
1742#endif
1743
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main ()
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext \
1774    conftest$ac_exeext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_func
1782
1783# ac_fn_cxx_try_compile LINENO
1784# ----------------------------
1785# Try to compile conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_cxx_try_compile ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  rm -f conftest.$ac_objext
1790  if { { ac_try="$ac_compile"
1791case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_compile") 2>conftest.err
1798  ac_status=$?
1799  if test -s conftest.err; then
1800    grep -v '^ *+' conftest.err >conftest.er1
1801    cat conftest.er1 >&5
1802    mv -f conftest.er1 conftest.err
1803  fi
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; } && {
1806	 test -z "$ac_cxx_werror_flag" ||
1807	 test ! -s conftest.err
1808       } && test -s conftest.$ac_objext; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817  as_fn_set_status $ac_retval
1818
1819} # ac_fn_cxx_try_compile
1820
1821# ac_fn_cxx_try_cpp LINENO
1822# ------------------------
1823# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_cxx_try_cpp ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if { { ac_try="$ac_cpp conftest.$ac_ext"
1828case "(($ac_try" in
1829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830  *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835  ac_status=$?
1836  if test -s conftest.err; then
1837    grep -v '^ *+' conftest.err >conftest.er1
1838    cat conftest.er1 >&5
1839    mv -f conftest.er1 conftest.err
1840  fi
1841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842  test $ac_status = 0; } > conftest.i && {
1843	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844	 test ! -s conftest.err
1845       }; then :
1846  ac_retval=0
1847else
1848  $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851    ac_retval=1
1852fi
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_cxx_try_cpp
1857
1858# ac_fn_cxx_try_link LINENO
1859# -------------------------
1860# Try to link conftest.$ac_ext, and return whether this succeeded.
1861ac_fn_cxx_try_link ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  rm -f conftest.$ac_objext conftest$ac_exeext
1865  if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868  *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872  (eval "$ac_link") 2>conftest.err
1873  ac_status=$?
1874  if test -s conftest.err; then
1875    grep -v '^ *+' conftest.err >conftest.er1
1876    cat conftest.er1 >&5
1877    mv -f conftest.er1 conftest.err
1878  fi
1879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880  test $ac_status = 0; } && {
1881	 test -z "$ac_cxx_werror_flag" ||
1882	 test ! -s conftest.err
1883       } && test -s conftest$ac_exeext && {
1884	 test "$cross_compiling" = yes ||
1885	 $as_test_x conftest$ac_exeext
1886       }; then :
1887  ac_retval=0
1888else
1889  $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892	ac_retval=1
1893fi
1894  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896  # interfere with the next link command; also delete a directory that is
1897  # left behind by Apple's compiler.  We do this before executing the actions.
1898  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900  as_fn_set_status $ac_retval
1901
1902} # ac_fn_cxx_try_link
1903
1904# ac_fn_cxx_try_run LINENO
1905# ------------------------
1906# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907# that executables *can* be run.
1908ac_fn_cxx_try_run ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_link") 2>&5
1919  ac_status=$?
1920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922  { { case "(($ac_try" in
1923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924  *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928  (eval "$ac_try") 2>&5
1929  ac_status=$?
1930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931  test $ac_status = 0; }; }; then :
1932  ac_retval=0
1933else
1934  $as_echo "$as_me: program exited with status $ac_status" >&5
1935       $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938       ac_retval=$ac_status
1939fi
1940  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942  as_fn_set_status $ac_retval
1943
1944} # ac_fn_cxx_try_run
1945
1946# ac_fn_cxx_check_func LINENO FUNC VAR
1947# ------------------------------------
1948# Tests whether FUNC exists, setting the cache variable VAR accordingly
1949ac_fn_cxx_check_func ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval \${$3+:} false; then :
1955  $as_echo_n "(cached) " >&6
1956else
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1960   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1961#define $2 innocuous_$2
1962
1963/* System header to define __stub macros and hopefully few prototypes,
1964    which can conflict with char $2 (); below.
1965    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1966    <limits.h> exists even on freestanding compilers.  */
1967
1968#ifdef __STDC__
1969# include <limits.h>
1970#else
1971# include <assert.h>
1972#endif
1973
1974#undef $2
1975
1976/* Override any GCC internal prototype to avoid an error.
1977   Use char because int might match the return type of a GCC
1978   builtin and then its argument prototype would still apply.  */
1979#ifdef __cplusplus
1980extern "C"
1981#endif
1982char $2 ();
1983/* The GNU C library defines this for functions which it implements
1984    to always fail with ENOSYS.  Some functions are actually named
1985    something starting with __ and the normal name is an alias.  */
1986#if defined __stub_$2 || defined __stub___$2
1987choke me
1988#endif
1989
1990int
1991main ()
1992{
1993return $2 ();
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_cxx_try_link "$LINENO"; then :
1999  eval "$3=yes"
2000else
2001  eval "$3=no"
2002fi
2003rm -f core conftest.err conftest.$ac_objext \
2004    conftest$ac_exeext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_cxx_check_func
2012
2013# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2014# ---------------------------------------------------------
2015# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2016# the include files in INCLUDES and setting the cache variable VAR
2017# accordingly.
2018ac_fn_cxx_check_header_mongrel ()
2019{
2020  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021  if eval \${$3+:} false; then :
2022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023$as_echo_n "checking for $2... " >&6; }
2024if eval \${$3+:} false; then :
2025  $as_echo_n "(cached) " >&6
2026fi
2027eval ac_res=\$$3
2028	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029$as_echo "$ac_res" >&6; }
2030else
2031  # Is the header compilable?
2032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2033$as_echo_n "checking $2 usability... " >&6; }
2034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037#include <$2>
2038_ACEOF
2039if ac_fn_cxx_try_compile "$LINENO"; then :
2040  ac_header_compiler=yes
2041else
2042  ac_header_compiler=no
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2046$as_echo "$ac_header_compiler" >&6; }
2047
2048# Is the header present?
2049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2050$as_echo_n "checking $2 presence... " >&6; }
2051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052/* end confdefs.h.  */
2053#include <$2>
2054_ACEOF
2055if ac_fn_cxx_try_cpp "$LINENO"; then :
2056  ac_header_preproc=yes
2057else
2058  ac_header_preproc=no
2059fi
2060rm -f conftest.err conftest.i conftest.$ac_ext
2061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2062$as_echo "$ac_header_preproc" >&6; }
2063
2064# So?  What about this header?
2065case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2066  yes:no: )
2067    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2068$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2069    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071    ;;
2072  no:yes:* )
2073    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2074$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2076$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2078$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2080$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083    ;;
2084esac
2085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086$as_echo_n "checking for $2... " >&6; }
2087if eval \${$3+:} false; then :
2088  $as_echo_n "(cached) " >&6
2089else
2090  eval "$3=\$ac_header_compiler"
2091fi
2092eval ac_res=\$$3
2093	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094$as_echo "$ac_res" >&6; }
2095fi
2096  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098} # ac_fn_cxx_check_header_mongrel
2099cat >config.log <<_ACEOF
2100This file contains any messages produced by compilers while
2101running configure, to aid debugging if configure makes a mistake.
2102
2103It was created by libusb $as_me 0.1.13beta, which was
2104generated by GNU Autoconf 2.68.  Invocation command line was
2105
2106  $ $0 $@
2107
2108_ACEOF
2109exec 5>>config.log
2110{
2111cat <<_ASUNAME
2112## --------- ##
2113## Platform. ##
2114## --------- ##
2115
2116hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2124
2125/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2126/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2127/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2129/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2130/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2131/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2132
2133_ASUNAME
2134
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140    $as_echo "PATH: $as_dir"
2141  done
2142IFS=$as_save_IFS
2143
2144} >&5
2145
2146cat >&5 <<_ACEOF
2147
2148
2149## ----------- ##
2150## Core tests. ##
2151## ----------- ##
2152
2153_ACEOF
2154
2155
2156# Keep a trace of the command line.
2157# Strip out --no-create and --no-recursion so they do not pile up.
2158# Strip out --silent because we don't want to record it for future runs.
2159# Also quote any args containing shell meta-characters.
2160# Make two passes to allow for proper duplicate-argument suppression.
2161ac_configure_args=
2162ac_configure_args0=
2163ac_configure_args1=
2164ac_must_keep_next=false
2165for ac_pass in 1 2
2166do
2167  for ac_arg
2168  do
2169    case $ac_arg in
2170    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172    | -silent | --silent | --silen | --sile | --sil)
2173      continue ;;
2174    *\'*)
2175      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176    esac
2177    case $ac_pass in
2178    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179    2)
2180      as_fn_append ac_configure_args1 " '$ac_arg'"
2181      if test $ac_must_keep_next = true; then
2182	ac_must_keep_next=false # Got value, back to normal.
2183      else
2184	case $ac_arg in
2185	  *=* | --config-cache | -C | -disable-* | --disable-* \
2186	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188	  | -with-* | --with-* | -without-* | --without-* | --x)
2189	    case "$ac_configure_args0 " in
2190	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191	    esac
2192	    ;;
2193	  -* ) ac_must_keep_next=true ;;
2194	esac
2195      fi
2196      as_fn_append ac_configure_args " '$ac_arg'"
2197      ;;
2198    esac
2199  done
2200done
2201{ ac_configure_args0=; unset ac_configure_args0;}
2202{ ac_configure_args1=; unset ac_configure_args1;}
2203
2204# When interrupted or exit'd, cleanup temporary files, and complete
2205# config.log.  We remove comments because anyway the quotes in there
2206# would cause problems or look ugly.
2207# WARNING: Use '\'' to represent an apostrophe within the trap.
2208# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209trap 'exit_status=$?
2210  # Save into config.log some information that might help in debugging.
2211  {
2212    echo
2213
2214    $as_echo "## ---------------- ##
2215## Cache variables. ##
2216## ---------------- ##"
2217    echo
2218    # The following way of writing the cache mishandles newlines in values,
2219(
2220  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221    eval ac_val=\$$ac_var
2222    case $ac_val in #(
2223    *${as_nl}*)
2224      case $ac_var in #(
2225      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227      esac
2228      case $ac_var in #(
2229      _ | IFS | as_nl) ;; #(
2230      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231      *) { eval $ac_var=; unset $ac_var;} ;;
2232      esac ;;
2233    esac
2234  done
2235  (set) 2>&1 |
2236    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237    *${as_nl}ac_space=\ *)
2238      sed -n \
2239	"s/'\''/'\''\\\\'\'''\''/g;
2240	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241      ;; #(
2242    *)
2243      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244      ;;
2245    esac |
2246    sort
2247)
2248    echo
2249
2250    $as_echo "## ----------------- ##
2251## Output variables. ##
2252## ----------------- ##"
2253    echo
2254    for ac_var in $ac_subst_vars
2255    do
2256      eval ac_val=\$$ac_var
2257      case $ac_val in
2258      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259      esac
2260      $as_echo "$ac_var='\''$ac_val'\''"
2261    done | sort
2262    echo
2263
2264    if test -n "$ac_subst_files"; then
2265      $as_echo "## ------------------- ##
2266## File substitutions. ##
2267## ------------------- ##"
2268      echo
2269      for ac_var in $ac_subst_files
2270      do
2271	eval ac_val=\$$ac_var
2272	case $ac_val in
2273	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274	esac
2275	$as_echo "$ac_var='\''$ac_val'\''"
2276      done | sort
2277      echo
2278    fi
2279
2280    if test -s confdefs.h; then
2281      $as_echo "## ----------- ##
2282## confdefs.h. ##
2283## ----------- ##"
2284      echo
2285      cat confdefs.h
2286      echo
2287    fi
2288    test "$ac_signal" != 0 &&
2289      $as_echo "$as_me: caught signal $ac_signal"
2290    $as_echo "$as_me: exit $exit_status"
2291  } >&5
2292  rm -f core *.core core.conftest.* &&
2293    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294    exit $exit_status
2295' 0
2296for ac_signal in 1 2 13 15; do
2297  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298done
2299ac_signal=0
2300
2301# confdefs.h avoids OS command line length limits that DEFS can exceed.
2302rm -f -r conftest* confdefs.h
2303
2304$as_echo "/* confdefs.h */" > confdefs.h
2305
2306# Predefined preprocessor variables.
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_NAME "$PACKAGE_NAME"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314_ACEOF
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_VERSION "$PACKAGE_VERSION"
2318_ACEOF
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_STRING "$PACKAGE_STRING"
2322_ACEOF
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326_ACEOF
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_URL "$PACKAGE_URL"
2330_ACEOF
2331
2332
2333# Let the site file select an alternate cache file if it wants to.
2334# Prefer an explicitly selected file to automatically selected ones.
2335ac_site_file1=NONE
2336ac_site_file2=NONE
2337if test -n "$CONFIG_SITE"; then
2338  # We do not want a PATH search for config.site.
2339  case $CONFIG_SITE in #((
2340    -*)  ac_site_file1=./$CONFIG_SITE;;
2341    */*) ac_site_file1=$CONFIG_SITE;;
2342    *)   ac_site_file1=./$CONFIG_SITE;;
2343  esac
2344elif test "x$prefix" != xNONE; then
2345  ac_site_file1=$prefix/share/config.site
2346  ac_site_file2=$prefix/etc/config.site
2347else
2348  ac_site_file1=$ac_default_prefix/share/config.site
2349  ac_site_file2=$ac_default_prefix/etc/config.site
2350fi
2351for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352do
2353  test "x$ac_site_file" = xNONE && continue
2354  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2355    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357    sed 's/^/| /' "$ac_site_file" >&5
2358    . "$ac_site_file" \
2359      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361as_fn_error $? "failed to load site script $ac_site_file
2362See \`config.log' for more details" "$LINENO" 5; }
2363  fi
2364done
2365
2366if test -r "$cache_file"; then
2367  # Some versions of bash will fail to source /dev/null (special files
2368  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2369  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2370    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2371$as_echo "$as_me: loading cache $cache_file" >&6;}
2372    case $cache_file in
2373      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2374      *)                      . "./$cache_file";;
2375    esac
2376  fi
2377else
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2379$as_echo "$as_me: creating cache $cache_file" >&6;}
2380  >$cache_file
2381fi
2382
2383# Check that the precious variables saved in the cache have kept the same
2384# value.
2385ac_cache_corrupted=false
2386for ac_var in $ac_precious_vars; do
2387  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2388  eval ac_new_set=\$ac_env_${ac_var}_set
2389  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2390  eval ac_new_val=\$ac_env_${ac_var}_value
2391  case $ac_old_set,$ac_new_set in
2392    set,)
2393      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2394$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2395      ac_cache_corrupted=: ;;
2396    ,set)
2397      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2398$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2399      ac_cache_corrupted=: ;;
2400    ,);;
2401    *)
2402      if test "x$ac_old_val" != "x$ac_new_val"; then
2403	# differences in whitespace do not lead to failure.
2404	ac_old_val_w=`echo x $ac_old_val`
2405	ac_new_val_w=`echo x $ac_new_val`
2406	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2407	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2408$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409	  ac_cache_corrupted=:
2410	else
2411	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2412$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2413	  eval $ac_var=\$ac_old_val
2414	fi
2415	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2416$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2417	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2418$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2419      fi;;
2420  esac
2421  # Pass precious variables to config.status.
2422  if test "$ac_new_set" = set; then
2423    case $ac_new_val in
2424    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2425    *) ac_arg=$ac_var=$ac_new_val ;;
2426    esac
2427    case " $ac_configure_args " in
2428      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2429      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2430    esac
2431  fi
2432done
2433if $ac_cache_corrupted; then
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2437$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2438  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2439fi
2440## -------------------- ##
2441## Main body of script. ##
2442## -------------------- ##
2443
2444ac_ext=c
2445ac_cpp='$CPP $CPPFLAGS'
2446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
2450
2451
2452
2453
2454
2455# Save this value here, since automake will set cflags later
2456cflags_set=${CFLAGS+set}
2457
2458am__api_version='1.11'
2459
2460ac_aux_dir=
2461for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2462  if test -f "$ac_dir/install-sh"; then
2463    ac_aux_dir=$ac_dir
2464    ac_install_sh="$ac_aux_dir/install-sh -c"
2465    break
2466  elif test -f "$ac_dir/install.sh"; then
2467    ac_aux_dir=$ac_dir
2468    ac_install_sh="$ac_aux_dir/install.sh -c"
2469    break
2470  elif test -f "$ac_dir/shtool"; then
2471    ac_aux_dir=$ac_dir
2472    ac_install_sh="$ac_aux_dir/shtool install -c"
2473    break
2474  fi
2475done
2476if test -z "$ac_aux_dir"; then
2477  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2478fi
2479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2485ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2486ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2487
2488
2489# Find a good install program.  We prefer a C program (faster),
2490# so one script is as good as another.  But avoid the broken or
2491# incompatible versions:
2492# SysV /etc/install, /usr/sbin/install
2493# SunOS /usr/etc/install
2494# IRIX /sbin/install
2495# AIX /bin/install
2496# AmigaOS /C/install, which installs bootblocks on floppy discs
2497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500# OS/2's system install, which has a completely different semantic
2501# ./install, which can be erroneously created by make from ./install.sh.
2502# Reject install programs that cannot install multiple files.
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2504$as_echo_n "checking for a BSD-compatible install... " >&6; }
2505if test -z "$INSTALL"; then
2506if ${ac_cv_path_install+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  as_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    # Account for people who put trailing slashes in PATH elements.
2515case $as_dir/ in #((
2516  ./ | .// | /[cC]/* | \
2517  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2519  /usr/ucb/* ) ;;
2520  *)
2521    # OSF1 and SCO ODT 3.0 have their own names for install.
2522    # Don't use installbsd from OSF since it installs stuff as root
2523    # by default.
2524    for ac_prog in ginstall scoinst install; do
2525      for ac_exec_ext in '' $ac_executable_extensions; do
2526	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2527	  if test $ac_prog = install &&
2528	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529	    # AIX install.  It has an incompatible calling convention.
2530	    :
2531	  elif test $ac_prog = install &&
2532	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533	    # program-specific install script used by HP pwplus--don't use.
2534	    :
2535	  else
2536	    rm -rf conftest.one conftest.two conftest.dir
2537	    echo one > conftest.one
2538	    echo two > conftest.two
2539	    mkdir conftest.dir
2540	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2541	      test -s conftest.one && test -s conftest.two &&
2542	      test -s conftest.dir/conftest.one &&
2543	      test -s conftest.dir/conftest.two
2544	    then
2545	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546	      break 3
2547	    fi
2548	  fi
2549	fi
2550      done
2551    done
2552    ;;
2553esac
2554
2555  done
2556IFS=$as_save_IFS
2557
2558rm -rf conftest.one conftest.two conftest.dir
2559
2560fi
2561  if test "${ac_cv_path_install+set}" = set; then
2562    INSTALL=$ac_cv_path_install
2563  else
2564    # As a last resort, use the slow shell script.  Don't cache a
2565    # value for INSTALL within a source directory, because that will
2566    # break other packages using the cache if that directory is
2567    # removed, or if the value is a relative name.
2568    INSTALL=$ac_install_sh
2569  fi
2570fi
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2572$as_echo "$INSTALL" >&6; }
2573
2574# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575# It thinks the first close brace ends the variable substitution.
2576test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577
2578test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579
2580test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2583$as_echo_n "checking whether build environment is sane... " >&6; }
2584# Just in case
2585sleep 1
2586echo timestamp > conftest.file
2587# Reject unsafe characters in $srcdir or the absolute working directory
2588# name.  Accept space and tab only in the latter.
2589am_lf='
2590'
2591case `pwd` in
2592  *[\\\"\#\$\&\'\`$am_lf]*)
2593    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2594esac
2595case $srcdir in
2596  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2597    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2598esac
2599
2600# Do `set' in a subshell so we don't clobber the current shell's
2601# arguments.  Must try -L first in case configure is actually a
2602# symlink; some systems play weird games with the mod time of symlinks
2603# (eg FreeBSD returns the mod time of the symlink's containing
2604# directory).
2605if (
2606   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607   if test "$*" = "X"; then
2608      # -L didn't work.
2609      set X `ls -t "$srcdir/configure" conftest.file`
2610   fi
2611   rm -f conftest.file
2612   if test "$*" != "X $srcdir/configure conftest.file" \
2613      && test "$*" != "X conftest.file $srcdir/configure"; then
2614
2615      # If neither matched, then we have a broken ls.  This can happen
2616      # if, for instance, CONFIG_SHELL is bash and it inherits a
2617      # broken ls alias from the environment.  This has actually
2618      # happened.  Such a system could not be considered "sane".
2619      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2620alias in your environment" "$LINENO" 5
2621   fi
2622
2623   test "$2" = conftest.file
2624   )
2625then
2626   # Ok.
2627   :
2628else
2629   as_fn_error $? "newly created file is older than distributed files!
2630Check your system clock" "$LINENO" 5
2631fi
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2633$as_echo "yes" >&6; }
2634test "$program_prefix" != NONE &&
2635  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2636# Use a double $ so make ignores it.
2637test "$program_suffix" != NONE &&
2638  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2639# Double any \ or $.
2640# By default was `s,x,x', remove it if useless.
2641ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2642program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2643
2644# expand $ac_aux_dir to an absolute path
2645am_aux_dir=`cd $ac_aux_dir && pwd`
2646
2647if test x"${MISSING+set}" != xset; then
2648  case $am_aux_dir in
2649  *\ * | *\	*)
2650    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2651  *)
2652    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2653  esac
2654fi
2655# Use eval to expand $SHELL
2656if eval "$MISSING --run true"; then
2657  am_missing_run="$MISSING --run "
2658else
2659  am_missing_run=
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2661$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2662fi
2663
2664if test x"${install_sh}" != xset; then
2665  case $am_aux_dir in
2666  *\ * | *\	*)
2667    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2668  *)
2669    install_sh="\${SHELL} $am_aux_dir/install-sh"
2670  esac
2671fi
2672
2673# Installed binaries are usually stripped using `strip' when the user
2674# run `make install-strip'.  However `strip' might not be the right
2675# tool to use in cross-compilation environments, therefore Automake
2676# will honor the `STRIP' environment variable to overrule this program.
2677if test "$cross_compiling" != no; then
2678  if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}strip; ac_word=$2
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682$as_echo_n "checking for $ac_word... " >&6; }
2683if ${ac_cv_prog_STRIP+:} false; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  if test -n "$STRIP"; then
2687  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694    for ac_exec_ext in '' $ac_executable_extensions; do
2695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701  done
2702IFS=$as_save_IFS
2703
2704fi
2705fi
2706STRIP=$ac_cv_prog_STRIP
2707if test -n "$STRIP"; then
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2709$as_echo "$STRIP" >&6; }
2710else
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713fi
2714
2715
2716fi
2717if test -z "$ac_cv_prog_STRIP"; then
2718  ac_ct_STRIP=$STRIP
2719  # Extract the first word of "strip", so it can be a program name with args.
2720set dummy strip; ac_word=$2
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722$as_echo_n "checking for $ac_word... " >&6; }
2723if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2724  $as_echo_n "(cached) " >&6
2725else
2726  if test -n "$ac_ct_STRIP"; then
2727  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734    for ac_exec_ext in '' $ac_executable_extensions; do
2735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736    ac_cv_prog_ac_ct_STRIP="strip"
2737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741  done
2742IFS=$as_save_IFS
2743
2744fi
2745fi
2746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2747if test -n "$ac_ct_STRIP"; then
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2749$as_echo "$ac_ct_STRIP" >&6; }
2750else
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752$as_echo "no" >&6; }
2753fi
2754
2755  if test "x$ac_ct_STRIP" = x; then
2756    STRIP=":"
2757  else
2758    case $cross_compiling:$ac_tool_warned in
2759yes:)
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762ac_tool_warned=yes ;;
2763esac
2764    STRIP=$ac_ct_STRIP
2765  fi
2766else
2767  STRIP="$ac_cv_prog_STRIP"
2768fi
2769
2770fi
2771INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2772
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2774$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2775if test -z "$MKDIR_P"; then
2776  if ${ac_cv_path_mkdir+:} false; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2781do
2782  IFS=$as_save_IFS
2783  test -z "$as_dir" && as_dir=.
2784    for ac_prog in mkdir gmkdir; do
2785	 for ac_exec_ext in '' $ac_executable_extensions; do
2786	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2787	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2788	     'mkdir (GNU coreutils) '* | \
2789	     'mkdir (coreutils) '* | \
2790	     'mkdir (fileutils) '4.1*)
2791	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2792	       break 3;;
2793	   esac
2794	 done
2795       done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800
2801  test -d ./--version && rmdir ./--version
2802  if test "${ac_cv_path_mkdir+set}" = set; then
2803    MKDIR_P="$ac_cv_path_mkdir -p"
2804  else
2805    # As a last resort, use the slow shell script.  Don't cache a
2806    # value for MKDIR_P within a source directory, because that will
2807    # break other packages using the cache if that directory is
2808    # removed, or if the value is a relative name.
2809    MKDIR_P="$ac_install_sh -d"
2810  fi
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2813$as_echo "$MKDIR_P" >&6; }
2814
2815mkdir_p="$MKDIR_P"
2816case $mkdir_p in
2817  [\\/$]* | ?:[\\/]*) ;;
2818  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2819esac
2820
2821for ac_prog in gawk mawk nawk awk
2822do
2823  # Extract the first word of "$ac_prog", so it can be a program name with args.
2824set dummy $ac_prog; ac_word=$2
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if ${ac_cv_prog_AWK+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  if test -n "$AWK"; then
2831  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838    for ac_exec_ext in '' $ac_executable_extensions; do
2839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840    ac_cv_prog_AWK="$ac_prog"
2841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850AWK=$ac_cv_prog_AWK
2851if test -n "$AWK"; then
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2853$as_echo "$AWK" >&6; }
2854else
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859
2860  test -n "$AWK" && break
2861done
2862
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2864$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2865set x ${MAKE-make}
2866ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2867if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  cat >conftest.make <<\_ACEOF
2871SHELL = /bin/sh
2872all:
2873	@echo '@@@%%%=$(MAKE)=@@@%%%'
2874_ACEOF
2875# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2876case `${MAKE-make} -f conftest.make 2>/dev/null` in
2877  *@@@%%%=?*=@@@%%%*)
2878    eval ac_cv_prog_make_${ac_make}_set=yes;;
2879  *)
2880    eval ac_cv_prog_make_${ac_make}_set=no;;
2881esac
2882rm -f conftest.make
2883fi
2884if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886$as_echo "yes" >&6; }
2887  SET_MAKE=
2888else
2889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890$as_echo "no" >&6; }
2891  SET_MAKE="MAKE=${MAKE-make}"
2892fi
2893
2894rm -rf .tst 2>/dev/null
2895mkdir .tst 2>/dev/null
2896if test -d .tst; then
2897  am__leading_dot=.
2898else
2899  am__leading_dot=_
2900fi
2901rmdir .tst 2>/dev/null
2902
2903if test "`cd $srcdir && pwd`" != "`pwd`"; then
2904  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2905  # is not polluted with repeated "-I."
2906  am__isrc=' -I$(srcdir)'
2907  # test to see if srcdir already configured
2908  if test -f $srcdir/config.status; then
2909    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2910  fi
2911fi
2912
2913# test whether we have cygpath
2914if test -z "$CYGPATH_W"; then
2915  if (cygpath --version) >/dev/null 2>/dev/null; then
2916    CYGPATH_W='cygpath -w'
2917  else
2918    CYGPATH_W=echo
2919  fi
2920fi
2921
2922
2923# Define the identity of the package.
2924 PACKAGE='libusb'
2925 VERSION='0.1.13beta'
2926
2927
2928cat >>confdefs.h <<_ACEOF
2929#define PACKAGE "$PACKAGE"
2930_ACEOF
2931
2932
2933cat >>confdefs.h <<_ACEOF
2934#define VERSION "$VERSION"
2935_ACEOF
2936
2937# Some tools Automake needs.
2938
2939ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2940
2941
2942AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2943
2944
2945AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2946
2947
2948AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2949
2950
2951MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2952
2953# We need awk for the "check" target.  The system "awk" is bad on
2954# some platforms.
2955# Always define AMTAR for backward compatibility.
2956
2957AMTAR=${AMTAR-"${am_missing_run}tar"}
2958
2959am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960
2961
2962
2963
2964
2965
2966LIBUSB_VERSION=$VERSION
2967
2968#
2969# The following version number definitions apply to libusb
2970# as a whole, so if changes occoured in any of them, they are all
2971# treated with the same interface and binary age.
2972#
2973# Making releases:
2974#   LIBUSB_MICRO_VERSION += 1;
2975#   LIBUSB_INTERFACE_AGE += 1;
2976#   LIBUSB_BINARY_AGE += 1;
2977# if any functions have been added, set LIBUSB_INTERFACE_AGE to 0.
2978# if backwards compatibility has been broken,
2979# set LIBUSB_BINARY_AGE _and_ LIBUSB_INTERFACE_AGE to 0.
2980#
2981LIBUSB_MAJOR_VERSION=0
2982LIBUSB_MINOR_VERSION=1
2983LIBUSB_MICRO_VERSION=13
2984LIBUSB_INTERFACE_AGE=5
2985LIBUSB_BINARY_AGE=9
2986
2987
2988
2989
2990
2991
2992
2993
2994cat >>confdefs.h <<_ACEOF
2995#define LIBUSB_MAJOR_VERSION $LIBUSB_MAJOR_VERSION
2996_ACEOF
2997
2998cat >>confdefs.h <<_ACEOF
2999#define LIBUSB_MINOR_VERSION $LIBUSB_MINOR_VERSION
3000_ACEOF
3001
3002cat >>confdefs.h <<_ACEOF
3003#define LIBUSB_MICRO_VERSION $LIBUSB_MICRO_VERSION
3004_ACEOF
3005
3006cat >>confdefs.h <<_ACEOF
3007#define LIBUSB_INTERFACE_AGE $LIBUSB_INTERFACE_AGE
3008_ACEOF
3009
3010cat >>confdefs.h <<_ACEOF
3011#define LIBUSB_BINARY_AGE $LIBUSB_BINARY_AGE
3012_ACEOF
3013
3014
3015# libtool versioning
3016# JR: Add support for MICRO_VERSION to be alpha-numeric. This will make
3017# lt_current use the numeric part of MICRO_VERSION
3018
3019LIBUSB_MICRO_VERSION_NUM=`echo $LIBUSB_MICRO_VERSION | sed 's/[a-zA-Z]//g'`
3020LT_RELEASE=$LIBUSB_MAJOR_VERSION.$LIBUSB_MINOR_VERSION
3021LT_CURRENT=`expr $LIBUSB_MICRO_VERSION_NUM - $LIBUSB_INTERFACE_AGE`
3022LT_REVISION=$LIBUSB_INTERFACE_AGE
3023LT_AGE=`expr $LIBUSB_BINARY_AGE - $LIBUSB_INTERFACE_AGE`
3024
3025
3026
3027
3028
3029ac_config_headers="$ac_config_headers config.h"
3030
3031
3032case `pwd` in
3033  *\ * | *\	*)
3034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3035$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3036esac
3037
3038
3039
3040macro_version='2.4'
3041macro_revision='1.3293'
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055ltmain="$ac_aux_dir/ltmain.sh"
3056
3057# Make sure we can run config.sub.
3058$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3059  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3060
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3062$as_echo_n "checking build system type... " >&6; }
3063if ${ac_cv_build+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  ac_build_alias=$build_alias
3067test "x$ac_build_alias" = x &&
3068  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3069test "x$ac_build_alias" = x &&
3070  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3071ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3072  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3076$as_echo "$ac_cv_build" >&6; }
3077case $ac_cv_build in
3078*-*-*) ;;
3079*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3080esac
3081build=$ac_cv_build
3082ac_save_IFS=$IFS; IFS='-'
3083set x $ac_cv_build
3084shift
3085build_cpu=$1
3086build_vendor=$2
3087shift; shift
3088# Remember, the first character of IFS is used to create $*,
3089# except with old shells:
3090build_os=$*
3091IFS=$ac_save_IFS
3092case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3093
3094
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3096$as_echo_n "checking host system type... " >&6; }
3097if ${ac_cv_host+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  if test "x$host_alias" = x; then
3101  ac_cv_host=$ac_cv_build
3102else
3103  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3104    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105fi
3106
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3109$as_echo "$ac_cv_host" >&6; }
3110case $ac_cv_host in
3111*-*-*) ;;
3112*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3113esac
3114host=$ac_cv_host
3115ac_save_IFS=$IFS; IFS='-'
3116set x $ac_cv_host
3117shift
3118host_cpu=$1
3119host_vendor=$2
3120shift; shift
3121# Remember, the first character of IFS is used to create $*,
3122# except with old shells:
3123host_os=$*
3124IFS=$ac_save_IFS
3125case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3126
3127
3128# Backslashify metacharacters that are still active within
3129# double-quoted strings.
3130sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3131
3132# Same as above, but do not quote variable references.
3133double_quote_subst='s/\(["`\\]\)/\\\1/g'
3134
3135# Sed substitution to delay expansion of an escaped shell variable in a
3136# double_quote_subst'ed string.
3137delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3138
3139# Sed substitution to delay expansion of an escaped single quote.
3140delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3141
3142# Sed substitution to avoid accidental globbing in evaled expressions
3143no_glob_subst='s/\*/\\\*/g'
3144
3145ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3147ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3148
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3150$as_echo_n "checking how to print strings... " >&6; }
3151# Test print first, because it will be a builtin if present.
3152if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3153   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3154  ECHO='print -r --'
3155elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3156  ECHO='printf %s\n'
3157else
3158  # Use this function as a fallback that always works.
3159  func_fallback_echo ()
3160  {
3161    eval 'cat <<_LTECHO_EOF
3162$1
3163_LTECHO_EOF'
3164  }
3165  ECHO='func_fallback_echo'
3166fi
3167
3168# func_echo_all arg...
3169# Invoke $ECHO with all args, space-separated.
3170func_echo_all ()
3171{
3172    $ECHO ""
3173}
3174
3175case "$ECHO" in
3176  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3177$as_echo "printf" >&6; } ;;
3178  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3179$as_echo "print -r" >&6; } ;;
3180  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3181$as_echo "cat" >&6; } ;;
3182esac
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197DEPDIR="${am__leading_dot}deps"
3198
3199ac_config_commands="$ac_config_commands depfiles"
3200
3201
3202am_make=${MAKE-make}
3203cat > confinc << 'END'
3204am__doit:
3205	@echo this is the am__doit target
3206.PHONY: am__doit
3207END
3208# If we don't find an include directive, just comment out the code.
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3210$as_echo_n "checking for style of include used by $am_make... " >&6; }
3211am__include="#"
3212am__quote=
3213_am_result=none
3214# First try GNU make style include.
3215echo "include confinc" > confmf
3216# Ignore all kinds of additional output from `make'.
3217case `$am_make -s -f confmf 2> /dev/null` in #(
3218*the\ am__doit\ target*)
3219  am__include=include
3220  am__quote=
3221  _am_result=GNU
3222  ;;
3223esac
3224# Now try BSD make style include.
3225if test "$am__include" = "#"; then
3226   echo '.include "confinc"' > confmf
3227   case `$am_make -s -f confmf 2> /dev/null` in #(
3228   *the\ am__doit\ target*)
3229     am__include=.include
3230     am__quote="\""
3231     _am_result=BSD
3232     ;;
3233   esac
3234fi
3235
3236
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3238$as_echo "$_am_result" >&6; }
3239rm -f confinc confmf
3240
3241# Check whether --enable-dependency-tracking was given.
3242if test "${enable_dependency_tracking+set}" = set; then :
3243  enableval=$enable_dependency_tracking;
3244fi
3245
3246if test "x$enable_dependency_tracking" != xno; then
3247  am_depcomp="$ac_aux_dir/depcomp"
3248  AMDEPBACKSLASH='\'
3249fi
3250 if test "x$enable_dependency_tracking" != xno; then
3251  AMDEP_TRUE=
3252  AMDEP_FALSE='#'
3253else
3254  AMDEP_TRUE='#'
3255  AMDEP_FALSE=
3256fi
3257
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264if test -n "$ac_tool_prefix"; then
3265  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}gcc; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
3269if ${ac_cv_prog_CC+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  if test -n "$CC"; then
3273  ac_cv_prog_CC="$CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280    for ac_exec_ext in '' $ac_executable_extensions; do
3281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287  done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292CC=$ac_cv_prog_CC
3293if test -n "$CC"; then
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295$as_echo "$CC" >&6; }
3296else
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299fi
3300
3301
3302fi
3303if test -z "$ac_cv_prog_CC"; then
3304  ac_ct_CC=$CC
3305  # Extract the first word of "gcc", so it can be a program name with args.
3306set dummy gcc; ac_word=$2
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308$as_echo_n "checking for $ac_word... " >&6; }
3309if ${ac_cv_prog_ac_ct_CC+:} false; then :
3310  $as_echo_n "(cached) " >&6
3311else
3312  if test -n "$ac_ct_CC"; then
3313  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314else
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318  IFS=$as_save_IFS
3319  test -z "$as_dir" && as_dir=.
3320    for ac_exec_ext in '' $ac_executable_extensions; do
3321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322    ac_cv_prog_ac_ct_CC="gcc"
3323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324    break 2
3325  fi
3326done
3327  done
3328IFS=$as_save_IFS
3329
3330fi
3331fi
3332ac_ct_CC=$ac_cv_prog_ac_ct_CC
3333if test -n "$ac_ct_CC"; then
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3335$as_echo "$ac_ct_CC" >&6; }
3336else
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339fi
3340
3341  if test "x$ac_ct_CC" = x; then
3342    CC=""
3343  else
3344    case $cross_compiling:$ac_tool_warned in
3345yes:)
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348ac_tool_warned=yes ;;
3349esac
3350    CC=$ac_ct_CC
3351  fi
3352else
3353  CC="$ac_cv_prog_CC"
3354fi
3355
3356if test -z "$CC"; then
3357          if test -n "$ac_tool_prefix"; then
3358    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3359set dummy ${ac_tool_prefix}cc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
3362if ${ac_cv_prog_CC+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  if test -n "$CC"; then
3366  ac_cv_prog_CC="$CC" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373    for ac_exec_ext in '' $ac_executable_extensions; do
3374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375    ac_cv_prog_CC="${ac_tool_prefix}cc"
3376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380  done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385CC=$ac_cv_prog_CC
3386if test -n "$CC"; then
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388$as_echo "$CC" >&6; }
3389else
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395  fi
3396fi
3397if test -z "$CC"; then
3398  # Extract the first word of "cc", so it can be a program name with args.
3399set dummy cc; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; }
3402if ${ac_cv_prog_CC+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  if test -n "$CC"; then
3406  ac_cv_prog_CC="$CC" # Let the user override the test.
3407else
3408  ac_prog_rejected=no
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412  IFS=$as_save_IFS
3413  test -z "$as_dir" && as_dir=.
3414    for ac_exec_ext in '' $ac_executable_extensions; do
3415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3417       ac_prog_rejected=yes
3418       continue
3419     fi
3420    ac_cv_prog_CC="cc"
3421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422    break 2
3423  fi
3424done
3425  done
3426IFS=$as_save_IFS
3427
3428if test $ac_prog_rejected = yes; then
3429  # We found a bogon in the path, so make sure we never use it.
3430  set dummy $ac_cv_prog_CC
3431  shift
3432  if test $# != 0; then
3433    # We chose a different compiler from the bogus one.
3434    # However, it has the same basename, so the bogon will be chosen
3435    # first if we set CC to just the basename; use the full file name.
3436    shift
3437    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3438  fi
3439fi
3440fi
3441fi
3442CC=$ac_cv_prog_CC
3443if test -n "$CC"; then
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445$as_echo "$CC" >&6; }
3446else
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451
3452fi
3453if test -z "$CC"; then
3454  if test -n "$ac_tool_prefix"; then
3455  for ac_prog in cl.exe
3456  do
3457    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460$as_echo_n "checking for $ac_word... " >&6; }
3461if ${ac_cv_prog_CC+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464  if test -n "$CC"; then
3465  ac_cv_prog_CC="$CC" # Let the user override the test.
3466else
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470  IFS=$as_save_IFS
3471  test -z "$as_dir" && as_dir=.
3472    for ac_exec_ext in '' $ac_executable_extensions; do
3473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476    break 2
3477  fi
3478done
3479  done
3480IFS=$as_save_IFS
3481
3482fi
3483fi
3484CC=$ac_cv_prog_CC
3485if test -n "$CC"; then
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487$as_echo "$CC" >&6; }
3488else
3489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490$as_echo "no" >&6; }
3491fi
3492
3493
3494    test -n "$CC" && break
3495  done
3496fi
3497if test -z "$CC"; then
3498  ac_ct_CC=$CC
3499  for ac_prog in cl.exe
3500do
3501  # Extract the first word of "$ac_prog", so it can be a program name with args.
3502set dummy $ac_prog; ac_word=$2
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504$as_echo_n "checking for $ac_word... " >&6; }
3505if ${ac_cv_prog_ac_ct_CC+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  if test -n "$ac_ct_CC"; then
3509  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514  IFS=$as_save_IFS
3515  test -z "$as_dir" && as_dir=.
3516    for ac_exec_ext in '' $ac_executable_extensions; do
3517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518    ac_cv_prog_ac_ct_CC="$ac_prog"
3519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520    break 2
3521  fi
3522done
3523  done
3524IFS=$as_save_IFS
3525
3526fi
3527fi
3528ac_ct_CC=$ac_cv_prog_ac_ct_CC
3529if test -n "$ac_ct_CC"; then
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3531$as_echo "$ac_ct_CC" >&6; }
3532else
3533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534$as_echo "no" >&6; }
3535fi
3536
3537
3538  test -n "$ac_ct_CC" && break
3539done
3540
3541  if test "x$ac_ct_CC" = x; then
3542    CC=""
3543  else
3544    case $cross_compiling:$ac_tool_warned in
3545yes:)
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3548ac_tool_warned=yes ;;
3549esac
3550    CC=$ac_ct_CC
3551  fi
3552fi
3553
3554fi
3555
3556
3557test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559as_fn_error $? "no acceptable C compiler found in \$PATH
3560See \`config.log' for more details" "$LINENO" 5; }
3561
3562# Provide some information about the compiler.
3563$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3564set X $ac_compile
3565ac_compiler=$2
3566for ac_option in --version -v -V -qversion; do
3567  { { ac_try="$ac_compiler $ac_option >&5"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3575  ac_status=$?
3576  if test -s conftest.err; then
3577    sed '10a\
3578... rest of stderr output deleted ...
3579         10q' conftest.err >conftest.er1
3580    cat conftest.er1 >&5
3581  fi
3582  rm -f conftest.er1 conftest.err
3583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584  test $ac_status = 0; }
3585done
3586
3587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598ac_clean_files_save=$ac_clean_files
3599ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3600# Try to create an executable without -o first, disregard a.out.
3601# It will help us diagnose broken compilers, and finding out an intuition
3602# of exeext.
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3604$as_echo_n "checking whether the C compiler works... " >&6; }
3605ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3606
3607# The possible output files:
3608ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3609
3610ac_rmfiles=
3611for ac_file in $ac_files
3612do
3613  case $ac_file in
3614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3615    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3616  esac
3617done
3618rm -f $ac_rmfiles
3619
3620if { { ac_try="$ac_link_default"
3621case "(($ac_try" in
3622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623  *) ac_try_echo=$ac_try;;
3624esac
3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
3627  (eval "$ac_link_default") 2>&5
3628  ac_status=$?
3629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630  test $ac_status = 0; }; then :
3631  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3632# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3633# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3634# so that the user can short-circuit this test for compilers unknown to
3635# Autoconf.
3636for ac_file in $ac_files ''
3637do
3638  test -f "$ac_file" || continue
3639  case $ac_file in
3640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3641	;;
3642    [ab].out )
3643	# We found the default executable, but exeext='' is most
3644	# certainly right.
3645	break;;
3646    *.* )
3647	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3648	then :; else
3649	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650	fi
3651	# We set ac_cv_exeext here because the later test for it is not
3652	# safe: cross compilers may not add the suffix if given an `-o'
3653	# argument, so we may need to know it at that point already.
3654	# Even if this section looks crufty: it has the advantage of
3655	# actually working.
3656	break;;
3657    * )
3658	break;;
3659  esac
3660done
3661test "$ac_cv_exeext" = no && ac_cv_exeext=
3662
3663else
3664  ac_file=''
3665fi
3666if test -z "$ac_file"; then :
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669$as_echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674as_fn_error 77 "C compiler cannot create executables
3675See \`config.log' for more details" "$LINENO" 5; }
3676else
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3678$as_echo "yes" >&6; }
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3681$as_echo_n "checking for C compiler default output file name... " >&6; }
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3683$as_echo "$ac_file" >&6; }
3684ac_exeext=$ac_cv_exeext
3685
3686rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3687ac_clean_files=$ac_clean_files_save
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3689$as_echo_n "checking for suffix of executables... " >&6; }
3690if { { ac_try="$ac_link"
3691case "(($ac_try" in
3692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693  *) ac_try_echo=$ac_try;;
3694esac
3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696$as_echo "$ac_try_echo"; } >&5
3697  (eval "$ac_link") 2>&5
3698  ac_status=$?
3699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700  test $ac_status = 0; }; then :
3701  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3702# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3703# work properly (i.e., refer to `conftest.exe'), while it won't with
3704# `rm'.
3705for ac_file in conftest.exe conftest conftest.*; do
3706  test -f "$ac_file" || continue
3707  case $ac_file in
3708    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3709    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710	  break;;
3711    * ) break;;
3712  esac
3713done
3714else
3715  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3718See \`config.log' for more details" "$LINENO" 5; }
3719fi
3720rm -f conftest conftest$ac_cv_exeext
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3722$as_echo "$ac_cv_exeext" >&6; }
3723
3724rm -f conftest.$ac_ext
3725EXEEXT=$ac_cv_exeext
3726ac_exeext=$EXEEXT
3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729#include <stdio.h>
3730int
3731main ()
3732{
3733FILE *f = fopen ("conftest.out", "w");
3734 return ferror (f) || fclose (f) != 0;
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740ac_clean_files="$ac_clean_files conftest.out"
3741# Check that the compiler produces executables we can run.  If not, either
3742# the compiler is broken, or we cross compile.
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3744$as_echo_n "checking whether we are cross compiling... " >&6; }
3745if test "$cross_compiling" != yes; then
3746  { { ac_try="$ac_link"
3747case "(($ac_try" in
3748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749  *) ac_try_echo=$ac_try;;
3750esac
3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752$as_echo "$ac_try_echo"; } >&5
3753  (eval "$ac_link") 2>&5
3754  ac_status=$?
3755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756  test $ac_status = 0; }
3757  if { ac_try='./conftest$ac_cv_exeext'
3758  { { case "(($ac_try" in
3759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760  *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763$as_echo "$ac_try_echo"; } >&5
3764  (eval "$ac_try") 2>&5
3765  ac_status=$?
3766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767  test $ac_status = 0; }; }; then
3768    cross_compiling=no
3769  else
3770    if test "$cross_compiling" = maybe; then
3771	cross_compiling=yes
3772    else
3773	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775as_fn_error $? "cannot run C compiled programs.
3776If you meant to cross compile, use \`--host'.
3777See \`config.log' for more details" "$LINENO" 5; }
3778    fi
3779  fi
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3782$as_echo "$cross_compiling" >&6; }
3783
3784rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3785ac_clean_files=$ac_clean_files_save
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3787$as_echo_n "checking for suffix of object files... " >&6; }
3788if ${ac_cv_objext+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793
3794int
3795main ()
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802rm -f conftest.o conftest.obj
3803if { { ac_try="$ac_compile"
3804case "(($ac_try" in
3805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806  *) ac_try_echo=$ac_try;;
3807esac
3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809$as_echo "$ac_try_echo"; } >&5
3810  (eval "$ac_compile") 2>&5
3811  ac_status=$?
3812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813  test $ac_status = 0; }; then :
3814  for ac_file in conftest.o conftest.obj conftest.*; do
3815  test -f "$ac_file" || continue;
3816  case $ac_file in
3817    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3818    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819       break;;
3820  esac
3821done
3822else
3823  $as_echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828as_fn_error $? "cannot compute suffix of object files: cannot compile
3829See \`config.log' for more details" "$LINENO" 5; }
3830fi
3831rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3834$as_echo "$ac_cv_objext" >&6; }
3835OBJEXT=$ac_cv_objext
3836ac_objext=$OBJEXT
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3838$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3839if ${ac_cv_c_compiler_gnu+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h.  */
3844
3845int
3846main ()
3847{
3848#ifndef __GNUC__
3849       choke me
3850#endif
3851
3852  ;
3853  return 0;
3854}
3855_ACEOF
3856if ac_fn_c_try_compile "$LINENO"; then :
3857  ac_compiler_gnu=yes
3858else
3859  ac_compiler_gnu=no
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3866$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3867if test $ac_compiler_gnu = yes; then
3868  GCC=yes
3869else
3870  GCC=
3871fi
3872ac_test_CFLAGS=${CFLAGS+set}
3873ac_save_CFLAGS=$CFLAGS
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3875$as_echo_n "checking whether $CC accepts -g... " >&6; }
3876if ${ac_cv_prog_cc_g+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  ac_save_c_werror_flag=$ac_c_werror_flag
3880   ac_c_werror_flag=yes
3881   ac_cv_prog_cc_g=no
3882   CFLAGS="-g"
3883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894if ac_fn_c_try_compile "$LINENO"; then :
3895  ac_cv_prog_cc_g=yes
3896else
3897  CFLAGS=""
3898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900
3901int
3902main ()
3903{
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910
3911else
3912  ac_c_werror_flag=$ac_save_c_werror_flag
3913	 CFLAGS="-g"
3914	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916
3917int
3918main ()
3919{
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926  ac_cv_prog_cc_g=yes
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933   ac_c_werror_flag=$ac_save_c_werror_flag
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3936$as_echo "$ac_cv_prog_cc_g" >&6; }
3937if test "$ac_test_CFLAGS" = set; then
3938  CFLAGS=$ac_save_CFLAGS
3939elif test $ac_cv_prog_cc_g = yes; then
3940  if test "$GCC" = yes; then
3941    CFLAGS="-g -O2"
3942  else
3943    CFLAGS="-g"
3944  fi
3945else
3946  if test "$GCC" = yes; then
3947    CFLAGS="-O2"
3948  else
3949    CFLAGS=
3950  fi
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3953$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3954if ${ac_cv_prog_cc_c89+:} false; then :
3955  $as_echo_n "(cached) " >&6
3956else
3957  ac_cv_prog_cc_c89=no
3958ac_save_CC=$CC
3959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961#include <stdarg.h>
3962#include <stdio.h>
3963#include <sys/types.h>
3964#include <sys/stat.h>
3965/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3966struct buf { int x; };
3967FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968static char *e (p, i)
3969     char **p;
3970     int i;
3971{
3972  return p[i];
3973}
3974static char *f (char * (*g) (char **, int), char **p, ...)
3975{
3976  char *s;
3977  va_list v;
3978  va_start (v,p);
3979  s = g (p, va_arg (v,int));
3980  va_end (v);
3981  return s;
3982}
3983
3984/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3985   function prototypes and stuff, but not '\xHH' hex character constants.
3986   These don't provoke an error unfortunately, instead are silently treated
3987   as 'x'.  The following induces an error, until -std is added to get
3988   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3989   array size at least.  It's necessary to write '\x00'==0 to get something
3990   that's true only with -std.  */
3991int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992
3993/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994   inside strings and character constants.  */
3995#define FOO(x) 'x'
3996int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997
3998int test (int i, double x);
3999struct s1 {int (*f) (int a);};
4000struct s2 {int (*f) (double a);};
4001int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002int argc;
4003char **argv;
4004int
4005main ()
4006{
4007return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014do
4015  CC="$ac_save_CC $ac_arg"
4016  if ac_fn_c_try_compile "$LINENO"; then :
4017  ac_cv_prog_cc_c89=$ac_arg
4018fi
4019rm -f core conftest.err conftest.$ac_objext
4020  test "x$ac_cv_prog_cc_c89" != "xno" && break
4021done
4022rm -f conftest.$ac_ext
4023CC=$ac_save_CC
4024
4025fi
4026# AC_CACHE_VAL
4027case "x$ac_cv_prog_cc_c89" in
4028  x)
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030$as_echo "none needed" >&6; } ;;
4031  xno)
4032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033$as_echo "unsupported" >&6; } ;;
4034  *)
4035    CC="$CC $ac_cv_prog_cc_c89"
4036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4037$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4038esac
4039if test "x$ac_cv_prog_cc_c89" != xno; then :
4040
4041fi
4042
4043ac_ext=c
4044ac_cpp='$CPP $CPPFLAGS'
4045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049depcc="$CC"   am_compiler_list=
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4052$as_echo_n "checking dependency style of $depcc... " >&6; }
4053if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057  # We make a subdir and do the tests there.  Otherwise we can end up
4058  # making bogus files that we don't know about and never remove.  For
4059  # instance it was reported that on HP-UX the gcc test will end up
4060  # making a dummy file named `D' -- because `-MD' means `put the output
4061  # in D'.
4062  mkdir conftest.dir
4063  # Copy depcomp to subdir because otherwise we won't find it if we're
4064  # using a relative directory.
4065  cp "$am_depcomp" conftest.dir
4066  cd conftest.dir
4067  # We will build objects and dependencies in a subdirectory because
4068  # it helps to detect inapplicable dependency modes.  For instance
4069  # both Tru64's cc and ICC support -MD to output dependencies as a
4070  # side effect of compilation, but ICC will put the dependencies in
4071  # the current directory while Tru64 will put them in the object
4072  # directory.
4073  mkdir sub
4074
4075  am_cv_CC_dependencies_compiler_type=none
4076  if test "$am_compiler_list" = ""; then
4077     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078  fi
4079  am__universal=false
4080  case " $depcc " in #(
4081     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4082     esac
4083
4084  for depmode in $am_compiler_list; do
4085    # Setup a source with many dependencies, because some compilers
4086    # like to wrap large dependency lists on column 80 (with \), and
4087    # we should not choose a depcomp mode which is confused by this.
4088    #
4089    # We need to recreate these files for each test, as the compiler may
4090    # overwrite some of them when testing with obscure command lines.
4091    # This happens at least with the AIX C compiler.
4092    : > sub/conftest.c
4093    for i in 1 2 3 4 5 6; do
4094      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4095      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4096      # Solaris 8's {/usr,}/bin/sh.
4097      touch sub/conftst$i.h
4098    done
4099    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4100
4101    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4102    # mode.  It turns out that the SunPro C++ compiler does not properly
4103    # handle `-M -o', and we need to detect this.  Also, some Intel
4104    # versions had trouble with output in subdirs
4105    am__obj=sub/conftest.${OBJEXT-o}
4106    am__minus_obj="-o $am__obj"
4107    case $depmode in
4108    gcc)
4109      # This depmode causes a compiler race in universal mode.
4110      test "$am__universal" = false || continue
4111      ;;
4112    nosideeffect)
4113      # after this tag, mechanisms are not by side-effect, so they'll
4114      # only be used when explicitly requested
4115      if test "x$enable_dependency_tracking" = xyes; then
4116	continue
4117      else
4118	break
4119      fi
4120      ;;
4121    msvisualcpp | msvcmsys)
4122      # This compiler won't grok `-c -o', but also, the minuso test has
4123      # not run yet.  These depmodes are late enough in the game, and
4124      # so weak that their functioning should not be impacted.
4125      am__obj=conftest.${OBJEXT-o}
4126      am__minus_obj=
4127      ;;
4128    none) break ;;
4129    esac
4130    if depmode=$depmode \
4131       source=sub/conftest.c object=$am__obj \
4132       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4133       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4134         >/dev/null 2>conftest.err &&
4135       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4136       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4137       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4138       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4139      # icc doesn't choke on unknown options, it will just issue warnings
4140      # or remarks (even with -Werror).  So we grep stderr for any message
4141      # that says an option was ignored or not supported.
4142      # When given -MP, icc 7.0 and 7.1 complain thusly:
4143      #   icc: Command line warning: ignoring option '-M'; no argument required
4144      # The diagnosis changed in icc 8.0:
4145      #   icc: Command line remark: option '-MP' not supported
4146      if (grep 'ignoring option' conftest.err ||
4147          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4148        am_cv_CC_dependencies_compiler_type=$depmode
4149        break
4150      fi
4151    fi
4152  done
4153
4154  cd ..
4155  rm -rf conftest.dir
4156else
4157  am_cv_CC_dependencies_compiler_type=none
4158fi
4159
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4162$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4163CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4164
4165 if
4166  test "x$enable_dependency_tracking" != xno \
4167  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4168  am__fastdepCC_TRUE=
4169  am__fastdepCC_FALSE='#'
4170else
4171  am__fastdepCC_TRUE='#'
4172  am__fastdepCC_FALSE=
4173fi
4174
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4177$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4178if ${ac_cv_path_SED+:} false; then :
4179  $as_echo_n "(cached) " >&6
4180else
4181            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4182     for ac_i in 1 2 3 4 5 6 7; do
4183       ac_script="$ac_script$as_nl$ac_script"
4184     done
4185     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4186     { ac_script=; unset ac_script;}
4187     if test -z "$SED"; then
4188  ac_path_SED_found=false
4189  # Loop through the user's path and test for each of PROGNAME-LIST
4190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193  IFS=$as_save_IFS
4194  test -z "$as_dir" && as_dir=.
4195    for ac_prog in sed gsed; do
4196    for ac_exec_ext in '' $ac_executable_extensions; do
4197      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4198      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4199# Check for GNU ac_path_SED and select it if it is found.
4200  # Check for GNU $ac_path_SED
4201case `"$ac_path_SED" --version 2>&1` in
4202*GNU*)
4203  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4204*)
4205  ac_count=0
4206  $as_echo_n 0123456789 >"conftest.in"
4207  while :
4208  do
4209    cat "conftest.in" "conftest.in" >"conftest.tmp"
4210    mv "conftest.tmp" "conftest.in"
4211    cp "conftest.in" "conftest.nl"
4212    $as_echo '' >> "conftest.nl"
4213    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215    as_fn_arith $ac_count + 1 && ac_count=$as_val
4216    if test $ac_count -gt ${ac_path_SED_max-0}; then
4217      # Best one so far, save it but keep looking for a better one
4218      ac_cv_path_SED="$ac_path_SED"
4219      ac_path_SED_max=$ac_count
4220    fi
4221    # 10*(2^10) chars as input seems more than enough
4222    test $ac_count -gt 10 && break
4223  done
4224  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227      $ac_path_SED_found && break 3
4228    done
4229  done
4230  done
4231IFS=$as_save_IFS
4232  if test -z "$ac_cv_path_SED"; then
4233    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4234  fi
4235else
4236  ac_cv_path_SED=$SED
4237fi
4238
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4241$as_echo "$ac_cv_path_SED" >&6; }
4242 SED="$ac_cv_path_SED"
4243  rm -f conftest.sed
4244
4245test -z "$SED" && SED=sed
4246Xsed="$SED -e 1s/^X//"
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4259$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4260if ${ac_cv_path_GREP+:} false; then :
4261  $as_echo_n "(cached) " >&6
4262else
4263  if test -z "$GREP"; then
4264  ac_path_GREP_found=false
4265  # Loop through the user's path and test for each of PROGNAME-LIST
4266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268do
4269  IFS=$as_save_IFS
4270  test -z "$as_dir" && as_dir=.
4271    for ac_prog in grep ggrep; do
4272    for ac_exec_ext in '' $ac_executable_extensions; do
4273      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4274      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4275# Check for GNU ac_path_GREP and select it if it is found.
4276  # Check for GNU $ac_path_GREP
4277case `"$ac_path_GREP" --version 2>&1` in
4278*GNU*)
4279  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4280*)
4281  ac_count=0
4282  $as_echo_n 0123456789 >"conftest.in"
4283  while :
4284  do
4285    cat "conftest.in" "conftest.in" >"conftest.tmp"
4286    mv "conftest.tmp" "conftest.in"
4287    cp "conftest.in" "conftest.nl"
4288    $as_echo 'GREP' >> "conftest.nl"
4289    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291    as_fn_arith $ac_count + 1 && ac_count=$as_val
4292    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293      # Best one so far, save it but keep looking for a better one
4294      ac_cv_path_GREP="$ac_path_GREP"
4295      ac_path_GREP_max=$ac_count
4296    fi
4297    # 10*(2^10) chars as input seems more than enough
4298    test $ac_count -gt 10 && break
4299  done
4300  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301esac
4302
4303      $ac_path_GREP_found && break 3
4304    done
4305  done
4306  done
4307IFS=$as_save_IFS
4308  if test -z "$ac_cv_path_GREP"; then
4309    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310  fi
4311else
4312  ac_cv_path_GREP=$GREP
4313fi
4314
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4317$as_echo "$ac_cv_path_GREP" >&6; }
4318 GREP="$ac_cv_path_GREP"
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4322$as_echo_n "checking for egrep... " >&6; }
4323if ${ac_cv_path_EGREP+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4327   then ac_cv_path_EGREP="$GREP -E"
4328   else
4329     if test -z "$EGREP"; then
4330  ac_path_EGREP_found=false
4331  # Loop through the user's path and test for each of PROGNAME-LIST
4332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337    for ac_prog in egrep; do
4338    for ac_exec_ext in '' $ac_executable_extensions; do
4339      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4340      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4341# Check for GNU ac_path_EGREP and select it if it is found.
4342  # Check for GNU $ac_path_EGREP
4343case `"$ac_path_EGREP" --version 2>&1` in
4344*GNU*)
4345  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4346*)
4347  ac_count=0
4348  $as_echo_n 0123456789 >"conftest.in"
4349  while :
4350  do
4351    cat "conftest.in" "conftest.in" >"conftest.tmp"
4352    mv "conftest.tmp" "conftest.in"
4353    cp "conftest.in" "conftest.nl"
4354    $as_echo 'EGREP' >> "conftest.nl"
4355    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357    as_fn_arith $ac_count + 1 && ac_count=$as_val
4358    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359      # Best one so far, save it but keep looking for a better one
4360      ac_cv_path_EGREP="$ac_path_EGREP"
4361      ac_path_EGREP_max=$ac_count
4362    fi
4363    # 10*(2^10) chars as input seems more than enough
4364    test $ac_count -gt 10 && break
4365  done
4366  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367esac
4368
4369      $ac_path_EGREP_found && break 3
4370    done
4371  done
4372  done
4373IFS=$as_save_IFS
4374  if test -z "$ac_cv_path_EGREP"; then
4375    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376  fi
4377else
4378  ac_cv_path_EGREP=$EGREP
4379fi
4380
4381   fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4384$as_echo "$ac_cv_path_EGREP" >&6; }
4385 EGREP="$ac_cv_path_EGREP"
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4389$as_echo_n "checking for fgrep... " >&6; }
4390if ${ac_cv_path_FGREP+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4394   then ac_cv_path_FGREP="$GREP -F"
4395   else
4396     if test -z "$FGREP"; then
4397  ac_path_FGREP_found=false
4398  # Loop through the user's path and test for each of PROGNAME-LIST
4399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401do
4402  IFS=$as_save_IFS
4403  test -z "$as_dir" && as_dir=.
4404    for ac_prog in fgrep; do
4405    for ac_exec_ext in '' $ac_executable_extensions; do
4406      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4407      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4408# Check for GNU ac_path_FGREP and select it if it is found.
4409  # Check for GNU $ac_path_FGREP
4410case `"$ac_path_FGREP" --version 2>&1` in
4411*GNU*)
4412  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4413*)
4414  ac_count=0
4415  $as_echo_n 0123456789 >"conftest.in"
4416  while :
4417  do
4418    cat "conftest.in" "conftest.in" >"conftest.tmp"
4419    mv "conftest.tmp" "conftest.in"
4420    cp "conftest.in" "conftest.nl"
4421    $as_echo 'FGREP' >> "conftest.nl"
4422    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424    as_fn_arith $ac_count + 1 && ac_count=$as_val
4425    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4426      # Best one so far, save it but keep looking for a better one
4427      ac_cv_path_FGREP="$ac_path_FGREP"
4428      ac_path_FGREP_max=$ac_count
4429    fi
4430    # 10*(2^10) chars as input seems more than enough
4431    test $ac_count -gt 10 && break
4432  done
4433  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434esac
4435
4436      $ac_path_FGREP_found && break 3
4437    done
4438  done
4439  done
4440IFS=$as_save_IFS
4441  if test -z "$ac_cv_path_FGREP"; then
4442    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443  fi
4444else
4445  ac_cv_path_FGREP=$FGREP
4446fi
4447
4448   fi
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4451$as_echo "$ac_cv_path_FGREP" >&6; }
4452 FGREP="$ac_cv_path_FGREP"
4453
4454
4455test -z "$GREP" && GREP=grep
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475# Check whether --with-gnu-ld was given.
4476if test "${with_gnu_ld+set}" = set; then :
4477  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4478else
4479  with_gnu_ld=no
4480fi
4481
4482ac_prog=ld
4483if test "$GCC" = yes; then
4484  # Check if gcc -print-prog-name=ld gives a path.
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4486$as_echo_n "checking for ld used by $CC... " >&6; }
4487  case $host in
4488  *-*-mingw*)
4489    # gcc leaves a trailing carriage return which upsets mingw
4490    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4491  *)
4492    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4493  esac
4494  case $ac_prog in
4495    # Accept absolute paths.
4496    [\\/]* | ?:[\\/]*)
4497      re_direlt='/[^/][^/]*/\.\./'
4498      # Canonicalize the pathname of ld
4499      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4502      done
4503      test -z "$LD" && LD="$ac_prog"
4504      ;;
4505  "")
4506    # If it fails, then pretend we aren't using GCC.
4507    ac_prog=ld
4508    ;;
4509  *)
4510    # If it is relative, then search for the first ld in PATH.
4511    with_gnu_ld=unknown
4512    ;;
4513  esac
4514elif test "$with_gnu_ld" = yes; then
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4516$as_echo_n "checking for GNU ld... " >&6; }
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4519$as_echo_n "checking for non-GNU ld... " >&6; }
4520fi
4521if ${lt_cv_path_LD+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  if test -z "$LD"; then
4525  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526  for ac_dir in $PATH; do
4527    IFS="$lt_save_ifs"
4528    test -z "$ac_dir" && ac_dir=.
4529    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530      lt_cv_path_LD="$ac_dir/$ac_prog"
4531      # Check to see if the program is GNU ld.  I'd rather use --version,
4532      # but apparently some variants of GNU ld only accept -v.
4533      # Break only if it was the GNU/non-GNU ld that we prefer.
4534      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535      *GNU* | *'with BFD'*)
4536	test "$with_gnu_ld" != no && break
4537	;;
4538      *)
4539	test "$with_gnu_ld" != yes && break
4540	;;
4541      esac
4542    fi
4543  done
4544  IFS="$lt_save_ifs"
4545else
4546  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4547fi
4548fi
4549
4550LD="$lt_cv_path_LD"
4551if test -n "$LD"; then
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4553$as_echo "$LD" >&6; }
4554else
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557fi
4558test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4560$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4561if ${lt_cv_prog_gnu_ld+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565case `$LD -v 2>&1 </dev/null` in
4566*GNU* | *'with BFD'*)
4567  lt_cv_prog_gnu_ld=yes
4568  ;;
4569*)
4570  lt_cv_prog_gnu_ld=no
4571  ;;
4572esac
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4575$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4587$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4588if ${lt_cv_path_NM+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  if test -n "$NM"; then
4592  # Let the user override the test.
4593  lt_cv_path_NM="$NM"
4594else
4595  lt_nm_to_check="${ac_tool_prefix}nm"
4596  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597    lt_nm_to_check="$lt_nm_to_check nm"
4598  fi
4599  for lt_tmp_nm in $lt_nm_to_check; do
4600    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4601    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4602      IFS="$lt_save_ifs"
4603      test -z "$ac_dir" && ac_dir=.
4604      tmp_nm="$ac_dir/$lt_tmp_nm"
4605      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4606	# Check to see if the nm accepts a BSD-compat flag.
4607	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4608	#   nm: unknown option "B" ignored
4609	# Tru64's nm complains that /dev/null is an invalid object file
4610	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4611	*/dev/null* | *'Invalid file or object type'*)
4612	  lt_cv_path_NM="$tmp_nm -B"
4613	  break
4614	  ;;
4615	*)
4616	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4617	  */dev/null*)
4618	    lt_cv_path_NM="$tmp_nm -p"
4619	    break
4620	    ;;
4621	  *)
4622	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623	    continue # so that we can try to find one that supports BSD flags
4624	    ;;
4625	  esac
4626	  ;;
4627	esac
4628      fi
4629    done
4630    IFS="$lt_save_ifs"
4631  done
4632  : ${lt_cv_path_NM=no}
4633fi
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4636$as_echo "$lt_cv_path_NM" >&6; }
4637if test "$lt_cv_path_NM" != "no"; then
4638  NM="$lt_cv_path_NM"
4639else
4640  # Didn't find any BSD compatible name lister, look for dumpbin.
4641  if test -n "$DUMPBIN"; then :
4642    # Let the user override the test.
4643  else
4644    if test -n "$ac_tool_prefix"; then
4645  for ac_prog in dumpbin "link -dump"
4646  do
4647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if ${ac_cv_prog_DUMPBIN+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -n "$DUMPBIN"; then
4655  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669  done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674DUMPBIN=$ac_cv_prog_DUMPBIN
4675if test -n "$DUMPBIN"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4677$as_echo "$DUMPBIN" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684    test -n "$DUMPBIN" && break
4685  done
4686fi
4687if test -z "$DUMPBIN"; then
4688  ac_ct_DUMPBIN=$DUMPBIN
4689  for ac_prog in dumpbin "link -dump"
4690do
4691  # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  if test -n "$ac_ct_DUMPBIN"; then
4699  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706    for ac_exec_ext in '' $ac_executable_extensions; do
4707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713  done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4719if test -n "$ac_ct_DUMPBIN"; then
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4721$as_echo "$ac_ct_DUMPBIN" >&6; }
4722else
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728  test -n "$ac_ct_DUMPBIN" && break
4729done
4730
4731  if test "x$ac_ct_DUMPBIN" = x; then
4732    DUMPBIN=":"
4733  else
4734    case $cross_compiling:$ac_tool_warned in
4735yes:)
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738ac_tool_warned=yes ;;
4739esac
4740    DUMPBIN=$ac_ct_DUMPBIN
4741  fi
4742fi
4743
4744    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4745    *COFF*)
4746      DUMPBIN="$DUMPBIN -symbols"
4747      ;;
4748    *)
4749      DUMPBIN=:
4750      ;;
4751    esac
4752  fi
4753
4754  if test "$DUMPBIN" != ":"; then
4755    NM="$DUMPBIN"
4756  fi
4757fi
4758test -z "$NM" && NM=nm
4759
4760
4761
4762
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4766$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4767if ${lt_cv_nm_interface+:} false; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770  lt_cv_nm_interface="BSD nm"
4771  echo "int some_variable = 0;" > conftest.$ac_ext
4772  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4773  (eval "$ac_compile" 2>conftest.err)
4774  cat conftest.err >&5
4775  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4776  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4777  cat conftest.err >&5
4778  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4779  cat conftest.out >&5
4780  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4781    lt_cv_nm_interface="MS dumpbin"
4782  fi
4783  rm -f conftest*
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4786$as_echo "$lt_cv_nm_interface" >&6; }
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4789$as_echo_n "checking whether ln -s works... " >&6; }
4790LN_S=$as_ln_s
4791if test "$LN_S" = "ln -s"; then
4792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4793$as_echo "yes" >&6; }
4794else
4795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4796$as_echo "no, using $LN_S" >&6; }
4797fi
4798
4799# find the maximum length of command line arguments
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4801$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4802if ${lt_cv_sys_max_cmd_len+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805    i=0
4806  teststring="ABCD"
4807
4808  case $build_os in
4809  msdosdjgpp*)
4810    # On DJGPP, this test can blow up pretty badly due to problems in libc
4811    # (any single argument exceeding 2000 bytes causes a buffer overrun
4812    # during glob expansion).  Even if it were fixed, the result of this
4813    # check would be larger than it should be.
4814    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4815    ;;
4816
4817  gnu*)
4818    # Under GNU Hurd, this test is not required because there is
4819    # no limit to the length of command line arguments.
4820    # Libtool will interpret -1 as no limit whatsoever
4821    lt_cv_sys_max_cmd_len=-1;
4822    ;;
4823
4824  cygwin* | mingw* | cegcc*)
4825    # On Win9x/ME, this test blows up -- it succeeds, but takes
4826    # about 5 minutes as the teststring grows exponentially.
4827    # Worse, since 9x/ME are not pre-emptively multitasking,
4828    # you end up with a "frozen" computer, even though with patience
4829    # the test eventually succeeds (with a max line length of 256k).
4830    # Instead, let's just punt: use the minimum linelength reported by
4831    # all of the supported platforms: 8192 (on NT/2K/XP).
4832    lt_cv_sys_max_cmd_len=8192;
4833    ;;
4834
4835  mint*)
4836    # On MiNT this can take a long time and run out of memory.
4837    lt_cv_sys_max_cmd_len=8192;
4838    ;;
4839
4840  amigaos*)
4841    # On AmigaOS with pdksh, this test takes hours, literally.
4842    # So we just punt and use a minimum line length of 8192.
4843    lt_cv_sys_max_cmd_len=8192;
4844    ;;
4845
4846  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4847    # This has been around since 386BSD, at least.  Likely further.
4848    if test -x /sbin/sysctl; then
4849      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4850    elif test -x /usr/sbin/sysctl; then
4851      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4852    else
4853      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4854    fi
4855    # And add a safety zone
4856    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4857    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4858    ;;
4859
4860  interix*)
4861    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4862    lt_cv_sys_max_cmd_len=196608
4863    ;;
4864
4865  osf*)
4866    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868    # nice to cause kernel panics so lets avoid the loop below.
4869    # First set a reasonable default.
4870    lt_cv_sys_max_cmd_len=16384
4871    #
4872    if test -x /sbin/sysconfig; then
4873      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4875      esac
4876    fi
4877    ;;
4878  sco3.2v5*)
4879    lt_cv_sys_max_cmd_len=102400
4880    ;;
4881  sysv5* | sco5v6* | sysv4.2uw2*)
4882    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883    if test -n "$kargmax"; then
4884      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4885    else
4886      lt_cv_sys_max_cmd_len=32768
4887    fi
4888    ;;
4889  *)
4890    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891    if test -n "$lt_cv_sys_max_cmd_len"; then
4892      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894    else
4895      # Make teststring a little bigger before we do anything with it.
4896      # a 1K string should be a reasonable start.
4897      for i in 1 2 3 4 5 6 7 8 ; do
4898        teststring=$teststring$teststring
4899      done
4900      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901      # If test is not a shell built-in, we'll probably end up computing a
4902      # maximum length that is only half of the actual maximum length, but
4903      # we can't tell.
4904      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4905	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4906	      test $i != 17 # 1/2 MB should be enough
4907      do
4908        i=`expr $i + 1`
4909        teststring=$teststring$teststring
4910      done
4911      # Only check the string length outside the loop.
4912      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4913      teststring=
4914      # Add a significant safety factor because C++ compilers can tack on
4915      # massive amounts of additional arguments before passing them to the
4916      # linker.  It appears as though 1/2 is a usable value.
4917      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4918    fi
4919    ;;
4920  esac
4921
4922fi
4923
4924if test -n $lt_cv_sys_max_cmd_len ; then
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4926$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4927else
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4929$as_echo "none" >&6; }
4930fi
4931max_cmd_len=$lt_cv_sys_max_cmd_len
4932
4933
4934
4935
4936
4937
4938: ${CP="cp -f"}
4939: ${MV="mv -f"}
4940: ${RM="rm -f"}
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4943$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4944# Try some XSI features
4945xsi_shell=no
4946( _lt_dummy="a/b/c"
4947  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4948      = c,a/b,b/c, \
4949    && eval 'test $(( 1 + 1 )) -eq 2 \
4950    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4951  && xsi_shell=yes
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4953$as_echo "$xsi_shell" >&6; }
4954
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4957$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4958lt_shell_append=no
4959( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4960    >/dev/null 2>&1 \
4961  && lt_shell_append=yes
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4963$as_echo "$lt_shell_append" >&6; }
4964
4965
4966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4967  lt_unset=unset
4968else
4969  lt_unset=false
4970fi
4971
4972
4973
4974
4975
4976# test EBCDIC or ASCII
4977case `echo X|tr X '\101'` in
4978 A) # ASCII based system
4979    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4980  lt_SP2NL='tr \040 \012'
4981  lt_NL2SP='tr \015\012 \040\040'
4982  ;;
4983 *) # EBCDIC based system
4984  lt_SP2NL='tr \100 \n'
4985  lt_NL2SP='tr \r\n \100\100'
4986  ;;
4987esac
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4998$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4999if ${lt_cv_to_host_file_cmd+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  case $host in
5003  *-*-mingw* )
5004    case $build in
5005      *-*-mingw* ) # actually msys
5006        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5007        ;;
5008      *-*-cygwin* )
5009        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5010        ;;
5011      * ) # otherwise, assume *nix
5012        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5013        ;;
5014    esac
5015    ;;
5016  *-*-cygwin* )
5017    case $build in
5018      *-*-mingw* ) # actually msys
5019        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5020        ;;
5021      *-*-cygwin* )
5022        lt_cv_to_host_file_cmd=func_convert_file_noop
5023        ;;
5024      * ) # otherwise, assume *nix
5025        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5026        ;;
5027    esac
5028    ;;
5029  * ) # unhandled hosts (and "normal" native builds)
5030    lt_cv_to_host_file_cmd=func_convert_file_noop
5031    ;;
5032esac
5033
5034fi
5035
5036to_host_file_cmd=$lt_cv_to_host_file_cmd
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5038$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5039
5040
5041
5042
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5045$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5046if ${lt_cv_to_tool_file_cmd+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  #assume ordinary cross tools, or native build.
5050lt_cv_to_tool_file_cmd=func_convert_file_noop
5051case $host in
5052  *-*-mingw* )
5053    case $build in
5054      *-*-mingw* ) # actually msys
5055        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5056        ;;
5057    esac
5058    ;;
5059esac
5060
5061fi
5062
5063to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5065$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5066
5067
5068
5069
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5072$as_echo_n "checking for $LD option to reload object files... " >&6; }
5073if ${lt_cv_ld_reload_flag+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  lt_cv_ld_reload_flag='-r'
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5079$as_echo "$lt_cv_ld_reload_flag" >&6; }
5080reload_flag=$lt_cv_ld_reload_flag
5081case $reload_flag in
5082"" | " "*) ;;
5083*) reload_flag=" $reload_flag" ;;
5084esac
5085reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086case $host_os in
5087  cygwin* | mingw* | pw32* | cegcc*)
5088    if test "$GCC" != yes; then
5089      reload_cmds=false
5090    fi
5091    ;;
5092  darwin*)
5093    if test "$GCC" = yes; then
5094      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5095    else
5096      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097    fi
5098    ;;
5099esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109if test -n "$ac_tool_prefix"; then
5110  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5111set dummy ${ac_tool_prefix}objdump; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if ${ac_cv_prog_OBJDUMP+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  if test -n "$OBJDUMP"; then
5118  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123  IFS=$as_save_IFS
5124  test -z "$as_dir" && as_dir=.
5125    for ac_exec_ext in '' $ac_executable_extensions; do
5126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129    break 2
5130  fi
5131done
5132  done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137OBJDUMP=$ac_cv_prog_OBJDUMP
5138if test -n "$OBJDUMP"; then
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5140$as_echo "$OBJDUMP" >&6; }
5141else
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147fi
5148if test -z "$ac_cv_prog_OBJDUMP"; then
5149  ac_ct_OBJDUMP=$OBJDUMP
5150  # Extract the first word of "objdump", so it can be a program name with args.
5151set dummy objdump; ac_word=$2
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  if test -n "$ac_ct_OBJDUMP"; then
5158  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163  IFS=$as_save_IFS
5164  test -z "$as_dir" && as_dir=.
5165    for ac_exec_ext in '' $ac_executable_extensions; do
5166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169    break 2
5170  fi
5171done
5172  done
5173IFS=$as_save_IFS
5174
5175fi
5176fi
5177ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5178if test -n "$ac_ct_OBJDUMP"; then
5179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5180$as_echo "$ac_ct_OBJDUMP" >&6; }
5181else
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
5185
5186  if test "x$ac_ct_OBJDUMP" = x; then
5187    OBJDUMP="false"
5188  else
5189    case $cross_compiling:$ac_tool_warned in
5190yes:)
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195    OBJDUMP=$ac_ct_OBJDUMP
5196  fi
5197else
5198  OBJDUMP="$ac_cv_prog_OBJDUMP"
5199fi
5200
5201test -z "$OBJDUMP" && OBJDUMP=objdump
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5212$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5213if ${lt_cv_deplibs_check_method+:} false; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  lt_cv_file_magic_cmd='$MAGIC_CMD'
5217lt_cv_file_magic_test_file=
5218lt_cv_deplibs_check_method='unknown'
5219# Need to set the preceding variable on all platforms that support
5220# interlibrary dependencies.
5221# 'none' -- dependencies not supported.
5222# `unknown' -- same as none, but documents that we really don't know.
5223# 'pass_all' -- all dependencies passed with no checks.
5224# 'test_compile' -- check by making test program.
5225# 'file_magic [[regex]]' -- check by looking for files in library path
5226# which responds to the $file_magic_cmd with a given extended regex.
5227# If you have `file' or equivalent on your system and you're not sure
5228# whether `pass_all' will *always* work, you probably want this one.
5229
5230case $host_os in
5231aix[4-9]*)
5232  lt_cv_deplibs_check_method=pass_all
5233  ;;
5234
5235beos*)
5236  lt_cv_deplibs_check_method=pass_all
5237  ;;
5238
5239bsdi[45]*)
5240  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5241  lt_cv_file_magic_cmd='/usr/bin/file -L'
5242  lt_cv_file_magic_test_file=/shlib/libc.so
5243  ;;
5244
5245cygwin*)
5246  # func_win32_libid is a shell function defined in ltmain.sh
5247  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248  lt_cv_file_magic_cmd='func_win32_libid'
5249  ;;
5250
5251mingw* | pw32*)
5252  # Base MSYS/MinGW do not provide the 'file' command needed by
5253  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5254  # unless we find 'file', for example because we are cross-compiling.
5255  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5256  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5257    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5258    lt_cv_file_magic_cmd='func_win32_libid'
5259  else
5260    # Keep this pattern in sync with the one in func_win32_libid.
5261    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5262    lt_cv_file_magic_cmd='$OBJDUMP -f'
5263  fi
5264  ;;
5265
5266cegcc*)
5267  # use the weaker test based on 'objdump'. See mingw*.
5268  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5269  lt_cv_file_magic_cmd='$OBJDUMP -f'
5270  ;;
5271
5272darwin* | rhapsody*)
5273  lt_cv_deplibs_check_method=pass_all
5274  ;;
5275
5276freebsd* | dragonfly*)
5277  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5278    case $host_cpu in
5279    i*86 )
5280      # Not sure whether the presence of OpenBSD here was a mistake.
5281      # Let's accept both of them until this is cleared up.
5282      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5283      lt_cv_file_magic_cmd=/usr/bin/file
5284      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5285      ;;
5286    esac
5287  else
5288    lt_cv_deplibs_check_method=pass_all
5289  fi
5290  ;;
5291
5292gnu*)
5293  lt_cv_deplibs_check_method=pass_all
5294  ;;
5295
5296haiku*)
5297  lt_cv_deplibs_check_method=pass_all
5298  ;;
5299
5300hpux10.20* | hpux11*)
5301  lt_cv_file_magic_cmd=/usr/bin/file
5302  case $host_cpu in
5303  ia64*)
5304    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5305    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5306    ;;
5307  hppa*64*)
5308    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]'
5309    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5310    ;;
5311  *)
5312    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5313    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5314    ;;
5315  esac
5316  ;;
5317
5318interix[3-9]*)
5319  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5320  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5321  ;;
5322
5323irix5* | irix6* | nonstopux*)
5324  case $LD in
5325  *-32|*"-32 ") libmagic=32-bit;;
5326  *-n32|*"-n32 ") libmagic=N32;;
5327  *-64|*"-64 ") libmagic=64-bit;;
5328  *) libmagic=never-match;;
5329  esac
5330  lt_cv_deplibs_check_method=pass_all
5331  ;;
5332
5333# This must be Linux ELF.
5334linux* | k*bsd*-gnu | kopensolaris*-gnu)
5335  lt_cv_deplibs_check_method=pass_all
5336  ;;
5337
5338netbsd*)
5339  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5340    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5341  else
5342    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5343  fi
5344  ;;
5345
5346newos6*)
5347  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5348  lt_cv_file_magic_cmd=/usr/bin/file
5349  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5350  ;;
5351
5352*nto* | *qnx*)
5353  lt_cv_deplibs_check_method=pass_all
5354  ;;
5355
5356openbsd*)
5357  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5358    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5359  else
5360    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5361  fi
5362  ;;
5363
5364osf3* | osf4* | osf5*)
5365  lt_cv_deplibs_check_method=pass_all
5366  ;;
5367
5368rdos*)
5369  lt_cv_deplibs_check_method=pass_all
5370  ;;
5371
5372solaris*)
5373  lt_cv_deplibs_check_method=pass_all
5374  ;;
5375
5376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5377  lt_cv_deplibs_check_method=pass_all
5378  ;;
5379
5380sysv4 | sysv4.3*)
5381  case $host_vendor in
5382  motorola)
5383    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]'
5384    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5385    ;;
5386  ncr)
5387    lt_cv_deplibs_check_method=pass_all
5388    ;;
5389  sequent)
5390    lt_cv_file_magic_cmd='/bin/file'
5391    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5392    ;;
5393  sni)
5394    lt_cv_file_magic_cmd='/bin/file'
5395    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5396    lt_cv_file_magic_test_file=/lib/libc.so
5397    ;;
5398  siemens)
5399    lt_cv_deplibs_check_method=pass_all
5400    ;;
5401  pc)
5402    lt_cv_deplibs_check_method=pass_all
5403    ;;
5404  esac
5405  ;;
5406
5407tpf*)
5408  lt_cv_deplibs_check_method=pass_all
5409  ;;
5410esac
5411
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5414$as_echo "$lt_cv_deplibs_check_method" >&6; }
5415
5416file_magic_glob=
5417want_nocaseglob=no
5418if test "$build" = "$host"; then
5419  case $host_os in
5420  mingw* | pw32*)
5421    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5422      want_nocaseglob=yes
5423    else
5424      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5425    fi
5426    ;;
5427  esac
5428fi
5429
5430file_magic_cmd=$lt_cv_file_magic_cmd
5431deplibs_check_method=$lt_cv_deplibs_check_method
5432test -z "$deplibs_check_method" && deplibs_check_method=unknown
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455if test -n "$ac_tool_prefix"; then
5456  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if ${ac_cv_prog_DLLTOOL+:} false; then :
5461  $as_echo_n "(cached) " >&6
5462else
5463  if test -n "$DLLTOOL"; then
5464  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469  IFS=$as_save_IFS
5470  test -z "$as_dir" && as_dir=.
5471    for ac_exec_ext in '' $ac_executable_extensions; do
5472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475    break 2
5476  fi
5477done
5478  done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483DLLTOOL=$ac_cv_prog_DLLTOOL
5484if test -n "$DLLTOOL"; then
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5486$as_echo "$DLLTOOL" >&6; }
5487else
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492
5493fi
5494if test -z "$ac_cv_prog_DLLTOOL"; then
5495  ac_ct_DLLTOOL=$DLLTOOL
5496  # Extract the first word of "dlltool", so it can be a program name with args.
5497set dummy dlltool; ac_word=$2
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  if test -n "$ac_ct_DLLTOOL"; then
5504  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  test -z "$as_dir" && as_dir=.
5511    for ac_exec_ext in '' $ac_executable_extensions; do
5512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515    break 2
5516  fi
5517done
5518  done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5524if test -n "$ac_ct_DLLTOOL"; then
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5526$as_echo "$ac_ct_DLLTOOL" >&6; }
5527else
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532  if test "x$ac_ct_DLLTOOL" = x; then
5533    DLLTOOL="false"
5534  else
5535    case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541    DLLTOOL=$ac_ct_DLLTOOL
5542  fi
5543else
5544  DLLTOOL="$ac_cv_prog_DLLTOOL"
5545fi
5546
5547test -z "$DLLTOOL" && DLLTOOL=dlltool
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5559$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5560if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  lt_cv_sharedlib_from_linklib_cmd='unknown'
5564
5565case $host_os in
5566cygwin* | mingw* | pw32* | cegcc*)
5567  # two different shell functions defined in ltmain.sh
5568  # decide which to use based on capabilities of $DLLTOOL
5569  case `$DLLTOOL --help 2>&1` in
5570  *--identify-strict*)
5571    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5572    ;;
5573  *)
5574    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5575    ;;
5576  esac
5577  ;;
5578*)
5579  # fallback: assume linklib IS sharedlib
5580  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5581  ;;
5582esac
5583
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5586$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5587sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5588test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5589
5590
5591
5592
5593
5594
5595
5596
5597if test -n "$ac_tool_prefix"; then
5598  for ac_prog in ar
5599  do
5600    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if ${ac_cv_prog_AR+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  if test -n "$AR"; then
5608  ac_cv_prog_AR="$AR" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613  IFS=$as_save_IFS
5614  test -z "$as_dir" && as_dir=.
5615    for ac_exec_ext in '' $ac_executable_extensions; do
5616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619    break 2
5620  fi
5621done
5622  done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627AR=$ac_cv_prog_AR
5628if test -n "$AR"; then
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5630$as_echo "$AR" >&6; }
5631else
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636
5637    test -n "$AR" && break
5638  done
5639fi
5640if test -z "$AR"; then
5641  ac_ct_AR=$AR
5642  for ac_prog in ar
5643do
5644  # Extract the first word of "$ac_prog", so it can be a program name with args.
5645set dummy $ac_prog; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_ac_ct_AR+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if test -n "$ac_ct_AR"; then
5652  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661    ac_cv_prog_ac_ct_AR="$ac_prog"
5662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_AR=$ac_cv_prog_ac_ct_AR
5672if test -n "$ac_ct_AR"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5674$as_echo "$ac_ct_AR" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681  test -n "$ac_ct_AR" && break
5682done
5683
5684  if test "x$ac_ct_AR" = x; then
5685    AR="false"
5686  else
5687    case $cross_compiling:$ac_tool_warned in
5688yes:)
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691ac_tool_warned=yes ;;
5692esac
5693    AR=$ac_ct_AR
5694  fi
5695fi
5696
5697: ${AR=ar}
5698: ${AR_FLAGS=cru}
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5711$as_echo_n "checking for archiver @FILE support... " >&6; }
5712if ${lt_cv_ar_at_file+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  lt_cv_ar_at_file=no
5716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718
5719int
5720main ()
5721{
5722
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_compile "$LINENO"; then :
5728  echo conftest.$ac_objext > conftest.lst
5729      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5730      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5731  (eval $lt_ar_try) 2>&5
5732  ac_status=$?
5733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734  test $ac_status = 0; }
5735      if test "$ac_status" -eq 0; then
5736	# Ensure the archiver fails upon bogus file names.
5737	rm -f conftest.$ac_objext libconftest.a
5738	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5739  (eval $lt_ar_try) 2>&5
5740  ac_status=$?
5741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742  test $ac_status = 0; }
5743	if test "$ac_status" -ne 0; then
5744          lt_cv_ar_at_file=@
5745        fi
5746      fi
5747      rm -f conftest.* libconftest.a
5748
5749fi
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5754$as_echo "$lt_cv_ar_at_file" >&6; }
5755
5756if test "x$lt_cv_ar_at_file" = xno; then
5757  archiver_list_spec=
5758else
5759  archiver_list_spec=$lt_cv_ar_at_file
5760fi
5761
5762
5763
5764
5765
5766
5767
5768if test -n "$ac_tool_prefix"; then
5769  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}strip; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
5773if ${ac_cv_prog_STRIP+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  if test -n "$STRIP"; then
5777  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782  IFS=$as_save_IFS
5783  test -z "$as_dir" && as_dir=.
5784    for ac_exec_ext in '' $ac_executable_extensions; do
5785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788    break 2
5789  fi
5790done
5791  done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796STRIP=$ac_cv_prog_STRIP
5797if test -n "$STRIP"; then
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5799$as_echo "$STRIP" >&6; }
5800else
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803fi
5804
5805
5806fi
5807if test -z "$ac_cv_prog_STRIP"; then
5808  ac_ct_STRIP=$STRIP
5809  # Extract the first word of "strip", so it can be a program name with args.
5810set dummy strip; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  if test -n "$ac_ct_STRIP"; then
5817  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824    for ac_exec_ext in '' $ac_executable_extensions; do
5825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826    ac_cv_prog_ac_ct_STRIP="strip"
5827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828    break 2
5829  fi
5830done
5831  done
5832IFS=$as_save_IFS
5833
5834fi
5835fi
5836ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5837if test -n "$ac_ct_STRIP"; then
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5839$as_echo "$ac_ct_STRIP" >&6; }
5840else
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845  if test "x$ac_ct_STRIP" = x; then
5846    STRIP=":"
5847  else
5848    case $cross_compiling:$ac_tool_warned in
5849yes:)
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852ac_tool_warned=yes ;;
5853esac
5854    STRIP=$ac_ct_STRIP
5855  fi
5856else
5857  STRIP="$ac_cv_prog_STRIP"
5858fi
5859
5860test -z "$STRIP" && STRIP=:
5861
5862
5863
5864
5865
5866
5867if test -n "$ac_tool_prefix"; then
5868  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5869set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if ${ac_cv_prog_RANLIB+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  if test -n "$RANLIB"; then
5876  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881  IFS=$as_save_IFS
5882  test -z "$as_dir" && as_dir=.
5883    for ac_exec_ext in '' $ac_executable_extensions; do
5884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887    break 2
5888  fi
5889done
5890  done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895RANLIB=$ac_cv_prog_RANLIB
5896if test -n "$RANLIB"; then
5897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5898$as_echo "$RANLIB" >&6; }
5899else
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905fi
5906if test -z "$ac_cv_prog_RANLIB"; then
5907  ac_ct_RANLIB=$RANLIB
5908  # Extract the first word of "ranlib", so it can be a program name with args.
5909set dummy ranlib; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  if test -n "$ac_ct_RANLIB"; then
5916  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923    for ac_exec_ext in '' $ac_executable_extensions; do
5924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925    ac_cv_prog_ac_ct_RANLIB="ranlib"
5926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930  done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5936if test -n "$ac_ct_RANLIB"; then
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5938$as_echo "$ac_ct_RANLIB" >&6; }
5939else
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944  if test "x$ac_ct_RANLIB" = x; then
5945    RANLIB=":"
5946  else
5947    case $cross_compiling:$ac_tool_warned in
5948yes:)
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951ac_tool_warned=yes ;;
5952esac
5953    RANLIB=$ac_ct_RANLIB
5954  fi
5955else
5956  RANLIB="$ac_cv_prog_RANLIB"
5957fi
5958
5959test -z "$RANLIB" && RANLIB=:
5960
5961
5962
5963
5964
5965
5966# Determine commands to create old-style static archives.
5967old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5968old_postinstall_cmds='chmod 644 $oldlib'
5969old_postuninstall_cmds=
5970
5971if test -n "$RANLIB"; then
5972  case $host_os in
5973  openbsd*)
5974    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5975    ;;
5976  *)
5977    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5978    ;;
5979  esac
5980  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5981fi
5982
5983case $host_os in
5984  darwin*)
5985    lock_old_archive_extraction=yes ;;
5986  *)
5987    lock_old_archive_extraction=no ;;
5988esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028# If no C compiler was specified, use CC.
6029LTCC=${LTCC-"$CC"}
6030
6031# If no C compiler flags were specified, use CFLAGS.
6032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6033
6034# Allow CC to be a program name with arguments.
6035compiler=$CC
6036
6037
6038# Check for command to grab the raw symbol name followed by C symbol from nm.
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6040$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6041if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044
6045# These are sane defaults that work on at least a few old systems.
6046# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6047
6048# Character class describing NM global symbol codes.
6049symcode='[BCDEGRST]'
6050
6051# Regexp to match symbols that can be accessed directly from C.
6052sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6053
6054# Define system-specific variables.
6055case $host_os in
6056aix*)
6057  symcode='[BCDT]'
6058  ;;
6059cygwin* | mingw* | pw32* | cegcc*)
6060  symcode='[ABCDGISTW]'
6061  ;;
6062hpux*)
6063  if test "$host_cpu" = ia64; then
6064    symcode='[ABCDEGRST]'
6065  fi
6066  ;;
6067irix* | nonstopux*)
6068  symcode='[BCDEGRST]'
6069  ;;
6070osf*)
6071  symcode='[BCDEGQRST]'
6072  ;;
6073solaris*)
6074  symcode='[BDRT]'
6075  ;;
6076sco3.2v5*)
6077  symcode='[DT]'
6078  ;;
6079sysv4.2uw2*)
6080  symcode='[DT]'
6081  ;;
6082sysv5* | sco5v6* | unixware* | OpenUNIX*)
6083  symcode='[ABDT]'
6084  ;;
6085sysv4)
6086  symcode='[DFNSTU]'
6087  ;;
6088esac
6089
6090# If we're using GNU nm, then use its standard symbol codes.
6091case `$NM -V 2>&1` in
6092*GNU* | *'with BFD'*)
6093  symcode='[ABCDGIRSTW]' ;;
6094esac
6095
6096# Transform an extracted symbol line into a proper C declaration.
6097# Some systems (esp. on ia64) link data and code symbols differently,
6098# so use this general approach.
6099lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6100
6101# Transform an extracted symbol line into symbol name and symbol address
6102lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6103lt_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'"
6104
6105# Handle CRLF in mingw tool chain
6106opt_cr=
6107case $build_os in
6108mingw*)
6109  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6110  ;;
6111esac
6112
6113# Try without a prefix underscore, then with it.
6114for ac_symprfx in "" "_"; do
6115
6116  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6117  symxfrm="\\1 $ac_symprfx\\2 \\2"
6118
6119  # Write the raw and C identifiers.
6120  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6121    # Fake it for dumpbin and say T for any non-static function
6122    # and D for any global variable.
6123    # Also find C++ and __fastcall symbols from MSVC++,
6124    # which start with @ or ?.
6125    lt_cv_sys_global_symbol_pipe="$AWK '"\
6126"     {last_section=section; section=\$ 3};"\
6127"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6128"     \$ 0!~/External *\|/{next};"\
6129"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6130"     {if(hide[section]) next};"\
6131"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6132"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6133"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6134"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6135"     ' prfx=^$ac_symprfx"
6136  else
6137    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6138  fi
6139  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6140
6141  # Check to see that the pipe works correctly.
6142  pipe_works=no
6143
6144  rm -f conftest*
6145  cat > conftest.$ac_ext <<_LT_EOF
6146#ifdef __cplusplus
6147extern "C" {
6148#endif
6149char nm_test_var;
6150void nm_test_func(void);
6151void nm_test_func(void){}
6152#ifdef __cplusplus
6153}
6154#endif
6155int main(){nm_test_var='a';nm_test_func();return(0);}
6156_LT_EOF
6157
6158  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6159  (eval $ac_compile) 2>&5
6160  ac_status=$?
6161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6162  test $ac_status = 0; }; then
6163    # Now try to grab the symbols.
6164    nlist=conftest.nm
6165    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6166  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6167  ac_status=$?
6168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169  test $ac_status = 0; } && test -s "$nlist"; then
6170      # Try sorting and uniquifying the output.
6171      if sort "$nlist" | uniq > "$nlist"T; then
6172	mv -f "$nlist"T "$nlist"
6173      else
6174	rm -f "$nlist"T
6175      fi
6176
6177      # Make sure that we snagged all the symbols we need.
6178      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6179	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6180	  cat <<_LT_EOF > conftest.$ac_ext
6181/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6182#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6183/* DATA imports from DLLs on WIN32 con't be const, because runtime
6184   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6185# define LT_DLSYM_CONST
6186#elif defined(__osf__)
6187/* This system does not cope well with relocations in const data.  */
6188# define LT_DLSYM_CONST
6189#else
6190# define LT_DLSYM_CONST const
6191#endif
6192
6193#ifdef __cplusplus
6194extern "C" {
6195#endif
6196
6197_LT_EOF
6198	  # Now generate the symbol file.
6199	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6200
6201	  cat <<_LT_EOF >> conftest.$ac_ext
6202
6203/* The mapping between symbol names and symbols.  */
6204LT_DLSYM_CONST struct {
6205  const char *name;
6206  void       *address;
6207}
6208lt__PROGRAM__LTX_preloaded_symbols[] =
6209{
6210  { "@PROGRAM@", (void *) 0 },
6211_LT_EOF
6212	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6213	  cat <<\_LT_EOF >> conftest.$ac_ext
6214  {0, (void *) 0}
6215};
6216
6217/* This works around a problem in FreeBSD linker */
6218#ifdef FREEBSD_WORKAROUND
6219static const void *lt_preloaded_setup() {
6220  return lt__PROGRAM__LTX_preloaded_symbols;
6221}
6222#endif
6223
6224#ifdef __cplusplus
6225}
6226#endif
6227_LT_EOF
6228	  # Now try linking the two files.
6229	  mv conftest.$ac_objext conftstm.$ac_objext
6230	  lt_globsym_save_LIBS=$LIBS
6231	  lt_globsym_save_CFLAGS=$CFLAGS
6232	  LIBS="conftstm.$ac_objext"
6233	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6234	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6235  (eval $ac_link) 2>&5
6236  ac_status=$?
6237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6239	    pipe_works=yes
6240	  fi
6241	  LIBS=$lt_globsym_save_LIBS
6242	  CFLAGS=$lt_globsym_save_CFLAGS
6243	else
6244	  echo "cannot find nm_test_func in $nlist" >&5
6245	fi
6246      else
6247	echo "cannot find nm_test_var in $nlist" >&5
6248      fi
6249    else
6250      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6251    fi
6252  else
6253    echo "$progname: failed program was:" >&5
6254    cat conftest.$ac_ext >&5
6255  fi
6256  rm -rf conftest* conftst*
6257
6258  # Do not use the global_symbol_pipe unless it works.
6259  if test "$pipe_works" = yes; then
6260    break
6261  else
6262    lt_cv_sys_global_symbol_pipe=
6263  fi
6264done
6265
6266fi
6267
6268if test -z "$lt_cv_sys_global_symbol_pipe"; then
6269  lt_cv_sys_global_symbol_to_cdecl=
6270fi
6271if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6273$as_echo "failed" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6276$as_echo "ok" >&6; }
6277fi
6278
6279# Response file support.
6280if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6281  nm_file_list_spec='@'
6282elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6283  nm_file_list_spec='@'
6284fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6313$as_echo_n "checking for sysroot... " >&6; }
6314
6315# Check whether --with-sysroot was given.
6316if test "${with_sysroot+set}" = set; then :
6317  withval=$with_sysroot;
6318else
6319  with_sysroot=no
6320fi
6321
6322
6323lt_sysroot=
6324case ${with_sysroot} in #(
6325 yes)
6326   if test "$GCC" = yes; then
6327     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6328   fi
6329   ;; #(
6330 /*)
6331   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6332   ;; #(
6333 no|'')
6334   ;; #(
6335 *)
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6337$as_echo "${with_sysroot}" >&6; }
6338   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6339   ;;
6340esac
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6343$as_echo "${lt_sysroot:-no}" >&6; }
6344
6345
6346
6347
6348
6349# Check whether --enable-libtool-lock was given.
6350if test "${enable_libtool_lock+set}" = set; then :
6351  enableval=$enable_libtool_lock;
6352fi
6353
6354test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6355
6356# Some flags need to be propagated to the compiler or linker for good
6357# libtool support.
6358case $host in
6359ia64-*-hpux*)
6360  # Find out which ABI we are using.
6361  echo 'int i;' > conftest.$ac_ext
6362  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363  (eval $ac_compile) 2>&5
6364  ac_status=$?
6365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366  test $ac_status = 0; }; then
6367    case `/usr/bin/file conftest.$ac_objext` in
6368      *ELF-32*)
6369	HPUX_IA64_MODE="32"
6370	;;
6371      *ELF-64*)
6372	HPUX_IA64_MODE="64"
6373	;;
6374    esac
6375  fi
6376  rm -rf conftest*
6377  ;;
6378*-*-irix6*)
6379  # Find out which ABI we are using.
6380  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6381  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6382  (eval $ac_compile) 2>&5
6383  ac_status=$?
6384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385  test $ac_status = 0; }; then
6386    if test "$lt_cv_prog_gnu_ld" = yes; then
6387      case `/usr/bin/file conftest.$ac_objext` in
6388	*32-bit*)
6389	  LD="${LD-ld} -melf32bsmip"
6390	  ;;
6391	*N32*)
6392	  LD="${LD-ld} -melf32bmipn32"
6393	  ;;
6394	*64-bit*)
6395	  LD="${LD-ld} -melf64bmip"
6396	;;
6397      esac
6398    else
6399      case `/usr/bin/file conftest.$ac_objext` in
6400	*32-bit*)
6401	  LD="${LD-ld} -32"
6402	  ;;
6403	*N32*)
6404	  LD="${LD-ld} -n32"
6405	  ;;
6406	*64-bit*)
6407	  LD="${LD-ld} -64"
6408	  ;;
6409      esac
6410    fi
6411  fi
6412  rm -rf conftest*
6413  ;;
6414
6415x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6416s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6417  # Find out which ABI we are using.
6418  echo 'int i;' > conftest.$ac_ext
6419  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6420  (eval $ac_compile) 2>&5
6421  ac_status=$?
6422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423  test $ac_status = 0; }; then
6424    case `/usr/bin/file conftest.o` in
6425      *32-bit*)
6426	case $host in
6427	  x86_64-*kfreebsd*-gnu)
6428	    LD="${LD-ld} -m elf_i386_fbsd"
6429	    ;;
6430	  x86_64-*linux*)
6431	    LD="${LD-ld} -m elf_i386"
6432	    ;;
6433	  ppc64-*linux*|powerpc64-*linux*)
6434	    LD="${LD-ld} -m elf32ppclinux"
6435	    ;;
6436	  s390x-*linux*)
6437	    LD="${LD-ld} -m elf_s390"
6438	    ;;
6439	  sparc64-*linux*)
6440	    LD="${LD-ld} -m elf32_sparc"
6441	    ;;
6442	esac
6443	;;
6444      *64-bit*)
6445	case $host in
6446	  x86_64-*kfreebsd*-gnu)
6447	    LD="${LD-ld} -m elf_x86_64_fbsd"
6448	    ;;
6449	  x86_64-*linux*)
6450	    LD="${LD-ld} -m elf_x86_64"
6451	    ;;
6452	  ppc*-*linux*|powerpc*-*linux*)
6453	    LD="${LD-ld} -m elf64ppc"
6454	    ;;
6455	  s390*-*linux*|s390*-*tpf*)
6456	    LD="${LD-ld} -m elf64_s390"
6457	    ;;
6458	  sparc*-*linux*)
6459	    LD="${LD-ld} -m elf64_sparc"
6460	    ;;
6461	esac
6462	;;
6463    esac
6464  fi
6465  rm -rf conftest*
6466  ;;
6467
6468*-*-sco3.2v5*)
6469  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6470  SAVE_CFLAGS="$CFLAGS"
6471  CFLAGS="$CFLAGS -belf"
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6473$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6474if ${lt_cv_cc_needs_belf+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  ac_ext=c
6478ac_cpp='$CPP $CPPFLAGS'
6479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482
6483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485
6486int
6487main ()
6488{
6489
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494if ac_fn_c_try_link "$LINENO"; then :
6495  lt_cv_cc_needs_belf=yes
6496else
6497  lt_cv_cc_needs_belf=no
6498fi
6499rm -f core conftest.err conftest.$ac_objext \
6500    conftest$ac_exeext conftest.$ac_ext
6501     ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507fi
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6509$as_echo "$lt_cv_cc_needs_belf" >&6; }
6510  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6511    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6512    CFLAGS="$SAVE_CFLAGS"
6513  fi
6514  ;;
6515sparc*-*solaris*)
6516  # Find out which ABI we are using.
6517  echo 'int i;' > conftest.$ac_ext
6518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519  (eval $ac_compile) 2>&5
6520  ac_status=$?
6521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522  test $ac_status = 0; }; then
6523    case `/usr/bin/file conftest.o` in
6524    *64-bit*)
6525      case $lt_cv_prog_gnu_ld in
6526      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6527      *)
6528	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6529	  LD="${LD-ld} -64"
6530	fi
6531	;;
6532      esac
6533      ;;
6534    esac
6535  fi
6536  rm -rf conftest*
6537  ;;
6538esac
6539
6540need_locks="$enable_libtool_lock"
6541
6542if test -n "$ac_tool_prefix"; then
6543  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}mt; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  if test -n "$MANIFEST_TOOL"; then
6551  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556  IFS=$as_save_IFS
6557  test -z "$as_dir" && as_dir=.
6558    for ac_exec_ext in '' $ac_executable_extensions; do
6559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562    break 2
6563  fi
6564done
6565  done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6571if test -n "$MANIFEST_TOOL"; then
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6573$as_echo "$MANIFEST_TOOL" >&6; }
6574else
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6582  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6583  # Extract the first word of "mt", so it can be a program name with args.
6584set dummy mt; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  if test -n "$ac_ct_MANIFEST_TOOL"; then
6591  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6611if test -n "$ac_ct_MANIFEST_TOOL"; then
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6613$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6620    MANIFEST_TOOL=":"
6621  else
6622    case $cross_compiling:$ac_tool_warned in
6623yes:)
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6629  fi
6630else
6631  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6632fi
6633
6634test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6636$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6637if ${lt_cv_path_mainfest_tool+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  lt_cv_path_mainfest_tool=no
6641  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6642  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6643  cat conftest.err >&5
6644  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6645    lt_cv_path_mainfest_tool=yes
6646  fi
6647  rm -f conftest*
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6650$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6651if test "x$lt_cv_path_mainfest_tool" != xyes; then
6652  MANIFEST_TOOL=:
6653fi
6654
6655
6656
6657
6658
6659
6660  case $host_os in
6661    rhapsody* | darwin*)
6662    if test -n "$ac_tool_prefix"; then
6663  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6664set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
6667if ${ac_cv_prog_DSYMUTIL+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670  if test -n "$DSYMUTIL"; then
6671  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676  IFS=$as_save_IFS
6677  test -z "$as_dir" && as_dir=.
6678    for ac_exec_ext in '' $ac_executable_extensions; do
6679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682    break 2
6683  fi
6684done
6685  done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690DSYMUTIL=$ac_cv_prog_DSYMUTIL
6691if test -n "$DSYMUTIL"; then
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6693$as_echo "$DSYMUTIL" >&6; }
6694else
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
6699
6700fi
6701if test -z "$ac_cv_prog_DSYMUTIL"; then
6702  ac_ct_DSYMUTIL=$DSYMUTIL
6703  # Extract the first word of "dsymutil", so it can be a program name with args.
6704set dummy dsymutil; ac_word=$2
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706$as_echo_n "checking for $ac_word... " >&6; }
6707if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  if test -n "$ac_ct_DSYMUTIL"; then
6711  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716  IFS=$as_save_IFS
6717  test -z "$as_dir" && as_dir=.
6718    for ac_exec_ext in '' $ac_executable_extensions; do
6719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722    break 2
6723  fi
6724done
6725  done
6726IFS=$as_save_IFS
6727
6728fi
6729fi
6730ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6731if test -n "$ac_ct_DSYMUTIL"; then
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6733$as_echo "$ac_ct_DSYMUTIL" >&6; }
6734else
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739  if test "x$ac_ct_DSYMUTIL" = x; then
6740    DSYMUTIL=":"
6741  else
6742    case $cross_compiling:$ac_tool_warned in
6743yes:)
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746ac_tool_warned=yes ;;
6747esac
6748    DSYMUTIL=$ac_ct_DSYMUTIL
6749  fi
6750else
6751  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6752fi
6753
6754    if test -n "$ac_tool_prefix"; then
6755  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if ${ac_cv_prog_NMEDIT+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  if test -n "$NMEDIT"; then
6763  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768  IFS=$as_save_IFS
6769  test -z "$as_dir" && as_dir=.
6770    for ac_exec_ext in '' $ac_executable_extensions; do
6771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774    break 2
6775  fi
6776done
6777  done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782NMEDIT=$ac_cv_prog_NMEDIT
6783if test -n "$NMEDIT"; then
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6785$as_echo "$NMEDIT" >&6; }
6786else
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
6793if test -z "$ac_cv_prog_NMEDIT"; then
6794  ac_ct_NMEDIT=$NMEDIT
6795  # Extract the first word of "nmedit", so it can be a program name with args.
6796set dummy nmedit; ac_word=$2
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6800  $as_echo_n "(cached) " >&6
6801else
6802  if test -n "$ac_ct_NMEDIT"; then
6803  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  test -z "$as_dir" && as_dir=.
6810    for ac_exec_ext in '' $ac_executable_extensions; do
6811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817  done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6823if test -n "$ac_ct_NMEDIT"; then
6824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6825$as_echo "$ac_ct_NMEDIT" >&6; }
6826else
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831  if test "x$ac_ct_NMEDIT" = x; then
6832    NMEDIT=":"
6833  else
6834    case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840    NMEDIT=$ac_ct_NMEDIT
6841  fi
6842else
6843  NMEDIT="$ac_cv_prog_NMEDIT"
6844fi
6845
6846    if test -n "$ac_tool_prefix"; then
6847  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}lipo; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if ${ac_cv_prog_LIPO+:} false; then :
6852  $as_echo_n "(cached) " >&6
6853else
6854  if test -n "$LIPO"; then
6855  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860  IFS=$as_save_IFS
6861  test -z "$as_dir" && as_dir=.
6862    for ac_exec_ext in '' $ac_executable_extensions; do
6863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866    break 2
6867  fi
6868done
6869  done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874LIPO=$ac_cv_prog_LIPO
6875if test -n "$LIPO"; then
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6877$as_echo "$LIPO" >&6; }
6878else
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883
6884fi
6885if test -z "$ac_cv_prog_LIPO"; then
6886  ac_ct_LIPO=$LIPO
6887  # Extract the first word of "lipo", so it can be a program name with args.
6888set dummy lipo; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  if test -n "$ac_ct_LIPO"; then
6895  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902    for ac_exec_ext in '' $ac_executable_extensions; do
6903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904    ac_cv_prog_ac_ct_LIPO="lipo"
6905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909  done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6915if test -n "$ac_ct_LIPO"; then
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6917$as_echo "$ac_ct_LIPO" >&6; }
6918else
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923  if test "x$ac_ct_LIPO" = x; then
6924    LIPO=":"
6925  else
6926    case $cross_compiling:$ac_tool_warned in
6927yes:)
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930ac_tool_warned=yes ;;
6931esac
6932    LIPO=$ac_ct_LIPO
6933  fi
6934else
6935  LIPO="$ac_cv_prog_LIPO"
6936fi
6937
6938    if test -n "$ac_tool_prefix"; then
6939  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}otool; ac_word=$2
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
6943if ${ac_cv_prog_OTOOL+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  if test -n "$OTOOL"; then
6947  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952  IFS=$as_save_IFS
6953  test -z "$as_dir" && as_dir=.
6954    for ac_exec_ext in '' $ac_executable_extensions; do
6955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958    break 2
6959  fi
6960done
6961  done
6962IFS=$as_save_IFS
6963
6964fi
6965fi
6966OTOOL=$ac_cv_prog_OTOOL
6967if test -n "$OTOOL"; then
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6969$as_echo "$OTOOL" >&6; }
6970else
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974
6975
6976fi
6977if test -z "$ac_cv_prog_OTOOL"; then
6978  ac_ct_OTOOL=$OTOOL
6979  # Extract the first word of "otool", so it can be a program name with args.
6980set dummy otool; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -n "$ac_ct_OTOOL"; then
6987  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992  IFS=$as_save_IFS
6993  test -z "$as_dir" && as_dir=.
6994    for ac_exec_ext in '' $ac_executable_extensions; do
6995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996    ac_cv_prog_ac_ct_OTOOL="otool"
6997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998    break 2
6999  fi
7000done
7001  done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7007if test -n "$ac_ct_OTOOL"; then
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7009$as_echo "$ac_ct_OTOOL" >&6; }
7010else
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015  if test "x$ac_ct_OTOOL" = x; then
7016    OTOOL=":"
7017  else
7018    case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024    OTOOL=$ac_ct_OTOOL
7025  fi
7026else
7027  OTOOL="$ac_cv_prog_OTOOL"
7028fi
7029
7030    if test -n "$ac_tool_prefix"; then
7031  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7032set dummy ${ac_tool_prefix}otool64; ac_word=$2
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034$as_echo_n "checking for $ac_word... " >&6; }
7035if ${ac_cv_prog_OTOOL64+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  if test -n "$OTOOL64"; then
7039  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044  IFS=$as_save_IFS
7045  test -z "$as_dir" && as_dir=.
7046    for ac_exec_ext in '' $ac_executable_extensions; do
7047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050    break 2
7051  fi
7052done
7053  done
7054IFS=$as_save_IFS
7055
7056fi
7057fi
7058OTOOL64=$ac_cv_prog_OTOOL64
7059if test -n "$OTOOL64"; then
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7061$as_echo "$OTOOL64" >&6; }
7062else
7063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064$as_echo "no" >&6; }
7065fi
7066
7067
7068fi
7069if test -z "$ac_cv_prog_OTOOL64"; then
7070  ac_ct_OTOOL64=$OTOOL64
7071  # Extract the first word of "otool64", so it can be a program name with args.
7072set dummy otool64; ac_word=$2
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074$as_echo_n "checking for $ac_word... " >&6; }
7075if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7076  $as_echo_n "(cached) " >&6
7077else
7078  if test -n "$ac_ct_OTOOL64"; then
7079  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7080else
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084  IFS=$as_save_IFS
7085  test -z "$as_dir" && as_dir=.
7086    for ac_exec_ext in '' $ac_executable_extensions; do
7087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088    ac_cv_prog_ac_ct_OTOOL64="otool64"
7089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090    break 2
7091  fi
7092done
7093  done
7094IFS=$as_save_IFS
7095
7096fi
7097fi
7098ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7099if test -n "$ac_ct_OTOOL64"; then
7100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7101$as_echo "$ac_ct_OTOOL64" >&6; }
7102else
7103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104$as_echo "no" >&6; }
7105fi
7106
7107  if test "x$ac_ct_OTOOL64" = x; then
7108    OTOOL64=":"
7109  else
7110    case $cross_compiling:$ac_tool_warned in
7111yes:)
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114ac_tool_warned=yes ;;
7115esac
7116    OTOOL64=$ac_ct_OTOOL64
7117  fi
7118else
7119  OTOOL64="$ac_cv_prog_OTOOL64"
7120fi
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7149$as_echo_n "checking for -single_module linker flag... " >&6; }
7150if ${lt_cv_apple_cc_single_mod+:} false; then :
7151  $as_echo_n "(cached) " >&6
7152else
7153  lt_cv_apple_cc_single_mod=no
7154      if test -z "${LT_MULTI_MODULE}"; then
7155	# By default we will add the -single_module flag. You can override
7156	# by either setting the environment variable LT_MULTI_MODULE
7157	# non-empty at configure time, or by adding -multi_module to the
7158	# link flags.
7159	rm -rf libconftest.dylib*
7160	echo "int foo(void){return 1;}" > conftest.c
7161	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7162-dynamiclib -Wl,-single_module conftest.c" >&5
7163	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7164	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7165        _lt_result=$?
7166	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7167	  lt_cv_apple_cc_single_mod=yes
7168	else
7169	  cat conftest.err >&5
7170	fi
7171	rm -rf libconftest.dylib*
7172	rm -f conftest.*
7173      fi
7174fi
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7176$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7178$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7179if ${lt_cv_ld_exported_symbols_list+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  lt_cv_ld_exported_symbols_list=no
7183      save_LDFLAGS=$LDFLAGS
7184      echo "_main" > conftest.sym
7185      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7186      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188
7189int
7190main ()
7191{
7192
7193  ;
7194  return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_link "$LINENO"; then :
7198  lt_cv_ld_exported_symbols_list=yes
7199else
7200  lt_cv_ld_exported_symbols_list=no
7201fi
7202rm -f core conftest.err conftest.$ac_objext \
7203    conftest$ac_exeext conftest.$ac_ext
7204	LDFLAGS="$save_LDFLAGS"
7205
7206fi
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7208$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7209    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7210$as_echo_n "checking for -force_load linker flag... " >&6; }
7211if ${lt_cv_ld_force_load+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  lt_cv_ld_force_load=no
7215      cat > conftest.c << _LT_EOF
7216int forced_loaded() { return 2;}
7217_LT_EOF
7218      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7219      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7220      echo "$AR cru libconftest.a conftest.o" >&5
7221      $AR cru libconftest.a conftest.o 2>&5
7222      echo "$RANLIB libconftest.a" >&5
7223      $RANLIB libconftest.a 2>&5
7224      cat > conftest.c << _LT_EOF
7225int main() { return 0;}
7226_LT_EOF
7227      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7228      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7229      _lt_result=$?
7230      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7231	lt_cv_ld_force_load=yes
7232      else
7233	cat conftest.err >&5
7234      fi
7235        rm -f conftest.err libconftest.a conftest conftest.c
7236        rm -rf conftest.dSYM
7237
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7240$as_echo "$lt_cv_ld_force_load" >&6; }
7241    case $host_os in
7242    rhapsody* | darwin1.[012])
7243      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7244    darwin1.*)
7245      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246    darwin*) # darwin 5.x on
7247      # if running on 10.5 or later, the deployment target defaults
7248      # to the OS version, if on x86, and 10.4, the deployment
7249      # target defaults to 10.4. Don't you love it?
7250      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7251	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7252	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7253	10.[012]*)
7254	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7255	10.*)
7256	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7257      esac
7258    ;;
7259  esac
7260    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7261      _lt_dar_single_mod='$single_module'
7262    fi
7263    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7264      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7265    else
7266      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7267    fi
7268    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7269      _lt_dsymutil='~$DSYMUTIL $lib || :'
7270    else
7271      _lt_dsymutil=
7272    fi
7273    ;;
7274  esac
7275
7276ac_ext=c
7277ac_cpp='$CPP $CPPFLAGS'
7278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7282$as_echo_n "checking how to run the C preprocessor... " >&6; }
7283# On Suns, sometimes $CPP names a directory.
7284if test -n "$CPP" && test -d "$CPP"; then
7285  CPP=
7286fi
7287if test -z "$CPP"; then
7288  if ${ac_cv_prog_CPP+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291      # Double quotes because CPP needs to be expanded
7292    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7293    do
7294      ac_preproc_ok=false
7295for ac_c_preproc_warn_flag in '' yes
7296do
7297  # Use a header file that comes with gcc, so configuring glibc
7298  # with a fresh cross-compiler works.
7299  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7300  # <limits.h> exists even on freestanding compilers.
7301  # On the NeXT, cc -E runs the code through the compiler's parser,
7302  # not just through cpp. "Syntax error" is here to catch this case.
7303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304/* end confdefs.h.  */
7305#ifdef __STDC__
7306# include <limits.h>
7307#else
7308# include <assert.h>
7309#endif
7310		     Syntax error
7311_ACEOF
7312if ac_fn_c_try_cpp "$LINENO"; then :
7313
7314else
7315  # Broken: fails on valid input.
7316continue
7317fi
7318rm -f conftest.err conftest.i conftest.$ac_ext
7319
7320  # OK, works on sane cases.  Now check whether nonexistent headers
7321  # can be detected and how.
7322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323/* end confdefs.h.  */
7324#include <ac_nonexistent.h>
7325_ACEOF
7326if ac_fn_c_try_cpp "$LINENO"; then :
7327  # Broken: success on invalid input.
7328continue
7329else
7330  # Passes both tests.
7331ac_preproc_ok=:
7332break
7333fi
7334rm -f conftest.err conftest.i conftest.$ac_ext
7335
7336done
7337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7338rm -f conftest.i conftest.err conftest.$ac_ext
7339if $ac_preproc_ok; then :
7340  break
7341fi
7342
7343    done
7344    ac_cv_prog_CPP=$CPP
7345
7346fi
7347  CPP=$ac_cv_prog_CPP
7348else
7349  ac_cv_prog_CPP=$CPP
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7352$as_echo "$CPP" >&6; }
7353ac_preproc_ok=false
7354for ac_c_preproc_warn_flag in '' yes
7355do
7356  # Use a header file that comes with gcc, so configuring glibc
7357  # with a fresh cross-compiler works.
7358  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359  # <limits.h> exists even on freestanding compilers.
7360  # On the NeXT, cc -E runs the code through the compiler's parser,
7361  # not just through cpp. "Syntax error" is here to catch this case.
7362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h.  */
7364#ifdef __STDC__
7365# include <limits.h>
7366#else
7367# include <assert.h>
7368#endif
7369		     Syntax error
7370_ACEOF
7371if ac_fn_c_try_cpp "$LINENO"; then :
7372
7373else
7374  # Broken: fails on valid input.
7375continue
7376fi
7377rm -f conftest.err conftest.i conftest.$ac_ext
7378
7379  # OK, works on sane cases.  Now check whether nonexistent headers
7380  # can be detected and how.
7381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383#include <ac_nonexistent.h>
7384_ACEOF
7385if ac_fn_c_try_cpp "$LINENO"; then :
7386  # Broken: success on invalid input.
7387continue
7388else
7389  # Passes both tests.
7390ac_preproc_ok=:
7391break
7392fi
7393rm -f conftest.err conftest.i conftest.$ac_ext
7394
7395done
7396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7397rm -f conftest.i conftest.err conftest.$ac_ext
7398if $ac_preproc_ok; then :
7399
7400else
7401  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7403as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7404See \`config.log' for more details" "$LINENO" 5; }
7405fi
7406
7407ac_ext=c
7408ac_cpp='$CPP $CPPFLAGS'
7409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411ac_compiler_gnu=$ac_cv_c_compiler_gnu
7412
7413
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7415$as_echo_n "checking for ANSI C header files... " >&6; }
7416if ${ac_cv_header_stdc+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421#include <stdlib.h>
7422#include <stdarg.h>
7423#include <string.h>
7424#include <float.h>
7425
7426int
7427main ()
7428{
7429
7430  ;
7431  return 0;
7432}
7433_ACEOF
7434if ac_fn_c_try_compile "$LINENO"; then :
7435  ac_cv_header_stdc=yes
7436else
7437  ac_cv_header_stdc=no
7438fi
7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440
7441if test $ac_cv_header_stdc = yes; then
7442  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445#include <string.h>
7446
7447_ACEOF
7448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449  $EGREP "memchr" >/dev/null 2>&1; then :
7450
7451else
7452  ac_cv_header_stdc=no
7453fi
7454rm -f conftest*
7455
7456fi
7457
7458if test $ac_cv_header_stdc = yes; then
7459  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462#include <stdlib.h>
7463
7464_ACEOF
7465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7466  $EGREP "free" >/dev/null 2>&1; then :
7467
7468else
7469  ac_cv_header_stdc=no
7470fi
7471rm -f conftest*
7472
7473fi
7474
7475if test $ac_cv_header_stdc = yes; then
7476  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7477  if test "$cross_compiling" = yes; then :
7478  :
7479else
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482#include <ctype.h>
7483#include <stdlib.h>
7484#if ((' ' & 0x0FF) == 0x020)
7485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7487#else
7488# define ISLOWER(c) \
7489		   (('a' <= (c) && (c) <= 'i') \
7490		     || ('j' <= (c) && (c) <= 'r') \
7491		     || ('s' <= (c) && (c) <= 'z'))
7492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7493#endif
7494
7495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7496int
7497main ()
7498{
7499  int i;
7500  for (i = 0; i < 256; i++)
7501    if (XOR (islower (i), ISLOWER (i))
7502	|| toupper (i) != TOUPPER (i))
7503      return 2;
7504  return 0;
7505}
7506_ACEOF
7507if ac_fn_c_try_run "$LINENO"; then :
7508
7509else
7510  ac_cv_header_stdc=no
7511fi
7512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7513  conftest.$ac_objext conftest.beam conftest.$ac_ext
7514fi
7515
7516fi
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7519$as_echo "$ac_cv_header_stdc" >&6; }
7520if test $ac_cv_header_stdc = yes; then
7521
7522$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7523
7524fi
7525
7526# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7527for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7528		  inttypes.h stdint.h unistd.h
7529do :
7530  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7532"
7533if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7534  cat >>confdefs.h <<_ACEOF
7535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536_ACEOF
7537
7538fi
7539
7540done
7541
7542
7543for ac_header in dlfcn.h
7544do :
7545  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7546"
7547if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7548  cat >>confdefs.h <<_ACEOF
7549#define HAVE_DLFCN_H 1
7550_ACEOF
7551
7552fi
7553
7554done
7555
7556
7557
7558
7559
7560# Set options
7561
7562
7563
7564        enable_dlopen=no
7565
7566
7567  enable_win32_dll=no
7568
7569
7570            # Check whether --enable-shared was given.
7571if test "${enable_shared+set}" = set; then :
7572  enableval=$enable_shared; p=${PACKAGE-default}
7573    case $enableval in
7574    yes) enable_shared=yes ;;
7575    no) enable_shared=no ;;
7576    *)
7577      enable_shared=no
7578      # Look at the argument we got.  We use all the common list separators.
7579      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7580      for pkg in $enableval; do
7581	IFS="$lt_save_ifs"
7582	if test "X$pkg" = "X$p"; then
7583	  enable_shared=yes
7584	fi
7585      done
7586      IFS="$lt_save_ifs"
7587      ;;
7588    esac
7589else
7590  enable_shared=yes
7591fi
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601  # Check whether --enable-static was given.
7602if test "${enable_static+set}" = set; then :
7603  enableval=$enable_static; p=${PACKAGE-default}
7604    case $enableval in
7605    yes) enable_static=yes ;;
7606    no) enable_static=no ;;
7607    *)
7608     enable_static=no
7609      # Look at the argument we got.  We use all the common list separators.
7610      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7611      for pkg in $enableval; do
7612	IFS="$lt_save_ifs"
7613	if test "X$pkg" = "X$p"; then
7614	  enable_static=yes
7615	fi
7616      done
7617      IFS="$lt_save_ifs"
7618      ;;
7619    esac
7620else
7621  enable_static=yes
7622fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633# Check whether --with-pic was given.
7634if test "${with_pic+set}" = set; then :
7635  withval=$with_pic; pic_mode="$withval"
7636else
7637  pic_mode=default
7638fi
7639
7640
7641test -z "$pic_mode" && pic_mode=default
7642
7643
7644
7645
7646
7647
7648
7649  # Check whether --enable-fast-install was given.
7650if test "${enable_fast_install+set}" = set; then :
7651  enableval=$enable_fast_install; p=${PACKAGE-default}
7652    case $enableval in
7653    yes) enable_fast_install=yes ;;
7654    no) enable_fast_install=no ;;
7655    *)
7656      enable_fast_install=no
7657      # Look at the argument we got.  We use all the common list separators.
7658      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7659      for pkg in $enableval; do
7660	IFS="$lt_save_ifs"
7661	if test "X$pkg" = "X$p"; then
7662	  enable_fast_install=yes
7663	fi
7664      done
7665      IFS="$lt_save_ifs"
7666      ;;
7667    esac
7668else
7669  enable_fast_install=yes
7670fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682# This can be used to rebuild libtool when needed
7683LIBTOOL_DEPS="$ltmain"
7684
7685# Always use our own libtool.
7686LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713test -z "$LN_S" && LN_S="ln -s"
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728if test -n "${ZSH_VERSION+set}" ; then
7729   setopt NO_GLOB_SUBST
7730fi
7731
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7733$as_echo_n "checking for objdir... " >&6; }
7734if ${lt_cv_objdir+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  rm -f .libs 2>/dev/null
7738mkdir .libs 2>/dev/null
7739if test -d .libs; then
7740  lt_cv_objdir=.libs
7741else
7742  # MS-DOS does not allow filenames that begin with a dot.
7743  lt_cv_objdir=_libs
7744fi
7745rmdir .libs 2>/dev/null
7746fi
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7748$as_echo "$lt_cv_objdir" >&6; }
7749objdir=$lt_cv_objdir
7750
7751
7752
7753
7754
7755cat >>confdefs.h <<_ACEOF
7756#define LT_OBJDIR "$lt_cv_objdir/"
7757_ACEOF
7758
7759
7760
7761
7762case $host_os in
7763aix3*)
7764  # AIX sometimes has problems with the GCC collect2 program.  For some
7765  # reason, if we set the COLLECT_NAMES environment variable, the problems
7766  # vanish in a puff of smoke.
7767  if test "X${COLLECT_NAMES+set}" != Xset; then
7768    COLLECT_NAMES=
7769    export COLLECT_NAMES
7770  fi
7771  ;;
7772esac
7773
7774# Global variables:
7775ofile=libtool
7776can_build_shared=yes
7777
7778# All known linkers require a `.a' archive for static linking (except MSVC,
7779# which needs '.lib').
7780libext=a
7781
7782with_gnu_ld="$lt_cv_prog_gnu_ld"
7783
7784old_CC="$CC"
7785old_CFLAGS="$CFLAGS"
7786
7787# Set sane defaults for various variables
7788test -z "$CC" && CC=cc
7789test -z "$LTCC" && LTCC=$CC
7790test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7791test -z "$LD" && LD=ld
7792test -z "$ac_objext" && ac_objext=o
7793
7794for cc_temp in $compiler""; do
7795  case $cc_temp in
7796    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7797    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7798    \-*) ;;
7799    *) break;;
7800  esac
7801done
7802cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7803
7804
7805# Only perform the check for file, if the check method requires it
7806test -z "$MAGIC_CMD" && MAGIC_CMD=file
7807case $deplibs_check_method in
7808file_magic*)
7809  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7811$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7812if ${lt_cv_path_MAGIC_CMD+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  case $MAGIC_CMD in
7816[\\/*] |  ?:[\\/]*)
7817  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7818  ;;
7819*)
7820  lt_save_MAGIC_CMD="$MAGIC_CMD"
7821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7822  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7823  for ac_dir in $ac_dummy; do
7824    IFS="$lt_save_ifs"
7825    test -z "$ac_dir" && ac_dir=.
7826    if test -f $ac_dir/${ac_tool_prefix}file; then
7827      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7828      if test -n "$file_magic_test_file"; then
7829	case $deplibs_check_method in
7830	"file_magic "*)
7831	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7832	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7833	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7834	    $EGREP "$file_magic_regex" > /dev/null; then
7835	    :
7836	  else
7837	    cat <<_LT_EOF 1>&2
7838
7839*** Warning: the command libtool uses to detect shared libraries,
7840*** $file_magic_cmd, produces output that libtool cannot recognize.
7841*** The result is that libtool may fail to recognize shared libraries
7842*** as such.  This will affect the creation of libtool libraries that
7843*** depend on shared libraries, but programs linked with such libtool
7844*** libraries will work regardless of this problem.  Nevertheless, you
7845*** may want to report the problem to your system manager and/or to
7846*** bug-libtool@gnu.org
7847
7848_LT_EOF
7849	  fi ;;
7850	esac
7851      fi
7852      break
7853    fi
7854  done
7855  IFS="$lt_save_ifs"
7856  MAGIC_CMD="$lt_save_MAGIC_CMD"
7857  ;;
7858esac
7859fi
7860
7861MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7862if test -n "$MAGIC_CMD"; then
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7864$as_echo "$MAGIC_CMD" >&6; }
7865else
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
7868fi
7869
7870
7871
7872
7873
7874if test -z "$lt_cv_path_MAGIC_CMD"; then
7875  if test -n "$ac_tool_prefix"; then
7876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7877$as_echo_n "checking for file... " >&6; }
7878if ${lt_cv_path_MAGIC_CMD+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  case $MAGIC_CMD in
7882[\\/*] |  ?:[\\/]*)
7883  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7884  ;;
7885*)
7886  lt_save_MAGIC_CMD="$MAGIC_CMD"
7887  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7888  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7889  for ac_dir in $ac_dummy; do
7890    IFS="$lt_save_ifs"
7891    test -z "$ac_dir" && ac_dir=.
7892    if test -f $ac_dir/file; then
7893      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7894      if test -n "$file_magic_test_file"; then
7895	case $deplibs_check_method in
7896	"file_magic "*)
7897	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7898	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7899	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7900	    $EGREP "$file_magic_regex" > /dev/null; then
7901	    :
7902	  else
7903	    cat <<_LT_EOF 1>&2
7904
7905*** Warning: the command libtool uses to detect shared libraries,
7906*** $file_magic_cmd, produces output that libtool cannot recognize.
7907*** The result is that libtool may fail to recognize shared libraries
7908*** as such.  This will affect the creation of libtool libraries that
7909*** depend on shared libraries, but programs linked with such libtool
7910*** libraries will work regardless of this problem.  Nevertheless, you
7911*** may want to report the problem to your system manager and/or to
7912*** bug-libtool@gnu.org
7913
7914_LT_EOF
7915	  fi ;;
7916	esac
7917      fi
7918      break
7919    fi
7920  done
7921  IFS="$lt_save_ifs"
7922  MAGIC_CMD="$lt_save_MAGIC_CMD"
7923  ;;
7924esac
7925fi
7926
7927MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7928if test -n "$MAGIC_CMD"; then
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7930$as_echo "$MAGIC_CMD" >&6; }
7931else
7932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
7934fi
7935
7936
7937  else
7938    MAGIC_CMD=:
7939  fi
7940fi
7941
7942  fi
7943  ;;
7944esac
7945
7946# Use C for the default configuration in the libtool script
7947
7948lt_save_CC="$CC"
7949ac_ext=c
7950ac_cpp='$CPP $CPPFLAGS'
7951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7953ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954
7955
7956# Source file extension for C test sources.
7957ac_ext=c
7958
7959# Object file extension for compiled C test sources.
7960objext=o
7961objext=$objext
7962
7963# Code to be used in simple compile tests
7964lt_simple_compile_test_code="int some_variable = 0;"
7965
7966# Code to be used in simple link tests
7967lt_simple_link_test_code='int main(){return(0);}'
7968
7969
7970
7971
7972
7973
7974
7975# If no C compiler was specified, use CC.
7976LTCC=${LTCC-"$CC"}
7977
7978# If no C compiler flags were specified, use CFLAGS.
7979LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7980
7981# Allow CC to be a program name with arguments.
7982compiler=$CC
7983
7984# Save the default compiler, since it gets overwritten when the other
7985# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7986compiler_DEFAULT=$CC
7987
7988# save warnings/boilerplate of simple test code
7989ac_outfile=conftest.$ac_objext
7990echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7991eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7992_lt_compiler_boilerplate=`cat conftest.err`
7993$RM conftest*
7994
7995ac_outfile=conftest.$ac_objext
7996echo "$lt_simple_link_test_code" >conftest.$ac_ext
7997eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7998_lt_linker_boilerplate=`cat conftest.err`
7999$RM -r conftest*
8000
8001
8002if test -n "$compiler"; then
8003
8004lt_prog_compiler_no_builtin_flag=
8005
8006if test "$GCC" = yes; then
8007  case $cc_basename in
8008  nvcc*)
8009    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8010  *)
8011    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8012  esac
8013
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8015$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8016if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  lt_cv_prog_compiler_rtti_exceptions=no
8020   ac_outfile=conftest.$ac_objext
8021   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8022   lt_compiler_flag="-fno-rtti -fno-exceptions"
8023   # Insert the option either (1) after the last *FLAGS variable, or
8024   # (2) before a word containing "conftest.", or (3) at the end.
8025   # Note that $ac_compile itself does not contain backslashes and begins
8026   # with a dollar sign (not a hyphen), so the echo should work correctly.
8027   # The option is referenced via a variable to avoid confusing sed.
8028   lt_compile=`echo "$ac_compile" | $SED \
8029   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8031   -e 's:$: $lt_compiler_flag:'`
8032   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8033   (eval "$lt_compile" 2>conftest.err)
8034   ac_status=$?
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   if (exit $ac_status) && test -s "$ac_outfile"; then
8038     # The compiler can only warn and ignore the option if not recognized
8039     # So say no if there are warnings other than the usual output.
8040     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8041     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8042     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8043       lt_cv_prog_compiler_rtti_exceptions=yes
8044     fi
8045   fi
8046   $RM conftest*
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8050$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8051
8052if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8053    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8054else
8055    :
8056fi
8057
8058fi
8059
8060
8061
8062
8063
8064
8065  lt_prog_compiler_wl=
8066lt_prog_compiler_pic=
8067lt_prog_compiler_static=
8068
8069
8070  if test "$GCC" = yes; then
8071    lt_prog_compiler_wl='-Wl,'
8072    lt_prog_compiler_static='-static'
8073
8074    case $host_os in
8075      aix*)
8076      # All AIX code is PIC.
8077      if test "$host_cpu" = ia64; then
8078	# AIX 5 now supports IA64 processor
8079	lt_prog_compiler_static='-Bstatic'
8080      fi
8081      ;;
8082
8083    amigaos*)
8084      case $host_cpu in
8085      powerpc)
8086            # see comment about AmigaOS4 .so support
8087            lt_prog_compiler_pic='-fPIC'
8088        ;;
8089      m68k)
8090            # FIXME: we need at least 68020 code to build shared libraries, but
8091            # adding the `-m68020' flag to GCC prevents building anything better,
8092            # like `-m68040'.
8093            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8094        ;;
8095      esac
8096      ;;
8097
8098    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8099      # PIC is the default for these OSes.
8100      ;;
8101
8102    mingw* | cygwin* | pw32* | os2* | cegcc*)
8103      # This hack is so that the source file can tell whether it is being
8104      # built for inclusion in a dll (and should export symbols for example).
8105      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8106      # (--disable-auto-import) libraries
8107      lt_prog_compiler_pic='-DDLL_EXPORT'
8108      ;;
8109
8110    darwin* | rhapsody*)
8111      # PIC is the default on this platform
8112      # Common symbols not allowed in MH_DYLIB files
8113      lt_prog_compiler_pic='-fno-common'
8114      ;;
8115
8116    haiku*)
8117      # PIC is the default for Haiku.
8118      # The "-static" flag exists, but is broken.
8119      lt_prog_compiler_static=
8120      ;;
8121
8122    hpux*)
8123      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8124      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8125      # sets the default TLS model and affects inlining.
8126      case $host_cpu in
8127      hppa*64*)
8128	# +Z the default
8129	;;
8130      *)
8131	lt_prog_compiler_pic='-fPIC'
8132	;;
8133      esac
8134      ;;
8135
8136    interix[3-9]*)
8137      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8138      # Instead, we relocate shared libraries at runtime.
8139      ;;
8140
8141    msdosdjgpp*)
8142      # Just because we use GCC doesn't mean we suddenly get shared libraries
8143      # on systems that don't support them.
8144      lt_prog_compiler_can_build_shared=no
8145      enable_shared=no
8146      ;;
8147
8148    *nto* | *qnx*)
8149      # QNX uses GNU C++, but need to define -shared option too, otherwise
8150      # it will coredump.
8151      lt_prog_compiler_pic='-fPIC -shared'
8152      ;;
8153
8154    sysv4*MP*)
8155      if test -d /usr/nec; then
8156	lt_prog_compiler_pic=-Kconform_pic
8157      fi
8158      ;;
8159
8160    *)
8161      lt_prog_compiler_pic='-fPIC'
8162      ;;
8163    esac
8164
8165    case $cc_basename in
8166    nvcc*) # Cuda Compiler Driver 2.2
8167      lt_prog_compiler_wl='-Xlinker '
8168      lt_prog_compiler_pic='-Xcompiler -fPIC'
8169      ;;
8170    esac
8171  else
8172    # PORTME Check for flag to pass linker flags through the system compiler.
8173    case $host_os in
8174    aix*)
8175      lt_prog_compiler_wl='-Wl,'
8176      if test "$host_cpu" = ia64; then
8177	# AIX 5 now supports IA64 processor
8178	lt_prog_compiler_static='-Bstatic'
8179      else
8180	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8181      fi
8182      ;;
8183
8184    mingw* | cygwin* | pw32* | os2* | cegcc*)
8185      # This hack is so that the source file can tell whether it is being
8186      # built for inclusion in a dll (and should export symbols for example).
8187      lt_prog_compiler_pic='-DDLL_EXPORT'
8188      ;;
8189
8190    hpux9* | hpux10* | hpux11*)
8191      lt_prog_compiler_wl='-Wl,'
8192      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8193      # not for PA HP-UX.
8194      case $host_cpu in
8195      hppa*64*|ia64*)
8196	# +Z the default
8197	;;
8198      *)
8199	lt_prog_compiler_pic='+Z'
8200	;;
8201      esac
8202      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8203      lt_prog_compiler_static='${wl}-a ${wl}archive'
8204      ;;
8205
8206    irix5* | irix6* | nonstopux*)
8207      lt_prog_compiler_wl='-Wl,'
8208      # PIC (with -KPIC) is the default.
8209      lt_prog_compiler_static='-non_shared'
8210      ;;
8211
8212    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8213      case $cc_basename in
8214      # old Intel for x86_64 which still supported -KPIC.
8215      ecc*)
8216	lt_prog_compiler_wl='-Wl,'
8217	lt_prog_compiler_pic='-KPIC'
8218	lt_prog_compiler_static='-static'
8219        ;;
8220      # icc used to be incompatible with GCC.
8221      # ICC 10 doesn't accept -KPIC any more.
8222      icc* | ifort*)
8223	lt_prog_compiler_wl='-Wl,'
8224	lt_prog_compiler_pic='-fPIC'
8225	lt_prog_compiler_static='-static'
8226        ;;
8227      # Lahey Fortran 8.1.
8228      lf95*)
8229	lt_prog_compiler_wl='-Wl,'
8230	lt_prog_compiler_pic='--shared'
8231	lt_prog_compiler_static='--static'
8232	;;
8233      nagfor*)
8234	# NAG Fortran compiler
8235	lt_prog_compiler_wl='-Wl,-Wl,,'
8236	lt_prog_compiler_pic='-PIC'
8237	lt_prog_compiler_static='-Bstatic'
8238	;;
8239      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8240        # Portland Group compilers (*not* the Pentium gcc compiler,
8241	# which looks to be a dead project)
8242	lt_prog_compiler_wl='-Wl,'
8243	lt_prog_compiler_pic='-fpic'
8244	lt_prog_compiler_static='-Bstatic'
8245        ;;
8246      ccc*)
8247        lt_prog_compiler_wl='-Wl,'
8248        # All Alpha code is PIC.
8249        lt_prog_compiler_static='-non_shared'
8250        ;;
8251      xl* | bgxl* | bgf* | mpixl*)
8252	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8253	lt_prog_compiler_wl='-Wl,'
8254	lt_prog_compiler_pic='-qpic'
8255	lt_prog_compiler_static='-qstaticlink'
8256	;;
8257      *)
8258	case `$CC -V 2>&1 | sed 5q` in
8259	*Sun\ F* | *Sun*Fortran*)
8260	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8261	  lt_prog_compiler_pic='-KPIC'
8262	  lt_prog_compiler_static='-Bstatic'
8263	  lt_prog_compiler_wl=''
8264	  ;;
8265	*Sun\ C*)
8266	  # Sun C 5.9
8267	  lt_prog_compiler_pic='-KPIC'
8268	  lt_prog_compiler_static='-Bstatic'
8269	  lt_prog_compiler_wl='-Wl,'
8270	  ;;
8271	esac
8272	;;
8273      esac
8274      ;;
8275
8276    newsos6)
8277      lt_prog_compiler_pic='-KPIC'
8278      lt_prog_compiler_static='-Bstatic'
8279      ;;
8280
8281    *nto* | *qnx*)
8282      # QNX uses GNU C++, but need to define -shared option too, otherwise
8283      # it will coredump.
8284      lt_prog_compiler_pic='-fPIC -shared'
8285      ;;
8286
8287    osf3* | osf4* | osf5*)
8288      lt_prog_compiler_wl='-Wl,'
8289      # All OSF/1 code is PIC.
8290      lt_prog_compiler_static='-non_shared'
8291      ;;
8292
8293    rdos*)
8294      lt_prog_compiler_static='-non_shared'
8295      ;;
8296
8297    solaris*)
8298      lt_prog_compiler_pic='-KPIC'
8299      lt_prog_compiler_static='-Bstatic'
8300      case $cc_basename in
8301      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8302	lt_prog_compiler_wl='-Qoption ld ';;
8303      *)
8304	lt_prog_compiler_wl='-Wl,';;
8305      esac
8306      ;;
8307
8308    sunos4*)
8309      lt_prog_compiler_wl='-Qoption ld '
8310      lt_prog_compiler_pic='-PIC'
8311      lt_prog_compiler_static='-Bstatic'
8312      ;;
8313
8314    sysv4 | sysv4.2uw2* | sysv4.3*)
8315      lt_prog_compiler_wl='-Wl,'
8316      lt_prog_compiler_pic='-KPIC'
8317      lt_prog_compiler_static='-Bstatic'
8318      ;;
8319
8320    sysv4*MP*)
8321      if test -d /usr/nec ;then
8322	lt_prog_compiler_pic='-Kconform_pic'
8323	lt_prog_compiler_static='-Bstatic'
8324      fi
8325      ;;
8326
8327    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8328      lt_prog_compiler_wl='-Wl,'
8329      lt_prog_compiler_pic='-KPIC'
8330      lt_prog_compiler_static='-Bstatic'
8331      ;;
8332
8333    unicos*)
8334      lt_prog_compiler_wl='-Wl,'
8335      lt_prog_compiler_can_build_shared=no
8336      ;;
8337
8338    uts4*)
8339      lt_prog_compiler_pic='-pic'
8340      lt_prog_compiler_static='-Bstatic'
8341      ;;
8342
8343    *)
8344      lt_prog_compiler_can_build_shared=no
8345      ;;
8346    esac
8347  fi
8348
8349case $host_os in
8350  # For platforms which do not support PIC, -DPIC is meaningless:
8351  *djgpp*)
8352    lt_prog_compiler_pic=
8353    ;;
8354  *)
8355    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8356    ;;
8357esac
8358
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8360$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8361if ${lt_cv_prog_compiler_pic+:} false; then :
8362  $as_echo_n "(cached) " >&6
8363else
8364  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8365fi
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8367$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8368lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8369
8370#
8371# Check to make sure the PIC flag actually works.
8372#
8373if test -n "$lt_prog_compiler_pic"; then
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8375$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8376if ${lt_cv_prog_compiler_pic_works+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  lt_cv_prog_compiler_pic_works=no
8380   ac_outfile=conftest.$ac_objext
8381   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8382   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8383   # Insert the option either (1) after the last *FLAGS variable, or
8384   # (2) before a word containing "conftest.", or (3) at the end.
8385   # Note that $ac_compile itself does not contain backslashes and begins
8386   # with a dollar sign (not a hyphen), so the echo should work correctly.
8387   # The option is referenced via a variable to avoid confusing sed.
8388   lt_compile=`echo "$ac_compile" | $SED \
8389   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8390   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8391   -e 's:$: $lt_compiler_flag:'`
8392   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8393   (eval "$lt_compile" 2>conftest.err)
8394   ac_status=$?
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   if (exit $ac_status) && test -s "$ac_outfile"; then
8398     # The compiler can only warn and ignore the option if not recognized
8399     # So say no if there are warnings other than the usual output.
8400     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8401     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8403       lt_cv_prog_compiler_pic_works=yes
8404     fi
8405   fi
8406   $RM conftest*
8407
8408fi
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8410$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8411
8412if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8413    case $lt_prog_compiler_pic in
8414     "" | " "*) ;;
8415     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8416     esac
8417else
8418    lt_prog_compiler_pic=
8419     lt_prog_compiler_can_build_shared=no
8420fi
8421
8422fi
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434#
8435# Check to make sure the static flag actually works.
8436#
8437wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8439$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8440if ${lt_cv_prog_compiler_static_works+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  lt_cv_prog_compiler_static_works=no
8444   save_LDFLAGS="$LDFLAGS"
8445   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8446   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8447   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8448     # The linker can only warn and ignore the option if not recognized
8449     # So say no if there are warnings
8450     if test -s conftest.err; then
8451       # Append any errors to the config.log.
8452       cat conftest.err 1>&5
8453       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8454       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455       if diff conftest.exp conftest.er2 >/dev/null; then
8456         lt_cv_prog_compiler_static_works=yes
8457       fi
8458     else
8459       lt_cv_prog_compiler_static_works=yes
8460     fi
8461   fi
8462   $RM -r conftest*
8463   LDFLAGS="$save_LDFLAGS"
8464
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8467$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8468
8469if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8470    :
8471else
8472    lt_prog_compiler_static=
8473fi
8474
8475
8476
8477
8478
8479
8480
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8482$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8483if ${lt_cv_prog_compiler_c_o+:} false; then :
8484  $as_echo_n "(cached) " >&6
8485else
8486  lt_cv_prog_compiler_c_o=no
8487   $RM -r conftest 2>/dev/null
8488   mkdir conftest
8489   cd conftest
8490   mkdir out
8491   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493   lt_compiler_flag="-o out/conftest2.$ac_objext"
8494   # Insert the option either (1) after the last *FLAGS variable, or
8495   # (2) before a word containing "conftest.", or (3) at the end.
8496   # Note that $ac_compile itself does not contain backslashes and begins
8497   # with a dollar sign (not a hyphen), so the echo should work correctly.
8498   lt_compile=`echo "$ac_compile" | $SED \
8499   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501   -e 's:$: $lt_compiler_flag:'`
8502   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8503   (eval "$lt_compile" 2>out/conftest.err)
8504   ac_status=$?
8505   cat out/conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8508   then
8509     # The compiler can only warn and ignore the option if not recognized
8510     # So say no if there are warnings
8511     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8512     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8513     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8514       lt_cv_prog_compiler_c_o=yes
8515     fi
8516   fi
8517   chmod u+w . 2>&5
8518   $RM conftest*
8519   # SGI C++ compiler will create directory out/ii_files/ for
8520   # template instantiation
8521   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8522   $RM out/* && rmdir out
8523   cd ..
8524   $RM -r conftest
8525   $RM conftest*
8526
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8529$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8530
8531
8532
8533
8534
8535
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8537$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8538if ${lt_cv_prog_compiler_c_o+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  lt_cv_prog_compiler_c_o=no
8542   $RM -r conftest 2>/dev/null
8543   mkdir conftest
8544   cd conftest
8545   mkdir out
8546   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547
8548   lt_compiler_flag="-o out/conftest2.$ac_objext"
8549   # Insert the option either (1) after the last *FLAGS variable, or
8550   # (2) before a word containing "conftest.", or (3) at the end.
8551   # Note that $ac_compile itself does not contain backslashes and begins
8552   # with a dollar sign (not a hyphen), so the echo should work correctly.
8553   lt_compile=`echo "$ac_compile" | $SED \
8554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556   -e 's:$: $lt_compiler_flag:'`
8557   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558   (eval "$lt_compile" 2>out/conftest.err)
8559   ac_status=$?
8560   cat out/conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8563   then
8564     # The compiler can only warn and ignore the option if not recognized
8565     # So say no if there are warnings
8566     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8567     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8568     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8569       lt_cv_prog_compiler_c_o=yes
8570     fi
8571   fi
8572   chmod u+w . 2>&5
8573   $RM conftest*
8574   # SGI C++ compiler will create directory out/ii_files/ for
8575   # template instantiation
8576   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8577   $RM out/* && rmdir out
8578   cd ..
8579   $RM -r conftest
8580   $RM conftest*
8581
8582fi
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8584$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8585
8586
8587
8588
8589hard_links="nottested"
8590if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8591  # do not overwrite the value of need_locks provided by the user
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8593$as_echo_n "checking if we can lock with hard links... " >&6; }
8594  hard_links=yes
8595  $RM conftest*
8596  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8597  touch conftest.a
8598  ln conftest.a conftest.b 2>&5 || hard_links=no
8599  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8601$as_echo "$hard_links" >&6; }
8602  if test "$hard_links" = no; then
8603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8604$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8605    need_locks=warn
8606  fi
8607else
8608  need_locks=no
8609fi
8610
8611
8612
8613
8614
8615
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8617$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8618
8619  runpath_var=
8620  allow_undefined_flag=
8621  always_export_symbols=no
8622  archive_cmds=
8623  archive_expsym_cmds=
8624  compiler_needs_object=no
8625  enable_shared_with_static_runtimes=no
8626  export_dynamic_flag_spec=
8627  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8628  hardcode_automatic=no
8629  hardcode_direct=no
8630  hardcode_direct_absolute=no
8631  hardcode_libdir_flag_spec=
8632  hardcode_libdir_flag_spec_ld=
8633  hardcode_libdir_separator=
8634  hardcode_minus_L=no
8635  hardcode_shlibpath_var=unsupported
8636  inherit_rpath=no
8637  link_all_deplibs=unknown
8638  module_cmds=
8639  module_expsym_cmds=
8640  old_archive_from_new_cmds=
8641  old_archive_from_expsyms_cmds=
8642  thread_safe_flag_spec=
8643  whole_archive_flag_spec=
8644  # include_expsyms should be a list of space-separated symbols to be *always*
8645  # included in the symbol list
8646  include_expsyms=
8647  # exclude_expsyms can be an extended regexp of symbols to exclude
8648  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8649  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8650  # as well as any symbol that contains `d'.
8651  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8652  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8653  # platforms (ab)use it in PIC code, but their linkers get confused if
8654  # the symbol is explicitly referenced.  Since portable code cannot
8655  # rely on this symbol name, it's probably fine to never include it in
8656  # preloaded symbol tables.
8657  # Exclude shared library initialization/finalization symbols.
8658  extract_expsyms_cmds=
8659
8660  case $host_os in
8661  cygwin* | mingw* | pw32* | cegcc*)
8662    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8663    # When not using gcc, we currently assume that we are using
8664    # Microsoft Visual C++.
8665    if test "$GCC" != yes; then
8666      with_gnu_ld=no
8667    fi
8668    ;;
8669  interix*)
8670    # we just hope/assume this is gcc and not c89 (= MSVC++)
8671    with_gnu_ld=yes
8672    ;;
8673  openbsd*)
8674    with_gnu_ld=no
8675    ;;
8676  esac
8677
8678  ld_shlibs=yes
8679
8680  # On some targets, GNU ld is compatible enough with the native linker
8681  # that we're better off using the native interface for both.
8682  lt_use_gnu_ld_interface=no
8683  if test "$with_gnu_ld" = yes; then
8684    case $host_os in
8685      aix*)
8686	# The AIX port of GNU ld has always aspired to compatibility
8687	# with the native linker.  However, as the warning in the GNU ld
8688	# block says, versions before 2.19.5* couldn't really create working
8689	# shared libraries, regardless of the interface used.
8690	case `$LD -v 2>&1` in
8691	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8692	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8693	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8694	  *)
8695	    lt_use_gnu_ld_interface=yes
8696	    ;;
8697	esac
8698	;;
8699      *)
8700	lt_use_gnu_ld_interface=yes
8701	;;
8702    esac
8703  fi
8704
8705  if test "$lt_use_gnu_ld_interface" = yes; then
8706    # If archive_cmds runs LD, not CC, wlarc should be empty
8707    wlarc='${wl}'
8708
8709    # Set some defaults for GNU ld with shared library support. These
8710    # are reset later if shared libraries are not supported. Putting them
8711    # here allows them to be overridden if necessary.
8712    runpath_var=LD_RUN_PATH
8713    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8714    export_dynamic_flag_spec='${wl}--export-dynamic'
8715    # ancient GNU ld didn't support --whole-archive et. al.
8716    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8717      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8718    else
8719      whole_archive_flag_spec=
8720    fi
8721    supports_anon_versioning=no
8722    case `$LD -v 2>&1` in
8723      *GNU\ gold*) supports_anon_versioning=yes ;;
8724      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8725      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8726      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8727      *\ 2.11.*) ;; # other 2.11 versions
8728      *) supports_anon_versioning=yes ;;
8729    esac
8730
8731    # See if GNU ld supports shared libraries.
8732    case $host_os in
8733    aix[3-9]*)
8734      # On AIX/PPC, the GNU linker is very broken
8735      if test "$host_cpu" != ia64; then
8736	ld_shlibs=no
8737	cat <<_LT_EOF 1>&2
8738
8739*** Warning: the GNU linker, at least up to release 2.19, is reported
8740*** to be unable to reliably create shared libraries on AIX.
8741*** Therefore, libtool is disabling shared libraries support.  If you
8742*** really care for shared libraries, you may want to install binutils
8743*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8744*** You will then need to restart the configuration process.
8745
8746_LT_EOF
8747      fi
8748      ;;
8749
8750    amigaos*)
8751      case $host_cpu in
8752      powerpc)
8753            # see comment about AmigaOS4 .so support
8754            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755            archive_expsym_cmds=''
8756        ;;
8757      m68k)
8758            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)'
8759            hardcode_libdir_flag_spec='-L$libdir'
8760            hardcode_minus_L=yes
8761        ;;
8762      esac
8763      ;;
8764
8765    beos*)
8766      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8767	allow_undefined_flag=unsupported
8768	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8769	# support --undefined.  This deserves some investigation.  FIXME
8770	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771      else
8772	ld_shlibs=no
8773      fi
8774      ;;
8775
8776    cygwin* | mingw* | pw32* | cegcc*)
8777      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8778      # as there is no search path for DLLs.
8779      hardcode_libdir_flag_spec='-L$libdir'
8780      export_dynamic_flag_spec='${wl}--export-all-symbols'
8781      allow_undefined_flag=unsupported
8782      always_export_symbols=no
8783      enable_shared_with_static_runtimes=yes
8784      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'
8785      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8786
8787      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8788        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8789	# If the export-symbols file already is a .def file (1st line
8790	# is EXPORTS), use it as is; otherwise, prepend...
8791	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8792	  cp $export_symbols $output_objdir/$soname.def;
8793	else
8794	  echo EXPORTS > $output_objdir/$soname.def;
8795	  cat $export_symbols >> $output_objdir/$soname.def;
8796	fi~
8797	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8798      else
8799	ld_shlibs=no
8800      fi
8801      ;;
8802
8803    haiku*)
8804      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805      link_all_deplibs=yes
8806      ;;
8807
8808    interix[3-9]*)
8809      hardcode_direct=no
8810      hardcode_shlibpath_var=no
8811      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812      export_dynamic_flag_spec='${wl}-E'
8813      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8814      # Instead, shared libraries are loaded at an image base (0x10000000 by
8815      # default) and relocated if they conflict, which is a slow very memory
8816      # consuming and fragmenting process.  To avoid this, we pick a random,
8817      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8818      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8819      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8820      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'
8821      ;;
8822
8823    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8824      tmp_diet=no
8825      if test "$host_os" = linux-dietlibc; then
8826	case $cc_basename in
8827	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8828	esac
8829      fi
8830      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8831	 && test "$tmp_diet" = no
8832      then
8833	tmp_addflag=' $pic_flag'
8834	tmp_sharedflag='-shared'
8835	case $cc_basename,$host_cpu in
8836        pgcc*)				# Portland Group C compiler
8837	  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'
8838	  tmp_addflag=' $pic_flag'
8839	  ;;
8840	pgf77* | pgf90* | pgf95* | pgfortran*)
8841					# Portland Group f77 and f90 compilers
8842	  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'
8843	  tmp_addflag=' $pic_flag -Mnomain' ;;
8844	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8845	  tmp_addflag=' -i_dynamic' ;;
8846	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8847	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8848	ifc* | ifort*)			# Intel Fortran compiler
8849	  tmp_addflag=' -nofor_main' ;;
8850	lf95*)				# Lahey Fortran 8.1
8851	  whole_archive_flag_spec=
8852	  tmp_sharedflag='--shared' ;;
8853	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8854	  tmp_sharedflag='-qmkshrobj'
8855	  tmp_addflag= ;;
8856	nvcc*)	# Cuda Compiler Driver 2.2
8857	  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'
8858	  compiler_needs_object=yes
8859	  ;;
8860	esac
8861	case `$CC -V 2>&1 | sed 5q` in
8862	*Sun\ C*)			# Sun C 5.9
8863	  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'
8864	  compiler_needs_object=yes
8865	  tmp_sharedflag='-G' ;;
8866	*Sun\ F*)			# Sun Fortran 8.3
8867	  tmp_sharedflag='-G' ;;
8868	esac
8869	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870
8871        if test "x$supports_anon_versioning" = xyes; then
8872          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8873	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8874	    echo "local: *; };" >> $output_objdir/$libname.ver~
8875	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8876        fi
8877
8878	case $cc_basename in
8879	xlf* | bgf* | bgxlf* | mpixlf*)
8880	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8881	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8882	  hardcode_libdir_flag_spec=
8883	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8884	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8885	  if test "x$supports_anon_versioning" = xyes; then
8886	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8887	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8888	      echo "local: *; };" >> $output_objdir/$libname.ver~
8889	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8890	  fi
8891	  ;;
8892	esac
8893      else
8894        ld_shlibs=no
8895      fi
8896      ;;
8897
8898    netbsd*)
8899      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8900	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8901	wlarc=
8902      else
8903	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8905      fi
8906      ;;
8907
8908    solaris*)
8909      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8910	ld_shlibs=no
8911	cat <<_LT_EOF 1>&2
8912
8913*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8914*** create shared libraries on Solaris systems.  Therefore, libtool
8915*** is disabling shared libraries support.  We urge you to upgrade GNU
8916*** binutils to release 2.9.1 or newer.  Another option is to modify
8917*** your PATH or compiler configuration so that the native linker is
8918*** used, and then restart.
8919
8920_LT_EOF
8921      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8922	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8924      else
8925	ld_shlibs=no
8926      fi
8927      ;;
8928
8929    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8930      case `$LD -v 2>&1` in
8931        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8932	ld_shlibs=no
8933	cat <<_LT_EOF 1>&2
8934
8935*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8936*** reliably create shared libraries on SCO systems.  Therefore, libtool
8937*** is disabling shared libraries support.  We urge you to upgrade GNU
8938*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8939*** your PATH or compiler configuration so that the native linker is
8940*** used, and then restart.
8941
8942_LT_EOF
8943	;;
8944	*)
8945	  # For security reasons, it is highly recommended that you always
8946	  # use absolute paths for naming shared libraries, and exclude the
8947	  # DT_RUNPATH tag from executables and libraries.  But doing so
8948	  # requires that you compile everything twice, which is a pain.
8949	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8950	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8953	  else
8954	    ld_shlibs=no
8955	  fi
8956	;;
8957      esac
8958      ;;
8959
8960    sunos4*)
8961      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8962      wlarc=
8963      hardcode_direct=yes
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    *)
8968      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8969	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971      else
8972	ld_shlibs=no
8973      fi
8974      ;;
8975    esac
8976
8977    if test "$ld_shlibs" = no; then
8978      runpath_var=
8979      hardcode_libdir_flag_spec=
8980      export_dynamic_flag_spec=
8981      whole_archive_flag_spec=
8982    fi
8983  else
8984    # PORTME fill in a description of your system's linker (not GNU ld)
8985    case $host_os in
8986    aix3*)
8987      allow_undefined_flag=unsupported
8988      always_export_symbols=yes
8989      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'
8990      # Note: this linker hardcodes the directories in LIBPATH if there
8991      # are no directories specified by -L.
8992      hardcode_minus_L=yes
8993      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8994	# Neither direct hardcoding nor static linking is supported with a
8995	# broken collect2.
8996	hardcode_direct=unsupported
8997      fi
8998      ;;
8999
9000    aix[4-9]*)
9001      if test "$host_cpu" = ia64; then
9002	# On IA64, the linker does run time linking by default, so we don't
9003	# have to do anything special.
9004	aix_use_runtimelinking=no
9005	exp_sym_flag='-Bexport'
9006	no_entry_flag=""
9007      else
9008	# If we're using GNU nm, then we don't want the "-C" option.
9009	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9010	# Also, AIX nm treats weak defined symbols like other global
9011	# defined symbols, whereas GNU nm marks them as "W".
9012	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9013	  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'
9014	else
9015	  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'
9016	fi
9017	aix_use_runtimelinking=no
9018
9019	# Test if we are trying to use run time linking or normal
9020	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9021	# need to do runtime linking.
9022	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9023	  for ld_flag in $LDFLAGS; do
9024	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9025	    aix_use_runtimelinking=yes
9026	    break
9027	  fi
9028	  done
9029	  ;;
9030	esac
9031
9032	exp_sym_flag='-bexport'
9033	no_entry_flag='-bnoentry'
9034      fi
9035
9036      # When large executables or shared objects are built, AIX ld can
9037      # have problems creating the table of contents.  If linking a library
9038      # or program results in "error TOC overflow" add -mminimal-toc to
9039      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9040      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9041
9042      archive_cmds=''
9043      hardcode_direct=yes
9044      hardcode_direct_absolute=yes
9045      hardcode_libdir_separator=':'
9046      link_all_deplibs=yes
9047      file_list_spec='${wl}-f,'
9048
9049      if test "$GCC" = yes; then
9050	case $host_os in aix4.[012]|aix4.[012].*)
9051	# We only want to do this on AIX 4.2 and lower, the check
9052	# below for broken collect2 doesn't work under 4.3+
9053	  collect2name=`${CC} -print-prog-name=collect2`
9054	  if test -f "$collect2name" &&
9055	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9056	  then
9057	  # We have reworked collect2
9058	  :
9059	  else
9060	  # We have old collect2
9061	  hardcode_direct=unsupported
9062	  # It fails to find uninstalled libraries when the uninstalled
9063	  # path is not listed in the libpath.  Setting hardcode_minus_L
9064	  # to unsupported forces relinking
9065	  hardcode_minus_L=yes
9066	  hardcode_libdir_flag_spec='-L$libdir'
9067	  hardcode_libdir_separator=
9068	  fi
9069	  ;;
9070	esac
9071	shared_flag='-shared'
9072	if test "$aix_use_runtimelinking" = yes; then
9073	  shared_flag="$shared_flag "'${wl}-G'
9074	fi
9075      else
9076	# not using gcc
9077	if test "$host_cpu" = ia64; then
9078	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9079	# chokes on -Wl,-G. The following line is correct:
9080	  shared_flag='-G'
9081	else
9082	  if test "$aix_use_runtimelinking" = yes; then
9083	    shared_flag='${wl}-G'
9084	  else
9085	    shared_flag='${wl}-bM:SRE'
9086	  fi
9087	fi
9088      fi
9089
9090      export_dynamic_flag_spec='${wl}-bexpall'
9091      # It seems that -bexpall does not export symbols beginning with
9092      # underscore (_), so it is better to generate a list of symbols to export.
9093      always_export_symbols=yes
9094      if test "$aix_use_runtimelinking" = yes; then
9095	# Warning - without using the other runtime loading flags (-brtl),
9096	# -berok will link without error, but may produce a broken library.
9097	allow_undefined_flag='-berok'
9098        # Determine the default libpath from the value encoded in an
9099        # empty executable.
9100        if test "${lt_cv_aix_libpath+set}" = set; then
9101  aix_libpath=$lt_cv_aix_libpath
9102else
9103  if ${lt_cv_aix_libpath_+:} false; then :
9104  $as_echo_n "(cached) " >&6
9105else
9106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h.  */
9108
9109int
9110main ()
9111{
9112
9113  ;
9114  return 0;
9115}
9116_ACEOF
9117if ac_fn_c_try_link "$LINENO"; then :
9118
9119  lt_aix_libpath_sed='
9120      /Import File Strings/,/^$/ {
9121	  /^0/ {
9122	      s/^0  *\([^ ]*\) *$/\1/
9123	      p
9124	  }
9125      }'
9126  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9127  # Check for a 64-bit object if we didn't find anything.
9128  if test -z "$lt_cv_aix_libpath_"; then
9129    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130  fi
9131fi
9132rm -f core conftest.err conftest.$ac_objext \
9133    conftest$ac_exeext conftest.$ac_ext
9134  if test -z "$lt_cv_aix_libpath_"; then
9135    lt_cv_aix_libpath_="/usr/lib:/lib"
9136  fi
9137
9138fi
9139
9140  aix_libpath=$lt_cv_aix_libpath_
9141fi
9142
9143        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144        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"
9145      else
9146	if test "$host_cpu" = ia64; then
9147	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9148	  allow_undefined_flag="-z nodefs"
9149	  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"
9150	else
9151	 # Determine the default libpath from the value encoded in an
9152	 # empty executable.
9153	 if test "${lt_cv_aix_libpath+set}" = set; then
9154  aix_libpath=$lt_cv_aix_libpath
9155else
9156  if ${lt_cv_aix_libpath_+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h.  */
9161
9162int
9163main ()
9164{
9165
9166  ;
9167  return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"; then :
9171
9172  lt_aix_libpath_sed='
9173      /Import File Strings/,/^$/ {
9174	  /^0/ {
9175	      s/^0  *\([^ ]*\) *$/\1/
9176	      p
9177	  }
9178      }'
9179  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180  # Check for a 64-bit object if we didn't find anything.
9181  if test -z "$lt_cv_aix_libpath_"; then
9182    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183  fi
9184fi
9185rm -f core conftest.err conftest.$ac_objext \
9186    conftest$ac_exeext conftest.$ac_ext
9187  if test -z "$lt_cv_aix_libpath_"; then
9188    lt_cv_aix_libpath_="/usr/lib:/lib"
9189  fi
9190
9191fi
9192
9193  aix_libpath=$lt_cv_aix_libpath_
9194fi
9195
9196	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9197	  # Warning - without using the other run time loading flags,
9198	  # -berok will link without error, but may produce a broken library.
9199	  no_undefined_flag=' ${wl}-bernotok'
9200	  allow_undefined_flag=' ${wl}-berok'
9201	  if test "$with_gnu_ld" = yes; then
9202	    # We only use this code for GNU lds that support --whole-archive.
9203	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9204	  else
9205	    # Exported symbols can be pulled into shared objects from archives
9206	    whole_archive_flag_spec='$convenience'
9207	  fi
9208	  archive_cmds_need_lc=yes
9209	  # This is similar to how AIX traditionally builds its shared libraries.
9210	  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'
9211	fi
9212      fi
9213      ;;
9214
9215    amigaos*)
9216      case $host_cpu in
9217      powerpc)
9218            # see comment about AmigaOS4 .so support
9219            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220            archive_expsym_cmds=''
9221        ;;
9222      m68k)
9223            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)'
9224            hardcode_libdir_flag_spec='-L$libdir'
9225            hardcode_minus_L=yes
9226        ;;
9227      esac
9228      ;;
9229
9230    bsdi[45]*)
9231      export_dynamic_flag_spec=-rdynamic
9232      ;;
9233
9234    cygwin* | mingw* | pw32* | cegcc*)
9235      # When not using gcc, we currently assume that we are using
9236      # Microsoft Visual C++.
9237      # hardcode_libdir_flag_spec is actually meaningless, as there is
9238      # no search path for DLLs.
9239      case $cc_basename in
9240      cl*)
9241	# Native MSVC
9242	hardcode_libdir_flag_spec=' '
9243	allow_undefined_flag=unsupported
9244	always_export_symbols=yes
9245	file_list_spec='@'
9246	# Tell ltmain to make .lib files, not .a files.
9247	libext=lib
9248	# Tell ltmain to make .dll files, not .so files.
9249	shrext_cmds=".dll"
9250	# FIXME: Setting linknames here is a bad hack.
9251	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9252	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9253	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9254	  else
9255	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9256	  fi~
9257	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9258	  linknames='
9259	# The linker will not automatically build a static lib if we build a DLL.
9260	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9261	enable_shared_with_static_runtimes=yes
9262	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9263	# Don't use ranlib
9264	old_postinstall_cmds='chmod 644 $oldlib'
9265	postlink_cmds='lt_outputfile="@OUTPUT@"~
9266	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9267	  case $lt_outputfile in
9268	    *.exe|*.EXE) ;;
9269	    *)
9270	      lt_outputfile="$lt_outputfile.exe"
9271	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9272	      ;;
9273	  esac~
9274	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9275	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9276	    $RM "$lt_outputfile.manifest";
9277	  fi'
9278	;;
9279      *)
9280	# Assume MSVC wrapper
9281	hardcode_libdir_flag_spec=' '
9282	allow_undefined_flag=unsupported
9283	# Tell ltmain to make .lib files, not .a files.
9284	libext=lib
9285	# Tell ltmain to make .dll files, not .so files.
9286	shrext_cmds=".dll"
9287	# FIXME: Setting linknames here is a bad hack.
9288	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9289	# The linker will automatically build a .lib file if we build a DLL.
9290	old_archive_from_new_cmds='true'
9291	# FIXME: Should let the user specify the lib program.
9292	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9293	enable_shared_with_static_runtimes=yes
9294	;;
9295      esac
9296      ;;
9297
9298    darwin* | rhapsody*)
9299
9300
9301  archive_cmds_need_lc=no
9302  hardcode_direct=no
9303  hardcode_automatic=yes
9304  hardcode_shlibpath_var=unsupported
9305  if test "$lt_cv_ld_force_load" = "yes"; then
9306    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\"`'
9307  else
9308    whole_archive_flag_spec=''
9309  fi
9310  link_all_deplibs=yes
9311  allow_undefined_flag="$_lt_dar_allow_undefined"
9312  case $cc_basename in
9313     ifort*) _lt_dar_can_shared=yes ;;
9314     *) _lt_dar_can_shared=$GCC ;;
9315  esac
9316  if test "$_lt_dar_can_shared" = "yes"; then
9317    output_verbose_link_cmd=func_echo_all
9318    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9319    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9320    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}"
9321    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}"
9322
9323  else
9324  ld_shlibs=no
9325  fi
9326
9327      ;;
9328
9329    dgux*)
9330      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331      hardcode_libdir_flag_spec='-L$libdir'
9332      hardcode_shlibpath_var=no
9333      ;;
9334
9335    freebsd1*)
9336      ld_shlibs=no
9337      ;;
9338
9339    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9340    # support.  Future versions do this automatically, but an explicit c++rt0.o
9341    # does not break anything, and helps significantly (at the cost of a little
9342    # extra space).
9343    freebsd2.2*)
9344      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9345      hardcode_libdir_flag_spec='-R$libdir'
9346      hardcode_direct=yes
9347      hardcode_shlibpath_var=no
9348      ;;
9349
9350    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9351    freebsd2*)
9352      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353      hardcode_direct=yes
9354      hardcode_minus_L=yes
9355      hardcode_shlibpath_var=no
9356      ;;
9357
9358    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9359    freebsd* | dragonfly*)
9360      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361      hardcode_libdir_flag_spec='-R$libdir'
9362      hardcode_direct=yes
9363      hardcode_shlibpath_var=no
9364      ;;
9365
9366    hpux9*)
9367      if test "$GCC" = yes; then
9368	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'
9369      else
9370	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'
9371      fi
9372      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9373      hardcode_libdir_separator=:
9374      hardcode_direct=yes
9375
9376      # hardcode_minus_L: Not really in the search PATH,
9377      # but as the default location of the library.
9378      hardcode_minus_L=yes
9379      export_dynamic_flag_spec='${wl}-E'
9380      ;;
9381
9382    hpux10*)
9383      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9384	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9385      else
9386	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9387      fi
9388      if test "$with_gnu_ld" = no; then
9389	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390	hardcode_libdir_flag_spec_ld='+b $libdir'
9391	hardcode_libdir_separator=:
9392	hardcode_direct=yes
9393	hardcode_direct_absolute=yes
9394	export_dynamic_flag_spec='${wl}-E'
9395	# hardcode_minus_L: Not really in the search PATH,
9396	# but as the default location of the library.
9397	hardcode_minus_L=yes
9398      fi
9399      ;;
9400
9401    hpux11*)
9402      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9403	case $host_cpu in
9404	hppa*64*)
9405	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406	  ;;
9407	ia64*)
9408	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409	  ;;
9410	*)
9411	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412	  ;;
9413	esac
9414      else
9415	case $host_cpu in
9416	hppa*64*)
9417	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9418	  ;;
9419	ia64*)
9420	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9421	  ;;
9422	*)
9423
9424	  # Older versions of the 11.00 compiler do not understand -b yet
9425	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9426	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9427$as_echo_n "checking if $CC understands -b... " >&6; }
9428if ${lt_cv_prog_compiler__b+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  lt_cv_prog_compiler__b=no
9432   save_LDFLAGS="$LDFLAGS"
9433   LDFLAGS="$LDFLAGS -b"
9434   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9435   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9436     # The linker can only warn and ignore the option if not recognized
9437     # So say no if there are warnings
9438     if test -s conftest.err; then
9439       # Append any errors to the config.log.
9440       cat conftest.err 1>&5
9441       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9442       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443       if diff conftest.exp conftest.er2 >/dev/null; then
9444         lt_cv_prog_compiler__b=yes
9445       fi
9446     else
9447       lt_cv_prog_compiler__b=yes
9448     fi
9449   fi
9450   $RM -r conftest*
9451   LDFLAGS="$save_LDFLAGS"
9452
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9455$as_echo "$lt_cv_prog_compiler__b" >&6; }
9456
9457if test x"$lt_cv_prog_compiler__b" = xyes; then
9458    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9459else
9460    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9461fi
9462
9463	  ;;
9464	esac
9465      fi
9466      if test "$with_gnu_ld" = no; then
9467	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468	hardcode_libdir_separator=:
9469
9470	case $host_cpu in
9471	hppa*64*|ia64*)
9472	  hardcode_direct=no
9473	  hardcode_shlibpath_var=no
9474	  ;;
9475	*)
9476	  hardcode_direct=yes
9477	  hardcode_direct_absolute=yes
9478	  export_dynamic_flag_spec='${wl}-E'
9479
9480	  # hardcode_minus_L: Not really in the search PATH,
9481	  # but as the default location of the library.
9482	  hardcode_minus_L=yes
9483	  ;;
9484	esac
9485      fi
9486      ;;
9487
9488    irix5* | irix6* | nonstopux*)
9489      if test "$GCC" = yes; then
9490	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'
9491	# Try to use the -exported_symbol ld option, if it does not
9492	# work, assume that -exports_file does not work either and
9493	# implicitly export all symbols.
9494	# This should be the same for all languages, so no per-tag cache variable.
9495	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9496$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9497if ${lt_cv_irix_exported_symbol+:} false; then :
9498  $as_echo_n "(cached) " >&6
9499else
9500  save_LDFLAGS="$LDFLAGS"
9501	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9502	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int foo (void) { return 0; }
9505_ACEOF
9506if ac_fn_c_try_link "$LINENO"; then :
9507  lt_cv_irix_exported_symbol=yes
9508else
9509  lt_cv_irix_exported_symbol=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext \
9512    conftest$ac_exeext conftest.$ac_ext
9513           LDFLAGS="$save_LDFLAGS"
9514fi
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9516$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9517	if test "$lt_cv_irix_exported_symbol" = yes; then
9518          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'
9519	fi
9520      else
9521	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'
9522	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'
9523      fi
9524      archive_cmds_need_lc='no'
9525      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526      hardcode_libdir_separator=:
9527      inherit_rpath=yes
9528      link_all_deplibs=yes
9529      ;;
9530
9531    netbsd*)
9532      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9533	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9534      else
9535	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9536      fi
9537      hardcode_libdir_flag_spec='-R$libdir'
9538      hardcode_direct=yes
9539      hardcode_shlibpath_var=no
9540      ;;
9541
9542    newsos6)
9543      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544      hardcode_direct=yes
9545      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546      hardcode_libdir_separator=:
9547      hardcode_shlibpath_var=no
9548      ;;
9549
9550    *nto* | *qnx*)
9551      ;;
9552
9553    openbsd*)
9554      if test -f /usr/libexec/ld.so; then
9555	hardcode_direct=yes
9556	hardcode_shlibpath_var=no
9557	hardcode_direct_absolute=yes
9558	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9559	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9560	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9561	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9562	  export_dynamic_flag_spec='${wl}-E'
9563	else
9564	  case $host_os in
9565	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9566	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9567	     hardcode_libdir_flag_spec='-R$libdir'
9568	     ;;
9569	   *)
9570	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9571	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572	     ;;
9573	  esac
9574	fi
9575      else
9576	ld_shlibs=no
9577      fi
9578      ;;
9579
9580    os2*)
9581      hardcode_libdir_flag_spec='-L$libdir'
9582      hardcode_minus_L=yes
9583      allow_undefined_flag=unsupported
9584      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'
9585      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9586      ;;
9587
9588    osf3*)
9589      if test "$GCC" = yes; then
9590	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9591	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'
9592      else
9593	allow_undefined_flag=' -expect_unresolved \*'
9594	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'
9595      fi
9596      archive_cmds_need_lc='no'
9597      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598      hardcode_libdir_separator=:
9599      ;;
9600
9601    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9602      if test "$GCC" = yes; then
9603	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604	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'
9605	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606      else
9607	allow_undefined_flag=' -expect_unresolved \*'
9608	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'
9609	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~
9610	$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'
9611
9612	# Both c and cxx compiler support -rpath directly
9613	hardcode_libdir_flag_spec='-rpath $libdir'
9614      fi
9615      archive_cmds_need_lc='no'
9616      hardcode_libdir_separator=:
9617      ;;
9618
9619    solaris*)
9620      no_undefined_flag=' -z defs'
9621      if test "$GCC" = yes; then
9622	wlarc='${wl}'
9623	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9625	  $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'
9626      else
9627	case `$CC -V 2>&1` in
9628	*"Compilers 5.0"*)
9629	  wlarc=''
9630	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9632	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9633	  ;;
9634	*)
9635	  wlarc='${wl}'
9636	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9637	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9639	  ;;
9640	esac
9641      fi
9642      hardcode_libdir_flag_spec='-R$libdir'
9643      hardcode_shlibpath_var=no
9644      case $host_os in
9645      solaris2.[0-5] | solaris2.[0-5].*) ;;
9646      *)
9647	# The compiler driver will combine and reorder linker options,
9648	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9649	# but is careful enough not to reorder.
9650	# Supported since Solaris 2.6 (maybe 2.5.1?)
9651	if test "$GCC" = yes; then
9652	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9653	else
9654	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9655	fi
9656	;;
9657      esac
9658      link_all_deplibs=yes
9659      ;;
9660
9661    sunos4*)
9662      if test "x$host_vendor" = xsequent; then
9663	# Use $CC to link under sequent, because it throws in some extra .o
9664	# files that make .init and .fini sections work.
9665	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9666      else
9667	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9668      fi
9669      hardcode_libdir_flag_spec='-L$libdir'
9670      hardcode_direct=yes
9671      hardcode_minus_L=yes
9672      hardcode_shlibpath_var=no
9673      ;;
9674
9675    sysv4)
9676      case $host_vendor in
9677	sni)
9678	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679	  hardcode_direct=yes # is this really true???
9680	;;
9681	siemens)
9682	  ## LD is ld it makes a PLAMLIB
9683	  ## CC just makes a GrossModule.
9684	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9685	  reload_cmds='$CC -r -o $output$reload_objs'
9686	  hardcode_direct=no
9687        ;;
9688	motorola)
9689	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9691	;;
9692      esac
9693      runpath_var='LD_RUN_PATH'
9694      hardcode_shlibpath_var=no
9695      ;;
9696
9697    sysv4.3*)
9698      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699      hardcode_shlibpath_var=no
9700      export_dynamic_flag_spec='-Bexport'
9701      ;;
9702
9703    sysv4*MP*)
9704      if test -d /usr/nec; then
9705	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706	hardcode_shlibpath_var=no
9707	runpath_var=LD_RUN_PATH
9708	hardcode_runpath_var=yes
9709	ld_shlibs=yes
9710      fi
9711      ;;
9712
9713    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9714      no_undefined_flag='${wl}-z,text'
9715      archive_cmds_need_lc=no
9716      hardcode_shlibpath_var=no
9717      runpath_var='LD_RUN_PATH'
9718
9719      if test "$GCC" = yes; then
9720	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722      else
9723	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725      fi
9726      ;;
9727
9728    sysv5* | sco3.2v5* | sco5v6*)
9729      # Note: We can NOT use -z defs as we might desire, because we do not
9730      # link with -lc, and that would cause any symbols used from libc to
9731      # always be unresolved, which means just about no library would
9732      # ever link correctly.  If we're not using GNU ld we use -z text
9733      # though, which does catch some bad symbols but isn't as heavy-handed
9734      # as -z defs.
9735      no_undefined_flag='${wl}-z,text'
9736      allow_undefined_flag='${wl}-z,nodefs'
9737      archive_cmds_need_lc=no
9738      hardcode_shlibpath_var=no
9739      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9740      hardcode_libdir_separator=':'
9741      link_all_deplibs=yes
9742      export_dynamic_flag_spec='${wl}-Bexport'
9743      runpath_var='LD_RUN_PATH'
9744
9745      if test "$GCC" = yes; then
9746	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748      else
9749	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751      fi
9752      ;;
9753
9754    uts4*)
9755      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756      hardcode_libdir_flag_spec='-L$libdir'
9757      hardcode_shlibpath_var=no
9758      ;;
9759
9760    *)
9761      ld_shlibs=no
9762      ;;
9763    esac
9764
9765    if test x$host_vendor = xsni; then
9766      case $host in
9767      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9768	export_dynamic_flag_spec='${wl}-Blargedynsym'
9769	;;
9770      esac
9771    fi
9772  fi
9773
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9775$as_echo "$ld_shlibs" >&6; }
9776test "$ld_shlibs" = no && can_build_shared=no
9777
9778with_gnu_ld=$with_gnu_ld
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794#
9795# Do we need to explicitly link libc?
9796#
9797case "x$archive_cmds_need_lc" in
9798x|xyes)
9799  # Assume -lc should be added
9800  archive_cmds_need_lc=yes
9801
9802  if test "$enable_shared" = yes && test "$GCC" = yes; then
9803    case $archive_cmds in
9804    *'~'*)
9805      # FIXME: we may have to deal with multi-command sequences.
9806      ;;
9807    '$CC '*)
9808      # Test whether the compiler implicitly links with -lc since on some
9809      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9810      # to ld, don't add -lc before -lgcc.
9811      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9812$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9813if ${lt_cv_archive_cmds_need_lc+:} false; then :
9814  $as_echo_n "(cached) " >&6
9815else
9816  $RM conftest*
9817	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9818
9819	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9820  (eval $ac_compile) 2>&5
9821  ac_status=$?
9822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823  test $ac_status = 0; } 2>conftest.err; then
9824	  soname=conftest
9825	  lib=conftest
9826	  libobjs=conftest.$ac_objext
9827	  deplibs=
9828	  wl=$lt_prog_compiler_wl
9829	  pic_flag=$lt_prog_compiler_pic
9830	  compiler_flags=-v
9831	  linker_flags=-v
9832	  verstring=
9833	  output_objdir=.
9834	  libname=conftest
9835	  lt_save_allow_undefined_flag=$allow_undefined_flag
9836	  allow_undefined_flag=
9837	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9838  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9839  ac_status=$?
9840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841  test $ac_status = 0; }
9842	  then
9843	    lt_cv_archive_cmds_need_lc=no
9844	  else
9845	    lt_cv_archive_cmds_need_lc=yes
9846	  fi
9847	  allow_undefined_flag=$lt_save_allow_undefined_flag
9848	else
9849	  cat conftest.err 1>&5
9850	fi
9851	$RM conftest*
9852
9853fi
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9855$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9856      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9857      ;;
9858    esac
9859  fi
9860  ;;
9861esac
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10020$as_echo_n "checking dynamic linker characteristics... " >&6; }
10021
10022if test "$GCC" = yes; then
10023  case $host_os in
10024    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10025    *) lt_awk_arg="/^libraries:/" ;;
10026  esac
10027  case $host_os in
10028    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10029    *) lt_sed_strip_eq="s,=/,/,g" ;;
10030  esac
10031  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10032  case $lt_search_path_spec in
10033  *\;*)
10034    # if the path contains ";" then we assume it to be the separator
10035    # otherwise default to the standard path separator (i.e. ":") - it is
10036    # assumed that no part of a normal pathname contains ";" but that should
10037    # okay in the real world where ";" in dirpaths is itself problematic.
10038    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10039    ;;
10040  *)
10041    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10042    ;;
10043  esac
10044  # Ok, now we have the path, separated by spaces, we can step through it
10045  # and add multilib dir if necessary.
10046  lt_tmp_lt_search_path_spec=
10047  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10048  for lt_sys_path in $lt_search_path_spec; do
10049    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10050      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10051    else
10052      test -d "$lt_sys_path" && \
10053	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10054    fi
10055  done
10056  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10057BEGIN {RS=" "; FS="/|\n";} {
10058  lt_foo="";
10059  lt_count=0;
10060  for (lt_i = NF; lt_i > 0; lt_i--) {
10061    if ($lt_i != "" && $lt_i != ".") {
10062      if ($lt_i == "..") {
10063        lt_count++;
10064      } else {
10065        if (lt_count == 0) {
10066          lt_foo="/" $lt_i lt_foo;
10067        } else {
10068          lt_count--;
10069        }
10070      }
10071    }
10072  }
10073  if (lt_foo != "") { lt_freq[lt_foo]++; }
10074  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10075}'`
10076  # AWK program above erroneously prepends '/' to C:/dos/paths
10077  # for these hosts.
10078  case $host_os in
10079    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10080      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10081  esac
10082  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10083else
10084  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10085fi
10086library_names_spec=
10087libname_spec='lib$name'
10088soname_spec=
10089shrext_cmds=".so"
10090postinstall_cmds=
10091postuninstall_cmds=
10092finish_cmds=
10093finish_eval=
10094shlibpath_var=
10095shlibpath_overrides_runpath=unknown
10096version_type=none
10097dynamic_linker="$host_os ld.so"
10098sys_lib_dlsearch_path_spec="/lib /usr/lib"
10099need_lib_prefix=unknown
10100hardcode_into_libs=no
10101
10102# when you set need_version to no, make sure it does not cause -set_version
10103# flags to be left without arguments
10104need_version=unknown
10105
10106case $host_os in
10107aix3*)
10108  version_type=linux
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10110  shlibpath_var=LIBPATH
10111
10112  # AIX 3 has no versioning support, so we append a major version to the name.
10113  soname_spec='${libname}${release}${shared_ext}$major'
10114  ;;
10115
10116aix[4-9]*)
10117  version_type=linux
10118  need_lib_prefix=no
10119  need_version=no
10120  hardcode_into_libs=yes
10121  if test "$host_cpu" = ia64; then
10122    # AIX 5 supports IA64
10123    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10124    shlibpath_var=LD_LIBRARY_PATH
10125  else
10126    # With GCC up to 2.95.x, collect2 would create an import file
10127    # for dependence libraries.  The import file would start with
10128    # the line `#! .'.  This would cause the generated library to
10129    # depend on `.', always an invalid library.  This was fixed in
10130    # development snapshots of GCC prior to 3.0.
10131    case $host_os in
10132      aix4 | aix4.[01] | aix4.[01].*)
10133      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10134	   echo ' yes '
10135	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10136	:
10137      else
10138	can_build_shared=no
10139      fi
10140      ;;
10141    esac
10142    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10143    # soname into executable. Probably we can add versioning support to
10144    # collect2, so additional links can be useful in future.
10145    if test "$aix_use_runtimelinking" = yes; then
10146      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10147      # instead of lib<name>.a to let people know that these are not
10148      # typical AIX shared libraries.
10149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150    else
10151      # We preserve .a as extension for shared libraries through AIX4.2
10152      # and later when we are not doing run time linking.
10153      library_names_spec='${libname}${release}.a $libname.a'
10154      soname_spec='${libname}${release}${shared_ext}$major'
10155    fi
10156    shlibpath_var=LIBPATH
10157  fi
10158  ;;
10159
10160amigaos*)
10161  case $host_cpu in
10162  powerpc)
10163    # Since July 2007 AmigaOS4 officially supports .so libraries.
10164    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166    ;;
10167  m68k)
10168    library_names_spec='$libname.ixlibrary $libname.a'
10169    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10170    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'
10171    ;;
10172  esac
10173  ;;
10174
10175beos*)
10176  library_names_spec='${libname}${shared_ext}'
10177  dynamic_linker="$host_os ld.so"
10178  shlibpath_var=LIBRARY_PATH
10179  ;;
10180
10181bsdi[45]*)
10182  version_type=linux
10183  need_version=no
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185  soname_spec='${libname}${release}${shared_ext}$major'
10186  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10189  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10190  # the default ld.so.conf also contains /usr/contrib/lib and
10191  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10192  # libtool to hard-code these into programs
10193  ;;
10194
10195cygwin* | mingw* | pw32* | cegcc*)
10196  version_type=windows
10197  shrext_cmds=".dll"
10198  need_version=no
10199  need_lib_prefix=no
10200
10201  case $GCC,$cc_basename in
10202  yes,*)
10203    # gcc
10204    library_names_spec='$libname.dll.a'
10205    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206    postinstall_cmds='base_file=`basename \${file}`~
10207      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208      dldir=$destdir/`dirname \$dlpath`~
10209      test -d \$dldir || mkdir -p \$dldir~
10210      $install_prog $dir/$dlname \$dldir/$dlname~
10211      chmod a+x \$dldir/$dlname~
10212      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10213        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10214      fi'
10215    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216      dlpath=$dir/\$dldll~
10217       $RM \$dlpath'
10218    shlibpath_overrides_runpath=yes
10219
10220    case $host_os in
10221    cygwin*)
10222      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10223      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224
10225      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10226      ;;
10227    mingw* | cegcc*)
10228      # MinGW DLLs use traditional 'lib' prefix
10229      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230      ;;
10231    pw32*)
10232      # pw32 DLLs use 'pw' prefix rather than 'lib'
10233      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234      ;;
10235    esac
10236    dynamic_linker='Win32 ld.exe'
10237    ;;
10238
10239  *,cl*)
10240    # Native MSVC
10241    libname_spec='$name'
10242    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10243    library_names_spec='${libname}.dll.lib'
10244
10245    case $build_os in
10246    mingw*)
10247      sys_lib_search_path_spec=
10248      lt_save_ifs=$IFS
10249      IFS=';'
10250      for lt_path in $LIB
10251      do
10252        IFS=$lt_save_ifs
10253        # Let DOS variable expansion print the short 8.3 style file name.
10254        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10255        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10256      done
10257      IFS=$lt_save_ifs
10258      # Convert to MSYS style.
10259      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10260      ;;
10261    cygwin*)
10262      # Convert to unix form, then to dos form, then back to unix form
10263      # but this time dos style (no spaces!) so that the unix form looks
10264      # like /cygdrive/c/PROGRA~1:/cygdr...
10265      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10266      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10267      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10268      ;;
10269    *)
10270      sys_lib_search_path_spec="$LIB"
10271      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10272        # It is most probably a Windows format PATH.
10273        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10274      else
10275        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10276      fi
10277      # FIXME: find the short name or the path components, as spaces are
10278      # common. (e.g. "Program Files" -> "PROGRA~1")
10279      ;;
10280    esac
10281
10282    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10283    postinstall_cmds='base_file=`basename \${file}`~
10284      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10285      dldir=$destdir/`dirname \$dlpath`~
10286      test -d \$dldir || mkdir -p \$dldir~
10287      $install_prog $dir/$dlname \$dldir/$dlname'
10288    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10289      dlpath=$dir/\$dldll~
10290       $RM \$dlpath'
10291    shlibpath_overrides_runpath=yes
10292    dynamic_linker='Win32 link.exe'
10293    ;;
10294
10295  *)
10296    # Assume MSVC wrapper
10297    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10298    dynamic_linker='Win32 ld.exe'
10299    ;;
10300  esac
10301  # FIXME: first we should search . and the directory the executable is in
10302  shlibpath_var=PATH
10303  ;;
10304
10305darwin* | rhapsody*)
10306  dynamic_linker="$host_os dyld"
10307  version_type=darwin
10308  need_lib_prefix=no
10309  need_version=no
10310  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10311  soname_spec='${libname}${release}${major}$shared_ext'
10312  shlibpath_overrides_runpath=yes
10313  shlibpath_var=DYLD_LIBRARY_PATH
10314  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10315
10316  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10317  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10318  ;;
10319
10320dgux*)
10321  version_type=linux
10322  need_lib_prefix=no
10323  need_version=no
10324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10325  soname_spec='${libname}${release}${shared_ext}$major'
10326  shlibpath_var=LD_LIBRARY_PATH
10327  ;;
10328
10329freebsd1*)
10330  dynamic_linker=no
10331  ;;
10332
10333freebsd* | dragonfly*)
10334  # DragonFly does not have aout.  When/if they implement a new
10335  # versioning mechanism, adjust this.
10336  if test -x /usr/bin/objformat; then
10337    objformat=`/usr/bin/objformat`
10338  else
10339    case $host_os in
10340    freebsd[123]*) objformat=aout ;;
10341    *) objformat=elf ;;
10342    esac
10343  fi
10344  version_type=freebsd-$objformat
10345  case $version_type in
10346    freebsd-elf*)
10347      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10348      need_version=no
10349      need_lib_prefix=no
10350      ;;
10351    freebsd-*)
10352      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10353      need_version=yes
10354      ;;
10355  esac
10356  shlibpath_var=LD_LIBRARY_PATH
10357  case $host_os in
10358  freebsd2*)
10359    shlibpath_overrides_runpath=yes
10360    ;;
10361  freebsd3.[01]* | freebsdelf3.[01]*)
10362    shlibpath_overrides_runpath=yes
10363    hardcode_into_libs=yes
10364    ;;
10365  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10366  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10367    shlibpath_overrides_runpath=no
10368    hardcode_into_libs=yes
10369    ;;
10370  *) # from 4.6 on, and DragonFly
10371    shlibpath_overrides_runpath=yes
10372    hardcode_into_libs=yes
10373    ;;
10374  esac
10375  ;;
10376
10377gnu*)
10378  version_type=linux
10379  need_lib_prefix=no
10380  need_version=no
10381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10382  soname_spec='${libname}${release}${shared_ext}$major'
10383  shlibpath_var=LD_LIBRARY_PATH
10384  hardcode_into_libs=yes
10385  ;;
10386
10387haiku*)
10388  version_type=linux
10389  need_lib_prefix=no
10390  need_version=no
10391  dynamic_linker="$host_os runtime_loader"
10392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10393  soname_spec='${libname}${release}${shared_ext}$major'
10394  shlibpath_var=LIBRARY_PATH
10395  shlibpath_overrides_runpath=yes
10396  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10397  hardcode_into_libs=yes
10398  ;;
10399
10400hpux9* | hpux10* | hpux11*)
10401  # Give a soname corresponding to the major version so that dld.sl refuses to
10402  # link against other versions.
10403  version_type=sunos
10404  need_lib_prefix=no
10405  need_version=no
10406  case $host_cpu in
10407  ia64*)
10408    shrext_cmds='.so'
10409    hardcode_into_libs=yes
10410    dynamic_linker="$host_os dld.so"
10411    shlibpath_var=LD_LIBRARY_PATH
10412    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414    soname_spec='${libname}${release}${shared_ext}$major'
10415    if test "X$HPUX_IA64_MODE" = X32; then
10416      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10417    else
10418      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10419    fi
10420    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10421    ;;
10422  hppa*64*)
10423    shrext_cmds='.sl'
10424    hardcode_into_libs=yes
10425    dynamic_linker="$host_os dld.sl"
10426    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10427    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429    soname_spec='${libname}${release}${shared_ext}$major'
10430    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10431    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10432    ;;
10433  *)
10434    shrext_cmds='.sl'
10435    dynamic_linker="$host_os dld.sl"
10436    shlibpath_var=SHLIB_PATH
10437    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439    soname_spec='${libname}${release}${shared_ext}$major'
10440    ;;
10441  esac
10442  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10443  postinstall_cmds='chmod 555 $lib'
10444  # or fails outright, so override atomically:
10445  install_override_mode=555
10446  ;;
10447
10448interix[3-9]*)
10449  version_type=linux
10450  need_lib_prefix=no
10451  need_version=no
10452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10453  soname_spec='${libname}${release}${shared_ext}$major'
10454  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10455  shlibpath_var=LD_LIBRARY_PATH
10456  shlibpath_overrides_runpath=no
10457  hardcode_into_libs=yes
10458  ;;
10459
10460irix5* | irix6* | nonstopux*)
10461  case $host_os in
10462    nonstopux*) version_type=nonstopux ;;
10463    *)
10464	if test "$lt_cv_prog_gnu_ld" = yes; then
10465		version_type=linux
10466	else
10467		version_type=irix
10468	fi ;;
10469  esac
10470  need_lib_prefix=no
10471  need_version=no
10472  soname_spec='${libname}${release}${shared_ext}$major'
10473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10474  case $host_os in
10475  irix5* | nonstopux*)
10476    libsuff= shlibsuff=
10477    ;;
10478  *)
10479    case $LD in # libtool.m4 will add one of these switches to LD
10480    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10481      libsuff= shlibsuff= libmagic=32-bit;;
10482    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10483      libsuff=32 shlibsuff=N32 libmagic=N32;;
10484    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10485      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10486    *) libsuff= shlibsuff= libmagic=never-match;;
10487    esac
10488    ;;
10489  esac
10490  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10491  shlibpath_overrides_runpath=no
10492  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10493  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10494  hardcode_into_libs=yes
10495  ;;
10496
10497# No shared lib support for Linux oldld, aout, or coff.
10498linux*oldld* | linux*aout* | linux*coff*)
10499  dynamic_linker=no
10500  ;;
10501
10502# This must be Linux ELF.
10503linux* | k*bsd*-gnu | kopensolaris*-gnu)
10504  version_type=linux
10505  need_lib_prefix=no
10506  need_version=no
10507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508  soname_spec='${libname}${release}${shared_ext}$major'
10509  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10510  shlibpath_var=LD_LIBRARY_PATH
10511  shlibpath_overrides_runpath=no
10512
10513  # Some binutils ld are patched to set DT_RUNPATH
10514  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10515  $as_echo_n "(cached) " >&6
10516else
10517  lt_cv_shlibpath_overrides_runpath=no
10518    save_LDFLAGS=$LDFLAGS
10519    save_libdir=$libdir
10520    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10521	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10522    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523/* end confdefs.h.  */
10524
10525int
10526main ()
10527{
10528
10529  ;
10530  return 0;
10531}
10532_ACEOF
10533if ac_fn_c_try_link "$LINENO"; then :
10534  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10535  lt_cv_shlibpath_overrides_runpath=yes
10536fi
10537fi
10538rm -f core conftest.err conftest.$ac_objext \
10539    conftest$ac_exeext conftest.$ac_ext
10540    LDFLAGS=$save_LDFLAGS
10541    libdir=$save_libdir
10542
10543fi
10544
10545  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10546
10547  # This implies no fast_install, which is unacceptable.
10548  # Some rework will be needed to allow for fast_install
10549  # before this can be enabled.
10550  hardcode_into_libs=yes
10551
10552  # Append ld.so.conf contents to the search path
10553  if test -f /etc/ld.so.conf; then
10554    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' ' '`
10555    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10556  fi
10557
10558  # We used to test for /lib/ld.so.1 and disable shared libraries on
10559  # powerpc, because MkLinux only supported shared libraries with the
10560  # GNU dynamic linker.  Since this was broken with cross compilers,
10561  # most powerpc-linux boxes support dynamic linking these days and
10562  # people can always --disable-shared, the test was removed, and we
10563  # assume the GNU/Linux dynamic linker is in use.
10564  dynamic_linker='GNU/Linux ld.so'
10565  ;;
10566
10567netbsd*)
10568  version_type=sunos
10569  need_lib_prefix=no
10570  need_version=no
10571  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574    dynamic_linker='NetBSD (a.out) ld.so'
10575  else
10576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577    soname_spec='${libname}${release}${shared_ext}$major'
10578    dynamic_linker='NetBSD ld.elf_so'
10579  fi
10580  shlibpath_var=LD_LIBRARY_PATH
10581  shlibpath_overrides_runpath=yes
10582  hardcode_into_libs=yes
10583  ;;
10584
10585newsos6)
10586  version_type=linux
10587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  shlibpath_overrides_runpath=yes
10590  ;;
10591
10592*nto* | *qnx*)
10593  version_type=qnx
10594  need_lib_prefix=no
10595  need_version=no
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597  soname_spec='${libname}${release}${shared_ext}$major'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  shlibpath_overrides_runpath=no
10600  hardcode_into_libs=yes
10601  dynamic_linker='ldqnx.so'
10602  ;;
10603
10604openbsd*)
10605  version_type=sunos
10606  sys_lib_dlsearch_path_spec="/usr/lib"
10607  need_lib_prefix=no
10608  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10609  case $host_os in
10610    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10611    *)				need_version=no  ;;
10612  esac
10613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617    case $host_os in
10618      openbsd2.[89] | openbsd2.[89].*)
10619	shlibpath_overrides_runpath=no
10620	;;
10621      *)
10622	shlibpath_overrides_runpath=yes
10623	;;
10624      esac
10625  else
10626    shlibpath_overrides_runpath=yes
10627  fi
10628  ;;
10629
10630os2*)
10631  libname_spec='$name'
10632  shrext_cmds=".dll"
10633  need_lib_prefix=no
10634  library_names_spec='$libname${shared_ext} $libname.a'
10635  dynamic_linker='OS/2 ld.exe'
10636  shlibpath_var=LIBPATH
10637  ;;
10638
10639osf3* | osf4* | osf5*)
10640  version_type=osf
10641  need_lib_prefix=no
10642  need_version=no
10643  soname_spec='${libname}${release}${shared_ext}$major'
10644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645  shlibpath_var=LD_LIBRARY_PATH
10646  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10647  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10648  ;;
10649
10650rdos*)
10651  dynamic_linker=no
10652  ;;
10653
10654solaris*)
10655  version_type=linux
10656  need_lib_prefix=no
10657  need_version=no
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  shlibpath_overrides_runpath=yes
10662  hardcode_into_libs=yes
10663  # ldd complains unless libraries are executable
10664  postinstall_cmds='chmod +x $lib'
10665  ;;
10666
10667sunos4*)
10668  version_type=sunos
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  shlibpath_overrides_runpath=yes
10673  if test "$with_gnu_ld" = yes; then
10674    need_lib_prefix=no
10675  fi
10676  need_version=yes
10677  ;;
10678
10679sysv4 | sysv4.3*)
10680  version_type=linux
10681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682  soname_spec='${libname}${release}${shared_ext}$major'
10683  shlibpath_var=LD_LIBRARY_PATH
10684  case $host_vendor in
10685    sni)
10686      shlibpath_overrides_runpath=no
10687      need_lib_prefix=no
10688      runpath_var=LD_RUN_PATH
10689      ;;
10690    siemens)
10691      need_lib_prefix=no
10692      ;;
10693    motorola)
10694      need_lib_prefix=no
10695      need_version=no
10696      shlibpath_overrides_runpath=no
10697      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10698      ;;
10699  esac
10700  ;;
10701
10702sysv4*MP*)
10703  if test -d /usr/nec ;then
10704    version_type=linux
10705    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10706    soname_spec='$libname${shared_ext}.$major'
10707    shlibpath_var=LD_LIBRARY_PATH
10708  fi
10709  ;;
10710
10711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10712  version_type=freebsd-elf
10713  need_lib_prefix=no
10714  need_version=no
10715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10716  soname_spec='${libname}${release}${shared_ext}$major'
10717  shlibpath_var=LD_LIBRARY_PATH
10718  shlibpath_overrides_runpath=yes
10719  hardcode_into_libs=yes
10720  if test "$with_gnu_ld" = yes; then
10721    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10722  else
10723    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10724    case $host_os in
10725      sco3.2v5*)
10726        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10727	;;
10728    esac
10729  fi
10730  sys_lib_dlsearch_path_spec='/usr/lib'
10731  ;;
10732
10733tpf*)
10734  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10735  version_type=linux
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739  shlibpath_var=LD_LIBRARY_PATH
10740  shlibpath_overrides_runpath=no
10741  hardcode_into_libs=yes
10742  ;;
10743
10744uts4*)
10745  version_type=linux
10746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747  soname_spec='${libname}${release}${shared_ext}$major'
10748  shlibpath_var=LD_LIBRARY_PATH
10749  ;;
10750
10751*)
10752  dynamic_linker=no
10753  ;;
10754esac
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10756$as_echo "$dynamic_linker" >&6; }
10757test "$dynamic_linker" = no && can_build_shared=no
10758
10759variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10760if test "$GCC" = yes; then
10761  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10762fi
10763
10764if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10765  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10766fi
10767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10768  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10769fi
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10863$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10864hardcode_action=
10865if test -n "$hardcode_libdir_flag_spec" ||
10866   test -n "$runpath_var" ||
10867   test "X$hardcode_automatic" = "Xyes" ; then
10868
10869  # We can hardcode non-existent directories.
10870  if test "$hardcode_direct" != no &&
10871     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10872     # have to relink, otherwise we might link with an installed library
10873     # when we should be linking with a yet-to-be-installed one
10874     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10875     test "$hardcode_minus_L" != no; then
10876    # Linking always hardcodes the temporary library directory.
10877    hardcode_action=relink
10878  else
10879    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10880    hardcode_action=immediate
10881  fi
10882else
10883  # We cannot hardcode anything, or else we can only hardcode existing
10884  # directories.
10885  hardcode_action=unsupported
10886fi
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10888$as_echo "$hardcode_action" >&6; }
10889
10890if test "$hardcode_action" = relink ||
10891   test "$inherit_rpath" = yes; then
10892  # Fast installation is not supported
10893  enable_fast_install=no
10894elif test "$shlibpath_overrides_runpath" = yes ||
10895     test "$enable_shared" = no; then
10896  # Fast installation is not necessary
10897  enable_fast_install=needless
10898fi
10899
10900
10901
10902
10903
10904
10905  if test "x$enable_dlopen" != xyes; then
10906  enable_dlopen=unknown
10907  enable_dlopen_self=unknown
10908  enable_dlopen_self_static=unknown
10909else
10910  lt_cv_dlopen=no
10911  lt_cv_dlopen_libs=
10912
10913  case $host_os in
10914  beos*)
10915    lt_cv_dlopen="load_add_on"
10916    lt_cv_dlopen_libs=
10917    lt_cv_dlopen_self=yes
10918    ;;
10919
10920  mingw* | pw32* | cegcc*)
10921    lt_cv_dlopen="LoadLibrary"
10922    lt_cv_dlopen_libs=
10923    ;;
10924
10925  cygwin*)
10926    lt_cv_dlopen="dlopen"
10927    lt_cv_dlopen_libs=
10928    ;;
10929
10930  darwin*)
10931  # if libdl is installed we need to link against it
10932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10933$as_echo_n "checking for dlopen in -ldl... " >&6; }
10934if ${ac_cv_lib_dl_dlopen+:} false; then :
10935  $as_echo_n "(cached) " >&6
10936else
10937  ac_check_lib_save_LIBS=$LIBS
10938LIBS="-ldl  $LIBS"
10939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h.  */
10941
10942/* Override any GCC internal prototype to avoid an error.
10943   Use char because int might match the return type of a GCC
10944   builtin and then its argument prototype would still apply.  */
10945#ifdef __cplusplus
10946extern "C"
10947#endif
10948char dlopen ();
10949int
10950main ()
10951{
10952return dlopen ();
10953  ;
10954  return 0;
10955}
10956_ACEOF
10957if ac_fn_c_try_link "$LINENO"; then :
10958  ac_cv_lib_dl_dlopen=yes
10959else
10960  ac_cv_lib_dl_dlopen=no
10961fi
10962rm -f core conftest.err conftest.$ac_objext \
10963    conftest$ac_exeext conftest.$ac_ext
10964LIBS=$ac_check_lib_save_LIBS
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10967$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10968if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10969  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10970else
10971
10972    lt_cv_dlopen="dyld"
10973    lt_cv_dlopen_libs=
10974    lt_cv_dlopen_self=yes
10975
10976fi
10977
10978    ;;
10979
10980  *)
10981    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10982if test "x$ac_cv_func_shl_load" = xyes; then :
10983  lt_cv_dlopen="shl_load"
10984else
10985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10986$as_echo_n "checking for shl_load in -ldld... " >&6; }
10987if ${ac_cv_lib_dld_shl_load+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990  ac_check_lib_save_LIBS=$LIBS
10991LIBS="-ldld  $LIBS"
10992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993/* end confdefs.h.  */
10994
10995/* Override any GCC internal prototype to avoid an error.
10996   Use char because int might match the return type of a GCC
10997   builtin and then its argument prototype would still apply.  */
10998#ifdef __cplusplus
10999extern "C"
11000#endif
11001char shl_load ();
11002int
11003main ()
11004{
11005return shl_load ();
11006  ;
11007  return 0;
11008}
11009_ACEOF
11010if ac_fn_c_try_link "$LINENO"; then :
11011  ac_cv_lib_dld_shl_load=yes
11012else
11013  ac_cv_lib_dld_shl_load=no
11014fi
11015rm -f core conftest.err conftest.$ac_objext \
11016    conftest$ac_exeext conftest.$ac_ext
11017LIBS=$ac_check_lib_save_LIBS
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11020$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11021if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11022  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11023else
11024  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11025if test "x$ac_cv_func_dlopen" = xyes; then :
11026  lt_cv_dlopen="dlopen"
11027else
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11029$as_echo_n "checking for dlopen in -ldl... " >&6; }
11030if ${ac_cv_lib_dl_dlopen+:} false; then :
11031  $as_echo_n "(cached) " >&6
11032else
11033  ac_check_lib_save_LIBS=$LIBS
11034LIBS="-ldl  $LIBS"
11035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037
11038/* Override any GCC internal prototype to avoid an error.
11039   Use char because int might match the return type of a GCC
11040   builtin and then its argument prototype would still apply.  */
11041#ifdef __cplusplus
11042extern "C"
11043#endif
11044char dlopen ();
11045int
11046main ()
11047{
11048return dlopen ();
11049  ;
11050  return 0;
11051}
11052_ACEOF
11053if ac_fn_c_try_link "$LINENO"; then :
11054  ac_cv_lib_dl_dlopen=yes
11055else
11056  ac_cv_lib_dl_dlopen=no
11057fi
11058rm -f core conftest.err conftest.$ac_objext \
11059    conftest$ac_exeext conftest.$ac_ext
11060LIBS=$ac_check_lib_save_LIBS
11061fi
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11063$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11064if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11065  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11066else
11067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11068$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11069if ${ac_cv_lib_svld_dlopen+:} false; then :
11070  $as_echo_n "(cached) " >&6
11071else
11072  ac_check_lib_save_LIBS=$LIBS
11073LIBS="-lsvld  $LIBS"
11074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075/* end confdefs.h.  */
11076
11077/* Override any GCC internal prototype to avoid an error.
11078   Use char because int might match the return type of a GCC
11079   builtin and then its argument prototype would still apply.  */
11080#ifdef __cplusplus
11081extern "C"
11082#endif
11083char dlopen ();
11084int
11085main ()
11086{
11087return dlopen ();
11088  ;
11089  return 0;
11090}
11091_ACEOF
11092if ac_fn_c_try_link "$LINENO"; then :
11093  ac_cv_lib_svld_dlopen=yes
11094else
11095  ac_cv_lib_svld_dlopen=no
11096fi
11097rm -f core conftest.err conftest.$ac_objext \
11098    conftest$ac_exeext conftest.$ac_ext
11099LIBS=$ac_check_lib_save_LIBS
11100fi
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11102$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11103if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11104  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11105else
11106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11107$as_echo_n "checking for dld_link in -ldld... " >&6; }
11108if ${ac_cv_lib_dld_dld_link+:} false; then :
11109  $as_echo_n "(cached) " >&6
11110else
11111  ac_check_lib_save_LIBS=$LIBS
11112LIBS="-ldld  $LIBS"
11113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h.  */
11115
11116/* Override any GCC internal prototype to avoid an error.
11117   Use char because int might match the return type of a GCC
11118   builtin and then its argument prototype would still apply.  */
11119#ifdef __cplusplus
11120extern "C"
11121#endif
11122char dld_link ();
11123int
11124main ()
11125{
11126return dld_link ();
11127  ;
11128  return 0;
11129}
11130_ACEOF
11131if ac_fn_c_try_link "$LINENO"; then :
11132  ac_cv_lib_dld_dld_link=yes
11133else
11134  ac_cv_lib_dld_dld_link=no
11135fi
11136rm -f core conftest.err conftest.$ac_objext \
11137    conftest$ac_exeext conftest.$ac_ext
11138LIBS=$ac_check_lib_save_LIBS
11139fi
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11141$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11142if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11143  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11144fi
11145
11146
11147fi
11148
11149
11150fi
11151
11152
11153fi
11154
11155
11156fi
11157
11158
11159fi
11160
11161    ;;
11162  esac
11163
11164  if test "x$lt_cv_dlopen" != xno; then
11165    enable_dlopen=yes
11166  else
11167    enable_dlopen=no
11168  fi
11169
11170  case $lt_cv_dlopen in
11171  dlopen)
11172    save_CPPFLAGS="$CPPFLAGS"
11173    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11174
11175    save_LDFLAGS="$LDFLAGS"
11176    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11177
11178    save_LIBS="$LIBS"
11179    LIBS="$lt_cv_dlopen_libs $LIBS"
11180
11181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11182$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11183if ${lt_cv_dlopen_self+:} false; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  	  if test "$cross_compiling" = yes; then :
11187  lt_cv_dlopen_self=cross
11188else
11189  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190  lt_status=$lt_dlunknown
11191  cat > conftest.$ac_ext <<_LT_EOF
11192#line $LINENO "configure"
11193#include "confdefs.h"
11194
11195#if HAVE_DLFCN_H
11196#include <dlfcn.h>
11197#endif
11198
11199#include <stdio.h>
11200
11201#ifdef RTLD_GLOBAL
11202#  define LT_DLGLOBAL		RTLD_GLOBAL
11203#else
11204#  ifdef DL_GLOBAL
11205#    define LT_DLGLOBAL		DL_GLOBAL
11206#  else
11207#    define LT_DLGLOBAL		0
11208#  endif
11209#endif
11210
11211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212   find out it does not work in some platform. */
11213#ifndef LT_DLLAZY_OR_NOW
11214#  ifdef RTLD_LAZY
11215#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11216#  else
11217#    ifdef DL_LAZY
11218#      define LT_DLLAZY_OR_NOW		DL_LAZY
11219#    else
11220#      ifdef RTLD_NOW
11221#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11222#      else
11223#        ifdef DL_NOW
11224#          define LT_DLLAZY_OR_NOW	DL_NOW
11225#        else
11226#          define LT_DLLAZY_OR_NOW	0
11227#        endif
11228#      endif
11229#    endif
11230#  endif
11231#endif
11232
11233/* When -fvisbility=hidden is used, assume the code has been annotated
11234   correspondingly for the symbols needed.  */
11235#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11236int fnord () __attribute__((visibility("default")));
11237#endif
11238
11239int fnord () { return 42; }
11240int main ()
11241{
11242  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11243  int status = $lt_dlunknown;
11244
11245  if (self)
11246    {
11247      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11248      else
11249        {
11250	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11251          else puts (dlerror ());
11252	}
11253      /* dlclose (self); */
11254    }
11255  else
11256    puts (dlerror ());
11257
11258  return status;
11259}
11260_LT_EOF
11261  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11262  (eval $ac_link) 2>&5
11263  ac_status=$?
11264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11265  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11266    (./conftest; exit; ) >&5 2>/dev/null
11267    lt_status=$?
11268    case x$lt_status in
11269      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11270      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11271      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11272    esac
11273  else :
11274    # compilation failed
11275    lt_cv_dlopen_self=no
11276  fi
11277fi
11278rm -fr conftest*
11279
11280
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11283$as_echo "$lt_cv_dlopen_self" >&6; }
11284
11285    if test "x$lt_cv_dlopen_self" = xyes; then
11286      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11287      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11288$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11289if ${lt_cv_dlopen_self_static+:} false; then :
11290  $as_echo_n "(cached) " >&6
11291else
11292  	  if test "$cross_compiling" = yes; then :
11293  lt_cv_dlopen_self_static=cross
11294else
11295  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11296  lt_status=$lt_dlunknown
11297  cat > conftest.$ac_ext <<_LT_EOF
11298#line $LINENO "configure"
11299#include "confdefs.h"
11300
11301#if HAVE_DLFCN_H
11302#include <dlfcn.h>
11303#endif
11304
11305#include <stdio.h>
11306
11307#ifdef RTLD_GLOBAL
11308#  define LT_DLGLOBAL		RTLD_GLOBAL
11309#else
11310#  ifdef DL_GLOBAL
11311#    define LT_DLGLOBAL		DL_GLOBAL
11312#  else
11313#    define LT_DLGLOBAL		0
11314#  endif
11315#endif
11316
11317/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11318   find out it does not work in some platform. */
11319#ifndef LT_DLLAZY_OR_NOW
11320#  ifdef RTLD_LAZY
11321#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11322#  else
11323#    ifdef DL_LAZY
11324#      define LT_DLLAZY_OR_NOW		DL_LAZY
11325#    else
11326#      ifdef RTLD_NOW
11327#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11328#      else
11329#        ifdef DL_NOW
11330#          define LT_DLLAZY_OR_NOW	DL_NOW
11331#        else
11332#          define LT_DLLAZY_OR_NOW	0
11333#        endif
11334#      endif
11335#    endif
11336#  endif
11337#endif
11338
11339/* When -fvisbility=hidden is used, assume the code has been annotated
11340   correspondingly for the symbols needed.  */
11341#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11342int fnord () __attribute__((visibility("default")));
11343#endif
11344
11345int fnord () { return 42; }
11346int main ()
11347{
11348  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11349  int status = $lt_dlunknown;
11350
11351  if (self)
11352    {
11353      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11354      else
11355        {
11356	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11357          else puts (dlerror ());
11358	}
11359      /* dlclose (self); */
11360    }
11361  else
11362    puts (dlerror ());
11363
11364  return status;
11365}
11366_LT_EOF
11367  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11368  (eval $ac_link) 2>&5
11369  ac_status=$?
11370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11372    (./conftest; exit; ) >&5 2>/dev/null
11373    lt_status=$?
11374    case x$lt_status in
11375      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11378    esac
11379  else :
11380    # compilation failed
11381    lt_cv_dlopen_self_static=no
11382  fi
11383fi
11384rm -fr conftest*
11385
11386
11387fi
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11389$as_echo "$lt_cv_dlopen_self_static" >&6; }
11390    fi
11391
11392    CPPFLAGS="$save_CPPFLAGS"
11393    LDFLAGS="$save_LDFLAGS"
11394    LIBS="$save_LIBS"
11395    ;;
11396  esac
11397
11398  case $lt_cv_dlopen_self in
11399  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400  *) enable_dlopen_self=unknown ;;
11401  esac
11402
11403  case $lt_cv_dlopen_self_static in
11404  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405  *) enable_dlopen_self_static=unknown ;;
11406  esac
11407fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425striplib=
11426old_striplib=
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11428$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11429if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11430  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11431  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433$as_echo "yes" >&6; }
11434else
11435# FIXME - insert some real tests, host_os isn't really good enough
11436  case $host_os in
11437  darwin*)
11438    if test -n "$STRIP" ; then
11439      striplib="$STRIP -x"
11440      old_striplib="$STRIP -S"
11441      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; }
11443    else
11444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446    fi
11447    ;;
11448  *)
11449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
11451    ;;
11452  esac
11453fi
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466  # Report which library types will actually be built
11467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11468$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11470$as_echo "$can_build_shared" >&6; }
11471
11472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11473$as_echo_n "checking whether to build shared libraries... " >&6; }
11474  test "$can_build_shared" = "no" && enable_shared=no
11475
11476  # On AIX, shared libraries and static libraries use the same namespace, and
11477  # are all built from PIC.
11478  case $host_os in
11479  aix3*)
11480    test "$enable_shared" = yes && enable_static=no
11481    if test -n "$RANLIB"; then
11482      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11483      postinstall_cmds='$RANLIB $lib'
11484    fi
11485    ;;
11486
11487  aix[4-9]*)
11488    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11489      test "$enable_shared" = yes && enable_static=no
11490    fi
11491    ;;
11492  esac
11493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11494$as_echo "$enable_shared" >&6; }
11495
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11497$as_echo_n "checking whether to build static libraries... " >&6; }
11498  # Make sure either enable_shared or enable_static is yes.
11499  test "$enable_shared" = yes || enable_static=yes
11500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11501$as_echo "$enable_static" >&6; }
11502
11503
11504
11505
11506fi
11507ac_ext=c
11508ac_cpp='$CPP $CPPFLAGS'
11509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513CC="$lt_save_CC"
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527        ac_config_commands="$ac_config_commands libtool"
11528
11529
11530
11531
11532# Only expand once:
11533
11534
11535
11536
11537LINUX_API=0
11538DARWIN_API=0
11539BSD_API=0
11540
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for what USB OS support" >&5
11542$as_echo_n "checking for what USB OS support... " >&6; }
11543case $host in
11544  *-linux*)
11545    $as_echo "#define LINUX_API 1" >>confdefs.h
11546
11547    $as_echo "#define BSD_API 0" >>confdefs.h
11548
11549    $as_echo "#define DARWIN_API 0" >>confdefs.h
11550
11551    LINUX_API=1
11552    os_support=linux
11553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
11554$as_echo "Linux" >&6; }
11555    OSLIBS=""
11556    ;;
11557  *-freebsd*|*-kfreebsd*-gnu|*-openbsd*|*-netbsd*)
11558    $as_echo "#define BSD_API 1" >>confdefs.h
11559
11560    $as_echo "#define LINUX_API 0" >>confdefs.h
11561
11562    $as_echo "#define DARWIN_API 0" >>confdefs.h
11563
11564    BSD_API=1
11565    os_support=bsd
11566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
11567$as_echo "FreeBSD" >&6; }
11568    OSLIBS=""
11569    ;;
11570  *-darwin*)
11571    $as_echo "#define DARWIN_API 1" >>confdefs.h
11572
11573    $as_echo "#define LINUX_API 0" >>confdefs.h
11574
11575    $as_echo "#define BSD_API 0" >>confdefs.h
11576
11577    DARWIN_API=1
11578    os_support=darwin
11579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin and/or MacOS 10" >&5
11580$as_echo "Darwin and/or MacOS 10" >&6; }
11581    OSLIBS="-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind"
11582    ;;
11583  *)
11584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown operating system" >&5
11585$as_echo "unknown operating system" >&6; }
11586    as_fn_error $? "libusb does not support compiling for $host" "$LINENO" 5
11587    ;;
11588esac
11589
11590
11591
11592
11593
11594 if test "$os_support" = "linux"; then
11595  LINUX_API_TRUE=
11596  LINUX_API_FALSE='#'
11597else
11598  LINUX_API_TRUE='#'
11599  LINUX_API_FALSE=
11600fi
11601
11602 if test "$os_support" = "bsd"; then
11603  BSD_API_TRUE=
11604  BSD_API_FALSE='#'
11605else
11606  BSD_API_TRUE='#'
11607  BSD_API_FALSE=
11608fi
11609
11610 if test "$os_support" = "darwin"; then
11611  DARWIN_API_TRUE=
11612  DARWIN_API_FALSE='#'
11613else
11614  DARWIN_API_TRUE='#'
11615  DARWIN_API_FALSE=
11616fi
11617
11618
11619
11620
11621if test `expr $LIBUSB_MINOR_VERSION \% 2` = 1 ; then
11622  debug_default=yes
11623else
11624  debug_default=minimum
11625fi
11626
11627# Check whether --enable-debug was given.
11628if test "${enable_debug+set}" = set; then :
11629  enableval=$enable_debug;
11630else
11631  enable_debug=$debug_default
11632fi
11633
11634
11635if test "x$enable_debug" = "xyes"; then
11636  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
11637fi
11638
11639# Checks for programs.
11640ac_ext=cpp
11641ac_cpp='$CXXCPP $CPPFLAGS'
11642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11645
11646ac_ext=c
11647ac_cpp='$CPP $CPPFLAGS'
11648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650ac_compiler_gnu=$ac_cv_c_compiler_gnu
11651if test -n "$ac_tool_prefix"; then
11652  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11653set dummy ${ac_tool_prefix}gcc; ac_word=$2
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if ${ac_cv_prog_CC+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  if test -n "$CC"; then
11660  ac_cv_prog_CC="$CC" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665  IFS=$as_save_IFS
11666  test -z "$as_dir" && as_dir=.
11667    for ac_exec_ext in '' $ac_executable_extensions; do
11668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11669    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671    break 2
11672  fi
11673done
11674  done
11675IFS=$as_save_IFS
11676
11677fi
11678fi
11679CC=$ac_cv_prog_CC
11680if test -n "$CC"; then
11681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11682$as_echo "$CC" >&6; }
11683else
11684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686fi
11687
11688
11689fi
11690if test -z "$ac_cv_prog_CC"; then
11691  ac_ct_CC=$CC
11692  # Extract the first word of "gcc", so it can be a program name with args.
11693set dummy gcc; ac_word=$2
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695$as_echo_n "checking for $ac_word... " >&6; }
11696if ${ac_cv_prog_ac_ct_CC+:} false; then :
11697  $as_echo_n "(cached) " >&6
11698else
11699  if test -n "$ac_ct_CC"; then
11700  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11701else
11702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703for as_dir in $PATH
11704do
11705  IFS=$as_save_IFS
11706  test -z "$as_dir" && as_dir=.
11707    for ac_exec_ext in '' $ac_executable_extensions; do
11708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709    ac_cv_prog_ac_ct_CC="gcc"
11710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711    break 2
11712  fi
11713done
11714  done
11715IFS=$as_save_IFS
11716
11717fi
11718fi
11719ac_ct_CC=$ac_cv_prog_ac_ct_CC
11720if test -n "$ac_ct_CC"; then
11721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11722$as_echo "$ac_ct_CC" >&6; }
11723else
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; }
11726fi
11727
11728  if test "x$ac_ct_CC" = x; then
11729    CC=""
11730  else
11731    case $cross_compiling:$ac_tool_warned in
11732yes:)
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11735ac_tool_warned=yes ;;
11736esac
11737    CC=$ac_ct_CC
11738  fi
11739else
11740  CC="$ac_cv_prog_CC"
11741fi
11742
11743if test -z "$CC"; then
11744          if test -n "$ac_tool_prefix"; then
11745    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11746set dummy ${ac_tool_prefix}cc; ac_word=$2
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748$as_echo_n "checking for $ac_word... " >&6; }
11749if ${ac_cv_prog_CC+:} false; then :
11750  $as_echo_n "(cached) " >&6
11751else
11752  if test -n "$CC"; then
11753  ac_cv_prog_CC="$CC" # Let the user override the test.
11754else
11755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758  IFS=$as_save_IFS
11759  test -z "$as_dir" && as_dir=.
11760    for ac_exec_ext in '' $ac_executable_extensions; do
11761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762    ac_cv_prog_CC="${ac_tool_prefix}cc"
11763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764    break 2
11765  fi
11766done
11767  done
11768IFS=$as_save_IFS
11769
11770fi
11771fi
11772CC=$ac_cv_prog_CC
11773if test -n "$CC"; then
11774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11775$as_echo "$CC" >&6; }
11776else
11777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778$as_echo "no" >&6; }
11779fi
11780
11781
11782  fi
11783fi
11784if test -z "$CC"; then
11785  # Extract the first word of "cc", so it can be a program name with args.
11786set dummy cc; ac_word=$2
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788$as_echo_n "checking for $ac_word... " >&6; }
11789if ${ac_cv_prog_CC+:} false; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792  if test -n "$CC"; then
11793  ac_cv_prog_CC="$CC" # Let the user override the test.
11794else
11795  ac_prog_rejected=no
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799  IFS=$as_save_IFS
11800  test -z "$as_dir" && as_dir=.
11801    for ac_exec_ext in '' $ac_executable_extensions; do
11802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11804       ac_prog_rejected=yes
11805       continue
11806     fi
11807    ac_cv_prog_CC="cc"
11808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809    break 2
11810  fi
11811done
11812  done
11813IFS=$as_save_IFS
11814
11815if test $ac_prog_rejected = yes; then
11816  # We found a bogon in the path, so make sure we never use it.
11817  set dummy $ac_cv_prog_CC
11818  shift
11819  if test $# != 0; then
11820    # We chose a different compiler from the bogus one.
11821    # However, it has the same basename, so the bogon will be chosen
11822    # first if we set CC to just the basename; use the full file name.
11823    shift
11824    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11825  fi
11826fi
11827fi
11828fi
11829CC=$ac_cv_prog_CC
11830if test -n "$CC"; then
11831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11832$as_echo "$CC" >&6; }
11833else
11834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
11836fi
11837
11838
11839fi
11840if test -z "$CC"; then
11841  if test -n "$ac_tool_prefix"; then
11842  for ac_prog in cl.exe
11843  do
11844    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11845set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847$as_echo_n "checking for $ac_word... " >&6; }
11848if ${ac_cv_prog_CC+:} false; then :
11849  $as_echo_n "(cached) " >&6
11850else
11851  if test -n "$CC"; then
11852  ac_cv_prog_CC="$CC" # Let the user override the test.
11853else
11854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855for as_dir in $PATH
11856do
11857  IFS=$as_save_IFS
11858  test -z "$as_dir" && as_dir=.
11859    for ac_exec_ext in '' $ac_executable_extensions; do
11860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11861    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863    break 2
11864  fi
11865done
11866  done
11867IFS=$as_save_IFS
11868
11869fi
11870fi
11871CC=$ac_cv_prog_CC
11872if test -n "$CC"; then
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11874$as_echo "$CC" >&6; }
11875else
11876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
11878fi
11879
11880
11881    test -n "$CC" && break
11882  done
11883fi
11884if test -z "$CC"; then
11885  ac_ct_CC=$CC
11886  for ac_prog in cl.exe
11887do
11888  # Extract the first word of "$ac_prog", so it can be a program name with args.
11889set dummy $ac_prog; ac_word=$2
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
11892if ${ac_cv_prog_ac_ct_CC+:} false; then :
11893  $as_echo_n "(cached) " >&6
11894else
11895  if test -n "$ac_ct_CC"; then
11896  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901  IFS=$as_save_IFS
11902  test -z "$as_dir" && as_dir=.
11903    for ac_exec_ext in '' $ac_executable_extensions; do
11904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905    ac_cv_prog_ac_ct_CC="$ac_prog"
11906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907    break 2
11908  fi
11909done
11910  done
11911IFS=$as_save_IFS
11912
11913fi
11914fi
11915ac_ct_CC=$ac_cv_prog_ac_ct_CC
11916if test -n "$ac_ct_CC"; then
11917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11918$as_echo "$ac_ct_CC" >&6; }
11919else
11920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922fi
11923
11924
11925  test -n "$ac_ct_CC" && break
11926done
11927
11928  if test "x$ac_ct_CC" = x; then
11929    CC=""
11930  else
11931    case $cross_compiling:$ac_tool_warned in
11932yes:)
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11935ac_tool_warned=yes ;;
11936esac
11937    CC=$ac_ct_CC
11938  fi
11939fi
11940
11941fi
11942
11943
11944test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11946as_fn_error $? "no acceptable C compiler found in \$PATH
11947See \`config.log' for more details" "$LINENO" 5; }
11948
11949# Provide some information about the compiler.
11950$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11951set X $ac_compile
11952ac_compiler=$2
11953for ac_option in --version -v -V -qversion; do
11954  { { ac_try="$ac_compiler $ac_option >&5"
11955case "(($ac_try" in
11956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957  *) ac_try_echo=$ac_try;;
11958esac
11959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11960$as_echo "$ac_try_echo"; } >&5
11961  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11962  ac_status=$?
11963  if test -s conftest.err; then
11964    sed '10a\
11965... rest of stderr output deleted ...
11966         10q' conftest.err >conftest.er1
11967    cat conftest.er1 >&5
11968  fi
11969  rm -f conftest.er1 conftest.err
11970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971  test $ac_status = 0; }
11972done
11973
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11975$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11976if ${ac_cv_c_compiler_gnu+:} false; then :
11977  $as_echo_n "(cached) " >&6
11978else
11979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h.  */
11981
11982int
11983main ()
11984{
11985#ifndef __GNUC__
11986       choke me
11987#endif
11988
11989  ;
11990  return 0;
11991}
11992_ACEOF
11993if ac_fn_c_try_compile "$LINENO"; then :
11994  ac_compiler_gnu=yes
11995else
11996  ac_compiler_gnu=no
11997fi
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999ac_cv_c_compiler_gnu=$ac_compiler_gnu
12000
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12003$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12004if test $ac_compiler_gnu = yes; then
12005  GCC=yes
12006else
12007  GCC=
12008fi
12009ac_test_CFLAGS=${CFLAGS+set}
12010ac_save_CFLAGS=$CFLAGS
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12012$as_echo_n "checking whether $CC accepts -g... " >&6; }
12013if ${ac_cv_prog_cc_g+:} false; then :
12014  $as_echo_n "(cached) " >&6
12015else
12016  ac_save_c_werror_flag=$ac_c_werror_flag
12017   ac_c_werror_flag=yes
12018   ac_cv_prog_cc_g=no
12019   CFLAGS="-g"
12020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h.  */
12022
12023int
12024main ()
12025{
12026
12027  ;
12028  return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_compile "$LINENO"; then :
12032  ac_cv_prog_cc_g=yes
12033else
12034  CFLAGS=""
12035      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h.  */
12037
12038int
12039main ()
12040{
12041
12042  ;
12043  return 0;
12044}
12045_ACEOF
12046if ac_fn_c_try_compile "$LINENO"; then :
12047
12048else
12049  ac_c_werror_flag=$ac_save_c_werror_flag
12050	 CFLAGS="-g"
12051	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053
12054int
12055main ()
12056{
12057
12058  ;
12059  return 0;
12060}
12061_ACEOF
12062if ac_fn_c_try_compile "$LINENO"; then :
12063  ac_cv_prog_cc_g=yes
12064fi
12065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066fi
12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068fi
12069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070   ac_c_werror_flag=$ac_save_c_werror_flag
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12073$as_echo "$ac_cv_prog_cc_g" >&6; }
12074if test "$ac_test_CFLAGS" = set; then
12075  CFLAGS=$ac_save_CFLAGS
12076elif test $ac_cv_prog_cc_g = yes; then
12077  if test "$GCC" = yes; then
12078    CFLAGS="-g -O2"
12079  else
12080    CFLAGS="-g"
12081  fi
12082else
12083  if test "$GCC" = yes; then
12084    CFLAGS="-O2"
12085  else
12086    CFLAGS=
12087  fi
12088fi
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12090$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12091if ${ac_cv_prog_cc_c89+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  ac_cv_prog_cc_c89=no
12095ac_save_CC=$CC
12096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h.  */
12098#include <stdarg.h>
12099#include <stdio.h>
12100#include <sys/types.h>
12101#include <sys/stat.h>
12102/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12103struct buf { int x; };
12104FILE * (*rcsopen) (struct buf *, struct stat *, int);
12105static char *e (p, i)
12106     char **p;
12107     int i;
12108{
12109  return p[i];
12110}
12111static char *f (char * (*g) (char **, int), char **p, ...)
12112{
12113  char *s;
12114  va_list v;
12115  va_start (v,p);
12116  s = g (p, va_arg (v,int));
12117  va_end (v);
12118  return s;
12119}
12120
12121/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12122   function prototypes and stuff, but not '\xHH' hex character constants.
12123   These don't provoke an error unfortunately, instead are silently treated
12124   as 'x'.  The following induces an error, until -std is added to get
12125   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12126   array size at least.  It's necessary to write '\x00'==0 to get something
12127   that's true only with -std.  */
12128int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12129
12130/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12131   inside strings and character constants.  */
12132#define FOO(x) 'x'
12133int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12134
12135int test (int i, double x);
12136struct s1 {int (*f) (int a);};
12137struct s2 {int (*f) (double a);};
12138int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12139int argc;
12140char **argv;
12141int
12142main ()
12143{
12144return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12145  ;
12146  return 0;
12147}
12148_ACEOF
12149for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12150	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12151do
12152  CC="$ac_save_CC $ac_arg"
12153  if ac_fn_c_try_compile "$LINENO"; then :
12154  ac_cv_prog_cc_c89=$ac_arg
12155fi
12156rm -f core conftest.err conftest.$ac_objext
12157  test "x$ac_cv_prog_cc_c89" != "xno" && break
12158done
12159rm -f conftest.$ac_ext
12160CC=$ac_save_CC
12161
12162fi
12163# AC_CACHE_VAL
12164case "x$ac_cv_prog_cc_c89" in
12165  x)
12166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12167$as_echo "none needed" >&6; } ;;
12168  xno)
12169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12170$as_echo "unsupported" >&6; } ;;
12171  *)
12172    CC="$CC $ac_cv_prog_cc_c89"
12173    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12174$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12175esac
12176if test "x$ac_cv_prog_cc_c89" != xno; then :
12177
12178fi
12179
12180ac_ext=cpp
12181ac_cpp='$CXXCPP $CPPFLAGS'
12182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12185
12186depcc="$CC"   am_compiler_list=
12187
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12189$as_echo_n "checking dependency style of $depcc... " >&6; }
12190if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12191  $as_echo_n "(cached) " >&6
12192else
12193  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12194  # We make a subdir and do the tests there.  Otherwise we can end up
12195  # making bogus files that we don't know about and never remove.  For
12196  # instance it was reported that on HP-UX the gcc test will end up
12197  # making a dummy file named `D' -- because `-MD' means `put the output
12198  # in D'.
12199  mkdir conftest.dir
12200  # Copy depcomp to subdir because otherwise we won't find it if we're
12201  # using a relative directory.
12202  cp "$am_depcomp" conftest.dir
12203  cd conftest.dir
12204  # We will build objects and dependencies in a subdirectory because
12205  # it helps to detect inapplicable dependency modes.  For instance
12206  # both Tru64's cc and ICC support -MD to output dependencies as a
12207  # side effect of compilation, but ICC will put the dependencies in
12208  # the current directory while Tru64 will put them in the object
12209  # directory.
12210  mkdir sub
12211
12212  am_cv_CC_dependencies_compiler_type=none
12213  if test "$am_compiler_list" = ""; then
12214     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12215  fi
12216  am__universal=false
12217  case " $depcc " in #(
12218     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12219     esac
12220
12221  for depmode in $am_compiler_list; do
12222    # Setup a source with many dependencies, because some compilers
12223    # like to wrap large dependency lists on column 80 (with \), and
12224    # we should not choose a depcomp mode which is confused by this.
12225    #
12226    # We need to recreate these files for each test, as the compiler may
12227    # overwrite some of them when testing with obscure command lines.
12228    # This happens at least with the AIX C compiler.
12229    : > sub/conftest.c
12230    for i in 1 2 3 4 5 6; do
12231      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12232      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12233      # Solaris 8's {/usr,}/bin/sh.
12234      touch sub/conftst$i.h
12235    done
12236    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12237
12238    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12239    # mode.  It turns out that the SunPro C++ compiler does not properly
12240    # handle `-M -o', and we need to detect this.  Also, some Intel
12241    # versions had trouble with output in subdirs
12242    am__obj=sub/conftest.${OBJEXT-o}
12243    am__minus_obj="-o $am__obj"
12244    case $depmode in
12245    gcc)
12246      # This depmode causes a compiler race in universal mode.
12247      test "$am__universal" = false || continue
12248      ;;
12249    nosideeffect)
12250      # after this tag, mechanisms are not by side-effect, so they'll
12251      # only be used when explicitly requested
12252      if test "x$enable_dependency_tracking" = xyes; then
12253	continue
12254      else
12255	break
12256      fi
12257      ;;
12258    msvisualcpp | msvcmsys)
12259      # This compiler won't grok `-c -o', but also, the minuso test has
12260      # not run yet.  These depmodes are late enough in the game, and
12261      # so weak that their functioning should not be impacted.
12262      am__obj=conftest.${OBJEXT-o}
12263      am__minus_obj=
12264      ;;
12265    none) break ;;
12266    esac
12267    if depmode=$depmode \
12268       source=sub/conftest.c object=$am__obj \
12269       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12270       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12271         >/dev/null 2>conftest.err &&
12272       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12273       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12274       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12275       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12276      # icc doesn't choke on unknown options, it will just issue warnings
12277      # or remarks (even with -Werror).  So we grep stderr for any message
12278      # that says an option was ignored or not supported.
12279      # When given -MP, icc 7.0 and 7.1 complain thusly:
12280      #   icc: Command line warning: ignoring option '-M'; no argument required
12281      # The diagnosis changed in icc 8.0:
12282      #   icc: Command line remark: option '-MP' not supported
12283      if (grep 'ignoring option' conftest.err ||
12284          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12285        am_cv_CC_dependencies_compiler_type=$depmode
12286        break
12287      fi
12288    fi
12289  done
12290
12291  cd ..
12292  rm -rf conftest.dir
12293else
12294  am_cv_CC_dependencies_compiler_type=none
12295fi
12296
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12299$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12300CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12301
12302 if
12303  test "x$enable_dependency_tracking" != xno \
12304  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12305  am__fastdepCC_TRUE=
12306  am__fastdepCC_FALSE='#'
12307else
12308  am__fastdepCC_TRUE='#'
12309  am__fastdepCC_FALSE=
12310fi
12311
12312
12313ac_ext=cpp
12314ac_cpp='$CXXCPP $CPPFLAGS'
12315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12318if test -z "$CXX"; then
12319  if test -n "$CCC"; then
12320    CXX=$CCC
12321  else
12322    if test -n "$ac_tool_prefix"; then
12323  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12324  do
12325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328$as_echo_n "checking for $ac_word... " >&6; }
12329if ${ac_cv_prog_CXX+:} false; then :
12330  $as_echo_n "(cached) " >&6
12331else
12332  if test -n "$CXX"; then
12333  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12334else
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338  IFS=$as_save_IFS
12339  test -z "$as_dir" && as_dir=.
12340    for ac_exec_ext in '' $ac_executable_extensions; do
12341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12342    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344    break 2
12345  fi
12346done
12347  done
12348IFS=$as_save_IFS
12349
12350fi
12351fi
12352CXX=$ac_cv_prog_CXX
12353if test -n "$CXX"; then
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12355$as_echo "$CXX" >&6; }
12356else
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359fi
12360
12361
12362    test -n "$CXX" && break
12363  done
12364fi
12365if test -z "$CXX"; then
12366  ac_ct_CXX=$CXX
12367  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12368do
12369  # Extract the first word of "$ac_prog", so it can be a program name with args.
12370set dummy $ac_prog; ac_word=$2
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372$as_echo_n "checking for $ac_word... " >&6; }
12373if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  if test -n "$ac_ct_CXX"; then
12377  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12378else
12379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380for as_dir in $PATH
12381do
12382  IFS=$as_save_IFS
12383  test -z "$as_dir" && as_dir=.
12384    for ac_exec_ext in '' $ac_executable_extensions; do
12385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12386    ac_cv_prog_ac_ct_CXX="$ac_prog"
12387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388    break 2
12389  fi
12390done
12391  done
12392IFS=$as_save_IFS
12393
12394fi
12395fi
12396ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12397if test -n "$ac_ct_CXX"; then
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12399$as_echo "$ac_ct_CXX" >&6; }
12400else
12401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402$as_echo "no" >&6; }
12403fi
12404
12405
12406  test -n "$ac_ct_CXX" && break
12407done
12408
12409  if test "x$ac_ct_CXX" = x; then
12410    CXX="g++"
12411  else
12412    case $cross_compiling:$ac_tool_warned in
12413yes:)
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12416ac_tool_warned=yes ;;
12417esac
12418    CXX=$ac_ct_CXX
12419  fi
12420fi
12421
12422  fi
12423fi
12424# Provide some information about the compiler.
12425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12426set X $ac_compile
12427ac_compiler=$2
12428for ac_option in --version -v -V -qversion; do
12429  { { ac_try="$ac_compiler $ac_option >&5"
12430case "(($ac_try" in
12431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432  *) ac_try_echo=$ac_try;;
12433esac
12434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12435$as_echo "$ac_try_echo"; } >&5
12436  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12437  ac_status=$?
12438  if test -s conftest.err; then
12439    sed '10a\
12440... rest of stderr output deleted ...
12441         10q' conftest.err >conftest.er1
12442    cat conftest.er1 >&5
12443  fi
12444  rm -f conftest.er1 conftest.err
12445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446  test $ac_status = 0; }
12447done
12448
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12450$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12451if ${ac_cv_cxx_compiler_gnu+:} false; then :
12452  $as_echo_n "(cached) " >&6
12453else
12454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455/* end confdefs.h.  */
12456
12457int
12458main ()
12459{
12460#ifndef __GNUC__
12461       choke me
12462#endif
12463
12464  ;
12465  return 0;
12466}
12467_ACEOF
12468if ac_fn_cxx_try_compile "$LINENO"; then :
12469  ac_compiler_gnu=yes
12470else
12471  ac_compiler_gnu=no
12472fi
12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12475
12476fi
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12478$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12479if test $ac_compiler_gnu = yes; then
12480  GXX=yes
12481else
12482  GXX=
12483fi
12484ac_test_CXXFLAGS=${CXXFLAGS+set}
12485ac_save_CXXFLAGS=$CXXFLAGS
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12487$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12488if ${ac_cv_prog_cxx_g+:} false; then :
12489  $as_echo_n "(cached) " >&6
12490else
12491  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12492   ac_cxx_werror_flag=yes
12493   ac_cv_prog_cxx_g=no
12494   CXXFLAGS="-g"
12495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496/* end confdefs.h.  */
12497
12498int
12499main ()
12500{
12501
12502  ;
12503  return 0;
12504}
12505_ACEOF
12506if ac_fn_cxx_try_compile "$LINENO"; then :
12507  ac_cv_prog_cxx_g=yes
12508else
12509  CXXFLAGS=""
12510      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511/* end confdefs.h.  */
12512
12513int
12514main ()
12515{
12516
12517  ;
12518  return 0;
12519}
12520_ACEOF
12521if ac_fn_cxx_try_compile "$LINENO"; then :
12522
12523else
12524  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12525	 CXXFLAGS="-g"
12526	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h.  */
12528
12529int
12530main ()
12531{
12532
12533  ;
12534  return 0;
12535}
12536_ACEOF
12537if ac_fn_cxx_try_compile "$LINENO"; then :
12538  ac_cv_prog_cxx_g=yes
12539fi
12540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541fi
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543fi
12544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12546fi
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12548$as_echo "$ac_cv_prog_cxx_g" >&6; }
12549if test "$ac_test_CXXFLAGS" = set; then
12550  CXXFLAGS=$ac_save_CXXFLAGS
12551elif test $ac_cv_prog_cxx_g = yes; then
12552  if test "$GXX" = yes; then
12553    CXXFLAGS="-g -O2"
12554  else
12555    CXXFLAGS="-g"
12556  fi
12557else
12558  if test "$GXX" = yes; then
12559    CXXFLAGS="-O2"
12560  else
12561    CXXFLAGS=
12562  fi
12563fi
12564ac_ext=cpp
12565ac_cpp='$CXXCPP $CPPFLAGS'
12566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12569
12570depcc="$CXX"  am_compiler_list=
12571
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12573$as_echo_n "checking dependency style of $depcc... " >&6; }
12574if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12575  $as_echo_n "(cached) " >&6
12576else
12577  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12578  # We make a subdir and do the tests there.  Otherwise we can end up
12579  # making bogus files that we don't know about and never remove.  For
12580  # instance it was reported that on HP-UX the gcc test will end up
12581  # making a dummy file named `D' -- because `-MD' means `put the output
12582  # in D'.
12583  mkdir conftest.dir
12584  # Copy depcomp to subdir because otherwise we won't find it if we're
12585  # using a relative directory.
12586  cp "$am_depcomp" conftest.dir
12587  cd conftest.dir
12588  # We will build objects and dependencies in a subdirectory because
12589  # it helps to detect inapplicable dependency modes.  For instance
12590  # both Tru64's cc and ICC support -MD to output dependencies as a
12591  # side effect of compilation, but ICC will put the dependencies in
12592  # the current directory while Tru64 will put them in the object
12593  # directory.
12594  mkdir sub
12595
12596  am_cv_CXX_dependencies_compiler_type=none
12597  if test "$am_compiler_list" = ""; then
12598     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12599  fi
12600  am__universal=false
12601  case " $depcc " in #(
12602     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12603     esac
12604
12605  for depmode in $am_compiler_list; do
12606    # Setup a source with many dependencies, because some compilers
12607    # like to wrap large dependency lists on column 80 (with \), and
12608    # we should not choose a depcomp mode which is confused by this.
12609    #
12610    # We need to recreate these files for each test, as the compiler may
12611    # overwrite some of them when testing with obscure command lines.
12612    # This happens at least with the AIX C compiler.
12613    : > sub/conftest.c
12614    for i in 1 2 3 4 5 6; do
12615      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12616      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12617      # Solaris 8's {/usr,}/bin/sh.
12618      touch sub/conftst$i.h
12619    done
12620    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12621
12622    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12623    # mode.  It turns out that the SunPro C++ compiler does not properly
12624    # handle `-M -o', and we need to detect this.  Also, some Intel
12625    # versions had trouble with output in subdirs
12626    am__obj=sub/conftest.${OBJEXT-o}
12627    am__minus_obj="-o $am__obj"
12628    case $depmode in
12629    gcc)
12630      # This depmode causes a compiler race in universal mode.
12631      test "$am__universal" = false || continue
12632      ;;
12633    nosideeffect)
12634      # after this tag, mechanisms are not by side-effect, so they'll
12635      # only be used when explicitly requested
12636      if test "x$enable_dependency_tracking" = xyes; then
12637	continue
12638      else
12639	break
12640      fi
12641      ;;
12642    msvisualcpp | msvcmsys)
12643      # This compiler won't grok `-c -o', but also, the minuso test has
12644      # not run yet.  These depmodes are late enough in the game, and
12645      # so weak that their functioning should not be impacted.
12646      am__obj=conftest.${OBJEXT-o}
12647      am__minus_obj=
12648      ;;
12649    none) break ;;
12650    esac
12651    if depmode=$depmode \
12652       source=sub/conftest.c object=$am__obj \
12653       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12654       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12655         >/dev/null 2>conftest.err &&
12656       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12657       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12658       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12659       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12660      # icc doesn't choke on unknown options, it will just issue warnings
12661      # or remarks (even with -Werror).  So we grep stderr for any message
12662      # that says an option was ignored or not supported.
12663      # When given -MP, icc 7.0 and 7.1 complain thusly:
12664      #   icc: Command line warning: ignoring option '-M'; no argument required
12665      # The diagnosis changed in icc 8.0:
12666      #   icc: Command line remark: option '-MP' not supported
12667      if (grep 'ignoring option' conftest.err ||
12668          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12669        am_cv_CXX_dependencies_compiler_type=$depmode
12670        break
12671      fi
12672    fi
12673  done
12674
12675  cd ..
12676  rm -rf conftest.dir
12677else
12678  am_cv_CXX_dependencies_compiler_type=none
12679fi
12680
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12683$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12684CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12685
12686 if
12687  test "x$enable_dependency_tracking" != xno \
12688  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12689  am__fastdepCXX_TRUE=
12690  am__fastdepCXX_FALSE='#'
12691else
12692  am__fastdepCXX_TRUE='#'
12693  am__fastdepCXX_FALSE=
12694fi
12695
12696
12697
12698
12699func_stripname_cnf ()
12700{
12701  case ${2} in
12702  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12703  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12704  esac
12705} # func_stripname_cnf
12706
12707      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12708    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12709    (test "X$CXX" != "Xg++"))) ; then
12710  ac_ext=cpp
12711ac_cpp='$CXXCPP $CPPFLAGS'
12712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12716$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12717if test -z "$CXXCPP"; then
12718  if ${ac_cv_prog_CXXCPP+:} false; then :
12719  $as_echo_n "(cached) " >&6
12720else
12721      # Double quotes because CXXCPP needs to be expanded
12722    for CXXCPP in "$CXX -E" "/lib/cpp"
12723    do
12724      ac_preproc_ok=false
12725for ac_cxx_preproc_warn_flag in '' yes
12726do
12727  # Use a header file that comes with gcc, so configuring glibc
12728  # with a fresh cross-compiler works.
12729  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730  # <limits.h> exists even on freestanding compilers.
12731  # On the NeXT, cc -E runs the code through the compiler's parser,
12732  # not just through cpp. "Syntax error" is here to catch this case.
12733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735#ifdef __STDC__
12736# include <limits.h>
12737#else
12738# include <assert.h>
12739#endif
12740		     Syntax error
12741_ACEOF
12742if ac_fn_cxx_try_cpp "$LINENO"; then :
12743
12744else
12745  # Broken: fails on valid input.
12746continue
12747fi
12748rm -f conftest.err conftest.i conftest.$ac_ext
12749
12750  # OK, works on sane cases.  Now check whether nonexistent headers
12751  # can be detected and how.
12752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h.  */
12754#include <ac_nonexistent.h>
12755_ACEOF
12756if ac_fn_cxx_try_cpp "$LINENO"; then :
12757  # Broken: success on invalid input.
12758continue
12759else
12760  # Passes both tests.
12761ac_preproc_ok=:
12762break
12763fi
12764rm -f conftest.err conftest.i conftest.$ac_ext
12765
12766done
12767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12768rm -f conftest.i conftest.err conftest.$ac_ext
12769if $ac_preproc_ok; then :
12770  break
12771fi
12772
12773    done
12774    ac_cv_prog_CXXCPP=$CXXCPP
12775
12776fi
12777  CXXCPP=$ac_cv_prog_CXXCPP
12778else
12779  ac_cv_prog_CXXCPP=$CXXCPP
12780fi
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12782$as_echo "$CXXCPP" >&6; }
12783ac_preproc_ok=false
12784for ac_cxx_preproc_warn_flag in '' yes
12785do
12786  # Use a header file that comes with gcc, so configuring glibc
12787  # with a fresh cross-compiler works.
12788  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12789  # <limits.h> exists even on freestanding compilers.
12790  # On the NeXT, cc -E runs the code through the compiler's parser,
12791  # not just through cpp. "Syntax error" is here to catch this case.
12792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793/* end confdefs.h.  */
12794#ifdef __STDC__
12795# include <limits.h>
12796#else
12797# include <assert.h>
12798#endif
12799		     Syntax error
12800_ACEOF
12801if ac_fn_cxx_try_cpp "$LINENO"; then :
12802
12803else
12804  # Broken: fails on valid input.
12805continue
12806fi
12807rm -f conftest.err conftest.i conftest.$ac_ext
12808
12809  # OK, works on sane cases.  Now check whether nonexistent headers
12810  # can be detected and how.
12811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h.  */
12813#include <ac_nonexistent.h>
12814_ACEOF
12815if ac_fn_cxx_try_cpp "$LINENO"; then :
12816  # Broken: success on invalid input.
12817continue
12818else
12819  # Passes both tests.
12820ac_preproc_ok=:
12821break
12822fi
12823rm -f conftest.err conftest.i conftest.$ac_ext
12824
12825done
12826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12827rm -f conftest.i conftest.err conftest.$ac_ext
12828if $ac_preproc_ok; then :
12829
12830else
12831  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12834See \`config.log' for more details" "$LINENO" 5; }
12835fi
12836
12837ac_ext=cpp
12838ac_cpp='$CXXCPP $CPPFLAGS'
12839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12842
12843else
12844  _lt_caught_CXX_error=yes
12845fi
12846
12847ac_ext=cpp
12848ac_cpp='$CXXCPP $CPPFLAGS'
12849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12852
12853archive_cmds_need_lc_CXX=no
12854allow_undefined_flag_CXX=
12855always_export_symbols_CXX=no
12856archive_expsym_cmds_CXX=
12857compiler_needs_object_CXX=no
12858export_dynamic_flag_spec_CXX=
12859hardcode_direct_CXX=no
12860hardcode_direct_absolute_CXX=no
12861hardcode_libdir_flag_spec_CXX=
12862hardcode_libdir_flag_spec_ld_CXX=
12863hardcode_libdir_separator_CXX=
12864hardcode_minus_L_CXX=no
12865hardcode_shlibpath_var_CXX=unsupported
12866hardcode_automatic_CXX=no
12867inherit_rpath_CXX=no
12868module_cmds_CXX=
12869module_expsym_cmds_CXX=
12870link_all_deplibs_CXX=unknown
12871old_archive_cmds_CXX=$old_archive_cmds
12872reload_flag_CXX=$reload_flag
12873reload_cmds_CXX=$reload_cmds
12874no_undefined_flag_CXX=
12875whole_archive_flag_spec_CXX=
12876enable_shared_with_static_runtimes_CXX=no
12877
12878# Source file extension for C++ test sources.
12879ac_ext=cpp
12880
12881# Object file extension for compiled C++ test sources.
12882objext=o
12883objext_CXX=$objext
12884
12885# No sense in running all these tests if we already determined that
12886# the CXX compiler isn't working.  Some variables (like enable_shared)
12887# are currently assumed to apply to all compilers on this platform,
12888# and will be corrupted by setting them based on a non-working compiler.
12889if test "$_lt_caught_CXX_error" != yes; then
12890  # Code to be used in simple compile tests
12891  lt_simple_compile_test_code="int some_variable = 0;"
12892
12893  # Code to be used in simple link tests
12894  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12895
12896  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12897
12898
12899
12900
12901
12902
12903# If no C compiler was specified, use CC.
12904LTCC=${LTCC-"$CC"}
12905
12906# If no C compiler flags were specified, use CFLAGS.
12907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12908
12909# Allow CC to be a program name with arguments.
12910compiler=$CC
12911
12912
12913  # save warnings/boilerplate of simple test code
12914  ac_outfile=conftest.$ac_objext
12915echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12916eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12917_lt_compiler_boilerplate=`cat conftest.err`
12918$RM conftest*
12919
12920  ac_outfile=conftest.$ac_objext
12921echo "$lt_simple_link_test_code" >conftest.$ac_ext
12922eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12923_lt_linker_boilerplate=`cat conftest.err`
12924$RM -r conftest*
12925
12926
12927  # Allow CC to be a program name with arguments.
12928  lt_save_CC=$CC
12929  lt_save_CFLAGS=$CFLAGS
12930  lt_save_LD=$LD
12931  lt_save_GCC=$GCC
12932  GCC=$GXX
12933  lt_save_with_gnu_ld=$with_gnu_ld
12934  lt_save_path_LD=$lt_cv_path_LD
12935  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12936    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12937  else
12938    $as_unset lt_cv_prog_gnu_ld
12939  fi
12940  if test -n "${lt_cv_path_LDCXX+set}"; then
12941    lt_cv_path_LD=$lt_cv_path_LDCXX
12942  else
12943    $as_unset lt_cv_path_LD
12944  fi
12945  test -z "${LDCXX+set}" || LD=$LDCXX
12946  CC=${CXX-"c++"}
12947  CFLAGS=$CXXFLAGS
12948  compiler=$CC
12949  compiler_CXX=$CC
12950  for cc_temp in $compiler""; do
12951  case $cc_temp in
12952    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12953    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12954    \-*) ;;
12955    *) break;;
12956  esac
12957done
12958cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12959
12960
12961  if test -n "$compiler"; then
12962    # We don't want -fno-exception when compiling C++ code, so set the
12963    # no_builtin_flag separately
12964    if test "$GXX" = yes; then
12965      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12966    else
12967      lt_prog_compiler_no_builtin_flag_CXX=
12968    fi
12969
12970    if test "$GXX" = yes; then
12971      # Set up default GNU C++ configuration
12972
12973
12974
12975# Check whether --with-gnu-ld was given.
12976if test "${with_gnu_ld+set}" = set; then :
12977  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12978else
12979  with_gnu_ld=no
12980fi
12981
12982ac_prog=ld
12983if test "$GCC" = yes; then
12984  # Check if gcc -print-prog-name=ld gives a path.
12985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12986$as_echo_n "checking for ld used by $CC... " >&6; }
12987  case $host in
12988  *-*-mingw*)
12989    # gcc leaves a trailing carriage return which upsets mingw
12990    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12991  *)
12992    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12993  esac
12994  case $ac_prog in
12995    # Accept absolute paths.
12996    [\\/]* | ?:[\\/]*)
12997      re_direlt='/[^/][^/]*/\.\./'
12998      # Canonicalize the pathname of ld
12999      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13000      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13001	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13002      done
13003      test -z "$LD" && LD="$ac_prog"
13004      ;;
13005  "")
13006    # If it fails, then pretend we aren't using GCC.
13007    ac_prog=ld
13008    ;;
13009  *)
13010    # If it is relative, then search for the first ld in PATH.
13011    with_gnu_ld=unknown
13012    ;;
13013  esac
13014elif test "$with_gnu_ld" = yes; then
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13016$as_echo_n "checking for GNU ld... " >&6; }
13017else
13018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13019$as_echo_n "checking for non-GNU ld... " >&6; }
13020fi
13021if ${lt_cv_path_LD+:} false; then :
13022  $as_echo_n "(cached) " >&6
13023else
13024  if test -z "$LD"; then
13025  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13026  for ac_dir in $PATH; do
13027    IFS="$lt_save_ifs"
13028    test -z "$ac_dir" && ac_dir=.
13029    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13030      lt_cv_path_LD="$ac_dir/$ac_prog"
13031      # Check to see if the program is GNU ld.  I'd rather use --version,
13032      # but apparently some variants of GNU ld only accept -v.
13033      # Break only if it was the GNU/non-GNU ld that we prefer.
13034      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13035      *GNU* | *'with BFD'*)
13036	test "$with_gnu_ld" != no && break
13037	;;
13038      *)
13039	test "$with_gnu_ld" != yes && break
13040	;;
13041      esac
13042    fi
13043  done
13044  IFS="$lt_save_ifs"
13045else
13046  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13047fi
13048fi
13049
13050LD="$lt_cv_path_LD"
13051if test -n "$LD"; then
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13053$as_echo "$LD" >&6; }
13054else
13055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056$as_echo "no" >&6; }
13057fi
13058test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13060$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13061if ${lt_cv_prog_gnu_ld+:} false; then :
13062  $as_echo_n "(cached) " >&6
13063else
13064  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13065case `$LD -v 2>&1 </dev/null` in
13066*GNU* | *'with BFD'*)
13067  lt_cv_prog_gnu_ld=yes
13068  ;;
13069*)
13070  lt_cv_prog_gnu_ld=no
13071  ;;
13072esac
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13075$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13076with_gnu_ld=$lt_cv_prog_gnu_ld
13077
13078
13079
13080
13081
13082
13083
13084      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13085      # archiving commands below assume that GNU ld is being used.
13086      if test "$with_gnu_ld" = yes; then
13087        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13089
13090        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13092
13093        # If archive_cmds runs LD, not CC, wlarc should be empty
13094        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13095        #     investigate it a little bit more. (MM)
13096        wlarc='${wl}'
13097
13098        # ancient GNU ld didn't support --whole-archive et. al.
13099        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13100	  $GREP 'no-whole-archive' > /dev/null; then
13101          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13102        else
13103          whole_archive_flag_spec_CXX=
13104        fi
13105      else
13106        with_gnu_ld=no
13107        wlarc=
13108
13109        # A generic and very simple default shared library creation
13110        # command for GNU C++ for the case where it uses the native
13111        # linker, instead of GNU ld.  If possible, this setting should
13112        # overridden to take advantage of the native linker features on
13113        # the platform it is being used on.
13114        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13115      fi
13116
13117      # Commands to make compiler produce verbose output that lists
13118      # what "hidden" libraries, object files and flags are used when
13119      # linking a shared library.
13120      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13121
13122    else
13123      GXX=no
13124      with_gnu_ld=no
13125      wlarc=
13126    fi
13127
13128    # PORTME: fill in a description of your system's C++ link characteristics
13129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13131    ld_shlibs_CXX=yes
13132    case $host_os in
13133      aix3*)
13134        # FIXME: insert proper C++ library support
13135        ld_shlibs_CXX=no
13136        ;;
13137      aix[4-9]*)
13138        if test "$host_cpu" = ia64; then
13139          # On IA64, the linker does run time linking by default, so we don't
13140          # have to do anything special.
13141          aix_use_runtimelinking=no
13142          exp_sym_flag='-Bexport'
13143          no_entry_flag=""
13144        else
13145          aix_use_runtimelinking=no
13146
13147          # Test if we are trying to use run time linking or normal
13148          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13149          # need to do runtime linking.
13150          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13151	    for ld_flag in $LDFLAGS; do
13152	      case $ld_flag in
13153	      *-brtl*)
13154	        aix_use_runtimelinking=yes
13155	        break
13156	        ;;
13157	      esac
13158	    done
13159	    ;;
13160          esac
13161
13162          exp_sym_flag='-bexport'
13163          no_entry_flag='-bnoentry'
13164        fi
13165
13166        # When large executables or shared objects are built, AIX ld can
13167        # have problems creating the table of contents.  If linking a library
13168        # or program results in "error TOC overflow" add -mminimal-toc to
13169        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13170        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13171
13172        archive_cmds_CXX=''
13173        hardcode_direct_CXX=yes
13174        hardcode_direct_absolute_CXX=yes
13175        hardcode_libdir_separator_CXX=':'
13176        link_all_deplibs_CXX=yes
13177        file_list_spec_CXX='${wl}-f,'
13178
13179        if test "$GXX" = yes; then
13180          case $host_os in aix4.[012]|aix4.[012].*)
13181          # We only want to do this on AIX 4.2 and lower, the check
13182          # below for broken collect2 doesn't work under 4.3+
13183	  collect2name=`${CC} -print-prog-name=collect2`
13184	  if test -f "$collect2name" &&
13185	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13186	  then
13187	    # We have reworked collect2
13188	    :
13189	  else
13190	    # We have old collect2
13191	    hardcode_direct_CXX=unsupported
13192	    # It fails to find uninstalled libraries when the uninstalled
13193	    # path is not listed in the libpath.  Setting hardcode_minus_L
13194	    # to unsupported forces relinking
13195	    hardcode_minus_L_CXX=yes
13196	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13197	    hardcode_libdir_separator_CXX=
13198	  fi
13199          esac
13200          shared_flag='-shared'
13201	  if test "$aix_use_runtimelinking" = yes; then
13202	    shared_flag="$shared_flag "'${wl}-G'
13203	  fi
13204        else
13205          # not using gcc
13206          if test "$host_cpu" = ia64; then
13207	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13208	  # chokes on -Wl,-G. The following line is correct:
13209	  shared_flag='-G'
13210          else
13211	    if test "$aix_use_runtimelinking" = yes; then
13212	      shared_flag='${wl}-G'
13213	    else
13214	      shared_flag='${wl}-bM:SRE'
13215	    fi
13216          fi
13217        fi
13218
13219        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13220        # It seems that -bexpall does not export symbols beginning with
13221        # underscore (_), so it is better to generate a list of symbols to
13222	# export.
13223        always_export_symbols_CXX=yes
13224        if test "$aix_use_runtimelinking" = yes; then
13225          # Warning - without using the other runtime loading flags (-brtl),
13226          # -berok will link without error, but may produce a broken library.
13227          allow_undefined_flag_CXX='-berok'
13228          # Determine the default libpath from the value encoded in an empty
13229          # executable.
13230          if test "${lt_cv_aix_libpath+set}" = set; then
13231  aix_libpath=$lt_cv_aix_libpath
13232else
13233  if ${lt_cv_aix_libpath__CXX+:} false; then :
13234  $as_echo_n "(cached) " >&6
13235else
13236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238
13239int
13240main ()
13241{
13242
13243  ;
13244  return 0;
13245}
13246_ACEOF
13247if ac_fn_cxx_try_link "$LINENO"; then :
13248
13249  lt_aix_libpath_sed='
13250      /Import File Strings/,/^$/ {
13251	  /^0/ {
13252	      s/^0  *\([^ ]*\) *$/\1/
13253	      p
13254	  }
13255      }'
13256  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13257  # Check for a 64-bit object if we didn't find anything.
13258  if test -z "$lt_cv_aix_libpath__CXX"; then
13259    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260  fi
13261fi
13262rm -f core conftest.err conftest.$ac_objext \
13263    conftest$ac_exeext conftest.$ac_ext
13264  if test -z "$lt_cv_aix_libpath__CXX"; then
13265    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13266  fi
13267
13268fi
13269
13270  aix_libpath=$lt_cv_aix_libpath__CXX
13271fi
13272
13273          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13274
13275          archive_expsym_cmds_CXX='$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"
13276        else
13277          if test "$host_cpu" = ia64; then
13278	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13279	    allow_undefined_flag_CXX="-z nodefs"
13280	    archive_expsym_cmds_CXX="\$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"
13281          else
13282	    # Determine the default libpath from the value encoded in an
13283	    # empty executable.
13284	    if test "${lt_cv_aix_libpath+set}" = set; then
13285  aix_libpath=$lt_cv_aix_libpath
13286else
13287  if ${lt_cv_aix_libpath__CXX+:} false; then :
13288  $as_echo_n "(cached) " >&6
13289else
13290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h.  */
13292
13293int
13294main ()
13295{
13296
13297  ;
13298  return 0;
13299}
13300_ACEOF
13301if ac_fn_cxx_try_link "$LINENO"; then :
13302
13303  lt_aix_libpath_sed='
13304      /Import File Strings/,/^$/ {
13305	  /^0/ {
13306	      s/^0  *\([^ ]*\) *$/\1/
13307	      p
13308	  }
13309      }'
13310  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13311  # Check for a 64-bit object if we didn't find anything.
13312  if test -z "$lt_cv_aix_libpath__CXX"; then
13313    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13314  fi
13315fi
13316rm -f core conftest.err conftest.$ac_objext \
13317    conftest$ac_exeext conftest.$ac_ext
13318  if test -z "$lt_cv_aix_libpath__CXX"; then
13319    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13320  fi
13321
13322fi
13323
13324  aix_libpath=$lt_cv_aix_libpath__CXX
13325fi
13326
13327	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13328	    # Warning - without using the other run time loading flags,
13329	    # -berok will link without error, but may produce a broken library.
13330	    no_undefined_flag_CXX=' ${wl}-bernotok'
13331	    allow_undefined_flag_CXX=' ${wl}-berok'
13332	    if test "$with_gnu_ld" = yes; then
13333	      # We only use this code for GNU lds that support --whole-archive.
13334	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13335	    else
13336	      # Exported symbols can be pulled into shared objects from archives
13337	      whole_archive_flag_spec_CXX='$convenience'
13338	    fi
13339	    archive_cmds_need_lc_CXX=yes
13340	    # This is similar to how AIX traditionally builds its shared
13341	    # libraries.
13342	    archive_expsym_cmds_CXX="\$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'
13343          fi
13344        fi
13345        ;;
13346
13347      beos*)
13348	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13349	  allow_undefined_flag_CXX=unsupported
13350	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13351	  # support --undefined.  This deserves some investigation.  FIXME
13352	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13353	else
13354	  ld_shlibs_CXX=no
13355	fi
13356	;;
13357
13358      chorus*)
13359        case $cc_basename in
13360          *)
13361	  # FIXME: insert proper C++ library support
13362	  ld_shlibs_CXX=no
13363	  ;;
13364        esac
13365        ;;
13366
13367      cygwin* | mingw* | pw32* | cegcc*)
13368	case $GXX,$cc_basename in
13369	,cl* | no,cl*)
13370	  # Native MSVC
13371	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13372	  # no search path for DLLs.
13373	  hardcode_libdir_flag_spec_CXX=' '
13374	  allow_undefined_flag_CXX=unsupported
13375	  always_export_symbols_CXX=yes
13376	  file_list_spec_CXX='@'
13377	  # Tell ltmain to make .lib files, not .a files.
13378	  libext=lib
13379	  # Tell ltmain to make .dll files, not .so files.
13380	  shrext_cmds=".dll"
13381	  # FIXME: Setting linknames here is a bad hack.
13382	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13383	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13384	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13385	    else
13386	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13387	    fi~
13388	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13389	    linknames='
13390	  # The linker will not automatically build a static lib if we build a DLL.
13391	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13392	  enable_shared_with_static_runtimes_CXX=yes
13393	  # Don't use ranlib
13394	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13395	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13396	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13397	    case $lt_outputfile in
13398	      *.exe|*.EXE) ;;
13399	      *)
13400		lt_outputfile="$lt_outputfile.exe"
13401		lt_tool_outputfile="$lt_tool_outputfile.exe"
13402		;;
13403	    esac~
13404	    func_to_tool_file "$lt_outputfile"~
13405	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13406	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13407	      $RM "$lt_outputfile.manifest";
13408	    fi'
13409	  ;;
13410	*)
13411	  # g++
13412	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13413	  # as there is no search path for DLLs.
13414	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13415	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13416	  allow_undefined_flag_CXX=unsupported
13417	  always_export_symbols_CXX=no
13418	  enable_shared_with_static_runtimes_CXX=yes
13419
13420	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13421	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13422	    # If the export-symbols file already is a .def file (1st line
13423	    # is EXPORTS), use it as is; otherwise, prepend...
13424	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13425	      cp $export_symbols $output_objdir/$soname.def;
13426	    else
13427	      echo EXPORTS > $output_objdir/$soname.def;
13428	      cat $export_symbols >> $output_objdir/$soname.def;
13429	    fi~
13430	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13431	  else
13432	    ld_shlibs_CXX=no
13433	  fi
13434	  ;;
13435	esac
13436	;;
13437      darwin* | rhapsody*)
13438
13439
13440  archive_cmds_need_lc_CXX=no
13441  hardcode_direct_CXX=no
13442  hardcode_automatic_CXX=yes
13443  hardcode_shlibpath_var_CXX=unsupported
13444  if test "$lt_cv_ld_force_load" = "yes"; then
13445    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13446  else
13447    whole_archive_flag_spec_CXX=''
13448  fi
13449  link_all_deplibs_CXX=yes
13450  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13451  case $cc_basename in
13452     ifort*) _lt_dar_can_shared=yes ;;
13453     *) _lt_dar_can_shared=$GCC ;;
13454  esac
13455  if test "$_lt_dar_can_shared" = "yes"; then
13456    output_verbose_link_cmd=func_echo_all
13457    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13458    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13459    archive_expsym_cmds_CXX="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}"
13460    module_expsym_cmds_CXX="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}"
13461       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13462      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13463      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13464    fi
13465
13466  else
13467  ld_shlibs_CXX=no
13468  fi
13469
13470	;;
13471
13472      dgux*)
13473        case $cc_basename in
13474          ec++*)
13475	    # FIXME: insert proper C++ library support
13476	    ld_shlibs_CXX=no
13477	    ;;
13478          ghcx*)
13479	    # Green Hills C++ Compiler
13480	    # FIXME: insert proper C++ library support
13481	    ld_shlibs_CXX=no
13482	    ;;
13483          *)
13484	    # FIXME: insert proper C++ library support
13485	    ld_shlibs_CXX=no
13486	    ;;
13487        esac
13488        ;;
13489
13490      freebsd[12]*)
13491        # C++ shared libraries reported to be fairly broken before
13492	# switch to ELF
13493        ld_shlibs_CXX=no
13494        ;;
13495
13496      freebsd-elf*)
13497        archive_cmds_need_lc_CXX=no
13498        ;;
13499
13500      freebsd* | dragonfly*)
13501        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13502        # conventions
13503        ld_shlibs_CXX=yes
13504        ;;
13505
13506      gnu*)
13507        ;;
13508
13509      haiku*)
13510        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511        link_all_deplibs_CXX=yes
13512        ;;
13513
13514      hpux9*)
13515        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13516        hardcode_libdir_separator_CXX=:
13517        export_dynamic_flag_spec_CXX='${wl}-E'
13518        hardcode_direct_CXX=yes
13519        hardcode_minus_L_CXX=yes # Not in the search PATH,
13520				             # but as the default
13521				             # location of the library.
13522
13523        case $cc_basename in
13524          CC*)
13525            # FIXME: insert proper C++ library support
13526            ld_shlibs_CXX=no
13527            ;;
13528          aCC*)
13529            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13530            # Commands to make compiler produce verbose output that lists
13531            # what "hidden" libraries, object files and flags are used when
13532            # linking a shared library.
13533            #
13534            # There doesn't appear to be a way to prevent this compiler from
13535            # explicitly linking system object files so we need to strip them
13536            # from the output so that they don't get included in the library
13537            # dependencies.
13538            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13539            ;;
13540          *)
13541            if test "$GXX" = yes; then
13542              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13543            else
13544              # FIXME: insert proper C++ library support
13545              ld_shlibs_CXX=no
13546            fi
13547            ;;
13548        esac
13549        ;;
13550
13551      hpux10*|hpux11*)
13552        if test $with_gnu_ld = no; then
13553	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13554	  hardcode_libdir_separator_CXX=:
13555
13556          case $host_cpu in
13557            hppa*64*|ia64*)
13558              ;;
13559            *)
13560	      export_dynamic_flag_spec_CXX='${wl}-E'
13561              ;;
13562          esac
13563        fi
13564        case $host_cpu in
13565          hppa*64*|ia64*)
13566            hardcode_direct_CXX=no
13567            hardcode_shlibpath_var_CXX=no
13568            ;;
13569          *)
13570            hardcode_direct_CXX=yes
13571            hardcode_direct_absolute_CXX=yes
13572            hardcode_minus_L_CXX=yes # Not in the search PATH,
13573					         # but as the default
13574					         # location of the library.
13575            ;;
13576        esac
13577
13578        case $cc_basename in
13579          CC*)
13580	    # FIXME: insert proper C++ library support
13581	    ld_shlibs_CXX=no
13582	    ;;
13583          aCC*)
13584	    case $host_cpu in
13585	      hppa*64*)
13586	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13587	        ;;
13588	      ia64*)
13589	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590	        ;;
13591	      *)
13592	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13593	        ;;
13594	    esac
13595	    # Commands to make compiler produce verbose output that lists
13596	    # what "hidden" libraries, object files and flags are used when
13597	    # linking a shared library.
13598	    #
13599	    # There doesn't appear to be a way to prevent this compiler from
13600	    # explicitly linking system object files so we need to strip them
13601	    # from the output so that they don't get included in the library
13602	    # dependencies.
13603	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13604	    ;;
13605          *)
13606	    if test "$GXX" = yes; then
13607	      if test $with_gnu_ld = no; then
13608	        case $host_cpu in
13609	          hppa*64*)
13610	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611	            ;;
13612	          ia64*)
13613	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13614	            ;;
13615	          *)
13616	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13617	            ;;
13618	        esac
13619	      fi
13620	    else
13621	      # FIXME: insert proper C++ library support
13622	      ld_shlibs_CXX=no
13623	    fi
13624	    ;;
13625        esac
13626        ;;
13627
13628      interix[3-9]*)
13629	hardcode_direct_CXX=no
13630	hardcode_shlibpath_var_CXX=no
13631	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13632	export_dynamic_flag_spec_CXX='${wl}-E'
13633	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13634	# Instead, shared libraries are loaded at an image base (0x10000000 by
13635	# default) and relocated if they conflict, which is a slow very memory
13636	# consuming and fragmenting process.  To avoid this, we pick a random,
13637	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13638	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13639	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13640	archive_expsym_cmds_CXX='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'
13641	;;
13642      irix5* | irix6*)
13643        case $cc_basename in
13644          CC*)
13645	    # SGI C++
13646	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13647
13648	    # Archives containing C++ object files must be created using
13649	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13650	    # necessary to make sure instantiated templates are included
13651	    # in the archive.
13652	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13653	    ;;
13654          *)
13655	    if test "$GXX" = yes; then
13656	      if test "$with_gnu_ld" = no; then
13657	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13658	      else
13659	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13660	      fi
13661	    fi
13662	    link_all_deplibs_CXX=yes
13663	    ;;
13664        esac
13665        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13666        hardcode_libdir_separator_CXX=:
13667        inherit_rpath_CXX=yes
13668        ;;
13669
13670      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13671        case $cc_basename in
13672          KCC*)
13673	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13674
13675	    # KCC will only create a shared library if the output file
13676	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13677	    # to its proper name (with version) after linking.
13678	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13679	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13680	    # Commands to make compiler produce verbose output that lists
13681	    # what "hidden" libraries, object files and flags are used when
13682	    # linking a shared library.
13683	    #
13684	    # There doesn't appear to be a way to prevent this compiler from
13685	    # explicitly linking system object files so we need to strip them
13686	    # from the output so that they don't get included in the library
13687	    # dependencies.
13688	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13689
13690	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13692
13693	    # Archives containing C++ object files must be created using
13694	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13695	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13696	    ;;
13697	  icpc* | ecpc* )
13698	    # Intel C++
13699	    with_gnu_ld=yes
13700	    # version 8.0 and above of icpc choke on multiply defined symbols
13701	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13702	    # earlier do not add the objects themselves.
13703	    case `$CC -V 2>&1` in
13704	      *"Version 7."*)
13705	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13707		;;
13708	      *)  # Version 8.0 or newer
13709	        tmp_idyn=
13710	        case $host_cpu in
13711		  ia64*) tmp_idyn=' -i_dynamic';;
13712		esac
13713	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13715		;;
13716	    esac
13717	    archive_cmds_need_lc_CXX=no
13718	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13719	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13720	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13721	    ;;
13722          pgCC* | pgcpp*)
13723            # Portland Group C++ compiler
13724	    case `$CC -V` in
13725	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13726	      prelink_cmds_CXX='tpldir=Template.dir~
13727		rm -rf $tpldir~
13728		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13729		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13730	      old_archive_cmds_CXX='tpldir=Template.dir~
13731		rm -rf $tpldir~
13732		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13733		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13734		$RANLIB $oldlib'
13735	      archive_cmds_CXX='tpldir=Template.dir~
13736		rm -rf $tpldir~
13737		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13738		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13739	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13740		rm -rf $tpldir~
13741		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13742		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13743	      ;;
13744	    *) # Version 6 and above use weak symbols
13745	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13746	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13747	      ;;
13748	    esac
13749
13750	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13751	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13752	    whole_archive_flag_spec_CXX='${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'
13753            ;;
13754	  cxx*)
13755	    # Compaq C++
13756	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13758
13759	    runpath_var=LD_RUN_PATH
13760	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13761	    hardcode_libdir_separator_CXX=:
13762
13763	    # Commands to make compiler produce verbose output that lists
13764	    # what "hidden" libraries, object files and flags are used when
13765	    # linking a shared library.
13766	    #
13767	    # There doesn't appear to be a way to prevent this compiler from
13768	    # explicitly linking system object files so we need to strip them
13769	    # from the output so that they don't get included in the library
13770	    # dependencies.
13771	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13772	    ;;
13773	  xl* | mpixl* | bgxl*)
13774	    # IBM XL 8.0 on PPC, with GNU ld
13775	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778	    if test "x$supports_anon_versioning" = xyes; then
13779	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13780		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13781		echo "local: *; };" >> $output_objdir/$libname.ver~
13782		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13783	    fi
13784	    ;;
13785	  *)
13786	    case `$CC -V 2>&1 | sed 5q` in
13787	    *Sun\ C*)
13788	      # Sun C++ 5.9
13789	      no_undefined_flag_CXX=' -zdefs'
13790	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13791	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13792	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13793	      whole_archive_flag_spec_CXX='${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'
13794	      compiler_needs_object_CXX=yes
13795
13796	      # Not sure whether something based on
13797	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13798	      # would be better.
13799	      output_verbose_link_cmd='func_echo_all'
13800
13801	      # Archives containing C++ object files must be created using
13802	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13803	      # necessary to make sure instantiated templates are included
13804	      # in the archive.
13805	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13806	      ;;
13807	    esac
13808	    ;;
13809	esac
13810	;;
13811
13812      lynxos*)
13813        # FIXME: insert proper C++ library support
13814	ld_shlibs_CXX=no
13815	;;
13816
13817      m88k*)
13818        # FIXME: insert proper C++ library support
13819        ld_shlibs_CXX=no
13820	;;
13821
13822      mvs*)
13823        case $cc_basename in
13824          cxx*)
13825	    # FIXME: insert proper C++ library support
13826	    ld_shlibs_CXX=no
13827	    ;;
13828	  *)
13829	    # FIXME: insert proper C++ library support
13830	    ld_shlibs_CXX=no
13831	    ;;
13832	esac
13833	;;
13834
13835      netbsd*)
13836        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13837	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13838	  wlarc=
13839	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13840	  hardcode_direct_CXX=yes
13841	  hardcode_shlibpath_var_CXX=no
13842	fi
13843	# Workaround some broken pre-1.5 toolchains
13844	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13845	;;
13846
13847      *nto* | *qnx*)
13848        ld_shlibs_CXX=yes
13849	;;
13850
13851      openbsd2*)
13852        # C++ shared libraries are fairly broken
13853	ld_shlibs_CXX=no
13854	;;
13855
13856      openbsd*)
13857	if test -f /usr/libexec/ld.so; then
13858	  hardcode_direct_CXX=yes
13859	  hardcode_shlibpath_var_CXX=no
13860	  hardcode_direct_absolute_CXX=yes
13861	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13862	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13863	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13864	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13865	    export_dynamic_flag_spec_CXX='${wl}-E'
13866	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13867	  fi
13868	  output_verbose_link_cmd=func_echo_all
13869	else
13870	  ld_shlibs_CXX=no
13871	fi
13872	;;
13873
13874      osf3* | osf4* | osf5*)
13875        case $cc_basename in
13876          KCC*)
13877	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13878
13879	    # KCC will only create a shared library if the output file
13880	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13881	    # to its proper name (with version) after linking.
13882	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13883
13884	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13885	    hardcode_libdir_separator_CXX=:
13886
13887	    # Archives containing C++ object files must be created using
13888	    # the KAI C++ compiler.
13889	    case $host in
13890	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13891	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13892	    esac
13893	    ;;
13894          RCC*)
13895	    # Rational C++ 2.4.1
13896	    # FIXME: insert proper C++ library support
13897	    ld_shlibs_CXX=no
13898	    ;;
13899          cxx*)
13900	    case $host in
13901	      osf3*)
13902	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13903	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13904	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13905		;;
13906	      *)
13907	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13908	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13909	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13910	          echo "-hidden">> $lib.exp~
13911	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13912	          $RM $lib.exp'
13913	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13914		;;
13915	    esac
13916
13917	    hardcode_libdir_separator_CXX=:
13918
13919	    # Commands to make compiler produce verbose output that lists
13920	    # what "hidden" libraries, object files and flags are used when
13921	    # linking a shared library.
13922	    #
13923	    # There doesn't appear to be a way to prevent this compiler from
13924	    # explicitly linking system object files so we need to strip them
13925	    # from the output so that they don't get included in the library
13926	    # dependencies.
13927	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13928	    ;;
13929	  *)
13930	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13931	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13932	      case $host in
13933	        osf3*)
13934	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13935		  ;;
13936	        *)
13937	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13938		  ;;
13939	      esac
13940
13941	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13942	      hardcode_libdir_separator_CXX=:
13943
13944	      # Commands to make compiler produce verbose output that lists
13945	      # what "hidden" libraries, object files and flags are used when
13946	      # linking a shared library.
13947	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13948
13949	    else
13950	      # FIXME: insert proper C++ library support
13951	      ld_shlibs_CXX=no
13952	    fi
13953	    ;;
13954        esac
13955        ;;
13956
13957      psos*)
13958        # FIXME: insert proper C++ library support
13959        ld_shlibs_CXX=no
13960        ;;
13961
13962      sunos4*)
13963        case $cc_basename in
13964          CC*)
13965	    # Sun C++ 4.x
13966	    # FIXME: insert proper C++ library support
13967	    ld_shlibs_CXX=no
13968	    ;;
13969          lcc*)
13970	    # Lucid
13971	    # FIXME: insert proper C++ library support
13972	    ld_shlibs_CXX=no
13973	    ;;
13974          *)
13975	    # FIXME: insert proper C++ library support
13976	    ld_shlibs_CXX=no
13977	    ;;
13978        esac
13979        ;;
13980
13981      solaris*)
13982        case $cc_basename in
13983          CC* | sunCC*)
13984	    # Sun C++ 4.2, 5.x and Centerline C++
13985            archive_cmds_need_lc_CXX=yes
13986	    no_undefined_flag_CXX=' -zdefs'
13987	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13988	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13989	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13990
13991	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13992	    hardcode_shlibpath_var_CXX=no
13993	    case $host_os in
13994	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13995	      *)
13996		# The compiler driver will combine and reorder linker options,
13997		# but understands `-z linker_flag'.
13998	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13999		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14000	        ;;
14001	    esac
14002	    link_all_deplibs_CXX=yes
14003
14004	    output_verbose_link_cmd='func_echo_all'
14005
14006	    # Archives containing C++ object files must be created using
14007	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14008	    # necessary to make sure instantiated templates are included
14009	    # in the archive.
14010	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14011	    ;;
14012          gcx*)
14013	    # Green Hills C++ Compiler
14014	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14015
14016	    # The C++ compiler must be used to create the archive.
14017	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14018	    ;;
14019          *)
14020	    # GNU C++ compiler with Solaris linker
14021	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14022	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14023	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14024	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14025	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14026		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14027
14028	        # Commands to make compiler produce verbose output that lists
14029	        # what "hidden" libraries, object files and flags are used when
14030	        # linking a shared library.
14031	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14032	      else
14033	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14034	        # platform.
14035	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14036	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14037		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14038
14039	        # Commands to make compiler produce verbose output that lists
14040	        # what "hidden" libraries, object files and flags are used when
14041	        # linking a shared library.
14042	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14043	      fi
14044
14045	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14046	      case $host_os in
14047		solaris2.[0-5] | solaris2.[0-5].*) ;;
14048		*)
14049		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14050		  ;;
14051	      esac
14052	    fi
14053	    ;;
14054        esac
14055        ;;
14056
14057    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14058      no_undefined_flag_CXX='${wl}-z,text'
14059      archive_cmds_need_lc_CXX=no
14060      hardcode_shlibpath_var_CXX=no
14061      runpath_var='LD_RUN_PATH'
14062
14063      case $cc_basename in
14064        CC*)
14065	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14066	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067	  ;;
14068	*)
14069	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071	  ;;
14072      esac
14073      ;;
14074
14075      sysv5* | sco3.2v5* | sco5v6*)
14076	# Note: We can NOT use -z defs as we might desire, because we do not
14077	# link with -lc, and that would cause any symbols used from libc to
14078	# always be unresolved, which means just about no library would
14079	# ever link correctly.  If we're not using GNU ld we use -z text
14080	# though, which does catch some bad symbols but isn't as heavy-handed
14081	# as -z defs.
14082	no_undefined_flag_CXX='${wl}-z,text'
14083	allow_undefined_flag_CXX='${wl}-z,nodefs'
14084	archive_cmds_need_lc_CXX=no
14085	hardcode_shlibpath_var_CXX=no
14086	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14087	hardcode_libdir_separator_CXX=':'
14088	link_all_deplibs_CXX=yes
14089	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14090	runpath_var='LD_RUN_PATH'
14091
14092	case $cc_basename in
14093          CC*)
14094	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14095	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14096	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14097	      '"$old_archive_cmds_CXX"
14098	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14099	      '"$reload_cmds_CXX"
14100	    ;;
14101	  *)
14102	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14103	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104	    ;;
14105	esac
14106      ;;
14107
14108      tandem*)
14109        case $cc_basename in
14110          NCC*)
14111	    # NonStop-UX NCC 3.20
14112	    # FIXME: insert proper C++ library support
14113	    ld_shlibs_CXX=no
14114	    ;;
14115          *)
14116	    # FIXME: insert proper C++ library support
14117	    ld_shlibs_CXX=no
14118	    ;;
14119        esac
14120        ;;
14121
14122      vxworks*)
14123        # FIXME: insert proper C++ library support
14124        ld_shlibs_CXX=no
14125        ;;
14126
14127      *)
14128        # FIXME: insert proper C++ library support
14129        ld_shlibs_CXX=no
14130        ;;
14131    esac
14132
14133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14134$as_echo "$ld_shlibs_CXX" >&6; }
14135    test "$ld_shlibs_CXX" = no && can_build_shared=no
14136
14137    GCC_CXX="$GXX"
14138    LD_CXX="$LD"
14139
14140    ## CAVEAT EMPTOR:
14141    ## There is no encapsulation within the following macros, do not change
14142    ## the running order or otherwise move them around unless you know exactly
14143    ## what you are doing...
14144    # Dependencies to place before and after the object being linked:
14145predep_objects_CXX=
14146postdep_objects_CXX=
14147predeps_CXX=
14148postdeps_CXX=
14149compiler_lib_search_path_CXX=
14150
14151cat > conftest.$ac_ext <<_LT_EOF
14152class Foo
14153{
14154public:
14155  Foo (void) { a = 0; }
14156private:
14157  int a;
14158};
14159_LT_EOF
14160
14161
14162_lt_libdeps_save_CFLAGS=$CFLAGS
14163case "$CC $CFLAGS " in #(
14164*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14165*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14166esac
14167
14168if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14169  (eval $ac_compile) 2>&5
14170  ac_status=$?
14171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172  test $ac_status = 0; }; then
14173  # Parse the compiler output and extract the necessary
14174  # objects, libraries and library flags.
14175
14176  # Sentinel used to keep track of whether or not we are before
14177  # the conftest object file.
14178  pre_test_object_deps_done=no
14179
14180  for p in `eval "$output_verbose_link_cmd"`; do
14181    case ${prev}${p} in
14182
14183    -L* | -R* | -l*)
14184       # Some compilers place space between "-{L,R}" and the path.
14185       # Remove the space.
14186       if test $p = "-L" ||
14187          test $p = "-R"; then
14188	 prev=$p
14189	 continue
14190       fi
14191
14192       # Expand the sysroot to ease extracting the directories later.
14193       if test -z "$prev"; then
14194         case $p in
14195         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14196         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14197         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14198         esac
14199       fi
14200       case $p in
14201       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14202       esac
14203       if test "$pre_test_object_deps_done" = no; then
14204	 case ${prev} in
14205	 -L | -R)
14206	   # Internal compiler library paths should come after those
14207	   # provided the user.  The postdeps already come after the
14208	   # user supplied libs so there is no need to process them.
14209	   if test -z "$compiler_lib_search_path_CXX"; then
14210	     compiler_lib_search_path_CXX="${prev}${p}"
14211	   else
14212	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14213	   fi
14214	   ;;
14215	 # The "-l" case would never come before the object being
14216	 # linked, so don't bother handling this case.
14217	 esac
14218       else
14219	 if test -z "$postdeps_CXX"; then
14220	   postdeps_CXX="${prev}${p}"
14221	 else
14222	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14223	 fi
14224       fi
14225       prev=
14226       ;;
14227
14228    *.lto.$objext) ;; # Ignore GCC LTO objects
14229    *.$objext)
14230       # This assumes that the test object file only shows up
14231       # once in the compiler output.
14232       if test "$p" = "conftest.$objext"; then
14233	 pre_test_object_deps_done=yes
14234	 continue
14235       fi
14236
14237       if test "$pre_test_object_deps_done" = no; then
14238	 if test -z "$predep_objects_CXX"; then
14239	   predep_objects_CXX="$p"
14240	 else
14241	   predep_objects_CXX="$predep_objects_CXX $p"
14242	 fi
14243       else
14244	 if test -z "$postdep_objects_CXX"; then
14245	   postdep_objects_CXX="$p"
14246	 else
14247	   postdep_objects_CXX="$postdep_objects_CXX $p"
14248	 fi
14249       fi
14250       ;;
14251
14252    *) ;; # Ignore the rest.
14253
14254    esac
14255  done
14256
14257  # Clean up.
14258  rm -f a.out a.exe
14259else
14260  echo "libtool.m4: error: problem compiling CXX test program"
14261fi
14262
14263$RM -f confest.$objext
14264CFLAGS=$_lt_libdeps_save_CFLAGS
14265
14266# PORTME: override above test on systems where it is broken
14267case $host_os in
14268interix[3-9]*)
14269  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14270  # hack all around it, let's just trust "g++" to DTRT.
14271  predep_objects_CXX=
14272  postdep_objects_CXX=
14273  postdeps_CXX=
14274  ;;
14275
14276linux*)
14277  case `$CC -V 2>&1 | sed 5q` in
14278  *Sun\ C*)
14279    # Sun C++ 5.9
14280
14281    # The more standards-conforming stlport4 library is
14282    # incompatible with the Cstd library. Avoid specifying
14283    # it if it's in CXXFLAGS. Ignore libCrun as
14284    # -library=stlport4 depends on it.
14285    case " $CXX $CXXFLAGS " in
14286    *" -library=stlport4 "*)
14287      solaris_use_stlport4=yes
14288      ;;
14289    esac
14290
14291    if test "$solaris_use_stlport4" != yes; then
14292      postdeps_CXX='-library=Cstd -library=Crun'
14293    fi
14294    ;;
14295  esac
14296  ;;
14297
14298solaris*)
14299  case $cc_basename in
14300  CC* | sunCC*)
14301    # The more standards-conforming stlport4 library is
14302    # incompatible with the Cstd library. Avoid specifying
14303    # it if it's in CXXFLAGS. Ignore libCrun as
14304    # -library=stlport4 depends on it.
14305    case " $CXX $CXXFLAGS " in
14306    *" -library=stlport4 "*)
14307      solaris_use_stlport4=yes
14308      ;;
14309    esac
14310
14311    # Adding this requires a known-good setup of shared libraries for
14312    # Sun compiler versions before 5.6, else PIC objects from an old
14313    # archive will be linked into the output, leading to subtle bugs.
14314    if test "$solaris_use_stlport4" != yes; then
14315      postdeps_CXX='-library=Cstd -library=Crun'
14316    fi
14317    ;;
14318  esac
14319  ;;
14320esac
14321
14322
14323case " $postdeps_CXX " in
14324*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14325esac
14326 compiler_lib_search_dirs_CXX=
14327if test -n "${compiler_lib_search_path_CXX}"; then
14328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14329fi
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361    lt_prog_compiler_wl_CXX=
14362lt_prog_compiler_pic_CXX=
14363lt_prog_compiler_static_CXX=
14364
14365
14366  # C++ specific cases for pic, static, wl, etc.
14367  if test "$GXX" = yes; then
14368    lt_prog_compiler_wl_CXX='-Wl,'
14369    lt_prog_compiler_static_CXX='-static'
14370
14371    case $host_os in
14372    aix*)
14373      # All AIX code is PIC.
14374      if test "$host_cpu" = ia64; then
14375	# AIX 5 now supports IA64 processor
14376	lt_prog_compiler_static_CXX='-Bstatic'
14377      fi
14378      ;;
14379
14380    amigaos*)
14381      case $host_cpu in
14382      powerpc)
14383            # see comment about AmigaOS4 .so support
14384            lt_prog_compiler_pic_CXX='-fPIC'
14385        ;;
14386      m68k)
14387            # FIXME: we need at least 68020 code to build shared libraries, but
14388            # adding the `-m68020' flag to GCC prevents building anything better,
14389            # like `-m68040'.
14390            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14391        ;;
14392      esac
14393      ;;
14394
14395    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14396      # PIC is the default for these OSes.
14397      ;;
14398    mingw* | cygwin* | os2* | pw32* | cegcc*)
14399      # This hack is so that the source file can tell whether it is being
14400      # built for inclusion in a dll (and should export symbols for example).
14401      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14402      # (--disable-auto-import) libraries
14403      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14404      ;;
14405    darwin* | rhapsody*)
14406      # PIC is the default on this platform
14407      # Common symbols not allowed in MH_DYLIB files
14408      lt_prog_compiler_pic_CXX='-fno-common'
14409      ;;
14410    *djgpp*)
14411      # DJGPP does not support shared libraries at all
14412      lt_prog_compiler_pic_CXX=
14413      ;;
14414    haiku*)
14415      # PIC is the default for Haiku.
14416      # The "-static" flag exists, but is broken.
14417      lt_prog_compiler_static_CXX=
14418      ;;
14419    interix[3-9]*)
14420      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14421      # Instead, we relocate shared libraries at runtime.
14422      ;;
14423    sysv4*MP*)
14424      if test -d /usr/nec; then
14425	lt_prog_compiler_pic_CXX=-Kconform_pic
14426      fi
14427      ;;
14428    hpux*)
14429      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14430      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14431      # sets the default TLS model and affects inlining.
14432      case $host_cpu in
14433      hppa*64*)
14434	;;
14435      *)
14436	lt_prog_compiler_pic_CXX='-fPIC'
14437	;;
14438      esac
14439      ;;
14440    *qnx* | *nto*)
14441      # QNX uses GNU C++, but need to define -shared option too, otherwise
14442      # it will coredump.
14443      lt_prog_compiler_pic_CXX='-fPIC -shared'
14444      ;;
14445    *)
14446      lt_prog_compiler_pic_CXX='-fPIC'
14447      ;;
14448    esac
14449  else
14450    case $host_os in
14451      aix[4-9]*)
14452	# All AIX code is PIC.
14453	if test "$host_cpu" = ia64; then
14454	  # AIX 5 now supports IA64 processor
14455	  lt_prog_compiler_static_CXX='-Bstatic'
14456	else
14457	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14458	fi
14459	;;
14460      chorus*)
14461	case $cc_basename in
14462	cxch68*)
14463	  # Green Hills C++ Compiler
14464	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14465	  ;;
14466	esac
14467	;;
14468      mingw* | cygwin* | os2* | pw32* | cegcc*)
14469	# This hack is so that the source file can tell whether it is being
14470	# built for inclusion in a dll (and should export symbols for example).
14471	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14472	;;
14473      dgux*)
14474	case $cc_basename in
14475	  ec++*)
14476	    lt_prog_compiler_pic_CXX='-KPIC'
14477	    ;;
14478	  ghcx*)
14479	    # Green Hills C++ Compiler
14480	    lt_prog_compiler_pic_CXX='-pic'
14481	    ;;
14482	  *)
14483	    ;;
14484	esac
14485	;;
14486      freebsd* | dragonfly*)
14487	# FreeBSD uses GNU C++
14488	;;
14489      hpux9* | hpux10* | hpux11*)
14490	case $cc_basename in
14491	  CC*)
14492	    lt_prog_compiler_wl_CXX='-Wl,'
14493	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14494	    if test "$host_cpu" != ia64; then
14495	      lt_prog_compiler_pic_CXX='+Z'
14496	    fi
14497	    ;;
14498	  aCC*)
14499	    lt_prog_compiler_wl_CXX='-Wl,'
14500	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14501	    case $host_cpu in
14502	    hppa*64*|ia64*)
14503	      # +Z the default
14504	      ;;
14505	    *)
14506	      lt_prog_compiler_pic_CXX='+Z'
14507	      ;;
14508	    esac
14509	    ;;
14510	  *)
14511	    ;;
14512	esac
14513	;;
14514      interix*)
14515	# This is c89, which is MS Visual C++ (no shared libs)
14516	# Anyone wants to do a port?
14517	;;
14518      irix5* | irix6* | nonstopux*)
14519	case $cc_basename in
14520	  CC*)
14521	    lt_prog_compiler_wl_CXX='-Wl,'
14522	    lt_prog_compiler_static_CXX='-non_shared'
14523	    # CC pic flag -KPIC is the default.
14524	    ;;
14525	  *)
14526	    ;;
14527	esac
14528	;;
14529      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14530	case $cc_basename in
14531	  KCC*)
14532	    # KAI C++ Compiler
14533	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14534	    lt_prog_compiler_pic_CXX='-fPIC'
14535	    ;;
14536	  ecpc* )
14537	    # old Intel C++ for x86_64 which still supported -KPIC.
14538	    lt_prog_compiler_wl_CXX='-Wl,'
14539	    lt_prog_compiler_pic_CXX='-KPIC'
14540	    lt_prog_compiler_static_CXX='-static'
14541	    ;;
14542	  icpc* )
14543	    # Intel C++, used to be incompatible with GCC.
14544	    # ICC 10 doesn't accept -KPIC any more.
14545	    lt_prog_compiler_wl_CXX='-Wl,'
14546	    lt_prog_compiler_pic_CXX='-fPIC'
14547	    lt_prog_compiler_static_CXX='-static'
14548	    ;;
14549	  pgCC* | pgcpp*)
14550	    # Portland Group C++ compiler
14551	    lt_prog_compiler_wl_CXX='-Wl,'
14552	    lt_prog_compiler_pic_CXX='-fpic'
14553	    lt_prog_compiler_static_CXX='-Bstatic'
14554	    ;;
14555	  cxx*)
14556	    # Compaq C++
14557	    # Make sure the PIC flag is empty.  It appears that all Alpha
14558	    # Linux and Compaq Tru64 Unix objects are PIC.
14559	    lt_prog_compiler_pic_CXX=
14560	    lt_prog_compiler_static_CXX='-non_shared'
14561	    ;;
14562	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14563	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14564	    lt_prog_compiler_wl_CXX='-Wl,'
14565	    lt_prog_compiler_pic_CXX='-qpic'
14566	    lt_prog_compiler_static_CXX='-qstaticlink'
14567	    ;;
14568	  *)
14569	    case `$CC -V 2>&1 | sed 5q` in
14570	    *Sun\ C*)
14571	      # Sun C++ 5.9
14572	      lt_prog_compiler_pic_CXX='-KPIC'
14573	      lt_prog_compiler_static_CXX='-Bstatic'
14574	      lt_prog_compiler_wl_CXX='-Qoption ld '
14575	      ;;
14576	    esac
14577	    ;;
14578	esac
14579	;;
14580      lynxos*)
14581	;;
14582      m88k*)
14583	;;
14584      mvs*)
14585	case $cc_basename in
14586	  cxx*)
14587	    lt_prog_compiler_pic_CXX='-W c,exportall'
14588	    ;;
14589	  *)
14590	    ;;
14591	esac
14592	;;
14593      netbsd*)
14594	;;
14595      *qnx* | *nto*)
14596        # QNX uses GNU C++, but need to define -shared option too, otherwise
14597        # it will coredump.
14598        lt_prog_compiler_pic_CXX='-fPIC -shared'
14599        ;;
14600      osf3* | osf4* | osf5*)
14601	case $cc_basename in
14602	  KCC*)
14603	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14604	    ;;
14605	  RCC*)
14606	    # Rational C++ 2.4.1
14607	    lt_prog_compiler_pic_CXX='-pic'
14608	    ;;
14609	  cxx*)
14610	    # Digital/Compaq C++
14611	    lt_prog_compiler_wl_CXX='-Wl,'
14612	    # Make sure the PIC flag is empty.  It appears that all Alpha
14613	    # Linux and Compaq Tru64 Unix objects are PIC.
14614	    lt_prog_compiler_pic_CXX=
14615	    lt_prog_compiler_static_CXX='-non_shared'
14616	    ;;
14617	  *)
14618	    ;;
14619	esac
14620	;;
14621      psos*)
14622	;;
14623      solaris*)
14624	case $cc_basename in
14625	  CC* | sunCC*)
14626	    # Sun C++ 4.2, 5.x and Centerline C++
14627	    lt_prog_compiler_pic_CXX='-KPIC'
14628	    lt_prog_compiler_static_CXX='-Bstatic'
14629	    lt_prog_compiler_wl_CXX='-Qoption ld '
14630	    ;;
14631	  gcx*)
14632	    # Green Hills C++ Compiler
14633	    lt_prog_compiler_pic_CXX='-PIC'
14634	    ;;
14635	  *)
14636	    ;;
14637	esac
14638	;;
14639      sunos4*)
14640	case $cc_basename in
14641	  CC*)
14642	    # Sun C++ 4.x
14643	    lt_prog_compiler_pic_CXX='-pic'
14644	    lt_prog_compiler_static_CXX='-Bstatic'
14645	    ;;
14646	  lcc*)
14647	    # Lucid
14648	    lt_prog_compiler_pic_CXX='-pic'
14649	    ;;
14650	  *)
14651	    ;;
14652	esac
14653	;;
14654      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14655	case $cc_basename in
14656	  CC*)
14657	    lt_prog_compiler_wl_CXX='-Wl,'
14658	    lt_prog_compiler_pic_CXX='-KPIC'
14659	    lt_prog_compiler_static_CXX='-Bstatic'
14660	    ;;
14661	esac
14662	;;
14663      tandem*)
14664	case $cc_basename in
14665	  NCC*)
14666	    # NonStop-UX NCC 3.20
14667	    lt_prog_compiler_pic_CXX='-KPIC'
14668	    ;;
14669	  *)
14670	    ;;
14671	esac
14672	;;
14673      vxworks*)
14674	;;
14675      *)
14676	lt_prog_compiler_can_build_shared_CXX=no
14677	;;
14678    esac
14679  fi
14680
14681case $host_os in
14682  # For platforms which do not support PIC, -DPIC is meaningless:
14683  *djgpp*)
14684    lt_prog_compiler_pic_CXX=
14685    ;;
14686  *)
14687    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14688    ;;
14689esac
14690
14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14692$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14693if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14697fi
14698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14699$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14700lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14701
14702#
14703# Check to make sure the PIC flag actually works.
14704#
14705if test -n "$lt_prog_compiler_pic_CXX"; then
14706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14707$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14708if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14709  $as_echo_n "(cached) " >&6
14710else
14711  lt_cv_prog_compiler_pic_works_CXX=no
14712   ac_outfile=conftest.$ac_objext
14713   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14715   # Insert the option either (1) after the last *FLAGS variable, or
14716   # (2) before a word containing "conftest.", or (3) at the end.
14717   # Note that $ac_compile itself does not contain backslashes and begins
14718   # with a dollar sign (not a hyphen), so the echo should work correctly.
14719   # The option is referenced via a variable to avoid confusing sed.
14720   lt_compile=`echo "$ac_compile" | $SED \
14721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723   -e 's:$: $lt_compiler_flag:'`
14724   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725   (eval "$lt_compile" 2>conftest.err)
14726   ac_status=$?
14727   cat conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   if (exit $ac_status) && test -s "$ac_outfile"; then
14730     # The compiler can only warn and ignore the option if not recognized
14731     # So say no if there are warnings other than the usual output.
14732     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14733     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14734     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14735       lt_cv_prog_compiler_pic_works_CXX=yes
14736     fi
14737   fi
14738   $RM conftest*
14739
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14742$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14743
14744if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14745    case $lt_prog_compiler_pic_CXX in
14746     "" | " "*) ;;
14747     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14748     esac
14749else
14750    lt_prog_compiler_pic_CXX=
14751     lt_prog_compiler_can_build_shared_CXX=no
14752fi
14753
14754fi
14755
14756
14757
14758
14759
14760#
14761# Check to make sure the static flag actually works.
14762#
14763wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14765$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14766if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14767  $as_echo_n "(cached) " >&6
14768else
14769  lt_cv_prog_compiler_static_works_CXX=no
14770   save_LDFLAGS="$LDFLAGS"
14771   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14772   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14773   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14774     # The linker can only warn and ignore the option if not recognized
14775     # So say no if there are warnings
14776     if test -s conftest.err; then
14777       # Append any errors to the config.log.
14778       cat conftest.err 1>&5
14779       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14780       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14781       if diff conftest.exp conftest.er2 >/dev/null; then
14782         lt_cv_prog_compiler_static_works_CXX=yes
14783       fi
14784     else
14785       lt_cv_prog_compiler_static_works_CXX=yes
14786     fi
14787   fi
14788   $RM -r conftest*
14789   LDFLAGS="$save_LDFLAGS"
14790
14791fi
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14793$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14794
14795if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14796    :
14797else
14798    lt_prog_compiler_static_CXX=
14799fi
14800
14801
14802
14803
14804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14805$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14806if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14807  $as_echo_n "(cached) " >&6
14808else
14809  lt_cv_prog_compiler_c_o_CXX=no
14810   $RM -r conftest 2>/dev/null
14811   mkdir conftest
14812   cd conftest
14813   mkdir out
14814   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14815
14816   lt_compiler_flag="-o out/conftest2.$ac_objext"
14817   # Insert the option either (1) after the last *FLAGS variable, or
14818   # (2) before a word containing "conftest.", or (3) at the end.
14819   # Note that $ac_compile itself does not contain backslashes and begins
14820   # with a dollar sign (not a hyphen), so the echo should work correctly.
14821   lt_compile=`echo "$ac_compile" | $SED \
14822   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14823   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14824   -e 's:$: $lt_compiler_flag:'`
14825   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14826   (eval "$lt_compile" 2>out/conftest.err)
14827   ac_status=$?
14828   cat out/conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14831   then
14832     # The compiler can only warn and ignore the option if not recognized
14833     # So say no if there are warnings
14834     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14835     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14836     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14837       lt_cv_prog_compiler_c_o_CXX=yes
14838     fi
14839   fi
14840   chmod u+w . 2>&5
14841   $RM conftest*
14842   # SGI C++ compiler will create directory out/ii_files/ for
14843   # template instantiation
14844   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14845   $RM out/* && rmdir out
14846   cd ..
14847   $RM -r conftest
14848   $RM conftest*
14849
14850fi
14851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14852$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14853
14854
14855
14856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14857$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14858if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14859  $as_echo_n "(cached) " >&6
14860else
14861  lt_cv_prog_compiler_c_o_CXX=no
14862   $RM -r conftest 2>/dev/null
14863   mkdir conftest
14864   cd conftest
14865   mkdir out
14866   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14867
14868   lt_compiler_flag="-o out/conftest2.$ac_objext"
14869   # Insert the option either (1) after the last *FLAGS variable, or
14870   # (2) before a word containing "conftest.", or (3) at the end.
14871   # Note that $ac_compile itself does not contain backslashes and begins
14872   # with a dollar sign (not a hyphen), so the echo should work correctly.
14873   lt_compile=`echo "$ac_compile" | $SED \
14874   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14875   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14876   -e 's:$: $lt_compiler_flag:'`
14877   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14878   (eval "$lt_compile" 2>out/conftest.err)
14879   ac_status=$?
14880   cat out/conftest.err >&5
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14883   then
14884     # The compiler can only warn and ignore the option if not recognized
14885     # So say no if there are warnings
14886     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14887     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14888     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14889       lt_cv_prog_compiler_c_o_CXX=yes
14890     fi
14891   fi
14892   chmod u+w . 2>&5
14893   $RM conftest*
14894   # SGI C++ compiler will create directory out/ii_files/ for
14895   # template instantiation
14896   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14897   $RM out/* && rmdir out
14898   cd ..
14899   $RM -r conftest
14900   $RM conftest*
14901
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14904$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14905
14906
14907
14908
14909hard_links="nottested"
14910if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14911  # do not overwrite the value of need_locks provided by the user
14912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14913$as_echo_n "checking if we can lock with hard links... " >&6; }
14914  hard_links=yes
14915  $RM conftest*
14916  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14917  touch conftest.a
14918  ln conftest.a conftest.b 2>&5 || hard_links=no
14919  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14921$as_echo "$hard_links" >&6; }
14922  if test "$hard_links" = no; then
14923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14924$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14925    need_locks=warn
14926  fi
14927else
14928  need_locks=no
14929fi
14930
14931
14932
14933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14934$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14935
14936  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14937  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14938  case $host_os in
14939  aix[4-9]*)
14940    # If we're using GNU nm, then we don't want the "-C" option.
14941    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14942    # Also, AIX nm treats weak defined symbols like other global defined
14943    # symbols, whereas GNU nm marks them as "W".
14944    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14945      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14946    else
14947      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14948    fi
14949    ;;
14950  pw32*)
14951    export_symbols_cmds_CXX="$ltdll_cmds"
14952    ;;
14953  cygwin* | mingw* | cegcc*)
14954    case $cc_basename in
14955    cl*) ;;
14956    *)
14957      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14958      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14959      ;;
14960    esac
14961    ;;
14962  *)
14963    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14964    ;;
14965  esac
14966
14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14968$as_echo "$ld_shlibs_CXX" >&6; }
14969test "$ld_shlibs_CXX" = no && can_build_shared=no
14970
14971with_gnu_ld_CXX=$with_gnu_ld
14972
14973
14974
14975
14976
14977
14978#
14979# Do we need to explicitly link libc?
14980#
14981case "x$archive_cmds_need_lc_CXX" in
14982x|xyes)
14983  # Assume -lc should be added
14984  archive_cmds_need_lc_CXX=yes
14985
14986  if test "$enable_shared" = yes && test "$GCC" = yes; then
14987    case $archive_cmds_CXX in
14988    *'~'*)
14989      # FIXME: we may have to deal with multi-command sequences.
14990      ;;
14991    '$CC '*)
14992      # Test whether the compiler implicitly links with -lc since on some
14993      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14994      # to ld, don't add -lc before -lgcc.
14995      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14996$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14997if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14998  $as_echo_n "(cached) " >&6
14999else
15000  $RM conftest*
15001	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15002
15003	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15004  (eval $ac_compile) 2>&5
15005  ac_status=$?
15006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007  test $ac_status = 0; } 2>conftest.err; then
15008	  soname=conftest
15009	  lib=conftest
15010	  libobjs=conftest.$ac_objext
15011	  deplibs=
15012	  wl=$lt_prog_compiler_wl_CXX
15013	  pic_flag=$lt_prog_compiler_pic_CXX
15014	  compiler_flags=-v
15015	  linker_flags=-v
15016	  verstring=
15017	  output_objdir=.
15018	  libname=conftest
15019	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15020	  allow_undefined_flag_CXX=
15021	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15022  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15023  ac_status=$?
15024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025  test $ac_status = 0; }
15026	  then
15027	    lt_cv_archive_cmds_need_lc_CXX=no
15028	  else
15029	    lt_cv_archive_cmds_need_lc_CXX=yes
15030	  fi
15031	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15032	else
15033	  cat conftest.err 1>&5
15034	fi
15035	$RM conftest*
15036
15037fi
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15039$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15040      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15041      ;;
15042    esac
15043  fi
15044  ;;
15045esac
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15111$as_echo_n "checking dynamic linker characteristics... " >&6; }
15112
15113library_names_spec=
15114libname_spec='lib$name'
15115soname_spec=
15116shrext_cmds=".so"
15117postinstall_cmds=
15118postuninstall_cmds=
15119finish_cmds=
15120finish_eval=
15121shlibpath_var=
15122shlibpath_overrides_runpath=unknown
15123version_type=none
15124dynamic_linker="$host_os ld.so"
15125sys_lib_dlsearch_path_spec="/lib /usr/lib"
15126need_lib_prefix=unknown
15127hardcode_into_libs=no
15128
15129# when you set need_version to no, make sure it does not cause -set_version
15130# flags to be left without arguments
15131need_version=unknown
15132
15133case $host_os in
15134aix3*)
15135  version_type=linux
15136  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15137  shlibpath_var=LIBPATH
15138
15139  # AIX 3 has no versioning support, so we append a major version to the name.
15140  soname_spec='${libname}${release}${shared_ext}$major'
15141  ;;
15142
15143aix[4-9]*)
15144  version_type=linux
15145  need_lib_prefix=no
15146  need_version=no
15147  hardcode_into_libs=yes
15148  if test "$host_cpu" = ia64; then
15149    # AIX 5 supports IA64
15150    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15151    shlibpath_var=LD_LIBRARY_PATH
15152  else
15153    # With GCC up to 2.95.x, collect2 would create an import file
15154    # for dependence libraries.  The import file would start with
15155    # the line `#! .'.  This would cause the generated library to
15156    # depend on `.', always an invalid library.  This was fixed in
15157    # development snapshots of GCC prior to 3.0.
15158    case $host_os in
15159      aix4 | aix4.[01] | aix4.[01].*)
15160      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15161	   echo ' yes '
15162	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15163	:
15164      else
15165	can_build_shared=no
15166      fi
15167      ;;
15168    esac
15169    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15170    # soname into executable. Probably we can add versioning support to
15171    # collect2, so additional links can be useful in future.
15172    if test "$aix_use_runtimelinking" = yes; then
15173      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15174      # instead of lib<name>.a to let people know that these are not
15175      # typical AIX shared libraries.
15176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177    else
15178      # We preserve .a as extension for shared libraries through AIX4.2
15179      # and later when we are not doing run time linking.
15180      library_names_spec='${libname}${release}.a $libname.a'
15181      soname_spec='${libname}${release}${shared_ext}$major'
15182    fi
15183    shlibpath_var=LIBPATH
15184  fi
15185  ;;
15186
15187amigaos*)
15188  case $host_cpu in
15189  powerpc)
15190    # Since July 2007 AmigaOS4 officially supports .so libraries.
15191    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193    ;;
15194  m68k)
15195    library_names_spec='$libname.ixlibrary $libname.a'
15196    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15197    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'
15198    ;;
15199  esac
15200  ;;
15201
15202beos*)
15203  library_names_spec='${libname}${shared_ext}'
15204  dynamic_linker="$host_os ld.so"
15205  shlibpath_var=LIBRARY_PATH
15206  ;;
15207
15208bsdi[45]*)
15209  version_type=linux
15210  need_version=no
15211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212  soname_spec='${libname}${release}${shared_ext}$major'
15213  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15214  shlibpath_var=LD_LIBRARY_PATH
15215  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15216  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15217  # the default ld.so.conf also contains /usr/contrib/lib and
15218  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15219  # libtool to hard-code these into programs
15220  ;;
15221
15222cygwin* | mingw* | pw32* | cegcc*)
15223  version_type=windows
15224  shrext_cmds=".dll"
15225  need_version=no
15226  need_lib_prefix=no
15227
15228  case $GCC,$cc_basename in
15229  yes,*)
15230    # gcc
15231    library_names_spec='$libname.dll.a'
15232    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15233    postinstall_cmds='base_file=`basename \${file}`~
15234      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15235      dldir=$destdir/`dirname \$dlpath`~
15236      test -d \$dldir || mkdir -p \$dldir~
15237      $install_prog $dir/$dlname \$dldir/$dlname~
15238      chmod a+x \$dldir/$dlname~
15239      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15240        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15241      fi'
15242    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15243      dlpath=$dir/\$dldll~
15244       $RM \$dlpath'
15245    shlibpath_overrides_runpath=yes
15246
15247    case $host_os in
15248    cygwin*)
15249      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15250      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251
15252      ;;
15253    mingw* | cegcc*)
15254      # MinGW DLLs use traditional 'lib' prefix
15255      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15256      ;;
15257    pw32*)
15258      # pw32 DLLs use 'pw' prefix rather than 'lib'
15259      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15260      ;;
15261    esac
15262    dynamic_linker='Win32 ld.exe'
15263    ;;
15264
15265  *,cl*)
15266    # Native MSVC
15267    libname_spec='$name'
15268    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15269    library_names_spec='${libname}.dll.lib'
15270
15271    case $build_os in
15272    mingw*)
15273      sys_lib_search_path_spec=
15274      lt_save_ifs=$IFS
15275      IFS=';'
15276      for lt_path in $LIB
15277      do
15278        IFS=$lt_save_ifs
15279        # Let DOS variable expansion print the short 8.3 style file name.
15280        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15281        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15282      done
15283      IFS=$lt_save_ifs
15284      # Convert to MSYS style.
15285      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15286      ;;
15287    cygwin*)
15288      # Convert to unix form, then to dos form, then back to unix form
15289      # but this time dos style (no spaces!) so that the unix form looks
15290      # like /cygdrive/c/PROGRA~1:/cygdr...
15291      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15292      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15293      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15294      ;;
15295    *)
15296      sys_lib_search_path_spec="$LIB"
15297      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15298        # It is most probably a Windows format PATH.
15299        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15300      else
15301        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15302      fi
15303      # FIXME: find the short name or the path components, as spaces are
15304      # common. (e.g. "Program Files" -> "PROGRA~1")
15305      ;;
15306    esac
15307
15308    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15309    postinstall_cmds='base_file=`basename \${file}`~
15310      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15311      dldir=$destdir/`dirname \$dlpath`~
15312      test -d \$dldir || mkdir -p \$dldir~
15313      $install_prog $dir/$dlname \$dldir/$dlname'
15314    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15315      dlpath=$dir/\$dldll~
15316       $RM \$dlpath'
15317    shlibpath_overrides_runpath=yes
15318    dynamic_linker='Win32 link.exe'
15319    ;;
15320
15321  *)
15322    # Assume MSVC wrapper
15323    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15324    dynamic_linker='Win32 ld.exe'
15325    ;;
15326  esac
15327  # FIXME: first we should search . and the directory the executable is in
15328  shlibpath_var=PATH
15329  ;;
15330
15331darwin* | rhapsody*)
15332  dynamic_linker="$host_os dyld"
15333  version_type=darwin
15334  need_lib_prefix=no
15335  need_version=no
15336  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15337  soname_spec='${libname}${release}${major}$shared_ext'
15338  shlibpath_overrides_runpath=yes
15339  shlibpath_var=DYLD_LIBRARY_PATH
15340  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15341
15342  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15343  ;;
15344
15345dgux*)
15346  version_type=linux
15347  need_lib_prefix=no
15348  need_version=no
15349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15350  soname_spec='${libname}${release}${shared_ext}$major'
15351  shlibpath_var=LD_LIBRARY_PATH
15352  ;;
15353
15354freebsd1*)
15355  dynamic_linker=no
15356  ;;
15357
15358freebsd* | dragonfly*)
15359  # DragonFly does not have aout.  When/if they implement a new
15360  # versioning mechanism, adjust this.
15361  if test -x /usr/bin/objformat; then
15362    objformat=`/usr/bin/objformat`
15363  else
15364    case $host_os in
15365    freebsd[123]*) objformat=aout ;;
15366    *) objformat=elf ;;
15367    esac
15368  fi
15369  version_type=freebsd-$objformat
15370  case $version_type in
15371    freebsd-elf*)
15372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15373      need_version=no
15374      need_lib_prefix=no
15375      ;;
15376    freebsd-*)
15377      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15378      need_version=yes
15379      ;;
15380  esac
15381  shlibpath_var=LD_LIBRARY_PATH
15382  case $host_os in
15383  freebsd2*)
15384    shlibpath_overrides_runpath=yes
15385    ;;
15386  freebsd3.[01]* | freebsdelf3.[01]*)
15387    shlibpath_overrides_runpath=yes
15388    hardcode_into_libs=yes
15389    ;;
15390  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15391  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15392    shlibpath_overrides_runpath=no
15393    hardcode_into_libs=yes
15394    ;;
15395  *) # from 4.6 on, and DragonFly
15396    shlibpath_overrides_runpath=yes
15397    hardcode_into_libs=yes
15398    ;;
15399  esac
15400  ;;
15401
15402gnu*)
15403  version_type=linux
15404  need_lib_prefix=no
15405  need_version=no
15406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15407  soname_spec='${libname}${release}${shared_ext}$major'
15408  shlibpath_var=LD_LIBRARY_PATH
15409  hardcode_into_libs=yes
15410  ;;
15411
15412haiku*)
15413  version_type=linux
15414  need_lib_prefix=no
15415  need_version=no
15416  dynamic_linker="$host_os runtime_loader"
15417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15418  soname_spec='${libname}${release}${shared_ext}$major'
15419  shlibpath_var=LIBRARY_PATH
15420  shlibpath_overrides_runpath=yes
15421  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15422  hardcode_into_libs=yes
15423  ;;
15424
15425hpux9* | hpux10* | hpux11*)
15426  # Give a soname corresponding to the major version so that dld.sl refuses to
15427  # link against other versions.
15428  version_type=sunos
15429  need_lib_prefix=no
15430  need_version=no
15431  case $host_cpu in
15432  ia64*)
15433    shrext_cmds='.so'
15434    hardcode_into_libs=yes
15435    dynamic_linker="$host_os dld.so"
15436    shlibpath_var=LD_LIBRARY_PATH
15437    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439    soname_spec='${libname}${release}${shared_ext}$major'
15440    if test "X$HPUX_IA64_MODE" = X32; then
15441      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442    else
15443      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444    fi
15445    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446    ;;
15447  hppa*64*)
15448    shrext_cmds='.sl'
15449    hardcode_into_libs=yes
15450    dynamic_linker="$host_os dld.sl"
15451    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454    soname_spec='${libname}${release}${shared_ext}$major'
15455    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457    ;;
15458  *)
15459    shrext_cmds='.sl'
15460    dynamic_linker="$host_os dld.sl"
15461    shlibpath_var=SHLIB_PATH
15462    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464    soname_spec='${libname}${release}${shared_ext}$major'
15465    ;;
15466  esac
15467  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15468  postinstall_cmds='chmod 555 $lib'
15469  # or fails outright, so override atomically:
15470  install_override_mode=555
15471  ;;
15472
15473interix[3-9]*)
15474  version_type=linux
15475  need_lib_prefix=no
15476  need_version=no
15477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478  soname_spec='${libname}${release}${shared_ext}$major'
15479  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480  shlibpath_var=LD_LIBRARY_PATH
15481  shlibpath_overrides_runpath=no
15482  hardcode_into_libs=yes
15483  ;;
15484
15485irix5* | irix6* | nonstopux*)
15486  case $host_os in
15487    nonstopux*) version_type=nonstopux ;;
15488    *)
15489	if test "$lt_cv_prog_gnu_ld" = yes; then
15490		version_type=linux
15491	else
15492		version_type=irix
15493	fi ;;
15494  esac
15495  need_lib_prefix=no
15496  need_version=no
15497  soname_spec='${libname}${release}${shared_ext}$major'
15498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15499  case $host_os in
15500  irix5* | nonstopux*)
15501    libsuff= shlibsuff=
15502    ;;
15503  *)
15504    case $LD in # libtool.m4 will add one of these switches to LD
15505    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506      libsuff= shlibsuff= libmagic=32-bit;;
15507    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508      libsuff=32 shlibsuff=N32 libmagic=N32;;
15509    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511    *) libsuff= shlibsuff= libmagic=never-match;;
15512    esac
15513    ;;
15514  esac
15515  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516  shlibpath_overrides_runpath=no
15517  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519  hardcode_into_libs=yes
15520  ;;
15521
15522# No shared lib support for Linux oldld, aout, or coff.
15523linux*oldld* | linux*aout* | linux*coff*)
15524  dynamic_linker=no
15525  ;;
15526
15527# This must be Linux ELF.
15528linux* | k*bsd*-gnu | kopensolaris*-gnu)
15529  version_type=linux
15530  need_lib_prefix=no
15531  need_version=no
15532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533  soname_spec='${libname}${release}${shared_ext}$major'
15534  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535  shlibpath_var=LD_LIBRARY_PATH
15536  shlibpath_overrides_runpath=no
15537
15538  # Some binutils ld are patched to set DT_RUNPATH
15539  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15540  $as_echo_n "(cached) " >&6
15541else
15542  lt_cv_shlibpath_overrides_runpath=no
15543    save_LDFLAGS=$LDFLAGS
15544    save_libdir=$libdir
15545    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15546	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549
15550int
15551main ()
15552{
15553
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558if ac_fn_cxx_try_link "$LINENO"; then :
15559  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15560  lt_cv_shlibpath_overrides_runpath=yes
15561fi
15562fi
15563rm -f core conftest.err conftest.$ac_objext \
15564    conftest$ac_exeext conftest.$ac_ext
15565    LDFLAGS=$save_LDFLAGS
15566    libdir=$save_libdir
15567
15568fi
15569
15570  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15571
15572  # This implies no fast_install, which is unacceptable.
15573  # Some rework will be needed to allow for fast_install
15574  # before this can be enabled.
15575  hardcode_into_libs=yes
15576
15577  # Append ld.so.conf contents to the search path
15578  if test -f /etc/ld.so.conf; then
15579    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' ' '`
15580    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15581  fi
15582
15583  # We used to test for /lib/ld.so.1 and disable shared libraries on
15584  # powerpc, because MkLinux only supported shared libraries with the
15585  # GNU dynamic linker.  Since this was broken with cross compilers,
15586  # most powerpc-linux boxes support dynamic linking these days and
15587  # people can always --disable-shared, the test was removed, and we
15588  # assume the GNU/Linux dynamic linker is in use.
15589  dynamic_linker='GNU/Linux ld.so'
15590  ;;
15591
15592netbsd*)
15593  version_type=sunos
15594  need_lib_prefix=no
15595  need_version=no
15596  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15599    dynamic_linker='NetBSD (a.out) ld.so'
15600  else
15601    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602    soname_spec='${libname}${release}${shared_ext}$major'
15603    dynamic_linker='NetBSD ld.elf_so'
15604  fi
15605  shlibpath_var=LD_LIBRARY_PATH
15606  shlibpath_overrides_runpath=yes
15607  hardcode_into_libs=yes
15608  ;;
15609
15610newsos6)
15611  version_type=linux
15612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613  shlibpath_var=LD_LIBRARY_PATH
15614  shlibpath_overrides_runpath=yes
15615  ;;
15616
15617*nto* | *qnx*)
15618  version_type=qnx
15619  need_lib_prefix=no
15620  need_version=no
15621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622  soname_spec='${libname}${release}${shared_ext}$major'
15623  shlibpath_var=LD_LIBRARY_PATH
15624  shlibpath_overrides_runpath=no
15625  hardcode_into_libs=yes
15626  dynamic_linker='ldqnx.so'
15627  ;;
15628
15629openbsd*)
15630  version_type=sunos
15631  sys_lib_dlsearch_path_spec="/usr/lib"
15632  need_lib_prefix=no
15633  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15634  case $host_os in
15635    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15636    *)				need_version=no  ;;
15637  esac
15638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15640  shlibpath_var=LD_LIBRARY_PATH
15641  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642    case $host_os in
15643      openbsd2.[89] | openbsd2.[89].*)
15644	shlibpath_overrides_runpath=no
15645	;;
15646      *)
15647	shlibpath_overrides_runpath=yes
15648	;;
15649      esac
15650  else
15651    shlibpath_overrides_runpath=yes
15652  fi
15653  ;;
15654
15655os2*)
15656  libname_spec='$name'
15657  shrext_cmds=".dll"
15658  need_lib_prefix=no
15659  library_names_spec='$libname${shared_ext} $libname.a'
15660  dynamic_linker='OS/2 ld.exe'
15661  shlibpath_var=LIBPATH
15662  ;;
15663
15664osf3* | osf4* | osf5*)
15665  version_type=osf
15666  need_lib_prefix=no
15667  need_version=no
15668  soname_spec='${libname}${release}${shared_ext}$major'
15669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670  shlibpath_var=LD_LIBRARY_PATH
15671  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15672  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15673  ;;
15674
15675rdos*)
15676  dynamic_linker=no
15677  ;;
15678
15679solaris*)
15680  version_type=linux
15681  need_lib_prefix=no
15682  need_version=no
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684  soname_spec='${libname}${release}${shared_ext}$major'
15685  shlibpath_var=LD_LIBRARY_PATH
15686  shlibpath_overrides_runpath=yes
15687  hardcode_into_libs=yes
15688  # ldd complains unless libraries are executable
15689  postinstall_cmds='chmod +x $lib'
15690  ;;
15691
15692sunos4*)
15693  version_type=sunos
15694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15696  shlibpath_var=LD_LIBRARY_PATH
15697  shlibpath_overrides_runpath=yes
15698  if test "$with_gnu_ld" = yes; then
15699    need_lib_prefix=no
15700  fi
15701  need_version=yes
15702  ;;
15703
15704sysv4 | sysv4.3*)
15705  version_type=linux
15706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707  soname_spec='${libname}${release}${shared_ext}$major'
15708  shlibpath_var=LD_LIBRARY_PATH
15709  case $host_vendor in
15710    sni)
15711      shlibpath_overrides_runpath=no
15712      need_lib_prefix=no
15713      runpath_var=LD_RUN_PATH
15714      ;;
15715    siemens)
15716      need_lib_prefix=no
15717      ;;
15718    motorola)
15719      need_lib_prefix=no
15720      need_version=no
15721      shlibpath_overrides_runpath=no
15722      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15723      ;;
15724  esac
15725  ;;
15726
15727sysv4*MP*)
15728  if test -d /usr/nec ;then
15729    version_type=linux
15730    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15731    soname_spec='$libname${shared_ext}.$major'
15732    shlibpath_var=LD_LIBRARY_PATH
15733  fi
15734  ;;
15735
15736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15737  version_type=freebsd-elf
15738  need_lib_prefix=no
15739  need_version=no
15740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15741  soname_spec='${libname}${release}${shared_ext}$major'
15742  shlibpath_var=LD_LIBRARY_PATH
15743  shlibpath_overrides_runpath=yes
15744  hardcode_into_libs=yes
15745  if test "$with_gnu_ld" = yes; then
15746    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15747  else
15748    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15749    case $host_os in
15750      sco3.2v5*)
15751        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15752	;;
15753    esac
15754  fi
15755  sys_lib_dlsearch_path_spec='/usr/lib'
15756  ;;
15757
15758tpf*)
15759  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15760  version_type=linux
15761  need_lib_prefix=no
15762  need_version=no
15763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764  shlibpath_var=LD_LIBRARY_PATH
15765  shlibpath_overrides_runpath=no
15766  hardcode_into_libs=yes
15767  ;;
15768
15769uts4*)
15770  version_type=linux
15771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772  soname_spec='${libname}${release}${shared_ext}$major'
15773  shlibpath_var=LD_LIBRARY_PATH
15774  ;;
15775
15776*)
15777  dynamic_linker=no
15778  ;;
15779esac
15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15781$as_echo "$dynamic_linker" >&6; }
15782test "$dynamic_linker" = no && can_build_shared=no
15783
15784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15785if test "$GCC" = yes; then
15786  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15787fi
15788
15789if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15790  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15791fi
15792if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15793  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15794fi
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15834$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15835hardcode_action_CXX=
15836if test -n "$hardcode_libdir_flag_spec_CXX" ||
15837   test -n "$runpath_var_CXX" ||
15838   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15839
15840  # We can hardcode non-existent directories.
15841  if test "$hardcode_direct_CXX" != no &&
15842     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15843     # have to relink, otherwise we might link with an installed library
15844     # when we should be linking with a yet-to-be-installed one
15845     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15846     test "$hardcode_minus_L_CXX" != no; then
15847    # Linking always hardcodes the temporary library directory.
15848    hardcode_action_CXX=relink
15849  else
15850    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15851    hardcode_action_CXX=immediate
15852  fi
15853else
15854  # We cannot hardcode anything, or else we can only hardcode existing
15855  # directories.
15856  hardcode_action_CXX=unsupported
15857fi
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15859$as_echo "$hardcode_action_CXX" >&6; }
15860
15861if test "$hardcode_action_CXX" = relink ||
15862   test "$inherit_rpath_CXX" = yes; then
15863  # Fast installation is not supported
15864  enable_fast_install=no
15865elif test "$shlibpath_overrides_runpath" = yes ||
15866     test "$enable_shared" = no; then
15867  # Fast installation is not necessary
15868  enable_fast_install=needless
15869fi
15870
15871
15872
15873
15874
15875
15876
15877  fi # test -n "$compiler"
15878
15879  CC=$lt_save_CC
15880  CFLAGS=$lt_save_CFLAGS
15881  LDCXX=$LD
15882  LD=$lt_save_LD
15883  GCC=$lt_save_GCC
15884  with_gnu_ld=$lt_save_with_gnu_ld
15885  lt_cv_path_LDCXX=$lt_cv_path_LD
15886  lt_cv_path_LD=$lt_save_path_LD
15887  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15888  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15889fi # test "$_lt_caught_CXX_error" != yes
15890
15891ac_ext=cpp
15892ac_cpp='$CXXCPP $CPPFLAGS'
15893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15896
15897
15898if test "x$CC" != xcc; then
15899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15900$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15901else
15902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15903$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15904fi
15905set dummy $CC; ac_cc=`$as_echo "$2" |
15906		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15907if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15908  $as_echo_n "(cached) " >&6
15909else
15910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h.  */
15912
15913int
15914main ()
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921# Make sure it works both with $CC and with simple cc.
15922# We do the test twice because some compilers refuse to overwrite an
15923# existing .o file with -o, though they will create one.
15924ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15925rm -f conftest2.*
15926if { { case "(($ac_try" in
15927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928  *) ac_try_echo=$ac_try;;
15929esac
15930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15931$as_echo "$ac_try_echo"; } >&5
15932  (eval "$ac_try") 2>&5
15933  ac_status=$?
15934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935  test $ac_status = 0; } &&
15936   test -f conftest2.$ac_objext && { { case "(($ac_try" in
15937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938  *) ac_try_echo=$ac_try;;
15939esac
15940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15941$as_echo "$ac_try_echo"; } >&5
15942  (eval "$ac_try") 2>&5
15943  ac_status=$?
15944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15945  test $ac_status = 0; };
15946then
15947  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15948  if test "x$CC" != xcc; then
15949    # Test first that cc exists at all.
15950    if { ac_try='cc -c conftest.$ac_ext >&5'
15951  { { case "(($ac_try" in
15952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953  *) ac_try_echo=$ac_try;;
15954esac
15955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15956$as_echo "$ac_try_echo"; } >&5
15957  (eval "$ac_try") 2>&5
15958  ac_status=$?
15959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15960  test $ac_status = 0; }; }; then
15961      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15962      rm -f conftest2.*
15963      if { { case "(($ac_try" in
15964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965  *) ac_try_echo=$ac_try;;
15966esac
15967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15968$as_echo "$ac_try_echo"; } >&5
15969  (eval "$ac_try") 2>&5
15970  ac_status=$?
15971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15972  test $ac_status = 0; } &&
15973	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975  *) ac_try_echo=$ac_try;;
15976esac
15977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15978$as_echo "$ac_try_echo"; } >&5
15979  (eval "$ac_try") 2>&5
15980  ac_status=$?
15981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982  test $ac_status = 0; };
15983      then
15984	# cc works too.
15985	:
15986      else
15987	# cc exists but doesn't like -o.
15988	eval ac_cv_prog_cc_${ac_cc}_c_o=no
15989      fi
15990    fi
15991  fi
15992else
15993  eval ac_cv_prog_cc_${ac_cc}_c_o=no
15994fi
15995rm -f core conftest*
15996
15997fi
15998if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16000$as_echo "yes" >&6; }
16001else
16002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003$as_echo "no" >&6; }
16004
16005$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16006
16007fi
16008
16009# FIXME: we rely on the cache variable name because
16010# there is no other way.
16011set dummy $CC
16012am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16013eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16014if test "$am_t" != yes; then
16015   # Losing compiler, so override with the script.
16016   # FIXME: It is wrong to rewrite CC.
16017   # But if we don't then we get into trouble of one sort or another.
16018   # A longer-term fix would be to have automake use am__CC in this case,
16019   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16020   CC="$am_aux_dir/compile $CC"
16021fi
16022
16023
16024
16025
16026if test "x$GCC" = "xyes"; then
16027  case " $CFLAGS " in
16028  *[\ \	]-Wall[\ \	]*) ;;
16029  *) CFLAGS="$CFLAGS -Wall" ;;
16030  esac
16031fi
16032
16033# Checks for header files.
16034
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16036$as_echo_n "checking for ANSI C header files... " >&6; }
16037if ${ac_cv_header_stdc+:} false; then :
16038  $as_echo_n "(cached) " >&6
16039else
16040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042#include <stdlib.h>
16043#include <stdarg.h>
16044#include <string.h>
16045#include <float.h>
16046
16047int
16048main ()
16049{
16050
16051  ;
16052  return 0;
16053}
16054_ACEOF
16055if ac_fn_cxx_try_compile "$LINENO"; then :
16056  ac_cv_header_stdc=yes
16057else
16058  ac_cv_header_stdc=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061
16062if test $ac_cv_header_stdc = yes; then
16063  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h.  */
16066#include <string.h>
16067
16068_ACEOF
16069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16070  $EGREP "memchr" >/dev/null 2>&1; then :
16071
16072else
16073  ac_cv_header_stdc=no
16074fi
16075rm -f conftest*
16076
16077fi
16078
16079if test $ac_cv_header_stdc = yes; then
16080  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h.  */
16083#include <stdlib.h>
16084
16085_ACEOF
16086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16087  $EGREP "free" >/dev/null 2>&1; then :
16088
16089else
16090  ac_cv_header_stdc=no
16091fi
16092rm -f conftest*
16093
16094fi
16095
16096if test $ac_cv_header_stdc = yes; then
16097  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16098  if test "$cross_compiling" = yes; then :
16099  :
16100else
16101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102/* end confdefs.h.  */
16103#include <ctype.h>
16104#include <stdlib.h>
16105#if ((' ' & 0x0FF) == 0x020)
16106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16108#else
16109# define ISLOWER(c) \
16110		   (('a' <= (c) && (c) <= 'i') \
16111		     || ('j' <= (c) && (c) <= 'r') \
16112		     || ('s' <= (c) && (c) <= 'z'))
16113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16114#endif
16115
16116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16117int
16118main ()
16119{
16120  int i;
16121  for (i = 0; i < 256; i++)
16122    if (XOR (islower (i), ISLOWER (i))
16123	|| toupper (i) != TOUPPER (i))
16124      return 2;
16125  return 0;
16126}
16127_ACEOF
16128if ac_fn_cxx_try_run "$LINENO"; then :
16129
16130else
16131  ac_cv_header_stdc=no
16132fi
16133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16134  conftest.$ac_objext conftest.beam conftest.$ac_ext
16135fi
16136
16137fi
16138fi
16139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16140$as_echo "$ac_cv_header_stdc" >&6; }
16141if test $ac_cv_header_stdc = yes; then
16142
16143$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16144
16145fi
16146
16147
16148# Checks for library functions.
16149for ac_func in vprintf
16150do :
16151  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16152if test "x$ac_cv_func_vprintf" = xyes; then :
16153  cat >>confdefs.h <<_ACEOF
16154#define HAVE_VPRINTF 1
16155_ACEOF
16156
16157ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16158if test "x$ac_cv_func__doprnt" = xyes; then :
16159
16160$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16161
16162fi
16163
16164fi
16165done
16166
16167
16168
16169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16170$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16171if ${ac_cv_c_const+:} false; then :
16172  $as_echo_n "(cached) " >&6
16173else
16174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175/* end confdefs.h.  */
16176
16177int
16178main ()
16179{
16180/* FIXME: Include the comments suggested by Paul. */
16181#ifndef __cplusplus
16182  /* Ultrix mips cc rejects this.  */
16183  typedef int charset[2];
16184  const charset cs;
16185  /* SunOS 4.1.1 cc rejects this.  */
16186  char const *const *pcpcc;
16187  char **ppc;
16188  /* NEC SVR4.0.2 mips cc rejects this.  */
16189  struct point {int x, y;};
16190  static struct point const zero = {0,0};
16191  /* AIX XL C 1.02.0.0 rejects this.
16192     It does not let you subtract one const X* pointer from another in
16193     an arm of an if-expression whose if-part is not a constant
16194     expression */
16195  const char *g = "string";
16196  pcpcc = &g + (g ? g-g : 0);
16197  /* HPUX 7.0 cc rejects these. */
16198  ++pcpcc;
16199  ppc = (char**) pcpcc;
16200  pcpcc = (char const *const *) ppc;
16201  { /* SCO 3.2v4 cc rejects this.  */
16202    char *t;
16203    char const *s = 0 ? (char *) 0 : (char const *) 0;
16204
16205    *t++ = 0;
16206    if (s) return 0;
16207  }
16208  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16209    int x[] = {25, 17};
16210    const int *foo = &x[0];
16211    ++foo;
16212  }
16213  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16214    typedef const int *iptr;
16215    iptr p = 0;
16216    ++p;
16217  }
16218  { /* AIX XL C 1.02.0.0 rejects this saying
16219       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16220    struct s { int j; const int *ap[3]; };
16221    struct s *b; b->j = 5;
16222  }
16223  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16224    const int foo = 10;
16225    if (!foo) return 0;
16226  }
16227  return !cs[0] && !zero.x;
16228#endif
16229
16230  ;
16231  return 0;
16232}
16233_ACEOF
16234if ac_fn_cxx_try_compile "$LINENO"; then :
16235  ac_cv_c_const=yes
16236else
16237  ac_cv_c_const=no
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240fi
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16242$as_echo "$ac_cv_c_const" >&6; }
16243if test $ac_cv_c_const = no; then
16244
16245$as_echo "#define const /**/" >>confdefs.h
16246
16247fi
16248
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16251$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16252if ${ac_cv_c_bigendian+:} false; then :
16253  $as_echo_n "(cached) " >&6
16254else
16255  ac_cv_c_bigendian=unknown
16256    # See if we're dealing with a universal compiler.
16257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258/* end confdefs.h.  */
16259#ifndef __APPLE_CC__
16260	       not a universal capable compiler
16261	     #endif
16262	     typedef int dummy;
16263
16264_ACEOF
16265if ac_fn_cxx_try_compile "$LINENO"; then :
16266
16267	# Check for potential -arch flags.  It is not universal unless
16268	# there are at least two -arch flags with different values.
16269	ac_arch=
16270	ac_prev=
16271	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16272	 if test -n "$ac_prev"; then
16273	   case $ac_word in
16274	     i?86 | x86_64 | ppc | ppc64)
16275	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16276		 ac_arch=$ac_word
16277	       else
16278		 ac_cv_c_bigendian=universal
16279		 break
16280	       fi
16281	       ;;
16282	   esac
16283	   ac_prev=
16284	 elif test "x$ac_word" = "x-arch"; then
16285	   ac_prev=arch
16286	 fi
16287       done
16288fi
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290    if test $ac_cv_c_bigendian = unknown; then
16291      # See if sys/param.h defines the BYTE_ORDER macro.
16292      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293/* end confdefs.h.  */
16294#include <sys/types.h>
16295	     #include <sys/param.h>
16296
16297int
16298main ()
16299{
16300#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16301		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16302		     && LITTLE_ENDIAN)
16303	      bogus endian macros
16304	     #endif
16305
16306  ;
16307  return 0;
16308}
16309_ACEOF
16310if ac_fn_cxx_try_compile "$LINENO"; then :
16311  # It does; now see whether it defined to BIG_ENDIAN or not.
16312	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313/* end confdefs.h.  */
16314#include <sys/types.h>
16315		#include <sys/param.h>
16316
16317int
16318main ()
16319{
16320#if BYTE_ORDER != BIG_ENDIAN
16321		 not big endian
16322		#endif
16323
16324  ;
16325  return 0;
16326}
16327_ACEOF
16328if ac_fn_cxx_try_compile "$LINENO"; then :
16329  ac_cv_c_bigendian=yes
16330else
16331  ac_cv_c_bigendian=no
16332fi
16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334fi
16335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336    fi
16337    if test $ac_cv_c_bigendian = unknown; then
16338      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16339      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341#include <limits.h>
16342
16343int
16344main ()
16345{
16346#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16347	      bogus endian macros
16348	     #endif
16349
16350  ;
16351  return 0;
16352}
16353_ACEOF
16354if ac_fn_cxx_try_compile "$LINENO"; then :
16355  # It does; now see whether it defined to _BIG_ENDIAN or not.
16356	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h.  */
16358#include <limits.h>
16359
16360int
16361main ()
16362{
16363#ifndef _BIG_ENDIAN
16364		 not big endian
16365		#endif
16366
16367  ;
16368  return 0;
16369}
16370_ACEOF
16371if ac_fn_cxx_try_compile "$LINENO"; then :
16372  ac_cv_c_bigendian=yes
16373else
16374  ac_cv_c_bigendian=no
16375fi
16376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377fi
16378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379    fi
16380    if test $ac_cv_c_bigendian = unknown; then
16381      # Compile a test program.
16382      if test "$cross_compiling" = yes; then :
16383  # Try to guess by grepping values from an object file.
16384	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h.  */
16386short int ascii_mm[] =
16387		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16388		short int ascii_ii[] =
16389		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16390		int use_ascii (int i) {
16391		  return ascii_mm[i] + ascii_ii[i];
16392		}
16393		short int ebcdic_ii[] =
16394		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16395		short int ebcdic_mm[] =
16396		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16397		int use_ebcdic (int i) {
16398		  return ebcdic_mm[i] + ebcdic_ii[i];
16399		}
16400		extern int foo;
16401
16402int
16403main ()
16404{
16405return use_ascii (foo) == use_ebcdic (foo);
16406  ;
16407  return 0;
16408}
16409_ACEOF
16410if ac_fn_cxx_try_compile "$LINENO"; then :
16411  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16412	      ac_cv_c_bigendian=yes
16413	    fi
16414	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16415	      if test "$ac_cv_c_bigendian" = unknown; then
16416		ac_cv_c_bigendian=no
16417	      else
16418		# finding both strings is unlikely to happen, but who knows?
16419		ac_cv_c_bigendian=unknown
16420	      fi
16421	    fi
16422fi
16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424else
16425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426/* end confdefs.h.  */
16427$ac_includes_default
16428int
16429main ()
16430{
16431
16432	     /* Are we little or big endian?  From Harbison&Steele.  */
16433	     union
16434	     {
16435	       long int l;
16436	       char c[sizeof (long int)];
16437	     } u;
16438	     u.l = 1;
16439	     return u.c[sizeof (long int) - 1] == 1;
16440
16441  ;
16442  return 0;
16443}
16444_ACEOF
16445if ac_fn_cxx_try_run "$LINENO"; then :
16446  ac_cv_c_bigendian=no
16447else
16448  ac_cv_c_bigendian=yes
16449fi
16450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16451  conftest.$ac_objext conftest.beam conftest.$ac_ext
16452fi
16453
16454    fi
16455fi
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16457$as_echo "$ac_cv_c_bigendian" >&6; }
16458 case $ac_cv_c_bigendian in #(
16459   yes)
16460     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16461;; #(
16462   no)
16463      ;; #(
16464   universal)
16465
16466$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16467
16468     ;; #(
16469   *)
16470     as_fn_error $? "unknown endianness
16471 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16472 esac
16473
16474
16475if test "$ac_cv_c_bigendian" = "yes"; then
16476  BIGENDIAN="1"
16477else
16478  BIGENDIAN="0"
16479fi
16480
16481
16482for ac_header in limits.h
16483do :
16484  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16485if test "x$ac_cv_header_limits_h" = xyes; then :
16486  cat >>confdefs.h <<_ACEOF
16487#define HAVE_LIMITS_H 1
16488_ACEOF
16489 cat >>confdefs.h <<_ACEOF
16490#define HAVE_LIMITS_H 1
16491_ACEOF
16492
16493fi
16494
16495done
16496
16497for ac_header in unistd.h
16498do :
16499  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
16500if test "x$ac_cv_header_unistd_h" = xyes; then :
16501  cat >>confdefs.h <<_ACEOF
16502#define HAVE_UNISTD_H 1
16503_ACEOF
16504 cat >>confdefs.h <<_ACEOF
16505#define HAVE_UNISTD_H 1
16506_ACEOF
16507
16508fi
16509
16510done
16511
16512for ac_header in values.h
16513do :
16514  ac_fn_cxx_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
16515if test "x$ac_cv_header_values_h" = xyes; then :
16516  cat >>confdefs.h <<_ACEOF
16517#define HAVE_VALUES_H 1
16518_ACEOF
16519 cat >>confdefs.h <<_ACEOF
16520#define HAVE_VALUES_H 1
16521_ACEOF
16522
16523fi
16524
16525done
16526
16527
16528# Check for some functions
16529for ac_func in memmove
16530do :
16531  ac_fn_cxx_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
16532if test "x$ac_cv_func_memmove" = xyes; then :
16533  cat >>confdefs.h <<_ACEOF
16534#define HAVE_MEMMOVE 1
16535_ACEOF
16536
16537fi
16538done
16539
16540
16541if test "$os_support" = "bsd"; then
16542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dev/usb/usb.h uses new naming convention" >&5
16543$as_echo_n "checking if dev/usb/usb.h uses new naming convention... " >&6; }
16544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545/* end confdefs.h.  */
16546#include <dev/usb/usb.h>
16547int
16548main ()
16549{
16550
16551       int a = ((struct usb_ctl_request *)0L)->ucr_addr
16552
16553  ;
16554  return 0;
16555}
16556_ACEOF
16557if ac_fn_cxx_try_compile "$LINENO"; then :
16558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16559$as_echo "yes" >&6; }
16560else
16561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562$as_echo "no" >&6; }
16563    cat >>confdefs.h <<_ACEOF
16564#define HAVE_OLD_DEV_USB_USB_H 1
16565_ACEOF
16566
16567fi
16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569fi
16570
16571#pkg-config: pkg-config is a tool to simplify checks for libraries and versions.
16572pkgconfig_msg="no (http://www.freedesktop.org/software/pkgconfig)"
16573try_pkgconfig=true
16574have_pkgconfig=false
16575
16576# Check whether --with-pkgconfig was given.
16577if test "${with_pkgconfig+set}" = set; then :
16578  withval=$with_pkgconfig;
16579  if test x$withval = xno; then
16580    try_pkgconfig=false
16581    pkgconfig_msg="no (not requested)"
16582  fi
16583fi
16584
16585if $try_pkgconfig; then
16586  # Extract the first word of "pkg-config", so it can be a program name with args.
16587set dummy pkg-config; ac_word=$2
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16589$as_echo_n "checking for $ac_word... " >&6; }
16590if ${ac_cv_path_PKG_CONFIG+:} false; then :
16591  $as_echo_n "(cached) " >&6
16592else
16593  case $PKG_CONFIG in
16594  [\\/]* | ?:[\\/]*)
16595  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16596  ;;
16597  *)
16598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16599for as_dir in $PATH
16600do
16601  IFS=$as_save_IFS
16602  test -z "$as_dir" && as_dir=.
16603    for ac_exec_ext in '' $ac_executable_extensions; do
16604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16605    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16607    break 2
16608  fi
16609done
16610  done
16611IFS=$as_save_IFS
16612
16613  ;;
16614esac
16615fi
16616PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16617if test -n "$PKG_CONFIG"; then
16618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16619$as_echo "$PKG_CONFIG" >&6; }
16620else
16621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16622$as_echo "no" >&6; }
16623fi
16624
16625
16626  if test -n "${PKG_CONFIG}"; then
16627    have_pkgconfig=true
16628    pkgconfig_msg="yes"
16629  fi
16630fi
16631# guessing directory to install *.pc into
16632pkgconfigdir="${libdir}/pkgconfig"
16633
16634
16635# Check if the user wants to enable documentation
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should build the documentation" >&5
16637$as_echo_n "checking if we should build the documentation... " >&6; }
16638# Check whether --enable-build-docs was given.
16639if test "${enable_build_docs+set}" = set; then :
16640  enableval=$enable_build_docs;  test "$enableval" != no && build_docs=yes || build_docs=no
16641else
16642  build_docs=auto
16643fi
16644
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
16646$as_echo "$build_docs" >&6; }
16647
16648if test "$build_docs" != "no"; then
16649  # Extract the first word of "jade", so it can be a program name with args.
16650set dummy jade; ac_word=$2
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16652$as_echo_n "checking for $ac_word... " >&6; }
16653if ${ac_cv_prog_JADE+:} false; then :
16654  $as_echo_n "(cached) " >&6
16655else
16656  if test -n "$JADE"; then
16657  ac_cv_prog_JADE="$JADE" # Let the user override the test.
16658else
16659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660for as_dir in $PATH
16661do
16662  IFS=$as_save_IFS
16663  test -z "$as_dir" && as_dir=.
16664    for ac_exec_ext in '' $ac_executable_extensions; do
16665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16666    ac_cv_prog_JADE="jade"
16667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16668    break 2
16669  fi
16670done
16671  done
16672IFS=$as_save_IFS
16673
16674fi
16675fi
16676JADE=$ac_cv_prog_JADE
16677if test -n "$JADE"; then
16678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
16679$as_echo "$JADE" >&6; }
16680else
16681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682$as_echo "no" >&6; }
16683fi
16684
16685
16686  if test  -z "$JADE"; then
16687    # Extract the first word of "openjade", so it can be a program name with args.
16688set dummy openjade; ac_word=$2
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16690$as_echo_n "checking for $ac_word... " >&6; }
16691if ${ac_cv_prog_JADE+:} false; then :
16692  $as_echo_n "(cached) " >&6
16693else
16694  if test -n "$JADE"; then
16695  ac_cv_prog_JADE="$JADE" # Let the user override the test.
16696else
16697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698for as_dir in $PATH
16699do
16700  IFS=$as_save_IFS
16701  test -z "$as_dir" && as_dir=.
16702    for ac_exec_ext in '' $ac_executable_extensions; do
16703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16704    ac_cv_prog_JADE="openjade"
16705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16706    break 2
16707  fi
16708done
16709  done
16710IFS=$as_save_IFS
16711
16712fi
16713fi
16714JADE=$ac_cv_prog_JADE
16715if test -n "$JADE"; then
16716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
16717$as_echo "$JADE" >&6; }
16718else
16719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720$as_echo "no" >&6; }
16721fi
16722
16723
16724  fi
16725fi
16726
16727
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Doxygen tools" >&5
16729$as_echo_n "checking for Doxygen tools... " >&6; }
16730
16731
16732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dot" >&5
16733$as_echo_n "checking for dot... " >&6; }
16734   if test -n "$DOT"; then
16735        libusb_cv_path="$DOT";
16736   else
16737        libusb_cache=`echo dot | sed 'y%./+-%__p_%'`
16738
16739        if eval \${libusb_cv_path_$libusb_cache+:} false; then :
16740  $as_echo_n "(cached) " >&6
16741else
16742
16743        libusb_cv_path="NONE"
16744        dirs=""
16745        libusb_save_IFS=$IFS
16746        IFS=':'
16747        for dir in $PATH; do
16748          dirs="$dirs $dir"
16749        done
16750        IFS=$libusb_save_IFS
16751
16752        for dir in $dirs; do
16753          if test -x "$dir/dot"; then
16754            if test -n ""
16755            then
16756              evalstr="$dir/dot  2>&1 "
16757              if eval $evalstr; then
16758                libusb_cv_path="$dir/dot"
16759                break
16760              fi
16761            else
16762                libusb_cv_path="$dir/dot"
16763                break
16764            fi
16765          fi
16766        done
16767
16768        eval "libusb_cv_path_$libusb_cache=$libusb_cv_path"
16769
16770
16771fi
16772
16773
16774      eval "libusb_cv_path=\"`echo '$libusb_cv_path_'$libusb_cache`\""
16775
16776   fi
16777
16778   if test -z "$libusb_cv_path" || test "$libusb_cv_path" = NONE; then
16779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16780$as_echo "not found" >&6; }
16781
16782   else
16783      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libusb_cv_path" >&5
16784$as_echo "$libusb_cv_path" >&6; }
16785      DOT=$libusb_cv_path
16786
16787   fi
16788
16789if test -n "$DOT"; then
16790  LIBUSB_HAVE_DOT="YES"
16791else
16792  LIBUSB_HAVE_DOT="NO"
16793fi
16794
16795
16796
16797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen" >&5
16798$as_echo_n "checking for doxygen... " >&6; }
16799   if test -n "$DOXYGEN"; then
16800        libusb_cv_path="$DOXYGEN";
16801   else
16802        libusb_cache=`echo doxygen | sed 'y%./+-%__p_%'`
16803
16804        if eval \${libusb_cv_path_$libusb_cache+:} false; then :
16805  $as_echo_n "(cached) " >&6
16806else
16807
16808        libusb_cv_path="NONE"
16809        dirs=""
16810        libusb_save_IFS=$IFS
16811        IFS=':'
16812        for dir in $PATH; do
16813          dirs="$dirs $dir"
16814        done
16815        IFS=$libusb_save_IFS
16816
16817        for dir in $dirs; do
16818          if test -x "$dir/doxygen"; then
16819            if test -n ""
16820            then
16821              evalstr="$dir/doxygen  2>&1 "
16822              if eval $evalstr; then
16823                libusb_cv_path="$dir/doxygen"
16824                break
16825              fi
16826            else
16827                libusb_cv_path="$dir/doxygen"
16828                break
16829            fi
16830          fi
16831        done
16832
16833        eval "libusb_cv_path_$libusb_cache=$libusb_cv_path"
16834
16835
16836fi
16837
16838
16839      eval "libusb_cv_path=\"`echo '$libusb_cv_path_'$libusb_cache`\""
16840
16841   fi
16842
16843   if test -z "$libusb_cv_path" || test "$libusb_cv_path" = NONE; then
16844      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16845$as_echo "not found" >&6; }
16846
16847   else
16848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libusb_cv_path" >&5
16849$as_echo "$libusb_cv_path" >&6; }
16850      DOXYGEN=$libusb_cv_path
16851
16852   fi
16853
16854
16855
16856DOXYGEN_PROJECT_NAME="LIBUSB C++ API Reference"
16857DOXYGEN_PROJECT_NUMBER="Version $VERSION"
16858
16859
16860
16861LIBUSB_HAS_DOXYGEN=no
16862if test -n "$DOXYGEN" && test -x "$DOXYGEN"; then
16863  LIBUSB_HAS_DOXYGEN=yes
16864fi
16865
16866
16867
16868
16869
16870if test "$build_docs" != "no" -a -z "$JADE"; then
16871  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation build components not installed. sgml docs will not be built" >&5
16872$as_echo "$as_me: WARNING: Documentation build components not installed. sgml docs will not be built" >&2;}
16873  build_docs="no"
16874fi
16875
16876 if test "$build_docs" != "no"; then
16877  BUILD_DOCS_TRUE=
16878  BUILD_DOCS_FALSE='#'
16879else
16880  BUILD_DOCS_TRUE='#'
16881  BUILD_DOCS_FALSE=
16882fi
16883
16884
16885ac_config_files="$ac_config_files Makefile doc/Makefile libusb.spec libusb-config libusb.pc tests/Makefile README INSTALL.libusb usb.h Doxyfile"
16886
16887ac_config_commands="$ac_config_commands default"
16888
16889cat >confcache <<\_ACEOF
16890# This file is a shell script that caches the results of configure
16891# tests run on this system so they can be shared between configure
16892# scripts and configure runs, see configure's option --config-cache.
16893# It is not useful on other systems.  If it contains results you don't
16894# want to keep, you may remove or edit it.
16895#
16896# config.status only pays attention to the cache file if you give it
16897# the --recheck option to rerun configure.
16898#
16899# `ac_cv_env_foo' variables (set or unset) will be overridden when
16900# loading this file, other *unset* `ac_cv_foo' will be assigned the
16901# following values.
16902
16903_ACEOF
16904
16905# The following way of writing the cache mishandles newlines in values,
16906# but we know of no workaround that is simple, portable, and efficient.
16907# So, we kill variables containing newlines.
16908# Ultrix sh set writes to stderr and can't be redirected directly,
16909# and sets the high bit in the cache file unless we assign to the vars.
16910(
16911  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16912    eval ac_val=\$$ac_var
16913    case $ac_val in #(
16914    *${as_nl}*)
16915      case $ac_var in #(
16916      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16918      esac
16919      case $ac_var in #(
16920      _ | IFS | as_nl) ;; #(
16921      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16922      *) { eval $ac_var=; unset $ac_var;} ;;
16923      esac ;;
16924    esac
16925  done
16926
16927  (set) 2>&1 |
16928    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16929    *${as_nl}ac_space=\ *)
16930      # `set' does not quote correctly, so add quotes: double-quote
16931      # substitution turns \\\\ into \\, and sed turns \\ into \.
16932      sed -n \
16933	"s/'/'\\\\''/g;
16934	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16935      ;; #(
16936    *)
16937      # `set' quotes correctly as required by POSIX, so do not add quotes.
16938      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16939      ;;
16940    esac |
16941    sort
16942) |
16943  sed '
16944     /^ac_cv_env_/b end
16945     t clear
16946     :clear
16947     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16948     t end
16949     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16950     :end' >>confcache
16951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16952  if test -w "$cache_file"; then
16953    if test "x$cache_file" != "x/dev/null"; then
16954      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16955$as_echo "$as_me: updating cache $cache_file" >&6;}
16956      if test ! -f "$cache_file" || test -h "$cache_file"; then
16957	cat confcache >"$cache_file"
16958      else
16959        case $cache_file in #(
16960        */* | ?:*)
16961	  mv -f confcache "$cache_file"$$ &&
16962	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16963        *)
16964	  mv -f confcache "$cache_file" ;;
16965	esac
16966      fi
16967    fi
16968  else
16969    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16971  fi
16972fi
16973rm -f confcache
16974
16975test "x$prefix" = xNONE && prefix=$ac_default_prefix
16976# Let make expand exec_prefix.
16977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16978
16979DEFS=-DHAVE_CONFIG_H
16980
16981ac_libobjs=
16982ac_ltlibobjs=
16983U=
16984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16985  # 1. Remove the extension, and $U if already installed.
16986  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16987  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16988  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16989  #    will be set to the directory where LIBOBJS objects are built.
16990  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16991  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16992done
16993LIBOBJS=$ac_libobjs
16994
16995LTLIBOBJS=$ac_ltlibobjs
16996
16997
16998 if test -n "$EXEEXT"; then
16999  am__EXEEXT_TRUE=
17000  am__EXEEXT_FALSE='#'
17001else
17002  am__EXEEXT_TRUE='#'
17003  am__EXEEXT_FALSE=
17004fi
17005
17006if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17007  as_fn_error $? "conditional \"AMDEP\" was never defined.
17008Usually this means the macro was only invoked conditionally." "$LINENO" 5
17009fi
17010if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17011  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17012Usually this means the macro was only invoked conditionally." "$LINENO" 5
17013fi
17014if test -z "${LINUX_API_TRUE}" && test -z "${LINUX_API_FALSE}"; then
17015  as_fn_error $? "conditional \"LINUX_API\" was never defined.
17016Usually this means the macro was only invoked conditionally." "$LINENO" 5
17017fi
17018if test -z "${BSD_API_TRUE}" && test -z "${BSD_API_FALSE}"; then
17019  as_fn_error $? "conditional \"BSD_API\" was never defined.
17020Usually this means the macro was only invoked conditionally." "$LINENO" 5
17021fi
17022if test -z "${DARWIN_API_TRUE}" && test -z "${DARWIN_API_FALSE}"; then
17023  as_fn_error $? "conditional \"DARWIN_API\" was never defined.
17024Usually this means the macro was only invoked conditionally." "$LINENO" 5
17025fi
17026if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17027  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17028Usually this means the macro was only invoked conditionally." "$LINENO" 5
17029fi
17030if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17031  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17032Usually this means the macro was only invoked conditionally." "$LINENO" 5
17033fi
17034
17035if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17036  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17037Usually this means the macro was only invoked conditionally." "$LINENO" 5
17038fi
17039
17040: "${CONFIG_STATUS=./config.status}"
17041ac_write_fail=0
17042ac_clean_files_save=$ac_clean_files
17043ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17044{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17045$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17046as_write_fail=0
17047cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17048#! $SHELL
17049# Generated by $as_me.
17050# Run this file to recreate the current configuration.
17051# Compiler output produced by configure, useful for debugging
17052# configure, is in config.log if it exists.
17053
17054debug=false
17055ac_cs_recheck=false
17056ac_cs_silent=false
17057
17058SHELL=\${CONFIG_SHELL-$SHELL}
17059export SHELL
17060_ASEOF
17061cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17062## -------------------- ##
17063## M4sh Initialization. ##
17064## -------------------- ##
17065
17066# Be more Bourne compatible
17067DUALCASE=1; export DUALCASE # for MKS sh
17068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17069  emulate sh
17070  NULLCMD=:
17071  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17072  # is contrary to our usage.  Disable this feature.
17073  alias -g '${1+"$@"}'='"$@"'
17074  setopt NO_GLOB_SUBST
17075else
17076  case `(set -o) 2>/dev/null` in #(
17077  *posix*) :
17078    set -o posix ;; #(
17079  *) :
17080     ;;
17081esac
17082fi
17083
17084
17085as_nl='
17086'
17087export as_nl
17088# Printing a long string crashes Solaris 7 /usr/bin/printf.
17089as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17090as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17092# Prefer a ksh shell builtin over an external printf program on Solaris,
17093# but without wasting forks for bash or zsh.
17094if test -z "$BASH_VERSION$ZSH_VERSION" \
17095    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17096  as_echo='print -r --'
17097  as_echo_n='print -rn --'
17098elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17099  as_echo='printf %s\n'
17100  as_echo_n='printf %s'
17101else
17102  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17103    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17104    as_echo_n='/usr/ucb/echo -n'
17105  else
17106    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17107    as_echo_n_body='eval
17108      arg=$1;
17109      case $arg in #(
17110      *"$as_nl"*)
17111	expr "X$arg" : "X\\(.*\\)$as_nl";
17112	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17113      esac;
17114      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17115    '
17116    export as_echo_n_body
17117    as_echo_n='sh -c $as_echo_n_body as_echo'
17118  fi
17119  export as_echo_body
17120  as_echo='sh -c $as_echo_body as_echo'
17121fi
17122
17123# The user is always right.
17124if test "${PATH_SEPARATOR+set}" != set; then
17125  PATH_SEPARATOR=:
17126  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17127    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17128      PATH_SEPARATOR=';'
17129  }
17130fi
17131
17132
17133# IFS
17134# We need space, tab and new line, in precisely that order.  Quoting is
17135# there to prevent editors from complaining about space-tab.
17136# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17137# splitting by setting IFS to empty value.)
17138IFS=" ""	$as_nl"
17139
17140# Find who we are.  Look in the path if we contain no directory separator.
17141as_myself=
17142case $0 in #((
17143  *[\\/]* ) as_myself=$0 ;;
17144  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145for as_dir in $PATH
17146do
17147  IFS=$as_save_IFS
17148  test -z "$as_dir" && as_dir=.
17149    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17150  done
17151IFS=$as_save_IFS
17152
17153     ;;
17154esac
17155# We did not find ourselves, most probably we were run as `sh COMMAND'
17156# in which case we are not to be found in the path.
17157if test "x$as_myself" = x; then
17158  as_myself=$0
17159fi
17160if test ! -f "$as_myself"; then
17161  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17162  exit 1
17163fi
17164
17165# Unset variables that we do not need and which cause bugs (e.g. in
17166# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17167# suppresses any "Segmentation fault" message there.  '((' could
17168# trigger a bug in pdksh 5.2.14.
17169for as_var in BASH_ENV ENV MAIL MAILPATH
17170do eval test x\${$as_var+set} = xset \
17171  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17172done
17173PS1='$ '
17174PS2='> '
17175PS4='+ '
17176
17177# NLS nuisances.
17178LC_ALL=C
17179export LC_ALL
17180LANGUAGE=C
17181export LANGUAGE
17182
17183# CDPATH.
17184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17185
17186
17187# as_fn_error STATUS ERROR [LINENO LOG_FD]
17188# ----------------------------------------
17189# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17190# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17191# script with STATUS, using 1 if that was 0.
17192as_fn_error ()
17193{
17194  as_status=$1; test $as_status -eq 0 && as_status=1
17195  if test "$4"; then
17196    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17197    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17198  fi
17199  $as_echo "$as_me: error: $2" >&2
17200  as_fn_exit $as_status
17201} # as_fn_error
17202
17203
17204# as_fn_set_status STATUS
17205# -----------------------
17206# Set $? to STATUS, without forking.
17207as_fn_set_status ()
17208{
17209  return $1
17210} # as_fn_set_status
17211
17212# as_fn_exit STATUS
17213# -----------------
17214# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17215as_fn_exit ()
17216{
17217  set +e
17218  as_fn_set_status $1
17219  exit $1
17220} # as_fn_exit
17221
17222# as_fn_unset VAR
17223# ---------------
17224# Portably unset VAR.
17225as_fn_unset ()
17226{
17227  { eval $1=; unset $1;}
17228}
17229as_unset=as_fn_unset
17230# as_fn_append VAR VALUE
17231# ----------------------
17232# Append the text in VALUE to the end of the definition contained in VAR. Take
17233# advantage of any shell optimizations that allow amortized linear growth over
17234# repeated appends, instead of the typical quadratic growth present in naive
17235# implementations.
17236if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17237  eval 'as_fn_append ()
17238  {
17239    eval $1+=\$2
17240  }'
17241else
17242  as_fn_append ()
17243  {
17244    eval $1=\$$1\$2
17245  }
17246fi # as_fn_append
17247
17248# as_fn_arith ARG...
17249# ------------------
17250# Perform arithmetic evaluation on the ARGs, and store the result in the
17251# global $as_val. Take advantage of shells that can avoid forks. The arguments
17252# must be portable across $(()) and expr.
17253if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17254  eval 'as_fn_arith ()
17255  {
17256    as_val=$(( $* ))
17257  }'
17258else
17259  as_fn_arith ()
17260  {
17261    as_val=`expr "$@" || test $? -eq 1`
17262  }
17263fi # as_fn_arith
17264
17265
17266if expr a : '\(a\)' >/dev/null 2>&1 &&
17267   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17268  as_expr=expr
17269else
17270  as_expr=false
17271fi
17272
17273if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17274  as_basename=basename
17275else
17276  as_basename=false
17277fi
17278
17279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17280  as_dirname=dirname
17281else
17282  as_dirname=false
17283fi
17284
17285as_me=`$as_basename -- "$0" ||
17286$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17287	 X"$0" : 'X\(//\)$' \| \
17288	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17289$as_echo X/"$0" |
17290    sed '/^.*\/\([^/][^/]*\)\/*$/{
17291	    s//\1/
17292	    q
17293	  }
17294	  /^X\/\(\/\/\)$/{
17295	    s//\1/
17296	    q
17297	  }
17298	  /^X\/\(\/\).*/{
17299	    s//\1/
17300	    q
17301	  }
17302	  s/.*/./; q'`
17303
17304# Avoid depending upon Character Ranges.
17305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17308as_cr_digits='0123456789'
17309as_cr_alnum=$as_cr_Letters$as_cr_digits
17310
17311ECHO_C= ECHO_N= ECHO_T=
17312case `echo -n x` in #(((((
17313-n*)
17314  case `echo 'xy\c'` in
17315  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17316  xy)  ECHO_C='\c';;
17317  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17318       ECHO_T='	';;
17319  esac;;
17320*)
17321  ECHO_N='-n';;
17322esac
17323
17324rm -f conf$$ conf$$.exe conf$$.file
17325if test -d conf$$.dir; then
17326  rm -f conf$$.dir/conf$$.file
17327else
17328  rm -f conf$$.dir
17329  mkdir conf$$.dir 2>/dev/null
17330fi
17331if (echo >conf$$.file) 2>/dev/null; then
17332  if ln -s conf$$.file conf$$ 2>/dev/null; then
17333    as_ln_s='ln -s'
17334    # ... but there are two gotchas:
17335    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17336    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17337    # In both cases, we have to default to `cp -p'.
17338    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17339      as_ln_s='cp -p'
17340  elif ln conf$$.file conf$$ 2>/dev/null; then
17341    as_ln_s=ln
17342  else
17343    as_ln_s='cp -p'
17344  fi
17345else
17346  as_ln_s='cp -p'
17347fi
17348rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17349rmdir conf$$.dir 2>/dev/null
17350
17351
17352# as_fn_mkdir_p
17353# -------------
17354# Create "$as_dir" as a directory, including parents if necessary.
17355as_fn_mkdir_p ()
17356{
17357
17358  case $as_dir in #(
17359  -*) as_dir=./$as_dir;;
17360  esac
17361  test -d "$as_dir" || eval $as_mkdir_p || {
17362    as_dirs=
17363    while :; do
17364      case $as_dir in #(
17365      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17366      *) as_qdir=$as_dir;;
17367      esac
17368      as_dirs="'$as_qdir' $as_dirs"
17369      as_dir=`$as_dirname -- "$as_dir" ||
17370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17371	 X"$as_dir" : 'X\(//\)[^/]' \| \
17372	 X"$as_dir" : 'X\(//\)$' \| \
17373	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17374$as_echo X"$as_dir" |
17375    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17376	    s//\1/
17377	    q
17378	  }
17379	  /^X\(\/\/\)[^/].*/{
17380	    s//\1/
17381	    q
17382	  }
17383	  /^X\(\/\/\)$/{
17384	    s//\1/
17385	    q
17386	  }
17387	  /^X\(\/\).*/{
17388	    s//\1/
17389	    q
17390	  }
17391	  s/.*/./; q'`
17392      test -d "$as_dir" && break
17393    done
17394    test -z "$as_dirs" || eval "mkdir $as_dirs"
17395  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17396
17397
17398} # as_fn_mkdir_p
17399if mkdir -p . 2>/dev/null; then
17400  as_mkdir_p='mkdir -p "$as_dir"'
17401else
17402  test -d ./-p && rmdir ./-p
17403  as_mkdir_p=false
17404fi
17405
17406if test -x / >/dev/null 2>&1; then
17407  as_test_x='test -x'
17408else
17409  if ls -dL / >/dev/null 2>&1; then
17410    as_ls_L_option=L
17411  else
17412    as_ls_L_option=
17413  fi
17414  as_test_x='
17415    eval sh -c '\''
17416      if test -d "$1"; then
17417	test -d "$1/.";
17418      else
17419	case $1 in #(
17420	-*)set "./$1";;
17421	esac;
17422	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17423	???[sx]*):;;*)false;;esac;fi
17424    '\'' sh
17425  '
17426fi
17427as_executable_p=$as_test_x
17428
17429# Sed expression to map a string onto a valid CPP name.
17430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17431
17432# Sed expression to map a string onto a valid variable name.
17433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17434
17435
17436exec 6>&1
17437## ----------------------------------- ##
17438## Main body of $CONFIG_STATUS script. ##
17439## ----------------------------------- ##
17440_ASEOF
17441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17442
17443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17444# Save the log message, to keep $0 and so on meaningful, and to
17445# report actual input values of CONFIG_FILES etc. instead of their
17446# values after options handling.
17447ac_log="
17448This file was extended by libusb $as_me 0.1.13beta, which was
17449generated by GNU Autoconf 2.68.  Invocation command line was
17450
17451  CONFIG_FILES    = $CONFIG_FILES
17452  CONFIG_HEADERS  = $CONFIG_HEADERS
17453  CONFIG_LINKS    = $CONFIG_LINKS
17454  CONFIG_COMMANDS = $CONFIG_COMMANDS
17455  $ $0 $@
17456
17457on `(hostname || uname -n) 2>/dev/null | sed 1q`
17458"
17459
17460_ACEOF
17461
17462case $ac_config_files in *"
17463"*) set x $ac_config_files; shift; ac_config_files=$*;;
17464esac
17465
17466case $ac_config_headers in *"
17467"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17468esac
17469
17470
17471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472# Files that config.status was made for.
17473config_files="$ac_config_files"
17474config_headers="$ac_config_headers"
17475config_commands="$ac_config_commands"
17476
17477_ACEOF
17478
17479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480ac_cs_usage="\
17481\`$as_me' instantiates files and other configuration actions
17482from templates according to the current configuration.  Unless the files
17483and actions are specified as TAGs, all are instantiated by default.
17484
17485Usage: $0 [OPTION]... [TAG]...
17486
17487  -h, --help       print this help, then exit
17488  -V, --version    print version number and configuration settings, then exit
17489      --config     print configuration, then exit
17490  -q, --quiet, --silent
17491                   do not print progress messages
17492  -d, --debug      don't remove temporary files
17493      --recheck    update $as_me by reconfiguring in the same conditions
17494      --file=FILE[:TEMPLATE]
17495                   instantiate the configuration file FILE
17496      --header=FILE[:TEMPLATE]
17497                   instantiate the configuration header FILE
17498
17499Configuration files:
17500$config_files
17501
17502Configuration headers:
17503$config_headers
17504
17505Configuration commands:
17506$config_commands
17507
17508Report bugs to the package provider."
17509
17510_ACEOF
17511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17512ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17513ac_cs_version="\\
17514libusb config.status 0.1.13beta
17515configured by $0, generated by GNU Autoconf 2.68,
17516  with options \\"\$ac_cs_config\\"
17517
17518Copyright (C) 2010 Free Software Foundation, Inc.
17519This config.status script is free software; the Free Software Foundation
17520gives unlimited permission to copy, distribute and modify it."
17521
17522ac_pwd='$ac_pwd'
17523srcdir='$srcdir'
17524INSTALL='$INSTALL'
17525MKDIR_P='$MKDIR_P'
17526AWK='$AWK'
17527test -n "\$AWK" || AWK=awk
17528_ACEOF
17529
17530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17531# The default lists apply if the user does not specify any file.
17532ac_need_defaults=:
17533while test $# != 0
17534do
17535  case $1 in
17536  --*=?*)
17537    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17538    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17539    ac_shift=:
17540    ;;
17541  --*=)
17542    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17543    ac_optarg=
17544    ac_shift=:
17545    ;;
17546  *)
17547    ac_option=$1
17548    ac_optarg=$2
17549    ac_shift=shift
17550    ;;
17551  esac
17552
17553  case $ac_option in
17554  # Handling of the options.
17555  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17556    ac_cs_recheck=: ;;
17557  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17558    $as_echo "$ac_cs_version"; exit ;;
17559  --config | --confi | --conf | --con | --co | --c )
17560    $as_echo "$ac_cs_config"; exit ;;
17561  --debug | --debu | --deb | --de | --d | -d )
17562    debug=: ;;
17563  --file | --fil | --fi | --f )
17564    $ac_shift
17565    case $ac_optarg in
17566    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17567    '') as_fn_error $? "missing file argument" ;;
17568    esac
17569    as_fn_append CONFIG_FILES " '$ac_optarg'"
17570    ac_need_defaults=false;;
17571  --header | --heade | --head | --hea )
17572    $ac_shift
17573    case $ac_optarg in
17574    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17575    esac
17576    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17577    ac_need_defaults=false;;
17578  --he | --h)
17579    # Conflict between --help and --header
17580    as_fn_error $? "ambiguous option: \`$1'
17581Try \`$0 --help' for more information.";;
17582  --help | --hel | -h )
17583    $as_echo "$ac_cs_usage"; exit ;;
17584  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17585  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17586    ac_cs_silent=: ;;
17587
17588  # This is an error.
17589  -*) as_fn_error $? "unrecognized option: \`$1'
17590Try \`$0 --help' for more information." ;;
17591
17592  *) as_fn_append ac_config_targets " $1"
17593     ac_need_defaults=false ;;
17594
17595  esac
17596  shift
17597done
17598
17599ac_configure_extra_args=
17600
17601if $ac_cs_silent; then
17602  exec 6>/dev/null
17603  ac_configure_extra_args="$ac_configure_extra_args --silent"
17604fi
17605
17606_ACEOF
17607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17608if \$ac_cs_recheck; then
17609  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17610  shift
17611  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17612  CONFIG_SHELL='$SHELL'
17613  export CONFIG_SHELL
17614  exec "\$@"
17615fi
17616
17617_ACEOF
17618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17619exec 5>>config.log
17620{
17621  echo
17622  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17623## Running $as_me. ##
17624_ASBOX
17625  $as_echo "$ac_log"
17626} >&5
17627
17628_ACEOF
17629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17630#
17631# INIT-COMMANDS
17632#
17633AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17634
17635
17636# The HP-UX ksh and POSIX shell print the target directory to stdout
17637# if CDPATH is set.
17638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17639
17640sed_quote_subst='$sed_quote_subst'
17641double_quote_subst='$double_quote_subst'
17642delay_variable_subst='$delay_variable_subst'
17643macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17644macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17645enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17646enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17647pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17648enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17649SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17650ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17651host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17652host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17653host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17654build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17655build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17656build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17657SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17658Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17659GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17660EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17661FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17662LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17663NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17664LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17665max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17666ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17667exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17668lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17669lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17670lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17671lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17672lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17673reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17674reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17675OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17676deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17677file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17678file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17679want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17680DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17681sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17682AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17683AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17684archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17685STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17686RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17687old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17688old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17689old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17690lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17691CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17692CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17693compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17694GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17695lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17696lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17697lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17698lt_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"`'
17699nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17700lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17701objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17702MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17703lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17704lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17705lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17706lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17707lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17708need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17709MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17710DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17711NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17712LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17713OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17714OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17715libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17716shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17717extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17718archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17719enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17720export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17721whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17722compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17723old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17724old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17725archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17726archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17727module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17728module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17729with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17730allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17731no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17732hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17733hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17734hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17735hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17736hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17737hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17738hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17739hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17740inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17741link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17742always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17743export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17744exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17745include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17746prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17747postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17748file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17749variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17750need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17751need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17752version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17753runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17754shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17755shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17756libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17757library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17758soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17759install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17760postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17761postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17762finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17763finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17764hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17765sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17766sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17767hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17768enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17769enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17770enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17771old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17772striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17773compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17774predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17775postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17776predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17777postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17778compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17779LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17780reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17781reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17782old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17783compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17784GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17785lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17786lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17787lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17788lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17789lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17790archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17791enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17792export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17793whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17794compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17795old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17796old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17797archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17798archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17799module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17800module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17801with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17802allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17803no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17804hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17805hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17806hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17807hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17808hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17809hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17810hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17811hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17812inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17813link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17814always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17815export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17816exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17817include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17818prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17819postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17820file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17821hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17822compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17823predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17824postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17825predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17826postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17827compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17828
17829LTCC='$LTCC'
17830LTCFLAGS='$LTCFLAGS'
17831compiler='$compiler_DEFAULT'
17832
17833# A function that is used when there is no print builtin or printf.
17834func_fallback_echo ()
17835{
17836  eval 'cat <<_LTECHO_EOF
17837\$1
17838_LTECHO_EOF'
17839}
17840
17841# Quote evaled strings.
17842for var in SHELL \
17843ECHO \
17844SED \
17845GREP \
17846EGREP \
17847FGREP \
17848LD \
17849NM \
17850LN_S \
17851lt_SP2NL \
17852lt_NL2SP \
17853reload_flag \
17854OBJDUMP \
17855deplibs_check_method \
17856file_magic_cmd \
17857file_magic_glob \
17858want_nocaseglob \
17859DLLTOOL \
17860sharedlib_from_linklib_cmd \
17861AR \
17862AR_FLAGS \
17863archiver_list_spec \
17864STRIP \
17865RANLIB \
17866CC \
17867CFLAGS \
17868compiler \
17869lt_cv_sys_global_symbol_pipe \
17870lt_cv_sys_global_symbol_to_cdecl \
17871lt_cv_sys_global_symbol_to_c_name_address \
17872lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17873nm_file_list_spec \
17874lt_prog_compiler_no_builtin_flag \
17875lt_prog_compiler_pic \
17876lt_prog_compiler_wl \
17877lt_prog_compiler_static \
17878lt_cv_prog_compiler_c_o \
17879need_locks \
17880MANIFEST_TOOL \
17881DSYMUTIL \
17882NMEDIT \
17883LIPO \
17884OTOOL \
17885OTOOL64 \
17886shrext_cmds \
17887export_dynamic_flag_spec \
17888whole_archive_flag_spec \
17889compiler_needs_object \
17890with_gnu_ld \
17891allow_undefined_flag \
17892no_undefined_flag \
17893hardcode_libdir_flag_spec \
17894hardcode_libdir_flag_spec_ld \
17895hardcode_libdir_separator \
17896exclude_expsyms \
17897include_expsyms \
17898file_list_spec \
17899variables_saved_for_relink \
17900libname_spec \
17901library_names_spec \
17902soname_spec \
17903install_override_mode \
17904finish_eval \
17905old_striplib \
17906striplib \
17907compiler_lib_search_dirs \
17908predep_objects \
17909postdep_objects \
17910predeps \
17911postdeps \
17912compiler_lib_search_path \
17913LD_CXX \
17914reload_flag_CXX \
17915compiler_CXX \
17916lt_prog_compiler_no_builtin_flag_CXX \
17917lt_prog_compiler_pic_CXX \
17918lt_prog_compiler_wl_CXX \
17919lt_prog_compiler_static_CXX \
17920lt_cv_prog_compiler_c_o_CXX \
17921export_dynamic_flag_spec_CXX \
17922whole_archive_flag_spec_CXX \
17923compiler_needs_object_CXX \
17924with_gnu_ld_CXX \
17925allow_undefined_flag_CXX \
17926no_undefined_flag_CXX \
17927hardcode_libdir_flag_spec_CXX \
17928hardcode_libdir_flag_spec_ld_CXX \
17929hardcode_libdir_separator_CXX \
17930exclude_expsyms_CXX \
17931include_expsyms_CXX \
17932file_list_spec_CXX \
17933compiler_lib_search_dirs_CXX \
17934predep_objects_CXX \
17935postdep_objects_CXX \
17936predeps_CXX \
17937postdeps_CXX \
17938compiler_lib_search_path_CXX; do
17939    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17940    *[\\\\\\\`\\"\\\$]*)
17941      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17942      ;;
17943    *)
17944      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17945      ;;
17946    esac
17947done
17948
17949# Double-quote double-evaled strings.
17950for var in reload_cmds \
17951old_postinstall_cmds \
17952old_postuninstall_cmds \
17953old_archive_cmds \
17954extract_expsyms_cmds \
17955old_archive_from_new_cmds \
17956old_archive_from_expsyms_cmds \
17957archive_cmds \
17958archive_expsym_cmds \
17959module_cmds \
17960module_expsym_cmds \
17961export_symbols_cmds \
17962prelink_cmds \
17963postlink_cmds \
17964postinstall_cmds \
17965postuninstall_cmds \
17966finish_cmds \
17967sys_lib_search_path_spec \
17968sys_lib_dlsearch_path_spec \
17969reload_cmds_CXX \
17970old_archive_cmds_CXX \
17971old_archive_from_new_cmds_CXX \
17972old_archive_from_expsyms_cmds_CXX \
17973archive_cmds_CXX \
17974archive_expsym_cmds_CXX \
17975module_cmds_CXX \
17976module_expsym_cmds_CXX \
17977export_symbols_cmds_CXX \
17978prelink_cmds_CXX \
17979postlink_cmds_CXX; do
17980    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17981    *[\\\\\\\`\\"\\\$]*)
17982      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17983      ;;
17984    *)
17985      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17986      ;;
17987    esac
17988done
17989
17990ac_aux_dir='$ac_aux_dir'
17991xsi_shell='$xsi_shell'
17992lt_shell_append='$lt_shell_append'
17993
17994# See if we are running on zsh, and set the options which allow our
17995# commands through without removal of \ escapes INIT.
17996if test -n "\${ZSH_VERSION+set}" ; then
17997   setopt NO_GLOB_SUBST
17998fi
17999
18000
18001    PACKAGE='$PACKAGE'
18002    VERSION='$VERSION'
18003    TIMESTAMP='$TIMESTAMP'
18004    RM='$RM'
18005    ofile='$ofile'
18006
18007
18008
18009
18010
18011
18012
18013_ACEOF
18014
18015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18016
18017# Handling of arguments.
18018for ac_config_target in $ac_config_targets
18019do
18020  case $ac_config_target in
18021    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18022    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18023    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18024    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18025    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18026    "libusb.spec") CONFIG_FILES="$CONFIG_FILES libusb.spec" ;;
18027    "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;;
18028    "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;;
18029    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18030    "README") CONFIG_FILES="$CONFIG_FILES README" ;;
18031    "INSTALL.libusb") CONFIG_FILES="$CONFIG_FILES INSTALL.libusb" ;;
18032    "usb.h") CONFIG_FILES="$CONFIG_FILES usb.h" ;;
18033    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
18034    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18035
18036  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18037  esac
18038done
18039
18040
18041# If the user did not use the arguments to specify the items to instantiate,
18042# then the envvar interface is used.  Set only those that are not.
18043# We use the long form for the default assignment because of an extremely
18044# bizarre bug on SunOS 4.1.3.
18045if $ac_need_defaults; then
18046  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18047  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18048  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18049fi
18050
18051# Have a temporary directory for convenience.  Make it in the build tree
18052# simply because there is no reason against having it here, and in addition,
18053# creating and moving files from /tmp can sometimes cause problems.
18054# Hook for its removal unless debugging.
18055# Note that there is a small window in which the directory will not be cleaned:
18056# after its creation but before its name has been assigned to `$tmp'.
18057$debug ||
18058{
18059  tmp= ac_tmp=
18060  trap 'exit_status=$?
18061  : "${ac_tmp:=$tmp}"
18062  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18063' 0
18064  trap 'as_fn_exit 1' 1 2 13 15
18065}
18066# Create a (secure) tmp directory for tmp files.
18067
18068{
18069  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18070  test -d "$tmp"
18071}  ||
18072{
18073  tmp=./conf$$-$RANDOM
18074  (umask 077 && mkdir "$tmp")
18075} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18076ac_tmp=$tmp
18077
18078# Set up the scripts for CONFIG_FILES section.
18079# No need to generate them if there are no CONFIG_FILES.
18080# This happens for instance with `./config.status config.h'.
18081if test -n "$CONFIG_FILES"; then
18082
18083
18084ac_cr=`echo X | tr X '\015'`
18085# On cygwin, bash can eat \r inside `` if the user requested igncr.
18086# But we know of no other shell where ac_cr would be empty at this
18087# point, so we can use a bashism as a fallback.
18088if test "x$ac_cr" = x; then
18089  eval ac_cr=\$\'\\r\'
18090fi
18091ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18092if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18093  ac_cs_awk_cr='\\r'
18094else
18095  ac_cs_awk_cr=$ac_cr
18096fi
18097
18098echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18099_ACEOF
18100
18101
18102{
18103  echo "cat >conf$$subs.awk <<_ACEOF" &&
18104  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18105  echo "_ACEOF"
18106} >conf$$subs.sh ||
18107  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18108ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18109ac_delim='%!_!# '
18110for ac_last_try in false false false false false :; do
18111  . ./conf$$subs.sh ||
18112    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18113
18114  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18115  if test $ac_delim_n = $ac_delim_num; then
18116    break
18117  elif $ac_last_try; then
18118    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18119  else
18120    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18121  fi
18122done
18123rm -f conf$$subs.sh
18124
18125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18126cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18127_ACEOF
18128sed -n '
18129h
18130s/^/S["/; s/!.*/"]=/
18131p
18132g
18133s/^[^!]*!//
18134:repl
18135t repl
18136s/'"$ac_delim"'$//
18137t delim
18138:nl
18139h
18140s/\(.\{148\}\)..*/\1/
18141t more1
18142s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18143p
18144n
18145b repl
18146:more1
18147s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18148p
18149g
18150s/.\{148\}//
18151t nl
18152:delim
18153h
18154s/\(.\{148\}\)..*/\1/
18155t more2
18156s/["\\]/\\&/g; s/^/"/; s/$/"/
18157p
18158b
18159:more2
18160s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18161p
18162g
18163s/.\{148\}//
18164t delim
18165' <conf$$subs.awk | sed '
18166/^[^""]/{
18167  N
18168  s/\n//
18169}
18170' >>$CONFIG_STATUS || ac_write_fail=1
18171rm -f conf$$subs.awk
18172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18173_ACAWK
18174cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18175  for (key in S) S_is_set[key] = 1
18176  FS = ""
18177
18178}
18179{
18180  line = $ 0
18181  nfields = split(line, field, "@")
18182  substed = 0
18183  len = length(field[1])
18184  for (i = 2; i < nfields; i++) {
18185    key = field[i]
18186    keylen = length(key)
18187    if (S_is_set[key]) {
18188      value = S[key]
18189      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18190      len += length(value) + length(field[++i])
18191      substed = 1
18192    } else
18193      len += 1 + keylen
18194  }
18195
18196  print line
18197}
18198
18199_ACAWK
18200_ACEOF
18201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18202if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18203  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18204else
18205  cat
18206fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18207  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18208_ACEOF
18209
18210# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18211# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18212# trailing colons and then remove the whole line if VPATH becomes empty
18213# (actually we leave an empty line to preserve line numbers).
18214if test "x$srcdir" = x.; then
18215  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18216h
18217s///
18218s/^/:/
18219s/[	 ]*$/:/
18220s/:\$(srcdir):/:/g
18221s/:\${srcdir}:/:/g
18222s/:@srcdir@:/:/g
18223s/^:*//
18224s/:*$//
18225x
18226s/\(=[	 ]*\).*/\1/
18227G
18228s/\n//
18229s/^[^=]*=[	 ]*$//
18230}'
18231fi
18232
18233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18234fi # test -n "$CONFIG_FILES"
18235
18236# Set up the scripts for CONFIG_HEADERS section.
18237# No need to generate them if there are no CONFIG_HEADERS.
18238# This happens for instance with `./config.status Makefile'.
18239if test -n "$CONFIG_HEADERS"; then
18240cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18241BEGIN {
18242_ACEOF
18243
18244# Transform confdefs.h into an awk script `defines.awk', embedded as
18245# here-document in config.status, that substitutes the proper values into
18246# config.h.in to produce config.h.
18247
18248# Create a delimiter string that does not exist in confdefs.h, to ease
18249# handling of long lines.
18250ac_delim='%!_!# '
18251for ac_last_try in false false :; do
18252  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18253  if test -z "$ac_tt"; then
18254    break
18255  elif $ac_last_try; then
18256    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18257  else
18258    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18259  fi
18260done
18261
18262# For the awk script, D is an array of macro values keyed by name,
18263# likewise P contains macro parameters if any.  Preserve backslash
18264# newline sequences.
18265
18266ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18267sed -n '
18268s/.\{148\}/&'"$ac_delim"'/g
18269t rset
18270:rset
18271s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18272t def
18273d
18274:def
18275s/\\$//
18276t bsnl
18277s/["\\]/\\&/g
18278s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18279D["\1"]=" \3"/p
18280s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18281d
18282:bsnl
18283s/["\\]/\\&/g
18284s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18285D["\1"]=" \3\\\\\\n"\\/p
18286t cont
18287s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18288t cont
18289d
18290:cont
18291n
18292s/.\{148\}/&'"$ac_delim"'/g
18293t clear
18294:clear
18295s/\\$//
18296t bsnlc
18297s/["\\]/\\&/g; s/^/"/; s/$/"/p
18298d
18299:bsnlc
18300s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18301b cont
18302' <confdefs.h | sed '
18303s/'"$ac_delim"'/"\\\
18304"/g' >>$CONFIG_STATUS || ac_write_fail=1
18305
18306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18307  for (key in D) D_is_set[key] = 1
18308  FS = ""
18309}
18310/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18311  line = \$ 0
18312  split(line, arg, " ")
18313  if (arg[1] == "#") {
18314    defundef = arg[2]
18315    mac1 = arg[3]
18316  } else {
18317    defundef = substr(arg[1], 2)
18318    mac1 = arg[2]
18319  }
18320  split(mac1, mac2, "(") #)
18321  macro = mac2[1]
18322  prefix = substr(line, 1, index(line, defundef) - 1)
18323  if (D_is_set[macro]) {
18324    # Preserve the white space surrounding the "#".
18325    print prefix "define", macro P[macro] D[macro]
18326    next
18327  } else {
18328    # Replace #undef with comments.  This is necessary, for example,
18329    # in the case of _POSIX_SOURCE, which is predefined and required
18330    # on some systems where configure will not decide to define it.
18331    if (defundef == "undef") {
18332      print "/*", prefix defundef, macro, "*/"
18333      next
18334    }
18335  }
18336}
18337{ print }
18338_ACAWK
18339_ACEOF
18340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18341  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18342fi # test -n "$CONFIG_HEADERS"
18343
18344
18345eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18346shift
18347for ac_tag
18348do
18349  case $ac_tag in
18350  :[FHLC]) ac_mode=$ac_tag; continue;;
18351  esac
18352  case $ac_mode$ac_tag in
18353  :[FHL]*:*);;
18354  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18355  :[FH]-) ac_tag=-:-;;
18356  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18357  esac
18358  ac_save_IFS=$IFS
18359  IFS=:
18360  set x $ac_tag
18361  IFS=$ac_save_IFS
18362  shift
18363  ac_file=$1
18364  shift
18365
18366  case $ac_mode in
18367  :L) ac_source=$1;;
18368  :[FH])
18369    ac_file_inputs=
18370    for ac_f
18371    do
18372      case $ac_f in
18373      -) ac_f="$ac_tmp/stdin";;
18374      *) # Look for the file first in the build tree, then in the source tree
18375	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18376	 # because $ac_f cannot contain `:'.
18377	 test -f "$ac_f" ||
18378	   case $ac_f in
18379	   [\\/$]*) false;;
18380	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18381	   esac ||
18382	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18383      esac
18384      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18385      as_fn_append ac_file_inputs " '$ac_f'"
18386    done
18387
18388    # Let's still pretend it is `configure' which instantiates (i.e., don't
18389    # use $as_me), people would be surprised to read:
18390    #    /* config.h.  Generated by config.status.  */
18391    configure_input='Generated from '`
18392	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18393	`' by configure.'
18394    if test x"$ac_file" != x-; then
18395      configure_input="$ac_file.  $configure_input"
18396      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18397$as_echo "$as_me: creating $ac_file" >&6;}
18398    fi
18399    # Neutralize special characters interpreted by sed in replacement strings.
18400    case $configure_input in #(
18401    *\&* | *\|* | *\\* )
18402       ac_sed_conf_input=`$as_echo "$configure_input" |
18403       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18404    *) ac_sed_conf_input=$configure_input;;
18405    esac
18406
18407    case $ac_tag in
18408    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18409      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18410    esac
18411    ;;
18412  esac
18413
18414  ac_dir=`$as_dirname -- "$ac_file" ||
18415$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18416	 X"$ac_file" : 'X\(//\)[^/]' \| \
18417	 X"$ac_file" : 'X\(//\)$' \| \
18418	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18419$as_echo X"$ac_file" |
18420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18421	    s//\1/
18422	    q
18423	  }
18424	  /^X\(\/\/\)[^/].*/{
18425	    s//\1/
18426	    q
18427	  }
18428	  /^X\(\/\/\)$/{
18429	    s//\1/
18430	    q
18431	  }
18432	  /^X\(\/\).*/{
18433	    s//\1/
18434	    q
18435	  }
18436	  s/.*/./; q'`
18437  as_dir="$ac_dir"; as_fn_mkdir_p
18438  ac_builddir=.
18439
18440case "$ac_dir" in
18441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18442*)
18443  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18444  # A ".." for each directory in $ac_dir_suffix.
18445  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18446  case $ac_top_builddir_sub in
18447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18449  esac ;;
18450esac
18451ac_abs_top_builddir=$ac_pwd
18452ac_abs_builddir=$ac_pwd$ac_dir_suffix
18453# for backward compatibility:
18454ac_top_builddir=$ac_top_build_prefix
18455
18456case $srcdir in
18457  .)  # We are building in place.
18458    ac_srcdir=.
18459    ac_top_srcdir=$ac_top_builddir_sub
18460    ac_abs_top_srcdir=$ac_pwd ;;
18461  [\\/]* | ?:[\\/]* )  # Absolute name.
18462    ac_srcdir=$srcdir$ac_dir_suffix;
18463    ac_top_srcdir=$srcdir
18464    ac_abs_top_srcdir=$srcdir ;;
18465  *) # Relative name.
18466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18467    ac_top_srcdir=$ac_top_build_prefix$srcdir
18468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18469esac
18470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18471
18472
18473  case $ac_mode in
18474  :F)
18475  #
18476  # CONFIG_FILE
18477  #
18478
18479  case $INSTALL in
18480  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18481  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18482  esac
18483  ac_MKDIR_P=$MKDIR_P
18484  case $MKDIR_P in
18485  [\\/$]* | ?:[\\/]* ) ;;
18486  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18487  esac
18488_ACEOF
18489
18490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18491# If the template does not know about datarootdir, expand it.
18492# FIXME: This hack should be removed a few years after 2.60.
18493ac_datarootdir_hack=; ac_datarootdir_seen=
18494ac_sed_dataroot='
18495/datarootdir/ {
18496  p
18497  q
18498}
18499/@datadir@/p
18500/@docdir@/p
18501/@infodir@/p
18502/@localedir@/p
18503/@mandir@/p'
18504case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18505*datarootdir*) ac_datarootdir_seen=yes;;
18506*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18508$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18509_ACEOF
18510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18511  ac_datarootdir_hack='
18512  s&@datadir@&$datadir&g
18513  s&@docdir@&$docdir&g
18514  s&@infodir@&$infodir&g
18515  s&@localedir@&$localedir&g
18516  s&@mandir@&$mandir&g
18517  s&\\\${datarootdir}&$datarootdir&g' ;;
18518esac
18519_ACEOF
18520
18521# Neutralize VPATH when `$srcdir' = `.'.
18522# Shell code in configure.ac might set extrasub.
18523# FIXME: do we really want to maintain this feature?
18524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18525ac_sed_extra="$ac_vpsub
18526$extrasub
18527_ACEOF
18528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529:t
18530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18531s|@configure_input@|$ac_sed_conf_input|;t t
18532s&@top_builddir@&$ac_top_builddir_sub&;t t
18533s&@top_build_prefix@&$ac_top_build_prefix&;t t
18534s&@srcdir@&$ac_srcdir&;t t
18535s&@abs_srcdir@&$ac_abs_srcdir&;t t
18536s&@top_srcdir@&$ac_top_srcdir&;t t
18537s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18538s&@builddir@&$ac_builddir&;t t
18539s&@abs_builddir@&$ac_abs_builddir&;t t
18540s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18541s&@INSTALL@&$ac_INSTALL&;t t
18542s&@MKDIR_P@&$ac_MKDIR_P&;t t
18543$ac_datarootdir_hack
18544"
18545eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18546  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18547
18548test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18549  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18550  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18551      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18552  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18553which seems to be undefined.  Please make sure it is defined" >&5
18554$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18555which seems to be undefined.  Please make sure it is defined" >&2;}
18556
18557  rm -f "$ac_tmp/stdin"
18558  case $ac_file in
18559  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18560  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18561  esac \
18562  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18563 ;;
18564  :H)
18565  #
18566  # CONFIG_HEADER
18567  #
18568  if test x"$ac_file" != x-; then
18569    {
18570      $as_echo "/* $configure_input  */" \
18571      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18572    } >"$ac_tmp/config.h" \
18573      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18574    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18575      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18576$as_echo "$as_me: $ac_file is unchanged" >&6;}
18577    else
18578      rm -f "$ac_file"
18579      mv "$ac_tmp/config.h" "$ac_file" \
18580	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18581    fi
18582  else
18583    $as_echo "/* $configure_input  */" \
18584      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18585      || as_fn_error $? "could not create -" "$LINENO" 5
18586  fi
18587# Compute "$ac_file"'s index in $config_headers.
18588_am_arg="$ac_file"
18589_am_stamp_count=1
18590for _am_header in $config_headers :; do
18591  case $_am_header in
18592    $_am_arg | $_am_arg:* )
18593      break ;;
18594    * )
18595      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18596  esac
18597done
18598echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18599$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18600	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18601	 X"$_am_arg" : 'X\(//\)$' \| \
18602	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18603$as_echo X"$_am_arg" |
18604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18605	    s//\1/
18606	    q
18607	  }
18608	  /^X\(\/\/\)[^/].*/{
18609	    s//\1/
18610	    q
18611	  }
18612	  /^X\(\/\/\)$/{
18613	    s//\1/
18614	    q
18615	  }
18616	  /^X\(\/\).*/{
18617	    s//\1/
18618	    q
18619	  }
18620	  s/.*/./; q'`/stamp-h$_am_stamp_count
18621 ;;
18622
18623  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18624$as_echo "$as_me: executing $ac_file commands" >&6;}
18625 ;;
18626  esac
18627
18628
18629  case $ac_file$ac_mode in
18630    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18631  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18632  # are listed without --file.  Let's play safe and only enable the eval
18633  # if we detect the quoting.
18634  case $CONFIG_FILES in
18635  *\'*) eval set x "$CONFIG_FILES" ;;
18636  *)   set x $CONFIG_FILES ;;
18637  esac
18638  shift
18639  for mf
18640  do
18641    # Strip MF so we end up with the name of the file.
18642    mf=`echo "$mf" | sed -e 's/:.*$//'`
18643    # Check whether this is an Automake generated Makefile or not.
18644    # We used to match only the files named `Makefile.in', but
18645    # some people rename them; so instead we look at the file content.
18646    # Grep'ing the first line is not enough: some people post-process
18647    # each Makefile.in and add a new line on top of each file to say so.
18648    # Grep'ing the whole file is not good either: AIX grep has a line
18649    # limit of 2048, but all sed's we know have understand at least 4000.
18650    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18651      dirpart=`$as_dirname -- "$mf" ||
18652$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18653	 X"$mf" : 'X\(//\)[^/]' \| \
18654	 X"$mf" : 'X\(//\)$' \| \
18655	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18656$as_echo X"$mf" |
18657    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18658	    s//\1/
18659	    q
18660	  }
18661	  /^X\(\/\/\)[^/].*/{
18662	    s//\1/
18663	    q
18664	  }
18665	  /^X\(\/\/\)$/{
18666	    s//\1/
18667	    q
18668	  }
18669	  /^X\(\/\).*/{
18670	    s//\1/
18671	    q
18672	  }
18673	  s/.*/./; q'`
18674    else
18675      continue
18676    fi
18677    # Extract the definition of DEPDIR, am__include, and am__quote
18678    # from the Makefile without running `make'.
18679    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18680    test -z "$DEPDIR" && continue
18681    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18682    test -z "am__include" && continue
18683    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18684    # When using ansi2knr, U may be empty or an underscore; expand it
18685    U=`sed -n 's/^U = //p' < "$mf"`
18686    # Find all dependency output files, they are included files with
18687    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18688    # simplest approach to changing $(DEPDIR) to its actual value in the
18689    # expansion.
18690    for file in `sed -n "
18691      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18692	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18693      # Make sure the directory exists.
18694      test -f "$dirpart/$file" && continue
18695      fdir=`$as_dirname -- "$file" ||
18696$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697	 X"$file" : 'X\(//\)[^/]' \| \
18698	 X"$file" : 'X\(//\)$' \| \
18699	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18700$as_echo X"$file" |
18701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18702	    s//\1/
18703	    q
18704	  }
18705	  /^X\(\/\/\)[^/].*/{
18706	    s//\1/
18707	    q
18708	  }
18709	  /^X\(\/\/\)$/{
18710	    s//\1/
18711	    q
18712	  }
18713	  /^X\(\/\).*/{
18714	    s//\1/
18715	    q
18716	  }
18717	  s/.*/./; q'`
18718      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18719      # echo "creating $dirpart/$file"
18720      echo '# dummy' > "$dirpart/$file"
18721    done
18722  done
18723}
18724 ;;
18725    "libtool":C)
18726
18727    # See if we are running on zsh, and set the options which allow our
18728    # commands through without removal of \ escapes.
18729    if test -n "${ZSH_VERSION+set}" ; then
18730      setopt NO_GLOB_SUBST
18731    fi
18732
18733    cfgfile="${ofile}T"
18734    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18735    $RM "$cfgfile"
18736
18737    cat <<_LT_EOF >> "$cfgfile"
18738#! $SHELL
18739
18740# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18741# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18742# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18743# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18744#
18745#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18746#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18747#                 Inc.
18748#   Written by Gordon Matzigkeit, 1996
18749#
18750#   This file is part of GNU Libtool.
18751#
18752# GNU Libtool is free software; you can redistribute it and/or
18753# modify it under the terms of the GNU General Public License as
18754# published by the Free Software Foundation; either version 2 of
18755# the License, or (at your option) any later version.
18756#
18757# As a special exception to the GNU General Public License,
18758# if you distribute this file as part of a program or library that
18759# is built using GNU Libtool, you may include this file under the
18760# same distribution terms that you use for the rest of that program.
18761#
18762# GNU Libtool is distributed in the hope that it will be useful,
18763# but WITHOUT ANY WARRANTY; without even the implied warranty of
18764# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18765# GNU General Public License for more details.
18766#
18767# You should have received a copy of the GNU General Public License
18768# along with GNU Libtool; see the file COPYING.  If not, a copy
18769# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18770# obtained by writing to the Free Software Foundation, Inc.,
18771# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18772
18773
18774# The names of the tagged configurations supported by this script.
18775available_tags="CXX "
18776
18777# ### BEGIN LIBTOOL CONFIG
18778
18779# Which release of libtool.m4 was used?
18780macro_version=$macro_version
18781macro_revision=$macro_revision
18782
18783# Whether or not to build shared libraries.
18784build_libtool_libs=$enable_shared
18785
18786# Whether or not to build static libraries.
18787build_old_libs=$enable_static
18788
18789# What type of objects to build.
18790pic_mode=$pic_mode
18791
18792# Whether or not to optimize for fast installation.
18793fast_install=$enable_fast_install
18794
18795# Shell to use when invoking shell scripts.
18796SHELL=$lt_SHELL
18797
18798# An echo program that protects backslashes.
18799ECHO=$lt_ECHO
18800
18801# The host system.
18802host_alias=$host_alias
18803host=$host
18804host_os=$host_os
18805
18806# The build system.
18807build_alias=$build_alias
18808build=$build
18809build_os=$build_os
18810
18811# A sed program that does not truncate output.
18812SED=$lt_SED
18813
18814# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18815Xsed="\$SED -e 1s/^X//"
18816
18817# A grep program that handles long lines.
18818GREP=$lt_GREP
18819
18820# An ERE matcher.
18821EGREP=$lt_EGREP
18822
18823# A literal string matcher.
18824FGREP=$lt_FGREP
18825
18826# A BSD- or MS-compatible name lister.
18827NM=$lt_NM
18828
18829# Whether we need soft or hard links.
18830LN_S=$lt_LN_S
18831
18832# What is the maximum length of a command?
18833max_cmd_len=$max_cmd_len
18834
18835# Object file suffix (normally "o").
18836objext=$ac_objext
18837
18838# Executable file suffix (normally "").
18839exeext=$exeext
18840
18841# whether the shell understands "unset".
18842lt_unset=$lt_unset
18843
18844# turn spaces into newlines.
18845SP2NL=$lt_lt_SP2NL
18846
18847# turn newlines into spaces.
18848NL2SP=$lt_lt_NL2SP
18849
18850# convert \$build file names to \$host format.
18851to_host_file_cmd=$lt_cv_to_host_file_cmd
18852
18853# convert \$build files to toolchain format.
18854to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18855
18856# An object symbol dumper.
18857OBJDUMP=$lt_OBJDUMP
18858
18859# Method to check whether dependent libraries are shared objects.
18860deplibs_check_method=$lt_deplibs_check_method
18861
18862# Command to use when deplibs_check_method = "file_magic".
18863file_magic_cmd=$lt_file_magic_cmd
18864
18865# How to find potential files when deplibs_check_method = "file_magic".
18866file_magic_glob=$lt_file_magic_glob
18867
18868# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18869want_nocaseglob=$lt_want_nocaseglob
18870
18871# DLL creation program.
18872DLLTOOL=$lt_DLLTOOL
18873
18874# Command to associate shared and link libraries.
18875sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18876
18877# The archiver.
18878AR=$lt_AR
18879
18880# Flags to create an archive.
18881AR_FLAGS=$lt_AR_FLAGS
18882
18883# How to feed a file listing to the archiver.
18884archiver_list_spec=$lt_archiver_list_spec
18885
18886# A symbol stripping program.
18887STRIP=$lt_STRIP
18888
18889# Commands used to install an old-style archive.
18890RANLIB=$lt_RANLIB
18891old_postinstall_cmds=$lt_old_postinstall_cmds
18892old_postuninstall_cmds=$lt_old_postuninstall_cmds
18893
18894# Whether to use a lock for old archive extraction.
18895lock_old_archive_extraction=$lock_old_archive_extraction
18896
18897# A C compiler.
18898LTCC=$lt_CC
18899
18900# LTCC compiler flags.
18901LTCFLAGS=$lt_CFLAGS
18902
18903# Take the output of nm and produce a listing of raw symbols and C names.
18904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18905
18906# Transform the output of nm in a proper C declaration.
18907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18908
18909# Transform the output of nm in a C name address pair.
18910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18911
18912# Transform the output of nm in a C name address pair when lib prefix is needed.
18913global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18914
18915# Specify filename containing input files for \$NM.
18916nm_file_list_spec=$lt_nm_file_list_spec
18917
18918# The root where to search for dependent libraries,and in which our libraries should be installed.
18919lt_sysroot=$lt_sysroot
18920
18921# The name of the directory that contains temporary libtool files.
18922objdir=$objdir
18923
18924# Used to examine libraries when file_magic_cmd begins with "file".
18925MAGIC_CMD=$MAGIC_CMD
18926
18927# Must we lock files when doing compilation?
18928need_locks=$lt_need_locks
18929
18930# Manifest tool.
18931MANIFEST_TOOL=$lt_MANIFEST_TOOL
18932
18933# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18934DSYMUTIL=$lt_DSYMUTIL
18935
18936# Tool to change global to local symbols on Mac OS X.
18937NMEDIT=$lt_NMEDIT
18938
18939# Tool to manipulate fat objects and archives on Mac OS X.
18940LIPO=$lt_LIPO
18941
18942# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18943OTOOL=$lt_OTOOL
18944
18945# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18946OTOOL64=$lt_OTOOL64
18947
18948# Old archive suffix (normally "a").
18949libext=$libext
18950
18951# Shared library suffix (normally ".so").
18952shrext_cmds=$lt_shrext_cmds
18953
18954# The commands to extract the exported symbol list from a shared archive.
18955extract_expsyms_cmds=$lt_extract_expsyms_cmds
18956
18957# Variables whose values should be saved in libtool wrapper scripts and
18958# restored at link time.
18959variables_saved_for_relink=$lt_variables_saved_for_relink
18960
18961# Do we need the "lib" prefix for modules?
18962need_lib_prefix=$need_lib_prefix
18963
18964# Do we need a version for libraries?
18965need_version=$need_version
18966
18967# Library versioning type.
18968version_type=$version_type
18969
18970# Shared library runtime path variable.
18971runpath_var=$runpath_var
18972
18973# Shared library path variable.
18974shlibpath_var=$shlibpath_var
18975
18976# Is shlibpath searched before the hard-coded library search path?
18977shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18978
18979# Format of library name prefix.
18980libname_spec=$lt_libname_spec
18981
18982# List of archive names.  First name is the real one, the rest are links.
18983# The last name is the one that the linker finds with -lNAME
18984library_names_spec=$lt_library_names_spec
18985
18986# The coded name of the library, if different from the real name.
18987soname_spec=$lt_soname_spec
18988
18989# Permission mode override for installation of shared libraries.
18990install_override_mode=$lt_install_override_mode
18991
18992# Command to use after installation of a shared archive.
18993postinstall_cmds=$lt_postinstall_cmds
18994
18995# Command to use after uninstallation of a shared archive.
18996postuninstall_cmds=$lt_postuninstall_cmds
18997
18998# Commands used to finish a libtool library installation in a directory.
18999finish_cmds=$lt_finish_cmds
19000
19001# As "finish_cmds", except a single script fragment to be evaled but
19002# not shown.
19003finish_eval=$lt_finish_eval
19004
19005# Whether we should hardcode library paths into libraries.
19006hardcode_into_libs=$hardcode_into_libs
19007
19008# Compile-time system search path for libraries.
19009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19010
19011# Run-time system search path for libraries.
19012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19013
19014# Whether dlopen is supported.
19015dlopen_support=$enable_dlopen
19016
19017# Whether dlopen of programs is supported.
19018dlopen_self=$enable_dlopen_self
19019
19020# Whether dlopen of statically linked programs is supported.
19021dlopen_self_static=$enable_dlopen_self_static
19022
19023# Commands to strip libraries.
19024old_striplib=$lt_old_striplib
19025striplib=$lt_striplib
19026
19027
19028# The linker used to build libraries.
19029LD=$lt_LD
19030
19031# How to create reloadable object files.
19032reload_flag=$lt_reload_flag
19033reload_cmds=$lt_reload_cmds
19034
19035# Commands used to build an old-style archive.
19036old_archive_cmds=$lt_old_archive_cmds
19037
19038# A language specific compiler.
19039CC=$lt_compiler
19040
19041# Is the compiler the GNU compiler?
19042with_gcc=$GCC
19043
19044# Compiler flag to turn off builtin functions.
19045no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19046
19047# Additional compiler flags for building library objects.
19048pic_flag=$lt_lt_prog_compiler_pic
19049
19050# How to pass a linker flag through the compiler.
19051wl=$lt_lt_prog_compiler_wl
19052
19053# Compiler flag to prevent dynamic linking.
19054link_static_flag=$lt_lt_prog_compiler_static
19055
19056# Does compiler simultaneously support -c and -o options?
19057compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19058
19059# Whether or not to add -lc for building shared libraries.
19060build_libtool_need_lc=$archive_cmds_need_lc
19061
19062# Whether or not to disallow shared libs when runtime libs are static.
19063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19064
19065# Compiler flag to allow reflexive dlopens.
19066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19067
19068# Compiler flag to generate shared objects directly from archives.
19069whole_archive_flag_spec=$lt_whole_archive_flag_spec
19070
19071# Whether the compiler copes with passing no objects directly.
19072compiler_needs_object=$lt_compiler_needs_object
19073
19074# Create an old-style archive from a shared archive.
19075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19076
19077# Create a temporary old-style archive to link instead of a shared archive.
19078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19079
19080# Commands used to build a shared archive.
19081archive_cmds=$lt_archive_cmds
19082archive_expsym_cmds=$lt_archive_expsym_cmds
19083
19084# Commands used to build a loadable module if different from building
19085# a shared archive.
19086module_cmds=$lt_module_cmds
19087module_expsym_cmds=$lt_module_expsym_cmds
19088
19089# Whether we are building with GNU ld or not.
19090with_gnu_ld=$lt_with_gnu_ld
19091
19092# Flag that allows shared libraries with undefined symbols to be built.
19093allow_undefined_flag=$lt_allow_undefined_flag
19094
19095# Flag that enforces no undefined symbols.
19096no_undefined_flag=$lt_no_undefined_flag
19097
19098# Flag to hardcode \$libdir into a binary during linking.
19099# This must work even if \$libdir does not exist
19100hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19101
19102# If ld is used when linking, flag to hardcode \$libdir into a binary
19103# during linking.  This must work even if \$libdir does not exist.
19104hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19105
19106# Whether we need a single "-rpath" flag with a separated argument.
19107hardcode_libdir_separator=$lt_hardcode_libdir_separator
19108
19109# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19110# DIR into the resulting binary.
19111hardcode_direct=$hardcode_direct
19112
19113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19114# DIR into the resulting binary and the resulting library dependency is
19115# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19116# library is relocated.
19117hardcode_direct_absolute=$hardcode_direct_absolute
19118
19119# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19120# into the resulting binary.
19121hardcode_minus_L=$hardcode_minus_L
19122
19123# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19124# into the resulting binary.
19125hardcode_shlibpath_var=$hardcode_shlibpath_var
19126
19127# Set to "yes" if building a shared library automatically hardcodes DIR
19128# into the library and all subsequent libraries and executables linked
19129# against it.
19130hardcode_automatic=$hardcode_automatic
19131
19132# Set to yes if linker adds runtime paths of dependent libraries
19133# to runtime path list.
19134inherit_rpath=$inherit_rpath
19135
19136# Whether libtool must link a program against all its dependency libraries.
19137link_all_deplibs=$link_all_deplibs
19138
19139# Set to "yes" if exported symbols are required.
19140always_export_symbols=$always_export_symbols
19141
19142# The commands to list exported symbols.
19143export_symbols_cmds=$lt_export_symbols_cmds
19144
19145# Symbols that should not be listed in the preloaded symbols.
19146exclude_expsyms=$lt_exclude_expsyms
19147
19148# Symbols that must always be exported.
19149include_expsyms=$lt_include_expsyms
19150
19151# Commands necessary for linking programs (against libraries) with templates.
19152prelink_cmds=$lt_prelink_cmds
19153
19154# Commands necessary for finishing linking programs.
19155postlink_cmds=$lt_postlink_cmds
19156
19157# Specify filename containing input files.
19158file_list_spec=$lt_file_list_spec
19159
19160# How to hardcode a shared library path into an executable.
19161hardcode_action=$hardcode_action
19162
19163# The directories searched by this compiler when creating a shared library.
19164compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19165
19166# Dependencies to place before and after the objects being linked to
19167# create a shared library.
19168predep_objects=$lt_predep_objects
19169postdep_objects=$lt_postdep_objects
19170predeps=$lt_predeps
19171postdeps=$lt_postdeps
19172
19173# The library search path used internally by the compiler when linking
19174# a shared library.
19175compiler_lib_search_path=$lt_compiler_lib_search_path
19176
19177# ### END LIBTOOL CONFIG
19178
19179_LT_EOF
19180
19181  case $host_os in
19182  aix3*)
19183    cat <<\_LT_EOF >> "$cfgfile"
19184# AIX sometimes has problems with the GCC collect2 program.  For some
19185# reason, if we set the COLLECT_NAMES environment variable, the problems
19186# vanish in a puff of smoke.
19187if test "X${COLLECT_NAMES+set}" != Xset; then
19188  COLLECT_NAMES=
19189  export COLLECT_NAMES
19190fi
19191_LT_EOF
19192    ;;
19193  esac
19194
19195
19196ltmain="$ac_aux_dir/ltmain.sh"
19197
19198
19199  # We use sed instead of cat because bash on DJGPP gets confused if
19200  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19201  # text mode, it properly converts lines to CR/LF.  This bash problem
19202  # is reportedly fixed, but why not run on old versions too?
19203  sed '$q' "$ltmain" >> "$cfgfile" \
19204     || (rm -f "$cfgfile"; exit 1)
19205
19206  if test x"$xsi_shell" = xyes; then
19207  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19208func_dirname ()\
19209{\
19210\    case ${1} in\
19211\      */*) func_dirname_result="${1%/*}${2}" ;;\
19212\      *  ) func_dirname_result="${3}" ;;\
19213\    esac\
19214} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19215  && mv -f "$cfgfile.tmp" "$cfgfile" \
19216    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19217test 0 -eq $? || _lt_function_replace_fail=:
19218
19219
19220  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19221func_basename ()\
19222{\
19223\    func_basename_result="${1##*/}"\
19224} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19225  && mv -f "$cfgfile.tmp" "$cfgfile" \
19226    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19227test 0 -eq $? || _lt_function_replace_fail=:
19228
19229
19230  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19231func_dirname_and_basename ()\
19232{\
19233\    case ${1} in\
19234\      */*) func_dirname_result="${1%/*}${2}" ;;\
19235\      *  ) func_dirname_result="${3}" ;;\
19236\    esac\
19237\    func_basename_result="${1##*/}"\
19238} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19239  && mv -f "$cfgfile.tmp" "$cfgfile" \
19240    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19241test 0 -eq $? || _lt_function_replace_fail=:
19242
19243
19244  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19245func_stripname ()\
19246{\
19247\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19248\    # positional parameters, so assign one to ordinary parameter first.\
19249\    func_stripname_result=${3}\
19250\    func_stripname_result=${func_stripname_result#"${1}"}\
19251\    func_stripname_result=${func_stripname_result%"${2}"}\
19252} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19253  && mv -f "$cfgfile.tmp" "$cfgfile" \
19254    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19255test 0 -eq $? || _lt_function_replace_fail=:
19256
19257
19258  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19259func_split_long_opt ()\
19260{\
19261\    func_split_long_opt_name=${1%%=*}\
19262\    func_split_long_opt_arg=${1#*=}\
19263} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19264  && mv -f "$cfgfile.tmp" "$cfgfile" \
19265    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19266test 0 -eq $? || _lt_function_replace_fail=:
19267
19268
19269  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19270func_split_short_opt ()\
19271{\
19272\    func_split_short_opt_arg=${1#??}\
19273\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19274} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19275  && mv -f "$cfgfile.tmp" "$cfgfile" \
19276    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19277test 0 -eq $? || _lt_function_replace_fail=:
19278
19279
19280  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19281func_lo2o ()\
19282{\
19283\    case ${1} in\
19284\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19285\      *)    func_lo2o_result=${1} ;;\
19286\    esac\
19287} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19288  && mv -f "$cfgfile.tmp" "$cfgfile" \
19289    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19290test 0 -eq $? || _lt_function_replace_fail=:
19291
19292
19293  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19294func_xform ()\
19295{\
19296    func_xform_result=${1%.*}.lo\
19297} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19298  && mv -f "$cfgfile.tmp" "$cfgfile" \
19299    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19300test 0 -eq $? || _lt_function_replace_fail=:
19301
19302
19303  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19304func_arith ()\
19305{\
19306    func_arith_result=$(( $* ))\
19307} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19308  && mv -f "$cfgfile.tmp" "$cfgfile" \
19309    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19310test 0 -eq $? || _lt_function_replace_fail=:
19311
19312
19313  sed -e '/^func_len ()$/,/^} # func_len /c\
19314func_len ()\
19315{\
19316    func_len_result=${#1}\
19317} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19318  && mv -f "$cfgfile.tmp" "$cfgfile" \
19319    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19320test 0 -eq $? || _lt_function_replace_fail=:
19321
19322fi
19323
19324if test x"$lt_shell_append" = xyes; then
19325  sed -e '/^func_append ()$/,/^} # func_append /c\
19326func_append ()\
19327{\
19328    eval "${1}+=\\${2}"\
19329} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19330  && mv -f "$cfgfile.tmp" "$cfgfile" \
19331    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19332test 0 -eq $? || _lt_function_replace_fail=:
19333
19334
19335  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19336func_append_quoted ()\
19337{\
19338\    func_quote_for_eval "${2}"\
19339\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19340} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19341  && mv -f "$cfgfile.tmp" "$cfgfile" \
19342    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19343test 0 -eq $? || _lt_function_replace_fail=:
19344
19345
19346  # Save a `func_append' function call where possible by direct use of '+='
19347  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19348    && mv -f "$cfgfile.tmp" "$cfgfile" \
19349      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19350  test 0 -eq $? || _lt_function_replace_fail=:
19351else
19352  # Save a `func_append' function call even when '+=' is not available
19353  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19354    && mv -f "$cfgfile.tmp" "$cfgfile" \
19355      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19356  test 0 -eq $? || _lt_function_replace_fail=:
19357fi
19358
19359if test x"$_lt_function_replace_fail" = x":"; then
19360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19361$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19362fi
19363
19364
19365   mv -f "$cfgfile" "$ofile" ||
19366    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19367  chmod +x "$ofile"
19368
19369
19370    cat <<_LT_EOF >> "$ofile"
19371
19372# ### BEGIN LIBTOOL TAG CONFIG: CXX
19373
19374# The linker used to build libraries.
19375LD=$lt_LD_CXX
19376
19377# How to create reloadable object files.
19378reload_flag=$lt_reload_flag_CXX
19379reload_cmds=$lt_reload_cmds_CXX
19380
19381# Commands used to build an old-style archive.
19382old_archive_cmds=$lt_old_archive_cmds_CXX
19383
19384# A language specific compiler.
19385CC=$lt_compiler_CXX
19386
19387# Is the compiler the GNU compiler?
19388with_gcc=$GCC_CXX
19389
19390# Compiler flag to turn off builtin functions.
19391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19392
19393# Additional compiler flags for building library objects.
19394pic_flag=$lt_lt_prog_compiler_pic_CXX
19395
19396# How to pass a linker flag through the compiler.
19397wl=$lt_lt_prog_compiler_wl_CXX
19398
19399# Compiler flag to prevent dynamic linking.
19400link_static_flag=$lt_lt_prog_compiler_static_CXX
19401
19402# Does compiler simultaneously support -c and -o options?
19403compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19404
19405# Whether or not to add -lc for building shared libraries.
19406build_libtool_need_lc=$archive_cmds_need_lc_CXX
19407
19408# Whether or not to disallow shared libs when runtime libs are static.
19409allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19410
19411# Compiler flag to allow reflexive dlopens.
19412export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19413
19414# Compiler flag to generate shared objects directly from archives.
19415whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19416
19417# Whether the compiler copes with passing no objects directly.
19418compiler_needs_object=$lt_compiler_needs_object_CXX
19419
19420# Create an old-style archive from a shared archive.
19421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19422
19423# Create a temporary old-style archive to link instead of a shared archive.
19424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19425
19426# Commands used to build a shared archive.
19427archive_cmds=$lt_archive_cmds_CXX
19428archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19429
19430# Commands used to build a loadable module if different from building
19431# a shared archive.
19432module_cmds=$lt_module_cmds_CXX
19433module_expsym_cmds=$lt_module_expsym_cmds_CXX
19434
19435# Whether we are building with GNU ld or not.
19436with_gnu_ld=$lt_with_gnu_ld_CXX
19437
19438# Flag that allows shared libraries with undefined symbols to be built.
19439allow_undefined_flag=$lt_allow_undefined_flag_CXX
19440
19441# Flag that enforces no undefined symbols.
19442no_undefined_flag=$lt_no_undefined_flag_CXX
19443
19444# Flag to hardcode \$libdir into a binary during linking.
19445# This must work even if \$libdir does not exist
19446hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19447
19448# If ld is used when linking, flag to hardcode \$libdir into a binary
19449# during linking.  This must work even if \$libdir does not exist.
19450hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19451
19452# Whether we need a single "-rpath" flag with a separated argument.
19453hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19454
19455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19456# DIR into the resulting binary.
19457hardcode_direct=$hardcode_direct_CXX
19458
19459# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19460# DIR into the resulting binary and the resulting library dependency is
19461# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19462# library is relocated.
19463hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19464
19465# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19466# into the resulting binary.
19467hardcode_minus_L=$hardcode_minus_L_CXX
19468
19469# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19470# into the resulting binary.
19471hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19472
19473# Set to "yes" if building a shared library automatically hardcodes DIR
19474# into the library and all subsequent libraries and executables linked
19475# against it.
19476hardcode_automatic=$hardcode_automatic_CXX
19477
19478# Set to yes if linker adds runtime paths of dependent libraries
19479# to runtime path list.
19480inherit_rpath=$inherit_rpath_CXX
19481
19482# Whether libtool must link a program against all its dependency libraries.
19483link_all_deplibs=$link_all_deplibs_CXX
19484
19485# Set to "yes" if exported symbols are required.
19486always_export_symbols=$always_export_symbols_CXX
19487
19488# The commands to list exported symbols.
19489export_symbols_cmds=$lt_export_symbols_cmds_CXX
19490
19491# Symbols that should not be listed in the preloaded symbols.
19492exclude_expsyms=$lt_exclude_expsyms_CXX
19493
19494# Symbols that must always be exported.
19495include_expsyms=$lt_include_expsyms_CXX
19496
19497# Commands necessary for linking programs (against libraries) with templates.
19498prelink_cmds=$lt_prelink_cmds_CXX
19499
19500# Commands necessary for finishing linking programs.
19501postlink_cmds=$lt_postlink_cmds_CXX
19502
19503# Specify filename containing input files.
19504file_list_spec=$lt_file_list_spec_CXX
19505
19506# How to hardcode a shared library path into an executable.
19507hardcode_action=$hardcode_action_CXX
19508
19509# The directories searched by this compiler when creating a shared library.
19510compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19511
19512# Dependencies to place before and after the objects being linked to
19513# create a shared library.
19514predep_objects=$lt_predep_objects_CXX
19515postdep_objects=$lt_postdep_objects_CXX
19516predeps=$lt_predeps_CXX
19517postdeps=$lt_postdeps_CXX
19518
19519# The library search path used internally by the compiler when linking
19520# a shared library.
19521compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19522
19523# ### END LIBTOOL TAG CONFIG: CXX
19524_LT_EOF
19525
19526 ;;
19527    "default":C) chmod +x libusb-config ;;
19528
19529  esac
19530done # for ac_tag
19531
19532
19533as_fn_exit 0
19534_ACEOF
19535ac_clean_files=$ac_clean_files_save
19536
19537test $ac_write_fail = 0 ||
19538  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19539
19540
19541# configure is writing to config.log, and then calls config.status.
19542# config.status does its own redirection, appending to config.log.
19543# Unfortunately, on DOS this fails, as config.log is still kept open
19544# by configure, so config.status won't be able to write to it; its
19545# output is simply discarded.  So we exec the FD to /dev/null,
19546# effectively closing config.log, so it can be properly (re)opened and
19547# appended to by config.status.  When coming back to configure, we
19548# need to make the FD available again.
19549if test "$no_create" != yes; then
19550  ac_cs_success=:
19551  ac_config_status_args=
19552  test "$silent" = yes &&
19553    ac_config_status_args="$ac_config_status_args --quiet"
19554  exec 5>/dev/null
19555  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19556  exec 5>>config.log
19557  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19558  # would make configure fail if this is the last instruction.
19559  $ac_cs_success || as_fn_exit 1
19560fi
19561if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19562  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19563$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19564fi
19565
19566
19567