1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ccaudio2 2.2.0.
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='ccaudio2'
589PACKAGE_TARNAME='ccaudio2'
590PACKAGE_VERSION='2.2.0'
591PACKAGE_STRING='ccaudio2 2.2.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/audiobase.cpp"
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
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636CCAUDIO_LIBS
637CCAUDIO_FLAGS
638PKG_CCAUDIO2_LIBS
639PKG_CCAUDIO2_FLAGS
640DAEMON_LIBS
641USES_UCOMMON_REQUIRED
642phrasedir
643plugindir
644default_phrases
645default_libpath
646default_cfgpath
647UCOMMON
648UCOMMON_LIBS
649UCOMMON_CFLAGS
650PKG_CONFIG_LIBDIR
651PKG_CONFIG_PATH
652PKG_CONFIG
653LT_VERSION
654AM_BACKSLASH
655AM_DEFAULT_VERBOSITY
656AM_DEFAULT_V
657AM_V
658am__fastdepCXX_FALSE
659am__fastdepCXX_TRUE
660CXXDEPMODE
661am__fastdepCC_FALSE
662am__fastdepCC_TRUE
663CCDEPMODE
664am__nodep
665AMDEPBACKSLASH
666AMDEP_FALSE
667AMDEP_TRUE
668am__quote
669am__include
670DEPDIR
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679install_sh
680MAKEINFO
681AUTOHEADER
682AUTOMAKE
683AUTOCONF
684ACLOCAL
685VERSION
686PACKAGE
687CYGPATH_W
688am__isrc
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692OTOOL64
693OTOOL
694LIPO
695NMEDIT
696DSYMUTIL
697MANIFEST_TOOL
698AWK
699RANLIB
700STRIP
701ac_ct_AR
702AR
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709EGREP
710GREP
711SED
712LIBTOOL
713OBJDUMP
714DLLTOOL
715AS
716CXXCPP
717ac_ct_CXX
718CXXFLAGS
719CXX
720CPP
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
728target_os
729target_vendor
730target_cpu
731target
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_shared
782enable_static
783with_pic
784enable_fast_install
785with_gnu_ld
786with_sysroot
787enable_libtool_lock
788enable_dependency_tracking
789enable_silent_rules
790enable_debug
791with_pkg_config
792enable_speex
793'
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CPP
803CXX
804CXXFLAGS
805CCC
806CXXCPP
807PKG_CONFIG
808PKG_CONFIG_PATH
809PKG_CONFIG_LIBDIR
810UCOMMON_CFLAGS
811UCOMMON_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866  # If the previous option needs an argument, assign it.
867  if test -n "$ac_prev"; then
868    eval $ac_prev=\$ac_option
869    ac_prev=
870    continue
871  fi
872
873  case $ac_option in
874  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875  *=)   ac_optarg= ;;
876  *)    ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=no ;;
932
933  -docdir | --docdir | --docdi | --doc | --do)
934    ac_prev=docdir ;;
935  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936    docdir=$ac_optarg ;;
937
938  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939    ac_prev=dvidir ;;
940  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941    dvidir=$ac_optarg ;;
942
943  -enable-* | --enable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=\$ac_optarg ;;
958
959  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961  | --exec | --exe | --ex)
962    ac_prev=exec_prefix ;;
963  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965  | --exec=* | --exe=* | --ex=*)
966    exec_prefix=$ac_optarg ;;
967
968  -gas | --gas | --ga | --g)
969    # Obsolete; use --with-gas.
970    with_gas=yes ;;
971
972  -help | --help | --hel | --he | -h)
973    ac_init_help=long ;;
974  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975    ac_init_help=recursive ;;
976  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977    ac_init_help=short ;;
978
979  -host | --host | --hos | --ho)
980    ac_prev=host_alias ;;
981  -host=* | --host=* | --hos=* | --ho=*)
982    host_alias=$ac_optarg ;;
983
984  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985    ac_prev=htmldir ;;
986  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987  | --ht=*)
988    htmldir=$ac_optarg ;;
989
990  -includedir | --includedir | --includedi | --included | --include \
991  | --includ | --inclu | --incl | --inc)
992    ac_prev=includedir ;;
993  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994  | --includ=* | --inclu=* | --incl=* | --inc=*)
995    includedir=$ac_optarg ;;
996
997  -infodir | --infodir | --infodi | --infod | --info | --inf)
998    ac_prev=infodir ;;
999  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000    infodir=$ac_optarg ;;
1001
1002  -libdir | --libdir | --libdi | --libd)
1003    ac_prev=libdir ;;
1004  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005    libdir=$ac_optarg ;;
1006
1007  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008  | --libexe | --libex | --libe)
1009    ac_prev=libexecdir ;;
1010  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011  | --libexe=* | --libex=* | --libe=*)
1012    libexecdir=$ac_optarg ;;
1013
1014  -localedir | --localedir | --localedi | --localed | --locale)
1015    ac_prev=localedir ;;
1016  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017    localedir=$ac_optarg ;;
1018
1019  -localstatedir | --localstatedir | --localstatedi | --localstated \
1020  | --localstate | --localstat | --localsta | --localst | --locals)
1021    ac_prev=localstatedir ;;
1022  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024    localstatedir=$ac_optarg ;;
1025
1026  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027    ac_prev=mandir ;;
1028  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029    mandir=$ac_optarg ;;
1030
1031  -nfp | --nfp | --nf)
1032    # Obsolete; use --without-fp.
1033    with_fp=no ;;
1034
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n)
1037    no_create=yes ;;
1038
1039  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041    no_recursion=yes ;;
1042
1043  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045  | --oldin | --oldi | --old | --ol | --o)
1046    ac_prev=oldincludedir ;;
1047  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050    oldincludedir=$ac_optarg ;;
1051
1052  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053    ac_prev=prefix ;;
1054  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055    prefix=$ac_optarg ;;
1056
1057  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058  | --program-pre | --program-pr | --program-p)
1059    ac_prev=program_prefix ;;
1060  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062    program_prefix=$ac_optarg ;;
1063
1064  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065  | --program-suf | --program-su | --program-s)
1066    ac_prev=program_suffix ;;
1067  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069    program_suffix=$ac_optarg ;;
1070
1071  -program-transform-name | --program-transform-name \
1072  | --program-transform-nam | --program-transform-na \
1073  | --program-transform-n | --program-transform- \
1074  | --program-transform | --program-transfor \
1075  | --program-transfo | --program-transf \
1076  | --program-trans | --program-tran \
1077  | --progr-tra | --program-tr | --program-t)
1078    ac_prev=program_transform_name ;;
1079  -program-transform-name=* | --program-transform-name=* \
1080  | --program-transform-nam=* | --program-transform-na=* \
1081  | --program-transform-n=* | --program-transform-=* \
1082  | --program-transform=* | --program-transfor=* \
1083  | --program-transfo=* | --program-transf=* \
1084  | --program-trans=* | --program-tran=* \
1085  | --progr-tra=* | --program-tr=* | --program-t=*)
1086    program_transform_name=$ac_optarg ;;
1087
1088  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089    ac_prev=pdfdir ;;
1090  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091    pdfdir=$ac_optarg ;;
1092
1093  -psdir | --psdir | --psdi | --psd | --ps)
1094    ac_prev=psdir ;;
1095  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096    psdir=$ac_optarg ;;
1097
1098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099  | -silent | --silent | --silen | --sile | --sil)
1100    silent=yes ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures ccaudio2 2.2.0 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/ccaudio2]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417  --target=TARGET   configure for building compilers for TARGET [HOST]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of ccaudio2 2.2.0:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-shared[=PKGS]  build shared libraries [default=yes]
1432  --enable-static[=PKGS]  build static libraries [default=yes]
1433  --enable-fast-install[=PKGS]
1434                          optimize for fast installation [default=yes]
1435  --disable-libtool-lock  avoid locking (might break parallel builds)
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --enable-silent-rules   less verbose build output (undo: "make V=1")
1441  --disable-silent-rules  verbose build output (undo: "make V=0")
1442  --enable-debug          compile for debugging
1443 --disable-speex          disable speex support
1444
1445Optional Packages:
1446  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1447  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1448  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1449                          both]
1450  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1451  --with-sysroot=DIR Search for dependent libraries within DIR
1452                        (or the compiler's sysroot if not specified).
1453  --with-pkg-config       enable support for pkg-config
1454
1455Some influential environment variables:
1456  CC          C compiler command
1457  CFLAGS      C compiler flags
1458  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459              nonstandard directory <lib dir>
1460  LIBS        libraries to pass to the linker, e.g. -l<library>
1461  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462              you have headers in a nonstandard directory <include dir>
1463  CPP         C preprocessor
1464  CXX         C++ compiler command
1465  CXXFLAGS    C++ compiler flags
1466  CXXCPP      C++ preprocessor
1467  PKG_CONFIG  path to pkg-config utility
1468  PKG_CONFIG_PATH
1469              directories to add to pkg-config's search path
1470  PKG_CONFIG_LIBDIR
1471              path overriding pkg-config's built-in search path
1472  UCOMMON_CFLAGS
1473              C compiler flags for UCOMMON, overriding pkg-config
1474  UCOMMON_LIBS
1475              linker flags for UCOMMON, overriding pkg-config
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to the package provider.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486  # If there are subdirs, report their specific --help.
1487  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488    test -d "$ac_dir" ||
1489      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490      continue
1491    ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497  # A ".." for each directory in $ac_dir_suffix.
1498  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499  case $ac_top_builddir_sub in
1500  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502  esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510  .)  # We are building in place.
1511    ac_srcdir=.
1512    ac_top_srcdir=$ac_top_builddir_sub
1513    ac_abs_top_srcdir=$ac_pwd ;;
1514  [\\/]* | ?:[\\/]* )  # Absolute name.
1515    ac_srcdir=$srcdir$ac_dir_suffix;
1516    ac_top_srcdir=$srcdir
1517    ac_abs_top_srcdir=$srcdir ;;
1518  *) # Relative name.
1519    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525    cd "$ac_dir" || { ac_status=$?; continue; }
1526    # Check for guested configure.
1527    if test -f "$ac_srcdir/configure.gnu"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530    elif test -f "$ac_srcdir/configure"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure" --help=recursive
1533    else
1534      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535    fi || ac_status=$?
1536    cd "$ac_pwd" || { ac_status=$?; break; }
1537  done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542  cat <<\_ACEOF
1543ccaudio2 configure 2.2.0
1544generated by GNU Autoconf 2.69
1545
1546Copyright (C) 2012 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550  exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563  rm -f conftest.$ac_objext
1564  if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567  *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571  (eval "$ac_compile") 2>conftest.err
1572  ac_status=$?
1573  if test -s conftest.err; then
1574    grep -v '^ *+' conftest.err >conftest.er1
1575    cat conftest.er1 >&5
1576    mv -f conftest.er1 conftest.err
1577  fi
1578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579  test $ac_status = 0; } && {
1580	 test -z "$ac_c_werror_flag" ||
1581	 test ! -s conftest.err
1582       } && test -s conftest.$ac_objext; then :
1583  ac_retval=0
1584else
1585  $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588	ac_retval=1
1589fi
1590  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591  as_fn_set_status $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
1595# ac_fn_c_try_cpp LINENO
1596# ----------------------
1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_cpp ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  if { { ac_try="$ac_cpp conftest.$ac_ext"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } > conftest.i && {
1617	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618	 test ! -s conftest.err
1619       }; then :
1620  ac_retval=0
1621else
1622  $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625    ac_retval=1
1626fi
1627  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_cpp
1631
1632# ac_fn_cxx_try_compile LINENO
1633# ----------------------------
1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_cxx_try_compile ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  rm -f conftest.$ac_objext
1639  if { { ac_try="$ac_compile"
1640case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_compile") 2>conftest.err
1647  ac_status=$?
1648  if test -s conftest.err; then
1649    grep -v '^ *+' conftest.err >conftest.er1
1650    cat conftest.er1 >&5
1651    mv -f conftest.er1 conftest.err
1652  fi
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } && {
1655	 test -z "$ac_cxx_werror_flag" ||
1656	 test ! -s conftest.err
1657       } && test -s conftest.$ac_objext; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663	ac_retval=1
1664fi
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_cxx_try_compile
1669
1670# ac_fn_cxx_try_cpp LINENO
1671# ------------------------
1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_cxx_try_cpp ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_cpp conftest.$ac_ext"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } > conftest.i && {
1692	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1693	 test ! -s conftest.err
1694       }; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700    ac_retval=1
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_cxx_try_cpp
1706
1707# ac_fn_c_try_link LINENO
1708# -----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_link ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  rm -f conftest.$ac_objext conftest$ac_exeext
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>conftest.err
1722  ac_status=$?
1723  if test -s conftest.err; then
1724    grep -v '^ *+' conftest.err >conftest.er1
1725    cat conftest.er1 >&5
1726    mv -f conftest.er1 conftest.err
1727  fi
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && {
1730	 test -z "$ac_c_werror_flag" ||
1731	 test ! -s conftest.err
1732       } && test -s conftest$ac_exeext && {
1733	 test "$cross_compiling" = yes ||
1734	 test -x conftest$ac_exeext
1735       }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745  # interfere with the next link command; also delete a directory that is
1746  # left behind by Apple's compiler.  We do this before executing the actions.
1747  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754# -------------------------------------------------------
1755# Tests whether HEADER exists and can be compiled using the include files in
1756# INCLUDES, setting the cache variable VAR accordingly.
1757ac_fn_c_check_header_compile ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if eval \${$3+:} false; then :
1763  $as_echo_n "(cached) " >&6
1764else
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767$4
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771  eval "$3=yes"
1772else
1773  eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_header_compile
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_link") 2>&5
1799  ac_status=$?
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802  { { case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_try") 2>&5
1809  ac_status=$?
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; }; }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: program exited with status $ac_status" >&5
1815       $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818       ac_retval=$ac_status
1819fi
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_cxx_try_link LINENO
1894# -------------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_cxx_try_link ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  rm -f conftest.$ac_objext conftest$ac_exeext
1900  if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_link") 2>conftest.err
1908  ac_status=$?
1909  if test -s conftest.err; then
1910    grep -v '^ *+' conftest.err >conftest.er1
1911    cat conftest.er1 >&5
1912    mv -f conftest.er1 conftest.err
1913  fi
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; } && {
1916	 test -z "$ac_cxx_werror_flag" ||
1917	 test ! -s conftest.err
1918       } && test -s conftest$ac_exeext && {
1919	 test "$cross_compiling" = yes ||
1920	 test -x conftest$ac_exeext
1921       }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927	ac_retval=1
1928fi
1929  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931  # interfere with the next link command; also delete a directory that is
1932  # left behind by Apple's compiler.  We do this before executing the actions.
1933  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935  as_fn_set_status $ac_retval
1936
1937} # ac_fn_cxx_try_link
1938
1939# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940# -------------------------------------------------------
1941# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942# the include files in INCLUDES and setting the cache variable VAR
1943# accordingly.
1944ac_fn_c_check_header_mongrel ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  if eval \${$3+:} false; then :
1948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
1950if eval \${$3+:} false; then :
1951  $as_echo_n "(cached) " >&6
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956else
1957  # Is the header compilable?
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959$as_echo_n "checking $2 usability... " >&6; }
1960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h.  */
1962$4
1963#include <$2>
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966  ac_header_compiler=yes
1967else
1968  ac_header_compiler=no
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972$as_echo "$ac_header_compiler" >&6; }
1973
1974# Is the header present?
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976$as_echo_n "checking $2 presence... " >&6; }
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979#include <$2>
1980_ACEOF
1981if ac_fn_c_try_cpp "$LINENO"; then :
1982  ac_header_preproc=yes
1983else
1984  ac_header_preproc=no
1985fi
1986rm -f conftest.err conftest.i conftest.$ac_ext
1987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988$as_echo "$ac_header_preproc" >&6; }
1989
1990# So?  What about this header?
1991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992  yes:no: )
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997    ;;
1998  no:yes:* )
1999    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2002$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2006$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2007    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009    ;;
2010esac
2011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
2013if eval \${$3+:} false; then :
2014  $as_echo_n "(cached) " >&6
2015else
2016  eval "$3=\$ac_header_compiler"
2017fi
2018eval ac_res=\$$3
2019	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020$as_echo "$ac_res" >&6; }
2021fi
2022  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024} # ac_fn_c_check_header_mongrel
2025cat >config.log <<_ACEOF
2026This file contains any messages produced by compilers while
2027running configure, to aid debugging if configure makes a mistake.
2028
2029It was created by ccaudio2 $as_me 2.2.0, which was
2030generated by GNU Autoconf 2.69.  Invocation command line was
2031
2032  $ $0 $@
2033
2034_ACEOF
2035exec 5>>config.log
2036{
2037cat <<_ASUNAME
2038## --------- ##
2039## Platform. ##
2040## --------- ##
2041
2042hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047
2048/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2050
2051/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2052/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2053/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2055/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2056/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2057/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2058
2059_ASUNAME
2060
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066    $as_echo "PATH: $as_dir"
2067  done
2068IFS=$as_save_IFS
2069
2070} >&5
2071
2072cat >&5 <<_ACEOF
2073
2074
2075## ----------- ##
2076## Core tests. ##
2077## ----------- ##
2078
2079_ACEOF
2080
2081
2082# Keep a trace of the command line.
2083# Strip out --no-create and --no-recursion so they do not pile up.
2084# Strip out --silent because we don't want to record it for future runs.
2085# Also quote any args containing shell meta-characters.
2086# Make two passes to allow for proper duplicate-argument suppression.
2087ac_configure_args=
2088ac_configure_args0=
2089ac_configure_args1=
2090ac_must_keep_next=false
2091for ac_pass in 1 2
2092do
2093  for ac_arg
2094  do
2095    case $ac_arg in
2096    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2097    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2098    | -silent | --silent | --silen | --sile | --sil)
2099      continue ;;
2100    *\'*)
2101      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102    esac
2103    case $ac_pass in
2104    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2105    2)
2106      as_fn_append ac_configure_args1 " '$ac_arg'"
2107      if test $ac_must_keep_next = true; then
2108	ac_must_keep_next=false # Got value, back to normal.
2109      else
2110	case $ac_arg in
2111	  *=* | --config-cache | -C | -disable-* | --disable-* \
2112	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2113	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2114	  | -with-* | --with-* | -without-* | --without-* | --x)
2115	    case "$ac_configure_args0 " in
2116	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2117	    esac
2118	    ;;
2119	  -* ) ac_must_keep_next=true ;;
2120	esac
2121      fi
2122      as_fn_append ac_configure_args " '$ac_arg'"
2123      ;;
2124    esac
2125  done
2126done
2127{ ac_configure_args0=; unset ac_configure_args0;}
2128{ ac_configure_args1=; unset ac_configure_args1;}
2129
2130# When interrupted or exit'd, cleanup temporary files, and complete
2131# config.log.  We remove comments because anyway the quotes in there
2132# would cause problems or look ugly.
2133# WARNING: Use '\'' to represent an apostrophe within the trap.
2134# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2135trap 'exit_status=$?
2136  # Save into config.log some information that might help in debugging.
2137  {
2138    echo
2139
2140    $as_echo "## ---------------- ##
2141## Cache variables. ##
2142## ---------------- ##"
2143    echo
2144    # The following way of writing the cache mishandles newlines in values,
2145(
2146  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147    eval ac_val=\$$ac_var
2148    case $ac_val in #(
2149    *${as_nl}*)
2150      case $ac_var in #(
2151      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2153      esac
2154      case $ac_var in #(
2155      _ | IFS | as_nl) ;; #(
2156      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157      *) { eval $ac_var=; unset $ac_var;} ;;
2158      esac ;;
2159    esac
2160  done
2161  (set) 2>&1 |
2162    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163    *${as_nl}ac_space=\ *)
2164      sed -n \
2165	"s/'\''/'\''\\\\'\'''\''/g;
2166	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2167      ;; #(
2168    *)
2169      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170      ;;
2171    esac |
2172    sort
2173)
2174    echo
2175
2176    $as_echo "## ----------------- ##
2177## Output variables. ##
2178## ----------------- ##"
2179    echo
2180    for ac_var in $ac_subst_vars
2181    do
2182      eval ac_val=\$$ac_var
2183      case $ac_val in
2184      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185      esac
2186      $as_echo "$ac_var='\''$ac_val'\''"
2187    done | sort
2188    echo
2189
2190    if test -n "$ac_subst_files"; then
2191      $as_echo "## ------------------- ##
2192## File substitutions. ##
2193## ------------------- ##"
2194      echo
2195      for ac_var in $ac_subst_files
2196      do
2197	eval ac_val=\$$ac_var
2198	case $ac_val in
2199	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200	esac
2201	$as_echo "$ac_var='\''$ac_val'\''"
2202      done | sort
2203      echo
2204    fi
2205
2206    if test -s confdefs.h; then
2207      $as_echo "## ----------- ##
2208## confdefs.h. ##
2209## ----------- ##"
2210      echo
2211      cat confdefs.h
2212      echo
2213    fi
2214    test "$ac_signal" != 0 &&
2215      $as_echo "$as_me: caught signal $ac_signal"
2216    $as_echo "$as_me: exit $exit_status"
2217  } >&5
2218  rm -f core *.core core.conftest.* &&
2219    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2220    exit $exit_status
2221' 0
2222for ac_signal in 1 2 13 15; do
2223  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2224done
2225ac_signal=0
2226
2227# confdefs.h avoids OS command line length limits that DEFS can exceed.
2228rm -f -r conftest* confdefs.h
2229
2230$as_echo "/* confdefs.h */" > confdefs.h
2231
2232# Predefined preprocessor variables.
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_NAME "$PACKAGE_NAME"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_VERSION "$PACKAGE_VERSION"
2244_ACEOF
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_STRING "$PACKAGE_STRING"
2248_ACEOF
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_URL "$PACKAGE_URL"
2256_ACEOF
2257
2258
2259# Let the site file select an alternate cache file if it wants to.
2260# Prefer an explicitly selected file to automatically selected ones.
2261ac_site_file1=NONE
2262ac_site_file2=NONE
2263if test -n "$CONFIG_SITE"; then
2264  # We do not want a PATH search for config.site.
2265  case $CONFIG_SITE in #((
2266    -*)  ac_site_file1=./$CONFIG_SITE;;
2267    */*) ac_site_file1=$CONFIG_SITE;;
2268    *)   ac_site_file1=./$CONFIG_SITE;;
2269  esac
2270elif test "x$prefix" != xNONE; then
2271  ac_site_file1=$prefix/share/config.site
2272  ac_site_file2=$prefix/etc/config.site
2273else
2274  ac_site_file1=$ac_default_prefix/share/config.site
2275  ac_site_file2=$ac_default_prefix/etc/config.site
2276fi
2277for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2278do
2279  test "x$ac_site_file" = xNONE && continue
2280  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2281    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2282$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2283    sed 's/^/| /' "$ac_site_file" >&5
2284    . "$ac_site_file" \
2285      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287as_fn_error $? "failed to load site script $ac_site_file
2288See \`config.log' for more details" "$LINENO" 5; }
2289  fi
2290done
2291
2292if test -r "$cache_file"; then
2293  # Some versions of bash will fail to source /dev/null (special files
2294  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2295  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2296    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297$as_echo "$as_me: loading cache $cache_file" >&6;}
2298    case $cache_file in
2299      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2300      *)                      . "./$cache_file";;
2301    esac
2302  fi
2303else
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305$as_echo "$as_me: creating cache $cache_file" >&6;}
2306  >$cache_file
2307fi
2308
2309# Check that the precious variables saved in the cache have kept the same
2310# value.
2311ac_cache_corrupted=false
2312for ac_var in $ac_precious_vars; do
2313  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2314  eval ac_new_set=\$ac_env_${ac_var}_set
2315  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2316  eval ac_new_val=\$ac_env_${ac_var}_value
2317  case $ac_old_set,$ac_new_set in
2318    set,)
2319      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321      ac_cache_corrupted=: ;;
2322    ,set)
2323      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325      ac_cache_corrupted=: ;;
2326    ,);;
2327    *)
2328      if test "x$ac_old_val" != "x$ac_new_val"; then
2329	# differences in whitespace do not lead to failure.
2330	ac_old_val_w=`echo x $ac_old_val`
2331	ac_new_val_w=`echo x $ac_new_val`
2332	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335	  ac_cache_corrupted=:
2336	else
2337	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339	  eval $ac_var=\$ac_old_val
2340	fi
2341	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2342$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2343	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2344$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2345      fi;;
2346  esac
2347  # Pass precious variables to config.status.
2348  if test "$ac_new_set" = set; then
2349    case $ac_new_val in
2350    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351    *) ac_arg=$ac_var=$ac_new_val ;;
2352    esac
2353    case " $ac_configure_args " in
2354      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2355      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2356    esac
2357  fi
2358done
2359if $ac_cache_corrupted; then
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2365fi
2366## -------------------- ##
2367## Main body of script. ##
2368## -------------------- ##
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378
2379LT_VERSION="2:6:0"
2380USES_UCOMMON_REQUIRED="7.0.0"
2381
2382ac_aux_dir=
2383for ac_dir in autoconf "$srcdir"/autoconf; do
2384  if test -f "$ac_dir/install-sh"; then
2385    ac_aux_dir=$ac_dir
2386    ac_install_sh="$ac_aux_dir/install-sh -c"
2387    break
2388  elif test -f "$ac_dir/install.sh"; then
2389    ac_aux_dir=$ac_dir
2390    ac_install_sh="$ac_aux_dir/install.sh -c"
2391    break
2392  elif test -f "$ac_dir/shtool"; then
2393    ac_aux_dir=$ac_dir
2394    ac_install_sh="$ac_aux_dir/shtool install -c"
2395    break
2396  fi
2397done
2398if test -z "$ac_aux_dir"; then
2399  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2400fi
2401
2402# These three variables are undocumented and unsupported,
2403# and are intended to be withdrawn in a future Autoconf release.
2404# They can cause serious problems if a builder's source tree is in a directory
2405# whose full name contains unusual characters.
2406ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2407ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2408ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2409
2410
2411# Make sure we can run config.sub.
2412$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2413  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2414
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2416$as_echo_n "checking build system type... " >&6; }
2417if ${ac_cv_build+:} false; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  ac_build_alias=$build_alias
2421test "x$ac_build_alias" = x &&
2422  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2423test "x$ac_build_alias" = x &&
2424  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2425ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2426  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2427
2428fi
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2430$as_echo "$ac_cv_build" >&6; }
2431case $ac_cv_build in
2432*-*-*) ;;
2433*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2434esac
2435build=$ac_cv_build
2436ac_save_IFS=$IFS; IFS='-'
2437set x $ac_cv_build
2438shift
2439build_cpu=$1
2440build_vendor=$2
2441shift; shift
2442# Remember, the first character of IFS is used to create $*,
2443# except with old shells:
2444build_os=$*
2445IFS=$ac_save_IFS
2446case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2447
2448
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2450$as_echo_n "checking host system type... " >&6; }
2451if ${ac_cv_host+:} false; then :
2452  $as_echo_n "(cached) " >&6
2453else
2454  if test "x$host_alias" = x; then
2455  ac_cv_host=$ac_cv_build
2456else
2457  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2458    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2459fi
2460
2461fi
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2463$as_echo "$ac_cv_host" >&6; }
2464case $ac_cv_host in
2465*-*-*) ;;
2466*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2467esac
2468host=$ac_cv_host
2469ac_save_IFS=$IFS; IFS='-'
2470set x $ac_cv_host
2471shift
2472host_cpu=$1
2473host_vendor=$2
2474shift; shift
2475# Remember, the first character of IFS is used to create $*,
2476# except with old shells:
2477host_os=$*
2478IFS=$ac_save_IFS
2479case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2480
2481
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2483$as_echo_n "checking target system type... " >&6; }
2484if ${ac_cv_target+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  if test "x$target_alias" = x; then
2488  ac_cv_target=$ac_cv_host
2489else
2490  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2491    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2492fi
2493
2494fi
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2496$as_echo "$ac_cv_target" >&6; }
2497case $ac_cv_target in
2498*-*-*) ;;
2499*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2500esac
2501target=$ac_cv_target
2502ac_save_IFS=$IFS; IFS='-'
2503set x $ac_cv_target
2504shift
2505target_cpu=$1
2506target_vendor=$2
2507shift; shift
2508# Remember, the first character of IFS is used to create $*,
2509# except with old shells:
2510target_os=$*
2511IFS=$ac_save_IFS
2512case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2513
2514
2515# The aliases save the names the user supplied, while $host etc.
2516# will get canonicalized.
2517test -n "$target_alias" &&
2518  test "$program_prefix$program_suffix$program_transform_name" = \
2519    NONENONEs,x,x, &&
2520  program_prefix=${target_alias}-
2521
2522# expand $ac_aux_dir to an absolute path
2523am_aux_dir=`cd $ac_aux_dir && pwd`
2524
2525ac_ext=c
2526ac_cpp='$CPP $CPPFLAGS'
2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530if test -n "$ac_tool_prefix"; then
2531  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}gcc; ac_word=$2
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if ${ac_cv_prog_CC+:} false; then :
2536  $as_echo_n "(cached) " >&6
2537else
2538  if test -n "$CC"; then
2539  ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544  IFS=$as_save_IFS
2545  test -z "$as_dir" && as_dir=.
2546    for ac_exec_ext in '' $ac_executable_extensions; do
2547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550    break 2
2551  fi
2552done
2553  done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561$as_echo "$CC" >&6; }
2562else
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$ac_cv_prog_CC"; then
2570  ac_ct_CC=$CC
2571  # Extract the first word of "gcc", so it can be a program name with args.
2572set dummy gcc; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_ac_ct_CC+:} false; then :
2576  $as_echo_n "(cached) " >&6
2577else
2578  if test -n "$ac_ct_CC"; then
2579  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    for ac_exec_ext in '' $ac_executable_extensions; do
2587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588    ac_cv_prog_ac_ct_CC="gcc"
2589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593  done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599if test -n "$ac_ct_CC"; then
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601$as_echo "$ac_ct_CC" >&6; }
2602else
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607  if test "x$ac_ct_CC" = x; then
2608    CC=""
2609  else
2610    case $cross_compiling:$ac_tool_warned in
2611yes:)
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616    CC=$ac_ct_CC
2617  fi
2618else
2619  CC="$ac_cv_prog_CC"
2620fi
2621
2622if test -z "$CC"; then
2623          if test -n "$ac_tool_prefix"; then
2624    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2625set dummy ${ac_tool_prefix}cc; ac_word=$2
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627$as_echo_n "checking for $ac_word... " >&6; }
2628if ${ac_cv_prog_CC+:} false; then :
2629  $as_echo_n "(cached) " >&6
2630else
2631  if test -n "$CC"; then
2632  ac_cv_prog_CC="$CC" # Let the user override the test.
2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637  IFS=$as_save_IFS
2638  test -z "$as_dir" && as_dir=.
2639    for ac_exec_ext in '' $ac_executable_extensions; do
2640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641    ac_cv_prog_CC="${ac_tool_prefix}cc"
2642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643    break 2
2644  fi
2645done
2646  done
2647IFS=$as_save_IFS
2648
2649fi
2650fi
2651CC=$ac_cv_prog_CC
2652if test -n "$CC"; then
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654$as_echo "$CC" >&6; }
2655else
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657$as_echo "no" >&6; }
2658fi
2659
2660
2661  fi
2662fi
2663if test -z "$CC"; then
2664  # Extract the first word of "cc", so it can be a program name with args.
2665set dummy cc; ac_word=$2
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_CC+:} false; then :
2669  $as_echo_n "(cached) " >&6
2670else
2671  if test -n "$CC"; then
2672  ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674  ac_prog_rejected=no
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678  IFS=$as_save_IFS
2679  test -z "$as_dir" && as_dir=.
2680    for ac_exec_ext in '' $ac_executable_extensions; do
2681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2683       ac_prog_rejected=yes
2684       continue
2685     fi
2686    ac_cv_prog_CC="cc"
2687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691  done
2692IFS=$as_save_IFS
2693
2694if test $ac_prog_rejected = yes; then
2695  # We found a bogon in the path, so make sure we never use it.
2696  set dummy $ac_cv_prog_CC
2697  shift
2698  if test $# != 0; then
2699    # We chose a different compiler from the bogus one.
2700    # However, it has the same basename, so the bogon will be chosen
2701    # first if we set CC to just the basename; use the full file name.
2702    shift
2703    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2704  fi
2705fi
2706fi
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
2712else
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
2717
2718fi
2719if test -z "$CC"; then
2720  if test -n "$ac_tool_prefix"; then
2721  for ac_prog in cl.exe
2722  do
2723    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_CC+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  if test -n "$CC"; then
2731  ac_cv_prog_CC="$CC" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753$as_echo "$CC" >&6; }
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759
2760    test -n "$CC" && break
2761  done
2762fi
2763if test -z "$CC"; then
2764  ac_ct_CC=$CC
2765  for ac_prog in cl.exe
2766do
2767  # Extract the first word of "$ac_prog", so it can be a program name with args.
2768set dummy $ac_prog; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if ${ac_cv_prog_ac_ct_CC+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test -n "$ac_ct_CC"; then
2775  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784    ac_cv_prog_ac_ct_CC="$ac_prog"
2785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795if test -n "$ac_ct_CC"; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2797$as_echo "$ac_ct_CC" >&6; }
2798else
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804  test -n "$ac_ct_CC" && break
2805done
2806
2807  if test "x$ac_ct_CC" = x; then
2808    CC=""
2809  else
2810    case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816    CC=$ac_ct_CC
2817  fi
2818fi
2819
2820fi
2821
2822
2823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825as_fn_error $? "no acceptable C compiler found in \$PATH
2826See \`config.log' for more details" "$LINENO" 5; }
2827
2828# Provide some information about the compiler.
2829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2830set X $ac_compile
2831ac_compiler=$2
2832for ac_option in --version -v -V -qversion; do
2833  { { ac_try="$ac_compiler $ac_option >&5"
2834case "(($ac_try" in
2835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836  *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2841  ac_status=$?
2842  if test -s conftest.err; then
2843    sed '10a\
2844... rest of stderr output deleted ...
2845         10q' conftest.err >conftest.er1
2846    cat conftest.er1 >&5
2847  fi
2848  rm -f conftest.er1 conftest.err
2849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850  test $ac_status = 0; }
2851done
2852
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864ac_clean_files_save=$ac_clean_files
2865ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2866# Try to create an executable without -o first, disregard a.out.
2867# It will help us diagnose broken compilers, and finding out an intuition
2868# of exeext.
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2870$as_echo_n "checking whether the C compiler works... " >&6; }
2871ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872
2873# The possible output files:
2874ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875
2876ac_rmfiles=
2877for ac_file in $ac_files
2878do
2879  case $ac_file in
2880    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2881    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2882  esac
2883done
2884rm -f $ac_rmfiles
2885
2886if { { ac_try="$ac_link_default"
2887case "(($ac_try" in
2888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889  *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893  (eval "$ac_link_default") 2>&5
2894  ac_status=$?
2895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896  test $ac_status = 0; }; then :
2897  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2898# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2899# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2900# so that the user can short-circuit this test for compilers unknown to
2901# Autoconf.
2902for ac_file in $ac_files ''
2903do
2904  test -f "$ac_file" || continue
2905  case $ac_file in
2906    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907	;;
2908    [ab].out )
2909	# We found the default executable, but exeext='' is most
2910	# certainly right.
2911	break;;
2912    *.* )
2913	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2914	then :; else
2915	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916	fi
2917	# We set ac_cv_exeext here because the later test for it is not
2918	# safe: cross compilers may not add the suffix if given an `-o'
2919	# argument, so we may need to know it at that point already.
2920	# Even if this section looks crufty: it has the advantage of
2921	# actually working.
2922	break;;
2923    * )
2924	break;;
2925  esac
2926done
2927test "$ac_cv_exeext" = no && ac_cv_exeext=
2928
2929else
2930  ac_file=''
2931fi
2932if test -z "$ac_file"; then :
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935$as_echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error 77 "C compiler cannot create executables
2941See \`config.log' for more details" "$LINENO" 5; }
2942else
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944$as_echo "yes" >&6; }
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2947$as_echo_n "checking for C compiler default output file name... " >&6; }
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2949$as_echo "$ac_file" >&6; }
2950ac_exeext=$ac_cv_exeext
2951
2952rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2953ac_clean_files=$ac_clean_files_save
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2955$as_echo_n "checking for suffix of executables... " >&6; }
2956if { { ac_try="$ac_link"
2957case "(($ac_try" in
2958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959  *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962$as_echo "$ac_try_echo"; } >&5
2963  (eval "$ac_link") 2>&5
2964  ac_status=$?
2965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966  test $ac_status = 0; }; then :
2967  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2968# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2969# work properly (i.e., refer to `conftest.exe'), while it won't with
2970# `rm'.
2971for ac_file in conftest.exe conftest conftest.*; do
2972  test -f "$ac_file" || continue
2973  case $ac_file in
2974    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2975    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976	  break;;
2977    * ) break;;
2978  esac
2979done
2980else
2981  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2984See \`config.log' for more details" "$LINENO" 5; }
2985fi
2986rm -f conftest conftest$ac_cv_exeext
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2988$as_echo "$ac_cv_exeext" >&6; }
2989
2990rm -f conftest.$ac_ext
2991EXEEXT=$ac_cv_exeext
2992ac_exeext=$EXEEXT
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h.  */
2995#include <stdio.h>
2996int
2997main ()
2998{
2999FILE *f = fopen ("conftest.out", "w");
3000 return ferror (f) || fclose (f) != 0;
3001
3002  ;
3003  return 0;
3004}
3005_ACEOF
3006ac_clean_files="$ac_clean_files conftest.out"
3007# Check that the compiler produces executables we can run.  If not, either
3008# the compiler is broken, or we cross compile.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3010$as_echo_n "checking whether we are cross compiling... " >&6; }
3011if test "$cross_compiling" != yes; then
3012  { { ac_try="$ac_link"
3013case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
3019  (eval "$ac_link") 2>&5
3020  ac_status=$?
3021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022  test $ac_status = 0; }
3023  if { ac_try='./conftest$ac_cv_exeext'
3024  { { case "(($ac_try" in
3025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026  *) ac_try_echo=$ac_try;;
3027esac
3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029$as_echo "$ac_try_echo"; } >&5
3030  (eval "$ac_try") 2>&5
3031  ac_status=$?
3032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033  test $ac_status = 0; }; }; then
3034    cross_compiling=no
3035  else
3036    if test "$cross_compiling" = maybe; then
3037	cross_compiling=yes
3038    else
3039	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041as_fn_error $? "cannot run C compiled programs.
3042If you meant to cross compile, use \`--host'.
3043See \`config.log' for more details" "$LINENO" 5; }
3044    fi
3045  fi
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3048$as_echo "$cross_compiling" >&6; }
3049
3050rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3051ac_clean_files=$ac_clean_files_save
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3053$as_echo_n "checking for suffix of object files... " >&6; }
3054if ${ac_cv_objext+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.o conftest.obj
3069if { { ac_try="$ac_compile"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076  (eval "$ac_compile") 2>&5
3077  ac_status=$?
3078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079  test $ac_status = 0; }; then :
3080  for ac_file in conftest.o conftest.obj conftest.*; do
3081  test -f "$ac_file" || continue;
3082  case $ac_file in
3083    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3085       break;;
3086  esac
3087done
3088else
3089  $as_echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error $? "cannot compute suffix of object files: cannot compile
3095See \`config.log' for more details" "$LINENO" 5; }
3096fi
3097rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3100$as_echo "$ac_cv_objext" >&6; }
3101OBJEXT=$ac_cv_objext
3102ac_objext=$OBJEXT
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3104$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3105if ${ac_cv_c_compiler_gnu+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114#ifndef __GNUC__
3115       choke me
3116#endif
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123  ac_compiler_gnu=yes
3124else
3125  ac_compiler_gnu=no
3126fi
3127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128ac_cv_c_compiler_gnu=$ac_compiler_gnu
3129
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3132$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133if test $ac_compiler_gnu = yes; then
3134  GCC=yes
3135else
3136  GCC=
3137fi
3138ac_test_CFLAGS=${CFLAGS+set}
3139ac_save_CFLAGS=$CFLAGS
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3141$as_echo_n "checking whether $CC accepts -g... " >&6; }
3142if ${ac_cv_prog_cc_g+:} false; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  ac_save_c_werror_flag=$ac_c_werror_flag
3146   ac_c_werror_flag=yes
3147   ac_cv_prog_cc_g=no
3148   CFLAGS="-g"
3149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h.  */
3151
3152int
3153main ()
3154{
3155
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160if ac_fn_c_try_compile "$LINENO"; then :
3161  ac_cv_prog_cc_g=yes
3162else
3163  CFLAGS=""
3164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176
3177else
3178  ac_c_werror_flag=$ac_save_c_werror_flag
3179	 CFLAGS="-g"
3180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182
3183int
3184main ()
3185{
3186
3187  ;
3188  return 0;
3189}
3190_ACEOF
3191if ac_fn_c_try_compile "$LINENO"; then :
3192  ac_cv_prog_cc_g=yes
3193fi
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199   ac_c_werror_flag=$ac_save_c_werror_flag
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3202$as_echo "$ac_cv_prog_cc_g" >&6; }
3203if test "$ac_test_CFLAGS" = set; then
3204  CFLAGS=$ac_save_CFLAGS
3205elif test $ac_cv_prog_cc_g = yes; then
3206  if test "$GCC" = yes; then
3207    CFLAGS="-g -O2"
3208  else
3209    CFLAGS="-g"
3210  fi
3211else
3212  if test "$GCC" = yes; then
3213    CFLAGS="-O2"
3214  else
3215    CFLAGS=
3216  fi
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3219$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3220if ${ac_cv_prog_cc_c89+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  ac_cv_prog_cc_c89=no
3224ac_save_CC=$CC
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227#include <stdarg.h>
3228#include <stdio.h>
3229struct stat;
3230/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3231struct buf { int x; };
3232FILE * (*rcsopen) (struct buf *, struct stat *, int);
3233static char *e (p, i)
3234     char **p;
3235     int i;
3236{
3237  return p[i];
3238}
3239static char *f (char * (*g) (char **, int), char **p, ...)
3240{
3241  char *s;
3242  va_list v;
3243  va_start (v,p);
3244  s = g (p, va_arg (v,int));
3245  va_end (v);
3246  return s;
3247}
3248
3249/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3250   function prototypes and stuff, but not '\xHH' hex character constants.
3251   These don't provoke an error unfortunately, instead are silently treated
3252   as 'x'.  The following induces an error, until -std is added to get
3253   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3254   array size at least.  It's necessary to write '\x00'==0 to get something
3255   that's true only with -std.  */
3256int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257
3258/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3259   inside strings and character constants.  */
3260#define FOO(x) 'x'
3261int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262
3263int test (int i, double x);
3264struct s1 {int (*f) (int a);};
3265struct s2 {int (*f) (double a);};
3266int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3267int argc;
3268char **argv;
3269int
3270main ()
3271{
3272return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3278	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279do
3280  CC="$ac_save_CC $ac_arg"
3281  if ac_fn_c_try_compile "$LINENO"; then :
3282  ac_cv_prog_cc_c89=$ac_arg
3283fi
3284rm -f core conftest.err conftest.$ac_objext
3285  test "x$ac_cv_prog_cc_c89" != "xno" && break
3286done
3287rm -f conftest.$ac_ext
3288CC=$ac_save_CC
3289
3290fi
3291# AC_CACHE_VAL
3292case "x$ac_cv_prog_cc_c89" in
3293  x)
3294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3295$as_echo "none needed" >&6; } ;;
3296  xno)
3297    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3298$as_echo "unsupported" >&6; } ;;
3299  *)
3300    CC="$CC $ac_cv_prog_cc_c89"
3301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3302$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3303esac
3304if test "x$ac_cv_prog_cc_c89" != xno; then :
3305
3306fi
3307
3308ac_ext=c
3309ac_cpp='$CPP $CPPFLAGS'
3310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3320$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3321if ${am_cv_prog_cc_c_o+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325/* end confdefs.h.  */
3326
3327int
3328main ()
3329{
3330
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335  # Make sure it works both with $CC and with simple cc.
3336  # Following AC_PROG_CC_C_O, we do the test twice because some
3337  # compilers refuse to overwrite an existing .o file with -o,
3338  # though they will create one.
3339  am_cv_prog_cc_c_o=yes
3340  for am_i in 1 2; do
3341    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3342   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } \
3346         && test -f conftest2.$ac_objext; then
3347      : OK
3348    else
3349      am_cv_prog_cc_c_o=no
3350      break
3351    fi
3352  done
3353  rm -f core conftest*
3354  unset am_i
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3357$as_echo "$am_cv_prog_cc_c_o" >&6; }
3358if test "$am_cv_prog_cc_c_o" != yes; then
3359   # Losing compiler, so override with the script.
3360   # FIXME: It is wrong to rewrite CC.
3361   # But if we don't then we get into trouble of one sort or another.
3362   # A longer-term fix would be to have automake use am__CC in this case,
3363   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3364   CC="$am_aux_dir/compile $CC"
3365fi
3366ac_ext=c
3367ac_cpp='$CPP $CPPFLAGS'
3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371
3372
3373ac_ext=c
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3379$as_echo_n "checking how to run the C preprocessor... " >&6; }
3380# On Suns, sometimes $CPP names a directory.
3381if test -n "$CPP" && test -d "$CPP"; then
3382  CPP=
3383fi
3384if test -z "$CPP"; then
3385  if ${ac_cv_prog_CPP+:} false; then :
3386  $as_echo_n "(cached) " >&6
3387else
3388      # Double quotes because CPP needs to be expanded
3389    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3390    do
3391      ac_preproc_ok=false
3392for ac_c_preproc_warn_flag in '' yes
3393do
3394  # Use a header file that comes with gcc, so configuring glibc
3395  # with a fresh cross-compiler works.
3396  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3397  # <limits.h> exists even on freestanding compilers.
3398  # On the NeXT, cc -E runs the code through the compiler's parser,
3399  # not just through cpp. "Syntax error" is here to catch this case.
3400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402#ifdef __STDC__
3403# include <limits.h>
3404#else
3405# include <assert.h>
3406#endif
3407		     Syntax error
3408_ACEOF
3409if ac_fn_c_try_cpp "$LINENO"; then :
3410
3411else
3412  # Broken: fails on valid input.
3413continue
3414fi
3415rm -f conftest.err conftest.i conftest.$ac_ext
3416
3417  # OK, works on sane cases.  Now check whether nonexistent headers
3418  # can be detected and how.
3419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421#include <ac_nonexistent.h>
3422_ACEOF
3423if ac_fn_c_try_cpp "$LINENO"; then :
3424  # Broken: success on invalid input.
3425continue
3426else
3427  # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
3431rm -f conftest.err conftest.i conftest.$ac_ext
3432
3433done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435rm -f conftest.i conftest.err conftest.$ac_ext
3436if $ac_preproc_ok; then :
3437  break
3438fi
3439
3440    done
3441    ac_cv_prog_CPP=$CPP
3442
3443fi
3444  CPP=$ac_cv_prog_CPP
3445else
3446  ac_cv_prog_CPP=$CPP
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3449$as_echo "$CPP" >&6; }
3450ac_preproc_ok=false
3451for ac_c_preproc_warn_flag in '' yes
3452do
3453  # Use a header file that comes with gcc, so configuring glibc
3454  # with a fresh cross-compiler works.
3455  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456  # <limits.h> exists even on freestanding compilers.
3457  # On the NeXT, cc -E runs the code through the compiler's parser,
3458  # not just through cpp. "Syntax error" is here to catch this case.
3459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h.  */
3461#ifdef __STDC__
3462# include <limits.h>
3463#else
3464# include <assert.h>
3465#endif
3466		     Syntax error
3467_ACEOF
3468if ac_fn_c_try_cpp "$LINENO"; then :
3469
3470else
3471  # Broken: fails on valid input.
3472continue
3473fi
3474rm -f conftest.err conftest.i conftest.$ac_ext
3475
3476  # OK, works on sane cases.  Now check whether nonexistent headers
3477  # can be detected and how.
3478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480#include <ac_nonexistent.h>
3481_ACEOF
3482if ac_fn_c_try_cpp "$LINENO"; then :
3483  # Broken: success on invalid input.
3484continue
3485else
3486  # Passes both tests.
3487ac_preproc_ok=:
3488break
3489fi
3490rm -f conftest.err conftest.i conftest.$ac_ext
3491
3492done
3493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494rm -f conftest.i conftest.err conftest.$ac_ext
3495if $ac_preproc_ok; then :
3496
3497else
3498  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3501See \`config.log' for more details" "$LINENO" 5; }
3502fi
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515if test -n "$ac_tool_prefix"; then
3516  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3517set dummy ${ac_tool_prefix}gcc; ac_word=$2
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519$as_echo_n "checking for $ac_word... " >&6; }
3520if ${ac_cv_prog_CC+:} false; then :
3521  $as_echo_n "(cached) " >&6
3522else
3523  if test -n "$CC"; then
3524  ac_cv_prog_CC="$CC" # Let the user override the test.
3525else
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529  IFS=$as_save_IFS
3530  test -z "$as_dir" && as_dir=.
3531    for ac_exec_ext in '' $ac_executable_extensions; do
3532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535    break 2
3536  fi
3537done
3538  done
3539IFS=$as_save_IFS
3540
3541fi
3542fi
3543CC=$ac_cv_prog_CC
3544if test -n "$CC"; then
3545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546$as_echo "$CC" >&6; }
3547else
3548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549$as_echo "no" >&6; }
3550fi
3551
3552
3553fi
3554if test -z "$ac_cv_prog_CC"; then
3555  ac_ct_CC=$CC
3556  # Extract the first word of "gcc", so it can be a program name with args.
3557set dummy gcc; ac_word=$2
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559$as_echo_n "checking for $ac_word... " >&6; }
3560if ${ac_cv_prog_ac_ct_CC+:} false; then :
3561  $as_echo_n "(cached) " >&6
3562else
3563  if test -n "$ac_ct_CC"; then
3564  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565else
3566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567for as_dir in $PATH
3568do
3569  IFS=$as_save_IFS
3570  test -z "$as_dir" && as_dir=.
3571    for ac_exec_ext in '' $ac_executable_extensions; do
3572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573    ac_cv_prog_ac_ct_CC="gcc"
3574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575    break 2
3576  fi
3577done
3578  done
3579IFS=$as_save_IFS
3580
3581fi
3582fi
3583ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584if test -n "$ac_ct_CC"; then
3585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586$as_echo "$ac_ct_CC" >&6; }
3587else
3588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589$as_echo "no" >&6; }
3590fi
3591
3592  if test "x$ac_ct_CC" = x; then
3593    CC=""
3594  else
3595    case $cross_compiling:$ac_tool_warned in
3596yes:)
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599ac_tool_warned=yes ;;
3600esac
3601    CC=$ac_ct_CC
3602  fi
3603else
3604  CC="$ac_cv_prog_CC"
3605fi
3606
3607if test -z "$CC"; then
3608          if test -n "$ac_tool_prefix"; then
3609    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3610set dummy ${ac_tool_prefix}cc; ac_word=$2
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612$as_echo_n "checking for $ac_word... " >&6; }
3613if ${ac_cv_prog_CC+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  if test -n "$CC"; then
3617  ac_cv_prog_CC="$CC" # Let the user override the test.
3618else
3619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
3622  IFS=$as_save_IFS
3623  test -z "$as_dir" && as_dir=.
3624    for ac_exec_ext in '' $ac_executable_extensions; do
3625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626    ac_cv_prog_CC="${ac_tool_prefix}cc"
3627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628    break 2
3629  fi
3630done
3631  done
3632IFS=$as_save_IFS
3633
3634fi
3635fi
3636CC=$ac_cv_prog_CC
3637if test -n "$CC"; then
3638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639$as_echo "$CC" >&6; }
3640else
3641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642$as_echo "no" >&6; }
3643fi
3644
3645
3646  fi
3647fi
3648if test -z "$CC"; then
3649  # Extract the first word of "cc", so it can be a program name with args.
3650set dummy cc; ac_word=$2
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652$as_echo_n "checking for $ac_word... " >&6; }
3653if ${ac_cv_prog_CC+:} false; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  if test -n "$CC"; then
3657  ac_cv_prog_CC="$CC" # Let the user override the test.
3658else
3659  ac_prog_rejected=no
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663  IFS=$as_save_IFS
3664  test -z "$as_dir" && as_dir=.
3665    for ac_exec_ext in '' $ac_executable_extensions; do
3666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3668       ac_prog_rejected=yes
3669       continue
3670     fi
3671    ac_cv_prog_CC="cc"
3672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673    break 2
3674  fi
3675done
3676  done
3677IFS=$as_save_IFS
3678
3679if test $ac_prog_rejected = yes; then
3680  # We found a bogon in the path, so make sure we never use it.
3681  set dummy $ac_cv_prog_CC
3682  shift
3683  if test $# != 0; then
3684    # We chose a different compiler from the bogus one.
3685    # However, it has the same basename, so the bogon will be chosen
3686    # first if we set CC to just the basename; use the full file name.
3687    shift
3688    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3689  fi
3690fi
3691fi
3692fi
3693CC=$ac_cv_prog_CC
3694if test -n "$CC"; then
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3696$as_echo "$CC" >&6; }
3697else
3698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700fi
3701
3702
3703fi
3704if test -z "$CC"; then
3705  if test -n "$ac_tool_prefix"; then
3706  for ac_prog in cl.exe
3707  do
3708    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711$as_echo_n "checking for $ac_word... " >&6; }
3712if ${ac_cv_prog_CC+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  if test -n "$CC"; then
3716  ac_cv_prog_CC="$CC" # Let the user override the test.
3717else
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721  IFS=$as_save_IFS
3722  test -z "$as_dir" && as_dir=.
3723    for ac_exec_ext in '' $ac_executable_extensions; do
3724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727    break 2
3728  fi
3729done
3730  done
3731IFS=$as_save_IFS
3732
3733fi
3734fi
3735CC=$ac_cv_prog_CC
3736if test -n "$CC"; then
3737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738$as_echo "$CC" >&6; }
3739else
3740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741$as_echo "no" >&6; }
3742fi
3743
3744
3745    test -n "$CC" && break
3746  done
3747fi
3748if test -z "$CC"; then
3749  ac_ct_CC=$CC
3750  for ac_prog in cl.exe
3751do
3752  # Extract the first word of "$ac_prog", so it can be a program name with args.
3753set dummy $ac_prog; ac_word=$2
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755$as_echo_n "checking for $ac_word... " >&6; }
3756if ${ac_cv_prog_ac_ct_CC+:} false; then :
3757  $as_echo_n "(cached) " >&6
3758else
3759  if test -n "$ac_ct_CC"; then
3760  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765  IFS=$as_save_IFS
3766  test -z "$as_dir" && as_dir=.
3767    for ac_exec_ext in '' $ac_executable_extensions; do
3768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769    ac_cv_prog_ac_ct_CC="$ac_prog"
3770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771    break 2
3772  fi
3773done
3774  done
3775IFS=$as_save_IFS
3776
3777fi
3778fi
3779ac_ct_CC=$ac_cv_prog_ac_ct_CC
3780if test -n "$ac_ct_CC"; then
3781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3782$as_echo "$ac_ct_CC" >&6; }
3783else
3784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785$as_echo "no" >&6; }
3786fi
3787
3788
3789  test -n "$ac_ct_CC" && break
3790done
3791
3792  if test "x$ac_ct_CC" = x; then
3793    CC=""
3794  else
3795    case $cross_compiling:$ac_tool_warned in
3796yes:)
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799ac_tool_warned=yes ;;
3800esac
3801    CC=$ac_ct_CC
3802  fi
3803fi
3804
3805fi
3806
3807
3808test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810as_fn_error $? "no acceptable C compiler found in \$PATH
3811See \`config.log' for more details" "$LINENO" 5; }
3812
3813# Provide some information about the compiler.
3814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3815set X $ac_compile
3816ac_compiler=$2
3817for ac_option in --version -v -V -qversion; do
3818  { { ac_try="$ac_compiler $ac_option >&5"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
3825  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3826  ac_status=$?
3827  if test -s conftest.err; then
3828    sed '10a\
3829... rest of stderr output deleted ...
3830         10q' conftest.err >conftest.er1
3831    cat conftest.er1 >&5
3832  fi
3833  rm -f conftest.er1 conftest.err
3834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835  test $ac_status = 0; }
3836done
3837
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3839$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3840if ${ac_cv_c_compiler_gnu+:} false; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845
3846int
3847main ()
3848{
3849#ifndef __GNUC__
3850       choke me
3851#endif
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857if ac_fn_c_try_compile "$LINENO"; then :
3858  ac_compiler_gnu=yes
3859else
3860  ac_compiler_gnu=no
3861fi
3862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863ac_cv_c_compiler_gnu=$ac_compiler_gnu
3864
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3867$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3868if test $ac_compiler_gnu = yes; then
3869  GCC=yes
3870else
3871  GCC=
3872fi
3873ac_test_CFLAGS=${CFLAGS+set}
3874ac_save_CFLAGS=$CFLAGS
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3876$as_echo_n "checking whether $CC accepts -g... " >&6; }
3877if ${ac_cv_prog_cc_g+:} false; then :
3878  $as_echo_n "(cached) " >&6
3879else
3880  ac_save_c_werror_flag=$ac_c_werror_flag
3881   ac_c_werror_flag=yes
3882   ac_cv_prog_cc_g=no
3883   CFLAGS="-g"
3884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886
3887int
3888main ()
3889{
3890
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895if ac_fn_c_try_compile "$LINENO"; then :
3896  ac_cv_prog_cc_g=yes
3897else
3898  CFLAGS=""
3899      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901
3902int
3903main ()
3904{
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910if ac_fn_c_try_compile "$LINENO"; then :
3911
3912else
3913  ac_c_werror_flag=$ac_save_c_werror_flag
3914	 CFLAGS="-g"
3915	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917
3918int
3919main ()
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_prog_cc_g=yes
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932fi
3933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934   ac_c_werror_flag=$ac_save_c_werror_flag
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3937$as_echo "$ac_cv_prog_cc_g" >&6; }
3938if test "$ac_test_CFLAGS" = set; then
3939  CFLAGS=$ac_save_CFLAGS
3940elif test $ac_cv_prog_cc_g = yes; then
3941  if test "$GCC" = yes; then
3942    CFLAGS="-g -O2"
3943  else
3944    CFLAGS="-g"
3945  fi
3946else
3947  if test "$GCC" = yes; then
3948    CFLAGS="-O2"
3949  else
3950    CFLAGS=
3951  fi
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955if ${ac_cv_prog_cc_c89+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  ac_cv_prog_cc_c89=no
3959ac_save_CC=$CC
3960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h.  */
3962#include <stdarg.h>
3963#include <stdio.h>
3964struct stat;
3965/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3966struct buf { int x; };
3967FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968static char *e (p, i)
3969     char **p;
3970     int i;
3971{
3972  return p[i];
3973}
3974static char *f (char * (*g) (char **, int), char **p, ...)
3975{
3976  char *s;
3977  va_list v;
3978  va_start (v,p);
3979  s = g (p, va_arg (v,int));
3980  va_end (v);
3981  return s;
3982}
3983
3984/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3985   function prototypes and stuff, but not '\xHH' hex character constants.
3986   These don't provoke an error unfortunately, instead are silently treated
3987   as 'x'.  The following induces an error, until -std is added to get
3988   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3989   array size at least.  It's necessary to write '\x00'==0 to get something
3990   that's true only with -std.  */
3991int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992
3993/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994   inside strings and character constants.  */
3995#define FOO(x) 'x'
3996int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997
3998int test (int i, double x);
3999struct s1 {int (*f) (int a);};
4000struct s2 {int (*f) (double a);};
4001int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002int argc;
4003char **argv;
4004int
4005main ()
4006{
4007return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014do
4015  CC="$ac_save_CC $ac_arg"
4016  if ac_fn_c_try_compile "$LINENO"; then :
4017  ac_cv_prog_cc_c89=$ac_arg
4018fi
4019rm -f core conftest.err conftest.$ac_objext
4020  test "x$ac_cv_prog_cc_c89" != "xno" && break
4021done
4022rm -f conftest.$ac_ext
4023CC=$ac_save_CC
4024
4025fi
4026# AC_CACHE_VAL
4027case "x$ac_cv_prog_cc_c89" in
4028  x)
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030$as_echo "none needed" >&6; } ;;
4031  xno)
4032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033$as_echo "unsupported" >&6; } ;;
4034  *)
4035    CC="$CC $ac_cv_prog_cc_c89"
4036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4037$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4038esac
4039if test "x$ac_cv_prog_cc_c89" != xno; then :
4040
4041fi
4042
4043ac_ext=c
4044ac_cpp='$CPP $CPPFLAGS'
4045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049ac_ext=c
4050ac_cpp='$CPP $CPPFLAGS'
4051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4055$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4056if ${am_cv_prog_cc_c_o+:} false; then :
4057  $as_echo_n "(cached) " >&6
4058else
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061
4062int
4063main ()
4064{
4065
4066  ;
4067  return 0;
4068}
4069_ACEOF
4070  # Make sure it works both with $CC and with simple cc.
4071  # Following AC_PROG_CC_C_O, we do the test twice because some
4072  # compilers refuse to overwrite an existing .o file with -o,
4073  # though they will create one.
4074  am_cv_prog_cc_c_o=yes
4075  for am_i in 1 2; do
4076    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4077   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } \
4081         && test -f conftest2.$ac_objext; then
4082      : OK
4083    else
4084      am_cv_prog_cc_c_o=no
4085      break
4086    fi
4087  done
4088  rm -f core conftest*
4089  unset am_i
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4092$as_echo "$am_cv_prog_cc_c_o" >&6; }
4093if test "$am_cv_prog_cc_c_o" != yes; then
4094   # Losing compiler, so override with the script.
4095   # FIXME: It is wrong to rewrite CC.
4096   # But if we don't then we get into trouble of one sort or another.
4097   # A longer-term fix would be to have automake use am__CC in this case,
4098   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4099   CC="$am_aux_dir/compile $CC"
4100fi
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108ac_ext=cpp
4109ac_cpp='$CXXCPP $CPPFLAGS'
4110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4113if test -z "$CXX"; then
4114  if test -n "$CCC"; then
4115    CXX=$CCC
4116  else
4117    if test -n "$ac_tool_prefix"; then
4118  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4119  do
4120    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123$as_echo_n "checking for $ac_word... " >&6; }
4124if ${ac_cv_prog_CXX+:} false; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  if test -n "$CXX"; then
4128  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133  IFS=$as_save_IFS
4134  test -z "$as_dir" && as_dir=.
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139    break 2
4140  fi
4141done
4142  done
4143IFS=$as_save_IFS
4144
4145fi
4146fi
4147CXX=$ac_cv_prog_CXX
4148if test -n "$CXX"; then
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4150$as_echo "$CXX" >&6; }
4151else
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153$as_echo "no" >&6; }
4154fi
4155
4156
4157    test -n "$CXX" && break
4158  done
4159fi
4160if test -z "$CXX"; then
4161  ac_ct_CXX=$CXX
4162  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4163do
4164  # Extract the first word of "$ac_prog", so it can be a program name with args.
4165set dummy $ac_prog; ac_word=$2
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -n "$ac_ct_CXX"; then
4172  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177  IFS=$as_save_IFS
4178  test -z "$as_dir" && as_dir=.
4179    for ac_exec_ext in '' $ac_executable_extensions; do
4180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181    ac_cv_prog_ac_ct_CXX="$ac_prog"
4182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183    break 2
4184  fi
4185done
4186  done
4187IFS=$as_save_IFS
4188
4189fi
4190fi
4191ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4192if test -n "$ac_ct_CXX"; then
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4194$as_echo "$ac_ct_CXX" >&6; }
4195else
4196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
4198fi
4199
4200
4201  test -n "$ac_ct_CXX" && break
4202done
4203
4204  if test "x$ac_ct_CXX" = x; then
4205    CXX="g++"
4206  else
4207    case $cross_compiling:$ac_tool_warned in
4208yes:)
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211ac_tool_warned=yes ;;
4212esac
4213    CXX=$ac_ct_CXX
4214  fi
4215fi
4216
4217  fi
4218fi
4219# Provide some information about the compiler.
4220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4221set X $ac_compile
4222ac_compiler=$2
4223for ac_option in --version -v -V -qversion; do
4224  { { ac_try="$ac_compiler $ac_option >&5"
4225case "(($ac_try" in
4226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227  *) ac_try_echo=$ac_try;;
4228esac
4229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230$as_echo "$ac_try_echo"; } >&5
4231  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4232  ac_status=$?
4233  if test -s conftest.err; then
4234    sed '10a\
4235... rest of stderr output deleted ...
4236         10q' conftest.err >conftest.er1
4237    cat conftest.er1 >&5
4238  fi
4239  rm -f conftest.er1 conftest.err
4240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241  test $ac_status = 0; }
4242done
4243
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4245$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4246if ${ac_cv_cxx_compiler_gnu+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251
4252int
4253main ()
4254{
4255#ifndef __GNUC__
4256       choke me
4257#endif
4258
4259  ;
4260  return 0;
4261}
4262_ACEOF
4263if ac_fn_cxx_try_compile "$LINENO"; then :
4264  ac_compiler_gnu=yes
4265else
4266  ac_compiler_gnu=no
4267fi
4268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4270
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4273$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4274if test $ac_compiler_gnu = yes; then
4275  GXX=yes
4276else
4277  GXX=
4278fi
4279ac_test_CXXFLAGS=${CXXFLAGS+set}
4280ac_save_CXXFLAGS=$CXXFLAGS
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4282$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4283if ${ac_cv_prog_cxx_g+:} false; then :
4284  $as_echo_n "(cached) " >&6
4285else
4286  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4287   ac_cxx_werror_flag=yes
4288   ac_cv_prog_cxx_g=no
4289   CXXFLAGS="-g"
4290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292
4293int
4294main ()
4295{
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301if ac_fn_cxx_try_compile "$LINENO"; then :
4302  ac_cv_prog_cxx_g=yes
4303else
4304  CXXFLAGS=""
4305      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307
4308int
4309main ()
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_cxx_try_compile "$LINENO"; then :
4317
4318else
4319  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4320	 CXXFLAGS="-g"
4321	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323
4324int
4325main ()
4326{
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_cxx_try_compile "$LINENO"; then :
4333  ac_cv_prog_cxx_g=yes
4334fi
4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336fi
4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4343$as_echo "$ac_cv_prog_cxx_g" >&6; }
4344if test "$ac_test_CXXFLAGS" = set; then
4345  CXXFLAGS=$ac_save_CXXFLAGS
4346elif test $ac_cv_prog_cxx_g = yes; then
4347  if test "$GXX" = yes; then
4348    CXXFLAGS="-g -O2"
4349  else
4350    CXXFLAGS="-g"
4351  fi
4352else
4353  if test "$GXX" = yes; then
4354    CXXFLAGS="-O2"
4355  else
4356    CXXFLAGS=
4357  fi
4358fi
4359ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365ac_ext=cpp
4366ac_cpp='$CXXCPP $CPPFLAGS'
4367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4371$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4372if test -z "$CXXCPP"; then
4373  if ${ac_cv_prog_CXXCPP+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376      # Double quotes because CXXCPP needs to be expanded
4377    for CXXCPP in "$CXX -E" "/lib/cpp"
4378    do
4379      ac_preproc_ok=false
4380for ac_cxx_preproc_warn_flag in '' yes
4381do
4382  # Use a header file that comes with gcc, so configuring glibc
4383  # with a fresh cross-compiler works.
4384  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385  # <limits.h> exists even on freestanding compilers.
4386  # On the NeXT, cc -E runs the code through the compiler's parser,
4387  # not just through cpp. "Syntax error" is here to catch this case.
4388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390#ifdef __STDC__
4391# include <limits.h>
4392#else
4393# include <assert.h>
4394#endif
4395		     Syntax error
4396_ACEOF
4397if ac_fn_cxx_try_cpp "$LINENO"; then :
4398
4399else
4400  # Broken: fails on valid input.
4401continue
4402fi
4403rm -f conftest.err conftest.i conftest.$ac_ext
4404
4405  # OK, works on sane cases.  Now check whether nonexistent headers
4406  # can be detected and how.
4407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h.  */
4409#include <ac_nonexistent.h>
4410_ACEOF
4411if ac_fn_cxx_try_cpp "$LINENO"; then :
4412  # Broken: success on invalid input.
4413continue
4414else
4415  # Passes both tests.
4416ac_preproc_ok=:
4417break
4418fi
4419rm -f conftest.err conftest.i conftest.$ac_ext
4420
4421done
4422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4423rm -f conftest.i conftest.err conftest.$ac_ext
4424if $ac_preproc_ok; then :
4425  break
4426fi
4427
4428    done
4429    ac_cv_prog_CXXCPP=$CXXCPP
4430
4431fi
4432  CXXCPP=$ac_cv_prog_CXXCPP
4433else
4434  ac_cv_prog_CXXCPP=$CXXCPP
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4437$as_echo "$CXXCPP" >&6; }
4438ac_preproc_ok=false
4439for ac_cxx_preproc_warn_flag in '' yes
4440do
4441  # Use a header file that comes with gcc, so configuring glibc
4442  # with a fresh cross-compiler works.
4443  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444  # <limits.h> exists even on freestanding compilers.
4445  # On the NeXT, cc -E runs the code through the compiler's parser,
4446  # not just through cpp. "Syntax error" is here to catch this case.
4447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h.  */
4449#ifdef __STDC__
4450# include <limits.h>
4451#else
4452# include <assert.h>
4453#endif
4454		     Syntax error
4455_ACEOF
4456if ac_fn_cxx_try_cpp "$LINENO"; then :
4457
4458else
4459  # Broken: fails on valid input.
4460continue
4461fi
4462rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464  # OK, works on sane cases.  Now check whether nonexistent headers
4465  # can be detected and how.
4466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468#include <ac_nonexistent.h>
4469_ACEOF
4470if ac_fn_cxx_try_cpp "$LINENO"; then :
4471  # Broken: success on invalid input.
4472continue
4473else
4474  # Passes both tests.
4475ac_preproc_ok=:
4476break
4477fi
4478rm -f conftest.err conftest.i conftest.$ac_ext
4479
4480done
4481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4482rm -f conftest.i conftest.err conftest.$ac_ext
4483if $ac_preproc_ok; then :
4484
4485else
4486  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4489See \`config.log' for more details" "$LINENO" 5; }
4490fi
4491
4492ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498ac_ext=cpp
4499ac_cpp='$CXXCPP $CPPFLAGS'
4500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503if test -z "$CXX"; then
4504  if test -n "$CCC"; then
4505    CXX=$CCC
4506  else
4507    if test -n "$ac_tool_prefix"; then
4508  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4509  do
4510    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if ${ac_cv_prog_CXX+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  if test -n "$CXX"; then
4518  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523  IFS=$as_save_IFS
4524  test -z "$as_dir" && as_dir=.
4525    for ac_exec_ext in '' $ac_executable_extensions; do
4526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529    break 2
4530  fi
4531done
4532  done
4533IFS=$as_save_IFS
4534
4535fi
4536fi
4537CXX=$ac_cv_prog_CXX
4538if test -n "$CXX"; then
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4540$as_echo "$CXX" >&6; }
4541else
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546
4547    test -n "$CXX" && break
4548  done
4549fi
4550if test -z "$CXX"; then
4551  ac_ct_CXX=$CXX
4552  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4553do
4554  # Extract the first word of "$ac_prog", so it can be a program name with args.
4555set dummy $ac_prog; ac_word=$2
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557$as_echo_n "checking for $ac_word... " >&6; }
4558if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  if test -n "$ac_ct_CXX"; then
4562  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567  IFS=$as_save_IFS
4568  test -z "$as_dir" && as_dir=.
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571    ac_cv_prog_ac_ct_CXX="$ac_prog"
4572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573    break 2
4574  fi
4575done
4576  done
4577IFS=$as_save_IFS
4578
4579fi
4580fi
4581ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4582if test -n "$ac_ct_CXX"; then
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584$as_echo "$ac_ct_CXX" >&6; }
4585else
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
4588fi
4589
4590
4591  test -n "$ac_ct_CXX" && break
4592done
4593
4594  if test "x$ac_ct_CXX" = x; then
4595    CXX="g++"
4596  else
4597    case $cross_compiling:$ac_tool_warned in
4598yes:)
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601ac_tool_warned=yes ;;
4602esac
4603    CXX=$ac_ct_CXX
4604  fi
4605fi
4606
4607  fi
4608fi
4609# Provide some information about the compiler.
4610$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4611set X $ac_compile
4612ac_compiler=$2
4613for ac_option in --version -v -V -qversion; do
4614  { { ac_try="$ac_compiler $ac_option >&5"
4615case "(($ac_try" in
4616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617  *) ac_try_echo=$ac_try;;
4618esac
4619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620$as_echo "$ac_try_echo"; } >&5
4621  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4622  ac_status=$?
4623  if test -s conftest.err; then
4624    sed '10a\
4625... rest of stderr output deleted ...
4626         10q' conftest.err >conftest.er1
4627    cat conftest.er1 >&5
4628  fi
4629  rm -f conftest.er1 conftest.err
4630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631  test $ac_status = 0; }
4632done
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4635$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4636if ${ac_cv_cxx_compiler_gnu+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h.  */
4641
4642int
4643main ()
4644{
4645#ifndef __GNUC__
4646       choke me
4647#endif
4648
4649  ;
4650  return 0;
4651}
4652_ACEOF
4653if ac_fn_cxx_try_compile "$LINENO"; then :
4654  ac_compiler_gnu=yes
4655else
4656  ac_compiler_gnu=no
4657fi
4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4660
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4663$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4664if test $ac_compiler_gnu = yes; then
4665  GXX=yes
4666else
4667  GXX=
4668fi
4669ac_test_CXXFLAGS=${CXXFLAGS+set}
4670ac_save_CXXFLAGS=$CXXFLAGS
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4672$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4673if ${ac_cv_prog_cxx_g+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4677   ac_cxx_werror_flag=yes
4678   ac_cv_prog_cxx_g=no
4679   CXXFLAGS="-g"
4680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h.  */
4682
4683int
4684main ()
4685{
4686
4687  ;
4688  return 0;
4689}
4690_ACEOF
4691if ac_fn_cxx_try_compile "$LINENO"; then :
4692  ac_cv_prog_cxx_g=yes
4693else
4694  CXXFLAGS=""
4695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697
4698int
4699main ()
4700{
4701
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706if ac_fn_cxx_try_compile "$LINENO"; then :
4707
4708else
4709  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4710	 CXXFLAGS="-g"
4711	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713
4714int
4715main ()
4716{
4717
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722if ac_fn_cxx_try_compile "$LINENO"; then :
4723  ac_cv_prog_cxx_g=yes
4724fi
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726fi
4727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728fi
4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4733$as_echo "$ac_cv_prog_cxx_g" >&6; }
4734if test "$ac_test_CXXFLAGS" = set; then
4735  CXXFLAGS=$ac_save_CXXFLAGS
4736elif test $ac_cv_prog_cxx_g = yes; then
4737  if test "$GXX" = yes; then
4738    CXXFLAGS="-g -O2"
4739  else
4740    CXXFLAGS="-g"
4741  fi
4742else
4743  if test "$GXX" = yes; then
4744    CXXFLAGS="-O2"
4745  else
4746    CXXFLAGS=
4747  fi
4748fi
4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
4755enable_win32_dll=yes
4756
4757case $host in
4758*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4759  if test -n "$ac_tool_prefix"; then
4760  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4761set dummy ${ac_tool_prefix}as; ac_word=$2
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
4764if ${ac_cv_prog_AS+:} false; then :
4765  $as_echo_n "(cached) " >&6
4766else
4767  if test -n "$AS"; then
4768  ac_cv_prog_AS="$AS" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773  IFS=$as_save_IFS
4774  test -z "$as_dir" && as_dir=.
4775    for ac_exec_ext in '' $ac_executable_extensions; do
4776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777    ac_cv_prog_AS="${ac_tool_prefix}as"
4778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779    break 2
4780  fi
4781done
4782  done
4783IFS=$as_save_IFS
4784
4785fi
4786fi
4787AS=$ac_cv_prog_AS
4788if test -n "$AS"; then
4789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4790$as_echo "$AS" >&6; }
4791else
4792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793$as_echo "no" >&6; }
4794fi
4795
4796
4797fi
4798if test -z "$ac_cv_prog_AS"; then
4799  ac_ct_AS=$AS
4800  # Extract the first word of "as", so it can be a program name with args.
4801set dummy as; ac_word=$2
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803$as_echo_n "checking for $ac_word... " >&6; }
4804if ${ac_cv_prog_ac_ct_AS+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  if test -n "$ac_ct_AS"; then
4808  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817    ac_cv_prog_ac_ct_AS="as"
4818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825fi
4826fi
4827ac_ct_AS=$ac_cv_prog_ac_ct_AS
4828if test -n "$ac_ct_AS"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4830$as_echo "$ac_ct_AS" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835
4836  if test "x$ac_ct_AS" = x; then
4837    AS="false"
4838  else
4839    case $cross_compiling:$ac_tool_warned in
4840yes:)
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845    AS=$ac_ct_AS
4846  fi
4847else
4848  AS="$ac_cv_prog_AS"
4849fi
4850
4851  if test -n "$ac_tool_prefix"; then
4852  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if ${ac_cv_prog_DLLTOOL+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test -n "$DLLTOOL"; then
4860  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867    for ac_exec_ext in '' $ac_executable_extensions; do
4868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871    break 2
4872  fi
4873done
4874  done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879DLLTOOL=$ac_cv_prog_DLLTOOL
4880if test -n "$DLLTOOL"; then
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4882$as_echo "$DLLTOOL" >&6; }
4883else
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889fi
4890if test -z "$ac_cv_prog_DLLTOOL"; then
4891  ac_ct_DLLTOOL=$DLLTOOL
4892  # Extract the first word of "dlltool", so it can be a program name with args.
4893set dummy dlltool; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  if test -n "$ac_ct_DLLTOOL"; then
4900  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914  done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4920if test -n "$ac_ct_DLLTOOL"; then
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4922$as_echo "$ac_ct_DLLTOOL" >&6; }
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928  if test "x$ac_ct_DLLTOOL" = x; then
4929    DLLTOOL="false"
4930  else
4931    case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937    DLLTOOL=$ac_ct_DLLTOOL
4938  fi
4939else
4940  DLLTOOL="$ac_cv_prog_DLLTOOL"
4941fi
4942
4943  if test -n "$ac_tool_prefix"; then
4944  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4945set dummy ${ac_tool_prefix}objdump; ac_word=$2
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if ${ac_cv_prog_OBJDUMP+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  if test -n "$OBJDUMP"; then
4952  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966  done
4967IFS=$as_save_IFS
4968
4969fi
4970fi
4971OBJDUMP=$ac_cv_prog_OBJDUMP
4972if test -n "$OBJDUMP"; then
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4974$as_echo "$OBJDUMP" >&6; }
4975else
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979
4980
4981fi
4982if test -z "$ac_cv_prog_OBJDUMP"; then
4983  ac_ct_OBJDUMP=$OBJDUMP
4984  # Extract the first word of "objdump", so it can be a program name with args.
4985set dummy objdump; ac_word=$2
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987$as_echo_n "checking for $ac_word... " >&6; }
4988if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  if test -n "$ac_ct_OBJDUMP"; then
4992  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997  IFS=$as_save_IFS
4998  test -z "$as_dir" && as_dir=.
4999    for ac_exec_ext in '' $ac_executable_extensions; do
5000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003    break 2
5004  fi
5005done
5006  done
5007IFS=$as_save_IFS
5008
5009fi
5010fi
5011ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5012if test -n "$ac_ct_OBJDUMP"; then
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5014$as_echo "$ac_ct_OBJDUMP" >&6; }
5015else
5016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020  if test "x$ac_ct_OBJDUMP" = x; then
5021    OBJDUMP="false"
5022  else
5023    case $cross_compiling:$ac_tool_warned in
5024yes:)
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027ac_tool_warned=yes ;;
5028esac
5029    OBJDUMP=$ac_ct_OBJDUMP
5030  fi
5031else
5032  OBJDUMP="$ac_cv_prog_OBJDUMP"
5033fi
5034
5035  ;;
5036esac
5037
5038test -z "$AS" && AS=as
5039
5040
5041
5042
5043
5044test -z "$DLLTOOL" && DLLTOOL=dlltool
5045
5046
5047
5048
5049
5050test -z "$OBJDUMP" && OBJDUMP=objdump
5051
5052
5053
5054
5055
5056
5057
5058case `pwd` in
5059  *\ * | *\	*)
5060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5061$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5062esac
5063
5064
5065
5066macro_version='2.4.2'
5067macro_revision='1.3337'
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081ltmain="$ac_aux_dir/ltmain.sh"
5082
5083# Backslashify metacharacters that are still active within
5084# double-quoted strings.
5085sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5086
5087# Same as above, but do not quote variable references.
5088double_quote_subst='s/\(["`\\]\)/\\\1/g'
5089
5090# Sed substitution to delay expansion of an escaped shell variable in a
5091# double_quote_subst'ed string.
5092delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5093
5094# Sed substitution to delay expansion of an escaped single quote.
5095delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5096
5097# Sed substitution to avoid accidental globbing in evaled expressions
5098no_glob_subst='s/\*/\\\*/g'
5099
5100ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5101ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5102ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5103
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5105$as_echo_n "checking how to print strings... " >&6; }
5106# Test print first, because it will be a builtin if present.
5107if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5108   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5109  ECHO='print -r --'
5110elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5111  ECHO='printf %s\n'
5112else
5113  # Use this function as a fallback that always works.
5114  func_fallback_echo ()
5115  {
5116    eval 'cat <<_LTECHO_EOF
5117$1
5118_LTECHO_EOF'
5119  }
5120  ECHO='func_fallback_echo'
5121fi
5122
5123# func_echo_all arg...
5124# Invoke $ECHO with all args, space-separated.
5125func_echo_all ()
5126{
5127    $ECHO ""
5128}
5129
5130case "$ECHO" in
5131  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5132$as_echo "printf" >&6; } ;;
5133  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5134$as_echo "print -r" >&6; } ;;
5135  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5136$as_echo "cat" >&6; } ;;
5137esac
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5153$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5154if ${ac_cv_path_SED+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5158     for ac_i in 1 2 3 4 5 6 7; do
5159       ac_script="$ac_script$as_nl$ac_script"
5160     done
5161     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5162     { ac_script=; unset ac_script;}
5163     if test -z "$SED"; then
5164  ac_path_SED_found=false
5165  # Loop through the user's path and test for each of PROGNAME-LIST
5166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169  IFS=$as_save_IFS
5170  test -z "$as_dir" && as_dir=.
5171    for ac_prog in sed gsed; do
5172    for ac_exec_ext in '' $ac_executable_extensions; do
5173      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5174      as_fn_executable_p "$ac_path_SED" || continue
5175# Check for GNU ac_path_SED and select it if it is found.
5176  # Check for GNU $ac_path_SED
5177case `"$ac_path_SED" --version 2>&1` in
5178*GNU*)
5179  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5180*)
5181  ac_count=0
5182  $as_echo_n 0123456789 >"conftest.in"
5183  while :
5184  do
5185    cat "conftest.in" "conftest.in" >"conftest.tmp"
5186    mv "conftest.tmp" "conftest.in"
5187    cp "conftest.in" "conftest.nl"
5188    $as_echo '' >> "conftest.nl"
5189    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191    as_fn_arith $ac_count + 1 && ac_count=$as_val
5192    if test $ac_count -gt ${ac_path_SED_max-0}; then
5193      # Best one so far, save it but keep looking for a better one
5194      ac_cv_path_SED="$ac_path_SED"
5195      ac_path_SED_max=$ac_count
5196    fi
5197    # 10*(2^10) chars as input seems more than enough
5198    test $ac_count -gt 10 && break
5199  done
5200  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5201esac
5202
5203      $ac_path_SED_found && break 3
5204    done
5205  done
5206  done
5207IFS=$as_save_IFS
5208  if test -z "$ac_cv_path_SED"; then
5209    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5210  fi
5211else
5212  ac_cv_path_SED=$SED
5213fi
5214
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5217$as_echo "$ac_cv_path_SED" >&6; }
5218 SED="$ac_cv_path_SED"
5219  rm -f conftest.sed
5220
5221test -z "$SED" && SED=sed
5222Xsed="$SED -e 1s/^X//"
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5235$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5236if ${ac_cv_path_GREP+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  if test -z "$GREP"; then
5240  ac_path_GREP_found=false
5241  # Loop through the user's path and test for each of PROGNAME-LIST
5242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247    for ac_prog in grep ggrep; do
5248    for ac_exec_ext in '' $ac_executable_extensions; do
5249      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250      as_fn_executable_p "$ac_path_GREP" || continue
5251# Check for GNU ac_path_GREP and select it if it is found.
5252  # Check for GNU $ac_path_GREP
5253case `"$ac_path_GREP" --version 2>&1` in
5254*GNU*)
5255  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5256*)
5257  ac_count=0
5258  $as_echo_n 0123456789 >"conftest.in"
5259  while :
5260  do
5261    cat "conftest.in" "conftest.in" >"conftest.tmp"
5262    mv "conftest.tmp" "conftest.in"
5263    cp "conftest.in" "conftest.nl"
5264    $as_echo 'GREP' >> "conftest.nl"
5265    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267    as_fn_arith $ac_count + 1 && ac_count=$as_val
5268    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269      # Best one so far, save it but keep looking for a better one
5270      ac_cv_path_GREP="$ac_path_GREP"
5271      ac_path_GREP_max=$ac_count
5272    fi
5273    # 10*(2^10) chars as input seems more than enough
5274    test $ac_count -gt 10 && break
5275  done
5276  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277esac
5278
5279      $ac_path_GREP_found && break 3
5280    done
5281  done
5282  done
5283IFS=$as_save_IFS
5284  if test -z "$ac_cv_path_GREP"; then
5285    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5286  fi
5287else
5288  ac_cv_path_GREP=$GREP
5289fi
5290
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5293$as_echo "$ac_cv_path_GREP" >&6; }
5294 GREP="$ac_cv_path_GREP"
5295
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5298$as_echo_n "checking for egrep... " >&6; }
5299if ${ac_cv_path_EGREP+:} false; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5303   then ac_cv_path_EGREP="$GREP -E"
5304   else
5305     if test -z "$EGREP"; then
5306  ac_path_EGREP_found=false
5307  # Loop through the user's path and test for each of PROGNAME-LIST
5308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5310do
5311  IFS=$as_save_IFS
5312  test -z "$as_dir" && as_dir=.
5313    for ac_prog in egrep; do
5314    for ac_exec_ext in '' $ac_executable_extensions; do
5315      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5316      as_fn_executable_p "$ac_path_EGREP" || continue
5317# Check for GNU ac_path_EGREP and select it if it is found.
5318  # Check for GNU $ac_path_EGREP
5319case `"$ac_path_EGREP" --version 2>&1` in
5320*GNU*)
5321  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5322*)
5323  ac_count=0
5324  $as_echo_n 0123456789 >"conftest.in"
5325  while :
5326  do
5327    cat "conftest.in" "conftest.in" >"conftest.tmp"
5328    mv "conftest.tmp" "conftest.in"
5329    cp "conftest.in" "conftest.nl"
5330    $as_echo 'EGREP' >> "conftest.nl"
5331    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333    as_fn_arith $ac_count + 1 && ac_count=$as_val
5334    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5335      # Best one so far, save it but keep looking for a better one
5336      ac_cv_path_EGREP="$ac_path_EGREP"
5337      ac_path_EGREP_max=$ac_count
5338    fi
5339    # 10*(2^10) chars as input seems more than enough
5340    test $ac_count -gt 10 && break
5341  done
5342  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343esac
5344
5345      $ac_path_EGREP_found && break 3
5346    done
5347  done
5348  done
5349IFS=$as_save_IFS
5350  if test -z "$ac_cv_path_EGREP"; then
5351    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5352  fi
5353else
5354  ac_cv_path_EGREP=$EGREP
5355fi
5356
5357   fi
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5360$as_echo "$ac_cv_path_EGREP" >&6; }
5361 EGREP="$ac_cv_path_EGREP"
5362
5363
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5365$as_echo_n "checking for fgrep... " >&6; }
5366if ${ac_cv_path_FGREP+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5370   then ac_cv_path_FGREP="$GREP -F"
5371   else
5372     if test -z "$FGREP"; then
5373  ac_path_FGREP_found=false
5374  # Loop through the user's path and test for each of PROGNAME-LIST
5375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380    for ac_prog in fgrep; do
5381    for ac_exec_ext in '' $ac_executable_extensions; do
5382      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5383      as_fn_executable_p "$ac_path_FGREP" || continue
5384# Check for GNU ac_path_FGREP and select it if it is found.
5385  # Check for GNU $ac_path_FGREP
5386case `"$ac_path_FGREP" --version 2>&1` in
5387*GNU*)
5388  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5389*)
5390  ac_count=0
5391  $as_echo_n 0123456789 >"conftest.in"
5392  while :
5393  do
5394    cat "conftest.in" "conftest.in" >"conftest.tmp"
5395    mv "conftest.tmp" "conftest.in"
5396    cp "conftest.in" "conftest.nl"
5397    $as_echo 'FGREP' >> "conftest.nl"
5398    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5400    as_fn_arith $ac_count + 1 && ac_count=$as_val
5401    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5402      # Best one so far, save it but keep looking for a better one
5403      ac_cv_path_FGREP="$ac_path_FGREP"
5404      ac_path_FGREP_max=$ac_count
5405    fi
5406    # 10*(2^10) chars as input seems more than enough
5407    test $ac_count -gt 10 && break
5408  done
5409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5410esac
5411
5412      $ac_path_FGREP_found && break 3
5413    done
5414  done
5415  done
5416IFS=$as_save_IFS
5417  if test -z "$ac_cv_path_FGREP"; then
5418    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5419  fi
5420else
5421  ac_cv_path_FGREP=$FGREP
5422fi
5423
5424   fi
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5427$as_echo "$ac_cv_path_FGREP" >&6; }
5428 FGREP="$ac_cv_path_FGREP"
5429
5430
5431test -z "$GREP" && GREP=grep
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451# Check whether --with-gnu-ld was given.
5452if test "${with_gnu_ld+set}" = set; then :
5453  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5454else
5455  with_gnu_ld=no
5456fi
5457
5458ac_prog=ld
5459if test "$GCC" = yes; then
5460  # Check if gcc -print-prog-name=ld gives a path.
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5462$as_echo_n "checking for ld used by $CC... " >&6; }
5463  case $host in
5464  *-*-mingw*)
5465    # gcc leaves a trailing carriage return which upsets mingw
5466    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5467  *)
5468    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5469  esac
5470  case $ac_prog in
5471    # Accept absolute paths.
5472    [\\/]* | ?:[\\/]*)
5473      re_direlt='/[^/][^/]*/\.\./'
5474      # Canonicalize the pathname of ld
5475      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5476      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5477	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5478      done
5479      test -z "$LD" && LD="$ac_prog"
5480      ;;
5481  "")
5482    # If it fails, then pretend we aren't using GCC.
5483    ac_prog=ld
5484    ;;
5485  *)
5486    # If it is relative, then search for the first ld in PATH.
5487    with_gnu_ld=unknown
5488    ;;
5489  esac
5490elif test "$with_gnu_ld" = yes; then
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5492$as_echo_n "checking for GNU ld... " >&6; }
5493else
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5495$as_echo_n "checking for non-GNU ld... " >&6; }
5496fi
5497if ${lt_cv_path_LD+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  if test -z "$LD"; then
5501  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502  for ac_dir in $PATH; do
5503    IFS="$lt_save_ifs"
5504    test -z "$ac_dir" && ac_dir=.
5505    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5506      lt_cv_path_LD="$ac_dir/$ac_prog"
5507      # Check to see if the program is GNU ld.  I'd rather use --version,
5508      # but apparently some variants of GNU ld only accept -v.
5509      # Break only if it was the GNU/non-GNU ld that we prefer.
5510      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5511      *GNU* | *'with BFD'*)
5512	test "$with_gnu_ld" != no && break
5513	;;
5514      *)
5515	test "$with_gnu_ld" != yes && break
5516	;;
5517      esac
5518    fi
5519  done
5520  IFS="$lt_save_ifs"
5521else
5522  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5523fi
5524fi
5525
5526LD="$lt_cv_path_LD"
5527if test -n "$LD"; then
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5529$as_echo "$LD" >&6; }
5530else
5531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
5533fi
5534test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5536$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5537if ${lt_cv_prog_gnu_ld+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541case `$LD -v 2>&1 </dev/null` in
5542*GNU* | *'with BFD'*)
5543  lt_cv_prog_gnu_ld=yes
5544  ;;
5545*)
5546  lt_cv_prog_gnu_ld=no
5547  ;;
5548esac
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5551$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5552with_gnu_ld=$lt_cv_prog_gnu_ld
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5563$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5564if ${lt_cv_path_NM+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if test -n "$NM"; then
5568  # Let the user override the test.
5569  lt_cv_path_NM="$NM"
5570else
5571  lt_nm_to_check="${ac_tool_prefix}nm"
5572  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573    lt_nm_to_check="$lt_nm_to_check nm"
5574  fi
5575  for lt_tmp_nm in $lt_nm_to_check; do
5576    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578      IFS="$lt_save_ifs"
5579      test -z "$ac_dir" && ac_dir=.
5580      tmp_nm="$ac_dir/$lt_tmp_nm"
5581      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582	# Check to see if the nm accepts a BSD-compat flag.
5583	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584	#   nm: unknown option "B" ignored
5585	# Tru64's nm complains that /dev/null is an invalid object file
5586	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587	*/dev/null* | *'Invalid file or object type'*)
5588	  lt_cv_path_NM="$tmp_nm -B"
5589	  break
5590	  ;;
5591	*)
5592	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593	  */dev/null*)
5594	    lt_cv_path_NM="$tmp_nm -p"
5595	    break
5596	    ;;
5597	  *)
5598	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599	    continue # so that we can try to find one that supports BSD flags
5600	    ;;
5601	  esac
5602	  ;;
5603	esac
5604      fi
5605    done
5606    IFS="$lt_save_ifs"
5607  done
5608  : ${lt_cv_path_NM=no}
5609fi
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5612$as_echo "$lt_cv_path_NM" >&6; }
5613if test "$lt_cv_path_NM" != "no"; then
5614  NM="$lt_cv_path_NM"
5615else
5616  # Didn't find any BSD compatible name lister, look for dumpbin.
5617  if test -n "$DUMPBIN"; then :
5618    # Let the user override the test.
5619  else
5620    if test -n "$ac_tool_prefix"; then
5621  for ac_prog in dumpbin "link -dump"
5622  do
5623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if ${ac_cv_prog_DUMPBIN+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  if test -n "$DUMPBIN"; then
5631  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636  IFS=$as_save_IFS
5637  test -z "$as_dir" && as_dir=.
5638    for ac_exec_ext in '' $ac_executable_extensions; do
5639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642    break 2
5643  fi
5644done
5645  done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650DUMPBIN=$ac_cv_prog_DUMPBIN
5651if test -n "$DUMPBIN"; then
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5653$as_echo "$DUMPBIN" >&6; }
5654else
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660    test -n "$DUMPBIN" && break
5661  done
5662fi
5663if test -z "$DUMPBIN"; then
5664  ac_ct_DUMPBIN=$DUMPBIN
5665  for ac_prog in dumpbin "link -dump"
5666do
5667  # Extract the first word of "$ac_prog", so it can be a program name with args.
5668set dummy $ac_prog; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  if test -n "$ac_ct_DUMPBIN"; then
5675  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680  IFS=$as_save_IFS
5681  test -z "$as_dir" && as_dir=.
5682    for ac_exec_ext in '' $ac_executable_extensions; do
5683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686    break 2
5687  fi
5688done
5689  done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5695if test -n "$ac_ct_DUMPBIN"; then
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5697$as_echo "$ac_ct_DUMPBIN" >&6; }
5698else
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704  test -n "$ac_ct_DUMPBIN" && break
5705done
5706
5707  if test "x$ac_ct_DUMPBIN" = x; then
5708    DUMPBIN=":"
5709  else
5710    case $cross_compiling:$ac_tool_warned in
5711yes:)
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714ac_tool_warned=yes ;;
5715esac
5716    DUMPBIN=$ac_ct_DUMPBIN
5717  fi
5718fi
5719
5720    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5721    *COFF*)
5722      DUMPBIN="$DUMPBIN -symbols"
5723      ;;
5724    *)
5725      DUMPBIN=:
5726      ;;
5727    esac
5728  fi
5729
5730  if test "$DUMPBIN" != ":"; then
5731    NM="$DUMPBIN"
5732  fi
5733fi
5734test -z "$NM" && NM=nm
5735
5736
5737
5738
5739
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5742$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5743if ${lt_cv_nm_interface+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746  lt_cv_nm_interface="BSD nm"
5747  echo "int some_variable = 0;" > conftest.$ac_ext
5748  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5749  (eval "$ac_compile" 2>conftest.err)
5750  cat conftest.err >&5
5751  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5752  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5753  cat conftest.err >&5
5754  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5755  cat conftest.out >&5
5756  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5757    lt_cv_nm_interface="MS dumpbin"
5758  fi
5759  rm -f conftest*
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5762$as_echo "$lt_cv_nm_interface" >&6; }
5763
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5765$as_echo_n "checking whether ln -s works... " >&6; }
5766LN_S=$as_ln_s
5767if test "$LN_S" = "ln -s"; then
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769$as_echo "yes" >&6; }
5770else
5771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5772$as_echo "no, using $LN_S" >&6; }
5773fi
5774
5775# find the maximum length of command line arguments
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5777$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5778if ${lt_cv_sys_max_cmd_len+:} false; then :
5779  $as_echo_n "(cached) " >&6
5780else
5781    i=0
5782  teststring="ABCD"
5783
5784  case $build_os in
5785  msdosdjgpp*)
5786    # On DJGPP, this test can blow up pretty badly due to problems in libc
5787    # (any single argument exceeding 2000 bytes causes a buffer overrun
5788    # during glob expansion).  Even if it were fixed, the result of this
5789    # check would be larger than it should be.
5790    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5791    ;;
5792
5793  gnu*)
5794    # Under GNU Hurd, this test is not required because there is
5795    # no limit to the length of command line arguments.
5796    # Libtool will interpret -1 as no limit whatsoever
5797    lt_cv_sys_max_cmd_len=-1;
5798    ;;
5799
5800  cygwin* | mingw* | cegcc*)
5801    # On Win9x/ME, this test blows up -- it succeeds, but takes
5802    # about 5 minutes as the teststring grows exponentially.
5803    # Worse, since 9x/ME are not pre-emptively multitasking,
5804    # you end up with a "frozen" computer, even though with patience
5805    # the test eventually succeeds (with a max line length of 256k).
5806    # Instead, let's just punt: use the minimum linelength reported by
5807    # all of the supported platforms: 8192 (on NT/2K/XP).
5808    lt_cv_sys_max_cmd_len=8192;
5809    ;;
5810
5811  mint*)
5812    # On MiNT this can take a long time and run out of memory.
5813    lt_cv_sys_max_cmd_len=8192;
5814    ;;
5815
5816  amigaos*)
5817    # On AmigaOS with pdksh, this test takes hours, literally.
5818    # So we just punt and use a minimum line length of 8192.
5819    lt_cv_sys_max_cmd_len=8192;
5820    ;;
5821
5822  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5823    # This has been around since 386BSD, at least.  Likely further.
5824    if test -x /sbin/sysctl; then
5825      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5826    elif test -x /usr/sbin/sysctl; then
5827      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5828    else
5829      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5830    fi
5831    # And add a safety zone
5832    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5833    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5834    ;;
5835
5836  interix*)
5837    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5838    lt_cv_sys_max_cmd_len=196608
5839    ;;
5840
5841  os2*)
5842    # The test takes a long time on OS/2.
5843    lt_cv_sys_max_cmd_len=8192
5844    ;;
5845
5846  osf*)
5847    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5848    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5849    # nice to cause kernel panics so lets avoid the loop below.
5850    # First set a reasonable default.
5851    lt_cv_sys_max_cmd_len=16384
5852    #
5853    if test -x /sbin/sysconfig; then
5854      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5855        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5856      esac
5857    fi
5858    ;;
5859  sco3.2v5*)
5860    lt_cv_sys_max_cmd_len=102400
5861    ;;
5862  sysv5* | sco5v6* | sysv4.2uw2*)
5863    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5864    if test -n "$kargmax"; then
5865      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5866    else
5867      lt_cv_sys_max_cmd_len=32768
5868    fi
5869    ;;
5870  *)
5871    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5872    if test -n "$lt_cv_sys_max_cmd_len" && \
5873	test undefined != "$lt_cv_sys_max_cmd_len"; then
5874      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5875      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5876    else
5877      # Make teststring a little bigger before we do anything with it.
5878      # a 1K string should be a reasonable start.
5879      for i in 1 2 3 4 5 6 7 8 ; do
5880        teststring=$teststring$teststring
5881      done
5882      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5883      # If test is not a shell built-in, we'll probably end up computing a
5884      # maximum length that is only half of the actual maximum length, but
5885      # we can't tell.
5886      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5887	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5888	      test $i != 17 # 1/2 MB should be enough
5889      do
5890        i=`expr $i + 1`
5891        teststring=$teststring$teststring
5892      done
5893      # Only check the string length outside the loop.
5894      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5895      teststring=
5896      # Add a significant safety factor because C++ compilers can tack on
5897      # massive amounts of additional arguments before passing them to the
5898      # linker.  It appears as though 1/2 is a usable value.
5899      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5900    fi
5901    ;;
5902  esac
5903
5904fi
5905
5906if test -n $lt_cv_sys_max_cmd_len ; then
5907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5908$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5909else
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5911$as_echo "none" >&6; }
5912fi
5913max_cmd_len=$lt_cv_sys_max_cmd_len
5914
5915
5916
5917
5918
5919
5920: ${CP="cp -f"}
5921: ${MV="mv -f"}
5922: ${RM="rm -f"}
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5925$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5926# Try some XSI features
5927xsi_shell=no
5928( _lt_dummy="a/b/c"
5929  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5930      = c,a/b,b/c, \
5931    && eval 'test $(( 1 + 1 )) -eq 2 \
5932    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5933  && xsi_shell=yes
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5935$as_echo "$xsi_shell" >&6; }
5936
5937
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5939$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5940lt_shell_append=no
5941( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5942    >/dev/null 2>&1 \
5943  && lt_shell_append=yes
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5945$as_echo "$lt_shell_append" >&6; }
5946
5947
5948if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5949  lt_unset=unset
5950else
5951  lt_unset=false
5952fi
5953
5954
5955
5956
5957
5958# test EBCDIC or ASCII
5959case `echo X|tr X '\101'` in
5960 A) # ASCII based system
5961    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5962  lt_SP2NL='tr \040 \012'
5963  lt_NL2SP='tr \015\012 \040\040'
5964  ;;
5965 *) # EBCDIC based system
5966  lt_SP2NL='tr \100 \n'
5967  lt_NL2SP='tr \r\n \100\100'
5968  ;;
5969esac
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5980$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5981if ${lt_cv_to_host_file_cmd+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984  case $host in
5985  *-*-mingw* )
5986    case $build in
5987      *-*-mingw* ) # actually msys
5988        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5989        ;;
5990      *-*-cygwin* )
5991        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5992        ;;
5993      * ) # otherwise, assume *nix
5994        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5995        ;;
5996    esac
5997    ;;
5998  *-*-cygwin* )
5999    case $build in
6000      *-*-mingw* ) # actually msys
6001        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6002        ;;
6003      *-*-cygwin* )
6004        lt_cv_to_host_file_cmd=func_convert_file_noop
6005        ;;
6006      * ) # otherwise, assume *nix
6007        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6008        ;;
6009    esac
6010    ;;
6011  * ) # unhandled hosts (and "normal" native builds)
6012    lt_cv_to_host_file_cmd=func_convert_file_noop
6013    ;;
6014esac
6015
6016fi
6017
6018to_host_file_cmd=$lt_cv_to_host_file_cmd
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6020$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6021
6022
6023
6024
6025
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6027$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6028if ${lt_cv_to_tool_file_cmd+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  #assume ordinary cross tools, or native build.
6032lt_cv_to_tool_file_cmd=func_convert_file_noop
6033case $host in
6034  *-*-mingw* )
6035    case $build in
6036      *-*-mingw* ) # actually msys
6037        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6038        ;;
6039    esac
6040    ;;
6041esac
6042
6043fi
6044
6045to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6047$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6048
6049
6050
6051
6052
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6054$as_echo_n "checking for $LD option to reload object files... " >&6; }
6055if ${lt_cv_ld_reload_flag+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  lt_cv_ld_reload_flag='-r'
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6061$as_echo "$lt_cv_ld_reload_flag" >&6; }
6062reload_flag=$lt_cv_ld_reload_flag
6063case $reload_flag in
6064"" | " "*) ;;
6065*) reload_flag=" $reload_flag" ;;
6066esac
6067reload_cmds='$LD$reload_flag -o $output$reload_objs'
6068case $host_os in
6069  cygwin* | mingw* | pw32* | cegcc*)
6070    if test "$GCC" != yes; then
6071      reload_cmds=false
6072    fi
6073    ;;
6074  darwin*)
6075    if test "$GCC" = yes; then
6076      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6077    else
6078      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6079    fi
6080    ;;
6081esac
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091if test -n "$ac_tool_prefix"; then
6092  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6093set dummy ${ac_tool_prefix}objdump; ac_word=$2
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
6096if ${ac_cv_prog_OBJDUMP+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  if test -n "$OBJDUMP"; then
6100  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  test -z "$as_dir" && as_dir=.
6107    for ac_exec_ext in '' $ac_executable_extensions; do
6108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111    break 2
6112  fi
6113done
6114  done
6115IFS=$as_save_IFS
6116
6117fi
6118fi
6119OBJDUMP=$ac_cv_prog_OBJDUMP
6120if test -n "$OBJDUMP"; then
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6122$as_echo "$OBJDUMP" >&6; }
6123else
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126fi
6127
6128
6129fi
6130if test -z "$ac_cv_prog_OBJDUMP"; then
6131  ac_ct_OBJDUMP=$OBJDUMP
6132  # Extract the first word of "objdump", so it can be a program name with args.
6133set dummy objdump; ac_word=$2
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  if test -n "$ac_ct_OBJDUMP"; then
6140  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147    for ac_exec_ext in '' $ac_executable_extensions; do
6148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154  done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6160if test -n "$ac_ct_OBJDUMP"; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6162$as_echo "$ac_ct_OBJDUMP" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168  if test "x$ac_ct_OBJDUMP" = x; then
6169    OBJDUMP="false"
6170  else
6171    case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177    OBJDUMP=$ac_ct_OBJDUMP
6178  fi
6179else
6180  OBJDUMP="$ac_cv_prog_OBJDUMP"
6181fi
6182
6183test -z "$OBJDUMP" && OBJDUMP=objdump
6184
6185
6186
6187
6188
6189
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6191$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6192if ${lt_cv_deplibs_check_method+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  lt_cv_file_magic_cmd='$MAGIC_CMD'
6196lt_cv_file_magic_test_file=
6197lt_cv_deplibs_check_method='unknown'
6198# Need to set the preceding variable on all platforms that support
6199# interlibrary dependencies.
6200# 'none' -- dependencies not supported.
6201# `unknown' -- same as none, but documents that we really don't know.
6202# 'pass_all' -- all dependencies passed with no checks.
6203# 'test_compile' -- check by making test program.
6204# 'file_magic [[regex]]' -- check by looking for files in library path
6205# which responds to the $file_magic_cmd with a given extended regex.
6206# If you have `file' or equivalent on your system and you're not sure
6207# whether `pass_all' will *always* work, you probably want this one.
6208
6209case $host_os in
6210aix[4-9]*)
6211  lt_cv_deplibs_check_method=pass_all
6212  ;;
6213
6214beos*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218bsdi[45]*)
6219  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6220  lt_cv_file_magic_cmd='/usr/bin/file -L'
6221  lt_cv_file_magic_test_file=/shlib/libc.so
6222  ;;
6223
6224cygwin*)
6225  # func_win32_libid is a shell function defined in ltmain.sh
6226  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6227  lt_cv_file_magic_cmd='func_win32_libid'
6228  ;;
6229
6230mingw* | pw32*)
6231  # Base MSYS/MinGW do not provide the 'file' command needed by
6232  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6233  # unless we find 'file', for example because we are cross-compiling.
6234  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6235  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6236    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6237    lt_cv_file_magic_cmd='func_win32_libid'
6238  else
6239    # Keep this pattern in sync with the one in func_win32_libid.
6240    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6241    lt_cv_file_magic_cmd='$OBJDUMP -f'
6242  fi
6243  ;;
6244
6245cegcc*)
6246  # use the weaker test based on 'objdump'. See mingw*.
6247  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6248  lt_cv_file_magic_cmd='$OBJDUMP -f'
6249  ;;
6250
6251darwin* | rhapsody*)
6252  lt_cv_deplibs_check_method=pass_all
6253  ;;
6254
6255freebsd* | dragonfly*)
6256  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6257    case $host_cpu in
6258    i*86 )
6259      # Not sure whether the presence of OpenBSD here was a mistake.
6260      # Let's accept both of them until this is cleared up.
6261      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6262      lt_cv_file_magic_cmd=/usr/bin/file
6263      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6264      ;;
6265    esac
6266  else
6267    lt_cv_deplibs_check_method=pass_all
6268  fi
6269  ;;
6270
6271haiku*)
6272  lt_cv_deplibs_check_method=pass_all
6273  ;;
6274
6275hpux10.20* | hpux11*)
6276  lt_cv_file_magic_cmd=/usr/bin/file
6277  case $host_cpu in
6278  ia64*)
6279    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6280    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6281    ;;
6282  hppa*64*)
6283    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]'
6284    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6285    ;;
6286  *)
6287    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6288    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6289    ;;
6290  esac
6291  ;;
6292
6293interix[3-9]*)
6294  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6295  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6296  ;;
6297
6298irix5* | irix6* | nonstopux*)
6299  case $LD in
6300  *-32|*"-32 ") libmagic=32-bit;;
6301  *-n32|*"-n32 ") libmagic=N32;;
6302  *-64|*"-64 ") libmagic=64-bit;;
6303  *) libmagic=never-match;;
6304  esac
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308# This must be glibc/ELF.
6309linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6310  lt_cv_deplibs_check_method=pass_all
6311  ;;
6312
6313netbsd* | netbsdelf*-gnu)
6314  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6316  else
6317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6318  fi
6319  ;;
6320
6321newos6*)
6322  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6323  lt_cv_file_magic_cmd=/usr/bin/file
6324  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6325  ;;
6326
6327*nto* | *qnx*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331openbsd*)
6332  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6334  else
6335    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336  fi
6337  ;;
6338
6339osf3* | osf4* | osf5*)
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343rdos*)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347solaris*)
6348  lt_cv_deplibs_check_method=pass_all
6349  ;;
6350
6351sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355sysv4 | sysv4.3*)
6356  case $host_vendor in
6357  motorola)
6358    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]'
6359    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6360    ;;
6361  ncr)
6362    lt_cv_deplibs_check_method=pass_all
6363    ;;
6364  sequent)
6365    lt_cv_file_magic_cmd='/bin/file'
6366    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6367    ;;
6368  sni)
6369    lt_cv_file_magic_cmd='/bin/file'
6370    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6371    lt_cv_file_magic_test_file=/lib/libc.so
6372    ;;
6373  siemens)
6374    lt_cv_deplibs_check_method=pass_all
6375    ;;
6376  pc)
6377    lt_cv_deplibs_check_method=pass_all
6378    ;;
6379  esac
6380  ;;
6381
6382tpf*)
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385esac
6386
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6389$as_echo "$lt_cv_deplibs_check_method" >&6; }
6390
6391file_magic_glob=
6392want_nocaseglob=no
6393if test "$build" = "$host"; then
6394  case $host_os in
6395  mingw* | pw32*)
6396    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6397      want_nocaseglob=yes
6398    else
6399      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6400    fi
6401    ;;
6402  esac
6403fi
6404
6405file_magic_cmd=$lt_cv_file_magic_cmd
6406deplibs_check_method=$lt_cv_deplibs_check_method
6407test -z "$deplibs_check_method" && deplibs_check_method=unknown
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430if test -n "$ac_tool_prefix"; then
6431  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_DLLTOOL+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$DLLTOOL"; then
6439  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458DLLTOOL=$ac_cv_prog_DLLTOOL
6459if test -n "$DLLTOOL"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6461$as_echo "$DLLTOOL" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468fi
6469if test -z "$ac_cv_prog_DLLTOOL"; then
6470  ac_ct_DLLTOOL=$DLLTOOL
6471  # Extract the first word of "dlltool", so it can be a program name with args.
6472set dummy dlltool; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$ac_ct_DLLTOOL"; then
6479  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6499if test -n "$ac_ct_DLLTOOL"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6501$as_echo "$ac_ct_DLLTOOL" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507  if test "x$ac_ct_DLLTOOL" = x; then
6508    DLLTOOL="false"
6509  else
6510    case $cross_compiling:$ac_tool_warned in
6511yes:)
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514ac_tool_warned=yes ;;
6515esac
6516    DLLTOOL=$ac_ct_DLLTOOL
6517  fi
6518else
6519  DLLTOOL="$ac_cv_prog_DLLTOOL"
6520fi
6521
6522test -z "$DLLTOOL" && DLLTOOL=dlltool
6523
6524
6525
6526
6527
6528
6529
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6531$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6532if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  lt_cv_sharedlib_from_linklib_cmd='unknown'
6536
6537case $host_os in
6538cygwin* | mingw* | pw32* | cegcc*)
6539  # two different shell functions defined in ltmain.sh
6540  # decide which to use based on capabilities of $DLLTOOL
6541  case `$DLLTOOL --help 2>&1` in
6542  *--identify-strict*)
6543    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6544    ;;
6545  *)
6546    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6547    ;;
6548  esac
6549  ;;
6550*)
6551  # fallback: assume linklib IS sharedlib
6552  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6553  ;;
6554esac
6555
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6558$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6559sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6560test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6561
6562
6563
6564
6565
6566
6567
6568
6569if test -n "$ac_tool_prefix"; then
6570  for ac_prog in ar
6571  do
6572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_AR+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$AR"; then
6580  ac_cv_prog_AR="$AR" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599AR=$ac_cv_prog_AR
6600if test -n "$AR"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602$as_echo "$AR" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609    test -n "$AR" && break
6610  done
6611fi
6612if test -z "$AR"; then
6613  ac_ct_AR=$AR
6614  for ac_prog in ar
6615do
6616  # Extract the first word of "$ac_prog", so it can be a program name with args.
6617set dummy $ac_prog; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_prog_ac_ct_AR+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  if test -n "$ac_ct_AR"; then
6624  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629  IFS=$as_save_IFS
6630  test -z "$as_dir" && as_dir=.
6631    for ac_exec_ext in '' $ac_executable_extensions; do
6632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633    ac_cv_prog_ac_ct_AR="$ac_prog"
6634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635    break 2
6636  fi
6637done
6638  done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643ac_ct_AR=$ac_cv_prog_ac_ct_AR
6644if test -n "$ac_ct_AR"; then
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6646$as_echo "$ac_ct_AR" >&6; }
6647else
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652
6653  test -n "$ac_ct_AR" && break
6654done
6655
6656  if test "x$ac_ct_AR" = x; then
6657    AR="false"
6658  else
6659    case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663ac_tool_warned=yes ;;
6664esac
6665    AR=$ac_ct_AR
6666  fi
6667fi
6668
6669: ${AR=ar}
6670: ${AR_FLAGS=cru}
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6683$as_echo_n "checking for archiver @FILE support... " >&6; }
6684if ${lt_cv_ar_at_file+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  lt_cv_ar_at_file=no
6688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h.  */
6690
6691int
6692main ()
6693{
6694
6695  ;
6696  return 0;
6697}
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"; then :
6700  echo conftest.$ac_objext > conftest.lst
6701      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6702      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6703  (eval $lt_ar_try) 2>&5
6704  ac_status=$?
6705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706  test $ac_status = 0; }
6707      if test "$ac_status" -eq 0; then
6708	# Ensure the archiver fails upon bogus file names.
6709	rm -f conftest.$ac_objext libconftest.a
6710	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6711  (eval $lt_ar_try) 2>&5
6712  ac_status=$?
6713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714  test $ac_status = 0; }
6715	if test "$ac_status" -ne 0; then
6716          lt_cv_ar_at_file=@
6717        fi
6718      fi
6719      rm -f conftest.* libconftest.a
6720
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6726$as_echo "$lt_cv_ar_at_file" >&6; }
6727
6728if test "x$lt_cv_ar_at_file" = xno; then
6729  archiver_list_spec=
6730else
6731  archiver_list_spec=$lt_cv_ar_at_file
6732fi
6733
6734
6735
6736
6737
6738
6739
6740if test -n "$ac_tool_prefix"; then
6741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}strip; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_STRIP+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  if test -n "$STRIP"; then
6749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768STRIP=$ac_cv_prog_STRIP
6769if test -n "$STRIP"; then
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6771$as_echo "$STRIP" >&6; }
6772else
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_STRIP"; then
6780  ac_ct_STRIP=$STRIP
6781  # Extract the first word of "strip", so it can be a program name with args.
6782set dummy strip; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6786  $as_echo_n "(cached) " >&6
6787else
6788  if test -n "$ac_ct_STRIP"; then
6789  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794  IFS=$as_save_IFS
6795  test -z "$as_dir" && as_dir=.
6796    for ac_exec_ext in '' $ac_executable_extensions; do
6797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798    ac_cv_prog_ac_ct_STRIP="strip"
6799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800    break 2
6801  fi
6802done
6803  done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6809if test -n "$ac_ct_STRIP"; then
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6811$as_echo "$ac_ct_STRIP" >&6; }
6812else
6813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817  if test "x$ac_ct_STRIP" = x; then
6818    STRIP=":"
6819  else
6820    case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826    STRIP=$ac_ct_STRIP
6827  fi
6828else
6829  STRIP="$ac_cv_prog_STRIP"
6830fi
6831
6832test -z "$STRIP" && STRIP=:
6833
6834
6835
6836
6837
6838
6839if test -n "$ac_tool_prefix"; then
6840  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if ${ac_cv_prog_RANLIB+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  if test -n "$RANLIB"; then
6848  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853  IFS=$as_save_IFS
6854  test -z "$as_dir" && as_dir=.
6855    for ac_exec_ext in '' $ac_executable_extensions; do
6856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859    break 2
6860  fi
6861done
6862  done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867RANLIB=$ac_cv_prog_RANLIB
6868if test -n "$RANLIB"; then
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6870$as_echo "$RANLIB" >&6; }
6871else
6872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_RANLIB"; then
6879  ac_ct_RANLIB=$RANLIB
6880  # Extract the first word of "ranlib", so it can be a program name with args.
6881set dummy ranlib; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  if test -n "$ac_ct_RANLIB"; then
6888  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895    for ac_exec_ext in '' $ac_executable_extensions; do
6896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897    ac_cv_prog_ac_ct_RANLIB="ranlib"
6898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902  done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6908if test -n "$ac_ct_RANLIB"; then
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6910$as_echo "$ac_ct_RANLIB" >&6; }
6911else
6912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916  if test "x$ac_ct_RANLIB" = x; then
6917    RANLIB=":"
6918  else
6919    case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925    RANLIB=$ac_ct_RANLIB
6926  fi
6927else
6928  RANLIB="$ac_cv_prog_RANLIB"
6929fi
6930
6931test -z "$RANLIB" && RANLIB=:
6932
6933
6934
6935
6936
6937
6938# Determine commands to create old-style static archives.
6939old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6940old_postinstall_cmds='chmod 644 $oldlib'
6941old_postuninstall_cmds=
6942
6943if test -n "$RANLIB"; then
6944  case $host_os in
6945  openbsd*)
6946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6947    ;;
6948  *)
6949    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6950    ;;
6951  esac
6952  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6953fi
6954
6955case $host_os in
6956  darwin*)
6957    lock_old_archive_extraction=yes ;;
6958  *)
6959    lock_old_archive_extraction=no ;;
6960esac
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982for ac_prog in gawk mawk nawk awk
6983do
6984  # Extract the first word of "$ac_prog", so it can be a program name with args.
6985set dummy $ac_prog; ac_word=$2
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987$as_echo_n "checking for $ac_word... " >&6; }
6988if ${ac_cv_prog_AWK+:} false; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  if test -n "$AWK"; then
6992  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997  IFS=$as_save_IFS
6998  test -z "$as_dir" && as_dir=.
6999    for ac_exec_ext in '' $ac_executable_extensions; do
7000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001    ac_cv_prog_AWK="$ac_prog"
7002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003    break 2
7004  fi
7005done
7006  done
7007IFS=$as_save_IFS
7008
7009fi
7010fi
7011AWK=$ac_cv_prog_AWK
7012if test -n "$AWK"; then
7013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7014$as_echo "$AWK" >&6; }
7015else
7016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018fi
7019
7020
7021  test -n "$AWK" && break
7022done
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042# If no C compiler was specified, use CC.
7043LTCC=${LTCC-"$CC"}
7044
7045# If no C compiler flags were specified, use CFLAGS.
7046LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7047
7048# Allow CC to be a program name with arguments.
7049compiler=$CC
7050
7051
7052# Check for command to grab the raw symbol name followed by C symbol from nm.
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7054$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7055if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058
7059# These are sane defaults that work on at least a few old systems.
7060# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7061
7062# Character class describing NM global symbol codes.
7063symcode='[BCDEGRST]'
7064
7065# Regexp to match symbols that can be accessed directly from C.
7066sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7067
7068# Define system-specific variables.
7069case $host_os in
7070aix*)
7071  symcode='[BCDT]'
7072  ;;
7073cygwin* | mingw* | pw32* | cegcc*)
7074  symcode='[ABCDGISTW]'
7075  ;;
7076hpux*)
7077  if test "$host_cpu" = ia64; then
7078    symcode='[ABCDEGRST]'
7079  fi
7080  ;;
7081irix* | nonstopux*)
7082  symcode='[BCDEGRST]'
7083  ;;
7084osf*)
7085  symcode='[BCDEGQRST]'
7086  ;;
7087solaris*)
7088  symcode='[BDRT]'
7089  ;;
7090sco3.2v5*)
7091  symcode='[DT]'
7092  ;;
7093sysv4.2uw2*)
7094  symcode='[DT]'
7095  ;;
7096sysv5* | sco5v6* | unixware* | OpenUNIX*)
7097  symcode='[ABDT]'
7098  ;;
7099sysv4)
7100  symcode='[DFNSTU]'
7101  ;;
7102esac
7103
7104# If we're using GNU nm, then use its standard symbol codes.
7105case `$NM -V 2>&1` in
7106*GNU* | *'with BFD'*)
7107  symcode='[ABCDGIRSTW]' ;;
7108esac
7109
7110# Transform an extracted symbol line into a proper C declaration.
7111# Some systems (esp. on ia64) link data and code symbols differently,
7112# so use this general approach.
7113lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7114
7115# Transform an extracted symbol line into symbol name and symbol address
7116lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7117lt_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'"
7118
7119# Handle CRLF in mingw tool chain
7120opt_cr=
7121case $build_os in
7122mingw*)
7123  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7124  ;;
7125esac
7126
7127# Try without a prefix underscore, then with it.
7128for ac_symprfx in "" "_"; do
7129
7130  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7131  symxfrm="\\1 $ac_symprfx\\2 \\2"
7132
7133  # Write the raw and C identifiers.
7134  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7135    # Fake it for dumpbin and say T for any non-static function
7136    # and D for any global variable.
7137    # Also find C++ and __fastcall symbols from MSVC++,
7138    # which start with @ or ?.
7139    lt_cv_sys_global_symbol_pipe="$AWK '"\
7140"     {last_section=section; section=\$ 3};"\
7141"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7142"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7143"     \$ 0!~/External *\|/{next};"\
7144"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7145"     {if(hide[section]) next};"\
7146"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7147"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7148"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7149"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7150"     ' prfx=^$ac_symprfx"
7151  else
7152    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7153  fi
7154  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7155
7156  # Check to see that the pipe works correctly.
7157  pipe_works=no
7158
7159  rm -f conftest*
7160  cat > conftest.$ac_ext <<_LT_EOF
7161#ifdef __cplusplus
7162extern "C" {
7163#endif
7164char nm_test_var;
7165void nm_test_func(void);
7166void nm_test_func(void){}
7167#ifdef __cplusplus
7168}
7169#endif
7170int main(){nm_test_var='a';nm_test_func();return(0);}
7171_LT_EOF
7172
7173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174  (eval $ac_compile) 2>&5
7175  ac_status=$?
7176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177  test $ac_status = 0; }; then
7178    # Now try to grab the symbols.
7179    nlist=conftest.nm
7180    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7181  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7182  ac_status=$?
7183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184  test $ac_status = 0; } && test -s "$nlist"; then
7185      # Try sorting and uniquifying the output.
7186      if sort "$nlist" | uniq > "$nlist"T; then
7187	mv -f "$nlist"T "$nlist"
7188      else
7189	rm -f "$nlist"T
7190      fi
7191
7192      # Make sure that we snagged all the symbols we need.
7193      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7194	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7195	  cat <<_LT_EOF > conftest.$ac_ext
7196/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7197#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7198/* DATA imports from DLLs on WIN32 con't be const, because runtime
7199   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7200# define LT_DLSYM_CONST
7201#elif defined(__osf__)
7202/* This system does not cope well with relocations in const data.  */
7203# define LT_DLSYM_CONST
7204#else
7205# define LT_DLSYM_CONST const
7206#endif
7207
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211
7212_LT_EOF
7213	  # Now generate the symbol file.
7214	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216	  cat <<_LT_EOF >> conftest.$ac_ext
7217
7218/* The mapping between symbol names and symbols.  */
7219LT_DLSYM_CONST struct {
7220  const char *name;
7221  void       *address;
7222}
7223lt__PROGRAM__LTX_preloaded_symbols[] =
7224{
7225  { "@PROGRAM@", (void *) 0 },
7226_LT_EOF
7227	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228	  cat <<\_LT_EOF >> conftest.$ac_ext
7229  {0, (void *) 0}
7230};
7231
7232/* This works around a problem in FreeBSD linker */
7233#ifdef FREEBSD_WORKAROUND
7234static const void *lt_preloaded_setup() {
7235  return lt__PROGRAM__LTX_preloaded_symbols;
7236}
7237#endif
7238
7239#ifdef __cplusplus
7240}
7241#endif
7242_LT_EOF
7243	  # Now try linking the two files.
7244	  mv conftest.$ac_objext conftstm.$ac_objext
7245	  lt_globsym_save_LIBS=$LIBS
7246	  lt_globsym_save_CFLAGS=$CFLAGS
7247	  LIBS="conftstm.$ac_objext"
7248	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250  (eval $ac_link) 2>&5
7251  ac_status=$?
7252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7254	    pipe_works=yes
7255	  fi
7256	  LIBS=$lt_globsym_save_LIBS
7257	  CFLAGS=$lt_globsym_save_CFLAGS
7258	else
7259	  echo "cannot find nm_test_func in $nlist" >&5
7260	fi
7261      else
7262	echo "cannot find nm_test_var in $nlist" >&5
7263      fi
7264    else
7265      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266    fi
7267  else
7268    echo "$progname: failed program was:" >&5
7269    cat conftest.$ac_ext >&5
7270  fi
7271  rm -rf conftest* conftst*
7272
7273  # Do not use the global_symbol_pipe unless it works.
7274  if test "$pipe_works" = yes; then
7275    break
7276  else
7277    lt_cv_sys_global_symbol_pipe=
7278  fi
7279done
7280
7281fi
7282
7283if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284  lt_cv_sys_global_symbol_to_cdecl=
7285fi
7286if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288$as_echo "failed" >&6; }
7289else
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291$as_echo "ok" >&6; }
7292fi
7293
7294# Response file support.
7295if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296  nm_file_list_spec='@'
7297elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7298  nm_file_list_spec='@'
7299fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7328$as_echo_n "checking for sysroot... " >&6; }
7329
7330# Check whether --with-sysroot was given.
7331if test "${with_sysroot+set}" = set; then :
7332  withval=$with_sysroot;
7333else
7334  with_sysroot=no
7335fi
7336
7337
7338lt_sysroot=
7339case ${with_sysroot} in #(
7340 yes)
7341   if test "$GCC" = yes; then
7342     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7343   fi
7344   ;; #(
7345 /*)
7346   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7347   ;; #(
7348 no|'')
7349   ;; #(
7350 *)
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7352$as_echo "${with_sysroot}" >&6; }
7353   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7354   ;;
7355esac
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7358$as_echo "${lt_sysroot:-no}" >&6; }
7359
7360
7361
7362
7363
7364# Check whether --enable-libtool-lock was given.
7365if test "${enable_libtool_lock+set}" = set; then :
7366  enableval=$enable_libtool_lock;
7367fi
7368
7369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7370
7371# Some flags need to be propagated to the compiler or linker for good
7372# libtool support.
7373case $host in
7374ia64-*-hpux*)
7375  # Find out which ABI we are using.
7376  echo 'int i;' > conftest.$ac_ext
7377  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378  (eval $ac_compile) 2>&5
7379  ac_status=$?
7380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381  test $ac_status = 0; }; then
7382    case `/usr/bin/file conftest.$ac_objext` in
7383      *ELF-32*)
7384	HPUX_IA64_MODE="32"
7385	;;
7386      *ELF-64*)
7387	HPUX_IA64_MODE="64"
7388	;;
7389    esac
7390  fi
7391  rm -rf conftest*
7392  ;;
7393*-*-irix6*)
7394  # Find out which ABI we are using.
7395  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7396  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397  (eval $ac_compile) 2>&5
7398  ac_status=$?
7399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400  test $ac_status = 0; }; then
7401    if test "$lt_cv_prog_gnu_ld" = yes; then
7402      case `/usr/bin/file conftest.$ac_objext` in
7403	*32-bit*)
7404	  LD="${LD-ld} -melf32bsmip"
7405	  ;;
7406	*N32*)
7407	  LD="${LD-ld} -melf32bmipn32"
7408	  ;;
7409	*64-bit*)
7410	  LD="${LD-ld} -melf64bmip"
7411	;;
7412      esac
7413    else
7414      case `/usr/bin/file conftest.$ac_objext` in
7415	*32-bit*)
7416	  LD="${LD-ld} -32"
7417	  ;;
7418	*N32*)
7419	  LD="${LD-ld} -n32"
7420	  ;;
7421	*64-bit*)
7422	  LD="${LD-ld} -64"
7423	  ;;
7424      esac
7425    fi
7426  fi
7427  rm -rf conftest*
7428  ;;
7429
7430x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7431s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7432  # Find out which ABI we are using.
7433  echo 'int i;' > conftest.$ac_ext
7434  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435  (eval $ac_compile) 2>&5
7436  ac_status=$?
7437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438  test $ac_status = 0; }; then
7439    case `/usr/bin/file conftest.o` in
7440      *32-bit*)
7441	case $host in
7442	  x86_64-*kfreebsd*-gnu)
7443	    LD="${LD-ld} -m elf_i386_fbsd"
7444	    ;;
7445	  x86_64-*linux*)
7446	    case `/usr/bin/file conftest.o` in
7447	      *x86-64*)
7448		LD="${LD-ld} -m elf32_x86_64"
7449		;;
7450	      *)
7451		LD="${LD-ld} -m elf_i386"
7452		;;
7453	    esac
7454	    ;;
7455	  powerpc64le-*)
7456	    LD="${LD-ld} -m elf32lppclinux"
7457	    ;;
7458	  powerpc64-*)
7459	    LD="${LD-ld} -m elf32ppclinux"
7460	    ;;
7461	  s390x-*linux*)
7462	    LD="${LD-ld} -m elf_s390"
7463	    ;;
7464	  sparc64-*linux*)
7465	    LD="${LD-ld} -m elf32_sparc"
7466	    ;;
7467	esac
7468	;;
7469      *64-bit*)
7470	case $host in
7471	  x86_64-*kfreebsd*-gnu)
7472	    LD="${LD-ld} -m elf_x86_64_fbsd"
7473	    ;;
7474	  x86_64-*linux*)
7475	    LD="${LD-ld} -m elf_x86_64"
7476	    ;;
7477	  powerpcle-*)
7478	    LD="${LD-ld} -m elf64lppc"
7479	    ;;
7480	  powerpc-*)
7481	    LD="${LD-ld} -m elf64ppc"
7482	    ;;
7483	  s390*-*linux*|s390*-*tpf*)
7484	    LD="${LD-ld} -m elf64_s390"
7485	    ;;
7486	  sparc*-*linux*)
7487	    LD="${LD-ld} -m elf64_sparc"
7488	    ;;
7489	esac
7490	;;
7491    esac
7492  fi
7493  rm -rf conftest*
7494  ;;
7495
7496*-*-sco3.2v5*)
7497  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7498  SAVE_CFLAGS="$CFLAGS"
7499  CFLAGS="$CFLAGS -belf"
7500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7501$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7502if ${lt_cv_cc_needs_belf+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  ac_ext=c
7506ac_cpp='$CPP $CPPFLAGS'
7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513
7514int
7515main ()
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"; then :
7523  lt_cv_cc_needs_belf=yes
7524else
7525  lt_cv_cc_needs_belf=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext \
7528    conftest$ac_exeext conftest.$ac_ext
7529     ac_ext=c
7530ac_cpp='$CPP $CPPFLAGS'
7531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7537$as_echo "$lt_cv_cc_needs_belf" >&6; }
7538  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7539    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7540    CFLAGS="$SAVE_CFLAGS"
7541  fi
7542  ;;
7543*-*solaris*)
7544  # Find out which ABI we are using.
7545  echo 'int i;' > conftest.$ac_ext
7546  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547  (eval $ac_compile) 2>&5
7548  ac_status=$?
7549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550  test $ac_status = 0; }; then
7551    case `/usr/bin/file conftest.o` in
7552    *64-bit*)
7553      case $lt_cv_prog_gnu_ld in
7554      yes*)
7555        case $host in
7556        i?86-*-solaris*)
7557          LD="${LD-ld} -m elf_x86_64"
7558          ;;
7559        sparc*-*-solaris*)
7560          LD="${LD-ld} -m elf64_sparc"
7561          ;;
7562        esac
7563        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7564        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7565          LD="${LD-ld}_sol2"
7566        fi
7567        ;;
7568      *)
7569	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7570	  LD="${LD-ld} -64"
7571	fi
7572	;;
7573      esac
7574      ;;
7575    esac
7576  fi
7577  rm -rf conftest*
7578  ;;
7579esac
7580
7581need_locks="$enable_libtool_lock"
7582
7583if test -n "$ac_tool_prefix"; then
7584  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7585set dummy ${ac_tool_prefix}mt; ac_word=$2
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587$as_echo_n "checking for $ac_word... " >&6; }
7588if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  if test -n "$MANIFEST_TOOL"; then
7592  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597  IFS=$as_save_IFS
7598  test -z "$as_dir" && as_dir=.
7599    for ac_exec_ext in '' $ac_executable_extensions; do
7600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603    break 2
7604  fi
7605done
7606  done
7607IFS=$as_save_IFS
7608
7609fi
7610fi
7611MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7612if test -n "$MANIFEST_TOOL"; then
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7614$as_echo "$MANIFEST_TOOL" >&6; }
7615else
7616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617$as_echo "no" >&6; }
7618fi
7619
7620
7621fi
7622if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7623  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7624  # Extract the first word of "mt", so it can be a program name with args.
7625set dummy mt; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  if test -n "$ac_ct_MANIFEST_TOOL"; then
7632  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  test -z "$as_dir" && as_dir=.
7639    for ac_exec_ext in '' $ac_executable_extensions; do
7640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646  done
7647IFS=$as_save_IFS
7648
7649fi
7650fi
7651ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7652if test -n "$ac_ct_MANIFEST_TOOL"; then
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7654$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7655else
7656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
7659
7660  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7661    MANIFEST_TOOL=":"
7662  else
7663    case $cross_compiling:$ac_tool_warned in
7664yes:)
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667ac_tool_warned=yes ;;
7668esac
7669    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7670  fi
7671else
7672  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7673fi
7674
7675test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7677$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7678if ${lt_cv_path_mainfest_tool+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  lt_cv_path_mainfest_tool=no
7682  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7683  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7684  cat conftest.err >&5
7685  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7686    lt_cv_path_mainfest_tool=yes
7687  fi
7688  rm -f conftest*
7689fi
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7691$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7692if test "x$lt_cv_path_mainfest_tool" != xyes; then
7693  MANIFEST_TOOL=:
7694fi
7695
7696
7697
7698
7699
7700
7701  case $host_os in
7702    rhapsody* | darwin*)
7703    if test -n "$ac_tool_prefix"; then
7704  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7705set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707$as_echo_n "checking for $ac_word... " >&6; }
7708if ${ac_cv_prog_DSYMUTIL+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  if test -n "$DSYMUTIL"; then
7712  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717  IFS=$as_save_IFS
7718  test -z "$as_dir" && as_dir=.
7719    for ac_exec_ext in '' $ac_executable_extensions; do
7720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723    break 2
7724  fi
7725done
7726  done
7727IFS=$as_save_IFS
7728
7729fi
7730fi
7731DSYMUTIL=$ac_cv_prog_DSYMUTIL
7732if test -n "$DSYMUTIL"; then
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7734$as_echo "$DSYMUTIL" >&6; }
7735else
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
7739
7740
7741fi
7742if test -z "$ac_cv_prog_DSYMUTIL"; then
7743  ac_ct_DSYMUTIL=$DSYMUTIL
7744  # Extract the first word of "dsymutil", so it can be a program name with args.
7745set dummy dsymutil; ac_word=$2
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747$as_echo_n "checking for $ac_word... " >&6; }
7748if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  if test -n "$ac_ct_DSYMUTIL"; then
7752  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757  IFS=$as_save_IFS
7758  test -z "$as_dir" && as_dir=.
7759    for ac_exec_ext in '' $ac_executable_extensions; do
7760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763    break 2
7764  fi
7765done
7766  done
7767IFS=$as_save_IFS
7768
7769fi
7770fi
7771ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7772if test -n "$ac_ct_DSYMUTIL"; then
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7774$as_echo "$ac_ct_DSYMUTIL" >&6; }
7775else
7776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
7778fi
7779
7780  if test "x$ac_ct_DSYMUTIL" = x; then
7781    DSYMUTIL=":"
7782  else
7783    case $cross_compiling:$ac_tool_warned in
7784yes:)
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787ac_tool_warned=yes ;;
7788esac
7789    DSYMUTIL=$ac_ct_DSYMUTIL
7790  fi
7791else
7792  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7793fi
7794
7795    if test -n "$ac_tool_prefix"; then
7796  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7797set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799$as_echo_n "checking for $ac_word... " >&6; }
7800if ${ac_cv_prog_NMEDIT+:} false; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  if test -n "$NMEDIT"; then
7804  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7805else
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809  IFS=$as_save_IFS
7810  test -z "$as_dir" && as_dir=.
7811    for ac_exec_ext in '' $ac_executable_extensions; do
7812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815    break 2
7816  fi
7817done
7818  done
7819IFS=$as_save_IFS
7820
7821fi
7822fi
7823NMEDIT=$ac_cv_prog_NMEDIT
7824if test -n "$NMEDIT"; then
7825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7826$as_echo "$NMEDIT" >&6; }
7827else
7828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
7830fi
7831
7832
7833fi
7834if test -z "$ac_cv_prog_NMEDIT"; then
7835  ac_ct_NMEDIT=$NMEDIT
7836  # Extract the first word of "nmedit", so it can be a program name with args.
7837set dummy nmedit; ac_word=$2
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839$as_echo_n "checking for $ac_word... " >&6; }
7840if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  if test -n "$ac_ct_NMEDIT"; then
7844  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849  IFS=$as_save_IFS
7850  test -z "$as_dir" && as_dir=.
7851    for ac_exec_ext in '' $ac_executable_extensions; do
7852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855    break 2
7856  fi
7857done
7858  done
7859IFS=$as_save_IFS
7860
7861fi
7862fi
7863ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7864if test -n "$ac_ct_NMEDIT"; then
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7866$as_echo "$ac_ct_NMEDIT" >&6; }
7867else
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870fi
7871
7872  if test "x$ac_ct_NMEDIT" = x; then
7873    NMEDIT=":"
7874  else
7875    case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881    NMEDIT=$ac_ct_NMEDIT
7882  fi
7883else
7884  NMEDIT="$ac_cv_prog_NMEDIT"
7885fi
7886
7887    if test -n "$ac_tool_prefix"; then
7888  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}lipo; ac_word=$2
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if ${ac_cv_prog_LIPO+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  if test -n "$LIPO"; then
7896  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  test -z "$as_dir" && as_dir=.
7903    for ac_exec_ext in '' $ac_executable_extensions; do
7904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907    break 2
7908  fi
7909done
7910  done
7911IFS=$as_save_IFS
7912
7913fi
7914fi
7915LIPO=$ac_cv_prog_LIPO
7916if test -n "$LIPO"; then
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7918$as_echo "$LIPO" >&6; }
7919else
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924
7925fi
7926if test -z "$ac_cv_prog_LIPO"; then
7927  ac_ct_LIPO=$LIPO
7928  # Extract the first word of "lipo", so it can be a program name with args.
7929set dummy lipo; ac_word=$2
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931$as_echo_n "checking for $ac_word... " >&6; }
7932if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  if test -n "$ac_ct_LIPO"; then
7936  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941  IFS=$as_save_IFS
7942  test -z "$as_dir" && as_dir=.
7943    for ac_exec_ext in '' $ac_executable_extensions; do
7944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945    ac_cv_prog_ac_ct_LIPO="lipo"
7946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947    break 2
7948  fi
7949done
7950  done
7951IFS=$as_save_IFS
7952
7953fi
7954fi
7955ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7956if test -n "$ac_ct_LIPO"; then
7957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7958$as_echo "$ac_ct_LIPO" >&6; }
7959else
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
7962fi
7963
7964  if test "x$ac_ct_LIPO" = x; then
7965    LIPO=":"
7966  else
7967    case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971ac_tool_warned=yes ;;
7972esac
7973    LIPO=$ac_ct_LIPO
7974  fi
7975else
7976  LIPO="$ac_cv_prog_LIPO"
7977fi
7978
7979    if test -n "$ac_tool_prefix"; then
7980  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7981set dummy ${ac_tool_prefix}otool; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if ${ac_cv_prog_OTOOL+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  if test -n "$OTOOL"; then
7988  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007OTOOL=$ac_cv_prog_OTOOL
8008if test -n "$OTOOL"; then
8009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8010$as_echo "$OTOOL" >&6; }
8011else
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
8015
8016
8017fi
8018if test -z "$ac_cv_prog_OTOOL"; then
8019  ac_ct_OTOOL=$OTOOL
8020  # Extract the first word of "otool", so it can be a program name with args.
8021set dummy otool; ac_word=$2
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023$as_echo_n "checking for $ac_word... " >&6; }
8024if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  if test -n "$ac_ct_OTOOL"; then
8028  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033  IFS=$as_save_IFS
8034  test -z "$as_dir" && as_dir=.
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_ac_ct_OTOOL="otool"
8038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8048if test -n "$ac_ct_OTOOL"; then
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8050$as_echo "$ac_ct_OTOOL" >&6; }
8051else
8052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054fi
8055
8056  if test "x$ac_ct_OTOOL" = x; then
8057    OTOOL=":"
8058  else
8059    case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065    OTOOL=$ac_ct_OTOOL
8066  fi
8067else
8068  OTOOL="$ac_cv_prog_OTOOL"
8069fi
8070
8071    if test -n "$ac_tool_prefix"; then
8072  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8073set dummy ${ac_tool_prefix}otool64; ac_word=$2
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if ${ac_cv_prog_OTOOL64+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  if test -n "$OTOOL64"; then
8080  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  test -z "$as_dir" && as_dir=.
8087    for ac_exec_ext in '' $ac_executable_extensions; do
8088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094  done
8095IFS=$as_save_IFS
8096
8097fi
8098fi
8099OTOOL64=$ac_cv_prog_OTOOL64
8100if test -n "$OTOOL64"; then
8101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8102$as_echo "$OTOOL64" >&6; }
8103else
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106fi
8107
8108
8109fi
8110if test -z "$ac_cv_prog_OTOOL64"; then
8111  ac_ct_OTOOL64=$OTOOL64
8112  # Extract the first word of "otool64", so it can be a program name with args.
8113set dummy otool64; ac_word=$2
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115$as_echo_n "checking for $ac_word... " >&6; }
8116if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  if test -n "$ac_ct_OTOOL64"; then
8120  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  test -z "$as_dir" && as_dir=.
8127    for ac_exec_ext in '' $ac_executable_extensions; do
8128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129    ac_cv_prog_ac_ct_OTOOL64="otool64"
8130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131    break 2
8132  fi
8133done
8134  done
8135IFS=$as_save_IFS
8136
8137fi
8138fi
8139ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8140if test -n "$ac_ct_OTOOL64"; then
8141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8142$as_echo "$ac_ct_OTOOL64" >&6; }
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147
8148  if test "x$ac_ct_OTOOL64" = x; then
8149    OTOOL64=":"
8150  else
8151    case $cross_compiling:$ac_tool_warned in
8152yes:)
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155ac_tool_warned=yes ;;
8156esac
8157    OTOOL64=$ac_ct_OTOOL64
8158  fi
8159else
8160  OTOOL64="$ac_cv_prog_OTOOL64"
8161fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8190$as_echo_n "checking for -single_module linker flag... " >&6; }
8191if ${lt_cv_apple_cc_single_mod+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  lt_cv_apple_cc_single_mod=no
8195      if test -z "${LT_MULTI_MODULE}"; then
8196	# By default we will add the -single_module flag. You can override
8197	# by either setting the environment variable LT_MULTI_MODULE
8198	# non-empty at configure time, or by adding -multi_module to the
8199	# link flags.
8200	rm -rf libconftest.dylib*
8201	echo "int foo(void){return 1;}" > conftest.c
8202	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8203-dynamiclib -Wl,-single_module conftest.c" >&5
8204	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8206        _lt_result=$?
8207	# If there is a non-empty error log, and "single_module"
8208	# appears in it, assume the flag caused a linker warning
8209        if test -s conftest.err && $GREP single_module conftest.err; then
8210	  cat conftest.err >&5
8211	# Otherwise, if the output was created with a 0 exit code from
8212	# the compiler, it worked.
8213	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8214	  lt_cv_apple_cc_single_mod=yes
8215	else
8216	  cat conftest.err >&5
8217	fi
8218	rm -rf libconftest.dylib*
8219	rm -f conftest.*
8220      fi
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8223$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8224
8225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8226$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8227if ${lt_cv_ld_exported_symbols_list+:} false; then :
8228  $as_echo_n "(cached) " >&6
8229else
8230  lt_cv_ld_exported_symbols_list=no
8231      save_LDFLAGS=$LDFLAGS
8232      echo "_main" > conftest.sym
8233      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8234      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236
8237int
8238main ()
8239{
8240
8241  ;
8242  return 0;
8243}
8244_ACEOF
8245if ac_fn_c_try_link "$LINENO"; then :
8246  lt_cv_ld_exported_symbols_list=yes
8247else
8248  lt_cv_ld_exported_symbols_list=no
8249fi
8250rm -f core conftest.err conftest.$ac_objext \
8251    conftest$ac_exeext conftest.$ac_ext
8252	LDFLAGS="$save_LDFLAGS"
8253
8254fi
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8256$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8257
8258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8259$as_echo_n "checking for -force_load linker flag... " >&6; }
8260if ${lt_cv_ld_force_load+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  lt_cv_ld_force_load=no
8264      cat > conftest.c << _LT_EOF
8265int forced_loaded() { return 2;}
8266_LT_EOF
8267      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8268      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8269      echo "$AR cru libconftest.a conftest.o" >&5
8270      $AR cru libconftest.a conftest.o 2>&5
8271      echo "$RANLIB libconftest.a" >&5
8272      $RANLIB libconftest.a 2>&5
8273      cat > conftest.c << _LT_EOF
8274int main() { return 0;}
8275_LT_EOF
8276      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8277      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8278      _lt_result=$?
8279      if test -s conftest.err && $GREP force_load conftest.err; then
8280	cat conftest.err >&5
8281      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8282	lt_cv_ld_force_load=yes
8283      else
8284	cat conftest.err >&5
8285      fi
8286        rm -f conftest.err libconftest.a conftest conftest.c
8287        rm -rf conftest.dSYM
8288
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8291$as_echo "$lt_cv_ld_force_load" >&6; }
8292    case $host_os in
8293    rhapsody* | darwin1.[012])
8294      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8295    darwin1.*)
8296      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8297    darwin*) # darwin 5.x on
8298      # if running on 10.5 or later, the deployment target defaults
8299      # to the OS version, if on x86, and 10.4, the deployment
8300      # target defaults to 10.4. Don't you love it?
8301      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8302	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8303	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8304	10.[012]*)
8305	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8306	10.*)
8307	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8308      esac
8309    ;;
8310  esac
8311    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8312      _lt_dar_single_mod='$single_module'
8313    fi
8314    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8315      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8316    else
8317      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8318    fi
8319    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8320      _lt_dsymutil='~$DSYMUTIL $lib || :'
8321    else
8322      _lt_dsymutil=
8323    fi
8324    ;;
8325  esac
8326
8327
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8329$as_echo_n "checking for ANSI C header files... " >&6; }
8330if ${ac_cv_header_stdc+:} false; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335#include <stdlib.h>
8336#include <stdarg.h>
8337#include <string.h>
8338#include <float.h>
8339
8340int
8341main ()
8342{
8343
8344  ;
8345  return 0;
8346}
8347_ACEOF
8348if ac_fn_c_try_compile "$LINENO"; then :
8349  ac_cv_header_stdc=yes
8350else
8351  ac_cv_header_stdc=no
8352fi
8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354
8355if test $ac_cv_header_stdc = yes; then
8356  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359#include <string.h>
8360
8361_ACEOF
8362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8363  $EGREP "memchr" >/dev/null 2>&1; then :
8364
8365else
8366  ac_cv_header_stdc=no
8367fi
8368rm -f conftest*
8369
8370fi
8371
8372if test $ac_cv_header_stdc = yes; then
8373  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376#include <stdlib.h>
8377
8378_ACEOF
8379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8380  $EGREP "free" >/dev/null 2>&1; then :
8381
8382else
8383  ac_cv_header_stdc=no
8384fi
8385rm -f conftest*
8386
8387fi
8388
8389if test $ac_cv_header_stdc = yes; then
8390  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8391  if test "$cross_compiling" = yes; then :
8392  :
8393else
8394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h.  */
8396#include <ctype.h>
8397#include <stdlib.h>
8398#if ((' ' & 0x0FF) == 0x020)
8399# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8400# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8401#else
8402# define ISLOWER(c) \
8403		   (('a' <= (c) && (c) <= 'i') \
8404		     || ('j' <= (c) && (c) <= 'r') \
8405		     || ('s' <= (c) && (c) <= 'z'))
8406# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8407#endif
8408
8409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8410int
8411main ()
8412{
8413  int i;
8414  for (i = 0; i < 256; i++)
8415    if (XOR (islower (i), ISLOWER (i))
8416	|| toupper (i) != TOUPPER (i))
8417      return 2;
8418  return 0;
8419}
8420_ACEOF
8421if ac_fn_c_try_run "$LINENO"; then :
8422
8423else
8424  ac_cv_header_stdc=no
8425fi
8426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8427  conftest.$ac_objext conftest.beam conftest.$ac_ext
8428fi
8429
8430fi
8431fi
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8433$as_echo "$ac_cv_header_stdc" >&6; }
8434if test $ac_cv_header_stdc = yes; then
8435
8436$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8437
8438fi
8439
8440# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8441for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8442		  inttypes.h stdint.h unistd.h
8443do :
8444  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8446"
8447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8448  cat >>confdefs.h <<_ACEOF
8449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8450_ACEOF
8451
8452fi
8453
8454done
8455
8456
8457for ac_header in dlfcn.h
8458do :
8459  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8460"
8461if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8462  cat >>confdefs.h <<_ACEOF
8463#define HAVE_DLFCN_H 1
8464_ACEOF
8465
8466fi
8467
8468done
8469
8470
8471
8472
8473func_stripname_cnf ()
8474{
8475  case ${2} in
8476  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8477  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8478  esac
8479} # func_stripname_cnf
8480
8481
8482
8483
8484
8485# Set options
8486
8487
8488
8489        enable_dlopen=no
8490
8491
8492
8493            # Check whether --enable-shared was given.
8494if test "${enable_shared+set}" = set; then :
8495  enableval=$enable_shared; p=${PACKAGE-default}
8496    case $enableval in
8497    yes) enable_shared=yes ;;
8498    no) enable_shared=no ;;
8499    *)
8500      enable_shared=no
8501      # Look at the argument we got.  We use all the common list separators.
8502      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8503      for pkg in $enableval; do
8504	IFS="$lt_save_ifs"
8505	if test "X$pkg" = "X$p"; then
8506	  enable_shared=yes
8507	fi
8508      done
8509      IFS="$lt_save_ifs"
8510      ;;
8511    esac
8512else
8513  enable_shared=yes
8514fi
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524  # Check whether --enable-static was given.
8525if test "${enable_static+set}" = set; then :
8526  enableval=$enable_static; p=${PACKAGE-default}
8527    case $enableval in
8528    yes) enable_static=yes ;;
8529    no) enable_static=no ;;
8530    *)
8531     enable_static=no
8532      # Look at the argument we got.  We use all the common list separators.
8533      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8534      for pkg in $enableval; do
8535	IFS="$lt_save_ifs"
8536	if test "X$pkg" = "X$p"; then
8537	  enable_static=yes
8538	fi
8539      done
8540      IFS="$lt_save_ifs"
8541      ;;
8542    esac
8543else
8544  enable_static=yes
8545fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556# Check whether --with-pic was given.
8557if test "${with_pic+set}" = set; then :
8558  withval=$with_pic; lt_p=${PACKAGE-default}
8559    case $withval in
8560    yes|no) pic_mode=$withval ;;
8561    *)
8562      pic_mode=default
8563      # Look at the argument we got.  We use all the common list separators.
8564      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8565      for lt_pkg in $withval; do
8566	IFS="$lt_save_ifs"
8567	if test "X$lt_pkg" = "X$lt_p"; then
8568	  pic_mode=yes
8569	fi
8570      done
8571      IFS="$lt_save_ifs"
8572      ;;
8573    esac
8574else
8575  pic_mode=default
8576fi
8577
8578
8579test -z "$pic_mode" && pic_mode=default
8580
8581
8582
8583
8584
8585
8586
8587  # Check whether --enable-fast-install was given.
8588if test "${enable_fast_install+set}" = set; then :
8589  enableval=$enable_fast_install; p=${PACKAGE-default}
8590    case $enableval in
8591    yes) enable_fast_install=yes ;;
8592    no) enable_fast_install=no ;;
8593    *)
8594      enable_fast_install=no
8595      # Look at the argument we got.  We use all the common list separators.
8596      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8597      for pkg in $enableval; do
8598	IFS="$lt_save_ifs"
8599	if test "X$pkg" = "X$p"; then
8600	  enable_fast_install=yes
8601	fi
8602      done
8603      IFS="$lt_save_ifs"
8604      ;;
8605    esac
8606else
8607  enable_fast_install=yes
8608fi
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620# This can be used to rebuild libtool when needed
8621LIBTOOL_DEPS="$ltmain"
8622
8623# Always use our own libtool.
8624LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655test -z "$LN_S" && LN_S="ln -s"
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670if test -n "${ZSH_VERSION+set}" ; then
8671   setopt NO_GLOB_SUBST
8672fi
8673
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8675$as_echo_n "checking for objdir... " >&6; }
8676if ${lt_cv_objdir+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  rm -f .libs 2>/dev/null
8680mkdir .libs 2>/dev/null
8681if test -d .libs; then
8682  lt_cv_objdir=.libs
8683else
8684  # MS-DOS does not allow filenames that begin with a dot.
8685  lt_cv_objdir=_libs
8686fi
8687rmdir .libs 2>/dev/null
8688fi
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8690$as_echo "$lt_cv_objdir" >&6; }
8691objdir=$lt_cv_objdir
8692
8693
8694
8695
8696
8697cat >>confdefs.h <<_ACEOF
8698#define LT_OBJDIR "$lt_cv_objdir/"
8699_ACEOF
8700
8701
8702
8703
8704case $host_os in
8705aix3*)
8706  # AIX sometimes has problems with the GCC collect2 program.  For some
8707  # reason, if we set the COLLECT_NAMES environment variable, the problems
8708  # vanish in a puff of smoke.
8709  if test "X${COLLECT_NAMES+set}" != Xset; then
8710    COLLECT_NAMES=
8711    export COLLECT_NAMES
8712  fi
8713  ;;
8714esac
8715
8716# Global variables:
8717ofile=libtool
8718can_build_shared=yes
8719
8720# All known linkers require a `.a' archive for static linking (except MSVC,
8721# which needs '.lib').
8722libext=a
8723
8724with_gnu_ld="$lt_cv_prog_gnu_ld"
8725
8726old_CC="$CC"
8727old_CFLAGS="$CFLAGS"
8728
8729# Set sane defaults for various variables
8730test -z "$CC" && CC=cc
8731test -z "$LTCC" && LTCC=$CC
8732test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8733test -z "$LD" && LD=ld
8734test -z "$ac_objext" && ac_objext=o
8735
8736for cc_temp in $compiler""; do
8737  case $cc_temp in
8738    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8739    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8740    \-*) ;;
8741    *) break;;
8742  esac
8743done
8744cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8745
8746
8747# Only perform the check for file, if the check method requires it
8748test -z "$MAGIC_CMD" && MAGIC_CMD=file
8749case $deplibs_check_method in
8750file_magic*)
8751  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8753$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8754if ${lt_cv_path_MAGIC_CMD+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  case $MAGIC_CMD in
8758[\\/*] |  ?:[\\/]*)
8759  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8760  ;;
8761*)
8762  lt_save_MAGIC_CMD="$MAGIC_CMD"
8763  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8764  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8765  for ac_dir in $ac_dummy; do
8766    IFS="$lt_save_ifs"
8767    test -z "$ac_dir" && ac_dir=.
8768    if test -f $ac_dir/${ac_tool_prefix}file; then
8769      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8770      if test -n "$file_magic_test_file"; then
8771	case $deplibs_check_method in
8772	"file_magic "*)
8773	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8774	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8775	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8776	    $EGREP "$file_magic_regex" > /dev/null; then
8777	    :
8778	  else
8779	    cat <<_LT_EOF 1>&2
8780
8781*** Warning: the command libtool uses to detect shared libraries,
8782*** $file_magic_cmd, produces output that libtool cannot recognize.
8783*** The result is that libtool may fail to recognize shared libraries
8784*** as such.  This will affect the creation of libtool libraries that
8785*** depend on shared libraries, but programs linked with such libtool
8786*** libraries will work regardless of this problem.  Nevertheless, you
8787*** may want to report the problem to your system manager and/or to
8788*** bug-libtool@gnu.org
8789
8790_LT_EOF
8791	  fi ;;
8792	esac
8793      fi
8794      break
8795    fi
8796  done
8797  IFS="$lt_save_ifs"
8798  MAGIC_CMD="$lt_save_MAGIC_CMD"
8799  ;;
8800esac
8801fi
8802
8803MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8804if test -n "$MAGIC_CMD"; then
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8806$as_echo "$MAGIC_CMD" >&6; }
8807else
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809$as_echo "no" >&6; }
8810fi
8811
8812
8813
8814
8815
8816if test -z "$lt_cv_path_MAGIC_CMD"; then
8817  if test -n "$ac_tool_prefix"; then
8818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8819$as_echo_n "checking for file... " >&6; }
8820if ${lt_cv_path_MAGIC_CMD+:} false; then :
8821  $as_echo_n "(cached) " >&6
8822else
8823  case $MAGIC_CMD in
8824[\\/*] |  ?:[\\/]*)
8825  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8826  ;;
8827*)
8828  lt_save_MAGIC_CMD="$MAGIC_CMD"
8829  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8830  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8831  for ac_dir in $ac_dummy; do
8832    IFS="$lt_save_ifs"
8833    test -z "$ac_dir" && ac_dir=.
8834    if test -f $ac_dir/file; then
8835      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8836      if test -n "$file_magic_test_file"; then
8837	case $deplibs_check_method in
8838	"file_magic "*)
8839	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8840	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8841	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8842	    $EGREP "$file_magic_regex" > /dev/null; then
8843	    :
8844	  else
8845	    cat <<_LT_EOF 1>&2
8846
8847*** Warning: the command libtool uses to detect shared libraries,
8848*** $file_magic_cmd, produces output that libtool cannot recognize.
8849*** The result is that libtool may fail to recognize shared libraries
8850*** as such.  This will affect the creation of libtool libraries that
8851*** depend on shared libraries, but programs linked with such libtool
8852*** libraries will work regardless of this problem.  Nevertheless, you
8853*** may want to report the problem to your system manager and/or to
8854*** bug-libtool@gnu.org
8855
8856_LT_EOF
8857	  fi ;;
8858	esac
8859      fi
8860      break
8861    fi
8862  done
8863  IFS="$lt_save_ifs"
8864  MAGIC_CMD="$lt_save_MAGIC_CMD"
8865  ;;
8866esac
8867fi
8868
8869MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870if test -n "$MAGIC_CMD"; then
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8872$as_echo "$MAGIC_CMD" >&6; }
8873else
8874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875$as_echo "no" >&6; }
8876fi
8877
8878
8879  else
8880    MAGIC_CMD=:
8881  fi
8882fi
8883
8884  fi
8885  ;;
8886esac
8887
8888# Use C for the default configuration in the libtool script
8889
8890lt_save_CC="$CC"
8891ac_ext=c
8892ac_cpp='$CPP $CPPFLAGS'
8893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895ac_compiler_gnu=$ac_cv_c_compiler_gnu
8896
8897
8898# Source file extension for C test sources.
8899ac_ext=c
8900
8901# Object file extension for compiled C test sources.
8902objext=o
8903objext=$objext
8904
8905# Code to be used in simple compile tests
8906lt_simple_compile_test_code="int some_variable = 0;"
8907
8908# Code to be used in simple link tests
8909lt_simple_link_test_code='int main(){return(0);}'
8910
8911
8912
8913
8914
8915
8916
8917# If no C compiler was specified, use CC.
8918LTCC=${LTCC-"$CC"}
8919
8920# If no C compiler flags were specified, use CFLAGS.
8921LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8922
8923# Allow CC to be a program name with arguments.
8924compiler=$CC
8925
8926# Save the default compiler, since it gets overwritten when the other
8927# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8928compiler_DEFAULT=$CC
8929
8930# save warnings/boilerplate of simple test code
8931ac_outfile=conftest.$ac_objext
8932echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8933eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8934_lt_compiler_boilerplate=`cat conftest.err`
8935$RM conftest*
8936
8937ac_outfile=conftest.$ac_objext
8938echo "$lt_simple_link_test_code" >conftest.$ac_ext
8939eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940_lt_linker_boilerplate=`cat conftest.err`
8941$RM -r conftest*
8942
8943
8944if test -n "$compiler"; then
8945
8946lt_prog_compiler_no_builtin_flag=
8947
8948if test "$GCC" = yes; then
8949  case $cc_basename in
8950  nvcc*)
8951    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8952  *)
8953    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8954  esac
8955
8956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8957$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8958if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8959  $as_echo_n "(cached) " >&6
8960else
8961  lt_cv_prog_compiler_rtti_exceptions=no
8962   ac_outfile=conftest.$ac_objext
8963   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8964   lt_compiler_flag="-fno-rtti -fno-exceptions"
8965   # Insert the option either (1) after the last *FLAGS variable, or
8966   # (2) before a word containing "conftest.", or (3) at the end.
8967   # Note that $ac_compile itself does not contain backslashes and begins
8968   # with a dollar sign (not a hyphen), so the echo should work correctly.
8969   # The option is referenced via a variable to avoid confusing sed.
8970   lt_compile=`echo "$ac_compile" | $SED \
8971   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8972   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8973   -e 's:$: $lt_compiler_flag:'`
8974   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8975   (eval "$lt_compile" 2>conftest.err)
8976   ac_status=$?
8977   cat conftest.err >&5
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   if (exit $ac_status) && test -s "$ac_outfile"; then
8980     # The compiler can only warn and ignore the option if not recognized
8981     # So say no if there are warnings other than the usual output.
8982     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8983     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8984     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8985       lt_cv_prog_compiler_rtti_exceptions=yes
8986     fi
8987   fi
8988   $RM conftest*
8989
8990fi
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8992$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8993
8994if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8995    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8996else
8997    :
8998fi
8999
9000fi
9001
9002
9003
9004
9005
9006
9007  lt_prog_compiler_wl=
9008lt_prog_compiler_pic=
9009lt_prog_compiler_static=
9010
9011
9012  if test "$GCC" = yes; then
9013    lt_prog_compiler_wl='-Wl,'
9014    lt_prog_compiler_static='-static'
9015
9016    case $host_os in
9017      aix*)
9018      # All AIX code is PIC.
9019      if test "$host_cpu" = ia64; then
9020	# AIX 5 now supports IA64 processor
9021	lt_prog_compiler_static='-Bstatic'
9022      fi
9023      ;;
9024
9025    amigaos*)
9026      case $host_cpu in
9027      powerpc)
9028            # see comment about AmigaOS4 .so support
9029            lt_prog_compiler_pic='-fPIC'
9030        ;;
9031      m68k)
9032            # FIXME: we need at least 68020 code to build shared libraries, but
9033            # adding the `-m68020' flag to GCC prevents building anything better,
9034            # like `-m68040'.
9035            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9036        ;;
9037      esac
9038      ;;
9039
9040    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9041      # PIC is the default for these OSes.
9042      ;;
9043
9044    mingw* | cygwin* | pw32* | os2* | cegcc*)
9045      # This hack is so that the source file can tell whether it is being
9046      # built for inclusion in a dll (and should export symbols for example).
9047      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9048      # (--disable-auto-import) libraries
9049      lt_prog_compiler_pic='-DDLL_EXPORT'
9050      ;;
9051
9052    darwin* | rhapsody*)
9053      # PIC is the default on this platform
9054      # Common symbols not allowed in MH_DYLIB files
9055      lt_prog_compiler_pic='-fno-common'
9056      ;;
9057
9058    haiku*)
9059      # PIC is the default for Haiku.
9060      # The "-static" flag exists, but is broken.
9061      lt_prog_compiler_static=
9062      ;;
9063
9064    hpux*)
9065      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9066      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9067      # sets the default TLS model and affects inlining.
9068      case $host_cpu in
9069      hppa*64*)
9070	# +Z the default
9071	;;
9072      *)
9073	lt_prog_compiler_pic='-fPIC'
9074	;;
9075      esac
9076      ;;
9077
9078    interix[3-9]*)
9079      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9080      # Instead, we relocate shared libraries at runtime.
9081      ;;
9082
9083    msdosdjgpp*)
9084      # Just because we use GCC doesn't mean we suddenly get shared libraries
9085      # on systems that don't support them.
9086      lt_prog_compiler_can_build_shared=no
9087      enable_shared=no
9088      ;;
9089
9090    *nto* | *qnx*)
9091      # QNX uses GNU C++, but need to define -shared option too, otherwise
9092      # it will coredump.
9093      lt_prog_compiler_pic='-fPIC -shared'
9094      ;;
9095
9096    sysv4*MP*)
9097      if test -d /usr/nec; then
9098	lt_prog_compiler_pic=-Kconform_pic
9099      fi
9100      ;;
9101
9102    *)
9103      lt_prog_compiler_pic='-fPIC'
9104      ;;
9105    esac
9106
9107    case $cc_basename in
9108    nvcc*) # Cuda Compiler Driver 2.2
9109      lt_prog_compiler_wl='-Xlinker '
9110      if test -n "$lt_prog_compiler_pic"; then
9111        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9112      fi
9113      ;;
9114    esac
9115  else
9116    # PORTME Check for flag to pass linker flags through the system compiler.
9117    case $host_os in
9118    aix*)
9119      lt_prog_compiler_wl='-Wl,'
9120      if test "$host_cpu" = ia64; then
9121	# AIX 5 now supports IA64 processor
9122	lt_prog_compiler_static='-Bstatic'
9123      else
9124	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9125      fi
9126      ;;
9127
9128    mingw* | cygwin* | pw32* | os2* | cegcc*)
9129      # This hack is so that the source file can tell whether it is being
9130      # built for inclusion in a dll (and should export symbols for example).
9131      lt_prog_compiler_pic='-DDLL_EXPORT'
9132      ;;
9133
9134    hpux9* | hpux10* | hpux11*)
9135      lt_prog_compiler_wl='-Wl,'
9136      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9137      # not for PA HP-UX.
9138      case $host_cpu in
9139      hppa*64*|ia64*)
9140	# +Z the default
9141	;;
9142      *)
9143	lt_prog_compiler_pic='+Z'
9144	;;
9145      esac
9146      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9147      lt_prog_compiler_static='${wl}-a ${wl}archive'
9148      ;;
9149
9150    irix5* | irix6* | nonstopux*)
9151      lt_prog_compiler_wl='-Wl,'
9152      # PIC (with -KPIC) is the default.
9153      lt_prog_compiler_static='-non_shared'
9154      ;;
9155
9156    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9157      case $cc_basename in
9158      # old Intel for x86_64 which still supported -KPIC.
9159      ecc*)
9160	lt_prog_compiler_wl='-Wl,'
9161	lt_prog_compiler_pic='-KPIC'
9162	lt_prog_compiler_static='-static'
9163        ;;
9164      # icc used to be incompatible with GCC.
9165      # ICC 10 doesn't accept -KPIC any more.
9166      icc* | ifort*)
9167	lt_prog_compiler_wl='-Wl,'
9168	lt_prog_compiler_pic='-fPIC'
9169	lt_prog_compiler_static='-static'
9170        ;;
9171      # Lahey Fortran 8.1.
9172      lf95*)
9173	lt_prog_compiler_wl='-Wl,'
9174	lt_prog_compiler_pic='--shared'
9175	lt_prog_compiler_static='--static'
9176	;;
9177      nagfor*)
9178	# NAG Fortran compiler
9179	lt_prog_compiler_wl='-Wl,-Wl,,'
9180	lt_prog_compiler_pic='-PIC'
9181	lt_prog_compiler_static='-Bstatic'
9182	;;
9183      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9184        # Portland Group compilers (*not* the Pentium gcc compiler,
9185	# which looks to be a dead project)
9186	lt_prog_compiler_wl='-Wl,'
9187	lt_prog_compiler_pic='-fpic'
9188	lt_prog_compiler_static='-Bstatic'
9189        ;;
9190      ccc*)
9191        lt_prog_compiler_wl='-Wl,'
9192        # All Alpha code is PIC.
9193        lt_prog_compiler_static='-non_shared'
9194        ;;
9195      xl* | bgxl* | bgf* | mpixl*)
9196	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9197	lt_prog_compiler_wl='-Wl,'
9198	lt_prog_compiler_pic='-qpic'
9199	lt_prog_compiler_static='-qstaticlink'
9200	;;
9201      *)
9202	case `$CC -V 2>&1 | sed 5q` in
9203	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9204	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9205	  lt_prog_compiler_pic='-KPIC'
9206	  lt_prog_compiler_static='-Bstatic'
9207	  lt_prog_compiler_wl=''
9208	  ;;
9209	*Sun\ F* | *Sun*Fortran*)
9210	  lt_prog_compiler_pic='-KPIC'
9211	  lt_prog_compiler_static='-Bstatic'
9212	  lt_prog_compiler_wl='-Qoption ld '
9213	  ;;
9214	*Sun\ C*)
9215	  # Sun C 5.9
9216	  lt_prog_compiler_pic='-KPIC'
9217	  lt_prog_compiler_static='-Bstatic'
9218	  lt_prog_compiler_wl='-Wl,'
9219	  ;;
9220        *Intel*\ [CF]*Compiler*)
9221	  lt_prog_compiler_wl='-Wl,'
9222	  lt_prog_compiler_pic='-fPIC'
9223	  lt_prog_compiler_static='-static'
9224	  ;;
9225	*Portland\ Group*)
9226	  lt_prog_compiler_wl='-Wl,'
9227	  lt_prog_compiler_pic='-fpic'
9228	  lt_prog_compiler_static='-Bstatic'
9229	  ;;
9230	esac
9231	;;
9232      esac
9233      ;;
9234
9235    newsos6)
9236      lt_prog_compiler_pic='-KPIC'
9237      lt_prog_compiler_static='-Bstatic'
9238      ;;
9239
9240    *nto* | *qnx*)
9241      # QNX uses GNU C++, but need to define -shared option too, otherwise
9242      # it will coredump.
9243      lt_prog_compiler_pic='-fPIC -shared'
9244      ;;
9245
9246    osf3* | osf4* | osf5*)
9247      lt_prog_compiler_wl='-Wl,'
9248      # All OSF/1 code is PIC.
9249      lt_prog_compiler_static='-non_shared'
9250      ;;
9251
9252    rdos*)
9253      lt_prog_compiler_static='-non_shared'
9254      ;;
9255
9256    solaris*)
9257      lt_prog_compiler_pic='-KPIC'
9258      lt_prog_compiler_static='-Bstatic'
9259      case $cc_basename in
9260      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9261	lt_prog_compiler_wl='-Qoption ld ';;
9262      *)
9263	lt_prog_compiler_wl='-Wl,';;
9264      esac
9265      ;;
9266
9267    sunos4*)
9268      lt_prog_compiler_wl='-Qoption ld '
9269      lt_prog_compiler_pic='-PIC'
9270      lt_prog_compiler_static='-Bstatic'
9271      ;;
9272
9273    sysv4 | sysv4.2uw2* | sysv4.3*)
9274      lt_prog_compiler_wl='-Wl,'
9275      lt_prog_compiler_pic='-KPIC'
9276      lt_prog_compiler_static='-Bstatic'
9277      ;;
9278
9279    sysv4*MP*)
9280      if test -d /usr/nec ;then
9281	lt_prog_compiler_pic='-Kconform_pic'
9282	lt_prog_compiler_static='-Bstatic'
9283      fi
9284      ;;
9285
9286    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9287      lt_prog_compiler_wl='-Wl,'
9288      lt_prog_compiler_pic='-KPIC'
9289      lt_prog_compiler_static='-Bstatic'
9290      ;;
9291
9292    unicos*)
9293      lt_prog_compiler_wl='-Wl,'
9294      lt_prog_compiler_can_build_shared=no
9295      ;;
9296
9297    uts4*)
9298      lt_prog_compiler_pic='-pic'
9299      lt_prog_compiler_static='-Bstatic'
9300      ;;
9301
9302    *)
9303      lt_prog_compiler_can_build_shared=no
9304      ;;
9305    esac
9306  fi
9307
9308case $host_os in
9309  # For platforms which do not support PIC, -DPIC is meaningless:
9310  *djgpp*)
9311    lt_prog_compiler_pic=
9312    ;;
9313  *)
9314    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9315    ;;
9316esac
9317
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9319$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9320if ${lt_cv_prog_compiler_pic+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9326$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9327lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9328
9329#
9330# Check to make sure the PIC flag actually works.
9331#
9332if test -n "$lt_prog_compiler_pic"; then
9333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9334$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9335if ${lt_cv_prog_compiler_pic_works+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  lt_cv_prog_compiler_pic_works=no
9339   ac_outfile=conftest.$ac_objext
9340   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9341   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9342   # Insert the option either (1) after the last *FLAGS variable, or
9343   # (2) before a word containing "conftest.", or (3) at the end.
9344   # Note that $ac_compile itself does not contain backslashes and begins
9345   # with a dollar sign (not a hyphen), so the echo should work correctly.
9346   # The option is referenced via a variable to avoid confusing sed.
9347   lt_compile=`echo "$ac_compile" | $SED \
9348   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9349   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9350   -e 's:$: $lt_compiler_flag:'`
9351   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9352   (eval "$lt_compile" 2>conftest.err)
9353   ac_status=$?
9354   cat conftest.err >&5
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   if (exit $ac_status) && test -s "$ac_outfile"; then
9357     # The compiler can only warn and ignore the option if not recognized
9358     # So say no if there are warnings other than the usual output.
9359     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9360     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9361     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9362       lt_cv_prog_compiler_pic_works=yes
9363     fi
9364   fi
9365   $RM conftest*
9366
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9369$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9370
9371if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9372    case $lt_prog_compiler_pic in
9373     "" | " "*) ;;
9374     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9375     esac
9376else
9377    lt_prog_compiler_pic=
9378     lt_prog_compiler_can_build_shared=no
9379fi
9380
9381fi
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393#
9394# Check to make sure the static flag actually works.
9395#
9396wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9398$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9399if ${lt_cv_prog_compiler_static_works+:} false; then :
9400  $as_echo_n "(cached) " >&6
9401else
9402  lt_cv_prog_compiler_static_works=no
9403   save_LDFLAGS="$LDFLAGS"
9404   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9405   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9406   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9407     # The linker can only warn and ignore the option if not recognized
9408     # So say no if there are warnings
9409     if test -s conftest.err; then
9410       # Append any errors to the config.log.
9411       cat conftest.err 1>&5
9412       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9413       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9414       if diff conftest.exp conftest.er2 >/dev/null; then
9415         lt_cv_prog_compiler_static_works=yes
9416       fi
9417     else
9418       lt_cv_prog_compiler_static_works=yes
9419     fi
9420   fi
9421   $RM -r conftest*
9422   LDFLAGS="$save_LDFLAGS"
9423
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9426$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9427
9428if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9429    :
9430else
9431    lt_prog_compiler_static=
9432fi
9433
9434
9435
9436
9437
9438
9439
9440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9441$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9442if ${lt_cv_prog_compiler_c_o+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  lt_cv_prog_compiler_c_o=no
9446   $RM -r conftest 2>/dev/null
9447   mkdir conftest
9448   cd conftest
9449   mkdir out
9450   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9451
9452   lt_compiler_flag="-o out/conftest2.$ac_objext"
9453   # Insert the option either (1) after the last *FLAGS variable, or
9454   # (2) before a word containing "conftest.", or (3) at the end.
9455   # Note that $ac_compile itself does not contain backslashes and begins
9456   # with a dollar sign (not a hyphen), so the echo should work correctly.
9457   lt_compile=`echo "$ac_compile" | $SED \
9458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9460   -e 's:$: $lt_compiler_flag:'`
9461   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9462   (eval "$lt_compile" 2>out/conftest.err)
9463   ac_status=$?
9464   cat out/conftest.err >&5
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9467   then
9468     # The compiler can only warn and ignore the option if not recognized
9469     # So say no if there are warnings
9470     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9471     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9472     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9473       lt_cv_prog_compiler_c_o=yes
9474     fi
9475   fi
9476   chmod u+w . 2>&5
9477   $RM conftest*
9478   # SGI C++ compiler will create directory out/ii_files/ for
9479   # template instantiation
9480   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9481   $RM out/* && rmdir out
9482   cd ..
9483   $RM -r conftest
9484   $RM conftest*
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9488$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9489
9490
9491
9492
9493
9494
9495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9496$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9497if ${lt_cv_prog_compiler_c_o+:} false; then :
9498  $as_echo_n "(cached) " >&6
9499else
9500  lt_cv_prog_compiler_c_o=no
9501   $RM -r conftest 2>/dev/null
9502   mkdir conftest
9503   cd conftest
9504   mkdir out
9505   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506
9507   lt_compiler_flag="-o out/conftest2.$ac_objext"
9508   # Insert the option either (1) after the last *FLAGS variable, or
9509   # (2) before a word containing "conftest.", or (3) at the end.
9510   # Note that $ac_compile itself does not contain backslashes and begins
9511   # with a dollar sign (not a hyphen), so the echo should work correctly.
9512   lt_compile=`echo "$ac_compile" | $SED \
9513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9515   -e 's:$: $lt_compiler_flag:'`
9516   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9517   (eval "$lt_compile" 2>out/conftest.err)
9518   ac_status=$?
9519   cat out/conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9522   then
9523     # The compiler can only warn and ignore the option if not recognized
9524     # So say no if there are warnings
9525     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9526     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9527     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9528       lt_cv_prog_compiler_c_o=yes
9529     fi
9530   fi
9531   chmod u+w . 2>&5
9532   $RM conftest*
9533   # SGI C++ compiler will create directory out/ii_files/ for
9534   # template instantiation
9535   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9536   $RM out/* && rmdir out
9537   cd ..
9538   $RM -r conftest
9539   $RM conftest*
9540
9541fi
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9543$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9544
9545
9546
9547
9548hard_links="nottested"
9549if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9550  # do not overwrite the value of need_locks provided by the user
9551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9552$as_echo_n "checking if we can lock with hard links... " >&6; }
9553  hard_links=yes
9554  $RM conftest*
9555  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9556  touch conftest.a
9557  ln conftest.a conftest.b 2>&5 || hard_links=no
9558  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9560$as_echo "$hard_links" >&6; }
9561  if test "$hard_links" = no; then
9562    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9563$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9564    need_locks=warn
9565  fi
9566else
9567  need_locks=no
9568fi
9569
9570
9571
9572
9573
9574
9575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9576$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9577
9578  runpath_var=
9579  allow_undefined_flag=
9580  always_export_symbols=no
9581  archive_cmds=
9582  archive_expsym_cmds=
9583  compiler_needs_object=no
9584  enable_shared_with_static_runtimes=no
9585  export_dynamic_flag_spec=
9586  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9587  hardcode_automatic=no
9588  hardcode_direct=no
9589  hardcode_direct_absolute=no
9590  hardcode_libdir_flag_spec=
9591  hardcode_libdir_separator=
9592  hardcode_minus_L=no
9593  hardcode_shlibpath_var=unsupported
9594  inherit_rpath=no
9595  link_all_deplibs=unknown
9596  module_cmds=
9597  module_expsym_cmds=
9598  old_archive_from_new_cmds=
9599  old_archive_from_expsyms_cmds=
9600  thread_safe_flag_spec=
9601  whole_archive_flag_spec=
9602  # include_expsyms should be a list of space-separated symbols to be *always*
9603  # included in the symbol list
9604  include_expsyms=
9605  # exclude_expsyms can be an extended regexp of symbols to exclude
9606  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9607  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9608  # as well as any symbol that contains `d'.
9609  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9610  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9611  # platforms (ab)use it in PIC code, but their linkers get confused if
9612  # the symbol is explicitly referenced.  Since portable code cannot
9613  # rely on this symbol name, it's probably fine to never include it in
9614  # preloaded symbol tables.
9615  # Exclude shared library initialization/finalization symbols.
9616  extract_expsyms_cmds=
9617
9618  case $host_os in
9619  cygwin* | mingw* | pw32* | cegcc*)
9620    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9621    # When not using gcc, we currently assume that we are using
9622    # Microsoft Visual C++.
9623    if test "$GCC" != yes; then
9624      with_gnu_ld=no
9625    fi
9626    ;;
9627  interix*)
9628    # we just hope/assume this is gcc and not c89 (= MSVC++)
9629    with_gnu_ld=yes
9630    ;;
9631  openbsd*)
9632    with_gnu_ld=no
9633    ;;
9634  linux* | k*bsd*-gnu | gnu*)
9635    link_all_deplibs=no
9636    ;;
9637  esac
9638
9639  ld_shlibs=yes
9640
9641  # On some targets, GNU ld is compatible enough with the native linker
9642  # that we're better off using the native interface for both.
9643  lt_use_gnu_ld_interface=no
9644  if test "$with_gnu_ld" = yes; then
9645    case $host_os in
9646      aix*)
9647	# The AIX port of GNU ld has always aspired to compatibility
9648	# with the native linker.  However, as the warning in the GNU ld
9649	# block says, versions before 2.19.5* couldn't really create working
9650	# shared libraries, regardless of the interface used.
9651	case `$LD -v 2>&1` in
9652	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9653	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9654	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9655	  *)
9656	    lt_use_gnu_ld_interface=yes
9657	    ;;
9658	esac
9659	;;
9660      *)
9661	lt_use_gnu_ld_interface=yes
9662	;;
9663    esac
9664  fi
9665
9666  if test "$lt_use_gnu_ld_interface" = yes; then
9667    # If archive_cmds runs LD, not CC, wlarc should be empty
9668    wlarc='${wl}'
9669
9670    # Set some defaults for GNU ld with shared library support. These
9671    # are reset later if shared libraries are not supported. Putting them
9672    # here allows them to be overridden if necessary.
9673    runpath_var=LD_RUN_PATH
9674    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675    export_dynamic_flag_spec='${wl}--export-dynamic'
9676    # ancient GNU ld didn't support --whole-archive et. al.
9677    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9678      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9679    else
9680      whole_archive_flag_spec=
9681    fi
9682    supports_anon_versioning=no
9683    case `$LD -v 2>&1` in
9684      *GNU\ gold*) supports_anon_versioning=yes ;;
9685      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9686      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9687      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9688      *\ 2.11.*) ;; # other 2.11 versions
9689      *) supports_anon_versioning=yes ;;
9690    esac
9691
9692    # See if GNU ld supports shared libraries.
9693    case $host_os in
9694    aix[3-9]*)
9695      # On AIX/PPC, the GNU linker is very broken
9696      if test "$host_cpu" != ia64; then
9697	ld_shlibs=no
9698	cat <<_LT_EOF 1>&2
9699
9700*** Warning: the GNU linker, at least up to release 2.19, is reported
9701*** to be unable to reliably create shared libraries on AIX.
9702*** Therefore, libtool is disabling shared libraries support.  If you
9703*** really care for shared libraries, you may want to install binutils
9704*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9705*** You will then need to restart the configuration process.
9706
9707_LT_EOF
9708      fi
9709      ;;
9710
9711    amigaos*)
9712      case $host_cpu in
9713      powerpc)
9714            # see comment about AmigaOS4 .so support
9715            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9716            archive_expsym_cmds=''
9717        ;;
9718      m68k)
9719            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)'
9720            hardcode_libdir_flag_spec='-L$libdir'
9721            hardcode_minus_L=yes
9722        ;;
9723      esac
9724      ;;
9725
9726    beos*)
9727      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728	allow_undefined_flag=unsupported
9729	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9730	# support --undefined.  This deserves some investigation.  FIXME
9731	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732      else
9733	ld_shlibs=no
9734      fi
9735      ;;
9736
9737    cygwin* | mingw* | pw32* | cegcc*)
9738      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9739      # as there is no search path for DLLs.
9740      hardcode_libdir_flag_spec='-L$libdir'
9741      export_dynamic_flag_spec='${wl}--export-all-symbols'
9742      allow_undefined_flag=unsupported
9743      always_export_symbols=no
9744      enable_shared_with_static_runtimes=yes
9745      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'
9746      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9747
9748      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9749        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9750	# If the export-symbols file already is a .def file (1st line
9751	# is EXPORTS), use it as is; otherwise, prepend...
9752	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9753	  cp $export_symbols $output_objdir/$soname.def;
9754	else
9755	  echo EXPORTS > $output_objdir/$soname.def;
9756	  cat $export_symbols >> $output_objdir/$soname.def;
9757	fi~
9758	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9759      else
9760	ld_shlibs=no
9761      fi
9762      ;;
9763
9764    haiku*)
9765      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766      link_all_deplibs=yes
9767      ;;
9768
9769    interix[3-9]*)
9770      hardcode_direct=no
9771      hardcode_shlibpath_var=no
9772      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9773      export_dynamic_flag_spec='${wl}-E'
9774      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9775      # Instead, shared libraries are loaded at an image base (0x10000000 by
9776      # default) and relocated if they conflict, which is a slow very memory
9777      # consuming and fragmenting process.  To avoid this, we pick a random,
9778      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9779      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9780      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9781      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'
9782      ;;
9783
9784    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9785      tmp_diet=no
9786      if test "$host_os" = linux-dietlibc; then
9787	case $cc_basename in
9788	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9789	esac
9790      fi
9791      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9792	 && test "$tmp_diet" = no
9793      then
9794	tmp_addflag=' $pic_flag'
9795	tmp_sharedflag='-shared'
9796	case $cc_basename,$host_cpu in
9797        pgcc*)				# Portland Group C compiler
9798	  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'
9799	  tmp_addflag=' $pic_flag'
9800	  ;;
9801	pgf77* | pgf90* | pgf95* | pgfortran*)
9802					# Portland Group f77 and f90 compilers
9803	  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'
9804	  tmp_addflag=' $pic_flag -Mnomain' ;;
9805	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9806	  tmp_addflag=' -i_dynamic' ;;
9807	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9808	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9809	ifc* | ifort*)			# Intel Fortran compiler
9810	  tmp_addflag=' -nofor_main' ;;
9811	lf95*)				# Lahey Fortran 8.1
9812	  whole_archive_flag_spec=
9813	  tmp_sharedflag='--shared' ;;
9814	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9815	  tmp_sharedflag='-qmkshrobj'
9816	  tmp_addflag= ;;
9817	nvcc*)	# Cuda Compiler Driver 2.2
9818	  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'
9819	  compiler_needs_object=yes
9820	  ;;
9821	esac
9822	case `$CC -V 2>&1 | sed 5q` in
9823	*Sun\ C*)			# Sun C 5.9
9824	  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'
9825	  compiler_needs_object=yes
9826	  tmp_sharedflag='-G' ;;
9827	*Sun\ F*)			# Sun Fortran 8.3
9828	  tmp_sharedflag='-G' ;;
9829	esac
9830	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831
9832        if test "x$supports_anon_versioning" = xyes; then
9833          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9834	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9835	    echo "local: *; };" >> $output_objdir/$libname.ver~
9836	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9837        fi
9838
9839	case $cc_basename in
9840	xlf* | bgf* | bgxlf* | mpixlf*)
9841	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9842	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9843	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9845	  if test "x$supports_anon_versioning" = xyes; then
9846	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9847	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9848	      echo "local: *; };" >> $output_objdir/$libname.ver~
9849	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9850	  fi
9851	  ;;
9852	esac
9853      else
9854        ld_shlibs=no
9855      fi
9856      ;;
9857
9858    netbsd* | netbsdelf*-gnu)
9859      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9860	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9861	wlarc=
9862      else
9863	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9865      fi
9866      ;;
9867
9868    solaris*)
9869      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9870	ld_shlibs=no
9871	cat <<_LT_EOF 1>&2
9872
9873*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9874*** create shared libraries on Solaris systems.  Therefore, libtool
9875*** is disabling shared libraries support.  We urge you to upgrade GNU
9876*** binutils to release 2.9.1 or newer.  Another option is to modify
9877*** your PATH or compiler configuration so that the native linker is
9878*** used, and then restart.
9879
9880_LT_EOF
9881      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9882	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9884      else
9885	ld_shlibs=no
9886      fi
9887      ;;
9888
9889    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9890      case `$LD -v 2>&1` in
9891        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9892	ld_shlibs=no
9893	cat <<_LT_EOF 1>&2
9894
9895*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9896*** reliably create shared libraries on SCO systems.  Therefore, libtool
9897*** is disabling shared libraries support.  We urge you to upgrade GNU
9898*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9899*** your PATH or compiler configuration so that the native linker is
9900*** used, and then restart.
9901
9902_LT_EOF
9903	;;
9904	*)
9905	  # For security reasons, it is highly recommended that you always
9906	  # use absolute paths for naming shared libraries, and exclude the
9907	  # DT_RUNPATH tag from executables and libraries.  But doing so
9908	  # requires that you compile everything twice, which is a pain.
9909	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9913	  else
9914	    ld_shlibs=no
9915	  fi
9916	;;
9917      esac
9918      ;;
9919
9920    sunos4*)
9921      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9922      wlarc=
9923      hardcode_direct=yes
9924      hardcode_shlibpath_var=no
9925      ;;
9926
9927    *)
9928      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9929	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9931      else
9932	ld_shlibs=no
9933      fi
9934      ;;
9935    esac
9936
9937    if test "$ld_shlibs" = no; then
9938      runpath_var=
9939      hardcode_libdir_flag_spec=
9940      export_dynamic_flag_spec=
9941      whole_archive_flag_spec=
9942    fi
9943  else
9944    # PORTME fill in a description of your system's linker (not GNU ld)
9945    case $host_os in
9946    aix3*)
9947      allow_undefined_flag=unsupported
9948      always_export_symbols=yes
9949      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'
9950      # Note: this linker hardcodes the directories in LIBPATH if there
9951      # are no directories specified by -L.
9952      hardcode_minus_L=yes
9953      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9954	# Neither direct hardcoding nor static linking is supported with a
9955	# broken collect2.
9956	hardcode_direct=unsupported
9957      fi
9958      ;;
9959
9960    aix[4-9]*)
9961      if test "$host_cpu" = ia64; then
9962	# On IA64, the linker does run time linking by default, so we don't
9963	# have to do anything special.
9964	aix_use_runtimelinking=no
9965	exp_sym_flag='-Bexport'
9966	no_entry_flag=""
9967      else
9968	# If we're using GNU nm, then we don't want the "-C" option.
9969	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9970	# Also, AIX nm treats weak defined symbols like other global
9971	# defined symbols, whereas GNU nm marks them as "W".
9972	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9973	  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'
9974	else
9975	  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'
9976	fi
9977	aix_use_runtimelinking=no
9978
9979	# Test if we are trying to use run time linking or normal
9980	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9981	# need to do runtime linking.
9982	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9983	  for ld_flag in $LDFLAGS; do
9984	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9985	    aix_use_runtimelinking=yes
9986	    break
9987	  fi
9988	  done
9989	  ;;
9990	esac
9991
9992	exp_sym_flag='-bexport'
9993	no_entry_flag='-bnoentry'
9994      fi
9995
9996      # When large executables or shared objects are built, AIX ld can
9997      # have problems creating the table of contents.  If linking a library
9998      # or program results in "error TOC overflow" add -mminimal-toc to
9999      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10000      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10001
10002      archive_cmds=''
10003      hardcode_direct=yes
10004      hardcode_direct_absolute=yes
10005      hardcode_libdir_separator=':'
10006      link_all_deplibs=yes
10007      file_list_spec='${wl}-f,'
10008
10009      if test "$GCC" = yes; then
10010	case $host_os in aix4.[012]|aix4.[012].*)
10011	# We only want to do this on AIX 4.2 and lower, the check
10012	# below for broken collect2 doesn't work under 4.3+
10013	  collect2name=`${CC} -print-prog-name=collect2`
10014	  if test -f "$collect2name" &&
10015	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10016	  then
10017	  # We have reworked collect2
10018	  :
10019	  else
10020	  # We have old collect2
10021	  hardcode_direct=unsupported
10022	  # It fails to find uninstalled libraries when the uninstalled
10023	  # path is not listed in the libpath.  Setting hardcode_minus_L
10024	  # to unsupported forces relinking
10025	  hardcode_minus_L=yes
10026	  hardcode_libdir_flag_spec='-L$libdir'
10027	  hardcode_libdir_separator=
10028	  fi
10029	  ;;
10030	esac
10031	shared_flag='-shared'
10032	if test "$aix_use_runtimelinking" = yes; then
10033	  shared_flag="$shared_flag "'${wl}-G'
10034	fi
10035	link_all_deplibs=no
10036      else
10037	# not using gcc
10038	if test "$host_cpu" = ia64; then
10039	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10040	# chokes on -Wl,-G. The following line is correct:
10041	  shared_flag='-G'
10042	else
10043	  if test "$aix_use_runtimelinking" = yes; then
10044	    shared_flag='${wl}-G'
10045	  else
10046	    shared_flag='${wl}-bM:SRE'
10047	  fi
10048	fi
10049      fi
10050
10051      export_dynamic_flag_spec='${wl}-bexpall'
10052      # It seems that -bexpall does not export symbols beginning with
10053      # underscore (_), so it is better to generate a list of symbols to export.
10054      always_export_symbols=yes
10055      if test "$aix_use_runtimelinking" = yes; then
10056	# Warning - without using the other runtime loading flags (-brtl),
10057	# -berok will link without error, but may produce a broken library.
10058	allow_undefined_flag='-berok'
10059        # Determine the default libpath from the value encoded in an
10060        # empty executable.
10061        if test "${lt_cv_aix_libpath+set}" = set; then
10062  aix_libpath=$lt_cv_aix_libpath
10063else
10064  if ${lt_cv_aix_libpath_+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069
10070int
10071main ()
10072{
10073
10074  ;
10075  return 0;
10076}
10077_ACEOF
10078if ac_fn_c_try_link "$LINENO"; then :
10079
10080  lt_aix_libpath_sed='
10081      /Import File Strings/,/^$/ {
10082	  /^0/ {
10083	      s/^0  *\([^ ]*\) *$/\1/
10084	      p
10085	  }
10086      }'
10087  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10088  # Check for a 64-bit object if we didn't find anything.
10089  if test -z "$lt_cv_aix_libpath_"; then
10090    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10091  fi
10092fi
10093rm -f core conftest.err conftest.$ac_objext \
10094    conftest$ac_exeext conftest.$ac_ext
10095  if test -z "$lt_cv_aix_libpath_"; then
10096    lt_cv_aix_libpath_="/usr/lib:/lib"
10097  fi
10098
10099fi
10100
10101  aix_libpath=$lt_cv_aix_libpath_
10102fi
10103
10104        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10105        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"
10106      else
10107	if test "$host_cpu" = ia64; then
10108	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10109	  allow_undefined_flag="-z nodefs"
10110	  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"
10111	else
10112	 # Determine the default libpath from the value encoded in an
10113	 # empty executable.
10114	 if test "${lt_cv_aix_libpath+set}" = set; then
10115  aix_libpath=$lt_cv_aix_libpath
10116else
10117  if ${lt_cv_aix_libpath_+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122
10123int
10124main ()
10125{
10126
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then :
10132
10133  lt_aix_libpath_sed='
10134      /Import File Strings/,/^$/ {
10135	  /^0/ {
10136	      s/^0  *\([^ ]*\) *$/\1/
10137	      p
10138	  }
10139      }'
10140  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10141  # Check for a 64-bit object if we didn't find anything.
10142  if test -z "$lt_cv_aix_libpath_"; then
10143    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10144  fi
10145fi
10146rm -f core conftest.err conftest.$ac_objext \
10147    conftest$ac_exeext conftest.$ac_ext
10148  if test -z "$lt_cv_aix_libpath_"; then
10149    lt_cv_aix_libpath_="/usr/lib:/lib"
10150  fi
10151
10152fi
10153
10154  aix_libpath=$lt_cv_aix_libpath_
10155fi
10156
10157	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10158	  # Warning - without using the other run time loading flags,
10159	  # -berok will link without error, but may produce a broken library.
10160	  no_undefined_flag=' ${wl}-bernotok'
10161	  allow_undefined_flag=' ${wl}-berok'
10162	  if test "$with_gnu_ld" = yes; then
10163	    # We only use this code for GNU lds that support --whole-archive.
10164	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10165	  else
10166	    # Exported symbols can be pulled into shared objects from archives
10167	    whole_archive_flag_spec='$convenience'
10168	  fi
10169	  archive_cmds_need_lc=yes
10170	  # This is similar to how AIX traditionally builds its shared libraries.
10171	  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'
10172	fi
10173      fi
10174      ;;
10175
10176    amigaos*)
10177      case $host_cpu in
10178      powerpc)
10179            # see comment about AmigaOS4 .so support
10180            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181            archive_expsym_cmds=''
10182        ;;
10183      m68k)
10184            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)'
10185            hardcode_libdir_flag_spec='-L$libdir'
10186            hardcode_minus_L=yes
10187        ;;
10188      esac
10189      ;;
10190
10191    bsdi[45]*)
10192      export_dynamic_flag_spec=-rdynamic
10193      ;;
10194
10195    cygwin* | mingw* | pw32* | cegcc*)
10196      # When not using gcc, we currently assume that we are using
10197      # Microsoft Visual C++.
10198      # hardcode_libdir_flag_spec is actually meaningless, as there is
10199      # no search path for DLLs.
10200      case $cc_basename in
10201      cl*)
10202	# Native MSVC
10203	hardcode_libdir_flag_spec=' '
10204	allow_undefined_flag=unsupported
10205	always_export_symbols=yes
10206	file_list_spec='@'
10207	# Tell ltmain to make .lib files, not .a files.
10208	libext=lib
10209	# Tell ltmain to make .dll files, not .so files.
10210	shrext_cmds=".dll"
10211	# FIXME: Setting linknames here is a bad hack.
10212	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10213	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10214	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10215	  else
10216	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10217	  fi~
10218	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10219	  linknames='
10220	# The linker will not automatically build a static lib if we build a DLL.
10221	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10222	enable_shared_with_static_runtimes=yes
10223	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10224	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10225	# Don't use ranlib
10226	old_postinstall_cmds='chmod 644 $oldlib'
10227	postlink_cmds='lt_outputfile="@OUTPUT@"~
10228	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10229	  case $lt_outputfile in
10230	    *.exe|*.EXE) ;;
10231	    *)
10232	      lt_outputfile="$lt_outputfile.exe"
10233	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10234	      ;;
10235	  esac~
10236	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10237	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10238	    $RM "$lt_outputfile.manifest";
10239	  fi'
10240	;;
10241      *)
10242	# Assume MSVC wrapper
10243	hardcode_libdir_flag_spec=' '
10244	allow_undefined_flag=unsupported
10245	# Tell ltmain to make .lib files, not .a files.
10246	libext=lib
10247	# Tell ltmain to make .dll files, not .so files.
10248	shrext_cmds=".dll"
10249	# FIXME: Setting linknames here is a bad hack.
10250	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10251	# The linker will automatically build a .lib file if we build a DLL.
10252	old_archive_from_new_cmds='true'
10253	# FIXME: Should let the user specify the lib program.
10254	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10255	enable_shared_with_static_runtimes=yes
10256	;;
10257      esac
10258      ;;
10259
10260    darwin* | rhapsody*)
10261
10262
10263  archive_cmds_need_lc=no
10264  hardcode_direct=no
10265  hardcode_automatic=yes
10266  hardcode_shlibpath_var=unsupported
10267  if test "$lt_cv_ld_force_load" = "yes"; then
10268    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\"`'
10269
10270  else
10271    whole_archive_flag_spec=''
10272  fi
10273  link_all_deplibs=yes
10274  allow_undefined_flag="$_lt_dar_allow_undefined"
10275  case $cc_basename in
10276     ifort*) _lt_dar_can_shared=yes ;;
10277     *) _lt_dar_can_shared=$GCC ;;
10278  esac
10279  if test "$_lt_dar_can_shared" = "yes"; then
10280    output_verbose_link_cmd=func_echo_all
10281    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10282    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10283    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}"
10284    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}"
10285
10286  else
10287  ld_shlibs=no
10288  fi
10289
10290      ;;
10291
10292    dgux*)
10293      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294      hardcode_libdir_flag_spec='-L$libdir'
10295      hardcode_shlibpath_var=no
10296      ;;
10297
10298    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10299    # support.  Future versions do this automatically, but an explicit c++rt0.o
10300    # does not break anything, and helps significantly (at the cost of a little
10301    # extra space).
10302    freebsd2.2*)
10303      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10304      hardcode_libdir_flag_spec='-R$libdir'
10305      hardcode_direct=yes
10306      hardcode_shlibpath_var=no
10307      ;;
10308
10309    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10310    freebsd2.*)
10311      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10312      hardcode_direct=yes
10313      hardcode_minus_L=yes
10314      hardcode_shlibpath_var=no
10315      ;;
10316
10317    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10318    freebsd* | dragonfly*)
10319      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10320      hardcode_libdir_flag_spec='-R$libdir'
10321      hardcode_direct=yes
10322      hardcode_shlibpath_var=no
10323      ;;
10324
10325    hpux9*)
10326      if test "$GCC" = yes; then
10327	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'
10328      else
10329	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'
10330      fi
10331      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10332      hardcode_libdir_separator=:
10333      hardcode_direct=yes
10334
10335      # hardcode_minus_L: Not really in the search PATH,
10336      # but as the default location of the library.
10337      hardcode_minus_L=yes
10338      export_dynamic_flag_spec='${wl}-E'
10339      ;;
10340
10341    hpux10*)
10342      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10343	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10344      else
10345	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10346      fi
10347      if test "$with_gnu_ld" = no; then
10348	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10349	hardcode_libdir_separator=:
10350	hardcode_direct=yes
10351	hardcode_direct_absolute=yes
10352	export_dynamic_flag_spec='${wl}-E'
10353	# hardcode_minus_L: Not really in the search PATH,
10354	# but as the default location of the library.
10355	hardcode_minus_L=yes
10356      fi
10357      ;;
10358
10359    hpux11*)
10360      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10361	case $host_cpu in
10362	hppa*64*)
10363	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10364	  ;;
10365	ia64*)
10366	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10367	  ;;
10368	*)
10369	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10370	  ;;
10371	esac
10372      else
10373	case $host_cpu in
10374	hppa*64*)
10375	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10376	  ;;
10377	ia64*)
10378	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10379	  ;;
10380	*)
10381
10382	  # Older versions of the 11.00 compiler do not understand -b yet
10383	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10384	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10385$as_echo_n "checking if $CC understands -b... " >&6; }
10386if ${lt_cv_prog_compiler__b+:} false; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  lt_cv_prog_compiler__b=no
10390   save_LDFLAGS="$LDFLAGS"
10391   LDFLAGS="$LDFLAGS -b"
10392   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10393   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10394     # The linker can only warn and ignore the option if not recognized
10395     # So say no if there are warnings
10396     if test -s conftest.err; then
10397       # Append any errors to the config.log.
10398       cat conftest.err 1>&5
10399       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10400       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10401       if diff conftest.exp conftest.er2 >/dev/null; then
10402         lt_cv_prog_compiler__b=yes
10403       fi
10404     else
10405       lt_cv_prog_compiler__b=yes
10406     fi
10407   fi
10408   $RM -r conftest*
10409   LDFLAGS="$save_LDFLAGS"
10410
10411fi
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10413$as_echo "$lt_cv_prog_compiler__b" >&6; }
10414
10415if test x"$lt_cv_prog_compiler__b" = xyes; then
10416    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417else
10418    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10419fi
10420
10421	  ;;
10422	esac
10423      fi
10424      if test "$with_gnu_ld" = no; then
10425	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10426	hardcode_libdir_separator=:
10427
10428	case $host_cpu in
10429	hppa*64*|ia64*)
10430	  hardcode_direct=no
10431	  hardcode_shlibpath_var=no
10432	  ;;
10433	*)
10434	  hardcode_direct=yes
10435	  hardcode_direct_absolute=yes
10436	  export_dynamic_flag_spec='${wl}-E'
10437
10438	  # hardcode_minus_L: Not really in the search PATH,
10439	  # but as the default location of the library.
10440	  hardcode_minus_L=yes
10441	  ;;
10442	esac
10443      fi
10444      ;;
10445
10446    irix5* | irix6* | nonstopux*)
10447      if test "$GCC" = yes; then
10448	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'
10449	# Try to use the -exported_symbol ld option, if it does not
10450	# work, assume that -exports_file does not work either and
10451	# implicitly export all symbols.
10452	# This should be the same for all languages, so no per-tag cache variable.
10453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10454$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10455if ${lt_cv_irix_exported_symbol+:} false; then :
10456  $as_echo_n "(cached) " >&6
10457else
10458  save_LDFLAGS="$LDFLAGS"
10459	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10460	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462int foo (void) { return 0; }
10463_ACEOF
10464if ac_fn_c_try_link "$LINENO"; then :
10465  lt_cv_irix_exported_symbol=yes
10466else
10467  lt_cv_irix_exported_symbol=no
10468fi
10469rm -f core conftest.err conftest.$ac_objext \
10470    conftest$ac_exeext conftest.$ac_ext
10471           LDFLAGS="$save_LDFLAGS"
10472fi
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10474$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10475	if test "$lt_cv_irix_exported_symbol" = yes; then
10476          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'
10477	fi
10478      else
10479	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'
10480	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'
10481      fi
10482      archive_cmds_need_lc='no'
10483      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10484      hardcode_libdir_separator=:
10485      inherit_rpath=yes
10486      link_all_deplibs=yes
10487      ;;
10488
10489    netbsd* | netbsdelf*-gnu)
10490      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10491	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10492      else
10493	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10494      fi
10495      hardcode_libdir_flag_spec='-R$libdir'
10496      hardcode_direct=yes
10497      hardcode_shlibpath_var=no
10498      ;;
10499
10500    newsos6)
10501      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10502      hardcode_direct=yes
10503      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10504      hardcode_libdir_separator=:
10505      hardcode_shlibpath_var=no
10506      ;;
10507
10508    *nto* | *qnx*)
10509      ;;
10510
10511    openbsd*)
10512      if test -f /usr/libexec/ld.so; then
10513	hardcode_direct=yes
10514	hardcode_shlibpath_var=no
10515	hardcode_direct_absolute=yes
10516	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10517	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10518	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10519	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10520	  export_dynamic_flag_spec='${wl}-E'
10521	else
10522	  case $host_os in
10523	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10524	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10525	     hardcode_libdir_flag_spec='-R$libdir'
10526	     ;;
10527	   *)
10528	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10529	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10530	     ;;
10531	  esac
10532	fi
10533      else
10534	ld_shlibs=no
10535      fi
10536      ;;
10537
10538    os2*)
10539      hardcode_libdir_flag_spec='-L$libdir'
10540      hardcode_minus_L=yes
10541      allow_undefined_flag=unsupported
10542      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'
10543      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10544      ;;
10545
10546    osf3*)
10547      if test "$GCC" = yes; then
10548	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10549	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'
10550      else
10551	allow_undefined_flag=' -expect_unresolved \*'
10552	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'
10553      fi
10554      archive_cmds_need_lc='no'
10555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556      hardcode_libdir_separator=:
10557      ;;
10558
10559    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10560      if test "$GCC" = yes; then
10561	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10562	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'
10563	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10564      else
10565	allow_undefined_flag=' -expect_unresolved \*'
10566	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'
10567	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~
10568	$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'
10569
10570	# Both c and cxx compiler support -rpath directly
10571	hardcode_libdir_flag_spec='-rpath $libdir'
10572      fi
10573      archive_cmds_need_lc='no'
10574      hardcode_libdir_separator=:
10575      ;;
10576
10577    solaris*)
10578      no_undefined_flag=' -z defs'
10579      if test "$GCC" = yes; then
10580	wlarc='${wl}'
10581	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10582	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10583	  $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'
10584      else
10585	case `$CC -V 2>&1` in
10586	*"Compilers 5.0"*)
10587	  wlarc=''
10588	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10590	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10591	  ;;
10592	*)
10593	  wlarc='${wl}'
10594	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10595	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10596	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10597	  ;;
10598	esac
10599      fi
10600      hardcode_libdir_flag_spec='-R$libdir'
10601      hardcode_shlibpath_var=no
10602      case $host_os in
10603      solaris2.[0-5] | solaris2.[0-5].*) ;;
10604      *)
10605	# The compiler driver will combine and reorder linker options,
10606	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10607	# but is careful enough not to reorder.
10608	# Supported since Solaris 2.6 (maybe 2.5.1?)
10609	if test "$GCC" = yes; then
10610	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10611	else
10612	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10613	fi
10614	;;
10615      esac
10616      link_all_deplibs=yes
10617      ;;
10618
10619    sunos4*)
10620      if test "x$host_vendor" = xsequent; then
10621	# Use $CC to link under sequent, because it throws in some extra .o
10622	# files that make .init and .fini sections work.
10623	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10624      else
10625	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10626      fi
10627      hardcode_libdir_flag_spec='-L$libdir'
10628      hardcode_direct=yes
10629      hardcode_minus_L=yes
10630      hardcode_shlibpath_var=no
10631      ;;
10632
10633    sysv4)
10634      case $host_vendor in
10635	sni)
10636	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637	  hardcode_direct=yes # is this really true???
10638	;;
10639	siemens)
10640	  ## LD is ld it makes a PLAMLIB
10641	  ## CC just makes a GrossModule.
10642	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10643	  reload_cmds='$CC -r -o $output$reload_objs'
10644	  hardcode_direct=no
10645        ;;
10646	motorola)
10647	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10649	;;
10650      esac
10651      runpath_var='LD_RUN_PATH'
10652      hardcode_shlibpath_var=no
10653      ;;
10654
10655    sysv4.3*)
10656      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10657      hardcode_shlibpath_var=no
10658      export_dynamic_flag_spec='-Bexport'
10659      ;;
10660
10661    sysv4*MP*)
10662      if test -d /usr/nec; then
10663	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10664	hardcode_shlibpath_var=no
10665	runpath_var=LD_RUN_PATH
10666	hardcode_runpath_var=yes
10667	ld_shlibs=yes
10668      fi
10669      ;;
10670
10671    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10672      no_undefined_flag='${wl}-z,text'
10673      archive_cmds_need_lc=no
10674      hardcode_shlibpath_var=no
10675      runpath_var='LD_RUN_PATH'
10676
10677      if test "$GCC" = yes; then
10678	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680      else
10681	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683      fi
10684      ;;
10685
10686    sysv5* | sco3.2v5* | sco5v6*)
10687      # Note: We can NOT use -z defs as we might desire, because we do not
10688      # link with -lc, and that would cause any symbols used from libc to
10689      # always be unresolved, which means just about no library would
10690      # ever link correctly.  If we're not using GNU ld we use -z text
10691      # though, which does catch some bad symbols but isn't as heavy-handed
10692      # as -z defs.
10693      no_undefined_flag='${wl}-z,text'
10694      allow_undefined_flag='${wl}-z,nodefs'
10695      archive_cmds_need_lc=no
10696      hardcode_shlibpath_var=no
10697      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10698      hardcode_libdir_separator=':'
10699      link_all_deplibs=yes
10700      export_dynamic_flag_spec='${wl}-Bexport'
10701      runpath_var='LD_RUN_PATH'
10702
10703      if test "$GCC" = yes; then
10704	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706      else
10707	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709      fi
10710      ;;
10711
10712    uts4*)
10713      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714      hardcode_libdir_flag_spec='-L$libdir'
10715      hardcode_shlibpath_var=no
10716      ;;
10717
10718    *)
10719      ld_shlibs=no
10720      ;;
10721    esac
10722
10723    if test x$host_vendor = xsni; then
10724      case $host in
10725      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10726	export_dynamic_flag_spec='${wl}-Blargedynsym'
10727	;;
10728      esac
10729    fi
10730  fi
10731
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10733$as_echo "$ld_shlibs" >&6; }
10734test "$ld_shlibs" = no && can_build_shared=no
10735
10736with_gnu_ld=$with_gnu_ld
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752#
10753# Do we need to explicitly link libc?
10754#
10755case "x$archive_cmds_need_lc" in
10756x|xyes)
10757  # Assume -lc should be added
10758  archive_cmds_need_lc=yes
10759
10760  if test "$enable_shared" = yes && test "$GCC" = yes; then
10761    case $archive_cmds in
10762    *'~'*)
10763      # FIXME: we may have to deal with multi-command sequences.
10764      ;;
10765    '$CC '*)
10766      # Test whether the compiler implicitly links with -lc since on some
10767      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10768      # to ld, don't add -lc before -lgcc.
10769      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10770$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10771if ${lt_cv_archive_cmds_need_lc+:} false; then :
10772  $as_echo_n "(cached) " >&6
10773else
10774  $RM conftest*
10775	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10776
10777	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10778  (eval $ac_compile) 2>&5
10779  ac_status=$?
10780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781  test $ac_status = 0; } 2>conftest.err; then
10782	  soname=conftest
10783	  lib=conftest
10784	  libobjs=conftest.$ac_objext
10785	  deplibs=
10786	  wl=$lt_prog_compiler_wl
10787	  pic_flag=$lt_prog_compiler_pic
10788	  compiler_flags=-v
10789	  linker_flags=-v
10790	  verstring=
10791	  output_objdir=.
10792	  libname=conftest
10793	  lt_save_allow_undefined_flag=$allow_undefined_flag
10794	  allow_undefined_flag=
10795	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10796  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10797  ac_status=$?
10798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10799  test $ac_status = 0; }
10800	  then
10801	    lt_cv_archive_cmds_need_lc=no
10802	  else
10803	    lt_cv_archive_cmds_need_lc=yes
10804	  fi
10805	  allow_undefined_flag=$lt_save_allow_undefined_flag
10806	else
10807	  cat conftest.err 1>&5
10808	fi
10809	$RM conftest*
10810
10811fi
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10813$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10814      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10815      ;;
10816    esac
10817  fi
10818  ;;
10819esac
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10973$as_echo_n "checking dynamic linker characteristics... " >&6; }
10974
10975if test "$GCC" = yes; then
10976  case $host_os in
10977    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10978    *) lt_awk_arg="/^libraries:/" ;;
10979  esac
10980  case $host_os in
10981    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10982    *) lt_sed_strip_eq="s,=/,/,g" ;;
10983  esac
10984  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10985  case $lt_search_path_spec in
10986  *\;*)
10987    # if the path contains ";" then we assume it to be the separator
10988    # otherwise default to the standard path separator (i.e. ":") - it is
10989    # assumed that no part of a normal pathname contains ";" but that should
10990    # okay in the real world where ";" in dirpaths is itself problematic.
10991    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10992    ;;
10993  *)
10994    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10995    ;;
10996  esac
10997  # Ok, now we have the path, separated by spaces, we can step through it
10998  # and add multilib dir if necessary.
10999  lt_tmp_lt_search_path_spec=
11000  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11001  for lt_sys_path in $lt_search_path_spec; do
11002    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11003      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11004    else
11005      test -d "$lt_sys_path" && \
11006	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11007    fi
11008  done
11009  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11010BEGIN {RS=" "; FS="/|\n";} {
11011  lt_foo="";
11012  lt_count=0;
11013  for (lt_i = NF; lt_i > 0; lt_i--) {
11014    if ($lt_i != "" && $lt_i != ".") {
11015      if ($lt_i == "..") {
11016        lt_count++;
11017      } else {
11018        if (lt_count == 0) {
11019          lt_foo="/" $lt_i lt_foo;
11020        } else {
11021          lt_count--;
11022        }
11023      }
11024    }
11025  }
11026  if (lt_foo != "") { lt_freq[lt_foo]++; }
11027  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11028}'`
11029  # AWK program above erroneously prepends '/' to C:/dos/paths
11030  # for these hosts.
11031  case $host_os in
11032    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11033      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11034  esac
11035  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11036else
11037  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11038fi
11039library_names_spec=
11040libname_spec='lib$name'
11041soname_spec=
11042shrext_cmds=".so"
11043postinstall_cmds=
11044postuninstall_cmds=
11045finish_cmds=
11046finish_eval=
11047shlibpath_var=
11048shlibpath_overrides_runpath=unknown
11049version_type=none
11050dynamic_linker="$host_os ld.so"
11051sys_lib_dlsearch_path_spec="/lib /usr/lib"
11052need_lib_prefix=unknown
11053hardcode_into_libs=no
11054
11055# when you set need_version to no, make sure it does not cause -set_version
11056# flags to be left without arguments
11057need_version=unknown
11058
11059case $host_os in
11060aix3*)
11061  version_type=linux # correct to gnu/linux during the next big refactor
11062  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11063  shlibpath_var=LIBPATH
11064
11065  # AIX 3 has no versioning support, so we append a major version to the name.
11066  soname_spec='${libname}${release}${shared_ext}$major'
11067  ;;
11068
11069aix[4-9]*)
11070  version_type=linux # correct to gnu/linux during the next big refactor
11071  need_lib_prefix=no
11072  need_version=no
11073  hardcode_into_libs=yes
11074  if test "$host_cpu" = ia64; then
11075    # AIX 5 supports IA64
11076    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11077    shlibpath_var=LD_LIBRARY_PATH
11078  else
11079    # With GCC up to 2.95.x, collect2 would create an import file
11080    # for dependence libraries.  The import file would start with
11081    # the line `#! .'.  This would cause the generated library to
11082    # depend on `.', always an invalid library.  This was fixed in
11083    # development snapshots of GCC prior to 3.0.
11084    case $host_os in
11085      aix4 | aix4.[01] | aix4.[01].*)
11086      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11087	   echo ' yes '
11088	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11089	:
11090      else
11091	can_build_shared=no
11092      fi
11093      ;;
11094    esac
11095    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11096    # soname into executable. Probably we can add versioning support to
11097    # collect2, so additional links can be useful in future.
11098    if test "$aix_use_runtimelinking" = yes; then
11099      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11100      # instead of lib<name>.a to let people know that these are not
11101      # typical AIX shared libraries.
11102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103    else
11104      # We preserve .a as extension for shared libraries through AIX4.2
11105      # and later when we are not doing run time linking.
11106      library_names_spec='${libname}${release}.a $libname.a'
11107      soname_spec='${libname}${release}${shared_ext}$major'
11108    fi
11109    shlibpath_var=LIBPATH
11110  fi
11111  ;;
11112
11113amigaos*)
11114  case $host_cpu in
11115  powerpc)
11116    # Since July 2007 AmigaOS4 officially supports .so libraries.
11117    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119    ;;
11120  m68k)
11121    library_names_spec='$libname.ixlibrary $libname.a'
11122    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11123    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'
11124    ;;
11125  esac
11126  ;;
11127
11128beos*)
11129  library_names_spec='${libname}${shared_ext}'
11130  dynamic_linker="$host_os ld.so"
11131  shlibpath_var=LIBRARY_PATH
11132  ;;
11133
11134bsdi[45]*)
11135  version_type=linux # correct to gnu/linux during the next big refactor
11136  need_version=no
11137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138  soname_spec='${libname}${release}${shared_ext}$major'
11139  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11140  shlibpath_var=LD_LIBRARY_PATH
11141  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11142  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11143  # the default ld.so.conf also contains /usr/contrib/lib and
11144  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11145  # libtool to hard-code these into programs
11146  ;;
11147
11148cygwin* | mingw* | pw32* | cegcc*)
11149  version_type=windows
11150  shrext_cmds=".dll"
11151  need_version=no
11152  need_lib_prefix=no
11153
11154  case $GCC,$cc_basename in
11155  yes,*)
11156    # gcc
11157    library_names_spec='$libname.dll.a'
11158    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11159    postinstall_cmds='base_file=`basename \${file}`~
11160      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11161      dldir=$destdir/`dirname \$dlpath`~
11162      test -d \$dldir || mkdir -p \$dldir~
11163      $install_prog $dir/$dlname \$dldir/$dlname~
11164      chmod a+x \$dldir/$dlname~
11165      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11166        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11167      fi'
11168    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11169      dlpath=$dir/\$dldll~
11170       $RM \$dlpath'
11171    shlibpath_overrides_runpath=yes
11172
11173    case $host_os in
11174    cygwin*)
11175      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11176      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11177
11178      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11179      ;;
11180    mingw* | cegcc*)
11181      # MinGW DLLs use traditional 'lib' prefix
11182      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11183      ;;
11184    pw32*)
11185      # pw32 DLLs use 'pw' prefix rather than 'lib'
11186      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11187      ;;
11188    esac
11189    dynamic_linker='Win32 ld.exe'
11190    ;;
11191
11192  *,cl*)
11193    # Native MSVC
11194    libname_spec='$name'
11195    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11196    library_names_spec='${libname}.dll.lib'
11197
11198    case $build_os in
11199    mingw*)
11200      sys_lib_search_path_spec=
11201      lt_save_ifs=$IFS
11202      IFS=';'
11203      for lt_path in $LIB
11204      do
11205        IFS=$lt_save_ifs
11206        # Let DOS variable expansion print the short 8.3 style file name.
11207        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11208        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11209      done
11210      IFS=$lt_save_ifs
11211      # Convert to MSYS style.
11212      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11213      ;;
11214    cygwin*)
11215      # Convert to unix form, then to dos form, then back to unix form
11216      # but this time dos style (no spaces!) so that the unix form looks
11217      # like /cygdrive/c/PROGRA~1:/cygdr...
11218      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11219      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11220      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11221      ;;
11222    *)
11223      sys_lib_search_path_spec="$LIB"
11224      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11225        # It is most probably a Windows format PATH.
11226        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11227      else
11228        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11229      fi
11230      # FIXME: find the short name or the path components, as spaces are
11231      # common. (e.g. "Program Files" -> "PROGRA~1")
11232      ;;
11233    esac
11234
11235    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11236    postinstall_cmds='base_file=`basename \${file}`~
11237      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11238      dldir=$destdir/`dirname \$dlpath`~
11239      test -d \$dldir || mkdir -p \$dldir~
11240      $install_prog $dir/$dlname \$dldir/$dlname'
11241    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11242      dlpath=$dir/\$dldll~
11243       $RM \$dlpath'
11244    shlibpath_overrides_runpath=yes
11245    dynamic_linker='Win32 link.exe'
11246    ;;
11247
11248  *)
11249    # Assume MSVC wrapper
11250    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11251    dynamic_linker='Win32 ld.exe'
11252    ;;
11253  esac
11254  # FIXME: first we should search . and the directory the executable is in
11255  shlibpath_var=PATH
11256  ;;
11257
11258darwin* | rhapsody*)
11259  dynamic_linker="$host_os dyld"
11260  version_type=darwin
11261  need_lib_prefix=no
11262  need_version=no
11263  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11264  soname_spec='${libname}${release}${major}$shared_ext'
11265  shlibpath_overrides_runpath=yes
11266  shlibpath_var=DYLD_LIBRARY_PATH
11267  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11268
11269  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11270  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11271  ;;
11272
11273dgux*)
11274  version_type=linux # correct to gnu/linux during the next big refactor
11275  need_lib_prefix=no
11276  need_version=no
11277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11278  soname_spec='${libname}${release}${shared_ext}$major'
11279  shlibpath_var=LD_LIBRARY_PATH
11280  ;;
11281
11282freebsd* | dragonfly*)
11283  # DragonFly does not have aout.  When/if they implement a new
11284  # versioning mechanism, adjust this.
11285  if test -x /usr/bin/objformat; then
11286    objformat=`/usr/bin/objformat`
11287  else
11288    case $host_os in
11289    freebsd[23].*) objformat=aout ;;
11290    *) objformat=elf ;;
11291    esac
11292  fi
11293  version_type=freebsd-$objformat
11294  case $version_type in
11295    freebsd-elf*)
11296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297      need_version=no
11298      need_lib_prefix=no
11299      ;;
11300    freebsd-*)
11301      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11302      need_version=yes
11303      ;;
11304  esac
11305  shlibpath_var=LD_LIBRARY_PATH
11306  case $host_os in
11307  freebsd2.*)
11308    shlibpath_overrides_runpath=yes
11309    ;;
11310  freebsd3.[01]* | freebsdelf3.[01]*)
11311    shlibpath_overrides_runpath=yes
11312    hardcode_into_libs=yes
11313    ;;
11314  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11315  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11316    shlibpath_overrides_runpath=no
11317    hardcode_into_libs=yes
11318    ;;
11319  *) # from 4.6 on, and DragonFly
11320    shlibpath_overrides_runpath=yes
11321    hardcode_into_libs=yes
11322    ;;
11323  esac
11324  ;;
11325
11326haiku*)
11327  version_type=linux # correct to gnu/linux during the next big refactor
11328  need_lib_prefix=no
11329  need_version=no
11330  dynamic_linker="$host_os runtime_loader"
11331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11332  soname_spec='${libname}${release}${shared_ext}$major'
11333  shlibpath_var=LIBRARY_PATH
11334  shlibpath_overrides_runpath=yes
11335  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11336  hardcode_into_libs=yes
11337  ;;
11338
11339hpux9* | hpux10* | hpux11*)
11340  # Give a soname corresponding to the major version so that dld.sl refuses to
11341  # link against other versions.
11342  version_type=sunos
11343  need_lib_prefix=no
11344  need_version=no
11345  case $host_cpu in
11346  ia64*)
11347    shrext_cmds='.so'
11348    hardcode_into_libs=yes
11349    dynamic_linker="$host_os dld.so"
11350    shlibpath_var=LD_LIBRARY_PATH
11351    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353    soname_spec='${libname}${release}${shared_ext}$major'
11354    if test "X$HPUX_IA64_MODE" = X32; then
11355      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356    else
11357      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358    fi
11359    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360    ;;
11361  hppa*64*)
11362    shrext_cmds='.sl'
11363    hardcode_into_libs=yes
11364    dynamic_linker="$host_os dld.sl"
11365    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368    soname_spec='${libname}${release}${shared_ext}$major'
11369    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371    ;;
11372  *)
11373    shrext_cmds='.sl'
11374    dynamic_linker="$host_os dld.sl"
11375    shlibpath_var=SHLIB_PATH
11376    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378    soname_spec='${libname}${release}${shared_ext}$major'
11379    ;;
11380  esac
11381  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11382  postinstall_cmds='chmod 555 $lib'
11383  # or fails outright, so override atomically:
11384  install_override_mode=555
11385  ;;
11386
11387interix[3-9]*)
11388  version_type=linux # correct to gnu/linux during the next big refactor
11389  need_lib_prefix=no
11390  need_version=no
11391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11392  soname_spec='${libname}${release}${shared_ext}$major'
11393  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11394  shlibpath_var=LD_LIBRARY_PATH
11395  shlibpath_overrides_runpath=no
11396  hardcode_into_libs=yes
11397  ;;
11398
11399irix5* | irix6* | nonstopux*)
11400  case $host_os in
11401    nonstopux*) version_type=nonstopux ;;
11402    *)
11403	if test "$lt_cv_prog_gnu_ld" = yes; then
11404		version_type=linux # correct to gnu/linux during the next big refactor
11405	else
11406		version_type=irix
11407	fi ;;
11408  esac
11409  need_lib_prefix=no
11410  need_version=no
11411  soname_spec='${libname}${release}${shared_ext}$major'
11412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11413  case $host_os in
11414  irix5* | nonstopux*)
11415    libsuff= shlibsuff=
11416    ;;
11417  *)
11418    case $LD in # libtool.m4 will add one of these switches to LD
11419    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11420      libsuff= shlibsuff= libmagic=32-bit;;
11421    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11422      libsuff=32 shlibsuff=N32 libmagic=N32;;
11423    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11424      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11425    *) libsuff= shlibsuff= libmagic=never-match;;
11426    esac
11427    ;;
11428  esac
11429  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11430  shlibpath_overrides_runpath=no
11431  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11432  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11433  hardcode_into_libs=yes
11434  ;;
11435
11436# No shared lib support for Linux oldld, aout, or coff.
11437linux*oldld* | linux*aout* | linux*coff*)
11438  dynamic_linker=no
11439  ;;
11440
11441# This must be glibc/ELF.
11442linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11443  version_type=linux # correct to gnu/linux during the next big refactor
11444  need_lib_prefix=no
11445  need_version=no
11446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447  soname_spec='${libname}${release}${shared_ext}$major'
11448  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11449  shlibpath_var=LD_LIBRARY_PATH
11450  shlibpath_overrides_runpath=no
11451
11452  # Some binutils ld are patched to set DT_RUNPATH
11453  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11454  $as_echo_n "(cached) " >&6
11455else
11456  lt_cv_shlibpath_overrides_runpath=no
11457    save_LDFLAGS=$LDFLAGS
11458    save_libdir=$libdir
11459    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11460	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11461    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h.  */
11463
11464int
11465main ()
11466{
11467
11468  ;
11469  return 0;
11470}
11471_ACEOF
11472if ac_fn_c_try_link "$LINENO"; then :
11473  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11474  lt_cv_shlibpath_overrides_runpath=yes
11475fi
11476fi
11477rm -f core conftest.err conftest.$ac_objext \
11478    conftest$ac_exeext conftest.$ac_ext
11479    LDFLAGS=$save_LDFLAGS
11480    libdir=$save_libdir
11481
11482fi
11483
11484  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11485
11486  # This implies no fast_install, which is unacceptable.
11487  # Some rework will be needed to allow for fast_install
11488  # before this can be enabled.
11489  hardcode_into_libs=yes
11490
11491  # Append ld.so.conf contents to the search path
11492  if test -f /etc/ld.so.conf; then
11493    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' ' '`
11494    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11495  fi
11496
11497  # We used to test for /lib/ld.so.1 and disable shared libraries on
11498  # powerpc, because MkLinux only supported shared libraries with the
11499  # GNU dynamic linker.  Since this was broken with cross compilers,
11500  # most powerpc-linux boxes support dynamic linking these days and
11501  # people can always --disable-shared, the test was removed, and we
11502  # assume the GNU/Linux dynamic linker is in use.
11503  dynamic_linker='GNU/Linux ld.so'
11504  ;;
11505
11506netbsdelf*-gnu)
11507  version_type=linux
11508  need_lib_prefix=no
11509  need_version=no
11510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11511  soname_spec='${libname}${release}${shared_ext}$major'
11512  shlibpath_var=LD_LIBRARY_PATH
11513  shlibpath_overrides_runpath=no
11514  hardcode_into_libs=yes
11515  dynamic_linker='NetBSD ld.elf_so'
11516  ;;
11517
11518netbsd*)
11519  version_type=sunos
11520  need_lib_prefix=no
11521  need_version=no
11522  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11524    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11525    dynamic_linker='NetBSD (a.out) ld.so'
11526  else
11527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11528    soname_spec='${libname}${release}${shared_ext}$major'
11529    dynamic_linker='NetBSD ld.elf_so'
11530  fi
11531  shlibpath_var=LD_LIBRARY_PATH
11532  shlibpath_overrides_runpath=yes
11533  hardcode_into_libs=yes
11534  ;;
11535
11536newsos6)
11537  version_type=linux # correct to gnu/linux during the next big refactor
11538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=yes
11541  ;;
11542
11543*nto* | *qnx*)
11544  version_type=qnx
11545  need_lib_prefix=no
11546  need_version=no
11547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548  soname_spec='${libname}${release}${shared_ext}$major'
11549  shlibpath_var=LD_LIBRARY_PATH
11550  shlibpath_overrides_runpath=no
11551  hardcode_into_libs=yes
11552  dynamic_linker='ldqnx.so'
11553  ;;
11554
11555openbsd*)
11556  version_type=sunos
11557  sys_lib_dlsearch_path_spec="/usr/lib"
11558  need_lib_prefix=no
11559  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11560  case $host_os in
11561    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11562    *)				need_version=no  ;;
11563  esac
11564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11565  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11566  shlibpath_var=LD_LIBRARY_PATH
11567  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11568    case $host_os in
11569      openbsd2.[89] | openbsd2.[89].*)
11570	shlibpath_overrides_runpath=no
11571	;;
11572      *)
11573	shlibpath_overrides_runpath=yes
11574	;;
11575      esac
11576  else
11577    shlibpath_overrides_runpath=yes
11578  fi
11579  ;;
11580
11581os2*)
11582  libname_spec='$name'
11583  shrext_cmds=".dll"
11584  need_lib_prefix=no
11585  library_names_spec='$libname${shared_ext} $libname.a'
11586  dynamic_linker='OS/2 ld.exe'
11587  shlibpath_var=LIBPATH
11588  ;;
11589
11590osf3* | osf4* | osf5*)
11591  version_type=osf
11592  need_lib_prefix=no
11593  need_version=no
11594  soname_spec='${libname}${release}${shared_ext}$major'
11595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596  shlibpath_var=LD_LIBRARY_PATH
11597  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11598  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11599  ;;
11600
11601rdos*)
11602  dynamic_linker=no
11603  ;;
11604
11605solaris*)
11606  version_type=linux # correct to gnu/linux during the next big refactor
11607  need_lib_prefix=no
11608  need_version=no
11609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610  soname_spec='${libname}${release}${shared_ext}$major'
11611  shlibpath_var=LD_LIBRARY_PATH
11612  shlibpath_overrides_runpath=yes
11613  hardcode_into_libs=yes
11614  # ldd complains unless libraries are executable
11615  postinstall_cmds='chmod +x $lib'
11616  ;;
11617
11618sunos4*)
11619  version_type=sunos
11620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11622  shlibpath_var=LD_LIBRARY_PATH
11623  shlibpath_overrides_runpath=yes
11624  if test "$with_gnu_ld" = yes; then
11625    need_lib_prefix=no
11626  fi
11627  need_version=yes
11628  ;;
11629
11630sysv4 | sysv4.3*)
11631  version_type=linux # correct to gnu/linux during the next big refactor
11632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633  soname_spec='${libname}${release}${shared_ext}$major'
11634  shlibpath_var=LD_LIBRARY_PATH
11635  case $host_vendor in
11636    sni)
11637      shlibpath_overrides_runpath=no
11638      need_lib_prefix=no
11639      runpath_var=LD_RUN_PATH
11640      ;;
11641    siemens)
11642      need_lib_prefix=no
11643      ;;
11644    motorola)
11645      need_lib_prefix=no
11646      need_version=no
11647      shlibpath_overrides_runpath=no
11648      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11649      ;;
11650  esac
11651  ;;
11652
11653sysv4*MP*)
11654  if test -d /usr/nec ;then
11655    version_type=linux # correct to gnu/linux during the next big refactor
11656    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11657    soname_spec='$libname${shared_ext}.$major'
11658    shlibpath_var=LD_LIBRARY_PATH
11659  fi
11660  ;;
11661
11662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11663  version_type=freebsd-elf
11664  need_lib_prefix=no
11665  need_version=no
11666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11667  soname_spec='${libname}${release}${shared_ext}$major'
11668  shlibpath_var=LD_LIBRARY_PATH
11669  shlibpath_overrides_runpath=yes
11670  hardcode_into_libs=yes
11671  if test "$with_gnu_ld" = yes; then
11672    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11673  else
11674    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11675    case $host_os in
11676      sco3.2v5*)
11677        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11678	;;
11679    esac
11680  fi
11681  sys_lib_dlsearch_path_spec='/usr/lib'
11682  ;;
11683
11684tpf*)
11685  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11686  version_type=linux # correct to gnu/linux during the next big refactor
11687  need_lib_prefix=no
11688  need_version=no
11689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690  shlibpath_var=LD_LIBRARY_PATH
11691  shlibpath_overrides_runpath=no
11692  hardcode_into_libs=yes
11693  ;;
11694
11695uts4*)
11696  version_type=linux # correct to gnu/linux during the next big refactor
11697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698  soname_spec='${libname}${release}${shared_ext}$major'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  ;;
11701
11702*)
11703  dynamic_linker=no
11704  ;;
11705esac
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11707$as_echo "$dynamic_linker" >&6; }
11708test "$dynamic_linker" = no && can_build_shared=no
11709
11710variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11711if test "$GCC" = yes; then
11712  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11713fi
11714
11715if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11716  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11717fi
11718if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11719  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11720fi
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11814$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11815hardcode_action=
11816if test -n "$hardcode_libdir_flag_spec" ||
11817   test -n "$runpath_var" ||
11818   test "X$hardcode_automatic" = "Xyes" ; then
11819
11820  # We can hardcode non-existent directories.
11821  if test "$hardcode_direct" != no &&
11822     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11823     # have to relink, otherwise we might link with an installed library
11824     # when we should be linking with a yet-to-be-installed one
11825     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11826     test "$hardcode_minus_L" != no; then
11827    # Linking always hardcodes the temporary library directory.
11828    hardcode_action=relink
11829  else
11830    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11831    hardcode_action=immediate
11832  fi
11833else
11834  # We cannot hardcode anything, or else we can only hardcode existing
11835  # directories.
11836  hardcode_action=unsupported
11837fi
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11839$as_echo "$hardcode_action" >&6; }
11840
11841if test "$hardcode_action" = relink ||
11842   test "$inherit_rpath" = yes; then
11843  # Fast installation is not supported
11844  enable_fast_install=no
11845elif test "$shlibpath_overrides_runpath" = yes ||
11846     test "$enable_shared" = no; then
11847  # Fast installation is not necessary
11848  enable_fast_install=needless
11849fi
11850
11851
11852
11853
11854
11855
11856  if test "x$enable_dlopen" != xyes; then
11857  enable_dlopen=unknown
11858  enable_dlopen_self=unknown
11859  enable_dlopen_self_static=unknown
11860else
11861  lt_cv_dlopen=no
11862  lt_cv_dlopen_libs=
11863
11864  case $host_os in
11865  beos*)
11866    lt_cv_dlopen="load_add_on"
11867    lt_cv_dlopen_libs=
11868    lt_cv_dlopen_self=yes
11869    ;;
11870
11871  mingw* | pw32* | cegcc*)
11872    lt_cv_dlopen="LoadLibrary"
11873    lt_cv_dlopen_libs=
11874    ;;
11875
11876  cygwin*)
11877    lt_cv_dlopen="dlopen"
11878    lt_cv_dlopen_libs=
11879    ;;
11880
11881  darwin*)
11882  # if libdl is installed we need to link against it
11883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11884$as_echo_n "checking for dlopen in -ldl... " >&6; }
11885if ${ac_cv_lib_dl_dlopen+:} false; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  ac_check_lib_save_LIBS=$LIBS
11889LIBS="-ldl  $LIBS"
11890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891/* end confdefs.h.  */
11892
11893/* Override any GCC internal prototype to avoid an error.
11894   Use char because int might match the return type of a GCC
11895   builtin and then its argument prototype would still apply.  */
11896#ifdef __cplusplus
11897extern "C"
11898#endif
11899char dlopen ();
11900int
11901main ()
11902{
11903return dlopen ();
11904  ;
11905  return 0;
11906}
11907_ACEOF
11908if ac_fn_c_try_link "$LINENO"; then :
11909  ac_cv_lib_dl_dlopen=yes
11910else
11911  ac_cv_lib_dl_dlopen=no
11912fi
11913rm -f core conftest.err conftest.$ac_objext \
11914    conftest$ac_exeext conftest.$ac_ext
11915LIBS=$ac_check_lib_save_LIBS
11916fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11918$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11919if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11920  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11921else
11922
11923    lt_cv_dlopen="dyld"
11924    lt_cv_dlopen_libs=
11925    lt_cv_dlopen_self=yes
11926
11927fi
11928
11929    ;;
11930
11931  *)
11932    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11933if test "x$ac_cv_func_shl_load" = xyes; then :
11934  lt_cv_dlopen="shl_load"
11935else
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11937$as_echo_n "checking for shl_load in -ldld... " >&6; }
11938if ${ac_cv_lib_dld_shl_load+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  ac_check_lib_save_LIBS=$LIBS
11942LIBS="-ldld  $LIBS"
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945
11946/* Override any GCC internal prototype to avoid an error.
11947   Use char because int might match the return type of a GCC
11948   builtin and then its argument prototype would still apply.  */
11949#ifdef __cplusplus
11950extern "C"
11951#endif
11952char shl_load ();
11953int
11954main ()
11955{
11956return shl_load ();
11957  ;
11958  return 0;
11959}
11960_ACEOF
11961if ac_fn_c_try_link "$LINENO"; then :
11962  ac_cv_lib_dld_shl_load=yes
11963else
11964  ac_cv_lib_dld_shl_load=no
11965fi
11966rm -f core conftest.err conftest.$ac_objext \
11967    conftest$ac_exeext conftest.$ac_ext
11968LIBS=$ac_check_lib_save_LIBS
11969fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11971$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11972if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11973  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11974else
11975  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11976if test "x$ac_cv_func_dlopen" = xyes; then :
11977  lt_cv_dlopen="dlopen"
11978else
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11980$as_echo_n "checking for dlopen in -ldl... " >&6; }
11981if ${ac_cv_lib_dl_dlopen+:} false; then :
11982  $as_echo_n "(cached) " >&6
11983else
11984  ac_check_lib_save_LIBS=$LIBS
11985LIBS="-ldl  $LIBS"
11986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987/* end confdefs.h.  */
11988
11989/* Override any GCC internal prototype to avoid an error.
11990   Use char because int might match the return type of a GCC
11991   builtin and then its argument prototype would still apply.  */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995char dlopen ();
11996int
11997main ()
11998{
11999return dlopen ();
12000  ;
12001  return 0;
12002}
12003_ACEOF
12004if ac_fn_c_try_link "$LINENO"; then :
12005  ac_cv_lib_dl_dlopen=yes
12006else
12007  ac_cv_lib_dl_dlopen=no
12008fi
12009rm -f core conftest.err conftest.$ac_objext \
12010    conftest$ac_exeext conftest.$ac_ext
12011LIBS=$ac_check_lib_save_LIBS
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12014$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12015if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12016  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12017else
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12019$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12020if ${ac_cv_lib_svld_dlopen+:} false; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023  ac_check_lib_save_LIBS=$LIBS
12024LIBS="-lsvld  $LIBS"
12025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026/* end confdefs.h.  */
12027
12028/* Override any GCC internal prototype to avoid an error.
12029   Use char because int might match the return type of a GCC
12030   builtin and then its argument prototype would still apply.  */
12031#ifdef __cplusplus
12032extern "C"
12033#endif
12034char dlopen ();
12035int
12036main ()
12037{
12038return dlopen ();
12039  ;
12040  return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_link "$LINENO"; then :
12044  ac_cv_lib_svld_dlopen=yes
12045else
12046  ac_cv_lib_svld_dlopen=no
12047fi
12048rm -f core conftest.err conftest.$ac_objext \
12049    conftest$ac_exeext conftest.$ac_ext
12050LIBS=$ac_check_lib_save_LIBS
12051fi
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12053$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12054if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12055  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12056else
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12058$as_echo_n "checking for dld_link in -ldld... " >&6; }
12059if ${ac_cv_lib_dld_dld_link+:} false; then :
12060  $as_echo_n "(cached) " >&6
12061else
12062  ac_check_lib_save_LIBS=$LIBS
12063LIBS="-ldld  $LIBS"
12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h.  */
12066
12067/* Override any GCC internal prototype to avoid an error.
12068   Use char because int might match the return type of a GCC
12069   builtin and then its argument prototype would still apply.  */
12070#ifdef __cplusplus
12071extern "C"
12072#endif
12073char dld_link ();
12074int
12075main ()
12076{
12077return dld_link ();
12078  ;
12079  return 0;
12080}
12081_ACEOF
12082if ac_fn_c_try_link "$LINENO"; then :
12083  ac_cv_lib_dld_dld_link=yes
12084else
12085  ac_cv_lib_dld_dld_link=no
12086fi
12087rm -f core conftest.err conftest.$ac_objext \
12088    conftest$ac_exeext conftest.$ac_ext
12089LIBS=$ac_check_lib_save_LIBS
12090fi
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12092$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12093if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12094  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12095fi
12096
12097
12098fi
12099
12100
12101fi
12102
12103
12104fi
12105
12106
12107fi
12108
12109
12110fi
12111
12112    ;;
12113  esac
12114
12115  if test "x$lt_cv_dlopen" != xno; then
12116    enable_dlopen=yes
12117  else
12118    enable_dlopen=no
12119  fi
12120
12121  case $lt_cv_dlopen in
12122  dlopen)
12123    save_CPPFLAGS="$CPPFLAGS"
12124    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12125
12126    save_LDFLAGS="$LDFLAGS"
12127    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12128
12129    save_LIBS="$LIBS"
12130    LIBS="$lt_cv_dlopen_libs $LIBS"
12131
12132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12133$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12134if ${lt_cv_dlopen_self+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  	  if test "$cross_compiling" = yes; then :
12138  lt_cv_dlopen_self=cross
12139else
12140  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12141  lt_status=$lt_dlunknown
12142  cat > conftest.$ac_ext <<_LT_EOF
12143#line $LINENO "configure"
12144#include "confdefs.h"
12145
12146#if HAVE_DLFCN_H
12147#include <dlfcn.h>
12148#endif
12149
12150#include <stdio.h>
12151
12152#ifdef RTLD_GLOBAL
12153#  define LT_DLGLOBAL		RTLD_GLOBAL
12154#else
12155#  ifdef DL_GLOBAL
12156#    define LT_DLGLOBAL		DL_GLOBAL
12157#  else
12158#    define LT_DLGLOBAL		0
12159#  endif
12160#endif
12161
12162/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12163   find out it does not work in some platform. */
12164#ifndef LT_DLLAZY_OR_NOW
12165#  ifdef RTLD_LAZY
12166#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12167#  else
12168#    ifdef DL_LAZY
12169#      define LT_DLLAZY_OR_NOW		DL_LAZY
12170#    else
12171#      ifdef RTLD_NOW
12172#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12173#      else
12174#        ifdef DL_NOW
12175#          define LT_DLLAZY_OR_NOW	DL_NOW
12176#        else
12177#          define LT_DLLAZY_OR_NOW	0
12178#        endif
12179#      endif
12180#    endif
12181#  endif
12182#endif
12183
12184/* When -fvisbility=hidden is used, assume the code has been annotated
12185   correspondingly for the symbols needed.  */
12186#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12187int fnord () __attribute__((visibility("default")));
12188#endif
12189
12190int fnord () { return 42; }
12191int main ()
12192{
12193  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12194  int status = $lt_dlunknown;
12195
12196  if (self)
12197    {
12198      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12199      else
12200        {
12201	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12202          else puts (dlerror ());
12203	}
12204      /* dlclose (self); */
12205    }
12206  else
12207    puts (dlerror ());
12208
12209  return status;
12210}
12211_LT_EOF
12212  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12213  (eval $ac_link) 2>&5
12214  ac_status=$?
12215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12216  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12217    (./conftest; exit; ) >&5 2>/dev/null
12218    lt_status=$?
12219    case x$lt_status in
12220      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12221      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12222      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12223    esac
12224  else :
12225    # compilation failed
12226    lt_cv_dlopen_self=no
12227  fi
12228fi
12229rm -fr conftest*
12230
12231
12232fi
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12234$as_echo "$lt_cv_dlopen_self" >&6; }
12235
12236    if test "x$lt_cv_dlopen_self" = xyes; then
12237      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12238      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12239$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12240if ${lt_cv_dlopen_self_static+:} false; then :
12241  $as_echo_n "(cached) " >&6
12242else
12243  	  if test "$cross_compiling" = yes; then :
12244  lt_cv_dlopen_self_static=cross
12245else
12246  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12247  lt_status=$lt_dlunknown
12248  cat > conftest.$ac_ext <<_LT_EOF
12249#line $LINENO "configure"
12250#include "confdefs.h"
12251
12252#if HAVE_DLFCN_H
12253#include <dlfcn.h>
12254#endif
12255
12256#include <stdio.h>
12257
12258#ifdef RTLD_GLOBAL
12259#  define LT_DLGLOBAL		RTLD_GLOBAL
12260#else
12261#  ifdef DL_GLOBAL
12262#    define LT_DLGLOBAL		DL_GLOBAL
12263#  else
12264#    define LT_DLGLOBAL		0
12265#  endif
12266#endif
12267
12268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12269   find out it does not work in some platform. */
12270#ifndef LT_DLLAZY_OR_NOW
12271#  ifdef RTLD_LAZY
12272#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12273#  else
12274#    ifdef DL_LAZY
12275#      define LT_DLLAZY_OR_NOW		DL_LAZY
12276#    else
12277#      ifdef RTLD_NOW
12278#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12279#      else
12280#        ifdef DL_NOW
12281#          define LT_DLLAZY_OR_NOW	DL_NOW
12282#        else
12283#          define LT_DLLAZY_OR_NOW	0
12284#        endif
12285#      endif
12286#    endif
12287#  endif
12288#endif
12289
12290/* When -fvisbility=hidden is used, assume the code has been annotated
12291   correspondingly for the symbols needed.  */
12292#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12293int fnord () __attribute__((visibility("default")));
12294#endif
12295
12296int fnord () { return 42; }
12297int main ()
12298{
12299  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12300  int status = $lt_dlunknown;
12301
12302  if (self)
12303    {
12304      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12305      else
12306        {
12307	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12308          else puts (dlerror ());
12309	}
12310      /* dlclose (self); */
12311    }
12312  else
12313    puts (dlerror ());
12314
12315  return status;
12316}
12317_LT_EOF
12318  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12319  (eval $ac_link) 2>&5
12320  ac_status=$?
12321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12322  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12323    (./conftest; exit; ) >&5 2>/dev/null
12324    lt_status=$?
12325    case x$lt_status in
12326      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12327      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12328      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12329    esac
12330  else :
12331    # compilation failed
12332    lt_cv_dlopen_self_static=no
12333  fi
12334fi
12335rm -fr conftest*
12336
12337
12338fi
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12340$as_echo "$lt_cv_dlopen_self_static" >&6; }
12341    fi
12342
12343    CPPFLAGS="$save_CPPFLAGS"
12344    LDFLAGS="$save_LDFLAGS"
12345    LIBS="$save_LIBS"
12346    ;;
12347  esac
12348
12349  case $lt_cv_dlopen_self in
12350  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12351  *) enable_dlopen_self=unknown ;;
12352  esac
12353
12354  case $lt_cv_dlopen_self_static in
12355  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12356  *) enable_dlopen_self_static=unknown ;;
12357  esac
12358fi
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376striplib=
12377old_striplib=
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12379$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12380if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12381  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12382  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12384$as_echo "yes" >&6; }
12385else
12386# FIXME - insert some real tests, host_os isn't really good enough
12387  case $host_os in
12388  darwin*)
12389    if test -n "$STRIP" ; then
12390      striplib="$STRIP -x"
12391      old_striplib="$STRIP -S"
12392      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12393$as_echo "yes" >&6; }
12394    else
12395      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397    fi
12398    ;;
12399  *)
12400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
12402    ;;
12403  esac
12404fi
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417  # Report which library types will actually be built
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12419$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12421$as_echo "$can_build_shared" >&6; }
12422
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12424$as_echo_n "checking whether to build shared libraries... " >&6; }
12425  test "$can_build_shared" = "no" && enable_shared=no
12426
12427  # On AIX, shared libraries and static libraries use the same namespace, and
12428  # are all built from PIC.
12429  case $host_os in
12430  aix3*)
12431    test "$enable_shared" = yes && enable_static=no
12432    if test -n "$RANLIB"; then
12433      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12434      postinstall_cmds='$RANLIB $lib'
12435    fi
12436    ;;
12437
12438  aix[4-9]*)
12439    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12440      test "$enable_shared" = yes && enable_static=no
12441    fi
12442    ;;
12443  esac
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12445$as_echo "$enable_shared" >&6; }
12446
12447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12448$as_echo_n "checking whether to build static libraries... " >&6; }
12449  # Make sure either enable_shared or enable_static is yes.
12450  test "$enable_shared" = yes || enable_static=yes
12451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12452$as_echo "$enable_static" >&6; }
12453
12454
12455
12456
12457fi
12458ac_ext=c
12459ac_cpp='$CPP $CPPFLAGS'
12460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12462ac_compiler_gnu=$ac_cv_c_compiler_gnu
12463
12464CC="$lt_save_CC"
12465
12466      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12467    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12468    (test "X$CXX" != "Xg++"))) ; then
12469  ac_ext=cpp
12470ac_cpp='$CXXCPP $CPPFLAGS'
12471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12475$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12476if test -z "$CXXCPP"; then
12477  if ${ac_cv_prog_CXXCPP+:} false; then :
12478  $as_echo_n "(cached) " >&6
12479else
12480      # Double quotes because CXXCPP needs to be expanded
12481    for CXXCPP in "$CXX -E" "/lib/cpp"
12482    do
12483      ac_preproc_ok=false
12484for ac_cxx_preproc_warn_flag in '' yes
12485do
12486  # Use a header file that comes with gcc, so configuring glibc
12487  # with a fresh cross-compiler works.
12488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12489  # <limits.h> exists even on freestanding compilers.
12490  # On the NeXT, cc -E runs the code through the compiler's parser,
12491  # not just through cpp. "Syntax error" is here to catch this case.
12492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493/* end confdefs.h.  */
12494#ifdef __STDC__
12495# include <limits.h>
12496#else
12497# include <assert.h>
12498#endif
12499		     Syntax error
12500_ACEOF
12501if ac_fn_cxx_try_cpp "$LINENO"; then :
12502
12503else
12504  # Broken: fails on valid input.
12505continue
12506fi
12507rm -f conftest.err conftest.i conftest.$ac_ext
12508
12509  # OK, works on sane cases.  Now check whether nonexistent headers
12510  # can be detected and how.
12511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h.  */
12513#include <ac_nonexistent.h>
12514_ACEOF
12515if ac_fn_cxx_try_cpp "$LINENO"; then :
12516  # Broken: success on invalid input.
12517continue
12518else
12519  # Passes both tests.
12520ac_preproc_ok=:
12521break
12522fi
12523rm -f conftest.err conftest.i conftest.$ac_ext
12524
12525done
12526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12527rm -f conftest.i conftest.err conftest.$ac_ext
12528if $ac_preproc_ok; then :
12529  break
12530fi
12531
12532    done
12533    ac_cv_prog_CXXCPP=$CXXCPP
12534
12535fi
12536  CXXCPP=$ac_cv_prog_CXXCPP
12537else
12538  ac_cv_prog_CXXCPP=$CXXCPP
12539fi
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12541$as_echo "$CXXCPP" >&6; }
12542ac_preproc_ok=false
12543for ac_cxx_preproc_warn_flag in '' yes
12544do
12545  # Use a header file that comes with gcc, so configuring glibc
12546  # with a fresh cross-compiler works.
12547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548  # <limits.h> exists even on freestanding compilers.
12549  # On the NeXT, cc -E runs the code through the compiler's parser,
12550  # not just through cpp. "Syntax error" is here to catch this case.
12551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553#ifdef __STDC__
12554# include <limits.h>
12555#else
12556# include <assert.h>
12557#endif
12558		     Syntax error
12559_ACEOF
12560if ac_fn_cxx_try_cpp "$LINENO"; then :
12561
12562else
12563  # Broken: fails on valid input.
12564continue
12565fi
12566rm -f conftest.err conftest.i conftest.$ac_ext
12567
12568  # OK, works on sane cases.  Now check whether nonexistent headers
12569  # can be detected and how.
12570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572#include <ac_nonexistent.h>
12573_ACEOF
12574if ac_fn_cxx_try_cpp "$LINENO"; then :
12575  # Broken: success on invalid input.
12576continue
12577else
12578  # Passes both tests.
12579ac_preproc_ok=:
12580break
12581fi
12582rm -f conftest.err conftest.i conftest.$ac_ext
12583
12584done
12585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12586rm -f conftest.i conftest.err conftest.$ac_ext
12587if $ac_preproc_ok; then :
12588
12589else
12590  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12593See \`config.log' for more details" "$LINENO" 5; }
12594fi
12595
12596ac_ext=c
12597ac_cpp='$CPP $CPPFLAGS'
12598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600ac_compiler_gnu=$ac_cv_c_compiler_gnu
12601
12602else
12603  _lt_caught_CXX_error=yes
12604fi
12605
12606ac_ext=cpp
12607ac_cpp='$CXXCPP $CPPFLAGS'
12608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12611
12612archive_cmds_need_lc_CXX=no
12613allow_undefined_flag_CXX=
12614always_export_symbols_CXX=no
12615archive_expsym_cmds_CXX=
12616compiler_needs_object_CXX=no
12617export_dynamic_flag_spec_CXX=
12618hardcode_direct_CXX=no
12619hardcode_direct_absolute_CXX=no
12620hardcode_libdir_flag_spec_CXX=
12621hardcode_libdir_separator_CXX=
12622hardcode_minus_L_CXX=no
12623hardcode_shlibpath_var_CXX=unsupported
12624hardcode_automatic_CXX=no
12625inherit_rpath_CXX=no
12626module_cmds_CXX=
12627module_expsym_cmds_CXX=
12628link_all_deplibs_CXX=unknown
12629old_archive_cmds_CXX=$old_archive_cmds
12630reload_flag_CXX=$reload_flag
12631reload_cmds_CXX=$reload_cmds
12632no_undefined_flag_CXX=
12633whole_archive_flag_spec_CXX=
12634enable_shared_with_static_runtimes_CXX=no
12635
12636# Source file extension for C++ test sources.
12637ac_ext=cpp
12638
12639# Object file extension for compiled C++ test sources.
12640objext=o
12641objext_CXX=$objext
12642
12643# No sense in running all these tests if we already determined that
12644# the CXX compiler isn't working.  Some variables (like enable_shared)
12645# are currently assumed to apply to all compilers on this platform,
12646# and will be corrupted by setting them based on a non-working compiler.
12647if test "$_lt_caught_CXX_error" != yes; then
12648  # Code to be used in simple compile tests
12649  lt_simple_compile_test_code="int some_variable = 0;"
12650
12651  # Code to be used in simple link tests
12652  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12653
12654  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12655
12656
12657
12658
12659
12660
12661# If no C compiler was specified, use CC.
12662LTCC=${LTCC-"$CC"}
12663
12664# If no C compiler flags were specified, use CFLAGS.
12665LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12666
12667# Allow CC to be a program name with arguments.
12668compiler=$CC
12669
12670
12671  # save warnings/boilerplate of simple test code
12672  ac_outfile=conftest.$ac_objext
12673echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12674eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12675_lt_compiler_boilerplate=`cat conftest.err`
12676$RM conftest*
12677
12678  ac_outfile=conftest.$ac_objext
12679echo "$lt_simple_link_test_code" >conftest.$ac_ext
12680eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12681_lt_linker_boilerplate=`cat conftest.err`
12682$RM -r conftest*
12683
12684
12685  # Allow CC to be a program name with arguments.
12686  lt_save_CC=$CC
12687  lt_save_CFLAGS=$CFLAGS
12688  lt_save_LD=$LD
12689  lt_save_GCC=$GCC
12690  GCC=$GXX
12691  lt_save_with_gnu_ld=$with_gnu_ld
12692  lt_save_path_LD=$lt_cv_path_LD
12693  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12694    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12695  else
12696    $as_unset lt_cv_prog_gnu_ld
12697  fi
12698  if test -n "${lt_cv_path_LDCXX+set}"; then
12699    lt_cv_path_LD=$lt_cv_path_LDCXX
12700  else
12701    $as_unset lt_cv_path_LD
12702  fi
12703  test -z "${LDCXX+set}" || LD=$LDCXX
12704  CC=${CXX-"c++"}
12705  CFLAGS=$CXXFLAGS
12706  compiler=$CC
12707  compiler_CXX=$CC
12708  for cc_temp in $compiler""; do
12709  case $cc_temp in
12710    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12711    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12712    \-*) ;;
12713    *) break;;
12714  esac
12715done
12716cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12717
12718
12719  if test -n "$compiler"; then
12720    # We don't want -fno-exception when compiling C++ code, so set the
12721    # no_builtin_flag separately
12722    if test "$GXX" = yes; then
12723      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12724    else
12725      lt_prog_compiler_no_builtin_flag_CXX=
12726    fi
12727
12728    if test "$GXX" = yes; then
12729      # Set up default GNU C++ configuration
12730
12731
12732
12733# Check whether --with-gnu-ld was given.
12734if test "${with_gnu_ld+set}" = set; then :
12735  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12736else
12737  with_gnu_ld=no
12738fi
12739
12740ac_prog=ld
12741if test "$GCC" = yes; then
12742  # Check if gcc -print-prog-name=ld gives a path.
12743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12744$as_echo_n "checking for ld used by $CC... " >&6; }
12745  case $host in
12746  *-*-mingw*)
12747    # gcc leaves a trailing carriage return which upsets mingw
12748    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12749  *)
12750    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12751  esac
12752  case $ac_prog in
12753    # Accept absolute paths.
12754    [\\/]* | ?:[\\/]*)
12755      re_direlt='/[^/][^/]*/\.\./'
12756      # Canonicalize the pathname of ld
12757      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12758      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12759	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12760      done
12761      test -z "$LD" && LD="$ac_prog"
12762      ;;
12763  "")
12764    # If it fails, then pretend we aren't using GCC.
12765    ac_prog=ld
12766    ;;
12767  *)
12768    # If it is relative, then search for the first ld in PATH.
12769    with_gnu_ld=unknown
12770    ;;
12771  esac
12772elif test "$with_gnu_ld" = yes; then
12773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12774$as_echo_n "checking for GNU ld... " >&6; }
12775else
12776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12777$as_echo_n "checking for non-GNU ld... " >&6; }
12778fi
12779if ${lt_cv_path_LD+:} false; then :
12780  $as_echo_n "(cached) " >&6
12781else
12782  if test -z "$LD"; then
12783  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12784  for ac_dir in $PATH; do
12785    IFS="$lt_save_ifs"
12786    test -z "$ac_dir" && ac_dir=.
12787    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12788      lt_cv_path_LD="$ac_dir/$ac_prog"
12789      # Check to see if the program is GNU ld.  I'd rather use --version,
12790      # but apparently some variants of GNU ld only accept -v.
12791      # Break only if it was the GNU/non-GNU ld that we prefer.
12792      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12793      *GNU* | *'with BFD'*)
12794	test "$with_gnu_ld" != no && break
12795	;;
12796      *)
12797	test "$with_gnu_ld" != yes && break
12798	;;
12799      esac
12800    fi
12801  done
12802  IFS="$lt_save_ifs"
12803else
12804  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12805fi
12806fi
12807
12808LD="$lt_cv_path_LD"
12809if test -n "$LD"; then
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12811$as_echo "$LD" >&6; }
12812else
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814$as_echo "no" >&6; }
12815fi
12816test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12818$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12819if ${lt_cv_prog_gnu_ld+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12823case `$LD -v 2>&1 </dev/null` in
12824*GNU* | *'with BFD'*)
12825  lt_cv_prog_gnu_ld=yes
12826  ;;
12827*)
12828  lt_cv_prog_gnu_ld=no
12829  ;;
12830esac
12831fi
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12833$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12834with_gnu_ld=$lt_cv_prog_gnu_ld
12835
12836
12837
12838
12839
12840
12841
12842      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12843      # archiving commands below assume that GNU ld is being used.
12844      if test "$with_gnu_ld" = yes; then
12845        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846        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'
12847
12848        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12849        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12850
12851        # If archive_cmds runs LD, not CC, wlarc should be empty
12852        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12853        #     investigate it a little bit more. (MM)
12854        wlarc='${wl}'
12855
12856        # ancient GNU ld didn't support --whole-archive et. al.
12857        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12858	  $GREP 'no-whole-archive' > /dev/null; then
12859          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12860        else
12861          whole_archive_flag_spec_CXX=
12862        fi
12863      else
12864        with_gnu_ld=no
12865        wlarc=
12866
12867        # A generic and very simple default shared library creation
12868        # command for GNU C++ for the case where it uses the native
12869        # linker, instead of GNU ld.  If possible, this setting should
12870        # overridden to take advantage of the native linker features on
12871        # the platform it is being used on.
12872        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12873      fi
12874
12875      # Commands to make compiler produce verbose output that lists
12876      # what "hidden" libraries, object files and flags are used when
12877      # linking a shared library.
12878      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12879
12880    else
12881      GXX=no
12882      with_gnu_ld=no
12883      wlarc=
12884    fi
12885
12886    # PORTME: fill in a description of your system's C++ link characteristics
12887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12888$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12889    ld_shlibs_CXX=yes
12890    case $host_os in
12891      aix3*)
12892        # FIXME: insert proper C++ library support
12893        ld_shlibs_CXX=no
12894        ;;
12895      aix[4-9]*)
12896        if test "$host_cpu" = ia64; then
12897          # On IA64, the linker does run time linking by default, so we don't
12898          # have to do anything special.
12899          aix_use_runtimelinking=no
12900          exp_sym_flag='-Bexport'
12901          no_entry_flag=""
12902        else
12903          aix_use_runtimelinking=no
12904
12905          # Test if we are trying to use run time linking or normal
12906          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12907          # need to do runtime linking.
12908          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12909	    for ld_flag in $LDFLAGS; do
12910	      case $ld_flag in
12911	      *-brtl*)
12912	        aix_use_runtimelinking=yes
12913	        break
12914	        ;;
12915	      esac
12916	    done
12917	    ;;
12918          esac
12919
12920          exp_sym_flag='-bexport'
12921          no_entry_flag='-bnoentry'
12922        fi
12923
12924        # When large executables or shared objects are built, AIX ld can
12925        # have problems creating the table of contents.  If linking a library
12926        # or program results in "error TOC overflow" add -mminimal-toc to
12927        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12928        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12929
12930        archive_cmds_CXX=''
12931        hardcode_direct_CXX=yes
12932        hardcode_direct_absolute_CXX=yes
12933        hardcode_libdir_separator_CXX=':'
12934        link_all_deplibs_CXX=yes
12935        file_list_spec_CXX='${wl}-f,'
12936
12937        if test "$GXX" = yes; then
12938          case $host_os in aix4.[012]|aix4.[012].*)
12939          # We only want to do this on AIX 4.2 and lower, the check
12940          # below for broken collect2 doesn't work under 4.3+
12941	  collect2name=`${CC} -print-prog-name=collect2`
12942	  if test -f "$collect2name" &&
12943	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12944	  then
12945	    # We have reworked collect2
12946	    :
12947	  else
12948	    # We have old collect2
12949	    hardcode_direct_CXX=unsupported
12950	    # It fails to find uninstalled libraries when the uninstalled
12951	    # path is not listed in the libpath.  Setting hardcode_minus_L
12952	    # to unsupported forces relinking
12953	    hardcode_minus_L_CXX=yes
12954	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12955	    hardcode_libdir_separator_CXX=
12956	  fi
12957          esac
12958          shared_flag='-shared'
12959	  if test "$aix_use_runtimelinking" = yes; then
12960	    shared_flag="$shared_flag "'${wl}-G'
12961	  fi
12962        else
12963          # not using gcc
12964          if test "$host_cpu" = ia64; then
12965	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12966	  # chokes on -Wl,-G. The following line is correct:
12967	  shared_flag='-G'
12968          else
12969	    if test "$aix_use_runtimelinking" = yes; then
12970	      shared_flag='${wl}-G'
12971	    else
12972	      shared_flag='${wl}-bM:SRE'
12973	    fi
12974          fi
12975        fi
12976
12977        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12978        # It seems that -bexpall does not export symbols beginning with
12979        # underscore (_), so it is better to generate a list of symbols to
12980	# export.
12981        always_export_symbols_CXX=yes
12982        if test "$aix_use_runtimelinking" = yes; then
12983          # Warning - without using the other runtime loading flags (-brtl),
12984          # -berok will link without error, but may produce a broken library.
12985          allow_undefined_flag_CXX='-berok'
12986          # Determine the default libpath from the value encoded in an empty
12987          # executable.
12988          if test "${lt_cv_aix_libpath+set}" = set; then
12989  aix_libpath=$lt_cv_aix_libpath
12990else
12991  if ${lt_cv_aix_libpath__CXX+:} false; then :
12992  $as_echo_n "(cached) " >&6
12993else
12994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995/* end confdefs.h.  */
12996
12997int
12998main ()
12999{
13000
13001  ;
13002  return 0;
13003}
13004_ACEOF
13005if ac_fn_cxx_try_link "$LINENO"; then :
13006
13007  lt_aix_libpath_sed='
13008      /Import File Strings/,/^$/ {
13009	  /^0/ {
13010	      s/^0  *\([^ ]*\) *$/\1/
13011	      p
13012	  }
13013      }'
13014  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13015  # Check for a 64-bit object if we didn't find anything.
13016  if test -z "$lt_cv_aix_libpath__CXX"; then
13017    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018  fi
13019fi
13020rm -f core conftest.err conftest.$ac_objext \
13021    conftest$ac_exeext conftest.$ac_ext
13022  if test -z "$lt_cv_aix_libpath__CXX"; then
13023    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13024  fi
13025
13026fi
13027
13028  aix_libpath=$lt_cv_aix_libpath__CXX
13029fi
13030
13031          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13032
13033          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"
13034        else
13035          if test "$host_cpu" = ia64; then
13036	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13037	    allow_undefined_flag_CXX="-z nodefs"
13038	    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"
13039          else
13040	    # Determine the default libpath from the value encoded in an
13041	    # empty executable.
13042	    if test "${lt_cv_aix_libpath+set}" = set; then
13043  aix_libpath=$lt_cv_aix_libpath
13044else
13045  if ${lt_cv_aix_libpath__CXX+:} false; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050
13051int
13052main ()
13053{
13054
13055  ;
13056  return 0;
13057}
13058_ACEOF
13059if ac_fn_cxx_try_link "$LINENO"; then :
13060
13061  lt_aix_libpath_sed='
13062      /Import File Strings/,/^$/ {
13063	  /^0/ {
13064	      s/^0  *\([^ ]*\) *$/\1/
13065	      p
13066	  }
13067      }'
13068  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13069  # Check for a 64-bit object if we didn't find anything.
13070  if test -z "$lt_cv_aix_libpath__CXX"; then
13071    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13072  fi
13073fi
13074rm -f core conftest.err conftest.$ac_objext \
13075    conftest$ac_exeext conftest.$ac_ext
13076  if test -z "$lt_cv_aix_libpath__CXX"; then
13077    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13078  fi
13079
13080fi
13081
13082  aix_libpath=$lt_cv_aix_libpath__CXX
13083fi
13084
13085	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13086	    # Warning - without using the other run time loading flags,
13087	    # -berok will link without error, but may produce a broken library.
13088	    no_undefined_flag_CXX=' ${wl}-bernotok'
13089	    allow_undefined_flag_CXX=' ${wl}-berok'
13090	    if test "$with_gnu_ld" = yes; then
13091	      # We only use this code for GNU lds that support --whole-archive.
13092	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13093	    else
13094	      # Exported symbols can be pulled into shared objects from archives
13095	      whole_archive_flag_spec_CXX='$convenience'
13096	    fi
13097	    archive_cmds_need_lc_CXX=yes
13098	    # This is similar to how AIX traditionally builds its shared
13099	    # libraries.
13100	    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'
13101          fi
13102        fi
13103        ;;
13104
13105      beos*)
13106	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13107	  allow_undefined_flag_CXX=unsupported
13108	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13109	  # support --undefined.  This deserves some investigation.  FIXME
13110	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13111	else
13112	  ld_shlibs_CXX=no
13113	fi
13114	;;
13115
13116      chorus*)
13117        case $cc_basename in
13118          *)
13119	  # FIXME: insert proper C++ library support
13120	  ld_shlibs_CXX=no
13121	  ;;
13122        esac
13123        ;;
13124
13125      cygwin* | mingw* | pw32* | cegcc*)
13126	case $GXX,$cc_basename in
13127	,cl* | no,cl*)
13128	  # Native MSVC
13129	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13130	  # no search path for DLLs.
13131	  hardcode_libdir_flag_spec_CXX=' '
13132	  allow_undefined_flag_CXX=unsupported
13133	  always_export_symbols_CXX=yes
13134	  file_list_spec_CXX='@'
13135	  # Tell ltmain to make .lib files, not .a files.
13136	  libext=lib
13137	  # Tell ltmain to make .dll files, not .so files.
13138	  shrext_cmds=".dll"
13139	  # FIXME: Setting linknames here is a bad hack.
13140	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13141	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13142	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13143	    else
13144	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13145	    fi~
13146	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13147	    linknames='
13148	  # The linker will not automatically build a static lib if we build a DLL.
13149	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13150	  enable_shared_with_static_runtimes_CXX=yes
13151	  # Don't use ranlib
13152	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13153	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13154	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13155	    case $lt_outputfile in
13156	      *.exe|*.EXE) ;;
13157	      *)
13158		lt_outputfile="$lt_outputfile.exe"
13159		lt_tool_outputfile="$lt_tool_outputfile.exe"
13160		;;
13161	    esac~
13162	    func_to_tool_file "$lt_outputfile"~
13163	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13164	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13165	      $RM "$lt_outputfile.manifest";
13166	    fi'
13167	  ;;
13168	*)
13169	  # g++
13170	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13171	  # as there is no search path for DLLs.
13172	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13173	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13174	  allow_undefined_flag_CXX=unsupported
13175	  always_export_symbols_CXX=no
13176	  enable_shared_with_static_runtimes_CXX=yes
13177
13178	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13179	    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'
13180	    # If the export-symbols file already is a .def file (1st line
13181	    # is EXPORTS), use it as is; otherwise, prepend...
13182	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13183	      cp $export_symbols $output_objdir/$soname.def;
13184	    else
13185	      echo EXPORTS > $output_objdir/$soname.def;
13186	      cat $export_symbols >> $output_objdir/$soname.def;
13187	    fi~
13188	    $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'
13189	  else
13190	    ld_shlibs_CXX=no
13191	  fi
13192	  ;;
13193	esac
13194	;;
13195      darwin* | rhapsody*)
13196
13197
13198  archive_cmds_need_lc_CXX=no
13199  hardcode_direct_CXX=no
13200  hardcode_automatic_CXX=yes
13201  hardcode_shlibpath_var_CXX=unsupported
13202  if test "$lt_cv_ld_force_load" = "yes"; then
13203    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\"`'
13204
13205  else
13206    whole_archive_flag_spec_CXX=''
13207  fi
13208  link_all_deplibs_CXX=yes
13209  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13210  case $cc_basename in
13211     ifort*) _lt_dar_can_shared=yes ;;
13212     *) _lt_dar_can_shared=$GCC ;;
13213  esac
13214  if test "$_lt_dar_can_shared" = "yes"; then
13215    output_verbose_link_cmd=func_echo_all
13216    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}"
13217    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13218    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}"
13219    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}"
13220       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13221      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}"
13222      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}"
13223    fi
13224
13225  else
13226  ld_shlibs_CXX=no
13227  fi
13228
13229	;;
13230
13231      dgux*)
13232        case $cc_basename in
13233          ec++*)
13234	    # FIXME: insert proper C++ library support
13235	    ld_shlibs_CXX=no
13236	    ;;
13237          ghcx*)
13238	    # Green Hills C++ Compiler
13239	    # FIXME: insert proper C++ library support
13240	    ld_shlibs_CXX=no
13241	    ;;
13242          *)
13243	    # FIXME: insert proper C++ library support
13244	    ld_shlibs_CXX=no
13245	    ;;
13246        esac
13247        ;;
13248
13249      freebsd2.*)
13250        # C++ shared libraries reported to be fairly broken before
13251	# switch to ELF
13252        ld_shlibs_CXX=no
13253        ;;
13254
13255      freebsd-elf*)
13256        archive_cmds_need_lc_CXX=no
13257        ;;
13258
13259      freebsd* | dragonfly*)
13260        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13261        # conventions
13262        ld_shlibs_CXX=yes
13263        ;;
13264
13265      haiku*)
13266        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13267        link_all_deplibs_CXX=yes
13268        ;;
13269
13270      hpux9*)
13271        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13272        hardcode_libdir_separator_CXX=:
13273        export_dynamic_flag_spec_CXX='${wl}-E'
13274        hardcode_direct_CXX=yes
13275        hardcode_minus_L_CXX=yes # Not in the search PATH,
13276				             # but as the default
13277				             # location of the library.
13278
13279        case $cc_basename in
13280          CC*)
13281            # FIXME: insert proper C++ library support
13282            ld_shlibs_CXX=no
13283            ;;
13284          aCC*)
13285            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'
13286            # Commands to make compiler produce verbose output that lists
13287            # what "hidden" libraries, object files and flags are used when
13288            # linking a shared library.
13289            #
13290            # There doesn't appear to be a way to prevent this compiler from
13291            # explicitly linking system object files so we need to strip them
13292            # from the output so that they don't get included in the library
13293            # dependencies.
13294            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"'
13295            ;;
13296          *)
13297            if test "$GXX" = yes; then
13298              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'
13299            else
13300              # FIXME: insert proper C++ library support
13301              ld_shlibs_CXX=no
13302            fi
13303            ;;
13304        esac
13305        ;;
13306
13307      hpux10*|hpux11*)
13308        if test $with_gnu_ld = no; then
13309	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13310	  hardcode_libdir_separator_CXX=:
13311
13312          case $host_cpu in
13313            hppa*64*|ia64*)
13314              ;;
13315            *)
13316	      export_dynamic_flag_spec_CXX='${wl}-E'
13317              ;;
13318          esac
13319        fi
13320        case $host_cpu in
13321          hppa*64*|ia64*)
13322            hardcode_direct_CXX=no
13323            hardcode_shlibpath_var_CXX=no
13324            ;;
13325          *)
13326            hardcode_direct_CXX=yes
13327            hardcode_direct_absolute_CXX=yes
13328            hardcode_minus_L_CXX=yes # Not in the search PATH,
13329					         # but as the default
13330					         # location of the library.
13331            ;;
13332        esac
13333
13334        case $cc_basename in
13335          CC*)
13336	    # FIXME: insert proper C++ library support
13337	    ld_shlibs_CXX=no
13338	    ;;
13339          aCC*)
13340	    case $host_cpu in
13341	      hppa*64*)
13342	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13343	        ;;
13344	      ia64*)
13345	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13346	        ;;
13347	      *)
13348	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13349	        ;;
13350	    esac
13351	    # Commands to make compiler produce verbose output that lists
13352	    # what "hidden" libraries, object files and flags are used when
13353	    # linking a shared library.
13354	    #
13355	    # There doesn't appear to be a way to prevent this compiler from
13356	    # explicitly linking system object files so we need to strip them
13357	    # from the output so that they don't get included in the library
13358	    # dependencies.
13359	    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"'
13360	    ;;
13361          *)
13362	    if test "$GXX" = yes; then
13363	      if test $with_gnu_ld = no; then
13364	        case $host_cpu in
13365	          hppa*64*)
13366	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13367	            ;;
13368	          ia64*)
13369	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13370	            ;;
13371	          *)
13372	            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'
13373	            ;;
13374	        esac
13375	      fi
13376	    else
13377	      # FIXME: insert proper C++ library support
13378	      ld_shlibs_CXX=no
13379	    fi
13380	    ;;
13381        esac
13382        ;;
13383
13384      interix[3-9]*)
13385	hardcode_direct_CXX=no
13386	hardcode_shlibpath_var_CXX=no
13387	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13388	export_dynamic_flag_spec_CXX='${wl}-E'
13389	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13390	# Instead, shared libraries are loaded at an image base (0x10000000 by
13391	# default) and relocated if they conflict, which is a slow very memory
13392	# consuming and fragmenting process.  To avoid this, we pick a random,
13393	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13394	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13395	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'
13396	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'
13397	;;
13398      irix5* | irix6*)
13399        case $cc_basename in
13400          CC*)
13401	    # SGI C++
13402	    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'
13403
13404	    # Archives containing C++ object files must be created using
13405	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13406	    # necessary to make sure instantiated templates are included
13407	    # in the archive.
13408	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13409	    ;;
13410          *)
13411	    if test "$GXX" = yes; then
13412	      if test "$with_gnu_ld" = no; then
13413	        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'
13414	      else
13415	        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'
13416	      fi
13417	    fi
13418	    link_all_deplibs_CXX=yes
13419	    ;;
13420        esac
13421        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13422        hardcode_libdir_separator_CXX=:
13423        inherit_rpath_CXX=yes
13424        ;;
13425
13426      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13427        case $cc_basename in
13428          KCC*)
13429	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13430
13431	    # KCC will only create a shared library if the output file
13432	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13433	    # to its proper name (with version) after linking.
13434	    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'
13435	    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'
13436	    # Commands to make compiler produce verbose output that lists
13437	    # what "hidden" libraries, object files and flags are used when
13438	    # linking a shared library.
13439	    #
13440	    # There doesn't appear to be a way to prevent this compiler from
13441	    # explicitly linking system object files so we need to strip them
13442	    # from the output so that they don't get included in the library
13443	    # dependencies.
13444	    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"'
13445
13446	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13448
13449	    # Archives containing C++ object files must be created using
13450	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13451	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13452	    ;;
13453	  icpc* | ecpc* )
13454	    # Intel C++
13455	    with_gnu_ld=yes
13456	    # version 8.0 and above of icpc choke on multiply defined symbols
13457	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13458	    # earlier do not add the objects themselves.
13459	    case `$CC -V 2>&1` in
13460	      *"Version 7."*)
13461	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462		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'
13463		;;
13464	      *)  # Version 8.0 or newer
13465	        tmp_idyn=
13466	        case $host_cpu in
13467		  ia64*) tmp_idyn=' -i_dynamic';;
13468		esac
13469	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470		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'
13471		;;
13472	    esac
13473	    archive_cmds_need_lc_CXX=no
13474	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13475	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13476	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13477	    ;;
13478          pgCC* | pgcpp*)
13479            # Portland Group C++ compiler
13480	    case `$CC -V` in
13481	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13482	      prelink_cmds_CXX='tpldir=Template.dir~
13483		rm -rf $tpldir~
13484		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13485		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13486	      old_archive_cmds_CXX='tpldir=Template.dir~
13487		rm -rf $tpldir~
13488		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13489		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13490		$RANLIB $oldlib'
13491	      archive_cmds_CXX='tpldir=Template.dir~
13492		rm -rf $tpldir~
13493		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13494		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13495	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13496		rm -rf $tpldir~
13497		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13498		$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'
13499	      ;;
13500	    *) # Version 6 and above use weak symbols
13501	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13502	      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'
13503	      ;;
13504	    esac
13505
13506	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13507	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13508	    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'
13509            ;;
13510	  cxx*)
13511	    # Compaq C++
13512	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513	    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'
13514
13515	    runpath_var=LD_RUN_PATH
13516	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13517	    hardcode_libdir_separator_CXX=:
13518
13519	    # Commands to make compiler produce verbose output that lists
13520	    # what "hidden" libraries, object files and flags are used when
13521	    # linking a shared library.
13522	    #
13523	    # There doesn't appear to be a way to prevent this compiler from
13524	    # explicitly linking system object files so we need to strip them
13525	    # from the output so that they don't get included in the library
13526	    # dependencies.
13527	    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'
13528	    ;;
13529	  xl* | mpixl* | bgxl*)
13530	    # IBM XL 8.0 on PPC, with GNU ld
13531	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13532	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13533	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13534	    if test "x$supports_anon_versioning" = xyes; then
13535	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13536		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13537		echo "local: *; };" >> $output_objdir/$libname.ver~
13538		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13539	    fi
13540	    ;;
13541	  *)
13542	    case `$CC -V 2>&1 | sed 5q` in
13543	    *Sun\ C*)
13544	      # Sun C++ 5.9
13545	      no_undefined_flag_CXX=' -zdefs'
13546	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13547	      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'
13548	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13549	      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'
13550	      compiler_needs_object_CXX=yes
13551
13552	      # Not sure whether something based on
13553	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13554	      # would be better.
13555	      output_verbose_link_cmd='func_echo_all'
13556
13557	      # Archives containing C++ object files must be created using
13558	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13559	      # necessary to make sure instantiated templates are included
13560	      # in the archive.
13561	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13562	      ;;
13563	    esac
13564	    ;;
13565	esac
13566	;;
13567
13568      lynxos*)
13569        # FIXME: insert proper C++ library support
13570	ld_shlibs_CXX=no
13571	;;
13572
13573      m88k*)
13574        # FIXME: insert proper C++ library support
13575        ld_shlibs_CXX=no
13576	;;
13577
13578      mvs*)
13579        case $cc_basename in
13580          cxx*)
13581	    # FIXME: insert proper C++ library support
13582	    ld_shlibs_CXX=no
13583	    ;;
13584	  *)
13585	    # FIXME: insert proper C++ library support
13586	    ld_shlibs_CXX=no
13587	    ;;
13588	esac
13589	;;
13590
13591      netbsd*)
13592        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13593	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13594	  wlarc=
13595	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13596	  hardcode_direct_CXX=yes
13597	  hardcode_shlibpath_var_CXX=no
13598	fi
13599	# Workaround some broken pre-1.5 toolchains
13600	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13601	;;
13602
13603      *nto* | *qnx*)
13604        ld_shlibs_CXX=yes
13605	;;
13606
13607      openbsd2*)
13608        # C++ shared libraries are fairly broken
13609	ld_shlibs_CXX=no
13610	;;
13611
13612      openbsd*)
13613	if test -f /usr/libexec/ld.so; then
13614	  hardcode_direct_CXX=yes
13615	  hardcode_shlibpath_var_CXX=no
13616	  hardcode_direct_absolute_CXX=yes
13617	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13618	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13619	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13620	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13621	    export_dynamic_flag_spec_CXX='${wl}-E'
13622	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13623	  fi
13624	  output_verbose_link_cmd=func_echo_all
13625	else
13626	  ld_shlibs_CXX=no
13627	fi
13628	;;
13629
13630      osf3* | osf4* | osf5*)
13631        case $cc_basename in
13632          KCC*)
13633	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13634
13635	    # KCC will only create a shared library if the output file
13636	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13637	    # to its proper name (with version) after linking.
13638	    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'
13639
13640	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13641	    hardcode_libdir_separator_CXX=:
13642
13643	    # Archives containing C++ object files must be created using
13644	    # the KAI C++ compiler.
13645	    case $host in
13646	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13647	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13648	    esac
13649	    ;;
13650          RCC*)
13651	    # Rational C++ 2.4.1
13652	    # FIXME: insert proper C++ library support
13653	    ld_shlibs_CXX=no
13654	    ;;
13655          cxx*)
13656	    case $host in
13657	      osf3*)
13658	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13659	        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'
13660	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13661		;;
13662	      *)
13663	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13664	        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'
13665	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13666	          echo "-hidden">> $lib.exp~
13667	          $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~
13668	          $RM $lib.exp'
13669	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13670		;;
13671	    esac
13672
13673	    hardcode_libdir_separator_CXX=:
13674
13675	    # Commands to make compiler produce verbose output that lists
13676	    # what "hidden" libraries, object files and flags are used when
13677	    # linking a shared library.
13678	    #
13679	    # There doesn't appear to be a way to prevent this compiler from
13680	    # explicitly linking system object files so we need to strip them
13681	    # from the output so that they don't get included in the library
13682	    # dependencies.
13683	    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"'
13684	    ;;
13685	  *)
13686	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13687	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13688	      case $host in
13689	        osf3*)
13690	          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'
13691		  ;;
13692	        *)
13693	          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'
13694		  ;;
13695	      esac
13696
13697	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13698	      hardcode_libdir_separator_CXX=:
13699
13700	      # Commands to make compiler produce verbose output that lists
13701	      # what "hidden" libraries, object files and flags are used when
13702	      # linking a shared library.
13703	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13704
13705	    else
13706	      # FIXME: insert proper C++ library support
13707	      ld_shlibs_CXX=no
13708	    fi
13709	    ;;
13710        esac
13711        ;;
13712
13713      psos*)
13714        # FIXME: insert proper C++ library support
13715        ld_shlibs_CXX=no
13716        ;;
13717
13718      sunos4*)
13719        case $cc_basename in
13720          CC*)
13721	    # Sun C++ 4.x
13722	    # FIXME: insert proper C++ library support
13723	    ld_shlibs_CXX=no
13724	    ;;
13725          lcc*)
13726	    # Lucid
13727	    # FIXME: insert proper C++ library support
13728	    ld_shlibs_CXX=no
13729	    ;;
13730          *)
13731	    # FIXME: insert proper C++ library support
13732	    ld_shlibs_CXX=no
13733	    ;;
13734        esac
13735        ;;
13736
13737      solaris*)
13738        case $cc_basename in
13739          CC* | sunCC*)
13740	    # Sun C++ 4.2, 5.x and Centerline C++
13741            archive_cmds_need_lc_CXX=yes
13742	    no_undefined_flag_CXX=' -zdefs'
13743	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13744	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745	      $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'
13746
13747	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13748	    hardcode_shlibpath_var_CXX=no
13749	    case $host_os in
13750	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13751	      *)
13752		# The compiler driver will combine and reorder linker options,
13753		# but understands `-z linker_flag'.
13754	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13755		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13756	        ;;
13757	    esac
13758	    link_all_deplibs_CXX=yes
13759
13760	    output_verbose_link_cmd='func_echo_all'
13761
13762	    # Archives containing C++ object files must be created using
13763	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13764	    # necessary to make sure instantiated templates are included
13765	    # in the archive.
13766	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13767	    ;;
13768          gcx*)
13769	    # Green Hills C++ Compiler
13770	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13771
13772	    # The C++ compiler must be used to create the archive.
13773	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13774	    ;;
13775          *)
13776	    # GNU C++ compiler with Solaris linker
13777	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13778	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13779	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13780	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13781	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13782		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13783
13784	        # Commands to make compiler produce verbose output that lists
13785	        # what "hidden" libraries, object files and flags are used when
13786	        # linking a shared library.
13787	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13788	      else
13789	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13790	        # platform.
13791	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13792	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13793		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13794
13795	        # Commands to make compiler produce verbose output that lists
13796	        # what "hidden" libraries, object files and flags are used when
13797	        # linking a shared library.
13798	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13799	      fi
13800
13801	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13802	      case $host_os in
13803		solaris2.[0-5] | solaris2.[0-5].*) ;;
13804		*)
13805		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13806		  ;;
13807	      esac
13808	    fi
13809	    ;;
13810        esac
13811        ;;
13812
13813    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13814      no_undefined_flag_CXX='${wl}-z,text'
13815      archive_cmds_need_lc_CXX=no
13816      hardcode_shlibpath_var_CXX=no
13817      runpath_var='LD_RUN_PATH'
13818
13819      case $cc_basename in
13820        CC*)
13821	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823	  ;;
13824	*)
13825	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827	  ;;
13828      esac
13829      ;;
13830
13831      sysv5* | sco3.2v5* | sco5v6*)
13832	# Note: We can NOT use -z defs as we might desire, because we do not
13833	# link with -lc, and that would cause any symbols used from libc to
13834	# always be unresolved, which means just about no library would
13835	# ever link correctly.  If we're not using GNU ld we use -z text
13836	# though, which does catch some bad symbols but isn't as heavy-handed
13837	# as -z defs.
13838	no_undefined_flag_CXX='${wl}-z,text'
13839	allow_undefined_flag_CXX='${wl}-z,nodefs'
13840	archive_cmds_need_lc_CXX=no
13841	hardcode_shlibpath_var_CXX=no
13842	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13843	hardcode_libdir_separator_CXX=':'
13844	link_all_deplibs_CXX=yes
13845	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13846	runpath_var='LD_RUN_PATH'
13847
13848	case $cc_basename in
13849          CC*)
13850	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13853	      '"$old_archive_cmds_CXX"
13854	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13855	      '"$reload_cmds_CXX"
13856	    ;;
13857	  *)
13858	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13859	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860	    ;;
13861	esac
13862      ;;
13863
13864      tandem*)
13865        case $cc_basename in
13866          NCC*)
13867	    # NonStop-UX NCC 3.20
13868	    # FIXME: insert proper C++ library support
13869	    ld_shlibs_CXX=no
13870	    ;;
13871          *)
13872	    # FIXME: insert proper C++ library support
13873	    ld_shlibs_CXX=no
13874	    ;;
13875        esac
13876        ;;
13877
13878      vxworks*)
13879        # FIXME: insert proper C++ library support
13880        ld_shlibs_CXX=no
13881        ;;
13882
13883      *)
13884        # FIXME: insert proper C++ library support
13885        ld_shlibs_CXX=no
13886        ;;
13887    esac
13888
13889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13890$as_echo "$ld_shlibs_CXX" >&6; }
13891    test "$ld_shlibs_CXX" = no && can_build_shared=no
13892
13893    GCC_CXX="$GXX"
13894    LD_CXX="$LD"
13895
13896    ## CAVEAT EMPTOR:
13897    ## There is no encapsulation within the following macros, do not change
13898    ## the running order or otherwise move them around unless you know exactly
13899    ## what you are doing...
13900    # Dependencies to place before and after the object being linked:
13901predep_objects_CXX=
13902postdep_objects_CXX=
13903predeps_CXX=
13904postdeps_CXX=
13905compiler_lib_search_path_CXX=
13906
13907cat > conftest.$ac_ext <<_LT_EOF
13908class Foo
13909{
13910public:
13911  Foo (void) { a = 0; }
13912private:
13913  int a;
13914};
13915_LT_EOF
13916
13917
13918_lt_libdeps_save_CFLAGS=$CFLAGS
13919case "$CC $CFLAGS " in #(
13920*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13921*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13922*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13923esac
13924
13925if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13926  (eval $ac_compile) 2>&5
13927  ac_status=$?
13928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929  test $ac_status = 0; }; then
13930  # Parse the compiler output and extract the necessary
13931  # objects, libraries and library flags.
13932
13933  # Sentinel used to keep track of whether or not we are before
13934  # the conftest object file.
13935  pre_test_object_deps_done=no
13936
13937  for p in `eval "$output_verbose_link_cmd"`; do
13938    case ${prev}${p} in
13939
13940    -L* | -R* | -l*)
13941       # Some compilers place space between "-{L,R}" and the path.
13942       # Remove the space.
13943       if test $p = "-L" ||
13944          test $p = "-R"; then
13945	 prev=$p
13946	 continue
13947       fi
13948
13949       # Expand the sysroot to ease extracting the directories later.
13950       if test -z "$prev"; then
13951         case $p in
13952         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13953         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13954         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13955         esac
13956       fi
13957       case $p in
13958       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13959       esac
13960       if test "$pre_test_object_deps_done" = no; then
13961	 case ${prev} in
13962	 -L | -R)
13963	   # Internal compiler library paths should come after those
13964	   # provided the user.  The postdeps already come after the
13965	   # user supplied libs so there is no need to process them.
13966	   if test -z "$compiler_lib_search_path_CXX"; then
13967	     compiler_lib_search_path_CXX="${prev}${p}"
13968	   else
13969	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13970	   fi
13971	   ;;
13972	 # The "-l" case would never come before the object being
13973	 # linked, so don't bother handling this case.
13974	 esac
13975       else
13976	 if test -z "$postdeps_CXX"; then
13977	   postdeps_CXX="${prev}${p}"
13978	 else
13979	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13980	 fi
13981       fi
13982       prev=
13983       ;;
13984
13985    *.lto.$objext) ;; # Ignore GCC LTO objects
13986    *.$objext)
13987       # This assumes that the test object file only shows up
13988       # once in the compiler output.
13989       if test "$p" = "conftest.$objext"; then
13990	 pre_test_object_deps_done=yes
13991	 continue
13992       fi
13993
13994       if test "$pre_test_object_deps_done" = no; then
13995	 if test -z "$predep_objects_CXX"; then
13996	   predep_objects_CXX="$p"
13997	 else
13998	   predep_objects_CXX="$predep_objects_CXX $p"
13999	 fi
14000       else
14001	 if test -z "$postdep_objects_CXX"; then
14002	   postdep_objects_CXX="$p"
14003	 else
14004	   postdep_objects_CXX="$postdep_objects_CXX $p"
14005	 fi
14006       fi
14007       ;;
14008
14009    *) ;; # Ignore the rest.
14010
14011    esac
14012  done
14013
14014  # Clean up.
14015  rm -f a.out a.exe
14016else
14017  echo "libtool.m4: error: problem compiling CXX test program"
14018fi
14019
14020$RM -f confest.$objext
14021CFLAGS=$_lt_libdeps_save_CFLAGS
14022
14023# PORTME: override above test on systems where it is broken
14024case $host_os in
14025interix[3-9]*)
14026  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14027  # hack all around it, let's just trust "g++" to DTRT.
14028  predep_objects_CXX=
14029  postdep_objects_CXX=
14030  postdeps_CXX=
14031  ;;
14032
14033linux*)
14034  case `$CC -V 2>&1 | sed 5q` in
14035  *Sun\ C*)
14036    # Sun C++ 5.9
14037
14038    # The more standards-conforming stlport4 library is
14039    # incompatible with the Cstd library. Avoid specifying
14040    # it if it's in CXXFLAGS. Ignore libCrun as
14041    # -library=stlport4 depends on it.
14042    case " $CXX $CXXFLAGS " in
14043    *" -library=stlport4 "*)
14044      solaris_use_stlport4=yes
14045      ;;
14046    esac
14047
14048    if test "$solaris_use_stlport4" != yes; then
14049      postdeps_CXX='-library=Cstd -library=Crun'
14050    fi
14051    ;;
14052  esac
14053  ;;
14054
14055solaris*)
14056  case $cc_basename in
14057  CC* | sunCC*)
14058    # The more standards-conforming stlport4 library is
14059    # incompatible with the Cstd library. Avoid specifying
14060    # it if it's in CXXFLAGS. Ignore libCrun as
14061    # -library=stlport4 depends on it.
14062    case " $CXX $CXXFLAGS " in
14063    *" -library=stlport4 "*)
14064      solaris_use_stlport4=yes
14065      ;;
14066    esac
14067
14068    # Adding this requires a known-good setup of shared libraries for
14069    # Sun compiler versions before 5.6, else PIC objects from an old
14070    # archive will be linked into the output, leading to subtle bugs.
14071    if test "$solaris_use_stlport4" != yes; then
14072      postdeps_CXX='-library=Cstd -library=Crun'
14073    fi
14074    ;;
14075  esac
14076  ;;
14077esac
14078
14079
14080case " $postdeps_CXX " in
14081*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14082esac
14083 compiler_lib_search_dirs_CXX=
14084if test -n "${compiler_lib_search_path_CXX}"; then
14085 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14086fi
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118    lt_prog_compiler_wl_CXX=
14119lt_prog_compiler_pic_CXX=
14120lt_prog_compiler_static_CXX=
14121
14122
14123  # C++ specific cases for pic, static, wl, etc.
14124  if test "$GXX" = yes; then
14125    lt_prog_compiler_wl_CXX='-Wl,'
14126    lt_prog_compiler_static_CXX='-static'
14127
14128    case $host_os in
14129    aix*)
14130      # All AIX code is PIC.
14131      if test "$host_cpu" = ia64; then
14132	# AIX 5 now supports IA64 processor
14133	lt_prog_compiler_static_CXX='-Bstatic'
14134      fi
14135      ;;
14136
14137    amigaos*)
14138      case $host_cpu in
14139      powerpc)
14140            # see comment about AmigaOS4 .so support
14141            lt_prog_compiler_pic_CXX='-fPIC'
14142        ;;
14143      m68k)
14144            # FIXME: we need at least 68020 code to build shared libraries, but
14145            # adding the `-m68020' flag to GCC prevents building anything better,
14146            # like `-m68040'.
14147            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14148        ;;
14149      esac
14150      ;;
14151
14152    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14153      # PIC is the default for these OSes.
14154      ;;
14155    mingw* | cygwin* | os2* | pw32* | cegcc*)
14156      # This hack is so that the source file can tell whether it is being
14157      # built for inclusion in a dll (and should export symbols for example).
14158      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14159      # (--disable-auto-import) libraries
14160      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14161      ;;
14162    darwin* | rhapsody*)
14163      # PIC is the default on this platform
14164      # Common symbols not allowed in MH_DYLIB files
14165      lt_prog_compiler_pic_CXX='-fno-common'
14166      ;;
14167    *djgpp*)
14168      # DJGPP does not support shared libraries at all
14169      lt_prog_compiler_pic_CXX=
14170      ;;
14171    haiku*)
14172      # PIC is the default for Haiku.
14173      # The "-static" flag exists, but is broken.
14174      lt_prog_compiler_static_CXX=
14175      ;;
14176    interix[3-9]*)
14177      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14178      # Instead, we relocate shared libraries at runtime.
14179      ;;
14180    sysv4*MP*)
14181      if test -d /usr/nec; then
14182	lt_prog_compiler_pic_CXX=-Kconform_pic
14183      fi
14184      ;;
14185    hpux*)
14186      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14187      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14188      # sets the default TLS model and affects inlining.
14189      case $host_cpu in
14190      hppa*64*)
14191	;;
14192      *)
14193	lt_prog_compiler_pic_CXX='-fPIC'
14194	;;
14195      esac
14196      ;;
14197    *qnx* | *nto*)
14198      # QNX uses GNU C++, but need to define -shared option too, otherwise
14199      # it will coredump.
14200      lt_prog_compiler_pic_CXX='-fPIC -shared'
14201      ;;
14202    *)
14203      lt_prog_compiler_pic_CXX='-fPIC'
14204      ;;
14205    esac
14206  else
14207    case $host_os in
14208      aix[4-9]*)
14209	# All AIX code is PIC.
14210	if test "$host_cpu" = ia64; then
14211	  # AIX 5 now supports IA64 processor
14212	  lt_prog_compiler_static_CXX='-Bstatic'
14213	else
14214	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14215	fi
14216	;;
14217      chorus*)
14218	case $cc_basename in
14219	cxch68*)
14220	  # Green Hills C++ Compiler
14221	  # _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"
14222	  ;;
14223	esac
14224	;;
14225      mingw* | cygwin* | os2* | pw32* | cegcc*)
14226	# This hack is so that the source file can tell whether it is being
14227	# built for inclusion in a dll (and should export symbols for example).
14228	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14229	;;
14230      dgux*)
14231	case $cc_basename in
14232	  ec++*)
14233	    lt_prog_compiler_pic_CXX='-KPIC'
14234	    ;;
14235	  ghcx*)
14236	    # Green Hills C++ Compiler
14237	    lt_prog_compiler_pic_CXX='-pic'
14238	    ;;
14239	  *)
14240	    ;;
14241	esac
14242	;;
14243      freebsd* | dragonfly*)
14244	# FreeBSD uses GNU C++
14245	;;
14246      hpux9* | hpux10* | hpux11*)
14247	case $cc_basename in
14248	  CC*)
14249	    lt_prog_compiler_wl_CXX='-Wl,'
14250	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14251	    if test "$host_cpu" != ia64; then
14252	      lt_prog_compiler_pic_CXX='+Z'
14253	    fi
14254	    ;;
14255	  aCC*)
14256	    lt_prog_compiler_wl_CXX='-Wl,'
14257	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14258	    case $host_cpu in
14259	    hppa*64*|ia64*)
14260	      # +Z the default
14261	      ;;
14262	    *)
14263	      lt_prog_compiler_pic_CXX='+Z'
14264	      ;;
14265	    esac
14266	    ;;
14267	  *)
14268	    ;;
14269	esac
14270	;;
14271      interix*)
14272	# This is c89, which is MS Visual C++ (no shared libs)
14273	# Anyone wants to do a port?
14274	;;
14275      irix5* | irix6* | nonstopux*)
14276	case $cc_basename in
14277	  CC*)
14278	    lt_prog_compiler_wl_CXX='-Wl,'
14279	    lt_prog_compiler_static_CXX='-non_shared'
14280	    # CC pic flag -KPIC is the default.
14281	    ;;
14282	  *)
14283	    ;;
14284	esac
14285	;;
14286      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14287	case $cc_basename in
14288	  KCC*)
14289	    # KAI C++ Compiler
14290	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14291	    lt_prog_compiler_pic_CXX='-fPIC'
14292	    ;;
14293	  ecpc* )
14294	    # old Intel C++ for x86_64 which still supported -KPIC.
14295	    lt_prog_compiler_wl_CXX='-Wl,'
14296	    lt_prog_compiler_pic_CXX='-KPIC'
14297	    lt_prog_compiler_static_CXX='-static'
14298	    ;;
14299	  icpc* )
14300	    # Intel C++, used to be incompatible with GCC.
14301	    # ICC 10 doesn't accept -KPIC any more.
14302	    lt_prog_compiler_wl_CXX='-Wl,'
14303	    lt_prog_compiler_pic_CXX='-fPIC'
14304	    lt_prog_compiler_static_CXX='-static'
14305	    ;;
14306	  pgCC* | pgcpp*)
14307	    # Portland Group C++ compiler
14308	    lt_prog_compiler_wl_CXX='-Wl,'
14309	    lt_prog_compiler_pic_CXX='-fpic'
14310	    lt_prog_compiler_static_CXX='-Bstatic'
14311	    ;;
14312	  cxx*)
14313	    # Compaq C++
14314	    # Make sure the PIC flag is empty.  It appears that all Alpha
14315	    # Linux and Compaq Tru64 Unix objects are PIC.
14316	    lt_prog_compiler_pic_CXX=
14317	    lt_prog_compiler_static_CXX='-non_shared'
14318	    ;;
14319	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14320	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14321	    lt_prog_compiler_wl_CXX='-Wl,'
14322	    lt_prog_compiler_pic_CXX='-qpic'
14323	    lt_prog_compiler_static_CXX='-qstaticlink'
14324	    ;;
14325	  *)
14326	    case `$CC -V 2>&1 | sed 5q` in
14327	    *Sun\ C*)
14328	      # Sun C++ 5.9
14329	      lt_prog_compiler_pic_CXX='-KPIC'
14330	      lt_prog_compiler_static_CXX='-Bstatic'
14331	      lt_prog_compiler_wl_CXX='-Qoption ld '
14332	      ;;
14333	    esac
14334	    ;;
14335	esac
14336	;;
14337      lynxos*)
14338	;;
14339      m88k*)
14340	;;
14341      mvs*)
14342	case $cc_basename in
14343	  cxx*)
14344	    lt_prog_compiler_pic_CXX='-W c,exportall'
14345	    ;;
14346	  *)
14347	    ;;
14348	esac
14349	;;
14350      netbsd* | netbsdelf*-gnu)
14351	;;
14352      *qnx* | *nto*)
14353        # QNX uses GNU C++, but need to define -shared option too, otherwise
14354        # it will coredump.
14355        lt_prog_compiler_pic_CXX='-fPIC -shared'
14356        ;;
14357      osf3* | osf4* | osf5*)
14358	case $cc_basename in
14359	  KCC*)
14360	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14361	    ;;
14362	  RCC*)
14363	    # Rational C++ 2.4.1
14364	    lt_prog_compiler_pic_CXX='-pic'
14365	    ;;
14366	  cxx*)
14367	    # Digital/Compaq C++
14368	    lt_prog_compiler_wl_CXX='-Wl,'
14369	    # Make sure the PIC flag is empty.  It appears that all Alpha
14370	    # Linux and Compaq Tru64 Unix objects are PIC.
14371	    lt_prog_compiler_pic_CXX=
14372	    lt_prog_compiler_static_CXX='-non_shared'
14373	    ;;
14374	  *)
14375	    ;;
14376	esac
14377	;;
14378      psos*)
14379	;;
14380      solaris*)
14381	case $cc_basename in
14382	  CC* | sunCC*)
14383	    # Sun C++ 4.2, 5.x and Centerline C++
14384	    lt_prog_compiler_pic_CXX='-KPIC'
14385	    lt_prog_compiler_static_CXX='-Bstatic'
14386	    lt_prog_compiler_wl_CXX='-Qoption ld '
14387	    ;;
14388	  gcx*)
14389	    # Green Hills C++ Compiler
14390	    lt_prog_compiler_pic_CXX='-PIC'
14391	    ;;
14392	  *)
14393	    ;;
14394	esac
14395	;;
14396      sunos4*)
14397	case $cc_basename in
14398	  CC*)
14399	    # Sun C++ 4.x
14400	    lt_prog_compiler_pic_CXX='-pic'
14401	    lt_prog_compiler_static_CXX='-Bstatic'
14402	    ;;
14403	  lcc*)
14404	    # Lucid
14405	    lt_prog_compiler_pic_CXX='-pic'
14406	    ;;
14407	  *)
14408	    ;;
14409	esac
14410	;;
14411      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14412	case $cc_basename in
14413	  CC*)
14414	    lt_prog_compiler_wl_CXX='-Wl,'
14415	    lt_prog_compiler_pic_CXX='-KPIC'
14416	    lt_prog_compiler_static_CXX='-Bstatic'
14417	    ;;
14418	esac
14419	;;
14420      tandem*)
14421	case $cc_basename in
14422	  NCC*)
14423	    # NonStop-UX NCC 3.20
14424	    lt_prog_compiler_pic_CXX='-KPIC'
14425	    ;;
14426	  *)
14427	    ;;
14428	esac
14429	;;
14430      vxworks*)
14431	;;
14432      *)
14433	lt_prog_compiler_can_build_shared_CXX=no
14434	;;
14435    esac
14436  fi
14437
14438case $host_os in
14439  # For platforms which do not support PIC, -DPIC is meaningless:
14440  *djgpp*)
14441    lt_prog_compiler_pic_CXX=
14442    ;;
14443  *)
14444    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14445    ;;
14446esac
14447
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14449$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14450if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14451  $as_echo_n "(cached) " >&6
14452else
14453  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14454fi
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14456$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14457lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14458
14459#
14460# Check to make sure the PIC flag actually works.
14461#
14462if test -n "$lt_prog_compiler_pic_CXX"; then
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14464$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14465if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14466  $as_echo_n "(cached) " >&6
14467else
14468  lt_cv_prog_compiler_pic_works_CXX=no
14469   ac_outfile=conftest.$ac_objext
14470   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14472   # Insert the option either (1) after the last *FLAGS variable, or
14473   # (2) before a word containing "conftest.", or (3) at the end.
14474   # Note that $ac_compile itself does not contain backslashes and begins
14475   # with a dollar sign (not a hyphen), so the echo should work correctly.
14476   # The option is referenced via a variable to avoid confusing sed.
14477   lt_compile=`echo "$ac_compile" | $SED \
14478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480   -e 's:$: $lt_compiler_flag:'`
14481   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14482   (eval "$lt_compile" 2>conftest.err)
14483   ac_status=$?
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   if (exit $ac_status) && test -s "$ac_outfile"; then
14487     # The compiler can only warn and ignore the option if not recognized
14488     # So say no if there are warnings other than the usual output.
14489     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14490     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14491     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14492       lt_cv_prog_compiler_pic_works_CXX=yes
14493     fi
14494   fi
14495   $RM conftest*
14496
14497fi
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14499$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14500
14501if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14502    case $lt_prog_compiler_pic_CXX in
14503     "" | " "*) ;;
14504     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14505     esac
14506else
14507    lt_prog_compiler_pic_CXX=
14508     lt_prog_compiler_can_build_shared_CXX=no
14509fi
14510
14511fi
14512
14513
14514
14515
14516
14517#
14518# Check to make sure the static flag actually works.
14519#
14520wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14523if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14524  $as_echo_n "(cached) " >&6
14525else
14526  lt_cv_prog_compiler_static_works_CXX=no
14527   save_LDFLAGS="$LDFLAGS"
14528   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14530   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531     # The linker can only warn and ignore the option if not recognized
14532     # So say no if there are warnings
14533     if test -s conftest.err; then
14534       # Append any errors to the config.log.
14535       cat conftest.err 1>&5
14536       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14537       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538       if diff conftest.exp conftest.er2 >/dev/null; then
14539         lt_cv_prog_compiler_static_works_CXX=yes
14540       fi
14541     else
14542       lt_cv_prog_compiler_static_works_CXX=yes
14543     fi
14544   fi
14545   $RM -r conftest*
14546   LDFLAGS="$save_LDFLAGS"
14547
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14550$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14551
14552if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14553    :
14554else
14555    lt_prog_compiler_static_CXX=
14556fi
14557
14558
14559
14560
14561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14562$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14563if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14564  $as_echo_n "(cached) " >&6
14565else
14566  lt_cv_prog_compiler_c_o_CXX=no
14567   $RM -r conftest 2>/dev/null
14568   mkdir conftest
14569   cd conftest
14570   mkdir out
14571   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572
14573   lt_compiler_flag="-o out/conftest2.$ac_objext"
14574   # Insert the option either (1) after the last *FLAGS variable, or
14575   # (2) before a word containing "conftest.", or (3) at the end.
14576   # Note that $ac_compile itself does not contain backslashes and begins
14577   # with a dollar sign (not a hyphen), so the echo should work correctly.
14578   lt_compile=`echo "$ac_compile" | $SED \
14579   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581   -e 's:$: $lt_compiler_flag:'`
14582   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14583   (eval "$lt_compile" 2>out/conftest.err)
14584   ac_status=$?
14585   cat out/conftest.err >&5
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14588   then
14589     # The compiler can only warn and ignore the option if not recognized
14590     # So say no if there are warnings
14591     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14592     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14593     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14594       lt_cv_prog_compiler_c_o_CXX=yes
14595     fi
14596   fi
14597   chmod u+w . 2>&5
14598   $RM conftest*
14599   # SGI C++ compiler will create directory out/ii_files/ for
14600   # template instantiation
14601   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14602   $RM out/* && rmdir out
14603   cd ..
14604   $RM -r conftest
14605   $RM conftest*
14606
14607fi
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14609$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14610
14611
14612
14613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14615if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14616  $as_echo_n "(cached) " >&6
14617else
14618  lt_cv_prog_compiler_c_o_CXX=no
14619   $RM -r conftest 2>/dev/null
14620   mkdir conftest
14621   cd conftest
14622   mkdir out
14623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624
14625   lt_compiler_flag="-o out/conftest2.$ac_objext"
14626   # Insert the option either (1) after the last *FLAGS variable, or
14627   # (2) before a word containing "conftest.", or (3) at the end.
14628   # Note that $ac_compile itself does not contain backslashes and begins
14629   # with a dollar sign (not a hyphen), so the echo should work correctly.
14630   lt_compile=`echo "$ac_compile" | $SED \
14631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14633   -e 's:$: $lt_compiler_flag:'`
14634   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14635   (eval "$lt_compile" 2>out/conftest.err)
14636   ac_status=$?
14637   cat out/conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14640   then
14641     # The compiler can only warn and ignore the option if not recognized
14642     # So say no if there are warnings
14643     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14644     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14645     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14646       lt_cv_prog_compiler_c_o_CXX=yes
14647     fi
14648   fi
14649   chmod u+w . 2>&5
14650   $RM conftest*
14651   # SGI C++ compiler will create directory out/ii_files/ for
14652   # template instantiation
14653   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14654   $RM out/* && rmdir out
14655   cd ..
14656   $RM -r conftest
14657   $RM conftest*
14658
14659fi
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14661$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14662
14663
14664
14665
14666hard_links="nottested"
14667if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14668  # do not overwrite the value of need_locks provided by the user
14669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14670$as_echo_n "checking if we can lock with hard links... " >&6; }
14671  hard_links=yes
14672  $RM conftest*
14673  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14674  touch conftest.a
14675  ln conftest.a conftest.b 2>&5 || hard_links=no
14676  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14678$as_echo "$hard_links" >&6; }
14679  if test "$hard_links" = no; then
14680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14681$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14682    need_locks=warn
14683  fi
14684else
14685  need_locks=no
14686fi
14687
14688
14689
14690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14691$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14692
14693  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14694  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14695  case $host_os in
14696  aix[4-9]*)
14697    # If we're using GNU nm, then we don't want the "-C" option.
14698    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14699    # Also, AIX nm treats weak defined symbols like other global defined
14700    # symbols, whereas GNU nm marks them as "W".
14701    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14702      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'
14703    else
14704      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'
14705    fi
14706    ;;
14707  pw32*)
14708    export_symbols_cmds_CXX="$ltdll_cmds"
14709    ;;
14710  cygwin* | mingw* | cegcc*)
14711    case $cc_basename in
14712    cl*)
14713      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14714      ;;
14715    *)
14716      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'
14717      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14718      ;;
14719    esac
14720    ;;
14721  linux* | k*bsd*-gnu | gnu*)
14722    link_all_deplibs_CXX=no
14723    ;;
14724  *)
14725    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14726    ;;
14727  esac
14728
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14730$as_echo "$ld_shlibs_CXX" >&6; }
14731test "$ld_shlibs_CXX" = no && can_build_shared=no
14732
14733with_gnu_ld_CXX=$with_gnu_ld
14734
14735
14736
14737
14738
14739
14740#
14741# Do we need to explicitly link libc?
14742#
14743case "x$archive_cmds_need_lc_CXX" in
14744x|xyes)
14745  # Assume -lc should be added
14746  archive_cmds_need_lc_CXX=yes
14747
14748  if test "$enable_shared" = yes && test "$GCC" = yes; then
14749    case $archive_cmds_CXX in
14750    *'~'*)
14751      # FIXME: we may have to deal with multi-command sequences.
14752      ;;
14753    '$CC '*)
14754      # Test whether the compiler implicitly links with -lc since on some
14755      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14756      # to ld, don't add -lc before -lgcc.
14757      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14758$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14759if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14760  $as_echo_n "(cached) " >&6
14761else
14762  $RM conftest*
14763	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14764
14765	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766  (eval $ac_compile) 2>&5
14767  ac_status=$?
14768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769  test $ac_status = 0; } 2>conftest.err; then
14770	  soname=conftest
14771	  lib=conftest
14772	  libobjs=conftest.$ac_objext
14773	  deplibs=
14774	  wl=$lt_prog_compiler_wl_CXX
14775	  pic_flag=$lt_prog_compiler_pic_CXX
14776	  compiler_flags=-v
14777	  linker_flags=-v
14778	  verstring=
14779	  output_objdir=.
14780	  libname=conftest
14781	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14782	  allow_undefined_flag_CXX=
14783	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14784  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14785  ac_status=$?
14786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787  test $ac_status = 0; }
14788	  then
14789	    lt_cv_archive_cmds_need_lc_CXX=no
14790	  else
14791	    lt_cv_archive_cmds_need_lc_CXX=yes
14792	  fi
14793	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14794	else
14795	  cat conftest.err 1>&5
14796	fi
14797	$RM conftest*
14798
14799fi
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14801$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14802      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14803      ;;
14804    esac
14805  fi
14806  ;;
14807esac
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14871$as_echo_n "checking dynamic linker characteristics... " >&6; }
14872
14873library_names_spec=
14874libname_spec='lib$name'
14875soname_spec=
14876shrext_cmds=".so"
14877postinstall_cmds=
14878postuninstall_cmds=
14879finish_cmds=
14880finish_eval=
14881shlibpath_var=
14882shlibpath_overrides_runpath=unknown
14883version_type=none
14884dynamic_linker="$host_os ld.so"
14885sys_lib_dlsearch_path_spec="/lib /usr/lib"
14886need_lib_prefix=unknown
14887hardcode_into_libs=no
14888
14889# when you set need_version to no, make sure it does not cause -set_version
14890# flags to be left without arguments
14891need_version=unknown
14892
14893case $host_os in
14894aix3*)
14895  version_type=linux # correct to gnu/linux during the next big refactor
14896  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14897  shlibpath_var=LIBPATH
14898
14899  # AIX 3 has no versioning support, so we append a major version to the name.
14900  soname_spec='${libname}${release}${shared_ext}$major'
14901  ;;
14902
14903aix[4-9]*)
14904  version_type=linux # correct to gnu/linux during the next big refactor
14905  need_lib_prefix=no
14906  need_version=no
14907  hardcode_into_libs=yes
14908  if test "$host_cpu" = ia64; then
14909    # AIX 5 supports IA64
14910    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14911    shlibpath_var=LD_LIBRARY_PATH
14912  else
14913    # With GCC up to 2.95.x, collect2 would create an import file
14914    # for dependence libraries.  The import file would start with
14915    # the line `#! .'.  This would cause the generated library to
14916    # depend on `.', always an invalid library.  This was fixed in
14917    # development snapshots of GCC prior to 3.0.
14918    case $host_os in
14919      aix4 | aix4.[01] | aix4.[01].*)
14920      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14921	   echo ' yes '
14922	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14923	:
14924      else
14925	can_build_shared=no
14926      fi
14927      ;;
14928    esac
14929    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14930    # soname into executable. Probably we can add versioning support to
14931    # collect2, so additional links can be useful in future.
14932    if test "$aix_use_runtimelinking" = yes; then
14933      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14934      # instead of lib<name>.a to let people know that these are not
14935      # typical AIX shared libraries.
14936      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937    else
14938      # We preserve .a as extension for shared libraries through AIX4.2
14939      # and later when we are not doing run time linking.
14940      library_names_spec='${libname}${release}.a $libname.a'
14941      soname_spec='${libname}${release}${shared_ext}$major'
14942    fi
14943    shlibpath_var=LIBPATH
14944  fi
14945  ;;
14946
14947amigaos*)
14948  case $host_cpu in
14949  powerpc)
14950    # Since July 2007 AmigaOS4 officially supports .so libraries.
14951    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14952    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953    ;;
14954  m68k)
14955    library_names_spec='$libname.ixlibrary $libname.a'
14956    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14957    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'
14958    ;;
14959  esac
14960  ;;
14961
14962beos*)
14963  library_names_spec='${libname}${shared_ext}'
14964  dynamic_linker="$host_os ld.so"
14965  shlibpath_var=LIBRARY_PATH
14966  ;;
14967
14968bsdi[45]*)
14969  version_type=linux # correct to gnu/linux during the next big refactor
14970  need_version=no
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972  soname_spec='${libname}${release}${shared_ext}$major'
14973  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14974  shlibpath_var=LD_LIBRARY_PATH
14975  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14976  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14977  # the default ld.so.conf also contains /usr/contrib/lib and
14978  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14979  # libtool to hard-code these into programs
14980  ;;
14981
14982cygwin* | mingw* | pw32* | cegcc*)
14983  version_type=windows
14984  shrext_cmds=".dll"
14985  need_version=no
14986  need_lib_prefix=no
14987
14988  case $GCC,$cc_basename in
14989  yes,*)
14990    # gcc
14991    library_names_spec='$libname.dll.a'
14992    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14993    postinstall_cmds='base_file=`basename \${file}`~
14994      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14995      dldir=$destdir/`dirname \$dlpath`~
14996      test -d \$dldir || mkdir -p \$dldir~
14997      $install_prog $dir/$dlname \$dldir/$dlname~
14998      chmod a+x \$dldir/$dlname~
14999      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15000        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15001      fi'
15002    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15003      dlpath=$dir/\$dldll~
15004       $RM \$dlpath'
15005    shlibpath_overrides_runpath=yes
15006
15007    case $host_os in
15008    cygwin*)
15009      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15010      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15011
15012      ;;
15013    mingw* | cegcc*)
15014      # MinGW DLLs use traditional 'lib' prefix
15015      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15016      ;;
15017    pw32*)
15018      # pw32 DLLs use 'pw' prefix rather than 'lib'
15019      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15020      ;;
15021    esac
15022    dynamic_linker='Win32 ld.exe'
15023    ;;
15024
15025  *,cl*)
15026    # Native MSVC
15027    libname_spec='$name'
15028    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15029    library_names_spec='${libname}.dll.lib'
15030
15031    case $build_os in
15032    mingw*)
15033      sys_lib_search_path_spec=
15034      lt_save_ifs=$IFS
15035      IFS=';'
15036      for lt_path in $LIB
15037      do
15038        IFS=$lt_save_ifs
15039        # Let DOS variable expansion print the short 8.3 style file name.
15040        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15041        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15042      done
15043      IFS=$lt_save_ifs
15044      # Convert to MSYS style.
15045      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15046      ;;
15047    cygwin*)
15048      # Convert to unix form, then to dos form, then back to unix form
15049      # but this time dos style (no spaces!) so that the unix form looks
15050      # like /cygdrive/c/PROGRA~1:/cygdr...
15051      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15052      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15053      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15054      ;;
15055    *)
15056      sys_lib_search_path_spec="$LIB"
15057      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15058        # It is most probably a Windows format PATH.
15059        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15060      else
15061        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15062      fi
15063      # FIXME: find the short name or the path components, as spaces are
15064      # common. (e.g. "Program Files" -> "PROGRA~1")
15065      ;;
15066    esac
15067
15068    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15069    postinstall_cmds='base_file=`basename \${file}`~
15070      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15071      dldir=$destdir/`dirname \$dlpath`~
15072      test -d \$dldir || mkdir -p \$dldir~
15073      $install_prog $dir/$dlname \$dldir/$dlname'
15074    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15075      dlpath=$dir/\$dldll~
15076       $RM \$dlpath'
15077    shlibpath_overrides_runpath=yes
15078    dynamic_linker='Win32 link.exe'
15079    ;;
15080
15081  *)
15082    # Assume MSVC wrapper
15083    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15084    dynamic_linker='Win32 ld.exe'
15085    ;;
15086  esac
15087  # FIXME: first we should search . and the directory the executable is in
15088  shlibpath_var=PATH
15089  ;;
15090
15091darwin* | rhapsody*)
15092  dynamic_linker="$host_os dyld"
15093  version_type=darwin
15094  need_lib_prefix=no
15095  need_version=no
15096  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15097  soname_spec='${libname}${release}${major}$shared_ext'
15098  shlibpath_overrides_runpath=yes
15099  shlibpath_var=DYLD_LIBRARY_PATH
15100  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15101
15102  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15103  ;;
15104
15105dgux*)
15106  version_type=linux # correct to gnu/linux during the next big refactor
15107  need_lib_prefix=no
15108  need_version=no
15109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15110  soname_spec='${libname}${release}${shared_ext}$major'
15111  shlibpath_var=LD_LIBRARY_PATH
15112  ;;
15113
15114freebsd* | dragonfly*)
15115  # DragonFly does not have aout.  When/if they implement a new
15116  # versioning mechanism, adjust this.
15117  if test -x /usr/bin/objformat; then
15118    objformat=`/usr/bin/objformat`
15119  else
15120    case $host_os in
15121    freebsd[23].*) objformat=aout ;;
15122    *) objformat=elf ;;
15123    esac
15124  fi
15125  version_type=freebsd-$objformat
15126  case $version_type in
15127    freebsd-elf*)
15128      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15129      need_version=no
15130      need_lib_prefix=no
15131      ;;
15132    freebsd-*)
15133      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15134      need_version=yes
15135      ;;
15136  esac
15137  shlibpath_var=LD_LIBRARY_PATH
15138  case $host_os in
15139  freebsd2.*)
15140    shlibpath_overrides_runpath=yes
15141    ;;
15142  freebsd3.[01]* | freebsdelf3.[01]*)
15143    shlibpath_overrides_runpath=yes
15144    hardcode_into_libs=yes
15145    ;;
15146  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15147  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15148    shlibpath_overrides_runpath=no
15149    hardcode_into_libs=yes
15150    ;;
15151  *) # from 4.6 on, and DragonFly
15152    shlibpath_overrides_runpath=yes
15153    hardcode_into_libs=yes
15154    ;;
15155  esac
15156  ;;
15157
15158haiku*)
15159  version_type=linux # correct to gnu/linux during the next big refactor
15160  need_lib_prefix=no
15161  need_version=no
15162  dynamic_linker="$host_os runtime_loader"
15163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15164  soname_spec='${libname}${release}${shared_ext}$major'
15165  shlibpath_var=LIBRARY_PATH
15166  shlibpath_overrides_runpath=yes
15167  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15168  hardcode_into_libs=yes
15169  ;;
15170
15171hpux9* | hpux10* | hpux11*)
15172  # Give a soname corresponding to the major version so that dld.sl refuses to
15173  # link against other versions.
15174  version_type=sunos
15175  need_lib_prefix=no
15176  need_version=no
15177  case $host_cpu in
15178  ia64*)
15179    shrext_cmds='.so'
15180    hardcode_into_libs=yes
15181    dynamic_linker="$host_os dld.so"
15182    shlibpath_var=LD_LIBRARY_PATH
15183    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15184    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185    soname_spec='${libname}${release}${shared_ext}$major'
15186    if test "X$HPUX_IA64_MODE" = X32; then
15187      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15188    else
15189      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15190    fi
15191    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15192    ;;
15193  hppa*64*)
15194    shrext_cmds='.sl'
15195    hardcode_into_libs=yes
15196    dynamic_linker="$host_os dld.sl"
15197    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15198    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15199    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200    soname_spec='${libname}${release}${shared_ext}$major'
15201    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15202    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15203    ;;
15204  *)
15205    shrext_cmds='.sl'
15206    dynamic_linker="$host_os dld.sl"
15207    shlibpath_var=SHLIB_PATH
15208    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210    soname_spec='${libname}${release}${shared_ext}$major'
15211    ;;
15212  esac
15213  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15214  postinstall_cmds='chmod 555 $lib'
15215  # or fails outright, so override atomically:
15216  install_override_mode=555
15217  ;;
15218
15219interix[3-9]*)
15220  version_type=linux # correct to gnu/linux during the next big refactor
15221  need_lib_prefix=no
15222  need_version=no
15223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15224  soname_spec='${libname}${release}${shared_ext}$major'
15225  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15226  shlibpath_var=LD_LIBRARY_PATH
15227  shlibpath_overrides_runpath=no
15228  hardcode_into_libs=yes
15229  ;;
15230
15231irix5* | irix6* | nonstopux*)
15232  case $host_os in
15233    nonstopux*) version_type=nonstopux ;;
15234    *)
15235	if test "$lt_cv_prog_gnu_ld" = yes; then
15236		version_type=linux # correct to gnu/linux during the next big refactor
15237	else
15238		version_type=irix
15239	fi ;;
15240  esac
15241  need_lib_prefix=no
15242  need_version=no
15243  soname_spec='${libname}${release}${shared_ext}$major'
15244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15245  case $host_os in
15246  irix5* | nonstopux*)
15247    libsuff= shlibsuff=
15248    ;;
15249  *)
15250    case $LD in # libtool.m4 will add one of these switches to LD
15251    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15252      libsuff= shlibsuff= libmagic=32-bit;;
15253    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15254      libsuff=32 shlibsuff=N32 libmagic=N32;;
15255    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15256      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15257    *) libsuff= shlibsuff= libmagic=never-match;;
15258    esac
15259    ;;
15260  esac
15261  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15262  shlibpath_overrides_runpath=no
15263  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15264  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15265  hardcode_into_libs=yes
15266  ;;
15267
15268# No shared lib support for Linux oldld, aout, or coff.
15269linux*oldld* | linux*aout* | linux*coff*)
15270  dynamic_linker=no
15271  ;;
15272
15273# This must be glibc/ELF.
15274linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15275  version_type=linux # correct to gnu/linux during the next big refactor
15276  need_lib_prefix=no
15277  need_version=no
15278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279  soname_spec='${libname}${release}${shared_ext}$major'
15280  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15281  shlibpath_var=LD_LIBRARY_PATH
15282  shlibpath_overrides_runpath=no
15283
15284  # Some binutils ld are patched to set DT_RUNPATH
15285  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15286  $as_echo_n "(cached) " >&6
15287else
15288  lt_cv_shlibpath_overrides_runpath=no
15289    save_LDFLAGS=$LDFLAGS
15290    save_libdir=$libdir
15291    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15292	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295
15296int
15297main ()
15298{
15299
15300  ;
15301  return 0;
15302}
15303_ACEOF
15304if ac_fn_cxx_try_link "$LINENO"; then :
15305  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15306  lt_cv_shlibpath_overrides_runpath=yes
15307fi
15308fi
15309rm -f core conftest.err conftest.$ac_objext \
15310    conftest$ac_exeext conftest.$ac_ext
15311    LDFLAGS=$save_LDFLAGS
15312    libdir=$save_libdir
15313
15314fi
15315
15316  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15317
15318  # This implies no fast_install, which is unacceptable.
15319  # Some rework will be needed to allow for fast_install
15320  # before this can be enabled.
15321  hardcode_into_libs=yes
15322
15323  # Append ld.so.conf contents to the search path
15324  if test -f /etc/ld.so.conf; then
15325    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' ' '`
15326    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15327  fi
15328
15329  # We used to test for /lib/ld.so.1 and disable shared libraries on
15330  # powerpc, because MkLinux only supported shared libraries with the
15331  # GNU dynamic linker.  Since this was broken with cross compilers,
15332  # most powerpc-linux boxes support dynamic linking these days and
15333  # people can always --disable-shared, the test was removed, and we
15334  # assume the GNU/Linux dynamic linker is in use.
15335  dynamic_linker='GNU/Linux ld.so'
15336  ;;
15337
15338netbsdelf*-gnu)
15339  version_type=linux
15340  need_lib_prefix=no
15341  need_version=no
15342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15343  soname_spec='${libname}${release}${shared_ext}$major'
15344  shlibpath_var=LD_LIBRARY_PATH
15345  shlibpath_overrides_runpath=no
15346  hardcode_into_libs=yes
15347  dynamic_linker='NetBSD ld.elf_so'
15348  ;;
15349
15350netbsd*)
15351  version_type=sunos
15352  need_lib_prefix=no
15353  need_version=no
15354  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15356    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15357    dynamic_linker='NetBSD (a.out) ld.so'
15358  else
15359    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360    soname_spec='${libname}${release}${shared_ext}$major'
15361    dynamic_linker='NetBSD ld.elf_so'
15362  fi
15363  shlibpath_var=LD_LIBRARY_PATH
15364  shlibpath_overrides_runpath=yes
15365  hardcode_into_libs=yes
15366  ;;
15367
15368newsos6)
15369  version_type=linux # correct to gnu/linux during the next big refactor
15370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371  shlibpath_var=LD_LIBRARY_PATH
15372  shlibpath_overrides_runpath=yes
15373  ;;
15374
15375*nto* | *qnx*)
15376  version_type=qnx
15377  need_lib_prefix=no
15378  need_version=no
15379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380  soname_spec='${libname}${release}${shared_ext}$major'
15381  shlibpath_var=LD_LIBRARY_PATH
15382  shlibpath_overrides_runpath=no
15383  hardcode_into_libs=yes
15384  dynamic_linker='ldqnx.so'
15385  ;;
15386
15387openbsd*)
15388  version_type=sunos
15389  sys_lib_dlsearch_path_spec="/usr/lib"
15390  need_lib_prefix=no
15391  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15392  case $host_os in
15393    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15394    *)				need_version=no  ;;
15395  esac
15396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15397  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15398  shlibpath_var=LD_LIBRARY_PATH
15399  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15400    case $host_os in
15401      openbsd2.[89] | openbsd2.[89].*)
15402	shlibpath_overrides_runpath=no
15403	;;
15404      *)
15405	shlibpath_overrides_runpath=yes
15406	;;
15407      esac
15408  else
15409    shlibpath_overrides_runpath=yes
15410  fi
15411  ;;
15412
15413os2*)
15414  libname_spec='$name'
15415  shrext_cmds=".dll"
15416  need_lib_prefix=no
15417  library_names_spec='$libname${shared_ext} $libname.a'
15418  dynamic_linker='OS/2 ld.exe'
15419  shlibpath_var=LIBPATH
15420  ;;
15421
15422osf3* | osf4* | osf5*)
15423  version_type=osf
15424  need_lib_prefix=no
15425  need_version=no
15426  soname_spec='${libname}${release}${shared_ext}$major'
15427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428  shlibpath_var=LD_LIBRARY_PATH
15429  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15430  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15431  ;;
15432
15433rdos*)
15434  dynamic_linker=no
15435  ;;
15436
15437solaris*)
15438  version_type=linux # correct to gnu/linux during the next big refactor
15439  need_lib_prefix=no
15440  need_version=no
15441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442  soname_spec='${libname}${release}${shared_ext}$major'
15443  shlibpath_var=LD_LIBRARY_PATH
15444  shlibpath_overrides_runpath=yes
15445  hardcode_into_libs=yes
15446  # ldd complains unless libraries are executable
15447  postinstall_cmds='chmod +x $lib'
15448  ;;
15449
15450sunos4*)
15451  version_type=sunos
15452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15454  shlibpath_var=LD_LIBRARY_PATH
15455  shlibpath_overrides_runpath=yes
15456  if test "$with_gnu_ld" = yes; then
15457    need_lib_prefix=no
15458  fi
15459  need_version=yes
15460  ;;
15461
15462sysv4 | sysv4.3*)
15463  version_type=linux # correct to gnu/linux during the next big refactor
15464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465  soname_spec='${libname}${release}${shared_ext}$major'
15466  shlibpath_var=LD_LIBRARY_PATH
15467  case $host_vendor in
15468    sni)
15469      shlibpath_overrides_runpath=no
15470      need_lib_prefix=no
15471      runpath_var=LD_RUN_PATH
15472      ;;
15473    siemens)
15474      need_lib_prefix=no
15475      ;;
15476    motorola)
15477      need_lib_prefix=no
15478      need_version=no
15479      shlibpath_overrides_runpath=no
15480      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15481      ;;
15482  esac
15483  ;;
15484
15485sysv4*MP*)
15486  if test -d /usr/nec ;then
15487    version_type=linux # correct to gnu/linux during the next big refactor
15488    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15489    soname_spec='$libname${shared_ext}.$major'
15490    shlibpath_var=LD_LIBRARY_PATH
15491  fi
15492  ;;
15493
15494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15495  version_type=freebsd-elf
15496  need_lib_prefix=no
15497  need_version=no
15498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15499  soname_spec='${libname}${release}${shared_ext}$major'
15500  shlibpath_var=LD_LIBRARY_PATH
15501  shlibpath_overrides_runpath=yes
15502  hardcode_into_libs=yes
15503  if test "$with_gnu_ld" = yes; then
15504    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15505  else
15506    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15507    case $host_os in
15508      sco3.2v5*)
15509        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15510	;;
15511    esac
15512  fi
15513  sys_lib_dlsearch_path_spec='/usr/lib'
15514  ;;
15515
15516tpf*)
15517  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15518  version_type=linux # correct to gnu/linux during the next big refactor
15519  need_lib_prefix=no
15520  need_version=no
15521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522  shlibpath_var=LD_LIBRARY_PATH
15523  shlibpath_overrides_runpath=no
15524  hardcode_into_libs=yes
15525  ;;
15526
15527uts4*)
15528  version_type=linux # correct to gnu/linux during the next big refactor
15529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530  soname_spec='${libname}${release}${shared_ext}$major'
15531  shlibpath_var=LD_LIBRARY_PATH
15532  ;;
15533
15534*)
15535  dynamic_linker=no
15536  ;;
15537esac
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15539$as_echo "$dynamic_linker" >&6; }
15540test "$dynamic_linker" = no && can_build_shared=no
15541
15542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15543if test "$GCC" = yes; then
15544  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15545fi
15546
15547if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15548  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15549fi
15550if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15551  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15552fi
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15592$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15593hardcode_action_CXX=
15594if test -n "$hardcode_libdir_flag_spec_CXX" ||
15595   test -n "$runpath_var_CXX" ||
15596   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15597
15598  # We can hardcode non-existent directories.
15599  if test "$hardcode_direct_CXX" != no &&
15600     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15601     # have to relink, otherwise we might link with an installed library
15602     # when we should be linking with a yet-to-be-installed one
15603     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15604     test "$hardcode_minus_L_CXX" != no; then
15605    # Linking always hardcodes the temporary library directory.
15606    hardcode_action_CXX=relink
15607  else
15608    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15609    hardcode_action_CXX=immediate
15610  fi
15611else
15612  # We cannot hardcode anything, or else we can only hardcode existing
15613  # directories.
15614  hardcode_action_CXX=unsupported
15615fi
15616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15617$as_echo "$hardcode_action_CXX" >&6; }
15618
15619if test "$hardcode_action_CXX" = relink ||
15620   test "$inherit_rpath_CXX" = yes; then
15621  # Fast installation is not supported
15622  enable_fast_install=no
15623elif test "$shlibpath_overrides_runpath" = yes ||
15624     test "$enable_shared" = no; then
15625  # Fast installation is not necessary
15626  enable_fast_install=needless
15627fi
15628
15629
15630
15631
15632
15633
15634
15635  fi # test -n "$compiler"
15636
15637  CC=$lt_save_CC
15638  CFLAGS=$lt_save_CFLAGS
15639  LDCXX=$LD
15640  LD=$lt_save_LD
15641  GCC=$lt_save_GCC
15642  with_gnu_ld=$lt_save_with_gnu_ld
15643  lt_cv_path_LDCXX=$lt_cv_path_LD
15644  lt_cv_path_LD=$lt_save_path_LD
15645  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15646  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15647fi # test "$_lt_caught_CXX_error" != yes
15648
15649ac_ext=c
15650ac_cpp='$CPP $CPPFLAGS'
15651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15653ac_compiler_gnu=$ac_cv_c_compiler_gnu
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669        ac_config_commands="$ac_config_commands libtool"
15670
15671
15672
15673
15674# Only expand once:
15675
15676
15677am__api_version='1.14'
15678
15679# Find a good install program.  We prefer a C program (faster),
15680# so one script is as good as another.  But avoid the broken or
15681# incompatible versions:
15682# SysV /etc/install, /usr/sbin/install
15683# SunOS /usr/etc/install
15684# IRIX /sbin/install
15685# AIX /bin/install
15686# AmigaOS /C/install, which installs bootblocks on floppy discs
15687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15690# OS/2's system install, which has a completely different semantic
15691# ./install, which can be erroneously created by make from ./install.sh.
15692# Reject install programs that cannot install multiple files.
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15694$as_echo_n "checking for a BSD-compatible install... " >&6; }
15695if test -z "$INSTALL"; then
15696if ${ac_cv_path_install+:} false; then :
15697  $as_echo_n "(cached) " >&6
15698else
15699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700for as_dir in $PATH
15701do
15702  IFS=$as_save_IFS
15703  test -z "$as_dir" && as_dir=.
15704    # Account for people who put trailing slashes in PATH elements.
15705case $as_dir/ in #((
15706  ./ | .// | /[cC]/* | \
15707  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15708  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15709  /usr/ucb/* ) ;;
15710  *)
15711    # OSF1 and SCO ODT 3.0 have their own names for install.
15712    # Don't use installbsd from OSF since it installs stuff as root
15713    # by default.
15714    for ac_prog in ginstall scoinst install; do
15715      for ac_exec_ext in '' $ac_executable_extensions; do
15716	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15717	  if test $ac_prog = install &&
15718	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15719	    # AIX install.  It has an incompatible calling convention.
15720	    :
15721	  elif test $ac_prog = install &&
15722	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15723	    # program-specific install script used by HP pwplus--don't use.
15724	    :
15725	  else
15726	    rm -rf conftest.one conftest.two conftest.dir
15727	    echo one > conftest.one
15728	    echo two > conftest.two
15729	    mkdir conftest.dir
15730	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15731	      test -s conftest.one && test -s conftest.two &&
15732	      test -s conftest.dir/conftest.one &&
15733	      test -s conftest.dir/conftest.two
15734	    then
15735	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15736	      break 3
15737	    fi
15738	  fi
15739	fi
15740      done
15741    done
15742    ;;
15743esac
15744
15745  done
15746IFS=$as_save_IFS
15747
15748rm -rf conftest.one conftest.two conftest.dir
15749
15750fi
15751  if test "${ac_cv_path_install+set}" = set; then
15752    INSTALL=$ac_cv_path_install
15753  else
15754    # As a last resort, use the slow shell script.  Don't cache a
15755    # value for INSTALL within a source directory, because that will
15756    # break other packages using the cache if that directory is
15757    # removed, or if the value is a relative name.
15758    INSTALL=$ac_install_sh
15759  fi
15760fi
15761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15762$as_echo "$INSTALL" >&6; }
15763
15764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15765# It thinks the first close brace ends the variable substitution.
15766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15767
15768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15769
15770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15771
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15773$as_echo_n "checking whether build environment is sane... " >&6; }
15774# Reject unsafe characters in $srcdir or the absolute working directory
15775# name.  Accept space and tab only in the latter.
15776am_lf='
15777'
15778case `pwd` in
15779  *[\\\"\#\$\&\'\`$am_lf]*)
15780    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
15781esac
15782case $srcdir in
15783  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
15784    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
15785esac
15786
15787# Do 'set' in a subshell so we don't clobber the current shell's
15788# arguments.  Must try -L first in case configure is actually a
15789# symlink; some systems play weird games with the mod time of symlinks
15790# (eg FreeBSD returns the mod time of the symlink's containing
15791# directory).
15792if (
15793   am_has_slept=no
15794   for am_try in 1 2; do
15795     echo "timestamp, slept: $am_has_slept" > conftest.file
15796     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15797     if test "$*" = "X"; then
15798	# -L didn't work.
15799	set X `ls -t "$srcdir/configure" conftest.file`
15800     fi
15801     if test "$*" != "X $srcdir/configure conftest.file" \
15802	&& test "$*" != "X conftest.file $srcdir/configure"; then
15803
15804	# If neither matched, then we have a broken ls.  This can happen
15805	# if, for instance, CONFIG_SHELL is bash and it inherits a
15806	# broken ls alias from the environment.  This has actually
15807	# happened.  Such a system could not be considered "sane".
15808	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
15809  alias in your environment" "$LINENO" 5
15810     fi
15811     if test "$2" = conftest.file || test $am_try -eq 2; then
15812       break
15813     fi
15814     # Just in case.
15815     sleep 1
15816     am_has_slept=yes
15817   done
15818   test "$2" = conftest.file
15819   )
15820then
15821   # Ok.
15822   :
15823else
15824   as_fn_error $? "newly created file is older than distributed files!
15825Check your system clock" "$LINENO" 5
15826fi
15827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15828$as_echo "yes" >&6; }
15829# If we didn't sleep, we still need to ensure time stamps of config.status and
15830# generated files are strictly newer.
15831am_sleep_pid=
15832if grep 'slept: no' conftest.file >/dev/null 2>&1; then
15833  ( sleep 1 ) &
15834  am_sleep_pid=$!
15835fi
15836
15837rm -f conftest.file
15838
15839test "$program_prefix" != NONE &&
15840  program_transform_name="s&^&$program_prefix&;$program_transform_name"
15841# Use a double $ so make ignores it.
15842test "$program_suffix" != NONE &&
15843  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15844# Double any \ or $.
15845# By default was `s,x,x', remove it if useless.
15846ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15847program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15848
15849if test x"${MISSING+set}" != xset; then
15850  case $am_aux_dir in
15851  *\ * | *\	*)
15852    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15853  *)
15854    MISSING="\${SHELL} $am_aux_dir/missing" ;;
15855  esac
15856fi
15857# Use eval to expand $SHELL
15858if eval "$MISSING --is-lightweight"; then
15859  am_missing_run="$MISSING "
15860else
15861  am_missing_run=
15862  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
15863$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
15864fi
15865
15866if test x"${install_sh}" != xset; then
15867  case $am_aux_dir in
15868  *\ * | *\	*)
15869    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15870  *)
15871    install_sh="\${SHELL} $am_aux_dir/install-sh"
15872  esac
15873fi
15874
15875# Installed binaries are usually stripped using 'strip' when the user
15876# run "make install-strip".  However 'strip' might not be the right
15877# tool to use in cross-compilation environments, therefore Automake
15878# will honor the 'STRIP' environment variable to overrule this program.
15879if test "$cross_compiling" != no; then
15880  if test -n "$ac_tool_prefix"; then
15881  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15882set dummy ${ac_tool_prefix}strip; ac_word=$2
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15884$as_echo_n "checking for $ac_word... " >&6; }
15885if ${ac_cv_prog_STRIP+:} false; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888  if test -n "$STRIP"; then
15889  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15890else
15891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15892for as_dir in $PATH
15893do
15894  IFS=$as_save_IFS
15895  test -z "$as_dir" && as_dir=.
15896    for ac_exec_ext in '' $ac_executable_extensions; do
15897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15900    break 2
15901  fi
15902done
15903  done
15904IFS=$as_save_IFS
15905
15906fi
15907fi
15908STRIP=$ac_cv_prog_STRIP
15909if test -n "$STRIP"; then
15910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15911$as_echo "$STRIP" >&6; }
15912else
15913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914$as_echo "no" >&6; }
15915fi
15916
15917
15918fi
15919if test -z "$ac_cv_prog_STRIP"; then
15920  ac_ct_STRIP=$STRIP
15921  # Extract the first word of "strip", so it can be a program name with args.
15922set dummy strip; ac_word=$2
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15924$as_echo_n "checking for $ac_word... " >&6; }
15925if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15926  $as_echo_n "(cached) " >&6
15927else
15928  if test -n "$ac_ct_STRIP"; then
15929  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15930else
15931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932for as_dir in $PATH
15933do
15934  IFS=$as_save_IFS
15935  test -z "$as_dir" && as_dir=.
15936    for ac_exec_ext in '' $ac_executable_extensions; do
15937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15938    ac_cv_prog_ac_ct_STRIP="strip"
15939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15940    break 2
15941  fi
15942done
15943  done
15944IFS=$as_save_IFS
15945
15946fi
15947fi
15948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15949if test -n "$ac_ct_STRIP"; then
15950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15951$as_echo "$ac_ct_STRIP" >&6; }
15952else
15953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954$as_echo "no" >&6; }
15955fi
15956
15957  if test "x$ac_ct_STRIP" = x; then
15958    STRIP=":"
15959  else
15960    case $cross_compiling:$ac_tool_warned in
15961yes:)
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15964ac_tool_warned=yes ;;
15965esac
15966    STRIP=$ac_ct_STRIP
15967  fi
15968else
15969  STRIP="$ac_cv_prog_STRIP"
15970fi
15971
15972fi
15973INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15974
15975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15976$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15977if test -z "$MKDIR_P"; then
15978  if ${ac_cv_path_mkdir+:} false; then :
15979  $as_echo_n "(cached) " >&6
15980else
15981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15983do
15984  IFS=$as_save_IFS
15985  test -z "$as_dir" && as_dir=.
15986    for ac_prog in mkdir gmkdir; do
15987	 for ac_exec_ext in '' $ac_executable_extensions; do
15988	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
15989	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15990	     'mkdir (GNU coreutils) '* | \
15991	     'mkdir (coreutils) '* | \
15992	     'mkdir (fileutils) '4.1*)
15993	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15994	       break 3;;
15995	   esac
15996	 done
15997       done
15998  done
15999IFS=$as_save_IFS
16000
16001fi
16002
16003  test -d ./--version && rmdir ./--version
16004  if test "${ac_cv_path_mkdir+set}" = set; then
16005    MKDIR_P="$ac_cv_path_mkdir -p"
16006  else
16007    # As a last resort, use the slow shell script.  Don't cache a
16008    # value for MKDIR_P within a source directory, because that will
16009    # break other packages using the cache if that directory is
16010    # removed, or if the value is a relative name.
16011    MKDIR_P="$ac_install_sh -d"
16012  fi
16013fi
16014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
16015$as_echo "$MKDIR_P" >&6; }
16016
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16018$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16019set x ${MAKE-make}
16020ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16021if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16022  $as_echo_n "(cached) " >&6
16023else
16024  cat >conftest.make <<\_ACEOF
16025SHELL = /bin/sh
16026all:
16027	@echo '@@@%%%=$(MAKE)=@@@%%%'
16028_ACEOF
16029# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16030case `${MAKE-make} -f conftest.make 2>/dev/null` in
16031  *@@@%%%=?*=@@@%%%*)
16032    eval ac_cv_prog_make_${ac_make}_set=yes;;
16033  *)
16034    eval ac_cv_prog_make_${ac_make}_set=no;;
16035esac
16036rm -f conftest.make
16037fi
16038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16040$as_echo "yes" >&6; }
16041  SET_MAKE=
16042else
16043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044$as_echo "no" >&6; }
16045  SET_MAKE="MAKE=${MAKE-make}"
16046fi
16047
16048rm -rf .tst 2>/dev/null
16049mkdir .tst 2>/dev/null
16050if test -d .tst; then
16051  am__leading_dot=.
16052else
16053  am__leading_dot=_
16054fi
16055rmdir .tst 2>/dev/null
16056
16057DEPDIR="${am__leading_dot}deps"
16058
16059ac_config_commands="$ac_config_commands depfiles"
16060
16061
16062am_make=${MAKE-make}
16063cat > confinc << 'END'
16064am__doit:
16065	@echo this is the am__doit target
16066.PHONY: am__doit
16067END
16068# If we don't find an include directive, just comment out the code.
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16070$as_echo_n "checking for style of include used by $am_make... " >&6; }
16071am__include="#"
16072am__quote=
16073_am_result=none
16074# First try GNU make style include.
16075echo "include confinc" > confmf
16076# Ignore all kinds of additional output from 'make'.
16077case `$am_make -s -f confmf 2> /dev/null` in #(
16078*the\ am__doit\ target*)
16079  am__include=include
16080  am__quote=
16081  _am_result=GNU
16082  ;;
16083esac
16084# Now try BSD make style include.
16085if test "$am__include" = "#"; then
16086   echo '.include "confinc"' > confmf
16087   case `$am_make -s -f confmf 2> /dev/null` in #(
16088   *the\ am__doit\ target*)
16089     am__include=.include
16090     am__quote="\""
16091     _am_result=BSD
16092     ;;
16093   esac
16094fi
16095
16096
16097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
16098$as_echo "$_am_result" >&6; }
16099rm -f confinc confmf
16100
16101# Check whether --enable-dependency-tracking was given.
16102if test "${enable_dependency_tracking+set}" = set; then :
16103  enableval=$enable_dependency_tracking;
16104fi
16105
16106if test "x$enable_dependency_tracking" != xno; then
16107  am_depcomp="$ac_aux_dir/depcomp"
16108  AMDEPBACKSLASH='\'
16109  am__nodep='_no'
16110fi
16111 if test "x$enable_dependency_tracking" != xno; then
16112  AMDEP_TRUE=
16113  AMDEP_FALSE='#'
16114else
16115  AMDEP_TRUE='#'
16116  AMDEP_FALSE=
16117fi
16118
16119
16120# Check whether --enable-silent-rules was given.
16121if test "${enable_silent_rules+set}" = set; then :
16122  enableval=$enable_silent_rules;
16123fi
16124
16125case $enable_silent_rules in # (((
16126  yes) AM_DEFAULT_VERBOSITY=0;;
16127   no) AM_DEFAULT_VERBOSITY=1;;
16128    *) AM_DEFAULT_VERBOSITY=1;;
16129esac
16130am_make=${MAKE-make}
16131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16132$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16133if ${am_cv_make_support_nested_variables+:} false; then :
16134  $as_echo_n "(cached) " >&6
16135else
16136  if $as_echo 'TRUE=$(BAR$(V))
16137BAR0=false
16138BAR1=true
16139V=1
16140am__doit:
16141	@$(TRUE)
16142.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16143  am_cv_make_support_nested_variables=yes
16144else
16145  am_cv_make_support_nested_variables=no
16146fi
16147fi
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16149$as_echo "$am_cv_make_support_nested_variables" >&6; }
16150if test $am_cv_make_support_nested_variables = yes; then
16151    AM_V='$(V)'
16152  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16153else
16154  AM_V=$AM_DEFAULT_VERBOSITY
16155  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16156fi
16157AM_BACKSLASH='\'
16158
16159if test "`cd $srcdir && pwd`" != "`pwd`"; then
16160  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16161  # is not polluted with repeated "-I."
16162  am__isrc=' -I$(srcdir)'
16163  # test to see if srcdir already configured
16164  if test -f $srcdir/config.status; then
16165    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16166  fi
16167fi
16168
16169# test whether we have cygpath
16170if test -z "$CYGPATH_W"; then
16171  if (cygpath --version) >/dev/null 2>/dev/null; then
16172    CYGPATH_W='cygpath -w'
16173  else
16174    CYGPATH_W=echo
16175  fi
16176fi
16177
16178
16179# Define the identity of the package.
16180 PACKAGE='ccaudio2'
16181 VERSION='2.2.0'
16182
16183
16184cat >>confdefs.h <<_ACEOF
16185#define PACKAGE "$PACKAGE"
16186_ACEOF
16187
16188
16189cat >>confdefs.h <<_ACEOF
16190#define VERSION "$VERSION"
16191_ACEOF
16192
16193# Some tools Automake needs.
16194
16195ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16196
16197
16198AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16199
16200
16201AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16202
16203
16204AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16205
16206
16207MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16208
16209# For better backward compatibility.  To be removed once Automake 1.9.x
16210# dies out for good.  For more background, see:
16211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16212# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16213mkdir_p='$(MKDIR_P)'
16214
16215# We need awk for the "check" target.  The system "awk" is bad on
16216# some platforms.
16217# Always define AMTAR for backward compatibility.  Yes, it's still used
16218# in the wild :-(  We should find a proper way to deprecate it ...
16219AMTAR='$${TAR-tar}'
16220
16221
16222# We'll loop over all known methods to create a tar archive until one works.
16223_am_tools='gnutar  pax cpio none'
16224
16225am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
16226
16227
16228
16229
16230
16231depcc="$CC"   am_compiler_list=
16232
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16234$as_echo_n "checking dependency style of $depcc... " >&6; }
16235if ${am_cv_CC_dependencies_compiler_type+:} false; then :
16236  $as_echo_n "(cached) " >&6
16237else
16238  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16239  # We make a subdir and do the tests there.  Otherwise we can end up
16240  # making bogus files that we don't know about and never remove.  For
16241  # instance it was reported that on HP-UX the gcc test will end up
16242  # making a dummy file named 'D' -- because '-MD' means "put the output
16243  # in D".
16244  rm -rf conftest.dir
16245  mkdir conftest.dir
16246  # Copy depcomp to subdir because otherwise we won't find it if we're
16247  # using a relative directory.
16248  cp "$am_depcomp" conftest.dir
16249  cd conftest.dir
16250  # We will build objects and dependencies in a subdirectory because
16251  # it helps to detect inapplicable dependency modes.  For instance
16252  # both Tru64's cc and ICC support -MD to output dependencies as a
16253  # side effect of compilation, but ICC will put the dependencies in
16254  # the current directory while Tru64 will put them in the object
16255  # directory.
16256  mkdir sub
16257
16258  am_cv_CC_dependencies_compiler_type=none
16259  if test "$am_compiler_list" = ""; then
16260     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16261  fi
16262  am__universal=false
16263  case " $depcc " in #(
16264     *\ -arch\ *\ -arch\ *) am__universal=true ;;
16265     esac
16266
16267  for depmode in $am_compiler_list; do
16268    # Setup a source with many dependencies, because some compilers
16269    # like to wrap large dependency lists on column 80 (with \), and
16270    # we should not choose a depcomp mode which is confused by this.
16271    #
16272    # We need to recreate these files for each test, as the compiler may
16273    # overwrite some of them when testing with obscure command lines.
16274    # This happens at least with the AIX C compiler.
16275    : > sub/conftest.c
16276    for i in 1 2 3 4 5 6; do
16277      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16278      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16279      # Solaris 10 /bin/sh.
16280      echo '/* dummy */' > sub/conftst$i.h
16281    done
16282    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16283
16284    # We check with '-c' and '-o' for the sake of the "dashmstdout"
16285    # mode.  It turns out that the SunPro C++ compiler does not properly
16286    # handle '-M -o', and we need to detect this.  Also, some Intel
16287    # versions had trouble with output in subdirs.
16288    am__obj=sub/conftest.${OBJEXT-o}
16289    am__minus_obj="-o $am__obj"
16290    case $depmode in
16291    gcc)
16292      # This depmode causes a compiler race in universal mode.
16293      test "$am__universal" = false || continue
16294      ;;
16295    nosideeffect)
16296      # After this tag, mechanisms are not by side-effect, so they'll
16297      # only be used when explicitly requested.
16298      if test "x$enable_dependency_tracking" = xyes; then
16299	continue
16300      else
16301	break
16302      fi
16303      ;;
16304    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16305      # This compiler won't grok '-c -o', but also, the minuso test has
16306      # not run yet.  These depmodes are late enough in the game, and
16307      # so weak that their functioning should not be impacted.
16308      am__obj=conftest.${OBJEXT-o}
16309      am__minus_obj=
16310      ;;
16311    none) break ;;
16312    esac
16313    if depmode=$depmode \
16314       source=sub/conftest.c object=$am__obj \
16315       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16316       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16317         >/dev/null 2>conftest.err &&
16318       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16319       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16320       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16321       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16322      # icc doesn't choke on unknown options, it will just issue warnings
16323      # or remarks (even with -Werror).  So we grep stderr for any message
16324      # that says an option was ignored or not supported.
16325      # When given -MP, icc 7.0 and 7.1 complain thusly:
16326      #   icc: Command line warning: ignoring option '-M'; no argument required
16327      # The diagnosis changed in icc 8.0:
16328      #   icc: Command line remark: option '-MP' not supported
16329      if (grep 'ignoring option' conftest.err ||
16330          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16331        am_cv_CC_dependencies_compiler_type=$depmode
16332        break
16333      fi
16334    fi
16335  done
16336
16337  cd ..
16338  rm -rf conftest.dir
16339else
16340  am_cv_CC_dependencies_compiler_type=none
16341fi
16342
16343fi
16344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16345$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16346CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16347
16348 if
16349  test "x$enable_dependency_tracking" != xno \
16350  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16351  am__fastdepCC_TRUE=
16352  am__fastdepCC_FALSE='#'
16353else
16354  am__fastdepCC_TRUE='#'
16355  am__fastdepCC_FALSE=
16356fi
16357
16358
16359depcc="$CXX"  am_compiler_list=
16360
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16362$as_echo_n "checking dependency style of $depcc... " >&6; }
16363if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16364  $as_echo_n "(cached) " >&6
16365else
16366  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16367  # We make a subdir and do the tests there.  Otherwise we can end up
16368  # making bogus files that we don't know about and never remove.  For
16369  # instance it was reported that on HP-UX the gcc test will end up
16370  # making a dummy file named 'D' -- because '-MD' means "put the output
16371  # in D".
16372  rm -rf conftest.dir
16373  mkdir conftest.dir
16374  # Copy depcomp to subdir because otherwise we won't find it if we're
16375  # using a relative directory.
16376  cp "$am_depcomp" conftest.dir
16377  cd conftest.dir
16378  # We will build objects and dependencies in a subdirectory because
16379  # it helps to detect inapplicable dependency modes.  For instance
16380  # both Tru64's cc and ICC support -MD to output dependencies as a
16381  # side effect of compilation, but ICC will put the dependencies in
16382  # the current directory while Tru64 will put them in the object
16383  # directory.
16384  mkdir sub
16385
16386  am_cv_CXX_dependencies_compiler_type=none
16387  if test "$am_compiler_list" = ""; then
16388     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16389  fi
16390  am__universal=false
16391  case " $depcc " in #(
16392     *\ -arch\ *\ -arch\ *) am__universal=true ;;
16393     esac
16394
16395  for depmode in $am_compiler_list; do
16396    # Setup a source with many dependencies, because some compilers
16397    # like to wrap large dependency lists on column 80 (with \), and
16398    # we should not choose a depcomp mode which is confused by this.
16399    #
16400    # We need to recreate these files for each test, as the compiler may
16401    # overwrite some of them when testing with obscure command lines.
16402    # This happens at least with the AIX C compiler.
16403    : > sub/conftest.c
16404    for i in 1 2 3 4 5 6; do
16405      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16406      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16407      # Solaris 10 /bin/sh.
16408      echo '/* dummy */' > sub/conftst$i.h
16409    done
16410    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16411
16412    # We check with '-c' and '-o' for the sake of the "dashmstdout"
16413    # mode.  It turns out that the SunPro C++ compiler does not properly
16414    # handle '-M -o', and we need to detect this.  Also, some Intel
16415    # versions had trouble with output in subdirs.
16416    am__obj=sub/conftest.${OBJEXT-o}
16417    am__minus_obj="-o $am__obj"
16418    case $depmode in
16419    gcc)
16420      # This depmode causes a compiler race in universal mode.
16421      test "$am__universal" = false || continue
16422      ;;
16423    nosideeffect)
16424      # After this tag, mechanisms are not by side-effect, so they'll
16425      # only be used when explicitly requested.
16426      if test "x$enable_dependency_tracking" = xyes; then
16427	continue
16428      else
16429	break
16430      fi
16431      ;;
16432    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16433      # This compiler won't grok '-c -o', but also, the minuso test has
16434      # not run yet.  These depmodes are late enough in the game, and
16435      # so weak that their functioning should not be impacted.
16436      am__obj=conftest.${OBJEXT-o}
16437      am__minus_obj=
16438      ;;
16439    none) break ;;
16440    esac
16441    if depmode=$depmode \
16442       source=sub/conftest.c object=$am__obj \
16443       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16444       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16445         >/dev/null 2>conftest.err &&
16446       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16447       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16448       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16449       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16450      # icc doesn't choke on unknown options, it will just issue warnings
16451      # or remarks (even with -Werror).  So we grep stderr for any message
16452      # that says an option was ignored or not supported.
16453      # When given -MP, icc 7.0 and 7.1 complain thusly:
16454      #   icc: Command line warning: ignoring option '-M'; no argument required
16455      # The diagnosis changed in icc 8.0:
16456      #   icc: Command line remark: option '-MP' not supported
16457      if (grep 'ignoring option' conftest.err ||
16458          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16459        am_cv_CXX_dependencies_compiler_type=$depmode
16460        break
16461      fi
16462    fi
16463  done
16464
16465  cd ..
16466  rm -rf conftest.dir
16467else
16468  am_cv_CXX_dependencies_compiler_type=none
16469fi
16470
16471fi
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16473$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16474CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16475
16476 if
16477  test "x$enable_dependency_tracking" != xno \
16478  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16479  am__fastdepCXX_TRUE=
16480  am__fastdepCXX_FALSE='#'
16481else
16482  am__fastdepCXX_TRUE='#'
16483  am__fastdepCXX_FALSE=
16484fi
16485
16486
16487
16488# POSIX will say in a future version that running "rm -f" with no argument
16489# is OK; and we want to be able to make that assumption in our Makefile
16490# recipes.  So use an aggressive probe to check that the usage we want is
16491# actually supported "in the wild" to an acceptable degree.
16492# See automake bug#10828.
16493# To make any issue more visible, cause the running configure to be aborted
16494# by default if the 'rm' program in use doesn't match our expectations; the
16495# user can still override this though.
16496if rm -f && rm -fr && rm -rf; then : OK; else
16497  cat >&2 <<'END'
16498Oops!
16499
16500Your 'rm' program seems unable to run without file operands specified
16501on the command line, even when the '-f' option is present.  This is contrary
16502to the behaviour of most rm programs out there, and not conforming with
16503the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
16504
16505Please tell bug-automake@gnu.org about your system, including the value
16506of your $PATH and any error possibly output before this message.  This
16507can help us improve future automake versions.
16508
16509END
16510  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
16511    echo 'Configuration will proceed anyway, since you have set the' >&2
16512    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
16513    echo >&2
16514  else
16515    cat >&2 <<'END'
16516Aborting the configuration process, to ensure you take notice of the issue.
16517
16518You can download and install GNU coreutils to get an 'rm' implementation
16519that behaves properly: <http://www.gnu.org/software/coreutils/>.
16520
16521If you want to complete the configuration process using your problematic
16522'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
16523to "yes", and re-run configure.
16524
16525END
16526    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
16527  fi
16528fi
16529ac_config_headers="$ac_config_headers ccaudio2-config.h"
16530
16531
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16533$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16534if ${ac_cv_c_restrict+:} false; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  ac_cv_c_restrict=no
16538   # The order here caters to the fact that C++ does not require restrict.
16539   for ac_kw in __restrict __restrict__ _Restrict restrict; do
16540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541/* end confdefs.h.  */
16542typedef int * int_ptr;
16543	int foo (int_ptr $ac_kw ip) {
16544	return ip[0];
16545       }
16546int
16547main ()
16548{
16549int s[1];
16550	int * $ac_kw t = s;
16551	t[0] = 0;
16552	return foo(t)
16553  ;
16554  return 0;
16555}
16556_ACEOF
16557if ac_fn_c_try_compile "$LINENO"; then :
16558  ac_cv_c_restrict=$ac_kw
16559fi
16560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561     test "$ac_cv_c_restrict" != no && break
16562   done
16563
16564fi
16565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16566$as_echo "$ac_cv_c_restrict" >&6; }
16567
16568 case $ac_cv_c_restrict in
16569   restrict) ;;
16570   no) $as_echo "#define restrict /**/" >>confdefs.h
16571 ;;
16572   *)  cat >>confdefs.h <<_ACEOF
16573#define restrict $ac_cv_c_restrict
16574_ACEOF
16575 ;;
16576 esac
16577
16578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16579$as_echo_n "checking for working volatile... " >&6; }
16580if ${ac_cv_c_volatile+:} false; then :
16581  $as_echo_n "(cached) " >&6
16582else
16583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h.  */
16585
16586int
16587main ()
16588{
16589
16590volatile int x;
16591int * volatile y = (int *) 0;
16592return !x && !y;
16593  ;
16594  return 0;
16595}
16596_ACEOF
16597if ac_fn_c_try_compile "$LINENO"; then :
16598  ac_cv_c_volatile=yes
16599else
16600  ac_cv_c_volatile=no
16601fi
16602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603fi
16604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16605$as_echo "$ac_cv_c_volatile" >&6; }
16606if test $ac_cv_c_volatile = no; then
16607
16608$as_echo "#define volatile /**/" >>confdefs.h
16609
16610fi
16611
16612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16613$as_echo_n "checking for inline... " >&6; }
16614if ${ac_cv_c_inline+:} false; then :
16615  $as_echo_n "(cached) " >&6
16616else
16617  ac_cv_c_inline=no
16618for ac_kw in inline __inline__ __inline; do
16619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620/* end confdefs.h.  */
16621#ifndef __cplusplus
16622typedef int foo_t;
16623static $ac_kw foo_t static_foo () {return 0; }
16624$ac_kw foo_t foo () {return 0; }
16625#endif
16626
16627_ACEOF
16628if ac_fn_c_try_compile "$LINENO"; then :
16629  ac_cv_c_inline=$ac_kw
16630fi
16631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632  test "$ac_cv_c_inline" != no && break
16633done
16634
16635fi
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16637$as_echo "$ac_cv_c_inline" >&6; }
16638
16639case $ac_cv_c_inline in
16640  inline | yes) ;;
16641  *)
16642    case $ac_cv_c_inline in
16643      no) ac_val=;;
16644      *) ac_val=$ac_cv_c_inline;;
16645    esac
16646    cat >>confdefs.h <<_ACEOF
16647#ifndef __cplusplus
16648#define inline $ac_val
16649#endif
16650_ACEOF
16651    ;;
16652esac
16653
16654
16655
16656
16657PKG_CCAUDIO2_LIBS=""
16658PKG_CCAUDIO2_FLAGS=""
16659CCAUDIO_LIBS=""
16660CCAUDIO_FLAGS=""
16661
16662test -z "$plugindir" && plugindir='${libdir}'
16663test -z "$phrasedir" && phrasedir='${datadir}/ccaudio2'
16664
16665
16666
16667# Check whether --enable-debug was given.
16668if test "${enable_debug+set}" = set; then :
16669  enableval=$enable_debug;
16670fi
16671
16672if test -z "$enable_debug" ; then
16673    enable_debug="no"
16674elif test $enable_debug = "yes" ; then
16675    CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
16676fi
16677
16678
16679
16680
16681
16682
16683
16684
16685if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16686	if test -n "$ac_tool_prefix"; then
16687  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16688set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16690$as_echo_n "checking for $ac_word... " >&6; }
16691if ${ac_cv_path_PKG_CONFIG+:} false; then :
16692  $as_echo_n "(cached) " >&6
16693else
16694  case $PKG_CONFIG in
16695  [\\/]* | ?:[\\/]*)
16696  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16697  ;;
16698  *)
16699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700for as_dir in $PATH
16701do
16702  IFS=$as_save_IFS
16703  test -z "$as_dir" && as_dir=.
16704    for ac_exec_ext in '' $ac_executable_extensions; do
16705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16706    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16708    break 2
16709  fi
16710done
16711  done
16712IFS=$as_save_IFS
16713
16714  ;;
16715esac
16716fi
16717PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16718if test -n "$PKG_CONFIG"; then
16719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16720$as_echo "$PKG_CONFIG" >&6; }
16721else
16722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723$as_echo "no" >&6; }
16724fi
16725
16726
16727fi
16728if test -z "$ac_cv_path_PKG_CONFIG"; then
16729  ac_pt_PKG_CONFIG=$PKG_CONFIG
16730  # Extract the first word of "pkg-config", so it can be a program name with args.
16731set dummy pkg-config; ac_word=$2
16732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16733$as_echo_n "checking for $ac_word... " >&6; }
16734if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16735  $as_echo_n "(cached) " >&6
16736else
16737  case $ac_pt_PKG_CONFIG in
16738  [\\/]* | ?:[\\/]*)
16739  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16740  ;;
16741  *)
16742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743for as_dir in $PATH
16744do
16745  IFS=$as_save_IFS
16746  test -z "$as_dir" && as_dir=.
16747    for ac_exec_ext in '' $ac_executable_extensions; do
16748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16751    break 2
16752  fi
16753done
16754  done
16755IFS=$as_save_IFS
16756
16757  ;;
16758esac
16759fi
16760ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16761if test -n "$ac_pt_PKG_CONFIG"; then
16762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16763$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16764else
16765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766$as_echo "no" >&6; }
16767fi
16768
16769  if test "x$ac_pt_PKG_CONFIG" = x; then
16770    PKG_CONFIG=""
16771  else
16772    case $cross_compiling:$ac_tool_warned in
16773yes:)
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16776ac_tool_warned=yes ;;
16777esac
16778    PKG_CONFIG=$ac_pt_PKG_CONFIG
16779  fi
16780else
16781  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16782fi
16783
16784fi
16785if test -n "$PKG_CONFIG"; then
16786	_pkg_min_version=0.9.0
16787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16788$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16789	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16790		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791$as_echo "yes" >&6; }
16792	else
16793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794$as_echo "no" >&6; }
16795		PKG_CONFIG=""
16796	fi
16797fi
16798
16799# Check whether --with-pkg-config was given.
16800if test "${with_pkg_config+set}" = set; then :
16801  withval=$with_pkg_config;
16802
16803pkg_failed=no
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCOMMON" >&5
16805$as_echo_n "checking for UCOMMON... " >&6; }
16806
16807if test -n "$UCOMMON_CFLAGS"; then
16808    pkg_cv_UCOMMON_CFLAGS="$UCOMMON_CFLAGS"
16809 elif test -n "$PKG_CONFIG"; then
16810    if test -n "$PKG_CONFIG" && \
16811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucommon >= \$USES_UCOMMON_REQUIRED\""; } >&5
16812  ($PKG_CONFIG --exists --print-errors "ucommon >= $USES_UCOMMON_REQUIRED") 2>&5
16813  ac_status=$?
16814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815  test $ac_status = 0; }; then
16816  pkg_cv_UCOMMON_CFLAGS=`$PKG_CONFIG --cflags "ucommon >= $USES_UCOMMON_REQUIRED" 2>/dev/null`
16817		      test "x$?" != "x0" && pkg_failed=yes
16818else
16819  pkg_failed=yes
16820fi
16821 else
16822    pkg_failed=untried
16823fi
16824if test -n "$UCOMMON_LIBS"; then
16825    pkg_cv_UCOMMON_LIBS="$UCOMMON_LIBS"
16826 elif test -n "$PKG_CONFIG"; then
16827    if test -n "$PKG_CONFIG" && \
16828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucommon >= \$USES_UCOMMON_REQUIRED\""; } >&5
16829  ($PKG_CONFIG --exists --print-errors "ucommon >= $USES_UCOMMON_REQUIRED") 2>&5
16830  ac_status=$?
16831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16832  test $ac_status = 0; }; then
16833  pkg_cv_UCOMMON_LIBS=`$PKG_CONFIG --libs "ucommon >= $USES_UCOMMON_REQUIRED" 2>/dev/null`
16834		      test "x$?" != "x0" && pkg_failed=yes
16835else
16836  pkg_failed=yes
16837fi
16838 else
16839    pkg_failed=untried
16840fi
16841
16842
16843
16844if test $pkg_failed = yes; then
16845   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16846$as_echo "no" >&6; }
16847
16848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16849        _pkg_short_errors_supported=yes
16850else
16851        _pkg_short_errors_supported=no
16852fi
16853        if test $_pkg_short_errors_supported = yes; then
16854	        UCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucommon >= $USES_UCOMMON_REQUIRED" 2>&1`
16855        else
16856	        UCOMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucommon >= $USES_UCOMMON_REQUIRED" 2>&1`
16857        fi
16858	# Put the nasty error message in config.log where it belongs
16859	echo "$UCOMMON_PKG_ERRORS" >&5
16860
16861	as_fn_error $? "Package requirements (ucommon >= $USES_UCOMMON_REQUIRED) were not met:
16862
16863$UCOMMON_PKG_ERRORS
16864
16865Consider adjusting the PKG_CONFIG_PATH environment variable if you
16866installed software in a non-standard prefix.
16867
16868Alternatively, you may set the environment variables UCOMMON_CFLAGS
16869and UCOMMON_LIBS to avoid the need to call pkg-config.
16870See the pkg-config man page for more details." "$LINENO" 5
16871elif test $pkg_failed = untried; then
16872     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873$as_echo "no" >&6; }
16874	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16876as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16877is in your PATH or set the PKG_CONFIG environment variable to the full
16878path to pkg-config.
16879
16880Alternatively, you may set the environment variables UCOMMON_CFLAGS
16881and UCOMMON_LIBS to avoid the need to call pkg-config.
16882See the pkg-config man page for more details.
16883
16884To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16885See \`config.log' for more details" "$LINENO" 5; }
16886else
16887	UCOMMON_CFLAGS=$pkg_cv_UCOMMON_CFLAGS
16888	UCOMMON_LIBS=$pkg_cv_UCOMMON_LIBS
16889        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16890$as_echo "yes" >&6; }
16891
16892fi
16893
16894else
16895
16896    # Extract the first word of "ucommon-config", so it can be a program name with args.
16897set dummy ucommon-config; ac_word=$2
16898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16899$as_echo_n "checking for $ac_word... " >&6; }
16900if ${ac_cv_path_UCOMMON+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903  case $UCOMMON in
16904  [\\/]* | ?:[\\/]*)
16905  ac_cv_path_UCOMMON="$UCOMMON" # Let the user override the test with a path.
16906  ;;
16907  *)
16908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16909for as_dir in $PATH
16910do
16911  IFS=$as_save_IFS
16912  test -z "$as_dir" && as_dir=.
16913    for ac_exec_ext in '' $ac_executable_extensions; do
16914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16915    ac_cv_path_UCOMMON="$as_dir/$ac_word$ac_exec_ext"
16916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16917    break 2
16918  fi
16919done
16920  done
16921IFS=$as_save_IFS
16922
16923  test -z "$ac_cv_path_UCOMMON" && ac_cv_path_UCOMMON="none"
16924  ;;
16925esac
16926fi
16927UCOMMON=$ac_cv_path_UCOMMON
16928if test -n "$UCOMMON"; then
16929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCOMMON" >&5
16930$as_echo "$UCOMMON" >&6; }
16931else
16932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933$as_echo "no" >&6; }
16934fi
16935
16936
16937    if test $UCOMMON = "none" ; then
16938        as_fn_error $? "\"required ucommon library missing\"" "$LINENO" 5
16939    fi
16940    UCOMMON_CFLAGS=`$UCOMMON --cflags`
16941    UCOMMON_LIBS=`$UCOMMON --libs`
16942
16943
16944fi
16945
16946
16947for ac_header in endian.h
16948do :
16949  ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
16950if test "x$ac_cv_header_endian_h" = xyes; then :
16951  cat >>confdefs.h <<_ACEOF
16952#define HAVE_ENDIAN_H 1
16953_ACEOF
16954
16955fi
16956
16957done
16958
16959for ac_header in sys/soundcard.h
16960do :
16961  ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
16962if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
16963  cat >>confdefs.h <<_ACEOF
16964#define HAVE_SYS_SOUNDCARD_H 1
16965_ACEOF
16966
16967fi
16968
16969done
16970
16971for ac_header in CoreAudio/CoreAudio.h
16972do :
16973  ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16974if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16975  cat >>confdefs.h <<_ACEOF
16976#define HAVE_COREAUDIO_COREAUDIO_H 1
16977_ACEOF
16978
16979
16980$as_echo "#define OSX_AUDIO 1" >>confdefs.h
16981
16982    AUDIO_LIBS="-framework CoreAudio"
16983
16984fi
16985
16986done
16987
16988
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16990$as_echo_n "checking for sqrt in -lm... " >&6; }
16991if ${ac_cv_lib_m_sqrt+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  ac_check_lib_save_LIBS=$LIBS
16995LIBS="-lm  $LIBS"
16996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997/* end confdefs.h.  */
16998
16999/* Override any GCC internal prototype to avoid an error.
17000   Use char because int might match the return type of a GCC
17001   builtin and then its argument prototype would still apply.  */
17002#ifdef __cplusplus
17003extern "C"
17004#endif
17005char sqrt ();
17006int
17007main ()
17008{
17009return sqrt ();
17010  ;
17011  return 0;
17012}
17013_ACEOF
17014if ac_fn_c_try_link "$LINENO"; then :
17015  ac_cv_lib_m_sqrt=yes
17016else
17017  ac_cv_lib_m_sqrt=no
17018fi
17019rm -f core conftest.err conftest.$ac_objext \
17020    conftest$ac_exeext conftest.$ac_ext
17021LIBS=$ac_check_lib_save_LIBS
17022fi
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
17024$as_echo "$ac_cv_lib_m_sqrt" >&6; }
17025if test "x$ac_cv_lib_m_sqrt" = xyes; then :
17026  PKG_CCAUDIO2_LIBS="$PKG_CCAUDIO2_LIBS -lm"
17027fi
17028
17029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
17030$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
17031if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
17032  $as_echo_n "(cached) " >&6
17033else
17034  ac_check_lib_save_LIBS=$LIBS
17035LIBS="-lossaudio  $LIBS"
17036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038
17039/* Override any GCC internal prototype to avoid an error.
17040   Use char because int might match the return type of a GCC
17041   builtin and then its argument prototype would still apply.  */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char _oss_ioctl ();
17046int
17047main ()
17048{
17049return _oss_ioctl ();
17050  ;
17051  return 0;
17052}
17053_ACEOF
17054if ac_fn_c_try_link "$LINENO"; then :
17055  ac_cv_lib_ossaudio__oss_ioctl=yes
17056else
17057  ac_cv_lib_ossaudio__oss_ioctl=no
17058fi
17059rm -f core conftest.err conftest.$ac_objext \
17060    conftest$ac_exeext conftest.$ac_ext
17061LIBS=$ac_check_lib_save_LIBS
17062fi
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
17064$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
17065if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
17066  AUDIO_LIBS="-lossaudio"
17067fi
17068
17069ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
17070if test "x$ac_cv_func_ftruncate" = xyes; then :
17071
17072
17073$as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
17074
17075
17076fi
17077
17078
17079ac_gsm_codec=false
17080ac_spx_codec=false
17081
17082ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
17083if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
17084
17085    ac_gsm_codec=true
17086
17087$as_echo "#define HAVE_GSM_GSM_H 1" >>confdefs.h
17088
17089    AUDIO_LIBS="$AUDIO_LIBS -lgsm"
17090
17091else
17092
17093    ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
17094if test "x$ac_cv_header_gsm_h" = xyes; then :
17095
17096        AUDIO_LIBS="$AUDIO_LIBS -lgsm"
17097
17098$as_echo "#define HAVE_GSM_H 1" >>confdefs.h
17099
17100
17101fi
17102
17103
17104
17105fi
17106
17107
17108
17109# Check whether --enable-speex was given.
17110if test "${enable_speex+set}" = set; then :
17111  enableval=$enable_speex;
17112fi
17113
17114if test "$enable_speex" != "no" ; then
17115    ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
17116if test "x$ac_cv_header_speex_speex_h" = xyes; then :
17117
17118        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_encode_int in -lspeex" >&5
17119$as_echo_n "checking for speex_encode_int in -lspeex... " >&6; }
17120if ${ac_cv_lib_speex_speex_encode_int+:} false; then :
17121  $as_echo_n "(cached) " >&6
17122else
17123  ac_check_lib_save_LIBS=$LIBS
17124LIBS="-lspeex  $LIBS"
17125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126/* end confdefs.h.  */
17127
17128/* Override any GCC internal prototype to avoid an error.
17129   Use char because int might match the return type of a GCC
17130   builtin and then its argument prototype would still apply.  */
17131#ifdef __cplusplus
17132extern "C"
17133#endif
17134char speex_encode_int ();
17135int
17136main ()
17137{
17138return speex_encode_int ();
17139  ;
17140  return 0;
17141}
17142_ACEOF
17143if ac_fn_c_try_link "$LINENO"; then :
17144  ac_cv_lib_speex_speex_encode_int=yes
17145else
17146  ac_cv_lib_speex_speex_encode_int=no
17147fi
17148rm -f core conftest.err conftest.$ac_objext \
17149    conftest$ac_exeext conftest.$ac_ext
17150LIBS=$ac_check_lib_save_LIBS
17151fi
17152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_encode_int" >&5
17153$as_echo "$ac_cv_lib_speex_speex_encode_int" >&6; }
17154if test "x$ac_cv_lib_speex_speex_encode_int" = xyes; then :
17155
17156
17157$as_echo "#define HAVE_SPEEX_SPEEX_H 1" >>confdefs.h
17158
17159            AUDIO_LIBS="$AUDIO_LIBS -lspeex"
17160
17161fi
17162
17163
17164fi
17165
17166
17167fi
17168
17169if test "$enable_shared" != "yes" ; then
17170
17171$as_echo "#define BUILD_STATIC 1" >>confdefs.h
17172
17173fi
17174
17175PKG_CCAUDIO2_LIBS="$AUDIO_LIBS $PKG_CCAUDIO2_LIBS"
17176CCAUDIO_FLAGS="$PKG_CCAUDIO2_FLAGS $UCOMMON_CFLAGS"
17177CCAUDIO_LIBS="$PKG_CCAUDIO2_LIBS $UCOMMON_LIBS $ac_with_malloc"
17178
17179if test "$sysconfdir" = '${prefix}/etc' ; then
17180    sysconfdir="/etc"
17181fi
17182
17183
17184    default_cfgpath="$sysconfdir"
17185    result="***"
17186    prior="A"
17187    while test "$prior" != "$result" ; do
17188        prior=`(echo "$default_cfgpath")`
17189        default_cfgpath=`(
17190        test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17191        test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17192        eval echo \""$default_cfgpath"\"
17193        )`
17194        result=`(echo "$default_cfgpath")`
17195    done
17196
17197
17198
17199case "$CCAUDIO_FLAGS -I/usr/include" in
17200*-I${default_incpath}*)
17201    ;;
17202*)
17203    EXPORT_FLAGS="$EXPORT_FLAGS -I$default_incpath"
17204    ;;
17205esac
17206
17207
17208    default_libpath="$plugindir"
17209    result="***"
17210    prior="A"
17211    while test "$prior" != "$result" ; do
17212        prior=`(echo "$default_libpath")`
17213        default_libpath=`(
17214        test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17215        test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17216        eval echo \""$default_libpath"\"
17217        )`
17218        result=`(echo "$default_libpath")`
17219    done
17220
17221
17222
17223    default_phrases="$phrasedir"
17224    result="***"
17225    prior="A"
17226    while test "$prior" != "$result" ; do
17227        prior=`(echo "$default_phrases")`
17228        default_phrases=`(
17229        test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17230        test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17231        eval echo \""$default_phrases"\"
17232        )`
17233        result=`(echo "$default_phrases")`
17234    done
17235
17236
17237
17238
17239cat >>confdefs.h <<_ACEOF
17240#define DEFAULT_CFGPATH "$default_cfgpath"
17241_ACEOF
17242
17243
17244cat >>confdefs.h <<_ACEOF
17245#define DEFAULT_LIBPATH "$default_libpath"
17246_ACEOF
17247
17248
17249cat >>confdefs.h <<_ACEOF
17250#define DEFAULT_PHRASES "$default_phrases"
17251_ACEOF
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263ac_config_files="$ac_config_files Makefile inc/Makefile src/Makefile utils/Makefile ccaudio2.pc ccaudio2.spec directive PKGBUILD"
17264
17265cat >confcache <<\_ACEOF
17266# This file is a shell script that caches the results of configure
17267# tests run on this system so they can be shared between configure
17268# scripts and configure runs, see configure's option --config-cache.
17269# It is not useful on other systems.  If it contains results you don't
17270# want to keep, you may remove or edit it.
17271#
17272# config.status only pays attention to the cache file if you give it
17273# the --recheck option to rerun configure.
17274#
17275# `ac_cv_env_foo' variables (set or unset) will be overridden when
17276# loading this file, other *unset* `ac_cv_foo' will be assigned the
17277# following values.
17278
17279_ACEOF
17280
17281# The following way of writing the cache mishandles newlines in values,
17282# but we know of no workaround that is simple, portable, and efficient.
17283# So, we kill variables containing newlines.
17284# Ultrix sh set writes to stderr and can't be redirected directly,
17285# and sets the high bit in the cache file unless we assign to the vars.
17286(
17287  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17288    eval ac_val=\$$ac_var
17289    case $ac_val in #(
17290    *${as_nl}*)
17291      case $ac_var in #(
17292      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17293$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17294      esac
17295      case $ac_var in #(
17296      _ | IFS | as_nl) ;; #(
17297      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17298      *) { eval $ac_var=; unset $ac_var;} ;;
17299      esac ;;
17300    esac
17301  done
17302
17303  (set) 2>&1 |
17304    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17305    *${as_nl}ac_space=\ *)
17306      # `set' does not quote correctly, so add quotes: double-quote
17307      # substitution turns \\\\ into \\, and sed turns \\ into \.
17308      sed -n \
17309	"s/'/'\\\\''/g;
17310	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17311      ;; #(
17312    *)
17313      # `set' quotes correctly as required by POSIX, so do not add quotes.
17314      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17315      ;;
17316    esac |
17317    sort
17318) |
17319  sed '
17320     /^ac_cv_env_/b end
17321     t clear
17322     :clear
17323     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17324     t end
17325     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17326     :end' >>confcache
17327if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17328  if test -w "$cache_file"; then
17329    if test "x$cache_file" != "x/dev/null"; then
17330      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17331$as_echo "$as_me: updating cache $cache_file" >&6;}
17332      if test ! -f "$cache_file" || test -h "$cache_file"; then
17333	cat confcache >"$cache_file"
17334      else
17335        case $cache_file in #(
17336        */* | ?:*)
17337	  mv -f confcache "$cache_file"$$ &&
17338	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17339        *)
17340	  mv -f confcache "$cache_file" ;;
17341	esac
17342      fi
17343    fi
17344  else
17345    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17346$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17347  fi
17348fi
17349rm -f confcache
17350
17351test "x$prefix" = xNONE && prefix=$ac_default_prefix
17352# Let make expand exec_prefix.
17353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17354
17355DEFS=-DHAVE_CONFIG_H
17356
17357ac_libobjs=
17358ac_ltlibobjs=
17359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17360  # 1. Remove the extension, and $U if already installed.
17361  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17362  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17363  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17364  #    will be set to the directory where LIBOBJS objects are built.
17365  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17366  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17367done
17368LIBOBJS=$ac_libobjs
17369
17370LTLIBOBJS=$ac_ltlibobjs
17371
17372
17373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17374$as_echo_n "checking that generated files are newer than configure... " >&6; }
17375   if test -n "$am_sleep_pid"; then
17376     # Hide warnings about reused PIDs.
17377     wait $am_sleep_pid 2>/dev/null
17378   fi
17379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17380$as_echo "done" >&6; }
17381if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17382  as_fn_error $? "conditional \"AMDEP\" was never defined.
17383Usually this means the macro was only invoked conditionally." "$LINENO" 5
17384fi
17385if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17386  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17387Usually this means the macro was only invoked conditionally." "$LINENO" 5
17388fi
17389if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17390  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17391Usually this means the macro was only invoked conditionally." "$LINENO" 5
17392fi
17393 if test -n "$EXEEXT"; then
17394  am__EXEEXT_TRUE=
17395  am__EXEEXT_FALSE='#'
17396else
17397  am__EXEEXT_TRUE='#'
17398  am__EXEEXT_FALSE=
17399fi
17400
17401
17402: "${CONFIG_STATUS=./config.status}"
17403ac_write_fail=0
17404ac_clean_files_save=$ac_clean_files
17405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17406{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17407$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17408as_write_fail=0
17409cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17410#! $SHELL
17411# Generated by $as_me.
17412# Run this file to recreate the current configuration.
17413# Compiler output produced by configure, useful for debugging
17414# configure, is in config.log if it exists.
17415
17416debug=false
17417ac_cs_recheck=false
17418ac_cs_silent=false
17419
17420SHELL=\${CONFIG_SHELL-$SHELL}
17421export SHELL
17422_ASEOF
17423cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17424## -------------------- ##
17425## M4sh Initialization. ##
17426## -------------------- ##
17427
17428# Be more Bourne compatible
17429DUALCASE=1; export DUALCASE # for MKS sh
17430if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17431  emulate sh
17432  NULLCMD=:
17433  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17434  # is contrary to our usage.  Disable this feature.
17435  alias -g '${1+"$@"}'='"$@"'
17436  setopt NO_GLOB_SUBST
17437else
17438  case `(set -o) 2>/dev/null` in #(
17439  *posix*) :
17440    set -o posix ;; #(
17441  *) :
17442     ;;
17443esac
17444fi
17445
17446
17447as_nl='
17448'
17449export as_nl
17450# Printing a long string crashes Solaris 7 /usr/bin/printf.
17451as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17454# Prefer a ksh shell builtin over an external printf program on Solaris,
17455# but without wasting forks for bash or zsh.
17456if test -z "$BASH_VERSION$ZSH_VERSION" \
17457    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17458  as_echo='print -r --'
17459  as_echo_n='print -rn --'
17460elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17461  as_echo='printf %s\n'
17462  as_echo_n='printf %s'
17463else
17464  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17465    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17466    as_echo_n='/usr/ucb/echo -n'
17467  else
17468    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17469    as_echo_n_body='eval
17470      arg=$1;
17471      case $arg in #(
17472      *"$as_nl"*)
17473	expr "X$arg" : "X\\(.*\\)$as_nl";
17474	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17475      esac;
17476      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17477    '
17478    export as_echo_n_body
17479    as_echo_n='sh -c $as_echo_n_body as_echo'
17480  fi
17481  export as_echo_body
17482  as_echo='sh -c $as_echo_body as_echo'
17483fi
17484
17485# The user is always right.
17486if test "${PATH_SEPARATOR+set}" != set; then
17487  PATH_SEPARATOR=:
17488  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17489    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17490      PATH_SEPARATOR=';'
17491  }
17492fi
17493
17494
17495# IFS
17496# We need space, tab and new line, in precisely that order.  Quoting is
17497# there to prevent editors from complaining about space-tab.
17498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17499# splitting by setting IFS to empty value.)
17500IFS=" ""	$as_nl"
17501
17502# Find who we are.  Look in the path if we contain no directory separator.
17503as_myself=
17504case $0 in #((
17505  *[\\/]* ) as_myself=$0 ;;
17506  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17507for as_dir in $PATH
17508do
17509  IFS=$as_save_IFS
17510  test -z "$as_dir" && as_dir=.
17511    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17512  done
17513IFS=$as_save_IFS
17514
17515     ;;
17516esac
17517# We did not find ourselves, most probably we were run as `sh COMMAND'
17518# in which case we are not to be found in the path.
17519if test "x$as_myself" = x; then
17520  as_myself=$0
17521fi
17522if test ! -f "$as_myself"; then
17523  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17524  exit 1
17525fi
17526
17527# Unset variables that we do not need and which cause bugs (e.g. in
17528# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17529# suppresses any "Segmentation fault" message there.  '((' could
17530# trigger a bug in pdksh 5.2.14.
17531for as_var in BASH_ENV ENV MAIL MAILPATH
17532do eval test x\${$as_var+set} = xset \
17533  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17534done
17535PS1='$ '
17536PS2='> '
17537PS4='+ '
17538
17539# NLS nuisances.
17540LC_ALL=C
17541export LC_ALL
17542LANGUAGE=C
17543export LANGUAGE
17544
17545# CDPATH.
17546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17547
17548
17549# as_fn_error STATUS ERROR [LINENO LOG_FD]
17550# ----------------------------------------
17551# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17552# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17553# script with STATUS, using 1 if that was 0.
17554as_fn_error ()
17555{
17556  as_status=$1; test $as_status -eq 0 && as_status=1
17557  if test "$4"; then
17558    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17559    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17560  fi
17561  $as_echo "$as_me: error: $2" >&2
17562  as_fn_exit $as_status
17563} # as_fn_error
17564
17565
17566# as_fn_set_status STATUS
17567# -----------------------
17568# Set $? to STATUS, without forking.
17569as_fn_set_status ()
17570{
17571  return $1
17572} # as_fn_set_status
17573
17574# as_fn_exit STATUS
17575# -----------------
17576# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17577as_fn_exit ()
17578{
17579  set +e
17580  as_fn_set_status $1
17581  exit $1
17582} # as_fn_exit
17583
17584# as_fn_unset VAR
17585# ---------------
17586# Portably unset VAR.
17587as_fn_unset ()
17588{
17589  { eval $1=; unset $1;}
17590}
17591as_unset=as_fn_unset
17592# as_fn_append VAR VALUE
17593# ----------------------
17594# Append the text in VALUE to the end of the definition contained in VAR. Take
17595# advantage of any shell optimizations that allow amortized linear growth over
17596# repeated appends, instead of the typical quadratic growth present in naive
17597# implementations.
17598if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17599  eval 'as_fn_append ()
17600  {
17601    eval $1+=\$2
17602  }'
17603else
17604  as_fn_append ()
17605  {
17606    eval $1=\$$1\$2
17607  }
17608fi # as_fn_append
17609
17610# as_fn_arith ARG...
17611# ------------------
17612# Perform arithmetic evaluation on the ARGs, and store the result in the
17613# global $as_val. Take advantage of shells that can avoid forks. The arguments
17614# must be portable across $(()) and expr.
17615if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17616  eval 'as_fn_arith ()
17617  {
17618    as_val=$(( $* ))
17619  }'
17620else
17621  as_fn_arith ()
17622  {
17623    as_val=`expr "$@" || test $? -eq 1`
17624  }
17625fi # as_fn_arith
17626
17627
17628if expr a : '\(a\)' >/dev/null 2>&1 &&
17629   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17630  as_expr=expr
17631else
17632  as_expr=false
17633fi
17634
17635if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17636  as_basename=basename
17637else
17638  as_basename=false
17639fi
17640
17641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17642  as_dirname=dirname
17643else
17644  as_dirname=false
17645fi
17646
17647as_me=`$as_basename -- "$0" ||
17648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17649	 X"$0" : 'X\(//\)$' \| \
17650	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17651$as_echo X/"$0" |
17652    sed '/^.*\/\([^/][^/]*\)\/*$/{
17653	    s//\1/
17654	    q
17655	  }
17656	  /^X\/\(\/\/\)$/{
17657	    s//\1/
17658	    q
17659	  }
17660	  /^X\/\(\/\).*/{
17661	    s//\1/
17662	    q
17663	  }
17664	  s/.*/./; q'`
17665
17666# Avoid depending upon Character Ranges.
17667as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17668as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17669as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17670as_cr_digits='0123456789'
17671as_cr_alnum=$as_cr_Letters$as_cr_digits
17672
17673ECHO_C= ECHO_N= ECHO_T=
17674case `echo -n x` in #(((((
17675-n*)
17676  case `echo 'xy\c'` in
17677  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17678  xy)  ECHO_C='\c';;
17679  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17680       ECHO_T='	';;
17681  esac;;
17682*)
17683  ECHO_N='-n';;
17684esac
17685
17686rm -f conf$$ conf$$.exe conf$$.file
17687if test -d conf$$.dir; then
17688  rm -f conf$$.dir/conf$$.file
17689else
17690  rm -f conf$$.dir
17691  mkdir conf$$.dir 2>/dev/null
17692fi
17693if (echo >conf$$.file) 2>/dev/null; then
17694  if ln -s conf$$.file conf$$ 2>/dev/null; then
17695    as_ln_s='ln -s'
17696    # ... but there are two gotchas:
17697    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17698    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17699    # In both cases, we have to default to `cp -pR'.
17700    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17701      as_ln_s='cp -pR'
17702  elif ln conf$$.file conf$$ 2>/dev/null; then
17703    as_ln_s=ln
17704  else
17705    as_ln_s='cp -pR'
17706  fi
17707else
17708  as_ln_s='cp -pR'
17709fi
17710rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17711rmdir conf$$.dir 2>/dev/null
17712
17713
17714# as_fn_mkdir_p
17715# -------------
17716# Create "$as_dir" as a directory, including parents if necessary.
17717as_fn_mkdir_p ()
17718{
17719
17720  case $as_dir in #(
17721  -*) as_dir=./$as_dir;;
17722  esac
17723  test -d "$as_dir" || eval $as_mkdir_p || {
17724    as_dirs=
17725    while :; do
17726      case $as_dir in #(
17727      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17728      *) as_qdir=$as_dir;;
17729      esac
17730      as_dirs="'$as_qdir' $as_dirs"
17731      as_dir=`$as_dirname -- "$as_dir" ||
17732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17733	 X"$as_dir" : 'X\(//\)[^/]' \| \
17734	 X"$as_dir" : 'X\(//\)$' \| \
17735	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17736$as_echo X"$as_dir" |
17737    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17738	    s//\1/
17739	    q
17740	  }
17741	  /^X\(\/\/\)[^/].*/{
17742	    s//\1/
17743	    q
17744	  }
17745	  /^X\(\/\/\)$/{
17746	    s//\1/
17747	    q
17748	  }
17749	  /^X\(\/\).*/{
17750	    s//\1/
17751	    q
17752	  }
17753	  s/.*/./; q'`
17754      test -d "$as_dir" && break
17755    done
17756    test -z "$as_dirs" || eval "mkdir $as_dirs"
17757  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17758
17759
17760} # as_fn_mkdir_p
17761if mkdir -p . 2>/dev/null; then
17762  as_mkdir_p='mkdir -p "$as_dir"'
17763else
17764  test -d ./-p && rmdir ./-p
17765  as_mkdir_p=false
17766fi
17767
17768
17769# as_fn_executable_p FILE
17770# -----------------------
17771# Test if FILE is an executable regular file.
17772as_fn_executable_p ()
17773{
17774  test -f "$1" && test -x "$1"
17775} # as_fn_executable_p
17776as_test_x='test -x'
17777as_executable_p=as_fn_executable_p
17778
17779# Sed expression to map a string onto a valid CPP name.
17780as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17781
17782# Sed expression to map a string onto a valid variable name.
17783as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17784
17785
17786exec 6>&1
17787## ----------------------------------- ##
17788## Main body of $CONFIG_STATUS script. ##
17789## ----------------------------------- ##
17790_ASEOF
17791test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17792
17793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17794# Save the log message, to keep $0 and so on meaningful, and to
17795# report actual input values of CONFIG_FILES etc. instead of their
17796# values after options handling.
17797ac_log="
17798This file was extended by ccaudio2 $as_me 2.2.0, which was
17799generated by GNU Autoconf 2.69.  Invocation command line was
17800
17801  CONFIG_FILES    = $CONFIG_FILES
17802  CONFIG_HEADERS  = $CONFIG_HEADERS
17803  CONFIG_LINKS    = $CONFIG_LINKS
17804  CONFIG_COMMANDS = $CONFIG_COMMANDS
17805  $ $0 $@
17806
17807on `(hostname || uname -n) 2>/dev/null | sed 1q`
17808"
17809
17810_ACEOF
17811
17812case $ac_config_files in *"
17813"*) set x $ac_config_files; shift; ac_config_files=$*;;
17814esac
17815
17816case $ac_config_headers in *"
17817"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17818esac
17819
17820
17821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17822# Files that config.status was made for.
17823config_files="$ac_config_files"
17824config_headers="$ac_config_headers"
17825config_commands="$ac_config_commands"
17826
17827_ACEOF
17828
17829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17830ac_cs_usage="\
17831\`$as_me' instantiates files and other configuration actions
17832from templates according to the current configuration.  Unless the files
17833and actions are specified as TAGs, all are instantiated by default.
17834
17835Usage: $0 [OPTION]... [TAG]...
17836
17837  -h, --help       print this help, then exit
17838  -V, --version    print version number and configuration settings, then exit
17839      --config     print configuration, then exit
17840  -q, --quiet, --silent
17841                   do not print progress messages
17842  -d, --debug      don't remove temporary files
17843      --recheck    update $as_me by reconfiguring in the same conditions
17844      --file=FILE[:TEMPLATE]
17845                   instantiate the configuration file FILE
17846      --header=FILE[:TEMPLATE]
17847                   instantiate the configuration header FILE
17848
17849Configuration files:
17850$config_files
17851
17852Configuration headers:
17853$config_headers
17854
17855Configuration commands:
17856$config_commands
17857
17858Report bugs to the package provider."
17859
17860_ACEOF
17861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17863ac_cs_version="\\
17864ccaudio2 config.status 2.2.0
17865configured by $0, generated by GNU Autoconf 2.69,
17866  with options \\"\$ac_cs_config\\"
17867
17868Copyright (C) 2012 Free Software Foundation, Inc.
17869This config.status script is free software; the Free Software Foundation
17870gives unlimited permission to copy, distribute and modify it."
17871
17872ac_pwd='$ac_pwd'
17873srcdir='$srcdir'
17874INSTALL='$INSTALL'
17875MKDIR_P='$MKDIR_P'
17876AWK='$AWK'
17877test -n "\$AWK" || AWK=awk
17878_ACEOF
17879
17880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17881# The default lists apply if the user does not specify any file.
17882ac_need_defaults=:
17883while test $# != 0
17884do
17885  case $1 in
17886  --*=?*)
17887    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17888    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17889    ac_shift=:
17890    ;;
17891  --*=)
17892    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17893    ac_optarg=
17894    ac_shift=:
17895    ;;
17896  *)
17897    ac_option=$1
17898    ac_optarg=$2
17899    ac_shift=shift
17900    ;;
17901  esac
17902
17903  case $ac_option in
17904  # Handling of the options.
17905  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17906    ac_cs_recheck=: ;;
17907  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17908    $as_echo "$ac_cs_version"; exit ;;
17909  --config | --confi | --conf | --con | --co | --c )
17910    $as_echo "$ac_cs_config"; exit ;;
17911  --debug | --debu | --deb | --de | --d | -d )
17912    debug=: ;;
17913  --file | --fil | --fi | --f )
17914    $ac_shift
17915    case $ac_optarg in
17916    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17917    '') as_fn_error $? "missing file argument" ;;
17918    esac
17919    as_fn_append CONFIG_FILES " '$ac_optarg'"
17920    ac_need_defaults=false;;
17921  --header | --heade | --head | --hea )
17922    $ac_shift
17923    case $ac_optarg in
17924    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17925    esac
17926    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17927    ac_need_defaults=false;;
17928  --he | --h)
17929    # Conflict between --help and --header
17930    as_fn_error $? "ambiguous option: \`$1'
17931Try \`$0 --help' for more information.";;
17932  --help | --hel | -h )
17933    $as_echo "$ac_cs_usage"; exit ;;
17934  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17935  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17936    ac_cs_silent=: ;;
17937
17938  # This is an error.
17939  -*) as_fn_error $? "unrecognized option: \`$1'
17940Try \`$0 --help' for more information." ;;
17941
17942  *) as_fn_append ac_config_targets " $1"
17943     ac_need_defaults=false ;;
17944
17945  esac
17946  shift
17947done
17948
17949ac_configure_extra_args=
17950
17951if $ac_cs_silent; then
17952  exec 6>/dev/null
17953  ac_configure_extra_args="$ac_configure_extra_args --silent"
17954fi
17955
17956_ACEOF
17957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17958if \$ac_cs_recheck; then
17959  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17960  shift
17961  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17962  CONFIG_SHELL='$SHELL'
17963  export CONFIG_SHELL
17964  exec "\$@"
17965fi
17966
17967_ACEOF
17968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969exec 5>>config.log
17970{
17971  echo
17972  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17973## Running $as_me. ##
17974_ASBOX
17975  $as_echo "$ac_log"
17976} >&5
17977
17978_ACEOF
17979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980#
17981# INIT-COMMANDS
17982#
17983
17984
17985# The HP-UX ksh and POSIX shell print the target directory to stdout
17986# if CDPATH is set.
17987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17988
17989sed_quote_subst='$sed_quote_subst'
17990double_quote_subst='$double_quote_subst'
17991delay_variable_subst='$delay_variable_subst'
17992AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17993DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17994OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17995macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17996macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17997enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17998enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17999pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18000enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18001SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18002ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18003PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18004host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18005host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18006host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18007build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18008build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18009build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18010SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18011Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18012GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18013EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18014FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18015LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18016NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18017LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18018max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18019ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18020exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18021lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18022lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18023lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18024lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18025lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18026reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18027reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18028deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18029file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18030file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18031want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18032sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18033AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18034AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18035archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18036STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18037RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18038old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18039old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18040old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18041lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18042CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18043CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18044compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18045GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18046lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18047lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18048lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18049lt_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"`'
18050nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18051lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18052objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18053MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18054lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18055lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18056lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18057lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18058lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18059need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18060MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18061DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18062NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18063LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18064OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18065OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18066libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18067shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18068extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18069archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18070enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18071export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18072whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18073compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18074old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18075old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18076archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18077archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18078module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18079module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18080with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18081allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18082no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18083hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18084hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18085hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18086hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18087hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18088hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18089hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18090inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18091link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18092always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18093export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18094exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18095include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18096prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18097postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18098file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18099variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18100need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18101need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18102version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18103runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18104shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18105shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18106libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18107library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18108soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18109install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18110postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18111postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18112finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18113finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18114hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18115sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18116sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18117hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18118enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18119enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18120enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18121old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18122striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18123compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18124predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18125postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18126predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18127postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18128compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18129LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18130reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18131reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18132old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18133compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18134GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18135lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18136lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18137lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18138lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18139lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18140archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18141enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18142export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18143whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18144compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18145old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18146old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18147archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18148archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18149module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18150module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18151with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18152allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18153no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18154hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18155hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18156hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18157hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18158hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18159hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18160hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18161inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18162link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18163always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18164export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18165exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18166include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18167prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18168postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18169file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18170hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18171compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18172predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18173postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18174predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18175postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18176compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18177
18178LTCC='$LTCC'
18179LTCFLAGS='$LTCFLAGS'
18180compiler='$compiler_DEFAULT'
18181
18182# A function that is used when there is no print builtin or printf.
18183func_fallback_echo ()
18184{
18185  eval 'cat <<_LTECHO_EOF
18186\$1
18187_LTECHO_EOF'
18188}
18189
18190# Quote evaled strings.
18191for var in AS \
18192DLLTOOL \
18193OBJDUMP \
18194SHELL \
18195ECHO \
18196PATH_SEPARATOR \
18197SED \
18198GREP \
18199EGREP \
18200FGREP \
18201LD \
18202NM \
18203LN_S \
18204lt_SP2NL \
18205lt_NL2SP \
18206reload_flag \
18207deplibs_check_method \
18208file_magic_cmd \
18209file_magic_glob \
18210want_nocaseglob \
18211sharedlib_from_linklib_cmd \
18212AR \
18213AR_FLAGS \
18214archiver_list_spec \
18215STRIP \
18216RANLIB \
18217CC \
18218CFLAGS \
18219compiler \
18220lt_cv_sys_global_symbol_pipe \
18221lt_cv_sys_global_symbol_to_cdecl \
18222lt_cv_sys_global_symbol_to_c_name_address \
18223lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18224nm_file_list_spec \
18225lt_prog_compiler_no_builtin_flag \
18226lt_prog_compiler_pic \
18227lt_prog_compiler_wl \
18228lt_prog_compiler_static \
18229lt_cv_prog_compiler_c_o \
18230need_locks \
18231MANIFEST_TOOL \
18232DSYMUTIL \
18233NMEDIT \
18234LIPO \
18235OTOOL \
18236OTOOL64 \
18237shrext_cmds \
18238export_dynamic_flag_spec \
18239whole_archive_flag_spec \
18240compiler_needs_object \
18241with_gnu_ld \
18242allow_undefined_flag \
18243no_undefined_flag \
18244hardcode_libdir_flag_spec \
18245hardcode_libdir_separator \
18246exclude_expsyms \
18247include_expsyms \
18248file_list_spec \
18249variables_saved_for_relink \
18250libname_spec \
18251library_names_spec \
18252soname_spec \
18253install_override_mode \
18254finish_eval \
18255old_striplib \
18256striplib \
18257compiler_lib_search_dirs \
18258predep_objects \
18259postdep_objects \
18260predeps \
18261postdeps \
18262compiler_lib_search_path \
18263LD_CXX \
18264reload_flag_CXX \
18265compiler_CXX \
18266lt_prog_compiler_no_builtin_flag_CXX \
18267lt_prog_compiler_pic_CXX \
18268lt_prog_compiler_wl_CXX \
18269lt_prog_compiler_static_CXX \
18270lt_cv_prog_compiler_c_o_CXX \
18271export_dynamic_flag_spec_CXX \
18272whole_archive_flag_spec_CXX \
18273compiler_needs_object_CXX \
18274with_gnu_ld_CXX \
18275allow_undefined_flag_CXX \
18276no_undefined_flag_CXX \
18277hardcode_libdir_flag_spec_CXX \
18278hardcode_libdir_separator_CXX \
18279exclude_expsyms_CXX \
18280include_expsyms_CXX \
18281file_list_spec_CXX \
18282compiler_lib_search_dirs_CXX \
18283predep_objects_CXX \
18284postdep_objects_CXX \
18285predeps_CXX \
18286postdeps_CXX \
18287compiler_lib_search_path_CXX; do
18288    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18289    *[\\\\\\\`\\"\\\$]*)
18290      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18291      ;;
18292    *)
18293      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18294      ;;
18295    esac
18296done
18297
18298# Double-quote double-evaled strings.
18299for var in reload_cmds \
18300old_postinstall_cmds \
18301old_postuninstall_cmds \
18302old_archive_cmds \
18303extract_expsyms_cmds \
18304old_archive_from_new_cmds \
18305old_archive_from_expsyms_cmds \
18306archive_cmds \
18307archive_expsym_cmds \
18308module_cmds \
18309module_expsym_cmds \
18310export_symbols_cmds \
18311prelink_cmds \
18312postlink_cmds \
18313postinstall_cmds \
18314postuninstall_cmds \
18315finish_cmds \
18316sys_lib_search_path_spec \
18317sys_lib_dlsearch_path_spec \
18318reload_cmds_CXX \
18319old_archive_cmds_CXX \
18320old_archive_from_new_cmds_CXX \
18321old_archive_from_expsyms_cmds_CXX \
18322archive_cmds_CXX \
18323archive_expsym_cmds_CXX \
18324module_cmds_CXX \
18325module_expsym_cmds_CXX \
18326export_symbols_cmds_CXX \
18327prelink_cmds_CXX \
18328postlink_cmds_CXX; do
18329    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18330    *[\\\\\\\`\\"\\\$]*)
18331      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18332      ;;
18333    *)
18334      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18335      ;;
18336    esac
18337done
18338
18339ac_aux_dir='$ac_aux_dir'
18340xsi_shell='$xsi_shell'
18341lt_shell_append='$lt_shell_append'
18342
18343# See if we are running on zsh, and set the options which allow our
18344# commands through without removal of \ escapes INIT.
18345if test -n "\${ZSH_VERSION+set}" ; then
18346   setopt NO_GLOB_SUBST
18347fi
18348
18349
18350    PACKAGE='$PACKAGE'
18351    VERSION='$VERSION'
18352    TIMESTAMP='$TIMESTAMP'
18353    RM='$RM'
18354    ofile='$ofile'
18355
18356
18357
18358
18359
18360AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18361
18362_ACEOF
18363
18364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365
18366# Handling of arguments.
18367for ac_config_target in $ac_config_targets
18368do
18369  case $ac_config_target in
18370    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18371    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18372    "ccaudio2-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ccaudio2-config.h" ;;
18373    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18374    "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
18375    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18376    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18377    "ccaudio2.pc") CONFIG_FILES="$CONFIG_FILES ccaudio2.pc" ;;
18378    "ccaudio2.spec") CONFIG_FILES="$CONFIG_FILES ccaudio2.spec" ;;
18379    "directive") CONFIG_FILES="$CONFIG_FILES directive" ;;
18380    "PKGBUILD") CONFIG_FILES="$CONFIG_FILES PKGBUILD" ;;
18381
18382  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18383  esac
18384done
18385
18386
18387# If the user did not use the arguments to specify the items to instantiate,
18388# then the envvar interface is used.  Set only those that are not.
18389# We use the long form for the default assignment because of an extremely
18390# bizarre bug on SunOS 4.1.3.
18391if $ac_need_defaults; then
18392  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18393  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18394  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18395fi
18396
18397# Have a temporary directory for convenience.  Make it in the build tree
18398# simply because there is no reason against having it here, and in addition,
18399# creating and moving files from /tmp can sometimes cause problems.
18400# Hook for its removal unless debugging.
18401# Note that there is a small window in which the directory will not be cleaned:
18402# after its creation but before its name has been assigned to `$tmp'.
18403$debug ||
18404{
18405  tmp= ac_tmp=
18406  trap 'exit_status=$?
18407  : "${ac_tmp:=$tmp}"
18408  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18409' 0
18410  trap 'as_fn_exit 1' 1 2 13 15
18411}
18412# Create a (secure) tmp directory for tmp files.
18413
18414{
18415  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18416  test -d "$tmp"
18417}  ||
18418{
18419  tmp=./conf$$-$RANDOM
18420  (umask 077 && mkdir "$tmp")
18421} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18422ac_tmp=$tmp
18423
18424# Set up the scripts for CONFIG_FILES section.
18425# No need to generate them if there are no CONFIG_FILES.
18426# This happens for instance with `./config.status config.h'.
18427if test -n "$CONFIG_FILES"; then
18428
18429
18430ac_cr=`echo X | tr X '\015'`
18431# On cygwin, bash can eat \r inside `` if the user requested igncr.
18432# But we know of no other shell where ac_cr would be empty at this
18433# point, so we can use a bashism as a fallback.
18434if test "x$ac_cr" = x; then
18435  eval ac_cr=\$\'\\r\'
18436fi
18437ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18438if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18439  ac_cs_awk_cr='\\r'
18440else
18441  ac_cs_awk_cr=$ac_cr
18442fi
18443
18444echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18445_ACEOF
18446
18447
18448{
18449  echo "cat >conf$$subs.awk <<_ACEOF" &&
18450  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18451  echo "_ACEOF"
18452} >conf$$subs.sh ||
18453  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18454ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18455ac_delim='%!_!# '
18456for ac_last_try in false false false false false :; do
18457  . ./conf$$subs.sh ||
18458    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18459
18460  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18461  if test $ac_delim_n = $ac_delim_num; then
18462    break
18463  elif $ac_last_try; then
18464    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18465  else
18466    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18467  fi
18468done
18469rm -f conf$$subs.sh
18470
18471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18472cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18473_ACEOF
18474sed -n '
18475h
18476s/^/S["/; s/!.*/"]=/
18477p
18478g
18479s/^[^!]*!//
18480:repl
18481t repl
18482s/'"$ac_delim"'$//
18483t delim
18484:nl
18485h
18486s/\(.\{148\}\)..*/\1/
18487t more1
18488s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18489p
18490n
18491b repl
18492:more1
18493s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18494p
18495g
18496s/.\{148\}//
18497t nl
18498:delim
18499h
18500s/\(.\{148\}\)..*/\1/
18501t more2
18502s/["\\]/\\&/g; s/^/"/; s/$/"/
18503p
18504b
18505:more2
18506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18507p
18508g
18509s/.\{148\}//
18510t delim
18511' <conf$$subs.awk | sed '
18512/^[^""]/{
18513  N
18514  s/\n//
18515}
18516' >>$CONFIG_STATUS || ac_write_fail=1
18517rm -f conf$$subs.awk
18518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18519_ACAWK
18520cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18521  for (key in S) S_is_set[key] = 1
18522  FS = ""
18523
18524}
18525{
18526  line = $ 0
18527  nfields = split(line, field, "@")
18528  substed = 0
18529  len = length(field[1])
18530  for (i = 2; i < nfields; i++) {
18531    key = field[i]
18532    keylen = length(key)
18533    if (S_is_set[key]) {
18534      value = S[key]
18535      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18536      len += length(value) + length(field[++i])
18537      substed = 1
18538    } else
18539      len += 1 + keylen
18540  }
18541
18542  print line
18543}
18544
18545_ACAWK
18546_ACEOF
18547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18549  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18550else
18551  cat
18552fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18553  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18554_ACEOF
18555
18556# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18557# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18558# trailing colons and then remove the whole line if VPATH becomes empty
18559# (actually we leave an empty line to preserve line numbers).
18560if test "x$srcdir" = x.; then
18561  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18562h
18563s///
18564s/^/:/
18565s/[	 ]*$/:/
18566s/:\$(srcdir):/:/g
18567s/:\${srcdir}:/:/g
18568s/:@srcdir@:/:/g
18569s/^:*//
18570s/:*$//
18571x
18572s/\(=[	 ]*\).*/\1/
18573G
18574s/\n//
18575s/^[^=]*=[	 ]*$//
18576}'
18577fi
18578
18579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18580fi # test -n "$CONFIG_FILES"
18581
18582# Set up the scripts for CONFIG_HEADERS section.
18583# No need to generate them if there are no CONFIG_HEADERS.
18584# This happens for instance with `./config.status Makefile'.
18585if test -n "$CONFIG_HEADERS"; then
18586cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18587BEGIN {
18588_ACEOF
18589
18590# Transform confdefs.h into an awk script `defines.awk', embedded as
18591# here-document in config.status, that substitutes the proper values into
18592# config.h.in to produce config.h.
18593
18594# Create a delimiter string that does not exist in confdefs.h, to ease
18595# handling of long lines.
18596ac_delim='%!_!# '
18597for ac_last_try in false false :; do
18598  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18599  if test -z "$ac_tt"; then
18600    break
18601  elif $ac_last_try; then
18602    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18603  else
18604    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18605  fi
18606done
18607
18608# For the awk script, D is an array of macro values keyed by name,
18609# likewise P contains macro parameters if any.  Preserve backslash
18610# newline sequences.
18611
18612ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18613sed -n '
18614s/.\{148\}/&'"$ac_delim"'/g
18615t rset
18616:rset
18617s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18618t def
18619d
18620:def
18621s/\\$//
18622t bsnl
18623s/["\\]/\\&/g
18624s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18625D["\1"]=" \3"/p
18626s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18627d
18628:bsnl
18629s/["\\]/\\&/g
18630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18631D["\1"]=" \3\\\\\\n"\\/p
18632t cont
18633s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18634t cont
18635d
18636:cont
18637n
18638s/.\{148\}/&'"$ac_delim"'/g
18639t clear
18640:clear
18641s/\\$//
18642t bsnlc
18643s/["\\]/\\&/g; s/^/"/; s/$/"/p
18644d
18645:bsnlc
18646s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18647b cont
18648' <confdefs.h | sed '
18649s/'"$ac_delim"'/"\\\
18650"/g' >>$CONFIG_STATUS || ac_write_fail=1
18651
18652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18653  for (key in D) D_is_set[key] = 1
18654  FS = ""
18655}
18656/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18657  line = \$ 0
18658  split(line, arg, " ")
18659  if (arg[1] == "#") {
18660    defundef = arg[2]
18661    mac1 = arg[3]
18662  } else {
18663    defundef = substr(arg[1], 2)
18664    mac1 = arg[2]
18665  }
18666  split(mac1, mac2, "(") #)
18667  macro = mac2[1]
18668  prefix = substr(line, 1, index(line, defundef) - 1)
18669  if (D_is_set[macro]) {
18670    # Preserve the white space surrounding the "#".
18671    print prefix "define", macro P[macro] D[macro]
18672    next
18673  } else {
18674    # Replace #undef with comments.  This is necessary, for example,
18675    # in the case of _POSIX_SOURCE, which is predefined and required
18676    # on some systems where configure will not decide to define it.
18677    if (defundef == "undef") {
18678      print "/*", prefix defundef, macro, "*/"
18679      next
18680    }
18681  }
18682}
18683{ print }
18684_ACAWK
18685_ACEOF
18686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18687  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18688fi # test -n "$CONFIG_HEADERS"
18689
18690
18691eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18692shift
18693for ac_tag
18694do
18695  case $ac_tag in
18696  :[FHLC]) ac_mode=$ac_tag; continue;;
18697  esac
18698  case $ac_mode$ac_tag in
18699  :[FHL]*:*);;
18700  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18701  :[FH]-) ac_tag=-:-;;
18702  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18703  esac
18704  ac_save_IFS=$IFS
18705  IFS=:
18706  set x $ac_tag
18707  IFS=$ac_save_IFS
18708  shift
18709  ac_file=$1
18710  shift
18711
18712  case $ac_mode in
18713  :L) ac_source=$1;;
18714  :[FH])
18715    ac_file_inputs=
18716    for ac_f
18717    do
18718      case $ac_f in
18719      -) ac_f="$ac_tmp/stdin";;
18720      *) # Look for the file first in the build tree, then in the source tree
18721	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18722	 # because $ac_f cannot contain `:'.
18723	 test -f "$ac_f" ||
18724	   case $ac_f in
18725	   [\\/$]*) false;;
18726	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18727	   esac ||
18728	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18729      esac
18730      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18731      as_fn_append ac_file_inputs " '$ac_f'"
18732    done
18733
18734    # Let's still pretend it is `configure' which instantiates (i.e., don't
18735    # use $as_me), people would be surprised to read:
18736    #    /* config.h.  Generated by config.status.  */
18737    configure_input='Generated from '`
18738	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18739	`' by configure.'
18740    if test x"$ac_file" != x-; then
18741      configure_input="$ac_file.  $configure_input"
18742      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18743$as_echo "$as_me: creating $ac_file" >&6;}
18744    fi
18745    # Neutralize special characters interpreted by sed in replacement strings.
18746    case $configure_input in #(
18747    *\&* | *\|* | *\\* )
18748       ac_sed_conf_input=`$as_echo "$configure_input" |
18749       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18750    *) ac_sed_conf_input=$configure_input;;
18751    esac
18752
18753    case $ac_tag in
18754    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18755      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18756    esac
18757    ;;
18758  esac
18759
18760  ac_dir=`$as_dirname -- "$ac_file" ||
18761$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18762	 X"$ac_file" : 'X\(//\)[^/]' \| \
18763	 X"$ac_file" : 'X\(//\)$' \| \
18764	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18765$as_echo X"$ac_file" |
18766    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18767	    s//\1/
18768	    q
18769	  }
18770	  /^X\(\/\/\)[^/].*/{
18771	    s//\1/
18772	    q
18773	  }
18774	  /^X\(\/\/\)$/{
18775	    s//\1/
18776	    q
18777	  }
18778	  /^X\(\/\).*/{
18779	    s//\1/
18780	    q
18781	  }
18782	  s/.*/./; q'`
18783  as_dir="$ac_dir"; as_fn_mkdir_p
18784  ac_builddir=.
18785
18786case "$ac_dir" in
18787.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18788*)
18789  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18790  # A ".." for each directory in $ac_dir_suffix.
18791  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18792  case $ac_top_builddir_sub in
18793  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18794  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18795  esac ;;
18796esac
18797ac_abs_top_builddir=$ac_pwd
18798ac_abs_builddir=$ac_pwd$ac_dir_suffix
18799# for backward compatibility:
18800ac_top_builddir=$ac_top_build_prefix
18801
18802case $srcdir in
18803  .)  # We are building in place.
18804    ac_srcdir=.
18805    ac_top_srcdir=$ac_top_builddir_sub
18806    ac_abs_top_srcdir=$ac_pwd ;;
18807  [\\/]* | ?:[\\/]* )  # Absolute name.
18808    ac_srcdir=$srcdir$ac_dir_suffix;
18809    ac_top_srcdir=$srcdir
18810    ac_abs_top_srcdir=$srcdir ;;
18811  *) # Relative name.
18812    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18813    ac_top_srcdir=$ac_top_build_prefix$srcdir
18814    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18815esac
18816ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18817
18818
18819  case $ac_mode in
18820  :F)
18821  #
18822  # CONFIG_FILE
18823  #
18824
18825  case $INSTALL in
18826  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18827  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18828  esac
18829  ac_MKDIR_P=$MKDIR_P
18830  case $MKDIR_P in
18831  [\\/$]* | ?:[\\/]* ) ;;
18832  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18833  esac
18834_ACEOF
18835
18836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18837# If the template does not know about datarootdir, expand it.
18838# FIXME: This hack should be removed a few years after 2.60.
18839ac_datarootdir_hack=; ac_datarootdir_seen=
18840ac_sed_dataroot='
18841/datarootdir/ {
18842  p
18843  q
18844}
18845/@datadir@/p
18846/@docdir@/p
18847/@infodir@/p
18848/@localedir@/p
18849/@mandir@/p'
18850case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18851*datarootdir*) ac_datarootdir_seen=yes;;
18852*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18853  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18854$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18855_ACEOF
18856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18857  ac_datarootdir_hack='
18858  s&@datadir@&$datadir&g
18859  s&@docdir@&$docdir&g
18860  s&@infodir@&$infodir&g
18861  s&@localedir@&$localedir&g
18862  s&@mandir@&$mandir&g
18863  s&\\\${datarootdir}&$datarootdir&g' ;;
18864esac
18865_ACEOF
18866
18867# Neutralize VPATH when `$srcdir' = `.'.
18868# Shell code in configure.ac might set extrasub.
18869# FIXME: do we really want to maintain this feature?
18870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18871ac_sed_extra="$ac_vpsub
18872$extrasub
18873_ACEOF
18874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18875:t
18876/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18877s|@configure_input@|$ac_sed_conf_input|;t t
18878s&@top_builddir@&$ac_top_builddir_sub&;t t
18879s&@top_build_prefix@&$ac_top_build_prefix&;t t
18880s&@srcdir@&$ac_srcdir&;t t
18881s&@abs_srcdir@&$ac_abs_srcdir&;t t
18882s&@top_srcdir@&$ac_top_srcdir&;t t
18883s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18884s&@builddir@&$ac_builddir&;t t
18885s&@abs_builddir@&$ac_abs_builddir&;t t
18886s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18887s&@INSTALL@&$ac_INSTALL&;t t
18888s&@MKDIR_P@&$ac_MKDIR_P&;t t
18889$ac_datarootdir_hack
18890"
18891eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18892  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18893
18894test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18895  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18896  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18897      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18898  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18899which seems to be undefined.  Please make sure it is defined" >&5
18900$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18901which seems to be undefined.  Please make sure it is defined" >&2;}
18902
18903  rm -f "$ac_tmp/stdin"
18904  case $ac_file in
18905  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18906  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18907  esac \
18908  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18909 ;;
18910  :H)
18911  #
18912  # CONFIG_HEADER
18913  #
18914  if test x"$ac_file" != x-; then
18915    {
18916      $as_echo "/* $configure_input  */" \
18917      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18918    } >"$ac_tmp/config.h" \
18919      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18920    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18921      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18922$as_echo "$as_me: $ac_file is unchanged" >&6;}
18923    else
18924      rm -f "$ac_file"
18925      mv "$ac_tmp/config.h" "$ac_file" \
18926	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18927    fi
18928  else
18929    $as_echo "/* $configure_input  */" \
18930      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18931      || as_fn_error $? "could not create -" "$LINENO" 5
18932  fi
18933# Compute "$ac_file"'s index in $config_headers.
18934_am_arg="$ac_file"
18935_am_stamp_count=1
18936for _am_header in $config_headers :; do
18937  case $_am_header in
18938    $_am_arg | $_am_arg:* )
18939      break ;;
18940    * )
18941      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18942  esac
18943done
18944echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18945$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18946	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18947	 X"$_am_arg" : 'X\(//\)$' \| \
18948	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18949$as_echo X"$_am_arg" |
18950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18951	    s//\1/
18952	    q
18953	  }
18954	  /^X\(\/\/\)[^/].*/{
18955	    s//\1/
18956	    q
18957	  }
18958	  /^X\(\/\/\)$/{
18959	    s//\1/
18960	    q
18961	  }
18962	  /^X\(\/\).*/{
18963	    s//\1/
18964	    q
18965	  }
18966	  s/.*/./; q'`/stamp-h$_am_stamp_count
18967 ;;
18968
18969  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18970$as_echo "$as_me: executing $ac_file commands" >&6;}
18971 ;;
18972  esac
18973
18974
18975  case $ac_file$ac_mode in
18976    "libtool":C)
18977
18978    # See if we are running on zsh, and set the options which allow our
18979    # commands through without removal of \ escapes.
18980    if test -n "${ZSH_VERSION+set}" ; then
18981      setopt NO_GLOB_SUBST
18982    fi
18983
18984    cfgfile="${ofile}T"
18985    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18986    $RM "$cfgfile"
18987
18988    cat <<_LT_EOF >> "$cfgfile"
18989#! $SHELL
18990
18991# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18992# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18994# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18995#
18996#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18997#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18998#                 Foundation, Inc.
18999#   Written by Gordon Matzigkeit, 1996
19000#
19001#   This file is part of GNU Libtool.
19002#
19003# GNU Libtool is free software; you can redistribute it and/or
19004# modify it under the terms of the GNU General Public License as
19005# published by the Free Software Foundation; either version 2 of
19006# the License, or (at your option) any later version.
19007#
19008# As a special exception to the GNU General Public License,
19009# if you distribute this file as part of a program or library that
19010# is built using GNU Libtool, you may include this file under the
19011# same distribution terms that you use for the rest of that program.
19012#
19013# GNU Libtool is distributed in the hope that it will be useful,
19014# but WITHOUT ANY WARRANTY; without even the implied warranty of
19015# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19016# GNU General Public License for more details.
19017#
19018# You should have received a copy of the GNU General Public License
19019# along with GNU Libtool; see the file COPYING.  If not, a copy
19020# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19021# obtained by writing to the Free Software Foundation, Inc.,
19022# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19023
19024
19025# The names of the tagged configurations supported by this script.
19026available_tags="CXX "
19027
19028# ### BEGIN LIBTOOL CONFIG
19029
19030# Assembler program.
19031AS=$lt_AS
19032
19033# DLL creation program.
19034DLLTOOL=$lt_DLLTOOL
19035
19036# Object dumper program.
19037OBJDUMP=$lt_OBJDUMP
19038
19039# Which release of libtool.m4 was used?
19040macro_version=$macro_version
19041macro_revision=$macro_revision
19042
19043# Whether or not to build shared libraries.
19044build_libtool_libs=$enable_shared
19045
19046# Whether or not to build static libraries.
19047build_old_libs=$enable_static
19048
19049# What type of objects to build.
19050pic_mode=$pic_mode
19051
19052# Whether or not to optimize for fast installation.
19053fast_install=$enable_fast_install
19054
19055# Shell to use when invoking shell scripts.
19056SHELL=$lt_SHELL
19057
19058# An echo program that protects backslashes.
19059ECHO=$lt_ECHO
19060
19061# The PATH separator for the build system.
19062PATH_SEPARATOR=$lt_PATH_SEPARATOR
19063
19064# The host system.
19065host_alias=$host_alias
19066host=$host
19067host_os=$host_os
19068
19069# The build system.
19070build_alias=$build_alias
19071build=$build
19072build_os=$build_os
19073
19074# A sed program that does not truncate output.
19075SED=$lt_SED
19076
19077# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19078Xsed="\$SED -e 1s/^X//"
19079
19080# A grep program that handles long lines.
19081GREP=$lt_GREP
19082
19083# An ERE matcher.
19084EGREP=$lt_EGREP
19085
19086# A literal string matcher.
19087FGREP=$lt_FGREP
19088
19089# A BSD- or MS-compatible name lister.
19090NM=$lt_NM
19091
19092# Whether we need soft or hard links.
19093LN_S=$lt_LN_S
19094
19095# What is the maximum length of a command?
19096max_cmd_len=$max_cmd_len
19097
19098# Object file suffix (normally "o").
19099objext=$ac_objext
19100
19101# Executable file suffix (normally "").
19102exeext=$exeext
19103
19104# whether the shell understands "unset".
19105lt_unset=$lt_unset
19106
19107# turn spaces into newlines.
19108SP2NL=$lt_lt_SP2NL
19109
19110# turn newlines into spaces.
19111NL2SP=$lt_lt_NL2SP
19112
19113# convert \$build file names to \$host format.
19114to_host_file_cmd=$lt_cv_to_host_file_cmd
19115
19116# convert \$build files to toolchain format.
19117to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19118
19119# Method to check whether dependent libraries are shared objects.
19120deplibs_check_method=$lt_deplibs_check_method
19121
19122# Command to use when deplibs_check_method = "file_magic".
19123file_magic_cmd=$lt_file_magic_cmd
19124
19125# How to find potential files when deplibs_check_method = "file_magic".
19126file_magic_glob=$lt_file_magic_glob
19127
19128# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19129want_nocaseglob=$lt_want_nocaseglob
19130
19131# Command to associate shared and link libraries.
19132sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19133
19134# The archiver.
19135AR=$lt_AR
19136
19137# Flags to create an archive.
19138AR_FLAGS=$lt_AR_FLAGS
19139
19140# How to feed a file listing to the archiver.
19141archiver_list_spec=$lt_archiver_list_spec
19142
19143# A symbol stripping program.
19144STRIP=$lt_STRIP
19145
19146# Commands used to install an old-style archive.
19147RANLIB=$lt_RANLIB
19148old_postinstall_cmds=$lt_old_postinstall_cmds
19149old_postuninstall_cmds=$lt_old_postuninstall_cmds
19150
19151# Whether to use a lock for old archive extraction.
19152lock_old_archive_extraction=$lock_old_archive_extraction
19153
19154# A C compiler.
19155LTCC=$lt_CC
19156
19157# LTCC compiler flags.
19158LTCFLAGS=$lt_CFLAGS
19159
19160# Take the output of nm and produce a listing of raw symbols and C names.
19161global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19162
19163# Transform the output of nm in a proper C declaration.
19164global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19165
19166# Transform the output of nm in a C name address pair.
19167global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19168
19169# Transform the output of nm in a C name address pair when lib prefix is needed.
19170global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19171
19172# Specify filename containing input files for \$NM.
19173nm_file_list_spec=$lt_nm_file_list_spec
19174
19175# The root where to search for dependent libraries,and in which our libraries should be installed.
19176lt_sysroot=$lt_sysroot
19177
19178# The name of the directory that contains temporary libtool files.
19179objdir=$objdir
19180
19181# Used to examine libraries when file_magic_cmd begins with "file".
19182MAGIC_CMD=$MAGIC_CMD
19183
19184# Must we lock files when doing compilation?
19185need_locks=$lt_need_locks
19186
19187# Manifest tool.
19188MANIFEST_TOOL=$lt_MANIFEST_TOOL
19189
19190# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19191DSYMUTIL=$lt_DSYMUTIL
19192
19193# Tool to change global to local symbols on Mac OS X.
19194NMEDIT=$lt_NMEDIT
19195
19196# Tool to manipulate fat objects and archives on Mac OS X.
19197LIPO=$lt_LIPO
19198
19199# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19200OTOOL=$lt_OTOOL
19201
19202# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19203OTOOL64=$lt_OTOOL64
19204
19205# Old archive suffix (normally "a").
19206libext=$libext
19207
19208# Shared library suffix (normally ".so").
19209shrext_cmds=$lt_shrext_cmds
19210
19211# The commands to extract the exported symbol list from a shared archive.
19212extract_expsyms_cmds=$lt_extract_expsyms_cmds
19213
19214# Variables whose values should be saved in libtool wrapper scripts and
19215# restored at link time.
19216variables_saved_for_relink=$lt_variables_saved_for_relink
19217
19218# Do we need the "lib" prefix for modules?
19219need_lib_prefix=$need_lib_prefix
19220
19221# Do we need a version for libraries?
19222need_version=$need_version
19223
19224# Library versioning type.
19225version_type=$version_type
19226
19227# Shared library runtime path variable.
19228runpath_var=$runpath_var
19229
19230# Shared library path variable.
19231shlibpath_var=$shlibpath_var
19232
19233# Is shlibpath searched before the hard-coded library search path?
19234shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19235
19236# Format of library name prefix.
19237libname_spec=$lt_libname_spec
19238
19239# List of archive names.  First name is the real one, the rest are links.
19240# The last name is the one that the linker finds with -lNAME
19241library_names_spec=$lt_library_names_spec
19242
19243# The coded name of the library, if different from the real name.
19244soname_spec=$lt_soname_spec
19245
19246# Permission mode override for installation of shared libraries.
19247install_override_mode=$lt_install_override_mode
19248
19249# Command to use after installation of a shared archive.
19250postinstall_cmds=$lt_postinstall_cmds
19251
19252# Command to use after uninstallation of a shared archive.
19253postuninstall_cmds=$lt_postuninstall_cmds
19254
19255# Commands used to finish a libtool library installation in a directory.
19256finish_cmds=$lt_finish_cmds
19257
19258# As "finish_cmds", except a single script fragment to be evaled but
19259# not shown.
19260finish_eval=$lt_finish_eval
19261
19262# Whether we should hardcode library paths into libraries.
19263hardcode_into_libs=$hardcode_into_libs
19264
19265# Compile-time system search path for libraries.
19266sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19267
19268# Run-time system search path for libraries.
19269sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19270
19271# Whether dlopen is supported.
19272dlopen_support=$enable_dlopen
19273
19274# Whether dlopen of programs is supported.
19275dlopen_self=$enable_dlopen_self
19276
19277# Whether dlopen of statically linked programs is supported.
19278dlopen_self_static=$enable_dlopen_self_static
19279
19280# Commands to strip libraries.
19281old_striplib=$lt_old_striplib
19282striplib=$lt_striplib
19283
19284
19285# The linker used to build libraries.
19286LD=$lt_LD
19287
19288# How to create reloadable object files.
19289reload_flag=$lt_reload_flag
19290reload_cmds=$lt_reload_cmds
19291
19292# Commands used to build an old-style archive.
19293old_archive_cmds=$lt_old_archive_cmds
19294
19295# A language specific compiler.
19296CC=$lt_compiler
19297
19298# Is the compiler the GNU compiler?
19299with_gcc=$GCC
19300
19301# Compiler flag to turn off builtin functions.
19302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19303
19304# Additional compiler flags for building library objects.
19305pic_flag=$lt_lt_prog_compiler_pic
19306
19307# How to pass a linker flag through the compiler.
19308wl=$lt_lt_prog_compiler_wl
19309
19310# Compiler flag to prevent dynamic linking.
19311link_static_flag=$lt_lt_prog_compiler_static
19312
19313# Does compiler simultaneously support -c and -o options?
19314compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19315
19316# Whether or not to add -lc for building shared libraries.
19317build_libtool_need_lc=$archive_cmds_need_lc
19318
19319# Whether or not to disallow shared libs when runtime libs are static.
19320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19321
19322# Compiler flag to allow reflexive dlopens.
19323export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19324
19325# Compiler flag to generate shared objects directly from archives.
19326whole_archive_flag_spec=$lt_whole_archive_flag_spec
19327
19328# Whether the compiler copes with passing no objects directly.
19329compiler_needs_object=$lt_compiler_needs_object
19330
19331# Create an old-style archive from a shared archive.
19332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19333
19334# Create a temporary old-style archive to link instead of a shared archive.
19335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19336
19337# Commands used to build a shared archive.
19338archive_cmds=$lt_archive_cmds
19339archive_expsym_cmds=$lt_archive_expsym_cmds
19340
19341# Commands used to build a loadable module if different from building
19342# a shared archive.
19343module_cmds=$lt_module_cmds
19344module_expsym_cmds=$lt_module_expsym_cmds
19345
19346# Whether we are building with GNU ld or not.
19347with_gnu_ld=$lt_with_gnu_ld
19348
19349# Flag that allows shared libraries with undefined symbols to be built.
19350allow_undefined_flag=$lt_allow_undefined_flag
19351
19352# Flag that enforces no undefined symbols.
19353no_undefined_flag=$lt_no_undefined_flag
19354
19355# Flag to hardcode \$libdir into a binary during linking.
19356# This must work even if \$libdir does not exist
19357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19358
19359# Whether we need a single "-rpath" flag with a separated argument.
19360hardcode_libdir_separator=$lt_hardcode_libdir_separator
19361
19362# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19363# DIR into the resulting binary.
19364hardcode_direct=$hardcode_direct
19365
19366# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19367# DIR into the resulting binary and the resulting library dependency is
19368# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19369# library is relocated.
19370hardcode_direct_absolute=$hardcode_direct_absolute
19371
19372# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19373# into the resulting binary.
19374hardcode_minus_L=$hardcode_minus_L
19375
19376# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19377# into the resulting binary.
19378hardcode_shlibpath_var=$hardcode_shlibpath_var
19379
19380# Set to "yes" if building a shared library automatically hardcodes DIR
19381# into the library and all subsequent libraries and executables linked
19382# against it.
19383hardcode_automatic=$hardcode_automatic
19384
19385# Set to yes if linker adds runtime paths of dependent libraries
19386# to runtime path list.
19387inherit_rpath=$inherit_rpath
19388
19389# Whether libtool must link a program against all its dependency libraries.
19390link_all_deplibs=$link_all_deplibs
19391
19392# Set to "yes" if exported symbols are required.
19393always_export_symbols=$always_export_symbols
19394
19395# The commands to list exported symbols.
19396export_symbols_cmds=$lt_export_symbols_cmds
19397
19398# Symbols that should not be listed in the preloaded symbols.
19399exclude_expsyms=$lt_exclude_expsyms
19400
19401# Symbols that must always be exported.
19402include_expsyms=$lt_include_expsyms
19403
19404# Commands necessary for linking programs (against libraries) with templates.
19405prelink_cmds=$lt_prelink_cmds
19406
19407# Commands necessary for finishing linking programs.
19408postlink_cmds=$lt_postlink_cmds
19409
19410# Specify filename containing input files.
19411file_list_spec=$lt_file_list_spec
19412
19413# How to hardcode a shared library path into an executable.
19414hardcode_action=$hardcode_action
19415
19416# The directories searched by this compiler when creating a shared library.
19417compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19418
19419# Dependencies to place before and after the objects being linked to
19420# create a shared library.
19421predep_objects=$lt_predep_objects
19422postdep_objects=$lt_postdep_objects
19423predeps=$lt_predeps
19424postdeps=$lt_postdeps
19425
19426# The library search path used internally by the compiler when linking
19427# a shared library.
19428compiler_lib_search_path=$lt_compiler_lib_search_path
19429
19430# ### END LIBTOOL CONFIG
19431
19432_LT_EOF
19433
19434  case $host_os in
19435  aix3*)
19436    cat <<\_LT_EOF >> "$cfgfile"
19437# AIX sometimes has problems with the GCC collect2 program.  For some
19438# reason, if we set the COLLECT_NAMES environment variable, the problems
19439# vanish in a puff of smoke.
19440if test "X${COLLECT_NAMES+set}" != Xset; then
19441  COLLECT_NAMES=
19442  export COLLECT_NAMES
19443fi
19444_LT_EOF
19445    ;;
19446  esac
19447
19448
19449ltmain="$ac_aux_dir/ltmain.sh"
19450
19451
19452  # We use sed instead of cat because bash on DJGPP gets confused if
19453  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19454  # text mode, it properly converts lines to CR/LF.  This bash problem
19455  # is reportedly fixed, but why not run on old versions too?
19456  sed '$q' "$ltmain" >> "$cfgfile" \
19457     || (rm -f "$cfgfile"; exit 1)
19458
19459  if test x"$xsi_shell" = xyes; then
19460  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19461func_dirname ()\
19462{\
19463\    case ${1} in\
19464\      */*) func_dirname_result="${1%/*}${2}" ;;\
19465\      *  ) func_dirname_result="${3}" ;;\
19466\    esac\
19467} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19468  && mv -f "$cfgfile.tmp" "$cfgfile" \
19469    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19470test 0 -eq $? || _lt_function_replace_fail=:
19471
19472
19473  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19474func_basename ()\
19475{\
19476\    func_basename_result="${1##*/}"\
19477} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19478  && mv -f "$cfgfile.tmp" "$cfgfile" \
19479    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19480test 0 -eq $? || _lt_function_replace_fail=:
19481
19482
19483  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19484func_dirname_and_basename ()\
19485{\
19486\    case ${1} in\
19487\      */*) func_dirname_result="${1%/*}${2}" ;;\
19488\      *  ) func_dirname_result="${3}" ;;\
19489\    esac\
19490\    func_basename_result="${1##*/}"\
19491} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19492  && mv -f "$cfgfile.tmp" "$cfgfile" \
19493    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19494test 0 -eq $? || _lt_function_replace_fail=:
19495
19496
19497  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19498func_stripname ()\
19499{\
19500\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19501\    # positional parameters, so assign one to ordinary parameter first.\
19502\    func_stripname_result=${3}\
19503\    func_stripname_result=${func_stripname_result#"${1}"}\
19504\    func_stripname_result=${func_stripname_result%"${2}"}\
19505} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19506  && mv -f "$cfgfile.tmp" "$cfgfile" \
19507    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19508test 0 -eq $? || _lt_function_replace_fail=:
19509
19510
19511  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19512func_split_long_opt ()\
19513{\
19514\    func_split_long_opt_name=${1%%=*}\
19515\    func_split_long_opt_arg=${1#*=}\
19516} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19517  && mv -f "$cfgfile.tmp" "$cfgfile" \
19518    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19519test 0 -eq $? || _lt_function_replace_fail=:
19520
19521
19522  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19523func_split_short_opt ()\
19524{\
19525\    func_split_short_opt_arg=${1#??}\
19526\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19527} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19528  && mv -f "$cfgfile.tmp" "$cfgfile" \
19529    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19530test 0 -eq $? || _lt_function_replace_fail=:
19531
19532
19533  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19534func_lo2o ()\
19535{\
19536\    case ${1} in\
19537\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19538\      *)    func_lo2o_result=${1} ;;\
19539\    esac\
19540} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19541  && mv -f "$cfgfile.tmp" "$cfgfile" \
19542    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19543test 0 -eq $? || _lt_function_replace_fail=:
19544
19545
19546  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19547func_xform ()\
19548{\
19549    func_xform_result=${1%.*}.lo\
19550} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19551  && mv -f "$cfgfile.tmp" "$cfgfile" \
19552    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19553test 0 -eq $? || _lt_function_replace_fail=:
19554
19555
19556  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19557func_arith ()\
19558{\
19559    func_arith_result=$(( $* ))\
19560} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19561  && mv -f "$cfgfile.tmp" "$cfgfile" \
19562    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19563test 0 -eq $? || _lt_function_replace_fail=:
19564
19565
19566  sed -e '/^func_len ()$/,/^} # func_len /c\
19567func_len ()\
19568{\
19569    func_len_result=${#1}\
19570} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19571  && mv -f "$cfgfile.tmp" "$cfgfile" \
19572    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19573test 0 -eq $? || _lt_function_replace_fail=:
19574
19575fi
19576
19577if test x"$lt_shell_append" = xyes; then
19578  sed -e '/^func_append ()$/,/^} # func_append /c\
19579func_append ()\
19580{\
19581    eval "${1}+=\\${2}"\
19582} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19583  && mv -f "$cfgfile.tmp" "$cfgfile" \
19584    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19585test 0 -eq $? || _lt_function_replace_fail=:
19586
19587
19588  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19589func_append_quoted ()\
19590{\
19591\    func_quote_for_eval "${2}"\
19592\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19593} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19594  && mv -f "$cfgfile.tmp" "$cfgfile" \
19595    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19596test 0 -eq $? || _lt_function_replace_fail=:
19597
19598
19599  # Save a `func_append' function call where possible by direct use of '+='
19600  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19601    && mv -f "$cfgfile.tmp" "$cfgfile" \
19602      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19603  test 0 -eq $? || _lt_function_replace_fail=:
19604else
19605  # Save a `func_append' function call even when '+=' is not available
19606  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19607    && mv -f "$cfgfile.tmp" "$cfgfile" \
19608      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19609  test 0 -eq $? || _lt_function_replace_fail=:
19610fi
19611
19612if test x"$_lt_function_replace_fail" = x":"; then
19613  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19614$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19615fi
19616
19617
19618   mv -f "$cfgfile" "$ofile" ||
19619    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19620  chmod +x "$ofile"
19621
19622
19623    cat <<_LT_EOF >> "$ofile"
19624
19625# ### BEGIN LIBTOOL TAG CONFIG: CXX
19626
19627# The linker used to build libraries.
19628LD=$lt_LD_CXX
19629
19630# How to create reloadable object files.
19631reload_flag=$lt_reload_flag_CXX
19632reload_cmds=$lt_reload_cmds_CXX
19633
19634# Commands used to build an old-style archive.
19635old_archive_cmds=$lt_old_archive_cmds_CXX
19636
19637# A language specific compiler.
19638CC=$lt_compiler_CXX
19639
19640# Is the compiler the GNU compiler?
19641with_gcc=$GCC_CXX
19642
19643# Compiler flag to turn off builtin functions.
19644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19645
19646# Additional compiler flags for building library objects.
19647pic_flag=$lt_lt_prog_compiler_pic_CXX
19648
19649# How to pass a linker flag through the compiler.
19650wl=$lt_lt_prog_compiler_wl_CXX
19651
19652# Compiler flag to prevent dynamic linking.
19653link_static_flag=$lt_lt_prog_compiler_static_CXX
19654
19655# Does compiler simultaneously support -c and -o options?
19656compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19657
19658# Whether or not to add -lc for building shared libraries.
19659build_libtool_need_lc=$archive_cmds_need_lc_CXX
19660
19661# Whether or not to disallow shared libs when runtime libs are static.
19662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19663
19664# Compiler flag to allow reflexive dlopens.
19665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19666
19667# Compiler flag to generate shared objects directly from archives.
19668whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19669
19670# Whether the compiler copes with passing no objects directly.
19671compiler_needs_object=$lt_compiler_needs_object_CXX
19672
19673# Create an old-style archive from a shared archive.
19674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19675
19676# Create a temporary old-style archive to link instead of a shared archive.
19677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19678
19679# Commands used to build a shared archive.
19680archive_cmds=$lt_archive_cmds_CXX
19681archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19682
19683# Commands used to build a loadable module if different from building
19684# a shared archive.
19685module_cmds=$lt_module_cmds_CXX
19686module_expsym_cmds=$lt_module_expsym_cmds_CXX
19687
19688# Whether we are building with GNU ld or not.
19689with_gnu_ld=$lt_with_gnu_ld_CXX
19690
19691# Flag that allows shared libraries with undefined symbols to be built.
19692allow_undefined_flag=$lt_allow_undefined_flag_CXX
19693
19694# Flag that enforces no undefined symbols.
19695no_undefined_flag=$lt_no_undefined_flag_CXX
19696
19697# Flag to hardcode \$libdir into a binary during linking.
19698# This must work even if \$libdir does not exist
19699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19700
19701# Whether we need a single "-rpath" flag with a separated argument.
19702hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19703
19704# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19705# DIR into the resulting binary.
19706hardcode_direct=$hardcode_direct_CXX
19707
19708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19709# DIR into the resulting binary and the resulting library dependency is
19710# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19711# library is relocated.
19712hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19713
19714# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19715# into the resulting binary.
19716hardcode_minus_L=$hardcode_minus_L_CXX
19717
19718# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19719# into the resulting binary.
19720hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19721
19722# Set to "yes" if building a shared library automatically hardcodes DIR
19723# into the library and all subsequent libraries and executables linked
19724# against it.
19725hardcode_automatic=$hardcode_automatic_CXX
19726
19727# Set to yes if linker adds runtime paths of dependent libraries
19728# to runtime path list.
19729inherit_rpath=$inherit_rpath_CXX
19730
19731# Whether libtool must link a program against all its dependency libraries.
19732link_all_deplibs=$link_all_deplibs_CXX
19733
19734# Set to "yes" if exported symbols are required.
19735always_export_symbols=$always_export_symbols_CXX
19736
19737# The commands to list exported symbols.
19738export_symbols_cmds=$lt_export_symbols_cmds_CXX
19739
19740# Symbols that should not be listed in the preloaded symbols.
19741exclude_expsyms=$lt_exclude_expsyms_CXX
19742
19743# Symbols that must always be exported.
19744include_expsyms=$lt_include_expsyms_CXX
19745
19746# Commands necessary for linking programs (against libraries) with templates.
19747prelink_cmds=$lt_prelink_cmds_CXX
19748
19749# Commands necessary for finishing linking programs.
19750postlink_cmds=$lt_postlink_cmds_CXX
19751
19752# Specify filename containing input files.
19753file_list_spec=$lt_file_list_spec_CXX
19754
19755# How to hardcode a shared library path into an executable.
19756hardcode_action=$hardcode_action_CXX
19757
19758# The directories searched by this compiler when creating a shared library.
19759compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19760
19761# Dependencies to place before and after the objects being linked to
19762# create a shared library.
19763predep_objects=$lt_predep_objects_CXX
19764postdep_objects=$lt_postdep_objects_CXX
19765predeps=$lt_predeps_CXX
19766postdeps=$lt_postdeps_CXX
19767
19768# The library search path used internally by the compiler when linking
19769# a shared library.
19770compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19771
19772# ### END LIBTOOL TAG CONFIG: CXX
19773_LT_EOF
19774
19775 ;;
19776    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19777  # Older Autoconf quotes --file arguments for eval, but not when files
19778  # are listed without --file.  Let's play safe and only enable the eval
19779  # if we detect the quoting.
19780  case $CONFIG_FILES in
19781  *\'*) eval set x "$CONFIG_FILES" ;;
19782  *)   set x $CONFIG_FILES ;;
19783  esac
19784  shift
19785  for mf
19786  do
19787    # Strip MF so we end up with the name of the file.
19788    mf=`echo "$mf" | sed -e 's/:.*$//'`
19789    # Check whether this is an Automake generated Makefile or not.
19790    # We used to match only the files named 'Makefile.in', but
19791    # some people rename them; so instead we look at the file content.
19792    # Grep'ing the first line is not enough: some people post-process
19793    # each Makefile.in and add a new line on top of each file to say so.
19794    # Grep'ing the whole file is not good either: AIX grep has a line
19795    # limit of 2048, but all sed's we know have understand at least 4000.
19796    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19797      dirpart=`$as_dirname -- "$mf" ||
19798$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19799	 X"$mf" : 'X\(//\)[^/]' \| \
19800	 X"$mf" : 'X\(//\)$' \| \
19801	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19802$as_echo X"$mf" |
19803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19804	    s//\1/
19805	    q
19806	  }
19807	  /^X\(\/\/\)[^/].*/{
19808	    s//\1/
19809	    q
19810	  }
19811	  /^X\(\/\/\)$/{
19812	    s//\1/
19813	    q
19814	  }
19815	  /^X\(\/\).*/{
19816	    s//\1/
19817	    q
19818	  }
19819	  s/.*/./; q'`
19820    else
19821      continue
19822    fi
19823    # Extract the definition of DEPDIR, am__include, and am__quote
19824    # from the Makefile without running 'make'.
19825    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19826    test -z "$DEPDIR" && continue
19827    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19828    test -z "$am__include" && continue
19829    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19830    # Find all dependency output files, they are included files with
19831    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19832    # simplest approach to changing $(DEPDIR) to its actual value in the
19833    # expansion.
19834    for file in `sed -n "
19835      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19836	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19837      # Make sure the directory exists.
19838      test -f "$dirpart/$file" && continue
19839      fdir=`$as_dirname -- "$file" ||
19840$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19841	 X"$file" : 'X\(//\)[^/]' \| \
19842	 X"$file" : 'X\(//\)$' \| \
19843	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19844$as_echo X"$file" |
19845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19846	    s//\1/
19847	    q
19848	  }
19849	  /^X\(\/\/\)[^/].*/{
19850	    s//\1/
19851	    q
19852	  }
19853	  /^X\(\/\/\)$/{
19854	    s//\1/
19855	    q
19856	  }
19857	  /^X\(\/\).*/{
19858	    s//\1/
19859	    q
19860	  }
19861	  s/.*/./; q'`
19862      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19863      # echo "creating $dirpart/$file"
19864      echo '# dummy' > "$dirpart/$file"
19865    done
19866  done
19867}
19868 ;;
19869
19870  esac
19871done # for ac_tag
19872
19873
19874as_fn_exit 0
19875_ACEOF
19876ac_clean_files=$ac_clean_files_save
19877
19878test $ac_write_fail = 0 ||
19879  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19880
19881
19882# configure is writing to config.log, and then calls config.status.
19883# config.status does its own redirection, appending to config.log.
19884# Unfortunately, on DOS this fails, as config.log is still kept open
19885# by configure, so config.status won't be able to write to it; its
19886# output is simply discarded.  So we exec the FD to /dev/null,
19887# effectively closing config.log, so it can be properly (re)opened and
19888# appended to by config.status.  When coming back to configure, we
19889# need to make the FD available again.
19890if test "$no_create" != yes; then
19891  ac_cs_success=:
19892  ac_config_status_args=
19893  test "$silent" = yes &&
19894    ac_config_status_args="$ac_config_status_args --quiet"
19895  exec 5>/dev/null
19896  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19897  exec 5>>config.log
19898  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19899  # would make configure fail if this is the last instruction.
19900  $ac_cs_success || as_fn_exit 1
19901fi
19902if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19903  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19904$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19905fi
19906
19907
19908