1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="include/portaudio.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632enable_option_checking=no
633ac_subst_vars='LTLIBOBJS
634LIBOBJS
635WITH_ASIO_FALSE
636WITH_ASIO_TRUE
637ENABLE_CXX_FALSE
638ENABLE_CXX_TRUE
639subdirs
640INCLUDES
641NASMOPT
642NASM
643DLL_LIBS
644THREAD_CFLAGS
645SHARED_FLAGS
646PADLL
647OTHER_OBJS
648LT_AGE
649LT_REVISION
650LT_CURRENT
651JACK_LIBS
652JACK_CFLAGS
653PKG_CONFIG_LIBDIR
654PKG_CONFIG_PATH
655PKG_CONFIG
656INSTALL_DATA
657INSTALL_SCRIPT
658INSTALL_PROGRAM
659CXXCPP
660CPP
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666MANIFEST_TOOL
667AWK
668RANLIB
669STRIP
670ac_ct_AR
671AR
672LN_S
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
678EGREP
679GREP
680SED
681LIBTOOL
682OBJDUMP
683DLLTOOL
684AS
685ac_ct_CXX
686CXXFLAGS
687CXX
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
695target_os
696target_vendor
697target_cpu
698target
699host_os
700host_vendor
701host_cpu
702host
703build_os
704build_vendor
705build_cpu
706build
707target_alias
708host_alias
709build_alias
710LIBS
711ECHO_T
712ECHO_N
713ECHO_C
714DEFS
715mandir
716localedir
717libdir
718psdir
719pdfdir
720dvidir
721htmldir
722infodir
723docdir
724oldincludedir
725includedir
726localstatedir
727sharedstatedir
728sysconfdir
729datadir
730datarootdir
731libexecdir
732sbindir
733bindir
734program_transform_name
735prefix
736exec_prefix
737PACKAGE_URL
738PACKAGE_BUGREPORT
739PACKAGE_STRING
740PACKAGE_VERSION
741PACKAGE_TARNAME
742PACKAGE_NAME
743PATH_SEPARATOR
744SHELL'
745ac_subst_files=''
746ac_user_opts='
747enable_option_checking
748with_alsa
749with_jack
750with_oss
751with_asihpi
752with_winapi
753with_asiodir
754with_dxdir
755enable_debug_output
756enable_cxx
757enable_mac_debug
758enable_mac_universal
759with_host_os
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767'
768      ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
776CXX
777CXXFLAGS
778CCC
779CPP
780CXXCPP
781PKG_CONFIG
782PKG_CONFIG_PATH
783PKG_CONFIG_LIBDIR
784JACK_CFLAGS
785JACK_LIBS'
786ac_subdirs_all='bindings/cpp'
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
815# (The list follows the same order as the GNU Coding Standards.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840  # If the previous option needs an argument, assign it.
841  if test -n "$ac_prev"; then
842    eval $ac_prev=\$ac_option
843    ac_prev=
844    continue
845  fi
846
847  case $ac_option in
848  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849  *=)   ac_optarg= ;;
850  *)    ac_optarg=yes ;;
851  esac
852
853  # Accept the important Cygnus configure options, so we can diagnose typos.
854
855  case $ac_dashdash$ac_option in
856  --)
857    ac_dashdash=yes ;;
858
859  -bindir | --bindir | --bindi | --bind | --bin | --bi)
860    ac_prev=bindir ;;
861  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862    bindir=$ac_optarg ;;
863
864  -build | --build | --buil | --bui | --bu)
865    ac_prev=build_alias ;;
866  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867    build_alias=$ac_optarg ;;
868
869  -cache-file | --cache-file | --cache-fil | --cache-fi \
870  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871    ac_prev=cache_file ;;
872  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874    cache_file=$ac_optarg ;;
875
876  --config-cache | -C)
877    cache_file=config.cache ;;
878
879  -datadir | --datadir | --datadi | --datad)
880    ac_prev=datadir ;;
881  -datadir=* | --datadir=* | --datadi=* | --datad=*)
882    datadir=$ac_optarg ;;
883
884  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885  | --dataroo | --dataro | --datar)
886    ac_prev=datarootdir ;;
887  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889    datarootdir=$ac_optarg ;;
890
891  -disable-* | --disable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      as_fn_error $? "invalid feature name: $ac_useropt"
896    ac_useropt_orig=$ac_useropt
897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898    case $ac_user_opts in
899      *"
900"enable_$ac_useropt"
901"*) ;;
902      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903	 ac_unrecognized_sep=', ';;
904    esac
905    eval enable_$ac_useropt=no ;;
906
907  -docdir | --docdir | --docdi | --doc | --do)
908    ac_prev=docdir ;;
909  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910    docdir=$ac_optarg ;;
911
912  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913    ac_prev=dvidir ;;
914  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915    dvidir=$ac_optarg ;;
916
917  -enable-* | --enable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=\$ac_optarg ;;
932
933  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935  | --exec | --exe | --ex)
936    ac_prev=exec_prefix ;;
937  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939  | --exec=* | --exe=* | --ex=*)
940    exec_prefix=$ac_optarg ;;
941
942  -gas | --gas | --ga | --g)
943    # Obsolete; use --with-gas.
944    with_gas=yes ;;
945
946  -help | --help | --hel | --he | -h)
947    ac_init_help=long ;;
948  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949    ac_init_help=recursive ;;
950  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951    ac_init_help=short ;;
952
953  -host | --host | --hos | --ho)
954    ac_prev=host_alias ;;
955  -host=* | --host=* | --hos=* | --ho=*)
956    host_alias=$ac_optarg ;;
957
958  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959    ac_prev=htmldir ;;
960  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961  | --ht=*)
962    htmldir=$ac_optarg ;;
963
964  -includedir | --includedir | --includedi | --included | --include \
965  | --includ | --inclu | --incl | --inc)
966    ac_prev=includedir ;;
967  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968  | --includ=* | --inclu=* | --incl=* | --inc=*)
969    includedir=$ac_optarg ;;
970
971  -infodir | --infodir | --infodi | --infod | --info | --inf)
972    ac_prev=infodir ;;
973  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974    infodir=$ac_optarg ;;
975
976  -libdir | --libdir | --libdi | --libd)
977    ac_prev=libdir ;;
978  -libdir=* | --libdir=* | --libdi=* | --libd=*)
979    libdir=$ac_optarg ;;
980
981  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982  | --libexe | --libex | --libe)
983    ac_prev=libexecdir ;;
984  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985  | --libexe=* | --libex=* | --libe=*)
986    libexecdir=$ac_optarg ;;
987
988  -localedir | --localedir | --localedi | --localed | --locale)
989    ac_prev=localedir ;;
990  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991    localedir=$ac_optarg ;;
992
993  -localstatedir | --localstatedir | --localstatedi | --localstated \
994  | --localstate | --localstat | --localsta | --localst | --locals)
995    ac_prev=localstatedir ;;
996  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998    localstatedir=$ac_optarg ;;
999
1000  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001    ac_prev=mandir ;;
1002  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003    mandir=$ac_optarg ;;
1004
1005  -nfp | --nfp | --nf)
1006    # Obsolete; use --without-fp.
1007    with_fp=no ;;
1008
1009  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010  | --no-cr | --no-c | -n)
1011    no_create=yes ;;
1012
1013  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015    no_recursion=yes ;;
1016
1017  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019  | --oldin | --oldi | --old | --ol | --o)
1020    ac_prev=oldincludedir ;;
1021  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024    oldincludedir=$ac_optarg ;;
1025
1026  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027    ac_prev=prefix ;;
1028  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029    prefix=$ac_optarg ;;
1030
1031  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032  | --program-pre | --program-pr | --program-p)
1033    ac_prev=program_prefix ;;
1034  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036    program_prefix=$ac_optarg ;;
1037
1038  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039  | --program-suf | --program-su | --program-s)
1040    ac_prev=program_suffix ;;
1041  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043    program_suffix=$ac_optarg ;;
1044
1045  -program-transform-name | --program-transform-name \
1046  | --program-transform-nam | --program-transform-na \
1047  | --program-transform-n | --program-transform- \
1048  | --program-transform | --program-transfor \
1049  | --program-transfo | --program-transf \
1050  | --program-trans | --program-tran \
1051  | --progr-tra | --program-tr | --program-t)
1052    ac_prev=program_transform_name ;;
1053  -program-transform-name=* | --program-transform-name=* \
1054  | --program-transform-nam=* | --program-transform-na=* \
1055  | --program-transform-n=* | --program-transform-=* \
1056  | --program-transform=* | --program-transfor=* \
1057  | --program-transfo=* | --program-transf=* \
1058  | --program-trans=* | --program-tran=* \
1059  | --progr-tra=* | --program-tr=* | --program-t=*)
1060    program_transform_name=$ac_optarg ;;
1061
1062  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063    ac_prev=pdfdir ;;
1064  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065    pdfdir=$ac_optarg ;;
1066
1067  -psdir | --psdir | --psdi | --psd | --ps)
1068    ac_prev=psdir ;;
1069  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070    psdir=$ac_optarg ;;
1071
1072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073  | -silent | --silent | --silen | --sile | --sil)
1074    silent=yes ;;
1075
1076  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077    ac_prev=sbindir ;;
1078  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079  | --sbi=* | --sb=*)
1080    sbindir=$ac_optarg ;;
1081
1082  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084  | --sharedst | --shareds | --shared | --share | --shar \
1085  | --sha | --sh)
1086    ac_prev=sharedstatedir ;;
1087  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090  | --sha=* | --sh=*)
1091    sharedstatedir=$ac_optarg ;;
1092
1093  -site | --site | --sit)
1094    ac_prev=site ;;
1095  -site=* | --site=* | --sit=*)
1096    site=$ac_optarg ;;
1097
1098  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099    ac_prev=srcdir ;;
1100  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101    srcdir=$ac_optarg ;;
1102
1103  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104  | --syscon | --sysco | --sysc | --sys | --sy)
1105    ac_prev=sysconfdir ;;
1106  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108    sysconfdir=$ac_optarg ;;
1109
1110  -target | --target | --targe | --targ | --tar | --ta | --t)
1111    ac_prev=target_alias ;;
1112  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113    target_alias=$ac_optarg ;;
1114
1115  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116    verbose=yes ;;
1117
1118  -version | --version | --versio | --versi | --vers | -V)
1119    ac_init_version=: ;;
1120
1121  -with-* | --with-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=\$ac_optarg ;;
1136
1137  -without-* | --without-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=no ;;
1152
1153  --x)
1154    # Obsolete; use --with-x.
1155    with_x=yes ;;
1156
1157  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158  | --x-incl | --x-inc | --x-in | --x-i)
1159    ac_prev=x_includes ;;
1160  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162    x_includes=$ac_optarg ;;
1163
1164  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166    ac_prev=x_libraries ;;
1167  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169    x_libraries=$ac_optarg ;;
1170
1171  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information"
1173    ;;
1174
1175  *=*)
1176    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177    # Reject names that are not valid shell variable names.
1178    case $ac_envvar in #(
1179      '' | [0-9]* | *[!_$as_cr_alnum]* )
1180      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181    esac
1182    eval $ac_envvar=\$ac_optarg
1183    export $ac_envvar ;;
1184
1185  *)
1186    # FIXME: should be removed in autoconf 3.0.
1187    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191    ;;
1192
1193  esac
1194done
1195
1196if test -n "$ac_prev"; then
1197  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198  as_fn_error $? "missing argument to $ac_option"
1199fi
1200
1201if test -n "$ac_unrecognized_opts"; then
1202  case $enable_option_checking in
1203    no) ;;
1204    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206  esac
1207fi
1208
1209# Check all directory arguments for consistency.
1210for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211		datadir sysconfdir sharedstatedir localstatedir includedir \
1212		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213		libdir localedir mandir
1214do
1215  eval ac_val=\$$ac_var
1216  # Remove trailing slashes.
1217  case $ac_val in
1218    */ )
1219      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220      eval $ac_var=\$ac_val;;
1221  esac
1222  # Be sure to have absolute directory names.
1223  case $ac_val in
1224    [\\/$]* | ?:[\\/]* )  continue;;
1225    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226  esac
1227  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239  if test "x$build_alias" = x; then
1240    cross_compiling=maybe
1241  elif test "x$build_alias" != "x$host_alias"; then
1242    cross_compiling=yes
1243  fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255  as_fn_error $? "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257  as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262  ac_srcdir_defaulted=yes
1263  # Try the directory containing this script, then the parent directory.
1264  ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266	 X"$as_myself" : 'X\(//\)[^/]' \| \
1267	 X"$as_myself" : 'X\(//\)$' \| \
1268	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)[^/].*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\).*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  s/.*/./; q'`
1287  srcdir=$ac_confdir
1288  if test ! -r "$srcdir/$ac_unique_file"; then
1289    srcdir=..
1290  fi
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301	pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304  srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_env_${ac_var}_value=\$${ac_var}
1315  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323  # Omit some internal or obsolete options to make the list less imposing.
1324  # This message is too long to be a string in the A/UX 3.1 sh.
1325  cat <<_ACEOF
1326\`configure' configures this package to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336  -h, --help              display this help and exit
1337      --help=short        display options specific to this package
1338      --help=recursive    display the short help of all the included packages
1339  -V, --version           display version information and exit
1340  -q, --quiet, --silent   do not print \`checking ...' messages
1341      --cache-file=FILE   cache test results in FILE [disabled]
1342  -C, --config-cache      alias for \`--cache-file=config.cache'
1343  -n, --no-create         do not create output files
1344      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347  --prefix=PREFIX         install architecture-independent files in PREFIX
1348                          [$ac_default_prefix]
1349  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                          [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360  --bindir=DIR            user executables [EPREFIX/bin]
1361  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366  --libdir=DIR            object code libraries [EPREFIX/lib]
1367  --includedir=DIR        C header files [PREFIX/include]
1368  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1375  --htmldir=DIR           html documentation [DOCDIR]
1376  --dvidir=DIR            dvi documentation [DOCDIR]
1377  --pdfdir=DIR            pdf documentation [DOCDIR]
1378  --psdir=DIR             ps documentation [DOCDIR]
1379_ACEOF
1380
1381  cat <<\_ACEOF
1382
1383System types:
1384  --build=BUILD     configure for building on BUILD [guessed]
1385  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386  --target=TARGET   configure for building compilers for TARGET [HOST]
1387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
1391
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-debug-output   Enable debug output [no]
1399  --enable-cxx            Enable C++ bindings [no]
1400  --enable-mac-debug      Enable Mac debug [no]
1401  --enable-mac-universal  Build Mac universal binaries [yes]
1402  --enable-shared[=PKGS]  build shared libraries [default=yes]
1403  --enable-static[=PKGS]  build static libraries [default=yes]
1404  --enable-fast-install[=PKGS]
1405                          optimize for fast installation [default=yes]
1406  --disable-libtool-lock  avoid locking (might break parallel builds)
1407
1408Optional Packages:
1409  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411  --with-alsa             Enable support for ALSA [autodetect]
1412  --with-jack             Enable support for JACK [autodetect]
1413  --with-oss              Enable support for OSS [autodetect]
1414  --with-asihpi           Enable support for ASIHPI [autodetect]
1415  --with-winapi           Select Windows API support
1416                          ([wmme|directx|asio|wasapi|wdmks][,...]) [wmme]
1417  --with-asiodir          ASIO directory [/usr/local/asiosdk2]
1418  --with-dxdir            DirectX directory [/usr/local/dx7sdk]
1419
1420  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1421                          both]
1422  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1423  --with-sysroot=DIR Search for dependent libraries within DIR
1424                        (or the compiler's sysroot if not specified).
1425
1426Some influential environment variables:
1427  CC          C compiler command
1428  CFLAGS      C compiler flags
1429  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1430              nonstandard directory <lib dir>
1431  LIBS        libraries to pass to the linker, e.g. -l<library>
1432  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433              you have headers in a nonstandard directory <include dir>
1434  CXX         C++ compiler command
1435  CXXFLAGS    C++ compiler flags
1436  CPP         C preprocessor
1437  CXXCPP      C++ preprocessor
1438  PKG_CONFIG  path to pkg-config utility
1439  PKG_CONFIG_PATH
1440              directories to add to pkg-config's search path
1441  PKG_CONFIG_LIBDIR
1442              path overriding pkg-config's built-in search path
1443  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1444  JACK_LIBS   linker flags for JACK, overriding pkg-config
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
1449Report bugs to the package provider.
1450_ACEOF
1451ac_status=$?
1452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455  # If there are subdirs, report their specific --help.
1456  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457    test -d "$ac_dir" ||
1458      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459      continue
1460    ac_builddir=.
1461
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466  # A ".." for each directory in $ac_dir_suffix.
1467  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468  case $ac_top_builddir_sub in
1469  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471  esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
1477
1478case $srcdir in
1479  .)  # We are building in place.
1480    ac_srcdir=.
1481    ac_top_srcdir=$ac_top_builddir_sub
1482    ac_abs_top_srcdir=$ac_pwd ;;
1483  [\\/]* | ?:[\\/]* )  # Absolute name.
1484    ac_srcdir=$srcdir$ac_dir_suffix;
1485    ac_top_srcdir=$srcdir
1486    ac_abs_top_srcdir=$srcdir ;;
1487  *) # Relative name.
1488    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489    ac_top_srcdir=$ac_top_build_prefix$srcdir
1490    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491esac
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494    cd "$ac_dir" || { ac_status=$?; continue; }
1495    # Check for guested configure.
1496    if test -f "$ac_srcdir/configure.gnu"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499    elif test -f "$ac_srcdir/configure"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure" --help=recursive
1502    else
1503      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504    fi || ac_status=$?
1505    cd "$ac_pwd" || { ac_status=$?; break; }
1506  done
1507fi
1508
1509test -n "$ac_init_help" && exit $ac_status
1510if $ac_init_version; then
1511  cat <<\_ACEOF
1512configure
1513generated by GNU Autoconf 2.69
1514
1515Copyright (C) 2012 Free Software Foundation, Inc.
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
1519  exit
1520fi
1521
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
1525
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
1530{
1531  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532  rm -f conftest.$ac_objext
1533  if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536  *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540  (eval "$ac_compile") 2>conftest.err
1541  ac_status=$?
1542  if test -s conftest.err; then
1543    grep -v '^ *+' conftest.err >conftest.er1
1544    cat conftest.er1 >&5
1545    mv -f conftest.er1 conftest.err
1546  fi
1547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548  test $ac_status = 0; } && {
1549	 test -z "$ac_c_werror_flag" ||
1550	 test ! -s conftest.err
1551       } && test -s conftest.$ac_objext; then :
1552  ac_retval=0
1553else
1554  $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557	ac_retval=1
1558fi
1559  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560  as_fn_set_status $ac_retval
1561
1562} # ac_fn_c_try_compile
1563
1564# ac_fn_cxx_try_compile LINENO
1565# ----------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_cxx_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_cxx_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595	ac_retval=1
1596fi
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_cxx_try_compile
1601
1602# ac_fn_c_try_link LINENO
1603# -----------------------
1604# Try to link conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_link ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  rm -f conftest.$ac_objext conftest$ac_exeext
1609  if { { ac_try="$ac_link"
1610case "(($ac_try" in
1611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612  *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616  (eval "$ac_link") 2>conftest.err
1617  ac_status=$?
1618  if test -s conftest.err; then
1619    grep -v '^ *+' conftest.err >conftest.er1
1620    cat conftest.er1 >&5
1621    mv -f conftest.er1 conftest.err
1622  fi
1623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624  test $ac_status = 0; } && {
1625	 test -z "$ac_c_werror_flag" ||
1626	 test ! -s conftest.err
1627       } && test -s conftest$ac_exeext && {
1628	 test "$cross_compiling" = yes ||
1629	 test -x conftest$ac_exeext
1630       }; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640  # interfere with the next link command; also delete a directory that is
1641  # left behind by Apple's compiler.  We do this before executing the actions.
1642  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_link
1647
1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists and can be compiled using the include files in
1651# INCLUDES, setting the cache variable VAR accordingly.
1652ac_fn_c_check_header_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if eval \${$3+:} false; then :
1658  $as_echo_n "(cached) " >&6
1659else
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666  eval "$3=yes"
1667else
1668  eval "$3=no"
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671fi
1672eval ac_res=\$$3
1673	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677} # ac_fn_c_check_header_compile
1678
1679# ac_fn_c_try_cpp LINENO
1680# ----------------------
1681# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_cpp ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  if { { ac_try="$ac_cpp conftest.$ac_ext"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } > conftest.i && {
1701	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       }; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709    ac_retval=1
1710fi
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_cpp
1715
1716# ac_fn_c_try_run LINENO
1717# ----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719# that executables *can* be run.
1720ac_fn_c_try_run ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>&5
1731  ac_status=$?
1732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734  { { case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_try") 2>&5
1741  ac_status=$?
1742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743  test $ac_status = 0; }; }; then :
1744  ac_retval=0
1745else
1746  $as_echo "$as_me: program exited with status $ac_status" >&5
1747       $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750       ac_retval=$ac_status
1751fi
1752  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754  as_fn_set_status $ac_retval
1755
1756} # ac_fn_c_try_run
1757
1758# ac_fn_c_check_func LINENO FUNC VAR
1759# ----------------------------------
1760# Tests whether FUNC exists, setting the cache variable VAR accordingly
1761ac_fn_c_check_func ()
1762{
1763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767  $as_echo_n "(cached) " >&6
1768else
1769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1773#define $2 innocuous_$2
1774
1775/* System header to define __stub macros and hopefully few prototypes,
1776    which can conflict with char $2 (); below.
1777    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778    <limits.h> exists even on freestanding compilers.  */
1779
1780#ifdef __STDC__
1781# include <limits.h>
1782#else
1783# include <assert.h>
1784#endif
1785
1786#undef $2
1787
1788/* Override any GCC internal prototype to avoid an error.
1789   Use char because int might match the return type of a GCC
1790   builtin and then its argument prototype would still apply.  */
1791#ifdef __cplusplus
1792extern "C"
1793#endif
1794char $2 ();
1795/* The GNU C library defines this for functions which it implements
1796    to always fail with ENOSYS.  Some functions are actually named
1797    something starting with __ and the normal name is an alias.  */
1798#if defined __stub_$2 || defined __stub___$2
1799choke me
1800#endif
1801
1802int
1803main ()
1804{
1805return $2 ();
1806  ;
1807  return 0;
1808}
1809_ACEOF
1810if ac_fn_c_try_link "$LINENO"; then :
1811  eval "$3=yes"
1812else
1813  eval "$3=no"
1814fi
1815rm -f core conftest.err conftest.$ac_objext \
1816    conftest$ac_exeext conftest.$ac_ext
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_func
1824
1825# ac_fn_cxx_try_cpp LINENO
1826# ------------------------
1827# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_cxx_try_cpp ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  if { { ac_try="$ac_cpp conftest.$ac_ext"
1832case "(($ac_try" in
1833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834  *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839  ac_status=$?
1840  if test -s conftest.err; then
1841    grep -v '^ *+' conftest.err >conftest.er1
1842    cat conftest.er1 >&5
1843    mv -f conftest.er1 conftest.err
1844  fi
1845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; } > conftest.i && {
1847	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848	 test ! -s conftest.err
1849       }; then :
1850  ac_retval=0
1851else
1852  $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855    ac_retval=1
1856fi
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858  as_fn_set_status $ac_retval
1859
1860} # ac_fn_cxx_try_cpp
1861
1862# ac_fn_cxx_try_link LINENO
1863# -------------------------
1864# Try to link conftest.$ac_ext, and return whether this succeeded.
1865ac_fn_cxx_try_link ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  rm -f conftest.$ac_objext conftest$ac_exeext
1869  if { { ac_try="$ac_link"
1870case "(($ac_try" in
1871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872  *) ac_try_echo=$ac_try;;
1873esac
1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875$as_echo "$ac_try_echo"; } >&5
1876  (eval "$ac_link") 2>conftest.err
1877  ac_status=$?
1878  if test -s conftest.err; then
1879    grep -v '^ *+' conftest.err >conftest.er1
1880    cat conftest.er1 >&5
1881    mv -f conftest.er1 conftest.err
1882  fi
1883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884  test $ac_status = 0; } && {
1885	 test -z "$ac_cxx_werror_flag" ||
1886	 test ! -s conftest.err
1887       } && test -s conftest$ac_exeext && {
1888	 test "$cross_compiling" = yes ||
1889	 test -x conftest$ac_exeext
1890       }; then :
1891  ac_retval=0
1892else
1893  $as_echo "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896	ac_retval=1
1897fi
1898  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900  # interfere with the next link command; also delete a directory that is
1901  # left behind by Apple's compiler.  We do this before executing the actions.
1902  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904  as_fn_set_status $ac_retval
1905
1906} # ac_fn_cxx_try_link
1907
1908# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909# -------------------------------------------------------
1910# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911# the include files in INCLUDES and setting the cache variable VAR
1912# accordingly.
1913ac_fn_c_check_header_mongrel ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  if eval \${$3+:} false; then :
1917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval \${$3+:} false; then :
1920  $as_echo_n "(cached) " >&6
1921fi
1922eval ac_res=\$$3
1923	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; }
1925else
1926  # Is the header compilable?
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928$as_echo_n "checking $2 usability... " >&6; }
1929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931$4
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935  ac_header_compiler=yes
1936else
1937  ac_header_compiler=no
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941$as_echo "$ac_header_compiler" >&6; }
1942
1943# Is the header present?
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945$as_echo_n "checking $2 presence... " >&6; }
1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948#include <$2>
1949_ACEOF
1950if ac_fn_c_try_cpp "$LINENO"; then :
1951  ac_header_preproc=yes
1952else
1953  ac_header_preproc=no
1954fi
1955rm -f conftest.err conftest.i conftest.$ac_ext
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957$as_echo "$ac_header_preproc" >&6; }
1958
1959# So?  What about this header?
1960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961  yes:no: )
1962    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966    ;;
1967  no:yes:* )
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1971$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1975$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978    ;;
1979esac
1980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
1982if eval \${$3+:} false; then :
1983  $as_echo_n "(cached) " >&6
1984else
1985  eval "$3=\$ac_header_compiler"
1986fi
1987eval ac_res=\$$3
1988	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
1990fi
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_header_mongrel
1994
1995# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1996# --------------------------------------------
1997# Tries to find the compile-time value of EXPR in a program that includes
1998# INCLUDES, setting VAR accordingly. Returns whether the value could be
1999# computed
2000ac_fn_c_compute_int ()
2001{
2002  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003  if test "$cross_compiling" = yes; then
2004    # Depending upon the size, compute the lo and hi bounds.
2005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) >= 0)];
2012test_array [0] = 0;
2013return test_array [0];
2014
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  ac_lo=0 ac_mid=0
2021  while :; do
2022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029test_array [0] = 0;
2030return test_array [0];
2031
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037  ac_hi=$ac_mid; break
2038else
2039  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2040			if test $ac_lo -le $ac_mid; then
2041			  ac_lo= ac_hi=
2042			  break
2043			fi
2044			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047  done
2048else
2049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h.  */
2051$4
2052int
2053main ()
2054{
2055static int test_array [1 - 2 * !(($2) < 0)];
2056test_array [0] = 0;
2057return test_array [0];
2058
2059  ;
2060  return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064  ac_hi=-1 ac_mid=-1
2065  while :; do
2066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$4
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2073test_array [0] = 0;
2074return test_array [0];
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  ac_lo=$ac_mid; break
2082else
2083  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2084			if test $ac_mid -le $ac_hi; then
2085			  ac_lo= ac_hi=
2086			  break
2087			fi
2088			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091  done
2092else
2093  ac_lo= ac_hi=
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098# Binary search between lo and hi bounds.
2099while test "x$ac_lo" != "x$ac_hi"; do
2100  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h.  */
2103$4
2104int
2105main ()
2106{
2107static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108test_array [0] = 0;
2109return test_array [0];
2110
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116  ac_hi=$ac_mid
2117else
2118  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121done
2122case $ac_lo in #((
2123?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2124'') ac_retval=1 ;;
2125esac
2126  else
2127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130static long int longval () { return $2; }
2131static unsigned long int ulongval () { return $2; }
2132#include <stdio.h>
2133#include <stdlib.h>
2134int
2135main ()
2136{
2137
2138  FILE *f = fopen ("conftest.val", "w");
2139  if (! f)
2140    return 1;
2141  if (($2) < 0)
2142    {
2143      long int i = longval ();
2144      if (i != ($2))
2145	return 1;
2146      fprintf (f, "%ld", i);
2147    }
2148  else
2149    {
2150      unsigned long int i = ulongval ();
2151      if (i != ($2))
2152	return 1;
2153      fprintf (f, "%lu", i);
2154    }
2155  /* Do not output a trailing newline, as this causes \r\n confusion
2156     on some platforms.  */
2157  return ferror (f) || fclose (f) != 0;
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_run "$LINENO"; then :
2164  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2165else
2166  ac_retval=1
2167fi
2168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169  conftest.$ac_objext conftest.beam conftest.$ac_ext
2170rm -f conftest.val
2171
2172  fi
2173  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174  as_fn_set_status $ac_retval
2175
2176} # ac_fn_c_compute_int
2177cat >config.log <<_ACEOF
2178This file contains any messages produced by compilers while
2179running configure, to aid debugging if configure makes a mistake.
2180
2181It was created by $as_me, which was
2182generated by GNU Autoconf 2.69.  Invocation command line was
2183
2184  $ $0 $@
2185
2186_ACEOF
2187exec 5>>config.log
2188{
2189cat <<_ASUNAME
2190## --------- ##
2191## Platform. ##
2192## --------- ##
2193
2194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2195uname -m = `(uname -m) 2>/dev/null || echo unknown`
2196uname -r = `(uname -r) 2>/dev/null || echo unknown`
2197uname -s = `(uname -s) 2>/dev/null || echo unknown`
2198uname -v = `(uname -v) 2>/dev/null || echo unknown`
2199
2200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2201/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2202
2203/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2204/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2206/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2207/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2208/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2209/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2210
2211_ASUNAME
2212
2213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214for as_dir in $PATH
2215do
2216  IFS=$as_save_IFS
2217  test -z "$as_dir" && as_dir=.
2218    $as_echo "PATH: $as_dir"
2219  done
2220IFS=$as_save_IFS
2221
2222} >&5
2223
2224cat >&5 <<_ACEOF
2225
2226
2227## ----------- ##
2228## Core tests. ##
2229## ----------- ##
2230
2231_ACEOF
2232
2233
2234# Keep a trace of the command line.
2235# Strip out --no-create and --no-recursion so they do not pile up.
2236# Strip out --silent because we don't want to record it for future runs.
2237# Also quote any args containing shell meta-characters.
2238# Make two passes to allow for proper duplicate-argument suppression.
2239ac_configure_args=
2240ac_configure_args0=
2241ac_configure_args1=
2242ac_must_keep_next=false
2243for ac_pass in 1 2
2244do
2245  for ac_arg
2246  do
2247    case $ac_arg in
2248    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2249    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2250    | -silent | --silent | --silen | --sile | --sil)
2251      continue ;;
2252    *\'*)
2253      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2254    esac
2255    case $ac_pass in
2256    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257    2)
2258      as_fn_append ac_configure_args1 " '$ac_arg'"
2259      if test $ac_must_keep_next = true; then
2260	ac_must_keep_next=false # Got value, back to normal.
2261      else
2262	case $ac_arg in
2263	  *=* | --config-cache | -C | -disable-* | --disable-* \
2264	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2265	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2266	  | -with-* | --with-* | -without-* | --without-* | --x)
2267	    case "$ac_configure_args0 " in
2268	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2269	    esac
2270	    ;;
2271	  -* ) ac_must_keep_next=true ;;
2272	esac
2273      fi
2274      as_fn_append ac_configure_args " '$ac_arg'"
2275      ;;
2276    esac
2277  done
2278done
2279{ ac_configure_args0=; unset ac_configure_args0;}
2280{ ac_configure_args1=; unset ac_configure_args1;}
2281
2282# When interrupted or exit'd, cleanup temporary files, and complete
2283# config.log.  We remove comments because anyway the quotes in there
2284# would cause problems or look ugly.
2285# WARNING: Use '\'' to represent an apostrophe within the trap.
2286# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2287trap 'exit_status=$?
2288  # Save into config.log some information that might help in debugging.
2289  {
2290    echo
2291
2292    $as_echo "## ---------------- ##
2293## Cache variables. ##
2294## ---------------- ##"
2295    echo
2296    # The following way of writing the cache mishandles newlines in values,
2297(
2298  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2299    eval ac_val=\$$ac_var
2300    case $ac_val in #(
2301    *${as_nl}*)
2302      case $ac_var in #(
2303      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2304$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2305      esac
2306      case $ac_var in #(
2307      _ | IFS | as_nl) ;; #(
2308      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2309      *) { eval $ac_var=; unset $ac_var;} ;;
2310      esac ;;
2311    esac
2312  done
2313  (set) 2>&1 |
2314    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2315    *${as_nl}ac_space=\ *)
2316      sed -n \
2317	"s/'\''/'\''\\\\'\'''\''/g;
2318	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2319      ;; #(
2320    *)
2321      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322      ;;
2323    esac |
2324    sort
2325)
2326    echo
2327
2328    $as_echo "## ----------------- ##
2329## Output variables. ##
2330## ----------------- ##"
2331    echo
2332    for ac_var in $ac_subst_vars
2333    do
2334      eval ac_val=\$$ac_var
2335      case $ac_val in
2336      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337      esac
2338      $as_echo "$ac_var='\''$ac_val'\''"
2339    done | sort
2340    echo
2341
2342    if test -n "$ac_subst_files"; then
2343      $as_echo "## ------------------- ##
2344## File substitutions. ##
2345## ------------------- ##"
2346      echo
2347      for ac_var in $ac_subst_files
2348      do
2349	eval ac_val=\$$ac_var
2350	case $ac_val in
2351	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352	esac
2353	$as_echo "$ac_var='\''$ac_val'\''"
2354      done | sort
2355      echo
2356    fi
2357
2358    if test -s confdefs.h; then
2359      $as_echo "## ----------- ##
2360## confdefs.h. ##
2361## ----------- ##"
2362      echo
2363      cat confdefs.h
2364      echo
2365    fi
2366    test "$ac_signal" != 0 &&
2367      $as_echo "$as_me: caught signal $ac_signal"
2368    $as_echo "$as_me: exit $exit_status"
2369  } >&5
2370  rm -f core *.core core.conftest.* &&
2371    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372    exit $exit_status
2373' 0
2374for ac_signal in 1 2 13 15; do
2375  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376done
2377ac_signal=0
2378
2379# confdefs.h avoids OS command line length limits that DEFS can exceed.
2380rm -f -r conftest* confdefs.h
2381
2382$as_echo "/* confdefs.h */" > confdefs.h
2383
2384# Predefined preprocessor variables.
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_NAME "$PACKAGE_NAME"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_VERSION "$PACKAGE_VERSION"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_STRING "$PACKAGE_STRING"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404_ACEOF
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_URL "$PACKAGE_URL"
2408_ACEOF
2409
2410
2411# Let the site file select an alternate cache file if it wants to.
2412# Prefer an explicitly selected file to automatically selected ones.
2413ac_site_file1=NONE
2414ac_site_file2=NONE
2415if test -n "$CONFIG_SITE"; then
2416  # We do not want a PATH search for config.site.
2417  case $CONFIG_SITE in #((
2418    -*)  ac_site_file1=./$CONFIG_SITE;;
2419    */*) ac_site_file1=$CONFIG_SITE;;
2420    *)   ac_site_file1=./$CONFIG_SITE;;
2421  esac
2422elif test "x$prefix" != xNONE; then
2423  ac_site_file1=$prefix/share/config.site
2424  ac_site_file2=$prefix/etc/config.site
2425else
2426  ac_site_file1=$ac_default_prefix/share/config.site
2427  ac_site_file2=$ac_default_prefix/etc/config.site
2428fi
2429for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430do
2431  test "x$ac_site_file" = xNONE && continue
2432  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2433    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2434$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2435    sed 's/^/| /' "$ac_site_file" >&5
2436    . "$ac_site_file" \
2437      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439as_fn_error $? "failed to load site script $ac_site_file
2440See \`config.log' for more details" "$LINENO" 5; }
2441  fi
2442done
2443
2444if test -r "$cache_file"; then
2445  # Some versions of bash will fail to source /dev/null (special files
2446  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2447  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2448    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2449$as_echo "$as_me: loading cache $cache_file" >&6;}
2450    case $cache_file in
2451      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2452      *)                      . "./$cache_file";;
2453    esac
2454  fi
2455else
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2457$as_echo "$as_me: creating cache $cache_file" >&6;}
2458  >$cache_file
2459fi
2460
2461# Check that the precious variables saved in the cache have kept the same
2462# value.
2463ac_cache_corrupted=false
2464for ac_var in $ac_precious_vars; do
2465  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2466  eval ac_new_set=\$ac_env_${ac_var}_set
2467  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2468  eval ac_new_val=\$ac_env_${ac_var}_value
2469  case $ac_old_set,$ac_new_set in
2470    set,)
2471      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2472$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2473      ac_cache_corrupted=: ;;
2474    ,set)
2475      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2476$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2477      ac_cache_corrupted=: ;;
2478    ,);;
2479    *)
2480      if test "x$ac_old_val" != "x$ac_new_val"; then
2481	# differences in whitespace do not lead to failure.
2482	ac_old_val_w=`echo x $ac_old_val`
2483	ac_new_val_w=`echo x $ac_new_val`
2484	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2485	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2486$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2487	  ac_cache_corrupted=:
2488	else
2489	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2490$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2491	  eval $ac_var=\$ac_old_val
2492	fi
2493	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2494$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2495	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2496$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2497      fi;;
2498  esac
2499  # Pass precious variables to config.status.
2500  if test "$ac_new_set" = set; then
2501    case $ac_new_val in
2502    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2503    *) ac_arg=$ac_var=$ac_new_val ;;
2504    esac
2505    case " $ac_configure_args " in
2506      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2507      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2508    esac
2509  fi
2510done
2511if $ac_cache_corrupted; then
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2515$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2516  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2517fi
2518## -------------------- ##
2519## Main body of script. ##
2520## -------------------- ##
2521
2522ac_ext=c
2523ac_cpp='$CPP $CPPFLAGS'
2524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527
2528
2529
2530ac_aux_dir=
2531for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2532  if test -f "$ac_dir/install-sh"; then
2533    ac_aux_dir=$ac_dir
2534    ac_install_sh="$ac_aux_dir/install-sh -c"
2535    break
2536  elif test -f "$ac_dir/install.sh"; then
2537    ac_aux_dir=$ac_dir
2538    ac_install_sh="$ac_aux_dir/install.sh -c"
2539    break
2540  elif test -f "$ac_dir/shtool"; then
2541    ac_aux_dir=$ac_dir
2542    ac_install_sh="$ac_aux_dir/shtool install -c"
2543    break
2544  fi
2545done
2546if test -z "$ac_aux_dir"; then
2547  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2548fi
2549
2550# These three variables are undocumented and unsupported,
2551# and are intended to be withdrawn in a future Autoconf release.
2552# They can cause serious problems if a builder's source tree is in a directory
2553# whose full name contains unusual characters.
2554ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2555ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2556ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2557
2558
2559# Make sure we can run config.sub.
2560$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2561  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2562
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2564$as_echo_n "checking build system type... " >&6; }
2565if ${ac_cv_build+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  ac_build_alias=$build_alias
2569test "x$ac_build_alias" = x &&
2570  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2571test "x$ac_build_alias" = x &&
2572  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2574  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2575
2576fi
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2578$as_echo "$ac_cv_build" >&6; }
2579case $ac_cv_build in
2580*-*-*) ;;
2581*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2582esac
2583build=$ac_cv_build
2584ac_save_IFS=$IFS; IFS='-'
2585set x $ac_cv_build
2586shift
2587build_cpu=$1
2588build_vendor=$2
2589shift; shift
2590# Remember, the first character of IFS is used to create $*,
2591# except with old shells:
2592build_os=$*
2593IFS=$ac_save_IFS
2594case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2595
2596
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2598$as_echo_n "checking host system type... " >&6; }
2599if ${ac_cv_host+:} false; then :
2600  $as_echo_n "(cached) " >&6
2601else
2602  if test "x$host_alias" = x; then
2603  ac_cv_host=$ac_cv_build
2604else
2605  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2606    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2607fi
2608
2609fi
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2611$as_echo "$ac_cv_host" >&6; }
2612case $ac_cv_host in
2613*-*-*) ;;
2614*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2615esac
2616host=$ac_cv_host
2617ac_save_IFS=$IFS; IFS='-'
2618set x $ac_cv_host
2619shift
2620host_cpu=$1
2621host_vendor=$2
2622shift; shift
2623# Remember, the first character of IFS is used to create $*,
2624# except with old shells:
2625host_os=$*
2626IFS=$ac_save_IFS
2627case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2628
2629
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2631$as_echo_n "checking target system type... " >&6; }
2632if ${ac_cv_target+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  if test "x$target_alias" = x; then
2636  ac_cv_target=$ac_cv_host
2637else
2638  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2639    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2640fi
2641
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2644$as_echo "$ac_cv_target" >&6; }
2645case $ac_cv_target in
2646*-*-*) ;;
2647*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2648esac
2649target=$ac_cv_target
2650ac_save_IFS=$IFS; IFS='-'
2651set x $ac_cv_target
2652shift
2653target_cpu=$1
2654target_vendor=$2
2655shift; shift
2656# Remember, the first character of IFS is used to create $*,
2657# except with old shells:
2658target_os=$*
2659IFS=$ac_save_IFS
2660case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2661
2662
2663# The aliases save the names the user supplied, while $host etc.
2664# will get canonicalized.
2665test -n "$target_alias" &&
2666  test "$program_prefix$program_suffix$program_transform_name" = \
2667    NONENONEs,x,x, &&
2668  program_prefix=${target_alias}-
2669
2670
2671
2672# Check whether --with-alsa was given.
2673if test "${with_alsa+set}" = set; then :
2674  withval=$with_alsa; with_alsa=$withval
2675fi
2676
2677
2678
2679# Check whether --with-jack was given.
2680if test "${with_jack+set}" = set; then :
2681  withval=$with_jack; with_jack=$withval
2682fi
2683
2684
2685
2686# Check whether --with-oss was given.
2687if test "${with_oss+set}" = set; then :
2688  withval=$with_oss; with_oss=$withval
2689fi
2690
2691
2692
2693# Check whether --with-asihpi was given.
2694if test "${with_asihpi+set}" = set; then :
2695  withval=$with_asihpi; with_asihpi=$withval
2696fi
2697
2698
2699
2700# Check whether --with-winapi was given.
2701if test "${with_winapi+set}" = set; then :
2702  withval=$with_winapi; with_winapi=$withval
2703else
2704  with_winapi="wmme"
2705fi
2706
2707case "$target_os" in *mingw* | *cygwin*)
2708     with_wmme=no
2709     with_directx=no
2710     with_asio=no
2711     with_wasapi=no
2712     with_wdmks=no
2713     for api in $(echo $with_winapi | sed 's/,/ /g'); do
2714         case "$api" in
2715             wmme|directx|asio|wasapi|wdmks)
2716                 eval with_$api=yes
2717                 ;;
2718             *)
2719                 as_fn_error $? "unknown Windows API \"$api\" (do you need --help?)" "$LINENO" 5
2720                 ;;
2721         esac
2722     done
2723     ;;
2724esac
2725
2726
2727# Check whether --with-asiodir was given.
2728if test "${with_asiodir+set}" = set; then :
2729  withval=$with_asiodir; with_asiodir=$withval
2730else
2731  with_asiodir="/usr/local/asiosdk2"
2732fi
2733
2734
2735
2736# Check whether --with-dxdir was given.
2737if test "${with_dxdir+set}" = set; then :
2738  withval=$with_dxdir; with_dxdir=$withval
2739else
2740  with_dxdir="/usr/local/dx7sdk"
2741fi
2742
2743
2744debug_output=no
2745# Check whether --enable-debug-output was given.
2746if test "${enable_debug_output+set}" = set; then :
2747  enableval=$enable_debug_output; if test "x$enableval" != "xno" ; then
2748
2749$as_echo "#define PA_ENABLE_DEBUG_OUTPUT /**/" >>confdefs.h
2750
2751                  debug_output=yes
2752               fi
2753
2754fi
2755
2756
2757# Check whether --enable-cxx was given.
2758if test "${enable_cxx+set}" = set; then :
2759  enableval=$enable_cxx; enable_cxx=$enableval
2760else
2761  enable_cxx="no"
2762fi
2763
2764
2765# Check whether --enable-mac-debug was given.
2766if test "${enable_mac_debug+set}" = set; then :
2767  enableval=$enable_mac_debug; enable_mac_debug=$enableval
2768else
2769  enable_mac_debug="no"
2770fi
2771
2772
2773# Check whether --enable-mac-universal was given.
2774if test "${enable_mac_universal+set}" = set; then :
2775  enableval=$enable_mac_universal; enable_mac_universal=$enableval
2776else
2777  enable_mac_universal="yes"
2778fi
2779
2780
2781
2782# Check whether --with-host_os was given.
2783if test "${with_host_os+set}" = set; then :
2784  withval=$with_host_os; host_os=$withval
2785fi
2786
2787
2788
2789ac_ext=c
2790ac_cpp='$CPP $CPPFLAGS'
2791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794if test -n "$ac_tool_prefix"; then
2795  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if ${ac_cv_prog_CC+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$CC"; then
2803  ac_cv_prog_CC="$CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822CC=$ac_cv_prog_CC
2823if test -n "$CC"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825$as_echo "$CC" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if test -z "$ac_cv_prog_CC"; then
2834  ac_ct_CC=$CC
2835  # Extract the first word of "gcc", so it can be a program name with args.
2836set dummy gcc; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if ${ac_cv_prog_ac_ct_CC+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test -n "$ac_ct_CC"; then
2843  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_ac_ct_CC="gcc"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863if test -n "$ac_ct_CC"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865$as_echo "$ac_ct_CC" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871  if test "x$ac_ct_CC" = x; then
2872    CC=""
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    CC=$ac_ct_CC
2881  fi
2882else
2883  CC="$ac_cv_prog_CC"
2884fi
2885
2886if test -z "$CC"; then
2887          if test -n "$ac_tool_prefix"; then
2888    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}cc; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if ${ac_cv_prog_CC+:} false; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  if test -n "$CC"; then
2896  ac_cv_prog_CC="$CC" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905    ac_cv_prog_CC="${ac_tool_prefix}cc"
2906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915CC=$ac_cv_prog_CC
2916if test -n "$CC"; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918$as_echo "$CC" >&6; }
2919else
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925  fi
2926fi
2927if test -z "$CC"; then
2928  # Extract the first word of "cc", so it can be a program name with args.
2929set dummy cc; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_CC+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$CC"; then
2936  ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938  ac_prog_rejected=no
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2947       ac_prog_rejected=yes
2948       continue
2949     fi
2950    ac_cv_prog_CC="cc"
2951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955  done
2956IFS=$as_save_IFS
2957
2958if test $ac_prog_rejected = yes; then
2959  # We found a bogon in the path, so make sure we never use it.
2960  set dummy $ac_cv_prog_CC
2961  shift
2962  if test $# != 0; then
2963    # We chose a different compiler from the bogus one.
2964    # However, it has the same basename, so the bogon will be chosen
2965    # first if we set CC to just the basename; use the full file name.
2966    shift
2967    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968  fi
2969fi
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975$as_echo "$CC" >&6; }
2976else
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979fi
2980
2981
2982fi
2983if test -z "$CC"; then
2984  if test -n "$ac_tool_prefix"; then
2985  for ac_prog in cl.exe
2986  do
2987    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_CC+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$CC"; then
2995  ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024    test -n "$CC" && break
3025  done
3026fi
3027if test -z "$CC"; then
3028  ac_ct_CC=$CC
3029  for ac_prog in cl.exe
3030do
3031  # Extract the first word of "$ac_prog", so it can be a program name with args.
3032set dummy $ac_prog; ac_word=$2
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034$as_echo_n "checking for $ac_word... " >&6; }
3035if ${ac_cv_prog_ac_ct_CC+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  if test -n "$ac_ct_CC"; then
3039  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  test -z "$as_dir" && as_dir=.
3046    for ac_exec_ext in '' $ac_executable_extensions; do
3047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048    ac_cv_prog_ac_ct_CC="$ac_prog"
3049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053  done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059if test -n "$ac_ct_CC"; then
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061$as_echo "$ac_ct_CC" >&6; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067
3068  test -n "$ac_ct_CC" && break
3069done
3070
3071  if test "x$ac_ct_CC" = x; then
3072    CC=""
3073  else
3074    case $cross_compiling:$ac_tool_warned in
3075yes:)
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078ac_tool_warned=yes ;;
3079esac
3080    CC=$ac_ct_CC
3081  fi
3082fi
3083
3084fi
3085
3086
3087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089as_fn_error $? "no acceptable C compiler found in \$PATH
3090See \`config.log' for more details" "$LINENO" 5; }
3091
3092# Provide some information about the compiler.
3093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3094set X $ac_compile
3095ac_compiler=$2
3096for ac_option in --version -v -V -qversion; do
3097  { { ac_try="$ac_compiler $ac_option >&5"
3098case "(($ac_try" in
3099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100  *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
3104  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3105  ac_status=$?
3106  if test -s conftest.err; then
3107    sed '10a\
3108... rest of stderr output deleted ...
3109         10q' conftest.err >conftest.er1
3110    cat conftest.er1 >&5
3111  fi
3112  rm -f conftest.er1 conftest.err
3113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114  test $ac_status = 0; }
3115done
3116
3117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128ac_clean_files_save=$ac_clean_files
3129ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3130# Try to create an executable without -o first, disregard a.out.
3131# It will help us diagnose broken compilers, and finding out an intuition
3132# of exeext.
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3134$as_echo_n "checking whether the C compiler works... " >&6; }
3135ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3136
3137# The possible output files:
3138ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139
3140ac_rmfiles=
3141for ac_file in $ac_files
3142do
3143  case $ac_file in
3144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3146  esac
3147done
3148rm -f $ac_rmfiles
3149
3150if { { ac_try="$ac_link_default"
3151case "(($ac_try" in
3152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153  *) ac_try_echo=$ac_try;;
3154esac
3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156$as_echo "$ac_try_echo"; } >&5
3157  (eval "$ac_link_default") 2>&5
3158  ac_status=$?
3159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160  test $ac_status = 0; }; then :
3161  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3164# so that the user can short-circuit this test for compilers unknown to
3165# Autoconf.
3166for ac_file in $ac_files ''
3167do
3168  test -f "$ac_file" || continue
3169  case $ac_file in
3170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171	;;
3172    [ab].out )
3173	# We found the default executable, but exeext='' is most
3174	# certainly right.
3175	break;;
3176    *.* )
3177	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3178	then :; else
3179	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180	fi
3181	# We set ac_cv_exeext here because the later test for it is not
3182	# safe: cross compilers may not add the suffix if given an `-o'
3183	# argument, so we may need to know it at that point already.
3184	# Even if this section looks crufty: it has the advantage of
3185	# actually working.
3186	break;;
3187    * )
3188	break;;
3189  esac
3190done
3191test "$ac_cv_exeext" = no && ac_cv_exeext=
3192
3193else
3194  ac_file=''
3195fi
3196if test -z "$ac_file"; then :
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199$as_echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204as_fn_error 77 "C compiler cannot create executables
3205See \`config.log' for more details" "$LINENO" 5; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3211$as_echo_n "checking for C compiler default output file name... " >&6; }
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3213$as_echo "$ac_file" >&6; }
3214ac_exeext=$ac_cv_exeext
3215
3216rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3217ac_clean_files=$ac_clean_files_save
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3219$as_echo_n "checking for suffix of executables... " >&6; }
3220if { { ac_try="$ac_link"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_link") 2>&5
3228  ac_status=$?
3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }; then :
3231  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3233# work properly (i.e., refer to `conftest.exe'), while it won't with
3234# `rm'.
3235for ac_file in conftest.exe conftest conftest.*; do
3236  test -f "$ac_file" || continue
3237  case $ac_file in
3238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240	  break;;
3241    * ) break;;
3242  esac
3243done
3244else
3245  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3248See \`config.log' for more details" "$LINENO" 5; }
3249fi
3250rm -f conftest conftest$ac_cv_exeext
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3252$as_echo "$ac_cv_exeext" >&6; }
3253
3254rm -f conftest.$ac_ext
3255EXEEXT=$ac_cv_exeext
3256ac_exeext=$EXEEXT
3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259#include <stdio.h>
3260int
3261main ()
3262{
3263FILE *f = fopen ("conftest.out", "w");
3264 return ferror (f) || fclose (f) != 0;
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270ac_clean_files="$ac_clean_files conftest.out"
3271# Check that the compiler produces executables we can run.  If not, either
3272# the compiler is broken, or we cross compile.
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3274$as_echo_n "checking whether we are cross compiling... " >&6; }
3275if test "$cross_compiling" != yes; then
3276  { { ac_try="$ac_link"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
3283  (eval "$ac_link") 2>&5
3284  ac_status=$?
3285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286  test $ac_status = 0; }
3287  if { ac_try='./conftest$ac_cv_exeext'
3288  { { case "(($ac_try" in
3289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290  *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294  (eval "$ac_try") 2>&5
3295  ac_status=$?
3296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297  test $ac_status = 0; }; }; then
3298    cross_compiling=no
3299  else
3300    if test "$cross_compiling" = maybe; then
3301	cross_compiling=yes
3302    else
3303	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305as_fn_error $? "cannot run C compiled programs.
3306If you meant to cross compile, use \`--host'.
3307See \`config.log' for more details" "$LINENO" 5; }
3308    fi
3309  fi
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3312$as_echo "$cross_compiling" >&6; }
3313
3314rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3315ac_clean_files=$ac_clean_files_save
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3317$as_echo_n "checking for suffix of object files... " >&6; }
3318if ${ac_cv_objext+:} false; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322/* end confdefs.h.  */
3323
3324int
3325main ()
3326{
3327
3328  ;
3329  return 0;
3330}
3331_ACEOF
3332rm -f conftest.o conftest.obj
3333if { { ac_try="$ac_compile"
3334case "(($ac_try" in
3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336  *) ac_try_echo=$ac_try;;
3337esac
3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
3340  (eval "$ac_compile") 2>&5
3341  ac_status=$?
3342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343  test $ac_status = 0; }; then :
3344  for ac_file in conftest.o conftest.obj conftest.*; do
3345  test -f "$ac_file" || continue;
3346  case $ac_file in
3347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3348    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3349       break;;
3350  esac
3351done
3352else
3353  $as_echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error $? "cannot compute suffix of object files: cannot compile
3359See \`config.log' for more details" "$LINENO" 5; }
3360fi
3361rm -f conftest.$ac_cv_objext conftest.$ac_ext
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3364$as_echo "$ac_cv_objext" >&6; }
3365OBJEXT=$ac_cv_objext
3366ac_objext=$OBJEXT
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3368$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3369if ${ac_cv_c_compiler_gnu+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378#ifndef __GNUC__
3379       choke me
3380#endif
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_compiler_gnu=yes
3388else
3389  ac_compiler_gnu=no
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392ac_cv_c_compiler_gnu=$ac_compiler_gnu
3393
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3396$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3397if test $ac_compiler_gnu = yes; then
3398  GCC=yes
3399else
3400  GCC=
3401fi
3402ac_test_CFLAGS=${CFLAGS+set}
3403ac_save_CFLAGS=$CFLAGS
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3405$as_echo_n "checking whether $CC accepts -g... " >&6; }
3406if ${ac_cv_prog_cc_g+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  ac_save_c_werror_flag=$ac_c_werror_flag
3410   ac_c_werror_flag=yes
3411   ac_cv_prog_cc_g=no
3412   CFLAGS="-g"
3413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415
3416int
3417main ()
3418{
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424if ac_fn_c_try_compile "$LINENO"; then :
3425  ac_cv_prog_cc_g=yes
3426else
3427  CFLAGS=""
3428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439if ac_fn_c_try_compile "$LINENO"; then :
3440
3441else
3442  ac_c_werror_flag=$ac_save_c_werror_flag
3443	 CFLAGS="-g"
3444	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455if ac_fn_c_try_compile "$LINENO"; then :
3456  ac_cv_prog_cc_g=yes
3457fi
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459fi
3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461fi
3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463   ac_c_werror_flag=$ac_save_c_werror_flag
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3466$as_echo "$ac_cv_prog_cc_g" >&6; }
3467if test "$ac_test_CFLAGS" = set; then
3468  CFLAGS=$ac_save_CFLAGS
3469elif test $ac_cv_prog_cc_g = yes; then
3470  if test "$GCC" = yes; then
3471    CFLAGS="-g -O2"
3472  else
3473    CFLAGS="-g"
3474  fi
3475else
3476  if test "$GCC" = yes; then
3477    CFLAGS="-O2"
3478  else
3479    CFLAGS=
3480  fi
3481fi
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3483$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3484if ${ac_cv_prog_cc_c89+:} false; then :
3485  $as_echo_n "(cached) " >&6
3486else
3487  ac_cv_prog_cc_c89=no
3488ac_save_CC=$CC
3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491#include <stdarg.h>
3492#include <stdio.h>
3493struct stat;
3494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3495struct buf { int x; };
3496FILE * (*rcsopen) (struct buf *, struct stat *, int);
3497static char *e (p, i)
3498     char **p;
3499     int i;
3500{
3501  return p[i];
3502}
3503static char *f (char * (*g) (char **, int), char **p, ...)
3504{
3505  char *s;
3506  va_list v;
3507  va_start (v,p);
3508  s = g (p, va_arg (v,int));
3509  va_end (v);
3510  return s;
3511}
3512
3513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3514   function prototypes and stuff, but not '\xHH' hex character constants.
3515   These don't provoke an error unfortunately, instead are silently treated
3516   as 'x'.  The following induces an error, until -std is added to get
3517   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3518   array size at least.  It's necessary to write '\x00'==0 to get something
3519   that's true only with -std.  */
3520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3521
3522/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3523   inside strings and character constants.  */
3524#define FOO(x) 'x'
3525int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3526
3527int test (int i, double x);
3528struct s1 {int (*f) (int a);};
3529struct s2 {int (*f) (double a);};
3530int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3531int argc;
3532char **argv;
3533int
3534main ()
3535{
3536return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3542	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3543do
3544  CC="$ac_save_CC $ac_arg"
3545  if ac_fn_c_try_compile "$LINENO"; then :
3546  ac_cv_prog_cc_c89=$ac_arg
3547fi
3548rm -f core conftest.err conftest.$ac_objext
3549  test "x$ac_cv_prog_cc_c89" != "xno" && break
3550done
3551rm -f conftest.$ac_ext
3552CC=$ac_save_CC
3553
3554fi
3555# AC_CACHE_VAL
3556case "x$ac_cv_prog_cc_c89" in
3557  x)
3558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3559$as_echo "none needed" >&6; } ;;
3560  xno)
3561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3562$as_echo "unsupported" >&6; } ;;
3563  *)
3564    CC="$CC $ac_cv_prog_cc_c89"
3565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3566$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3567esac
3568if test "x$ac_cv_prog_cc_c89" != xno; then :
3569
3570fi
3571
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578if [ "$with_asio" = "yes" ] || [ "$enable_cxx" = "yes" ] ; then
3579       ac_ext=cpp
3580ac_cpp='$CXXCPP $CPPFLAGS'
3581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3584if test -z "$CXX"; then
3585  if test -n "$CCC"; then
3586    CXX=$CCC
3587  else
3588    if test -n "$ac_tool_prefix"; then
3589  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590  do
3591    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_CXX+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$CXX"; then
3599  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618CXX=$ac_cv_prog_CXX
3619if test -n "$CXX"; then
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3621$as_echo "$CXX" >&6; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627
3628    test -n "$CXX" && break
3629  done
3630fi
3631if test -z "$CXX"; then
3632  ac_ct_CXX=$CXX
3633  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3634do
3635  # Extract the first word of "$ac_prog", so it can be a program name with args.
3636set dummy $ac_prog; ac_word=$2
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638$as_echo_n "checking for $ac_word... " >&6; }
3639if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  if test -n "$ac_ct_CXX"; then
3643  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650    for ac_exec_ext in '' $ac_executable_extensions; do
3651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652    ac_cv_prog_ac_ct_CXX="$ac_prog"
3653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657  done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3663if test -n "$ac_ct_CXX"; then
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3665$as_echo "$ac_ct_CXX" >&6; }
3666else
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669fi
3670
3671
3672  test -n "$ac_ct_CXX" && break
3673done
3674
3675  if test "x$ac_ct_CXX" = x; then
3676    CXX="g++"
3677  else
3678    case $cross_compiling:$ac_tool_warned in
3679yes:)
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682ac_tool_warned=yes ;;
3683esac
3684    CXX=$ac_ct_CXX
3685  fi
3686fi
3687
3688  fi
3689fi
3690# Provide some information about the compiler.
3691$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3692set X $ac_compile
3693ac_compiler=$2
3694for ac_option in --version -v -V -qversion; do
3695  { { ac_try="$ac_compiler $ac_option >&5"
3696case "(($ac_try" in
3697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698  *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3703  ac_status=$?
3704  if test -s conftest.err; then
3705    sed '10a\
3706... rest of stderr output deleted ...
3707         10q' conftest.err >conftest.er1
3708    cat conftest.er1 >&5
3709  fi
3710  rm -f conftest.er1 conftest.err
3711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712  test $ac_status = 0; }
3713done
3714
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3716$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3717if ${ac_cv_cxx_compiler_gnu+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726#ifndef __GNUC__
3727       choke me
3728#endif
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734if ac_fn_cxx_try_compile "$LINENO"; then :
3735  ac_compiler_gnu=yes
3736else
3737  ac_compiler_gnu=no
3738fi
3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3741
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3744$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3745if test $ac_compiler_gnu = yes; then
3746  GXX=yes
3747else
3748  GXX=
3749fi
3750ac_test_CXXFLAGS=${CXXFLAGS+set}
3751ac_save_CXXFLAGS=$CXXFLAGS
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3753$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3754if ${ac_cv_prog_cxx_g+:} false; then :
3755  $as_echo_n "(cached) " >&6
3756else
3757  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3758   ac_cxx_werror_flag=yes
3759   ac_cv_prog_cxx_g=no
3760   CXXFLAGS="-g"
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772if ac_fn_cxx_try_compile "$LINENO"; then :
3773  ac_cv_prog_cxx_g=yes
3774else
3775  CXXFLAGS=""
3776      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h.  */
3778
3779int
3780main ()
3781{
3782
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787if ac_fn_cxx_try_compile "$LINENO"; then :
3788
3789else
3790  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3791	 CXXFLAGS="-g"
3792	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794
3795int
3796main ()
3797{
3798
3799  ;
3800  return 0;
3801}
3802_ACEOF
3803if ac_fn_cxx_try_compile "$LINENO"; then :
3804  ac_cv_prog_cxx_g=yes
3805fi
3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807fi
3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809fi
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3814$as_echo "$ac_cv_prog_cxx_g" >&6; }
3815if test "$ac_test_CXXFLAGS" = set; then
3816  CXXFLAGS=$ac_save_CXXFLAGS
3817elif test $ac_cv_prog_cxx_g = yes; then
3818  if test "$GXX" = yes; then
3819    CXXFLAGS="-g -O2"
3820  else
3821    CXXFLAGS="-g"
3822  fi
3823else
3824  if test "$GXX" = yes; then
3825    CXXFLAGS="-O2"
3826  else
3827    CXXFLAGS=
3828  fi
3829fi
3830ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836fi
3837enable_win32_dll=yes
3838
3839case $host in
3840*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3841  if test -n "$ac_tool_prefix"; then
3842  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}as; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if ${ac_cv_prog_AS+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  if test -n "$AS"; then
3850  ac_cv_prog_AS="$AS" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859    ac_cv_prog_AS="${ac_tool_prefix}as"
3860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861    break 2
3862  fi
3863done
3864  done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869AS=$ac_cv_prog_AS
3870if test -n "$AS"; then
3871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3872$as_echo "$AS" >&6; }
3873else
3874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878
3879fi
3880if test -z "$ac_cv_prog_AS"; then
3881  ac_ct_AS=$AS
3882  # Extract the first word of "as", so it can be a program name with args.
3883set dummy as; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if ${ac_cv_prog_ac_ct_AS+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  if test -n "$ac_ct_AS"; then
3890  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895  IFS=$as_save_IFS
3896  test -z "$as_dir" && as_dir=.
3897    for ac_exec_ext in '' $ac_executable_extensions; do
3898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899    ac_cv_prog_ac_ct_AS="as"
3900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901    break 2
3902  fi
3903done
3904  done
3905IFS=$as_save_IFS
3906
3907fi
3908fi
3909ac_ct_AS=$ac_cv_prog_ac_ct_AS
3910if test -n "$ac_ct_AS"; then
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3912$as_echo "$ac_ct_AS" >&6; }
3913else
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917
3918  if test "x$ac_ct_AS" = x; then
3919    AS="false"
3920  else
3921    case $cross_compiling:$ac_tool_warned in
3922yes:)
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925ac_tool_warned=yes ;;
3926esac
3927    AS=$ac_ct_AS
3928  fi
3929else
3930  AS="$ac_cv_prog_AS"
3931fi
3932
3933  if test -n "$ac_tool_prefix"; then
3934  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3935set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
3938if ${ac_cv_prog_DLLTOOL+:} false; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  if test -n "$DLLTOOL"; then
3942  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947  IFS=$as_save_IFS
3948  test -z "$as_dir" && as_dir=.
3949    for ac_exec_ext in '' $ac_executable_extensions; do
3950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953    break 2
3954  fi
3955done
3956  done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961DLLTOOL=$ac_cv_prog_DLLTOOL
3962if test -n "$DLLTOOL"; then
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3964$as_echo "$DLLTOOL" >&6; }
3965else
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971fi
3972if test -z "$ac_cv_prog_DLLTOOL"; then
3973  ac_ct_DLLTOOL=$DLLTOOL
3974  # Extract the first word of "dlltool", so it can be a program name with args.
3975set dummy dlltool; ac_word=$2
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  if test -n "$ac_ct_DLLTOOL"; then
3982  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987  IFS=$as_save_IFS
3988  test -z "$as_dir" && as_dir=.
3989    for ac_exec_ext in '' $ac_executable_extensions; do
3990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993    break 2
3994  fi
3995done
3996  done
3997IFS=$as_save_IFS
3998
3999fi
4000fi
4001ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4002if test -n "$ac_ct_DLLTOOL"; then
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4004$as_echo "$ac_ct_DLLTOOL" >&6; }
4005else
4006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
4008fi
4009
4010  if test "x$ac_ct_DLLTOOL" = x; then
4011    DLLTOOL="false"
4012  else
4013    case $cross_compiling:$ac_tool_warned in
4014yes:)
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017ac_tool_warned=yes ;;
4018esac
4019    DLLTOOL=$ac_ct_DLLTOOL
4020  fi
4021else
4022  DLLTOOL="$ac_cv_prog_DLLTOOL"
4023fi
4024
4025  if test -n "$ac_tool_prefix"; then
4026  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4027set dummy ${ac_tool_prefix}objdump; ac_word=$2
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if ${ac_cv_prog_OBJDUMP+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033  if test -n "$OBJDUMP"; then
4034  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045    break 2
4046  fi
4047done
4048  done
4049IFS=$as_save_IFS
4050
4051fi
4052fi
4053OBJDUMP=$ac_cv_prog_OBJDUMP
4054if test -n "$OBJDUMP"; then
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4056$as_echo "$OBJDUMP" >&6; }
4057else
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060fi
4061
4062
4063fi
4064if test -z "$ac_cv_prog_OBJDUMP"; then
4065  ac_ct_OBJDUMP=$OBJDUMP
4066  # Extract the first word of "objdump", so it can be a program name with args.
4067set dummy objdump; ac_word=$2
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
4070if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  if test -n "$ac_ct_OBJDUMP"; then
4074  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088  done
4089IFS=$as_save_IFS
4090
4091fi
4092fi
4093ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4094if test -n "$ac_ct_OBJDUMP"; then
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4096$as_echo "$ac_ct_OBJDUMP" >&6; }
4097else
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
4100fi
4101
4102  if test "x$ac_ct_OBJDUMP" = x; then
4103    OBJDUMP="false"
4104  else
4105    case $cross_compiling:$ac_tool_warned in
4106yes:)
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109ac_tool_warned=yes ;;
4110esac
4111    OBJDUMP=$ac_ct_OBJDUMP
4112  fi
4113else
4114  OBJDUMP="$ac_cv_prog_OBJDUMP"
4115fi
4116
4117  ;;
4118esac
4119
4120test -z "$AS" && AS=as
4121
4122
4123
4124
4125
4126test -z "$DLLTOOL" && DLLTOOL=dlltool
4127
4128
4129
4130
4131
4132test -z "$OBJDUMP" && OBJDUMP=objdump
4133
4134
4135
4136
4137
4138
4139
4140case `pwd` in
4141  *\ * | *\	*)
4142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4143$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4144esac
4145
4146
4147
4148macro_version='2.4.2'
4149macro_revision='1.3337'
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163ltmain="$ac_aux_dir/ltmain.sh"
4164
4165# Backslashify metacharacters that are still active within
4166# double-quoted strings.
4167sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4168
4169# Same as above, but do not quote variable references.
4170double_quote_subst='s/\(["`\\]\)/\\\1/g'
4171
4172# Sed substitution to delay expansion of an escaped shell variable in a
4173# double_quote_subst'ed string.
4174delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4175
4176# Sed substitution to delay expansion of an escaped single quote.
4177delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4178
4179# Sed substitution to avoid accidental globbing in evaled expressions
4180no_glob_subst='s/\*/\\\*/g'
4181
4182ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4183ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4184ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4185
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4187$as_echo_n "checking how to print strings... " >&6; }
4188# Test print first, because it will be a builtin if present.
4189if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4190   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4191  ECHO='print -r --'
4192elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4193  ECHO='printf %s\n'
4194else
4195  # Use this function as a fallback that always works.
4196  func_fallback_echo ()
4197  {
4198    eval 'cat <<_LTECHO_EOF
4199$1
4200_LTECHO_EOF'
4201  }
4202  ECHO='func_fallback_echo'
4203fi
4204
4205# func_echo_all arg...
4206# Invoke $ECHO with all args, space-separated.
4207func_echo_all ()
4208{
4209    $ECHO ""
4210}
4211
4212case "$ECHO" in
4213  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4214$as_echo "printf" >&6; } ;;
4215  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4216$as_echo "print -r" >&6; } ;;
4217  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4218$as_echo "cat" >&6; } ;;
4219esac
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4235$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4236if ${ac_cv_path_SED+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4240     for ac_i in 1 2 3 4 5 6 7; do
4241       ac_script="$ac_script$as_nl$ac_script"
4242     done
4243     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4244     { ac_script=; unset ac_script;}
4245     if test -z "$SED"; then
4246  ac_path_SED_found=false
4247  # Loop through the user's path and test for each of PROGNAME-LIST
4248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251  IFS=$as_save_IFS
4252  test -z "$as_dir" && as_dir=.
4253    for ac_prog in sed gsed; do
4254    for ac_exec_ext in '' $ac_executable_extensions; do
4255      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4256      as_fn_executable_p "$ac_path_SED" || continue
4257# Check for GNU ac_path_SED and select it if it is found.
4258  # Check for GNU $ac_path_SED
4259case `"$ac_path_SED" --version 2>&1` in
4260*GNU*)
4261  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4262*)
4263  ac_count=0
4264  $as_echo_n 0123456789 >"conftest.in"
4265  while :
4266  do
4267    cat "conftest.in" "conftest.in" >"conftest.tmp"
4268    mv "conftest.tmp" "conftest.in"
4269    cp "conftest.in" "conftest.nl"
4270    $as_echo '' >> "conftest.nl"
4271    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4272    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4273    as_fn_arith $ac_count + 1 && ac_count=$as_val
4274    if test $ac_count -gt ${ac_path_SED_max-0}; then
4275      # Best one so far, save it but keep looking for a better one
4276      ac_cv_path_SED="$ac_path_SED"
4277      ac_path_SED_max=$ac_count
4278    fi
4279    # 10*(2^10) chars as input seems more than enough
4280    test $ac_count -gt 10 && break
4281  done
4282  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283esac
4284
4285      $ac_path_SED_found && break 3
4286    done
4287  done
4288  done
4289IFS=$as_save_IFS
4290  if test -z "$ac_cv_path_SED"; then
4291    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4292  fi
4293else
4294  ac_cv_path_SED=$SED
4295fi
4296
4297fi
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4299$as_echo "$ac_cv_path_SED" >&6; }
4300 SED="$ac_cv_path_SED"
4301  rm -f conftest.sed
4302
4303test -z "$SED" && SED=sed
4304Xsed="$SED -e 1s/^X//"
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4317$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318if ${ac_cv_path_GREP+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -z "$GREP"; then
4322  ac_path_GREP_found=false
4323  # Loop through the user's path and test for each of PROGNAME-LIST
4324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329    for ac_prog in grep ggrep; do
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4332      as_fn_executable_p "$ac_path_GREP" || continue
4333# Check for GNU ac_path_GREP and select it if it is found.
4334  # Check for GNU $ac_path_GREP
4335case `"$ac_path_GREP" --version 2>&1` in
4336*GNU*)
4337  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338*)
4339  ac_count=0
4340  $as_echo_n 0123456789 >"conftest.in"
4341  while :
4342  do
4343    cat "conftest.in" "conftest.in" >"conftest.tmp"
4344    mv "conftest.tmp" "conftest.in"
4345    cp "conftest.in" "conftest.nl"
4346    $as_echo 'GREP' >> "conftest.nl"
4347    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349    as_fn_arith $ac_count + 1 && ac_count=$as_val
4350    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351      # Best one so far, save it but keep looking for a better one
4352      ac_cv_path_GREP="$ac_path_GREP"
4353      ac_path_GREP_max=$ac_count
4354    fi
4355    # 10*(2^10) chars as input seems more than enough
4356    test $ac_count -gt 10 && break
4357  done
4358  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359esac
4360
4361      $ac_path_GREP_found && break 3
4362    done
4363  done
4364  done
4365IFS=$as_save_IFS
4366  if test -z "$ac_cv_path_GREP"; then
4367    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368  fi
4369else
4370  ac_cv_path_GREP=$GREP
4371fi
4372
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4375$as_echo "$ac_cv_path_GREP" >&6; }
4376 GREP="$ac_cv_path_GREP"
4377
4378
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4380$as_echo_n "checking for egrep... " >&6; }
4381if ${ac_cv_path_EGREP+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4385   then ac_cv_path_EGREP="$GREP -E"
4386   else
4387     if test -z "$EGREP"; then
4388  ac_path_EGREP_found=false
4389  # Loop through the user's path and test for each of PROGNAME-LIST
4390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392do
4393  IFS=$as_save_IFS
4394  test -z "$as_dir" && as_dir=.
4395    for ac_prog in egrep; do
4396    for ac_exec_ext in '' $ac_executable_extensions; do
4397      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4398      as_fn_executable_p "$ac_path_EGREP" || continue
4399# Check for GNU ac_path_EGREP and select it if it is found.
4400  # Check for GNU $ac_path_EGREP
4401case `"$ac_path_EGREP" --version 2>&1` in
4402*GNU*)
4403  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4404*)
4405  ac_count=0
4406  $as_echo_n 0123456789 >"conftest.in"
4407  while :
4408  do
4409    cat "conftest.in" "conftest.in" >"conftest.tmp"
4410    mv "conftest.tmp" "conftest.in"
4411    cp "conftest.in" "conftest.nl"
4412    $as_echo 'EGREP' >> "conftest.nl"
4413    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415    as_fn_arith $ac_count + 1 && ac_count=$as_val
4416    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4417      # Best one so far, save it but keep looking for a better one
4418      ac_cv_path_EGREP="$ac_path_EGREP"
4419      ac_path_EGREP_max=$ac_count
4420    fi
4421    # 10*(2^10) chars as input seems more than enough
4422    test $ac_count -gt 10 && break
4423  done
4424  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425esac
4426
4427      $ac_path_EGREP_found && break 3
4428    done
4429  done
4430  done
4431IFS=$as_save_IFS
4432  if test -z "$ac_cv_path_EGREP"; then
4433    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434  fi
4435else
4436  ac_cv_path_EGREP=$EGREP
4437fi
4438
4439   fi
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4442$as_echo "$ac_cv_path_EGREP" >&6; }
4443 EGREP="$ac_cv_path_EGREP"
4444
4445
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4447$as_echo_n "checking for fgrep... " >&6; }
4448if ${ac_cv_path_FGREP+:} false; then :
4449  $as_echo_n "(cached) " >&6
4450else
4451  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4452   then ac_cv_path_FGREP="$GREP -F"
4453   else
4454     if test -z "$FGREP"; then
4455  ac_path_FGREP_found=false
4456  # Loop through the user's path and test for each of PROGNAME-LIST
4457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462    for ac_prog in fgrep; do
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4465      as_fn_executable_p "$ac_path_FGREP" || continue
4466# Check for GNU ac_path_FGREP and select it if it is found.
4467  # Check for GNU $ac_path_FGREP
4468case `"$ac_path_FGREP" --version 2>&1` in
4469*GNU*)
4470  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4471*)
4472  ac_count=0
4473  $as_echo_n 0123456789 >"conftest.in"
4474  while :
4475  do
4476    cat "conftest.in" "conftest.in" >"conftest.tmp"
4477    mv "conftest.tmp" "conftest.in"
4478    cp "conftest.in" "conftest.nl"
4479    $as_echo 'FGREP' >> "conftest.nl"
4480    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482    as_fn_arith $ac_count + 1 && ac_count=$as_val
4483    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4484      # Best one so far, save it but keep looking for a better one
4485      ac_cv_path_FGREP="$ac_path_FGREP"
4486      ac_path_FGREP_max=$ac_count
4487    fi
4488    # 10*(2^10) chars as input seems more than enough
4489    test $ac_count -gt 10 && break
4490  done
4491  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492esac
4493
4494      $ac_path_FGREP_found && break 3
4495    done
4496  done
4497  done
4498IFS=$as_save_IFS
4499  if test -z "$ac_cv_path_FGREP"; then
4500    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501  fi
4502else
4503  ac_cv_path_FGREP=$FGREP
4504fi
4505
4506   fi
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4509$as_echo "$ac_cv_path_FGREP" >&6; }
4510 FGREP="$ac_cv_path_FGREP"
4511
4512
4513test -z "$GREP" && GREP=grep
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533# Check whether --with-gnu-ld was given.
4534if test "${with_gnu_ld+set}" = set; then :
4535  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4536else
4537  with_gnu_ld=no
4538fi
4539
4540ac_prog=ld
4541if test "$GCC" = yes; then
4542  # Check if gcc -print-prog-name=ld gives a path.
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4544$as_echo_n "checking for ld used by $CC... " >&6; }
4545  case $host in
4546  *-*-mingw*)
4547    # gcc leaves a trailing carriage return which upsets mingw
4548    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4549  *)
4550    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4551  esac
4552  case $ac_prog in
4553    # Accept absolute paths.
4554    [\\/]* | ?:[\\/]*)
4555      re_direlt='/[^/][^/]*/\.\./'
4556      # Canonicalize the pathname of ld
4557      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4558      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4559	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4560      done
4561      test -z "$LD" && LD="$ac_prog"
4562      ;;
4563  "")
4564    # If it fails, then pretend we aren't using GCC.
4565    ac_prog=ld
4566    ;;
4567  *)
4568    # If it is relative, then search for the first ld in PATH.
4569    with_gnu_ld=unknown
4570    ;;
4571  esac
4572elif test "$with_gnu_ld" = yes; then
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4574$as_echo_n "checking for GNU ld... " >&6; }
4575else
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4577$as_echo_n "checking for non-GNU ld... " >&6; }
4578fi
4579if ${lt_cv_path_LD+:} false; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582  if test -z "$LD"; then
4583  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4584  for ac_dir in $PATH; do
4585    IFS="$lt_save_ifs"
4586    test -z "$ac_dir" && ac_dir=.
4587    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4588      lt_cv_path_LD="$ac_dir/$ac_prog"
4589      # Check to see if the program is GNU ld.  I'd rather use --version,
4590      # but apparently some variants of GNU ld only accept -v.
4591      # Break only if it was the GNU/non-GNU ld that we prefer.
4592      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4593      *GNU* | *'with BFD'*)
4594	test "$with_gnu_ld" != no && break
4595	;;
4596      *)
4597	test "$with_gnu_ld" != yes && break
4598	;;
4599      esac
4600    fi
4601  done
4602  IFS="$lt_save_ifs"
4603else
4604  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4605fi
4606fi
4607
4608LD="$lt_cv_path_LD"
4609if test -n "$LD"; then
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4611$as_echo "$LD" >&6; }
4612else
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615fi
4616test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4618$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4619if ${lt_cv_prog_gnu_ld+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4623case `$LD -v 2>&1 </dev/null` in
4624*GNU* | *'with BFD'*)
4625  lt_cv_prog_gnu_ld=yes
4626  ;;
4627*)
4628  lt_cv_prog_gnu_ld=no
4629  ;;
4630esac
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4633$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4634with_gnu_ld=$lt_cv_prog_gnu_ld
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4645$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4646if ${lt_cv_path_NM+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  if test -n "$NM"; then
4650  # Let the user override the test.
4651  lt_cv_path_NM="$NM"
4652else
4653  lt_nm_to_check="${ac_tool_prefix}nm"
4654  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4655    lt_nm_to_check="$lt_nm_to_check nm"
4656  fi
4657  for lt_tmp_nm in $lt_nm_to_check; do
4658    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4659    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4660      IFS="$lt_save_ifs"
4661      test -z "$ac_dir" && ac_dir=.
4662      tmp_nm="$ac_dir/$lt_tmp_nm"
4663      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4664	# Check to see if the nm accepts a BSD-compat flag.
4665	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4666	#   nm: unknown option "B" ignored
4667	# Tru64's nm complains that /dev/null is an invalid object file
4668	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4669	*/dev/null* | *'Invalid file or object type'*)
4670	  lt_cv_path_NM="$tmp_nm -B"
4671	  break
4672	  ;;
4673	*)
4674	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4675	  */dev/null*)
4676	    lt_cv_path_NM="$tmp_nm -p"
4677	    break
4678	    ;;
4679	  *)
4680	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4681	    continue # so that we can try to find one that supports BSD flags
4682	    ;;
4683	  esac
4684	  ;;
4685	esac
4686      fi
4687    done
4688    IFS="$lt_save_ifs"
4689  done
4690  : ${lt_cv_path_NM=no}
4691fi
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4694$as_echo "$lt_cv_path_NM" >&6; }
4695if test "$lt_cv_path_NM" != "no"; then
4696  NM="$lt_cv_path_NM"
4697else
4698  # Didn't find any BSD compatible name lister, look for dumpbin.
4699  if test -n "$DUMPBIN"; then :
4700    # Let the user override the test.
4701  else
4702    if test -n "$ac_tool_prefix"; then
4703  for ac_prog in dumpbin "link -dump"
4704  do
4705    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_prog_DUMPBIN+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  if test -n "$DUMPBIN"; then
4713  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732DUMPBIN=$ac_cv_prog_DUMPBIN
4733if test -n "$DUMPBIN"; then
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4735$as_echo "$DUMPBIN" >&6; }
4736else
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739fi
4740
4741
4742    test -n "$DUMPBIN" && break
4743  done
4744fi
4745if test -z "$DUMPBIN"; then
4746  ac_ct_DUMPBIN=$DUMPBIN
4747  for ac_prog in dumpbin "link -dump"
4748do
4749  # Extract the first word of "$ac_prog", so it can be a program name with args.
4750set dummy $ac_prog; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -n "$ac_ct_DUMPBIN"; then
4757  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764    for ac_exec_ext in '' $ac_executable_extensions; do
4765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771  done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4777if test -n "$ac_ct_DUMPBIN"; then
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4779$as_echo "$ac_ct_DUMPBIN" >&6; }
4780else
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
4784
4785
4786  test -n "$ac_ct_DUMPBIN" && break
4787done
4788
4789  if test "x$ac_ct_DUMPBIN" = x; then
4790    DUMPBIN=":"
4791  else
4792    case $cross_compiling:$ac_tool_warned in
4793yes:)
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796ac_tool_warned=yes ;;
4797esac
4798    DUMPBIN=$ac_ct_DUMPBIN
4799  fi
4800fi
4801
4802    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4803    *COFF*)
4804      DUMPBIN="$DUMPBIN -symbols"
4805      ;;
4806    *)
4807      DUMPBIN=:
4808      ;;
4809    esac
4810  fi
4811
4812  if test "$DUMPBIN" != ":"; then
4813    NM="$DUMPBIN"
4814  fi
4815fi
4816test -z "$NM" && NM=nm
4817
4818
4819
4820
4821
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4824$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4825if ${lt_cv_nm_interface+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  lt_cv_nm_interface="BSD nm"
4829  echo "int some_variable = 0;" > conftest.$ac_ext
4830  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4831  (eval "$ac_compile" 2>conftest.err)
4832  cat conftest.err >&5
4833  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4834  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4835  cat conftest.err >&5
4836  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4837  cat conftest.out >&5
4838  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4839    lt_cv_nm_interface="MS dumpbin"
4840  fi
4841  rm -f conftest*
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4844$as_echo "$lt_cv_nm_interface" >&6; }
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4847$as_echo_n "checking whether ln -s works... " >&6; }
4848LN_S=$as_ln_s
4849if test "$LN_S" = "ln -s"; then
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851$as_echo "yes" >&6; }
4852else
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4854$as_echo "no, using $LN_S" >&6; }
4855fi
4856
4857# find the maximum length of command line arguments
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4859$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4860if ${lt_cv_sys_max_cmd_len+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863    i=0
4864  teststring="ABCD"
4865
4866  case $build_os in
4867  msdosdjgpp*)
4868    # On DJGPP, this test can blow up pretty badly due to problems in libc
4869    # (any single argument exceeding 2000 bytes causes a buffer overrun
4870    # during glob expansion).  Even if it were fixed, the result of this
4871    # check would be larger than it should be.
4872    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4873    ;;
4874
4875  gnu*)
4876    # Under GNU Hurd, this test is not required because there is
4877    # no limit to the length of command line arguments.
4878    # Libtool will interpret -1 as no limit whatsoever
4879    lt_cv_sys_max_cmd_len=-1;
4880    ;;
4881
4882  cygwin* | mingw* | cegcc*)
4883    # On Win9x/ME, this test blows up -- it succeeds, but takes
4884    # about 5 minutes as the teststring grows exponentially.
4885    # Worse, since 9x/ME are not pre-emptively multitasking,
4886    # you end up with a "frozen" computer, even though with patience
4887    # the test eventually succeeds (with a max line length of 256k).
4888    # Instead, let's just punt: use the minimum linelength reported by
4889    # all of the supported platforms: 8192 (on NT/2K/XP).
4890    lt_cv_sys_max_cmd_len=8192;
4891    ;;
4892
4893  mint*)
4894    # On MiNT this can take a long time and run out of memory.
4895    lt_cv_sys_max_cmd_len=8192;
4896    ;;
4897
4898  amigaos*)
4899    # On AmigaOS with pdksh, this test takes hours, literally.
4900    # So we just punt and use a minimum line length of 8192.
4901    lt_cv_sys_max_cmd_len=8192;
4902    ;;
4903
4904  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4905    # This has been around since 386BSD, at least.  Likely further.
4906    if test -x /sbin/sysctl; then
4907      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4908    elif test -x /usr/sbin/sysctl; then
4909      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4910    else
4911      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4912    fi
4913    # And add a safety zone
4914    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4915    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4916    ;;
4917
4918  interix*)
4919    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4920    lt_cv_sys_max_cmd_len=196608
4921    ;;
4922
4923  os2*)
4924    # The test takes a long time on OS/2.
4925    lt_cv_sys_max_cmd_len=8192
4926    ;;
4927
4928  osf*)
4929    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4930    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4931    # nice to cause kernel panics so lets avoid the loop below.
4932    # First set a reasonable default.
4933    lt_cv_sys_max_cmd_len=16384
4934    #
4935    if test -x /sbin/sysconfig; then
4936      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4937        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4938      esac
4939    fi
4940    ;;
4941  sco3.2v5*)
4942    lt_cv_sys_max_cmd_len=102400
4943    ;;
4944  sysv5* | sco5v6* | sysv4.2uw2*)
4945    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4946    if test -n "$kargmax"; then
4947      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4948    else
4949      lt_cv_sys_max_cmd_len=32768
4950    fi
4951    ;;
4952  *)
4953    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4954    if test -n "$lt_cv_sys_max_cmd_len" && \
4955	test undefined != "$lt_cv_sys_max_cmd_len"; then
4956      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4957      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4958    else
4959      # Make teststring a little bigger before we do anything with it.
4960      # a 1K string should be a reasonable start.
4961      for i in 1 2 3 4 5 6 7 8 ; do
4962        teststring=$teststring$teststring
4963      done
4964      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4965      # If test is not a shell built-in, we'll probably end up computing a
4966      # maximum length that is only half of the actual maximum length, but
4967      # we can't tell.
4968      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4969	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4970	      test $i != 17 # 1/2 MB should be enough
4971      do
4972        i=`expr $i + 1`
4973        teststring=$teststring$teststring
4974      done
4975      # Only check the string length outside the loop.
4976      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4977      teststring=
4978      # Add a significant safety factor because C++ compilers can tack on
4979      # massive amounts of additional arguments before passing them to the
4980      # linker.  It appears as though 1/2 is a usable value.
4981      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4982    fi
4983    ;;
4984  esac
4985
4986fi
4987
4988if test -n $lt_cv_sys_max_cmd_len ; then
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4990$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4991else
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4993$as_echo "none" >&6; }
4994fi
4995max_cmd_len=$lt_cv_sys_max_cmd_len
4996
4997
4998
4999
5000
5001
5002: ${CP="cp -f"}
5003: ${MV="mv -f"}
5004: ${RM="rm -f"}
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5007$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5008# Try some XSI features
5009xsi_shell=no
5010( _lt_dummy="a/b/c"
5011  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5012      = c,a/b,b/c, \
5013    && eval 'test $(( 1 + 1 )) -eq 2 \
5014    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5015  && xsi_shell=yes
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5017$as_echo "$xsi_shell" >&6; }
5018
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5021$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5022lt_shell_append=no
5023( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5024    >/dev/null 2>&1 \
5025  && lt_shell_append=yes
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5027$as_echo "$lt_shell_append" >&6; }
5028
5029
5030if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5031  lt_unset=unset
5032else
5033  lt_unset=false
5034fi
5035
5036
5037
5038
5039
5040# test EBCDIC or ASCII
5041case `echo X|tr X '\101'` in
5042 A) # ASCII based system
5043    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5044  lt_SP2NL='tr \040 \012'
5045  lt_NL2SP='tr \015\012 \040\040'
5046  ;;
5047 *) # EBCDIC based system
5048  lt_SP2NL='tr \100 \n'
5049  lt_NL2SP='tr \r\n \100\100'
5050  ;;
5051esac
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5062$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5063if ${lt_cv_to_host_file_cmd+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  case $host in
5067  *-*-mingw* )
5068    case $build in
5069      *-*-mingw* ) # actually msys
5070        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5071        ;;
5072      *-*-cygwin* )
5073        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5074        ;;
5075      * ) # otherwise, assume *nix
5076        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5077        ;;
5078    esac
5079    ;;
5080  *-*-cygwin* )
5081    case $build in
5082      *-*-mingw* ) # actually msys
5083        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5084        ;;
5085      *-*-cygwin* )
5086        lt_cv_to_host_file_cmd=func_convert_file_noop
5087        ;;
5088      * ) # otherwise, assume *nix
5089        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5090        ;;
5091    esac
5092    ;;
5093  * ) # unhandled hosts (and "normal" native builds)
5094    lt_cv_to_host_file_cmd=func_convert_file_noop
5095    ;;
5096esac
5097
5098fi
5099
5100to_host_file_cmd=$lt_cv_to_host_file_cmd
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5102$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5103
5104
5105
5106
5107
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5109$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5110if ${lt_cv_to_tool_file_cmd+:} false; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  #assume ordinary cross tools, or native build.
5114lt_cv_to_tool_file_cmd=func_convert_file_noop
5115case $host in
5116  *-*-mingw* )
5117    case $build in
5118      *-*-mingw* ) # actually msys
5119        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5120        ;;
5121    esac
5122    ;;
5123esac
5124
5125fi
5126
5127to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5129$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5130
5131
5132
5133
5134
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5136$as_echo_n "checking for $LD option to reload object files... " >&6; }
5137if ${lt_cv_ld_reload_flag+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  lt_cv_ld_reload_flag='-r'
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5143$as_echo "$lt_cv_ld_reload_flag" >&6; }
5144reload_flag=$lt_cv_ld_reload_flag
5145case $reload_flag in
5146"" | " "*) ;;
5147*) reload_flag=" $reload_flag" ;;
5148esac
5149reload_cmds='$LD$reload_flag -o $output$reload_objs'
5150case $host_os in
5151  cygwin* | mingw* | pw32* | cegcc*)
5152    if test "$GCC" != yes; then
5153      reload_cmds=false
5154    fi
5155    ;;
5156  darwin*)
5157    if test "$GCC" = yes; then
5158      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5159    else
5160      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5161    fi
5162    ;;
5163esac
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173if test -n "$ac_tool_prefix"; then
5174  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5175set dummy ${ac_tool_prefix}objdump; ac_word=$2
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
5178if ${ac_cv_prog_OBJDUMP+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  if test -n "$OBJDUMP"; then
5182  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_exec_ext in '' $ac_executable_extensions; do
5190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196  done
5197IFS=$as_save_IFS
5198
5199fi
5200fi
5201OBJDUMP=$ac_cv_prog_OBJDUMP
5202if test -n "$OBJDUMP"; then
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5204$as_echo "$OBJDUMP" >&6; }
5205else
5206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5208fi
5209
5210
5211fi
5212if test -z "$ac_cv_prog_OBJDUMP"; then
5213  ac_ct_OBJDUMP=$OBJDUMP
5214  # Extract the first word of "objdump", so it can be a program name with args.
5215set dummy objdump; ac_word=$2
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217$as_echo_n "checking for $ac_word... " >&6; }
5218if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  if test -n "$ac_ct_OBJDUMP"; then
5222  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5223else
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227  IFS=$as_save_IFS
5228  test -z "$as_dir" && as_dir=.
5229    for ac_exec_ext in '' $ac_executable_extensions; do
5230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233    break 2
5234  fi
5235done
5236  done
5237IFS=$as_save_IFS
5238
5239fi
5240fi
5241ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5242if test -n "$ac_ct_OBJDUMP"; then
5243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5244$as_echo "$ac_ct_OBJDUMP" >&6; }
5245else
5246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247$as_echo "no" >&6; }
5248fi
5249
5250  if test "x$ac_ct_OBJDUMP" = x; then
5251    OBJDUMP="false"
5252  else
5253    case $cross_compiling:$ac_tool_warned in
5254yes:)
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257ac_tool_warned=yes ;;
5258esac
5259    OBJDUMP=$ac_ct_OBJDUMP
5260  fi
5261else
5262  OBJDUMP="$ac_cv_prog_OBJDUMP"
5263fi
5264
5265test -z "$OBJDUMP" && OBJDUMP=objdump
5266
5267
5268
5269
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5273$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5274if ${lt_cv_deplibs_check_method+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  lt_cv_file_magic_cmd='$MAGIC_CMD'
5278lt_cv_file_magic_test_file=
5279lt_cv_deplibs_check_method='unknown'
5280# Need to set the preceding variable on all platforms that support
5281# interlibrary dependencies.
5282# 'none' -- dependencies not supported.
5283# `unknown' -- same as none, but documents that we really don't know.
5284# 'pass_all' -- all dependencies passed with no checks.
5285# 'test_compile' -- check by making test program.
5286# 'file_magic [[regex]]' -- check by looking for files in library path
5287# which responds to the $file_magic_cmd with a given extended regex.
5288# If you have `file' or equivalent on your system and you're not sure
5289# whether `pass_all' will *always* work, you probably want this one.
5290
5291case $host_os in
5292aix[4-9]*)
5293  lt_cv_deplibs_check_method=pass_all
5294  ;;
5295
5296beos*)
5297  lt_cv_deplibs_check_method=pass_all
5298  ;;
5299
5300bsdi[45]*)
5301  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5302  lt_cv_file_magic_cmd='/usr/bin/file -L'
5303  lt_cv_file_magic_test_file=/shlib/libc.so
5304  ;;
5305
5306cygwin*)
5307  # func_win32_libid is a shell function defined in ltmain.sh
5308  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5309  lt_cv_file_magic_cmd='func_win32_libid'
5310  ;;
5311
5312mingw* | pw32*)
5313  # Base MSYS/MinGW do not provide the 'file' command needed by
5314  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5315  # unless we find 'file', for example because we are cross-compiling.
5316  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5317  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5318    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5319    lt_cv_file_magic_cmd='func_win32_libid'
5320  else
5321    # Keep this pattern in sync with the one in func_win32_libid.
5322    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5323    lt_cv_file_magic_cmd='$OBJDUMP -f'
5324  fi
5325  ;;
5326
5327cegcc*)
5328  # use the weaker test based on 'objdump'. See mingw*.
5329  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5330  lt_cv_file_magic_cmd='$OBJDUMP -f'
5331  ;;
5332
5333darwin* | rhapsody*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337freebsd* | dragonfly*)
5338  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5339    case $host_cpu in
5340    i*86 )
5341      # Not sure whether the presence of OpenBSD here was a mistake.
5342      # Let's accept both of them until this is cleared up.
5343      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5344      lt_cv_file_magic_cmd=/usr/bin/file
5345      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5346      ;;
5347    esac
5348  else
5349    lt_cv_deplibs_check_method=pass_all
5350  fi
5351  ;;
5352
5353haiku*)
5354  lt_cv_deplibs_check_method=pass_all
5355  ;;
5356
5357hpux10.20* | hpux11*)
5358  lt_cv_file_magic_cmd=/usr/bin/file
5359  case $host_cpu in
5360  ia64*)
5361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5362    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5363    ;;
5364  hppa*64*)
5365    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]'
5366    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5367    ;;
5368  *)
5369    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5370    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5371    ;;
5372  esac
5373  ;;
5374
5375interix[3-9]*)
5376  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5377  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5378  ;;
5379
5380irix5* | irix6* | nonstopux*)
5381  case $LD in
5382  *-32|*"-32 ") libmagic=32-bit;;
5383  *-n32|*"-n32 ") libmagic=N32;;
5384  *-64|*"-64 ") libmagic=64-bit;;
5385  *) libmagic=never-match;;
5386  esac
5387  lt_cv_deplibs_check_method=pass_all
5388  ;;
5389
5390# This must be glibc/ELF.
5391linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5392  lt_cv_deplibs_check_method=pass_all
5393  ;;
5394
5395netbsd* | netbsdelf*-gnu)
5396  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5397    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5398  else
5399    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5400  fi
5401  ;;
5402
5403newos6*)
5404  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5405  lt_cv_file_magic_cmd=/usr/bin/file
5406  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5407  ;;
5408
5409*nto* | *qnx*)
5410  lt_cv_deplibs_check_method=pass_all
5411  ;;
5412
5413openbsd*)
5414  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5415    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5416  else
5417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5418  fi
5419  ;;
5420
5421osf3* | osf4* | osf5*)
5422  lt_cv_deplibs_check_method=pass_all
5423  ;;
5424
5425rdos*)
5426  lt_cv_deplibs_check_method=pass_all
5427  ;;
5428
5429solaris*)
5430  lt_cv_deplibs_check_method=pass_all
5431  ;;
5432
5433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5434  lt_cv_deplibs_check_method=pass_all
5435  ;;
5436
5437sysv4 | sysv4.3*)
5438  case $host_vendor in
5439  motorola)
5440    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]'
5441    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5442    ;;
5443  ncr)
5444    lt_cv_deplibs_check_method=pass_all
5445    ;;
5446  sequent)
5447    lt_cv_file_magic_cmd='/bin/file'
5448    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5449    ;;
5450  sni)
5451    lt_cv_file_magic_cmd='/bin/file'
5452    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5453    lt_cv_file_magic_test_file=/lib/libc.so
5454    ;;
5455  siemens)
5456    lt_cv_deplibs_check_method=pass_all
5457    ;;
5458  pc)
5459    lt_cv_deplibs_check_method=pass_all
5460    ;;
5461  esac
5462  ;;
5463
5464tpf*)
5465  lt_cv_deplibs_check_method=pass_all
5466  ;;
5467esac
5468
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5471$as_echo "$lt_cv_deplibs_check_method" >&6; }
5472
5473file_magic_glob=
5474want_nocaseglob=no
5475if test "$build" = "$host"; then
5476  case $host_os in
5477  mingw* | pw32*)
5478    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5479      want_nocaseglob=yes
5480    else
5481      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5482    fi
5483    ;;
5484  esac
5485fi
5486
5487file_magic_cmd=$lt_cv_file_magic_cmd
5488deplibs_check_method=$lt_cv_deplibs_check_method
5489test -z "$deplibs_check_method" && deplibs_check_method=unknown
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512if test -n "$ac_tool_prefix"; then
5513  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5514set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516$as_echo_n "checking for $ac_word... " >&6; }
5517if ${ac_cv_prog_DLLTOOL+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  if test -n "$DLLTOOL"; then
5521  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526  IFS=$as_save_IFS
5527  test -z "$as_dir" && as_dir=.
5528    for ac_exec_ext in '' $ac_executable_extensions; do
5529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532    break 2
5533  fi
5534done
5535  done
5536IFS=$as_save_IFS
5537
5538fi
5539fi
5540DLLTOOL=$ac_cv_prog_DLLTOOL
5541if test -n "$DLLTOOL"; then
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5543$as_echo "$DLLTOOL" >&6; }
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }
5547fi
5548
5549
5550fi
5551if test -z "$ac_cv_prog_DLLTOOL"; then
5552  ac_ct_DLLTOOL=$DLLTOOL
5553  # Extract the first word of "dlltool", so it can be a program name with args.
5554set dummy dlltool; ac_word=$2
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; }
5557if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  if test -n "$ac_ct_DLLTOOL"; then
5561  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5562else
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566  IFS=$as_save_IFS
5567  test -z "$as_dir" && as_dir=.
5568    for ac_exec_ext in '' $ac_executable_extensions; do
5569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572    break 2
5573  fi
5574done
5575  done
5576IFS=$as_save_IFS
5577
5578fi
5579fi
5580ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5581if test -n "$ac_ct_DLLTOOL"; then
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5583$as_echo "$ac_ct_DLLTOOL" >&6; }
5584else
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5587fi
5588
5589  if test "x$ac_ct_DLLTOOL" = x; then
5590    DLLTOOL="false"
5591  else
5592    case $cross_compiling:$ac_tool_warned in
5593yes:)
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596ac_tool_warned=yes ;;
5597esac
5598    DLLTOOL=$ac_ct_DLLTOOL
5599  fi
5600else
5601  DLLTOOL="$ac_cv_prog_DLLTOOL"
5602fi
5603
5604test -z "$DLLTOOL" && DLLTOOL=dlltool
5605
5606
5607
5608
5609
5610
5611
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5613$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5614if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5615  $as_echo_n "(cached) " >&6
5616else
5617  lt_cv_sharedlib_from_linklib_cmd='unknown'
5618
5619case $host_os in
5620cygwin* | mingw* | pw32* | cegcc*)
5621  # two different shell functions defined in ltmain.sh
5622  # decide which to use based on capabilities of $DLLTOOL
5623  case `$DLLTOOL --help 2>&1` in
5624  *--identify-strict*)
5625    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5626    ;;
5627  *)
5628    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5629    ;;
5630  esac
5631  ;;
5632*)
5633  # fallback: assume linklib IS sharedlib
5634  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5635  ;;
5636esac
5637
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5640$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5641sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5642test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5643
5644
5645
5646
5647
5648
5649
5650
5651if test -n "$ac_tool_prefix"; then
5652  for ac_prog in ar
5653  do
5654    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657$as_echo_n "checking for $ac_word... " >&6; }
5658if ${ac_cv_prog_AR+:} false; then :
5659  $as_echo_n "(cached) " >&6
5660else
5661  if test -n "$AR"; then
5662  ac_cv_prog_AR="$AR" # Let the user override the test.
5663else
5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667  IFS=$as_save_IFS
5668  test -z "$as_dir" && as_dir=.
5669    for ac_exec_ext in '' $ac_executable_extensions; do
5670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673    break 2
5674  fi
5675done
5676  done
5677IFS=$as_save_IFS
5678
5679fi
5680fi
5681AR=$ac_cv_prog_AR
5682if test -n "$AR"; then
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5684$as_echo "$AR" >&6; }
5685else
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688fi
5689
5690
5691    test -n "$AR" && break
5692  done
5693fi
5694if test -z "$AR"; then
5695  ac_ct_AR=$AR
5696  for ac_prog in ar
5697do
5698  # Extract the first word of "$ac_prog", so it can be a program name with args.
5699set dummy $ac_prog; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
5702if ${ac_cv_prog_ac_ct_AR+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  if test -n "$ac_ct_AR"; then
5706  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  test -z "$as_dir" && as_dir=.
5713    for ac_exec_ext in '' $ac_executable_extensions; do
5714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715    ac_cv_prog_ac_ct_AR="$ac_prog"
5716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717    break 2
5718  fi
5719done
5720  done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725ac_ct_AR=$ac_cv_prog_ac_ct_AR
5726if test -n "$ac_ct_AR"; then
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5728$as_echo "$ac_ct_AR" >&6; }
5729else
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734
5735  test -n "$ac_ct_AR" && break
5736done
5737
5738  if test "x$ac_ct_AR" = x; then
5739    AR="false"
5740  else
5741    case $cross_compiling:$ac_tool_warned in
5742yes:)
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745ac_tool_warned=yes ;;
5746esac
5747    AR=$ac_ct_AR
5748  fi
5749fi
5750
5751: ${AR=ar}
5752: ${AR_FLAGS=cru}
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5765$as_echo_n "checking for archiver @FILE support... " >&6; }
5766if ${lt_cv_ar_at_file+:} false; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  lt_cv_ar_at_file=no
5770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772
5773int
5774main ()
5775{
5776
5777  ;
5778  return 0;
5779}
5780_ACEOF
5781if ac_fn_c_try_compile "$LINENO"; then :
5782  echo conftest.$ac_objext > conftest.lst
5783      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5784      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5785  (eval $lt_ar_try) 2>&5
5786  ac_status=$?
5787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5788  test $ac_status = 0; }
5789      if test "$ac_status" -eq 0; then
5790	# Ensure the archiver fails upon bogus file names.
5791	rm -f conftest.$ac_objext libconftest.a
5792	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5793  (eval $lt_ar_try) 2>&5
5794  ac_status=$?
5795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796  test $ac_status = 0; }
5797	if test "$ac_status" -ne 0; then
5798          lt_cv_ar_at_file=@
5799        fi
5800      fi
5801      rm -f conftest.* libconftest.a
5802
5803fi
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5808$as_echo "$lt_cv_ar_at_file" >&6; }
5809
5810if test "x$lt_cv_ar_at_file" = xno; then
5811  archiver_list_spec=
5812else
5813  archiver_list_spec=$lt_cv_ar_at_file
5814fi
5815
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}strip; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
5827if ${ac_cv_prog_STRIP+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  if test -n "$STRIP"; then
5831  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836  IFS=$as_save_IFS
5837  test -z "$as_dir" && as_dir=.
5838    for ac_exec_ext in '' $ac_executable_extensions; do
5839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842    break 2
5843  fi
5844done
5845  done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850STRIP=$ac_cv_prog_STRIP
5851if test -n "$STRIP"; then
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5853$as_echo "$STRIP" >&6; }
5854else
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_STRIP"; then
5862  ac_ct_STRIP=$STRIP
5863  # Extract the first word of "strip", so it can be a program name with args.
5864set dummy strip; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  if test -n "$ac_ct_STRIP"; then
5871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880    ac_cv_prog_ac_ct_STRIP="strip"
5881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885  done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5891if test -n "$ac_ct_STRIP"; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5893$as_echo "$ac_ct_STRIP" >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899  if test "x$ac_ct_STRIP" = x; then
5900    STRIP=":"
5901  else
5902    case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908    STRIP=$ac_ct_STRIP
5909  fi
5910else
5911  STRIP="$ac_cv_prog_STRIP"
5912fi
5913
5914test -z "$STRIP" && STRIP=:
5915
5916
5917
5918
5919
5920
5921if test -n "$ac_tool_prefix"; then
5922  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if ${ac_cv_prog_RANLIB+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  if test -n "$RANLIB"; then
5930  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937    for ac_exec_ext in '' $ac_executable_extensions; do
5938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944  done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949RANLIB=$ac_cv_prog_RANLIB
5950if test -n "$RANLIB"; then
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5952$as_echo "$RANLIB" >&6; }
5953else
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959fi
5960if test -z "$ac_cv_prog_RANLIB"; then
5961  ac_ct_RANLIB=$RANLIB
5962  # Extract the first word of "ranlib", so it can be a program name with args.
5963set dummy ranlib; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  if test -n "$ac_ct_RANLIB"; then
5970  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975  IFS=$as_save_IFS
5976  test -z "$as_dir" && as_dir=.
5977    for ac_exec_ext in '' $ac_executable_extensions; do
5978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979    ac_cv_prog_ac_ct_RANLIB="ranlib"
5980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981    break 2
5982  fi
5983done
5984  done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5990if test -n "$ac_ct_RANLIB"; then
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5992$as_echo "$ac_ct_RANLIB" >&6; }
5993else
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998  if test "x$ac_ct_RANLIB" = x; then
5999    RANLIB=":"
6000  else
6001    case $cross_compiling:$ac_tool_warned in
6002yes:)
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005ac_tool_warned=yes ;;
6006esac
6007    RANLIB=$ac_ct_RANLIB
6008  fi
6009else
6010  RANLIB="$ac_cv_prog_RANLIB"
6011fi
6012
6013test -z "$RANLIB" && RANLIB=:
6014
6015
6016
6017
6018
6019
6020# Determine commands to create old-style static archives.
6021old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6022old_postinstall_cmds='chmod 644 $oldlib'
6023old_postuninstall_cmds=
6024
6025if test -n "$RANLIB"; then
6026  case $host_os in
6027  openbsd*)
6028    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6029    ;;
6030  *)
6031    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6032    ;;
6033  esac
6034  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6035fi
6036
6037case $host_os in
6038  darwin*)
6039    lock_old_archive_extraction=yes ;;
6040  *)
6041    lock_old_archive_extraction=no ;;
6042esac
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064for ac_prog in gawk mawk nawk awk
6065do
6066  # Extract the first word of "$ac_prog", so it can be a program name with args.
6067set dummy $ac_prog; ac_word=$2
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069$as_echo_n "checking for $ac_word... " >&6; }
6070if ${ac_cv_prog_AWK+:} false; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073  if test -n "$AWK"; then
6074  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079  IFS=$as_save_IFS
6080  test -z "$as_dir" && as_dir=.
6081    for ac_exec_ext in '' $ac_executable_extensions; do
6082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083    ac_cv_prog_AWK="$ac_prog"
6084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085    break 2
6086  fi
6087done
6088  done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093AWK=$ac_cv_prog_AWK
6094if test -n "$AWK"; then
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6096$as_echo "$AWK" >&6; }
6097else
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101
6102
6103  test -n "$AWK" && break
6104done
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124# If no C compiler was specified, use CC.
6125LTCC=${LTCC-"$CC"}
6126
6127# If no C compiler flags were specified, use CFLAGS.
6128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6129
6130# Allow CC to be a program name with arguments.
6131compiler=$CC
6132
6133
6134# Check for command to grab the raw symbol name followed by C symbol from nm.
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6136$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6137if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140
6141# These are sane defaults that work on at least a few old systems.
6142# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6143
6144# Character class describing NM global symbol codes.
6145symcode='[BCDEGRST]'
6146
6147# Regexp to match symbols that can be accessed directly from C.
6148sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6149
6150# Define system-specific variables.
6151case $host_os in
6152aix*)
6153  symcode='[BCDT]'
6154  ;;
6155cygwin* | mingw* | pw32* | cegcc*)
6156  symcode='[ABCDGISTW]'
6157  ;;
6158hpux*)
6159  if test "$host_cpu" = ia64; then
6160    symcode='[ABCDEGRST]'
6161  fi
6162  ;;
6163irix* | nonstopux*)
6164  symcode='[BCDEGRST]'
6165  ;;
6166osf*)
6167  symcode='[BCDEGQRST]'
6168  ;;
6169solaris*)
6170  symcode='[BDRT]'
6171  ;;
6172sco3.2v5*)
6173  symcode='[DT]'
6174  ;;
6175sysv4.2uw2*)
6176  symcode='[DT]'
6177  ;;
6178sysv5* | sco5v6* | unixware* | OpenUNIX*)
6179  symcode='[ABDT]'
6180  ;;
6181sysv4)
6182  symcode='[DFNSTU]'
6183  ;;
6184esac
6185
6186# If we're using GNU nm, then use its standard symbol codes.
6187case `$NM -V 2>&1` in
6188*GNU* | *'with BFD'*)
6189  symcode='[ABCDGIRSTW]' ;;
6190esac
6191
6192# Transform an extracted symbol line into a proper C declaration.
6193# Some systems (esp. on ia64) link data and code symbols differently,
6194# so use this general approach.
6195lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6196
6197# Transform an extracted symbol line into symbol name and symbol address
6198lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6199lt_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'"
6200
6201# Handle CRLF in mingw tool chain
6202opt_cr=
6203case $build_os in
6204mingw*)
6205  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6206  ;;
6207esac
6208
6209# Try without a prefix underscore, then with it.
6210for ac_symprfx in "" "_"; do
6211
6212  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6213  symxfrm="\\1 $ac_symprfx\\2 \\2"
6214
6215  # Write the raw and C identifiers.
6216  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6217    # Fake it for dumpbin and say T for any non-static function
6218    # and D for any global variable.
6219    # Also find C++ and __fastcall symbols from MSVC++,
6220    # which start with @ or ?.
6221    lt_cv_sys_global_symbol_pipe="$AWK '"\
6222"     {last_section=section; section=\$ 3};"\
6223"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6224"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6225"     \$ 0!~/External *\|/{next};"\
6226"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6227"     {if(hide[section]) next};"\
6228"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6229"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6230"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6231"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6232"     ' prfx=^$ac_symprfx"
6233  else
6234    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6235  fi
6236  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6237
6238  # Check to see that the pipe works correctly.
6239  pipe_works=no
6240
6241  rm -f conftest*
6242  cat > conftest.$ac_ext <<_LT_EOF
6243#ifdef __cplusplus
6244extern "C" {
6245#endif
6246char nm_test_var;
6247void nm_test_func(void);
6248void nm_test_func(void){}
6249#ifdef __cplusplus
6250}
6251#endif
6252int main(){nm_test_var='a';nm_test_func();return(0);}
6253_LT_EOF
6254
6255  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256  (eval $ac_compile) 2>&5
6257  ac_status=$?
6258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259  test $ac_status = 0; }; then
6260    # Now try to grab the symbols.
6261    nlist=conftest.nm
6262    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6263  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6264  ac_status=$?
6265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266  test $ac_status = 0; } && test -s "$nlist"; then
6267      # Try sorting and uniquifying the output.
6268      if sort "$nlist" | uniq > "$nlist"T; then
6269	mv -f "$nlist"T "$nlist"
6270      else
6271	rm -f "$nlist"T
6272      fi
6273
6274      # Make sure that we snagged all the symbols we need.
6275      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6276	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6277	  cat <<_LT_EOF > conftest.$ac_ext
6278/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6279#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6280/* DATA imports from DLLs on WIN32 con't be const, because runtime
6281   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6282# define LT_DLSYM_CONST
6283#elif defined(__osf__)
6284/* This system does not cope well with relocations in const data.  */
6285# define LT_DLSYM_CONST
6286#else
6287# define LT_DLSYM_CONST const
6288#endif
6289
6290#ifdef __cplusplus
6291extern "C" {
6292#endif
6293
6294_LT_EOF
6295	  # Now generate the symbol file.
6296	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6297
6298	  cat <<_LT_EOF >> conftest.$ac_ext
6299
6300/* The mapping between symbol names and symbols.  */
6301LT_DLSYM_CONST struct {
6302  const char *name;
6303  void       *address;
6304}
6305lt__PROGRAM__LTX_preloaded_symbols[] =
6306{
6307  { "@PROGRAM@", (void *) 0 },
6308_LT_EOF
6309	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6310	  cat <<\_LT_EOF >> conftest.$ac_ext
6311  {0, (void *) 0}
6312};
6313
6314/* This works around a problem in FreeBSD linker */
6315#ifdef FREEBSD_WORKAROUND
6316static const void *lt_preloaded_setup() {
6317  return lt__PROGRAM__LTX_preloaded_symbols;
6318}
6319#endif
6320
6321#ifdef __cplusplus
6322}
6323#endif
6324_LT_EOF
6325	  # Now try linking the two files.
6326	  mv conftest.$ac_objext conftstm.$ac_objext
6327	  lt_globsym_save_LIBS=$LIBS
6328	  lt_globsym_save_CFLAGS=$CFLAGS
6329	  LIBS="conftstm.$ac_objext"
6330	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6331	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6332  (eval $ac_link) 2>&5
6333  ac_status=$?
6334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6336	    pipe_works=yes
6337	  fi
6338	  LIBS=$lt_globsym_save_LIBS
6339	  CFLAGS=$lt_globsym_save_CFLAGS
6340	else
6341	  echo "cannot find nm_test_func in $nlist" >&5
6342	fi
6343      else
6344	echo "cannot find nm_test_var in $nlist" >&5
6345      fi
6346    else
6347      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6348    fi
6349  else
6350    echo "$progname: failed program was:" >&5
6351    cat conftest.$ac_ext >&5
6352  fi
6353  rm -rf conftest* conftst*
6354
6355  # Do not use the global_symbol_pipe unless it works.
6356  if test "$pipe_works" = yes; then
6357    break
6358  else
6359    lt_cv_sys_global_symbol_pipe=
6360  fi
6361done
6362
6363fi
6364
6365if test -z "$lt_cv_sys_global_symbol_pipe"; then
6366  lt_cv_sys_global_symbol_to_cdecl=
6367fi
6368if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6370$as_echo "failed" >&6; }
6371else
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6373$as_echo "ok" >&6; }
6374fi
6375
6376# Response file support.
6377if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6378  nm_file_list_spec='@'
6379elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6380  nm_file_list_spec='@'
6381fi
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6410$as_echo_n "checking for sysroot... " >&6; }
6411
6412# Check whether --with-sysroot was given.
6413if test "${with_sysroot+set}" = set; then :
6414  withval=$with_sysroot;
6415else
6416  with_sysroot=no
6417fi
6418
6419
6420lt_sysroot=
6421case ${with_sysroot} in #(
6422 yes)
6423   if test "$GCC" = yes; then
6424     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6425   fi
6426   ;; #(
6427 /*)
6428   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6429   ;; #(
6430 no|'')
6431   ;; #(
6432 *)
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6434$as_echo "${with_sysroot}" >&6; }
6435   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6436   ;;
6437esac
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6440$as_echo "${lt_sysroot:-no}" >&6; }
6441
6442
6443
6444
6445
6446# Check whether --enable-libtool-lock was given.
6447if test "${enable_libtool_lock+set}" = set; then :
6448  enableval=$enable_libtool_lock;
6449fi
6450
6451test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6452
6453# Some flags need to be propagated to the compiler or linker for good
6454# libtool support.
6455case $host in
6456ia64-*-hpux*)
6457  # Find out which ABI we are using.
6458  echo 'int i;' > conftest.$ac_ext
6459  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460  (eval $ac_compile) 2>&5
6461  ac_status=$?
6462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463  test $ac_status = 0; }; then
6464    case `/usr/bin/file conftest.$ac_objext` in
6465      *ELF-32*)
6466	HPUX_IA64_MODE="32"
6467	;;
6468      *ELF-64*)
6469	HPUX_IA64_MODE="64"
6470	;;
6471    esac
6472  fi
6473  rm -rf conftest*
6474  ;;
6475*-*-irix6*)
6476  # Find out which ABI we are using.
6477  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479  (eval $ac_compile) 2>&5
6480  ac_status=$?
6481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482  test $ac_status = 0; }; then
6483    if test "$lt_cv_prog_gnu_ld" = yes; then
6484      case `/usr/bin/file conftest.$ac_objext` in
6485	*32-bit*)
6486	  LD="${LD-ld} -melf32bsmip"
6487	  ;;
6488	*N32*)
6489	  LD="${LD-ld} -melf32bmipn32"
6490	  ;;
6491	*64-bit*)
6492	  LD="${LD-ld} -melf64bmip"
6493	;;
6494      esac
6495    else
6496      case `/usr/bin/file conftest.$ac_objext` in
6497	*32-bit*)
6498	  LD="${LD-ld} -32"
6499	  ;;
6500	*N32*)
6501	  LD="${LD-ld} -n32"
6502	  ;;
6503	*64-bit*)
6504	  LD="${LD-ld} -64"
6505	  ;;
6506      esac
6507    fi
6508  fi
6509  rm -rf conftest*
6510  ;;
6511
6512x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6513s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6514  # Find out which ABI we are using.
6515  echo 'int i;' > conftest.$ac_ext
6516  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517  (eval $ac_compile) 2>&5
6518  ac_status=$?
6519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520  test $ac_status = 0; }; then
6521    case `/usr/bin/file conftest.o` in
6522      *32-bit*)
6523	case $host in
6524	  x86_64-*kfreebsd*-gnu)
6525	    LD="${LD-ld} -m elf_i386_fbsd"
6526	    ;;
6527	  x86_64-*linux*)
6528	    case `/usr/bin/file conftest.o` in
6529	      *x86-64*)
6530		LD="${LD-ld} -m elf32_x86_64"
6531		;;
6532	      *)
6533		LD="${LD-ld} -m elf_i386"
6534		;;
6535	    esac
6536	    ;;
6537	  powerpc64le-*)
6538	    LD="${LD-ld} -m elf32lppclinux"
6539	    ;;
6540	  powerpc64-*)
6541	    LD="${LD-ld} -m elf32ppclinux"
6542	    ;;
6543	  s390x-*linux*)
6544	    LD="${LD-ld} -m elf_s390"
6545	    ;;
6546	  sparc64-*linux*)
6547	    LD="${LD-ld} -m elf32_sparc"
6548	    ;;
6549	esac
6550	;;
6551      *64-bit*)
6552	case $host in
6553	  x86_64-*kfreebsd*-gnu)
6554	    LD="${LD-ld} -m elf_x86_64_fbsd"
6555	    ;;
6556	  x86_64-*linux*)
6557	    LD="${LD-ld} -m elf_x86_64"
6558	    ;;
6559	  powerpcle-*)
6560	    LD="${LD-ld} -m elf64lppc"
6561	    ;;
6562	  powerpc-*)
6563	    LD="${LD-ld} -m elf64ppc"
6564	    ;;
6565	  s390*-*linux*|s390*-*tpf*)
6566	    LD="${LD-ld} -m elf64_s390"
6567	    ;;
6568	  sparc*-*linux*)
6569	    LD="${LD-ld} -m elf64_sparc"
6570	    ;;
6571	esac
6572	;;
6573    esac
6574  fi
6575  rm -rf conftest*
6576  ;;
6577
6578*-*-sco3.2v5*)
6579  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6580  SAVE_CFLAGS="$CFLAGS"
6581  CFLAGS="$CFLAGS -belf"
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6583$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6584if ${lt_cv_cc_needs_belf+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  ac_ext=c
6588ac_cpp='$CPP $CPPFLAGS'
6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592
6593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h.  */
6595
6596int
6597main ()
6598{
6599
6600  ;
6601  return 0;
6602}
6603_ACEOF
6604if ac_fn_c_try_link "$LINENO"; then :
6605  lt_cv_cc_needs_belf=yes
6606else
6607  lt_cv_cc_needs_belf=no
6608fi
6609rm -f core conftest.err conftest.$ac_objext \
6610    conftest$ac_exeext conftest.$ac_ext
6611     ac_ext=c
6612ac_cpp='$CPP $CPPFLAGS'
6613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6619$as_echo "$lt_cv_cc_needs_belf" >&6; }
6620  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6621    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6622    CFLAGS="$SAVE_CFLAGS"
6623  fi
6624  ;;
6625*-*solaris*)
6626  # Find out which ABI we are using.
6627  echo 'int i;' > conftest.$ac_ext
6628  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629  (eval $ac_compile) 2>&5
6630  ac_status=$?
6631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632  test $ac_status = 0; }; then
6633    case `/usr/bin/file conftest.o` in
6634    *64-bit*)
6635      case $lt_cv_prog_gnu_ld in
6636      yes*)
6637        case $host in
6638        i?86-*-solaris*)
6639          LD="${LD-ld} -m elf_x86_64"
6640          ;;
6641        sparc*-*-solaris*)
6642          LD="${LD-ld} -m elf64_sparc"
6643          ;;
6644        esac
6645        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6646        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6647          LD="${LD-ld}_sol2"
6648        fi
6649        ;;
6650      *)
6651	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6652	  LD="${LD-ld} -64"
6653	fi
6654	;;
6655      esac
6656      ;;
6657    esac
6658  fi
6659  rm -rf conftest*
6660  ;;
6661esac
6662
6663need_locks="$enable_libtool_lock"
6664
6665if test -n "$ac_tool_prefix"; then
6666  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6667set dummy ${ac_tool_prefix}mt; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$MANIFEST_TOOL"; then
6674  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6694if test -n "$MANIFEST_TOOL"; then
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6696$as_echo "$MANIFEST_TOOL" >&6; }
6697else
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702
6703fi
6704if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6705  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6706  # Extract the first word of "mt", so it can be a program name with args.
6707set dummy mt; ac_word=$2
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709$as_echo_n "checking for $ac_word... " >&6; }
6710if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  if test -n "$ac_ct_MANIFEST_TOOL"; then
6714  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  test -z "$as_dir" && as_dir=.
6721    for ac_exec_ext in '' $ac_executable_extensions; do
6722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728  done
6729IFS=$as_save_IFS
6730
6731fi
6732fi
6733ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6734if test -n "$ac_ct_MANIFEST_TOOL"; then
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6736$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6737else
6738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739$as_echo "no" >&6; }
6740fi
6741
6742  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6743    MANIFEST_TOOL=":"
6744  else
6745    case $cross_compiling:$ac_tool_warned in
6746yes:)
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749ac_tool_warned=yes ;;
6750esac
6751    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6752  fi
6753else
6754  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6755fi
6756
6757test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6759$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6760if ${lt_cv_path_mainfest_tool+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  lt_cv_path_mainfest_tool=no
6764  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6765  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6766  cat conftest.err >&5
6767  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6768    lt_cv_path_mainfest_tool=yes
6769  fi
6770  rm -f conftest*
6771fi
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6773$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6774if test "x$lt_cv_path_mainfest_tool" != xyes; then
6775  MANIFEST_TOOL=:
6776fi
6777
6778
6779
6780
6781
6782
6783  case $host_os in
6784    rhapsody* | darwin*)
6785    if test -n "$ac_tool_prefix"; then
6786  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if ${ac_cv_prog_DSYMUTIL+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -n "$DSYMUTIL"; then
6794  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813DSYMUTIL=$ac_cv_prog_DSYMUTIL
6814if test -n "$DSYMUTIL"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6816$as_echo "$DSYMUTIL" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_DSYMUTIL"; then
6825  ac_ct_DSYMUTIL=$DSYMUTIL
6826  # Extract the first word of "dsymutil", so it can be a program name with args.
6827set dummy dsymutil; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  if test -n "$ac_ct_DSYMUTIL"; then
6834  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839  IFS=$as_save_IFS
6840  test -z "$as_dir" && as_dir=.
6841    for ac_exec_ext in '' $ac_executable_extensions; do
6842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848  done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6854if test -n "$ac_ct_DSYMUTIL"; then
6855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6856$as_echo "$ac_ct_DSYMUTIL" >&6; }
6857else
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862  if test "x$ac_ct_DSYMUTIL" = x; then
6863    DSYMUTIL=":"
6864  else
6865    case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869ac_tool_warned=yes ;;
6870esac
6871    DSYMUTIL=$ac_ct_DSYMUTIL
6872  fi
6873else
6874  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6875fi
6876
6877    if test -n "$ac_tool_prefix"; then
6878  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6879set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if ${ac_cv_prog_NMEDIT+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  if test -n "$NMEDIT"; then
6886  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891  IFS=$as_save_IFS
6892  test -z "$as_dir" && as_dir=.
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905NMEDIT=$ac_cv_prog_NMEDIT
6906if test -n "$NMEDIT"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6908$as_echo "$NMEDIT" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914
6915fi
6916if test -z "$ac_cv_prog_NMEDIT"; then
6917  ac_ct_NMEDIT=$NMEDIT
6918  # Extract the first word of "nmedit", so it can be a program name with args.
6919set dummy nmedit; ac_word=$2
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
6922if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  if test -n "$ac_ct_NMEDIT"; then
6926  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931  IFS=$as_save_IFS
6932  test -z "$as_dir" && as_dir=.
6933    for ac_exec_ext in '' $ac_executable_extensions; do
6934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940  done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6946if test -n "$ac_ct_NMEDIT"; then
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6948$as_echo "$ac_ct_NMEDIT" >&6; }
6949else
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953
6954  if test "x$ac_ct_NMEDIT" = x; then
6955    NMEDIT=":"
6956  else
6957    case $cross_compiling:$ac_tool_warned in
6958yes:)
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961ac_tool_warned=yes ;;
6962esac
6963    NMEDIT=$ac_ct_NMEDIT
6964  fi
6965else
6966  NMEDIT="$ac_cv_prog_NMEDIT"
6967fi
6968
6969    if test -n "$ac_tool_prefix"; then
6970  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6971set dummy ${ac_tool_prefix}lipo; ac_word=$2
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973$as_echo_n "checking for $ac_word... " >&6; }
6974if ${ac_cv_prog_LIPO+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  if test -n "$LIPO"; then
6978  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6979else
6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983  IFS=$as_save_IFS
6984  test -z "$as_dir" && as_dir=.
6985    for ac_exec_ext in '' $ac_executable_extensions; do
6986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989    break 2
6990  fi
6991done
6992  done
6993IFS=$as_save_IFS
6994
6995fi
6996fi
6997LIPO=$ac_cv_prog_LIPO
6998if test -n "$LIPO"; then
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7000$as_echo "$LIPO" >&6; }
7001else
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003$as_echo "no" >&6; }
7004fi
7005
7006
7007fi
7008if test -z "$ac_cv_prog_LIPO"; then
7009  ac_ct_LIPO=$LIPO
7010  # Extract the first word of "lipo", so it can be a program name with args.
7011set dummy lipo; ac_word=$2
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013$as_echo_n "checking for $ac_word... " >&6; }
7014if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  if test -n "$ac_ct_LIPO"; then
7018  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023  IFS=$as_save_IFS
7024  test -z "$as_dir" && as_dir=.
7025    for ac_exec_ext in '' $ac_executable_extensions; do
7026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027    ac_cv_prog_ac_ct_LIPO="lipo"
7028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029    break 2
7030  fi
7031done
7032  done
7033IFS=$as_save_IFS
7034
7035fi
7036fi
7037ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7038if test -n "$ac_ct_LIPO"; then
7039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7040$as_echo "$ac_ct_LIPO" >&6; }
7041else
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043$as_echo "no" >&6; }
7044fi
7045
7046  if test "x$ac_ct_LIPO" = x; then
7047    LIPO=":"
7048  else
7049    case $cross_compiling:$ac_tool_warned in
7050yes:)
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053ac_tool_warned=yes ;;
7054esac
7055    LIPO=$ac_ct_LIPO
7056  fi
7057else
7058  LIPO="$ac_cv_prog_LIPO"
7059fi
7060
7061    if test -n "$ac_tool_prefix"; then
7062  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7063set dummy ${ac_tool_prefix}otool; ac_word=$2
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065$as_echo_n "checking for $ac_word... " >&6; }
7066if ${ac_cv_prog_OTOOL+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  if test -n "$OTOOL"; then
7070  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  test -z "$as_dir" && as_dir=.
7077    for ac_exec_ext in '' $ac_executable_extensions; do
7078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081    break 2
7082  fi
7083done
7084  done
7085IFS=$as_save_IFS
7086
7087fi
7088fi
7089OTOOL=$ac_cv_prog_OTOOL
7090if test -n "$OTOOL"; then
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7092$as_echo "$OTOOL" >&6; }
7093else
7094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095$as_echo "no" >&6; }
7096fi
7097
7098
7099fi
7100if test -z "$ac_cv_prog_OTOOL"; then
7101  ac_ct_OTOOL=$OTOOL
7102  # Extract the first word of "otool", so it can be a program name with args.
7103set dummy otool; ac_word=$2
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
7106if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  if test -n "$ac_ct_OTOOL"; then
7110  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115  IFS=$as_save_IFS
7116  test -z "$as_dir" && as_dir=.
7117    for ac_exec_ext in '' $ac_executable_extensions; do
7118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119    ac_cv_prog_ac_ct_OTOOL="otool"
7120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121    break 2
7122  fi
7123done
7124  done
7125IFS=$as_save_IFS
7126
7127fi
7128fi
7129ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7130if test -n "$ac_ct_OTOOL"; then
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7132$as_echo "$ac_ct_OTOOL" >&6; }
7133else
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
7136fi
7137
7138  if test "x$ac_ct_OTOOL" = x; then
7139    OTOOL=":"
7140  else
7141    case $cross_compiling:$ac_tool_warned in
7142yes:)
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145ac_tool_warned=yes ;;
7146esac
7147    OTOOL=$ac_ct_OTOOL
7148  fi
7149else
7150  OTOOL="$ac_cv_prog_OTOOL"
7151fi
7152
7153    if test -n "$ac_tool_prefix"; then
7154  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}otool64; ac_word=$2
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if ${ac_cv_prog_OTOOL64+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  if test -n "$OTOOL64"; then
7162  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167  IFS=$as_save_IFS
7168  test -z "$as_dir" && as_dir=.
7169    for ac_exec_ext in '' $ac_executable_extensions; do
7170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173    break 2
7174  fi
7175done
7176  done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181OTOOL64=$ac_cv_prog_OTOOL64
7182if test -n "$OTOOL64"; then
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7184$as_echo "$OTOOL64" >&6; }
7185else
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190
7191fi
7192if test -z "$ac_cv_prog_OTOOL64"; then
7193  ac_ct_OTOOL64=$OTOOL64
7194  # Extract the first word of "otool64", so it can be a program name with args.
7195set dummy otool64; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$ac_ct_OTOOL64"; then
7202  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211    ac_cv_prog_ac_ct_OTOOL64="otool64"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7222if test -n "$ac_ct_OTOOL64"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7224$as_echo "$ac_ct_OTOOL64" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230  if test "x$ac_ct_OTOOL64" = x; then
7231    OTOOL64=":"
7232  else
7233    case $cross_compiling:$ac_tool_warned in
7234yes:)
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237ac_tool_warned=yes ;;
7238esac
7239    OTOOL64=$ac_ct_OTOOL64
7240  fi
7241else
7242  OTOOL64="$ac_cv_prog_OTOOL64"
7243fi
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7272$as_echo_n "checking for -single_module linker flag... " >&6; }
7273if ${lt_cv_apple_cc_single_mod+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276  lt_cv_apple_cc_single_mod=no
7277      if test -z "${LT_MULTI_MODULE}"; then
7278	# By default we will add the -single_module flag. You can override
7279	# by either setting the environment variable LT_MULTI_MODULE
7280	# non-empty at configure time, or by adding -multi_module to the
7281	# link flags.
7282	rm -rf libconftest.dylib*
7283	echo "int foo(void){return 1;}" > conftest.c
7284	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7285-dynamiclib -Wl,-single_module conftest.c" >&5
7286	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7287	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7288        _lt_result=$?
7289	# If there is a non-empty error log, and "single_module"
7290	# appears in it, assume the flag caused a linker warning
7291        if test -s conftest.err && $GREP single_module conftest.err; then
7292	  cat conftest.err >&5
7293	# Otherwise, if the output was created with a 0 exit code from
7294	# the compiler, it worked.
7295	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7296	  lt_cv_apple_cc_single_mod=yes
7297	else
7298	  cat conftest.err >&5
7299	fi
7300	rm -rf libconftest.dylib*
7301	rm -f conftest.*
7302      fi
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7305$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7306
7307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7308$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7309if ${lt_cv_ld_exported_symbols_list+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  lt_cv_ld_exported_symbols_list=no
7313      save_LDFLAGS=$LDFLAGS
7314      echo "_main" > conftest.sym
7315      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7316      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318
7319int
7320main ()
7321{
7322
7323  ;
7324  return 0;
7325}
7326_ACEOF
7327if ac_fn_c_try_link "$LINENO"; then :
7328  lt_cv_ld_exported_symbols_list=yes
7329else
7330  lt_cv_ld_exported_symbols_list=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext \
7333    conftest$ac_exeext conftest.$ac_ext
7334	LDFLAGS="$save_LDFLAGS"
7335
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7338$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7339
7340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7341$as_echo_n "checking for -force_load linker flag... " >&6; }
7342if ${lt_cv_ld_force_load+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  lt_cv_ld_force_load=no
7346      cat > conftest.c << _LT_EOF
7347int forced_loaded() { return 2;}
7348_LT_EOF
7349      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7350      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7351      echo "$AR cru libconftest.a conftest.o" >&5
7352      $AR cru libconftest.a conftest.o 2>&5
7353      echo "$RANLIB libconftest.a" >&5
7354      $RANLIB libconftest.a 2>&5
7355      cat > conftest.c << _LT_EOF
7356int main() { return 0;}
7357_LT_EOF
7358      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7359      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7360      _lt_result=$?
7361      if test -s conftest.err && $GREP force_load conftest.err; then
7362	cat conftest.err >&5
7363      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7364	lt_cv_ld_force_load=yes
7365      else
7366	cat conftest.err >&5
7367      fi
7368        rm -f conftest.err libconftest.a conftest conftest.c
7369        rm -rf conftest.dSYM
7370
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7373$as_echo "$lt_cv_ld_force_load" >&6; }
7374    case $host_os in
7375    rhapsody* | darwin1.[012])
7376      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7377    darwin1.*)
7378      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7379    darwin*) # darwin 5.x on
7380      # if running on 10.5 or later, the deployment target defaults
7381      # to the OS version, if on x86, and 10.4, the deployment
7382      # target defaults to 10.4. Don't you love it?
7383      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7384	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7385	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7386	10.[012]*)
7387	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7388	10.*)
7389	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7390      esac
7391    ;;
7392  esac
7393    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7394      _lt_dar_single_mod='$single_module'
7395    fi
7396    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7397      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7398    else
7399      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7400    fi
7401    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7402      _lt_dsymutil='~$DSYMUTIL $lib || :'
7403    else
7404      _lt_dsymutil=
7405    fi
7406    ;;
7407  esac
7408
7409ac_ext=c
7410ac_cpp='$CPP $CPPFLAGS'
7411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7413ac_compiler_gnu=$ac_cv_c_compiler_gnu
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7415$as_echo_n "checking how to run the C preprocessor... " >&6; }
7416# On Suns, sometimes $CPP names a directory.
7417if test -n "$CPP" && test -d "$CPP"; then
7418  CPP=
7419fi
7420if test -z "$CPP"; then
7421  if ${ac_cv_prog_CPP+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424      # Double quotes because CPP needs to be expanded
7425    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7426    do
7427      ac_preproc_ok=false
7428for ac_c_preproc_warn_flag in '' yes
7429do
7430  # Use a header file that comes with gcc, so configuring glibc
7431  # with a fresh cross-compiler works.
7432  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433  # <limits.h> exists even on freestanding compilers.
7434  # On the NeXT, cc -E runs the code through the compiler's parser,
7435  # not just through cpp. "Syntax error" is here to catch this case.
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438#ifdef __STDC__
7439# include <limits.h>
7440#else
7441# include <assert.h>
7442#endif
7443		     Syntax error
7444_ACEOF
7445if ac_fn_c_try_cpp "$LINENO"; then :
7446
7447else
7448  # Broken: fails on valid input.
7449continue
7450fi
7451rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453  # OK, works on sane cases.  Now check whether nonexistent headers
7454  # can be detected and how.
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457#include <ac_nonexistent.h>
7458_ACEOF
7459if ac_fn_c_try_cpp "$LINENO"; then :
7460  # Broken: success on invalid input.
7461continue
7462else
7463  # Passes both tests.
7464ac_preproc_ok=:
7465break
7466fi
7467rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469done
7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471rm -f conftest.i conftest.err conftest.$ac_ext
7472if $ac_preproc_ok; then :
7473  break
7474fi
7475
7476    done
7477    ac_cv_prog_CPP=$CPP
7478
7479fi
7480  CPP=$ac_cv_prog_CPP
7481else
7482  ac_cv_prog_CPP=$CPP
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7485$as_echo "$CPP" >&6; }
7486ac_preproc_ok=false
7487for ac_c_preproc_warn_flag in '' yes
7488do
7489  # Use a header file that comes with gcc, so configuring glibc
7490  # with a fresh cross-compiler works.
7491  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7492  # <limits.h> exists even on freestanding compilers.
7493  # On the NeXT, cc -E runs the code through the compiler's parser,
7494  # not just through cpp. "Syntax error" is here to catch this case.
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497#ifdef __STDC__
7498# include <limits.h>
7499#else
7500# include <assert.h>
7501#endif
7502		     Syntax error
7503_ACEOF
7504if ac_fn_c_try_cpp "$LINENO"; then :
7505
7506else
7507  # Broken: fails on valid input.
7508continue
7509fi
7510rm -f conftest.err conftest.i conftest.$ac_ext
7511
7512  # OK, works on sane cases.  Now check whether nonexistent headers
7513  # can be detected and how.
7514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516#include <ac_nonexistent.h>
7517_ACEOF
7518if ac_fn_c_try_cpp "$LINENO"; then :
7519  # Broken: success on invalid input.
7520continue
7521else
7522  # Passes both tests.
7523ac_preproc_ok=:
7524break
7525fi
7526rm -f conftest.err conftest.i conftest.$ac_ext
7527
7528done
7529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7530rm -f conftest.i conftest.err conftest.$ac_ext
7531if $ac_preproc_ok; then :
7532
7533else
7534  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7536as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7537See \`config.log' for more details" "$LINENO" 5; }
7538fi
7539
7540ac_ext=c
7541ac_cpp='$CPP $CPPFLAGS'
7542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7548$as_echo_n "checking for ANSI C header files... " >&6; }
7549if ${ac_cv_header_stdc+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554#include <stdlib.h>
7555#include <stdarg.h>
7556#include <string.h>
7557#include <float.h>
7558
7559int
7560main ()
7561{
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_compile "$LINENO"; then :
7568  ac_cv_header_stdc=yes
7569else
7570  ac_cv_header_stdc=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573
7574if test $ac_cv_header_stdc = yes; then
7575  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h.  */
7578#include <string.h>
7579
7580_ACEOF
7581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582  $EGREP "memchr" >/dev/null 2>&1; then :
7583
7584else
7585  ac_cv_header_stdc=no
7586fi
7587rm -f conftest*
7588
7589fi
7590
7591if test $ac_cv_header_stdc = yes; then
7592  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595#include <stdlib.h>
7596
7597_ACEOF
7598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7599  $EGREP "free" >/dev/null 2>&1; then :
7600
7601else
7602  ac_cv_header_stdc=no
7603fi
7604rm -f conftest*
7605
7606fi
7607
7608if test $ac_cv_header_stdc = yes; then
7609  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7610  if test "$cross_compiling" = yes; then :
7611  :
7612else
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615#include <ctype.h>
7616#include <stdlib.h>
7617#if ((' ' & 0x0FF) == 0x020)
7618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7620#else
7621# define ISLOWER(c) \
7622		   (('a' <= (c) && (c) <= 'i') \
7623		     || ('j' <= (c) && (c) <= 'r') \
7624		     || ('s' <= (c) && (c) <= 'z'))
7625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7626#endif
7627
7628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7629int
7630main ()
7631{
7632  int i;
7633  for (i = 0; i < 256; i++)
7634    if (XOR (islower (i), ISLOWER (i))
7635	|| toupper (i) != TOUPPER (i))
7636      return 2;
7637  return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_run "$LINENO"; then :
7641
7642else
7643  ac_cv_header_stdc=no
7644fi
7645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7646  conftest.$ac_objext conftest.beam conftest.$ac_ext
7647fi
7648
7649fi
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7652$as_echo "$ac_cv_header_stdc" >&6; }
7653if test $ac_cv_header_stdc = yes; then
7654
7655$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7656
7657fi
7658
7659# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7661		  inttypes.h stdint.h unistd.h
7662do :
7663  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7664ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7665"
7666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7667  cat >>confdefs.h <<_ACEOF
7668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669_ACEOF
7670
7671fi
7672
7673done
7674
7675
7676for ac_header in dlfcn.h
7677do :
7678  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7679"
7680if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7681  cat >>confdefs.h <<_ACEOF
7682#define HAVE_DLFCN_H 1
7683_ACEOF
7684
7685fi
7686
7687done
7688
7689
7690
7691
7692func_stripname_cnf ()
7693{
7694  case ${2} in
7695  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7696  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7697  esac
7698} # func_stripname_cnf
7699
7700
7701
7702
7703
7704# Set options
7705
7706
7707
7708        enable_dlopen=no
7709
7710
7711
7712            # Check whether --enable-shared was given.
7713if test "${enable_shared+set}" = set; then :
7714  enableval=$enable_shared; p=${PACKAGE-default}
7715    case $enableval in
7716    yes) enable_shared=yes ;;
7717    no) enable_shared=no ;;
7718    *)
7719      enable_shared=no
7720      # Look at the argument we got.  We use all the common list separators.
7721      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7722      for pkg in $enableval; do
7723	IFS="$lt_save_ifs"
7724	if test "X$pkg" = "X$p"; then
7725	  enable_shared=yes
7726	fi
7727      done
7728      IFS="$lt_save_ifs"
7729      ;;
7730    esac
7731else
7732  enable_shared=yes
7733fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743  # Check whether --enable-static was given.
7744if test "${enable_static+set}" = set; then :
7745  enableval=$enable_static; p=${PACKAGE-default}
7746    case $enableval in
7747    yes) enable_static=yes ;;
7748    no) enable_static=no ;;
7749    *)
7750     enable_static=no
7751      # Look at the argument we got.  We use all the common list separators.
7752      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7753      for pkg in $enableval; do
7754	IFS="$lt_save_ifs"
7755	if test "X$pkg" = "X$p"; then
7756	  enable_static=yes
7757	fi
7758      done
7759      IFS="$lt_save_ifs"
7760      ;;
7761    esac
7762else
7763  enable_static=yes
7764fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775# Check whether --with-pic was given.
7776if test "${with_pic+set}" = set; then :
7777  withval=$with_pic; lt_p=${PACKAGE-default}
7778    case $withval in
7779    yes|no) pic_mode=$withval ;;
7780    *)
7781      pic_mode=default
7782      # Look at the argument we got.  We use all the common list separators.
7783      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7784      for lt_pkg in $withval; do
7785	IFS="$lt_save_ifs"
7786	if test "X$lt_pkg" = "X$lt_p"; then
7787	  pic_mode=yes
7788	fi
7789      done
7790      IFS="$lt_save_ifs"
7791      ;;
7792    esac
7793else
7794  pic_mode=default
7795fi
7796
7797
7798test -z "$pic_mode" && pic_mode=default
7799
7800
7801
7802
7803
7804
7805
7806  # Check whether --enable-fast-install was given.
7807if test "${enable_fast_install+set}" = set; then :
7808  enableval=$enable_fast_install; p=${PACKAGE-default}
7809    case $enableval in
7810    yes) enable_fast_install=yes ;;
7811    no) enable_fast_install=no ;;
7812    *)
7813      enable_fast_install=no
7814      # Look at the argument we got.  We use all the common list separators.
7815      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7816      for pkg in $enableval; do
7817	IFS="$lt_save_ifs"
7818	if test "X$pkg" = "X$p"; then
7819	  enable_fast_install=yes
7820	fi
7821      done
7822      IFS="$lt_save_ifs"
7823      ;;
7824    esac
7825else
7826  enable_fast_install=yes
7827fi
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839# This can be used to rebuild libtool when needed
7840LIBTOOL_DEPS="$ltmain"
7841
7842# Always use our own libtool.
7843LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874test -z "$LN_S" && LN_S="ln -s"
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889if test -n "${ZSH_VERSION+set}" ; then
7890   setopt NO_GLOB_SUBST
7891fi
7892
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7894$as_echo_n "checking for objdir... " >&6; }
7895if ${lt_cv_objdir+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  rm -f .libs 2>/dev/null
7899mkdir .libs 2>/dev/null
7900if test -d .libs; then
7901  lt_cv_objdir=.libs
7902else
7903  # MS-DOS does not allow filenames that begin with a dot.
7904  lt_cv_objdir=_libs
7905fi
7906rmdir .libs 2>/dev/null
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7909$as_echo "$lt_cv_objdir" >&6; }
7910objdir=$lt_cv_objdir
7911
7912
7913
7914
7915
7916cat >>confdefs.h <<_ACEOF
7917#define LT_OBJDIR "$lt_cv_objdir/"
7918_ACEOF
7919
7920
7921
7922
7923case $host_os in
7924aix3*)
7925  # AIX sometimes has problems with the GCC collect2 program.  For some
7926  # reason, if we set the COLLECT_NAMES environment variable, the problems
7927  # vanish in a puff of smoke.
7928  if test "X${COLLECT_NAMES+set}" != Xset; then
7929    COLLECT_NAMES=
7930    export COLLECT_NAMES
7931  fi
7932  ;;
7933esac
7934
7935# Global variables:
7936ofile=libtool
7937can_build_shared=yes
7938
7939# All known linkers require a `.a' archive for static linking (except MSVC,
7940# which needs '.lib').
7941libext=a
7942
7943with_gnu_ld="$lt_cv_prog_gnu_ld"
7944
7945old_CC="$CC"
7946old_CFLAGS="$CFLAGS"
7947
7948# Set sane defaults for various variables
7949test -z "$CC" && CC=cc
7950test -z "$LTCC" && LTCC=$CC
7951test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7952test -z "$LD" && LD=ld
7953test -z "$ac_objext" && ac_objext=o
7954
7955for cc_temp in $compiler""; do
7956  case $cc_temp in
7957    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7958    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7959    \-*) ;;
7960    *) break;;
7961  esac
7962done
7963cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7964
7965
7966# Only perform the check for file, if the check method requires it
7967test -z "$MAGIC_CMD" && MAGIC_CMD=file
7968case $deplibs_check_method in
7969file_magic*)
7970  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7972$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7973if ${lt_cv_path_MAGIC_CMD+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  case $MAGIC_CMD in
7977[\\/*] |  ?:[\\/]*)
7978  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7979  ;;
7980*)
7981  lt_save_MAGIC_CMD="$MAGIC_CMD"
7982  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7983  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984  for ac_dir in $ac_dummy; do
7985    IFS="$lt_save_ifs"
7986    test -z "$ac_dir" && ac_dir=.
7987    if test -f $ac_dir/${ac_tool_prefix}file; then
7988      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7989      if test -n "$file_magic_test_file"; then
7990	case $deplibs_check_method in
7991	"file_magic "*)
7992	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7993	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995	    $EGREP "$file_magic_regex" > /dev/null; then
7996	    :
7997	  else
7998	    cat <<_LT_EOF 1>&2
7999
8000*** Warning: the command libtool uses to detect shared libraries,
8001*** $file_magic_cmd, produces output that libtool cannot recognize.
8002*** The result is that libtool may fail to recognize shared libraries
8003*** as such.  This will affect the creation of libtool libraries that
8004*** depend on shared libraries, but programs linked with such libtool
8005*** libraries will work regardless of this problem.  Nevertheless, you
8006*** may want to report the problem to your system manager and/or to
8007*** bug-libtool@gnu.org
8008
8009_LT_EOF
8010	  fi ;;
8011	esac
8012      fi
8013      break
8014    fi
8015  done
8016  IFS="$lt_save_ifs"
8017  MAGIC_CMD="$lt_save_MAGIC_CMD"
8018  ;;
8019esac
8020fi
8021
8022MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023if test -n "$MAGIC_CMD"; then
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8025$as_echo "$MAGIC_CMD" >&6; }
8026else
8027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
8029fi
8030
8031
8032
8033
8034
8035if test -z "$lt_cv_path_MAGIC_CMD"; then
8036  if test -n "$ac_tool_prefix"; then
8037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8038$as_echo_n "checking for file... " >&6; }
8039if ${lt_cv_path_MAGIC_CMD+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  case $MAGIC_CMD in
8043[\\/*] |  ?:[\\/]*)
8044  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8045  ;;
8046*)
8047  lt_save_MAGIC_CMD="$MAGIC_CMD"
8048  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8049  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050  for ac_dir in $ac_dummy; do
8051    IFS="$lt_save_ifs"
8052    test -z "$ac_dir" && ac_dir=.
8053    if test -f $ac_dir/file; then
8054      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8055      if test -n "$file_magic_test_file"; then
8056	case $deplibs_check_method in
8057	"file_magic "*)
8058	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061	    $EGREP "$file_magic_regex" > /dev/null; then
8062	    :
8063	  else
8064	    cat <<_LT_EOF 1>&2
8065
8066*** Warning: the command libtool uses to detect shared libraries,
8067*** $file_magic_cmd, produces output that libtool cannot recognize.
8068*** The result is that libtool may fail to recognize shared libraries
8069*** as such.  This will affect the creation of libtool libraries that
8070*** depend on shared libraries, but programs linked with such libtool
8071*** libraries will work regardless of this problem.  Nevertheless, you
8072*** may want to report the problem to your system manager and/or to
8073*** bug-libtool@gnu.org
8074
8075_LT_EOF
8076	  fi ;;
8077	esac
8078      fi
8079      break
8080    fi
8081  done
8082  IFS="$lt_save_ifs"
8083  MAGIC_CMD="$lt_save_MAGIC_CMD"
8084  ;;
8085esac
8086fi
8087
8088MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089if test -n "$MAGIC_CMD"; then
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091$as_echo "$MAGIC_CMD" >&6; }
8092else
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
8095fi
8096
8097
8098  else
8099    MAGIC_CMD=:
8100  fi
8101fi
8102
8103  fi
8104  ;;
8105esac
8106
8107# Use C for the default configuration in the libtool script
8108
8109lt_save_CC="$CC"
8110ac_ext=c
8111ac_cpp='$CPP $CPPFLAGS'
8112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115
8116
8117# Source file extension for C test sources.
8118ac_ext=c
8119
8120# Object file extension for compiled C test sources.
8121objext=o
8122objext=$objext
8123
8124# Code to be used in simple compile tests
8125lt_simple_compile_test_code="int some_variable = 0;"
8126
8127# Code to be used in simple link tests
8128lt_simple_link_test_code='int main(){return(0);}'
8129
8130
8131
8132
8133
8134
8135
8136# If no C compiler was specified, use CC.
8137LTCC=${LTCC-"$CC"}
8138
8139# If no C compiler flags were specified, use CFLAGS.
8140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8141
8142# Allow CC to be a program name with arguments.
8143compiler=$CC
8144
8145# Save the default compiler, since it gets overwritten when the other
8146# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8147compiler_DEFAULT=$CC
8148
8149# save warnings/boilerplate of simple test code
8150ac_outfile=conftest.$ac_objext
8151echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8153_lt_compiler_boilerplate=`cat conftest.err`
8154$RM conftest*
8155
8156ac_outfile=conftest.$ac_objext
8157echo "$lt_simple_link_test_code" >conftest.$ac_ext
8158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8159_lt_linker_boilerplate=`cat conftest.err`
8160$RM -r conftest*
8161
8162
8163if test -n "$compiler"; then
8164
8165lt_prog_compiler_no_builtin_flag=
8166
8167if test "$GCC" = yes; then
8168  case $cc_basename in
8169  nvcc*)
8170    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8171  *)
8172    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8173  esac
8174
8175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8177if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  lt_cv_prog_compiler_rtti_exceptions=no
8181   ac_outfile=conftest.$ac_objext
8182   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183   lt_compiler_flag="-fno-rtti -fno-exceptions"
8184   # Insert the option either (1) after the last *FLAGS variable, or
8185   # (2) before a word containing "conftest.", or (3) at the end.
8186   # Note that $ac_compile itself does not contain backslashes and begins
8187   # with a dollar sign (not a hyphen), so the echo should work correctly.
8188   # The option is referenced via a variable to avoid confusing sed.
8189   lt_compile=`echo "$ac_compile" | $SED \
8190   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192   -e 's:$: $lt_compiler_flag:'`
8193   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194   (eval "$lt_compile" 2>conftest.err)
8195   ac_status=$?
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   if (exit $ac_status) && test -s "$ac_outfile"; then
8199     # The compiler can only warn and ignore the option if not recognized
8200     # So say no if there are warnings other than the usual output.
8201     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8202     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204       lt_cv_prog_compiler_rtti_exceptions=yes
8205     fi
8206   fi
8207   $RM conftest*
8208
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8212
8213if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8214    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8215else
8216    :
8217fi
8218
8219fi
8220
8221
8222
8223
8224
8225
8226  lt_prog_compiler_wl=
8227lt_prog_compiler_pic=
8228lt_prog_compiler_static=
8229
8230
8231  if test "$GCC" = yes; then
8232    lt_prog_compiler_wl='-Wl,'
8233    lt_prog_compiler_static='-static'
8234
8235    case $host_os in
8236      aix*)
8237      # All AIX code is PIC.
8238      if test "$host_cpu" = ia64; then
8239	# AIX 5 now supports IA64 processor
8240	lt_prog_compiler_static='-Bstatic'
8241      fi
8242      ;;
8243
8244    amigaos*)
8245      case $host_cpu in
8246      powerpc)
8247            # see comment about AmigaOS4 .so support
8248            lt_prog_compiler_pic='-fPIC'
8249        ;;
8250      m68k)
8251            # FIXME: we need at least 68020 code to build shared libraries, but
8252            # adding the `-m68020' flag to GCC prevents building anything better,
8253            # like `-m68040'.
8254            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8255        ;;
8256      esac
8257      ;;
8258
8259    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8260      # PIC is the default for these OSes.
8261      ;;
8262
8263    mingw* | cygwin* | pw32* | os2* | cegcc*)
8264      # This hack is so that the source file can tell whether it is being
8265      # built for inclusion in a dll (and should export symbols for example).
8266      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8267      # (--disable-auto-import) libraries
8268      lt_prog_compiler_pic='-DDLL_EXPORT'
8269      ;;
8270
8271    darwin* | rhapsody*)
8272      # PIC is the default on this platform
8273      # Common symbols not allowed in MH_DYLIB files
8274      lt_prog_compiler_pic='-fno-common'
8275      ;;
8276
8277    haiku*)
8278      # PIC is the default for Haiku.
8279      # The "-static" flag exists, but is broken.
8280      lt_prog_compiler_static=
8281      ;;
8282
8283    hpux*)
8284      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8285      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8286      # sets the default TLS model and affects inlining.
8287      case $host_cpu in
8288      hppa*64*)
8289	# +Z the default
8290	;;
8291      *)
8292	lt_prog_compiler_pic='-fPIC'
8293	;;
8294      esac
8295      ;;
8296
8297    interix[3-9]*)
8298      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8299      # Instead, we relocate shared libraries at runtime.
8300      ;;
8301
8302    msdosdjgpp*)
8303      # Just because we use GCC doesn't mean we suddenly get shared libraries
8304      # on systems that don't support them.
8305      lt_prog_compiler_can_build_shared=no
8306      enable_shared=no
8307      ;;
8308
8309    *nto* | *qnx*)
8310      # QNX uses GNU C++, but need to define -shared option too, otherwise
8311      # it will coredump.
8312      lt_prog_compiler_pic='-fPIC -shared'
8313      ;;
8314
8315    sysv4*MP*)
8316      if test -d /usr/nec; then
8317	lt_prog_compiler_pic=-Kconform_pic
8318      fi
8319      ;;
8320
8321    *)
8322      lt_prog_compiler_pic='-fPIC'
8323      ;;
8324    esac
8325
8326    case $cc_basename in
8327    nvcc*) # Cuda Compiler Driver 2.2
8328      lt_prog_compiler_wl='-Xlinker '
8329      if test -n "$lt_prog_compiler_pic"; then
8330        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8331      fi
8332      ;;
8333    esac
8334  else
8335    # PORTME Check for flag to pass linker flags through the system compiler.
8336    case $host_os in
8337    aix*)
8338      lt_prog_compiler_wl='-Wl,'
8339      if test "$host_cpu" = ia64; then
8340	# AIX 5 now supports IA64 processor
8341	lt_prog_compiler_static='-Bstatic'
8342      else
8343	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8344      fi
8345      ;;
8346
8347    mingw* | cygwin* | pw32* | os2* | cegcc*)
8348      # This hack is so that the source file can tell whether it is being
8349      # built for inclusion in a dll (and should export symbols for example).
8350      lt_prog_compiler_pic='-DDLL_EXPORT'
8351      ;;
8352
8353    hpux9* | hpux10* | hpux11*)
8354      lt_prog_compiler_wl='-Wl,'
8355      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8356      # not for PA HP-UX.
8357      case $host_cpu in
8358      hppa*64*|ia64*)
8359	# +Z the default
8360	;;
8361      *)
8362	lt_prog_compiler_pic='+Z'
8363	;;
8364      esac
8365      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8366      lt_prog_compiler_static='${wl}-a ${wl}archive'
8367      ;;
8368
8369    irix5* | irix6* | nonstopux*)
8370      lt_prog_compiler_wl='-Wl,'
8371      # PIC (with -KPIC) is the default.
8372      lt_prog_compiler_static='-non_shared'
8373      ;;
8374
8375    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8376      case $cc_basename in
8377      # old Intel for x86_64 which still supported -KPIC.
8378      ecc*)
8379	lt_prog_compiler_wl='-Wl,'
8380	lt_prog_compiler_pic='-KPIC'
8381	lt_prog_compiler_static='-static'
8382        ;;
8383      # icc used to be incompatible with GCC.
8384      # ICC 10 doesn't accept -KPIC any more.
8385      icc* | ifort*)
8386	lt_prog_compiler_wl='-Wl,'
8387	lt_prog_compiler_pic='-fPIC'
8388	lt_prog_compiler_static='-static'
8389        ;;
8390      # Lahey Fortran 8.1.
8391      lf95*)
8392	lt_prog_compiler_wl='-Wl,'
8393	lt_prog_compiler_pic='--shared'
8394	lt_prog_compiler_static='--static'
8395	;;
8396      nagfor*)
8397	# NAG Fortran compiler
8398	lt_prog_compiler_wl='-Wl,-Wl,,'
8399	lt_prog_compiler_pic='-PIC'
8400	lt_prog_compiler_static='-Bstatic'
8401	;;
8402      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8403        # Portland Group compilers (*not* the Pentium gcc compiler,
8404	# which looks to be a dead project)
8405	lt_prog_compiler_wl='-Wl,'
8406	lt_prog_compiler_pic='-fpic'
8407	lt_prog_compiler_static='-Bstatic'
8408        ;;
8409      ccc*)
8410        lt_prog_compiler_wl='-Wl,'
8411        # All Alpha code is PIC.
8412        lt_prog_compiler_static='-non_shared'
8413        ;;
8414      xl* | bgxl* | bgf* | mpixl*)
8415	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8416	lt_prog_compiler_wl='-Wl,'
8417	lt_prog_compiler_pic='-qpic'
8418	lt_prog_compiler_static='-qstaticlink'
8419	;;
8420      *)
8421	case `$CC -V 2>&1 | sed 5q` in
8422	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8423	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8424	  lt_prog_compiler_pic='-KPIC'
8425	  lt_prog_compiler_static='-Bstatic'
8426	  lt_prog_compiler_wl=''
8427	  ;;
8428	*Sun\ F* | *Sun*Fortran*)
8429	  lt_prog_compiler_pic='-KPIC'
8430	  lt_prog_compiler_static='-Bstatic'
8431	  lt_prog_compiler_wl='-Qoption ld '
8432	  ;;
8433	*Sun\ C*)
8434	  # Sun C 5.9
8435	  lt_prog_compiler_pic='-KPIC'
8436	  lt_prog_compiler_static='-Bstatic'
8437	  lt_prog_compiler_wl='-Wl,'
8438	  ;;
8439        *Intel*\ [CF]*Compiler*)
8440	  lt_prog_compiler_wl='-Wl,'
8441	  lt_prog_compiler_pic='-fPIC'
8442	  lt_prog_compiler_static='-static'
8443	  ;;
8444	*Portland\ Group*)
8445	  lt_prog_compiler_wl='-Wl,'
8446	  lt_prog_compiler_pic='-fpic'
8447	  lt_prog_compiler_static='-Bstatic'
8448	  ;;
8449	esac
8450	;;
8451      esac
8452      ;;
8453
8454    newsos6)
8455      lt_prog_compiler_pic='-KPIC'
8456      lt_prog_compiler_static='-Bstatic'
8457      ;;
8458
8459    *nto* | *qnx*)
8460      # QNX uses GNU C++, but need to define -shared option too, otherwise
8461      # it will coredump.
8462      lt_prog_compiler_pic='-fPIC -shared'
8463      ;;
8464
8465    osf3* | osf4* | osf5*)
8466      lt_prog_compiler_wl='-Wl,'
8467      # All OSF/1 code is PIC.
8468      lt_prog_compiler_static='-non_shared'
8469      ;;
8470
8471    rdos*)
8472      lt_prog_compiler_static='-non_shared'
8473      ;;
8474
8475    solaris*)
8476      lt_prog_compiler_pic='-KPIC'
8477      lt_prog_compiler_static='-Bstatic'
8478      case $cc_basename in
8479      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8480	lt_prog_compiler_wl='-Qoption ld ';;
8481      *)
8482	lt_prog_compiler_wl='-Wl,';;
8483      esac
8484      ;;
8485
8486    sunos4*)
8487      lt_prog_compiler_wl='-Qoption ld '
8488      lt_prog_compiler_pic='-PIC'
8489      lt_prog_compiler_static='-Bstatic'
8490      ;;
8491
8492    sysv4 | sysv4.2uw2* | sysv4.3*)
8493      lt_prog_compiler_wl='-Wl,'
8494      lt_prog_compiler_pic='-KPIC'
8495      lt_prog_compiler_static='-Bstatic'
8496      ;;
8497
8498    sysv4*MP*)
8499      if test -d /usr/nec ;then
8500	lt_prog_compiler_pic='-Kconform_pic'
8501	lt_prog_compiler_static='-Bstatic'
8502      fi
8503      ;;
8504
8505    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8506      lt_prog_compiler_wl='-Wl,'
8507      lt_prog_compiler_pic='-KPIC'
8508      lt_prog_compiler_static='-Bstatic'
8509      ;;
8510
8511    unicos*)
8512      lt_prog_compiler_wl='-Wl,'
8513      lt_prog_compiler_can_build_shared=no
8514      ;;
8515
8516    uts4*)
8517      lt_prog_compiler_pic='-pic'
8518      lt_prog_compiler_static='-Bstatic'
8519      ;;
8520
8521    *)
8522      lt_prog_compiler_can_build_shared=no
8523      ;;
8524    esac
8525  fi
8526
8527case $host_os in
8528  # For platforms which do not support PIC, -DPIC is meaningless:
8529  *djgpp*)
8530    lt_prog_compiler_pic=
8531    ;;
8532  *)
8533    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8534    ;;
8535esac
8536
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8538$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8539if ${lt_cv_prog_compiler_pic+:} false; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8545$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8546lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8547
8548#
8549# Check to make sure the PIC flag actually works.
8550#
8551if test -n "$lt_prog_compiler_pic"; then
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8553$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8554if ${lt_cv_prog_compiler_pic_works+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  lt_cv_prog_compiler_pic_works=no
8558   ac_outfile=conftest.$ac_objext
8559   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8561   # Insert the option either (1) after the last *FLAGS variable, or
8562   # (2) before a word containing "conftest.", or (3) at the end.
8563   # Note that $ac_compile itself does not contain backslashes and begins
8564   # with a dollar sign (not a hyphen), so the echo should work correctly.
8565   # The option is referenced via a variable to avoid confusing sed.
8566   lt_compile=`echo "$ac_compile" | $SED \
8567   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8568   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8569   -e 's:$: $lt_compiler_flag:'`
8570   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8571   (eval "$lt_compile" 2>conftest.err)
8572   ac_status=$?
8573   cat conftest.err >&5
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   if (exit $ac_status) && test -s "$ac_outfile"; then
8576     # The compiler can only warn and ignore the option if not recognized
8577     # So say no if there are warnings other than the usual output.
8578     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8579     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8580     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8581       lt_cv_prog_compiler_pic_works=yes
8582     fi
8583   fi
8584   $RM conftest*
8585
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8588$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8589
8590if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8591    case $lt_prog_compiler_pic in
8592     "" | " "*) ;;
8593     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8594     esac
8595else
8596    lt_prog_compiler_pic=
8597     lt_prog_compiler_can_build_shared=no
8598fi
8599
8600fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612#
8613# Check to make sure the static flag actually works.
8614#
8615wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8617$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8618if ${lt_cv_prog_compiler_static_works+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  lt_cv_prog_compiler_static_works=no
8622   save_LDFLAGS="$LDFLAGS"
8623   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8624   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8625   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8626     # The linker can only warn and ignore the option if not recognized
8627     # So say no if there are warnings
8628     if test -s conftest.err; then
8629       # Append any errors to the config.log.
8630       cat conftest.err 1>&5
8631       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8632       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8633       if diff conftest.exp conftest.er2 >/dev/null; then
8634         lt_cv_prog_compiler_static_works=yes
8635       fi
8636     else
8637       lt_cv_prog_compiler_static_works=yes
8638     fi
8639   fi
8640   $RM -r conftest*
8641   LDFLAGS="$save_LDFLAGS"
8642
8643fi
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8645$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8646
8647if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8648    :
8649else
8650    lt_prog_compiler_static=
8651fi
8652
8653
8654
8655
8656
8657
8658
8659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8661if ${lt_cv_prog_compiler_c_o+:} false; then :
8662  $as_echo_n "(cached) " >&6
8663else
8664  lt_cv_prog_compiler_c_o=no
8665   $RM -r conftest 2>/dev/null
8666   mkdir conftest
8667   cd conftest
8668   mkdir out
8669   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670
8671   lt_compiler_flag="-o out/conftest2.$ac_objext"
8672   # Insert the option either (1) after the last *FLAGS variable, or
8673   # (2) before a word containing "conftest.", or (3) at the end.
8674   # Note that $ac_compile itself does not contain backslashes and begins
8675   # with a dollar sign (not a hyphen), so the echo should work correctly.
8676   lt_compile=`echo "$ac_compile" | $SED \
8677   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679   -e 's:$: $lt_compiler_flag:'`
8680   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8681   (eval "$lt_compile" 2>out/conftest.err)
8682   ac_status=$?
8683   cat out/conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8686   then
8687     # The compiler can only warn and ignore the option if not recognized
8688     # So say no if there are warnings
8689     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8690     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8691     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8692       lt_cv_prog_compiler_c_o=yes
8693     fi
8694   fi
8695   chmod u+w . 2>&5
8696   $RM conftest*
8697   # SGI C++ compiler will create directory out/ii_files/ for
8698   # template instantiation
8699   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8700   $RM out/* && rmdir out
8701   cd ..
8702   $RM -r conftest
8703   $RM conftest*
8704
8705fi
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8707$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8708
8709
8710
8711
8712
8713
8714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8716if ${lt_cv_prog_compiler_c_o+:} false; then :
8717  $as_echo_n "(cached) " >&6
8718else
8719  lt_cv_prog_compiler_c_o=no
8720   $RM -r conftest 2>/dev/null
8721   mkdir conftest
8722   cd conftest
8723   mkdir out
8724   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725
8726   lt_compiler_flag="-o out/conftest2.$ac_objext"
8727   # Insert the option either (1) after the last *FLAGS variable, or
8728   # (2) before a word containing "conftest.", or (3) at the end.
8729   # Note that $ac_compile itself does not contain backslashes and begins
8730   # with a dollar sign (not a hyphen), so the echo should work correctly.
8731   lt_compile=`echo "$ac_compile" | $SED \
8732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734   -e 's:$: $lt_compiler_flag:'`
8735   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8736   (eval "$lt_compile" 2>out/conftest.err)
8737   ac_status=$?
8738   cat out/conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8741   then
8742     # The compiler can only warn and ignore the option if not recognized
8743     # So say no if there are warnings
8744     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8745     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8746     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8747       lt_cv_prog_compiler_c_o=yes
8748     fi
8749   fi
8750   chmod u+w . 2>&5
8751   $RM conftest*
8752   # SGI C++ compiler will create directory out/ii_files/ for
8753   # template instantiation
8754   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8755   $RM out/* && rmdir out
8756   cd ..
8757   $RM -r conftest
8758   $RM conftest*
8759
8760fi
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8762$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8763
8764
8765
8766
8767hard_links="nottested"
8768if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8769  # do not overwrite the value of need_locks provided by the user
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8771$as_echo_n "checking if we can lock with hard links... " >&6; }
8772  hard_links=yes
8773  $RM conftest*
8774  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8775  touch conftest.a
8776  ln conftest.a conftest.b 2>&5 || hard_links=no
8777  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8779$as_echo "$hard_links" >&6; }
8780  if test "$hard_links" = no; then
8781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8782$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8783    need_locks=warn
8784  fi
8785else
8786  need_locks=no
8787fi
8788
8789
8790
8791
8792
8793
8794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8795$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8796
8797  runpath_var=
8798  allow_undefined_flag=
8799  always_export_symbols=no
8800  archive_cmds=
8801  archive_expsym_cmds=
8802  compiler_needs_object=no
8803  enable_shared_with_static_runtimes=no
8804  export_dynamic_flag_spec=
8805  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8806  hardcode_automatic=no
8807  hardcode_direct=no
8808  hardcode_direct_absolute=no
8809  hardcode_libdir_flag_spec=
8810  hardcode_libdir_separator=
8811  hardcode_minus_L=no
8812  hardcode_shlibpath_var=unsupported
8813  inherit_rpath=no
8814  link_all_deplibs=unknown
8815  module_cmds=
8816  module_expsym_cmds=
8817  old_archive_from_new_cmds=
8818  old_archive_from_expsyms_cmds=
8819  thread_safe_flag_spec=
8820  whole_archive_flag_spec=
8821  # include_expsyms should be a list of space-separated symbols to be *always*
8822  # included in the symbol list
8823  include_expsyms=
8824  # exclude_expsyms can be an extended regexp of symbols to exclude
8825  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8826  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8827  # as well as any symbol that contains `d'.
8828  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8829  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8830  # platforms (ab)use it in PIC code, but their linkers get confused if
8831  # the symbol is explicitly referenced.  Since portable code cannot
8832  # rely on this symbol name, it's probably fine to never include it in
8833  # preloaded symbol tables.
8834  # Exclude shared library initialization/finalization symbols.
8835  extract_expsyms_cmds=
8836
8837  case $host_os in
8838  cygwin* | mingw* | pw32* | cegcc*)
8839    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8840    # When not using gcc, we currently assume that we are using
8841    # Microsoft Visual C++.
8842    if test "$GCC" != yes; then
8843      with_gnu_ld=no
8844    fi
8845    ;;
8846  interix*)
8847    # we just hope/assume this is gcc and not c89 (= MSVC++)
8848    with_gnu_ld=yes
8849    ;;
8850  openbsd*)
8851    with_gnu_ld=no
8852    ;;
8853  linux* | k*bsd*-gnu | gnu*)
8854    link_all_deplibs=no
8855    ;;
8856  esac
8857
8858  ld_shlibs=yes
8859
8860  # On some targets, GNU ld is compatible enough with the native linker
8861  # that we're better off using the native interface for both.
8862  lt_use_gnu_ld_interface=no
8863  if test "$with_gnu_ld" = yes; then
8864    case $host_os in
8865      aix*)
8866	# The AIX port of GNU ld has always aspired to compatibility
8867	# with the native linker.  However, as the warning in the GNU ld
8868	# block says, versions before 2.19.5* couldn't really create working
8869	# shared libraries, regardless of the interface used.
8870	case `$LD -v 2>&1` in
8871	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8872	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8873	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8874	  *)
8875	    lt_use_gnu_ld_interface=yes
8876	    ;;
8877	esac
8878	;;
8879      *)
8880	lt_use_gnu_ld_interface=yes
8881	;;
8882    esac
8883  fi
8884
8885  if test "$lt_use_gnu_ld_interface" = yes; then
8886    # If archive_cmds runs LD, not CC, wlarc should be empty
8887    wlarc='${wl}'
8888
8889    # Set some defaults for GNU ld with shared library support. These
8890    # are reset later if shared libraries are not supported. Putting them
8891    # here allows them to be overridden if necessary.
8892    runpath_var=LD_RUN_PATH
8893    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894    export_dynamic_flag_spec='${wl}--export-dynamic'
8895    # ancient GNU ld didn't support --whole-archive et. al.
8896    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8897      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8898    else
8899      whole_archive_flag_spec=
8900    fi
8901    supports_anon_versioning=no
8902    case `$LD -v 2>&1` in
8903      *GNU\ gold*) supports_anon_versioning=yes ;;
8904      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8905      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8906      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8907      *\ 2.11.*) ;; # other 2.11 versions
8908      *) supports_anon_versioning=yes ;;
8909    esac
8910
8911    # See if GNU ld supports shared libraries.
8912    case $host_os in
8913    aix[3-9]*)
8914      # On AIX/PPC, the GNU linker is very broken
8915      if test "$host_cpu" != ia64; then
8916	ld_shlibs=no
8917	cat <<_LT_EOF 1>&2
8918
8919*** Warning: the GNU linker, at least up to release 2.19, is reported
8920*** to be unable to reliably create shared libraries on AIX.
8921*** Therefore, libtool is disabling shared libraries support.  If you
8922*** really care for shared libraries, you may want to install binutils
8923*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8924*** You will then need to restart the configuration process.
8925
8926_LT_EOF
8927      fi
8928      ;;
8929
8930    amigaos*)
8931      case $host_cpu in
8932      powerpc)
8933            # see comment about AmigaOS4 .so support
8934            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935            archive_expsym_cmds=''
8936        ;;
8937      m68k)
8938            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)'
8939            hardcode_libdir_flag_spec='-L$libdir'
8940            hardcode_minus_L=yes
8941        ;;
8942      esac
8943      ;;
8944
8945    beos*)
8946      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8947	allow_undefined_flag=unsupported
8948	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8949	# support --undefined.  This deserves some investigation.  FIXME
8950	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951      else
8952	ld_shlibs=no
8953      fi
8954      ;;
8955
8956    cygwin* | mingw* | pw32* | cegcc*)
8957      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8958      # as there is no search path for DLLs.
8959      hardcode_libdir_flag_spec='-L$libdir'
8960      export_dynamic_flag_spec='${wl}--export-all-symbols'
8961      allow_undefined_flag=unsupported
8962      always_export_symbols=no
8963      enable_shared_with_static_runtimes=yes
8964      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'
8965      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8966
8967      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8968        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8969	# If the export-symbols file already is a .def file (1st line
8970	# is EXPORTS), use it as is; otherwise, prepend...
8971	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8972	  cp $export_symbols $output_objdir/$soname.def;
8973	else
8974	  echo EXPORTS > $output_objdir/$soname.def;
8975	  cat $export_symbols >> $output_objdir/$soname.def;
8976	fi~
8977	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8978      else
8979	ld_shlibs=no
8980      fi
8981      ;;
8982
8983    haiku*)
8984      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985      link_all_deplibs=yes
8986      ;;
8987
8988    interix[3-9]*)
8989      hardcode_direct=no
8990      hardcode_shlibpath_var=no
8991      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8992      export_dynamic_flag_spec='${wl}-E'
8993      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8994      # Instead, shared libraries are loaded at an image base (0x10000000 by
8995      # default) and relocated if they conflict, which is a slow very memory
8996      # consuming and fragmenting process.  To avoid this, we pick a random,
8997      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8998      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8999      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9000      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'
9001      ;;
9002
9003    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9004      tmp_diet=no
9005      if test "$host_os" = linux-dietlibc; then
9006	case $cc_basename in
9007	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9008	esac
9009      fi
9010      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9011	 && test "$tmp_diet" = no
9012      then
9013	tmp_addflag=' $pic_flag'
9014	tmp_sharedflag='-shared'
9015	case $cc_basename,$host_cpu in
9016        pgcc*)				# Portland Group C compiler
9017	  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'
9018	  tmp_addflag=' $pic_flag'
9019	  ;;
9020	pgf77* | pgf90* | pgf95* | pgfortran*)
9021					# Portland Group f77 and f90 compilers
9022	  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'
9023	  tmp_addflag=' $pic_flag -Mnomain' ;;
9024	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9025	  tmp_addflag=' -i_dynamic' ;;
9026	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9027	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9028	ifc* | ifort*)			# Intel Fortran compiler
9029	  tmp_addflag=' -nofor_main' ;;
9030	lf95*)				# Lahey Fortran 8.1
9031	  whole_archive_flag_spec=
9032	  tmp_sharedflag='--shared' ;;
9033	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9034	  tmp_sharedflag='-qmkshrobj'
9035	  tmp_addflag= ;;
9036	nvcc*)	# Cuda Compiler Driver 2.2
9037	  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'
9038	  compiler_needs_object=yes
9039	  ;;
9040	esac
9041	case `$CC -V 2>&1 | sed 5q` in
9042	*Sun\ C*)			# Sun C 5.9
9043	  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'
9044	  compiler_needs_object=yes
9045	  tmp_sharedflag='-G' ;;
9046	*Sun\ F*)			# Sun Fortran 8.3
9047	  tmp_sharedflag='-G' ;;
9048	esac
9049	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050
9051        if test "x$supports_anon_versioning" = xyes; then
9052          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9053	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9054	    echo "local: *; };" >> $output_objdir/$libname.ver~
9055	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9056        fi
9057
9058	case $cc_basename in
9059	xlf* | bgf* | bgxlf* | mpixlf*)
9060	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9061	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9062	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9064	  if test "x$supports_anon_versioning" = xyes; then
9065	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9066	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9067	      echo "local: *; };" >> $output_objdir/$libname.ver~
9068	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9069	  fi
9070	  ;;
9071	esac
9072      else
9073        ld_shlibs=no
9074      fi
9075      ;;
9076
9077    netbsd* | netbsdelf*-gnu)
9078      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9079	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9080	wlarc=
9081      else
9082	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9083	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9084      fi
9085      ;;
9086
9087    solaris*)
9088      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9089	ld_shlibs=no
9090	cat <<_LT_EOF 1>&2
9091
9092*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9093*** create shared libraries on Solaris systems.  Therefore, libtool
9094*** is disabling shared libraries support.  We urge you to upgrade GNU
9095*** binutils to release 2.9.1 or newer.  Another option is to modify
9096*** your PATH or compiler configuration so that the native linker is
9097*** used, and then restart.
9098
9099_LT_EOF
9100      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103      else
9104	ld_shlibs=no
9105      fi
9106      ;;
9107
9108    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9109      case `$LD -v 2>&1` in
9110        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9111	ld_shlibs=no
9112	cat <<_LT_EOF 1>&2
9113
9114*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9115*** reliably create shared libraries on SCO systems.  Therefore, libtool
9116*** is disabling shared libraries support.  We urge you to upgrade GNU
9117*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9118*** your PATH or compiler configuration so that the native linker is
9119*** used, and then restart.
9120
9121_LT_EOF
9122	;;
9123	*)
9124	  # For security reasons, it is highly recommended that you always
9125	  # use absolute paths for naming shared libraries, and exclude the
9126	  # DT_RUNPATH tag from executables and libraries.  But doing so
9127	  # requires that you compile everything twice, which is a pain.
9128	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9129	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132	  else
9133	    ld_shlibs=no
9134	  fi
9135	;;
9136      esac
9137      ;;
9138
9139    sunos4*)
9140      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141      wlarc=
9142      hardcode_direct=yes
9143      hardcode_shlibpath_var=no
9144      ;;
9145
9146    *)
9147      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150      else
9151	ld_shlibs=no
9152      fi
9153      ;;
9154    esac
9155
9156    if test "$ld_shlibs" = no; then
9157      runpath_var=
9158      hardcode_libdir_flag_spec=
9159      export_dynamic_flag_spec=
9160      whole_archive_flag_spec=
9161    fi
9162  else
9163    # PORTME fill in a description of your system's linker (not GNU ld)
9164    case $host_os in
9165    aix3*)
9166      allow_undefined_flag=unsupported
9167      always_export_symbols=yes
9168      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'
9169      # Note: this linker hardcodes the directories in LIBPATH if there
9170      # are no directories specified by -L.
9171      hardcode_minus_L=yes
9172      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9173	# Neither direct hardcoding nor static linking is supported with a
9174	# broken collect2.
9175	hardcode_direct=unsupported
9176      fi
9177      ;;
9178
9179    aix[4-9]*)
9180      if test "$host_cpu" = ia64; then
9181	# On IA64, the linker does run time linking by default, so we don't
9182	# have to do anything special.
9183	aix_use_runtimelinking=no
9184	exp_sym_flag='-Bexport'
9185	no_entry_flag=""
9186      else
9187	# If we're using GNU nm, then we don't want the "-C" option.
9188	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9189	# Also, AIX nm treats weak defined symbols like other global
9190	# defined symbols, whereas GNU nm marks them as "W".
9191	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9192	  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'
9193	else
9194	  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'
9195	fi
9196	aix_use_runtimelinking=no
9197
9198	# Test if we are trying to use run time linking or normal
9199	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9200	# need to do runtime linking.
9201	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9202	  for ld_flag in $LDFLAGS; do
9203	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9204	    aix_use_runtimelinking=yes
9205	    break
9206	  fi
9207	  done
9208	  ;;
9209	esac
9210
9211	exp_sym_flag='-bexport'
9212	no_entry_flag='-bnoentry'
9213      fi
9214
9215      # When large executables or shared objects are built, AIX ld can
9216      # have problems creating the table of contents.  If linking a library
9217      # or program results in "error TOC overflow" add -mminimal-toc to
9218      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9219      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9220
9221      archive_cmds=''
9222      hardcode_direct=yes
9223      hardcode_direct_absolute=yes
9224      hardcode_libdir_separator=':'
9225      link_all_deplibs=yes
9226      file_list_spec='${wl}-f,'
9227
9228      if test "$GCC" = yes; then
9229	case $host_os in aix4.[012]|aix4.[012].*)
9230	# We only want to do this on AIX 4.2 and lower, the check
9231	# below for broken collect2 doesn't work under 4.3+
9232	  collect2name=`${CC} -print-prog-name=collect2`
9233	  if test -f "$collect2name" &&
9234	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9235	  then
9236	  # We have reworked collect2
9237	  :
9238	  else
9239	  # We have old collect2
9240	  hardcode_direct=unsupported
9241	  # It fails to find uninstalled libraries when the uninstalled
9242	  # path is not listed in the libpath.  Setting hardcode_minus_L
9243	  # to unsupported forces relinking
9244	  hardcode_minus_L=yes
9245	  hardcode_libdir_flag_spec='-L$libdir'
9246	  hardcode_libdir_separator=
9247	  fi
9248	  ;;
9249	esac
9250	shared_flag='-shared'
9251	if test "$aix_use_runtimelinking" = yes; then
9252	  shared_flag="$shared_flag "'${wl}-G'
9253	fi
9254	link_all_deplibs=no
9255      else
9256	# not using gcc
9257	if test "$host_cpu" = ia64; then
9258	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9259	# chokes on -Wl,-G. The following line is correct:
9260	  shared_flag='-G'
9261	else
9262	  if test "$aix_use_runtimelinking" = yes; then
9263	    shared_flag='${wl}-G'
9264	  else
9265	    shared_flag='${wl}-bM:SRE'
9266	  fi
9267	fi
9268      fi
9269
9270      export_dynamic_flag_spec='${wl}-bexpall'
9271      # It seems that -bexpall does not export symbols beginning with
9272      # underscore (_), so it is better to generate a list of symbols to export.
9273      always_export_symbols=yes
9274      if test "$aix_use_runtimelinking" = yes; then
9275	# Warning - without using the other runtime loading flags (-brtl),
9276	# -berok will link without error, but may produce a broken library.
9277	allow_undefined_flag='-berok'
9278        # Determine the default libpath from the value encoded in an
9279        # empty executable.
9280        if test "${lt_cv_aix_libpath+set}" = set; then
9281  aix_libpath=$lt_cv_aix_libpath
9282else
9283  if ${lt_cv_aix_libpath_+:} false; then :
9284  $as_echo_n "(cached) " >&6
9285else
9286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h.  */
9288
9289int
9290main ()
9291{
9292
9293  ;
9294  return 0;
9295}
9296_ACEOF
9297if ac_fn_c_try_link "$LINENO"; then :
9298
9299  lt_aix_libpath_sed='
9300      /Import File Strings/,/^$/ {
9301	  /^0/ {
9302	      s/^0  *\([^ ]*\) *$/\1/
9303	      p
9304	  }
9305      }'
9306  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9307  # Check for a 64-bit object if we didn't find anything.
9308  if test -z "$lt_cv_aix_libpath_"; then
9309    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9310  fi
9311fi
9312rm -f core conftest.err conftest.$ac_objext \
9313    conftest$ac_exeext conftest.$ac_ext
9314  if test -z "$lt_cv_aix_libpath_"; then
9315    lt_cv_aix_libpath_="/usr/lib:/lib"
9316  fi
9317
9318fi
9319
9320  aix_libpath=$lt_cv_aix_libpath_
9321fi
9322
9323        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9324        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"
9325      else
9326	if test "$host_cpu" = ia64; then
9327	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9328	  allow_undefined_flag="-z nodefs"
9329	  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"
9330	else
9331	 # Determine the default libpath from the value encoded in an
9332	 # empty executable.
9333	 if test "${lt_cv_aix_libpath+set}" = set; then
9334  aix_libpath=$lt_cv_aix_libpath
9335else
9336  if ${lt_cv_aix_libpath_+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h.  */
9341
9342int
9343main ()
9344{
9345
9346  ;
9347  return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_link "$LINENO"; then :
9351
9352  lt_aix_libpath_sed='
9353      /Import File Strings/,/^$/ {
9354	  /^0/ {
9355	      s/^0  *\([^ ]*\) *$/\1/
9356	      p
9357	  }
9358      }'
9359  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9360  # Check for a 64-bit object if we didn't find anything.
9361  if test -z "$lt_cv_aix_libpath_"; then
9362    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9363  fi
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366    conftest$ac_exeext conftest.$ac_ext
9367  if test -z "$lt_cv_aix_libpath_"; then
9368    lt_cv_aix_libpath_="/usr/lib:/lib"
9369  fi
9370
9371fi
9372
9373  aix_libpath=$lt_cv_aix_libpath_
9374fi
9375
9376	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9377	  # Warning - without using the other run time loading flags,
9378	  # -berok will link without error, but may produce a broken library.
9379	  no_undefined_flag=' ${wl}-bernotok'
9380	  allow_undefined_flag=' ${wl}-berok'
9381	  if test "$with_gnu_ld" = yes; then
9382	    # We only use this code for GNU lds that support --whole-archive.
9383	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9384	  else
9385	    # Exported symbols can be pulled into shared objects from archives
9386	    whole_archive_flag_spec='$convenience'
9387	  fi
9388	  archive_cmds_need_lc=yes
9389	  # This is similar to how AIX traditionally builds its shared libraries.
9390	  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'
9391	fi
9392      fi
9393      ;;
9394
9395    amigaos*)
9396      case $host_cpu in
9397      powerpc)
9398            # see comment about AmigaOS4 .so support
9399            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400            archive_expsym_cmds=''
9401        ;;
9402      m68k)
9403            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)'
9404            hardcode_libdir_flag_spec='-L$libdir'
9405            hardcode_minus_L=yes
9406        ;;
9407      esac
9408      ;;
9409
9410    bsdi[45]*)
9411      export_dynamic_flag_spec=-rdynamic
9412      ;;
9413
9414    cygwin* | mingw* | pw32* | cegcc*)
9415      # When not using gcc, we currently assume that we are using
9416      # Microsoft Visual C++.
9417      # hardcode_libdir_flag_spec is actually meaningless, as there is
9418      # no search path for DLLs.
9419      case $cc_basename in
9420      cl*)
9421	# Native MSVC
9422	hardcode_libdir_flag_spec=' '
9423	allow_undefined_flag=unsupported
9424	always_export_symbols=yes
9425	file_list_spec='@'
9426	# Tell ltmain to make .lib files, not .a files.
9427	libext=lib
9428	# Tell ltmain to make .dll files, not .so files.
9429	shrext_cmds=".dll"
9430	# FIXME: Setting linknames here is a bad hack.
9431	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9432	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9433	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9434	  else
9435	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9436	  fi~
9437	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9438	  linknames='
9439	# The linker will not automatically build a static lib if we build a DLL.
9440	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9441	enable_shared_with_static_runtimes=yes
9442	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9443	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9444	# Don't use ranlib
9445	old_postinstall_cmds='chmod 644 $oldlib'
9446	postlink_cmds='lt_outputfile="@OUTPUT@"~
9447	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9448	  case $lt_outputfile in
9449	    *.exe|*.EXE) ;;
9450	    *)
9451	      lt_outputfile="$lt_outputfile.exe"
9452	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9453	      ;;
9454	  esac~
9455	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9456	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9457	    $RM "$lt_outputfile.manifest";
9458	  fi'
9459	;;
9460      *)
9461	# Assume MSVC wrapper
9462	hardcode_libdir_flag_spec=' '
9463	allow_undefined_flag=unsupported
9464	# Tell ltmain to make .lib files, not .a files.
9465	libext=lib
9466	# Tell ltmain to make .dll files, not .so files.
9467	shrext_cmds=".dll"
9468	# FIXME: Setting linknames here is a bad hack.
9469	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9470	# The linker will automatically build a .lib file if we build a DLL.
9471	old_archive_from_new_cmds='true'
9472	# FIXME: Should let the user specify the lib program.
9473	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9474	enable_shared_with_static_runtimes=yes
9475	;;
9476      esac
9477      ;;
9478
9479    darwin* | rhapsody*)
9480
9481
9482  archive_cmds_need_lc=no
9483  hardcode_direct=no
9484  hardcode_automatic=yes
9485  hardcode_shlibpath_var=unsupported
9486  if test "$lt_cv_ld_force_load" = "yes"; then
9487    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\"`'
9488
9489  else
9490    whole_archive_flag_spec=''
9491  fi
9492  link_all_deplibs=yes
9493  allow_undefined_flag="$_lt_dar_allow_undefined"
9494  case $cc_basename in
9495     ifort*) _lt_dar_can_shared=yes ;;
9496     *) _lt_dar_can_shared=$GCC ;;
9497  esac
9498  if test "$_lt_dar_can_shared" = "yes"; then
9499    output_verbose_link_cmd=func_echo_all
9500    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9501    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9502    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}"
9503    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}"
9504
9505  else
9506  ld_shlibs=no
9507  fi
9508
9509      ;;
9510
9511    dgux*)
9512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      hardcode_shlibpath_var=no
9515      ;;
9516
9517    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9518    # support.  Future versions do this automatically, but an explicit c++rt0.o
9519    # does not break anything, and helps significantly (at the cost of a little
9520    # extra space).
9521    freebsd2.2*)
9522      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9523      hardcode_libdir_flag_spec='-R$libdir'
9524      hardcode_direct=yes
9525      hardcode_shlibpath_var=no
9526      ;;
9527
9528    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9529    freebsd2.*)
9530      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531      hardcode_direct=yes
9532      hardcode_minus_L=yes
9533      hardcode_shlibpath_var=no
9534      ;;
9535
9536    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9537    freebsd* | dragonfly*)
9538      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539      hardcode_libdir_flag_spec='-R$libdir'
9540      hardcode_direct=yes
9541      hardcode_shlibpath_var=no
9542      ;;
9543
9544    hpux9*)
9545      if test "$GCC" = yes; then
9546	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'
9547      else
9548	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'
9549      fi
9550      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551      hardcode_libdir_separator=:
9552      hardcode_direct=yes
9553
9554      # hardcode_minus_L: Not really in the search PATH,
9555      # but as the default location of the library.
9556      hardcode_minus_L=yes
9557      export_dynamic_flag_spec='${wl}-E'
9558      ;;
9559
9560    hpux10*)
9561      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9562	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9563      else
9564	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9565      fi
9566      if test "$with_gnu_ld" = no; then
9567	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9568	hardcode_libdir_separator=:
9569	hardcode_direct=yes
9570	hardcode_direct_absolute=yes
9571	export_dynamic_flag_spec='${wl}-E'
9572	# hardcode_minus_L: Not really in the search PATH,
9573	# but as the default location of the library.
9574	hardcode_minus_L=yes
9575      fi
9576      ;;
9577
9578    hpux11*)
9579      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9580	case $host_cpu in
9581	hppa*64*)
9582	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9583	  ;;
9584	ia64*)
9585	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9586	  ;;
9587	*)
9588	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9589	  ;;
9590	esac
9591      else
9592	case $host_cpu in
9593	hppa*64*)
9594	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9595	  ;;
9596	ia64*)
9597	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9598	  ;;
9599	*)
9600
9601	  # Older versions of the 11.00 compiler do not understand -b yet
9602	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9603	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9604$as_echo_n "checking if $CC understands -b... " >&6; }
9605if ${lt_cv_prog_compiler__b+:} false; then :
9606  $as_echo_n "(cached) " >&6
9607else
9608  lt_cv_prog_compiler__b=no
9609   save_LDFLAGS="$LDFLAGS"
9610   LDFLAGS="$LDFLAGS -b"
9611   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9612   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9613     # The linker can only warn and ignore the option if not recognized
9614     # So say no if there are warnings
9615     if test -s conftest.err; then
9616       # Append any errors to the config.log.
9617       cat conftest.err 1>&5
9618       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9619       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9620       if diff conftest.exp conftest.er2 >/dev/null; then
9621         lt_cv_prog_compiler__b=yes
9622       fi
9623     else
9624       lt_cv_prog_compiler__b=yes
9625     fi
9626   fi
9627   $RM -r conftest*
9628   LDFLAGS="$save_LDFLAGS"
9629
9630fi
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9632$as_echo "$lt_cv_prog_compiler__b" >&6; }
9633
9634if test x"$lt_cv_prog_compiler__b" = xyes; then
9635    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9636else
9637    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9638fi
9639
9640	  ;;
9641	esac
9642      fi
9643      if test "$with_gnu_ld" = no; then
9644	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9645	hardcode_libdir_separator=:
9646
9647	case $host_cpu in
9648	hppa*64*|ia64*)
9649	  hardcode_direct=no
9650	  hardcode_shlibpath_var=no
9651	  ;;
9652	*)
9653	  hardcode_direct=yes
9654	  hardcode_direct_absolute=yes
9655	  export_dynamic_flag_spec='${wl}-E'
9656
9657	  # hardcode_minus_L: Not really in the search PATH,
9658	  # but as the default location of the library.
9659	  hardcode_minus_L=yes
9660	  ;;
9661	esac
9662      fi
9663      ;;
9664
9665    irix5* | irix6* | nonstopux*)
9666      if test "$GCC" = yes; then
9667	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'
9668	# Try to use the -exported_symbol ld option, if it does not
9669	# work, assume that -exports_file does not work either and
9670	# implicitly export all symbols.
9671	# This should be the same for all languages, so no per-tag cache variable.
9672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9673$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9674if ${lt_cv_irix_exported_symbol+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  save_LDFLAGS="$LDFLAGS"
9678	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9679	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680/* end confdefs.h.  */
9681int foo (void) { return 0; }
9682_ACEOF
9683if ac_fn_c_try_link "$LINENO"; then :
9684  lt_cv_irix_exported_symbol=yes
9685else
9686  lt_cv_irix_exported_symbol=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext \
9689    conftest$ac_exeext conftest.$ac_ext
9690           LDFLAGS="$save_LDFLAGS"
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9693$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9694	if test "$lt_cv_irix_exported_symbol" = yes; then
9695          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'
9696	fi
9697      else
9698	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'
9699	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'
9700      fi
9701      archive_cmds_need_lc='no'
9702      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703      hardcode_libdir_separator=:
9704      inherit_rpath=yes
9705      link_all_deplibs=yes
9706      ;;
9707
9708    netbsd* | netbsdelf*-gnu)
9709      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9710	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9711      else
9712	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9713      fi
9714      hardcode_libdir_flag_spec='-R$libdir'
9715      hardcode_direct=yes
9716      hardcode_shlibpath_var=no
9717      ;;
9718
9719    newsos6)
9720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721      hardcode_direct=yes
9722      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723      hardcode_libdir_separator=:
9724      hardcode_shlibpath_var=no
9725      ;;
9726
9727    *nto* | *qnx*)
9728      ;;
9729
9730    openbsd*)
9731      if test -f /usr/libexec/ld.so; then
9732	hardcode_direct=yes
9733	hardcode_shlibpath_var=no
9734	hardcode_direct_absolute=yes
9735	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9736	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9737	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9738	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9739	  export_dynamic_flag_spec='${wl}-E'
9740	else
9741	  case $host_os in
9742	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9743	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9744	     hardcode_libdir_flag_spec='-R$libdir'
9745	     ;;
9746	   *)
9747	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9749	     ;;
9750	  esac
9751	fi
9752      else
9753	ld_shlibs=no
9754      fi
9755      ;;
9756
9757    os2*)
9758      hardcode_libdir_flag_spec='-L$libdir'
9759      hardcode_minus_L=yes
9760      allow_undefined_flag=unsupported
9761      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'
9762      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9763      ;;
9764
9765    osf3*)
9766      if test "$GCC" = yes; then
9767	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9768	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'
9769      else
9770	allow_undefined_flag=' -expect_unresolved \*'
9771	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'
9772      fi
9773      archive_cmds_need_lc='no'
9774      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775      hardcode_libdir_separator=:
9776      ;;
9777
9778    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9779      if test "$GCC" = yes; then
9780	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9781	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'
9782	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9783      else
9784	allow_undefined_flag=' -expect_unresolved \*'
9785	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'
9786	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~
9787	$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'
9788
9789	# Both c and cxx compiler support -rpath directly
9790	hardcode_libdir_flag_spec='-rpath $libdir'
9791      fi
9792      archive_cmds_need_lc='no'
9793      hardcode_libdir_separator=:
9794      ;;
9795
9796    solaris*)
9797      no_undefined_flag=' -z defs'
9798      if test "$GCC" = yes; then
9799	wlarc='${wl}'
9800	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9801	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9802	  $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'
9803      else
9804	case `$CC -V 2>&1` in
9805	*"Compilers 5.0"*)
9806	  wlarc=''
9807	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9809	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9810	  ;;
9811	*)
9812	  wlarc='${wl}'
9813	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9814	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9815	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9816	  ;;
9817	esac
9818      fi
9819      hardcode_libdir_flag_spec='-R$libdir'
9820      hardcode_shlibpath_var=no
9821      case $host_os in
9822      solaris2.[0-5] | solaris2.[0-5].*) ;;
9823      *)
9824	# The compiler driver will combine and reorder linker options,
9825	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9826	# but is careful enough not to reorder.
9827	# Supported since Solaris 2.6 (maybe 2.5.1?)
9828	if test "$GCC" = yes; then
9829	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9830	else
9831	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9832	fi
9833	;;
9834      esac
9835      link_all_deplibs=yes
9836      ;;
9837
9838    sunos4*)
9839      if test "x$host_vendor" = xsequent; then
9840	# Use $CC to link under sequent, because it throws in some extra .o
9841	# files that make .init and .fini sections work.
9842	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9843      else
9844	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9845      fi
9846      hardcode_libdir_flag_spec='-L$libdir'
9847      hardcode_direct=yes
9848      hardcode_minus_L=yes
9849      hardcode_shlibpath_var=no
9850      ;;
9851
9852    sysv4)
9853      case $host_vendor in
9854	sni)
9855	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856	  hardcode_direct=yes # is this really true???
9857	;;
9858	siemens)
9859	  ## LD is ld it makes a PLAMLIB
9860	  ## CC just makes a GrossModule.
9861	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9862	  reload_cmds='$CC -r -o $output$reload_objs'
9863	  hardcode_direct=no
9864        ;;
9865	motorola)
9866	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9868	;;
9869      esac
9870      runpath_var='LD_RUN_PATH'
9871      hardcode_shlibpath_var=no
9872      ;;
9873
9874    sysv4.3*)
9875      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876      hardcode_shlibpath_var=no
9877      export_dynamic_flag_spec='-Bexport'
9878      ;;
9879
9880    sysv4*MP*)
9881      if test -d /usr/nec; then
9882	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883	hardcode_shlibpath_var=no
9884	runpath_var=LD_RUN_PATH
9885	hardcode_runpath_var=yes
9886	ld_shlibs=yes
9887      fi
9888      ;;
9889
9890    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9891      no_undefined_flag='${wl}-z,text'
9892      archive_cmds_need_lc=no
9893      hardcode_shlibpath_var=no
9894      runpath_var='LD_RUN_PATH'
9895
9896      if test "$GCC" = yes; then
9897	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9898	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899      else
9900	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902      fi
9903      ;;
9904
9905    sysv5* | sco3.2v5* | sco5v6*)
9906      # Note: We can NOT use -z defs as we might desire, because we do not
9907      # link with -lc, and that would cause any symbols used from libc to
9908      # always be unresolved, which means just about no library would
9909      # ever link correctly.  If we're not using GNU ld we use -z text
9910      # though, which does catch some bad symbols but isn't as heavy-handed
9911      # as -z defs.
9912      no_undefined_flag='${wl}-z,text'
9913      allow_undefined_flag='${wl}-z,nodefs'
9914      archive_cmds_need_lc=no
9915      hardcode_shlibpath_var=no
9916      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9917      hardcode_libdir_separator=':'
9918      link_all_deplibs=yes
9919      export_dynamic_flag_spec='${wl}-Bexport'
9920      runpath_var='LD_RUN_PATH'
9921
9922      if test "$GCC" = yes; then
9923	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9924	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9925      else
9926	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9927	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9928      fi
9929      ;;
9930
9931    uts4*)
9932      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9933      hardcode_libdir_flag_spec='-L$libdir'
9934      hardcode_shlibpath_var=no
9935      ;;
9936
9937    *)
9938      ld_shlibs=no
9939      ;;
9940    esac
9941
9942    if test x$host_vendor = xsni; then
9943      case $host in
9944      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9945	export_dynamic_flag_spec='${wl}-Blargedynsym'
9946	;;
9947      esac
9948    fi
9949  fi
9950
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9952$as_echo "$ld_shlibs" >&6; }
9953test "$ld_shlibs" = no && can_build_shared=no
9954
9955with_gnu_ld=$with_gnu_ld
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971#
9972# Do we need to explicitly link libc?
9973#
9974case "x$archive_cmds_need_lc" in
9975x|xyes)
9976  # Assume -lc should be added
9977  archive_cmds_need_lc=yes
9978
9979  if test "$enable_shared" = yes && test "$GCC" = yes; then
9980    case $archive_cmds in
9981    *'~'*)
9982      # FIXME: we may have to deal with multi-command sequences.
9983      ;;
9984    '$CC '*)
9985      # Test whether the compiler implicitly links with -lc since on some
9986      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9987      # to ld, don't add -lc before -lgcc.
9988      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9989$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9990if ${lt_cv_archive_cmds_need_lc+:} false; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  $RM conftest*
9994	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9995
9996	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9997  (eval $ac_compile) 2>&5
9998  ac_status=$?
9999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000  test $ac_status = 0; } 2>conftest.err; then
10001	  soname=conftest
10002	  lib=conftest
10003	  libobjs=conftest.$ac_objext
10004	  deplibs=
10005	  wl=$lt_prog_compiler_wl
10006	  pic_flag=$lt_prog_compiler_pic
10007	  compiler_flags=-v
10008	  linker_flags=-v
10009	  verstring=
10010	  output_objdir=.
10011	  libname=conftest
10012	  lt_save_allow_undefined_flag=$allow_undefined_flag
10013	  allow_undefined_flag=
10014	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10015  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10016  ac_status=$?
10017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018  test $ac_status = 0; }
10019	  then
10020	    lt_cv_archive_cmds_need_lc=no
10021	  else
10022	    lt_cv_archive_cmds_need_lc=yes
10023	  fi
10024	  allow_undefined_flag=$lt_save_allow_undefined_flag
10025	else
10026	  cat conftest.err 1>&5
10027	fi
10028	$RM conftest*
10029
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10032$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10033      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10034      ;;
10035    esac
10036  fi
10037  ;;
10038esac
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10192$as_echo_n "checking dynamic linker characteristics... " >&6; }
10193
10194if test "$GCC" = yes; then
10195  case $host_os in
10196    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10197    *) lt_awk_arg="/^libraries:/" ;;
10198  esac
10199  case $host_os in
10200    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10201    *) lt_sed_strip_eq="s,=/,/,g" ;;
10202  esac
10203  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10204  case $lt_search_path_spec in
10205  *\;*)
10206    # if the path contains ";" then we assume it to be the separator
10207    # otherwise default to the standard path separator (i.e. ":") - it is
10208    # assumed that no part of a normal pathname contains ";" but that should
10209    # okay in the real world where ";" in dirpaths is itself problematic.
10210    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10211    ;;
10212  *)
10213    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10214    ;;
10215  esac
10216  # Ok, now we have the path, separated by spaces, we can step through it
10217  # and add multilib dir if necessary.
10218  lt_tmp_lt_search_path_spec=
10219  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10220  for lt_sys_path in $lt_search_path_spec; do
10221    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10222      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10223    else
10224      test -d "$lt_sys_path" && \
10225	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10226    fi
10227  done
10228  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10229BEGIN {RS=" "; FS="/|\n";} {
10230  lt_foo="";
10231  lt_count=0;
10232  for (lt_i = NF; lt_i > 0; lt_i--) {
10233    if ($lt_i != "" && $lt_i != ".") {
10234      if ($lt_i == "..") {
10235        lt_count++;
10236      } else {
10237        if (lt_count == 0) {
10238          lt_foo="/" $lt_i lt_foo;
10239        } else {
10240          lt_count--;
10241        }
10242      }
10243    }
10244  }
10245  if (lt_foo != "") { lt_freq[lt_foo]++; }
10246  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10247}'`
10248  # AWK program above erroneously prepends '/' to C:/dos/paths
10249  # for these hosts.
10250  case $host_os in
10251    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10252      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10253  esac
10254  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10255else
10256  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10257fi
10258library_names_spec=
10259libname_spec='lib$name'
10260soname_spec=
10261shrext_cmds=".so"
10262postinstall_cmds=
10263postuninstall_cmds=
10264finish_cmds=
10265finish_eval=
10266shlibpath_var=
10267shlibpath_overrides_runpath=unknown
10268version_type=none
10269dynamic_linker="$host_os ld.so"
10270sys_lib_dlsearch_path_spec="/lib /usr/lib"
10271need_lib_prefix=unknown
10272hardcode_into_libs=no
10273
10274# when you set need_version to no, make sure it does not cause -set_version
10275# flags to be left without arguments
10276need_version=unknown
10277
10278case $host_os in
10279aix3*)
10280  version_type=linux # correct to gnu/linux during the next big refactor
10281  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10282  shlibpath_var=LIBPATH
10283
10284  # AIX 3 has no versioning support, so we append a major version to the name.
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  ;;
10287
10288aix[4-9]*)
10289  version_type=linux # correct to gnu/linux during the next big refactor
10290  need_lib_prefix=no
10291  need_version=no
10292  hardcode_into_libs=yes
10293  if test "$host_cpu" = ia64; then
10294    # AIX 5 supports IA64
10295    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10296    shlibpath_var=LD_LIBRARY_PATH
10297  else
10298    # With GCC up to 2.95.x, collect2 would create an import file
10299    # for dependence libraries.  The import file would start with
10300    # the line `#! .'.  This would cause the generated library to
10301    # depend on `.', always an invalid library.  This was fixed in
10302    # development snapshots of GCC prior to 3.0.
10303    case $host_os in
10304      aix4 | aix4.[01] | aix4.[01].*)
10305      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10306	   echo ' yes '
10307	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10308	:
10309      else
10310	can_build_shared=no
10311      fi
10312      ;;
10313    esac
10314    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10315    # soname into executable. Probably we can add versioning support to
10316    # collect2, so additional links can be useful in future.
10317    if test "$aix_use_runtimelinking" = yes; then
10318      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10319      # instead of lib<name>.a to let people know that these are not
10320      # typical AIX shared libraries.
10321      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322    else
10323      # We preserve .a as extension for shared libraries through AIX4.2
10324      # and later when we are not doing run time linking.
10325      library_names_spec='${libname}${release}.a $libname.a'
10326      soname_spec='${libname}${release}${shared_ext}$major'
10327    fi
10328    shlibpath_var=LIBPATH
10329  fi
10330  ;;
10331
10332amigaos*)
10333  case $host_cpu in
10334  powerpc)
10335    # Since July 2007 AmigaOS4 officially supports .so libraries.
10336    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338    ;;
10339  m68k)
10340    library_names_spec='$libname.ixlibrary $libname.a'
10341    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10342    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'
10343    ;;
10344  esac
10345  ;;
10346
10347beos*)
10348  library_names_spec='${libname}${shared_ext}'
10349  dynamic_linker="$host_os ld.so"
10350  shlibpath_var=LIBRARY_PATH
10351  ;;
10352
10353bsdi[45]*)
10354  version_type=linux # correct to gnu/linux during the next big refactor
10355  need_version=no
10356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357  soname_spec='${libname}${release}${shared_ext}$major'
10358  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10359  shlibpath_var=LD_LIBRARY_PATH
10360  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10361  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10362  # the default ld.so.conf also contains /usr/contrib/lib and
10363  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10364  # libtool to hard-code these into programs
10365  ;;
10366
10367cygwin* | mingw* | pw32* | cegcc*)
10368  version_type=windows
10369  shrext_cmds=".dll"
10370  need_version=no
10371  need_lib_prefix=no
10372
10373  case $GCC,$cc_basename in
10374  yes,*)
10375    # gcc
10376    library_names_spec='$libname.dll.a'
10377    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10378    postinstall_cmds='base_file=`basename \${file}`~
10379      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10380      dldir=$destdir/`dirname \$dlpath`~
10381      test -d \$dldir || mkdir -p \$dldir~
10382      $install_prog $dir/$dlname \$dldir/$dlname~
10383      chmod a+x \$dldir/$dlname~
10384      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10385        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10386      fi'
10387    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10388      dlpath=$dir/\$dldll~
10389       $RM \$dlpath'
10390    shlibpath_overrides_runpath=yes
10391
10392    case $host_os in
10393    cygwin*)
10394      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10395      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10396
10397      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10398      ;;
10399    mingw* | cegcc*)
10400      # MinGW DLLs use traditional 'lib' prefix
10401      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10402      ;;
10403    pw32*)
10404      # pw32 DLLs use 'pw' prefix rather than 'lib'
10405      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10406      ;;
10407    esac
10408    dynamic_linker='Win32 ld.exe'
10409    ;;
10410
10411  *,cl*)
10412    # Native MSVC
10413    libname_spec='$name'
10414    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10415    library_names_spec='${libname}.dll.lib'
10416
10417    case $build_os in
10418    mingw*)
10419      sys_lib_search_path_spec=
10420      lt_save_ifs=$IFS
10421      IFS=';'
10422      for lt_path in $LIB
10423      do
10424        IFS=$lt_save_ifs
10425        # Let DOS variable expansion print the short 8.3 style file name.
10426        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10427        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10428      done
10429      IFS=$lt_save_ifs
10430      # Convert to MSYS style.
10431      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10432      ;;
10433    cygwin*)
10434      # Convert to unix form, then to dos form, then back to unix form
10435      # but this time dos style (no spaces!) so that the unix form looks
10436      # like /cygdrive/c/PROGRA~1:/cygdr...
10437      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10438      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10439      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10440      ;;
10441    *)
10442      sys_lib_search_path_spec="$LIB"
10443      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10444        # It is most probably a Windows format PATH.
10445        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10446      else
10447        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10448      fi
10449      # FIXME: find the short name or the path components, as spaces are
10450      # common. (e.g. "Program Files" -> "PROGRA~1")
10451      ;;
10452    esac
10453
10454    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10455    postinstall_cmds='base_file=`basename \${file}`~
10456      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10457      dldir=$destdir/`dirname \$dlpath`~
10458      test -d \$dldir || mkdir -p \$dldir~
10459      $install_prog $dir/$dlname \$dldir/$dlname'
10460    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10461      dlpath=$dir/\$dldll~
10462       $RM \$dlpath'
10463    shlibpath_overrides_runpath=yes
10464    dynamic_linker='Win32 link.exe'
10465    ;;
10466
10467  *)
10468    # Assume MSVC wrapper
10469    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10470    dynamic_linker='Win32 ld.exe'
10471    ;;
10472  esac
10473  # FIXME: first we should search . and the directory the executable is in
10474  shlibpath_var=PATH
10475  ;;
10476
10477darwin* | rhapsody*)
10478  dynamic_linker="$host_os dyld"
10479  version_type=darwin
10480  need_lib_prefix=no
10481  need_version=no
10482  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10483  soname_spec='${libname}${release}${major}$shared_ext'
10484  shlibpath_overrides_runpath=yes
10485  shlibpath_var=DYLD_LIBRARY_PATH
10486  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10487
10488  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10489  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10490  ;;
10491
10492dgux*)
10493  version_type=linux # correct to gnu/linux during the next big refactor
10494  need_lib_prefix=no
10495  need_version=no
10496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10497  soname_spec='${libname}${release}${shared_ext}$major'
10498  shlibpath_var=LD_LIBRARY_PATH
10499  ;;
10500
10501freebsd* | dragonfly*)
10502  # DragonFly does not have aout.  When/if they implement a new
10503  # versioning mechanism, adjust this.
10504  if test -x /usr/bin/objformat; then
10505    objformat=`/usr/bin/objformat`
10506  else
10507    case $host_os in
10508    freebsd[23].*) objformat=aout ;;
10509    *) objformat=elf ;;
10510    esac
10511  fi
10512  version_type=freebsd-$objformat
10513  case $version_type in
10514    freebsd-elf*)
10515      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10516      need_version=no
10517      need_lib_prefix=no
10518      ;;
10519    freebsd-*)
10520      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10521      need_version=yes
10522      ;;
10523  esac
10524  shlibpath_var=LD_LIBRARY_PATH
10525  case $host_os in
10526  freebsd2.*)
10527    shlibpath_overrides_runpath=yes
10528    ;;
10529  freebsd3.[01]* | freebsdelf3.[01]*)
10530    shlibpath_overrides_runpath=yes
10531    hardcode_into_libs=yes
10532    ;;
10533  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10534  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10535    shlibpath_overrides_runpath=no
10536    hardcode_into_libs=yes
10537    ;;
10538  *) # from 4.6 on, and DragonFly
10539    shlibpath_overrides_runpath=yes
10540    hardcode_into_libs=yes
10541    ;;
10542  esac
10543  ;;
10544
10545haiku*)
10546  version_type=linux # correct to gnu/linux during the next big refactor
10547  need_lib_prefix=no
10548  need_version=no
10549  dynamic_linker="$host_os runtime_loader"
10550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10551  soname_spec='${libname}${release}${shared_ext}$major'
10552  shlibpath_var=LIBRARY_PATH
10553  shlibpath_overrides_runpath=yes
10554  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10555  hardcode_into_libs=yes
10556  ;;
10557
10558hpux9* | hpux10* | hpux11*)
10559  # Give a soname corresponding to the major version so that dld.sl refuses to
10560  # link against other versions.
10561  version_type=sunos
10562  need_lib_prefix=no
10563  need_version=no
10564  case $host_cpu in
10565  ia64*)
10566    shrext_cmds='.so'
10567    hardcode_into_libs=yes
10568    dynamic_linker="$host_os dld.so"
10569    shlibpath_var=LD_LIBRARY_PATH
10570    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572    soname_spec='${libname}${release}${shared_ext}$major'
10573    if test "X$HPUX_IA64_MODE" = X32; then
10574      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10575    else
10576      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10577    fi
10578    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10579    ;;
10580  hppa*64*)
10581    shrext_cmds='.sl'
10582    hardcode_into_libs=yes
10583    dynamic_linker="$host_os dld.sl"
10584    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10585    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587    soname_spec='${libname}${release}${shared_ext}$major'
10588    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10589    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10590    ;;
10591  *)
10592    shrext_cmds='.sl'
10593    dynamic_linker="$host_os dld.sl"
10594    shlibpath_var=SHLIB_PATH
10595    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
10599  esac
10600  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10601  postinstall_cmds='chmod 555 $lib'
10602  # or fails outright, so override atomically:
10603  install_override_mode=555
10604  ;;
10605
10606interix[3-9]*)
10607  version_type=linux # correct to gnu/linux during the next big refactor
10608  need_lib_prefix=no
10609  need_version=no
10610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10611  soname_spec='${libname}${release}${shared_ext}$major'
10612  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10613  shlibpath_var=LD_LIBRARY_PATH
10614  shlibpath_overrides_runpath=no
10615  hardcode_into_libs=yes
10616  ;;
10617
10618irix5* | irix6* | nonstopux*)
10619  case $host_os in
10620    nonstopux*) version_type=nonstopux ;;
10621    *)
10622	if test "$lt_cv_prog_gnu_ld" = yes; then
10623		version_type=linux # correct to gnu/linux during the next big refactor
10624	else
10625		version_type=irix
10626	fi ;;
10627  esac
10628  need_lib_prefix=no
10629  need_version=no
10630  soname_spec='${libname}${release}${shared_ext}$major'
10631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10632  case $host_os in
10633  irix5* | nonstopux*)
10634    libsuff= shlibsuff=
10635    ;;
10636  *)
10637    case $LD in # libtool.m4 will add one of these switches to LD
10638    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10639      libsuff= shlibsuff= libmagic=32-bit;;
10640    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10641      libsuff=32 shlibsuff=N32 libmagic=N32;;
10642    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10643      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10644    *) libsuff= shlibsuff= libmagic=never-match;;
10645    esac
10646    ;;
10647  esac
10648  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10649  shlibpath_overrides_runpath=no
10650  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10651  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10652  hardcode_into_libs=yes
10653  ;;
10654
10655# No shared lib support for Linux oldld, aout, or coff.
10656linux*oldld* | linux*aout* | linux*coff*)
10657  dynamic_linker=no
10658  ;;
10659
10660# This must be glibc/ELF.
10661linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10662  version_type=linux # correct to gnu/linux during the next big refactor
10663  need_lib_prefix=no
10664  need_version=no
10665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666  soname_spec='${libname}${release}${shared_ext}$major'
10667  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10668  shlibpath_var=LD_LIBRARY_PATH
10669  shlibpath_overrides_runpath=no
10670
10671  # Some binutils ld are patched to set DT_RUNPATH
10672  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  lt_cv_shlibpath_overrides_runpath=no
10676    save_LDFLAGS=$LDFLAGS
10677    save_libdir=$libdir
10678    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10679	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681/* end confdefs.h.  */
10682
10683int
10684main ()
10685{
10686
10687  ;
10688  return 0;
10689}
10690_ACEOF
10691if ac_fn_c_try_link "$LINENO"; then :
10692  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10693  lt_cv_shlibpath_overrides_runpath=yes
10694fi
10695fi
10696rm -f core conftest.err conftest.$ac_objext \
10697    conftest$ac_exeext conftest.$ac_ext
10698    LDFLAGS=$save_LDFLAGS
10699    libdir=$save_libdir
10700
10701fi
10702
10703  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10704
10705  # This implies no fast_install, which is unacceptable.
10706  # Some rework will be needed to allow for fast_install
10707  # before this can be enabled.
10708  hardcode_into_libs=yes
10709
10710  # Append ld.so.conf contents to the search path
10711  if test -f /etc/ld.so.conf; then
10712    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' ' '`
10713    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10714  fi
10715
10716  # We used to test for /lib/ld.so.1 and disable shared libraries on
10717  # powerpc, because MkLinux only supported shared libraries with the
10718  # GNU dynamic linker.  Since this was broken with cross compilers,
10719  # most powerpc-linux boxes support dynamic linking these days and
10720  # people can always --disable-shared, the test was removed, and we
10721  # assume the GNU/Linux dynamic linker is in use.
10722  dynamic_linker='GNU/Linux ld.so'
10723  ;;
10724
10725netbsdelf*-gnu)
10726  version_type=linux
10727  need_lib_prefix=no
10728  need_version=no
10729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10730  soname_spec='${libname}${release}${shared_ext}$major'
10731  shlibpath_var=LD_LIBRARY_PATH
10732  shlibpath_overrides_runpath=no
10733  hardcode_into_libs=yes
10734  dynamic_linker='NetBSD ld.elf_so'
10735  ;;
10736
10737netbsd*)
10738  version_type=sunos
10739  need_lib_prefix=no
10740  need_version=no
10741  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10742    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10744    dynamic_linker='NetBSD (a.out) ld.so'
10745  else
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    dynamic_linker='NetBSD ld.elf_so'
10749  fi
10750  shlibpath_var=LD_LIBRARY_PATH
10751  shlibpath_overrides_runpath=yes
10752  hardcode_into_libs=yes
10753  ;;
10754
10755newsos6)
10756  version_type=linux # correct to gnu/linux during the next big refactor
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758  shlibpath_var=LD_LIBRARY_PATH
10759  shlibpath_overrides_runpath=yes
10760  ;;
10761
10762*nto* | *qnx*)
10763  version_type=qnx
10764  need_lib_prefix=no
10765  need_version=no
10766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767  soname_spec='${libname}${release}${shared_ext}$major'
10768  shlibpath_var=LD_LIBRARY_PATH
10769  shlibpath_overrides_runpath=no
10770  hardcode_into_libs=yes
10771  dynamic_linker='ldqnx.so'
10772  ;;
10773
10774openbsd*)
10775  version_type=sunos
10776  sys_lib_dlsearch_path_spec="/usr/lib"
10777  need_lib_prefix=no
10778  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10779  case $host_os in
10780    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10781    *)				need_version=no  ;;
10782  esac
10783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10784  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10785  shlibpath_var=LD_LIBRARY_PATH
10786  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10787    case $host_os in
10788      openbsd2.[89] | openbsd2.[89].*)
10789	shlibpath_overrides_runpath=no
10790	;;
10791      *)
10792	shlibpath_overrides_runpath=yes
10793	;;
10794      esac
10795  else
10796    shlibpath_overrides_runpath=yes
10797  fi
10798  ;;
10799
10800os2*)
10801  libname_spec='$name'
10802  shrext_cmds=".dll"
10803  need_lib_prefix=no
10804  library_names_spec='$libname${shared_ext} $libname.a'
10805  dynamic_linker='OS/2 ld.exe'
10806  shlibpath_var=LIBPATH
10807  ;;
10808
10809osf3* | osf4* | osf5*)
10810  version_type=osf
10811  need_lib_prefix=no
10812  need_version=no
10813  soname_spec='${libname}${release}${shared_ext}$major'
10814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815  shlibpath_var=LD_LIBRARY_PATH
10816  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10817  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10818  ;;
10819
10820rdos*)
10821  dynamic_linker=no
10822  ;;
10823
10824solaris*)
10825  version_type=linux # correct to gnu/linux during the next big refactor
10826  need_lib_prefix=no
10827  need_version=no
10828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829  soname_spec='${libname}${release}${shared_ext}$major'
10830  shlibpath_var=LD_LIBRARY_PATH
10831  shlibpath_overrides_runpath=yes
10832  hardcode_into_libs=yes
10833  # ldd complains unless libraries are executable
10834  postinstall_cmds='chmod +x $lib'
10835  ;;
10836
10837sunos4*)
10838  version_type=sunos
10839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10840  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10841  shlibpath_var=LD_LIBRARY_PATH
10842  shlibpath_overrides_runpath=yes
10843  if test "$with_gnu_ld" = yes; then
10844    need_lib_prefix=no
10845  fi
10846  need_version=yes
10847  ;;
10848
10849sysv4 | sysv4.3*)
10850  version_type=linux # correct to gnu/linux during the next big refactor
10851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852  soname_spec='${libname}${release}${shared_ext}$major'
10853  shlibpath_var=LD_LIBRARY_PATH
10854  case $host_vendor in
10855    sni)
10856      shlibpath_overrides_runpath=no
10857      need_lib_prefix=no
10858      runpath_var=LD_RUN_PATH
10859      ;;
10860    siemens)
10861      need_lib_prefix=no
10862      ;;
10863    motorola)
10864      need_lib_prefix=no
10865      need_version=no
10866      shlibpath_overrides_runpath=no
10867      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10868      ;;
10869  esac
10870  ;;
10871
10872sysv4*MP*)
10873  if test -d /usr/nec ;then
10874    version_type=linux # correct to gnu/linux during the next big refactor
10875    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10876    soname_spec='$libname${shared_ext}.$major'
10877    shlibpath_var=LD_LIBRARY_PATH
10878  fi
10879  ;;
10880
10881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10882  version_type=freebsd-elf
10883  need_lib_prefix=no
10884  need_version=no
10885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10886  soname_spec='${libname}${release}${shared_ext}$major'
10887  shlibpath_var=LD_LIBRARY_PATH
10888  shlibpath_overrides_runpath=yes
10889  hardcode_into_libs=yes
10890  if test "$with_gnu_ld" = yes; then
10891    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10892  else
10893    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10894    case $host_os in
10895      sco3.2v5*)
10896        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10897	;;
10898    esac
10899  fi
10900  sys_lib_dlsearch_path_spec='/usr/lib'
10901  ;;
10902
10903tpf*)
10904  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10905  version_type=linux # correct to gnu/linux during the next big refactor
10906  need_lib_prefix=no
10907  need_version=no
10908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909  shlibpath_var=LD_LIBRARY_PATH
10910  shlibpath_overrides_runpath=no
10911  hardcode_into_libs=yes
10912  ;;
10913
10914uts4*)
10915  version_type=linux # correct to gnu/linux during the next big refactor
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917  soname_spec='${libname}${release}${shared_ext}$major'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  ;;
10920
10921*)
10922  dynamic_linker=no
10923  ;;
10924esac
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10926$as_echo "$dynamic_linker" >&6; }
10927test "$dynamic_linker" = no && can_build_shared=no
10928
10929variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10930if test "$GCC" = yes; then
10931  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10932fi
10933
10934if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10935  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10936fi
10937if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10938  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10939fi
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11033$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11034hardcode_action=
11035if test -n "$hardcode_libdir_flag_spec" ||
11036   test -n "$runpath_var" ||
11037   test "X$hardcode_automatic" = "Xyes" ; then
11038
11039  # We can hardcode non-existent directories.
11040  if test "$hardcode_direct" != no &&
11041     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11042     # have to relink, otherwise we might link with an installed library
11043     # when we should be linking with a yet-to-be-installed one
11044     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11045     test "$hardcode_minus_L" != no; then
11046    # Linking always hardcodes the temporary library directory.
11047    hardcode_action=relink
11048  else
11049    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11050    hardcode_action=immediate
11051  fi
11052else
11053  # We cannot hardcode anything, or else we can only hardcode existing
11054  # directories.
11055  hardcode_action=unsupported
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11058$as_echo "$hardcode_action" >&6; }
11059
11060if test "$hardcode_action" = relink ||
11061   test "$inherit_rpath" = yes; then
11062  # Fast installation is not supported
11063  enable_fast_install=no
11064elif test "$shlibpath_overrides_runpath" = yes ||
11065     test "$enable_shared" = no; then
11066  # Fast installation is not necessary
11067  enable_fast_install=needless
11068fi
11069
11070
11071
11072
11073
11074
11075  if test "x$enable_dlopen" != xyes; then
11076  enable_dlopen=unknown
11077  enable_dlopen_self=unknown
11078  enable_dlopen_self_static=unknown
11079else
11080  lt_cv_dlopen=no
11081  lt_cv_dlopen_libs=
11082
11083  case $host_os in
11084  beos*)
11085    lt_cv_dlopen="load_add_on"
11086    lt_cv_dlopen_libs=
11087    lt_cv_dlopen_self=yes
11088    ;;
11089
11090  mingw* | pw32* | cegcc*)
11091    lt_cv_dlopen="LoadLibrary"
11092    lt_cv_dlopen_libs=
11093    ;;
11094
11095  cygwin*)
11096    lt_cv_dlopen="dlopen"
11097    lt_cv_dlopen_libs=
11098    ;;
11099
11100  darwin*)
11101  # if libdl is installed we need to link against it
11102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11103$as_echo_n "checking for dlopen in -ldl... " >&6; }
11104if ${ac_cv_lib_dl_dlopen+:} false; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  ac_check_lib_save_LIBS=$LIBS
11108LIBS="-ldl  $LIBS"
11109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h.  */
11111
11112/* Override any GCC internal prototype to avoid an error.
11113   Use char because int might match the return type of a GCC
11114   builtin and then its argument prototype would still apply.  */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118char dlopen ();
11119int
11120main ()
11121{
11122return dlopen ();
11123  ;
11124  return 0;
11125}
11126_ACEOF
11127if ac_fn_c_try_link "$LINENO"; then :
11128  ac_cv_lib_dl_dlopen=yes
11129else
11130  ac_cv_lib_dl_dlopen=no
11131fi
11132rm -f core conftest.err conftest.$ac_objext \
11133    conftest$ac_exeext conftest.$ac_ext
11134LIBS=$ac_check_lib_save_LIBS
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11137$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11138if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11139  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11140else
11141
11142    lt_cv_dlopen="dyld"
11143    lt_cv_dlopen_libs=
11144    lt_cv_dlopen_self=yes
11145
11146fi
11147
11148    ;;
11149
11150  *)
11151    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11152if test "x$ac_cv_func_shl_load" = xyes; then :
11153  lt_cv_dlopen="shl_load"
11154else
11155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11156$as_echo_n "checking for shl_load in -ldld... " >&6; }
11157if ${ac_cv_lib_dld_shl_load+:} false; then :
11158  $as_echo_n "(cached) " >&6
11159else
11160  ac_check_lib_save_LIBS=$LIBS
11161LIBS="-ldld  $LIBS"
11162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163/* end confdefs.h.  */
11164
11165/* Override any GCC internal prototype to avoid an error.
11166   Use char because int might match the return type of a GCC
11167   builtin and then its argument prototype would still apply.  */
11168#ifdef __cplusplus
11169extern "C"
11170#endif
11171char shl_load ();
11172int
11173main ()
11174{
11175return shl_load ();
11176  ;
11177  return 0;
11178}
11179_ACEOF
11180if ac_fn_c_try_link "$LINENO"; then :
11181  ac_cv_lib_dld_shl_load=yes
11182else
11183  ac_cv_lib_dld_shl_load=no
11184fi
11185rm -f core conftest.err conftest.$ac_objext \
11186    conftest$ac_exeext conftest.$ac_ext
11187LIBS=$ac_check_lib_save_LIBS
11188fi
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11190$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11191if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11192  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11193else
11194  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11195if test "x$ac_cv_func_dlopen" = xyes; then :
11196  lt_cv_dlopen="dlopen"
11197else
11198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11199$as_echo_n "checking for dlopen in -ldl... " >&6; }
11200if ${ac_cv_lib_dl_dlopen+:} false; then :
11201  $as_echo_n "(cached) " >&6
11202else
11203  ac_check_lib_save_LIBS=$LIBS
11204LIBS="-ldl  $LIBS"
11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206/* end confdefs.h.  */
11207
11208/* Override any GCC internal prototype to avoid an error.
11209   Use char because int might match the return type of a GCC
11210   builtin and then its argument prototype would still apply.  */
11211#ifdef __cplusplus
11212extern "C"
11213#endif
11214char dlopen ();
11215int
11216main ()
11217{
11218return dlopen ();
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_link "$LINENO"; then :
11224  ac_cv_lib_dl_dlopen=yes
11225else
11226  ac_cv_lib_dl_dlopen=no
11227fi
11228rm -f core conftest.err conftest.$ac_objext \
11229    conftest$ac_exeext conftest.$ac_ext
11230LIBS=$ac_check_lib_save_LIBS
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11233$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11234if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11235  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11236else
11237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11238$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11239if ${ac_cv_lib_svld_dlopen+:} false; then :
11240  $as_echo_n "(cached) " >&6
11241else
11242  ac_check_lib_save_LIBS=$LIBS
11243LIBS="-lsvld  $LIBS"
11244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h.  */
11246
11247/* Override any GCC internal prototype to avoid an error.
11248   Use char because int might match the return type of a GCC
11249   builtin and then its argument prototype would still apply.  */
11250#ifdef __cplusplus
11251extern "C"
11252#endif
11253char dlopen ();
11254int
11255main ()
11256{
11257return dlopen ();
11258  ;
11259  return 0;
11260}
11261_ACEOF
11262if ac_fn_c_try_link "$LINENO"; then :
11263  ac_cv_lib_svld_dlopen=yes
11264else
11265  ac_cv_lib_svld_dlopen=no
11266fi
11267rm -f core conftest.err conftest.$ac_objext \
11268    conftest$ac_exeext conftest.$ac_ext
11269LIBS=$ac_check_lib_save_LIBS
11270fi
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11272$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11273if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11275else
11276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11277$as_echo_n "checking for dld_link in -ldld... " >&6; }
11278if ${ac_cv_lib_dld_dld_link+:} false; then :
11279  $as_echo_n "(cached) " >&6
11280else
11281  ac_check_lib_save_LIBS=$LIBS
11282LIBS="-ldld  $LIBS"
11283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h.  */
11285
11286/* Override any GCC internal prototype to avoid an error.
11287   Use char because int might match the return type of a GCC
11288   builtin and then its argument prototype would still apply.  */
11289#ifdef __cplusplus
11290extern "C"
11291#endif
11292char dld_link ();
11293int
11294main ()
11295{
11296return dld_link ();
11297  ;
11298  return 0;
11299}
11300_ACEOF
11301if ac_fn_c_try_link "$LINENO"; then :
11302  ac_cv_lib_dld_dld_link=yes
11303else
11304  ac_cv_lib_dld_dld_link=no
11305fi
11306rm -f core conftest.err conftest.$ac_objext \
11307    conftest$ac_exeext conftest.$ac_ext
11308LIBS=$ac_check_lib_save_LIBS
11309fi
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11311$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11312if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11313  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11314fi
11315
11316
11317fi
11318
11319
11320fi
11321
11322
11323fi
11324
11325
11326fi
11327
11328
11329fi
11330
11331    ;;
11332  esac
11333
11334  if test "x$lt_cv_dlopen" != xno; then
11335    enable_dlopen=yes
11336  else
11337    enable_dlopen=no
11338  fi
11339
11340  case $lt_cv_dlopen in
11341  dlopen)
11342    save_CPPFLAGS="$CPPFLAGS"
11343    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11344
11345    save_LDFLAGS="$LDFLAGS"
11346    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11347
11348    save_LIBS="$LIBS"
11349    LIBS="$lt_cv_dlopen_libs $LIBS"
11350
11351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11352$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11353if ${lt_cv_dlopen_self+:} false; then :
11354  $as_echo_n "(cached) " >&6
11355else
11356  	  if test "$cross_compiling" = yes; then :
11357  lt_cv_dlopen_self=cross
11358else
11359  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11360  lt_status=$lt_dlunknown
11361  cat > conftest.$ac_ext <<_LT_EOF
11362#line $LINENO "configure"
11363#include "confdefs.h"
11364
11365#if HAVE_DLFCN_H
11366#include <dlfcn.h>
11367#endif
11368
11369#include <stdio.h>
11370
11371#ifdef RTLD_GLOBAL
11372#  define LT_DLGLOBAL		RTLD_GLOBAL
11373#else
11374#  ifdef DL_GLOBAL
11375#    define LT_DLGLOBAL		DL_GLOBAL
11376#  else
11377#    define LT_DLGLOBAL		0
11378#  endif
11379#endif
11380
11381/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11382   find out it does not work in some platform. */
11383#ifndef LT_DLLAZY_OR_NOW
11384#  ifdef RTLD_LAZY
11385#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11386#  else
11387#    ifdef DL_LAZY
11388#      define LT_DLLAZY_OR_NOW		DL_LAZY
11389#    else
11390#      ifdef RTLD_NOW
11391#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11392#      else
11393#        ifdef DL_NOW
11394#          define LT_DLLAZY_OR_NOW	DL_NOW
11395#        else
11396#          define LT_DLLAZY_OR_NOW	0
11397#        endif
11398#      endif
11399#    endif
11400#  endif
11401#endif
11402
11403/* When -fvisbility=hidden is used, assume the code has been annotated
11404   correspondingly for the symbols needed.  */
11405#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11406int fnord () __attribute__((visibility("default")));
11407#endif
11408
11409int fnord () { return 42; }
11410int main ()
11411{
11412  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11413  int status = $lt_dlunknown;
11414
11415  if (self)
11416    {
11417      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11418      else
11419        {
11420	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11421          else puts (dlerror ());
11422	}
11423      /* dlclose (self); */
11424    }
11425  else
11426    puts (dlerror ());
11427
11428  return status;
11429}
11430_LT_EOF
11431  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11432  (eval $ac_link) 2>&5
11433  ac_status=$?
11434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11435  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11436    (./conftest; exit; ) >&5 2>/dev/null
11437    lt_status=$?
11438    case x$lt_status in
11439      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11440      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11441      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11442    esac
11443  else :
11444    # compilation failed
11445    lt_cv_dlopen_self=no
11446  fi
11447fi
11448rm -fr conftest*
11449
11450
11451fi
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11453$as_echo "$lt_cv_dlopen_self" >&6; }
11454
11455    if test "x$lt_cv_dlopen_self" = xyes; then
11456      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11457      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11458$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11459if ${lt_cv_dlopen_self_static+:} false; then :
11460  $as_echo_n "(cached) " >&6
11461else
11462  	  if test "$cross_compiling" = yes; then :
11463  lt_cv_dlopen_self_static=cross
11464else
11465  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11466  lt_status=$lt_dlunknown
11467  cat > conftest.$ac_ext <<_LT_EOF
11468#line $LINENO "configure"
11469#include "confdefs.h"
11470
11471#if HAVE_DLFCN_H
11472#include <dlfcn.h>
11473#endif
11474
11475#include <stdio.h>
11476
11477#ifdef RTLD_GLOBAL
11478#  define LT_DLGLOBAL		RTLD_GLOBAL
11479#else
11480#  ifdef DL_GLOBAL
11481#    define LT_DLGLOBAL		DL_GLOBAL
11482#  else
11483#    define LT_DLGLOBAL		0
11484#  endif
11485#endif
11486
11487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11488   find out it does not work in some platform. */
11489#ifndef LT_DLLAZY_OR_NOW
11490#  ifdef RTLD_LAZY
11491#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11492#  else
11493#    ifdef DL_LAZY
11494#      define LT_DLLAZY_OR_NOW		DL_LAZY
11495#    else
11496#      ifdef RTLD_NOW
11497#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11498#      else
11499#        ifdef DL_NOW
11500#          define LT_DLLAZY_OR_NOW	DL_NOW
11501#        else
11502#          define LT_DLLAZY_OR_NOW	0
11503#        endif
11504#      endif
11505#    endif
11506#  endif
11507#endif
11508
11509/* When -fvisbility=hidden is used, assume the code has been annotated
11510   correspondingly for the symbols needed.  */
11511#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11512int fnord () __attribute__((visibility("default")));
11513#endif
11514
11515int fnord () { return 42; }
11516int main ()
11517{
11518  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11519  int status = $lt_dlunknown;
11520
11521  if (self)
11522    {
11523      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11524      else
11525        {
11526	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11527          else puts (dlerror ());
11528	}
11529      /* dlclose (self); */
11530    }
11531  else
11532    puts (dlerror ());
11533
11534  return status;
11535}
11536_LT_EOF
11537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11538  (eval $ac_link) 2>&5
11539  ac_status=$?
11540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11542    (./conftest; exit; ) >&5 2>/dev/null
11543    lt_status=$?
11544    case x$lt_status in
11545      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11546      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11547      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11548    esac
11549  else :
11550    # compilation failed
11551    lt_cv_dlopen_self_static=no
11552  fi
11553fi
11554rm -fr conftest*
11555
11556
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11559$as_echo "$lt_cv_dlopen_self_static" >&6; }
11560    fi
11561
11562    CPPFLAGS="$save_CPPFLAGS"
11563    LDFLAGS="$save_LDFLAGS"
11564    LIBS="$save_LIBS"
11565    ;;
11566  esac
11567
11568  case $lt_cv_dlopen_self in
11569  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11570  *) enable_dlopen_self=unknown ;;
11571  esac
11572
11573  case $lt_cv_dlopen_self_static in
11574  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11575  *) enable_dlopen_self_static=unknown ;;
11576  esac
11577fi
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595striplib=
11596old_striplib=
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11598$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11599if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11600  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11601  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603$as_echo "yes" >&6; }
11604else
11605# FIXME - insert some real tests, host_os isn't really good enough
11606  case $host_os in
11607  darwin*)
11608    if test -n "$STRIP" ; then
11609      striplib="$STRIP -x"
11610      old_striplib="$STRIP -S"
11611      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612$as_echo "yes" >&6; }
11613    else
11614      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
11616    fi
11617    ;;
11618  *)
11619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620$as_echo "no" >&6; }
11621    ;;
11622  esac
11623fi
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636  # Report which library types will actually be built
11637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11638$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11640$as_echo "$can_build_shared" >&6; }
11641
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11643$as_echo_n "checking whether to build shared libraries... " >&6; }
11644  test "$can_build_shared" = "no" && enable_shared=no
11645
11646  # On AIX, shared libraries and static libraries use the same namespace, and
11647  # are all built from PIC.
11648  case $host_os in
11649  aix3*)
11650    test "$enable_shared" = yes && enable_static=no
11651    if test -n "$RANLIB"; then
11652      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11653      postinstall_cmds='$RANLIB $lib'
11654    fi
11655    ;;
11656
11657  aix[4-9]*)
11658    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11659      test "$enable_shared" = yes && enable_static=no
11660    fi
11661    ;;
11662  esac
11663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11664$as_echo "$enable_shared" >&6; }
11665
11666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11667$as_echo_n "checking whether to build static libraries... " >&6; }
11668  # Make sure either enable_shared or enable_static is yes.
11669  test "$enable_shared" = yes || enable_static=yes
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11671$as_echo "$enable_static" >&6; }
11672
11673
11674
11675
11676fi
11677ac_ext=c
11678ac_cpp='$CPP $CPPFLAGS'
11679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11681ac_compiler_gnu=$ac_cv_c_compiler_gnu
11682
11683CC="$lt_save_CC"
11684
11685      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11686    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11687    (test "X$CXX" != "Xg++"))) ; then
11688  ac_ext=cpp
11689ac_cpp='$CXXCPP $CPPFLAGS'
11690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11694$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11695if test -z "$CXXCPP"; then
11696  if ${ac_cv_prog_CXXCPP+:} false; then :
11697  $as_echo_n "(cached) " >&6
11698else
11699      # Double quotes because CXXCPP needs to be expanded
11700    for CXXCPP in "$CXX -E" "/lib/cpp"
11701    do
11702      ac_preproc_ok=false
11703for ac_cxx_preproc_warn_flag in '' yes
11704do
11705  # Use a header file that comes with gcc, so configuring glibc
11706  # with a fresh cross-compiler works.
11707  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708  # <limits.h> exists even on freestanding compilers.
11709  # On the NeXT, cc -E runs the code through the compiler's parser,
11710  # not just through cpp. "Syntax error" is here to catch this case.
11711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712/* end confdefs.h.  */
11713#ifdef __STDC__
11714# include <limits.h>
11715#else
11716# include <assert.h>
11717#endif
11718		     Syntax error
11719_ACEOF
11720if ac_fn_cxx_try_cpp "$LINENO"; then :
11721
11722else
11723  # Broken: fails on valid input.
11724continue
11725fi
11726rm -f conftest.err conftest.i conftest.$ac_ext
11727
11728  # OK, works on sane cases.  Now check whether nonexistent headers
11729  # can be detected and how.
11730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731/* end confdefs.h.  */
11732#include <ac_nonexistent.h>
11733_ACEOF
11734if ac_fn_cxx_try_cpp "$LINENO"; then :
11735  # Broken: success on invalid input.
11736continue
11737else
11738  # Passes both tests.
11739ac_preproc_ok=:
11740break
11741fi
11742rm -f conftest.err conftest.i conftest.$ac_ext
11743
11744done
11745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11746rm -f conftest.i conftest.err conftest.$ac_ext
11747if $ac_preproc_ok; then :
11748  break
11749fi
11750
11751    done
11752    ac_cv_prog_CXXCPP=$CXXCPP
11753
11754fi
11755  CXXCPP=$ac_cv_prog_CXXCPP
11756else
11757  ac_cv_prog_CXXCPP=$CXXCPP
11758fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11760$as_echo "$CXXCPP" >&6; }
11761ac_preproc_ok=false
11762for ac_cxx_preproc_warn_flag in '' yes
11763do
11764  # Use a header file that comes with gcc, so configuring glibc
11765  # with a fresh cross-compiler works.
11766  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11767  # <limits.h> exists even on freestanding compilers.
11768  # On the NeXT, cc -E runs the code through the compiler's parser,
11769  # not just through cpp. "Syntax error" is here to catch this case.
11770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771/* end confdefs.h.  */
11772#ifdef __STDC__
11773# include <limits.h>
11774#else
11775# include <assert.h>
11776#endif
11777		     Syntax error
11778_ACEOF
11779if ac_fn_cxx_try_cpp "$LINENO"; then :
11780
11781else
11782  # Broken: fails on valid input.
11783continue
11784fi
11785rm -f conftest.err conftest.i conftest.$ac_ext
11786
11787  # OK, works on sane cases.  Now check whether nonexistent headers
11788  # can be detected and how.
11789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790/* end confdefs.h.  */
11791#include <ac_nonexistent.h>
11792_ACEOF
11793if ac_fn_cxx_try_cpp "$LINENO"; then :
11794  # Broken: success on invalid input.
11795continue
11796else
11797  # Passes both tests.
11798ac_preproc_ok=:
11799break
11800fi
11801rm -f conftest.err conftest.i conftest.$ac_ext
11802
11803done
11804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11805rm -f conftest.i conftest.err conftest.$ac_ext
11806if $ac_preproc_ok; then :
11807
11808else
11809  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11811as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11812See \`config.log' for more details" "$LINENO" 5; }
11813fi
11814
11815ac_ext=c
11816ac_cpp='$CPP $CPPFLAGS'
11817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821else
11822  _lt_caught_CXX_error=yes
11823fi
11824
11825ac_ext=cpp
11826ac_cpp='$CXXCPP $CPPFLAGS'
11827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11830
11831archive_cmds_need_lc_CXX=no
11832allow_undefined_flag_CXX=
11833always_export_symbols_CXX=no
11834archive_expsym_cmds_CXX=
11835compiler_needs_object_CXX=no
11836export_dynamic_flag_spec_CXX=
11837hardcode_direct_CXX=no
11838hardcode_direct_absolute_CXX=no
11839hardcode_libdir_flag_spec_CXX=
11840hardcode_libdir_separator_CXX=
11841hardcode_minus_L_CXX=no
11842hardcode_shlibpath_var_CXX=unsupported
11843hardcode_automatic_CXX=no
11844inherit_rpath_CXX=no
11845module_cmds_CXX=
11846module_expsym_cmds_CXX=
11847link_all_deplibs_CXX=unknown
11848old_archive_cmds_CXX=$old_archive_cmds
11849reload_flag_CXX=$reload_flag
11850reload_cmds_CXX=$reload_cmds
11851no_undefined_flag_CXX=
11852whole_archive_flag_spec_CXX=
11853enable_shared_with_static_runtimes_CXX=no
11854
11855# Source file extension for C++ test sources.
11856ac_ext=cpp
11857
11858# Object file extension for compiled C++ test sources.
11859objext=o
11860objext_CXX=$objext
11861
11862# No sense in running all these tests if we already determined that
11863# the CXX compiler isn't working.  Some variables (like enable_shared)
11864# are currently assumed to apply to all compilers on this platform,
11865# and will be corrupted by setting them based on a non-working compiler.
11866if test "$_lt_caught_CXX_error" != yes; then
11867  # Code to be used in simple compile tests
11868  lt_simple_compile_test_code="int some_variable = 0;"
11869
11870  # Code to be used in simple link tests
11871  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11872
11873  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11874
11875
11876
11877
11878
11879
11880# If no C compiler was specified, use CC.
11881LTCC=${LTCC-"$CC"}
11882
11883# If no C compiler flags were specified, use CFLAGS.
11884LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11885
11886# Allow CC to be a program name with arguments.
11887compiler=$CC
11888
11889
11890  # save warnings/boilerplate of simple test code
11891  ac_outfile=conftest.$ac_objext
11892echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11893eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11894_lt_compiler_boilerplate=`cat conftest.err`
11895$RM conftest*
11896
11897  ac_outfile=conftest.$ac_objext
11898echo "$lt_simple_link_test_code" >conftest.$ac_ext
11899eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11900_lt_linker_boilerplate=`cat conftest.err`
11901$RM -r conftest*
11902
11903
11904  # Allow CC to be a program name with arguments.
11905  lt_save_CC=$CC
11906  lt_save_CFLAGS=$CFLAGS
11907  lt_save_LD=$LD
11908  lt_save_GCC=$GCC
11909  GCC=$GXX
11910  lt_save_with_gnu_ld=$with_gnu_ld
11911  lt_save_path_LD=$lt_cv_path_LD
11912  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11913    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11914  else
11915    $as_unset lt_cv_prog_gnu_ld
11916  fi
11917  if test -n "${lt_cv_path_LDCXX+set}"; then
11918    lt_cv_path_LD=$lt_cv_path_LDCXX
11919  else
11920    $as_unset lt_cv_path_LD
11921  fi
11922  test -z "${LDCXX+set}" || LD=$LDCXX
11923  CC=${CXX-"c++"}
11924  CFLAGS=$CXXFLAGS
11925  compiler=$CC
11926  compiler_CXX=$CC
11927  for cc_temp in $compiler""; do
11928  case $cc_temp in
11929    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11930    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11931    \-*) ;;
11932    *) break;;
11933  esac
11934done
11935cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11936
11937
11938  if test -n "$compiler"; then
11939    # We don't want -fno-exception when compiling C++ code, so set the
11940    # no_builtin_flag separately
11941    if test "$GXX" = yes; then
11942      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11943    else
11944      lt_prog_compiler_no_builtin_flag_CXX=
11945    fi
11946
11947    if test "$GXX" = yes; then
11948      # Set up default GNU C++ configuration
11949
11950
11951
11952# Check whether --with-gnu-ld was given.
11953if test "${with_gnu_ld+set}" = set; then :
11954  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11955else
11956  with_gnu_ld=no
11957fi
11958
11959ac_prog=ld
11960if test "$GCC" = yes; then
11961  # Check if gcc -print-prog-name=ld gives a path.
11962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11963$as_echo_n "checking for ld used by $CC... " >&6; }
11964  case $host in
11965  *-*-mingw*)
11966    # gcc leaves a trailing carriage return which upsets mingw
11967    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11968  *)
11969    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11970  esac
11971  case $ac_prog in
11972    # Accept absolute paths.
11973    [\\/]* | ?:[\\/]*)
11974      re_direlt='/[^/][^/]*/\.\./'
11975      # Canonicalize the pathname of ld
11976      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11977      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11978	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11979      done
11980      test -z "$LD" && LD="$ac_prog"
11981      ;;
11982  "")
11983    # If it fails, then pretend we aren't using GCC.
11984    ac_prog=ld
11985    ;;
11986  *)
11987    # If it is relative, then search for the first ld in PATH.
11988    with_gnu_ld=unknown
11989    ;;
11990  esac
11991elif test "$with_gnu_ld" = yes; then
11992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11993$as_echo_n "checking for GNU ld... " >&6; }
11994else
11995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11996$as_echo_n "checking for non-GNU ld... " >&6; }
11997fi
11998if ${lt_cv_path_LD+:} false; then :
11999  $as_echo_n "(cached) " >&6
12000else
12001  if test -z "$LD"; then
12002  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12003  for ac_dir in $PATH; do
12004    IFS="$lt_save_ifs"
12005    test -z "$ac_dir" && ac_dir=.
12006    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12007      lt_cv_path_LD="$ac_dir/$ac_prog"
12008      # Check to see if the program is GNU ld.  I'd rather use --version,
12009      # but apparently some variants of GNU ld only accept -v.
12010      # Break only if it was the GNU/non-GNU ld that we prefer.
12011      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12012      *GNU* | *'with BFD'*)
12013	test "$with_gnu_ld" != no && break
12014	;;
12015      *)
12016	test "$with_gnu_ld" != yes && break
12017	;;
12018      esac
12019    fi
12020  done
12021  IFS="$lt_save_ifs"
12022else
12023  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12024fi
12025fi
12026
12027LD="$lt_cv_path_LD"
12028if test -n "$LD"; then
12029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12030$as_echo "$LD" >&6; }
12031else
12032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033$as_echo "no" >&6; }
12034fi
12035test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12037$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12038if ${lt_cv_prog_gnu_ld+:} false; then :
12039  $as_echo_n "(cached) " >&6
12040else
12041  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12042case `$LD -v 2>&1 </dev/null` in
12043*GNU* | *'with BFD'*)
12044  lt_cv_prog_gnu_ld=yes
12045  ;;
12046*)
12047  lt_cv_prog_gnu_ld=no
12048  ;;
12049esac
12050fi
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12052$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12053with_gnu_ld=$lt_cv_prog_gnu_ld
12054
12055
12056
12057
12058
12059
12060
12061      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12062      # archiving commands below assume that GNU ld is being used.
12063      if test "$with_gnu_ld" = yes; then
12064        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12065        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'
12066
12067        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12068        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12069
12070        # If archive_cmds runs LD, not CC, wlarc should be empty
12071        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12072        #     investigate it a little bit more. (MM)
12073        wlarc='${wl}'
12074
12075        # ancient GNU ld didn't support --whole-archive et. al.
12076        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12077	  $GREP 'no-whole-archive' > /dev/null; then
12078          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12079        else
12080          whole_archive_flag_spec_CXX=
12081        fi
12082      else
12083        with_gnu_ld=no
12084        wlarc=
12085
12086        # A generic and very simple default shared library creation
12087        # command for GNU C++ for the case where it uses the native
12088        # linker, instead of GNU ld.  If possible, this setting should
12089        # overridden to take advantage of the native linker features on
12090        # the platform it is being used on.
12091        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12092      fi
12093
12094      # Commands to make compiler produce verbose output that lists
12095      # what "hidden" libraries, object files and flags are used when
12096      # linking a shared library.
12097      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12098
12099    else
12100      GXX=no
12101      with_gnu_ld=no
12102      wlarc=
12103    fi
12104
12105    # PORTME: fill in a description of your system's C++ link characteristics
12106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12107$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12108    ld_shlibs_CXX=yes
12109    case $host_os in
12110      aix3*)
12111        # FIXME: insert proper C++ library support
12112        ld_shlibs_CXX=no
12113        ;;
12114      aix[4-9]*)
12115        if test "$host_cpu" = ia64; then
12116          # On IA64, the linker does run time linking by default, so we don't
12117          # have to do anything special.
12118          aix_use_runtimelinking=no
12119          exp_sym_flag='-Bexport'
12120          no_entry_flag=""
12121        else
12122          aix_use_runtimelinking=no
12123
12124          # Test if we are trying to use run time linking or normal
12125          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12126          # need to do runtime linking.
12127          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12128	    for ld_flag in $LDFLAGS; do
12129	      case $ld_flag in
12130	      *-brtl*)
12131	        aix_use_runtimelinking=yes
12132	        break
12133	        ;;
12134	      esac
12135	    done
12136	    ;;
12137          esac
12138
12139          exp_sym_flag='-bexport'
12140          no_entry_flag='-bnoentry'
12141        fi
12142
12143        # When large executables or shared objects are built, AIX ld can
12144        # have problems creating the table of contents.  If linking a library
12145        # or program results in "error TOC overflow" add -mminimal-toc to
12146        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12147        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12148
12149        archive_cmds_CXX=''
12150        hardcode_direct_CXX=yes
12151        hardcode_direct_absolute_CXX=yes
12152        hardcode_libdir_separator_CXX=':'
12153        link_all_deplibs_CXX=yes
12154        file_list_spec_CXX='${wl}-f,'
12155
12156        if test "$GXX" = yes; then
12157          case $host_os in aix4.[012]|aix4.[012].*)
12158          # We only want to do this on AIX 4.2 and lower, the check
12159          # below for broken collect2 doesn't work under 4.3+
12160	  collect2name=`${CC} -print-prog-name=collect2`
12161	  if test -f "$collect2name" &&
12162	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12163	  then
12164	    # We have reworked collect2
12165	    :
12166	  else
12167	    # We have old collect2
12168	    hardcode_direct_CXX=unsupported
12169	    # It fails to find uninstalled libraries when the uninstalled
12170	    # path is not listed in the libpath.  Setting hardcode_minus_L
12171	    # to unsupported forces relinking
12172	    hardcode_minus_L_CXX=yes
12173	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12174	    hardcode_libdir_separator_CXX=
12175	  fi
12176          esac
12177          shared_flag='-shared'
12178	  if test "$aix_use_runtimelinking" = yes; then
12179	    shared_flag="$shared_flag "'${wl}-G'
12180	  fi
12181        else
12182          # not using gcc
12183          if test "$host_cpu" = ia64; then
12184	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12185	  # chokes on -Wl,-G. The following line is correct:
12186	  shared_flag='-G'
12187          else
12188	    if test "$aix_use_runtimelinking" = yes; then
12189	      shared_flag='${wl}-G'
12190	    else
12191	      shared_flag='${wl}-bM:SRE'
12192	    fi
12193          fi
12194        fi
12195
12196        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12197        # It seems that -bexpall does not export symbols beginning with
12198        # underscore (_), so it is better to generate a list of symbols to
12199	# export.
12200        always_export_symbols_CXX=yes
12201        if test "$aix_use_runtimelinking" = yes; then
12202          # Warning - without using the other runtime loading flags (-brtl),
12203          # -berok will link without error, but may produce a broken library.
12204          allow_undefined_flag_CXX='-berok'
12205          # Determine the default libpath from the value encoded in an empty
12206          # executable.
12207          if test "${lt_cv_aix_libpath+set}" = set; then
12208  aix_libpath=$lt_cv_aix_libpath
12209else
12210  if ${lt_cv_aix_libpath__CXX+:} false; then :
12211  $as_echo_n "(cached) " >&6
12212else
12213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214/* end confdefs.h.  */
12215
12216int
12217main ()
12218{
12219
12220  ;
12221  return 0;
12222}
12223_ACEOF
12224if ac_fn_cxx_try_link "$LINENO"; then :
12225
12226  lt_aix_libpath_sed='
12227      /Import File Strings/,/^$/ {
12228	  /^0/ {
12229	      s/^0  *\([^ ]*\) *$/\1/
12230	      p
12231	  }
12232      }'
12233  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12234  # Check for a 64-bit object if we didn't find anything.
12235  if test -z "$lt_cv_aix_libpath__CXX"; then
12236    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12237  fi
12238fi
12239rm -f core conftest.err conftest.$ac_objext \
12240    conftest$ac_exeext conftest.$ac_ext
12241  if test -z "$lt_cv_aix_libpath__CXX"; then
12242    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12243  fi
12244
12245fi
12246
12247  aix_libpath=$lt_cv_aix_libpath__CXX
12248fi
12249
12250          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12251
12252          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"
12253        else
12254          if test "$host_cpu" = ia64; then
12255	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12256	    allow_undefined_flag_CXX="-z nodefs"
12257	    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"
12258          else
12259	    # Determine the default libpath from the value encoded in an
12260	    # empty executable.
12261	    if test "${lt_cv_aix_libpath+set}" = set; then
12262  aix_libpath=$lt_cv_aix_libpath
12263else
12264  if ${lt_cv_aix_libpath__CXX+:} false; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h.  */
12269
12270int
12271main ()
12272{
12273
12274  ;
12275  return 0;
12276}
12277_ACEOF
12278if ac_fn_cxx_try_link "$LINENO"; then :
12279
12280  lt_aix_libpath_sed='
12281      /Import File Strings/,/^$/ {
12282	  /^0/ {
12283	      s/^0  *\([^ ]*\) *$/\1/
12284	      p
12285	  }
12286      }'
12287  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12288  # Check for a 64-bit object if we didn't find anything.
12289  if test -z "$lt_cv_aix_libpath__CXX"; then
12290    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12291  fi
12292fi
12293rm -f core conftest.err conftest.$ac_objext \
12294    conftest$ac_exeext conftest.$ac_ext
12295  if test -z "$lt_cv_aix_libpath__CXX"; then
12296    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12297  fi
12298
12299fi
12300
12301  aix_libpath=$lt_cv_aix_libpath__CXX
12302fi
12303
12304	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12305	    # Warning - without using the other run time loading flags,
12306	    # -berok will link without error, but may produce a broken library.
12307	    no_undefined_flag_CXX=' ${wl}-bernotok'
12308	    allow_undefined_flag_CXX=' ${wl}-berok'
12309	    if test "$with_gnu_ld" = yes; then
12310	      # We only use this code for GNU lds that support --whole-archive.
12311	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12312	    else
12313	      # Exported symbols can be pulled into shared objects from archives
12314	      whole_archive_flag_spec_CXX='$convenience'
12315	    fi
12316	    archive_cmds_need_lc_CXX=yes
12317	    # This is similar to how AIX traditionally builds its shared
12318	    # libraries.
12319	    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'
12320          fi
12321        fi
12322        ;;
12323
12324      beos*)
12325	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12326	  allow_undefined_flag_CXX=unsupported
12327	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12328	  # support --undefined.  This deserves some investigation.  FIXME
12329	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330	else
12331	  ld_shlibs_CXX=no
12332	fi
12333	;;
12334
12335      chorus*)
12336        case $cc_basename in
12337          *)
12338	  # FIXME: insert proper C++ library support
12339	  ld_shlibs_CXX=no
12340	  ;;
12341        esac
12342        ;;
12343
12344      cygwin* | mingw* | pw32* | cegcc*)
12345	case $GXX,$cc_basename in
12346	,cl* | no,cl*)
12347	  # Native MSVC
12348	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12349	  # no search path for DLLs.
12350	  hardcode_libdir_flag_spec_CXX=' '
12351	  allow_undefined_flag_CXX=unsupported
12352	  always_export_symbols_CXX=yes
12353	  file_list_spec_CXX='@'
12354	  # Tell ltmain to make .lib files, not .a files.
12355	  libext=lib
12356	  # Tell ltmain to make .dll files, not .so files.
12357	  shrext_cmds=".dll"
12358	  # FIXME: Setting linknames here is a bad hack.
12359	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12360	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12361	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12362	    else
12363	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12364	    fi~
12365	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12366	    linknames='
12367	  # The linker will not automatically build a static lib if we build a DLL.
12368	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12369	  enable_shared_with_static_runtimes_CXX=yes
12370	  # Don't use ranlib
12371	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12372	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12373	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12374	    case $lt_outputfile in
12375	      *.exe|*.EXE) ;;
12376	      *)
12377		lt_outputfile="$lt_outputfile.exe"
12378		lt_tool_outputfile="$lt_tool_outputfile.exe"
12379		;;
12380	    esac~
12381	    func_to_tool_file "$lt_outputfile"~
12382	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12383	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12384	      $RM "$lt_outputfile.manifest";
12385	    fi'
12386	  ;;
12387	*)
12388	  # g++
12389	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12390	  # as there is no search path for DLLs.
12391	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12392	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12393	  allow_undefined_flag_CXX=unsupported
12394	  always_export_symbols_CXX=no
12395	  enable_shared_with_static_runtimes_CXX=yes
12396
12397	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12398	    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'
12399	    # If the export-symbols file already is a .def file (1st line
12400	    # is EXPORTS), use it as is; otherwise, prepend...
12401	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12402	      cp $export_symbols $output_objdir/$soname.def;
12403	    else
12404	      echo EXPORTS > $output_objdir/$soname.def;
12405	      cat $export_symbols >> $output_objdir/$soname.def;
12406	    fi~
12407	    $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'
12408	  else
12409	    ld_shlibs_CXX=no
12410	  fi
12411	  ;;
12412	esac
12413	;;
12414      darwin* | rhapsody*)
12415
12416
12417  archive_cmds_need_lc_CXX=no
12418  hardcode_direct_CXX=no
12419  hardcode_automatic_CXX=yes
12420  hardcode_shlibpath_var_CXX=unsupported
12421  if test "$lt_cv_ld_force_load" = "yes"; then
12422    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\"`'
12423
12424  else
12425    whole_archive_flag_spec_CXX=''
12426  fi
12427  link_all_deplibs_CXX=yes
12428  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12429  case $cc_basename in
12430     ifort*) _lt_dar_can_shared=yes ;;
12431     *) _lt_dar_can_shared=$GCC ;;
12432  esac
12433  if test "$_lt_dar_can_shared" = "yes"; then
12434    output_verbose_link_cmd=func_echo_all
12435    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}"
12436    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12437    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}"
12438    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}"
12439       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12440      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}"
12441      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}"
12442    fi
12443
12444  else
12445  ld_shlibs_CXX=no
12446  fi
12447
12448	;;
12449
12450      dgux*)
12451        case $cc_basename in
12452          ec++*)
12453	    # FIXME: insert proper C++ library support
12454	    ld_shlibs_CXX=no
12455	    ;;
12456          ghcx*)
12457	    # Green Hills C++ Compiler
12458	    # FIXME: insert proper C++ library support
12459	    ld_shlibs_CXX=no
12460	    ;;
12461          *)
12462	    # FIXME: insert proper C++ library support
12463	    ld_shlibs_CXX=no
12464	    ;;
12465        esac
12466        ;;
12467
12468      freebsd2.*)
12469        # C++ shared libraries reported to be fairly broken before
12470	# switch to ELF
12471        ld_shlibs_CXX=no
12472        ;;
12473
12474      freebsd-elf*)
12475        archive_cmds_need_lc_CXX=no
12476        ;;
12477
12478      freebsd* | dragonfly*)
12479        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12480        # conventions
12481        ld_shlibs_CXX=yes
12482        ;;
12483
12484      haiku*)
12485        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12486        link_all_deplibs_CXX=yes
12487        ;;
12488
12489      hpux9*)
12490        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12491        hardcode_libdir_separator_CXX=:
12492        export_dynamic_flag_spec_CXX='${wl}-E'
12493        hardcode_direct_CXX=yes
12494        hardcode_minus_L_CXX=yes # Not in the search PATH,
12495				             # but as the default
12496				             # location of the library.
12497
12498        case $cc_basename in
12499          CC*)
12500            # FIXME: insert proper C++ library support
12501            ld_shlibs_CXX=no
12502            ;;
12503          aCC*)
12504            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'
12505            # Commands to make compiler produce verbose output that lists
12506            # what "hidden" libraries, object files and flags are used when
12507            # linking a shared library.
12508            #
12509            # There doesn't appear to be a way to prevent this compiler from
12510            # explicitly linking system object files so we need to strip them
12511            # from the output so that they don't get included in the library
12512            # dependencies.
12513            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"'
12514            ;;
12515          *)
12516            if test "$GXX" = yes; then
12517              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'
12518            else
12519              # FIXME: insert proper C++ library support
12520              ld_shlibs_CXX=no
12521            fi
12522            ;;
12523        esac
12524        ;;
12525
12526      hpux10*|hpux11*)
12527        if test $with_gnu_ld = no; then
12528	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12529	  hardcode_libdir_separator_CXX=:
12530
12531          case $host_cpu in
12532            hppa*64*|ia64*)
12533              ;;
12534            *)
12535	      export_dynamic_flag_spec_CXX='${wl}-E'
12536              ;;
12537          esac
12538        fi
12539        case $host_cpu in
12540          hppa*64*|ia64*)
12541            hardcode_direct_CXX=no
12542            hardcode_shlibpath_var_CXX=no
12543            ;;
12544          *)
12545            hardcode_direct_CXX=yes
12546            hardcode_direct_absolute_CXX=yes
12547            hardcode_minus_L_CXX=yes # Not in the search PATH,
12548					         # but as the default
12549					         # location of the library.
12550            ;;
12551        esac
12552
12553        case $cc_basename in
12554          CC*)
12555	    # FIXME: insert proper C++ library support
12556	    ld_shlibs_CXX=no
12557	    ;;
12558          aCC*)
12559	    case $host_cpu in
12560	      hppa*64*)
12561	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562	        ;;
12563	      ia64*)
12564	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565	        ;;
12566	      *)
12567	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12568	        ;;
12569	    esac
12570	    # Commands to make compiler produce verbose output that lists
12571	    # what "hidden" libraries, object files and flags are used when
12572	    # linking a shared library.
12573	    #
12574	    # There doesn't appear to be a way to prevent this compiler from
12575	    # explicitly linking system object files so we need to strip them
12576	    # from the output so that they don't get included in the library
12577	    # dependencies.
12578	    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"'
12579	    ;;
12580          *)
12581	    if test "$GXX" = yes; then
12582	      if test $with_gnu_ld = no; then
12583	        case $host_cpu in
12584	          hppa*64*)
12585	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12586	            ;;
12587	          ia64*)
12588	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589	            ;;
12590	          *)
12591	            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'
12592	            ;;
12593	        esac
12594	      fi
12595	    else
12596	      # FIXME: insert proper C++ library support
12597	      ld_shlibs_CXX=no
12598	    fi
12599	    ;;
12600        esac
12601        ;;
12602
12603      interix[3-9]*)
12604	hardcode_direct_CXX=no
12605	hardcode_shlibpath_var_CXX=no
12606	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12607	export_dynamic_flag_spec_CXX='${wl}-E'
12608	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12609	# Instead, shared libraries are loaded at an image base (0x10000000 by
12610	# default) and relocated if they conflict, which is a slow very memory
12611	# consuming and fragmenting process.  To avoid this, we pick a random,
12612	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12613	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12614	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'
12615	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'
12616	;;
12617      irix5* | irix6*)
12618        case $cc_basename in
12619          CC*)
12620	    # SGI C++
12621	    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'
12622
12623	    # Archives containing C++ object files must be created using
12624	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12625	    # necessary to make sure instantiated templates are included
12626	    # in the archive.
12627	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12628	    ;;
12629          *)
12630	    if test "$GXX" = yes; then
12631	      if test "$with_gnu_ld" = no; then
12632	        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'
12633	      else
12634	        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'
12635	      fi
12636	    fi
12637	    link_all_deplibs_CXX=yes
12638	    ;;
12639        esac
12640        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12641        hardcode_libdir_separator_CXX=:
12642        inherit_rpath_CXX=yes
12643        ;;
12644
12645      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12646        case $cc_basename in
12647          KCC*)
12648	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12649
12650	    # KCC will only create a shared library if the output file
12651	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12652	    # to its proper name (with version) after linking.
12653	    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'
12654	    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'
12655	    # Commands to make compiler produce verbose output that lists
12656	    # what "hidden" libraries, object files and flags are used when
12657	    # linking a shared library.
12658	    #
12659	    # There doesn't appear to be a way to prevent this compiler from
12660	    # explicitly linking system object files so we need to strip them
12661	    # from the output so that they don't get included in the library
12662	    # dependencies.
12663	    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"'
12664
12665	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12666	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12667
12668	    # Archives containing C++ object files must be created using
12669	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12670	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12671	    ;;
12672	  icpc* | ecpc* )
12673	    # Intel C++
12674	    with_gnu_ld=yes
12675	    # version 8.0 and above of icpc choke on multiply defined symbols
12676	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12677	    # earlier do not add the objects themselves.
12678	    case `$CC -V 2>&1` in
12679	      *"Version 7."*)
12680	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12681		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'
12682		;;
12683	      *)  # Version 8.0 or newer
12684	        tmp_idyn=
12685	        case $host_cpu in
12686		  ia64*) tmp_idyn=' -i_dynamic';;
12687		esac
12688	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12689		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'
12690		;;
12691	    esac
12692	    archive_cmds_need_lc_CXX=no
12693	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12694	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12695	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12696	    ;;
12697          pgCC* | pgcpp*)
12698            # Portland Group C++ compiler
12699	    case `$CC -V` in
12700	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12701	      prelink_cmds_CXX='tpldir=Template.dir~
12702		rm -rf $tpldir~
12703		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12704		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12705	      old_archive_cmds_CXX='tpldir=Template.dir~
12706		rm -rf $tpldir~
12707		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12708		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12709		$RANLIB $oldlib'
12710	      archive_cmds_CXX='tpldir=Template.dir~
12711		rm -rf $tpldir~
12712		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12713		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12714	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12715		rm -rf $tpldir~
12716		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12717		$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'
12718	      ;;
12719	    *) # Version 6 and above use weak symbols
12720	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12721	      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'
12722	      ;;
12723	    esac
12724
12725	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12726	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12727	    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'
12728            ;;
12729	  cxx*)
12730	    # Compaq C++
12731	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12732	    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'
12733
12734	    runpath_var=LD_RUN_PATH
12735	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12736	    hardcode_libdir_separator_CXX=:
12737
12738	    # Commands to make compiler produce verbose output that lists
12739	    # what "hidden" libraries, object files and flags are used when
12740	    # linking a shared library.
12741	    #
12742	    # There doesn't appear to be a way to prevent this compiler from
12743	    # explicitly linking system object files so we need to strip them
12744	    # from the output so that they don't get included in the library
12745	    # dependencies.
12746	    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'
12747	    ;;
12748	  xl* | mpixl* | bgxl*)
12749	    # IBM XL 8.0 on PPC, with GNU ld
12750	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12751	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12752	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753	    if test "x$supports_anon_versioning" = xyes; then
12754	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12755		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12756		echo "local: *; };" >> $output_objdir/$libname.ver~
12757		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12758	    fi
12759	    ;;
12760	  *)
12761	    case `$CC -V 2>&1 | sed 5q` in
12762	    *Sun\ C*)
12763	      # Sun C++ 5.9
12764	      no_undefined_flag_CXX=' -zdefs'
12765	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12766	      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'
12767	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12768	      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'
12769	      compiler_needs_object_CXX=yes
12770
12771	      # Not sure whether something based on
12772	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12773	      # would be better.
12774	      output_verbose_link_cmd='func_echo_all'
12775
12776	      # Archives containing C++ object files must be created using
12777	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12778	      # necessary to make sure instantiated templates are included
12779	      # in the archive.
12780	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12781	      ;;
12782	    esac
12783	    ;;
12784	esac
12785	;;
12786
12787      lynxos*)
12788        # FIXME: insert proper C++ library support
12789	ld_shlibs_CXX=no
12790	;;
12791
12792      m88k*)
12793        # FIXME: insert proper C++ library support
12794        ld_shlibs_CXX=no
12795	;;
12796
12797      mvs*)
12798        case $cc_basename in
12799          cxx*)
12800	    # FIXME: insert proper C++ library support
12801	    ld_shlibs_CXX=no
12802	    ;;
12803	  *)
12804	    # FIXME: insert proper C++ library support
12805	    ld_shlibs_CXX=no
12806	    ;;
12807	esac
12808	;;
12809
12810      netbsd*)
12811        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12812	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12813	  wlarc=
12814	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12815	  hardcode_direct_CXX=yes
12816	  hardcode_shlibpath_var_CXX=no
12817	fi
12818	# Workaround some broken pre-1.5 toolchains
12819	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12820	;;
12821
12822      *nto* | *qnx*)
12823        ld_shlibs_CXX=yes
12824	;;
12825
12826      openbsd2*)
12827        # C++ shared libraries are fairly broken
12828	ld_shlibs_CXX=no
12829	;;
12830
12831      openbsd*)
12832	if test -f /usr/libexec/ld.so; then
12833	  hardcode_direct_CXX=yes
12834	  hardcode_shlibpath_var_CXX=no
12835	  hardcode_direct_absolute_CXX=yes
12836	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12837	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12838	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12839	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12840	    export_dynamic_flag_spec_CXX='${wl}-E'
12841	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12842	  fi
12843	  output_verbose_link_cmd=func_echo_all
12844	else
12845	  ld_shlibs_CXX=no
12846	fi
12847	;;
12848
12849      osf3* | osf4* | osf5*)
12850        case $cc_basename in
12851          KCC*)
12852	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12853
12854	    # KCC will only create a shared library if the output file
12855	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12856	    # to its proper name (with version) after linking.
12857	    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'
12858
12859	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860	    hardcode_libdir_separator_CXX=:
12861
12862	    # Archives containing C++ object files must be created using
12863	    # the KAI C++ compiler.
12864	    case $host in
12865	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12866	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12867	    esac
12868	    ;;
12869          RCC*)
12870	    # Rational C++ 2.4.1
12871	    # FIXME: insert proper C++ library support
12872	    ld_shlibs_CXX=no
12873	    ;;
12874          cxx*)
12875	    case $host in
12876	      osf3*)
12877	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12878	        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'
12879	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12880		;;
12881	      *)
12882	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12883	        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'
12884	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12885	          echo "-hidden">> $lib.exp~
12886	          $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~
12887	          $RM $lib.exp'
12888	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12889		;;
12890	    esac
12891
12892	    hardcode_libdir_separator_CXX=:
12893
12894	    # Commands to make compiler produce verbose output that lists
12895	    # what "hidden" libraries, object files and flags are used when
12896	    # linking a shared library.
12897	    #
12898	    # There doesn't appear to be a way to prevent this compiler from
12899	    # explicitly linking system object files so we need to strip them
12900	    # from the output so that they don't get included in the library
12901	    # dependencies.
12902	    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"'
12903	    ;;
12904	  *)
12905	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12906	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12907	      case $host in
12908	        osf3*)
12909	          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'
12910		  ;;
12911	        *)
12912	          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'
12913		  ;;
12914	      esac
12915
12916	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12917	      hardcode_libdir_separator_CXX=:
12918
12919	      # Commands to make compiler produce verbose output that lists
12920	      # what "hidden" libraries, object files and flags are used when
12921	      # linking a shared library.
12922	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12923
12924	    else
12925	      # FIXME: insert proper C++ library support
12926	      ld_shlibs_CXX=no
12927	    fi
12928	    ;;
12929        esac
12930        ;;
12931
12932      psos*)
12933        # FIXME: insert proper C++ library support
12934        ld_shlibs_CXX=no
12935        ;;
12936
12937      sunos4*)
12938        case $cc_basename in
12939          CC*)
12940	    # Sun C++ 4.x
12941	    # FIXME: insert proper C++ library support
12942	    ld_shlibs_CXX=no
12943	    ;;
12944          lcc*)
12945	    # Lucid
12946	    # FIXME: insert proper C++ library support
12947	    ld_shlibs_CXX=no
12948	    ;;
12949          *)
12950	    # FIXME: insert proper C++ library support
12951	    ld_shlibs_CXX=no
12952	    ;;
12953        esac
12954        ;;
12955
12956      solaris*)
12957        case $cc_basename in
12958          CC* | sunCC*)
12959	    # Sun C++ 4.2, 5.x and Centerline C++
12960            archive_cmds_need_lc_CXX=yes
12961	    no_undefined_flag_CXX=' -zdefs'
12962	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12963	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12964	      $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'
12965
12966	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12967	    hardcode_shlibpath_var_CXX=no
12968	    case $host_os in
12969	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12970	      *)
12971		# The compiler driver will combine and reorder linker options,
12972		# but understands `-z linker_flag'.
12973	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12974		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12975	        ;;
12976	    esac
12977	    link_all_deplibs_CXX=yes
12978
12979	    output_verbose_link_cmd='func_echo_all'
12980
12981	    # Archives containing C++ object files must be created using
12982	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12983	    # necessary to make sure instantiated templates are included
12984	    # in the archive.
12985	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12986	    ;;
12987          gcx*)
12988	    # Green Hills C++ Compiler
12989	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12990
12991	    # The C++ compiler must be used to create the archive.
12992	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12993	    ;;
12994          *)
12995	    # GNU C++ compiler with Solaris linker
12996	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12997	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12998	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12999	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13000	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13001		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13002
13003	        # Commands to make compiler produce verbose output that lists
13004	        # what "hidden" libraries, object files and flags are used when
13005	        # linking a shared library.
13006	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13007	      else
13008	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13009	        # platform.
13010	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13011	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13012		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13013
13014	        # Commands to make compiler produce verbose output that lists
13015	        # what "hidden" libraries, object files and flags are used when
13016	        # linking a shared library.
13017	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13018	      fi
13019
13020	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13021	      case $host_os in
13022		solaris2.[0-5] | solaris2.[0-5].*) ;;
13023		*)
13024		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13025		  ;;
13026	      esac
13027	    fi
13028	    ;;
13029        esac
13030        ;;
13031
13032    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13033      no_undefined_flag_CXX='${wl}-z,text'
13034      archive_cmds_need_lc_CXX=no
13035      hardcode_shlibpath_var_CXX=no
13036      runpath_var='LD_RUN_PATH'
13037
13038      case $cc_basename in
13039        CC*)
13040	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13042	  ;;
13043	*)
13044	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046	  ;;
13047      esac
13048      ;;
13049
13050      sysv5* | sco3.2v5* | sco5v6*)
13051	# Note: We can NOT use -z defs as we might desire, because we do not
13052	# link with -lc, and that would cause any symbols used from libc to
13053	# always be unresolved, which means just about no library would
13054	# ever link correctly.  If we're not using GNU ld we use -z text
13055	# though, which does catch some bad symbols but isn't as heavy-handed
13056	# as -z defs.
13057	no_undefined_flag_CXX='${wl}-z,text'
13058	allow_undefined_flag_CXX='${wl}-z,nodefs'
13059	archive_cmds_need_lc_CXX=no
13060	hardcode_shlibpath_var_CXX=no
13061	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13062	hardcode_libdir_separator_CXX=':'
13063	link_all_deplibs_CXX=yes
13064	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13065	runpath_var='LD_RUN_PATH'
13066
13067	case $cc_basename in
13068          CC*)
13069	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13072	      '"$old_archive_cmds_CXX"
13073	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13074	      '"$reload_cmds_CXX"
13075	    ;;
13076	  *)
13077	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079	    ;;
13080	esac
13081      ;;
13082
13083      tandem*)
13084        case $cc_basename in
13085          NCC*)
13086	    # NonStop-UX NCC 3.20
13087	    # FIXME: insert proper C++ library support
13088	    ld_shlibs_CXX=no
13089	    ;;
13090          *)
13091	    # FIXME: insert proper C++ library support
13092	    ld_shlibs_CXX=no
13093	    ;;
13094        esac
13095        ;;
13096
13097      vxworks*)
13098        # FIXME: insert proper C++ library support
13099        ld_shlibs_CXX=no
13100        ;;
13101
13102      *)
13103        # FIXME: insert proper C++ library support
13104        ld_shlibs_CXX=no
13105        ;;
13106    esac
13107
13108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13109$as_echo "$ld_shlibs_CXX" >&6; }
13110    test "$ld_shlibs_CXX" = no && can_build_shared=no
13111
13112    GCC_CXX="$GXX"
13113    LD_CXX="$LD"
13114
13115    ## CAVEAT EMPTOR:
13116    ## There is no encapsulation within the following macros, do not change
13117    ## the running order or otherwise move them around unless you know exactly
13118    ## what you are doing...
13119    # Dependencies to place before and after the object being linked:
13120predep_objects_CXX=
13121postdep_objects_CXX=
13122predeps_CXX=
13123postdeps_CXX=
13124compiler_lib_search_path_CXX=
13125
13126cat > conftest.$ac_ext <<_LT_EOF
13127class Foo
13128{
13129public:
13130  Foo (void) { a = 0; }
13131private:
13132  int a;
13133};
13134_LT_EOF
13135
13136
13137_lt_libdeps_save_CFLAGS=$CFLAGS
13138case "$CC $CFLAGS " in #(
13139*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13140*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13141*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13142esac
13143
13144if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13145  (eval $ac_compile) 2>&5
13146  ac_status=$?
13147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148  test $ac_status = 0; }; then
13149  # Parse the compiler output and extract the necessary
13150  # objects, libraries and library flags.
13151
13152  # Sentinel used to keep track of whether or not we are before
13153  # the conftest object file.
13154  pre_test_object_deps_done=no
13155
13156  for p in `eval "$output_verbose_link_cmd"`; do
13157    case ${prev}${p} in
13158
13159    -L* | -R* | -l*)
13160       # Some compilers place space between "-{L,R}" and the path.
13161       # Remove the space.
13162       if test $p = "-L" ||
13163          test $p = "-R"; then
13164	 prev=$p
13165	 continue
13166       fi
13167
13168       # Expand the sysroot to ease extracting the directories later.
13169       if test -z "$prev"; then
13170         case $p in
13171         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13172         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13173         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13174         esac
13175       fi
13176       case $p in
13177       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13178       esac
13179       if test "$pre_test_object_deps_done" = no; then
13180	 case ${prev} in
13181	 -L | -R)
13182	   # Internal compiler library paths should come after those
13183	   # provided the user.  The postdeps already come after the
13184	   # user supplied libs so there is no need to process them.
13185	   if test -z "$compiler_lib_search_path_CXX"; then
13186	     compiler_lib_search_path_CXX="${prev}${p}"
13187	   else
13188	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13189	   fi
13190	   ;;
13191	 # The "-l" case would never come before the object being
13192	 # linked, so don't bother handling this case.
13193	 esac
13194       else
13195	 if test -z "$postdeps_CXX"; then
13196	   postdeps_CXX="${prev}${p}"
13197	 else
13198	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13199	 fi
13200       fi
13201       prev=
13202       ;;
13203
13204    *.lto.$objext) ;; # Ignore GCC LTO objects
13205    *.$objext)
13206       # This assumes that the test object file only shows up
13207       # once in the compiler output.
13208       if test "$p" = "conftest.$objext"; then
13209	 pre_test_object_deps_done=yes
13210	 continue
13211       fi
13212
13213       if test "$pre_test_object_deps_done" = no; then
13214	 if test -z "$predep_objects_CXX"; then
13215	   predep_objects_CXX="$p"
13216	 else
13217	   predep_objects_CXX="$predep_objects_CXX $p"
13218	 fi
13219       else
13220	 if test -z "$postdep_objects_CXX"; then
13221	   postdep_objects_CXX="$p"
13222	 else
13223	   postdep_objects_CXX="$postdep_objects_CXX $p"
13224	 fi
13225       fi
13226       ;;
13227
13228    *) ;; # Ignore the rest.
13229
13230    esac
13231  done
13232
13233  # Clean up.
13234  rm -f a.out a.exe
13235else
13236  echo "libtool.m4: error: problem compiling CXX test program"
13237fi
13238
13239$RM -f confest.$objext
13240CFLAGS=$_lt_libdeps_save_CFLAGS
13241
13242# PORTME: override above test on systems where it is broken
13243case $host_os in
13244interix[3-9]*)
13245  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13246  # hack all around it, let's just trust "g++" to DTRT.
13247  predep_objects_CXX=
13248  postdep_objects_CXX=
13249  postdeps_CXX=
13250  ;;
13251
13252linux*)
13253  case `$CC -V 2>&1 | sed 5q` in
13254  *Sun\ C*)
13255    # Sun C++ 5.9
13256
13257    # The more standards-conforming stlport4 library is
13258    # incompatible with the Cstd library. Avoid specifying
13259    # it if it's in CXXFLAGS. Ignore libCrun as
13260    # -library=stlport4 depends on it.
13261    case " $CXX $CXXFLAGS " in
13262    *" -library=stlport4 "*)
13263      solaris_use_stlport4=yes
13264      ;;
13265    esac
13266
13267    if test "$solaris_use_stlport4" != yes; then
13268      postdeps_CXX='-library=Cstd -library=Crun'
13269    fi
13270    ;;
13271  esac
13272  ;;
13273
13274solaris*)
13275  case $cc_basename in
13276  CC* | sunCC*)
13277    # The more standards-conforming stlport4 library is
13278    # incompatible with the Cstd library. Avoid specifying
13279    # it if it's in CXXFLAGS. Ignore libCrun as
13280    # -library=stlport4 depends on it.
13281    case " $CXX $CXXFLAGS " in
13282    *" -library=stlport4 "*)
13283      solaris_use_stlport4=yes
13284      ;;
13285    esac
13286
13287    # Adding this requires a known-good setup of shared libraries for
13288    # Sun compiler versions before 5.6, else PIC objects from an old
13289    # archive will be linked into the output, leading to subtle bugs.
13290    if test "$solaris_use_stlport4" != yes; then
13291      postdeps_CXX='-library=Cstd -library=Crun'
13292    fi
13293    ;;
13294  esac
13295  ;;
13296esac
13297
13298
13299case " $postdeps_CXX " in
13300*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13301esac
13302 compiler_lib_search_dirs_CXX=
13303if test -n "${compiler_lib_search_path_CXX}"; then
13304 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13305fi
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337    lt_prog_compiler_wl_CXX=
13338lt_prog_compiler_pic_CXX=
13339lt_prog_compiler_static_CXX=
13340
13341
13342  # C++ specific cases for pic, static, wl, etc.
13343  if test "$GXX" = yes; then
13344    lt_prog_compiler_wl_CXX='-Wl,'
13345    lt_prog_compiler_static_CXX='-static'
13346
13347    case $host_os in
13348    aix*)
13349      # All AIX code is PIC.
13350      if test "$host_cpu" = ia64; then
13351	# AIX 5 now supports IA64 processor
13352	lt_prog_compiler_static_CXX='-Bstatic'
13353      fi
13354      ;;
13355
13356    amigaos*)
13357      case $host_cpu in
13358      powerpc)
13359            # see comment about AmigaOS4 .so support
13360            lt_prog_compiler_pic_CXX='-fPIC'
13361        ;;
13362      m68k)
13363            # FIXME: we need at least 68020 code to build shared libraries, but
13364            # adding the `-m68020' flag to GCC prevents building anything better,
13365            # like `-m68040'.
13366            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13367        ;;
13368      esac
13369      ;;
13370
13371    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13372      # PIC is the default for these OSes.
13373      ;;
13374    mingw* | cygwin* | os2* | pw32* | cegcc*)
13375      # This hack is so that the source file can tell whether it is being
13376      # built for inclusion in a dll (and should export symbols for example).
13377      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13378      # (--disable-auto-import) libraries
13379      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13380      ;;
13381    darwin* | rhapsody*)
13382      # PIC is the default on this platform
13383      # Common symbols not allowed in MH_DYLIB files
13384      lt_prog_compiler_pic_CXX='-fno-common'
13385      ;;
13386    *djgpp*)
13387      # DJGPP does not support shared libraries at all
13388      lt_prog_compiler_pic_CXX=
13389      ;;
13390    haiku*)
13391      # PIC is the default for Haiku.
13392      # The "-static" flag exists, but is broken.
13393      lt_prog_compiler_static_CXX=
13394      ;;
13395    interix[3-9]*)
13396      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13397      # Instead, we relocate shared libraries at runtime.
13398      ;;
13399    sysv4*MP*)
13400      if test -d /usr/nec; then
13401	lt_prog_compiler_pic_CXX=-Kconform_pic
13402      fi
13403      ;;
13404    hpux*)
13405      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13406      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13407      # sets the default TLS model and affects inlining.
13408      case $host_cpu in
13409      hppa*64*)
13410	;;
13411      *)
13412	lt_prog_compiler_pic_CXX='-fPIC'
13413	;;
13414      esac
13415      ;;
13416    *qnx* | *nto*)
13417      # QNX uses GNU C++, but need to define -shared option too, otherwise
13418      # it will coredump.
13419      lt_prog_compiler_pic_CXX='-fPIC -shared'
13420      ;;
13421    *)
13422      lt_prog_compiler_pic_CXX='-fPIC'
13423      ;;
13424    esac
13425  else
13426    case $host_os in
13427      aix[4-9]*)
13428	# All AIX code is PIC.
13429	if test "$host_cpu" = ia64; then
13430	  # AIX 5 now supports IA64 processor
13431	  lt_prog_compiler_static_CXX='-Bstatic'
13432	else
13433	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13434	fi
13435	;;
13436      chorus*)
13437	case $cc_basename in
13438	cxch68*)
13439	  # Green Hills C++ Compiler
13440	  # _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"
13441	  ;;
13442	esac
13443	;;
13444      mingw* | cygwin* | os2* | pw32* | cegcc*)
13445	# This hack is so that the source file can tell whether it is being
13446	# built for inclusion in a dll (and should export symbols for example).
13447	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13448	;;
13449      dgux*)
13450	case $cc_basename in
13451	  ec++*)
13452	    lt_prog_compiler_pic_CXX='-KPIC'
13453	    ;;
13454	  ghcx*)
13455	    # Green Hills C++ Compiler
13456	    lt_prog_compiler_pic_CXX='-pic'
13457	    ;;
13458	  *)
13459	    ;;
13460	esac
13461	;;
13462      freebsd* | dragonfly*)
13463	# FreeBSD uses GNU C++
13464	;;
13465      hpux9* | hpux10* | hpux11*)
13466	case $cc_basename in
13467	  CC*)
13468	    lt_prog_compiler_wl_CXX='-Wl,'
13469	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13470	    if test "$host_cpu" != ia64; then
13471	      lt_prog_compiler_pic_CXX='+Z'
13472	    fi
13473	    ;;
13474	  aCC*)
13475	    lt_prog_compiler_wl_CXX='-Wl,'
13476	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13477	    case $host_cpu in
13478	    hppa*64*|ia64*)
13479	      # +Z the default
13480	      ;;
13481	    *)
13482	      lt_prog_compiler_pic_CXX='+Z'
13483	      ;;
13484	    esac
13485	    ;;
13486	  *)
13487	    ;;
13488	esac
13489	;;
13490      interix*)
13491	# This is c89, which is MS Visual C++ (no shared libs)
13492	# Anyone wants to do a port?
13493	;;
13494      irix5* | irix6* | nonstopux*)
13495	case $cc_basename in
13496	  CC*)
13497	    lt_prog_compiler_wl_CXX='-Wl,'
13498	    lt_prog_compiler_static_CXX='-non_shared'
13499	    # CC pic flag -KPIC is the default.
13500	    ;;
13501	  *)
13502	    ;;
13503	esac
13504	;;
13505      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13506	case $cc_basename in
13507	  KCC*)
13508	    # KAI C++ Compiler
13509	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13510	    lt_prog_compiler_pic_CXX='-fPIC'
13511	    ;;
13512	  ecpc* )
13513	    # old Intel C++ for x86_64 which still supported -KPIC.
13514	    lt_prog_compiler_wl_CXX='-Wl,'
13515	    lt_prog_compiler_pic_CXX='-KPIC'
13516	    lt_prog_compiler_static_CXX='-static'
13517	    ;;
13518	  icpc* )
13519	    # Intel C++, used to be incompatible with GCC.
13520	    # ICC 10 doesn't accept -KPIC any more.
13521	    lt_prog_compiler_wl_CXX='-Wl,'
13522	    lt_prog_compiler_pic_CXX='-fPIC'
13523	    lt_prog_compiler_static_CXX='-static'
13524	    ;;
13525	  pgCC* | pgcpp*)
13526	    # Portland Group C++ compiler
13527	    lt_prog_compiler_wl_CXX='-Wl,'
13528	    lt_prog_compiler_pic_CXX='-fpic'
13529	    lt_prog_compiler_static_CXX='-Bstatic'
13530	    ;;
13531	  cxx*)
13532	    # Compaq C++
13533	    # Make sure the PIC flag is empty.  It appears that all Alpha
13534	    # Linux and Compaq Tru64 Unix objects are PIC.
13535	    lt_prog_compiler_pic_CXX=
13536	    lt_prog_compiler_static_CXX='-non_shared'
13537	    ;;
13538	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13539	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13540	    lt_prog_compiler_wl_CXX='-Wl,'
13541	    lt_prog_compiler_pic_CXX='-qpic'
13542	    lt_prog_compiler_static_CXX='-qstaticlink'
13543	    ;;
13544	  *)
13545	    case `$CC -V 2>&1 | sed 5q` in
13546	    *Sun\ C*)
13547	      # Sun C++ 5.9
13548	      lt_prog_compiler_pic_CXX='-KPIC'
13549	      lt_prog_compiler_static_CXX='-Bstatic'
13550	      lt_prog_compiler_wl_CXX='-Qoption ld '
13551	      ;;
13552	    esac
13553	    ;;
13554	esac
13555	;;
13556      lynxos*)
13557	;;
13558      m88k*)
13559	;;
13560      mvs*)
13561	case $cc_basename in
13562	  cxx*)
13563	    lt_prog_compiler_pic_CXX='-W c,exportall'
13564	    ;;
13565	  *)
13566	    ;;
13567	esac
13568	;;
13569      netbsd* | netbsdelf*-gnu)
13570	;;
13571      *qnx* | *nto*)
13572        # QNX uses GNU C++, but need to define -shared option too, otherwise
13573        # it will coredump.
13574        lt_prog_compiler_pic_CXX='-fPIC -shared'
13575        ;;
13576      osf3* | osf4* | osf5*)
13577	case $cc_basename in
13578	  KCC*)
13579	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13580	    ;;
13581	  RCC*)
13582	    # Rational C++ 2.4.1
13583	    lt_prog_compiler_pic_CXX='-pic'
13584	    ;;
13585	  cxx*)
13586	    # Digital/Compaq C++
13587	    lt_prog_compiler_wl_CXX='-Wl,'
13588	    # Make sure the PIC flag is empty.  It appears that all Alpha
13589	    # Linux and Compaq Tru64 Unix objects are PIC.
13590	    lt_prog_compiler_pic_CXX=
13591	    lt_prog_compiler_static_CXX='-non_shared'
13592	    ;;
13593	  *)
13594	    ;;
13595	esac
13596	;;
13597      psos*)
13598	;;
13599      solaris*)
13600	case $cc_basename in
13601	  CC* | sunCC*)
13602	    # Sun C++ 4.2, 5.x and Centerline C++
13603	    lt_prog_compiler_pic_CXX='-KPIC'
13604	    lt_prog_compiler_static_CXX='-Bstatic'
13605	    lt_prog_compiler_wl_CXX='-Qoption ld '
13606	    ;;
13607	  gcx*)
13608	    # Green Hills C++ Compiler
13609	    lt_prog_compiler_pic_CXX='-PIC'
13610	    ;;
13611	  *)
13612	    ;;
13613	esac
13614	;;
13615      sunos4*)
13616	case $cc_basename in
13617	  CC*)
13618	    # Sun C++ 4.x
13619	    lt_prog_compiler_pic_CXX='-pic'
13620	    lt_prog_compiler_static_CXX='-Bstatic'
13621	    ;;
13622	  lcc*)
13623	    # Lucid
13624	    lt_prog_compiler_pic_CXX='-pic'
13625	    ;;
13626	  *)
13627	    ;;
13628	esac
13629	;;
13630      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13631	case $cc_basename in
13632	  CC*)
13633	    lt_prog_compiler_wl_CXX='-Wl,'
13634	    lt_prog_compiler_pic_CXX='-KPIC'
13635	    lt_prog_compiler_static_CXX='-Bstatic'
13636	    ;;
13637	esac
13638	;;
13639      tandem*)
13640	case $cc_basename in
13641	  NCC*)
13642	    # NonStop-UX NCC 3.20
13643	    lt_prog_compiler_pic_CXX='-KPIC'
13644	    ;;
13645	  *)
13646	    ;;
13647	esac
13648	;;
13649      vxworks*)
13650	;;
13651      *)
13652	lt_prog_compiler_can_build_shared_CXX=no
13653	;;
13654    esac
13655  fi
13656
13657case $host_os in
13658  # For platforms which do not support PIC, -DPIC is meaningless:
13659  *djgpp*)
13660    lt_prog_compiler_pic_CXX=
13661    ;;
13662  *)
13663    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13664    ;;
13665esac
13666
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13668$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13669if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13670  $as_echo_n "(cached) " >&6
13671else
13672  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13675$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13676lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13677
13678#
13679# Check to make sure the PIC flag actually works.
13680#
13681if test -n "$lt_prog_compiler_pic_CXX"; then
13682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13683$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13684if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13685  $as_echo_n "(cached) " >&6
13686else
13687  lt_cv_prog_compiler_pic_works_CXX=no
13688   ac_outfile=conftest.$ac_objext
13689   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13690   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13691   # Insert the option either (1) after the last *FLAGS variable, or
13692   # (2) before a word containing "conftest.", or (3) at the end.
13693   # Note that $ac_compile itself does not contain backslashes and begins
13694   # with a dollar sign (not a hyphen), so the echo should work correctly.
13695   # The option is referenced via a variable to avoid confusing sed.
13696   lt_compile=`echo "$ac_compile" | $SED \
13697   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13698   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13699   -e 's:$: $lt_compiler_flag:'`
13700   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13701   (eval "$lt_compile" 2>conftest.err)
13702   ac_status=$?
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   if (exit $ac_status) && test -s "$ac_outfile"; then
13706     # The compiler can only warn and ignore the option if not recognized
13707     # So say no if there are warnings other than the usual output.
13708     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13709     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13710     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13711       lt_cv_prog_compiler_pic_works_CXX=yes
13712     fi
13713   fi
13714   $RM conftest*
13715
13716fi
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13718$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13719
13720if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13721    case $lt_prog_compiler_pic_CXX in
13722     "" | " "*) ;;
13723     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13724     esac
13725else
13726    lt_prog_compiler_pic_CXX=
13727     lt_prog_compiler_can_build_shared_CXX=no
13728fi
13729
13730fi
13731
13732
13733
13734
13735
13736#
13737# Check to make sure the static flag actually works.
13738#
13739wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13741$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13742if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13743  $as_echo_n "(cached) " >&6
13744else
13745  lt_cv_prog_compiler_static_works_CXX=no
13746   save_LDFLAGS="$LDFLAGS"
13747   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13748   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13749   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13750     # The linker can only warn and ignore the option if not recognized
13751     # So say no if there are warnings
13752     if test -s conftest.err; then
13753       # Append any errors to the config.log.
13754       cat conftest.err 1>&5
13755       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13756       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13757       if diff conftest.exp conftest.er2 >/dev/null; then
13758         lt_cv_prog_compiler_static_works_CXX=yes
13759       fi
13760     else
13761       lt_cv_prog_compiler_static_works_CXX=yes
13762     fi
13763   fi
13764   $RM -r conftest*
13765   LDFLAGS="$save_LDFLAGS"
13766
13767fi
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13769$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13770
13771if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13772    :
13773else
13774    lt_prog_compiler_static_CXX=
13775fi
13776
13777
13778
13779
13780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13781$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13782if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13783  $as_echo_n "(cached) " >&6
13784else
13785  lt_cv_prog_compiler_c_o_CXX=no
13786   $RM -r conftest 2>/dev/null
13787   mkdir conftest
13788   cd conftest
13789   mkdir out
13790   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13791
13792   lt_compiler_flag="-o out/conftest2.$ac_objext"
13793   # Insert the option either (1) after the last *FLAGS variable, or
13794   # (2) before a word containing "conftest.", or (3) at the end.
13795   # Note that $ac_compile itself does not contain backslashes and begins
13796   # with a dollar sign (not a hyphen), so the echo should work correctly.
13797   lt_compile=`echo "$ac_compile" | $SED \
13798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13800   -e 's:$: $lt_compiler_flag:'`
13801   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13802   (eval "$lt_compile" 2>out/conftest.err)
13803   ac_status=$?
13804   cat out/conftest.err >&5
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13807   then
13808     # The compiler can only warn and ignore the option if not recognized
13809     # So say no if there are warnings
13810     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13811     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13812     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13813       lt_cv_prog_compiler_c_o_CXX=yes
13814     fi
13815   fi
13816   chmod u+w . 2>&5
13817   $RM conftest*
13818   # SGI C++ compiler will create directory out/ii_files/ for
13819   # template instantiation
13820   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13821   $RM out/* && rmdir out
13822   cd ..
13823   $RM -r conftest
13824   $RM conftest*
13825
13826fi
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13828$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13829
13830
13831
13832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13833$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13834if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  lt_cv_prog_compiler_c_o_CXX=no
13838   $RM -r conftest 2>/dev/null
13839   mkdir conftest
13840   cd conftest
13841   mkdir out
13842   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13843
13844   lt_compiler_flag="-o out/conftest2.$ac_objext"
13845   # Insert the option either (1) after the last *FLAGS variable, or
13846   # (2) before a word containing "conftest.", or (3) at the end.
13847   # Note that $ac_compile itself does not contain backslashes and begins
13848   # with a dollar sign (not a hyphen), so the echo should work correctly.
13849   lt_compile=`echo "$ac_compile" | $SED \
13850   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13851   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13852   -e 's:$: $lt_compiler_flag:'`
13853   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13854   (eval "$lt_compile" 2>out/conftest.err)
13855   ac_status=$?
13856   cat out/conftest.err >&5
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13859   then
13860     # The compiler can only warn and ignore the option if not recognized
13861     # So say no if there are warnings
13862     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13863     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13864     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13865       lt_cv_prog_compiler_c_o_CXX=yes
13866     fi
13867   fi
13868   chmod u+w . 2>&5
13869   $RM conftest*
13870   # SGI C++ compiler will create directory out/ii_files/ for
13871   # template instantiation
13872   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13873   $RM out/* && rmdir out
13874   cd ..
13875   $RM -r conftest
13876   $RM conftest*
13877
13878fi
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13880$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13881
13882
13883
13884
13885hard_links="nottested"
13886if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13887  # do not overwrite the value of need_locks provided by the user
13888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13889$as_echo_n "checking if we can lock with hard links... " >&6; }
13890  hard_links=yes
13891  $RM conftest*
13892  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13893  touch conftest.a
13894  ln conftest.a conftest.b 2>&5 || hard_links=no
13895  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13897$as_echo "$hard_links" >&6; }
13898  if test "$hard_links" = no; then
13899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13900$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13901    need_locks=warn
13902  fi
13903else
13904  need_locks=no
13905fi
13906
13907
13908
13909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13910$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13911
13912  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13913  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13914  case $host_os in
13915  aix[4-9]*)
13916    # If we're using GNU nm, then we don't want the "-C" option.
13917    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13918    # Also, AIX nm treats weak defined symbols like other global defined
13919    # symbols, whereas GNU nm marks them as "W".
13920    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13921      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'
13922    else
13923      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'
13924    fi
13925    ;;
13926  pw32*)
13927    export_symbols_cmds_CXX="$ltdll_cmds"
13928    ;;
13929  cygwin* | mingw* | cegcc*)
13930    case $cc_basename in
13931    cl*)
13932      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13933      ;;
13934    *)
13935      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'
13936      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13937      ;;
13938    esac
13939    ;;
13940  linux* | k*bsd*-gnu | gnu*)
13941    link_all_deplibs_CXX=no
13942    ;;
13943  *)
13944    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13945    ;;
13946  esac
13947
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13949$as_echo "$ld_shlibs_CXX" >&6; }
13950test "$ld_shlibs_CXX" = no && can_build_shared=no
13951
13952with_gnu_ld_CXX=$with_gnu_ld
13953
13954
13955
13956
13957
13958
13959#
13960# Do we need to explicitly link libc?
13961#
13962case "x$archive_cmds_need_lc_CXX" in
13963x|xyes)
13964  # Assume -lc should be added
13965  archive_cmds_need_lc_CXX=yes
13966
13967  if test "$enable_shared" = yes && test "$GCC" = yes; then
13968    case $archive_cmds_CXX in
13969    *'~'*)
13970      # FIXME: we may have to deal with multi-command sequences.
13971      ;;
13972    '$CC '*)
13973      # Test whether the compiler implicitly links with -lc since on some
13974      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13975      # to ld, don't add -lc before -lgcc.
13976      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13977$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13978if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13979  $as_echo_n "(cached) " >&6
13980else
13981  $RM conftest*
13982	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13983
13984	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13985  (eval $ac_compile) 2>&5
13986  ac_status=$?
13987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13988  test $ac_status = 0; } 2>conftest.err; then
13989	  soname=conftest
13990	  lib=conftest
13991	  libobjs=conftest.$ac_objext
13992	  deplibs=
13993	  wl=$lt_prog_compiler_wl_CXX
13994	  pic_flag=$lt_prog_compiler_pic_CXX
13995	  compiler_flags=-v
13996	  linker_flags=-v
13997	  verstring=
13998	  output_objdir=.
13999	  libname=conftest
14000	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14001	  allow_undefined_flag_CXX=
14002	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14003  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14004  ac_status=$?
14005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006  test $ac_status = 0; }
14007	  then
14008	    lt_cv_archive_cmds_need_lc_CXX=no
14009	  else
14010	    lt_cv_archive_cmds_need_lc_CXX=yes
14011	  fi
14012	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14013	else
14014	  cat conftest.err 1>&5
14015	fi
14016	$RM conftest*
14017
14018fi
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14020$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14021      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14022      ;;
14023    esac
14024  fi
14025  ;;
14026esac
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14090$as_echo_n "checking dynamic linker characteristics... " >&6; }
14091
14092library_names_spec=
14093libname_spec='lib$name'
14094soname_spec=
14095shrext_cmds=".so"
14096postinstall_cmds=
14097postuninstall_cmds=
14098finish_cmds=
14099finish_eval=
14100shlibpath_var=
14101shlibpath_overrides_runpath=unknown
14102version_type=none
14103dynamic_linker="$host_os ld.so"
14104sys_lib_dlsearch_path_spec="/lib /usr/lib"
14105need_lib_prefix=unknown
14106hardcode_into_libs=no
14107
14108# when you set need_version to no, make sure it does not cause -set_version
14109# flags to be left without arguments
14110need_version=unknown
14111
14112case $host_os in
14113aix3*)
14114  version_type=linux # correct to gnu/linux during the next big refactor
14115  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14116  shlibpath_var=LIBPATH
14117
14118  # AIX 3 has no versioning support, so we append a major version to the name.
14119  soname_spec='${libname}${release}${shared_ext}$major'
14120  ;;
14121
14122aix[4-9]*)
14123  version_type=linux # correct to gnu/linux during the next big refactor
14124  need_lib_prefix=no
14125  need_version=no
14126  hardcode_into_libs=yes
14127  if test "$host_cpu" = ia64; then
14128    # AIX 5 supports IA64
14129    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14130    shlibpath_var=LD_LIBRARY_PATH
14131  else
14132    # With GCC up to 2.95.x, collect2 would create an import file
14133    # for dependence libraries.  The import file would start with
14134    # the line `#! .'.  This would cause the generated library to
14135    # depend on `.', always an invalid library.  This was fixed in
14136    # development snapshots of GCC prior to 3.0.
14137    case $host_os in
14138      aix4 | aix4.[01] | aix4.[01].*)
14139      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14140	   echo ' yes '
14141	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14142	:
14143      else
14144	can_build_shared=no
14145      fi
14146      ;;
14147    esac
14148    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14149    # soname into executable. Probably we can add versioning support to
14150    # collect2, so additional links can be useful in future.
14151    if test "$aix_use_runtimelinking" = yes; then
14152      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14153      # instead of lib<name>.a to let people know that these are not
14154      # typical AIX shared libraries.
14155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156    else
14157      # We preserve .a as extension for shared libraries through AIX4.2
14158      # and later when we are not doing run time linking.
14159      library_names_spec='${libname}${release}.a $libname.a'
14160      soname_spec='${libname}${release}${shared_ext}$major'
14161    fi
14162    shlibpath_var=LIBPATH
14163  fi
14164  ;;
14165
14166amigaos*)
14167  case $host_cpu in
14168  powerpc)
14169    # Since July 2007 AmigaOS4 officially supports .so libraries.
14170    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172    ;;
14173  m68k)
14174    library_names_spec='$libname.ixlibrary $libname.a'
14175    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14176    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'
14177    ;;
14178  esac
14179  ;;
14180
14181beos*)
14182  library_names_spec='${libname}${shared_ext}'
14183  dynamic_linker="$host_os ld.so"
14184  shlibpath_var=LIBRARY_PATH
14185  ;;
14186
14187bsdi[45]*)
14188  version_type=linux # correct to gnu/linux during the next big refactor
14189  need_version=no
14190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191  soname_spec='${libname}${release}${shared_ext}$major'
14192  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14193  shlibpath_var=LD_LIBRARY_PATH
14194  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14195  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14196  # the default ld.so.conf also contains /usr/contrib/lib and
14197  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14198  # libtool to hard-code these into programs
14199  ;;
14200
14201cygwin* | mingw* | pw32* | cegcc*)
14202  version_type=windows
14203  shrext_cmds=".dll"
14204  need_version=no
14205  need_lib_prefix=no
14206
14207  case $GCC,$cc_basename in
14208  yes,*)
14209    # gcc
14210    library_names_spec='$libname.dll.a'
14211    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14212    postinstall_cmds='base_file=`basename \${file}`~
14213      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14214      dldir=$destdir/`dirname \$dlpath`~
14215      test -d \$dldir || mkdir -p \$dldir~
14216      $install_prog $dir/$dlname \$dldir/$dlname~
14217      chmod a+x \$dldir/$dlname~
14218      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14219        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14220      fi'
14221    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14222      dlpath=$dir/\$dldll~
14223       $RM \$dlpath'
14224    shlibpath_overrides_runpath=yes
14225
14226    case $host_os in
14227    cygwin*)
14228      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14229      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14230
14231      ;;
14232    mingw* | cegcc*)
14233      # MinGW DLLs use traditional 'lib' prefix
14234      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14235      ;;
14236    pw32*)
14237      # pw32 DLLs use 'pw' prefix rather than 'lib'
14238      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14239      ;;
14240    esac
14241    dynamic_linker='Win32 ld.exe'
14242    ;;
14243
14244  *,cl*)
14245    # Native MSVC
14246    libname_spec='$name'
14247    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14248    library_names_spec='${libname}.dll.lib'
14249
14250    case $build_os in
14251    mingw*)
14252      sys_lib_search_path_spec=
14253      lt_save_ifs=$IFS
14254      IFS=';'
14255      for lt_path in $LIB
14256      do
14257        IFS=$lt_save_ifs
14258        # Let DOS variable expansion print the short 8.3 style file name.
14259        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14260        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14261      done
14262      IFS=$lt_save_ifs
14263      # Convert to MSYS style.
14264      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14265      ;;
14266    cygwin*)
14267      # Convert to unix form, then to dos form, then back to unix form
14268      # but this time dos style (no spaces!) so that the unix form looks
14269      # like /cygdrive/c/PROGRA~1:/cygdr...
14270      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14271      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14272      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14273      ;;
14274    *)
14275      sys_lib_search_path_spec="$LIB"
14276      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14277        # It is most probably a Windows format PATH.
14278        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14279      else
14280        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14281      fi
14282      # FIXME: find the short name or the path components, as spaces are
14283      # common. (e.g. "Program Files" -> "PROGRA~1")
14284      ;;
14285    esac
14286
14287    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14288    postinstall_cmds='base_file=`basename \${file}`~
14289      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14290      dldir=$destdir/`dirname \$dlpath`~
14291      test -d \$dldir || mkdir -p \$dldir~
14292      $install_prog $dir/$dlname \$dldir/$dlname'
14293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294      dlpath=$dir/\$dldll~
14295       $RM \$dlpath'
14296    shlibpath_overrides_runpath=yes
14297    dynamic_linker='Win32 link.exe'
14298    ;;
14299
14300  *)
14301    # Assume MSVC wrapper
14302    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14303    dynamic_linker='Win32 ld.exe'
14304    ;;
14305  esac
14306  # FIXME: first we should search . and the directory the executable is in
14307  shlibpath_var=PATH
14308  ;;
14309
14310darwin* | rhapsody*)
14311  dynamic_linker="$host_os dyld"
14312  version_type=darwin
14313  need_lib_prefix=no
14314  need_version=no
14315  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14316  soname_spec='${libname}${release}${major}$shared_ext'
14317  shlibpath_overrides_runpath=yes
14318  shlibpath_var=DYLD_LIBRARY_PATH
14319  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14320
14321  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14322  ;;
14323
14324dgux*)
14325  version_type=linux # correct to gnu/linux during the next big refactor
14326  need_lib_prefix=no
14327  need_version=no
14328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14329  soname_spec='${libname}${release}${shared_ext}$major'
14330  shlibpath_var=LD_LIBRARY_PATH
14331  ;;
14332
14333freebsd* | dragonfly*)
14334  # DragonFly does not have aout.  When/if they implement a new
14335  # versioning mechanism, adjust this.
14336  if test -x /usr/bin/objformat; then
14337    objformat=`/usr/bin/objformat`
14338  else
14339    case $host_os in
14340    freebsd[23].*) objformat=aout ;;
14341    *) objformat=elf ;;
14342    esac
14343  fi
14344  version_type=freebsd-$objformat
14345  case $version_type in
14346    freebsd-elf*)
14347      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14348      need_version=no
14349      need_lib_prefix=no
14350      ;;
14351    freebsd-*)
14352      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14353      need_version=yes
14354      ;;
14355  esac
14356  shlibpath_var=LD_LIBRARY_PATH
14357  case $host_os in
14358  freebsd2.*)
14359    shlibpath_overrides_runpath=yes
14360    ;;
14361  freebsd3.[01]* | freebsdelf3.[01]*)
14362    shlibpath_overrides_runpath=yes
14363    hardcode_into_libs=yes
14364    ;;
14365  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14366  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14367    shlibpath_overrides_runpath=no
14368    hardcode_into_libs=yes
14369    ;;
14370  *) # from 4.6 on, and DragonFly
14371    shlibpath_overrides_runpath=yes
14372    hardcode_into_libs=yes
14373    ;;
14374  esac
14375  ;;
14376
14377haiku*)
14378  version_type=linux # correct to gnu/linux during the next big refactor
14379  need_lib_prefix=no
14380  need_version=no
14381  dynamic_linker="$host_os runtime_loader"
14382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14383  soname_spec='${libname}${release}${shared_ext}$major'
14384  shlibpath_var=LIBRARY_PATH
14385  shlibpath_overrides_runpath=yes
14386  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14387  hardcode_into_libs=yes
14388  ;;
14389
14390hpux9* | hpux10* | hpux11*)
14391  # Give a soname corresponding to the major version so that dld.sl refuses to
14392  # link against other versions.
14393  version_type=sunos
14394  need_lib_prefix=no
14395  need_version=no
14396  case $host_cpu in
14397  ia64*)
14398    shrext_cmds='.so'
14399    hardcode_into_libs=yes
14400    dynamic_linker="$host_os dld.so"
14401    shlibpath_var=LD_LIBRARY_PATH
14402    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404    soname_spec='${libname}${release}${shared_ext}$major'
14405    if test "X$HPUX_IA64_MODE" = X32; then
14406      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14407    else
14408      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14409    fi
14410    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14411    ;;
14412  hppa*64*)
14413    shrext_cmds='.sl'
14414    hardcode_into_libs=yes
14415    dynamic_linker="$host_os dld.sl"
14416    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14417    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419    soname_spec='${libname}${release}${shared_ext}$major'
14420    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14421    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14422    ;;
14423  *)
14424    shrext_cmds='.sl'
14425    dynamic_linker="$host_os dld.sl"
14426    shlibpath_var=SHLIB_PATH
14427    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429    soname_spec='${libname}${release}${shared_ext}$major'
14430    ;;
14431  esac
14432  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14433  postinstall_cmds='chmod 555 $lib'
14434  # or fails outright, so override atomically:
14435  install_override_mode=555
14436  ;;
14437
14438interix[3-9]*)
14439  version_type=linux # correct to gnu/linux during the next big refactor
14440  need_lib_prefix=no
14441  need_version=no
14442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14443  soname_spec='${libname}${release}${shared_ext}$major'
14444  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14445  shlibpath_var=LD_LIBRARY_PATH
14446  shlibpath_overrides_runpath=no
14447  hardcode_into_libs=yes
14448  ;;
14449
14450irix5* | irix6* | nonstopux*)
14451  case $host_os in
14452    nonstopux*) version_type=nonstopux ;;
14453    *)
14454	if test "$lt_cv_prog_gnu_ld" = yes; then
14455		version_type=linux # correct to gnu/linux during the next big refactor
14456	else
14457		version_type=irix
14458	fi ;;
14459  esac
14460  need_lib_prefix=no
14461  need_version=no
14462  soname_spec='${libname}${release}${shared_ext}$major'
14463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14464  case $host_os in
14465  irix5* | nonstopux*)
14466    libsuff= shlibsuff=
14467    ;;
14468  *)
14469    case $LD in # libtool.m4 will add one of these switches to LD
14470    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14471      libsuff= shlibsuff= libmagic=32-bit;;
14472    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14473      libsuff=32 shlibsuff=N32 libmagic=N32;;
14474    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14475      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14476    *) libsuff= shlibsuff= libmagic=never-match;;
14477    esac
14478    ;;
14479  esac
14480  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14481  shlibpath_overrides_runpath=no
14482  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14483  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14484  hardcode_into_libs=yes
14485  ;;
14486
14487# No shared lib support for Linux oldld, aout, or coff.
14488linux*oldld* | linux*aout* | linux*coff*)
14489  dynamic_linker=no
14490  ;;
14491
14492# This must be glibc/ELF.
14493linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14494  version_type=linux # correct to gnu/linux during the next big refactor
14495  need_lib_prefix=no
14496  need_version=no
14497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498  soname_spec='${libname}${release}${shared_ext}$major'
14499  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14500  shlibpath_var=LD_LIBRARY_PATH
14501  shlibpath_overrides_runpath=no
14502
14503  # Some binutils ld are patched to set DT_RUNPATH
14504  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14505  $as_echo_n "(cached) " >&6
14506else
14507  lt_cv_shlibpath_overrides_runpath=no
14508    save_LDFLAGS=$LDFLAGS
14509    save_libdir=$libdir
14510    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14511	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14512    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h.  */
14514
14515int
14516main ()
14517{
14518
14519  ;
14520  return 0;
14521}
14522_ACEOF
14523if ac_fn_cxx_try_link "$LINENO"; then :
14524  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14525  lt_cv_shlibpath_overrides_runpath=yes
14526fi
14527fi
14528rm -f core conftest.err conftest.$ac_objext \
14529    conftest$ac_exeext conftest.$ac_ext
14530    LDFLAGS=$save_LDFLAGS
14531    libdir=$save_libdir
14532
14533fi
14534
14535  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14536
14537  # This implies no fast_install, which is unacceptable.
14538  # Some rework will be needed to allow for fast_install
14539  # before this can be enabled.
14540  hardcode_into_libs=yes
14541
14542  # Append ld.so.conf contents to the search path
14543  if test -f /etc/ld.so.conf; then
14544    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' ' '`
14545    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14546  fi
14547
14548  # We used to test for /lib/ld.so.1 and disable shared libraries on
14549  # powerpc, because MkLinux only supported shared libraries with the
14550  # GNU dynamic linker.  Since this was broken with cross compilers,
14551  # most powerpc-linux boxes support dynamic linking these days and
14552  # people can always --disable-shared, the test was removed, and we
14553  # assume the GNU/Linux dynamic linker is in use.
14554  dynamic_linker='GNU/Linux ld.so'
14555  ;;
14556
14557netbsdelf*-gnu)
14558  version_type=linux
14559  need_lib_prefix=no
14560  need_version=no
14561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14562  soname_spec='${libname}${release}${shared_ext}$major'
14563  shlibpath_var=LD_LIBRARY_PATH
14564  shlibpath_overrides_runpath=no
14565  hardcode_into_libs=yes
14566  dynamic_linker='NetBSD ld.elf_so'
14567  ;;
14568
14569netbsd*)
14570  version_type=sunos
14571  need_lib_prefix=no
14572  need_version=no
14573  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14575    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14576    dynamic_linker='NetBSD (a.out) ld.so'
14577  else
14578    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14579    soname_spec='${libname}${release}${shared_ext}$major'
14580    dynamic_linker='NetBSD ld.elf_so'
14581  fi
14582  shlibpath_var=LD_LIBRARY_PATH
14583  shlibpath_overrides_runpath=yes
14584  hardcode_into_libs=yes
14585  ;;
14586
14587newsos6)
14588  version_type=linux # correct to gnu/linux during the next big refactor
14589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590  shlibpath_var=LD_LIBRARY_PATH
14591  shlibpath_overrides_runpath=yes
14592  ;;
14593
14594*nto* | *qnx*)
14595  version_type=qnx
14596  need_lib_prefix=no
14597  need_version=no
14598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599  soname_spec='${libname}${release}${shared_ext}$major'
14600  shlibpath_var=LD_LIBRARY_PATH
14601  shlibpath_overrides_runpath=no
14602  hardcode_into_libs=yes
14603  dynamic_linker='ldqnx.so'
14604  ;;
14605
14606openbsd*)
14607  version_type=sunos
14608  sys_lib_dlsearch_path_spec="/usr/lib"
14609  need_lib_prefix=no
14610  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14611  case $host_os in
14612    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14613    *)				need_version=no  ;;
14614  esac
14615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14616  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14617  shlibpath_var=LD_LIBRARY_PATH
14618  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14619    case $host_os in
14620      openbsd2.[89] | openbsd2.[89].*)
14621	shlibpath_overrides_runpath=no
14622	;;
14623      *)
14624	shlibpath_overrides_runpath=yes
14625	;;
14626      esac
14627  else
14628    shlibpath_overrides_runpath=yes
14629  fi
14630  ;;
14631
14632os2*)
14633  libname_spec='$name'
14634  shrext_cmds=".dll"
14635  need_lib_prefix=no
14636  library_names_spec='$libname${shared_ext} $libname.a'
14637  dynamic_linker='OS/2 ld.exe'
14638  shlibpath_var=LIBPATH
14639  ;;
14640
14641osf3* | osf4* | osf5*)
14642  version_type=osf
14643  need_lib_prefix=no
14644  need_version=no
14645  soname_spec='${libname}${release}${shared_ext}$major'
14646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647  shlibpath_var=LD_LIBRARY_PATH
14648  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14649  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14650  ;;
14651
14652rdos*)
14653  dynamic_linker=no
14654  ;;
14655
14656solaris*)
14657  version_type=linux # correct to gnu/linux during the next big refactor
14658  need_lib_prefix=no
14659  need_version=no
14660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661  soname_spec='${libname}${release}${shared_ext}$major'
14662  shlibpath_var=LD_LIBRARY_PATH
14663  shlibpath_overrides_runpath=yes
14664  hardcode_into_libs=yes
14665  # ldd complains unless libraries are executable
14666  postinstall_cmds='chmod +x $lib'
14667  ;;
14668
14669sunos4*)
14670  version_type=sunos
14671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14672  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14673  shlibpath_var=LD_LIBRARY_PATH
14674  shlibpath_overrides_runpath=yes
14675  if test "$with_gnu_ld" = yes; then
14676    need_lib_prefix=no
14677  fi
14678  need_version=yes
14679  ;;
14680
14681sysv4 | sysv4.3*)
14682  version_type=linux # correct to gnu/linux during the next big refactor
14683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684  soname_spec='${libname}${release}${shared_ext}$major'
14685  shlibpath_var=LD_LIBRARY_PATH
14686  case $host_vendor in
14687    sni)
14688      shlibpath_overrides_runpath=no
14689      need_lib_prefix=no
14690      runpath_var=LD_RUN_PATH
14691      ;;
14692    siemens)
14693      need_lib_prefix=no
14694      ;;
14695    motorola)
14696      need_lib_prefix=no
14697      need_version=no
14698      shlibpath_overrides_runpath=no
14699      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14700      ;;
14701  esac
14702  ;;
14703
14704sysv4*MP*)
14705  if test -d /usr/nec ;then
14706    version_type=linux # correct to gnu/linux during the next big refactor
14707    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14708    soname_spec='$libname${shared_ext}.$major'
14709    shlibpath_var=LD_LIBRARY_PATH
14710  fi
14711  ;;
14712
14713sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14714  version_type=freebsd-elf
14715  need_lib_prefix=no
14716  need_version=no
14717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14718  soname_spec='${libname}${release}${shared_ext}$major'
14719  shlibpath_var=LD_LIBRARY_PATH
14720  shlibpath_overrides_runpath=yes
14721  hardcode_into_libs=yes
14722  if test "$with_gnu_ld" = yes; then
14723    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14724  else
14725    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14726    case $host_os in
14727      sco3.2v5*)
14728        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14729	;;
14730    esac
14731  fi
14732  sys_lib_dlsearch_path_spec='/usr/lib'
14733  ;;
14734
14735tpf*)
14736  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14737  version_type=linux # correct to gnu/linux during the next big refactor
14738  need_lib_prefix=no
14739  need_version=no
14740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741  shlibpath_var=LD_LIBRARY_PATH
14742  shlibpath_overrides_runpath=no
14743  hardcode_into_libs=yes
14744  ;;
14745
14746uts4*)
14747  version_type=linux # correct to gnu/linux during the next big refactor
14748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749  soname_spec='${libname}${release}${shared_ext}$major'
14750  shlibpath_var=LD_LIBRARY_PATH
14751  ;;
14752
14753*)
14754  dynamic_linker=no
14755  ;;
14756esac
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14758$as_echo "$dynamic_linker" >&6; }
14759test "$dynamic_linker" = no && can_build_shared=no
14760
14761variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14762if test "$GCC" = yes; then
14763  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14764fi
14765
14766if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14767  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14768fi
14769if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14770  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14771fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14811$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14812hardcode_action_CXX=
14813if test -n "$hardcode_libdir_flag_spec_CXX" ||
14814   test -n "$runpath_var_CXX" ||
14815   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14816
14817  # We can hardcode non-existent directories.
14818  if test "$hardcode_direct_CXX" != no &&
14819     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14820     # have to relink, otherwise we might link with an installed library
14821     # when we should be linking with a yet-to-be-installed one
14822     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14823     test "$hardcode_minus_L_CXX" != no; then
14824    # Linking always hardcodes the temporary library directory.
14825    hardcode_action_CXX=relink
14826  else
14827    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14828    hardcode_action_CXX=immediate
14829  fi
14830else
14831  # We cannot hardcode anything, or else we can only hardcode existing
14832  # directories.
14833  hardcode_action_CXX=unsupported
14834fi
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14836$as_echo "$hardcode_action_CXX" >&6; }
14837
14838if test "$hardcode_action_CXX" = relink ||
14839   test "$inherit_rpath_CXX" = yes; then
14840  # Fast installation is not supported
14841  enable_fast_install=no
14842elif test "$shlibpath_overrides_runpath" = yes ||
14843     test "$enable_shared" = no; then
14844  # Fast installation is not necessary
14845  enable_fast_install=needless
14846fi
14847
14848
14849
14850
14851
14852
14853
14854  fi # test -n "$compiler"
14855
14856  CC=$lt_save_CC
14857  CFLAGS=$lt_save_CFLAGS
14858  LDCXX=$LD
14859  LD=$lt_save_LD
14860  GCC=$lt_save_GCC
14861  with_gnu_ld=$lt_save_with_gnu_ld
14862  lt_cv_path_LDCXX=$lt_cv_path_LD
14863  lt_cv_path_LD=$lt_save_path_LD
14864  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14865  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14866fi # test "$_lt_caught_CXX_error" != yes
14867
14868ac_ext=c
14869ac_cpp='$CPP $CPPFLAGS'
14870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872ac_compiler_gnu=$ac_cv_c_compiler_gnu
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888        ac_config_commands="$ac_config_commands libtool"
14889
14890
14891
14892
14893# Only expand once:
14894
14895
14896# Find a good install program.  We prefer a C program (faster),
14897# so one script is as good as another.  But avoid the broken or
14898# incompatible versions:
14899# SysV /etc/install, /usr/sbin/install
14900# SunOS /usr/etc/install
14901# IRIX /sbin/install
14902# AIX /bin/install
14903# AmigaOS /C/install, which installs bootblocks on floppy discs
14904# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14905# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14906# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14907# OS/2's system install, which has a completely different semantic
14908# ./install, which can be erroneously created by make from ./install.sh.
14909# Reject install programs that cannot install multiple files.
14910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14911$as_echo_n "checking for a BSD-compatible install... " >&6; }
14912if test -z "$INSTALL"; then
14913if ${ac_cv_path_install+:} false; then :
14914  $as_echo_n "(cached) " >&6
14915else
14916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917for as_dir in $PATH
14918do
14919  IFS=$as_save_IFS
14920  test -z "$as_dir" && as_dir=.
14921    # Account for people who put trailing slashes in PATH elements.
14922case $as_dir/ in #((
14923  ./ | .// | /[cC]/* | \
14924  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14925  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14926  /usr/ucb/* ) ;;
14927  *)
14928    # OSF1 and SCO ODT 3.0 have their own names for install.
14929    # Don't use installbsd from OSF since it installs stuff as root
14930    # by default.
14931    for ac_prog in ginstall scoinst install; do
14932      for ac_exec_ext in '' $ac_executable_extensions; do
14933	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14934	  if test $ac_prog = install &&
14935	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14936	    # AIX install.  It has an incompatible calling convention.
14937	    :
14938	  elif test $ac_prog = install &&
14939	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14940	    # program-specific install script used by HP pwplus--don't use.
14941	    :
14942	  else
14943	    rm -rf conftest.one conftest.two conftest.dir
14944	    echo one > conftest.one
14945	    echo two > conftest.two
14946	    mkdir conftest.dir
14947	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14948	      test -s conftest.one && test -s conftest.two &&
14949	      test -s conftest.dir/conftest.one &&
14950	      test -s conftest.dir/conftest.two
14951	    then
14952	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14953	      break 3
14954	    fi
14955	  fi
14956	fi
14957      done
14958    done
14959    ;;
14960esac
14961
14962  done
14963IFS=$as_save_IFS
14964
14965rm -rf conftest.one conftest.two conftest.dir
14966
14967fi
14968  if test "${ac_cv_path_install+set}" = set; then
14969    INSTALL=$ac_cv_path_install
14970  else
14971    # As a last resort, use the slow shell script.  Don't cache a
14972    # value for INSTALL within a source directory, because that will
14973    # break other packages using the cache if that directory is
14974    # removed, or if the value is a relative name.
14975    INSTALL=$ac_install_sh
14976  fi
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14979$as_echo "$INSTALL" >&6; }
14980
14981# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14982# It thinks the first close brace ends the variable substitution.
14983test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14984
14985test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14986
14987test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14988
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14990$as_echo_n "checking whether ln -s works... " >&6; }
14991LN_S=$as_ln_s
14992if test "$LN_S" = "ln -s"; then
14993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994$as_echo "yes" >&6; }
14995else
14996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14997$as_echo "no, using $LN_S" >&6; }
14998fi
14999
15000# Extract the first word of "ar", so it can be a program name with args.
15001set dummy ar; ac_word=$2
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15003$as_echo_n "checking for $ac_word... " >&6; }
15004if ${ac_cv_path_AR+:} false; then :
15005  $as_echo_n "(cached) " >&6
15006else
15007  case $AR in
15008  [\\/]* | ?:[\\/]*)
15009  ac_cv_path_AR="$AR" # Let the user override the test with a path.
15010  ;;
15011  *)
15012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013for as_dir in $PATH
15014do
15015  IFS=$as_save_IFS
15016  test -z "$as_dir" && as_dir=.
15017    for ac_exec_ext in '' $ac_executable_extensions; do
15018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15019    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
15020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15021    break 2
15022  fi
15023done
15024  done
15025IFS=$as_save_IFS
15026
15027  test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
15028  ;;
15029esac
15030fi
15031AR=$ac_cv_path_AR
15032if test -n "$AR"; then
15033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15034$as_echo "$AR" >&6; }
15035else
15036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037$as_echo "no" >&6; }
15038fi
15039
15040
15041if [ $AR = "no" ] ; then
15042    as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5
15043fi
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15046$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15047if ${ac_cv_c_bigendian+:} false; then :
15048  $as_echo_n "(cached) " >&6
15049else
15050  ac_cv_c_bigendian=unknown
15051    # See if we're dealing with a universal compiler.
15052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053/* end confdefs.h.  */
15054#ifndef __APPLE_CC__
15055	       not a universal capable compiler
15056	     #endif
15057	     typedef int dummy;
15058
15059_ACEOF
15060if ac_fn_c_try_compile "$LINENO"; then :
15061
15062	# Check for potential -arch flags.  It is not universal unless
15063	# there are at least two -arch flags with different values.
15064	ac_arch=
15065	ac_prev=
15066	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15067	 if test -n "$ac_prev"; then
15068	   case $ac_word in
15069	     i?86 | x86_64 | ppc | ppc64)
15070	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15071		 ac_arch=$ac_word
15072	       else
15073		 ac_cv_c_bigendian=universal
15074		 break
15075	       fi
15076	       ;;
15077	   esac
15078	   ac_prev=
15079	 elif test "x$ac_word" = "x-arch"; then
15080	   ac_prev=arch
15081	 fi
15082       done
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085    if test $ac_cv_c_bigendian = unknown; then
15086      # See if sys/param.h defines the BYTE_ORDER macro.
15087      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089#include <sys/types.h>
15090	     #include <sys/param.h>
15091
15092int
15093main ()
15094{
15095#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15096		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15097		     && LITTLE_ENDIAN)
15098	      bogus endian macros
15099	     #endif
15100
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_compile "$LINENO"; then :
15106  # It does; now see whether it defined to BIG_ENDIAN or not.
15107	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108/* end confdefs.h.  */
15109#include <sys/types.h>
15110		#include <sys/param.h>
15111
15112int
15113main ()
15114{
15115#if BYTE_ORDER != BIG_ENDIAN
15116		 not big endian
15117		#endif
15118
15119  ;
15120  return 0;
15121}
15122_ACEOF
15123if ac_fn_c_try_compile "$LINENO"; then :
15124  ac_cv_c_bigendian=yes
15125else
15126  ac_cv_c_bigendian=no
15127fi
15128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129fi
15130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131    fi
15132    if test $ac_cv_c_bigendian = unknown; then
15133      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15134      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135/* end confdefs.h.  */
15136#include <limits.h>
15137
15138int
15139main ()
15140{
15141#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15142	      bogus endian macros
15143	     #endif
15144
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149if ac_fn_c_try_compile "$LINENO"; then :
15150  # It does; now see whether it defined to _BIG_ENDIAN or not.
15151	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152/* end confdefs.h.  */
15153#include <limits.h>
15154
15155int
15156main ()
15157{
15158#ifndef _BIG_ENDIAN
15159		 not big endian
15160		#endif
15161
15162  ;
15163  return 0;
15164}
15165_ACEOF
15166if ac_fn_c_try_compile "$LINENO"; then :
15167  ac_cv_c_bigendian=yes
15168else
15169  ac_cv_c_bigendian=no
15170fi
15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172fi
15173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174    fi
15175    if test $ac_cv_c_bigendian = unknown; then
15176      # Compile a test program.
15177      if test "$cross_compiling" = yes; then :
15178  # Try to guess by grepping values from an object file.
15179	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180/* end confdefs.h.  */
15181short int ascii_mm[] =
15182		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15183		short int ascii_ii[] =
15184		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15185		int use_ascii (int i) {
15186		  return ascii_mm[i] + ascii_ii[i];
15187		}
15188		short int ebcdic_ii[] =
15189		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15190		short int ebcdic_mm[] =
15191		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15192		int use_ebcdic (int i) {
15193		  return ebcdic_mm[i] + ebcdic_ii[i];
15194		}
15195		extern int foo;
15196
15197int
15198main ()
15199{
15200return use_ascii (foo) == use_ebcdic (foo);
15201  ;
15202  return 0;
15203}
15204_ACEOF
15205if ac_fn_c_try_compile "$LINENO"; then :
15206  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15207	      ac_cv_c_bigendian=yes
15208	    fi
15209	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15210	      if test "$ac_cv_c_bigendian" = unknown; then
15211		ac_cv_c_bigendian=no
15212	      else
15213		# finding both strings is unlikely to happen, but who knows?
15214		ac_cv_c_bigendian=unknown
15215	      fi
15216	    fi
15217fi
15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219else
15220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222$ac_includes_default
15223int
15224main ()
15225{
15226
15227	     /* Are we little or big endian?  From Harbison&Steele.  */
15228	     union
15229	     {
15230	       long int l;
15231	       char c[sizeof (long int)];
15232	     } u;
15233	     u.l = 1;
15234	     return u.c[sizeof (long int) - 1] == 1;
15235
15236  ;
15237  return 0;
15238}
15239_ACEOF
15240if ac_fn_c_try_run "$LINENO"; then :
15241  ac_cv_c_bigendian=no
15242else
15243  ac_cv_c_bigendian=yes
15244fi
15245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15246  conftest.$ac_objext conftest.beam conftest.$ac_ext
15247fi
15248
15249    fi
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15252$as_echo "$ac_cv_c_bigendian" >&6; }
15253 case $ac_cv_c_bigendian in #(
15254   yes)
15255     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15256;; #(
15257   no)
15258      ;; #(
15259   universal)
15260
15261$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15262
15263     ;; #(
15264   *)
15265     as_fn_error $? "unknown endianness
15266 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15267 esac
15268
15269
15270
15271have_alsa=no
15272if test "x$with_alsa" != "xno"; then
15273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
15274$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
15275if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  ac_check_lib_save_LIBS=$LIBS
15279LIBS="-lasound  $LIBS"
15280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281/* end confdefs.h.  */
15282
15283/* Override any GCC internal prototype to avoid an error.
15284   Use char because int might match the return type of a GCC
15285   builtin and then its argument prototype would still apply.  */
15286#ifdef __cplusplus
15287extern "C"
15288#endif
15289char snd_pcm_open ();
15290int
15291main ()
15292{
15293return snd_pcm_open ();
15294  ;
15295  return 0;
15296}
15297_ACEOF
15298if ac_fn_c_try_link "$LINENO"; then :
15299  ac_cv_lib_asound_snd_pcm_open=yes
15300else
15301  ac_cv_lib_asound_snd_pcm_open=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext \
15304    conftest$ac_exeext conftest.$ac_ext
15305LIBS=$ac_check_lib_save_LIBS
15306fi
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
15308$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
15309if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
15310  have_alsa=yes
15311else
15312  have_alsa=no
15313fi
15314
15315fi
15316have_asihpi=no
15317if test "x$with_asihpi" != "xno"; then
15318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPI_SubSysCreate in -lhpi" >&5
15319$as_echo_n "checking for HPI_SubSysCreate in -lhpi... " >&6; }
15320if ${ac_cv_lib_hpi_HPI_SubSysCreate+:} false; then :
15321  $as_echo_n "(cached) " >&6
15322else
15323  ac_check_lib_save_LIBS=$LIBS
15324LIBS="-lhpi -lm $LIBS"
15325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327
15328/* Override any GCC internal prototype to avoid an error.
15329   Use char because int might match the return type of a GCC
15330   builtin and then its argument prototype would still apply.  */
15331#ifdef __cplusplus
15332extern "C"
15333#endif
15334char HPI_SubSysCreate ();
15335int
15336main ()
15337{
15338return HPI_SubSysCreate ();
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_link "$LINENO"; then :
15344  ac_cv_lib_hpi_HPI_SubSysCreate=yes
15345else
15346  ac_cv_lib_hpi_HPI_SubSysCreate=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext \
15349    conftest$ac_exeext conftest.$ac_ext
15350LIBS=$ac_check_lib_save_LIBS
15351fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
15353$as_echo "$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
15354if test "x$ac_cv_lib_hpi_HPI_SubSysCreate" = xyes; then :
15355  have_asihpi=yes
15356else
15357  have_asihpi=no
15358fi
15359
15360fi
15361have_libossaudio=no
15362have_oss=no
15363if test "x$with_oss" != "xno"; then
15364    for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
15365do :
15366  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15369  cat >>confdefs.h <<_ACEOF
15370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15371_ACEOF
15372 have_oss=yes
15373fi
15374
15375done
15376
15377    if test "x$have_oss" = "xyes"; then
15378        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
15379$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
15380if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
15381  $as_echo_n "(cached) " >&6
15382else
15383  ac_check_lib_save_LIBS=$LIBS
15384LIBS="-lossaudio  $LIBS"
15385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386/* end confdefs.h.  */
15387
15388/* Override any GCC internal prototype to avoid an error.
15389   Use char because int might match the return type of a GCC
15390   builtin and then its argument prototype would still apply.  */
15391#ifdef __cplusplus
15392extern "C"
15393#endif
15394char _oss_ioctl ();
15395int
15396main ()
15397{
15398return _oss_ioctl ();
15399  ;
15400  return 0;
15401}
15402_ACEOF
15403if ac_fn_c_try_link "$LINENO"; then :
15404  ac_cv_lib_ossaudio__oss_ioctl=yes
15405else
15406  ac_cv_lib_ossaudio__oss_ioctl=no
15407fi
15408rm -f core conftest.err conftest.$ac_objext \
15409    conftest$ac_exeext conftest.$ac_ext
15410LIBS=$ac_check_lib_save_LIBS
15411fi
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
15413$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
15414if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
15415  have_libossaudio=yes
15416else
15417  have_libossaudio=no
15418fi
15419
15420    fi
15421fi
15422have_jack=no
15423if test "x$with_jack" != "xno"; then
15424
15425
15426
15427
15428
15429
15430
15431if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15432	if test -n "$ac_tool_prefix"; then
15433  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15434set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15436$as_echo_n "checking for $ac_word... " >&6; }
15437if ${ac_cv_path_PKG_CONFIG+:} false; then :
15438  $as_echo_n "(cached) " >&6
15439else
15440  case $PKG_CONFIG in
15441  [\\/]* | ?:[\\/]*)
15442  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15443  ;;
15444  *)
15445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15446for as_dir in $PATH
15447do
15448  IFS=$as_save_IFS
15449  test -z "$as_dir" && as_dir=.
15450    for ac_exec_ext in '' $ac_executable_extensions; do
15451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15452    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15454    break 2
15455  fi
15456done
15457  done
15458IFS=$as_save_IFS
15459
15460  ;;
15461esac
15462fi
15463PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15464if test -n "$PKG_CONFIG"; then
15465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15466$as_echo "$PKG_CONFIG" >&6; }
15467else
15468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470fi
15471
15472
15473fi
15474if test -z "$ac_cv_path_PKG_CONFIG"; then
15475  ac_pt_PKG_CONFIG=$PKG_CONFIG
15476  # Extract the first word of "pkg-config", so it can be a program name with args.
15477set dummy pkg-config; ac_word=$2
15478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479$as_echo_n "checking for $ac_word... " >&6; }
15480if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15481  $as_echo_n "(cached) " >&6
15482else
15483  case $ac_pt_PKG_CONFIG in
15484  [\\/]* | ?:[\\/]*)
15485  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15486  ;;
15487  *)
15488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489for as_dir in $PATH
15490do
15491  IFS=$as_save_IFS
15492  test -z "$as_dir" && as_dir=.
15493    for ac_exec_ext in '' $ac_executable_extensions; do
15494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15497    break 2
15498  fi
15499done
15500  done
15501IFS=$as_save_IFS
15502
15503  ;;
15504esac
15505fi
15506ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15507if test -n "$ac_pt_PKG_CONFIG"; then
15508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15509$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15510else
15511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15512$as_echo "no" >&6; }
15513fi
15514
15515  if test "x$ac_pt_PKG_CONFIG" = x; then
15516    PKG_CONFIG=""
15517  else
15518    case $cross_compiling:$ac_tool_warned in
15519yes:)
15520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15522ac_tool_warned=yes ;;
15523esac
15524    PKG_CONFIG=$ac_pt_PKG_CONFIG
15525  fi
15526else
15527  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15528fi
15529
15530fi
15531if test -n "$PKG_CONFIG"; then
15532	_pkg_min_version=0.9.0
15533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15534$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15535	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15537$as_echo "yes" >&6; }
15538	else
15539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540$as_echo "no" >&6; }
15541		PKG_CONFIG=""
15542	fi
15543fi
15544
15545pkg_failed=no
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
15547$as_echo_n "checking for JACK... " >&6; }
15548
15549if test -n "$JACK_CFLAGS"; then
15550    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
15551 elif test -n "$PKG_CONFIG"; then
15552    if test -n "$PKG_CONFIG" && \
15553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
15554  ($PKG_CONFIG --exists --print-errors "jack") 2>&5
15555  ac_status=$?
15556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15557  test $ac_status = 0; }; then
15558  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
15559		      test "x$?" != "x0" && pkg_failed=yes
15560else
15561  pkg_failed=yes
15562fi
15563 else
15564    pkg_failed=untried
15565fi
15566if test -n "$JACK_LIBS"; then
15567    pkg_cv_JACK_LIBS="$JACK_LIBS"
15568 elif test -n "$PKG_CONFIG"; then
15569    if test -n "$PKG_CONFIG" && \
15570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
15571  ($PKG_CONFIG --exists --print-errors "jack") 2>&5
15572  ac_status=$?
15573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574  test $ac_status = 0; }; then
15575  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
15576		      test "x$?" != "x0" && pkg_failed=yes
15577else
15578  pkg_failed=yes
15579fi
15580 else
15581    pkg_failed=untried
15582fi
15583
15584
15585
15586if test $pkg_failed = yes; then
15587   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588$as_echo "no" >&6; }
15589
15590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15591        _pkg_short_errors_supported=yes
15592else
15593        _pkg_short_errors_supported=no
15594fi
15595        if test $_pkg_short_errors_supported = yes; then
15596	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1`
15597        else
15598	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1`
15599        fi
15600	# Put the nasty error message in config.log where it belongs
15601	echo "$JACK_PKG_ERRORS" >&5
15602
15603	have_jack=no
15604elif test $pkg_failed = untried; then
15605     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606$as_echo "no" >&6; }
15607	have_jack=no
15608else
15609	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
15610	JACK_LIBS=$pkg_cv_JACK_LIBS
15611        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15612$as_echo "yes" >&6; }
15613	have_jack=yes
15614fi
15615fi
15616
15617
15618
15619# The cast to long int works around a bug in the HP C Compiler
15620# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15621# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15622# This bug is HP SR number 8606223364.
15623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15624$as_echo_n "checking size of short... " >&6; }
15625if ${ac_cv_sizeof_short+:} false; then :
15626  $as_echo_n "(cached) " >&6
15627else
15628  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15629
15630else
15631  if test "$ac_cv_type_short" = yes; then
15632     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15634as_fn_error 77 "cannot compute sizeof (short)
15635See \`config.log' for more details" "$LINENO" 5; }
15636   else
15637     ac_cv_sizeof_short=0
15638   fi
15639fi
15640
15641fi
15642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15643$as_echo "$ac_cv_sizeof_short" >&6; }
15644
15645
15646
15647cat >>confdefs.h <<_ACEOF
15648#define SIZEOF_SHORT $ac_cv_sizeof_short
15649_ACEOF
15650
15651
15652# The cast to long int works around a bug in the HP C Compiler
15653# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15654# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15655# This bug is HP SR number 8606223364.
15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15657$as_echo_n "checking size of int... " >&6; }
15658if ${ac_cv_sizeof_int+:} false; then :
15659  $as_echo_n "(cached) " >&6
15660else
15661  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15662
15663else
15664  if test "$ac_cv_type_int" = yes; then
15665     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15667as_fn_error 77 "cannot compute sizeof (int)
15668See \`config.log' for more details" "$LINENO" 5; }
15669   else
15670     ac_cv_sizeof_int=0
15671   fi
15672fi
15673
15674fi
15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15676$as_echo "$ac_cv_sizeof_int" >&6; }
15677
15678
15679
15680cat >>confdefs.h <<_ACEOF
15681#define SIZEOF_INT $ac_cv_sizeof_int
15682_ACEOF
15683
15684
15685# The cast to long int works around a bug in the HP C Compiler
15686# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15687# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15688# This bug is HP SR number 8606223364.
15689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15690$as_echo_n "checking size of long... " >&6; }
15691if ${ac_cv_sizeof_long+:} false; then :
15692  $as_echo_n "(cached) " >&6
15693else
15694  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15695
15696else
15697  if test "$ac_cv_type_long" = yes; then
15698     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15700as_fn_error 77 "cannot compute sizeof (long)
15701See \`config.log' for more details" "$LINENO" 5; }
15702   else
15703     ac_cv_sizeof_long=0
15704   fi
15705fi
15706
15707fi
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15709$as_echo "$ac_cv_sizeof_long" >&6; }
15710
15711
15712
15713cat >>confdefs.h <<_ACEOF
15714#define SIZEOF_LONG $ac_cv_sizeof_long
15715_ACEOF
15716
15717
15718
15719save_LIBS="${LIBS}"
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15721$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15722if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15723  $as_echo_n "(cached) " >&6
15724else
15725  ac_check_lib_save_LIBS=$LIBS
15726LIBS="-lrt  $LIBS"
15727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728/* end confdefs.h.  */
15729
15730/* Override any GCC internal prototype to avoid an error.
15731   Use char because int might match the return type of a GCC
15732   builtin and then its argument prototype would still apply.  */
15733#ifdef __cplusplus
15734extern "C"
15735#endif
15736char clock_gettime ();
15737int
15738main ()
15739{
15740return clock_gettime ();
15741  ;
15742  return 0;
15743}
15744_ACEOF
15745if ac_fn_c_try_link "$LINENO"; then :
15746  ac_cv_lib_rt_clock_gettime=yes
15747else
15748  ac_cv_lib_rt_clock_gettime=no
15749fi
15750rm -f core conftest.err conftest.$ac_objext \
15751    conftest$ac_exeext conftest.$ac_ext
15752LIBS=$ac_check_lib_save_LIBS
15753fi
15754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15755$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15756if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15757  rt_libs=" -lrt"
15758fi
15759
15760LIBS="${LIBS}${rt_libs}"
15761DLL_LIBS="${DLL_LIBS}${rt_libs}"
15762for ac_func in clock_gettime nanosleep
15763do :
15764  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15765ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15766if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15767  cat >>confdefs.h <<_ACEOF
15768#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15769_ACEOF
15770
15771fi
15772done
15773
15774LIBS="${save_LIBS}"
15775
15776LT_CURRENT=2
15777LT_REVISION=0
15778LT_AGE=0
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
15795      [ "$enable_mac_universal" = "yes" ] &&
15796       [ "$enable_mac_debug" != "yes" ] ; then
15797   CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
15798else
15799   CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
15800fi
15801
15802if [ $ac_cv_c_bigendian = "yes" ] ; then
15803   CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
15804else
15805   CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
15806fi
15807
15808add_objects()
15809{
15810    for o in $@; do
15811        test "${OTHER_OBJS#*${o}*}" = "${OTHER_OBJS}" && OTHER_OBJS="$OTHER_OBJS $o"
15812    done
15813}
15814
15815INCLUDES=portaudio.h
15816
15817CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/src/common"
15818
15819case "${host_os}" in
15820  darwin* )
15821
15822        $as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h
15823
15824
15825        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
15826        LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
15827
15828        if test "x$enable_mac_universal" = "xyes" ; then
15829           case `xcodebuild -version | sed -n 's/Xcode \(.*\)/\1/p'` in
15830
15831           12*|3.0|3.1)
15832                                                                                                                              if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
15833                 mac_version_min="-mmacosx-version-min=10.3"
15834                 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
15835              else
15836                 mac_version_min="-mmacosx-version-min=10.3"
15837                 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
15838              fi
15839              ;;
15840
15841           *)
15842                                                                                    if xcodebuild -version -sdk macosx10.5 Path >/dev/null 2>&1 ; then
15843                 mac_version_min="-mmacosx-version-min=10.3"
15844                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.5 Path`"
15845              elif xcodebuild -version -sdk macosx10.6 Path >/dev/null 2>&1 ; then
15846                 mac_version_min="-mmacosx-version-min=10.4"
15847                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.6 Path`"
15848              elif xcodebuild -version -sdk macosx10.7 Path >/dev/null 2>&1 ; then
15849                 mac_version_min="-mmacosx-version-min=10.4"
15850                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.7 Path`"
15851              elif xcodebuild -version -sdk macosx10.8 Path >/dev/null 2>&1 ; then
15852                 mac_version_min="-mmacosx-version-min=10.4"
15853                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.8 Path`"
15854              elif xcodebuild -version -sdk macosx10.9 Path >/dev/null 2>&1 ; then
15855                 mac_version_min="-mmacosx-version-min=10.4"
15856                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.9 Path`"
15857              elif xcodebuild -version -sdk macosx10.10 Path >/dev/null 2>&1 ; then
15858                 mac_version_min="-mmacosx-version-min=10.4"
15859                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.10 Path`"
15860              elif xcodebuild -version -sdk macosx10.11 Path >/dev/null 2>&1 ; then
15861                 mac_version_min="-mmacosx-version-min=10.4"
15862                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.11 Path`"
15863              elif xcodebuild -version -sdk macosx10.12 Path >/dev/null 2>&1 ; then
15864                 mac_version_min="-mmacosx-version-min=10.4"
15865                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.12 Path`"
15866              else
15867                 as_fn_error $? "Could not find 10.5 to 10.12 SDK." "$LINENO" 5
15868              fi
15869           esac
15870
15871                                 mac_arches=""
15872           for arch in i386 x86_64 ppc ppc64
15873           do
15874              save_CFLAGS="$CFLAGS"
15875              CFLAGS="$CFLAGS -arch $arch"
15876              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h.  */
15878
15879int
15880main ()
15881{
15882return 0;
15883  ;
15884  return 0;
15885}
15886_ACEOF
15887if ac_fn_c_try_compile "$LINENO"; then :
15888
15889                    if [ -z "$mac_arches" ] ; then
15890                       mac_arches="-arch $arch"
15891                    else
15892                       mac_arches="$mac_arches -arch $arch"
15893                    fi
15894
15895fi
15896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897              CFLAGS="$save_CFLAGS"
15898           done
15899        else
15900           mac_arches=""
15901           mac_sysroot=""
15902           mac_version=""
15903        fi
15904        SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
15905        CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
15906        OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
15907        PADLL="libportaudio.dylib"
15908        ;;
15909
15910  mingw* )
15911
15912        PADLL="portaudio.dll"
15913        THREAD_CFLAGS="-mthreads"
15914        SHARED_FLAGS="-shared"
15915        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_WMME=0 -DPA_USE_ASIO=0 -DPA_USE_WDMKS=0 -DPA_USE_DS=0 -DPA_USE_WASAPI=0"
15916
15917        if [ "x$with_directx" = "xyes" ]; then
15918            DXDIR="$with_dxdir"
15919            add_objects src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
15920            LIBS="${LIBS} -lwinmm -lm -ldsound -lole32"
15921            DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -ldsound -lole32"
15922            #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
15923            #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
15924            CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_DS -DPA_USE_DS=1"
15925        fi
15926
15927        if [ "x$with_asio" = "xyes" ]; then
15928            ASIODIR="$with_asiodir"
15929            add_objects src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o
15930            LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
15931            DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid"
15932            CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS"
15933
15934                                                            CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501"
15935
15936            CXXFLAGS="$CFLAGS"
15937        fi
15938
15939        if [ "x$with_wdmks" = "xyes" ]; then
15940            DXDIR="$with_dxdir"
15941            add_objects src/hostapi/wdmks/pa_win_wdmks.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_wdmks_utils.o src/os/win/pa_win_waveformat.o
15942            LIBS="${LIBS} -lwinmm -lm -luuid -lsetupapi -lole32"
15943            DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -luuid -lsetupapi -lole32"
15944            #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
15945            #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
15946            CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_WDMKS -DPA_USE_WDMKS=1"
15947        fi
15948
15949        if [ "x$with_wmme" = "xyes" ]; then
15950            add_objects src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o
15951            LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
15952            DLL_LIBS="${DLL_LIBS} -lwinmm"
15953            CFLAGS="$CFLAGS -UPA_USE_WMME -DPA_USE_WMME=1"
15954        fi
15955
15956        if [ "x$with_wasapi" = "xyes" ]; then
15957            add_objects src/hostapi/wasapi/pa_win_wasapi.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
15958            LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
15959            DLL_LIBS="${DLL_LIBS} -lwinmm -lole32"
15960            CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/wasapi/mingw-include -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
15961        fi
15962        ;;
15963
15964  cygwin* )
15965
15966        OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
15967        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_DS=0 -DPA_USE_WDMKS=0 -DPA_USE_ASIO=0 -DPA_USE_WASAPI=0 -DPA_USE_WMME=1"
15968        LIBS="-lwinmm -lm"
15969        PADLL="portaudio.dll"
15970        THREAD_CFLAGS="-mthreads"
15971        SHARED_FLAGS="-shared"
15972        DLL_LIBS="${DLL_LIBS} -lwinmm"
15973        ;;
15974
15975  irix* )
15976                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15977$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15978if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15979  $as_echo_n "(cached) " >&6
15980else
15981  ac_check_lib_save_LIBS=$LIBS
15982LIBS="-lpthread  $LIBS"
15983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984/* end confdefs.h.  */
15985
15986/* Override any GCC internal prototype to avoid an error.
15987   Use char because int might match the return type of a GCC
15988   builtin and then its argument prototype would still apply.  */
15989#ifdef __cplusplus
15990extern "C"
15991#endif
15992char pthread_create ();
15993int
15994main ()
15995{
15996return pthread_create ();
15997  ;
15998  return 0;
15999}
16000_ACEOF
16001if ac_fn_c_try_link "$LINENO"; then :
16002  ac_cv_lib_pthread_pthread_create=yes
16003else
16004  ac_cv_lib_pthread_pthread_create=no
16005fi
16006rm -f core conftest.err conftest.$ac_objext \
16007    conftest$ac_exeext conftest.$ac_ext
16008LIBS=$ac_check_lib_save_LIBS
16009fi
16010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16011$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16012if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16013  cat >>confdefs.h <<_ACEOF
16014#define HAVE_LIBPTHREAD 1
16015_ACEOF
16016
16017  LIBS="-lpthread $LIBS"
16018
16019else
16020  as_fn_error $? "IRIX posix thread library not found!" "$LINENO" 5
16021fi
16022
16023        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alOpenPort in -laudio" >&5
16024$as_echo_n "checking for alOpenPort in -laudio... " >&6; }
16025if ${ac_cv_lib_audio_alOpenPort+:} false; then :
16026  $as_echo_n "(cached) " >&6
16027else
16028  ac_check_lib_save_LIBS=$LIBS
16029LIBS="-laudio  $LIBS"
16030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032
16033/* Override any GCC internal prototype to avoid an error.
16034   Use char because int might match the return type of a GCC
16035   builtin and then its argument prototype would still apply.  */
16036#ifdef __cplusplus
16037extern "C"
16038#endif
16039char alOpenPort ();
16040int
16041main ()
16042{
16043return alOpenPort ();
16044  ;
16045  return 0;
16046}
16047_ACEOF
16048if ac_fn_c_try_link "$LINENO"; then :
16049  ac_cv_lib_audio_alOpenPort=yes
16050else
16051  ac_cv_lib_audio_alOpenPort=no
16052fi
16053rm -f core conftest.err conftest.$ac_objext \
16054    conftest$ac_exeext conftest.$ac_ext
16055LIBS=$ac_check_lib_save_LIBS
16056fi
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_alOpenPort" >&5
16058$as_echo "$ac_cv_lib_audio_alOpenPort" >&6; }
16059if test "x$ac_cv_lib_audio_alOpenPort" = xyes; then :
16060  cat >>confdefs.h <<_ACEOF
16061#define HAVE_LIBAUDIO 1
16062_ACEOF
16063
16064  LIBS="-laudio $LIBS"
16065
16066else
16067  as_fn_error $? "IRIX audio library not found!" "$LINENO" 5
16068fi
16069
16070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmGetUST in -ldmedia" >&5
16071$as_echo_n "checking for dmGetUST in -ldmedia... " >&6; }
16072if ${ac_cv_lib_dmedia_dmGetUST+:} false; then :
16073  $as_echo_n "(cached) " >&6
16074else
16075  ac_check_lib_save_LIBS=$LIBS
16076LIBS="-ldmedia  $LIBS"
16077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079
16080/* Override any GCC internal prototype to avoid an error.
16081   Use char because int might match the return type of a GCC
16082   builtin and then its argument prototype would still apply.  */
16083#ifdef __cplusplus
16084extern "C"
16085#endif
16086char dmGetUST ();
16087int
16088main ()
16089{
16090return dmGetUST ();
16091  ;
16092  return 0;
16093}
16094_ACEOF
16095if ac_fn_c_try_link "$LINENO"; then :
16096  ac_cv_lib_dmedia_dmGetUST=yes
16097else
16098  ac_cv_lib_dmedia_dmGetUST=no
16099fi
16100rm -f core conftest.err conftest.$ac_objext \
16101    conftest$ac_exeext conftest.$ac_ext
16102LIBS=$ac_check_lib_save_LIBS
16103fi
16104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmedia_dmGetUST" >&5
16105$as_echo "$ac_cv_lib_dmedia_dmGetUST" >&6; }
16106if test "x$ac_cv_lib_dmedia_dmGetUST" = xyes; then :
16107  cat >>confdefs.h <<_ACEOF
16108#define HAVE_LIBDMEDIA 1
16109_ACEOF
16110
16111  LIBS="-ldmedia $LIBS"
16112
16113else
16114  as_fn_error $? "IRIX digital media library not found!" "$LINENO" 5
16115fi
16116
16117
16118                                $as_echo "#define PA_USE_SGI 1" >>confdefs.h
16119
16120
16121        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
16122
16123                        THREAD_CFLAGS="-D_REENTRANT"
16124
16125        OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
16126
16127                        LIBS="-lm -ldmedia -laudio -lpthread"
16128        PADLL="libportaudio.so"
16129        SHARED_FLAGS=""
16130        ;;
16131
16132  *)
16133
16134        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
16135
16136        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16137$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16138if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16139  $as_echo_n "(cached) " >&6
16140else
16141  ac_check_lib_save_LIBS=$LIBS
16142LIBS="-lpthread  $LIBS"
16143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144/* end confdefs.h.  */
16145
16146/* Override any GCC internal prototype to avoid an error.
16147   Use char because int might match the return type of a GCC
16148   builtin and then its argument prototype would still apply.  */
16149#ifdef __cplusplus
16150extern "C"
16151#endif
16152char pthread_create ();
16153int
16154main ()
16155{
16156return pthread_create ();
16157  ;
16158  return 0;
16159}
16160_ACEOF
16161if ac_fn_c_try_link "$LINENO"; then :
16162  ac_cv_lib_pthread_pthread_create=yes
16163else
16164  ac_cv_lib_pthread_pthread_create=no
16165fi
16166rm -f core conftest.err conftest.$ac_objext \
16167    conftest$ac_exeext conftest.$ac_ext
16168LIBS=$ac_check_lib_save_LIBS
16169fi
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16171$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16172if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16173  have_pthread="yes"
16174else
16175  as_fn_error $? "libpthread not found!" "$LINENO" 5
16176fi
16177
16178
16179        if [ "$have_alsa" = "yes" ] && [ "$with_alsa" != "no" ] ; then
16180           DLL_LIBS="$DLL_LIBS -lasound"
16181           LIBS="$LIBS -lasound"
16182           OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
16183           INCLUDES="$INCLUDES pa_linux_alsa.h"
16184           $as_echo "#define PA_USE_ALSA 1" >>confdefs.h
16185
16186        fi
16187
16188        if [ "$have_jack" = "yes" ] && [ "$with_jack" != "no" ] ; then
16189           DLL_LIBS="$DLL_LIBS $JACK_LIBS"
16190           CFLAGS="$CFLAGS $JACK_CFLAGS"
16191           OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
16192           INCLUDES="$INCLUDES pa_jack.h"
16193           $as_echo "#define PA_USE_JACK 1" >>confdefs.h
16194
16195        fi
16196
16197        if [ "$with_oss" != "no" ] ; then
16198           OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
16199           if [ "$have_libossaudio" = "yes" ] ; then
16200                   DLL_LIBS="$DLL_LIBS -lossaudio"
16201                   LIBS="$LIBS -lossaudio"
16202           fi
16203           $as_echo "#define PA_USE_OSS 1" >>confdefs.h
16204
16205        fi
16206
16207        if [ "$have_asihpi" = "yes" ] && [ "$with_asihpi" != "no" ] ; then
16208           LIBS="$LIBS -lhpi"
16209           DLL_LIBS="$DLL_LIBS -lhpi"
16210           OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
16211           $as_echo "#define PA_USE_ASIHPI 1" >>confdefs.h
16212
16213        fi
16214
16215        DLL_LIBS="$DLL_LIBS -lm -lpthread"
16216        LIBS="$LIBS -lm -lpthread"
16217        PADLL="libportaudio.so"
16218
16219        ## support sun cc compiler flags
16220        case "${host_os}" in
16221           solaris*)
16222              SHARED_FLAGS="-G"
16223              THREAD_CFLAGS="-mt"
16224              ;;
16225           *)
16226              SHARED_FLAGS="-fPIC"
16227              THREAD_CFLAGS="-pthread"
16228              ;;
16229        esac
16230
16231        OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
16232esac
16233CFLAGS="$CFLAGS $THREAD_CFLAGS"
16234
16235test "$enable_shared" != "yes" && SHARED_FLAGS=""
16236
16237if test "$enable_cxx" = "yes"; then
16238
16239
16240subdirs="$subdirs bindings/cpp"
16241
16242   ENABLE_CXX_TRUE=""
16243   ENABLE_CXX_FALSE="#"
16244else
16245   ENABLE_CXX_TRUE="#"
16246   ENABLE_CXX_FALSE=""
16247fi
16248
16249
16250
16251if test "x$with_asio" = "xyes"; then
16252   WITH_ASIO_TRUE=""
16253   WITH_ASIO_FALSE="@ #"
16254else
16255   WITH_ASIO_TRUE="@ #"
16256   WITH_ASIO_FALSE=""
16257fi
16258
16259
16260
16261ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
16262
16263cat >confcache <<\_ACEOF
16264# This file is a shell script that caches the results of configure
16265# tests run on this system so they can be shared between configure
16266# scripts and configure runs, see configure's option --config-cache.
16267# It is not useful on other systems.  If it contains results you don't
16268# want to keep, you may remove or edit it.
16269#
16270# config.status only pays attention to the cache file if you give it
16271# the --recheck option to rerun configure.
16272#
16273# `ac_cv_env_foo' variables (set or unset) will be overridden when
16274# loading this file, other *unset* `ac_cv_foo' will be assigned the
16275# following values.
16276
16277_ACEOF
16278
16279# The following way of writing the cache mishandles newlines in values,
16280# but we know of no workaround that is simple, portable, and efficient.
16281# So, we kill variables containing newlines.
16282# Ultrix sh set writes to stderr and can't be redirected directly,
16283# and sets the high bit in the cache file unless we assign to the vars.
16284(
16285  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16286    eval ac_val=\$$ac_var
16287    case $ac_val in #(
16288    *${as_nl}*)
16289      case $ac_var in #(
16290      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16292      esac
16293      case $ac_var in #(
16294      _ | IFS | as_nl) ;; #(
16295      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16296      *) { eval $ac_var=; unset $ac_var;} ;;
16297      esac ;;
16298    esac
16299  done
16300
16301  (set) 2>&1 |
16302    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16303    *${as_nl}ac_space=\ *)
16304      # `set' does not quote correctly, so add quotes: double-quote
16305      # substitution turns \\\\ into \\, and sed turns \\ into \.
16306      sed -n \
16307	"s/'/'\\\\''/g;
16308	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16309      ;; #(
16310    *)
16311      # `set' quotes correctly as required by POSIX, so do not add quotes.
16312      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16313      ;;
16314    esac |
16315    sort
16316) |
16317  sed '
16318     /^ac_cv_env_/b end
16319     t clear
16320     :clear
16321     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16322     t end
16323     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16324     :end' >>confcache
16325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16326  if test -w "$cache_file"; then
16327    if test "x$cache_file" != "x/dev/null"; then
16328      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16329$as_echo "$as_me: updating cache $cache_file" >&6;}
16330      if test ! -f "$cache_file" || test -h "$cache_file"; then
16331	cat confcache >"$cache_file"
16332      else
16333        case $cache_file in #(
16334        */* | ?:*)
16335	  mv -f confcache "$cache_file"$$ &&
16336	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16337        *)
16338	  mv -f confcache "$cache_file" ;;
16339	esac
16340      fi
16341    fi
16342  else
16343    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16344$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16345  fi
16346fi
16347rm -f confcache
16348
16349test "x$prefix" = xNONE && prefix=$ac_default_prefix
16350# Let make expand exec_prefix.
16351test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16352
16353# Transform confdefs.h into DEFS.
16354# Protect against shell expansion while executing Makefile rules.
16355# Protect against Makefile macro expansion.
16356#
16357# If the first sed substitution is executed (which looks for macros that
16358# take arguments), then branch to the quote section.  Otherwise,
16359# look for a macro that doesn't take arguments.
16360ac_script='
16361:mline
16362/\\$/{
16363 N
16364 s,\\\n,,
16365 b mline
16366}
16367t clear
16368:clear
16369s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
16370t quote
16371s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
16372t quote
16373b any
16374:quote
16375s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16376s/\[/\\&/g
16377s/\]/\\&/g
16378s/\$/$$/g
16379H
16380:any
16381${
16382	g
16383	s/^\n//
16384	s/\n/ /g
16385	p
16386}
16387'
16388DEFS=`sed -n "$ac_script" confdefs.h`
16389
16390
16391ac_libobjs=
16392ac_ltlibobjs=
16393U=
16394for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16395  # 1. Remove the extension, and $U if already installed.
16396  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16397  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16398  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16399  #    will be set to the directory where LIBOBJS objects are built.
16400  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16401  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16402done
16403LIBOBJS=$ac_libobjs
16404
16405LTLIBOBJS=$ac_ltlibobjs
16406
16407
16408
16409
16410: "${CONFIG_STATUS=./config.status}"
16411ac_write_fail=0
16412ac_clean_files_save=$ac_clean_files
16413ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16414{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16415$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16416as_write_fail=0
16417cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16418#! $SHELL
16419# Generated by $as_me.
16420# Run this file to recreate the current configuration.
16421# Compiler output produced by configure, useful for debugging
16422# configure, is in config.log if it exists.
16423
16424debug=false
16425ac_cs_recheck=false
16426ac_cs_silent=false
16427
16428SHELL=\${CONFIG_SHELL-$SHELL}
16429export SHELL
16430_ASEOF
16431cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16432## -------------------- ##
16433## M4sh Initialization. ##
16434## -------------------- ##
16435
16436# Be more Bourne compatible
16437DUALCASE=1; export DUALCASE # for MKS sh
16438if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16439  emulate sh
16440  NULLCMD=:
16441  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16442  # is contrary to our usage.  Disable this feature.
16443  alias -g '${1+"$@"}'='"$@"'
16444  setopt NO_GLOB_SUBST
16445else
16446  case `(set -o) 2>/dev/null` in #(
16447  *posix*) :
16448    set -o posix ;; #(
16449  *) :
16450     ;;
16451esac
16452fi
16453
16454
16455as_nl='
16456'
16457export as_nl
16458# Printing a long string crashes Solaris 7 /usr/bin/printf.
16459as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16461as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16462# Prefer a ksh shell builtin over an external printf program on Solaris,
16463# but without wasting forks for bash or zsh.
16464if test -z "$BASH_VERSION$ZSH_VERSION" \
16465    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16466  as_echo='print -r --'
16467  as_echo_n='print -rn --'
16468elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16469  as_echo='printf %s\n'
16470  as_echo_n='printf %s'
16471else
16472  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16473    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16474    as_echo_n='/usr/ucb/echo -n'
16475  else
16476    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16477    as_echo_n_body='eval
16478      arg=$1;
16479      case $arg in #(
16480      *"$as_nl"*)
16481	expr "X$arg" : "X\\(.*\\)$as_nl";
16482	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16483      esac;
16484      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16485    '
16486    export as_echo_n_body
16487    as_echo_n='sh -c $as_echo_n_body as_echo'
16488  fi
16489  export as_echo_body
16490  as_echo='sh -c $as_echo_body as_echo'
16491fi
16492
16493# The user is always right.
16494if test "${PATH_SEPARATOR+set}" != set; then
16495  PATH_SEPARATOR=:
16496  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16497    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16498      PATH_SEPARATOR=';'
16499  }
16500fi
16501
16502
16503# IFS
16504# We need space, tab and new line, in precisely that order.  Quoting is
16505# there to prevent editors from complaining about space-tab.
16506# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16507# splitting by setting IFS to empty value.)
16508IFS=" ""	$as_nl"
16509
16510# Find who we are.  Look in the path if we contain no directory separator.
16511as_myself=
16512case $0 in #((
16513  *[\\/]* ) as_myself=$0 ;;
16514  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515for as_dir in $PATH
16516do
16517  IFS=$as_save_IFS
16518  test -z "$as_dir" && as_dir=.
16519    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16520  done
16521IFS=$as_save_IFS
16522
16523     ;;
16524esac
16525# We did not find ourselves, most probably we were run as `sh COMMAND'
16526# in which case we are not to be found in the path.
16527if test "x$as_myself" = x; then
16528  as_myself=$0
16529fi
16530if test ! -f "$as_myself"; then
16531  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16532  exit 1
16533fi
16534
16535# Unset variables that we do not need and which cause bugs (e.g. in
16536# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16537# suppresses any "Segmentation fault" message there.  '((' could
16538# trigger a bug in pdksh 5.2.14.
16539for as_var in BASH_ENV ENV MAIL MAILPATH
16540do eval test x\${$as_var+set} = xset \
16541  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16542done
16543PS1='$ '
16544PS2='> '
16545PS4='+ '
16546
16547# NLS nuisances.
16548LC_ALL=C
16549export LC_ALL
16550LANGUAGE=C
16551export LANGUAGE
16552
16553# CDPATH.
16554(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16555
16556
16557# as_fn_error STATUS ERROR [LINENO LOG_FD]
16558# ----------------------------------------
16559# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16560# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16561# script with STATUS, using 1 if that was 0.
16562as_fn_error ()
16563{
16564  as_status=$1; test $as_status -eq 0 && as_status=1
16565  if test "$4"; then
16566    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16567    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16568  fi
16569  $as_echo "$as_me: error: $2" >&2
16570  as_fn_exit $as_status
16571} # as_fn_error
16572
16573
16574# as_fn_set_status STATUS
16575# -----------------------
16576# Set $? to STATUS, without forking.
16577as_fn_set_status ()
16578{
16579  return $1
16580} # as_fn_set_status
16581
16582# as_fn_exit STATUS
16583# -----------------
16584# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16585as_fn_exit ()
16586{
16587  set +e
16588  as_fn_set_status $1
16589  exit $1
16590} # as_fn_exit
16591
16592# as_fn_unset VAR
16593# ---------------
16594# Portably unset VAR.
16595as_fn_unset ()
16596{
16597  { eval $1=; unset $1;}
16598}
16599as_unset=as_fn_unset
16600# as_fn_append VAR VALUE
16601# ----------------------
16602# Append the text in VALUE to the end of the definition contained in VAR. Take
16603# advantage of any shell optimizations that allow amortized linear growth over
16604# repeated appends, instead of the typical quadratic growth present in naive
16605# implementations.
16606if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16607  eval 'as_fn_append ()
16608  {
16609    eval $1+=\$2
16610  }'
16611else
16612  as_fn_append ()
16613  {
16614    eval $1=\$$1\$2
16615  }
16616fi # as_fn_append
16617
16618# as_fn_arith ARG...
16619# ------------------
16620# Perform arithmetic evaluation on the ARGs, and store the result in the
16621# global $as_val. Take advantage of shells that can avoid forks. The arguments
16622# must be portable across $(()) and expr.
16623if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16624  eval 'as_fn_arith ()
16625  {
16626    as_val=$(( $* ))
16627  }'
16628else
16629  as_fn_arith ()
16630  {
16631    as_val=`expr "$@" || test $? -eq 1`
16632  }
16633fi # as_fn_arith
16634
16635
16636if expr a : '\(a\)' >/dev/null 2>&1 &&
16637   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16638  as_expr=expr
16639else
16640  as_expr=false
16641fi
16642
16643if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16644  as_basename=basename
16645else
16646  as_basename=false
16647fi
16648
16649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16650  as_dirname=dirname
16651else
16652  as_dirname=false
16653fi
16654
16655as_me=`$as_basename -- "$0" ||
16656$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16657	 X"$0" : 'X\(//\)$' \| \
16658	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16659$as_echo X/"$0" |
16660    sed '/^.*\/\([^/][^/]*\)\/*$/{
16661	    s//\1/
16662	    q
16663	  }
16664	  /^X\/\(\/\/\)$/{
16665	    s//\1/
16666	    q
16667	  }
16668	  /^X\/\(\/\).*/{
16669	    s//\1/
16670	    q
16671	  }
16672	  s/.*/./; q'`
16673
16674# Avoid depending upon Character Ranges.
16675as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16676as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16677as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16678as_cr_digits='0123456789'
16679as_cr_alnum=$as_cr_Letters$as_cr_digits
16680
16681ECHO_C= ECHO_N= ECHO_T=
16682case `echo -n x` in #(((((
16683-n*)
16684  case `echo 'xy\c'` in
16685  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16686  xy)  ECHO_C='\c';;
16687  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16688       ECHO_T='	';;
16689  esac;;
16690*)
16691  ECHO_N='-n';;
16692esac
16693
16694rm -f conf$$ conf$$.exe conf$$.file
16695if test -d conf$$.dir; then
16696  rm -f conf$$.dir/conf$$.file
16697else
16698  rm -f conf$$.dir
16699  mkdir conf$$.dir 2>/dev/null
16700fi
16701if (echo >conf$$.file) 2>/dev/null; then
16702  if ln -s conf$$.file conf$$ 2>/dev/null; then
16703    as_ln_s='ln -s'
16704    # ... but there are two gotchas:
16705    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16706    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16707    # In both cases, we have to default to `cp -pR'.
16708    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16709      as_ln_s='cp -pR'
16710  elif ln conf$$.file conf$$ 2>/dev/null; then
16711    as_ln_s=ln
16712  else
16713    as_ln_s='cp -pR'
16714  fi
16715else
16716  as_ln_s='cp -pR'
16717fi
16718rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16719rmdir conf$$.dir 2>/dev/null
16720
16721
16722# as_fn_mkdir_p
16723# -------------
16724# Create "$as_dir" as a directory, including parents if necessary.
16725as_fn_mkdir_p ()
16726{
16727
16728  case $as_dir in #(
16729  -*) as_dir=./$as_dir;;
16730  esac
16731  test -d "$as_dir" || eval $as_mkdir_p || {
16732    as_dirs=
16733    while :; do
16734      case $as_dir in #(
16735      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16736      *) as_qdir=$as_dir;;
16737      esac
16738      as_dirs="'$as_qdir' $as_dirs"
16739      as_dir=`$as_dirname -- "$as_dir" ||
16740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16741	 X"$as_dir" : 'X\(//\)[^/]' \| \
16742	 X"$as_dir" : 'X\(//\)$' \| \
16743	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16744$as_echo X"$as_dir" |
16745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16746	    s//\1/
16747	    q
16748	  }
16749	  /^X\(\/\/\)[^/].*/{
16750	    s//\1/
16751	    q
16752	  }
16753	  /^X\(\/\/\)$/{
16754	    s//\1/
16755	    q
16756	  }
16757	  /^X\(\/\).*/{
16758	    s//\1/
16759	    q
16760	  }
16761	  s/.*/./; q'`
16762      test -d "$as_dir" && break
16763    done
16764    test -z "$as_dirs" || eval "mkdir $as_dirs"
16765  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16766
16767
16768} # as_fn_mkdir_p
16769if mkdir -p . 2>/dev/null; then
16770  as_mkdir_p='mkdir -p "$as_dir"'
16771else
16772  test -d ./-p && rmdir ./-p
16773  as_mkdir_p=false
16774fi
16775
16776
16777# as_fn_executable_p FILE
16778# -----------------------
16779# Test if FILE is an executable regular file.
16780as_fn_executable_p ()
16781{
16782  test -f "$1" && test -x "$1"
16783} # as_fn_executable_p
16784as_test_x='test -x'
16785as_executable_p=as_fn_executable_p
16786
16787# Sed expression to map a string onto a valid CPP name.
16788as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16789
16790# Sed expression to map a string onto a valid variable name.
16791as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16792
16793
16794exec 6>&1
16795## ----------------------------------- ##
16796## Main body of $CONFIG_STATUS script. ##
16797## ----------------------------------- ##
16798_ASEOF
16799test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16800
16801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16802# Save the log message, to keep $0 and so on meaningful, and to
16803# report actual input values of CONFIG_FILES etc. instead of their
16804# values after options handling.
16805ac_log="
16806This file was extended by $as_me, which was
16807generated by GNU Autoconf 2.69.  Invocation command line was
16808
16809  CONFIG_FILES    = $CONFIG_FILES
16810  CONFIG_HEADERS  = $CONFIG_HEADERS
16811  CONFIG_LINKS    = $CONFIG_LINKS
16812  CONFIG_COMMANDS = $CONFIG_COMMANDS
16813  $ $0 $@
16814
16815on `(hostname || uname -n) 2>/dev/null | sed 1q`
16816"
16817
16818_ACEOF
16819
16820case $ac_config_files in *"
16821"*) set x $ac_config_files; shift; ac_config_files=$*;;
16822esac
16823
16824
16825
16826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827# Files that config.status was made for.
16828config_files="$ac_config_files"
16829config_commands="$ac_config_commands"
16830
16831_ACEOF
16832
16833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16834ac_cs_usage="\
16835\`$as_me' instantiates files and other configuration actions
16836from templates according to the current configuration.  Unless the files
16837and actions are specified as TAGs, all are instantiated by default.
16838
16839Usage: $0 [OPTION]... [TAG]...
16840
16841  -h, --help       print this help, then exit
16842  -V, --version    print version number and configuration settings, then exit
16843      --config     print configuration, then exit
16844  -q, --quiet, --silent
16845                   do not print progress messages
16846  -d, --debug      don't remove temporary files
16847      --recheck    update $as_me by reconfiguring in the same conditions
16848      --file=FILE[:TEMPLATE]
16849                   instantiate the configuration file FILE
16850
16851Configuration files:
16852$config_files
16853
16854Configuration commands:
16855$config_commands
16856
16857Report bugs to the package provider."
16858
16859_ACEOF
16860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16861ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16862ac_cs_version="\\
16863config.status
16864configured by $0, generated by GNU Autoconf 2.69,
16865  with options \\"\$ac_cs_config\\"
16866
16867Copyright (C) 2012 Free Software Foundation, Inc.
16868This config.status script is free software; the Free Software Foundation
16869gives unlimited permission to copy, distribute and modify it."
16870
16871ac_pwd='$ac_pwd'
16872srcdir='$srcdir'
16873INSTALL='$INSTALL'
16874AWK='$AWK'
16875test -n "\$AWK" || AWK=awk
16876_ACEOF
16877
16878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16879# The default lists apply if the user does not specify any file.
16880ac_need_defaults=:
16881while test $# != 0
16882do
16883  case $1 in
16884  --*=?*)
16885    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16886    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16887    ac_shift=:
16888    ;;
16889  --*=)
16890    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16891    ac_optarg=
16892    ac_shift=:
16893    ;;
16894  *)
16895    ac_option=$1
16896    ac_optarg=$2
16897    ac_shift=shift
16898    ;;
16899  esac
16900
16901  case $ac_option in
16902  # Handling of the options.
16903  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16904    ac_cs_recheck=: ;;
16905  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16906    $as_echo "$ac_cs_version"; exit ;;
16907  --config | --confi | --conf | --con | --co | --c )
16908    $as_echo "$ac_cs_config"; exit ;;
16909  --debug | --debu | --deb | --de | --d | -d )
16910    debug=: ;;
16911  --file | --fil | --fi | --f )
16912    $ac_shift
16913    case $ac_optarg in
16914    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16915    '') as_fn_error $? "missing file argument" ;;
16916    esac
16917    as_fn_append CONFIG_FILES " '$ac_optarg'"
16918    ac_need_defaults=false;;
16919  --he | --h |  --help | --hel | -h )
16920    $as_echo "$ac_cs_usage"; exit ;;
16921  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16922  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16923    ac_cs_silent=: ;;
16924
16925  # This is an error.
16926  -*) as_fn_error $? "unrecognized option: \`$1'
16927Try \`$0 --help' for more information." ;;
16928
16929  *) as_fn_append ac_config_targets " $1"
16930     ac_need_defaults=false ;;
16931
16932  esac
16933  shift
16934done
16935
16936ac_configure_extra_args=
16937
16938if $ac_cs_silent; then
16939  exec 6>/dev/null
16940  ac_configure_extra_args="$ac_configure_extra_args --silent"
16941fi
16942
16943_ACEOF
16944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16945if \$ac_cs_recheck; then
16946  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16947  shift
16948  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16949  CONFIG_SHELL='$SHELL'
16950  export CONFIG_SHELL
16951  exec "\$@"
16952fi
16953
16954_ACEOF
16955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16956exec 5>>config.log
16957{
16958  echo
16959  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16960## Running $as_me. ##
16961_ASBOX
16962  $as_echo "$ac_log"
16963} >&5
16964
16965_ACEOF
16966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16967#
16968# INIT-COMMANDS
16969#
16970
16971
16972# The HP-UX ksh and POSIX shell print the target directory to stdout
16973# if CDPATH is set.
16974(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16975
16976sed_quote_subst='$sed_quote_subst'
16977double_quote_subst='$double_quote_subst'
16978delay_variable_subst='$delay_variable_subst'
16979AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16980DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16981OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16982macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16983macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16984enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16985enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16986pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16987enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16988SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16989ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16990PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16991host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16992host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16993host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16994build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16995build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16996build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16997SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16998Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16999GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17000EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17001FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17002LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17003NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17004LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17005max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17006ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17007exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17008lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17009lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17010lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17011lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17012lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17013reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17014reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17015deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17016file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17017file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17018want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17019sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17020AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17021AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17022archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17023STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17024RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17025old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17026old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17027old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17028lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17029CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17030CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17031compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17032GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17033lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17034lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17035lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17036lt_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"`'
17037nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17038lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17039objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17040MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17041lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17042lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17043lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17044lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17045lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17046need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17047MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17048DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17049NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17050LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17051OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17052OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17053libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17054shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17055extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17056archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17057enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17058export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17059whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17060compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17061old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17062old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17063archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17064archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17065module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17066module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17067with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17068allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17069no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17070hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17071hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17072hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17073hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17074hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17075hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17076hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17077inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17078link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17079always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17080export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17081exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17082include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17083prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17084postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17085file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17086variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17087need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17088need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17089version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17090runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17091shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17092shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17093libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17094library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17095soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17096install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17097postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17098postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17099finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17100finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17101hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17102sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17103sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17104hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17105enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17106enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17107enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17108old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17109striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17110compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17111predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17112postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17113predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17114postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17115compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17116LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17117reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17118reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17119old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17120compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17121GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17122lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17123lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17124lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17125lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17126lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17127archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17128enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17129export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17130whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17131compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17132old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17133old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17134archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17135archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17136module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17137module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17138with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17139allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17140no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17141hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17142hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17143hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17144hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17145hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17146hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17147hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17148inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17149link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17150always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17151export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17152exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17153include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17154prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17155postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17156file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17157hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17158compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17159predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17160postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17161predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17162postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17163compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17164
17165LTCC='$LTCC'
17166LTCFLAGS='$LTCFLAGS'
17167compiler='$compiler_DEFAULT'
17168
17169# A function that is used when there is no print builtin or printf.
17170func_fallback_echo ()
17171{
17172  eval 'cat <<_LTECHO_EOF
17173\$1
17174_LTECHO_EOF'
17175}
17176
17177# Quote evaled strings.
17178for var in AS \
17179DLLTOOL \
17180OBJDUMP \
17181SHELL \
17182ECHO \
17183PATH_SEPARATOR \
17184SED \
17185GREP \
17186EGREP \
17187FGREP \
17188LD \
17189NM \
17190LN_S \
17191lt_SP2NL \
17192lt_NL2SP \
17193reload_flag \
17194deplibs_check_method \
17195file_magic_cmd \
17196file_magic_glob \
17197want_nocaseglob \
17198sharedlib_from_linklib_cmd \
17199AR \
17200AR_FLAGS \
17201archiver_list_spec \
17202STRIP \
17203RANLIB \
17204CC \
17205CFLAGS \
17206compiler \
17207lt_cv_sys_global_symbol_pipe \
17208lt_cv_sys_global_symbol_to_cdecl \
17209lt_cv_sys_global_symbol_to_c_name_address \
17210lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17211nm_file_list_spec \
17212lt_prog_compiler_no_builtin_flag \
17213lt_prog_compiler_pic \
17214lt_prog_compiler_wl \
17215lt_prog_compiler_static \
17216lt_cv_prog_compiler_c_o \
17217need_locks \
17218MANIFEST_TOOL \
17219DSYMUTIL \
17220NMEDIT \
17221LIPO \
17222OTOOL \
17223OTOOL64 \
17224shrext_cmds \
17225export_dynamic_flag_spec \
17226whole_archive_flag_spec \
17227compiler_needs_object \
17228with_gnu_ld \
17229allow_undefined_flag \
17230no_undefined_flag \
17231hardcode_libdir_flag_spec \
17232hardcode_libdir_separator \
17233exclude_expsyms \
17234include_expsyms \
17235file_list_spec \
17236variables_saved_for_relink \
17237libname_spec \
17238library_names_spec \
17239soname_spec \
17240install_override_mode \
17241finish_eval \
17242old_striplib \
17243striplib \
17244compiler_lib_search_dirs \
17245predep_objects \
17246postdep_objects \
17247predeps \
17248postdeps \
17249compiler_lib_search_path \
17250LD_CXX \
17251reload_flag_CXX \
17252compiler_CXX \
17253lt_prog_compiler_no_builtin_flag_CXX \
17254lt_prog_compiler_pic_CXX \
17255lt_prog_compiler_wl_CXX \
17256lt_prog_compiler_static_CXX \
17257lt_cv_prog_compiler_c_o_CXX \
17258export_dynamic_flag_spec_CXX \
17259whole_archive_flag_spec_CXX \
17260compiler_needs_object_CXX \
17261with_gnu_ld_CXX \
17262allow_undefined_flag_CXX \
17263no_undefined_flag_CXX \
17264hardcode_libdir_flag_spec_CXX \
17265hardcode_libdir_separator_CXX \
17266exclude_expsyms_CXX \
17267include_expsyms_CXX \
17268file_list_spec_CXX \
17269compiler_lib_search_dirs_CXX \
17270predep_objects_CXX \
17271postdep_objects_CXX \
17272predeps_CXX \
17273postdeps_CXX \
17274compiler_lib_search_path_CXX; do
17275    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17276    *[\\\\\\\`\\"\\\$]*)
17277      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17278      ;;
17279    *)
17280      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17281      ;;
17282    esac
17283done
17284
17285# Double-quote double-evaled strings.
17286for var in reload_cmds \
17287old_postinstall_cmds \
17288old_postuninstall_cmds \
17289old_archive_cmds \
17290extract_expsyms_cmds \
17291old_archive_from_new_cmds \
17292old_archive_from_expsyms_cmds \
17293archive_cmds \
17294archive_expsym_cmds \
17295module_cmds \
17296module_expsym_cmds \
17297export_symbols_cmds \
17298prelink_cmds \
17299postlink_cmds \
17300postinstall_cmds \
17301postuninstall_cmds \
17302finish_cmds \
17303sys_lib_search_path_spec \
17304sys_lib_dlsearch_path_spec \
17305reload_cmds_CXX \
17306old_archive_cmds_CXX \
17307old_archive_from_new_cmds_CXX \
17308old_archive_from_expsyms_cmds_CXX \
17309archive_cmds_CXX \
17310archive_expsym_cmds_CXX \
17311module_cmds_CXX \
17312module_expsym_cmds_CXX \
17313export_symbols_cmds_CXX \
17314prelink_cmds_CXX \
17315postlink_cmds_CXX; do
17316    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17317    *[\\\\\\\`\\"\\\$]*)
17318      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17319      ;;
17320    *)
17321      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17322      ;;
17323    esac
17324done
17325
17326ac_aux_dir='$ac_aux_dir'
17327xsi_shell='$xsi_shell'
17328lt_shell_append='$lt_shell_append'
17329
17330# See if we are running on zsh, and set the options which allow our
17331# commands through without removal of \ escapes INIT.
17332if test -n "\${ZSH_VERSION+set}" ; then
17333   setopt NO_GLOB_SUBST
17334fi
17335
17336
17337    PACKAGE='$PACKAGE'
17338    VERSION='$VERSION'
17339    TIMESTAMP='$TIMESTAMP'
17340    RM='$RM'
17341    ofile='$ofile'
17342
17343
17344
17345
17346
17347
17348_ACEOF
17349
17350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17351
17352# Handling of arguments.
17353for ac_config_target in $ac_config_targets
17354do
17355  case $ac_config_target in
17356    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17357    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17358    "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
17359
17360  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17361  esac
17362done
17363
17364
17365# If the user did not use the arguments to specify the items to instantiate,
17366# then the envvar interface is used.  Set only those that are not.
17367# We use the long form for the default assignment because of an extremely
17368# bizarre bug on SunOS 4.1.3.
17369if $ac_need_defaults; then
17370  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17371  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17372fi
17373
17374# Have a temporary directory for convenience.  Make it in the build tree
17375# simply because there is no reason against having it here, and in addition,
17376# creating and moving files from /tmp can sometimes cause problems.
17377# Hook for its removal unless debugging.
17378# Note that there is a small window in which the directory will not be cleaned:
17379# after its creation but before its name has been assigned to `$tmp'.
17380$debug ||
17381{
17382  tmp= ac_tmp=
17383  trap 'exit_status=$?
17384  : "${ac_tmp:=$tmp}"
17385  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17386' 0
17387  trap 'as_fn_exit 1' 1 2 13 15
17388}
17389# Create a (secure) tmp directory for tmp files.
17390
17391{
17392  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17393  test -d "$tmp"
17394}  ||
17395{
17396  tmp=./conf$$-$RANDOM
17397  (umask 077 && mkdir "$tmp")
17398} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17399ac_tmp=$tmp
17400
17401# Set up the scripts for CONFIG_FILES section.
17402# No need to generate them if there are no CONFIG_FILES.
17403# This happens for instance with `./config.status config.h'.
17404if test -n "$CONFIG_FILES"; then
17405
17406
17407ac_cr=`echo X | tr X '\015'`
17408# On cygwin, bash can eat \r inside `` if the user requested igncr.
17409# But we know of no other shell where ac_cr would be empty at this
17410# point, so we can use a bashism as a fallback.
17411if test "x$ac_cr" = x; then
17412  eval ac_cr=\$\'\\r\'
17413fi
17414ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17415if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17416  ac_cs_awk_cr='\\r'
17417else
17418  ac_cs_awk_cr=$ac_cr
17419fi
17420
17421echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17422_ACEOF
17423
17424
17425{
17426  echo "cat >conf$$subs.awk <<_ACEOF" &&
17427  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17428  echo "_ACEOF"
17429} >conf$$subs.sh ||
17430  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17431ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17432ac_delim='%!_!# '
17433for ac_last_try in false false false false false :; do
17434  . ./conf$$subs.sh ||
17435    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17436
17437  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17438  if test $ac_delim_n = $ac_delim_num; then
17439    break
17440  elif $ac_last_try; then
17441    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17442  else
17443    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17444  fi
17445done
17446rm -f conf$$subs.sh
17447
17448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17449cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17450_ACEOF
17451sed -n '
17452h
17453s/^/S["/; s/!.*/"]=/
17454p
17455g
17456s/^[^!]*!//
17457:repl
17458t repl
17459s/'"$ac_delim"'$//
17460t delim
17461:nl
17462h
17463s/\(.\{148\}\)..*/\1/
17464t more1
17465s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17466p
17467n
17468b repl
17469:more1
17470s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17471p
17472g
17473s/.\{148\}//
17474t nl
17475:delim
17476h
17477s/\(.\{148\}\)..*/\1/
17478t more2
17479s/["\\]/\\&/g; s/^/"/; s/$/"/
17480p
17481b
17482:more2
17483s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17484p
17485g
17486s/.\{148\}//
17487t delim
17488' <conf$$subs.awk | sed '
17489/^[^""]/{
17490  N
17491  s/\n//
17492}
17493' >>$CONFIG_STATUS || ac_write_fail=1
17494rm -f conf$$subs.awk
17495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496_ACAWK
17497cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17498  for (key in S) S_is_set[key] = 1
17499  FS = ""
17500
17501}
17502{
17503  line = $ 0
17504  nfields = split(line, field, "@")
17505  substed = 0
17506  len = length(field[1])
17507  for (i = 2; i < nfields; i++) {
17508    key = field[i]
17509    keylen = length(key)
17510    if (S_is_set[key]) {
17511      value = S[key]
17512      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17513      len += length(value) + length(field[++i])
17514      substed = 1
17515    } else
17516      len += 1 + keylen
17517  }
17518
17519  print line
17520}
17521
17522_ACAWK
17523_ACEOF
17524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17526  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17527else
17528  cat
17529fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17530  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17531_ACEOF
17532
17533# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17534# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17535# trailing colons and then remove the whole line if VPATH becomes empty
17536# (actually we leave an empty line to preserve line numbers).
17537if test "x$srcdir" = x.; then
17538  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17539h
17540s///
17541s/^/:/
17542s/[	 ]*$/:/
17543s/:\$(srcdir):/:/g
17544s/:\${srcdir}:/:/g
17545s/:@srcdir@:/:/g
17546s/^:*//
17547s/:*$//
17548x
17549s/\(=[	 ]*\).*/\1/
17550G
17551s/\n//
17552s/^[^=]*=[	 ]*$//
17553}'
17554fi
17555
17556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557fi # test -n "$CONFIG_FILES"
17558
17559
17560eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
17561shift
17562for ac_tag
17563do
17564  case $ac_tag in
17565  :[FHLC]) ac_mode=$ac_tag; continue;;
17566  esac
17567  case $ac_mode$ac_tag in
17568  :[FHL]*:*);;
17569  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17570  :[FH]-) ac_tag=-:-;;
17571  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17572  esac
17573  ac_save_IFS=$IFS
17574  IFS=:
17575  set x $ac_tag
17576  IFS=$ac_save_IFS
17577  shift
17578  ac_file=$1
17579  shift
17580
17581  case $ac_mode in
17582  :L) ac_source=$1;;
17583  :[FH])
17584    ac_file_inputs=
17585    for ac_f
17586    do
17587      case $ac_f in
17588      -) ac_f="$ac_tmp/stdin";;
17589      *) # Look for the file first in the build tree, then in the source tree
17590	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17591	 # because $ac_f cannot contain `:'.
17592	 test -f "$ac_f" ||
17593	   case $ac_f in
17594	   [\\/$]*) false;;
17595	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17596	   esac ||
17597	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17598      esac
17599      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17600      as_fn_append ac_file_inputs " '$ac_f'"
17601    done
17602
17603    # Let's still pretend it is `configure' which instantiates (i.e., don't
17604    # use $as_me), people would be surprised to read:
17605    #    /* config.h.  Generated by config.status.  */
17606    configure_input='Generated from '`
17607	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17608	`' by configure.'
17609    if test x"$ac_file" != x-; then
17610      configure_input="$ac_file.  $configure_input"
17611      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17612$as_echo "$as_me: creating $ac_file" >&6;}
17613    fi
17614    # Neutralize special characters interpreted by sed in replacement strings.
17615    case $configure_input in #(
17616    *\&* | *\|* | *\\* )
17617       ac_sed_conf_input=`$as_echo "$configure_input" |
17618       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17619    *) ac_sed_conf_input=$configure_input;;
17620    esac
17621
17622    case $ac_tag in
17623    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17624      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17625    esac
17626    ;;
17627  esac
17628
17629  ac_dir=`$as_dirname -- "$ac_file" ||
17630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17631	 X"$ac_file" : 'X\(//\)[^/]' \| \
17632	 X"$ac_file" : 'X\(//\)$' \| \
17633	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17634$as_echo X"$ac_file" |
17635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17636	    s//\1/
17637	    q
17638	  }
17639	  /^X\(\/\/\)[^/].*/{
17640	    s//\1/
17641	    q
17642	  }
17643	  /^X\(\/\/\)$/{
17644	    s//\1/
17645	    q
17646	  }
17647	  /^X\(\/\).*/{
17648	    s//\1/
17649	    q
17650	  }
17651	  s/.*/./; q'`
17652  as_dir="$ac_dir"; as_fn_mkdir_p
17653  ac_builddir=.
17654
17655case "$ac_dir" in
17656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17657*)
17658  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17659  # A ".." for each directory in $ac_dir_suffix.
17660  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17661  case $ac_top_builddir_sub in
17662  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17663  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17664  esac ;;
17665esac
17666ac_abs_top_builddir=$ac_pwd
17667ac_abs_builddir=$ac_pwd$ac_dir_suffix
17668# for backward compatibility:
17669ac_top_builddir=$ac_top_build_prefix
17670
17671case $srcdir in
17672  .)  # We are building in place.
17673    ac_srcdir=.
17674    ac_top_srcdir=$ac_top_builddir_sub
17675    ac_abs_top_srcdir=$ac_pwd ;;
17676  [\\/]* | ?:[\\/]* )  # Absolute name.
17677    ac_srcdir=$srcdir$ac_dir_suffix;
17678    ac_top_srcdir=$srcdir
17679    ac_abs_top_srcdir=$srcdir ;;
17680  *) # Relative name.
17681    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17682    ac_top_srcdir=$ac_top_build_prefix$srcdir
17683    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17684esac
17685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17686
17687
17688  case $ac_mode in
17689  :F)
17690  #
17691  # CONFIG_FILE
17692  #
17693
17694  case $INSTALL in
17695  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17696  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17697  esac
17698_ACEOF
17699
17700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17701# If the template does not know about datarootdir, expand it.
17702# FIXME: This hack should be removed a few years after 2.60.
17703ac_datarootdir_hack=; ac_datarootdir_seen=
17704ac_sed_dataroot='
17705/datarootdir/ {
17706  p
17707  q
17708}
17709/@datadir@/p
17710/@docdir@/p
17711/@infodir@/p
17712/@localedir@/p
17713/@mandir@/p'
17714case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17715*datarootdir*) ac_datarootdir_seen=yes;;
17716*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17717  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17718$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17719_ACEOF
17720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17721  ac_datarootdir_hack='
17722  s&@datadir@&$datadir&g
17723  s&@docdir@&$docdir&g
17724  s&@infodir@&$infodir&g
17725  s&@localedir@&$localedir&g
17726  s&@mandir@&$mandir&g
17727  s&\\\${datarootdir}&$datarootdir&g' ;;
17728esac
17729_ACEOF
17730
17731# Neutralize VPATH when `$srcdir' = `.'.
17732# Shell code in configure.ac might set extrasub.
17733# FIXME: do we really want to maintain this feature?
17734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17735ac_sed_extra="$ac_vpsub
17736$extrasub
17737_ACEOF
17738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17739:t
17740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17741s|@configure_input@|$ac_sed_conf_input|;t t
17742s&@top_builddir@&$ac_top_builddir_sub&;t t
17743s&@top_build_prefix@&$ac_top_build_prefix&;t t
17744s&@srcdir@&$ac_srcdir&;t t
17745s&@abs_srcdir@&$ac_abs_srcdir&;t t
17746s&@top_srcdir@&$ac_top_srcdir&;t t
17747s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17748s&@builddir@&$ac_builddir&;t t
17749s&@abs_builddir@&$ac_abs_builddir&;t t
17750s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17751s&@INSTALL@&$ac_INSTALL&;t t
17752$ac_datarootdir_hack
17753"
17754eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17755  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17756
17757test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17758  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17759  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17760      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17761  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17762which seems to be undefined.  Please make sure it is defined" >&5
17763$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17764which seems to be undefined.  Please make sure it is defined" >&2;}
17765
17766  rm -f "$ac_tmp/stdin"
17767  case $ac_file in
17768  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17769  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17770  esac \
17771  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17772 ;;
17773
17774
17775  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17776$as_echo "$as_me: executing $ac_file commands" >&6;}
17777 ;;
17778  esac
17779
17780
17781  case $ac_file$ac_mode in
17782    "libtool":C)
17783
17784    # See if we are running on zsh, and set the options which allow our
17785    # commands through without removal of \ escapes.
17786    if test -n "${ZSH_VERSION+set}" ; then
17787      setopt NO_GLOB_SUBST
17788    fi
17789
17790    cfgfile="${ofile}T"
17791    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17792    $RM "$cfgfile"
17793
17794    cat <<_LT_EOF >> "$cfgfile"
17795#! $SHELL
17796
17797# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17798# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17799# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17800# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17801#
17802#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17803#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17804#                 Foundation, Inc.
17805#   Written by Gordon Matzigkeit, 1996
17806#
17807#   This file is part of GNU Libtool.
17808#
17809# GNU Libtool is free software; you can redistribute it and/or
17810# modify it under the terms of the GNU General Public License as
17811# published by the Free Software Foundation; either version 2 of
17812# the License, or (at your option) any later version.
17813#
17814# As a special exception to the GNU General Public License,
17815# if you distribute this file as part of a program or library that
17816# is built using GNU Libtool, you may include this file under the
17817# same distribution terms that you use for the rest of that program.
17818#
17819# GNU Libtool is distributed in the hope that it will be useful,
17820# but WITHOUT ANY WARRANTY; without even the implied warranty of
17821# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17822# GNU General Public License for more details.
17823#
17824# You should have received a copy of the GNU General Public License
17825# along with GNU Libtool; see the file COPYING.  If not, a copy
17826# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17827# obtained by writing to the Free Software Foundation, Inc.,
17828# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17829
17830
17831# The names of the tagged configurations supported by this script.
17832available_tags="CXX "
17833
17834# ### BEGIN LIBTOOL CONFIG
17835
17836# Assembler program.
17837AS=$lt_AS
17838
17839# DLL creation program.
17840DLLTOOL=$lt_DLLTOOL
17841
17842# Object dumper program.
17843OBJDUMP=$lt_OBJDUMP
17844
17845# Which release of libtool.m4 was used?
17846macro_version=$macro_version
17847macro_revision=$macro_revision
17848
17849# Whether or not to build shared libraries.
17850build_libtool_libs=$enable_shared
17851
17852# Whether or not to build static libraries.
17853build_old_libs=$enable_static
17854
17855# What type of objects to build.
17856pic_mode=$pic_mode
17857
17858# Whether or not to optimize for fast installation.
17859fast_install=$enable_fast_install
17860
17861# Shell to use when invoking shell scripts.
17862SHELL=$lt_SHELL
17863
17864# An echo program that protects backslashes.
17865ECHO=$lt_ECHO
17866
17867# The PATH separator for the build system.
17868PATH_SEPARATOR=$lt_PATH_SEPARATOR
17869
17870# The host system.
17871host_alias=$host_alias
17872host=$host
17873host_os=$host_os
17874
17875# The build system.
17876build_alias=$build_alias
17877build=$build
17878build_os=$build_os
17879
17880# A sed program that does not truncate output.
17881SED=$lt_SED
17882
17883# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17884Xsed="\$SED -e 1s/^X//"
17885
17886# A grep program that handles long lines.
17887GREP=$lt_GREP
17888
17889# An ERE matcher.
17890EGREP=$lt_EGREP
17891
17892# A literal string matcher.
17893FGREP=$lt_FGREP
17894
17895# A BSD- or MS-compatible name lister.
17896NM=$lt_NM
17897
17898# Whether we need soft or hard links.
17899LN_S=$lt_LN_S
17900
17901# What is the maximum length of a command?
17902max_cmd_len=$max_cmd_len
17903
17904# Object file suffix (normally "o").
17905objext=$ac_objext
17906
17907# Executable file suffix (normally "").
17908exeext=$exeext
17909
17910# whether the shell understands "unset".
17911lt_unset=$lt_unset
17912
17913# turn spaces into newlines.
17914SP2NL=$lt_lt_SP2NL
17915
17916# turn newlines into spaces.
17917NL2SP=$lt_lt_NL2SP
17918
17919# convert \$build file names to \$host format.
17920to_host_file_cmd=$lt_cv_to_host_file_cmd
17921
17922# convert \$build files to toolchain format.
17923to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17924
17925# Method to check whether dependent libraries are shared objects.
17926deplibs_check_method=$lt_deplibs_check_method
17927
17928# Command to use when deplibs_check_method = "file_magic".
17929file_magic_cmd=$lt_file_magic_cmd
17930
17931# How to find potential files when deplibs_check_method = "file_magic".
17932file_magic_glob=$lt_file_magic_glob
17933
17934# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17935want_nocaseglob=$lt_want_nocaseglob
17936
17937# Command to associate shared and link libraries.
17938sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17939
17940# The archiver.
17941AR=$lt_AR
17942
17943# Flags to create an archive.
17944AR_FLAGS=$lt_AR_FLAGS
17945
17946# How to feed a file listing to the archiver.
17947archiver_list_spec=$lt_archiver_list_spec
17948
17949# A symbol stripping program.
17950STRIP=$lt_STRIP
17951
17952# Commands used to install an old-style archive.
17953RANLIB=$lt_RANLIB
17954old_postinstall_cmds=$lt_old_postinstall_cmds
17955old_postuninstall_cmds=$lt_old_postuninstall_cmds
17956
17957# Whether to use a lock for old archive extraction.
17958lock_old_archive_extraction=$lock_old_archive_extraction
17959
17960# A C compiler.
17961LTCC=$lt_CC
17962
17963# LTCC compiler flags.
17964LTCFLAGS=$lt_CFLAGS
17965
17966# Take the output of nm and produce a listing of raw symbols and C names.
17967global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17968
17969# Transform the output of nm in a proper C declaration.
17970global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17971
17972# Transform the output of nm in a C name address pair.
17973global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17974
17975# Transform the output of nm in a C name address pair when lib prefix is needed.
17976global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17977
17978# Specify filename containing input files for \$NM.
17979nm_file_list_spec=$lt_nm_file_list_spec
17980
17981# The root where to search for dependent libraries,and in which our libraries should be installed.
17982lt_sysroot=$lt_sysroot
17983
17984# The name of the directory that contains temporary libtool files.
17985objdir=$objdir
17986
17987# Used to examine libraries when file_magic_cmd begins with "file".
17988MAGIC_CMD=$MAGIC_CMD
17989
17990# Must we lock files when doing compilation?
17991need_locks=$lt_need_locks
17992
17993# Manifest tool.
17994MANIFEST_TOOL=$lt_MANIFEST_TOOL
17995
17996# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17997DSYMUTIL=$lt_DSYMUTIL
17998
17999# Tool to change global to local symbols on Mac OS X.
18000NMEDIT=$lt_NMEDIT
18001
18002# Tool to manipulate fat objects and archives on Mac OS X.
18003LIPO=$lt_LIPO
18004
18005# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18006OTOOL=$lt_OTOOL
18007
18008# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18009OTOOL64=$lt_OTOOL64
18010
18011# Old archive suffix (normally "a").
18012libext=$libext
18013
18014# Shared library suffix (normally ".so").
18015shrext_cmds=$lt_shrext_cmds
18016
18017# The commands to extract the exported symbol list from a shared archive.
18018extract_expsyms_cmds=$lt_extract_expsyms_cmds
18019
18020# Variables whose values should be saved in libtool wrapper scripts and
18021# restored at link time.
18022variables_saved_for_relink=$lt_variables_saved_for_relink
18023
18024# Do we need the "lib" prefix for modules?
18025need_lib_prefix=$need_lib_prefix
18026
18027# Do we need a version for libraries?
18028need_version=$need_version
18029
18030# Library versioning type.
18031version_type=$version_type
18032
18033# Shared library runtime path variable.
18034runpath_var=$runpath_var
18035
18036# Shared library path variable.
18037shlibpath_var=$shlibpath_var
18038
18039# Is shlibpath searched before the hard-coded library search path?
18040shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18041
18042# Format of library name prefix.
18043libname_spec=$lt_libname_spec
18044
18045# List of archive names.  First name is the real one, the rest are links.
18046# The last name is the one that the linker finds with -lNAME
18047library_names_spec=$lt_library_names_spec
18048
18049# The coded name of the library, if different from the real name.
18050soname_spec=$lt_soname_spec
18051
18052# Permission mode override for installation of shared libraries.
18053install_override_mode=$lt_install_override_mode
18054
18055# Command to use after installation of a shared archive.
18056postinstall_cmds=$lt_postinstall_cmds
18057
18058# Command to use after uninstallation of a shared archive.
18059postuninstall_cmds=$lt_postuninstall_cmds
18060
18061# Commands used to finish a libtool library installation in a directory.
18062finish_cmds=$lt_finish_cmds
18063
18064# As "finish_cmds", except a single script fragment to be evaled but
18065# not shown.
18066finish_eval=$lt_finish_eval
18067
18068# Whether we should hardcode library paths into libraries.
18069hardcode_into_libs=$hardcode_into_libs
18070
18071# Compile-time system search path for libraries.
18072sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18073
18074# Run-time system search path for libraries.
18075sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18076
18077# Whether dlopen is supported.
18078dlopen_support=$enable_dlopen
18079
18080# Whether dlopen of programs is supported.
18081dlopen_self=$enable_dlopen_self
18082
18083# Whether dlopen of statically linked programs is supported.
18084dlopen_self_static=$enable_dlopen_self_static
18085
18086# Commands to strip libraries.
18087old_striplib=$lt_old_striplib
18088striplib=$lt_striplib
18089
18090
18091# The linker used to build libraries.
18092LD=$lt_LD
18093
18094# How to create reloadable object files.
18095reload_flag=$lt_reload_flag
18096reload_cmds=$lt_reload_cmds
18097
18098# Commands used to build an old-style archive.
18099old_archive_cmds=$lt_old_archive_cmds
18100
18101# A language specific compiler.
18102CC=$lt_compiler
18103
18104# Is the compiler the GNU compiler?
18105with_gcc=$GCC
18106
18107# Compiler flag to turn off builtin functions.
18108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18109
18110# Additional compiler flags for building library objects.
18111pic_flag=$lt_lt_prog_compiler_pic
18112
18113# How to pass a linker flag through the compiler.
18114wl=$lt_lt_prog_compiler_wl
18115
18116# Compiler flag to prevent dynamic linking.
18117link_static_flag=$lt_lt_prog_compiler_static
18118
18119# Does compiler simultaneously support -c and -o options?
18120compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18121
18122# Whether or not to add -lc for building shared libraries.
18123build_libtool_need_lc=$archive_cmds_need_lc
18124
18125# Whether or not to disallow shared libs when runtime libs are static.
18126allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18127
18128# Compiler flag to allow reflexive dlopens.
18129export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18130
18131# Compiler flag to generate shared objects directly from archives.
18132whole_archive_flag_spec=$lt_whole_archive_flag_spec
18133
18134# Whether the compiler copes with passing no objects directly.
18135compiler_needs_object=$lt_compiler_needs_object
18136
18137# Create an old-style archive from a shared archive.
18138old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18139
18140# Create a temporary old-style archive to link instead of a shared archive.
18141old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18142
18143# Commands used to build a shared archive.
18144archive_cmds=$lt_archive_cmds
18145archive_expsym_cmds=$lt_archive_expsym_cmds
18146
18147# Commands used to build a loadable module if different from building
18148# a shared archive.
18149module_cmds=$lt_module_cmds
18150module_expsym_cmds=$lt_module_expsym_cmds
18151
18152# Whether we are building with GNU ld or not.
18153with_gnu_ld=$lt_with_gnu_ld
18154
18155# Flag that allows shared libraries with undefined symbols to be built.
18156allow_undefined_flag=$lt_allow_undefined_flag
18157
18158# Flag that enforces no undefined symbols.
18159no_undefined_flag=$lt_no_undefined_flag
18160
18161# Flag to hardcode \$libdir into a binary during linking.
18162# This must work even if \$libdir does not exist
18163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18164
18165# Whether we need a single "-rpath" flag with a separated argument.
18166hardcode_libdir_separator=$lt_hardcode_libdir_separator
18167
18168# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18169# DIR into the resulting binary.
18170hardcode_direct=$hardcode_direct
18171
18172# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18173# DIR into the resulting binary and the resulting library dependency is
18174# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18175# library is relocated.
18176hardcode_direct_absolute=$hardcode_direct_absolute
18177
18178# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18179# into the resulting binary.
18180hardcode_minus_L=$hardcode_minus_L
18181
18182# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18183# into the resulting binary.
18184hardcode_shlibpath_var=$hardcode_shlibpath_var
18185
18186# Set to "yes" if building a shared library automatically hardcodes DIR
18187# into the library and all subsequent libraries and executables linked
18188# against it.
18189hardcode_automatic=$hardcode_automatic
18190
18191# Set to yes if linker adds runtime paths of dependent libraries
18192# to runtime path list.
18193inherit_rpath=$inherit_rpath
18194
18195# Whether libtool must link a program against all its dependency libraries.
18196link_all_deplibs=$link_all_deplibs
18197
18198# Set to "yes" if exported symbols are required.
18199always_export_symbols=$always_export_symbols
18200
18201# The commands to list exported symbols.
18202export_symbols_cmds=$lt_export_symbols_cmds
18203
18204# Symbols that should not be listed in the preloaded symbols.
18205exclude_expsyms=$lt_exclude_expsyms
18206
18207# Symbols that must always be exported.
18208include_expsyms=$lt_include_expsyms
18209
18210# Commands necessary for linking programs (against libraries) with templates.
18211prelink_cmds=$lt_prelink_cmds
18212
18213# Commands necessary for finishing linking programs.
18214postlink_cmds=$lt_postlink_cmds
18215
18216# Specify filename containing input files.
18217file_list_spec=$lt_file_list_spec
18218
18219# How to hardcode a shared library path into an executable.
18220hardcode_action=$hardcode_action
18221
18222# The directories searched by this compiler when creating a shared library.
18223compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18224
18225# Dependencies to place before and after the objects being linked to
18226# create a shared library.
18227predep_objects=$lt_predep_objects
18228postdep_objects=$lt_postdep_objects
18229predeps=$lt_predeps
18230postdeps=$lt_postdeps
18231
18232# The library search path used internally by the compiler when linking
18233# a shared library.
18234compiler_lib_search_path=$lt_compiler_lib_search_path
18235
18236# ### END LIBTOOL CONFIG
18237
18238_LT_EOF
18239
18240  case $host_os in
18241  aix3*)
18242    cat <<\_LT_EOF >> "$cfgfile"
18243# AIX sometimes has problems with the GCC collect2 program.  For some
18244# reason, if we set the COLLECT_NAMES environment variable, the problems
18245# vanish in a puff of smoke.
18246if test "X${COLLECT_NAMES+set}" != Xset; then
18247  COLLECT_NAMES=
18248  export COLLECT_NAMES
18249fi
18250_LT_EOF
18251    ;;
18252  esac
18253
18254
18255ltmain="$ac_aux_dir/ltmain.sh"
18256
18257
18258  # We use sed instead of cat because bash on DJGPP gets confused if
18259  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18260  # text mode, it properly converts lines to CR/LF.  This bash problem
18261  # is reportedly fixed, but why not run on old versions too?
18262  sed '$q' "$ltmain" >> "$cfgfile" \
18263     || (rm -f "$cfgfile"; exit 1)
18264
18265  if test x"$xsi_shell" = xyes; then
18266  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18267func_dirname ()\
18268{\
18269\    case ${1} in\
18270\      */*) func_dirname_result="${1%/*}${2}" ;;\
18271\      *  ) func_dirname_result="${3}" ;;\
18272\    esac\
18273} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18274  && mv -f "$cfgfile.tmp" "$cfgfile" \
18275    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18276test 0 -eq $? || _lt_function_replace_fail=:
18277
18278
18279  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18280func_basename ()\
18281{\
18282\    func_basename_result="${1##*/}"\
18283} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18284  && mv -f "$cfgfile.tmp" "$cfgfile" \
18285    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18286test 0 -eq $? || _lt_function_replace_fail=:
18287
18288
18289  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18290func_dirname_and_basename ()\
18291{\
18292\    case ${1} in\
18293\      */*) func_dirname_result="${1%/*}${2}" ;;\
18294\      *  ) func_dirname_result="${3}" ;;\
18295\    esac\
18296\    func_basename_result="${1##*/}"\
18297} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18298  && mv -f "$cfgfile.tmp" "$cfgfile" \
18299    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18300test 0 -eq $? || _lt_function_replace_fail=:
18301
18302
18303  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18304func_stripname ()\
18305{\
18306\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18307\    # positional parameters, so assign one to ordinary parameter first.\
18308\    func_stripname_result=${3}\
18309\    func_stripname_result=${func_stripname_result#"${1}"}\
18310\    func_stripname_result=${func_stripname_result%"${2}"}\
18311} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18312  && mv -f "$cfgfile.tmp" "$cfgfile" \
18313    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18314test 0 -eq $? || _lt_function_replace_fail=:
18315
18316
18317  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18318func_split_long_opt ()\
18319{\
18320\    func_split_long_opt_name=${1%%=*}\
18321\    func_split_long_opt_arg=${1#*=}\
18322} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18323  && mv -f "$cfgfile.tmp" "$cfgfile" \
18324    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18325test 0 -eq $? || _lt_function_replace_fail=:
18326
18327
18328  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18329func_split_short_opt ()\
18330{\
18331\    func_split_short_opt_arg=${1#??}\
18332\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18333} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18334  && mv -f "$cfgfile.tmp" "$cfgfile" \
18335    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18336test 0 -eq $? || _lt_function_replace_fail=:
18337
18338
18339  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18340func_lo2o ()\
18341{\
18342\    case ${1} in\
18343\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18344\      *)    func_lo2o_result=${1} ;;\
18345\    esac\
18346} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18347  && mv -f "$cfgfile.tmp" "$cfgfile" \
18348    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18349test 0 -eq $? || _lt_function_replace_fail=:
18350
18351
18352  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18353func_xform ()\
18354{\
18355    func_xform_result=${1%.*}.lo\
18356} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18357  && mv -f "$cfgfile.tmp" "$cfgfile" \
18358    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18359test 0 -eq $? || _lt_function_replace_fail=:
18360
18361
18362  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18363func_arith ()\
18364{\
18365    func_arith_result=$(( $* ))\
18366} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18367  && mv -f "$cfgfile.tmp" "$cfgfile" \
18368    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18369test 0 -eq $? || _lt_function_replace_fail=:
18370
18371
18372  sed -e '/^func_len ()$/,/^} # func_len /c\
18373func_len ()\
18374{\
18375    func_len_result=${#1}\
18376} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18377  && mv -f "$cfgfile.tmp" "$cfgfile" \
18378    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18379test 0 -eq $? || _lt_function_replace_fail=:
18380
18381fi
18382
18383if test x"$lt_shell_append" = xyes; then
18384  sed -e '/^func_append ()$/,/^} # func_append /c\
18385func_append ()\
18386{\
18387    eval "${1}+=\\${2}"\
18388} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18389  && mv -f "$cfgfile.tmp" "$cfgfile" \
18390    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18391test 0 -eq $? || _lt_function_replace_fail=:
18392
18393
18394  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18395func_append_quoted ()\
18396{\
18397\    func_quote_for_eval "${2}"\
18398\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18399} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18400  && mv -f "$cfgfile.tmp" "$cfgfile" \
18401    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18402test 0 -eq $? || _lt_function_replace_fail=:
18403
18404
18405  # Save a `func_append' function call where possible by direct use of '+='
18406  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18407    && mv -f "$cfgfile.tmp" "$cfgfile" \
18408      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18409  test 0 -eq $? || _lt_function_replace_fail=:
18410else
18411  # Save a `func_append' function call even when '+=' is not available
18412  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18413    && mv -f "$cfgfile.tmp" "$cfgfile" \
18414      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18415  test 0 -eq $? || _lt_function_replace_fail=:
18416fi
18417
18418if test x"$_lt_function_replace_fail" = x":"; then
18419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18420$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18421fi
18422
18423
18424   mv -f "$cfgfile" "$ofile" ||
18425    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18426  chmod +x "$ofile"
18427
18428
18429    cat <<_LT_EOF >> "$ofile"
18430
18431# ### BEGIN LIBTOOL TAG CONFIG: CXX
18432
18433# The linker used to build libraries.
18434LD=$lt_LD_CXX
18435
18436# How to create reloadable object files.
18437reload_flag=$lt_reload_flag_CXX
18438reload_cmds=$lt_reload_cmds_CXX
18439
18440# Commands used to build an old-style archive.
18441old_archive_cmds=$lt_old_archive_cmds_CXX
18442
18443# A language specific compiler.
18444CC=$lt_compiler_CXX
18445
18446# Is the compiler the GNU compiler?
18447with_gcc=$GCC_CXX
18448
18449# Compiler flag to turn off builtin functions.
18450no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18451
18452# Additional compiler flags for building library objects.
18453pic_flag=$lt_lt_prog_compiler_pic_CXX
18454
18455# How to pass a linker flag through the compiler.
18456wl=$lt_lt_prog_compiler_wl_CXX
18457
18458# Compiler flag to prevent dynamic linking.
18459link_static_flag=$lt_lt_prog_compiler_static_CXX
18460
18461# Does compiler simultaneously support -c and -o options?
18462compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18463
18464# Whether or not to add -lc for building shared libraries.
18465build_libtool_need_lc=$archive_cmds_need_lc_CXX
18466
18467# Whether or not to disallow shared libs when runtime libs are static.
18468allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18469
18470# Compiler flag to allow reflexive dlopens.
18471export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18472
18473# Compiler flag to generate shared objects directly from archives.
18474whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18475
18476# Whether the compiler copes with passing no objects directly.
18477compiler_needs_object=$lt_compiler_needs_object_CXX
18478
18479# Create an old-style archive from a shared archive.
18480old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18481
18482# Create a temporary old-style archive to link instead of a shared archive.
18483old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18484
18485# Commands used to build a shared archive.
18486archive_cmds=$lt_archive_cmds_CXX
18487archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18488
18489# Commands used to build a loadable module if different from building
18490# a shared archive.
18491module_cmds=$lt_module_cmds_CXX
18492module_expsym_cmds=$lt_module_expsym_cmds_CXX
18493
18494# Whether we are building with GNU ld or not.
18495with_gnu_ld=$lt_with_gnu_ld_CXX
18496
18497# Flag that allows shared libraries with undefined symbols to be built.
18498allow_undefined_flag=$lt_allow_undefined_flag_CXX
18499
18500# Flag that enforces no undefined symbols.
18501no_undefined_flag=$lt_no_undefined_flag_CXX
18502
18503# Flag to hardcode \$libdir into a binary during linking.
18504# This must work even if \$libdir does not exist
18505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18506
18507# Whether we need a single "-rpath" flag with a separated argument.
18508hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18509
18510# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18511# DIR into the resulting binary.
18512hardcode_direct=$hardcode_direct_CXX
18513
18514# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18515# DIR into the resulting binary and the resulting library dependency is
18516# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18517# library is relocated.
18518hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18519
18520# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18521# into the resulting binary.
18522hardcode_minus_L=$hardcode_minus_L_CXX
18523
18524# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18525# into the resulting binary.
18526hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18527
18528# Set to "yes" if building a shared library automatically hardcodes DIR
18529# into the library and all subsequent libraries and executables linked
18530# against it.
18531hardcode_automatic=$hardcode_automatic_CXX
18532
18533# Set to yes if linker adds runtime paths of dependent libraries
18534# to runtime path list.
18535inherit_rpath=$inherit_rpath_CXX
18536
18537# Whether libtool must link a program against all its dependency libraries.
18538link_all_deplibs=$link_all_deplibs_CXX
18539
18540# Set to "yes" if exported symbols are required.
18541always_export_symbols=$always_export_symbols_CXX
18542
18543# The commands to list exported symbols.
18544export_symbols_cmds=$lt_export_symbols_cmds_CXX
18545
18546# Symbols that should not be listed in the preloaded symbols.
18547exclude_expsyms=$lt_exclude_expsyms_CXX
18548
18549# Symbols that must always be exported.
18550include_expsyms=$lt_include_expsyms_CXX
18551
18552# Commands necessary for linking programs (against libraries) with templates.
18553prelink_cmds=$lt_prelink_cmds_CXX
18554
18555# Commands necessary for finishing linking programs.
18556postlink_cmds=$lt_postlink_cmds_CXX
18557
18558# Specify filename containing input files.
18559file_list_spec=$lt_file_list_spec_CXX
18560
18561# How to hardcode a shared library path into an executable.
18562hardcode_action=$hardcode_action_CXX
18563
18564# The directories searched by this compiler when creating a shared library.
18565compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18566
18567# Dependencies to place before and after the objects being linked to
18568# create a shared library.
18569predep_objects=$lt_predep_objects_CXX
18570postdep_objects=$lt_postdep_objects_CXX
18571predeps=$lt_predeps_CXX
18572postdeps=$lt_postdeps_CXX
18573
18574# The library search path used internally by the compiler when linking
18575# a shared library.
18576compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18577
18578# ### END LIBTOOL TAG CONFIG: CXX
18579_LT_EOF
18580
18581 ;;
18582
18583  esac
18584done # for ac_tag
18585
18586
18587as_fn_exit 0
18588_ACEOF
18589ac_clean_files=$ac_clean_files_save
18590
18591test $ac_write_fail = 0 ||
18592  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18593
18594
18595# configure is writing to config.log, and then calls config.status.
18596# config.status does its own redirection, appending to config.log.
18597# Unfortunately, on DOS this fails, as config.log is still kept open
18598# by configure, so config.status won't be able to write to it; its
18599# output is simply discarded.  So we exec the FD to /dev/null,
18600# effectively closing config.log, so it can be properly (re)opened and
18601# appended to by config.status.  When coming back to configure, we
18602# need to make the FD available again.
18603if test "$no_create" != yes; then
18604  ac_cs_success=:
18605  ac_config_status_args=
18606  test "$silent" = yes &&
18607    ac_config_status_args="$ac_config_status_args --quiet"
18608  exec 5>/dev/null
18609  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18610  exec 5>>config.log
18611  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18612  # would make configure fail if this is the last instruction.
18613  $ac_cs_success || as_fn_exit 1
18614fi
18615
18616#
18617# CONFIG_SUBDIRS section.
18618#
18619if test "$no_recursion" != yes; then
18620
18621  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18622  # so they do not pile up.
18623  ac_sub_configure_args=
18624  ac_prev=
18625  eval "set x $ac_configure_args"
18626  shift
18627  for ac_arg
18628  do
18629    if test -n "$ac_prev"; then
18630      ac_prev=
18631      continue
18632    fi
18633    case $ac_arg in
18634    -cache-file | --cache-file | --cache-fil | --cache-fi \
18635    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18636      ac_prev=cache_file ;;
18637    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18638    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18639    | --c=*)
18640      ;;
18641    --config-cache | -C)
18642      ;;
18643    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18644      ac_prev=srcdir ;;
18645    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18646      ;;
18647    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18648      ac_prev=prefix ;;
18649    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18650      ;;
18651    --disable-option-checking)
18652      ;;
18653    *)
18654      case $ac_arg in
18655      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18656      esac
18657      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18658    esac
18659  done
18660
18661  # Always prepend --prefix to ensure using the same prefix
18662  # in subdir configurations.
18663  ac_arg="--prefix=$prefix"
18664  case $ac_arg in
18665  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18666  esac
18667  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18668
18669  # Pass --silent
18670  if test "$silent" = yes; then
18671    ac_sub_configure_args="--silent $ac_sub_configure_args"
18672  fi
18673
18674  # Always prepend --disable-option-checking to silence warnings, since
18675  # different subdirs can have different --enable and --with options.
18676  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18677
18678  ac_popdir=`pwd`
18679  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18680
18681    # Do not complain, so a configure script can configure whichever
18682    # parts of a large source tree are present.
18683    test -d "$srcdir/$ac_dir" || continue
18684
18685    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18686    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18687    $as_echo "$ac_msg" >&6
18688    as_dir="$ac_dir"; as_fn_mkdir_p
18689    ac_builddir=.
18690
18691case "$ac_dir" in
18692.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18693*)
18694  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18695  # A ".." for each directory in $ac_dir_suffix.
18696  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18697  case $ac_top_builddir_sub in
18698  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18699  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18700  esac ;;
18701esac
18702ac_abs_top_builddir=$ac_pwd
18703ac_abs_builddir=$ac_pwd$ac_dir_suffix
18704# for backward compatibility:
18705ac_top_builddir=$ac_top_build_prefix
18706
18707case $srcdir in
18708  .)  # We are building in place.
18709    ac_srcdir=.
18710    ac_top_srcdir=$ac_top_builddir_sub
18711    ac_abs_top_srcdir=$ac_pwd ;;
18712  [\\/]* | ?:[\\/]* )  # Absolute name.
18713    ac_srcdir=$srcdir$ac_dir_suffix;
18714    ac_top_srcdir=$srcdir
18715    ac_abs_top_srcdir=$srcdir ;;
18716  *) # Relative name.
18717    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18718    ac_top_srcdir=$ac_top_build_prefix$srcdir
18719    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18720esac
18721ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18722
18723
18724    cd "$ac_dir"
18725
18726    # Check for guested configure; otherwise get Cygnus style configure.
18727    if test -f "$ac_srcdir/configure.gnu"; then
18728      ac_sub_configure=$ac_srcdir/configure.gnu
18729    elif test -f "$ac_srcdir/configure"; then
18730      ac_sub_configure=$ac_srcdir/configure
18731    elif test -f "$ac_srcdir/configure.in"; then
18732      # This should be Cygnus configure.
18733      ac_sub_configure=$ac_aux_dir/configure
18734    else
18735      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18736$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18737      ac_sub_configure=
18738    fi
18739
18740    # The recursion is here.
18741    if test -n "$ac_sub_configure"; then
18742      # Make the cache file name correct relative to the subdirectory.
18743      case $cache_file in
18744      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18745      *) # Relative name.
18746	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18747      esac
18748
18749      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18750$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18751      # The eval makes quoting arguments work.
18752      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18753	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18754	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18755    fi
18756
18757    cd "$ac_popdir"
18758  done
18759fi
18760if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18761  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18762$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18763fi
18764
18765
18766{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
18767Configuration summary:
18768
18769  Target ...................... $target
18770  C++ bindings ................ $enable_cxx
18771  Debug output ................ $debug_output" >&5
18772$as_echo "
18773Configuration summary:
18774
18775  Target ...................... $target
18776  C++ bindings ................ $enable_cxx
18777  Debug output ................ $debug_output" >&6; }
18778
18779case "$target_os" in *linux*)
18780    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18781  ALSA ........................ $have_alsa
18782  ASIHPI ...................... $have_asihpi" >&5
18783$as_echo "
18784  ALSA ........................ $have_alsa
18785  ASIHPI ...................... $have_asihpi" >&6; }
18786    ;;
18787esac
18788case "$target_os" in
18789    *mingw* | *cygwin*)
18790        test "x$with_directx" = "xyes" && with_directx="$with_directx (${with_dxdir})"
18791        test "x$with_wdmks" = "xyes" && with_wdmks="$with_wdmks (${with_dxdir})"
18792        test "x$with_asio" = "xyes" && with_asio="$with_asio (${with_asiodir})"
18793        test "x$with_wasapi" = "xyes"
18794        { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18795  WMME ........................ $with_wmme
18796  DSound ...................... $with_directx
18797  ASIO ........................ $with_asio
18798  WASAPI ...................... $with_wasapi
18799  WDMKS ....................... $with_wdmks
18800" >&5
18801$as_echo "
18802  WMME ........................ $with_wmme
18803  DSound ...................... $with_directx
18804  ASIO ........................ $with_asio
18805  WASAPI ...................... $with_wasapi
18806  WDMKS ....................... $with_wdmks
18807" >&6; }
18808        ;;
18809    *darwin*)
18810        { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18811  Mac debug flags ............. $enable_mac_debug
18812" >&5
18813$as_echo "
18814  Mac debug flags ............. $enable_mac_debug
18815" >&6; }
18816        ;;
18817     *)
18818	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
18819  OSS ......................... $have_oss
18820  JACK ........................ $have_jack
18821" >&5
18822$as_echo "
18823  OSS ......................... $have_oss
18824  JACK ........................ $have_jack
18825" >&6; }
18826        ;;
18827esac
18828