1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for drumgizmo 0.9.19.
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='drumgizmo'
589PACKAGE_TARNAME='drumgizmo'
590PACKAGE_VERSION='0.9.19'
591PACKAGE_STRING='drumgizmo 0.9.19'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/drumgizmo.cc"
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
636JACK_LIBS
637JACK_CFLAGS
638SSEFLAGS
639PTHREAD_LIBS
640PTHREAD_CFLAGS
641SNDFILE_LIBS
642SNDFILE_CFLAGS
643HAVE_OUTPUT_OSS_FALSE
644HAVE_OUTPUT_OSS_TRUE
645HAVE_OUTPUT_JACKAUDIO_FALSE
646HAVE_OUTPUT_JACKAUDIO_TRUE
647HAVE_OUTPUT_WAVFILE_FALSE
648HAVE_OUTPUT_WAVFILE_TRUE
649HAVE_OUTPUT_ALSA_FALSE
650HAVE_OUTPUT_ALSA_TRUE
651HAVE_OUTPUT_DUMMY_FALSE
652HAVE_OUTPUT_DUMMY_TRUE
653HAVE_INPUT_MIDIFILE_FALSE
654HAVE_INPUT_MIDIFILE_TRUE
655HAVE_INPUT_OSSMIDI_FALSE
656HAVE_INPUT_OSSMIDI_TRUE
657HAVE_INPUT_JACKMIDI_FALSE
658HAVE_INPUT_JACKMIDI_TRUE
659HAVE_INPUT_TEST_FALSE
660HAVE_INPUT_TEST_TRUE
661HAVE_INPUT_DUMMY_FALSE
662HAVE_INPUT_DUMMY_TRUE
663ENABLE_CLI_FALSE
664ENABLE_CLI_TRUE
665OUTPUT_PLUGIN_DIR
666INPUT_PLUGIN_DIR
667dgplugindir
668OUTPUT_PLUGINS
669ALSA_LIBS
670ALSA_CFLAGS
671INPUT_PLUGINS
672SMF_LIBS
673SMF_CFLAGS
674ENABLE_VST_FALSE
675ENABLE_VST_TRUE
676VST_CPPFLAGS
677VST_SOURCE_PATH
678ENABLE_LV2_FALSE
679ENABLE_LV2_TRUE
680LV2DIR
681DL_LIBS
682DL_CFLAGS
683LV2_LIBS
684LV2_CFLAGS
685ENABLE_TESTS_FALSE
686ENABLE_TESTS_TRUE
687ENABLE_PUGL_COCOA_FALSE
688ENABLE_PUGL_COCOA_TRUE
689ENABLE_PUGL_WIN32_FALSE
690ENABLE_PUGL_WIN32_TRUE
691ENABLE_PUGL_X11_FALSE
692ENABLE_PUGL_X11_TRUE
693ENABLE_COCOA_FALSE
694ENABLE_COCOA_TRUE
695ENABLE_WIN32_FALSE
696ENABLE_WIN32_TRUE
697ENABLE_X11_FALSE
698ENABLE_X11_TRUE
699GUI_LIBS
700GUI_CPPFLAGS
701XEXT_LIBS
702XEXT_CFLAGS
703X11_LIBS
704X11_CFLAGS
705WITH_NLS_FALSE
706WITH_NLS_TRUE
707MSGFMT
708MSGMERGE
709XGETTEXT
710DEBUG_FLAGS
711PKG_CONFIG_LIBDIR
712PKG_CONFIG_PATH
713PKG_CONFIG
714FLOAT_STORE
715CXXCPP
716CPP
717LT_SYS_LIBRARY_PATH
718OTOOL64
719OTOOL
720LIPO
721NMEDIT
722DSYMUTIL
723MANIFEST_TOOL
724RANLIB
725ac_ct_AR
726AR
727DLLTOOL
728OBJDUMP
729LN_S
730NM
731ac_ct_DUMPBIN
732DUMPBIN
733LD
734FGREP
735EGREP
736GREP
737SED
738host_os
739host_vendor
740host_cpu
741host
742build_os
743build_vendor
744build_cpu
745build
746LIBTOOL
747am__fastdepCC_FALSE
748am__fastdepCC_TRUE
749CCDEPMODE
750ac_ct_CC
751CFLAGS
752CC
753am__fastdepOBJCXX_FALSE
754am__fastdepOBJCXX_TRUE
755OBJCXXDEPMODE
756ac_ct_OBJCXX
757OBJCXXFLAGS
758OBJCXX
759am__fastdepOBJC_FALSE
760am__fastdepOBJC_TRUE
761OBJCDEPMODE
762ac_ct_OBJC
763OBJCFLAGS
764OBJC
765am__fastdepCXX_FALSE
766am__fastdepCXX_TRUE
767CXXDEPMODE
768am__nodep
769AMDEPBACKSLASH
770AMDEP_FALSE
771AMDEP_TRUE
772am__quote
773am__include
774DEPDIR
775OBJEXT
776EXEEXT
777ac_ct_CXX
778CPPFLAGS
779LDFLAGS
780CXXFLAGS
781CXX
782AM_BACKSLASH
783AM_DEFAULT_VERBOSITY
784AM_DEFAULT_V
785AM_V
786am__untar
787am__tar
788AMTAR
789am__leading_dot
790SET_MAKE
791AWK
792mkdir_p
793MKDIR_P
794INSTALL_STRIP_PROGRAM
795STRIP
796install_sh
797MAKEINFO
798AUTOHEADER
799AUTOMAKE
800AUTOCONF
801ACLOCAL
802VERSION
803PACKAGE
804CYGPATH_W
805am__isrc
806INSTALL_DATA
807INSTALL_SCRIPT
808INSTALL_PROGRAM
809target_alias
810host_alias
811build_alias
812LIBS
813ECHO_T
814ECHO_N
815ECHO_C
816DEFS
817mandir
818localedir
819libdir
820psdir
821pdfdir
822dvidir
823htmldir
824infodir
825docdir
826oldincludedir
827includedir
828localstatedir
829sharedstatedir
830sysconfdir
831datadir
832datarootdir
833libexecdir
834sbindir
835bindir
836program_transform_name
837prefix
838exec_prefix
839PACKAGE_URL
840PACKAGE_BUGREPORT
841PACKAGE_STRING
842PACKAGE_VERSION
843PACKAGE_TARNAME
844PACKAGE_NAME
845PATH_SEPARATOR
846SHELL'
847ac_subst_files=''
848ac_user_opts='
849enable_option_checking
850enable_silent_rules
851enable_dependency_tracking
852enable_shared
853enable_static
854with_pic
855enable_fast_install
856with_aix_soname
857with_gnu_ld
858with_sysroot
859enable_libtool_lock
860enable_largefile
861with_debug
862with_nls
863enable_gui
864enable_custom_channel_count
865with_test
866enable_lv2
867with_lv2dir
868with_vst_sources
869enable_vst
870enable_cli
871enable_input_dummy
872enable_input_test
873enable_input_jackmidi
874enable_input_midifile
875enable_input_oss
876enable_output_dummy
877enable_output_jackaudio
878enable_output_alsa
879enable_output_wavfile
880enable_output_oss
881enable_sse
882'
883      ac_precious_vars='build_alias
884host_alias
885target_alias
886CXX
887CXXFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
891CCC
892OBJC
893OBJCFLAGS
894OBJCXX
895OBJCXXFLAGS
896CC
897CFLAGS
898LT_SYS_LIBRARY_PATH
899CPP
900CXXCPP
901PKG_CONFIG
902PKG_CONFIG_PATH
903PKG_CONFIG_LIBDIR
904X11_CFLAGS
905X11_LIBS
906XEXT_CFLAGS
907XEXT_LIBS
908LV2_CFLAGS
909LV2_LIBS
910SMF_CFLAGS
911SMF_LIBS
912ALSA_CFLAGS
913ALSA_LIBS
914SNDFILE_CFLAGS
915SNDFILE_LIBS
916JACK_CFLAGS
917JACK_LIBS'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *=)   ac_optarg= ;;
982  *)    ac_optarg=yes ;;
983  esac
984
985  # Accept the important Cygnus configure options, so we can diagnose typos.
986
987  case $ac_dashdash$ac_option in
988  --)
989    ac_dashdash=yes ;;
990
991  -bindir | --bindir | --bindi | --bind | --bin | --bi)
992    ac_prev=bindir ;;
993  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994    bindir=$ac_optarg ;;
995
996  -build | --build | --buil | --bui | --bu)
997    ac_prev=build_alias ;;
998  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999    build_alias=$ac_optarg ;;
1000
1001  -cache-file | --cache-file | --cache-fil | --cache-fi \
1002  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003    ac_prev=cache_file ;;
1004  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006    cache_file=$ac_optarg ;;
1007
1008  --config-cache | -C)
1009    cache_file=config.cache ;;
1010
1011  -datadir | --datadir | --datadi | --datad)
1012    ac_prev=datadir ;;
1013  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014    datadir=$ac_optarg ;;
1015
1016  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017  | --dataroo | --dataro | --datar)
1018    ac_prev=datarootdir ;;
1019  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021    datarootdir=$ac_optarg ;;
1022
1023  -disable-* | --disable-*)
1024    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025    # Reject names that are not valid shell variable names.
1026    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027      as_fn_error $? "invalid feature name: $ac_useropt"
1028    ac_useropt_orig=$ac_useropt
1029    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030    case $ac_user_opts in
1031      *"
1032"enable_$ac_useropt"
1033"*) ;;
1034      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035	 ac_unrecognized_sep=', ';;
1036    esac
1037    eval enable_$ac_useropt=no ;;
1038
1039  -docdir | --docdir | --docdi | --doc | --do)
1040    ac_prev=docdir ;;
1041  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042    docdir=$ac_optarg ;;
1043
1044  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045    ac_prev=dvidir ;;
1046  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047    dvidir=$ac_optarg ;;
1048
1049  -enable-* | --enable-*)
1050    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053      as_fn_error $? "invalid feature name: $ac_useropt"
1054    ac_useropt_orig=$ac_useropt
1055    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056    case $ac_user_opts in
1057      *"
1058"enable_$ac_useropt"
1059"*) ;;
1060      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061	 ac_unrecognized_sep=', ';;
1062    esac
1063    eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067  | --exec | --exe | --ex)
1068    ac_prev=exec_prefix ;;
1069  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071  | --exec=* | --exe=* | --ex=*)
1072    exec_prefix=$ac_optarg ;;
1073
1074  -gas | --gas | --ga | --g)
1075    # Obsolete; use --with-gas.
1076    with_gas=yes ;;
1077
1078  -help | --help | --hel | --he | -h)
1079    ac_init_help=long ;;
1080  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081    ac_init_help=recursive ;;
1082  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083    ac_init_help=short ;;
1084
1085  -host | --host | --hos | --ho)
1086    ac_prev=host_alias ;;
1087  -host=* | --host=* | --hos=* | --ho=*)
1088    host_alias=$ac_optarg ;;
1089
1090  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091    ac_prev=htmldir ;;
1092  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093  | --ht=*)
1094    htmldir=$ac_optarg ;;
1095
1096  -includedir | --includedir | --includedi | --included | --include \
1097  | --includ | --inclu | --incl | --inc)
1098    ac_prev=includedir ;;
1099  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100  | --includ=* | --inclu=* | --incl=* | --inc=*)
1101    includedir=$ac_optarg ;;
1102
1103  -infodir | --infodir | --infodi | --infod | --info | --inf)
1104    ac_prev=infodir ;;
1105  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106    infodir=$ac_optarg ;;
1107
1108  -libdir | --libdir | --libdi | --libd)
1109    ac_prev=libdir ;;
1110  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111    libdir=$ac_optarg ;;
1112
1113  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114  | --libexe | --libex | --libe)
1115    ac_prev=libexecdir ;;
1116  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117  | --libexe=* | --libex=* | --libe=*)
1118    libexecdir=$ac_optarg ;;
1119
1120  -localedir | --localedir | --localedi | --localed | --locale)
1121    ac_prev=localedir ;;
1122  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123    localedir=$ac_optarg ;;
1124
1125  -localstatedir | --localstatedir | --localstatedi | --localstated \
1126  | --localstate | --localstat | --localsta | --localst | --locals)
1127    ac_prev=localstatedir ;;
1128  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130    localstatedir=$ac_optarg ;;
1131
1132  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133    ac_prev=mandir ;;
1134  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135    mandir=$ac_optarg ;;
1136
1137  -nfp | --nfp | --nf)
1138    # Obsolete; use --without-fp.
1139    with_fp=no ;;
1140
1141  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142  | --no-cr | --no-c | -n)
1143    no_create=yes ;;
1144
1145  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147    no_recursion=yes ;;
1148
1149  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151  | --oldin | --oldi | --old | --ol | --o)
1152    ac_prev=oldincludedir ;;
1153  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156    oldincludedir=$ac_optarg ;;
1157
1158  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159    ac_prev=prefix ;;
1160  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161    prefix=$ac_optarg ;;
1162
1163  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164  | --program-pre | --program-pr | --program-p)
1165    ac_prev=program_prefix ;;
1166  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168    program_prefix=$ac_optarg ;;
1169
1170  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171  | --program-suf | --program-su | --program-s)
1172    ac_prev=program_suffix ;;
1173  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175    program_suffix=$ac_optarg ;;
1176
1177  -program-transform-name | --program-transform-name \
1178  | --program-transform-nam | --program-transform-na \
1179  | --program-transform-n | --program-transform- \
1180  | --program-transform | --program-transfor \
1181  | --program-transfo | --program-transf \
1182  | --program-trans | --program-tran \
1183  | --progr-tra | --program-tr | --program-t)
1184    ac_prev=program_transform_name ;;
1185  -program-transform-name=* | --program-transform-name=* \
1186  | --program-transform-nam=* | --program-transform-na=* \
1187  | --program-transform-n=* | --program-transform-=* \
1188  | --program-transform=* | --program-transfor=* \
1189  | --program-transfo=* | --program-transf=* \
1190  | --program-trans=* | --program-tran=* \
1191  | --progr-tra=* | --program-tr=* | --program-t=*)
1192    program_transform_name=$ac_optarg ;;
1193
1194  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195    ac_prev=pdfdir ;;
1196  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197    pdfdir=$ac_optarg ;;
1198
1199  -psdir | --psdir | --psdi | --psd | --ps)
1200    ac_prev=psdir ;;
1201  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202    psdir=$ac_optarg ;;
1203
1204  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205  | -silent | --silent | --silen | --sile | --sil)
1206    silent=yes ;;
1207
1208  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209    ac_prev=sbindir ;;
1210  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211  | --sbi=* | --sb=*)
1212    sbindir=$ac_optarg ;;
1213
1214  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216  | --sharedst | --shareds | --shared | --share | --shar \
1217  | --sha | --sh)
1218    ac_prev=sharedstatedir ;;
1219  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222  | --sha=* | --sh=*)
1223    sharedstatedir=$ac_optarg ;;
1224
1225  -site | --site | --sit)
1226    ac_prev=site ;;
1227  -site=* | --site=* | --sit=*)
1228    site=$ac_optarg ;;
1229
1230  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231    ac_prev=srcdir ;;
1232  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233    srcdir=$ac_optarg ;;
1234
1235  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236  | --syscon | --sysco | --sysc | --sys | --sy)
1237    ac_prev=sysconfdir ;;
1238  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240    sysconfdir=$ac_optarg ;;
1241
1242  -target | --target | --targe | --targ | --tar | --ta | --t)
1243    ac_prev=target_alias ;;
1244  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245    target_alias=$ac_optarg ;;
1246
1247  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248    verbose=yes ;;
1249
1250  -version | --version | --versio | --versi | --vers | -V)
1251    ac_init_version=: ;;
1252
1253  -with-* | --with-*)
1254    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257      as_fn_error $? "invalid package name: $ac_useropt"
1258    ac_useropt_orig=$ac_useropt
1259    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260    case $ac_user_opts in
1261      *"
1262"with_$ac_useropt"
1263"*) ;;
1264      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265	 ac_unrecognized_sep=', ';;
1266    esac
1267    eval with_$ac_useropt=\$ac_optarg ;;
1268
1269  -without-* | --without-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error $? "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281	 ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=no ;;
1284
1285  --x)
1286    # Obsolete; use --with-x.
1287    with_x=yes ;;
1288
1289  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290  | --x-incl | --x-inc | --x-in | --x-i)
1291    ac_prev=x_includes ;;
1292  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294    x_includes=$ac_optarg ;;
1295
1296  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298    ac_prev=x_libraries ;;
1299  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301    x_libraries=$ac_optarg ;;
1302
1303  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304Try \`$0 --help' for more information"
1305    ;;
1306
1307  *=*)
1308    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309    # Reject names that are not valid shell variable names.
1310    case $ac_envvar in #(
1311      '' | [0-9]* | *[!_$as_cr_alnum]* )
1312      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313    esac
1314    eval $ac_envvar=\$ac_optarg
1315    export $ac_envvar ;;
1316
1317  *)
1318    # FIXME: should be removed in autoconf 3.0.
1319    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323    ;;
1324
1325  esac
1326done
1327
1328if test -n "$ac_prev"; then
1329  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330  as_fn_error $? "missing argument to $ac_option"
1331fi
1332
1333if test -n "$ac_unrecognized_opts"; then
1334  case $enable_option_checking in
1335    no) ;;
1336    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338  esac
1339fi
1340
1341# Check all directory arguments for consistency.
1342for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343		datadir sysconfdir sharedstatedir localstatedir includedir \
1344		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345		libdir localedir mandir
1346do
1347  eval ac_val=\$$ac_var
1348  # Remove trailing slashes.
1349  case $ac_val in
1350    */ )
1351      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352      eval $ac_var=\$ac_val;;
1353  esac
1354  # Be sure to have absolute directory names.
1355  case $ac_val in
1356    [\\/$]* | ?:[\\/]* )  continue;;
1357    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358  esac
1359  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371  if test "x$build_alias" = x; then
1372    cross_compiling=maybe
1373  elif test "x$build_alias" != "x$host_alias"; then
1374    cross_compiling=yes
1375  fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387  as_fn_error $? "working directory cannot be determined"
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389  as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394  ac_srcdir_defaulted=yes
1395  # Try the directory containing this script, then the parent directory.
1396  ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398	 X"$as_myself" : 'X\(//\)[^/]' \| \
1399	 X"$as_myself" : 'X\(//\)$' \| \
1400	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
1402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\/\)[^/].*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\).*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  s/.*/./; q'`
1419  srcdir=$ac_confdir
1420  if test ! -r "$srcdir/$ac_unique_file"; then
1421    srcdir=..
1422  fi
1423else
1424  ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429fi
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433	pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436  srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_env_${ac_var}_value=\$${ac_var}
1447  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455  # Omit some internal or obsolete options to make the list less imposing.
1456  # This message is too long to be a string in the A/UX 3.1 sh.
1457  cat <<_ACEOF
1458\`configure' configures drumgizmo 0.9.19 to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468  -h, --help              display this help and exit
1469      --help=short        display options specific to this package
1470      --help=recursive    display the short help of all the included packages
1471  -V, --version           display version information and exit
1472  -q, --quiet, --silent   do not print \`checking ...' messages
1473      --cache-file=FILE   cache test results in FILE [disabled]
1474  -C, --config-cache      alias for \`--cache-file=config.cache'
1475  -n, --no-create         do not create output files
1476      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479  --prefix=PREFIX         install architecture-independent files in PREFIX
1480                          [$ac_default_prefix]
1481  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                          [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492  --bindir=DIR            user executables [EPREFIX/bin]
1493  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494  --libexecdir=DIR        program executables [EPREFIX/libexec]
1495  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498  --libdir=DIR            object code libraries [EPREFIX/lib]
1499  --includedir=DIR        C header files [PREFIX/include]
1500  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503  --infodir=DIR           info documentation [DATAROOTDIR/info]
1504  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505  --mandir=DIR            man documentation [DATAROOTDIR/man]
1506  --docdir=DIR            documentation root [DATAROOTDIR/doc/drumgizmo]
1507  --htmldir=DIR           html documentation [DOCDIR]
1508  --dvidir=DIR            dvi documentation [DOCDIR]
1509  --pdfdir=DIR            pdf documentation [DOCDIR]
1510  --psdir=DIR             ps documentation [DOCDIR]
1511_ACEOF
1512
1513  cat <<\_ACEOF
1514
1515Program names:
1516  --program-prefix=PREFIX            prepend PREFIX to installed program names
1517  --program-suffix=SUFFIX            append SUFFIX to installed program names
1518  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1519
1520System types:
1521  --build=BUILD     configure for building on BUILD [guessed]
1522  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527  case $ac_init_help in
1528     short | recursive ) echo "Configuration of drumgizmo 0.9.19:";;
1529   esac
1530  cat <<\_ACEOF
1531
1532Optional Features:
1533  --disable-option-checking  ignore unrecognized --enable/--with options
1534  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536  --enable-silent-rules   less verbose build output (undo: "make V=1")
1537  --disable-silent-rules  verbose build output (undo: "make V=0")
1538  --enable-dependency-tracking
1539                          do not reject slow dependency extractors
1540  --disable-dependency-tracking
1541                          speeds up one-time build
1542  --enable-shared[=PKGS]  build shared libraries [default=yes]
1543  --enable-static[=PKGS]  build static libraries [default=yes]
1544  --enable-fast-install[=PKGS]
1545                          optimize for fast installation [default=yes]
1546  --disable-libtool-lock  avoid locking (might break parallel builds)
1547  --disable-largefile     omit support for large files
1548  --enable-gui=backend    Use specified gui backend. Can be x11, win32, cocoa,
1549                          pugl-x11, pugl-win32, pugl-cocoa or auto
1550                          [default=auto]
1551  --enable-custom-channel-count=count
1552                          Compile with specified number of output channels
1553                          [default=16]
1554  --enable-lv2            Compile the LV2 plugin [default=no]
1555  --enable-vst            Compile the VST plugin [default=no]
1556  --enable-cli            Compile the command line interface [default=yes]
1557  --disable-input-dummy   Disable input dummy plugin [default=enabled]
1558  --disable-input-test    Disable input test plugin [default=enabled]
1559  --disable-input-jackmidi
1560                          Disable input jackmidi plugin [default=enabled]
1561  --disable-input-midifile
1562                          Disable input midifile plugin [default=enabled]
1563  --disable-input-oss     Disable input oss plugin [enabled by default on
1564                          FreeBSD, disabled otherwise]
1565  --disable-output-dummy  Disable output dummy plugin [default=enabled]
1566  --disable-output-jackaudio
1567                          Disable output jack plugin [default=enabled]
1568  --disable-output-alsa   Disable output alsa plugin [default=enabled]
1569  --disable-output-wavfile
1570                          Disable output wavfile plugin [default=enabled]
1571  --disable-output-oss    Disable output oss plugin [enabled by default on
1572                          FreeBSD, disabled otherwise]
1573  --enable-sse=level      Enable SSE Level 1, 2, 3 or auto [default=auto]
1574
1575Optional Packages:
1576  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1579                          both]
1580  --with-aix-soname=aix|svr4|both
1581                          shared library versioning (aka "SONAME") variant to
1582                          provide on AIX, [default=aix].
1583  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1584  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1585                          compiler's sysroot if not specified).
1586  --with-debug            Build with debug support
1587  --with-nls              Build with nls support (default nls enabled)
1588  --with-test             Build unit tests
1589  --with-lv2dir=DIR       Use DIR as the lv2 plugin directory
1590                          [default=LIBDIR/lv2]
1591  --with-vst-sources      Point this to the vstsdk24 directory
1592
1593Some influential environment variables:
1594  CXX         C++ compiler command
1595  CXXFLAGS    C++ compiler flags
1596  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1597              nonstandard directory <lib dir>
1598  LIBS        libraries to pass to the linker, e.g. -l<library>
1599  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1600              you have headers in a nonstandard directory <include dir>
1601  OBJC        Objective C compiler command
1602  OBJCFLAGS   Objective C compiler flags
1603  OBJCXX      Objective C++ compiler command
1604  OBJCXXFLAGS Objective C++ compiler flags
1605  CC          C compiler command
1606  CFLAGS      C compiler flags
1607  LT_SYS_LIBRARY_PATH
1608              User-defined run-time library search path.
1609  CPP         C preprocessor
1610  CXXCPP      C++ preprocessor
1611  PKG_CONFIG  path to pkg-config utility
1612  PKG_CONFIG_PATH
1613              directories to add to pkg-config's search path
1614  PKG_CONFIG_LIBDIR
1615              path overriding pkg-config's built-in search path
1616  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1617  X11_LIBS    linker flags for X11, overriding pkg-config
1618  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1619  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1620  LV2_CFLAGS  C compiler flags for LV2, overriding pkg-config
1621  LV2_LIBS    linker flags for LV2, overriding pkg-config
1622  SMF_CFLAGS  C compiler flags for SMF, overriding pkg-config
1623  SMF_LIBS    linker flags for SMF, overriding pkg-config
1624  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1625  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1626  SNDFILE_CFLAGS
1627              C compiler flags for SNDFILE, overriding pkg-config
1628  SNDFILE_LIBS
1629              linker flags for SNDFILE, overriding pkg-config
1630  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1631  JACK_LIBS   linker flags for JACK, overriding pkg-config
1632
1633Use these variables to override the choices made by `configure' or to help
1634it to find libraries and programs with nonstandard names/locations.
1635
1636Report bugs to the package provider.
1637_ACEOF
1638ac_status=$?
1639fi
1640
1641if test "$ac_init_help" = "recursive"; then
1642  # If there are subdirs, report their specific --help.
1643  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644    test -d "$ac_dir" ||
1645      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646      continue
1647    ac_builddir=.
1648
1649case "$ac_dir" in
1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651*)
1652  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653  # A ".." for each directory in $ac_dir_suffix.
1654  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655  case $ac_top_builddir_sub in
1656  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658  esac ;;
1659esac
1660ac_abs_top_builddir=$ac_pwd
1661ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662# for backward compatibility:
1663ac_top_builddir=$ac_top_build_prefix
1664
1665case $srcdir in
1666  .)  # We are building in place.
1667    ac_srcdir=.
1668    ac_top_srcdir=$ac_top_builddir_sub
1669    ac_abs_top_srcdir=$ac_pwd ;;
1670  [\\/]* | ?:[\\/]* )  # Absolute name.
1671    ac_srcdir=$srcdir$ac_dir_suffix;
1672    ac_top_srcdir=$srcdir
1673    ac_abs_top_srcdir=$srcdir ;;
1674  *) # Relative name.
1675    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676    ac_top_srcdir=$ac_top_build_prefix$srcdir
1677    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678esac
1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681    cd "$ac_dir" || { ac_status=$?; continue; }
1682    # Check for guested configure.
1683    if test -f "$ac_srcdir/configure.gnu"; then
1684      echo &&
1685      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686    elif test -f "$ac_srcdir/configure"; then
1687      echo &&
1688      $SHELL "$ac_srcdir/configure" --help=recursive
1689    else
1690      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691    fi || ac_status=$?
1692    cd "$ac_pwd" || { ac_status=$?; break; }
1693  done
1694fi
1695
1696test -n "$ac_init_help" && exit $ac_status
1697if $ac_init_version; then
1698  cat <<\_ACEOF
1699drumgizmo configure 0.9.19
1700generated by GNU Autoconf 2.69
1701
1702Copyright (C) 2012 Free Software Foundation, Inc.
1703This configure script is free software; the Free Software Foundation
1704gives unlimited permission to copy, distribute and modify it.
1705_ACEOF
1706  exit
1707fi
1708
1709## ------------------------ ##
1710## Autoconf initialization. ##
1711## ------------------------ ##
1712
1713# ac_fn_cxx_try_compile LINENO
1714# ----------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_cxx_try_compile ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  rm -f conftest.$ac_objext
1720  if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_compile") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } && {
1736	 test -z "$ac_cxx_werror_flag" ||
1737	 test ! -s conftest.err
1738       } && test -s conftest.$ac_objext; then :
1739  ac_retval=0
1740else
1741  $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744	ac_retval=1
1745fi
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_cxx_try_compile
1750
1751# ac_fn_objc_try_compile LINENO
1752# -----------------------------
1753# Try to compile conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_objc_try_compile ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  rm -f conftest.$ac_objext
1758  if { { ac_try="$ac_compile"
1759case "(($ac_try" in
1760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761  *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765  (eval "$ac_compile") 2>conftest.err
1766  ac_status=$?
1767  if test -s conftest.err; then
1768    grep -v '^ *+' conftest.err >conftest.er1
1769    cat conftest.er1 >&5
1770    mv -f conftest.er1 conftest.err
1771  fi
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; } && {
1774	 test -z "$ac_objc_werror_flag" ||
1775	 test ! -s conftest.err
1776       } && test -s conftest.$ac_objext; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782	ac_retval=1
1783fi
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785  as_fn_set_status $ac_retval
1786
1787} # ac_fn_objc_try_compile
1788
1789# ac_fn_objcxx_try_compile LINENO
1790# -------------------------------
1791# Try to compile conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_objcxx_try_compile ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  rm -f conftest.$ac_objext
1796  if { { ac_try="$ac_compile"
1797case "(($ac_try" in
1798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799  *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803  (eval "$ac_compile") 2>conftest.err
1804  ac_status=$?
1805  if test -s conftest.err; then
1806    grep -v '^ *+' conftest.err >conftest.er1
1807    cat conftest.er1 >&5
1808    mv -f conftest.er1 conftest.err
1809  fi
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; } && {
1812	 test -z "$ac_objcxx_werror_flag" ||
1813	 test ! -s conftest.err
1814       } && test -s conftest.$ac_objext; then :
1815  ac_retval=0
1816else
1817  $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820	ac_retval=1
1821fi
1822  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823  as_fn_set_status $ac_retval
1824
1825} # ac_fn_objcxx_try_compile
1826
1827# ac_fn_c_try_compile LINENO
1828# --------------------------
1829# Try to compile conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_compile ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  rm -f conftest.$ac_objext
1834  if { { ac_try="$ac_compile"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_compile") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && {
1850	 test -z "$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       } && test -s conftest.$ac_objext; then :
1853  ac_retval=0
1854else
1855  $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858	ac_retval=1
1859fi
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_compile
1864
1865# ac_fn_c_try_link LINENO
1866# -----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_c_try_link ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  rm -f conftest.$ac_objext conftest$ac_exeext
1872  if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875  *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879  (eval "$ac_link") 2>conftest.err
1880  ac_status=$?
1881  if test -s conftest.err; then
1882    grep -v '^ *+' conftest.err >conftest.er1
1883    cat conftest.er1 >&5
1884    mv -f conftest.er1 conftest.err
1885  fi
1886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887  test $ac_status = 0; } && {
1888	 test -z "$ac_c_werror_flag" ||
1889	 test ! -s conftest.err
1890       } && test -s conftest$ac_exeext && {
1891	 test "$cross_compiling" = yes ||
1892	 test -x conftest$ac_exeext
1893       }; then :
1894  ac_retval=0
1895else
1896  $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899	ac_retval=1
1900fi
1901  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903  # interfere with the next link command; also delete a directory that is
1904  # left behind by Apple's compiler.  We do this before executing the actions.
1905  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907  as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_link
1910
1911# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912# -------------------------------------------------------
1913# Tests whether HEADER exists and can be compiled using the include files in
1914# INCLUDES, setting the cache variable VAR accordingly.
1915ac_fn_c_check_header_compile ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929  eval "$3=yes"
1930else
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_header_compile
1941
1942# ac_fn_c_try_cpp LINENO
1943# ----------------------
1944# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_c_try_cpp ()
1946{
1947  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948  if { { ac_try="$ac_cpp conftest.$ac_ext"
1949case "(($ac_try" in
1950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951  *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956  ac_status=$?
1957  if test -s conftest.err; then
1958    grep -v '^ *+' conftest.err >conftest.er1
1959    cat conftest.er1 >&5
1960    mv -f conftest.er1 conftest.err
1961  fi
1962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; } > conftest.i && {
1964	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1965	 test ! -s conftest.err
1966       }; then :
1967  ac_retval=0
1968else
1969  $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972    ac_retval=1
1973fi
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_c_try_cpp
1978
1979# ac_fn_c_try_run LINENO
1980# ----------------------
1981# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1982# that executables *can* be run.
1983ac_fn_c_try_run ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if { { ac_try="$ac_link"
1987case "(($ac_try" in
1988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989  *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993  (eval "$ac_link") 2>&5
1994  ac_status=$?
1995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1997  { { case "(($ac_try" in
1998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999  *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003  (eval "$ac_try") 2>&5
2004  ac_status=$?
2005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006  test $ac_status = 0; }; }; then :
2007  ac_retval=0
2008else
2009  $as_echo "$as_me: program exited with status $ac_status" >&5
2010       $as_echo "$as_me: failed program was:" >&5
2011sed 's/^/| /' conftest.$ac_ext >&5
2012
2013       ac_retval=$ac_status
2014fi
2015  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017  as_fn_set_status $ac_retval
2018
2019} # ac_fn_c_try_run
2020
2021# ac_fn_c_check_func LINENO FUNC VAR
2022# ----------------------------------
2023# Tests whether FUNC exists, setting the cache variable VAR accordingly
2024ac_fn_c_check_func ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if eval \${$3+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2036#define $2 innocuous_$2
2037
2038/* System header to define __stub macros and hopefully few prototypes,
2039    which can conflict with char $2 (); below.
2040    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041    <limits.h> exists even on freestanding compilers.  */
2042
2043#ifdef __STDC__
2044# include <limits.h>
2045#else
2046# include <assert.h>
2047#endif
2048
2049#undef $2
2050
2051/* Override any GCC internal prototype to avoid an error.
2052   Use char because int might match the return type of a GCC
2053   builtin and then its argument prototype would still apply.  */
2054#ifdef __cplusplus
2055extern "C"
2056#endif
2057char $2 ();
2058/* The GNU C library defines this for functions which it implements
2059    to always fail with ENOSYS.  Some functions are actually named
2060    something starting with __ and the normal name is an alias.  */
2061#if defined __stub_$2 || defined __stub___$2
2062choke me
2063#endif
2064
2065int
2066main ()
2067{
2068return $2 ();
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_link "$LINENO"; then :
2074  eval "$3=yes"
2075else
2076  eval "$3=no"
2077fi
2078rm -f core conftest.err conftest.$ac_objext \
2079    conftest$ac_exeext conftest.$ac_ext
2080fi
2081eval ac_res=\$$3
2082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_c_check_func
2087
2088# ac_fn_cxx_try_cpp LINENO
2089# ------------------------
2090# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2091ac_fn_cxx_try_cpp ()
2092{
2093  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094  if { { ac_try="$ac_cpp conftest.$ac_ext"
2095case "(($ac_try" in
2096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097  *) ac_try_echo=$ac_try;;
2098esac
2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100$as_echo "$ac_try_echo"; } >&5
2101  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2102  ac_status=$?
2103  if test -s conftest.err; then
2104    grep -v '^ *+' conftest.err >conftest.er1
2105    cat conftest.er1 >&5
2106    mv -f conftest.er1 conftest.err
2107  fi
2108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109  test $ac_status = 0; } > conftest.i && {
2110	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2111	 test ! -s conftest.err
2112       }; then :
2113  ac_retval=0
2114else
2115  $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118    ac_retval=1
2119fi
2120  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121  as_fn_set_status $ac_retval
2122
2123} # ac_fn_cxx_try_cpp
2124
2125# ac_fn_cxx_try_link LINENO
2126# -------------------------
2127# Try to link conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_cxx_try_link ()
2129{
2130  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131  rm -f conftest.$ac_objext conftest$ac_exeext
2132  if { { ac_try="$ac_link"
2133case "(($ac_try" in
2134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135  *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139  (eval "$ac_link") 2>conftest.err
2140  ac_status=$?
2141  if test -s conftest.err; then
2142    grep -v '^ *+' conftest.err >conftest.er1
2143    cat conftest.er1 >&5
2144    mv -f conftest.er1 conftest.err
2145  fi
2146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147  test $ac_status = 0; } && {
2148	 test -z "$ac_cxx_werror_flag" ||
2149	 test ! -s conftest.err
2150       } && test -s conftest$ac_exeext && {
2151	 test "$cross_compiling" = yes ||
2152	 test -x conftest$ac_exeext
2153       }; then :
2154  ac_retval=0
2155else
2156  $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159	ac_retval=1
2160fi
2161  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2162  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2163  # interfere with the next link command; also delete a directory that is
2164  # left behind by Apple's compiler.  We do this before executing the actions.
2165  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2166  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167  as_fn_set_status $ac_retval
2168
2169} # ac_fn_cxx_try_link
2170
2171# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2172# -------------------------------------------------------
2173# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2174# the include files in INCLUDES and setting the cache variable VAR
2175# accordingly.
2176ac_fn_c_check_header_mongrel ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  if eval \${$3+:} false; then :
2180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181$as_echo_n "checking for $2... " >&6; }
2182if eval \${$3+:} false; then :
2183  $as_echo_n "(cached) " >&6
2184fi
2185eval ac_res=\$$3
2186	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187$as_echo "$ac_res" >&6; }
2188else
2189  # Is the header compilable?
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2191$as_echo_n "checking $2 usability... " >&6; }
2192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h.  */
2194$4
2195#include <$2>
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198  ac_header_compiler=yes
2199else
2200  ac_header_compiler=no
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2204$as_echo "$ac_header_compiler" >&6; }
2205
2206# Is the header present?
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2208$as_echo_n "checking $2 presence... " >&6; }
2209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211#include <$2>
2212_ACEOF
2213if ac_fn_c_try_cpp "$LINENO"; then :
2214  ac_header_preproc=yes
2215else
2216  ac_header_preproc=no
2217fi
2218rm -f conftest.err conftest.i conftest.$ac_ext
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2220$as_echo "$ac_header_preproc" >&6; }
2221
2222# So?  What about this header?
2223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2224  yes:no: )
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2226$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229    ;;
2230  no:yes:* )
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2232$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2234$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2236$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2238$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2239    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2240$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2241    ;;
2242esac
2243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244$as_echo_n "checking for $2... " >&6; }
2245if eval \${$3+:} false; then :
2246  $as_echo_n "(cached) " >&6
2247else
2248  eval "$3=\$ac_header_compiler"
2249fi
2250eval ac_res=\$$3
2251	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
2253fi
2254  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256} # ac_fn_c_check_header_mongrel
2257cat >config.log <<_ACEOF
2258This file contains any messages produced by compilers while
2259running configure, to aid debugging if configure makes a mistake.
2260
2261It was created by drumgizmo $as_me 0.9.19, which was
2262generated by GNU Autoconf 2.69.  Invocation command line was
2263
2264  $ $0 $@
2265
2266_ACEOF
2267exec 5>>config.log
2268{
2269cat <<_ASUNAME
2270## --------- ##
2271## Platform. ##
2272## --------- ##
2273
2274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2282
2283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2290
2291_ASUNAME
2292
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298    $as_echo "PATH: $as_dir"
2299  done
2300IFS=$as_save_IFS
2301
2302} >&5
2303
2304cat >&5 <<_ACEOF
2305
2306
2307## ----------- ##
2308## Core tests. ##
2309## ----------- ##
2310
2311_ACEOF
2312
2313
2314# Keep a trace of the command line.
2315# Strip out --no-create and --no-recursion so they do not pile up.
2316# Strip out --silent because we don't want to record it for future runs.
2317# Also quote any args containing shell meta-characters.
2318# Make two passes to allow for proper duplicate-argument suppression.
2319ac_configure_args=
2320ac_configure_args0=
2321ac_configure_args1=
2322ac_must_keep_next=false
2323for ac_pass in 1 2
2324do
2325  for ac_arg
2326  do
2327    case $ac_arg in
2328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330    | -silent | --silent | --silen | --sile | --sil)
2331      continue ;;
2332    *\'*)
2333      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334    esac
2335    case $ac_pass in
2336    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337    2)
2338      as_fn_append ac_configure_args1 " '$ac_arg'"
2339      if test $ac_must_keep_next = true; then
2340	ac_must_keep_next=false # Got value, back to normal.
2341      else
2342	case $ac_arg in
2343	  *=* | --config-cache | -C | -disable-* | --disable-* \
2344	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346	  | -with-* | --with-* | -without-* | --without-* | --x)
2347	    case "$ac_configure_args0 " in
2348	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349	    esac
2350	    ;;
2351	  -* ) ac_must_keep_next=true ;;
2352	esac
2353      fi
2354      as_fn_append ac_configure_args " '$ac_arg'"
2355      ;;
2356    esac
2357  done
2358done
2359{ ac_configure_args0=; unset ac_configure_args0;}
2360{ ac_configure_args1=; unset ac_configure_args1;}
2361
2362# When interrupted or exit'd, cleanup temporary files, and complete
2363# config.log.  We remove comments because anyway the quotes in there
2364# would cause problems or look ugly.
2365# WARNING: Use '\'' to represent an apostrophe within the trap.
2366# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367trap 'exit_status=$?
2368  # Save into config.log some information that might help in debugging.
2369  {
2370    echo
2371
2372    $as_echo "## ---------------- ##
2373## Cache variables. ##
2374## ---------------- ##"
2375    echo
2376    # The following way of writing the cache mishandles newlines in values,
2377(
2378  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379    eval ac_val=\$$ac_var
2380    case $ac_val in #(
2381    *${as_nl}*)
2382      case $ac_var in #(
2383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385      esac
2386      case $ac_var in #(
2387      _ | IFS | as_nl) ;; #(
2388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389      *) { eval $ac_var=; unset $ac_var;} ;;
2390      esac ;;
2391    esac
2392  done
2393  (set) 2>&1 |
2394    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395    *${as_nl}ac_space=\ *)
2396      sed -n \
2397	"s/'\''/'\''\\\\'\'''\''/g;
2398	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399      ;; #(
2400    *)
2401      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402      ;;
2403    esac |
2404    sort
2405)
2406    echo
2407
2408    $as_echo "## ----------------- ##
2409## Output variables. ##
2410## ----------------- ##"
2411    echo
2412    for ac_var in $ac_subst_vars
2413    do
2414      eval ac_val=\$$ac_var
2415      case $ac_val in
2416      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417      esac
2418      $as_echo "$ac_var='\''$ac_val'\''"
2419    done | sort
2420    echo
2421
2422    if test -n "$ac_subst_files"; then
2423      $as_echo "## ------------------- ##
2424## File substitutions. ##
2425## ------------------- ##"
2426      echo
2427      for ac_var in $ac_subst_files
2428      do
2429	eval ac_val=\$$ac_var
2430	case $ac_val in
2431	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432	esac
2433	$as_echo "$ac_var='\''$ac_val'\''"
2434      done | sort
2435      echo
2436    fi
2437
2438    if test -s confdefs.h; then
2439      $as_echo "## ----------- ##
2440## confdefs.h. ##
2441## ----------- ##"
2442      echo
2443      cat confdefs.h
2444      echo
2445    fi
2446    test "$ac_signal" != 0 &&
2447      $as_echo "$as_me: caught signal $ac_signal"
2448    $as_echo "$as_me: exit $exit_status"
2449  } >&5
2450  rm -f core *.core core.conftest.* &&
2451    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452    exit $exit_status
2453' 0
2454for ac_signal in 1 2 13 15; do
2455  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456done
2457ac_signal=0
2458
2459# confdefs.h avoids OS command line length limits that DEFS can exceed.
2460rm -f -r conftest* confdefs.h
2461
2462$as_echo "/* confdefs.h */" > confdefs.h
2463
2464# Predefined preprocessor variables.
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_NAME "$PACKAGE_NAME"
2468_ACEOF
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472_ACEOF
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_VERSION "$PACKAGE_VERSION"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_STRING "$PACKAGE_STRING"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484_ACEOF
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_URL "$PACKAGE_URL"
2488_ACEOF
2489
2490
2491# Let the site file select an alternate cache file if it wants to.
2492# Prefer an explicitly selected file to automatically selected ones.
2493ac_site_file1=NONE
2494ac_site_file2=NONE
2495if test -n "$CONFIG_SITE"; then
2496  # We do not want a PATH search for config.site.
2497  case $CONFIG_SITE in #((
2498    -*)  ac_site_file1=./$CONFIG_SITE;;
2499    */*) ac_site_file1=$CONFIG_SITE;;
2500    *)   ac_site_file1=./$CONFIG_SITE;;
2501  esac
2502elif test "x$prefix" != xNONE; then
2503  ac_site_file1=$prefix/share/config.site
2504  ac_site_file2=$prefix/etc/config.site
2505else
2506  ac_site_file1=$ac_default_prefix/share/config.site
2507  ac_site_file2=$ac_default_prefix/etc/config.site
2508fi
2509for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510do
2511  test "x$ac_site_file" = xNONE && continue
2512  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515    sed 's/^/| /' "$ac_site_file" >&5
2516    . "$ac_site_file" \
2517      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519as_fn_error $? "failed to load site script $ac_site_file
2520See \`config.log' for more details" "$LINENO" 5; }
2521  fi
2522done
2523
2524if test -r "$cache_file"; then
2525  # Some versions of bash will fail to source /dev/null (special files
2526  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2527  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529$as_echo "$as_me: loading cache $cache_file" >&6;}
2530    case $cache_file in
2531      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532      *)                      . "./$cache_file";;
2533    esac
2534  fi
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537$as_echo "$as_me: creating cache $cache_file" >&6;}
2538  >$cache_file
2539fi
2540
2541# Check that the precious variables saved in the cache have kept the same
2542# value.
2543ac_cache_corrupted=false
2544for ac_var in $ac_precious_vars; do
2545  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546  eval ac_new_set=\$ac_env_${ac_var}_set
2547  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548  eval ac_new_val=\$ac_env_${ac_var}_value
2549  case $ac_old_set,$ac_new_set in
2550    set,)
2551      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553      ac_cache_corrupted=: ;;
2554    ,set)
2555      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557      ac_cache_corrupted=: ;;
2558    ,);;
2559    *)
2560      if test "x$ac_old_val" != "x$ac_new_val"; then
2561	# differences in whitespace do not lead to failure.
2562	ac_old_val_w=`echo x $ac_old_val`
2563	ac_new_val_w=`echo x $ac_new_val`
2564	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567	  ac_cache_corrupted=:
2568	else
2569	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571	  eval $ac_var=\$ac_old_val
2572	fi
2573	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2574$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2575	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2576$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2577      fi;;
2578  esac
2579  # Pass precious variables to config.status.
2580  if test "$ac_new_set" = set; then
2581    case $ac_new_val in
2582    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583    *) ac_arg=$ac_var=$ac_new_val ;;
2584    esac
2585    case " $ac_configure_args " in
2586      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2587      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588    esac
2589  fi
2590done
2591if $ac_cache_corrupted; then
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597fi
2598## -------------------- ##
2599## Main body of script. ##
2600## -------------------- ##
2601
2602ac_ext=c
2603ac_cpp='$CPP $CPPFLAGS'
2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608
2609
2610am__api_version='1.15'
2611
2612ac_aux_dir=
2613for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2614  if test -f "$ac_dir/install-sh"; then
2615    ac_aux_dir=$ac_dir
2616    ac_install_sh="$ac_aux_dir/install-sh -c"
2617    break
2618  elif test -f "$ac_dir/install.sh"; then
2619    ac_aux_dir=$ac_dir
2620    ac_install_sh="$ac_aux_dir/install.sh -c"
2621    break
2622  elif test -f "$ac_dir/shtool"; then
2623    ac_aux_dir=$ac_dir
2624    ac_install_sh="$ac_aux_dir/shtool install -c"
2625    break
2626  fi
2627done
2628if test -z "$ac_aux_dir"; then
2629  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2630fi
2631
2632# These three variables are undocumented and unsupported,
2633# and are intended to be withdrawn in a future Autoconf release.
2634# They can cause serious problems if a builder's source tree is in a directory
2635# whose full name contains unusual characters.
2636ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2637ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2638ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2639
2640
2641# Find a good install program.  We prefer a C program (faster),
2642# so one script is as good as another.  But avoid the broken or
2643# incompatible versions:
2644# SysV /etc/install, /usr/sbin/install
2645# SunOS /usr/etc/install
2646# IRIX /sbin/install
2647# AIX /bin/install
2648# AmigaOS /C/install, which installs bootblocks on floppy discs
2649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652# OS/2's system install, which has a completely different semantic
2653# ./install, which can be erroneously created by make from ./install.sh.
2654# Reject install programs that cannot install multiple files.
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656$as_echo_n "checking for a BSD-compatible install... " >&6; }
2657if test -z "$INSTALL"; then
2658if ${ac_cv_path_install+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    # Account for people who put trailing slashes in PATH elements.
2667case $as_dir/ in #((
2668  ./ | .// | /[cC]/* | \
2669  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2671  /usr/ucb/* ) ;;
2672  *)
2673    # OSF1 and SCO ODT 3.0 have their own names for install.
2674    # Don't use installbsd from OSF since it installs stuff as root
2675    # by default.
2676    for ac_prog in ginstall scoinst install; do
2677      for ac_exec_ext in '' $ac_executable_extensions; do
2678	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679	  if test $ac_prog = install &&
2680	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681	    # AIX install.  It has an incompatible calling convention.
2682	    :
2683	  elif test $ac_prog = install &&
2684	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685	    # program-specific install script used by HP pwplus--don't use.
2686	    :
2687	  else
2688	    rm -rf conftest.one conftest.two conftest.dir
2689	    echo one > conftest.one
2690	    echo two > conftest.two
2691	    mkdir conftest.dir
2692	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2693	      test -s conftest.one && test -s conftest.two &&
2694	      test -s conftest.dir/conftest.one &&
2695	      test -s conftest.dir/conftest.two
2696	    then
2697	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698	      break 3
2699	    fi
2700	  fi
2701	fi
2702      done
2703    done
2704    ;;
2705esac
2706
2707  done
2708IFS=$as_save_IFS
2709
2710rm -rf conftest.one conftest.two conftest.dir
2711
2712fi
2713  if test "${ac_cv_path_install+set}" = set; then
2714    INSTALL=$ac_cv_path_install
2715  else
2716    # As a last resort, use the slow shell script.  Don't cache a
2717    # value for INSTALL within a source directory, because that will
2718    # break other packages using the cache if that directory is
2719    # removed, or if the value is a relative name.
2720    INSTALL=$ac_install_sh
2721  fi
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2724$as_echo "$INSTALL" >&6; }
2725
2726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727# It thinks the first close brace ends the variable substitution.
2728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
2730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2731
2732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2735$as_echo_n "checking whether build environment is sane... " >&6; }
2736# Reject unsafe characters in $srcdir or the absolute working directory
2737# name.  Accept space and tab only in the latter.
2738am_lf='
2739'
2740case `pwd` in
2741  *[\\\"\#\$\&\'\`$am_lf]*)
2742    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2743esac
2744case $srcdir in
2745  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2746    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2747esac
2748
2749# Do 'set' in a subshell so we don't clobber the current shell's
2750# arguments.  Must try -L first in case configure is actually a
2751# symlink; some systems play weird games with the mod time of symlinks
2752# (eg FreeBSD returns the mod time of the symlink's containing
2753# directory).
2754if (
2755   am_has_slept=no
2756   for am_try in 1 2; do
2757     echo "timestamp, slept: $am_has_slept" > conftest.file
2758     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2759     if test "$*" = "X"; then
2760	# -L didn't work.
2761	set X `ls -t "$srcdir/configure" conftest.file`
2762     fi
2763     if test "$*" != "X $srcdir/configure conftest.file" \
2764	&& test "$*" != "X conftest.file $srcdir/configure"; then
2765
2766	# If neither matched, then we have a broken ls.  This can happen
2767	# if, for instance, CONFIG_SHELL is bash and it inherits a
2768	# broken ls alias from the environment.  This has actually
2769	# happened.  Such a system could not be considered "sane".
2770	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2771  alias in your environment" "$LINENO" 5
2772     fi
2773     if test "$2" = conftest.file || test $am_try -eq 2; then
2774       break
2775     fi
2776     # Just in case.
2777     sleep 1
2778     am_has_slept=yes
2779   done
2780   test "$2" = conftest.file
2781   )
2782then
2783   # Ok.
2784   :
2785else
2786   as_fn_error $? "newly created file is older than distributed files!
2787Check your system clock" "$LINENO" 5
2788fi
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790$as_echo "yes" >&6; }
2791# If we didn't sleep, we still need to ensure time stamps of config.status and
2792# generated files are strictly newer.
2793am_sleep_pid=
2794if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2795  ( sleep 1 ) &
2796  am_sleep_pid=$!
2797fi
2798
2799rm -f conftest.file
2800
2801test "$program_prefix" != NONE &&
2802  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2803# Use a double $ so make ignores it.
2804test "$program_suffix" != NONE &&
2805  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2806# Double any \ or $.
2807# By default was `s,x,x', remove it if useless.
2808ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2809program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2810
2811# Expand $ac_aux_dir to an absolute path.
2812am_aux_dir=`cd "$ac_aux_dir" && pwd`
2813
2814if test x"${MISSING+set}" != xset; then
2815  case $am_aux_dir in
2816  *\ * | *\	*)
2817    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2818  *)
2819    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2820  esac
2821fi
2822# Use eval to expand $SHELL
2823if eval "$MISSING --is-lightweight"; then
2824  am_missing_run="$MISSING "
2825else
2826  am_missing_run=
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2828$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2829fi
2830
2831if test x"${install_sh+set}" != xset; then
2832  case $am_aux_dir in
2833  *\ * | *\	*)
2834    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2835  *)
2836    install_sh="\${SHELL} $am_aux_dir/install-sh"
2837  esac
2838fi
2839
2840# Installed binaries are usually stripped using 'strip' when the user
2841# run "make install-strip".  However 'strip' might not be the right
2842# tool to use in cross-compilation environments, therefore Automake
2843# will honor the 'STRIP' environment variable to overrule this program.
2844if test "$cross_compiling" != no; then
2845  if test -n "$ac_tool_prefix"; then
2846  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2847set dummy ${ac_tool_prefix}strip; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if ${ac_cv_prog_STRIP+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  if test -n "$STRIP"; then
2854  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  test -z "$as_dir" && as_dir=.
2861    for ac_exec_ext in '' $ac_executable_extensions; do
2862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872fi
2873STRIP=$ac_cv_prog_STRIP
2874if test -n "$STRIP"; then
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2876$as_echo "$STRIP" >&6; }
2877else
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
2880fi
2881
2882
2883fi
2884if test -z "$ac_cv_prog_STRIP"; then
2885  ac_ct_STRIP=$STRIP
2886  # Extract the first word of "strip", so it can be a program name with args.
2887set dummy strip; ac_word=$2
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889$as_echo_n "checking for $ac_word... " >&6; }
2890if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  if test -n "$ac_ct_STRIP"; then
2894  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2895else
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  test -z "$as_dir" && as_dir=.
2901    for ac_exec_ext in '' $ac_executable_extensions; do
2902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903    ac_cv_prog_ac_ct_STRIP="strip"
2904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905    break 2
2906  fi
2907done
2908  done
2909IFS=$as_save_IFS
2910
2911fi
2912fi
2913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2914if test -n "$ac_ct_STRIP"; then
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2916$as_echo "$ac_ct_STRIP" >&6; }
2917else
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919$as_echo "no" >&6; }
2920fi
2921
2922  if test "x$ac_ct_STRIP" = x; then
2923    STRIP=":"
2924  else
2925    case $cross_compiling:$ac_tool_warned in
2926yes:)
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929ac_tool_warned=yes ;;
2930esac
2931    STRIP=$ac_ct_STRIP
2932  fi
2933else
2934  STRIP="$ac_cv_prog_STRIP"
2935fi
2936
2937fi
2938INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2939
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2941$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2942if test -z "$MKDIR_P"; then
2943  if ${ac_cv_path_mkdir+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951    for ac_prog in mkdir gmkdir; do
2952	 for ac_exec_ext in '' $ac_executable_extensions; do
2953	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2954	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2955	     'mkdir (GNU coreutils) '* | \
2956	     'mkdir (coreutils) '* | \
2957	     'mkdir (fileutils) '4.1*)
2958	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2959	       break 3;;
2960	   esac
2961	 done
2962       done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967
2968  test -d ./--version && rmdir ./--version
2969  if test "${ac_cv_path_mkdir+set}" = set; then
2970    MKDIR_P="$ac_cv_path_mkdir -p"
2971  else
2972    # As a last resort, use the slow shell script.  Don't cache a
2973    # value for MKDIR_P within a source directory, because that will
2974    # break other packages using the cache if that directory is
2975    # removed, or if the value is a relative name.
2976    MKDIR_P="$ac_install_sh -d"
2977  fi
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2980$as_echo "$MKDIR_P" >&6; }
2981
2982for ac_prog in gawk mawk nawk awk
2983do
2984  # Extract the first word of "$ac_prog", so it can be a program name with args.
2985set dummy $ac_prog; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if ${ac_cv_prog_AWK+:} false; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$AWK"; then
2992  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001    ac_cv_prog_AWK="$ac_prog"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011AWK=$ac_cv_prog_AWK
3012if test -n "$AWK"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3014$as_echo "$AWK" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020
3021  test -n "$AWK" && break
3022done
3023
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3025$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3026set x ${MAKE-make}
3027ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3028if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3029  $as_echo_n "(cached) " >&6
3030else
3031  cat >conftest.make <<\_ACEOF
3032SHELL = /bin/sh
3033all:
3034	@echo '@@@%%%=$(MAKE)=@@@%%%'
3035_ACEOF
3036# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3037case `${MAKE-make} -f conftest.make 2>/dev/null` in
3038  *@@@%%%=?*=@@@%%%*)
3039    eval ac_cv_prog_make_${ac_make}_set=yes;;
3040  *)
3041    eval ac_cv_prog_make_${ac_make}_set=no;;
3042esac
3043rm -f conftest.make
3044fi
3045if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047$as_echo "yes" >&6; }
3048  SET_MAKE=
3049else
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052  SET_MAKE="MAKE=${MAKE-make}"
3053fi
3054
3055rm -rf .tst 2>/dev/null
3056mkdir .tst 2>/dev/null
3057if test -d .tst; then
3058  am__leading_dot=.
3059else
3060  am__leading_dot=_
3061fi
3062rmdir .tst 2>/dev/null
3063
3064# Check whether --enable-silent-rules was given.
3065if test "${enable_silent_rules+set}" = set; then :
3066  enableval=$enable_silent_rules;
3067fi
3068
3069case $enable_silent_rules in # (((
3070  yes) AM_DEFAULT_VERBOSITY=0;;
3071   no) AM_DEFAULT_VERBOSITY=1;;
3072    *) AM_DEFAULT_VERBOSITY=1;;
3073esac
3074am_make=${MAKE-make}
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3076$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3077if ${am_cv_make_support_nested_variables+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if $as_echo 'TRUE=$(BAR$(V))
3081BAR0=false
3082BAR1=true
3083V=1
3084am__doit:
3085	@$(TRUE)
3086.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3087  am_cv_make_support_nested_variables=yes
3088else
3089  am_cv_make_support_nested_variables=no
3090fi
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3093$as_echo "$am_cv_make_support_nested_variables" >&6; }
3094if test $am_cv_make_support_nested_variables = yes; then
3095    AM_V='$(V)'
3096  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3097else
3098  AM_V=$AM_DEFAULT_VERBOSITY
3099  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3100fi
3101AM_BACKSLASH='\'
3102
3103if test "`cd $srcdir && pwd`" != "`pwd`"; then
3104  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3105  # is not polluted with repeated "-I."
3106  am__isrc=' -I$(srcdir)'
3107  # test to see if srcdir already configured
3108  if test -f $srcdir/config.status; then
3109    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3110  fi
3111fi
3112
3113# test whether we have cygpath
3114if test -z "$CYGPATH_W"; then
3115  if (cygpath --version) >/dev/null 2>/dev/null; then
3116    CYGPATH_W='cygpath -w'
3117  else
3118    CYGPATH_W=echo
3119  fi
3120fi
3121
3122
3123# Define the identity of the package.
3124 PACKAGE='drumgizmo'
3125 VERSION='0.9.19'
3126
3127
3128cat >>confdefs.h <<_ACEOF
3129#define PACKAGE "$PACKAGE"
3130_ACEOF
3131
3132
3133cat >>confdefs.h <<_ACEOF
3134#define VERSION "$VERSION"
3135_ACEOF
3136
3137# Some tools Automake needs.
3138
3139ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3140
3141
3142AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3143
3144
3145AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3146
3147
3148AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3149
3150
3151MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3152
3153# For better backward compatibility.  To be removed once Automake 1.9.x
3154# dies out for good.  For more background, see:
3155# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3156# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3157mkdir_p='$(MKDIR_P)'
3158
3159# We need awk for the "check" target (and possibly the TAP driver).  The
3160# system "awk" is bad on some platforms.
3161# Always define AMTAR for backward compatibility.  Yes, it's still used
3162# in the wild :-(  We should find a proper way to deprecate it ...
3163AMTAR='$${TAR-tar}'
3164
3165
3166# We'll loop over all known methods to create a tar archive until one works.
3167_am_tools='gnutar  pax cpio none'
3168
3169am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3170
3171
3172
3173
3174
3175
3176# POSIX will say in a future version that running "rm -f" with no argument
3177# is OK; and we want to be able to make that assumption in our Makefile
3178# recipes.  So use an aggressive probe to check that the usage we want is
3179# actually supported "in the wild" to an acceptable degree.
3180# See automake bug#10828.
3181# To make any issue more visible, cause the running configure to be aborted
3182# by default if the 'rm' program in use doesn't match our expectations; the
3183# user can still override this though.
3184if rm -f && rm -fr && rm -rf; then : OK; else
3185  cat >&2 <<'END'
3186Oops!
3187
3188Your 'rm' program seems unable to run without file operands specified
3189on the command line, even when the '-f' option is present.  This is contrary
3190to the behaviour of most rm programs out there, and not conforming with
3191the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3192
3193Please tell bug-automake@gnu.org about your system, including the value
3194of your $PATH and any error possibly output before this message.  This
3195can help us improve future automake versions.
3196
3197END
3198  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3199    echo 'Configuration will proceed anyway, since you have set the' >&2
3200    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3201    echo >&2
3202  else
3203    cat >&2 <<'END'
3204Aborting the configuration process, to ensure you take notice of the issue.
3205
3206You can download and install GNU coreutils to get an 'rm' implementation
3207that behaves properly: <http://www.gnu.org/software/coreutils/>.
3208
3209If you want to complete the configuration process using your problematic
3210'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3211to "yes", and re-run configure.
3212
3213END
3214    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3215  fi
3216fi
3217
3218
3219ac_ext=cpp
3220ac_cpp='$CXXCPP $CPPFLAGS'
3221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224if test -z "$CXX"; then
3225  if test -n "$CCC"; then
3226    CXX=$CCC
3227  else
3228    if test -n "$ac_tool_prefix"; then
3229  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3230  do
3231    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234$as_echo_n "checking for $ac_word... " >&6; }
3235if ${ac_cv_prog_CXX+:} false; then :
3236  $as_echo_n "(cached) " >&6
3237else
3238  if test -n "$CXX"; then
3239  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246    for ac_exec_ext in '' $ac_executable_extensions; do
3247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253  done
3254IFS=$as_save_IFS
3255
3256fi
3257fi
3258CXX=$ac_cv_prog_CXX
3259if test -n "$CXX"; then
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3261$as_echo "$CXX" >&6; }
3262else
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265fi
3266
3267
3268    test -n "$CXX" && break
3269  done
3270fi
3271if test -z "$CXX"; then
3272  ac_ct_CXX=$CXX
3273  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3274do
3275  # Extract the first word of "$ac_prog", so it can be a program name with args.
3276set dummy $ac_prog; ac_word=$2
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278$as_echo_n "checking for $ac_word... " >&6; }
3279if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  if test -n "$ac_ct_CXX"; then
3283  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290    for ac_exec_ext in '' $ac_executable_extensions; do
3291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292    ac_cv_prog_ac_ct_CXX="$ac_prog"
3293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294    break 2
3295  fi
3296done
3297  done
3298IFS=$as_save_IFS
3299
3300fi
3301fi
3302ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3303if test -n "$ac_ct_CXX"; then
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3305$as_echo "$ac_ct_CXX" >&6; }
3306else
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309fi
3310
3311
3312  test -n "$ac_ct_CXX" && break
3313done
3314
3315  if test "x$ac_ct_CXX" = x; then
3316    CXX="g++"
3317  else
3318    case $cross_compiling:$ac_tool_warned in
3319yes:)
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322ac_tool_warned=yes ;;
3323esac
3324    CXX=$ac_ct_CXX
3325  fi
3326fi
3327
3328  fi
3329fi
3330# Provide some information about the compiler.
3331$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3332set X $ac_compile
3333ac_compiler=$2
3334for ac_option in --version -v -V -qversion; do
3335  { { ac_try="$ac_compiler $ac_option >&5"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341$as_echo "$ac_try_echo"; } >&5
3342  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343  ac_status=$?
3344  if test -s conftest.err; then
3345    sed '10a\
3346... rest of stderr output deleted ...
3347         10q' conftest.err >conftest.er1
3348    cat conftest.er1 >&5
3349  fi
3350  rm -f conftest.er1 conftest.err
3351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352  test $ac_status = 0; }
3353done
3354
3355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357
3358int
3359main ()
3360{
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366ac_clean_files_save=$ac_clean_files
3367ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3368# Try to create an executable without -o first, disregard a.out.
3369# It will help us diagnose broken compilers, and finding out an intuition
3370# of exeext.
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3372$as_echo_n "checking whether the C++ compiler works... " >&6; }
3373ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3374
3375# The possible output files:
3376ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377
3378ac_rmfiles=
3379for ac_file in $ac_files
3380do
3381  case $ac_file in
3382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3384  esac
3385done
3386rm -f $ac_rmfiles
3387
3388if { { ac_try="$ac_link_default"
3389case "(($ac_try" in
3390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391  *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395  (eval "$ac_link_default") 2>&5
3396  ac_status=$?
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }; then :
3399  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3402# so that the user can short-circuit this test for compilers unknown to
3403# Autoconf.
3404for ac_file in $ac_files ''
3405do
3406  test -f "$ac_file" || continue
3407  case $ac_file in
3408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3409	;;
3410    [ab].out )
3411	# We found the default executable, but exeext='' is most
3412	# certainly right.
3413	break;;
3414    *.* )
3415	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3416	then :; else
3417	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418	fi
3419	# We set ac_cv_exeext here because the later test for it is not
3420	# safe: cross compilers may not add the suffix if given an `-o'
3421	# argument, so we may need to know it at that point already.
3422	# Even if this section looks crufty: it has the advantage of
3423	# actually working.
3424	break;;
3425    * )
3426	break;;
3427  esac
3428done
3429test "$ac_cv_exeext" = no && ac_cv_exeext=
3430
3431else
3432  ac_file=''
3433fi
3434if test -z "$ac_file"; then :
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437$as_echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error 77 "C++ compiler cannot create executables
3443See \`config.log' for more details" "$LINENO" 5; }
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446$as_echo "yes" >&6; }
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3449$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451$as_echo "$ac_file" >&6; }
3452ac_exeext=$ac_cv_exeext
3453
3454rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455ac_clean_files=$ac_clean_files_save
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457$as_echo_n "checking for suffix of executables... " >&6; }
3458if { { ac_try="$ac_link"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_link") 2>&5
3466  ac_status=$?
3467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468  test $ac_status = 0; }; then :
3469  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3470# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3471# work properly (i.e., refer to `conftest.exe'), while it won't with
3472# `rm'.
3473for ac_file in conftest.exe conftest conftest.*; do
3474  test -f "$ac_file" || continue
3475  case $ac_file in
3476    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478	  break;;
3479    * ) break;;
3480  esac
3481done
3482else
3483  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3486See \`config.log' for more details" "$LINENO" 5; }
3487fi
3488rm -f conftest conftest$ac_cv_exeext
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490$as_echo "$ac_cv_exeext" >&6; }
3491
3492rm -f conftest.$ac_ext
3493EXEEXT=$ac_cv_exeext
3494ac_exeext=$EXEEXT
3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497#include <stdio.h>
3498int
3499main ()
3500{
3501FILE *f = fopen ("conftest.out", "w");
3502 return ferror (f) || fclose (f) != 0;
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508ac_clean_files="$ac_clean_files conftest.out"
3509# Check that the compiler produces executables we can run.  If not, either
3510# the compiler is broken, or we cross compile.
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512$as_echo_n "checking whether we are cross compiling... " >&6; }
3513if test "$cross_compiling" != yes; then
3514  { { ac_try="$ac_link"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520$as_echo "$ac_try_echo"; } >&5
3521  (eval "$ac_link") 2>&5
3522  ac_status=$?
3523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524  test $ac_status = 0; }
3525  if { ac_try='./conftest$ac_cv_exeext'
3526  { { case "(($ac_try" in
3527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528  *) ac_try_echo=$ac_try;;
3529esac
3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531$as_echo "$ac_try_echo"; } >&5
3532  (eval "$ac_try") 2>&5
3533  ac_status=$?
3534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535  test $ac_status = 0; }; }; then
3536    cross_compiling=no
3537  else
3538    if test "$cross_compiling" = maybe; then
3539	cross_compiling=yes
3540    else
3541	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error $? "cannot run C++ compiled programs.
3544If you meant to cross compile, use \`--host'.
3545See \`config.log' for more details" "$LINENO" 5; }
3546    fi
3547  fi
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550$as_echo "$cross_compiling" >&6; }
3551
3552rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3553ac_clean_files=$ac_clean_files_save
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555$as_echo_n "checking for suffix of object files... " >&6; }
3556if ${ac_cv_objext+:} false; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570rm -f conftest.o conftest.obj
3571if { { ac_try="$ac_compile"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_compile") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }; then :
3582  for ac_file in conftest.o conftest.obj conftest.*; do
3583  test -f "$ac_file" || continue;
3584  case $ac_file in
3585    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3587       break;;
3588  esac
3589done
3590else
3591  $as_echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error $? "cannot compute suffix of object files: cannot compile
3597See \`config.log' for more details" "$LINENO" 5; }
3598fi
3599rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602$as_echo "$ac_cv_objext" >&6; }
3603OBJEXT=$ac_cv_objext
3604ac_objext=$OBJEXT
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3606$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3607if ${ac_cv_cxx_compiler_gnu+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612
3613int
3614main ()
3615{
3616#ifndef __GNUC__
3617       choke me
3618#endif
3619
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624if ac_fn_cxx_try_compile "$LINENO"; then :
3625  ac_compiler_gnu=yes
3626else
3627  ac_compiler_gnu=no
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3631
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3634$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3635if test $ac_compiler_gnu = yes; then
3636  GXX=yes
3637else
3638  GXX=
3639fi
3640ac_test_CXXFLAGS=${CXXFLAGS+set}
3641ac_save_CXXFLAGS=$CXXFLAGS
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3643$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3644if ${ac_cv_prog_cxx_g+:} false; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3648   ac_cxx_werror_flag=yes
3649   ac_cv_prog_cxx_g=no
3650   CXXFLAGS="-g"
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662if ac_fn_cxx_try_compile "$LINENO"; then :
3663  ac_cv_prog_cxx_g=yes
3664else
3665  CXXFLAGS=""
3666      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668
3669int
3670main ()
3671{
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677if ac_fn_cxx_try_compile "$LINENO"; then :
3678
3679else
3680  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3681	 CXXFLAGS="-g"
3682	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693if ac_fn_cxx_try_compile "$LINENO"; then :
3694  ac_cv_prog_cxx_g=yes
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697fi
3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699fi
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3704$as_echo "$ac_cv_prog_cxx_g" >&6; }
3705if test "$ac_test_CXXFLAGS" = set; then
3706  CXXFLAGS=$ac_save_CXXFLAGS
3707elif test $ac_cv_prog_cxx_g = yes; then
3708  if test "$GXX" = yes; then
3709    CXXFLAGS="-g -O2"
3710  else
3711    CXXFLAGS="-g"
3712  fi
3713else
3714  if test "$GXX" = yes; then
3715    CXXFLAGS="-O2"
3716  else
3717    CXXFLAGS=
3718  fi
3719fi
3720ac_ext=c
3721ac_cpp='$CPP $CPPFLAGS'
3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725DEPDIR="${am__leading_dot}deps"
3726
3727ac_config_commands="$ac_config_commands depfiles"
3728
3729
3730am_make=${MAKE-make}
3731cat > confinc << 'END'
3732am__doit:
3733	@echo this is the am__doit target
3734.PHONY: am__doit
3735END
3736# If we don't find an include directive, just comment out the code.
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3738$as_echo_n "checking for style of include used by $am_make... " >&6; }
3739am__include="#"
3740am__quote=
3741_am_result=none
3742# First try GNU make style include.
3743echo "include confinc" > confmf
3744# Ignore all kinds of additional output from 'make'.
3745case `$am_make -s -f confmf 2> /dev/null` in #(
3746*the\ am__doit\ target*)
3747  am__include=include
3748  am__quote=
3749  _am_result=GNU
3750  ;;
3751esac
3752# Now try BSD make style include.
3753if test "$am__include" = "#"; then
3754   echo '.include "confinc"' > confmf
3755   case `$am_make -s -f confmf 2> /dev/null` in #(
3756   *the\ am__doit\ target*)
3757     am__include=.include
3758     am__quote="\""
3759     _am_result=BSD
3760     ;;
3761   esac
3762fi
3763
3764
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3766$as_echo "$_am_result" >&6; }
3767rm -f confinc confmf
3768
3769# Check whether --enable-dependency-tracking was given.
3770if test "${enable_dependency_tracking+set}" = set; then :
3771  enableval=$enable_dependency_tracking;
3772fi
3773
3774if test "x$enable_dependency_tracking" != xno; then
3775  am_depcomp="$ac_aux_dir/depcomp"
3776  AMDEPBACKSLASH='\'
3777  am__nodep='_no'
3778fi
3779 if test "x$enable_dependency_tracking" != xno; then
3780  AMDEP_TRUE=
3781  AMDEP_FALSE='#'
3782else
3783  AMDEP_TRUE='#'
3784  AMDEP_FALSE=
3785fi
3786
3787
3788
3789depcc="$CXX"  am_compiler_list=
3790
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3792$as_echo_n "checking dependency style of $depcc... " >&6; }
3793if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3794  $as_echo_n "(cached) " >&6
3795else
3796  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797  # We make a subdir and do the tests there.  Otherwise we can end up
3798  # making bogus files that we don't know about and never remove.  For
3799  # instance it was reported that on HP-UX the gcc test will end up
3800  # making a dummy file named 'D' -- because '-MD' means "put the output
3801  # in D".
3802  rm -rf conftest.dir
3803  mkdir conftest.dir
3804  # Copy depcomp to subdir because otherwise we won't find it if we're
3805  # using a relative directory.
3806  cp "$am_depcomp" conftest.dir
3807  cd conftest.dir
3808  # We will build objects and dependencies in a subdirectory because
3809  # it helps to detect inapplicable dependency modes.  For instance
3810  # both Tru64's cc and ICC support -MD to output dependencies as a
3811  # side effect of compilation, but ICC will put the dependencies in
3812  # the current directory while Tru64 will put them in the object
3813  # directory.
3814  mkdir sub
3815
3816  am_cv_CXX_dependencies_compiler_type=none
3817  if test "$am_compiler_list" = ""; then
3818     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3819  fi
3820  am__universal=false
3821  case " $depcc " in #(
3822     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3823     esac
3824
3825  for depmode in $am_compiler_list; do
3826    # Setup a source with many dependencies, because some compilers
3827    # like to wrap large dependency lists on column 80 (with \), and
3828    # we should not choose a depcomp mode which is confused by this.
3829    #
3830    # We need to recreate these files for each test, as the compiler may
3831    # overwrite some of them when testing with obscure command lines.
3832    # This happens at least with the AIX C compiler.
3833    : > sub/conftest.c
3834    for i in 1 2 3 4 5 6; do
3835      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3836      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3837      # Solaris 10 /bin/sh.
3838      echo '/* dummy */' > sub/conftst$i.h
3839    done
3840    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3841
3842    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3843    # mode.  It turns out that the SunPro C++ compiler does not properly
3844    # handle '-M -o', and we need to detect this.  Also, some Intel
3845    # versions had trouble with output in subdirs.
3846    am__obj=sub/conftest.${OBJEXT-o}
3847    am__minus_obj="-o $am__obj"
3848    case $depmode in
3849    gcc)
3850      # This depmode causes a compiler race in universal mode.
3851      test "$am__universal" = false || continue
3852      ;;
3853    nosideeffect)
3854      # After this tag, mechanisms are not by side-effect, so they'll
3855      # only be used when explicitly requested.
3856      if test "x$enable_dependency_tracking" = xyes; then
3857	continue
3858      else
3859	break
3860      fi
3861      ;;
3862    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3863      # This compiler won't grok '-c -o', but also, the minuso test has
3864      # not run yet.  These depmodes are late enough in the game, and
3865      # so weak that their functioning should not be impacted.
3866      am__obj=conftest.${OBJEXT-o}
3867      am__minus_obj=
3868      ;;
3869    none) break ;;
3870    esac
3871    if depmode=$depmode \
3872       source=sub/conftest.c object=$am__obj \
3873       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3874       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3875         >/dev/null 2>conftest.err &&
3876       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3877       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3878       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3879       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3880      # icc doesn't choke on unknown options, it will just issue warnings
3881      # or remarks (even with -Werror).  So we grep stderr for any message
3882      # that says an option was ignored or not supported.
3883      # When given -MP, icc 7.0 and 7.1 complain thusly:
3884      #   icc: Command line warning: ignoring option '-M'; no argument required
3885      # The diagnosis changed in icc 8.0:
3886      #   icc: Command line remark: option '-MP' not supported
3887      if (grep 'ignoring option' conftest.err ||
3888          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3889        am_cv_CXX_dependencies_compiler_type=$depmode
3890        break
3891      fi
3892    fi
3893  done
3894
3895  cd ..
3896  rm -rf conftest.dir
3897else
3898  am_cv_CXX_dependencies_compiler_type=none
3899fi
3900
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3903$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3904CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3905
3906 if
3907  test "x$enable_dependency_tracking" != xno \
3908  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3909  am__fastdepCXX_TRUE=
3910  am__fastdepCXX_FALSE='#'
3911else
3912  am__fastdepCXX_TRUE='#'
3913  am__fastdepCXX_FALSE=
3914fi
3915
3916
3917ac_ext=m
3918ac_cpp='$OBJCPP $CPPFLAGS'
3919ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3922if test -n "$ac_tool_prefix"; then
3923  for ac_prog in gcc objcc objc cc CC
3924  do
3925    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
3929if ${ac_cv_prog_OBJC+:} false; then :
3930  $as_echo_n "(cached) " >&6
3931else
3932  if test -n "$OBJC"; then
3933  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940    for ac_exec_ext in '' $ac_executable_extensions; do
3941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
3943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944    break 2
3945  fi
3946done
3947  done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952OBJC=$ac_cv_prog_OBJC
3953if test -n "$OBJC"; then
3954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
3955$as_echo "$OBJC" >&6; }
3956else
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961
3962    test -n "$OBJC" && break
3963  done
3964fi
3965if test -z "$OBJC"; then
3966  ac_ct_OBJC=$OBJC
3967  for ac_prog in gcc objcc objc cc CC
3968do
3969  # Extract the first word of "$ac_prog", so it can be a program name with args.
3970set dummy $ac_prog; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
3973if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  if test -n "$ac_ct_OBJC"; then
3977  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982  IFS=$as_save_IFS
3983  test -z "$as_dir" && as_dir=.
3984    for ac_exec_ext in '' $ac_executable_extensions; do
3985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986    ac_cv_prog_ac_ct_OBJC="$ac_prog"
3987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988    break 2
3989  fi
3990done
3991  done
3992IFS=$as_save_IFS
3993
3994fi
3995fi
3996ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
3997if test -n "$ac_ct_OBJC"; then
3998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
3999$as_echo "$ac_ct_OBJC" >&6; }
4000else
4001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003fi
4004
4005
4006  test -n "$ac_ct_OBJC" && break
4007done
4008
4009  if test "x$ac_ct_OBJC" = x; then
4010    OBJC="gcc"
4011  else
4012    case $cross_compiling:$ac_tool_warned in
4013yes:)
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4016ac_tool_warned=yes ;;
4017esac
4018    OBJC=$ac_ct_OBJC
4019  fi
4020fi
4021
4022# Provide some information about the compiler.
4023$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
4024set X $ac_compile
4025ac_compiler=$2
4026for ac_option in --version -v -V -qversion; do
4027  { { ac_try="$ac_compiler $ac_option >&5"
4028case "(($ac_try" in
4029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030  *) ac_try_echo=$ac_try;;
4031esac
4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033$as_echo "$ac_try_echo"; } >&5
4034  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4035  ac_status=$?
4036  if test -s conftest.err; then
4037    sed '10a\
4038... rest of stderr output deleted ...
4039         10q' conftest.err >conftest.er1
4040    cat conftest.er1 >&5
4041  fi
4042  rm -f conftest.er1 conftest.err
4043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044  test $ac_status = 0; }
4045done
4046
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
4048$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
4049if ${ac_cv_objc_compiler_gnu+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054
4055int
4056main ()
4057{
4058#ifndef __GNUC__
4059       choke me
4060#endif
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066if ac_fn_objc_try_compile "$LINENO"; then :
4067  ac_compiler_gnu=yes
4068else
4069  ac_compiler_gnu=no
4070fi
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072ac_cv_objc_compiler_gnu=$ac_compiler_gnu
4073
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
4076$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
4077if test $ac_compiler_gnu = yes; then
4078  GOBJC=yes
4079else
4080  GOBJC=
4081fi
4082ac_test_OBJCFLAGS=${OBJCFLAGS+set}
4083ac_save_OBJCFLAGS=$OBJCFLAGS
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
4085$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
4086if ${ac_cv_prog_objc_g+:} false; then :
4087  $as_echo_n "(cached) " >&6
4088else
4089  ac_save_objc_werror_flag=$ac_objc_werror_flag
4090   ac_objc_werror_flag=yes
4091   ac_cv_prog_objc_g=no
4092   OBJCFLAGS="-g"
4093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095
4096int
4097main ()
4098{
4099
4100  ;
4101  return 0;
4102}
4103_ACEOF
4104if ac_fn_objc_try_compile "$LINENO"; then :
4105  ac_cv_prog_objc_g=yes
4106else
4107  OBJCFLAGS=""
4108      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110
4111int
4112main ()
4113{
4114
4115  ;
4116  return 0;
4117}
4118_ACEOF
4119if ac_fn_objc_try_compile "$LINENO"; then :
4120
4121else
4122  ac_objc_werror_flag=$ac_save_objc_werror_flag
4123	 OBJCFLAGS="-g"
4124	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126
4127int
4128main ()
4129{
4130
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135if ac_fn_objc_try_compile "$LINENO"; then :
4136  ac_cv_prog_objc_g=yes
4137fi
4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139fi
4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141fi
4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143   ac_objc_werror_flag=$ac_save_objc_werror_flag
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
4146$as_echo "$ac_cv_prog_objc_g" >&6; }
4147if test "$ac_test_OBJCFLAGS" = set; then
4148  OBJCFLAGS=$ac_save_OBJCFLAGS
4149elif test $ac_cv_prog_objc_g = yes; then
4150  if test "$GOBJC" = yes; then
4151    OBJCFLAGS="-g -O2"
4152  else
4153    OBJCFLAGS="-g"
4154  fi
4155else
4156  if test "$GOBJC" = yes; then
4157    OBJCFLAGS="-O2"
4158  else
4159    OBJCFLAGS=
4160  fi
4161fi
4162ac_ext=c
4163ac_cpp='$CPP $CPPFLAGS'
4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168depcc="$OBJC" am_compiler_list='gcc3 gcc'
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4171$as_echo_n "checking dependency style of $depcc... " >&6; }
4172if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4176  # We make a subdir and do the tests there.  Otherwise we can end up
4177  # making bogus files that we don't know about and never remove.  For
4178  # instance it was reported that on HP-UX the gcc test will end up
4179  # making a dummy file named 'D' -- because '-MD' means "put the output
4180  # in D".
4181  rm -rf conftest.dir
4182  mkdir conftest.dir
4183  # Copy depcomp to subdir because otherwise we won't find it if we're
4184  # using a relative directory.
4185  cp "$am_depcomp" conftest.dir
4186  cd conftest.dir
4187  # We will build objects and dependencies in a subdirectory because
4188  # it helps to detect inapplicable dependency modes.  For instance
4189  # both Tru64's cc and ICC support -MD to output dependencies as a
4190  # side effect of compilation, but ICC will put the dependencies in
4191  # the current directory while Tru64 will put them in the object
4192  # directory.
4193  mkdir sub
4194
4195  am_cv_OBJC_dependencies_compiler_type=none
4196  if test "$am_compiler_list" = ""; then
4197     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4198  fi
4199  am__universal=false
4200
4201
4202  for depmode in $am_compiler_list; do
4203    # Setup a source with many dependencies, because some compilers
4204    # like to wrap large dependency lists on column 80 (with \), and
4205    # we should not choose a depcomp mode which is confused by this.
4206    #
4207    # We need to recreate these files for each test, as the compiler may
4208    # overwrite some of them when testing with obscure command lines.
4209    # This happens at least with the AIX C compiler.
4210    : > sub/conftest.c
4211    for i in 1 2 3 4 5 6; do
4212      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4213      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4214      # Solaris 10 /bin/sh.
4215      echo '/* dummy */' > sub/conftst$i.h
4216    done
4217    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4218
4219    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4220    # mode.  It turns out that the SunPro C++ compiler does not properly
4221    # handle '-M -o', and we need to detect this.  Also, some Intel
4222    # versions had trouble with output in subdirs.
4223    am__obj=sub/conftest.${OBJEXT-o}
4224    am__minus_obj="-o $am__obj"
4225    case $depmode in
4226    gcc)
4227      # This depmode causes a compiler race in universal mode.
4228      test "$am__universal" = false || continue
4229      ;;
4230    nosideeffect)
4231      # After this tag, mechanisms are not by side-effect, so they'll
4232      # only be used when explicitly requested.
4233      if test "x$enable_dependency_tracking" = xyes; then
4234	continue
4235      else
4236	break
4237      fi
4238      ;;
4239    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4240      # This compiler won't grok '-c -o', but also, the minuso test has
4241      # not run yet.  These depmodes are late enough in the game, and
4242      # so weak that their functioning should not be impacted.
4243      am__obj=conftest.${OBJEXT-o}
4244      am__minus_obj=
4245      ;;
4246    none) break ;;
4247    esac
4248    if depmode=$depmode \
4249       source=sub/conftest.c object=$am__obj \
4250       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4251       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4252         >/dev/null 2>conftest.err &&
4253       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4254       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4255       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4256       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4257      # icc doesn't choke on unknown options, it will just issue warnings
4258      # or remarks (even with -Werror).  So we grep stderr for any message
4259      # that says an option was ignored or not supported.
4260      # When given -MP, icc 7.0 and 7.1 complain thusly:
4261      #   icc: Command line warning: ignoring option '-M'; no argument required
4262      # The diagnosis changed in icc 8.0:
4263      #   icc: Command line remark: option '-MP' not supported
4264      if (grep 'ignoring option' conftest.err ||
4265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4266        am_cv_OBJC_dependencies_compiler_type=$depmode
4267        break
4268      fi
4269    fi
4270  done
4271
4272  cd ..
4273  rm -rf conftest.dir
4274else
4275  am_cv_OBJC_dependencies_compiler_type=none
4276fi
4277
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
4280$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
4281OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
4282
4283 if
4284  test "x$enable_dependency_tracking" != xno \
4285  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
4286  am__fastdepOBJC_TRUE=
4287  am__fastdepOBJC_FALSE='#'
4288else
4289  am__fastdepOBJC_TRUE='#'
4290  am__fastdepOBJC_FALSE=
4291fi
4292
4293
4294ac_ext=mm
4295ac_cpp='$OBJCXXCPP $CPPFLAGS'
4296ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4299if test -n "$ac_tool_prefix"; then
4300  for ac_prog in g++ objc++ objcxx c++ CXX
4301  do
4302    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4303set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if ${ac_cv_prog_OBJCXX+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if test -n "$OBJCXX"; then
4310  ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317    for ac_exec_ext in '' $ac_executable_extensions; do
4318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319    ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321    break 2
4322  fi
4323done
4324  done
4325IFS=$as_save_IFS
4326
4327fi
4328fi
4329OBJCXX=$ac_cv_prog_OBJCXX
4330if test -n "$OBJCXX"; then
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4332$as_echo "$OBJCXX" >&6; }
4333else
4334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
4336fi
4337
4338
4339    test -n "$OBJCXX" && break
4340  done
4341fi
4342if test -z "$OBJCXX"; then
4343  ac_ct_OBJCXX=$OBJCXX
4344  for ac_prog in g++ objc++ objcxx c++ CXX
4345do
4346  # Extract the first word of "$ac_prog", so it can be a program name with args.
4347set dummy $ac_prog; ac_word=$2
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349$as_echo_n "checking for $ac_word... " >&6; }
4350if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353  if test -n "$ac_ct_OBJCXX"; then
4354  ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361    for ac_exec_ext in '' $ac_executable_extensions; do
4362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363    ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365    break 2
4366  fi
4367done
4368  done
4369IFS=$as_save_IFS
4370
4371fi
4372fi
4373ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4374if test -n "$ac_ct_OBJCXX"; then
4375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4376$as_echo "$ac_ct_OBJCXX" >&6; }
4377else
4378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379$as_echo "no" >&6; }
4380fi
4381
4382
4383  test -n "$ac_ct_OBJCXX" && break
4384done
4385
4386  if test "x$ac_ct_OBJCXX" = x; then
4387    OBJCXX="g++"
4388  else
4389    case $cross_compiling:$ac_tool_warned in
4390yes:)
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393ac_tool_warned=yes ;;
4394esac
4395    OBJCXX=$ac_ct_OBJCXX
4396  fi
4397fi
4398
4399# Provide some information about the compiler.
4400$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4401set X $ac_compile
4402ac_compiler=$2
4403for ac_option in --version -v -V -qversion; do
4404  { { ac_try="$ac_compiler $ac_option >&5"
4405case "(($ac_try" in
4406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407  *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4412  ac_status=$?
4413  if test -s conftest.err; then
4414    sed '10a\
4415... rest of stderr output deleted ...
4416         10q' conftest.err >conftest.er1
4417    cat conftest.er1 >&5
4418  fi
4419  rm -f conftest.er1 conftest.err
4420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421  test $ac_status = 0; }
4422done
4423
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4425$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4426if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h.  */
4431
4432int
4433main ()
4434{
4435#ifndef __GNUC__
4436       choke me
4437#endif
4438
4439  ;
4440  return 0;
4441}
4442_ACEOF
4443if ac_fn_objcxx_try_compile "$LINENO"; then :
4444  ac_compiler_gnu=yes
4445else
4446  ac_compiler_gnu=no
4447fi
4448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4450
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4453$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4454if test $ac_compiler_gnu = yes; then
4455  GOBJCXX=yes
4456else
4457  GOBJCXX=
4458fi
4459ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4460ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4462$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4463if ${ac_cv_prog_objcxx_g+:} false; then :
4464  $as_echo_n "(cached) " >&6
4465else
4466  ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4467   ac_objcxx_werror_flag=yes
4468   ac_cv_prog_objcxx_g=no
4469   OBJCXXFLAGS="-g"
4470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472
4473int
4474main ()
4475{
4476
4477  ;
4478  return 0;
4479}
4480_ACEOF
4481if ac_fn_objcxx_try_compile "$LINENO"; then :
4482  ac_cv_prog_objcxx_g=yes
4483else
4484  OBJCXXFLAGS=""
4485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h.  */
4487
4488int
4489main ()
4490{
4491
4492  ;
4493  return 0;
4494}
4495_ACEOF
4496if ac_fn_objcxx_try_compile "$LINENO"; then :
4497
4498else
4499  ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4500	 OBJCXXFLAGS="-g"
4501	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503
4504int
4505main ()
4506{
4507
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512if ac_fn_objcxx_try_compile "$LINENO"; then :
4513  ac_cv_prog_objcxx_g=yes
4514fi
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516fi
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520   ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4523$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4524if test "$ac_test_OBJCXXFLAGS" = set; then
4525  OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4526elif test $ac_cv_prog_objcxx_g = yes; then
4527  if test "$GOBJCXX" = yes; then
4528    OBJCXXFLAGS="-g -O2"
4529  else
4530    OBJCXXFLAGS="-g"
4531  fi
4532else
4533  if test "$GOBJCXX" = yes; then
4534    OBJCXXFLAGS="-O2"
4535  else
4536    OBJCXXFLAGS=
4537  fi
4538fi
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4548$as_echo_n "checking dependency style of $depcc... " >&6; }
4549if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4553  # We make a subdir and do the tests there.  Otherwise we can end up
4554  # making bogus files that we don't know about and never remove.  For
4555  # instance it was reported that on HP-UX the gcc test will end up
4556  # making a dummy file named 'D' -- because '-MD' means "put the output
4557  # in D".
4558  rm -rf conftest.dir
4559  mkdir conftest.dir
4560  # Copy depcomp to subdir because otherwise we won't find it if we're
4561  # using a relative directory.
4562  cp "$am_depcomp" conftest.dir
4563  cd conftest.dir
4564  # We will build objects and dependencies in a subdirectory because
4565  # it helps to detect inapplicable dependency modes.  For instance
4566  # both Tru64's cc and ICC support -MD to output dependencies as a
4567  # side effect of compilation, but ICC will put the dependencies in
4568  # the current directory while Tru64 will put them in the object
4569  # directory.
4570  mkdir sub
4571
4572  am_cv_OBJCXX_dependencies_compiler_type=none
4573  if test "$am_compiler_list" = ""; then
4574     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4575  fi
4576  am__universal=false
4577
4578
4579  for depmode in $am_compiler_list; do
4580    # Setup a source with many dependencies, because some compilers
4581    # like to wrap large dependency lists on column 80 (with \), and
4582    # we should not choose a depcomp mode which is confused by this.
4583    #
4584    # We need to recreate these files for each test, as the compiler may
4585    # overwrite some of them when testing with obscure command lines.
4586    # This happens at least with the AIX C compiler.
4587    : > sub/conftest.c
4588    for i in 1 2 3 4 5 6; do
4589      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4590      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4591      # Solaris 10 /bin/sh.
4592      echo '/* dummy */' > sub/conftst$i.h
4593    done
4594    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4595
4596    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4597    # mode.  It turns out that the SunPro C++ compiler does not properly
4598    # handle '-M -o', and we need to detect this.  Also, some Intel
4599    # versions had trouble with output in subdirs.
4600    am__obj=sub/conftest.${OBJEXT-o}
4601    am__minus_obj="-o $am__obj"
4602    case $depmode in
4603    gcc)
4604      # This depmode causes a compiler race in universal mode.
4605      test "$am__universal" = false || continue
4606      ;;
4607    nosideeffect)
4608      # After this tag, mechanisms are not by side-effect, so they'll
4609      # only be used when explicitly requested.
4610      if test "x$enable_dependency_tracking" = xyes; then
4611	continue
4612      else
4613	break
4614      fi
4615      ;;
4616    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4617      # This compiler won't grok '-c -o', but also, the minuso test has
4618      # not run yet.  These depmodes are late enough in the game, and
4619      # so weak that their functioning should not be impacted.
4620      am__obj=conftest.${OBJEXT-o}
4621      am__minus_obj=
4622      ;;
4623    none) break ;;
4624    esac
4625    if depmode=$depmode \
4626       source=sub/conftest.c object=$am__obj \
4627       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4628       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4629         >/dev/null 2>conftest.err &&
4630       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4631       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4632       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4633       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4634      # icc doesn't choke on unknown options, it will just issue warnings
4635      # or remarks (even with -Werror).  So we grep stderr for any message
4636      # that says an option was ignored or not supported.
4637      # When given -MP, icc 7.0 and 7.1 complain thusly:
4638      #   icc: Command line warning: ignoring option '-M'; no argument required
4639      # The diagnosis changed in icc 8.0:
4640      #   icc: Command line remark: option '-MP' not supported
4641      if (grep 'ignoring option' conftest.err ||
4642          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4643        am_cv_OBJCXX_dependencies_compiler_type=$depmode
4644        break
4645      fi
4646    fi
4647  done
4648
4649  cd ..
4650  rm -rf conftest.dir
4651else
4652  am_cv_OBJCXX_dependencies_compiler_type=none
4653fi
4654
4655fi
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4657$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4658OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4659
4660 if
4661  test "x$enable_dependency_tracking" != xno \
4662  && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4663  am__fastdepOBJCXX_TRUE=
4664  am__fastdepOBJCXX_FALSE='#'
4665else
4666  am__fastdepOBJCXX_TRUE='#'
4667  am__fastdepOBJCXX_FALSE=
4668fi
4669
4670
4671ac_ext=c
4672ac_cpp='$CPP $CPPFLAGS'
4673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676if test -n "$ac_tool_prefix"; then
4677  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4678set dummy ${ac_tool_prefix}gcc; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if ${ac_cv_prog_CC+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  if test -n "$CC"; then
4685  ac_cv_prog_CC="$CC" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690  IFS=$as_save_IFS
4691  test -z "$as_dir" && as_dir=.
4692    for ac_exec_ext in '' $ac_executable_extensions; do
4693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696    break 2
4697  fi
4698done
4699  done
4700IFS=$as_save_IFS
4701
4702fi
4703fi
4704CC=$ac_cv_prog_CC
4705if test -n "$CC"; then
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707$as_echo "$CC" >&6; }
4708else
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711fi
4712
4713
4714fi
4715if test -z "$ac_cv_prog_CC"; then
4716  ac_ct_CC=$CC
4717  # Extract the first word of "gcc", so it can be a program name with args.
4718set dummy gcc; ac_word=$2
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720$as_echo_n "checking for $ac_word... " >&6; }
4721if ${ac_cv_prog_ac_ct_CC+:} false; then :
4722  $as_echo_n "(cached) " >&6
4723else
4724  if test -n "$ac_ct_CC"; then
4725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730  IFS=$as_save_IFS
4731  test -z "$as_dir" && as_dir=.
4732    for ac_exec_ext in '' $ac_executable_extensions; do
4733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734    ac_cv_prog_ac_ct_CC="gcc"
4735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736    break 2
4737  fi
4738done
4739  done
4740IFS=$as_save_IFS
4741
4742fi
4743fi
4744ac_ct_CC=$ac_cv_prog_ac_ct_CC
4745if test -n "$ac_ct_CC"; then
4746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4747$as_echo "$ac_ct_CC" >&6; }
4748else
4749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750$as_echo "no" >&6; }
4751fi
4752
4753  if test "x$ac_ct_CC" = x; then
4754    CC=""
4755  else
4756    case $cross_compiling:$ac_tool_warned in
4757yes:)
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760ac_tool_warned=yes ;;
4761esac
4762    CC=$ac_ct_CC
4763  fi
4764else
4765  CC="$ac_cv_prog_CC"
4766fi
4767
4768if test -z "$CC"; then
4769          if test -n "$ac_tool_prefix"; then
4770    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4771set dummy ${ac_tool_prefix}cc; ac_word=$2
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if ${ac_cv_prog_CC+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  if test -n "$CC"; then
4778  ac_cv_prog_CC="$CC" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785    for ac_exec_ext in '' $ac_executable_extensions; do
4786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787    ac_cv_prog_CC="${ac_tool_prefix}cc"
4788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792  done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797CC=$ac_cv_prog_CC
4798if test -n "$CC"; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800$as_echo "$CC" >&6; }
4801else
4802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806
4807  fi
4808fi
4809if test -z "$CC"; then
4810  # Extract the first word of "cc", so it can be a program name with args.
4811set dummy cc; ac_word=$2
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813$as_echo_n "checking for $ac_word... " >&6; }
4814if ${ac_cv_prog_CC+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  if test -n "$CC"; then
4818  ac_cv_prog_CC="$CC" # Let the user override the test.
4819else
4820  ac_prog_rejected=no
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826    for ac_exec_ext in '' $ac_executable_extensions; do
4827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4829       ac_prog_rejected=yes
4830       continue
4831     fi
4832    ac_cv_prog_CC="cc"
4833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837  done
4838IFS=$as_save_IFS
4839
4840if test $ac_prog_rejected = yes; then
4841  # We found a bogon in the path, so make sure we never use it.
4842  set dummy $ac_cv_prog_CC
4843  shift
4844  if test $# != 0; then
4845    # We chose a different compiler from the bogus one.
4846    # However, it has the same basename, so the bogon will be chosen
4847    # first if we set CC to just the basename; use the full file name.
4848    shift
4849    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4850  fi
4851fi
4852fi
4853fi
4854CC=$ac_cv_prog_CC
4855if test -n "$CC"; then
4856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4857$as_echo "$CC" >&6; }
4858else
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861fi
4862
4863
4864fi
4865if test -z "$CC"; then
4866  if test -n "$ac_tool_prefix"; then
4867  for ac_prog in cl.exe
4868  do
4869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872$as_echo_n "checking for $ac_word... " >&6; }
4873if ${ac_cv_prog_CC+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  if test -n "$CC"; then
4877  ac_cv_prog_CC="$CC" # Let the user override the test.
4878else
4879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882  IFS=$as_save_IFS
4883  test -z "$as_dir" && as_dir=.
4884    for ac_exec_ext in '' $ac_executable_extensions; do
4885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888    break 2
4889  fi
4890done
4891  done
4892IFS=$as_save_IFS
4893
4894fi
4895fi
4896CC=$ac_cv_prog_CC
4897if test -n "$CC"; then
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4899$as_echo "$CC" >&6; }
4900else
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
4903fi
4904
4905
4906    test -n "$CC" && break
4907  done
4908fi
4909if test -z "$CC"; then
4910  ac_ct_CC=$CC
4911  for ac_prog in cl.exe
4912do
4913  # Extract the first word of "$ac_prog", so it can be a program name with args.
4914set dummy $ac_prog; ac_word=$2
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916$as_echo_n "checking for $ac_word... " >&6; }
4917if ${ac_cv_prog_ac_ct_CC+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if test -n "$ac_ct_CC"; then
4921  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_exec_ext in '' $ac_executable_extensions; do
4929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930    ac_cv_prog_ac_ct_CC="$ac_prog"
4931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932    break 2
4933  fi
4934done
4935  done
4936IFS=$as_save_IFS
4937
4938fi
4939fi
4940ac_ct_CC=$ac_cv_prog_ac_ct_CC
4941if test -n "$ac_ct_CC"; then
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4943$as_echo "$ac_ct_CC" >&6; }
4944else
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946$as_echo "no" >&6; }
4947fi
4948
4949
4950  test -n "$ac_ct_CC" && break
4951done
4952
4953  if test "x$ac_ct_CC" = x; then
4954    CC=""
4955  else
4956    case $cross_compiling:$ac_tool_warned in
4957yes:)
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960ac_tool_warned=yes ;;
4961esac
4962    CC=$ac_ct_CC
4963  fi
4964fi
4965
4966fi
4967
4968
4969test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971as_fn_error $? "no acceptable C compiler found in \$PATH
4972See \`config.log' for more details" "$LINENO" 5; }
4973
4974# Provide some information about the compiler.
4975$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4976set X $ac_compile
4977ac_compiler=$2
4978for ac_option in --version -v -V -qversion; do
4979  { { ac_try="$ac_compiler $ac_option >&5"
4980case "(($ac_try" in
4981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982  *) ac_try_echo=$ac_try;;
4983esac
4984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985$as_echo "$ac_try_echo"; } >&5
4986  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4987  ac_status=$?
4988  if test -s conftest.err; then
4989    sed '10a\
4990... rest of stderr output deleted ...
4991         10q' conftest.err >conftest.er1
4992    cat conftest.er1 >&5
4993  fi
4994  rm -f conftest.er1 conftest.err
4995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996  test $ac_status = 0; }
4997done
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5000$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5001if ${ac_cv_c_compiler_gnu+:} false; then :
5002  $as_echo_n "(cached) " >&6
5003else
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006
5007int
5008main ()
5009{
5010#ifndef __GNUC__
5011       choke me
5012#endif
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018if ac_fn_c_try_compile "$LINENO"; then :
5019  ac_compiler_gnu=yes
5020else
5021  ac_compiler_gnu=no
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024ac_cv_c_compiler_gnu=$ac_compiler_gnu
5025
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5028$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5029if test $ac_compiler_gnu = yes; then
5030  GCC=yes
5031else
5032  GCC=
5033fi
5034ac_test_CFLAGS=${CFLAGS+set}
5035ac_save_CFLAGS=$CFLAGS
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5037$as_echo_n "checking whether $CC accepts -g... " >&6; }
5038if ${ac_cv_prog_cc_g+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041  ac_save_c_werror_flag=$ac_c_werror_flag
5042   ac_c_werror_flag=yes
5043   ac_cv_prog_cc_g=no
5044   CFLAGS="-g"
5045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047
5048int
5049main ()
5050{
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"; then :
5057  ac_cv_prog_cc_g=yes
5058else
5059  CFLAGS=""
5060      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071if ac_fn_c_try_compile "$LINENO"; then :
5072
5073else
5074  ac_c_werror_flag=$ac_save_c_werror_flag
5075	 CFLAGS="-g"
5076	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078
5079int
5080main ()
5081{
5082
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_compile "$LINENO"; then :
5088  ac_cv_prog_cc_g=yes
5089fi
5090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091fi
5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093fi
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095   ac_c_werror_flag=$ac_save_c_werror_flag
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5098$as_echo "$ac_cv_prog_cc_g" >&6; }
5099if test "$ac_test_CFLAGS" = set; then
5100  CFLAGS=$ac_save_CFLAGS
5101elif test $ac_cv_prog_cc_g = yes; then
5102  if test "$GCC" = yes; then
5103    CFLAGS="-g -O2"
5104  else
5105    CFLAGS="-g"
5106  fi
5107else
5108  if test "$GCC" = yes; then
5109    CFLAGS="-O2"
5110  else
5111    CFLAGS=
5112  fi
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5115$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5116if ${ac_cv_prog_cc_c89+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  ac_cv_prog_cc_c89=no
5120ac_save_CC=$CC
5121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h.  */
5123#include <stdarg.h>
5124#include <stdio.h>
5125struct stat;
5126/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5127struct buf { int x; };
5128FILE * (*rcsopen) (struct buf *, struct stat *, int);
5129static char *e (p, i)
5130     char **p;
5131     int i;
5132{
5133  return p[i];
5134}
5135static char *f (char * (*g) (char **, int), char **p, ...)
5136{
5137  char *s;
5138  va_list v;
5139  va_start (v,p);
5140  s = g (p, va_arg (v,int));
5141  va_end (v);
5142  return s;
5143}
5144
5145/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5146   function prototypes and stuff, but not '\xHH' hex character constants.
5147   These don't provoke an error unfortunately, instead are silently treated
5148   as 'x'.  The following induces an error, until -std is added to get
5149   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5150   array size at least.  It's necessary to write '\x00'==0 to get something
5151   that's true only with -std.  */
5152int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5153
5154/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5155   inside strings and character constants.  */
5156#define FOO(x) 'x'
5157int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5158
5159int test (int i, double x);
5160struct s1 {int (*f) (int a);};
5161struct s2 {int (*f) (double a);};
5162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5163int argc;
5164char **argv;
5165int
5166main ()
5167{
5168return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5169  ;
5170  return 0;
5171}
5172_ACEOF
5173for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5174	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5175do
5176  CC="$ac_save_CC $ac_arg"
5177  if ac_fn_c_try_compile "$LINENO"; then :
5178  ac_cv_prog_cc_c89=$ac_arg
5179fi
5180rm -f core conftest.err conftest.$ac_objext
5181  test "x$ac_cv_prog_cc_c89" != "xno" && break
5182done
5183rm -f conftest.$ac_ext
5184CC=$ac_save_CC
5185
5186fi
5187# AC_CACHE_VAL
5188case "x$ac_cv_prog_cc_c89" in
5189  x)
5190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5191$as_echo "none needed" >&6; } ;;
5192  xno)
5193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5194$as_echo "unsupported" >&6; } ;;
5195  *)
5196    CC="$CC $ac_cv_prog_cc_c89"
5197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5198$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5199esac
5200if test "x$ac_cv_prog_cc_c89" != xno; then :
5201
5202fi
5203
5204ac_ext=c
5205ac_cpp='$CPP $CPPFLAGS'
5206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209
5210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5216$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5217if ${am_cv_prog_cc_c_o+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h.  */
5222
5223int
5224main ()
5225{
5226
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231  # Make sure it works both with $CC and with simple cc.
5232  # Following AC_PROG_CC_C_O, we do the test twice because some
5233  # compilers refuse to overwrite an existing .o file with -o,
5234  # though they will create one.
5235  am_cv_prog_cc_c_o=yes
5236  for am_i in 1 2; do
5237    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5238   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } \
5242         && test -f conftest2.$ac_objext; then
5243      : OK
5244    else
5245      am_cv_prog_cc_c_o=no
5246      break
5247    fi
5248  done
5249  rm -f core conftest*
5250  unset am_i
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5253$as_echo "$am_cv_prog_cc_c_o" >&6; }
5254if test "$am_cv_prog_cc_c_o" != yes; then
5255   # Losing compiler, so override with the script.
5256   # FIXME: It is wrong to rewrite CC.
5257   # But if we don't then we get into trouble of one sort or another.
5258   # A longer-term fix would be to have automake use am__CC in this case,
5259   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5260   CC="$am_aux_dir/compile $CC"
5261fi
5262ac_ext=c
5263ac_cpp='$CPP $CPPFLAGS'
5264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266ac_compiler_gnu=$ac_cv_c_compiler_gnu
5267
5268
5269depcc="$CC"   am_compiler_list=
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5272$as_echo_n "checking dependency style of $depcc... " >&6; }
5273if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5277  # We make a subdir and do the tests there.  Otherwise we can end up
5278  # making bogus files that we don't know about and never remove.  For
5279  # instance it was reported that on HP-UX the gcc test will end up
5280  # making a dummy file named 'D' -- because '-MD' means "put the output
5281  # in D".
5282  rm -rf conftest.dir
5283  mkdir conftest.dir
5284  # Copy depcomp to subdir because otherwise we won't find it if we're
5285  # using a relative directory.
5286  cp "$am_depcomp" conftest.dir
5287  cd conftest.dir
5288  # We will build objects and dependencies in a subdirectory because
5289  # it helps to detect inapplicable dependency modes.  For instance
5290  # both Tru64's cc and ICC support -MD to output dependencies as a
5291  # side effect of compilation, but ICC will put the dependencies in
5292  # the current directory while Tru64 will put them in the object
5293  # directory.
5294  mkdir sub
5295
5296  am_cv_CC_dependencies_compiler_type=none
5297  if test "$am_compiler_list" = ""; then
5298     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5299  fi
5300  am__universal=false
5301  case " $depcc " in #(
5302     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5303     esac
5304
5305  for depmode in $am_compiler_list; do
5306    # Setup a source with many dependencies, because some compilers
5307    # like to wrap large dependency lists on column 80 (with \), and
5308    # we should not choose a depcomp mode which is confused by this.
5309    #
5310    # We need to recreate these files for each test, as the compiler may
5311    # overwrite some of them when testing with obscure command lines.
5312    # This happens at least with the AIX C compiler.
5313    : > sub/conftest.c
5314    for i in 1 2 3 4 5 6; do
5315      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5316      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5317      # Solaris 10 /bin/sh.
5318      echo '/* dummy */' > sub/conftst$i.h
5319    done
5320    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5321
5322    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5323    # mode.  It turns out that the SunPro C++ compiler does not properly
5324    # handle '-M -o', and we need to detect this.  Also, some Intel
5325    # versions had trouble with output in subdirs.
5326    am__obj=sub/conftest.${OBJEXT-o}
5327    am__minus_obj="-o $am__obj"
5328    case $depmode in
5329    gcc)
5330      # This depmode causes a compiler race in universal mode.
5331      test "$am__universal" = false || continue
5332      ;;
5333    nosideeffect)
5334      # After this tag, mechanisms are not by side-effect, so they'll
5335      # only be used when explicitly requested.
5336      if test "x$enable_dependency_tracking" = xyes; then
5337	continue
5338      else
5339	break
5340      fi
5341      ;;
5342    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5343      # This compiler won't grok '-c -o', but also, the minuso test has
5344      # not run yet.  These depmodes are late enough in the game, and
5345      # so weak that their functioning should not be impacted.
5346      am__obj=conftest.${OBJEXT-o}
5347      am__minus_obj=
5348      ;;
5349    none) break ;;
5350    esac
5351    if depmode=$depmode \
5352       source=sub/conftest.c object=$am__obj \
5353       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5354       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5355         >/dev/null 2>conftest.err &&
5356       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5357       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5358       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5359       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5360      # icc doesn't choke on unknown options, it will just issue warnings
5361      # or remarks (even with -Werror).  So we grep stderr for any message
5362      # that says an option was ignored or not supported.
5363      # When given -MP, icc 7.0 and 7.1 complain thusly:
5364      #   icc: Command line warning: ignoring option '-M'; no argument required
5365      # The diagnosis changed in icc 8.0:
5366      #   icc: Command line remark: option '-MP' not supported
5367      if (grep 'ignoring option' conftest.err ||
5368          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5369        am_cv_CC_dependencies_compiler_type=$depmode
5370        break
5371      fi
5372    fi
5373  done
5374
5375  cd ..
5376  rm -rf conftest.dir
5377else
5378  am_cv_CC_dependencies_compiler_type=none
5379fi
5380
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5383$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5384CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5385
5386 if
5387  test "x$enable_dependency_tracking" != xno \
5388  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5389  am__fastdepCC_TRUE=
5390  am__fastdepCC_FALSE='#'
5391else
5392  am__fastdepCC_TRUE='#'
5393  am__fastdepCC_FALSE=
5394fi
5395
5396
5397
5398
5399
5400case `pwd` in
5401  *\ * | *\	*)
5402    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5403$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5404esac
5405
5406
5407
5408macro_version='2.4.6'
5409macro_revision='2.4.6'
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423ltmain=$ac_aux_dir/ltmain.sh
5424
5425# Make sure we can run config.sub.
5426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5427  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5428
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5430$as_echo_n "checking build system type... " >&6; }
5431if ${ac_cv_build+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  ac_build_alias=$build_alias
5435test "x$ac_build_alias" = x &&
5436  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5437test "x$ac_build_alias" = x &&
5438  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5441
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5444$as_echo "$ac_cv_build" >&6; }
5445case $ac_cv_build in
5446*-*-*) ;;
5447*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5448esac
5449build=$ac_cv_build
5450ac_save_IFS=$IFS; IFS='-'
5451set x $ac_cv_build
5452shift
5453build_cpu=$1
5454build_vendor=$2
5455shift; shift
5456# Remember, the first character of IFS is used to create $*,
5457# except with old shells:
5458build_os=$*
5459IFS=$ac_save_IFS
5460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5464$as_echo_n "checking host system type... " >&6; }
5465if ${ac_cv_host+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  if test "x$host_alias" = x; then
5469  ac_cv_host=$ac_cv_build
5470else
5471  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5472    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5473fi
5474
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5477$as_echo "$ac_cv_host" >&6; }
5478case $ac_cv_host in
5479*-*-*) ;;
5480*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5481esac
5482host=$ac_cv_host
5483ac_save_IFS=$IFS; IFS='-'
5484set x $ac_cv_host
5485shift
5486host_cpu=$1
5487host_vendor=$2
5488shift; shift
5489# Remember, the first character of IFS is used to create $*,
5490# except with old shells:
5491host_os=$*
5492IFS=$ac_save_IFS
5493case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5494
5495
5496# Backslashify metacharacters that are still active within
5497# double-quoted strings.
5498sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5499
5500# Same as above, but do not quote variable references.
5501double_quote_subst='s/\(["`\\]\)/\\\1/g'
5502
5503# Sed substitution to delay expansion of an escaped shell variable in a
5504# double_quote_subst'ed string.
5505delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5506
5507# Sed substitution to delay expansion of an escaped single quote.
5508delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5509
5510# Sed substitution to avoid accidental globbing in evaled expressions
5511no_glob_subst='s/\*/\\\*/g'
5512
5513ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5514ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5515ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5516
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5518$as_echo_n "checking how to print strings... " >&6; }
5519# Test print first, because it will be a builtin if present.
5520if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5521   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5522  ECHO='print -r --'
5523elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5524  ECHO='printf %s\n'
5525else
5526  # Use this function as a fallback that always works.
5527  func_fallback_echo ()
5528  {
5529    eval 'cat <<_LTECHO_EOF
5530$1
5531_LTECHO_EOF'
5532  }
5533  ECHO='func_fallback_echo'
5534fi
5535
5536# func_echo_all arg...
5537# Invoke $ECHO with all args, space-separated.
5538func_echo_all ()
5539{
5540    $ECHO ""
5541}
5542
5543case $ECHO in
5544  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5545$as_echo "printf" >&6; } ;;
5546  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5547$as_echo "print -r" >&6; } ;;
5548  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5549$as_echo "cat" >&6; } ;;
5550esac
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5566$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5567if ${ac_cv_path_SED+:} false; then :
5568  $as_echo_n "(cached) " >&6
5569else
5570            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5571     for ac_i in 1 2 3 4 5 6 7; do
5572       ac_script="$ac_script$as_nl$ac_script"
5573     done
5574     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5575     { ac_script=; unset ac_script;}
5576     if test -z "$SED"; then
5577  ac_path_SED_found=false
5578  # Loop through the user's path and test for each of PROGNAME-LIST
5579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH
5581do
5582  IFS=$as_save_IFS
5583  test -z "$as_dir" && as_dir=.
5584    for ac_prog in sed gsed; do
5585    for ac_exec_ext in '' $ac_executable_extensions; do
5586      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5587      as_fn_executable_p "$ac_path_SED" || continue
5588# Check for GNU ac_path_SED and select it if it is found.
5589  # Check for GNU $ac_path_SED
5590case `"$ac_path_SED" --version 2>&1` in
5591*GNU*)
5592  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5593*)
5594  ac_count=0
5595  $as_echo_n 0123456789 >"conftest.in"
5596  while :
5597  do
5598    cat "conftest.in" "conftest.in" >"conftest.tmp"
5599    mv "conftest.tmp" "conftest.in"
5600    cp "conftest.in" "conftest.nl"
5601    $as_echo '' >> "conftest.nl"
5602    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5603    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5604    as_fn_arith $ac_count + 1 && ac_count=$as_val
5605    if test $ac_count -gt ${ac_path_SED_max-0}; then
5606      # Best one so far, save it but keep looking for a better one
5607      ac_cv_path_SED="$ac_path_SED"
5608      ac_path_SED_max=$ac_count
5609    fi
5610    # 10*(2^10) chars as input seems more than enough
5611    test $ac_count -gt 10 && break
5612  done
5613  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5614esac
5615
5616      $ac_path_SED_found && break 3
5617    done
5618  done
5619  done
5620IFS=$as_save_IFS
5621  if test -z "$ac_cv_path_SED"; then
5622    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5623  fi
5624else
5625  ac_cv_path_SED=$SED
5626fi
5627
5628fi
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5630$as_echo "$ac_cv_path_SED" >&6; }
5631 SED="$ac_cv_path_SED"
5632  rm -f conftest.sed
5633
5634test -z "$SED" && SED=sed
5635Xsed="$SED -e 1s/^X//"
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5648$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5649if ${ac_cv_path_GREP+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -z "$GREP"; then
5653  ac_path_GREP_found=false
5654  # Loop through the user's path and test for each of PROGNAME-LIST
5655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_prog in grep ggrep; do
5661    for ac_exec_ext in '' $ac_executable_extensions; do
5662      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5663      as_fn_executable_p "$ac_path_GREP" || continue
5664# Check for GNU ac_path_GREP and select it if it is found.
5665  # Check for GNU $ac_path_GREP
5666case `"$ac_path_GREP" --version 2>&1` in
5667*GNU*)
5668  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5669*)
5670  ac_count=0
5671  $as_echo_n 0123456789 >"conftest.in"
5672  while :
5673  do
5674    cat "conftest.in" "conftest.in" >"conftest.tmp"
5675    mv "conftest.tmp" "conftest.in"
5676    cp "conftest.in" "conftest.nl"
5677    $as_echo 'GREP' >> "conftest.nl"
5678    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5679    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5680    as_fn_arith $ac_count + 1 && ac_count=$as_val
5681    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5682      # Best one so far, save it but keep looking for a better one
5683      ac_cv_path_GREP="$ac_path_GREP"
5684      ac_path_GREP_max=$ac_count
5685    fi
5686    # 10*(2^10) chars as input seems more than enough
5687    test $ac_count -gt 10 && break
5688  done
5689  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5690esac
5691
5692      $ac_path_GREP_found && break 3
5693    done
5694  done
5695  done
5696IFS=$as_save_IFS
5697  if test -z "$ac_cv_path_GREP"; then
5698    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5699  fi
5700else
5701  ac_cv_path_GREP=$GREP
5702fi
5703
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5706$as_echo "$ac_cv_path_GREP" >&6; }
5707 GREP="$ac_cv_path_GREP"
5708
5709
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5711$as_echo_n "checking for egrep... " >&6; }
5712if ${ac_cv_path_EGREP+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5716   then ac_cv_path_EGREP="$GREP -E"
5717   else
5718     if test -z "$EGREP"; then
5719  ac_path_EGREP_found=false
5720  # Loop through the user's path and test for each of PROGNAME-LIST
5721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723do
5724  IFS=$as_save_IFS
5725  test -z "$as_dir" && as_dir=.
5726    for ac_prog in egrep; do
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5729      as_fn_executable_p "$ac_path_EGREP" || continue
5730# Check for GNU ac_path_EGREP and select it if it is found.
5731  # Check for GNU $ac_path_EGREP
5732case `"$ac_path_EGREP" --version 2>&1` in
5733*GNU*)
5734  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5735*)
5736  ac_count=0
5737  $as_echo_n 0123456789 >"conftest.in"
5738  while :
5739  do
5740    cat "conftest.in" "conftest.in" >"conftest.tmp"
5741    mv "conftest.tmp" "conftest.in"
5742    cp "conftest.in" "conftest.nl"
5743    $as_echo 'EGREP' >> "conftest.nl"
5744    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746    as_fn_arith $ac_count + 1 && ac_count=$as_val
5747    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5748      # Best one so far, save it but keep looking for a better one
5749      ac_cv_path_EGREP="$ac_path_EGREP"
5750      ac_path_EGREP_max=$ac_count
5751    fi
5752    # 10*(2^10) chars as input seems more than enough
5753    test $ac_count -gt 10 && break
5754  done
5755  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756esac
5757
5758      $ac_path_EGREP_found && break 3
5759    done
5760  done
5761  done
5762IFS=$as_save_IFS
5763  if test -z "$ac_cv_path_EGREP"; then
5764    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765  fi
5766else
5767  ac_cv_path_EGREP=$EGREP
5768fi
5769
5770   fi
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5773$as_echo "$ac_cv_path_EGREP" >&6; }
5774 EGREP="$ac_cv_path_EGREP"
5775
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5778$as_echo_n "checking for fgrep... " >&6; }
5779if ${ac_cv_path_FGREP+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5783   then ac_cv_path_FGREP="$GREP -F"
5784   else
5785     if test -z "$FGREP"; then
5786  ac_path_FGREP_found=false
5787  # Loop through the user's path and test for each of PROGNAME-LIST
5788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793    for ac_prog in fgrep; do
5794    for ac_exec_ext in '' $ac_executable_extensions; do
5795      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5796      as_fn_executable_p "$ac_path_FGREP" || continue
5797# Check for GNU ac_path_FGREP and select it if it is found.
5798  # Check for GNU $ac_path_FGREP
5799case `"$ac_path_FGREP" --version 2>&1` in
5800*GNU*)
5801  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5802*)
5803  ac_count=0
5804  $as_echo_n 0123456789 >"conftest.in"
5805  while :
5806  do
5807    cat "conftest.in" "conftest.in" >"conftest.tmp"
5808    mv "conftest.tmp" "conftest.in"
5809    cp "conftest.in" "conftest.nl"
5810    $as_echo 'FGREP' >> "conftest.nl"
5811    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5812    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5813    as_fn_arith $ac_count + 1 && ac_count=$as_val
5814    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5815      # Best one so far, save it but keep looking for a better one
5816      ac_cv_path_FGREP="$ac_path_FGREP"
5817      ac_path_FGREP_max=$ac_count
5818    fi
5819    # 10*(2^10) chars as input seems more than enough
5820    test $ac_count -gt 10 && break
5821  done
5822  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5823esac
5824
5825      $ac_path_FGREP_found && break 3
5826    done
5827  done
5828  done
5829IFS=$as_save_IFS
5830  if test -z "$ac_cv_path_FGREP"; then
5831    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5832  fi
5833else
5834  ac_cv_path_FGREP=$FGREP
5835fi
5836
5837   fi
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5840$as_echo "$ac_cv_path_FGREP" >&6; }
5841 FGREP="$ac_cv_path_FGREP"
5842
5843
5844test -z "$GREP" && GREP=grep
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864# Check whether --with-gnu-ld was given.
5865if test "${with_gnu_ld+set}" = set; then :
5866  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5867else
5868  with_gnu_ld=no
5869fi
5870
5871ac_prog=ld
5872if test yes = "$GCC"; then
5873  # Check if gcc -print-prog-name=ld gives a path.
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5875$as_echo_n "checking for ld used by $CC... " >&6; }
5876  case $host in
5877  *-*-mingw*)
5878    # gcc leaves a trailing carriage return, which upsets mingw
5879    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5880  *)
5881    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5882  esac
5883  case $ac_prog in
5884    # Accept absolute paths.
5885    [\\/]* | ?:[\\/]*)
5886      re_direlt='/[^/][^/]*/\.\./'
5887      # Canonicalize the pathname of ld
5888      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5889      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5890	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5891      done
5892      test -z "$LD" && LD=$ac_prog
5893      ;;
5894  "")
5895    # If it fails, then pretend we aren't using GCC.
5896    ac_prog=ld
5897    ;;
5898  *)
5899    # If it is relative, then search for the first ld in PATH.
5900    with_gnu_ld=unknown
5901    ;;
5902  esac
5903elif test yes = "$with_gnu_ld"; then
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5905$as_echo_n "checking for GNU ld... " >&6; }
5906else
5907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5908$as_echo_n "checking for non-GNU ld... " >&6; }
5909fi
5910if ${lt_cv_path_LD+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  if test -z "$LD"; then
5914  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5915  for ac_dir in $PATH; do
5916    IFS=$lt_save_ifs
5917    test -z "$ac_dir" && ac_dir=.
5918    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5919      lt_cv_path_LD=$ac_dir/$ac_prog
5920      # Check to see if the program is GNU ld.  I'd rather use --version,
5921      # but apparently some variants of GNU ld only accept -v.
5922      # Break only if it was the GNU/non-GNU ld that we prefer.
5923      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5924      *GNU* | *'with BFD'*)
5925	test no != "$with_gnu_ld" && break
5926	;;
5927      *)
5928	test yes != "$with_gnu_ld" && break
5929	;;
5930      esac
5931    fi
5932  done
5933  IFS=$lt_save_ifs
5934else
5935  lt_cv_path_LD=$LD # Let the user override the test with a path.
5936fi
5937fi
5938
5939LD=$lt_cv_path_LD
5940if test -n "$LD"; then
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5942$as_echo "$LD" >&6; }
5943else
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5949$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5950if ${lt_cv_prog_gnu_ld+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5954case `$LD -v 2>&1 </dev/null` in
5955*GNU* | *'with BFD'*)
5956  lt_cv_prog_gnu_ld=yes
5957  ;;
5958*)
5959  lt_cv_prog_gnu_ld=no
5960  ;;
5961esac
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5964$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5965with_gnu_ld=$lt_cv_prog_gnu_ld
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5976$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5977if ${lt_cv_path_NM+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  if test -n "$NM"; then
5981  # Let the user override the test.
5982  lt_cv_path_NM=$NM
5983else
5984  lt_nm_to_check=${ac_tool_prefix}nm
5985  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5986    lt_nm_to_check="$lt_nm_to_check nm"
5987  fi
5988  for lt_tmp_nm in $lt_nm_to_check; do
5989    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5990    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5991      IFS=$lt_save_ifs
5992      test -z "$ac_dir" && ac_dir=.
5993      tmp_nm=$ac_dir/$lt_tmp_nm
5994      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5995	# Check to see if the nm accepts a BSD-compat flag.
5996	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5997	#   nm: unknown option "B" ignored
5998	# Tru64's nm complains that /dev/null is an invalid object file
5999	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6000	case $build_os in
6001	mingw*) lt_bad_file=conftest.nm/nofile ;;
6002	*) lt_bad_file=/dev/null ;;
6003	esac
6004	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6005	*$lt_bad_file* | *'Invalid file or object type'*)
6006	  lt_cv_path_NM="$tmp_nm -B"
6007	  break 2
6008	  ;;
6009	*)
6010	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6011	  */dev/null*)
6012	    lt_cv_path_NM="$tmp_nm -p"
6013	    break 2
6014	    ;;
6015	  *)
6016	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6017	    continue # so that we can try to find one that supports BSD flags
6018	    ;;
6019	  esac
6020	  ;;
6021	esac
6022      fi
6023    done
6024    IFS=$lt_save_ifs
6025  done
6026  : ${lt_cv_path_NM=no}
6027fi
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6030$as_echo "$lt_cv_path_NM" >&6; }
6031if test no != "$lt_cv_path_NM"; then
6032  NM=$lt_cv_path_NM
6033else
6034  # Didn't find any BSD compatible name lister, look for dumpbin.
6035  if test -n "$DUMPBIN"; then :
6036    # Let the user override the test.
6037  else
6038    if test -n "$ac_tool_prefix"; then
6039  for ac_prog in dumpbin "link -dump"
6040  do
6041    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_DUMPBIN+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  if test -n "$DUMPBIN"; then
6049  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056    for ac_exec_ext in '' $ac_executable_extensions; do
6057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063  done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068DUMPBIN=$ac_cv_prog_DUMPBIN
6069if test -n "$DUMPBIN"; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6071$as_echo "$DUMPBIN" >&6; }
6072else
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078    test -n "$DUMPBIN" && break
6079  done
6080fi
6081if test -z "$DUMPBIN"; then
6082  ac_ct_DUMPBIN=$DUMPBIN
6083  for ac_prog in dumpbin "link -dump"
6084do
6085  # Extract the first word of "$ac_prog", so it can be a program name with args.
6086set dummy $ac_prog; ac_word=$2
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  if test -n "$ac_ct_DUMPBIN"; then
6093  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098  IFS=$as_save_IFS
6099  test -z "$as_dir" && as_dir=.
6100    for ac_exec_ext in '' $ac_executable_extensions; do
6101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104    break 2
6105  fi
6106done
6107  done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6113if test -n "$ac_ct_DUMPBIN"; then
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6115$as_echo "$ac_ct_DUMPBIN" >&6; }
6116else
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121
6122  test -n "$ac_ct_DUMPBIN" && break
6123done
6124
6125  if test "x$ac_ct_DUMPBIN" = x; then
6126    DUMPBIN=":"
6127  else
6128    case $cross_compiling:$ac_tool_warned in
6129yes:)
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132ac_tool_warned=yes ;;
6133esac
6134    DUMPBIN=$ac_ct_DUMPBIN
6135  fi
6136fi
6137
6138    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6139    *COFF*)
6140      DUMPBIN="$DUMPBIN -symbols -headers"
6141      ;;
6142    *)
6143      DUMPBIN=:
6144      ;;
6145    esac
6146  fi
6147
6148  if test : != "$DUMPBIN"; then
6149    NM=$DUMPBIN
6150  fi
6151fi
6152test -z "$NM" && NM=nm
6153
6154
6155
6156
6157
6158
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6160$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6161if ${lt_cv_nm_interface+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  lt_cv_nm_interface="BSD nm"
6165  echo "int some_variable = 0;" > conftest.$ac_ext
6166  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6167  (eval "$ac_compile" 2>conftest.err)
6168  cat conftest.err >&5
6169  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6170  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6171  cat conftest.err >&5
6172  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6173  cat conftest.out >&5
6174  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6175    lt_cv_nm_interface="MS dumpbin"
6176  fi
6177  rm -f conftest*
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6180$as_echo "$lt_cv_nm_interface" >&6; }
6181
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6183$as_echo_n "checking whether ln -s works... " >&6; }
6184LN_S=$as_ln_s
6185if test "$LN_S" = "ln -s"; then
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6187$as_echo "yes" >&6; }
6188else
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6190$as_echo "no, using $LN_S" >&6; }
6191fi
6192
6193# find the maximum length of command line arguments
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6195$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6196if ${lt_cv_sys_max_cmd_len+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199    i=0
6200  teststring=ABCD
6201
6202  case $build_os in
6203  msdosdjgpp*)
6204    # On DJGPP, this test can blow up pretty badly due to problems in libc
6205    # (any single argument exceeding 2000 bytes causes a buffer overrun
6206    # during glob expansion).  Even if it were fixed, the result of this
6207    # check would be larger than it should be.
6208    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6209    ;;
6210
6211  gnu*)
6212    # Under GNU Hurd, this test is not required because there is
6213    # no limit to the length of command line arguments.
6214    # Libtool will interpret -1 as no limit whatsoever
6215    lt_cv_sys_max_cmd_len=-1;
6216    ;;
6217
6218  cygwin* | mingw* | cegcc*)
6219    # On Win9x/ME, this test blows up -- it succeeds, but takes
6220    # about 5 minutes as the teststring grows exponentially.
6221    # Worse, since 9x/ME are not pre-emptively multitasking,
6222    # you end up with a "frozen" computer, even though with patience
6223    # the test eventually succeeds (with a max line length of 256k).
6224    # Instead, let's just punt: use the minimum linelength reported by
6225    # all of the supported platforms: 8192 (on NT/2K/XP).
6226    lt_cv_sys_max_cmd_len=8192;
6227    ;;
6228
6229  mint*)
6230    # On MiNT this can take a long time and run out of memory.
6231    lt_cv_sys_max_cmd_len=8192;
6232    ;;
6233
6234  amigaos*)
6235    # On AmigaOS with pdksh, this test takes hours, literally.
6236    # So we just punt and use a minimum line length of 8192.
6237    lt_cv_sys_max_cmd_len=8192;
6238    ;;
6239
6240  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6241    # This has been around since 386BSD, at least.  Likely further.
6242    if test -x /sbin/sysctl; then
6243      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6244    elif test -x /usr/sbin/sysctl; then
6245      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6246    else
6247      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6248    fi
6249    # And add a safety zone
6250    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6252    ;;
6253
6254  interix*)
6255    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6256    lt_cv_sys_max_cmd_len=196608
6257    ;;
6258
6259  os2*)
6260    # The test takes a long time on OS/2.
6261    lt_cv_sys_max_cmd_len=8192
6262    ;;
6263
6264  osf*)
6265    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6266    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6267    # nice to cause kernel panics so lets avoid the loop below.
6268    # First set a reasonable default.
6269    lt_cv_sys_max_cmd_len=16384
6270    #
6271    if test -x /sbin/sysconfig; then
6272      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6273        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6274      esac
6275    fi
6276    ;;
6277  sco3.2v5*)
6278    lt_cv_sys_max_cmd_len=102400
6279    ;;
6280  sysv5* | sco5v6* | sysv4.2uw2*)
6281    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6282    if test -n "$kargmax"; then
6283      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6284    else
6285      lt_cv_sys_max_cmd_len=32768
6286    fi
6287    ;;
6288  *)
6289    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6290    if test -n "$lt_cv_sys_max_cmd_len" && \
6291       test undefined != "$lt_cv_sys_max_cmd_len"; then
6292      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6293      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6294    else
6295      # Make teststring a little bigger before we do anything with it.
6296      # a 1K string should be a reasonable start.
6297      for i in 1 2 3 4 5 6 7 8; do
6298        teststring=$teststring$teststring
6299      done
6300      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6301      # If test is not a shell built-in, we'll probably end up computing a
6302      # maximum length that is only half of the actual maximum length, but
6303      # we can't tell.
6304      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6305	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6306	      test 17 != "$i" # 1/2 MB should be enough
6307      do
6308        i=`expr $i + 1`
6309        teststring=$teststring$teststring
6310      done
6311      # Only check the string length outside the loop.
6312      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6313      teststring=
6314      # Add a significant safety factor because C++ compilers can tack on
6315      # massive amounts of additional arguments before passing them to the
6316      # linker.  It appears as though 1/2 is a usable value.
6317      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6318    fi
6319    ;;
6320  esac
6321
6322fi
6323
6324if test -n "$lt_cv_sys_max_cmd_len"; then
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6326$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6327else
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6329$as_echo "none" >&6; }
6330fi
6331max_cmd_len=$lt_cv_sys_max_cmd_len
6332
6333
6334
6335
6336
6337
6338: ${CP="cp -f"}
6339: ${MV="mv -f"}
6340: ${RM="rm -f"}
6341
6342if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6343  lt_unset=unset
6344else
6345  lt_unset=false
6346fi
6347
6348
6349
6350
6351
6352# test EBCDIC or ASCII
6353case `echo X|tr X '\101'` in
6354 A) # ASCII based system
6355    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6356  lt_SP2NL='tr \040 \012'
6357  lt_NL2SP='tr \015\012 \040\040'
6358  ;;
6359 *) # EBCDIC based system
6360  lt_SP2NL='tr \100 \n'
6361  lt_NL2SP='tr \r\n \100\100'
6362  ;;
6363esac
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6374$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6375if ${lt_cv_to_host_file_cmd+:} false; then :
6376  $as_echo_n "(cached) " >&6
6377else
6378  case $host in
6379  *-*-mingw* )
6380    case $build in
6381      *-*-mingw* ) # actually msys
6382        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6383        ;;
6384      *-*-cygwin* )
6385        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6386        ;;
6387      * ) # otherwise, assume *nix
6388        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6389        ;;
6390    esac
6391    ;;
6392  *-*-cygwin* )
6393    case $build in
6394      *-*-mingw* ) # actually msys
6395        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6396        ;;
6397      *-*-cygwin* )
6398        lt_cv_to_host_file_cmd=func_convert_file_noop
6399        ;;
6400      * ) # otherwise, assume *nix
6401        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6402        ;;
6403    esac
6404    ;;
6405  * ) # unhandled hosts (and "normal" native builds)
6406    lt_cv_to_host_file_cmd=func_convert_file_noop
6407    ;;
6408esac
6409
6410fi
6411
6412to_host_file_cmd=$lt_cv_to_host_file_cmd
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6414$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6415
6416
6417
6418
6419
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6421$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6422if ${lt_cv_to_tool_file_cmd+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  #assume ordinary cross tools, or native build.
6426lt_cv_to_tool_file_cmd=func_convert_file_noop
6427case $host in
6428  *-*-mingw* )
6429    case $build in
6430      *-*-mingw* ) # actually msys
6431        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6432        ;;
6433    esac
6434    ;;
6435esac
6436
6437fi
6438
6439to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6441$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6442
6443
6444
6445
6446
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6448$as_echo_n "checking for $LD option to reload object files... " >&6; }
6449if ${lt_cv_ld_reload_flag+:} false; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  lt_cv_ld_reload_flag='-r'
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6455$as_echo "$lt_cv_ld_reload_flag" >&6; }
6456reload_flag=$lt_cv_ld_reload_flag
6457case $reload_flag in
6458"" | " "*) ;;
6459*) reload_flag=" $reload_flag" ;;
6460esac
6461reload_cmds='$LD$reload_flag -o $output$reload_objs'
6462case $host_os in
6463  cygwin* | mingw* | pw32* | cegcc*)
6464    if test yes != "$GCC"; then
6465      reload_cmds=false
6466    fi
6467    ;;
6468  darwin*)
6469    if test yes = "$GCC"; then
6470      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6471    else
6472      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6473    fi
6474    ;;
6475esac
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485if test -n "$ac_tool_prefix"; then
6486  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6487set dummy ${ac_tool_prefix}objdump; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_OBJDUMP+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  if test -n "$OBJDUMP"; then
6494  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499  IFS=$as_save_IFS
6500  test -z "$as_dir" && as_dir=.
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505    break 2
6506  fi
6507done
6508  done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513OBJDUMP=$ac_cv_prog_OBJDUMP
6514if test -n "$OBJDUMP"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6516$as_echo "$OBJDUMP" >&6; }
6517else
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522
6523fi
6524if test -z "$ac_cv_prog_OBJDUMP"; then
6525  ac_ct_OBJDUMP=$OBJDUMP
6526  # Extract the first word of "objdump", so it can be a program name with args.
6527set dummy objdump; ac_word=$2
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529$as_echo_n "checking for $ac_word... " >&6; }
6530if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  if test -n "$ac_ct_OBJDUMP"; then
6534  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541    for ac_exec_ext in '' $ac_executable_extensions; do
6542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548  done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6554if test -n "$ac_ct_OBJDUMP"; then
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6556$as_echo "$ac_ct_OBJDUMP" >&6; }
6557else
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559$as_echo "no" >&6; }
6560fi
6561
6562  if test "x$ac_ct_OBJDUMP" = x; then
6563    OBJDUMP="false"
6564  else
6565    case $cross_compiling:$ac_tool_warned in
6566yes:)
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569ac_tool_warned=yes ;;
6570esac
6571    OBJDUMP=$ac_ct_OBJDUMP
6572  fi
6573else
6574  OBJDUMP="$ac_cv_prog_OBJDUMP"
6575fi
6576
6577test -z "$OBJDUMP" && OBJDUMP=objdump
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6588$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6589if ${lt_cv_deplibs_check_method+:} false; then :
6590  $as_echo_n "(cached) " >&6
6591else
6592  lt_cv_file_magic_cmd='$MAGIC_CMD'
6593lt_cv_file_magic_test_file=
6594lt_cv_deplibs_check_method='unknown'
6595# Need to set the preceding variable on all platforms that support
6596# interlibrary dependencies.
6597# 'none' -- dependencies not supported.
6598# 'unknown' -- same as none, but documents that we really don't know.
6599# 'pass_all' -- all dependencies passed with no checks.
6600# 'test_compile' -- check by making test program.
6601# 'file_magic [[regex]]' -- check by looking for files in library path
6602# that responds to the $file_magic_cmd with a given extended regex.
6603# If you have 'file' or equivalent on your system and you're not sure
6604# whether 'pass_all' will *always* work, you probably want this one.
6605
6606case $host_os in
6607aix[4-9]*)
6608  lt_cv_deplibs_check_method=pass_all
6609  ;;
6610
6611beos*)
6612  lt_cv_deplibs_check_method=pass_all
6613  ;;
6614
6615bsdi[45]*)
6616  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6617  lt_cv_file_magic_cmd='/usr/bin/file -L'
6618  lt_cv_file_magic_test_file=/shlib/libc.so
6619  ;;
6620
6621cygwin*)
6622  # func_win32_libid is a shell function defined in ltmain.sh
6623  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6624  lt_cv_file_magic_cmd='func_win32_libid'
6625  ;;
6626
6627mingw* | pw32*)
6628  # Base MSYS/MinGW do not provide the 'file' command needed by
6629  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6630  # unless we find 'file', for example because we are cross-compiling.
6631  if ( file / ) >/dev/null 2>&1; then
6632    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6633    lt_cv_file_magic_cmd='func_win32_libid'
6634  else
6635    # Keep this pattern in sync with the one in func_win32_libid.
6636    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6637    lt_cv_file_magic_cmd='$OBJDUMP -f'
6638  fi
6639  ;;
6640
6641cegcc*)
6642  # use the weaker test based on 'objdump'. See mingw*.
6643  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6644  lt_cv_file_magic_cmd='$OBJDUMP -f'
6645  ;;
6646
6647darwin* | rhapsody*)
6648  lt_cv_deplibs_check_method=pass_all
6649  ;;
6650
6651freebsd* | dragonfly*)
6652  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6653    case $host_cpu in
6654    i*86 )
6655      # Not sure whether the presence of OpenBSD here was a mistake.
6656      # Let's accept both of them until this is cleared up.
6657      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6658      lt_cv_file_magic_cmd=/usr/bin/file
6659      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6660      ;;
6661    esac
6662  else
6663    lt_cv_deplibs_check_method=pass_all
6664  fi
6665  ;;
6666
6667haiku*)
6668  lt_cv_deplibs_check_method=pass_all
6669  ;;
6670
6671hpux10.20* | hpux11*)
6672  lt_cv_file_magic_cmd=/usr/bin/file
6673  case $host_cpu in
6674  ia64*)
6675    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6676    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6677    ;;
6678  hppa*64*)
6679    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]'
6680    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6681    ;;
6682  *)
6683    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6684    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6685    ;;
6686  esac
6687  ;;
6688
6689interix[3-9]*)
6690  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6691  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6692  ;;
6693
6694irix5* | irix6* | nonstopux*)
6695  case $LD in
6696  *-32|*"-32 ") libmagic=32-bit;;
6697  *-n32|*"-n32 ") libmagic=N32;;
6698  *-64|*"-64 ") libmagic=64-bit;;
6699  *) libmagic=never-match;;
6700  esac
6701  lt_cv_deplibs_check_method=pass_all
6702  ;;
6703
6704# This must be glibc/ELF.
6705linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6706  lt_cv_deplibs_check_method=pass_all
6707  ;;
6708
6709netbsd*)
6710  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712  else
6713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6714  fi
6715  ;;
6716
6717newos6*)
6718  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6719  lt_cv_file_magic_cmd=/usr/bin/file
6720  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6721  ;;
6722
6723*nto* | *qnx*)
6724  lt_cv_deplibs_check_method=pass_all
6725  ;;
6726
6727openbsd* | bitrig*)
6728  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6729    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6730  else
6731    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732  fi
6733  ;;
6734
6735osf3* | osf4* | osf5*)
6736  lt_cv_deplibs_check_method=pass_all
6737  ;;
6738
6739rdos*)
6740  lt_cv_deplibs_check_method=pass_all
6741  ;;
6742
6743solaris*)
6744  lt_cv_deplibs_check_method=pass_all
6745  ;;
6746
6747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6748  lt_cv_deplibs_check_method=pass_all
6749  ;;
6750
6751sysv4 | sysv4.3*)
6752  case $host_vendor in
6753  motorola)
6754    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]'
6755    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6756    ;;
6757  ncr)
6758    lt_cv_deplibs_check_method=pass_all
6759    ;;
6760  sequent)
6761    lt_cv_file_magic_cmd='/bin/file'
6762    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6763    ;;
6764  sni)
6765    lt_cv_file_magic_cmd='/bin/file'
6766    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6767    lt_cv_file_magic_test_file=/lib/libc.so
6768    ;;
6769  siemens)
6770    lt_cv_deplibs_check_method=pass_all
6771    ;;
6772  pc)
6773    lt_cv_deplibs_check_method=pass_all
6774    ;;
6775  esac
6776  ;;
6777
6778tpf*)
6779  lt_cv_deplibs_check_method=pass_all
6780  ;;
6781os2*)
6782  lt_cv_deplibs_check_method=pass_all
6783  ;;
6784esac
6785
6786fi
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6788$as_echo "$lt_cv_deplibs_check_method" >&6; }
6789
6790file_magic_glob=
6791want_nocaseglob=no
6792if test "$build" = "$host"; then
6793  case $host_os in
6794  mingw* | pw32*)
6795    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6796      want_nocaseglob=yes
6797    else
6798      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6799    fi
6800    ;;
6801  esac
6802fi
6803
6804file_magic_cmd=$lt_cv_file_magic_cmd
6805deplibs_check_method=$lt_cv_deplibs_check_method
6806test -z "$deplibs_check_method" && deplibs_check_method=unknown
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829if test -n "$ac_tool_prefix"; then
6830  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6831set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if ${ac_cv_prog_DLLTOOL+:} false; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  if test -n "$DLLTOOL"; then
6838  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852  done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857DLLTOOL=$ac_cv_prog_DLLTOOL
6858if test -n "$DLLTOOL"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6860$as_echo "$DLLTOOL" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866
6867fi
6868if test -z "$ac_cv_prog_DLLTOOL"; then
6869  ac_ct_DLLTOOL=$DLLTOOL
6870  # Extract the first word of "dlltool", so it can be a program name with args.
6871set dummy dlltool; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  if test -n "$ac_ct_DLLTOOL"; then
6878  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883  IFS=$as_save_IFS
6884  test -z "$as_dir" && as_dir=.
6885    for ac_exec_ext in '' $ac_executable_extensions; do
6886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889    break 2
6890  fi
6891done
6892  done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6898if test -n "$ac_ct_DLLTOOL"; then
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6900$as_echo "$ac_ct_DLLTOOL" >&6; }
6901else
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906  if test "x$ac_ct_DLLTOOL" = x; then
6907    DLLTOOL="false"
6908  else
6909    case $cross_compiling:$ac_tool_warned in
6910yes:)
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913ac_tool_warned=yes ;;
6914esac
6915    DLLTOOL=$ac_ct_DLLTOOL
6916  fi
6917else
6918  DLLTOOL="$ac_cv_prog_DLLTOOL"
6919fi
6920
6921test -z "$DLLTOOL" && DLLTOOL=dlltool
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6933$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6934if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  lt_cv_sharedlib_from_linklib_cmd='unknown'
6938
6939case $host_os in
6940cygwin* | mingw* | pw32* | cegcc*)
6941  # two different shell functions defined in ltmain.sh;
6942  # decide which one to use based on capabilities of $DLLTOOL
6943  case `$DLLTOOL --help 2>&1` in
6944  *--identify-strict*)
6945    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6946    ;;
6947  *)
6948    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6949    ;;
6950  esac
6951  ;;
6952*)
6953  # fallback: assume linklib IS sharedlib
6954  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6955  ;;
6956esac
6957
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6960$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6961sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6962test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6963
6964
6965
6966
6967
6968
6969
6970
6971if test -n "$ac_tool_prefix"; then
6972  for ac_prog in ar
6973  do
6974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if ${ac_cv_prog_AR+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$AR"; then
6982  ac_cv_prog_AR="$AR" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989    for ac_exec_ext in '' $ac_executable_extensions; do
6990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996  done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001AR=$ac_cv_prog_AR
7002if test -n "$AR"; then
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7004$as_echo "$AR" >&6; }
7005else
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010
7011    test -n "$AR" && break
7012  done
7013fi
7014if test -z "$AR"; then
7015  ac_ct_AR=$AR
7016  for ac_prog in ar
7017do
7018  # Extract the first word of "$ac_prog", so it can be a program name with args.
7019set dummy $ac_prog; ac_word=$2
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021$as_echo_n "checking for $ac_word... " >&6; }
7022if ${ac_cv_prog_ac_ct_AR+:} false; then :
7023  $as_echo_n "(cached) " >&6
7024else
7025  if test -n "$ac_ct_AR"; then
7026  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031  IFS=$as_save_IFS
7032  test -z "$as_dir" && as_dir=.
7033    for ac_exec_ext in '' $ac_executable_extensions; do
7034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035    ac_cv_prog_ac_ct_AR="$ac_prog"
7036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037    break 2
7038  fi
7039done
7040  done
7041IFS=$as_save_IFS
7042
7043fi
7044fi
7045ac_ct_AR=$ac_cv_prog_ac_ct_AR
7046if test -n "$ac_ct_AR"; then
7047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7048$as_echo "$ac_ct_AR" >&6; }
7049else
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051$as_echo "no" >&6; }
7052fi
7053
7054
7055  test -n "$ac_ct_AR" && break
7056done
7057
7058  if test "x$ac_ct_AR" = x; then
7059    AR="false"
7060  else
7061    case $cross_compiling:$ac_tool_warned in
7062yes:)
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065ac_tool_warned=yes ;;
7066esac
7067    AR=$ac_ct_AR
7068  fi
7069fi
7070
7071: ${AR=ar}
7072: ${AR_FLAGS=cru}
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7085$as_echo_n "checking for archiver @FILE support... " >&6; }
7086if ${lt_cv_ar_at_file+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  lt_cv_ar_at_file=no
7090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h.  */
7092
7093int
7094main ()
7095{
7096
7097  ;
7098  return 0;
7099}
7100_ACEOF
7101if ac_fn_c_try_compile "$LINENO"; then :
7102  echo conftest.$ac_objext > conftest.lst
7103      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7104      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7105  (eval $lt_ar_try) 2>&5
7106  ac_status=$?
7107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7108  test $ac_status = 0; }
7109      if test 0 -eq "$ac_status"; then
7110	# Ensure the archiver fails upon bogus file names.
7111	rm -f conftest.$ac_objext libconftest.a
7112	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7113  (eval $lt_ar_try) 2>&5
7114  ac_status=$?
7115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116  test $ac_status = 0; }
7117	if test 0 -ne "$ac_status"; then
7118          lt_cv_ar_at_file=@
7119        fi
7120      fi
7121      rm -f conftest.* libconftest.a
7122
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7128$as_echo "$lt_cv_ar_at_file" >&6; }
7129
7130if test no = "$lt_cv_ar_at_file"; then
7131  archiver_list_spec=
7132else
7133  archiver_list_spec=$lt_cv_ar_at_file
7134fi
7135
7136
7137
7138
7139
7140
7141
7142if test -n "$ac_tool_prefix"; then
7143  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7144set dummy ${ac_tool_prefix}strip; ac_word=$2
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146$as_echo_n "checking for $ac_word... " >&6; }
7147if ${ac_cv_prog_STRIP+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  if test -n "$STRIP"; then
7151  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156  IFS=$as_save_IFS
7157  test -z "$as_dir" && as_dir=.
7158    for ac_exec_ext in '' $ac_executable_extensions; do
7159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162    break 2
7163  fi
7164done
7165  done
7166IFS=$as_save_IFS
7167
7168fi
7169fi
7170STRIP=$ac_cv_prog_STRIP
7171if test -n "$STRIP"; then
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7173$as_echo "$STRIP" >&6; }
7174else
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
7177fi
7178
7179
7180fi
7181if test -z "$ac_cv_prog_STRIP"; then
7182  ac_ct_STRIP=$STRIP
7183  # Extract the first word of "strip", so it can be a program name with args.
7184set dummy strip; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  if test -n "$ac_ct_STRIP"; then
7191  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196  IFS=$as_save_IFS
7197  test -z "$as_dir" && as_dir=.
7198    for ac_exec_ext in '' $ac_executable_extensions; do
7199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200    ac_cv_prog_ac_ct_STRIP="strip"
7201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202    break 2
7203  fi
7204done
7205  done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7211if test -n "$ac_ct_STRIP"; then
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7213$as_echo "$ac_ct_STRIP" >&6; }
7214else
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219  if test "x$ac_ct_STRIP" = x; then
7220    STRIP=":"
7221  else
7222    case $cross_compiling:$ac_tool_warned in
7223yes:)
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226ac_tool_warned=yes ;;
7227esac
7228    STRIP=$ac_ct_STRIP
7229  fi
7230else
7231  STRIP="$ac_cv_prog_STRIP"
7232fi
7233
7234test -z "$STRIP" && STRIP=:
7235
7236
7237
7238
7239
7240
7241if test -n "$ac_tool_prefix"; then
7242  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245$as_echo_n "checking for $ac_word... " >&6; }
7246if ${ac_cv_prog_RANLIB+:} false; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  if test -n "$RANLIB"; then
7250  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257    for ac_exec_ext in '' $ac_executable_extensions; do
7258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264  done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269RANLIB=$ac_cv_prog_RANLIB
7270if test -n "$RANLIB"; then
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7272$as_echo "$RANLIB" >&6; }
7273else
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
7277
7278
7279fi
7280if test -z "$ac_cv_prog_RANLIB"; then
7281  ac_ct_RANLIB=$RANLIB
7282  # Extract the first word of "ranlib", so it can be a program name with args.
7283set dummy ranlib; ac_word=$2
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285$as_echo_n "checking for $ac_word... " >&6; }
7286if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  if test -n "$ac_ct_RANLIB"; then
7290  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295  IFS=$as_save_IFS
7296  test -z "$as_dir" && as_dir=.
7297    for ac_exec_ext in '' $ac_executable_extensions; do
7298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299    ac_cv_prog_ac_ct_RANLIB="ranlib"
7300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301    break 2
7302  fi
7303done
7304  done
7305IFS=$as_save_IFS
7306
7307fi
7308fi
7309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7310if test -n "$ac_ct_RANLIB"; then
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7312$as_echo "$ac_ct_RANLIB" >&6; }
7313else
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318  if test "x$ac_ct_RANLIB" = x; then
7319    RANLIB=":"
7320  else
7321    case $cross_compiling:$ac_tool_warned in
7322yes:)
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325ac_tool_warned=yes ;;
7326esac
7327    RANLIB=$ac_ct_RANLIB
7328  fi
7329else
7330  RANLIB="$ac_cv_prog_RANLIB"
7331fi
7332
7333test -z "$RANLIB" && RANLIB=:
7334
7335
7336
7337
7338
7339
7340# Determine commands to create old-style static archives.
7341old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7342old_postinstall_cmds='chmod 644 $oldlib'
7343old_postuninstall_cmds=
7344
7345if test -n "$RANLIB"; then
7346  case $host_os in
7347  bitrig* | openbsd*)
7348    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7349    ;;
7350  *)
7351    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7352    ;;
7353  esac
7354  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7355fi
7356
7357case $host_os in
7358  darwin*)
7359    lock_old_archive_extraction=yes ;;
7360  *)
7361    lock_old_archive_extraction=no ;;
7362esac
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402# If no C compiler was specified, use CC.
7403LTCC=${LTCC-"$CC"}
7404
7405# If no C compiler flags were specified, use CFLAGS.
7406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7407
7408# Allow CC to be a program name with arguments.
7409compiler=$CC
7410
7411
7412# Check for command to grab the raw symbol name followed by C symbol from nm.
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7414$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7415if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418
7419# These are sane defaults that work on at least a few old systems.
7420# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7421
7422# Character class describing NM global symbol codes.
7423symcode='[BCDEGRST]'
7424
7425# Regexp to match symbols that can be accessed directly from C.
7426sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7427
7428# Define system-specific variables.
7429case $host_os in
7430aix*)
7431  symcode='[BCDT]'
7432  ;;
7433cygwin* | mingw* | pw32* | cegcc*)
7434  symcode='[ABCDGISTW]'
7435  ;;
7436hpux*)
7437  if test ia64 = "$host_cpu"; then
7438    symcode='[ABCDEGRST]'
7439  fi
7440  ;;
7441irix* | nonstopux*)
7442  symcode='[BCDEGRST]'
7443  ;;
7444osf*)
7445  symcode='[BCDEGQRST]'
7446  ;;
7447solaris*)
7448  symcode='[BDRT]'
7449  ;;
7450sco3.2v5*)
7451  symcode='[DT]'
7452  ;;
7453sysv4.2uw2*)
7454  symcode='[DT]'
7455  ;;
7456sysv5* | sco5v6* | unixware* | OpenUNIX*)
7457  symcode='[ABDT]'
7458  ;;
7459sysv4)
7460  symcode='[DFNSTU]'
7461  ;;
7462esac
7463
7464# If we're using GNU nm, then use its standard symbol codes.
7465case `$NM -V 2>&1` in
7466*GNU* | *'with BFD'*)
7467  symcode='[ABCDGIRSTW]' ;;
7468esac
7469
7470if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7471  # Gets list of data symbols to import.
7472  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7473  # Adjust the below global symbol transforms to fixup imported variables.
7474  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7475  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7476  lt_c_name_lib_hook="\
7477  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7478  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7479else
7480  # Disable hooks by default.
7481  lt_cv_sys_global_symbol_to_import=
7482  lt_cdecl_hook=
7483  lt_c_name_hook=
7484  lt_c_name_lib_hook=
7485fi
7486
7487# Transform an extracted symbol line into a proper C declaration.
7488# Some systems (esp. on ia64) link data and code symbols differently,
7489# so use this general approach.
7490lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7491$lt_cdecl_hook\
7492" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7493" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7494
7495# Transform an extracted symbol line into symbol name and symbol address
7496lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7497$lt_c_name_hook\
7498" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7499" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7500
7501# Transform an extracted symbol line into symbol name with lib prefix and
7502# symbol address.
7503lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7504$lt_c_name_lib_hook\
7505" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7506" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7507" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7508
7509# Handle CRLF in mingw tool chain
7510opt_cr=
7511case $build_os in
7512mingw*)
7513  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7514  ;;
7515esac
7516
7517# Try without a prefix underscore, then with it.
7518for ac_symprfx in "" "_"; do
7519
7520  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7521  symxfrm="\\1 $ac_symprfx\\2 \\2"
7522
7523  # Write the raw and C identifiers.
7524  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7525    # Fake it for dumpbin and say T for any non-static function,
7526    # D for any global variable and I for any imported variable.
7527    # Also find C++ and __fastcall symbols from MSVC++,
7528    # which start with @ or ?.
7529    lt_cv_sys_global_symbol_pipe="$AWK '"\
7530"     {last_section=section; section=\$ 3};"\
7531"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7532"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7533"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7534"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7535"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7536"     \$ 0!~/External *\|/{next};"\
7537"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7538"     {if(hide[section]) next};"\
7539"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7540"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7541"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7542"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7543"     ' prfx=^$ac_symprfx"
7544  else
7545    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7546  fi
7547  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7548
7549  # Check to see that the pipe works correctly.
7550  pipe_works=no
7551
7552  rm -f conftest*
7553  cat > conftest.$ac_ext <<_LT_EOF
7554#ifdef __cplusplus
7555extern "C" {
7556#endif
7557char nm_test_var;
7558void nm_test_func(void);
7559void nm_test_func(void){}
7560#ifdef __cplusplus
7561}
7562#endif
7563int main(){nm_test_var='a';nm_test_func();return(0);}
7564_LT_EOF
7565
7566  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7567  (eval $ac_compile) 2>&5
7568  ac_status=$?
7569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570  test $ac_status = 0; }; then
7571    # Now try to grab the symbols.
7572    nlist=conftest.nm
7573    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7574  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7575  ac_status=$?
7576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577  test $ac_status = 0; } && test -s "$nlist"; then
7578      # Try sorting and uniquifying the output.
7579      if sort "$nlist" | uniq > "$nlist"T; then
7580	mv -f "$nlist"T "$nlist"
7581      else
7582	rm -f "$nlist"T
7583      fi
7584
7585      # Make sure that we snagged all the symbols we need.
7586      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7587	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7588	  cat <<_LT_EOF > conftest.$ac_ext
7589/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7590#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7591/* DATA imports from DLLs on WIN32 can't be const, because runtime
7592   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7593# define LT_DLSYM_CONST
7594#elif defined __osf__
7595/* This system does not cope well with relocations in const data.  */
7596# define LT_DLSYM_CONST
7597#else
7598# define LT_DLSYM_CONST const
7599#endif
7600
7601#ifdef __cplusplus
7602extern "C" {
7603#endif
7604
7605_LT_EOF
7606	  # Now generate the symbol file.
7607	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7608
7609	  cat <<_LT_EOF >> conftest.$ac_ext
7610
7611/* The mapping between symbol names and symbols.  */
7612LT_DLSYM_CONST struct {
7613  const char *name;
7614  void       *address;
7615}
7616lt__PROGRAM__LTX_preloaded_symbols[] =
7617{
7618  { "@PROGRAM@", (void *) 0 },
7619_LT_EOF
7620	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7621	  cat <<\_LT_EOF >> conftest.$ac_ext
7622  {0, (void *) 0}
7623};
7624
7625/* This works around a problem in FreeBSD linker */
7626#ifdef FREEBSD_WORKAROUND
7627static const void *lt_preloaded_setup() {
7628  return lt__PROGRAM__LTX_preloaded_symbols;
7629}
7630#endif
7631
7632#ifdef __cplusplus
7633}
7634#endif
7635_LT_EOF
7636	  # Now try linking the two files.
7637	  mv conftest.$ac_objext conftstm.$ac_objext
7638	  lt_globsym_save_LIBS=$LIBS
7639	  lt_globsym_save_CFLAGS=$CFLAGS
7640	  LIBS=conftstm.$ac_objext
7641	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7642	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7643  (eval $ac_link) 2>&5
7644  ac_status=$?
7645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7647	    pipe_works=yes
7648	  fi
7649	  LIBS=$lt_globsym_save_LIBS
7650	  CFLAGS=$lt_globsym_save_CFLAGS
7651	else
7652	  echo "cannot find nm_test_func in $nlist" >&5
7653	fi
7654      else
7655	echo "cannot find nm_test_var in $nlist" >&5
7656      fi
7657    else
7658      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7659    fi
7660  else
7661    echo "$progname: failed program was:" >&5
7662    cat conftest.$ac_ext >&5
7663  fi
7664  rm -rf conftest* conftst*
7665
7666  # Do not use the global_symbol_pipe unless it works.
7667  if test yes = "$pipe_works"; then
7668    break
7669  else
7670    lt_cv_sys_global_symbol_pipe=
7671  fi
7672done
7673
7674fi
7675
7676if test -z "$lt_cv_sys_global_symbol_pipe"; then
7677  lt_cv_sys_global_symbol_to_cdecl=
7678fi
7679if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7681$as_echo "failed" >&6; }
7682else
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7684$as_echo "ok" >&6; }
7685fi
7686
7687# Response file support.
7688if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7689  nm_file_list_spec='@'
7690elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7691  nm_file_list_spec='@'
7692fi
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7731$as_echo_n "checking for sysroot... " >&6; }
7732
7733# Check whether --with-sysroot was given.
7734if test "${with_sysroot+set}" = set; then :
7735  withval=$with_sysroot;
7736else
7737  with_sysroot=no
7738fi
7739
7740
7741lt_sysroot=
7742case $with_sysroot in #(
7743 yes)
7744   if test yes = "$GCC"; then
7745     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7746   fi
7747   ;; #(
7748 /*)
7749   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7750   ;; #(
7751 no|'')
7752   ;; #(
7753 *)
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7755$as_echo "$with_sysroot" >&6; }
7756   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7757   ;;
7758esac
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7761$as_echo "${lt_sysroot:-no}" >&6; }
7762
7763
7764
7765
7766
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7768$as_echo_n "checking for a working dd... " >&6; }
7769if ${ac_cv_path_lt_DD+:} false; then :
7770  $as_echo_n "(cached) " >&6
7771else
7772  printf 0123456789abcdef0123456789abcdef >conftest.i
7773cat conftest.i conftest.i >conftest2.i
7774: ${lt_DD:=$DD}
7775if test -z "$lt_DD"; then
7776  ac_path_lt_DD_found=false
7777  # Loop through the user's path and test for each of PROGNAME-LIST
7778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  test -z "$as_dir" && as_dir=.
7783    for ac_prog in dd; do
7784    for ac_exec_ext in '' $ac_executable_extensions; do
7785      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7786      as_fn_executable_p "$ac_path_lt_DD" || continue
7787if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7788  cmp -s conftest.i conftest.out \
7789  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7790fi
7791      $ac_path_lt_DD_found && break 3
7792    done
7793  done
7794  done
7795IFS=$as_save_IFS
7796  if test -z "$ac_cv_path_lt_DD"; then
7797    :
7798  fi
7799else
7800  ac_cv_path_lt_DD=$lt_DD
7801fi
7802
7803rm -f conftest.i conftest2.i conftest.out
7804fi
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7806$as_echo "$ac_cv_path_lt_DD" >&6; }
7807
7808
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7810$as_echo_n "checking how to truncate binary pipes... " >&6; }
7811if ${lt_cv_truncate_bin+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  printf 0123456789abcdef0123456789abcdef >conftest.i
7815cat conftest.i conftest.i >conftest2.i
7816lt_cv_truncate_bin=
7817if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7818  cmp -s conftest.i conftest.out \
7819  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7820fi
7821rm -f conftest.i conftest2.i conftest.out
7822test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7825$as_echo "$lt_cv_truncate_bin" >&6; }
7826
7827
7828
7829
7830
7831
7832
7833# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7834func_cc_basename ()
7835{
7836    for cc_temp in $*""; do
7837      case $cc_temp in
7838        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7839        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7840        \-*) ;;
7841        *) break;;
7842      esac
7843    done
7844    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7845}
7846
7847# Check whether --enable-libtool-lock was given.
7848if test "${enable_libtool_lock+set}" = set; then :
7849  enableval=$enable_libtool_lock;
7850fi
7851
7852test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7853
7854# Some flags need to be propagated to the compiler or linker for good
7855# libtool support.
7856case $host in
7857ia64-*-hpux*)
7858  # Find out what ABI is being produced by ac_compile, and set mode
7859  # options accordingly.
7860  echo 'int i;' > conftest.$ac_ext
7861  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862  (eval $ac_compile) 2>&5
7863  ac_status=$?
7864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865  test $ac_status = 0; }; then
7866    case `/usr/bin/file conftest.$ac_objext` in
7867      *ELF-32*)
7868	HPUX_IA64_MODE=32
7869	;;
7870      *ELF-64*)
7871	HPUX_IA64_MODE=64
7872	;;
7873    esac
7874  fi
7875  rm -rf conftest*
7876  ;;
7877*-*-irix6*)
7878  # Find out what ABI is being produced by ac_compile, and set linker
7879  # options accordingly.
7880  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7881  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7882  (eval $ac_compile) 2>&5
7883  ac_status=$?
7884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885  test $ac_status = 0; }; then
7886    if test yes = "$lt_cv_prog_gnu_ld"; then
7887      case `/usr/bin/file conftest.$ac_objext` in
7888	*32-bit*)
7889	  LD="${LD-ld} -melf32bsmip"
7890	  ;;
7891	*N32*)
7892	  LD="${LD-ld} -melf32bmipn32"
7893	  ;;
7894	*64-bit*)
7895	  LD="${LD-ld} -melf64bmip"
7896	;;
7897      esac
7898    else
7899      case `/usr/bin/file conftest.$ac_objext` in
7900	*32-bit*)
7901	  LD="${LD-ld} -32"
7902	  ;;
7903	*N32*)
7904	  LD="${LD-ld} -n32"
7905	  ;;
7906	*64-bit*)
7907	  LD="${LD-ld} -64"
7908	  ;;
7909      esac
7910    fi
7911  fi
7912  rm -rf conftest*
7913  ;;
7914
7915mips64*-*linux*)
7916  # Find out what ABI is being produced by ac_compile, and set linker
7917  # options accordingly.
7918  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7920  (eval $ac_compile) 2>&5
7921  ac_status=$?
7922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923  test $ac_status = 0; }; then
7924    emul=elf
7925    case `/usr/bin/file conftest.$ac_objext` in
7926      *32-bit*)
7927	emul="${emul}32"
7928	;;
7929      *64-bit*)
7930	emul="${emul}64"
7931	;;
7932    esac
7933    case `/usr/bin/file conftest.$ac_objext` in
7934      *MSB*)
7935	emul="${emul}btsmip"
7936	;;
7937      *LSB*)
7938	emul="${emul}ltsmip"
7939	;;
7940    esac
7941    case `/usr/bin/file conftest.$ac_objext` in
7942      *N32*)
7943	emul="${emul}n32"
7944	;;
7945    esac
7946    LD="${LD-ld} -m $emul"
7947  fi
7948  rm -rf conftest*
7949  ;;
7950
7951x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7952s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7953  # Find out what ABI is being produced by ac_compile, and set linker
7954  # options accordingly.  Note that the listed cases only cover the
7955  # situations where additional linker options are needed (such as when
7956  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7957  # vice versa); the common cases where no linker options are needed do
7958  # not appear in the list.
7959  echo 'int i;' > conftest.$ac_ext
7960  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7961  (eval $ac_compile) 2>&5
7962  ac_status=$?
7963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964  test $ac_status = 0; }; then
7965    case `/usr/bin/file conftest.o` in
7966      *32-bit*)
7967	case $host in
7968	  x86_64-*kfreebsd*-gnu)
7969	    LD="${LD-ld} -m elf_i386_fbsd"
7970	    ;;
7971	  x86_64-*linux*)
7972	    case `/usr/bin/file conftest.o` in
7973	      *x86-64*)
7974		LD="${LD-ld} -m elf32_x86_64"
7975		;;
7976	      *)
7977		LD="${LD-ld} -m elf_i386"
7978		;;
7979	    esac
7980	    ;;
7981	  powerpc64le-*linux*)
7982	    LD="${LD-ld} -m elf32lppclinux"
7983	    ;;
7984	  powerpc64-*linux*)
7985	    LD="${LD-ld} -m elf32ppclinux"
7986	    ;;
7987	  s390x-*linux*)
7988	    LD="${LD-ld} -m elf_s390"
7989	    ;;
7990	  sparc64-*linux*)
7991	    LD="${LD-ld} -m elf32_sparc"
7992	    ;;
7993	esac
7994	;;
7995      *64-bit*)
7996	case $host in
7997	  x86_64-*kfreebsd*-gnu)
7998	    LD="${LD-ld} -m elf_x86_64_fbsd"
7999	    ;;
8000	  x86_64-*linux*)
8001	    LD="${LD-ld} -m elf_x86_64"
8002	    ;;
8003	  powerpcle-*linux*|powerpc64le-*linux*)
8004	    LD="${LD-ld} -m elf64lppc"
8005	    ;;
8006	  powerpc-*linux*|powerpc64-*linux*)
8007	    LD="${LD-ld} -m elf64ppc"
8008	    ;;
8009	  s390*-*linux*|s390*-*tpf*)
8010	    LD="${LD-ld} -m elf64_s390"
8011	    ;;
8012	  sparc*-*linux*)
8013	    LD="${LD-ld} -m elf64_sparc"
8014	    ;;
8015	esac
8016	;;
8017    esac
8018  fi
8019  rm -rf conftest*
8020  ;;
8021
8022*-*-sco3.2v5*)
8023  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8024  SAVE_CFLAGS=$CFLAGS
8025  CFLAGS="$CFLAGS -belf"
8026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8027$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8028if ${lt_cv_cc_needs_belf+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  ac_ext=c
8032ac_cpp='$CPP $CPPFLAGS'
8033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038/* end confdefs.h.  */
8039
8040int
8041main ()
8042{
8043
8044  ;
8045  return 0;
8046}
8047_ACEOF
8048if ac_fn_c_try_link "$LINENO"; then :
8049  lt_cv_cc_needs_belf=yes
8050else
8051  lt_cv_cc_needs_belf=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext \
8054    conftest$ac_exeext conftest.$ac_ext
8055     ac_ext=c
8056ac_cpp='$CPP $CPPFLAGS'
8057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061fi
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8063$as_echo "$lt_cv_cc_needs_belf" >&6; }
8064  if test yes != "$lt_cv_cc_needs_belf"; then
8065    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8066    CFLAGS=$SAVE_CFLAGS
8067  fi
8068  ;;
8069*-*solaris*)
8070  # Find out what ABI is being produced by ac_compile, and set linker
8071  # options accordingly.
8072  echo 'int i;' > conftest.$ac_ext
8073  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8074  (eval $ac_compile) 2>&5
8075  ac_status=$?
8076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077  test $ac_status = 0; }; then
8078    case `/usr/bin/file conftest.o` in
8079    *64-bit*)
8080      case $lt_cv_prog_gnu_ld in
8081      yes*)
8082        case $host in
8083        i?86-*-solaris*|x86_64-*-solaris*)
8084          LD="${LD-ld} -m elf_x86_64"
8085          ;;
8086        sparc*-*-solaris*)
8087          LD="${LD-ld} -m elf64_sparc"
8088          ;;
8089        esac
8090        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8091        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8092          LD=${LD-ld}_sol2
8093        fi
8094        ;;
8095      *)
8096	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8097	  LD="${LD-ld} -64"
8098	fi
8099	;;
8100      esac
8101      ;;
8102    esac
8103  fi
8104  rm -rf conftest*
8105  ;;
8106esac
8107
8108need_locks=$enable_libtool_lock
8109
8110if test -n "$ac_tool_prefix"; then
8111  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8112set dummy ${ac_tool_prefix}mt; ac_word=$2
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  if test -n "$MANIFEST_TOOL"; then
8119  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124  IFS=$as_save_IFS
8125  test -z "$as_dir" && as_dir=.
8126    for ac_exec_ext in '' $ac_executable_extensions; do
8127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133  done
8134IFS=$as_save_IFS
8135
8136fi
8137fi
8138MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8139if test -n "$MANIFEST_TOOL"; then
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8141$as_echo "$MANIFEST_TOOL" >&6; }
8142else
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146
8147
8148fi
8149if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8150  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8151  # Extract the first word of "mt", so it can be a program name with args.
8152set dummy mt; ac_word=$2
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  if test -n "$ac_ct_MANIFEST_TOOL"; then
8159  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166    for ac_exec_ext in '' $ac_executable_extensions; do
8167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170    break 2
8171  fi
8172done
8173  done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8179if test -n "$ac_ct_MANIFEST_TOOL"; then
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8181$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8182else
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8188    MANIFEST_TOOL=":"
8189  else
8190    case $cross_compiling:$ac_tool_warned in
8191yes:)
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194ac_tool_warned=yes ;;
8195esac
8196    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8197  fi
8198else
8199  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8200fi
8201
8202test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8204$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8205if ${lt_cv_path_mainfest_tool+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  lt_cv_path_mainfest_tool=no
8209  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8210  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8211  cat conftest.err >&5
8212  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8213    lt_cv_path_mainfest_tool=yes
8214  fi
8215  rm -f conftest*
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8218$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8219if test yes != "$lt_cv_path_mainfest_tool"; then
8220  MANIFEST_TOOL=:
8221fi
8222
8223
8224
8225
8226
8227
8228  case $host_os in
8229    rhapsody* | darwin*)
8230    if test -n "$ac_tool_prefix"; then
8231  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8232set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234$as_echo_n "checking for $ac_word... " >&6; }
8235if ${ac_cv_prog_DSYMUTIL+:} false; then :
8236  $as_echo_n "(cached) " >&6
8237else
8238  if test -n "$DSYMUTIL"; then
8239  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8240else
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244  IFS=$as_save_IFS
8245  test -z "$as_dir" && as_dir=.
8246    for ac_exec_ext in '' $ac_executable_extensions; do
8247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250    break 2
8251  fi
8252done
8253  done
8254IFS=$as_save_IFS
8255
8256fi
8257fi
8258DSYMUTIL=$ac_cv_prog_DSYMUTIL
8259if test -n "$DSYMUTIL"; then
8260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8261$as_echo "$DSYMUTIL" >&6; }
8262else
8263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
8265fi
8266
8267
8268fi
8269if test -z "$ac_cv_prog_DSYMUTIL"; then
8270  ac_ct_DSYMUTIL=$DSYMUTIL
8271  # Extract the first word of "dsymutil", so it can be a program name with args.
8272set dummy dsymutil; ac_word=$2
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  if test -n "$ac_ct_DSYMUTIL"; then
8279  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284  IFS=$as_save_IFS
8285  test -z "$as_dir" && as_dir=.
8286    for ac_exec_ext in '' $ac_executable_extensions; do
8287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290    break 2
8291  fi
8292done
8293  done
8294IFS=$as_save_IFS
8295
8296fi
8297fi
8298ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8299if test -n "$ac_ct_DSYMUTIL"; then
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8301$as_echo "$ac_ct_DSYMUTIL" >&6; }
8302else
8303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
8305fi
8306
8307  if test "x$ac_ct_DSYMUTIL" = x; then
8308    DSYMUTIL=":"
8309  else
8310    case $cross_compiling:$ac_tool_warned in
8311yes:)
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314ac_tool_warned=yes ;;
8315esac
8316    DSYMUTIL=$ac_ct_DSYMUTIL
8317  fi
8318else
8319  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8320fi
8321
8322    if test -n "$ac_tool_prefix"; then
8323  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8324set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326$as_echo_n "checking for $ac_word... " >&6; }
8327if ${ac_cv_prog_NMEDIT+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  if test -n "$NMEDIT"; then
8331  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8332else
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336  IFS=$as_save_IFS
8337  test -z "$as_dir" && as_dir=.
8338    for ac_exec_ext in '' $ac_executable_extensions; do
8339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8340    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342    break 2
8343  fi
8344done
8345  done
8346IFS=$as_save_IFS
8347
8348fi
8349fi
8350NMEDIT=$ac_cv_prog_NMEDIT
8351if test -n "$NMEDIT"; then
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8353$as_echo "$NMEDIT" >&6; }
8354else
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
8357fi
8358
8359
8360fi
8361if test -z "$ac_cv_prog_NMEDIT"; then
8362  ac_ct_NMEDIT=$NMEDIT
8363  # Extract the first word of "nmedit", so it can be a program name with args.
8364set dummy nmedit; ac_word=$2
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  if test -n "$ac_ct_NMEDIT"; then
8371  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376  IFS=$as_save_IFS
8377  test -z "$as_dir" && as_dir=.
8378    for ac_exec_ext in '' $ac_executable_extensions; do
8379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382    break 2
8383  fi
8384done
8385  done
8386IFS=$as_save_IFS
8387
8388fi
8389fi
8390ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8391if test -n "$ac_ct_NMEDIT"; then
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8393$as_echo "$ac_ct_NMEDIT" >&6; }
8394else
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399  if test "x$ac_ct_NMEDIT" = x; then
8400    NMEDIT=":"
8401  else
8402    case $cross_compiling:$ac_tool_warned in
8403yes:)
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406ac_tool_warned=yes ;;
8407esac
8408    NMEDIT=$ac_ct_NMEDIT
8409  fi
8410else
8411  NMEDIT="$ac_cv_prog_NMEDIT"
8412fi
8413
8414    if test -n "$ac_tool_prefix"; then
8415  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8416set dummy ${ac_tool_prefix}lipo; ac_word=$2
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if ${ac_cv_prog_LIPO+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  if test -n "$LIPO"; then
8423  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8424else
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428  IFS=$as_save_IFS
8429  test -z "$as_dir" && as_dir=.
8430    for ac_exec_ext in '' $ac_executable_extensions; do
8431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434    break 2
8435  fi
8436done
8437  done
8438IFS=$as_save_IFS
8439
8440fi
8441fi
8442LIPO=$ac_cv_prog_LIPO
8443if test -n "$LIPO"; then
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8445$as_echo "$LIPO" >&6; }
8446else
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
8449fi
8450
8451
8452fi
8453if test -z "$ac_cv_prog_LIPO"; then
8454  ac_ct_LIPO=$LIPO
8455  # Extract the first word of "lipo", so it can be a program name with args.
8456set dummy lipo; ac_word=$2
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8460  $as_echo_n "(cached) " >&6
8461else
8462  if test -n "$ac_ct_LIPO"; then
8463  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468  IFS=$as_save_IFS
8469  test -z "$as_dir" && as_dir=.
8470    for ac_exec_ext in '' $ac_executable_extensions; do
8471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472    ac_cv_prog_ac_ct_LIPO="lipo"
8473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474    break 2
8475  fi
8476done
8477  done
8478IFS=$as_save_IFS
8479
8480fi
8481fi
8482ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8483if test -n "$ac_ct_LIPO"; then
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8485$as_echo "$ac_ct_LIPO" >&6; }
8486else
8487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491  if test "x$ac_ct_LIPO" = x; then
8492    LIPO=":"
8493  else
8494    case $cross_compiling:$ac_tool_warned in
8495yes:)
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8498ac_tool_warned=yes ;;
8499esac
8500    LIPO=$ac_ct_LIPO
8501  fi
8502else
8503  LIPO="$ac_cv_prog_LIPO"
8504fi
8505
8506    if test -n "$ac_tool_prefix"; then
8507  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8508set dummy ${ac_tool_prefix}otool; ac_word=$2
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if ${ac_cv_prog_OTOOL+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  if test -n "$OTOOL"; then
8515  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520  IFS=$as_save_IFS
8521  test -z "$as_dir" && as_dir=.
8522    for ac_exec_ext in '' $ac_executable_extensions; do
8523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526    break 2
8527  fi
8528done
8529  done
8530IFS=$as_save_IFS
8531
8532fi
8533fi
8534OTOOL=$ac_cv_prog_OTOOL
8535if test -n "$OTOOL"; then
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8537$as_echo "$OTOOL" >&6; }
8538else
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
8542
8543
8544fi
8545if test -z "$ac_cv_prog_OTOOL"; then
8546  ac_ct_OTOOL=$OTOOL
8547  # Extract the first word of "otool", so it can be a program name with args.
8548set dummy otool; ac_word=$2
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
8551if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  if test -n "$ac_ct_OTOOL"; then
8555  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560  IFS=$as_save_IFS
8561  test -z "$as_dir" && as_dir=.
8562    for ac_exec_ext in '' $ac_executable_extensions; do
8563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564    ac_cv_prog_ac_ct_OTOOL="otool"
8565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566    break 2
8567  fi
8568done
8569  done
8570IFS=$as_save_IFS
8571
8572fi
8573fi
8574ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8575if test -n "$ac_ct_OTOOL"; then
8576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8577$as_echo "$ac_ct_OTOOL" >&6; }
8578else
8579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580$as_echo "no" >&6; }
8581fi
8582
8583  if test "x$ac_ct_OTOOL" = x; then
8584    OTOOL=":"
8585  else
8586    case $cross_compiling:$ac_tool_warned in
8587yes:)
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8590ac_tool_warned=yes ;;
8591esac
8592    OTOOL=$ac_ct_OTOOL
8593  fi
8594else
8595  OTOOL="$ac_cv_prog_OTOOL"
8596fi
8597
8598    if test -n "$ac_tool_prefix"; then
8599  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8600set dummy ${ac_tool_prefix}otool64; ac_word=$2
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
8603if ${ac_cv_prog_OTOOL64+:} false; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  if test -n "$OTOOL64"; then
8607  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612  IFS=$as_save_IFS
8613  test -z "$as_dir" && as_dir=.
8614    for ac_exec_ext in '' $ac_executable_extensions; do
8615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618    break 2
8619  fi
8620done
8621  done
8622IFS=$as_save_IFS
8623
8624fi
8625fi
8626OTOOL64=$ac_cv_prog_OTOOL64
8627if test -n "$OTOOL64"; then
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8629$as_echo "$OTOOL64" >&6; }
8630else
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
8634
8635
8636fi
8637if test -z "$ac_cv_prog_OTOOL64"; then
8638  ac_ct_OTOOL64=$OTOOL64
8639  # Extract the first word of "otool64", so it can be a program name with args.
8640set dummy otool64; ac_word=$2
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642$as_echo_n "checking for $ac_word... " >&6; }
8643if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  if test -n "$ac_ct_OTOOL64"; then
8647  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8648else
8649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650for as_dir in $PATH
8651do
8652  IFS=$as_save_IFS
8653  test -z "$as_dir" && as_dir=.
8654    for ac_exec_ext in '' $ac_executable_extensions; do
8655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656    ac_cv_prog_ac_ct_OTOOL64="otool64"
8657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658    break 2
8659  fi
8660done
8661  done
8662IFS=$as_save_IFS
8663
8664fi
8665fi
8666ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8667if test -n "$ac_ct_OTOOL64"; then
8668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8669$as_echo "$ac_ct_OTOOL64" >&6; }
8670else
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672$as_echo "no" >&6; }
8673fi
8674
8675  if test "x$ac_ct_OTOOL64" = x; then
8676    OTOOL64=":"
8677  else
8678    case $cross_compiling:$ac_tool_warned in
8679yes:)
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682ac_tool_warned=yes ;;
8683esac
8684    OTOOL64=$ac_ct_OTOOL64
8685  fi
8686else
8687  OTOOL64="$ac_cv_prog_OTOOL64"
8688fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8717$as_echo_n "checking for -single_module linker flag... " >&6; }
8718if ${lt_cv_apple_cc_single_mod+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  lt_cv_apple_cc_single_mod=no
8722      if test -z "$LT_MULTI_MODULE"; then
8723	# By default we will add the -single_module flag. You can override
8724	# by either setting the environment variable LT_MULTI_MODULE
8725	# non-empty at configure time, or by adding -multi_module to the
8726	# link flags.
8727	rm -rf libconftest.dylib*
8728	echo "int foo(void){return 1;}" > conftest.c
8729	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8730-dynamiclib -Wl,-single_module conftest.c" >&5
8731	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8732	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8733        _lt_result=$?
8734	# If there is a non-empty error log, and "single_module"
8735	# appears in it, assume the flag caused a linker warning
8736        if test -s conftest.err && $GREP single_module conftest.err; then
8737	  cat conftest.err >&5
8738	# Otherwise, if the output was created with a 0 exit code from
8739	# the compiler, it worked.
8740	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8741	  lt_cv_apple_cc_single_mod=yes
8742	else
8743	  cat conftest.err >&5
8744	fi
8745	rm -rf libconftest.dylib*
8746	rm -f conftest.*
8747      fi
8748fi
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8750$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8751
8752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8753$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8754if ${lt_cv_ld_exported_symbols_list+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  lt_cv_ld_exported_symbols_list=no
8758      save_LDFLAGS=$LDFLAGS
8759      echo "_main" > conftest.sym
8760      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8761      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h.  */
8763
8764int
8765main ()
8766{
8767
8768  ;
8769  return 0;
8770}
8771_ACEOF
8772if ac_fn_c_try_link "$LINENO"; then :
8773  lt_cv_ld_exported_symbols_list=yes
8774else
8775  lt_cv_ld_exported_symbols_list=no
8776fi
8777rm -f core conftest.err conftest.$ac_objext \
8778    conftest$ac_exeext conftest.$ac_ext
8779	LDFLAGS=$save_LDFLAGS
8780
8781fi
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8783$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8784
8785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8786$as_echo_n "checking for -force_load linker flag... " >&6; }
8787if ${lt_cv_ld_force_load+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  lt_cv_ld_force_load=no
8791      cat > conftest.c << _LT_EOF
8792int forced_loaded() { return 2;}
8793_LT_EOF
8794      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8795      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8796      echo "$AR cru libconftest.a conftest.o" >&5
8797      $AR cru libconftest.a conftest.o 2>&5
8798      echo "$RANLIB libconftest.a" >&5
8799      $RANLIB libconftest.a 2>&5
8800      cat > conftest.c << _LT_EOF
8801int main() { return 0;}
8802_LT_EOF
8803      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8804      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8805      _lt_result=$?
8806      if test -s conftest.err && $GREP force_load conftest.err; then
8807	cat conftest.err >&5
8808      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8809	lt_cv_ld_force_load=yes
8810      else
8811	cat conftest.err >&5
8812      fi
8813        rm -f conftest.err libconftest.a conftest conftest.c
8814        rm -rf conftest.dSYM
8815
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8818$as_echo "$lt_cv_ld_force_load" >&6; }
8819    case $host_os in
8820    rhapsody* | darwin1.[012])
8821      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8822    darwin1.*)
8823      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8824    darwin*) # darwin 5.x on
8825      # if running on 10.5 or later, the deployment target defaults
8826      # to the OS version, if on x86, and 10.4, the deployment
8827      # target defaults to 10.4. Don't you love it?
8828      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8829	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8830	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8831	10.[012][,.]*)
8832	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8833	10.*)
8834	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8835      esac
8836    ;;
8837  esac
8838    if test yes = "$lt_cv_apple_cc_single_mod"; then
8839      _lt_dar_single_mod='$single_module'
8840    fi
8841    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8842      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8843    else
8844      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8845    fi
8846    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8847      _lt_dsymutil='~$DSYMUTIL $lib || :'
8848    else
8849      _lt_dsymutil=
8850    fi
8851    ;;
8852  esac
8853
8854# func_munge_path_list VARIABLE PATH
8855# -----------------------------------
8856# VARIABLE is name of variable containing _space_ separated list of
8857# directories to be munged by the contents of PATH, which is string
8858# having a format:
8859# "DIR[:DIR]:"
8860#       string "DIR[ DIR]" will be prepended to VARIABLE
8861# ":DIR[:DIR]"
8862#       string "DIR[ DIR]" will be appended to VARIABLE
8863# "DIRP[:DIRP]::[DIRA:]DIRA"
8864#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8865#       "DIRA[ DIRA]" will be appended to VARIABLE
8866# "DIR[:DIR]"
8867#       VARIABLE will be replaced by "DIR[ DIR]"
8868func_munge_path_list ()
8869{
8870    case x$2 in
8871    x)
8872        ;;
8873    *:)
8874        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8875        ;;
8876    x:*)
8877        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8878        ;;
8879    *::*)
8880        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8881        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8882        ;;
8883    *)
8884        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8885        ;;
8886    esac
8887}
8888
8889ac_ext=c
8890ac_cpp='$CPP $CPPFLAGS'
8891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8895$as_echo_n "checking how to run the C preprocessor... " >&6; }
8896# On Suns, sometimes $CPP names a directory.
8897if test -n "$CPP" && test -d "$CPP"; then
8898  CPP=
8899fi
8900if test -z "$CPP"; then
8901  if ${ac_cv_prog_CPP+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904      # Double quotes because CPP needs to be expanded
8905    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8906    do
8907      ac_preproc_ok=false
8908for ac_c_preproc_warn_flag in '' yes
8909do
8910  # Use a header file that comes with gcc, so configuring glibc
8911  # with a fresh cross-compiler works.
8912  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8913  # <limits.h> exists even on freestanding compilers.
8914  # On the NeXT, cc -E runs the code through the compiler's parser,
8915  # not just through cpp. "Syntax error" is here to catch this case.
8916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h.  */
8918#ifdef __STDC__
8919# include <limits.h>
8920#else
8921# include <assert.h>
8922#endif
8923		     Syntax error
8924_ACEOF
8925if ac_fn_c_try_cpp "$LINENO"; then :
8926
8927else
8928  # Broken: fails on valid input.
8929continue
8930fi
8931rm -f conftest.err conftest.i conftest.$ac_ext
8932
8933  # OK, works on sane cases.  Now check whether nonexistent headers
8934  # can be detected and how.
8935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h.  */
8937#include <ac_nonexistent.h>
8938_ACEOF
8939if ac_fn_c_try_cpp "$LINENO"; then :
8940  # Broken: success on invalid input.
8941continue
8942else
8943  # Passes both tests.
8944ac_preproc_ok=:
8945break
8946fi
8947rm -f conftest.err conftest.i conftest.$ac_ext
8948
8949done
8950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8951rm -f conftest.i conftest.err conftest.$ac_ext
8952if $ac_preproc_ok; then :
8953  break
8954fi
8955
8956    done
8957    ac_cv_prog_CPP=$CPP
8958
8959fi
8960  CPP=$ac_cv_prog_CPP
8961else
8962  ac_cv_prog_CPP=$CPP
8963fi
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8965$as_echo "$CPP" >&6; }
8966ac_preproc_ok=false
8967for ac_c_preproc_warn_flag in '' yes
8968do
8969  # Use a header file that comes with gcc, so configuring glibc
8970  # with a fresh cross-compiler works.
8971  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8972  # <limits.h> exists even on freestanding compilers.
8973  # On the NeXT, cc -E runs the code through the compiler's parser,
8974  # not just through cpp. "Syntax error" is here to catch this case.
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977#ifdef __STDC__
8978# include <limits.h>
8979#else
8980# include <assert.h>
8981#endif
8982		     Syntax error
8983_ACEOF
8984if ac_fn_c_try_cpp "$LINENO"; then :
8985
8986else
8987  # Broken: fails on valid input.
8988continue
8989fi
8990rm -f conftest.err conftest.i conftest.$ac_ext
8991
8992  # OK, works on sane cases.  Now check whether nonexistent headers
8993  # can be detected and how.
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996#include <ac_nonexistent.h>
8997_ACEOF
8998if ac_fn_c_try_cpp "$LINENO"; then :
8999  # Broken: success on invalid input.
9000continue
9001else
9002  # Passes both tests.
9003ac_preproc_ok=:
9004break
9005fi
9006rm -f conftest.err conftest.i conftest.$ac_ext
9007
9008done
9009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9010rm -f conftest.i conftest.err conftest.$ac_ext
9011if $ac_preproc_ok; then :
9012
9013else
9014  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9016as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9017See \`config.log' for more details" "$LINENO" 5; }
9018fi
9019
9020ac_ext=c
9021ac_cpp='$CPP $CPPFLAGS'
9022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9024ac_compiler_gnu=$ac_cv_c_compiler_gnu
9025
9026
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9028$as_echo_n "checking for ANSI C header files... " >&6; }
9029if ${ac_cv_header_stdc+:} false; then :
9030  $as_echo_n "(cached) " >&6
9031else
9032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034#include <stdlib.h>
9035#include <stdarg.h>
9036#include <string.h>
9037#include <float.h>
9038
9039int
9040main ()
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_compile "$LINENO"; then :
9048  ac_cv_header_stdc=yes
9049else
9050  ac_cv_header_stdc=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053
9054if test $ac_cv_header_stdc = yes; then
9055  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057/* end confdefs.h.  */
9058#include <string.h>
9059
9060_ACEOF
9061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9062  $EGREP "memchr" >/dev/null 2>&1; then :
9063
9064else
9065  ac_cv_header_stdc=no
9066fi
9067rm -f conftest*
9068
9069fi
9070
9071if test $ac_cv_header_stdc = yes; then
9072  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075#include <stdlib.h>
9076
9077_ACEOF
9078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9079  $EGREP "free" >/dev/null 2>&1; then :
9080
9081else
9082  ac_cv_header_stdc=no
9083fi
9084rm -f conftest*
9085
9086fi
9087
9088if test $ac_cv_header_stdc = yes; then
9089  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9090  if test "$cross_compiling" = yes; then :
9091  :
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095#include <ctype.h>
9096#include <stdlib.h>
9097#if ((' ' & 0x0FF) == 0x020)
9098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9100#else
9101# define ISLOWER(c) \
9102		   (('a' <= (c) && (c) <= 'i') \
9103		     || ('j' <= (c) && (c) <= 'r') \
9104		     || ('s' <= (c) && (c) <= 'z'))
9105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9106#endif
9107
9108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9109int
9110main ()
9111{
9112  int i;
9113  for (i = 0; i < 256; i++)
9114    if (XOR (islower (i), ISLOWER (i))
9115	|| toupper (i) != TOUPPER (i))
9116      return 2;
9117  return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_run "$LINENO"; then :
9121
9122else
9123  ac_cv_header_stdc=no
9124fi
9125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9126  conftest.$ac_objext conftest.beam conftest.$ac_ext
9127fi
9128
9129fi
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9132$as_echo "$ac_cv_header_stdc" >&6; }
9133if test $ac_cv_header_stdc = yes; then
9134
9135$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9136
9137fi
9138
9139# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9140for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9141		  inttypes.h stdint.h unistd.h
9142do :
9143  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9144ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9145"
9146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9147  cat >>confdefs.h <<_ACEOF
9148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9149_ACEOF
9150
9151fi
9152
9153done
9154
9155
9156for ac_header in dlfcn.h
9157do :
9158  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9159"
9160if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9161  cat >>confdefs.h <<_ACEOF
9162#define HAVE_DLFCN_H 1
9163_ACEOF
9164
9165fi
9166
9167done
9168
9169
9170
9171
9172func_stripname_cnf ()
9173{
9174  case $2 in
9175  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9176  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9177  esac
9178} # func_stripname_cnf
9179
9180
9181
9182
9183
9184# Set options
9185
9186
9187
9188        enable_dlopen=no
9189
9190
9191  enable_win32_dll=no
9192
9193
9194            # Check whether --enable-shared was given.
9195if test "${enable_shared+set}" = set; then :
9196  enableval=$enable_shared; p=${PACKAGE-default}
9197    case $enableval in
9198    yes) enable_shared=yes ;;
9199    no) enable_shared=no ;;
9200    *)
9201      enable_shared=no
9202      # Look at the argument we got.  We use all the common list separators.
9203      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9204      for pkg in $enableval; do
9205	IFS=$lt_save_ifs
9206	if test "X$pkg" = "X$p"; then
9207	  enable_shared=yes
9208	fi
9209      done
9210      IFS=$lt_save_ifs
9211      ;;
9212    esac
9213else
9214  enable_shared=yes
9215fi
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225  # Check whether --enable-static was given.
9226if test "${enable_static+set}" = set; then :
9227  enableval=$enable_static; p=${PACKAGE-default}
9228    case $enableval in
9229    yes) enable_static=yes ;;
9230    no) enable_static=no ;;
9231    *)
9232     enable_static=no
9233      # Look at the argument we got.  We use all the common list separators.
9234      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9235      for pkg in $enableval; do
9236	IFS=$lt_save_ifs
9237	if test "X$pkg" = "X$p"; then
9238	  enable_static=yes
9239	fi
9240      done
9241      IFS=$lt_save_ifs
9242      ;;
9243    esac
9244else
9245  enable_static=yes
9246fi
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257# Check whether --with-pic was given.
9258if test "${with_pic+set}" = set; then :
9259  withval=$with_pic; lt_p=${PACKAGE-default}
9260    case $withval in
9261    yes|no) pic_mode=$withval ;;
9262    *)
9263      pic_mode=default
9264      # Look at the argument we got.  We use all the common list separators.
9265      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9266      for lt_pkg in $withval; do
9267	IFS=$lt_save_ifs
9268	if test "X$lt_pkg" = "X$lt_p"; then
9269	  pic_mode=yes
9270	fi
9271      done
9272      IFS=$lt_save_ifs
9273      ;;
9274    esac
9275else
9276  pic_mode=default
9277fi
9278
9279
9280
9281
9282
9283
9284
9285
9286  # Check whether --enable-fast-install was given.
9287if test "${enable_fast_install+set}" = set; then :
9288  enableval=$enable_fast_install; p=${PACKAGE-default}
9289    case $enableval in
9290    yes) enable_fast_install=yes ;;
9291    no) enable_fast_install=no ;;
9292    *)
9293      enable_fast_install=no
9294      # Look at the argument we got.  We use all the common list separators.
9295      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9296      for pkg in $enableval; do
9297	IFS=$lt_save_ifs
9298	if test "X$pkg" = "X$p"; then
9299	  enable_fast_install=yes
9300	fi
9301      done
9302      IFS=$lt_save_ifs
9303      ;;
9304    esac
9305else
9306  enable_fast_install=yes
9307fi
9308
9309
9310
9311
9312
9313
9314
9315
9316  shared_archive_member_spec=
9317case $host,$enable_shared in
9318power*-*-aix[5-9]*,yes)
9319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9320$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9321
9322# Check whether --with-aix-soname was given.
9323if test "${with_aix_soname+set}" = set; then :
9324  withval=$with_aix_soname; case $withval in
9325    aix|svr4|both)
9326      ;;
9327    *)
9328      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9329      ;;
9330    esac
9331    lt_cv_with_aix_soname=$with_aix_soname
9332else
9333  if ${lt_cv_with_aix_soname+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  lt_cv_with_aix_soname=aix
9337fi
9338
9339    with_aix_soname=$lt_cv_with_aix_soname
9340fi
9341
9342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9343$as_echo "$with_aix_soname" >&6; }
9344  if test aix != "$with_aix_soname"; then
9345    # For the AIX way of multilib, we name the shared archive member
9346    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9347    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9348    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9349    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9350    if test 64 = "${OBJECT_MODE-32}"; then
9351      shared_archive_member_spec=shr_64
9352    else
9353      shared_archive_member_spec=shr
9354    fi
9355  fi
9356  ;;
9357*)
9358  with_aix_soname=aix
9359  ;;
9360esac
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371# This can be used to rebuild libtool when needed
9372LIBTOOL_DEPS=$ltmain
9373
9374# Always use our own libtool.
9375LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406test -z "$LN_S" && LN_S="ln -s"
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421if test -n "${ZSH_VERSION+set}"; then
9422   setopt NO_GLOB_SUBST
9423fi
9424
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9426$as_echo_n "checking for objdir... " >&6; }
9427if ${lt_cv_objdir+:} false; then :
9428  $as_echo_n "(cached) " >&6
9429else
9430  rm -f .libs 2>/dev/null
9431mkdir .libs 2>/dev/null
9432if test -d .libs; then
9433  lt_cv_objdir=.libs
9434else
9435  # MS-DOS does not allow filenames that begin with a dot.
9436  lt_cv_objdir=_libs
9437fi
9438rmdir .libs 2>/dev/null
9439fi
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9441$as_echo "$lt_cv_objdir" >&6; }
9442objdir=$lt_cv_objdir
9443
9444
9445
9446
9447
9448cat >>confdefs.h <<_ACEOF
9449#define LT_OBJDIR "$lt_cv_objdir/"
9450_ACEOF
9451
9452
9453
9454
9455case $host_os in
9456aix3*)
9457  # AIX sometimes has problems with the GCC collect2 program.  For some
9458  # reason, if we set the COLLECT_NAMES environment variable, the problems
9459  # vanish in a puff of smoke.
9460  if test set != "${COLLECT_NAMES+set}"; then
9461    COLLECT_NAMES=
9462    export COLLECT_NAMES
9463  fi
9464  ;;
9465esac
9466
9467# Global variables:
9468ofile=libtool
9469can_build_shared=yes
9470
9471# All known linkers require a '.a' archive for static linking (except MSVC,
9472# which needs '.lib').
9473libext=a
9474
9475with_gnu_ld=$lt_cv_prog_gnu_ld
9476
9477old_CC=$CC
9478old_CFLAGS=$CFLAGS
9479
9480# Set sane defaults for various variables
9481test -z "$CC" && CC=cc
9482test -z "$LTCC" && LTCC=$CC
9483test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9484test -z "$LD" && LD=ld
9485test -z "$ac_objext" && ac_objext=o
9486
9487func_cc_basename $compiler
9488cc_basename=$func_cc_basename_result
9489
9490
9491# Only perform the check for file, if the check method requires it
9492test -z "$MAGIC_CMD" && MAGIC_CMD=file
9493case $deplibs_check_method in
9494file_magic*)
9495  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9497$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9498if ${lt_cv_path_MAGIC_CMD+:} false; then :
9499  $as_echo_n "(cached) " >&6
9500else
9501  case $MAGIC_CMD in
9502[\\/*] |  ?:[\\/]*)
9503  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9504  ;;
9505*)
9506  lt_save_MAGIC_CMD=$MAGIC_CMD
9507  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9508  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9509  for ac_dir in $ac_dummy; do
9510    IFS=$lt_save_ifs
9511    test -z "$ac_dir" && ac_dir=.
9512    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9513      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9514      if test -n "$file_magic_test_file"; then
9515	case $deplibs_check_method in
9516	"file_magic "*)
9517	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9518	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9519	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9520	    $EGREP "$file_magic_regex" > /dev/null; then
9521	    :
9522	  else
9523	    cat <<_LT_EOF 1>&2
9524
9525*** Warning: the command libtool uses to detect shared libraries,
9526*** $file_magic_cmd, produces output that libtool cannot recognize.
9527*** The result is that libtool may fail to recognize shared libraries
9528*** as such.  This will affect the creation of libtool libraries that
9529*** depend on shared libraries, but programs linked with such libtool
9530*** libraries will work regardless of this problem.  Nevertheless, you
9531*** may want to report the problem to your system manager and/or to
9532*** bug-libtool@gnu.org
9533
9534_LT_EOF
9535	  fi ;;
9536	esac
9537      fi
9538      break
9539    fi
9540  done
9541  IFS=$lt_save_ifs
9542  MAGIC_CMD=$lt_save_MAGIC_CMD
9543  ;;
9544esac
9545fi
9546
9547MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9548if test -n "$MAGIC_CMD"; then
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9550$as_echo "$MAGIC_CMD" >&6; }
9551else
9552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
9554fi
9555
9556
9557
9558
9559
9560if test -z "$lt_cv_path_MAGIC_CMD"; then
9561  if test -n "$ac_tool_prefix"; then
9562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9563$as_echo_n "checking for file... " >&6; }
9564if ${lt_cv_path_MAGIC_CMD+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  case $MAGIC_CMD in
9568[\\/*] |  ?:[\\/]*)
9569  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9570  ;;
9571*)
9572  lt_save_MAGIC_CMD=$MAGIC_CMD
9573  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9574  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9575  for ac_dir in $ac_dummy; do
9576    IFS=$lt_save_ifs
9577    test -z "$ac_dir" && ac_dir=.
9578    if test -f "$ac_dir/file"; then
9579      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9580      if test -n "$file_magic_test_file"; then
9581	case $deplibs_check_method in
9582	"file_magic "*)
9583	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9584	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9585	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9586	    $EGREP "$file_magic_regex" > /dev/null; then
9587	    :
9588	  else
9589	    cat <<_LT_EOF 1>&2
9590
9591*** Warning: the command libtool uses to detect shared libraries,
9592*** $file_magic_cmd, produces output that libtool cannot recognize.
9593*** The result is that libtool may fail to recognize shared libraries
9594*** as such.  This will affect the creation of libtool libraries that
9595*** depend on shared libraries, but programs linked with such libtool
9596*** libraries will work regardless of this problem.  Nevertheless, you
9597*** may want to report the problem to your system manager and/or to
9598*** bug-libtool@gnu.org
9599
9600_LT_EOF
9601	  fi ;;
9602	esac
9603      fi
9604      break
9605    fi
9606  done
9607  IFS=$lt_save_ifs
9608  MAGIC_CMD=$lt_save_MAGIC_CMD
9609  ;;
9610esac
9611fi
9612
9613MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9614if test -n "$MAGIC_CMD"; then
9615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9616$as_echo "$MAGIC_CMD" >&6; }
9617else
9618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620fi
9621
9622
9623  else
9624    MAGIC_CMD=:
9625  fi
9626fi
9627
9628  fi
9629  ;;
9630esac
9631
9632# Use C for the default configuration in the libtool script
9633
9634lt_save_CC=$CC
9635ac_ext=c
9636ac_cpp='$CPP $CPPFLAGS'
9637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9639ac_compiler_gnu=$ac_cv_c_compiler_gnu
9640
9641
9642# Source file extension for C test sources.
9643ac_ext=c
9644
9645# Object file extension for compiled C test sources.
9646objext=o
9647objext=$objext
9648
9649# Code to be used in simple compile tests
9650lt_simple_compile_test_code="int some_variable = 0;"
9651
9652# Code to be used in simple link tests
9653lt_simple_link_test_code='int main(){return(0);}'
9654
9655
9656
9657
9658
9659
9660
9661# If no C compiler was specified, use CC.
9662LTCC=${LTCC-"$CC"}
9663
9664# If no C compiler flags were specified, use CFLAGS.
9665LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9666
9667# Allow CC to be a program name with arguments.
9668compiler=$CC
9669
9670# Save the default compiler, since it gets overwritten when the other
9671# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9672compiler_DEFAULT=$CC
9673
9674# save warnings/boilerplate of simple test code
9675ac_outfile=conftest.$ac_objext
9676echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9677eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9678_lt_compiler_boilerplate=`cat conftest.err`
9679$RM conftest*
9680
9681ac_outfile=conftest.$ac_objext
9682echo "$lt_simple_link_test_code" >conftest.$ac_ext
9683eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9684_lt_linker_boilerplate=`cat conftest.err`
9685$RM -r conftest*
9686
9687
9688if test -n "$compiler"; then
9689
9690lt_prog_compiler_no_builtin_flag=
9691
9692if test yes = "$GCC"; then
9693  case $cc_basename in
9694  nvcc*)
9695    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9696  *)
9697    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9698  esac
9699
9700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9701$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9702if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705  lt_cv_prog_compiler_rtti_exceptions=no
9706   ac_outfile=conftest.$ac_objext
9707   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9708   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9709   # Insert the option either (1) after the last *FLAGS variable, or
9710   # (2) before a word containing "conftest.", or (3) at the end.
9711   # Note that $ac_compile itself does not contain backslashes and begins
9712   # with a dollar sign (not a hyphen), so the echo should work correctly.
9713   # The option is referenced via a variable to avoid confusing sed.
9714   lt_compile=`echo "$ac_compile" | $SED \
9715   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9717   -e 's:$: $lt_compiler_flag:'`
9718   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9719   (eval "$lt_compile" 2>conftest.err)
9720   ac_status=$?
9721   cat conftest.err >&5
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   if (exit $ac_status) && test -s "$ac_outfile"; then
9724     # The compiler can only warn and ignore the option if not recognized
9725     # So say no if there are warnings other than the usual output.
9726     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9727     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9729       lt_cv_prog_compiler_rtti_exceptions=yes
9730     fi
9731   fi
9732   $RM conftest*
9733
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9736$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9737
9738if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9739    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9740else
9741    :
9742fi
9743
9744fi
9745
9746
9747
9748
9749
9750
9751  lt_prog_compiler_wl=
9752lt_prog_compiler_pic=
9753lt_prog_compiler_static=
9754
9755
9756  if test yes = "$GCC"; then
9757    lt_prog_compiler_wl='-Wl,'
9758    lt_prog_compiler_static='-static'
9759
9760    case $host_os in
9761      aix*)
9762      # All AIX code is PIC.
9763      if test ia64 = "$host_cpu"; then
9764	# AIX 5 now supports IA64 processor
9765	lt_prog_compiler_static='-Bstatic'
9766      fi
9767      lt_prog_compiler_pic='-fPIC'
9768      ;;
9769
9770    amigaos*)
9771      case $host_cpu in
9772      powerpc)
9773            # see comment about AmigaOS4 .so support
9774            lt_prog_compiler_pic='-fPIC'
9775        ;;
9776      m68k)
9777            # FIXME: we need at least 68020 code to build shared libraries, but
9778            # adding the '-m68020' flag to GCC prevents building anything better,
9779            # like '-m68040'.
9780            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9781        ;;
9782      esac
9783      ;;
9784
9785    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9786      # PIC is the default for these OSes.
9787      ;;
9788
9789    mingw* | cygwin* | pw32* | os2* | cegcc*)
9790      # This hack is so that the source file can tell whether it is being
9791      # built for inclusion in a dll (and should export symbols for example).
9792      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9793      # (--disable-auto-import) libraries
9794      lt_prog_compiler_pic='-DDLL_EXPORT'
9795      case $host_os in
9796      os2*)
9797	lt_prog_compiler_static='$wl-static'
9798	;;
9799      esac
9800      ;;
9801
9802    darwin* | rhapsody*)
9803      # PIC is the default on this platform
9804      # Common symbols not allowed in MH_DYLIB files
9805      lt_prog_compiler_pic='-fno-common'
9806      ;;
9807
9808    haiku*)
9809      # PIC is the default for Haiku.
9810      # The "-static" flag exists, but is broken.
9811      lt_prog_compiler_static=
9812      ;;
9813
9814    hpux*)
9815      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9816      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9817      # sets the default TLS model and affects inlining.
9818      case $host_cpu in
9819      hppa*64*)
9820	# +Z the default
9821	;;
9822      *)
9823	lt_prog_compiler_pic='-fPIC'
9824	;;
9825      esac
9826      ;;
9827
9828    interix[3-9]*)
9829      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9830      # Instead, we relocate shared libraries at runtime.
9831      ;;
9832
9833    msdosdjgpp*)
9834      # Just because we use GCC doesn't mean we suddenly get shared libraries
9835      # on systems that don't support them.
9836      lt_prog_compiler_can_build_shared=no
9837      enable_shared=no
9838      ;;
9839
9840    *nto* | *qnx*)
9841      # QNX uses GNU C++, but need to define -shared option too, otherwise
9842      # it will coredump.
9843      lt_prog_compiler_pic='-fPIC -shared'
9844      ;;
9845
9846    sysv4*MP*)
9847      if test -d /usr/nec; then
9848	lt_prog_compiler_pic=-Kconform_pic
9849      fi
9850      ;;
9851
9852    *)
9853      lt_prog_compiler_pic='-fPIC'
9854      ;;
9855    esac
9856
9857    case $cc_basename in
9858    nvcc*) # Cuda Compiler Driver 2.2
9859      lt_prog_compiler_wl='-Xlinker '
9860      if test -n "$lt_prog_compiler_pic"; then
9861        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9862      fi
9863      ;;
9864    esac
9865  else
9866    # PORTME Check for flag to pass linker flags through the system compiler.
9867    case $host_os in
9868    aix*)
9869      lt_prog_compiler_wl='-Wl,'
9870      if test ia64 = "$host_cpu"; then
9871	# AIX 5 now supports IA64 processor
9872	lt_prog_compiler_static='-Bstatic'
9873      else
9874	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9875      fi
9876      ;;
9877
9878    darwin* | rhapsody*)
9879      # PIC is the default on this platform
9880      # Common symbols not allowed in MH_DYLIB files
9881      lt_prog_compiler_pic='-fno-common'
9882      case $cc_basename in
9883      nagfor*)
9884        # NAG Fortran compiler
9885        lt_prog_compiler_wl='-Wl,-Wl,,'
9886        lt_prog_compiler_pic='-PIC'
9887        lt_prog_compiler_static='-Bstatic'
9888        ;;
9889      esac
9890      ;;
9891
9892    mingw* | cygwin* | pw32* | os2* | cegcc*)
9893      # This hack is so that the source file can tell whether it is being
9894      # built for inclusion in a dll (and should export symbols for example).
9895      lt_prog_compiler_pic='-DDLL_EXPORT'
9896      case $host_os in
9897      os2*)
9898	lt_prog_compiler_static='$wl-static'
9899	;;
9900      esac
9901      ;;
9902
9903    hpux9* | hpux10* | hpux11*)
9904      lt_prog_compiler_wl='-Wl,'
9905      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9906      # not for PA HP-UX.
9907      case $host_cpu in
9908      hppa*64*|ia64*)
9909	# +Z the default
9910	;;
9911      *)
9912	lt_prog_compiler_pic='+Z'
9913	;;
9914      esac
9915      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9916      lt_prog_compiler_static='$wl-a ${wl}archive'
9917      ;;
9918
9919    irix5* | irix6* | nonstopux*)
9920      lt_prog_compiler_wl='-Wl,'
9921      # PIC (with -KPIC) is the default.
9922      lt_prog_compiler_static='-non_shared'
9923      ;;
9924
9925    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9926      case $cc_basename in
9927      # old Intel for x86_64, which still supported -KPIC.
9928      ecc*)
9929	lt_prog_compiler_wl='-Wl,'
9930	lt_prog_compiler_pic='-KPIC'
9931	lt_prog_compiler_static='-static'
9932        ;;
9933      # icc used to be incompatible with GCC.
9934      # ICC 10 doesn't accept -KPIC any more.
9935      icc* | ifort*)
9936	lt_prog_compiler_wl='-Wl,'
9937	lt_prog_compiler_pic='-fPIC'
9938	lt_prog_compiler_static='-static'
9939        ;;
9940      # Lahey Fortran 8.1.
9941      lf95*)
9942	lt_prog_compiler_wl='-Wl,'
9943	lt_prog_compiler_pic='--shared'
9944	lt_prog_compiler_static='--static'
9945	;;
9946      nagfor*)
9947	# NAG Fortran compiler
9948	lt_prog_compiler_wl='-Wl,-Wl,,'
9949	lt_prog_compiler_pic='-PIC'
9950	lt_prog_compiler_static='-Bstatic'
9951	;;
9952      tcc*)
9953	# Fabrice Bellard et al's Tiny C Compiler
9954	lt_prog_compiler_wl='-Wl,'
9955	lt_prog_compiler_pic='-fPIC'
9956	lt_prog_compiler_static='-static'
9957	;;
9958      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9959        # Portland Group compilers (*not* the Pentium gcc compiler,
9960	# which looks to be a dead project)
9961	lt_prog_compiler_wl='-Wl,'
9962	lt_prog_compiler_pic='-fpic'
9963	lt_prog_compiler_static='-Bstatic'
9964        ;;
9965      ccc*)
9966        lt_prog_compiler_wl='-Wl,'
9967        # All Alpha code is PIC.
9968        lt_prog_compiler_static='-non_shared'
9969        ;;
9970      xl* | bgxl* | bgf* | mpixl*)
9971	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9972	lt_prog_compiler_wl='-Wl,'
9973	lt_prog_compiler_pic='-qpic'
9974	lt_prog_compiler_static='-qstaticlink'
9975	;;
9976      *)
9977	case `$CC -V 2>&1 | sed 5q` in
9978	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9979	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9980	  lt_prog_compiler_pic='-KPIC'
9981	  lt_prog_compiler_static='-Bstatic'
9982	  lt_prog_compiler_wl=''
9983	  ;;
9984	*Sun\ F* | *Sun*Fortran*)
9985	  lt_prog_compiler_pic='-KPIC'
9986	  lt_prog_compiler_static='-Bstatic'
9987	  lt_prog_compiler_wl='-Qoption ld '
9988	  ;;
9989	*Sun\ C*)
9990	  # Sun C 5.9
9991	  lt_prog_compiler_pic='-KPIC'
9992	  lt_prog_compiler_static='-Bstatic'
9993	  lt_prog_compiler_wl='-Wl,'
9994	  ;;
9995        *Intel*\ [CF]*Compiler*)
9996	  lt_prog_compiler_wl='-Wl,'
9997	  lt_prog_compiler_pic='-fPIC'
9998	  lt_prog_compiler_static='-static'
9999	  ;;
10000	*Portland\ Group*)
10001	  lt_prog_compiler_wl='-Wl,'
10002	  lt_prog_compiler_pic='-fpic'
10003	  lt_prog_compiler_static='-Bstatic'
10004	  ;;
10005	esac
10006	;;
10007      esac
10008      ;;
10009
10010    newsos6)
10011      lt_prog_compiler_pic='-KPIC'
10012      lt_prog_compiler_static='-Bstatic'
10013      ;;
10014
10015    *nto* | *qnx*)
10016      # QNX uses GNU C++, but need to define -shared option too, otherwise
10017      # it will coredump.
10018      lt_prog_compiler_pic='-fPIC -shared'
10019      ;;
10020
10021    osf3* | osf4* | osf5*)
10022      lt_prog_compiler_wl='-Wl,'
10023      # All OSF/1 code is PIC.
10024      lt_prog_compiler_static='-non_shared'
10025      ;;
10026
10027    rdos*)
10028      lt_prog_compiler_static='-non_shared'
10029      ;;
10030
10031    solaris*)
10032      lt_prog_compiler_pic='-KPIC'
10033      lt_prog_compiler_static='-Bstatic'
10034      case $cc_basename in
10035      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10036	lt_prog_compiler_wl='-Qoption ld ';;
10037      *)
10038	lt_prog_compiler_wl='-Wl,';;
10039      esac
10040      ;;
10041
10042    sunos4*)
10043      lt_prog_compiler_wl='-Qoption ld '
10044      lt_prog_compiler_pic='-PIC'
10045      lt_prog_compiler_static='-Bstatic'
10046      ;;
10047
10048    sysv4 | sysv4.2uw2* | sysv4.3*)
10049      lt_prog_compiler_wl='-Wl,'
10050      lt_prog_compiler_pic='-KPIC'
10051      lt_prog_compiler_static='-Bstatic'
10052      ;;
10053
10054    sysv4*MP*)
10055      if test -d /usr/nec; then
10056	lt_prog_compiler_pic='-Kconform_pic'
10057	lt_prog_compiler_static='-Bstatic'
10058      fi
10059      ;;
10060
10061    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10062      lt_prog_compiler_wl='-Wl,'
10063      lt_prog_compiler_pic='-KPIC'
10064      lt_prog_compiler_static='-Bstatic'
10065      ;;
10066
10067    unicos*)
10068      lt_prog_compiler_wl='-Wl,'
10069      lt_prog_compiler_can_build_shared=no
10070      ;;
10071
10072    uts4*)
10073      lt_prog_compiler_pic='-pic'
10074      lt_prog_compiler_static='-Bstatic'
10075      ;;
10076
10077    *)
10078      lt_prog_compiler_can_build_shared=no
10079      ;;
10080    esac
10081  fi
10082
10083case $host_os in
10084  # For platforms that do not support PIC, -DPIC is meaningless:
10085  *djgpp*)
10086    lt_prog_compiler_pic=
10087    ;;
10088  *)
10089    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10090    ;;
10091esac
10092
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10094$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10095if ${lt_cv_prog_compiler_pic+:} false; then :
10096  $as_echo_n "(cached) " >&6
10097else
10098  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10099fi
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10101$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10102lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10103
10104#
10105# Check to make sure the PIC flag actually works.
10106#
10107if test -n "$lt_prog_compiler_pic"; then
10108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10109$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10110if ${lt_cv_prog_compiler_pic_works+:} false; then :
10111  $as_echo_n "(cached) " >&6
10112else
10113  lt_cv_prog_compiler_pic_works=no
10114   ac_outfile=conftest.$ac_objext
10115   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10116   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10117   # Insert the option either (1) after the last *FLAGS variable, or
10118   # (2) before a word containing "conftest.", or (3) at the end.
10119   # Note that $ac_compile itself does not contain backslashes and begins
10120   # with a dollar sign (not a hyphen), so the echo should work correctly.
10121   # The option is referenced via a variable to avoid confusing sed.
10122   lt_compile=`echo "$ac_compile" | $SED \
10123   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10124   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125   -e 's:$: $lt_compiler_flag:'`
10126   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10127   (eval "$lt_compile" 2>conftest.err)
10128   ac_status=$?
10129   cat conftest.err >&5
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   if (exit $ac_status) && test -s "$ac_outfile"; then
10132     # The compiler can only warn and ignore the option if not recognized
10133     # So say no if there are warnings other than the usual output.
10134     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10135     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10136     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10137       lt_cv_prog_compiler_pic_works=yes
10138     fi
10139   fi
10140   $RM conftest*
10141
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10144$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10145
10146if test yes = "$lt_cv_prog_compiler_pic_works"; then
10147    case $lt_prog_compiler_pic in
10148     "" | " "*) ;;
10149     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10150     esac
10151else
10152    lt_prog_compiler_pic=
10153     lt_prog_compiler_can_build_shared=no
10154fi
10155
10156fi
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168#
10169# Check to make sure the static flag actually works.
10170#
10171wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10173$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10174if ${lt_cv_prog_compiler_static_works+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  lt_cv_prog_compiler_static_works=no
10178   save_LDFLAGS=$LDFLAGS
10179   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10180   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10181   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10182     # The linker can only warn and ignore the option if not recognized
10183     # So say no if there are warnings
10184     if test -s conftest.err; then
10185       # Append any errors to the config.log.
10186       cat conftest.err 1>&5
10187       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10188       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10189       if diff conftest.exp conftest.er2 >/dev/null; then
10190         lt_cv_prog_compiler_static_works=yes
10191       fi
10192     else
10193       lt_cv_prog_compiler_static_works=yes
10194     fi
10195   fi
10196   $RM -r conftest*
10197   LDFLAGS=$save_LDFLAGS
10198
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10201$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10202
10203if test yes = "$lt_cv_prog_compiler_static_works"; then
10204    :
10205else
10206    lt_prog_compiler_static=
10207fi
10208
10209
10210
10211
10212
10213
10214
10215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10216$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10217if ${lt_cv_prog_compiler_c_o+:} false; then :
10218  $as_echo_n "(cached) " >&6
10219else
10220  lt_cv_prog_compiler_c_o=no
10221   $RM -r conftest 2>/dev/null
10222   mkdir conftest
10223   cd conftest
10224   mkdir out
10225   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226
10227   lt_compiler_flag="-o out/conftest2.$ac_objext"
10228   # Insert the option either (1) after the last *FLAGS variable, or
10229   # (2) before a word containing "conftest.", or (3) at the end.
10230   # Note that $ac_compile itself does not contain backslashes and begins
10231   # with a dollar sign (not a hyphen), so the echo should work correctly.
10232   lt_compile=`echo "$ac_compile" | $SED \
10233   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10234   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10235   -e 's:$: $lt_compiler_flag:'`
10236   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10237   (eval "$lt_compile" 2>out/conftest.err)
10238   ac_status=$?
10239   cat out/conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10242   then
10243     # The compiler can only warn and ignore the option if not recognized
10244     # So say no if there are warnings
10245     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10246     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10247     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10248       lt_cv_prog_compiler_c_o=yes
10249     fi
10250   fi
10251   chmod u+w . 2>&5
10252   $RM conftest*
10253   # SGI C++ compiler will create directory out/ii_files/ for
10254   # template instantiation
10255   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10256   $RM out/* && rmdir out
10257   cd ..
10258   $RM -r conftest
10259   $RM conftest*
10260
10261fi
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10263$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10264
10265
10266
10267
10268
10269
10270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10271$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10272if ${lt_cv_prog_compiler_c_o+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  lt_cv_prog_compiler_c_o=no
10276   $RM -r conftest 2>/dev/null
10277   mkdir conftest
10278   cd conftest
10279   mkdir out
10280   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10281
10282   lt_compiler_flag="-o out/conftest2.$ac_objext"
10283   # Insert the option either (1) after the last *FLAGS variable, or
10284   # (2) before a word containing "conftest.", or (3) at the end.
10285   # Note that $ac_compile itself does not contain backslashes and begins
10286   # with a dollar sign (not a hyphen), so the echo should work correctly.
10287   lt_compile=`echo "$ac_compile" | $SED \
10288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10290   -e 's:$: $lt_compiler_flag:'`
10291   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10292   (eval "$lt_compile" 2>out/conftest.err)
10293   ac_status=$?
10294   cat out/conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10297   then
10298     # The compiler can only warn and ignore the option if not recognized
10299     # So say no if there are warnings
10300     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10301     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10302     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10303       lt_cv_prog_compiler_c_o=yes
10304     fi
10305   fi
10306   chmod u+w . 2>&5
10307   $RM conftest*
10308   # SGI C++ compiler will create directory out/ii_files/ for
10309   # template instantiation
10310   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10311   $RM out/* && rmdir out
10312   cd ..
10313   $RM -r conftest
10314   $RM conftest*
10315
10316fi
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10318$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10319
10320
10321
10322
10323hard_links=nottested
10324if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10325  # do not overwrite the value of need_locks provided by the user
10326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10327$as_echo_n "checking if we can lock with hard links... " >&6; }
10328  hard_links=yes
10329  $RM conftest*
10330  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10331  touch conftest.a
10332  ln conftest.a conftest.b 2>&5 || hard_links=no
10333  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10335$as_echo "$hard_links" >&6; }
10336  if test no = "$hard_links"; then
10337    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10338$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10339    need_locks=warn
10340  fi
10341else
10342  need_locks=no
10343fi
10344
10345
10346
10347
10348
10349
10350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10351$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10352
10353  runpath_var=
10354  allow_undefined_flag=
10355  always_export_symbols=no
10356  archive_cmds=
10357  archive_expsym_cmds=
10358  compiler_needs_object=no
10359  enable_shared_with_static_runtimes=no
10360  export_dynamic_flag_spec=
10361  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10362  hardcode_automatic=no
10363  hardcode_direct=no
10364  hardcode_direct_absolute=no
10365  hardcode_libdir_flag_spec=
10366  hardcode_libdir_separator=
10367  hardcode_minus_L=no
10368  hardcode_shlibpath_var=unsupported
10369  inherit_rpath=no
10370  link_all_deplibs=unknown
10371  module_cmds=
10372  module_expsym_cmds=
10373  old_archive_from_new_cmds=
10374  old_archive_from_expsyms_cmds=
10375  thread_safe_flag_spec=
10376  whole_archive_flag_spec=
10377  # include_expsyms should be a list of space-separated symbols to be *always*
10378  # included in the symbol list
10379  include_expsyms=
10380  # exclude_expsyms can be an extended regexp of symbols to exclude
10381  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10382  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10383  # as well as any symbol that contains 'd'.
10384  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10385  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10386  # platforms (ab)use it in PIC code, but their linkers get confused if
10387  # the symbol is explicitly referenced.  Since portable code cannot
10388  # rely on this symbol name, it's probably fine to never include it in
10389  # preloaded symbol tables.
10390  # Exclude shared library initialization/finalization symbols.
10391  extract_expsyms_cmds=
10392
10393  case $host_os in
10394  cygwin* | mingw* | pw32* | cegcc*)
10395    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10396    # When not using gcc, we currently assume that we are using
10397    # Microsoft Visual C++.
10398    if test yes != "$GCC"; then
10399      with_gnu_ld=no
10400    fi
10401    ;;
10402  interix*)
10403    # we just hope/assume this is gcc and not c89 (= MSVC++)
10404    with_gnu_ld=yes
10405    ;;
10406  openbsd* | bitrig*)
10407    with_gnu_ld=no
10408    ;;
10409  esac
10410
10411  ld_shlibs=yes
10412
10413  # On some targets, GNU ld is compatible enough with the native linker
10414  # that we're better off using the native interface for both.
10415  lt_use_gnu_ld_interface=no
10416  if test yes = "$with_gnu_ld"; then
10417    case $host_os in
10418      aix*)
10419	# The AIX port of GNU ld has always aspired to compatibility
10420	# with the native linker.  However, as the warning in the GNU ld
10421	# block says, versions before 2.19.5* couldn't really create working
10422	# shared libraries, regardless of the interface used.
10423	case `$LD -v 2>&1` in
10424	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10425	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10426	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10427	  *)
10428	    lt_use_gnu_ld_interface=yes
10429	    ;;
10430	esac
10431	;;
10432      *)
10433	lt_use_gnu_ld_interface=yes
10434	;;
10435    esac
10436  fi
10437
10438  if test yes = "$lt_use_gnu_ld_interface"; then
10439    # If archive_cmds runs LD, not CC, wlarc should be empty
10440    wlarc='$wl'
10441
10442    # Set some defaults for GNU ld with shared library support. These
10443    # are reset later if shared libraries are not supported. Putting them
10444    # here allows them to be overridden if necessary.
10445    runpath_var=LD_RUN_PATH
10446    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10447    export_dynamic_flag_spec='$wl--export-dynamic'
10448    # ancient GNU ld didn't support --whole-archive et. al.
10449    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10450      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10451    else
10452      whole_archive_flag_spec=
10453    fi
10454    supports_anon_versioning=no
10455    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10456      *GNU\ gold*) supports_anon_versioning=yes ;;
10457      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10458      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10459      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10460      *\ 2.11.*) ;; # other 2.11 versions
10461      *) supports_anon_versioning=yes ;;
10462    esac
10463
10464    # See if GNU ld supports shared libraries.
10465    case $host_os in
10466    aix[3-9]*)
10467      # On AIX/PPC, the GNU linker is very broken
10468      if test ia64 != "$host_cpu"; then
10469	ld_shlibs=no
10470	cat <<_LT_EOF 1>&2
10471
10472*** Warning: the GNU linker, at least up to release 2.19, is reported
10473*** to be unable to reliably create shared libraries on AIX.
10474*** Therefore, libtool is disabling shared libraries support.  If you
10475*** really care for shared libraries, you may want to install binutils
10476*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10477*** You will then need to restart the configuration process.
10478
10479_LT_EOF
10480      fi
10481      ;;
10482
10483    amigaos*)
10484      case $host_cpu in
10485      powerpc)
10486            # see comment about AmigaOS4 .so support
10487            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10488            archive_expsym_cmds=''
10489        ;;
10490      m68k)
10491            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)'
10492            hardcode_libdir_flag_spec='-L$libdir'
10493            hardcode_minus_L=yes
10494        ;;
10495      esac
10496      ;;
10497
10498    beos*)
10499      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10500	allow_undefined_flag=unsupported
10501	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10502	# support --undefined.  This deserves some investigation.  FIXME
10503	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10504      else
10505	ld_shlibs=no
10506      fi
10507      ;;
10508
10509    cygwin* | mingw* | pw32* | cegcc*)
10510      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10511      # as there is no search path for DLLs.
10512      hardcode_libdir_flag_spec='-L$libdir'
10513      export_dynamic_flag_spec='$wl--export-all-symbols'
10514      allow_undefined_flag=unsupported
10515      always_export_symbols=no
10516      enable_shared_with_static_runtimes=yes
10517      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'
10518      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10519
10520      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10521        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10522	# If the export-symbols file already is a .def file, use it as
10523	# is; otherwise, prepend EXPORTS...
10524	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10525          cp $export_symbols $output_objdir/$soname.def;
10526        else
10527          echo EXPORTS > $output_objdir/$soname.def;
10528          cat $export_symbols >> $output_objdir/$soname.def;
10529        fi~
10530        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10531      else
10532	ld_shlibs=no
10533      fi
10534      ;;
10535
10536    haiku*)
10537      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10538      link_all_deplibs=yes
10539      ;;
10540
10541    os2*)
10542      hardcode_libdir_flag_spec='-L$libdir'
10543      hardcode_minus_L=yes
10544      allow_undefined_flag=unsupported
10545      shrext_cmds=.dll
10546      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10547	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10548	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10549	$ECHO EXPORTS >> $output_objdir/$libname.def~
10550	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10551	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10552	emximp -o $lib $output_objdir/$libname.def'
10553      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10554	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10555	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10556	$ECHO EXPORTS >> $output_objdir/$libname.def~
10557	prefix_cmds="$SED"~
10558	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10559	  prefix_cmds="$prefix_cmds -e 1d";
10560	fi~
10561	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10562	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10563	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10564	emximp -o $lib $output_objdir/$libname.def'
10565      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10566      enable_shared_with_static_runtimes=yes
10567      ;;
10568
10569    interix[3-9]*)
10570      hardcode_direct=no
10571      hardcode_shlibpath_var=no
10572      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10573      export_dynamic_flag_spec='$wl-E'
10574      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10575      # Instead, shared libraries are loaded at an image base (0x10000000 by
10576      # default) and relocated if they conflict, which is a slow very memory
10577      # consuming and fragmenting process.  To avoid this, we pick a random,
10578      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10579      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10580      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10581      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'
10582      ;;
10583
10584    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10585      tmp_diet=no
10586      if test linux-dietlibc = "$host_os"; then
10587	case $cc_basename in
10588	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10589	esac
10590      fi
10591      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10592	 && test no = "$tmp_diet"
10593      then
10594	tmp_addflag=' $pic_flag'
10595	tmp_sharedflag='-shared'
10596	case $cc_basename,$host_cpu in
10597        pgcc*)				# Portland Group C compiler
10598	  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'
10599	  tmp_addflag=' $pic_flag'
10600	  ;;
10601	pgf77* | pgf90* | pgf95* | pgfortran*)
10602					# Portland Group f77 and f90 compilers
10603	  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'
10604	  tmp_addflag=' $pic_flag -Mnomain' ;;
10605	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10606	  tmp_addflag=' -i_dynamic' ;;
10607	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10608	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10609	ifc* | ifort*)			# Intel Fortran compiler
10610	  tmp_addflag=' -nofor_main' ;;
10611	lf95*)				# Lahey Fortran 8.1
10612	  whole_archive_flag_spec=
10613	  tmp_sharedflag='--shared' ;;
10614        nagfor*)                        # NAGFOR 5.3
10615          tmp_sharedflag='-Wl,-shared' ;;
10616	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10617	  tmp_sharedflag='-qmkshrobj'
10618	  tmp_addflag= ;;
10619	nvcc*)	# Cuda Compiler Driver 2.2
10620	  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'
10621	  compiler_needs_object=yes
10622	  ;;
10623	esac
10624	case `$CC -V 2>&1 | sed 5q` in
10625	*Sun\ C*)			# Sun C 5.9
10626	  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'
10627	  compiler_needs_object=yes
10628	  tmp_sharedflag='-G' ;;
10629	*Sun\ F*)			# Sun Fortran 8.3
10630	  tmp_sharedflag='-G' ;;
10631	esac
10632	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10633
10634        if test yes = "$supports_anon_versioning"; then
10635          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10636            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10637            echo "local: *; };" >> $output_objdir/$libname.ver~
10638            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10639        fi
10640
10641	case $cc_basename in
10642	tcc*)
10643	  export_dynamic_flag_spec='-rdynamic'
10644	  ;;
10645	xlf* | bgf* | bgxlf* | mpixlf*)
10646	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10647	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10648	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10649	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10650	  if test yes = "$supports_anon_versioning"; then
10651	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10652              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10653              echo "local: *; };" >> $output_objdir/$libname.ver~
10654              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10655	  fi
10656	  ;;
10657	esac
10658      else
10659        ld_shlibs=no
10660      fi
10661      ;;
10662
10663    netbsd*)
10664      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10665	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10666	wlarc=
10667      else
10668	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10669	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10670      fi
10671      ;;
10672
10673    solaris*)
10674      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10675	ld_shlibs=no
10676	cat <<_LT_EOF 1>&2
10677
10678*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10679*** create shared libraries on Solaris systems.  Therefore, libtool
10680*** is disabling shared libraries support.  We urge you to upgrade GNU
10681*** binutils to release 2.9.1 or newer.  Another option is to modify
10682*** your PATH or compiler configuration so that the native linker is
10683*** used, and then restart.
10684
10685_LT_EOF
10686      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10687	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10688	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10689      else
10690	ld_shlibs=no
10691      fi
10692      ;;
10693
10694    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10695      case `$LD -v 2>&1` in
10696        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10697	ld_shlibs=no
10698	cat <<_LT_EOF 1>&2
10699
10700*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10701*** reliably create shared libraries on SCO systems.  Therefore, libtool
10702*** is disabling shared libraries support.  We urge you to upgrade GNU
10703*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10704*** your PATH or compiler configuration so that the native linker is
10705*** used, and then restart.
10706
10707_LT_EOF
10708	;;
10709	*)
10710	  # For security reasons, it is highly recommended that you always
10711	  # use absolute paths for naming shared libraries, and exclude the
10712	  # DT_RUNPATH tag from executables and libraries.  But doing so
10713	  # requires that you compile everything twice, which is a pain.
10714	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10715	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10716	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10717	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10718	  else
10719	    ld_shlibs=no
10720	  fi
10721	;;
10722      esac
10723      ;;
10724
10725    sunos4*)
10726      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10727      wlarc=
10728      hardcode_direct=yes
10729      hardcode_shlibpath_var=no
10730      ;;
10731
10732    *)
10733      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10734	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10735	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10736      else
10737	ld_shlibs=no
10738      fi
10739      ;;
10740    esac
10741
10742    if test no = "$ld_shlibs"; then
10743      runpath_var=
10744      hardcode_libdir_flag_spec=
10745      export_dynamic_flag_spec=
10746      whole_archive_flag_spec=
10747    fi
10748  else
10749    # PORTME fill in a description of your system's linker (not GNU ld)
10750    case $host_os in
10751    aix3*)
10752      allow_undefined_flag=unsupported
10753      always_export_symbols=yes
10754      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'
10755      # Note: this linker hardcodes the directories in LIBPATH if there
10756      # are no directories specified by -L.
10757      hardcode_minus_L=yes
10758      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10759	# Neither direct hardcoding nor static linking is supported with a
10760	# broken collect2.
10761	hardcode_direct=unsupported
10762      fi
10763      ;;
10764
10765    aix[4-9]*)
10766      if test ia64 = "$host_cpu"; then
10767	# On IA64, the linker does run time linking by default, so we don't
10768	# have to do anything special.
10769	aix_use_runtimelinking=no
10770	exp_sym_flag='-Bexport'
10771	no_entry_flag=
10772      else
10773	# If we're using GNU nm, then we don't want the "-C" option.
10774	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10775	# Without the "-l" option, or with the "-B" option, AIX nm treats
10776	# weak defined symbols like other global defined symbols, whereas
10777	# GNU nm marks them as "W".
10778	# While the 'weak' keyword is ignored in the Export File, we need
10779	# it in the Import File for the 'aix-soname' feature, so we have
10780	# to replace the "-B" option with "-P" for AIX nm.
10781	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10782	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10783	else
10784	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10785	fi
10786	aix_use_runtimelinking=no
10787
10788	# Test if we are trying to use run time linking or normal
10789	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10790	# have runtime linking enabled, and use it for executables.
10791	# For shared libraries, we enable/disable runtime linking
10792	# depending on the kind of the shared library created -
10793	# when "with_aix_soname,aix_use_runtimelinking" is:
10794	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10795	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10796	#            lib.a           static archive
10797	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10798	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10799	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10800	#            lib.a(lib.so.V) shared, rtl:no
10801	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10802	#            lib.a           static archive
10803	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10804	  for ld_flag in $LDFLAGS; do
10805	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10806	    aix_use_runtimelinking=yes
10807	    break
10808	  fi
10809	  done
10810	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10811	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10812	    # so we don't have lib.a shared libs to link our executables.
10813	    # We have to force runtime linking in this case.
10814	    aix_use_runtimelinking=yes
10815	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10816	  fi
10817	  ;;
10818	esac
10819
10820	exp_sym_flag='-bexport'
10821	no_entry_flag='-bnoentry'
10822      fi
10823
10824      # When large executables or shared objects are built, AIX ld can
10825      # have problems creating the table of contents.  If linking a library
10826      # or program results in "error TOC overflow" add -mminimal-toc to
10827      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10828      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10829
10830      archive_cmds=''
10831      hardcode_direct=yes
10832      hardcode_direct_absolute=yes
10833      hardcode_libdir_separator=':'
10834      link_all_deplibs=yes
10835      file_list_spec='$wl-f,'
10836      case $with_aix_soname,$aix_use_runtimelinking in
10837      aix,*) ;; # traditional, no import file
10838      svr4,* | *,yes) # use import file
10839	# The Import File defines what to hardcode.
10840	hardcode_direct=no
10841	hardcode_direct_absolute=no
10842	;;
10843      esac
10844
10845      if test yes = "$GCC"; then
10846	case $host_os in aix4.[012]|aix4.[012].*)
10847	# We only want to do this on AIX 4.2 and lower, the check
10848	# below for broken collect2 doesn't work under 4.3+
10849	  collect2name=`$CC -print-prog-name=collect2`
10850	  if test -f "$collect2name" &&
10851	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10852	  then
10853	  # We have reworked collect2
10854	  :
10855	  else
10856	  # We have old collect2
10857	  hardcode_direct=unsupported
10858	  # It fails to find uninstalled libraries when the uninstalled
10859	  # path is not listed in the libpath.  Setting hardcode_minus_L
10860	  # to unsupported forces relinking
10861	  hardcode_minus_L=yes
10862	  hardcode_libdir_flag_spec='-L$libdir'
10863	  hardcode_libdir_separator=
10864	  fi
10865	  ;;
10866	esac
10867	shared_flag='-shared'
10868	if test yes = "$aix_use_runtimelinking"; then
10869	  shared_flag="$shared_flag "'$wl-G'
10870	fi
10871	# Need to ensure runtime linking is disabled for the traditional
10872	# shared library, or the linker may eventually find shared libraries
10873	# /with/ Import File - we do not want to mix them.
10874	shared_flag_aix='-shared'
10875	shared_flag_svr4='-shared $wl-G'
10876      else
10877	# not using gcc
10878	if test ia64 = "$host_cpu"; then
10879	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10880	# chokes on -Wl,-G. The following line is correct:
10881	  shared_flag='-G'
10882	else
10883	  if test yes = "$aix_use_runtimelinking"; then
10884	    shared_flag='$wl-G'
10885	  else
10886	    shared_flag='$wl-bM:SRE'
10887	  fi
10888	  shared_flag_aix='$wl-bM:SRE'
10889	  shared_flag_svr4='$wl-G'
10890	fi
10891      fi
10892
10893      export_dynamic_flag_spec='$wl-bexpall'
10894      # It seems that -bexpall does not export symbols beginning with
10895      # underscore (_), so it is better to generate a list of symbols to export.
10896      always_export_symbols=yes
10897      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10898	# Warning - without using the other runtime loading flags (-brtl),
10899	# -berok will link without error, but may produce a broken library.
10900	allow_undefined_flag='-berok'
10901        # Determine the default libpath from the value encoded in an
10902        # empty executable.
10903        if test set = "${lt_cv_aix_libpath+set}"; then
10904  aix_libpath=$lt_cv_aix_libpath
10905else
10906  if ${lt_cv_aix_libpath_+:} false; then :
10907  $as_echo_n "(cached) " >&6
10908else
10909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h.  */
10911
10912int
10913main ()
10914{
10915
10916  ;
10917  return 0;
10918}
10919_ACEOF
10920if ac_fn_c_try_link "$LINENO"; then :
10921
10922  lt_aix_libpath_sed='
10923      /Import File Strings/,/^$/ {
10924	  /^0/ {
10925	      s/^0  *\([^ ]*\) *$/\1/
10926	      p
10927	  }
10928      }'
10929  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10930  # Check for a 64-bit object if we didn't find anything.
10931  if test -z "$lt_cv_aix_libpath_"; then
10932    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10933  fi
10934fi
10935rm -f core conftest.err conftest.$ac_objext \
10936    conftest$ac_exeext conftest.$ac_ext
10937  if test -z "$lt_cv_aix_libpath_"; then
10938    lt_cv_aix_libpath_=/usr/lib:/lib
10939  fi
10940
10941fi
10942
10943  aix_libpath=$lt_cv_aix_libpath_
10944fi
10945
10946        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10947        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10948      else
10949	if test ia64 = "$host_cpu"; then
10950	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10951	  allow_undefined_flag="-z nodefs"
10952	  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"
10953	else
10954	 # Determine the default libpath from the value encoded in an
10955	 # empty executable.
10956	 if test set = "${lt_cv_aix_libpath+set}"; then
10957  aix_libpath=$lt_cv_aix_libpath
10958else
10959  if ${lt_cv_aix_libpath_+:} false; then :
10960  $as_echo_n "(cached) " >&6
10961else
10962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963/* end confdefs.h.  */
10964
10965int
10966main ()
10967{
10968
10969  ;
10970  return 0;
10971}
10972_ACEOF
10973if ac_fn_c_try_link "$LINENO"; then :
10974
10975  lt_aix_libpath_sed='
10976      /Import File Strings/,/^$/ {
10977	  /^0/ {
10978	      s/^0  *\([^ ]*\) *$/\1/
10979	      p
10980	  }
10981      }'
10982  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10983  # Check for a 64-bit object if we didn't find anything.
10984  if test -z "$lt_cv_aix_libpath_"; then
10985    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10986  fi
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989    conftest$ac_exeext conftest.$ac_ext
10990  if test -z "$lt_cv_aix_libpath_"; then
10991    lt_cv_aix_libpath_=/usr/lib:/lib
10992  fi
10993
10994fi
10995
10996  aix_libpath=$lt_cv_aix_libpath_
10997fi
10998
10999	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11000	  # Warning - without using the other run time loading flags,
11001	  # -berok will link without error, but may produce a broken library.
11002	  no_undefined_flag=' $wl-bernotok'
11003	  allow_undefined_flag=' $wl-berok'
11004	  if test yes = "$with_gnu_ld"; then
11005	    # We only use this code for GNU lds that support --whole-archive.
11006	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11007	  else
11008	    # Exported symbols can be pulled into shared objects from archives
11009	    whole_archive_flag_spec='$convenience'
11010	  fi
11011	  archive_cmds_need_lc=yes
11012	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11013	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11014	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11015	  if test svr4 != "$with_aix_soname"; then
11016	    # This is similar to how AIX traditionally builds its shared libraries.
11017	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11018	  fi
11019	  if test aix != "$with_aix_soname"; then
11020	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11021	  else
11022	    # used by -dlpreopen to get the symbols
11023	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11024	  fi
11025	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11026	fi
11027      fi
11028      ;;
11029
11030    amigaos*)
11031      case $host_cpu in
11032      powerpc)
11033            # see comment about AmigaOS4 .so support
11034            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11035            archive_expsym_cmds=''
11036        ;;
11037      m68k)
11038            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)'
11039            hardcode_libdir_flag_spec='-L$libdir'
11040            hardcode_minus_L=yes
11041        ;;
11042      esac
11043      ;;
11044
11045    bsdi[45]*)
11046      export_dynamic_flag_spec=-rdynamic
11047      ;;
11048
11049    cygwin* | mingw* | pw32* | cegcc*)
11050      # When not using gcc, we currently assume that we are using
11051      # Microsoft Visual C++.
11052      # hardcode_libdir_flag_spec is actually meaningless, as there is
11053      # no search path for DLLs.
11054      case $cc_basename in
11055      cl*)
11056	# Native MSVC
11057	hardcode_libdir_flag_spec=' '
11058	allow_undefined_flag=unsupported
11059	always_export_symbols=yes
11060	file_list_spec='@'
11061	# Tell ltmain to make .lib files, not .a files.
11062	libext=lib
11063	# Tell ltmain to make .dll files, not .so files.
11064	shrext_cmds=.dll
11065	# FIXME: Setting linknames here is a bad hack.
11066	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11067	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11068            cp "$export_symbols" "$output_objdir/$soname.def";
11069            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11070          else
11071            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11072          fi~
11073          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11074          linknames='
11075	# The linker will not automatically build a static lib if we build a DLL.
11076	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11077	enable_shared_with_static_runtimes=yes
11078	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11079	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11080	# Don't use ranlib
11081	old_postinstall_cmds='chmod 644 $oldlib'
11082	postlink_cmds='lt_outputfile="@OUTPUT@"~
11083          lt_tool_outputfile="@TOOL_OUTPUT@"~
11084          case $lt_outputfile in
11085            *.exe|*.EXE) ;;
11086            *)
11087              lt_outputfile=$lt_outputfile.exe
11088              lt_tool_outputfile=$lt_tool_outputfile.exe
11089              ;;
11090          esac~
11091          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11092            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11093            $RM "$lt_outputfile.manifest";
11094          fi'
11095	;;
11096      *)
11097	# Assume MSVC wrapper
11098	hardcode_libdir_flag_spec=' '
11099	allow_undefined_flag=unsupported
11100	# Tell ltmain to make .lib files, not .a files.
11101	libext=lib
11102	# Tell ltmain to make .dll files, not .so files.
11103	shrext_cmds=.dll
11104	# FIXME: Setting linknames here is a bad hack.
11105	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11106	# The linker will automatically build a .lib file if we build a DLL.
11107	old_archive_from_new_cmds='true'
11108	# FIXME: Should let the user specify the lib program.
11109	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11110	enable_shared_with_static_runtimes=yes
11111	;;
11112      esac
11113      ;;
11114
11115    darwin* | rhapsody*)
11116
11117
11118  archive_cmds_need_lc=no
11119  hardcode_direct=no
11120  hardcode_automatic=yes
11121  hardcode_shlibpath_var=unsupported
11122  if test yes = "$lt_cv_ld_force_load"; then
11123    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\"`'
11124
11125  else
11126    whole_archive_flag_spec=''
11127  fi
11128  link_all_deplibs=yes
11129  allow_undefined_flag=$_lt_dar_allow_undefined
11130  case $cc_basename in
11131     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11132     *) _lt_dar_can_shared=$GCC ;;
11133  esac
11134  if test yes = "$_lt_dar_can_shared"; then
11135    output_verbose_link_cmd=func_echo_all
11136    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11137    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11138    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"
11139    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"
11140
11141  else
11142  ld_shlibs=no
11143  fi
11144
11145      ;;
11146
11147    dgux*)
11148      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11149      hardcode_libdir_flag_spec='-L$libdir'
11150      hardcode_shlibpath_var=no
11151      ;;
11152
11153    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11154    # support.  Future versions do this automatically, but an explicit c++rt0.o
11155    # does not break anything, and helps significantly (at the cost of a little
11156    # extra space).
11157    freebsd2.2*)
11158      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11159      hardcode_libdir_flag_spec='-R$libdir'
11160      hardcode_direct=yes
11161      hardcode_shlibpath_var=no
11162      ;;
11163
11164    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11165    freebsd2.*)
11166      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11167      hardcode_direct=yes
11168      hardcode_minus_L=yes
11169      hardcode_shlibpath_var=no
11170      ;;
11171
11172    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11173    freebsd* | dragonfly*)
11174      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11175      hardcode_libdir_flag_spec='-R$libdir'
11176      hardcode_direct=yes
11177      hardcode_shlibpath_var=no
11178      ;;
11179
11180    hpux9*)
11181      if test yes = "$GCC"; then
11182	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11183      else
11184	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11185      fi
11186      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11187      hardcode_libdir_separator=:
11188      hardcode_direct=yes
11189
11190      # hardcode_minus_L: Not really in the search PATH,
11191      # but as the default location of the library.
11192      hardcode_minus_L=yes
11193      export_dynamic_flag_spec='$wl-E'
11194      ;;
11195
11196    hpux10*)
11197      if test yes,no = "$GCC,$with_gnu_ld"; then
11198	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11199      else
11200	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11201      fi
11202      if test no = "$with_gnu_ld"; then
11203	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11204	hardcode_libdir_separator=:
11205	hardcode_direct=yes
11206	hardcode_direct_absolute=yes
11207	export_dynamic_flag_spec='$wl-E'
11208	# hardcode_minus_L: Not really in the search PATH,
11209	# but as the default location of the library.
11210	hardcode_minus_L=yes
11211      fi
11212      ;;
11213
11214    hpux11*)
11215      if test yes,no = "$GCC,$with_gnu_ld"; then
11216	case $host_cpu in
11217	hppa*64*)
11218	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11219	  ;;
11220	ia64*)
11221	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11222	  ;;
11223	*)
11224	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11225	  ;;
11226	esac
11227      else
11228	case $host_cpu in
11229	hppa*64*)
11230	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11231	  ;;
11232	ia64*)
11233	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11234	  ;;
11235	*)
11236
11237	  # Older versions of the 11.00 compiler do not understand -b yet
11238	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11239	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11240$as_echo_n "checking if $CC understands -b... " >&6; }
11241if ${lt_cv_prog_compiler__b+:} false; then :
11242  $as_echo_n "(cached) " >&6
11243else
11244  lt_cv_prog_compiler__b=no
11245   save_LDFLAGS=$LDFLAGS
11246   LDFLAGS="$LDFLAGS -b"
11247   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11248   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11249     # The linker can only warn and ignore the option if not recognized
11250     # So say no if there are warnings
11251     if test -s conftest.err; then
11252       # Append any errors to the config.log.
11253       cat conftest.err 1>&5
11254       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11255       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11256       if diff conftest.exp conftest.er2 >/dev/null; then
11257         lt_cv_prog_compiler__b=yes
11258       fi
11259     else
11260       lt_cv_prog_compiler__b=yes
11261     fi
11262   fi
11263   $RM -r conftest*
11264   LDFLAGS=$save_LDFLAGS
11265
11266fi
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11268$as_echo "$lt_cv_prog_compiler__b" >&6; }
11269
11270if test yes = "$lt_cv_prog_compiler__b"; then
11271    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11272else
11273    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11274fi
11275
11276	  ;;
11277	esac
11278      fi
11279      if test no = "$with_gnu_ld"; then
11280	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11281	hardcode_libdir_separator=:
11282
11283	case $host_cpu in
11284	hppa*64*|ia64*)
11285	  hardcode_direct=no
11286	  hardcode_shlibpath_var=no
11287	  ;;
11288	*)
11289	  hardcode_direct=yes
11290	  hardcode_direct_absolute=yes
11291	  export_dynamic_flag_spec='$wl-E'
11292
11293	  # hardcode_minus_L: Not really in the search PATH,
11294	  # but as the default location of the library.
11295	  hardcode_minus_L=yes
11296	  ;;
11297	esac
11298      fi
11299      ;;
11300
11301    irix5* | irix6* | nonstopux*)
11302      if test yes = "$GCC"; then
11303	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'
11304	# Try to use the -exported_symbol ld option, if it does not
11305	# work, assume that -exports_file does not work either and
11306	# implicitly export all symbols.
11307	# This should be the same for all languages, so no per-tag cache variable.
11308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11309$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11310if ${lt_cv_irix_exported_symbol+:} false; then :
11311  $as_echo_n "(cached) " >&6
11312else
11313  save_LDFLAGS=$LDFLAGS
11314	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11315	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316/* end confdefs.h.  */
11317int foo (void) { return 0; }
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320  lt_cv_irix_exported_symbol=yes
11321else
11322  lt_cv_irix_exported_symbol=no
11323fi
11324rm -f core conftest.err conftest.$ac_objext \
11325    conftest$ac_exeext conftest.$ac_ext
11326           LDFLAGS=$save_LDFLAGS
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11329$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11330	if test yes = "$lt_cv_irix_exported_symbol"; then
11331          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'
11332	fi
11333      else
11334	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'
11335	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'
11336      fi
11337      archive_cmds_need_lc='no'
11338      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11339      hardcode_libdir_separator=:
11340      inherit_rpath=yes
11341      link_all_deplibs=yes
11342      ;;
11343
11344    linux*)
11345      case $cc_basename in
11346      tcc*)
11347	# Fabrice Bellard et al's Tiny C Compiler
11348	ld_shlibs=yes
11349	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11350	;;
11351      esac
11352      ;;
11353
11354    netbsd*)
11355      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11356	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11357      else
11358	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11359      fi
11360      hardcode_libdir_flag_spec='-R$libdir'
11361      hardcode_direct=yes
11362      hardcode_shlibpath_var=no
11363      ;;
11364
11365    newsos6)
11366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11367      hardcode_direct=yes
11368      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11369      hardcode_libdir_separator=:
11370      hardcode_shlibpath_var=no
11371      ;;
11372
11373    *nto* | *qnx*)
11374      ;;
11375
11376    openbsd* | bitrig*)
11377      if test -f /usr/libexec/ld.so; then
11378	hardcode_direct=yes
11379	hardcode_shlibpath_var=no
11380	hardcode_direct_absolute=yes
11381	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11382	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11383	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11384	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11385	  export_dynamic_flag_spec='$wl-E'
11386	else
11387	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11388	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11389	fi
11390      else
11391	ld_shlibs=no
11392      fi
11393      ;;
11394
11395    os2*)
11396      hardcode_libdir_flag_spec='-L$libdir'
11397      hardcode_minus_L=yes
11398      allow_undefined_flag=unsupported
11399      shrext_cmds=.dll
11400      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11401	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11402	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11403	$ECHO EXPORTS >> $output_objdir/$libname.def~
11404	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11405	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11406	emximp -o $lib $output_objdir/$libname.def'
11407      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11408	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11409	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11410	$ECHO EXPORTS >> $output_objdir/$libname.def~
11411	prefix_cmds="$SED"~
11412	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11413	  prefix_cmds="$prefix_cmds -e 1d";
11414	fi~
11415	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11416	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11417	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11418	emximp -o $lib $output_objdir/$libname.def'
11419      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11420      enable_shared_with_static_runtimes=yes
11421      ;;
11422
11423    osf3*)
11424      if test yes = "$GCC"; then
11425	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11426	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'
11427      else
11428	allow_undefined_flag=' -expect_unresolved \*'
11429	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'
11430      fi
11431      archive_cmds_need_lc='no'
11432      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11433      hardcode_libdir_separator=:
11434      ;;
11435
11436    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11437      if test yes = "$GCC"; then
11438	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11439	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'
11440	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11441      else
11442	allow_undefined_flag=' -expect_unresolved \*'
11443	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'
11444	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~
11445          $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'
11446
11447	# Both c and cxx compiler support -rpath directly
11448	hardcode_libdir_flag_spec='-rpath $libdir'
11449      fi
11450      archive_cmds_need_lc='no'
11451      hardcode_libdir_separator=:
11452      ;;
11453
11454    solaris*)
11455      no_undefined_flag=' -z defs'
11456      if test yes = "$GCC"; then
11457	wlarc='$wl'
11458	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11459	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11460          $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'
11461      else
11462	case `$CC -V 2>&1` in
11463	*"Compilers 5.0"*)
11464	  wlarc=''
11465	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11466	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11467            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11468	  ;;
11469	*)
11470	  wlarc='$wl'
11471	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11472	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11473            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11474	  ;;
11475	esac
11476      fi
11477      hardcode_libdir_flag_spec='-R$libdir'
11478      hardcode_shlibpath_var=no
11479      case $host_os in
11480      solaris2.[0-5] | solaris2.[0-5].*) ;;
11481      *)
11482	# The compiler driver will combine and reorder linker options,
11483	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11484	# but is careful enough not to reorder.
11485	# Supported since Solaris 2.6 (maybe 2.5.1?)
11486	if test yes = "$GCC"; then
11487	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11488	else
11489	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11490	fi
11491	;;
11492      esac
11493      link_all_deplibs=yes
11494      ;;
11495
11496    sunos4*)
11497      if test sequent = "$host_vendor"; then
11498	# Use $CC to link under sequent, because it throws in some extra .o
11499	# files that make .init and .fini sections work.
11500	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11501      else
11502	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11503      fi
11504      hardcode_libdir_flag_spec='-L$libdir'
11505      hardcode_direct=yes
11506      hardcode_minus_L=yes
11507      hardcode_shlibpath_var=no
11508      ;;
11509
11510    sysv4)
11511      case $host_vendor in
11512	sni)
11513	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11514	  hardcode_direct=yes # is this really true???
11515	;;
11516	siemens)
11517	  ## LD is ld it makes a PLAMLIB
11518	  ## CC just makes a GrossModule.
11519	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11520	  reload_cmds='$CC -r -o $output$reload_objs'
11521	  hardcode_direct=no
11522        ;;
11523	motorola)
11524	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11525	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11526	;;
11527      esac
11528      runpath_var='LD_RUN_PATH'
11529      hardcode_shlibpath_var=no
11530      ;;
11531
11532    sysv4.3*)
11533      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11534      hardcode_shlibpath_var=no
11535      export_dynamic_flag_spec='-Bexport'
11536      ;;
11537
11538    sysv4*MP*)
11539      if test -d /usr/nec; then
11540	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11541	hardcode_shlibpath_var=no
11542	runpath_var=LD_RUN_PATH
11543	hardcode_runpath_var=yes
11544	ld_shlibs=yes
11545      fi
11546      ;;
11547
11548    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11549      no_undefined_flag='$wl-z,text'
11550      archive_cmds_need_lc=no
11551      hardcode_shlibpath_var=no
11552      runpath_var='LD_RUN_PATH'
11553
11554      if test yes = "$GCC"; then
11555	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557      else
11558	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11559	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11560      fi
11561      ;;
11562
11563    sysv5* | sco3.2v5* | sco5v6*)
11564      # Note: We CANNOT use -z defs as we might desire, because we do not
11565      # link with -lc, and that would cause any symbols used from libc to
11566      # always be unresolved, which means just about no library would
11567      # ever link correctly.  If we're not using GNU ld we use -z text
11568      # though, which does catch some bad symbols but isn't as heavy-handed
11569      # as -z defs.
11570      no_undefined_flag='$wl-z,text'
11571      allow_undefined_flag='$wl-z,nodefs'
11572      archive_cmds_need_lc=no
11573      hardcode_shlibpath_var=no
11574      hardcode_libdir_flag_spec='$wl-R,$libdir'
11575      hardcode_libdir_separator=':'
11576      link_all_deplibs=yes
11577      export_dynamic_flag_spec='$wl-Bexport'
11578      runpath_var='LD_RUN_PATH'
11579
11580      if test yes = "$GCC"; then
11581	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11582	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583      else
11584	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11585	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11586      fi
11587      ;;
11588
11589    uts4*)
11590      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11591      hardcode_libdir_flag_spec='-L$libdir'
11592      hardcode_shlibpath_var=no
11593      ;;
11594
11595    *)
11596      ld_shlibs=no
11597      ;;
11598    esac
11599
11600    if test sni = "$host_vendor"; then
11601      case $host in
11602      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11603	export_dynamic_flag_spec='$wl-Blargedynsym'
11604	;;
11605      esac
11606    fi
11607  fi
11608
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11610$as_echo "$ld_shlibs" >&6; }
11611test no = "$ld_shlibs" && can_build_shared=no
11612
11613with_gnu_ld=$with_gnu_ld
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629#
11630# Do we need to explicitly link libc?
11631#
11632case "x$archive_cmds_need_lc" in
11633x|xyes)
11634  # Assume -lc should be added
11635  archive_cmds_need_lc=yes
11636
11637  if test yes,yes = "$GCC,$enable_shared"; then
11638    case $archive_cmds in
11639    *'~'*)
11640      # FIXME: we may have to deal with multi-command sequences.
11641      ;;
11642    '$CC '*)
11643      # Test whether the compiler implicitly links with -lc since on some
11644      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11645      # to ld, don't add -lc before -lgcc.
11646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11647$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11648if ${lt_cv_archive_cmds_need_lc+:} false; then :
11649  $as_echo_n "(cached) " >&6
11650else
11651  $RM conftest*
11652	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11653
11654	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11655  (eval $ac_compile) 2>&5
11656  ac_status=$?
11657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658  test $ac_status = 0; } 2>conftest.err; then
11659	  soname=conftest
11660	  lib=conftest
11661	  libobjs=conftest.$ac_objext
11662	  deplibs=
11663	  wl=$lt_prog_compiler_wl
11664	  pic_flag=$lt_prog_compiler_pic
11665	  compiler_flags=-v
11666	  linker_flags=-v
11667	  verstring=
11668	  output_objdir=.
11669	  libname=conftest
11670	  lt_save_allow_undefined_flag=$allow_undefined_flag
11671	  allow_undefined_flag=
11672	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11673  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11674  ac_status=$?
11675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676  test $ac_status = 0; }
11677	  then
11678	    lt_cv_archive_cmds_need_lc=no
11679	  else
11680	    lt_cv_archive_cmds_need_lc=yes
11681	  fi
11682	  allow_undefined_flag=$lt_save_allow_undefined_flag
11683	else
11684	  cat conftest.err 1>&5
11685	fi
11686	$RM conftest*
11687
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11690$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11691      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11692      ;;
11693    esac
11694  fi
11695  ;;
11696esac
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
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
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11850$as_echo_n "checking dynamic linker characteristics... " >&6; }
11851
11852if test yes = "$GCC"; then
11853  case $host_os in
11854    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11855    *) lt_awk_arg='/^libraries:/' ;;
11856  esac
11857  case $host_os in
11858    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11859    *) lt_sed_strip_eq='s|=/|/|g' ;;
11860  esac
11861  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11862  case $lt_search_path_spec in
11863  *\;*)
11864    # if the path contains ";" then we assume it to be the separator
11865    # otherwise default to the standard path separator (i.e. ":") - it is
11866    # assumed that no part of a normal pathname contains ";" but that should
11867    # okay in the real world where ";" in dirpaths is itself problematic.
11868    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11869    ;;
11870  *)
11871    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11872    ;;
11873  esac
11874  # Ok, now we have the path, separated by spaces, we can step through it
11875  # and add multilib dir if necessary...
11876  lt_tmp_lt_search_path_spec=
11877  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11878  # ...but if some path component already ends with the multilib dir we assume
11879  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11880  case "$lt_multi_os_dir; $lt_search_path_spec " in
11881  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11882    lt_multi_os_dir=
11883    ;;
11884  esac
11885  for lt_sys_path in $lt_search_path_spec; do
11886    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11887      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11888    elif test -n "$lt_multi_os_dir"; then
11889      test -d "$lt_sys_path" && \
11890	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11891    fi
11892  done
11893  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11894BEGIN {RS = " "; FS = "/|\n";} {
11895  lt_foo = "";
11896  lt_count = 0;
11897  for (lt_i = NF; lt_i > 0; lt_i--) {
11898    if ($lt_i != "" && $lt_i != ".") {
11899      if ($lt_i == "..") {
11900        lt_count++;
11901      } else {
11902        if (lt_count == 0) {
11903          lt_foo = "/" $lt_i lt_foo;
11904        } else {
11905          lt_count--;
11906        }
11907      }
11908    }
11909  }
11910  if (lt_foo != "") { lt_freq[lt_foo]++; }
11911  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11912}'`
11913  # AWK program above erroneously prepends '/' to C:/dos/paths
11914  # for these hosts.
11915  case $host_os in
11916    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11917      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11918  esac
11919  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11920else
11921  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11922fi
11923library_names_spec=
11924libname_spec='lib$name'
11925soname_spec=
11926shrext_cmds=.so
11927postinstall_cmds=
11928postuninstall_cmds=
11929finish_cmds=
11930finish_eval=
11931shlibpath_var=
11932shlibpath_overrides_runpath=unknown
11933version_type=none
11934dynamic_linker="$host_os ld.so"
11935sys_lib_dlsearch_path_spec="/lib /usr/lib"
11936need_lib_prefix=unknown
11937hardcode_into_libs=no
11938
11939# when you set need_version to no, make sure it does not cause -set_version
11940# flags to be left without arguments
11941need_version=unknown
11942
11943
11944
11945case $host_os in
11946aix3*)
11947  version_type=linux # correct to gnu/linux during the next big refactor
11948  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11949  shlibpath_var=LIBPATH
11950
11951  # AIX 3 has no versioning support, so we append a major version to the name.
11952  soname_spec='$libname$release$shared_ext$major'
11953  ;;
11954
11955aix[4-9]*)
11956  version_type=linux # correct to gnu/linux during the next big refactor
11957  need_lib_prefix=no
11958  need_version=no
11959  hardcode_into_libs=yes
11960  if test ia64 = "$host_cpu"; then
11961    # AIX 5 supports IA64
11962    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11963    shlibpath_var=LD_LIBRARY_PATH
11964  else
11965    # With GCC up to 2.95.x, collect2 would create an import file
11966    # for dependence libraries.  The import file would start with
11967    # the line '#! .'.  This would cause the generated library to
11968    # depend on '.', always an invalid library.  This was fixed in
11969    # development snapshots of GCC prior to 3.0.
11970    case $host_os in
11971      aix4 | aix4.[01] | aix4.[01].*)
11972      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11973	   echo ' yes '
11974	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11975	:
11976      else
11977	can_build_shared=no
11978      fi
11979      ;;
11980    esac
11981    # Using Import Files as archive members, it is possible to support
11982    # filename-based versioning of shared library archives on AIX. While
11983    # this would work for both with and without runtime linking, it will
11984    # prevent static linking of such archives. So we do filename-based
11985    # shared library versioning with .so extension only, which is used
11986    # when both runtime linking and shared linking is enabled.
11987    # Unfortunately, runtime linking may impact performance, so we do
11988    # not want this to be the default eventually. Also, we use the
11989    # versioned .so libs for executables only if there is the -brtl
11990    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11991    # To allow for filename-based versioning support, we need to create
11992    # libNAME.so.V as an archive file, containing:
11993    # *) an Import File, referring to the versioned filename of the
11994    #    archive as well as the shared archive member, telling the
11995    #    bitwidth (32 or 64) of that shared object, and providing the
11996    #    list of exported symbols of that shared object, eventually
11997    #    decorated with the 'weak' keyword
11998    # *) the shared object with the F_LOADONLY flag set, to really avoid
11999    #    it being seen by the linker.
12000    # At run time we better use the real file rather than another symlink,
12001    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12002
12003    case $with_aix_soname,$aix_use_runtimelinking in
12004    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12005    # soname into executable. Probably we can add versioning support to
12006    # collect2, so additional links can be useful in future.
12007    aix,yes) # traditional libtool
12008      dynamic_linker='AIX unversionable lib.so'
12009      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12010      # instead of lib<name>.a to let people know that these are not
12011      # typical AIX shared libraries.
12012      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12013      ;;
12014    aix,no) # traditional AIX only
12015      dynamic_linker='AIX lib.a(lib.so.V)'
12016      # We preserve .a as extension for shared libraries through AIX4.2
12017      # and later when we are not doing run time linking.
12018      library_names_spec='$libname$release.a $libname.a'
12019      soname_spec='$libname$release$shared_ext$major'
12020      ;;
12021    svr4,*) # full svr4 only
12022      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12023      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12024      # We do not specify a path in Import Files, so LIBPATH fires.
12025      shlibpath_overrides_runpath=yes
12026      ;;
12027    *,yes) # both, prefer svr4
12028      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12029      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12030      # unpreferred sharedlib libNAME.a needs extra handling
12031      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12032      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12033      # We do not specify a path in Import Files, so LIBPATH fires.
12034      shlibpath_overrides_runpath=yes
12035      ;;
12036    *,no) # both, prefer aix
12037      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12038      library_names_spec='$libname$release.a $libname.a'
12039      soname_spec='$libname$release$shared_ext$major'
12040      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12041      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12042      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12043      ;;
12044    esac
12045    shlibpath_var=LIBPATH
12046  fi
12047  ;;
12048
12049amigaos*)
12050  case $host_cpu in
12051  powerpc)
12052    # Since July 2007 AmigaOS4 officially supports .so libraries.
12053    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12054    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055    ;;
12056  m68k)
12057    library_names_spec='$libname.ixlibrary $libname.a'
12058    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12059    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12060    ;;
12061  esac
12062  ;;
12063
12064beos*)
12065  library_names_spec='$libname$shared_ext'
12066  dynamic_linker="$host_os ld.so"
12067  shlibpath_var=LIBRARY_PATH
12068  ;;
12069
12070bsdi[45]*)
12071  version_type=linux # correct to gnu/linux during the next big refactor
12072  need_version=no
12073  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12074  soname_spec='$libname$release$shared_ext$major'
12075  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12076  shlibpath_var=LD_LIBRARY_PATH
12077  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12078  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12079  # the default ld.so.conf also contains /usr/contrib/lib and
12080  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12081  # libtool to hard-code these into programs
12082  ;;
12083
12084cygwin* | mingw* | pw32* | cegcc*)
12085  version_type=windows
12086  shrext_cmds=.dll
12087  need_version=no
12088  need_lib_prefix=no
12089
12090  case $GCC,$cc_basename in
12091  yes,*)
12092    # gcc
12093    library_names_spec='$libname.dll.a'
12094    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12095    postinstall_cmds='base_file=`basename \$file`~
12096      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12097      dldir=$destdir/`dirname \$dlpath`~
12098      test -d \$dldir || mkdir -p \$dldir~
12099      $install_prog $dir/$dlname \$dldir/$dlname~
12100      chmod a+x \$dldir/$dlname~
12101      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12102        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12103      fi'
12104    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12105      dlpath=$dir/\$dldll~
12106       $RM \$dlpath'
12107    shlibpath_overrides_runpath=yes
12108
12109    case $host_os in
12110    cygwin*)
12111      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12112      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12113
12114      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12115      ;;
12116    mingw* | cegcc*)
12117      # MinGW DLLs use traditional 'lib' prefix
12118      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12119      ;;
12120    pw32*)
12121      # pw32 DLLs use 'pw' prefix rather than 'lib'
12122      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12123      ;;
12124    esac
12125    dynamic_linker='Win32 ld.exe'
12126    ;;
12127
12128  *,cl*)
12129    # Native MSVC
12130    libname_spec='$name'
12131    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12132    library_names_spec='$libname.dll.lib'
12133
12134    case $build_os in
12135    mingw*)
12136      sys_lib_search_path_spec=
12137      lt_save_ifs=$IFS
12138      IFS=';'
12139      for lt_path in $LIB
12140      do
12141        IFS=$lt_save_ifs
12142        # Let DOS variable expansion print the short 8.3 style file name.
12143        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12144        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12145      done
12146      IFS=$lt_save_ifs
12147      # Convert to MSYS style.
12148      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12149      ;;
12150    cygwin*)
12151      # Convert to unix form, then to dos form, then back to unix form
12152      # but this time dos style (no spaces!) so that the unix form looks
12153      # like /cygdrive/c/PROGRA~1:/cygdr...
12154      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12155      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12156      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12157      ;;
12158    *)
12159      sys_lib_search_path_spec=$LIB
12160      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12161        # It is most probably a Windows format PATH.
12162        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12163      else
12164        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12165      fi
12166      # FIXME: find the short name or the path components, as spaces are
12167      # common. (e.g. "Program Files" -> "PROGRA~1")
12168      ;;
12169    esac
12170
12171    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12172    postinstall_cmds='base_file=`basename \$file`~
12173      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12174      dldir=$destdir/`dirname \$dlpath`~
12175      test -d \$dldir || mkdir -p \$dldir~
12176      $install_prog $dir/$dlname \$dldir/$dlname'
12177    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12178      dlpath=$dir/\$dldll~
12179       $RM \$dlpath'
12180    shlibpath_overrides_runpath=yes
12181    dynamic_linker='Win32 link.exe'
12182    ;;
12183
12184  *)
12185    # Assume MSVC wrapper
12186    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12187    dynamic_linker='Win32 ld.exe'
12188    ;;
12189  esac
12190  # FIXME: first we should search . and the directory the executable is in
12191  shlibpath_var=PATH
12192  ;;
12193
12194darwin* | rhapsody*)
12195  dynamic_linker="$host_os dyld"
12196  version_type=darwin
12197  need_lib_prefix=no
12198  need_version=no
12199  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12200  soname_spec='$libname$release$major$shared_ext'
12201  shlibpath_overrides_runpath=yes
12202  shlibpath_var=DYLD_LIBRARY_PATH
12203  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12204
12205  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12206  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12207  ;;
12208
12209dgux*)
12210  version_type=linux # correct to gnu/linux during the next big refactor
12211  need_lib_prefix=no
12212  need_version=no
12213  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214  soname_spec='$libname$release$shared_ext$major'
12215  shlibpath_var=LD_LIBRARY_PATH
12216  ;;
12217
12218freebsd* | dragonfly*)
12219  # DragonFly does not have aout.  When/if they implement a new
12220  # versioning mechanism, adjust this.
12221  if test -x /usr/bin/objformat; then
12222    objformat=`/usr/bin/objformat`
12223  else
12224    case $host_os in
12225    freebsd[23].*) objformat=aout ;;
12226    *) objformat=elf ;;
12227    esac
12228  fi
12229  # Handle Gentoo/FreeBSD as it was Linux
12230  case $host_vendor in
12231    gentoo)
12232      version_type=linux ;;
12233    *)
12234      version_type=freebsd-$objformat ;;
12235  esac
12236
12237  case $version_type in
12238    freebsd-elf*)
12239      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240      soname_spec='$libname$release$shared_ext$major'
12241      need_version=no
12242      need_lib_prefix=no
12243      ;;
12244    freebsd-*)
12245      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12246      need_version=yes
12247      ;;
12248    linux)
12249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12250      soname_spec='${libname}${release}${shared_ext}$major'
12251      need_lib_prefix=no
12252      need_version=no
12253      ;;
12254  esac
12255  shlibpath_var=LD_LIBRARY_PATH
12256  case $host_os in
12257  freebsd2.*)
12258    shlibpath_overrides_runpath=yes
12259    ;;
12260  freebsd3.[01]* | freebsdelf3.[01]*)
12261    shlibpath_overrides_runpath=yes
12262    hardcode_into_libs=yes
12263    ;;
12264  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12265  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12266    shlibpath_overrides_runpath=no
12267    hardcode_into_libs=yes
12268    ;;
12269  *) # from 4.6 on, and DragonFly
12270    shlibpath_overrides_runpath=yes
12271    hardcode_into_libs=yes
12272    ;;
12273  esac
12274  ;;
12275
12276haiku*)
12277  version_type=linux # correct to gnu/linux during the next big refactor
12278  need_lib_prefix=no
12279  need_version=no
12280  dynamic_linker="$host_os runtime_loader"
12281  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12282  soname_spec='$libname$release$shared_ext$major'
12283  shlibpath_var=LIBRARY_PATH
12284  shlibpath_overrides_runpath=no
12285  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12286  hardcode_into_libs=yes
12287  ;;
12288
12289hpux9* | hpux10* | hpux11*)
12290  # Give a soname corresponding to the major version so that dld.sl refuses to
12291  # link against other versions.
12292  version_type=sunos
12293  need_lib_prefix=no
12294  need_version=no
12295  case $host_cpu in
12296  ia64*)
12297    shrext_cmds='.so'
12298    hardcode_into_libs=yes
12299    dynamic_linker="$host_os dld.so"
12300    shlibpath_var=LD_LIBRARY_PATH
12301    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12302    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303    soname_spec='$libname$release$shared_ext$major'
12304    if test 32 = "$HPUX_IA64_MODE"; then
12305      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12306      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12307    else
12308      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12309      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12310    fi
12311    ;;
12312  hppa*64*)
12313    shrext_cmds='.sl'
12314    hardcode_into_libs=yes
12315    dynamic_linker="$host_os dld.sl"
12316    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12317    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12318    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319    soname_spec='$libname$release$shared_ext$major'
12320    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12321    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12322    ;;
12323  *)
12324    shrext_cmds='.sl'
12325    dynamic_linker="$host_os dld.sl"
12326    shlibpath_var=SHLIB_PATH
12327    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12328    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12329    soname_spec='$libname$release$shared_ext$major'
12330    ;;
12331  esac
12332  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12333  postinstall_cmds='chmod 555 $lib'
12334  # or fails outright, so override atomically:
12335  install_override_mode=555
12336  ;;
12337
12338interix[3-9]*)
12339  version_type=linux # correct to gnu/linux during the next big refactor
12340  need_lib_prefix=no
12341  need_version=no
12342  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12343  soname_spec='$libname$release$shared_ext$major'
12344  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12345  shlibpath_var=LD_LIBRARY_PATH
12346  shlibpath_overrides_runpath=no
12347  hardcode_into_libs=yes
12348  ;;
12349
12350irix5* | irix6* | nonstopux*)
12351  case $host_os in
12352    nonstopux*) version_type=nonstopux ;;
12353    *)
12354	if test yes = "$lt_cv_prog_gnu_ld"; then
12355		version_type=linux # correct to gnu/linux during the next big refactor
12356	else
12357		version_type=irix
12358	fi ;;
12359  esac
12360  need_lib_prefix=no
12361  need_version=no
12362  soname_spec='$libname$release$shared_ext$major'
12363  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12364  case $host_os in
12365  irix5* | nonstopux*)
12366    libsuff= shlibsuff=
12367    ;;
12368  *)
12369    case $LD in # libtool.m4 will add one of these switches to LD
12370    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12371      libsuff= shlibsuff= libmagic=32-bit;;
12372    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12373      libsuff=32 shlibsuff=N32 libmagic=N32;;
12374    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12375      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12376    *) libsuff= shlibsuff= libmagic=never-match;;
12377    esac
12378    ;;
12379  esac
12380  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12381  shlibpath_overrides_runpath=no
12382  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12383  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12384  hardcode_into_libs=yes
12385  ;;
12386
12387# No shared lib support for Linux oldld, aout, or coff.
12388linux*oldld* | linux*aout* | linux*coff*)
12389  dynamic_linker=no
12390  ;;
12391
12392linux*android*)
12393  version_type=none # Android doesn't support versioned libraries.
12394  need_lib_prefix=no
12395  need_version=no
12396  library_names_spec='$libname$release$shared_ext'
12397  soname_spec='$libname$release$shared_ext'
12398  finish_cmds=
12399  shlibpath_var=LD_LIBRARY_PATH
12400  shlibpath_overrides_runpath=yes
12401
12402  # This implies no fast_install, which is unacceptable.
12403  # Some rework will be needed to allow for fast_install
12404  # before this can be enabled.
12405  hardcode_into_libs=yes
12406
12407  dynamic_linker='Android linker'
12408  # Don't embed -rpath directories since the linker doesn't support them.
12409  hardcode_libdir_flag_spec='-L$libdir'
12410  ;;
12411
12412# This must be glibc/ELF.
12413linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12414  version_type=linux # correct to gnu/linux during the next big refactor
12415  need_lib_prefix=no
12416  need_version=no
12417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12418  soname_spec='$libname$release$shared_ext$major'
12419  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12420  shlibpath_var=LD_LIBRARY_PATH
12421  shlibpath_overrides_runpath=no
12422
12423  # Some binutils ld are patched to set DT_RUNPATH
12424  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12425  $as_echo_n "(cached) " >&6
12426else
12427  lt_cv_shlibpath_overrides_runpath=no
12428    save_LDFLAGS=$LDFLAGS
12429    save_libdir=$libdir
12430    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12431	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433/* end confdefs.h.  */
12434
12435int
12436main ()
12437{
12438
12439  ;
12440  return 0;
12441}
12442_ACEOF
12443if ac_fn_c_try_link "$LINENO"; then :
12444  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12445  lt_cv_shlibpath_overrides_runpath=yes
12446fi
12447fi
12448rm -f core conftest.err conftest.$ac_objext \
12449    conftest$ac_exeext conftest.$ac_ext
12450    LDFLAGS=$save_LDFLAGS
12451    libdir=$save_libdir
12452
12453fi
12454
12455  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12456
12457  # This implies no fast_install, which is unacceptable.
12458  # Some rework will be needed to allow for fast_install
12459  # before this can be enabled.
12460  hardcode_into_libs=yes
12461
12462  # Ideally, we could use ldconfig to report *all* directores which are
12463  # searched for libraries, however this is still not possible.  Aside from not
12464  # being certain /sbin/ldconfig is available, command
12465  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12466  # even though it is searched at run-time.  Try to do the best guess by
12467  # appending ld.so.conf contents (and includes) to the search path.
12468  if test -f /etc/ld.so.conf; then
12469    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' ' '`
12470    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12471  fi
12472
12473  # We used to test for /lib/ld.so.1 and disable shared libraries on
12474  # powerpc, because MkLinux only supported shared libraries with the
12475  # GNU dynamic linker.  Since this was broken with cross compilers,
12476  # most powerpc-linux boxes support dynamic linking these days and
12477  # people can always --disable-shared, the test was removed, and we
12478  # assume the GNU/Linux dynamic linker is in use.
12479  dynamic_linker='GNU/Linux ld.so'
12480  ;;
12481
12482netbsd*)
12483  version_type=sunos
12484  need_lib_prefix=no
12485  need_version=no
12486  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12487    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12488    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12489    dynamic_linker='NetBSD (a.out) ld.so'
12490  else
12491    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12492    soname_spec='$libname$release$shared_ext$major'
12493    dynamic_linker='NetBSD ld.elf_so'
12494  fi
12495  shlibpath_var=LD_LIBRARY_PATH
12496  shlibpath_overrides_runpath=yes
12497  hardcode_into_libs=yes
12498  ;;
12499
12500newsos6)
12501  version_type=linux # correct to gnu/linux during the next big refactor
12502  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12503  shlibpath_var=LD_LIBRARY_PATH
12504  shlibpath_overrides_runpath=yes
12505  ;;
12506
12507*nto* | *qnx*)
12508  version_type=qnx
12509  need_lib_prefix=no
12510  need_version=no
12511  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12512  soname_spec='$libname$release$shared_ext$major'
12513  shlibpath_var=LD_LIBRARY_PATH
12514  shlibpath_overrides_runpath=no
12515  hardcode_into_libs=yes
12516  dynamic_linker='ldqnx.so'
12517  ;;
12518
12519openbsd* | bitrig*)
12520  version_type=sunos
12521  sys_lib_dlsearch_path_spec=/usr/lib
12522  need_lib_prefix=no
12523  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12524    need_version=no
12525  else
12526    need_version=yes
12527  fi
12528  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12529  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12530  shlibpath_var=LD_LIBRARY_PATH
12531  shlibpath_overrides_runpath=yes
12532  ;;
12533
12534os2*)
12535  libname_spec='$name'
12536  version_type=windows
12537  shrext_cmds=.dll
12538  need_version=no
12539  need_lib_prefix=no
12540  # OS/2 can only load a DLL with a base name of 8 characters or less.
12541  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12542    v=$($ECHO $release$versuffix | tr -d .-);
12543    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12544    $ECHO $n$v`$shared_ext'
12545  library_names_spec='${libname}_dll.$libext'
12546  dynamic_linker='OS/2 ld.exe'
12547  shlibpath_var=BEGINLIBPATH
12548  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12549  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12550  postinstall_cmds='base_file=`basename \$file`~
12551    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12552    dldir=$destdir/`dirname \$dlpath`~
12553    test -d \$dldir || mkdir -p \$dldir~
12554    $install_prog $dir/$dlname \$dldir/$dlname~
12555    chmod a+x \$dldir/$dlname~
12556    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12557      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12558    fi'
12559  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12560    dlpath=$dir/\$dldll~
12561    $RM \$dlpath'
12562  ;;
12563
12564osf3* | osf4* | osf5*)
12565  version_type=osf
12566  need_lib_prefix=no
12567  need_version=no
12568  soname_spec='$libname$release$shared_ext$major'
12569  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12570  shlibpath_var=LD_LIBRARY_PATH
12571  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12572  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12573  ;;
12574
12575rdos*)
12576  dynamic_linker=no
12577  ;;
12578
12579solaris*)
12580  version_type=linux # correct to gnu/linux during the next big refactor
12581  need_lib_prefix=no
12582  need_version=no
12583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584  soname_spec='$libname$release$shared_ext$major'
12585  shlibpath_var=LD_LIBRARY_PATH
12586  shlibpath_overrides_runpath=yes
12587  hardcode_into_libs=yes
12588  # ldd complains unless libraries are executable
12589  postinstall_cmds='chmod +x $lib'
12590  ;;
12591
12592sunos4*)
12593  version_type=sunos
12594  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12595  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12596  shlibpath_var=LD_LIBRARY_PATH
12597  shlibpath_overrides_runpath=yes
12598  if test yes = "$with_gnu_ld"; then
12599    need_lib_prefix=no
12600  fi
12601  need_version=yes
12602  ;;
12603
12604sysv4 | sysv4.3*)
12605  version_type=linux # correct to gnu/linux during the next big refactor
12606  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12607  soname_spec='$libname$release$shared_ext$major'
12608  shlibpath_var=LD_LIBRARY_PATH
12609  case $host_vendor in
12610    sni)
12611      shlibpath_overrides_runpath=no
12612      need_lib_prefix=no
12613      runpath_var=LD_RUN_PATH
12614      ;;
12615    siemens)
12616      need_lib_prefix=no
12617      ;;
12618    motorola)
12619      need_lib_prefix=no
12620      need_version=no
12621      shlibpath_overrides_runpath=no
12622      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12623      ;;
12624  esac
12625  ;;
12626
12627sysv4*MP*)
12628  if test -d /usr/nec; then
12629    version_type=linux # correct to gnu/linux during the next big refactor
12630    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12631    soname_spec='$libname$shared_ext.$major'
12632    shlibpath_var=LD_LIBRARY_PATH
12633  fi
12634  ;;
12635
12636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12637  version_type=sco
12638  need_lib_prefix=no
12639  need_version=no
12640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12641  soname_spec='$libname$release$shared_ext$major'
12642  shlibpath_var=LD_LIBRARY_PATH
12643  shlibpath_overrides_runpath=yes
12644  hardcode_into_libs=yes
12645  if test yes = "$with_gnu_ld"; then
12646    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12647  else
12648    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12649    case $host_os in
12650      sco3.2v5*)
12651        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12652	;;
12653    esac
12654  fi
12655  sys_lib_dlsearch_path_spec='/usr/lib'
12656  ;;
12657
12658tpf*)
12659  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12660  version_type=linux # correct to gnu/linux during the next big refactor
12661  need_lib_prefix=no
12662  need_version=no
12663  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664  shlibpath_var=LD_LIBRARY_PATH
12665  shlibpath_overrides_runpath=no
12666  hardcode_into_libs=yes
12667  ;;
12668
12669uts4*)
12670  version_type=linux # correct to gnu/linux during the next big refactor
12671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12672  soname_spec='$libname$release$shared_ext$major'
12673  shlibpath_var=LD_LIBRARY_PATH
12674  ;;
12675
12676*)
12677  dynamic_linker=no
12678  ;;
12679esac
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12681$as_echo "$dynamic_linker" >&6; }
12682test no = "$dynamic_linker" && can_build_shared=no
12683
12684variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12685if test yes = "$GCC"; then
12686  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12687fi
12688
12689if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12690  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12691fi
12692
12693if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12694  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12695fi
12696
12697# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12698configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12699
12700# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12701func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12702
12703# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12704configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12803$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12804hardcode_action=
12805if test -n "$hardcode_libdir_flag_spec" ||
12806   test -n "$runpath_var" ||
12807   test yes = "$hardcode_automatic"; then
12808
12809  # We can hardcode non-existent directories.
12810  if test no != "$hardcode_direct" &&
12811     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12812     # have to relink, otherwise we might link with an installed library
12813     # when we should be linking with a yet-to-be-installed one
12814     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12815     test no != "$hardcode_minus_L"; then
12816    # Linking always hardcodes the temporary library directory.
12817    hardcode_action=relink
12818  else
12819    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12820    hardcode_action=immediate
12821  fi
12822else
12823  # We cannot hardcode anything, or else we can only hardcode existing
12824  # directories.
12825  hardcode_action=unsupported
12826fi
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12828$as_echo "$hardcode_action" >&6; }
12829
12830if test relink = "$hardcode_action" ||
12831   test yes = "$inherit_rpath"; then
12832  # Fast installation is not supported
12833  enable_fast_install=no
12834elif test yes = "$shlibpath_overrides_runpath" ||
12835     test no = "$enable_shared"; then
12836  # Fast installation is not necessary
12837  enable_fast_install=needless
12838fi
12839
12840
12841
12842
12843
12844
12845  if test yes != "$enable_dlopen"; then
12846  enable_dlopen=unknown
12847  enable_dlopen_self=unknown
12848  enable_dlopen_self_static=unknown
12849else
12850  lt_cv_dlopen=no
12851  lt_cv_dlopen_libs=
12852
12853  case $host_os in
12854  beos*)
12855    lt_cv_dlopen=load_add_on
12856    lt_cv_dlopen_libs=
12857    lt_cv_dlopen_self=yes
12858    ;;
12859
12860  mingw* | pw32* | cegcc*)
12861    lt_cv_dlopen=LoadLibrary
12862    lt_cv_dlopen_libs=
12863    ;;
12864
12865  cygwin*)
12866    lt_cv_dlopen=dlopen
12867    lt_cv_dlopen_libs=
12868    ;;
12869
12870  darwin*)
12871    # if libdl is installed we need to link against it
12872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12873$as_echo_n "checking for dlopen in -ldl... " >&6; }
12874if ${ac_cv_lib_dl_dlopen+:} false; then :
12875  $as_echo_n "(cached) " >&6
12876else
12877  ac_check_lib_save_LIBS=$LIBS
12878LIBS="-ldl  $LIBS"
12879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880/* end confdefs.h.  */
12881
12882/* Override any GCC internal prototype to avoid an error.
12883   Use char because int might match the return type of a GCC
12884   builtin and then its argument prototype would still apply.  */
12885#ifdef __cplusplus
12886extern "C"
12887#endif
12888char dlopen ();
12889int
12890main ()
12891{
12892return dlopen ();
12893  ;
12894  return 0;
12895}
12896_ACEOF
12897if ac_fn_c_try_link "$LINENO"; then :
12898  ac_cv_lib_dl_dlopen=yes
12899else
12900  ac_cv_lib_dl_dlopen=no
12901fi
12902rm -f core conftest.err conftest.$ac_objext \
12903    conftest$ac_exeext conftest.$ac_ext
12904LIBS=$ac_check_lib_save_LIBS
12905fi
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12907$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12908if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12909  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12910else
12911
12912    lt_cv_dlopen=dyld
12913    lt_cv_dlopen_libs=
12914    lt_cv_dlopen_self=yes
12915
12916fi
12917
12918    ;;
12919
12920  tpf*)
12921    # Don't try to run any link tests for TPF.  We know it's impossible
12922    # because TPF is a cross-compiler, and we know how we open DSOs.
12923    lt_cv_dlopen=dlopen
12924    lt_cv_dlopen_libs=
12925    lt_cv_dlopen_self=no
12926    ;;
12927
12928  *)
12929    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12930if test "x$ac_cv_func_shl_load" = xyes; then :
12931  lt_cv_dlopen=shl_load
12932else
12933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12934$as_echo_n "checking for shl_load in -ldld... " >&6; }
12935if ${ac_cv_lib_dld_shl_load+:} false; then :
12936  $as_echo_n "(cached) " >&6
12937else
12938  ac_check_lib_save_LIBS=$LIBS
12939LIBS="-ldld  $LIBS"
12940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942
12943/* Override any GCC internal prototype to avoid an error.
12944   Use char because int might match the return type of a GCC
12945   builtin and then its argument prototype would still apply.  */
12946#ifdef __cplusplus
12947extern "C"
12948#endif
12949char shl_load ();
12950int
12951main ()
12952{
12953return shl_load ();
12954  ;
12955  return 0;
12956}
12957_ACEOF
12958if ac_fn_c_try_link "$LINENO"; then :
12959  ac_cv_lib_dld_shl_load=yes
12960else
12961  ac_cv_lib_dld_shl_load=no
12962fi
12963rm -f core conftest.err conftest.$ac_objext \
12964    conftest$ac_exeext conftest.$ac_ext
12965LIBS=$ac_check_lib_save_LIBS
12966fi
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12968$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12969if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12970  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12971else
12972  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12973if test "x$ac_cv_func_dlopen" = xyes; then :
12974  lt_cv_dlopen=dlopen
12975else
12976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12977$as_echo_n "checking for dlopen in -ldl... " >&6; }
12978if ${ac_cv_lib_dl_dlopen+:} false; then :
12979  $as_echo_n "(cached) " >&6
12980else
12981  ac_check_lib_save_LIBS=$LIBS
12982LIBS="-ldl  $LIBS"
12983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h.  */
12985
12986/* Override any GCC internal prototype to avoid an error.
12987   Use char because int might match the return type of a GCC
12988   builtin and then its argument prototype would still apply.  */
12989#ifdef __cplusplus
12990extern "C"
12991#endif
12992char dlopen ();
12993int
12994main ()
12995{
12996return dlopen ();
12997  ;
12998  return 0;
12999}
13000_ACEOF
13001if ac_fn_c_try_link "$LINENO"; then :
13002  ac_cv_lib_dl_dlopen=yes
13003else
13004  ac_cv_lib_dl_dlopen=no
13005fi
13006rm -f core conftest.err conftest.$ac_objext \
13007    conftest$ac_exeext conftest.$ac_ext
13008LIBS=$ac_check_lib_save_LIBS
13009fi
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13011$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13012if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13013  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13014else
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13016$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13017if ${ac_cv_lib_svld_dlopen+:} false; then :
13018  $as_echo_n "(cached) " >&6
13019else
13020  ac_check_lib_save_LIBS=$LIBS
13021LIBS="-lsvld  $LIBS"
13022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h.  */
13024
13025/* Override any GCC internal prototype to avoid an error.
13026   Use char because int might match the return type of a GCC
13027   builtin and then its argument prototype would still apply.  */
13028#ifdef __cplusplus
13029extern "C"
13030#endif
13031char dlopen ();
13032int
13033main ()
13034{
13035return dlopen ();
13036  ;
13037  return 0;
13038}
13039_ACEOF
13040if ac_fn_c_try_link "$LINENO"; then :
13041  ac_cv_lib_svld_dlopen=yes
13042else
13043  ac_cv_lib_svld_dlopen=no
13044fi
13045rm -f core conftest.err conftest.$ac_objext \
13046    conftest$ac_exeext conftest.$ac_ext
13047LIBS=$ac_check_lib_save_LIBS
13048fi
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13050$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13051if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13052  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13053else
13054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13055$as_echo_n "checking for dld_link in -ldld... " >&6; }
13056if ${ac_cv_lib_dld_dld_link+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  ac_check_lib_save_LIBS=$LIBS
13060LIBS="-ldld  $LIBS"
13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h.  */
13063
13064/* Override any GCC internal prototype to avoid an error.
13065   Use char because int might match the return type of a GCC
13066   builtin and then its argument prototype would still apply.  */
13067#ifdef __cplusplus
13068extern "C"
13069#endif
13070char dld_link ();
13071int
13072main ()
13073{
13074return dld_link ();
13075  ;
13076  return 0;
13077}
13078_ACEOF
13079if ac_fn_c_try_link "$LINENO"; then :
13080  ac_cv_lib_dld_dld_link=yes
13081else
13082  ac_cv_lib_dld_dld_link=no
13083fi
13084rm -f core conftest.err conftest.$ac_objext \
13085    conftest$ac_exeext conftest.$ac_ext
13086LIBS=$ac_check_lib_save_LIBS
13087fi
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13089$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13090if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13091  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13092fi
13093
13094
13095fi
13096
13097
13098fi
13099
13100
13101fi
13102
13103
13104fi
13105
13106
13107fi
13108
13109    ;;
13110  esac
13111
13112  if test no = "$lt_cv_dlopen"; then
13113    enable_dlopen=no
13114  else
13115    enable_dlopen=yes
13116  fi
13117
13118  case $lt_cv_dlopen in
13119  dlopen)
13120    save_CPPFLAGS=$CPPFLAGS
13121    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13122
13123    save_LDFLAGS=$LDFLAGS
13124    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13125
13126    save_LIBS=$LIBS
13127    LIBS="$lt_cv_dlopen_libs $LIBS"
13128
13129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13130$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13131if ${lt_cv_dlopen_self+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  	  if test yes = "$cross_compiling"; then :
13135  lt_cv_dlopen_self=cross
13136else
13137  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13138  lt_status=$lt_dlunknown
13139  cat > conftest.$ac_ext <<_LT_EOF
13140#line $LINENO "configure"
13141#include "confdefs.h"
13142
13143#if HAVE_DLFCN_H
13144#include <dlfcn.h>
13145#endif
13146
13147#include <stdio.h>
13148
13149#ifdef RTLD_GLOBAL
13150#  define LT_DLGLOBAL		RTLD_GLOBAL
13151#else
13152#  ifdef DL_GLOBAL
13153#    define LT_DLGLOBAL		DL_GLOBAL
13154#  else
13155#    define LT_DLGLOBAL		0
13156#  endif
13157#endif
13158
13159/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13160   find out it does not work in some platform. */
13161#ifndef LT_DLLAZY_OR_NOW
13162#  ifdef RTLD_LAZY
13163#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13164#  else
13165#    ifdef DL_LAZY
13166#      define LT_DLLAZY_OR_NOW		DL_LAZY
13167#    else
13168#      ifdef RTLD_NOW
13169#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13170#      else
13171#        ifdef DL_NOW
13172#          define LT_DLLAZY_OR_NOW	DL_NOW
13173#        else
13174#          define LT_DLLAZY_OR_NOW	0
13175#        endif
13176#      endif
13177#    endif
13178#  endif
13179#endif
13180
13181/* When -fvisibility=hidden is used, assume the code has been annotated
13182   correspondingly for the symbols needed.  */
13183#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13184int fnord () __attribute__((visibility("default")));
13185#endif
13186
13187int fnord () { return 42; }
13188int main ()
13189{
13190  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13191  int status = $lt_dlunknown;
13192
13193  if (self)
13194    {
13195      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13196      else
13197        {
13198	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13199          else puts (dlerror ());
13200	}
13201      /* dlclose (self); */
13202    }
13203  else
13204    puts (dlerror ());
13205
13206  return status;
13207}
13208_LT_EOF
13209  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13210  (eval $ac_link) 2>&5
13211  ac_status=$?
13212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13213  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13214    (./conftest; exit; ) >&5 2>/dev/null
13215    lt_status=$?
13216    case x$lt_status in
13217      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13218      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13219      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13220    esac
13221  else :
13222    # compilation failed
13223    lt_cv_dlopen_self=no
13224  fi
13225fi
13226rm -fr conftest*
13227
13228
13229fi
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13231$as_echo "$lt_cv_dlopen_self" >&6; }
13232
13233    if test yes = "$lt_cv_dlopen_self"; then
13234      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13235      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13236$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13237if ${lt_cv_dlopen_self_static+:} false; then :
13238  $as_echo_n "(cached) " >&6
13239else
13240  	  if test yes = "$cross_compiling"; then :
13241  lt_cv_dlopen_self_static=cross
13242else
13243  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13244  lt_status=$lt_dlunknown
13245  cat > conftest.$ac_ext <<_LT_EOF
13246#line $LINENO "configure"
13247#include "confdefs.h"
13248
13249#if HAVE_DLFCN_H
13250#include <dlfcn.h>
13251#endif
13252
13253#include <stdio.h>
13254
13255#ifdef RTLD_GLOBAL
13256#  define LT_DLGLOBAL		RTLD_GLOBAL
13257#else
13258#  ifdef DL_GLOBAL
13259#    define LT_DLGLOBAL		DL_GLOBAL
13260#  else
13261#    define LT_DLGLOBAL		0
13262#  endif
13263#endif
13264
13265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13266   find out it does not work in some platform. */
13267#ifndef LT_DLLAZY_OR_NOW
13268#  ifdef RTLD_LAZY
13269#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13270#  else
13271#    ifdef DL_LAZY
13272#      define LT_DLLAZY_OR_NOW		DL_LAZY
13273#    else
13274#      ifdef RTLD_NOW
13275#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13276#      else
13277#        ifdef DL_NOW
13278#          define LT_DLLAZY_OR_NOW	DL_NOW
13279#        else
13280#          define LT_DLLAZY_OR_NOW	0
13281#        endif
13282#      endif
13283#    endif
13284#  endif
13285#endif
13286
13287/* When -fvisibility=hidden is used, assume the code has been annotated
13288   correspondingly for the symbols needed.  */
13289#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13290int fnord () __attribute__((visibility("default")));
13291#endif
13292
13293int fnord () { return 42; }
13294int main ()
13295{
13296  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13297  int status = $lt_dlunknown;
13298
13299  if (self)
13300    {
13301      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13302      else
13303        {
13304	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13305          else puts (dlerror ());
13306	}
13307      /* dlclose (self); */
13308    }
13309  else
13310    puts (dlerror ());
13311
13312  return status;
13313}
13314_LT_EOF
13315  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13316  (eval $ac_link) 2>&5
13317  ac_status=$?
13318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13319  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13320    (./conftest; exit; ) >&5 2>/dev/null
13321    lt_status=$?
13322    case x$lt_status in
13323      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13324      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13325      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13326    esac
13327  else :
13328    # compilation failed
13329    lt_cv_dlopen_self_static=no
13330  fi
13331fi
13332rm -fr conftest*
13333
13334
13335fi
13336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13337$as_echo "$lt_cv_dlopen_self_static" >&6; }
13338    fi
13339
13340    CPPFLAGS=$save_CPPFLAGS
13341    LDFLAGS=$save_LDFLAGS
13342    LIBS=$save_LIBS
13343    ;;
13344  esac
13345
13346  case $lt_cv_dlopen_self in
13347  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13348  *) enable_dlopen_self=unknown ;;
13349  esac
13350
13351  case $lt_cv_dlopen_self_static in
13352  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13353  *) enable_dlopen_self_static=unknown ;;
13354  esac
13355fi
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373striplib=
13374old_striplib=
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13376$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13377if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13378  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13379  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13381$as_echo "yes" >&6; }
13382else
13383# FIXME - insert some real tests, host_os isn't really good enough
13384  case $host_os in
13385  darwin*)
13386    if test -n "$STRIP"; then
13387      striplib="$STRIP -x"
13388      old_striplib="$STRIP -S"
13389      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13390$as_echo "yes" >&6; }
13391    else
13392      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
13394    fi
13395    ;;
13396  *)
13397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398$as_echo "no" >&6; }
13399    ;;
13400  esac
13401fi
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414  # Report what library types will actually be built
13415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13416$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13418$as_echo "$can_build_shared" >&6; }
13419
13420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13421$as_echo_n "checking whether to build shared libraries... " >&6; }
13422  test no = "$can_build_shared" && enable_shared=no
13423
13424  # On AIX, shared libraries and static libraries use the same namespace, and
13425  # are all built from PIC.
13426  case $host_os in
13427  aix3*)
13428    test yes = "$enable_shared" && enable_static=no
13429    if test -n "$RANLIB"; then
13430      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13431      postinstall_cmds='$RANLIB $lib'
13432    fi
13433    ;;
13434
13435  aix[4-9]*)
13436    if test ia64 != "$host_cpu"; then
13437      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13438      yes,aix,yes) ;;			# shared object as lib.so file only
13439      yes,svr4,*) ;;			# shared object as lib.so archive member only
13440      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13441      esac
13442    fi
13443    ;;
13444  esac
13445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13446$as_echo "$enable_shared" >&6; }
13447
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13449$as_echo_n "checking whether to build static libraries... " >&6; }
13450  # Make sure either enable_shared or enable_static is yes.
13451  test yes = "$enable_shared" || enable_static=yes
13452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13453$as_echo "$enable_static" >&6; }
13454
13455
13456
13457
13458fi
13459ac_ext=c
13460ac_cpp='$CPP $CPPFLAGS'
13461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13463ac_compiler_gnu=$ac_cv_c_compiler_gnu
13464
13465CC=$lt_save_CC
13466
13467      if test -n "$CXX" && ( test no != "$CXX" &&
13468    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13469    (test g++ != "$CXX"))); then
13470  ac_ext=cpp
13471ac_cpp='$CXXCPP $CPPFLAGS'
13472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13476$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13477if test -z "$CXXCPP"; then
13478  if ${ac_cv_prog_CXXCPP+:} false; then :
13479  $as_echo_n "(cached) " >&6
13480else
13481      # Double quotes because CXXCPP needs to be expanded
13482    for CXXCPP in "$CXX -E" "/lib/cpp"
13483    do
13484      ac_preproc_ok=false
13485for ac_cxx_preproc_warn_flag in '' yes
13486do
13487  # Use a header file that comes with gcc, so configuring glibc
13488  # with a fresh cross-compiler works.
13489  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13490  # <limits.h> exists even on freestanding compilers.
13491  # On the NeXT, cc -E runs the code through the compiler's parser,
13492  # not just through cpp. "Syntax error" is here to catch this case.
13493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494/* end confdefs.h.  */
13495#ifdef __STDC__
13496# include <limits.h>
13497#else
13498# include <assert.h>
13499#endif
13500		     Syntax error
13501_ACEOF
13502if ac_fn_cxx_try_cpp "$LINENO"; then :
13503
13504else
13505  # Broken: fails on valid input.
13506continue
13507fi
13508rm -f conftest.err conftest.i conftest.$ac_ext
13509
13510  # OK, works on sane cases.  Now check whether nonexistent headers
13511  # can be detected and how.
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514#include <ac_nonexistent.h>
13515_ACEOF
13516if ac_fn_cxx_try_cpp "$LINENO"; then :
13517  # Broken: success on invalid input.
13518continue
13519else
13520  # Passes both tests.
13521ac_preproc_ok=:
13522break
13523fi
13524rm -f conftest.err conftest.i conftest.$ac_ext
13525
13526done
13527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13528rm -f conftest.i conftest.err conftest.$ac_ext
13529if $ac_preproc_ok; then :
13530  break
13531fi
13532
13533    done
13534    ac_cv_prog_CXXCPP=$CXXCPP
13535
13536fi
13537  CXXCPP=$ac_cv_prog_CXXCPP
13538else
13539  ac_cv_prog_CXXCPP=$CXXCPP
13540fi
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13542$as_echo "$CXXCPP" >&6; }
13543ac_preproc_ok=false
13544for ac_cxx_preproc_warn_flag in '' yes
13545do
13546  # Use a header file that comes with gcc, so configuring glibc
13547  # with a fresh cross-compiler works.
13548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13549  # <limits.h> exists even on freestanding compilers.
13550  # On the NeXT, cc -E runs the code through the compiler's parser,
13551  # not just through cpp. "Syntax error" is here to catch this case.
13552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553/* end confdefs.h.  */
13554#ifdef __STDC__
13555# include <limits.h>
13556#else
13557# include <assert.h>
13558#endif
13559		     Syntax error
13560_ACEOF
13561if ac_fn_cxx_try_cpp "$LINENO"; then :
13562
13563else
13564  # Broken: fails on valid input.
13565continue
13566fi
13567rm -f conftest.err conftest.i conftest.$ac_ext
13568
13569  # OK, works on sane cases.  Now check whether nonexistent headers
13570  # can be detected and how.
13571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572/* end confdefs.h.  */
13573#include <ac_nonexistent.h>
13574_ACEOF
13575if ac_fn_cxx_try_cpp "$LINENO"; then :
13576  # Broken: success on invalid input.
13577continue
13578else
13579  # Passes both tests.
13580ac_preproc_ok=:
13581break
13582fi
13583rm -f conftest.err conftest.i conftest.$ac_ext
13584
13585done
13586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13587rm -f conftest.i conftest.err conftest.$ac_ext
13588if $ac_preproc_ok; then :
13589
13590else
13591  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13593as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13594See \`config.log' for more details" "$LINENO" 5; }
13595fi
13596
13597ac_ext=c
13598ac_cpp='$CPP $CPPFLAGS'
13599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601ac_compiler_gnu=$ac_cv_c_compiler_gnu
13602
13603else
13604  _lt_caught_CXX_error=yes
13605fi
13606
13607ac_ext=cpp
13608ac_cpp='$CXXCPP $CPPFLAGS'
13609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13612
13613archive_cmds_need_lc_CXX=no
13614allow_undefined_flag_CXX=
13615always_export_symbols_CXX=no
13616archive_expsym_cmds_CXX=
13617compiler_needs_object_CXX=no
13618export_dynamic_flag_spec_CXX=
13619hardcode_direct_CXX=no
13620hardcode_direct_absolute_CXX=no
13621hardcode_libdir_flag_spec_CXX=
13622hardcode_libdir_separator_CXX=
13623hardcode_minus_L_CXX=no
13624hardcode_shlibpath_var_CXX=unsupported
13625hardcode_automatic_CXX=no
13626inherit_rpath_CXX=no
13627module_cmds_CXX=
13628module_expsym_cmds_CXX=
13629link_all_deplibs_CXX=unknown
13630old_archive_cmds_CXX=$old_archive_cmds
13631reload_flag_CXX=$reload_flag
13632reload_cmds_CXX=$reload_cmds
13633no_undefined_flag_CXX=
13634whole_archive_flag_spec_CXX=
13635enable_shared_with_static_runtimes_CXX=no
13636
13637# Source file extension for C++ test sources.
13638ac_ext=cpp
13639
13640# Object file extension for compiled C++ test sources.
13641objext=o
13642objext_CXX=$objext
13643
13644# No sense in running all these tests if we already determined that
13645# the CXX compiler isn't working.  Some variables (like enable_shared)
13646# are currently assumed to apply to all compilers on this platform,
13647# and will be corrupted by setting them based on a non-working compiler.
13648if test yes != "$_lt_caught_CXX_error"; then
13649  # Code to be used in simple compile tests
13650  lt_simple_compile_test_code="int some_variable = 0;"
13651
13652  # Code to be used in simple link tests
13653  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13654
13655  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13656
13657
13658
13659
13660
13661
13662# If no C compiler was specified, use CC.
13663LTCC=${LTCC-"$CC"}
13664
13665# If no C compiler flags were specified, use CFLAGS.
13666LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13667
13668# Allow CC to be a program name with arguments.
13669compiler=$CC
13670
13671
13672  # save warnings/boilerplate of simple test code
13673  ac_outfile=conftest.$ac_objext
13674echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13675eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13676_lt_compiler_boilerplate=`cat conftest.err`
13677$RM conftest*
13678
13679  ac_outfile=conftest.$ac_objext
13680echo "$lt_simple_link_test_code" >conftest.$ac_ext
13681eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13682_lt_linker_boilerplate=`cat conftest.err`
13683$RM -r conftest*
13684
13685
13686  # Allow CC to be a program name with arguments.
13687  lt_save_CC=$CC
13688  lt_save_CFLAGS=$CFLAGS
13689  lt_save_LD=$LD
13690  lt_save_GCC=$GCC
13691  GCC=$GXX
13692  lt_save_with_gnu_ld=$with_gnu_ld
13693  lt_save_path_LD=$lt_cv_path_LD
13694  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13695    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13696  else
13697    $as_unset lt_cv_prog_gnu_ld
13698  fi
13699  if test -n "${lt_cv_path_LDCXX+set}"; then
13700    lt_cv_path_LD=$lt_cv_path_LDCXX
13701  else
13702    $as_unset lt_cv_path_LD
13703  fi
13704  test -z "${LDCXX+set}" || LD=$LDCXX
13705  CC=${CXX-"c++"}
13706  CFLAGS=$CXXFLAGS
13707  compiler=$CC
13708  compiler_CXX=$CC
13709  func_cc_basename $compiler
13710cc_basename=$func_cc_basename_result
13711
13712
13713  if test -n "$compiler"; then
13714    # We don't want -fno-exception when compiling C++ code, so set the
13715    # no_builtin_flag separately
13716    if test yes = "$GXX"; then
13717      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13718    else
13719      lt_prog_compiler_no_builtin_flag_CXX=
13720    fi
13721
13722    if test yes = "$GXX"; then
13723      # Set up default GNU C++ configuration
13724
13725
13726
13727# Check whether --with-gnu-ld was given.
13728if test "${with_gnu_ld+set}" = set; then :
13729  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13730else
13731  with_gnu_ld=no
13732fi
13733
13734ac_prog=ld
13735if test yes = "$GCC"; then
13736  # Check if gcc -print-prog-name=ld gives a path.
13737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13738$as_echo_n "checking for ld used by $CC... " >&6; }
13739  case $host in
13740  *-*-mingw*)
13741    # gcc leaves a trailing carriage return, which upsets mingw
13742    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13743  *)
13744    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13745  esac
13746  case $ac_prog in
13747    # Accept absolute paths.
13748    [\\/]* | ?:[\\/]*)
13749      re_direlt='/[^/][^/]*/\.\./'
13750      # Canonicalize the pathname of ld
13751      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13752      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13753	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13754      done
13755      test -z "$LD" && LD=$ac_prog
13756      ;;
13757  "")
13758    # If it fails, then pretend we aren't using GCC.
13759    ac_prog=ld
13760    ;;
13761  *)
13762    # If it is relative, then search for the first ld in PATH.
13763    with_gnu_ld=unknown
13764    ;;
13765  esac
13766elif test yes = "$with_gnu_ld"; then
13767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13768$as_echo_n "checking for GNU ld... " >&6; }
13769else
13770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13771$as_echo_n "checking for non-GNU ld... " >&6; }
13772fi
13773if ${lt_cv_path_LD+:} false; then :
13774  $as_echo_n "(cached) " >&6
13775else
13776  if test -z "$LD"; then
13777  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13778  for ac_dir in $PATH; do
13779    IFS=$lt_save_ifs
13780    test -z "$ac_dir" && ac_dir=.
13781    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13782      lt_cv_path_LD=$ac_dir/$ac_prog
13783      # Check to see if the program is GNU ld.  I'd rather use --version,
13784      # but apparently some variants of GNU ld only accept -v.
13785      # Break only if it was the GNU/non-GNU ld that we prefer.
13786      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13787      *GNU* | *'with BFD'*)
13788	test no != "$with_gnu_ld" && break
13789	;;
13790      *)
13791	test yes != "$with_gnu_ld" && break
13792	;;
13793      esac
13794    fi
13795  done
13796  IFS=$lt_save_ifs
13797else
13798  lt_cv_path_LD=$LD # Let the user override the test with a path.
13799fi
13800fi
13801
13802LD=$lt_cv_path_LD
13803if test -n "$LD"; then
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13805$as_echo "$LD" >&6; }
13806else
13807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808$as_echo "no" >&6; }
13809fi
13810test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13813if ${lt_cv_prog_gnu_ld+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13817case `$LD -v 2>&1 </dev/null` in
13818*GNU* | *'with BFD'*)
13819  lt_cv_prog_gnu_ld=yes
13820  ;;
13821*)
13822  lt_cv_prog_gnu_ld=no
13823  ;;
13824esac
13825fi
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13827$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13828with_gnu_ld=$lt_cv_prog_gnu_ld
13829
13830
13831
13832
13833
13834
13835
13836      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13837      # archiving commands below assume that GNU ld is being used.
13838      if test yes = "$with_gnu_ld"; then
13839        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13840        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'
13841
13842        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13843        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13844
13845        # If archive_cmds runs LD, not CC, wlarc should be empty
13846        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13847        #     investigate it a little bit more. (MM)
13848        wlarc='$wl'
13849
13850        # ancient GNU ld didn't support --whole-archive et. al.
13851        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13852	  $GREP 'no-whole-archive' > /dev/null; then
13853          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13854        else
13855          whole_archive_flag_spec_CXX=
13856        fi
13857      else
13858        with_gnu_ld=no
13859        wlarc=
13860
13861        # A generic and very simple default shared library creation
13862        # command for GNU C++ for the case where it uses the native
13863        # linker, instead of GNU ld.  If possible, this setting should
13864        # overridden to take advantage of the native linker features on
13865        # the platform it is being used on.
13866        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13867      fi
13868
13869      # Commands to make compiler produce verbose output that lists
13870      # what "hidden" libraries, object files and flags are used when
13871      # linking a shared library.
13872      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13873
13874    else
13875      GXX=no
13876      with_gnu_ld=no
13877      wlarc=
13878    fi
13879
13880    # PORTME: fill in a description of your system's C++ link characteristics
13881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13882$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13883    ld_shlibs_CXX=yes
13884    case $host_os in
13885      aix3*)
13886        # FIXME: insert proper C++ library support
13887        ld_shlibs_CXX=no
13888        ;;
13889      aix[4-9]*)
13890        if test ia64 = "$host_cpu"; then
13891          # On IA64, the linker does run time linking by default, so we don't
13892          # have to do anything special.
13893          aix_use_runtimelinking=no
13894          exp_sym_flag='-Bexport'
13895          no_entry_flag=
13896        else
13897          aix_use_runtimelinking=no
13898
13899          # Test if we are trying to use run time linking or normal
13900          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13901          # have runtime linking enabled, and use it for executables.
13902          # For shared libraries, we enable/disable runtime linking
13903          # depending on the kind of the shared library created -
13904          # when "with_aix_soname,aix_use_runtimelinking" is:
13905          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13906          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13907          #            lib.a           static archive
13908          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13909          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13910          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13911          #            lib.a(lib.so.V) shared, rtl:no
13912          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13913          #            lib.a           static archive
13914          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13915	    for ld_flag in $LDFLAGS; do
13916	      case $ld_flag in
13917	      *-brtl*)
13918	        aix_use_runtimelinking=yes
13919	        break
13920	        ;;
13921	      esac
13922	    done
13923	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13924	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13925	      # so we don't have lib.a shared libs to link our executables.
13926	      # We have to force runtime linking in this case.
13927	      aix_use_runtimelinking=yes
13928	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13929	    fi
13930	    ;;
13931          esac
13932
13933          exp_sym_flag='-bexport'
13934          no_entry_flag='-bnoentry'
13935        fi
13936
13937        # When large executables or shared objects are built, AIX ld can
13938        # have problems creating the table of contents.  If linking a library
13939        # or program results in "error TOC overflow" add -mminimal-toc to
13940        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13941        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13942
13943        archive_cmds_CXX=''
13944        hardcode_direct_CXX=yes
13945        hardcode_direct_absolute_CXX=yes
13946        hardcode_libdir_separator_CXX=':'
13947        link_all_deplibs_CXX=yes
13948        file_list_spec_CXX='$wl-f,'
13949        case $with_aix_soname,$aix_use_runtimelinking in
13950        aix,*) ;;	# no import file
13951        svr4,* | *,yes) # use import file
13952          # The Import File defines what to hardcode.
13953          hardcode_direct_CXX=no
13954          hardcode_direct_absolute_CXX=no
13955          ;;
13956        esac
13957
13958        if test yes = "$GXX"; then
13959          case $host_os in aix4.[012]|aix4.[012].*)
13960          # We only want to do this on AIX 4.2 and lower, the check
13961          # below for broken collect2 doesn't work under 4.3+
13962	  collect2name=`$CC -print-prog-name=collect2`
13963	  if test -f "$collect2name" &&
13964	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13965	  then
13966	    # We have reworked collect2
13967	    :
13968	  else
13969	    # We have old collect2
13970	    hardcode_direct_CXX=unsupported
13971	    # It fails to find uninstalled libraries when the uninstalled
13972	    # path is not listed in the libpath.  Setting hardcode_minus_L
13973	    # to unsupported forces relinking
13974	    hardcode_minus_L_CXX=yes
13975	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13976	    hardcode_libdir_separator_CXX=
13977	  fi
13978          esac
13979          shared_flag='-shared'
13980	  if test yes = "$aix_use_runtimelinking"; then
13981	    shared_flag=$shared_flag' $wl-G'
13982	  fi
13983	  # Need to ensure runtime linking is disabled for the traditional
13984	  # shared library, or the linker may eventually find shared libraries
13985	  # /with/ Import File - we do not want to mix them.
13986	  shared_flag_aix='-shared'
13987	  shared_flag_svr4='-shared $wl-G'
13988        else
13989          # not using gcc
13990          if test ia64 = "$host_cpu"; then
13991	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13992	  # chokes on -Wl,-G. The following line is correct:
13993	  shared_flag='-G'
13994          else
13995	    if test yes = "$aix_use_runtimelinking"; then
13996	      shared_flag='$wl-G'
13997	    else
13998	      shared_flag='$wl-bM:SRE'
13999	    fi
14000	    shared_flag_aix='$wl-bM:SRE'
14001	    shared_flag_svr4='$wl-G'
14002          fi
14003        fi
14004
14005        export_dynamic_flag_spec_CXX='$wl-bexpall'
14006        # It seems that -bexpall does not export symbols beginning with
14007        # underscore (_), so it is better to generate a list of symbols to
14008	# export.
14009        always_export_symbols_CXX=yes
14010	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14011          # Warning - without using the other runtime loading flags (-brtl),
14012          # -berok will link without error, but may produce a broken library.
14013          # The "-G" linker flag allows undefined symbols.
14014          no_undefined_flag_CXX='-bernotok'
14015          # Determine the default libpath from the value encoded in an empty
14016          # executable.
14017          if test set = "${lt_cv_aix_libpath+set}"; then
14018  aix_libpath=$lt_cv_aix_libpath
14019else
14020  if ${lt_cv_aix_libpath__CXX+:} false; then :
14021  $as_echo_n "(cached) " >&6
14022else
14023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025
14026int
14027main ()
14028{
14029
14030  ;
14031  return 0;
14032}
14033_ACEOF
14034if ac_fn_cxx_try_link "$LINENO"; then :
14035
14036  lt_aix_libpath_sed='
14037      /Import File Strings/,/^$/ {
14038	  /^0/ {
14039	      s/^0  *\([^ ]*\) *$/\1/
14040	      p
14041	  }
14042      }'
14043  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14044  # Check for a 64-bit object if we didn't find anything.
14045  if test -z "$lt_cv_aix_libpath__CXX"; then
14046    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14047  fi
14048fi
14049rm -f core conftest.err conftest.$ac_objext \
14050    conftest$ac_exeext conftest.$ac_ext
14051  if test -z "$lt_cv_aix_libpath__CXX"; then
14052    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14053  fi
14054
14055fi
14056
14057  aix_libpath=$lt_cv_aix_libpath__CXX
14058fi
14059
14060          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14061
14062          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14063        else
14064          if test ia64 = "$host_cpu"; then
14065	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14066	    allow_undefined_flag_CXX="-z nodefs"
14067	    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"
14068          else
14069	    # Determine the default libpath from the value encoded in an
14070	    # empty executable.
14071	    if test set = "${lt_cv_aix_libpath+set}"; then
14072  aix_libpath=$lt_cv_aix_libpath
14073else
14074  if ${lt_cv_aix_libpath__CXX+:} false; then :
14075  $as_echo_n "(cached) " >&6
14076else
14077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078/* end confdefs.h.  */
14079
14080int
14081main ()
14082{
14083
14084  ;
14085  return 0;
14086}
14087_ACEOF
14088if ac_fn_cxx_try_link "$LINENO"; then :
14089
14090  lt_aix_libpath_sed='
14091      /Import File Strings/,/^$/ {
14092	  /^0/ {
14093	      s/^0  *\([^ ]*\) *$/\1/
14094	      p
14095	  }
14096      }'
14097  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14098  # Check for a 64-bit object if we didn't find anything.
14099  if test -z "$lt_cv_aix_libpath__CXX"; then
14100    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14101  fi
14102fi
14103rm -f core conftest.err conftest.$ac_objext \
14104    conftest$ac_exeext conftest.$ac_ext
14105  if test -z "$lt_cv_aix_libpath__CXX"; then
14106    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14107  fi
14108
14109fi
14110
14111  aix_libpath=$lt_cv_aix_libpath__CXX
14112fi
14113
14114	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14115	    # Warning - without using the other run time loading flags,
14116	    # -berok will link without error, but may produce a broken library.
14117	    no_undefined_flag_CXX=' $wl-bernotok'
14118	    allow_undefined_flag_CXX=' $wl-berok'
14119	    if test yes = "$with_gnu_ld"; then
14120	      # We only use this code for GNU lds that support --whole-archive.
14121	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14122	    else
14123	      # Exported symbols can be pulled into shared objects from archives
14124	      whole_archive_flag_spec_CXX='$convenience'
14125	    fi
14126	    archive_cmds_need_lc_CXX=yes
14127	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14128	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14129	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14130	    if test svr4 != "$with_aix_soname"; then
14131	      # This is similar to how AIX traditionally builds its shared
14132	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14133	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14134	    fi
14135	    if test aix != "$with_aix_soname"; then
14136	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14137	    else
14138	      # used by -dlpreopen to get the symbols
14139	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14140	    fi
14141	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14142          fi
14143        fi
14144        ;;
14145
14146      beos*)
14147	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14148	  allow_undefined_flag_CXX=unsupported
14149	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14150	  # support --undefined.  This deserves some investigation.  FIXME
14151	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14152	else
14153	  ld_shlibs_CXX=no
14154	fi
14155	;;
14156
14157      chorus*)
14158        case $cc_basename in
14159          *)
14160	  # FIXME: insert proper C++ library support
14161	  ld_shlibs_CXX=no
14162	  ;;
14163        esac
14164        ;;
14165
14166      cygwin* | mingw* | pw32* | cegcc*)
14167	case $GXX,$cc_basename in
14168	,cl* | no,cl*)
14169	  # Native MSVC
14170	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14171	  # no search path for DLLs.
14172	  hardcode_libdir_flag_spec_CXX=' '
14173	  allow_undefined_flag_CXX=unsupported
14174	  always_export_symbols_CXX=yes
14175	  file_list_spec_CXX='@'
14176	  # Tell ltmain to make .lib files, not .a files.
14177	  libext=lib
14178	  # Tell ltmain to make .dll files, not .so files.
14179	  shrext_cmds=.dll
14180	  # FIXME: Setting linknames here is a bad hack.
14181	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14182	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14183              cp "$export_symbols" "$output_objdir/$soname.def";
14184              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14185            else
14186              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14187            fi~
14188            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14189            linknames='
14190	  # The linker will not automatically build a static lib if we build a DLL.
14191	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14192	  enable_shared_with_static_runtimes_CXX=yes
14193	  # Don't use ranlib
14194	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14195	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14196            lt_tool_outputfile="@TOOL_OUTPUT@"~
14197            case $lt_outputfile in
14198              *.exe|*.EXE) ;;
14199              *)
14200                lt_outputfile=$lt_outputfile.exe
14201                lt_tool_outputfile=$lt_tool_outputfile.exe
14202                ;;
14203            esac~
14204            func_to_tool_file "$lt_outputfile"~
14205            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14206              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14207              $RM "$lt_outputfile.manifest";
14208            fi'
14209	  ;;
14210	*)
14211	  # g++
14212	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14213	  # as there is no search path for DLLs.
14214	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14215	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14216	  allow_undefined_flag_CXX=unsupported
14217	  always_export_symbols_CXX=no
14218	  enable_shared_with_static_runtimes_CXX=yes
14219
14220	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14221	    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'
14222	    # If the export-symbols file already is a .def file, use it as
14223	    # is; otherwise, prepend EXPORTS...
14224	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14225              cp $export_symbols $output_objdir/$soname.def;
14226            else
14227              echo EXPORTS > $output_objdir/$soname.def;
14228              cat $export_symbols >> $output_objdir/$soname.def;
14229            fi~
14230            $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'
14231	  else
14232	    ld_shlibs_CXX=no
14233	  fi
14234	  ;;
14235	esac
14236	;;
14237      darwin* | rhapsody*)
14238
14239
14240  archive_cmds_need_lc_CXX=no
14241  hardcode_direct_CXX=no
14242  hardcode_automatic_CXX=yes
14243  hardcode_shlibpath_var_CXX=unsupported
14244  if test yes = "$lt_cv_ld_force_load"; then
14245    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\"`'
14246
14247  else
14248    whole_archive_flag_spec_CXX=''
14249  fi
14250  link_all_deplibs_CXX=yes
14251  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14252  case $cc_basename in
14253     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14254     *) _lt_dar_can_shared=$GCC ;;
14255  esac
14256  if test yes = "$_lt_dar_can_shared"; then
14257    output_verbose_link_cmd=func_echo_all
14258    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"
14259    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14260    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"
14261    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"
14262       if test yes != "$lt_cv_apple_cc_single_mod"; then
14263      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"
14264      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"
14265    fi
14266
14267  else
14268  ld_shlibs_CXX=no
14269  fi
14270
14271	;;
14272
14273      os2*)
14274	hardcode_libdir_flag_spec_CXX='-L$libdir'
14275	hardcode_minus_L_CXX=yes
14276	allow_undefined_flag_CXX=unsupported
14277	shrext_cmds=.dll
14278	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14279	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14280	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14281	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14282	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14283	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14284	  emximp -o $lib $output_objdir/$libname.def'
14285	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14286	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14287	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14288	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14289	  prefix_cmds="$SED"~
14290	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14291	    prefix_cmds="$prefix_cmds -e 1d";
14292	  fi~
14293	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14294	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14295	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14296	  emximp -o $lib $output_objdir/$libname.def'
14297	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14298	enable_shared_with_static_runtimes_CXX=yes
14299	;;
14300
14301      dgux*)
14302        case $cc_basename in
14303          ec++*)
14304	    # FIXME: insert proper C++ library support
14305	    ld_shlibs_CXX=no
14306	    ;;
14307          ghcx*)
14308	    # Green Hills C++ Compiler
14309	    # FIXME: insert proper C++ library support
14310	    ld_shlibs_CXX=no
14311	    ;;
14312          *)
14313	    # FIXME: insert proper C++ library support
14314	    ld_shlibs_CXX=no
14315	    ;;
14316        esac
14317        ;;
14318
14319      freebsd2.*)
14320        # C++ shared libraries reported to be fairly broken before
14321	# switch to ELF
14322        ld_shlibs_CXX=no
14323        ;;
14324
14325      freebsd-elf*)
14326        archive_cmds_need_lc_CXX=no
14327        ;;
14328
14329      freebsd* | dragonfly*)
14330        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14331        # conventions
14332        ld_shlibs_CXX=yes
14333        ;;
14334
14335      haiku*)
14336        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14337        link_all_deplibs_CXX=yes
14338        ;;
14339
14340      hpux9*)
14341        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14342        hardcode_libdir_separator_CXX=:
14343        export_dynamic_flag_spec_CXX='$wl-E'
14344        hardcode_direct_CXX=yes
14345        hardcode_minus_L_CXX=yes # Not in the search PATH,
14346				             # but as the default
14347				             # location of the library.
14348
14349        case $cc_basename in
14350          CC*)
14351            # FIXME: insert proper C++ library support
14352            ld_shlibs_CXX=no
14353            ;;
14354          aCC*)
14355            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14356            # Commands to make compiler produce verbose output that lists
14357            # what "hidden" libraries, object files and flags are used when
14358            # linking a shared library.
14359            #
14360            # There doesn't appear to be a way to prevent this compiler from
14361            # explicitly linking system object files so we need to strip them
14362            # from the output so that they don't get included in the library
14363            # dependencies.
14364            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"'
14365            ;;
14366          *)
14367            if test yes = "$GXX"; then
14368              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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14369            else
14370              # FIXME: insert proper C++ library support
14371              ld_shlibs_CXX=no
14372            fi
14373            ;;
14374        esac
14375        ;;
14376
14377      hpux10*|hpux11*)
14378        if test no = "$with_gnu_ld"; then
14379	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14380	  hardcode_libdir_separator_CXX=:
14381
14382          case $host_cpu in
14383            hppa*64*|ia64*)
14384              ;;
14385            *)
14386	      export_dynamic_flag_spec_CXX='$wl-E'
14387              ;;
14388          esac
14389        fi
14390        case $host_cpu in
14391          hppa*64*|ia64*)
14392            hardcode_direct_CXX=no
14393            hardcode_shlibpath_var_CXX=no
14394            ;;
14395          *)
14396            hardcode_direct_CXX=yes
14397            hardcode_direct_absolute_CXX=yes
14398            hardcode_minus_L_CXX=yes # Not in the search PATH,
14399					         # but as the default
14400					         # location of the library.
14401            ;;
14402        esac
14403
14404        case $cc_basename in
14405          CC*)
14406	    # FIXME: insert proper C++ library support
14407	    ld_shlibs_CXX=no
14408	    ;;
14409          aCC*)
14410	    case $host_cpu in
14411	      hppa*64*)
14412	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14413	        ;;
14414	      ia64*)
14415	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14416	        ;;
14417	      *)
14418	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14419	        ;;
14420	    esac
14421	    # Commands to make compiler produce verbose output that lists
14422	    # what "hidden" libraries, object files and flags are used when
14423	    # linking a shared library.
14424	    #
14425	    # There doesn't appear to be a way to prevent this compiler from
14426	    # explicitly linking system object files so we need to strip them
14427	    # from the output so that they don't get included in the library
14428	    # dependencies.
14429	    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"'
14430	    ;;
14431          *)
14432	    if test yes = "$GXX"; then
14433	      if test no = "$with_gnu_ld"; then
14434	        case $host_cpu in
14435	          hppa*64*)
14436	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14437	            ;;
14438	          ia64*)
14439	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14440	            ;;
14441	          *)
14442	            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'
14443	            ;;
14444	        esac
14445	      fi
14446	    else
14447	      # FIXME: insert proper C++ library support
14448	      ld_shlibs_CXX=no
14449	    fi
14450	    ;;
14451        esac
14452        ;;
14453
14454      interix[3-9]*)
14455	hardcode_direct_CXX=no
14456	hardcode_shlibpath_var_CXX=no
14457	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14458	export_dynamic_flag_spec_CXX='$wl-E'
14459	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14460	# Instead, shared libraries are loaded at an image base (0x10000000 by
14461	# default) and relocated if they conflict, which is a slow very memory
14462	# consuming and fragmenting process.  To avoid this, we pick a random,
14463	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14464	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14465	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'
14466	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'
14467	;;
14468      irix5* | irix6*)
14469        case $cc_basename in
14470          CC*)
14471	    # SGI C++
14472	    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'
14473
14474	    # Archives containing C++ object files must be created using
14475	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14476	    # necessary to make sure instantiated templates are included
14477	    # in the archive.
14478	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14479	    ;;
14480          *)
14481	    if test yes = "$GXX"; then
14482	      if test no = "$with_gnu_ld"; then
14483	        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'
14484	      else
14485	        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'
14486	      fi
14487	    fi
14488	    link_all_deplibs_CXX=yes
14489	    ;;
14490        esac
14491        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14492        hardcode_libdir_separator_CXX=:
14493        inherit_rpath_CXX=yes
14494        ;;
14495
14496      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14497        case $cc_basename in
14498          KCC*)
14499	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14500
14501	    # KCC will only create a shared library if the output file
14502	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14503	    # to its proper name (with version) after linking.
14504	    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'
14505	    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'
14506	    # Commands to make compiler produce verbose output that lists
14507	    # what "hidden" libraries, object files and flags are used when
14508	    # linking a shared library.
14509	    #
14510	    # There doesn't appear to be a way to prevent this compiler from
14511	    # explicitly linking system object files so we need to strip them
14512	    # from the output so that they don't get included in the library
14513	    # dependencies.
14514	    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"'
14515
14516	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14517	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14518
14519	    # Archives containing C++ object files must be created using
14520	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14521	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14522	    ;;
14523	  icpc* | ecpc* )
14524	    # Intel C++
14525	    with_gnu_ld=yes
14526	    # version 8.0 and above of icpc choke on multiply defined symbols
14527	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14528	    # earlier do not add the objects themselves.
14529	    case `$CC -V 2>&1` in
14530	      *"Version 7."*)
14531	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14532		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'
14533		;;
14534	      *)  # Version 8.0 or newer
14535	        tmp_idyn=
14536	        case $host_cpu in
14537		  ia64*) tmp_idyn=' -i_dynamic';;
14538		esac
14539	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14540		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'
14541		;;
14542	    esac
14543	    archive_cmds_need_lc_CXX=no
14544	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14545	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14546	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14547	    ;;
14548          pgCC* | pgcpp*)
14549            # Portland Group C++ compiler
14550	    case `$CC -V` in
14551	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14552	      prelink_cmds_CXX='tpldir=Template.dir~
14553               rm -rf $tpldir~
14554               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14555               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14556	      old_archive_cmds_CXX='tpldir=Template.dir~
14557                rm -rf $tpldir~
14558                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14559                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14560                $RANLIB $oldlib'
14561	      archive_cmds_CXX='tpldir=Template.dir~
14562                rm -rf $tpldir~
14563                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14564                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14565	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14566                rm -rf $tpldir~
14567                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14568                $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'
14569	      ;;
14570	    *) # Version 6 and above use weak symbols
14571	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14572	      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'
14573	      ;;
14574	    esac
14575
14576	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14577	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14578	    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'
14579            ;;
14580	  cxx*)
14581	    # Compaq C++
14582	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14583	    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'
14584
14585	    runpath_var=LD_RUN_PATH
14586	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14587	    hardcode_libdir_separator_CXX=:
14588
14589	    # Commands to make compiler produce verbose output that lists
14590	    # what "hidden" libraries, object files and flags are used when
14591	    # linking a shared library.
14592	    #
14593	    # There doesn't appear to be a way to prevent this compiler from
14594	    # explicitly linking system object files so we need to strip them
14595	    # from the output so that they don't get included in the library
14596	    # dependencies.
14597	    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'
14598	    ;;
14599	  xl* | mpixl* | bgxl*)
14600	    # IBM XL 8.0 on PPC, with GNU ld
14601	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14602	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14603	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14604	    if test yes = "$supports_anon_versioning"; then
14605	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14606                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14607                echo "local: *; };" >> $output_objdir/$libname.ver~
14608                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14609	    fi
14610	    ;;
14611	  *)
14612	    case `$CC -V 2>&1 | sed 5q` in
14613	    *Sun\ C*)
14614	      # Sun C++ 5.9
14615	      no_undefined_flag_CXX=' -zdefs'
14616	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14617	      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'
14618	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14619	      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'
14620	      compiler_needs_object_CXX=yes
14621
14622	      # Not sure whether something based on
14623	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14624	      # would be better.
14625	      output_verbose_link_cmd='func_echo_all'
14626
14627	      # Archives containing C++ object files must be created using
14628	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14629	      # necessary to make sure instantiated templates are included
14630	      # in the archive.
14631	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14632	      ;;
14633	    esac
14634	    ;;
14635	esac
14636	;;
14637
14638      lynxos*)
14639        # FIXME: insert proper C++ library support
14640	ld_shlibs_CXX=no
14641	;;
14642
14643      m88k*)
14644        # FIXME: insert proper C++ library support
14645        ld_shlibs_CXX=no
14646	;;
14647
14648      mvs*)
14649        case $cc_basename in
14650          cxx*)
14651	    # FIXME: insert proper C++ library support
14652	    ld_shlibs_CXX=no
14653	    ;;
14654	  *)
14655	    # FIXME: insert proper C++ library support
14656	    ld_shlibs_CXX=no
14657	    ;;
14658	esac
14659	;;
14660
14661      netbsd*)
14662        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14663	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14664	  wlarc=
14665	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14666	  hardcode_direct_CXX=yes
14667	  hardcode_shlibpath_var_CXX=no
14668	fi
14669	# Workaround some broken pre-1.5 toolchains
14670	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14671	;;
14672
14673      *nto* | *qnx*)
14674        ld_shlibs_CXX=yes
14675	;;
14676
14677      openbsd* | bitrig*)
14678	if test -f /usr/libexec/ld.so; then
14679	  hardcode_direct_CXX=yes
14680	  hardcode_shlibpath_var_CXX=no
14681	  hardcode_direct_absolute_CXX=yes
14682	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14683	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14684	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14685	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14686	    export_dynamic_flag_spec_CXX='$wl-E'
14687	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14688	  fi
14689	  output_verbose_link_cmd=func_echo_all
14690	else
14691	  ld_shlibs_CXX=no
14692	fi
14693	;;
14694
14695      osf3* | osf4* | osf5*)
14696        case $cc_basename in
14697          KCC*)
14698	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14699
14700	    # KCC will only create a shared library if the output file
14701	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14702	    # to its proper name (with version) after linking.
14703	    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'
14704
14705	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14706	    hardcode_libdir_separator_CXX=:
14707
14708	    # Archives containing C++ object files must be created using
14709	    # the KAI C++ compiler.
14710	    case $host in
14711	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14712	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14713	    esac
14714	    ;;
14715          RCC*)
14716	    # Rational C++ 2.4.1
14717	    # FIXME: insert proper C++ library support
14718	    ld_shlibs_CXX=no
14719	    ;;
14720          cxx*)
14721	    case $host in
14722	      osf3*)
14723	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14724	        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'
14725	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14726		;;
14727	      *)
14728	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14729	        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'
14730	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14731                  echo "-hidden">> $lib.exp~
14732                  $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~
14733                  $RM $lib.exp'
14734	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14735		;;
14736	    esac
14737
14738	    hardcode_libdir_separator_CXX=:
14739
14740	    # Commands to make compiler produce verbose output that lists
14741	    # what "hidden" libraries, object files and flags are used when
14742	    # linking a shared library.
14743	    #
14744	    # There doesn't appear to be a way to prevent this compiler from
14745	    # explicitly linking system object files so we need to strip them
14746	    # from the output so that they don't get included in the library
14747	    # dependencies.
14748	    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"'
14749	    ;;
14750	  *)
14751	    if test yes,no = "$GXX,$with_gnu_ld"; then
14752	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14753	      case $host in
14754	        osf3*)
14755	          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'
14756		  ;;
14757	        *)
14758	          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'
14759		  ;;
14760	      esac
14761
14762	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14763	      hardcode_libdir_separator_CXX=:
14764
14765	      # Commands to make compiler produce verbose output that lists
14766	      # what "hidden" libraries, object files and flags are used when
14767	      # linking a shared library.
14768	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14769
14770	    else
14771	      # FIXME: insert proper C++ library support
14772	      ld_shlibs_CXX=no
14773	    fi
14774	    ;;
14775        esac
14776        ;;
14777
14778      psos*)
14779        # FIXME: insert proper C++ library support
14780        ld_shlibs_CXX=no
14781        ;;
14782
14783      sunos4*)
14784        case $cc_basename in
14785          CC*)
14786	    # Sun C++ 4.x
14787	    # FIXME: insert proper C++ library support
14788	    ld_shlibs_CXX=no
14789	    ;;
14790          lcc*)
14791	    # Lucid
14792	    # FIXME: insert proper C++ library support
14793	    ld_shlibs_CXX=no
14794	    ;;
14795          *)
14796	    # FIXME: insert proper C++ library support
14797	    ld_shlibs_CXX=no
14798	    ;;
14799        esac
14800        ;;
14801
14802      solaris*)
14803        case $cc_basename in
14804          CC* | sunCC*)
14805	    # Sun C++ 4.2, 5.x and Centerline C++
14806            archive_cmds_need_lc_CXX=yes
14807	    no_undefined_flag_CXX=' -zdefs'
14808	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14809	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14810              $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'
14811
14812	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14813	    hardcode_shlibpath_var_CXX=no
14814	    case $host_os in
14815	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14816	      *)
14817		# The compiler driver will combine and reorder linker options,
14818		# but understands '-z linker_flag'.
14819	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14820		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14821	        ;;
14822	    esac
14823	    link_all_deplibs_CXX=yes
14824
14825	    output_verbose_link_cmd='func_echo_all'
14826
14827	    # Archives containing C++ object files must be created using
14828	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14829	    # necessary to make sure instantiated templates are included
14830	    # in the archive.
14831	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14832	    ;;
14833          gcx*)
14834	    # Green Hills C++ Compiler
14835	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14836
14837	    # The C++ compiler must be used to create the archive.
14838	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14839	    ;;
14840          *)
14841	    # GNU C++ compiler with Solaris linker
14842	    if test yes,no = "$GXX,$with_gnu_ld"; then
14843	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14844	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14845	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14846	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14847                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14848
14849	        # Commands to make compiler produce verbose output that lists
14850	        # what "hidden" libraries, object files and flags are used when
14851	        # linking a shared library.
14852	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14853	      else
14854	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14855	        # platform.
14856	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14857	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14858                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14859
14860	        # Commands to make compiler produce verbose output that lists
14861	        # what "hidden" libraries, object files and flags are used when
14862	        # linking a shared library.
14863	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14864	      fi
14865
14866	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14867	      case $host_os in
14868		solaris2.[0-5] | solaris2.[0-5].*) ;;
14869		*)
14870		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14871		  ;;
14872	      esac
14873	    fi
14874	    ;;
14875        esac
14876        ;;
14877
14878    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14879      no_undefined_flag_CXX='$wl-z,text'
14880      archive_cmds_need_lc_CXX=no
14881      hardcode_shlibpath_var_CXX=no
14882      runpath_var='LD_RUN_PATH'
14883
14884      case $cc_basename in
14885        CC*)
14886	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14888	  ;;
14889	*)
14890	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14892	  ;;
14893      esac
14894      ;;
14895
14896      sysv5* | sco3.2v5* | sco5v6*)
14897	# Note: We CANNOT use -z defs as we might desire, because we do not
14898	# link with -lc, and that would cause any symbols used from libc to
14899	# always be unresolved, which means just about no library would
14900	# ever link correctly.  If we're not using GNU ld we use -z text
14901	# though, which does catch some bad symbols but isn't as heavy-handed
14902	# as -z defs.
14903	no_undefined_flag_CXX='$wl-z,text'
14904	allow_undefined_flag_CXX='$wl-z,nodefs'
14905	archive_cmds_need_lc_CXX=no
14906	hardcode_shlibpath_var_CXX=no
14907	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14908	hardcode_libdir_separator_CXX=':'
14909	link_all_deplibs_CXX=yes
14910	export_dynamic_flag_spec_CXX='$wl-Bexport'
14911	runpath_var='LD_RUN_PATH'
14912
14913	case $cc_basename in
14914          CC*)
14915	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14918              '"$old_archive_cmds_CXX"
14919	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14920              '"$reload_cmds_CXX"
14921	    ;;
14922	  *)
14923	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925	    ;;
14926	esac
14927      ;;
14928
14929      tandem*)
14930        case $cc_basename in
14931          NCC*)
14932	    # NonStop-UX NCC 3.20
14933	    # FIXME: insert proper C++ library support
14934	    ld_shlibs_CXX=no
14935	    ;;
14936          *)
14937	    # FIXME: insert proper C++ library support
14938	    ld_shlibs_CXX=no
14939	    ;;
14940        esac
14941        ;;
14942
14943      vxworks*)
14944        # FIXME: insert proper C++ library support
14945        ld_shlibs_CXX=no
14946        ;;
14947
14948      *)
14949        # FIXME: insert proper C++ library support
14950        ld_shlibs_CXX=no
14951        ;;
14952    esac
14953
14954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14955$as_echo "$ld_shlibs_CXX" >&6; }
14956    test no = "$ld_shlibs_CXX" && can_build_shared=no
14957
14958    GCC_CXX=$GXX
14959    LD_CXX=$LD
14960
14961    ## CAVEAT EMPTOR:
14962    ## There is no encapsulation within the following macros, do not change
14963    ## the running order or otherwise move them around unless you know exactly
14964    ## what you are doing...
14965    # Dependencies to place before and after the object being linked:
14966predep_objects_CXX=
14967postdep_objects_CXX=
14968predeps_CXX=
14969postdeps_CXX=
14970compiler_lib_search_path_CXX=
14971
14972cat > conftest.$ac_ext <<_LT_EOF
14973class Foo
14974{
14975public:
14976  Foo (void) { a = 0; }
14977private:
14978  int a;
14979};
14980_LT_EOF
14981
14982
14983_lt_libdeps_save_CFLAGS=$CFLAGS
14984case "$CC $CFLAGS " in #(
14985*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14986*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14987*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14988esac
14989
14990if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14991  (eval $ac_compile) 2>&5
14992  ac_status=$?
14993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14994  test $ac_status = 0; }; then
14995  # Parse the compiler output and extract the necessary
14996  # objects, libraries and library flags.
14997
14998  # Sentinel used to keep track of whether or not we are before
14999  # the conftest object file.
15000  pre_test_object_deps_done=no
15001
15002  for p in `eval "$output_verbose_link_cmd"`; do
15003    case $prev$p in
15004
15005    -L* | -R* | -l*)
15006       # Some compilers place space between "-{L,R}" and the path.
15007       # Remove the space.
15008       if test x-L = "$p" ||
15009          test x-R = "$p"; then
15010	 prev=$p
15011	 continue
15012       fi
15013
15014       # Expand the sysroot to ease extracting the directories later.
15015       if test -z "$prev"; then
15016         case $p in
15017         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15018         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15019         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15020         esac
15021       fi
15022       case $p in
15023       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15024       esac
15025       if test no = "$pre_test_object_deps_done"; then
15026	 case $prev in
15027	 -L | -R)
15028	   # Internal compiler library paths should come after those
15029	   # provided the user.  The postdeps already come after the
15030	   # user supplied libs so there is no need to process them.
15031	   if test -z "$compiler_lib_search_path_CXX"; then
15032	     compiler_lib_search_path_CXX=$prev$p
15033	   else
15034	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15035	   fi
15036	   ;;
15037	 # The "-l" case would never come before the object being
15038	 # linked, so don't bother handling this case.
15039	 esac
15040       else
15041	 if test -z "$postdeps_CXX"; then
15042	   postdeps_CXX=$prev$p
15043	 else
15044	   postdeps_CXX="${postdeps_CXX} $prev$p"
15045	 fi
15046       fi
15047       prev=
15048       ;;
15049
15050    *.lto.$objext) ;; # Ignore GCC LTO objects
15051    *.$objext)
15052       # This assumes that the test object file only shows up
15053       # once in the compiler output.
15054       if test "$p" = "conftest.$objext"; then
15055	 pre_test_object_deps_done=yes
15056	 continue
15057       fi
15058
15059       if test no = "$pre_test_object_deps_done"; then
15060	 if test -z "$predep_objects_CXX"; then
15061	   predep_objects_CXX=$p
15062	 else
15063	   predep_objects_CXX="$predep_objects_CXX $p"
15064	 fi
15065       else
15066	 if test -z "$postdep_objects_CXX"; then
15067	   postdep_objects_CXX=$p
15068	 else
15069	   postdep_objects_CXX="$postdep_objects_CXX $p"
15070	 fi
15071       fi
15072       ;;
15073
15074    *) ;; # Ignore the rest.
15075
15076    esac
15077  done
15078
15079  # Clean up.
15080  rm -f a.out a.exe
15081else
15082  echo "libtool.m4: error: problem compiling CXX test program"
15083fi
15084
15085$RM -f confest.$objext
15086CFLAGS=$_lt_libdeps_save_CFLAGS
15087
15088# PORTME: override above test on systems where it is broken
15089case $host_os in
15090interix[3-9]*)
15091  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15092  # hack all around it, let's just trust "g++" to DTRT.
15093  predep_objects_CXX=
15094  postdep_objects_CXX=
15095  postdeps_CXX=
15096  ;;
15097esac
15098
15099
15100case " $postdeps_CXX " in
15101*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15102esac
15103 compiler_lib_search_dirs_CXX=
15104if test -n "${compiler_lib_search_path_CXX}"; then
15105 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15106fi
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138    lt_prog_compiler_wl_CXX=
15139lt_prog_compiler_pic_CXX=
15140lt_prog_compiler_static_CXX=
15141
15142
15143  # C++ specific cases for pic, static, wl, etc.
15144  if test yes = "$GXX"; then
15145    lt_prog_compiler_wl_CXX='-Wl,'
15146    lt_prog_compiler_static_CXX='-static'
15147
15148    case $host_os in
15149    aix*)
15150      # All AIX code is PIC.
15151      if test ia64 = "$host_cpu"; then
15152	# AIX 5 now supports IA64 processor
15153	lt_prog_compiler_static_CXX='-Bstatic'
15154      fi
15155      lt_prog_compiler_pic_CXX='-fPIC'
15156      ;;
15157
15158    amigaos*)
15159      case $host_cpu in
15160      powerpc)
15161            # see comment about AmigaOS4 .so support
15162            lt_prog_compiler_pic_CXX='-fPIC'
15163        ;;
15164      m68k)
15165            # FIXME: we need at least 68020 code to build shared libraries, but
15166            # adding the '-m68020' flag to GCC prevents building anything better,
15167            # like '-m68040'.
15168            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15169        ;;
15170      esac
15171      ;;
15172
15173    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15174      # PIC is the default for these OSes.
15175      ;;
15176    mingw* | cygwin* | os2* | pw32* | cegcc*)
15177      # This hack is so that the source file can tell whether it is being
15178      # built for inclusion in a dll (and should export symbols for example).
15179      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15180      # (--disable-auto-import) libraries
15181      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15182      case $host_os in
15183      os2*)
15184	lt_prog_compiler_static_CXX='$wl-static'
15185	;;
15186      esac
15187      ;;
15188    darwin* | rhapsody*)
15189      # PIC is the default on this platform
15190      # Common symbols not allowed in MH_DYLIB files
15191      lt_prog_compiler_pic_CXX='-fno-common'
15192      ;;
15193    *djgpp*)
15194      # DJGPP does not support shared libraries at all
15195      lt_prog_compiler_pic_CXX=
15196      ;;
15197    haiku*)
15198      # PIC is the default for Haiku.
15199      # The "-static" flag exists, but is broken.
15200      lt_prog_compiler_static_CXX=
15201      ;;
15202    interix[3-9]*)
15203      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15204      # Instead, we relocate shared libraries at runtime.
15205      ;;
15206    sysv4*MP*)
15207      if test -d /usr/nec; then
15208	lt_prog_compiler_pic_CXX=-Kconform_pic
15209      fi
15210      ;;
15211    hpux*)
15212      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15213      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15214      # sets the default TLS model and affects inlining.
15215      case $host_cpu in
15216      hppa*64*)
15217	;;
15218      *)
15219	lt_prog_compiler_pic_CXX='-fPIC'
15220	;;
15221      esac
15222      ;;
15223    *qnx* | *nto*)
15224      # QNX uses GNU C++, but need to define -shared option too, otherwise
15225      # it will coredump.
15226      lt_prog_compiler_pic_CXX='-fPIC -shared'
15227      ;;
15228    *)
15229      lt_prog_compiler_pic_CXX='-fPIC'
15230      ;;
15231    esac
15232  else
15233    case $host_os in
15234      aix[4-9]*)
15235	# All AIX code is PIC.
15236	if test ia64 = "$host_cpu"; then
15237	  # AIX 5 now supports IA64 processor
15238	  lt_prog_compiler_static_CXX='-Bstatic'
15239	else
15240	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15241	fi
15242	;;
15243      chorus*)
15244	case $cc_basename in
15245	cxch68*)
15246	  # Green Hills C++ Compiler
15247	  # _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"
15248	  ;;
15249	esac
15250	;;
15251      mingw* | cygwin* | os2* | pw32* | cegcc*)
15252	# This hack is so that the source file can tell whether it is being
15253	# built for inclusion in a dll (and should export symbols for example).
15254	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15255	;;
15256      dgux*)
15257	case $cc_basename in
15258	  ec++*)
15259	    lt_prog_compiler_pic_CXX='-KPIC'
15260	    ;;
15261	  ghcx*)
15262	    # Green Hills C++ Compiler
15263	    lt_prog_compiler_pic_CXX='-pic'
15264	    ;;
15265	  *)
15266	    ;;
15267	esac
15268	;;
15269      freebsd* | dragonfly*)
15270	# FreeBSD uses GNU C++
15271	;;
15272      hpux9* | hpux10* | hpux11*)
15273	case $cc_basename in
15274	  CC*)
15275	    lt_prog_compiler_wl_CXX='-Wl,'
15276	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15277	    if test ia64 != "$host_cpu"; then
15278	      lt_prog_compiler_pic_CXX='+Z'
15279	    fi
15280	    ;;
15281	  aCC*)
15282	    lt_prog_compiler_wl_CXX='-Wl,'
15283	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15284	    case $host_cpu in
15285	    hppa*64*|ia64*)
15286	      # +Z the default
15287	      ;;
15288	    *)
15289	      lt_prog_compiler_pic_CXX='+Z'
15290	      ;;
15291	    esac
15292	    ;;
15293	  *)
15294	    ;;
15295	esac
15296	;;
15297      interix*)
15298	# This is c89, which is MS Visual C++ (no shared libs)
15299	# Anyone wants to do a port?
15300	;;
15301      irix5* | irix6* | nonstopux*)
15302	case $cc_basename in
15303	  CC*)
15304	    lt_prog_compiler_wl_CXX='-Wl,'
15305	    lt_prog_compiler_static_CXX='-non_shared'
15306	    # CC pic flag -KPIC is the default.
15307	    ;;
15308	  *)
15309	    ;;
15310	esac
15311	;;
15312      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15313	case $cc_basename in
15314	  KCC*)
15315	    # KAI C++ Compiler
15316	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15317	    lt_prog_compiler_pic_CXX='-fPIC'
15318	    ;;
15319	  ecpc* )
15320	    # old Intel C++ for x86_64, which still supported -KPIC.
15321	    lt_prog_compiler_wl_CXX='-Wl,'
15322	    lt_prog_compiler_pic_CXX='-KPIC'
15323	    lt_prog_compiler_static_CXX='-static'
15324	    ;;
15325	  icpc* )
15326	    # Intel C++, used to be incompatible with GCC.
15327	    # ICC 10 doesn't accept -KPIC any more.
15328	    lt_prog_compiler_wl_CXX='-Wl,'
15329	    lt_prog_compiler_pic_CXX='-fPIC'
15330	    lt_prog_compiler_static_CXX='-static'
15331	    ;;
15332	  pgCC* | pgcpp*)
15333	    # Portland Group C++ compiler
15334	    lt_prog_compiler_wl_CXX='-Wl,'
15335	    lt_prog_compiler_pic_CXX='-fpic'
15336	    lt_prog_compiler_static_CXX='-Bstatic'
15337	    ;;
15338	  cxx*)
15339	    # Compaq C++
15340	    # Make sure the PIC flag is empty.  It appears that all Alpha
15341	    # Linux and Compaq Tru64 Unix objects are PIC.
15342	    lt_prog_compiler_pic_CXX=
15343	    lt_prog_compiler_static_CXX='-non_shared'
15344	    ;;
15345	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15346	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15347	    lt_prog_compiler_wl_CXX='-Wl,'
15348	    lt_prog_compiler_pic_CXX='-qpic'
15349	    lt_prog_compiler_static_CXX='-qstaticlink'
15350	    ;;
15351	  *)
15352	    case `$CC -V 2>&1 | sed 5q` in
15353	    *Sun\ C*)
15354	      # Sun C++ 5.9
15355	      lt_prog_compiler_pic_CXX='-KPIC'
15356	      lt_prog_compiler_static_CXX='-Bstatic'
15357	      lt_prog_compiler_wl_CXX='-Qoption ld '
15358	      ;;
15359	    esac
15360	    ;;
15361	esac
15362	;;
15363      lynxos*)
15364	;;
15365      m88k*)
15366	;;
15367      mvs*)
15368	case $cc_basename in
15369	  cxx*)
15370	    lt_prog_compiler_pic_CXX='-W c,exportall'
15371	    ;;
15372	  *)
15373	    ;;
15374	esac
15375	;;
15376      netbsd*)
15377	;;
15378      *qnx* | *nto*)
15379        # QNX uses GNU C++, but need to define -shared option too, otherwise
15380        # it will coredump.
15381        lt_prog_compiler_pic_CXX='-fPIC -shared'
15382        ;;
15383      osf3* | osf4* | osf5*)
15384	case $cc_basename in
15385	  KCC*)
15386	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15387	    ;;
15388	  RCC*)
15389	    # Rational C++ 2.4.1
15390	    lt_prog_compiler_pic_CXX='-pic'
15391	    ;;
15392	  cxx*)
15393	    # Digital/Compaq C++
15394	    lt_prog_compiler_wl_CXX='-Wl,'
15395	    # Make sure the PIC flag is empty.  It appears that all Alpha
15396	    # Linux and Compaq Tru64 Unix objects are PIC.
15397	    lt_prog_compiler_pic_CXX=
15398	    lt_prog_compiler_static_CXX='-non_shared'
15399	    ;;
15400	  *)
15401	    ;;
15402	esac
15403	;;
15404      psos*)
15405	;;
15406      solaris*)
15407	case $cc_basename in
15408	  CC* | sunCC*)
15409	    # Sun C++ 4.2, 5.x and Centerline C++
15410	    lt_prog_compiler_pic_CXX='-KPIC'
15411	    lt_prog_compiler_static_CXX='-Bstatic'
15412	    lt_prog_compiler_wl_CXX='-Qoption ld '
15413	    ;;
15414	  gcx*)
15415	    # Green Hills C++ Compiler
15416	    lt_prog_compiler_pic_CXX='-PIC'
15417	    ;;
15418	  *)
15419	    ;;
15420	esac
15421	;;
15422      sunos4*)
15423	case $cc_basename in
15424	  CC*)
15425	    # Sun C++ 4.x
15426	    lt_prog_compiler_pic_CXX='-pic'
15427	    lt_prog_compiler_static_CXX='-Bstatic'
15428	    ;;
15429	  lcc*)
15430	    # Lucid
15431	    lt_prog_compiler_pic_CXX='-pic'
15432	    ;;
15433	  *)
15434	    ;;
15435	esac
15436	;;
15437      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15438	case $cc_basename in
15439	  CC*)
15440	    lt_prog_compiler_wl_CXX='-Wl,'
15441	    lt_prog_compiler_pic_CXX='-KPIC'
15442	    lt_prog_compiler_static_CXX='-Bstatic'
15443	    ;;
15444	esac
15445	;;
15446      tandem*)
15447	case $cc_basename in
15448	  NCC*)
15449	    # NonStop-UX NCC 3.20
15450	    lt_prog_compiler_pic_CXX='-KPIC'
15451	    ;;
15452	  *)
15453	    ;;
15454	esac
15455	;;
15456      vxworks*)
15457	;;
15458      *)
15459	lt_prog_compiler_can_build_shared_CXX=no
15460	;;
15461    esac
15462  fi
15463
15464case $host_os in
15465  # For platforms that do not support PIC, -DPIC is meaningless:
15466  *djgpp*)
15467    lt_prog_compiler_pic_CXX=
15468    ;;
15469  *)
15470    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15471    ;;
15472esac
15473
15474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15475$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15476if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15477  $as_echo_n "(cached) " >&6
15478else
15479  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15480fi
15481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15482$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15483lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15484
15485#
15486# Check to make sure the PIC flag actually works.
15487#
15488if test -n "$lt_prog_compiler_pic_CXX"; then
15489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15490$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15491if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15492  $as_echo_n "(cached) " >&6
15493else
15494  lt_cv_prog_compiler_pic_works_CXX=no
15495   ac_outfile=conftest.$ac_objext
15496   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15497   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15498   # Insert the option either (1) after the last *FLAGS variable, or
15499   # (2) before a word containing "conftest.", or (3) at the end.
15500   # Note that $ac_compile itself does not contain backslashes and begins
15501   # with a dollar sign (not a hyphen), so the echo should work correctly.
15502   # The option is referenced via a variable to avoid confusing sed.
15503   lt_compile=`echo "$ac_compile" | $SED \
15504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15506   -e 's:$: $lt_compiler_flag:'`
15507   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15508   (eval "$lt_compile" 2>conftest.err)
15509   ac_status=$?
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   if (exit $ac_status) && test -s "$ac_outfile"; then
15513     # The compiler can only warn and ignore the option if not recognized
15514     # So say no if there are warnings other than the usual output.
15515     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15516     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15517     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15518       lt_cv_prog_compiler_pic_works_CXX=yes
15519     fi
15520   fi
15521   $RM conftest*
15522
15523fi
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15525$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15526
15527if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15528    case $lt_prog_compiler_pic_CXX in
15529     "" | " "*) ;;
15530     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15531     esac
15532else
15533    lt_prog_compiler_pic_CXX=
15534     lt_prog_compiler_can_build_shared_CXX=no
15535fi
15536
15537fi
15538
15539
15540
15541
15542
15543#
15544# Check to make sure the static flag actually works.
15545#
15546wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15548$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15549if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15550  $as_echo_n "(cached) " >&6
15551else
15552  lt_cv_prog_compiler_static_works_CXX=no
15553   save_LDFLAGS=$LDFLAGS
15554   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15555   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15556   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15557     # The linker can only warn and ignore the option if not recognized
15558     # So say no if there are warnings
15559     if test -s conftest.err; then
15560       # Append any errors to the config.log.
15561       cat conftest.err 1>&5
15562       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15563       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15564       if diff conftest.exp conftest.er2 >/dev/null; then
15565         lt_cv_prog_compiler_static_works_CXX=yes
15566       fi
15567     else
15568       lt_cv_prog_compiler_static_works_CXX=yes
15569     fi
15570   fi
15571   $RM -r conftest*
15572   LDFLAGS=$save_LDFLAGS
15573
15574fi
15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15576$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15577
15578if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15579    :
15580else
15581    lt_prog_compiler_static_CXX=
15582fi
15583
15584
15585
15586
15587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15589if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15590  $as_echo_n "(cached) " >&6
15591else
15592  lt_cv_prog_compiler_c_o_CXX=no
15593   $RM -r conftest 2>/dev/null
15594   mkdir conftest
15595   cd conftest
15596   mkdir out
15597   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15598
15599   lt_compiler_flag="-o out/conftest2.$ac_objext"
15600   # Insert the option either (1) after the last *FLAGS variable, or
15601   # (2) before a word containing "conftest.", or (3) at the end.
15602   # Note that $ac_compile itself does not contain backslashes and begins
15603   # with a dollar sign (not a hyphen), so the echo should work correctly.
15604   lt_compile=`echo "$ac_compile" | $SED \
15605   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15606   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15607   -e 's:$: $lt_compiler_flag:'`
15608   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15609   (eval "$lt_compile" 2>out/conftest.err)
15610   ac_status=$?
15611   cat out/conftest.err >&5
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15614   then
15615     # The compiler can only warn and ignore the option if not recognized
15616     # So say no if there are warnings
15617     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15618     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15619     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15620       lt_cv_prog_compiler_c_o_CXX=yes
15621     fi
15622   fi
15623   chmod u+w . 2>&5
15624   $RM conftest*
15625   # SGI C++ compiler will create directory out/ii_files/ for
15626   # template instantiation
15627   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15628   $RM out/* && rmdir out
15629   cd ..
15630   $RM -r conftest
15631   $RM conftest*
15632
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15635$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15636
15637
15638
15639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15640$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15641if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15642  $as_echo_n "(cached) " >&6
15643else
15644  lt_cv_prog_compiler_c_o_CXX=no
15645   $RM -r conftest 2>/dev/null
15646   mkdir conftest
15647   cd conftest
15648   mkdir out
15649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15650
15651   lt_compiler_flag="-o out/conftest2.$ac_objext"
15652   # Insert the option either (1) after the last *FLAGS variable, or
15653   # (2) before a word containing "conftest.", or (3) at the end.
15654   # Note that $ac_compile itself does not contain backslashes and begins
15655   # with a dollar sign (not a hyphen), so the echo should work correctly.
15656   lt_compile=`echo "$ac_compile" | $SED \
15657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15659   -e 's:$: $lt_compiler_flag:'`
15660   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15661   (eval "$lt_compile" 2>out/conftest.err)
15662   ac_status=$?
15663   cat out/conftest.err >&5
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15666   then
15667     # The compiler can only warn and ignore the option if not recognized
15668     # So say no if there are warnings
15669     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15670     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15671     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15672       lt_cv_prog_compiler_c_o_CXX=yes
15673     fi
15674   fi
15675   chmod u+w . 2>&5
15676   $RM conftest*
15677   # SGI C++ compiler will create directory out/ii_files/ for
15678   # template instantiation
15679   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15680   $RM out/* && rmdir out
15681   cd ..
15682   $RM -r conftest
15683   $RM conftest*
15684
15685fi
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15687$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15688
15689
15690
15691
15692hard_links=nottested
15693if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15694  # do not overwrite the value of need_locks provided by the user
15695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15696$as_echo_n "checking if we can lock with hard links... " >&6; }
15697  hard_links=yes
15698  $RM conftest*
15699  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15700  touch conftest.a
15701  ln conftest.a conftest.b 2>&5 || hard_links=no
15702  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15704$as_echo "$hard_links" >&6; }
15705  if test no = "$hard_links"; then
15706    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15707$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15708    need_locks=warn
15709  fi
15710else
15711  need_locks=no
15712fi
15713
15714
15715
15716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15717$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15718
15719  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15720  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15721  case $host_os in
15722  aix[4-9]*)
15723    # If we're using GNU nm, then we don't want the "-C" option.
15724    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15725    # Without the "-l" option, or with the "-B" option, AIX nm treats
15726    # weak defined symbols like other global defined symbols, whereas
15727    # GNU nm marks them as "W".
15728    # While the 'weak' keyword is ignored in the Export File, we need
15729    # it in the Import File for the 'aix-soname' feature, so we have
15730    # to replace the "-B" option with "-P" for AIX nm.
15731    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15732      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15733    else
15734      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15735    fi
15736    ;;
15737  pw32*)
15738    export_symbols_cmds_CXX=$ltdll_cmds
15739    ;;
15740  cygwin* | mingw* | cegcc*)
15741    case $cc_basename in
15742    cl*)
15743      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15744      ;;
15745    *)
15746      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'
15747      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15748      ;;
15749    esac
15750    ;;
15751  *)
15752    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15753    ;;
15754  esac
15755
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15757$as_echo "$ld_shlibs_CXX" >&6; }
15758test no = "$ld_shlibs_CXX" && can_build_shared=no
15759
15760with_gnu_ld_CXX=$with_gnu_ld
15761
15762
15763
15764
15765
15766
15767#
15768# Do we need to explicitly link libc?
15769#
15770case "x$archive_cmds_need_lc_CXX" in
15771x|xyes)
15772  # Assume -lc should be added
15773  archive_cmds_need_lc_CXX=yes
15774
15775  if test yes,yes = "$GCC,$enable_shared"; then
15776    case $archive_cmds_CXX in
15777    *'~'*)
15778      # FIXME: we may have to deal with multi-command sequences.
15779      ;;
15780    '$CC '*)
15781      # Test whether the compiler implicitly links with -lc since on some
15782      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15783      # to ld, don't add -lc before -lgcc.
15784      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15785$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15786if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15787  $as_echo_n "(cached) " >&6
15788else
15789  $RM conftest*
15790	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15791
15792	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15793  (eval $ac_compile) 2>&5
15794  ac_status=$?
15795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15796  test $ac_status = 0; } 2>conftest.err; then
15797	  soname=conftest
15798	  lib=conftest
15799	  libobjs=conftest.$ac_objext
15800	  deplibs=
15801	  wl=$lt_prog_compiler_wl_CXX
15802	  pic_flag=$lt_prog_compiler_pic_CXX
15803	  compiler_flags=-v
15804	  linker_flags=-v
15805	  verstring=
15806	  output_objdir=.
15807	  libname=conftest
15808	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15809	  allow_undefined_flag_CXX=
15810	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15811  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15812  ac_status=$?
15813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15814  test $ac_status = 0; }
15815	  then
15816	    lt_cv_archive_cmds_need_lc_CXX=no
15817	  else
15818	    lt_cv_archive_cmds_need_lc_CXX=yes
15819	  fi
15820	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15821	else
15822	  cat conftest.err 1>&5
15823	fi
15824	$RM conftest*
15825
15826fi
15827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15828$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15829      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15830      ;;
15831    esac
15832  fi
15833  ;;
15834esac
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15898$as_echo_n "checking dynamic linker characteristics... " >&6; }
15899
15900library_names_spec=
15901libname_spec='lib$name'
15902soname_spec=
15903shrext_cmds=.so
15904postinstall_cmds=
15905postuninstall_cmds=
15906finish_cmds=
15907finish_eval=
15908shlibpath_var=
15909shlibpath_overrides_runpath=unknown
15910version_type=none
15911dynamic_linker="$host_os ld.so"
15912sys_lib_dlsearch_path_spec="/lib /usr/lib"
15913need_lib_prefix=unknown
15914hardcode_into_libs=no
15915
15916# when you set need_version to no, make sure it does not cause -set_version
15917# flags to be left without arguments
15918need_version=unknown
15919
15920
15921
15922case $host_os in
15923aix3*)
15924  version_type=linux # correct to gnu/linux during the next big refactor
15925  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15926  shlibpath_var=LIBPATH
15927
15928  # AIX 3 has no versioning support, so we append a major version to the name.
15929  soname_spec='$libname$release$shared_ext$major'
15930  ;;
15931
15932aix[4-9]*)
15933  version_type=linux # correct to gnu/linux during the next big refactor
15934  need_lib_prefix=no
15935  need_version=no
15936  hardcode_into_libs=yes
15937  if test ia64 = "$host_cpu"; then
15938    # AIX 5 supports IA64
15939    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15940    shlibpath_var=LD_LIBRARY_PATH
15941  else
15942    # With GCC up to 2.95.x, collect2 would create an import file
15943    # for dependence libraries.  The import file would start with
15944    # the line '#! .'.  This would cause the generated library to
15945    # depend on '.', always an invalid library.  This was fixed in
15946    # development snapshots of GCC prior to 3.0.
15947    case $host_os in
15948      aix4 | aix4.[01] | aix4.[01].*)
15949      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15950	   echo ' yes '
15951	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15952	:
15953      else
15954	can_build_shared=no
15955      fi
15956      ;;
15957    esac
15958    # Using Import Files as archive members, it is possible to support
15959    # filename-based versioning of shared library archives on AIX. While
15960    # this would work for both with and without runtime linking, it will
15961    # prevent static linking of such archives. So we do filename-based
15962    # shared library versioning with .so extension only, which is used
15963    # when both runtime linking and shared linking is enabled.
15964    # Unfortunately, runtime linking may impact performance, so we do
15965    # not want this to be the default eventually. Also, we use the
15966    # versioned .so libs for executables only if there is the -brtl
15967    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15968    # To allow for filename-based versioning support, we need to create
15969    # libNAME.so.V as an archive file, containing:
15970    # *) an Import File, referring to the versioned filename of the
15971    #    archive as well as the shared archive member, telling the
15972    #    bitwidth (32 or 64) of that shared object, and providing the
15973    #    list of exported symbols of that shared object, eventually
15974    #    decorated with the 'weak' keyword
15975    # *) the shared object with the F_LOADONLY flag set, to really avoid
15976    #    it being seen by the linker.
15977    # At run time we better use the real file rather than another symlink,
15978    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15979
15980    case $with_aix_soname,$aix_use_runtimelinking in
15981    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15982    # soname into executable. Probably we can add versioning support to
15983    # collect2, so additional links can be useful in future.
15984    aix,yes) # traditional libtool
15985      dynamic_linker='AIX unversionable lib.so'
15986      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15987      # instead of lib<name>.a to let people know that these are not
15988      # typical AIX shared libraries.
15989      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15990      ;;
15991    aix,no) # traditional AIX only
15992      dynamic_linker='AIX lib.a(lib.so.V)'
15993      # We preserve .a as extension for shared libraries through AIX4.2
15994      # and later when we are not doing run time linking.
15995      library_names_spec='$libname$release.a $libname.a'
15996      soname_spec='$libname$release$shared_ext$major'
15997      ;;
15998    svr4,*) # full svr4 only
15999      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16000      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16001      # We do not specify a path in Import Files, so LIBPATH fires.
16002      shlibpath_overrides_runpath=yes
16003      ;;
16004    *,yes) # both, prefer svr4
16005      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16006      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16007      # unpreferred sharedlib libNAME.a needs extra handling
16008      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16009      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16010      # We do not specify a path in Import Files, so LIBPATH fires.
16011      shlibpath_overrides_runpath=yes
16012      ;;
16013    *,no) # both, prefer aix
16014      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16015      library_names_spec='$libname$release.a $libname.a'
16016      soname_spec='$libname$release$shared_ext$major'
16017      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16018      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16019      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16020      ;;
16021    esac
16022    shlibpath_var=LIBPATH
16023  fi
16024  ;;
16025
16026amigaos*)
16027  case $host_cpu in
16028  powerpc)
16029    # Since July 2007 AmigaOS4 officially supports .so libraries.
16030    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16031    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032    ;;
16033  m68k)
16034    library_names_spec='$libname.ixlibrary $libname.a'
16035    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16036    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16037    ;;
16038  esac
16039  ;;
16040
16041beos*)
16042  library_names_spec='$libname$shared_ext'
16043  dynamic_linker="$host_os ld.so"
16044  shlibpath_var=LIBRARY_PATH
16045  ;;
16046
16047bsdi[45]*)
16048  version_type=linux # correct to gnu/linux during the next big refactor
16049  need_version=no
16050  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16051  soname_spec='$libname$release$shared_ext$major'
16052  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16053  shlibpath_var=LD_LIBRARY_PATH
16054  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16055  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16056  # the default ld.so.conf also contains /usr/contrib/lib and
16057  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16058  # libtool to hard-code these into programs
16059  ;;
16060
16061cygwin* | mingw* | pw32* | cegcc*)
16062  version_type=windows
16063  shrext_cmds=.dll
16064  need_version=no
16065  need_lib_prefix=no
16066
16067  case $GCC,$cc_basename in
16068  yes,*)
16069    # gcc
16070    library_names_spec='$libname.dll.a'
16071    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16072    postinstall_cmds='base_file=`basename \$file`~
16073      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16074      dldir=$destdir/`dirname \$dlpath`~
16075      test -d \$dldir || mkdir -p \$dldir~
16076      $install_prog $dir/$dlname \$dldir/$dlname~
16077      chmod a+x \$dldir/$dlname~
16078      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16079        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16080      fi'
16081    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16082      dlpath=$dir/\$dldll~
16083       $RM \$dlpath'
16084    shlibpath_overrides_runpath=yes
16085
16086    case $host_os in
16087    cygwin*)
16088      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16089      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16090
16091      ;;
16092    mingw* | cegcc*)
16093      # MinGW DLLs use traditional 'lib' prefix
16094      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16095      ;;
16096    pw32*)
16097      # pw32 DLLs use 'pw' prefix rather than 'lib'
16098      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16099      ;;
16100    esac
16101    dynamic_linker='Win32 ld.exe'
16102    ;;
16103
16104  *,cl*)
16105    # Native MSVC
16106    libname_spec='$name'
16107    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16108    library_names_spec='$libname.dll.lib'
16109
16110    case $build_os in
16111    mingw*)
16112      sys_lib_search_path_spec=
16113      lt_save_ifs=$IFS
16114      IFS=';'
16115      for lt_path in $LIB
16116      do
16117        IFS=$lt_save_ifs
16118        # Let DOS variable expansion print the short 8.3 style file name.
16119        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16120        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16121      done
16122      IFS=$lt_save_ifs
16123      # Convert to MSYS style.
16124      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16125      ;;
16126    cygwin*)
16127      # Convert to unix form, then to dos form, then back to unix form
16128      # but this time dos style (no spaces!) so that the unix form looks
16129      # like /cygdrive/c/PROGRA~1:/cygdr...
16130      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16131      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16132      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16133      ;;
16134    *)
16135      sys_lib_search_path_spec=$LIB
16136      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16137        # It is most probably a Windows format PATH.
16138        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16139      else
16140        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16141      fi
16142      # FIXME: find the short name or the path components, as spaces are
16143      # common. (e.g. "Program Files" -> "PROGRA~1")
16144      ;;
16145    esac
16146
16147    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16148    postinstall_cmds='base_file=`basename \$file`~
16149      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16150      dldir=$destdir/`dirname \$dlpath`~
16151      test -d \$dldir || mkdir -p \$dldir~
16152      $install_prog $dir/$dlname \$dldir/$dlname'
16153    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16154      dlpath=$dir/\$dldll~
16155       $RM \$dlpath'
16156    shlibpath_overrides_runpath=yes
16157    dynamic_linker='Win32 link.exe'
16158    ;;
16159
16160  *)
16161    # Assume MSVC wrapper
16162    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16163    dynamic_linker='Win32 ld.exe'
16164    ;;
16165  esac
16166  # FIXME: first we should search . and the directory the executable is in
16167  shlibpath_var=PATH
16168  ;;
16169
16170darwin* | rhapsody*)
16171  dynamic_linker="$host_os dyld"
16172  version_type=darwin
16173  need_lib_prefix=no
16174  need_version=no
16175  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16176  soname_spec='$libname$release$major$shared_ext'
16177  shlibpath_overrides_runpath=yes
16178  shlibpath_var=DYLD_LIBRARY_PATH
16179  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16180
16181  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16182  ;;
16183
16184dgux*)
16185  version_type=linux # correct to gnu/linux during the next big refactor
16186  need_lib_prefix=no
16187  need_version=no
16188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16189  soname_spec='$libname$release$shared_ext$major'
16190  shlibpath_var=LD_LIBRARY_PATH
16191  ;;
16192
16193freebsd* | dragonfly*)
16194  # DragonFly does not have aout.  When/if they implement a new
16195  # versioning mechanism, adjust this.
16196  if test -x /usr/bin/objformat; then
16197    objformat=`/usr/bin/objformat`
16198  else
16199    case $host_os in
16200    freebsd[23].*) objformat=aout ;;
16201    *) objformat=elf ;;
16202    esac
16203  fi
16204  # Handle Gentoo/FreeBSD as it was Linux
16205  case $host_vendor in
16206    gentoo)
16207      version_type=linux ;;
16208    *)
16209      version_type=freebsd-$objformat ;;
16210  esac
16211
16212  case $version_type in
16213    freebsd-elf*)
16214      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16215      soname_spec='$libname$release$shared_ext$major'
16216      need_version=no
16217      need_lib_prefix=no
16218      ;;
16219    freebsd-*)
16220      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16221      need_version=yes
16222      ;;
16223    linux)
16224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225      soname_spec='${libname}${release}${shared_ext}$major'
16226      need_lib_prefix=no
16227      need_version=no
16228      ;;
16229  esac
16230  shlibpath_var=LD_LIBRARY_PATH
16231  case $host_os in
16232  freebsd2.*)
16233    shlibpath_overrides_runpath=yes
16234    ;;
16235  freebsd3.[01]* | freebsdelf3.[01]*)
16236    shlibpath_overrides_runpath=yes
16237    hardcode_into_libs=yes
16238    ;;
16239  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16240  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16241    shlibpath_overrides_runpath=no
16242    hardcode_into_libs=yes
16243    ;;
16244  *) # from 4.6 on, and DragonFly
16245    shlibpath_overrides_runpath=yes
16246    hardcode_into_libs=yes
16247    ;;
16248  esac
16249  ;;
16250
16251haiku*)
16252  version_type=linux # correct to gnu/linux during the next big refactor
16253  need_lib_prefix=no
16254  need_version=no
16255  dynamic_linker="$host_os runtime_loader"
16256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16257  soname_spec='$libname$release$shared_ext$major'
16258  shlibpath_var=LIBRARY_PATH
16259  shlibpath_overrides_runpath=no
16260  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16261  hardcode_into_libs=yes
16262  ;;
16263
16264hpux9* | hpux10* | hpux11*)
16265  # Give a soname corresponding to the major version so that dld.sl refuses to
16266  # link against other versions.
16267  version_type=sunos
16268  need_lib_prefix=no
16269  need_version=no
16270  case $host_cpu in
16271  ia64*)
16272    shrext_cmds='.so'
16273    hardcode_into_libs=yes
16274    dynamic_linker="$host_os dld.so"
16275    shlibpath_var=LD_LIBRARY_PATH
16276    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16277    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16278    soname_spec='$libname$release$shared_ext$major'
16279    if test 32 = "$HPUX_IA64_MODE"; then
16280      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16281      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16282    else
16283      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16284      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16285    fi
16286    ;;
16287  hppa*64*)
16288    shrext_cmds='.sl'
16289    hardcode_into_libs=yes
16290    dynamic_linker="$host_os dld.sl"
16291    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16292    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16293    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16294    soname_spec='$libname$release$shared_ext$major'
16295    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16296    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16297    ;;
16298  *)
16299    shrext_cmds='.sl'
16300    dynamic_linker="$host_os dld.sl"
16301    shlibpath_var=SHLIB_PATH
16302    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16303    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16304    soname_spec='$libname$release$shared_ext$major'
16305    ;;
16306  esac
16307  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16308  postinstall_cmds='chmod 555 $lib'
16309  # or fails outright, so override atomically:
16310  install_override_mode=555
16311  ;;
16312
16313interix[3-9]*)
16314  version_type=linux # correct to gnu/linux during the next big refactor
16315  need_lib_prefix=no
16316  need_version=no
16317  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16318  soname_spec='$libname$release$shared_ext$major'
16319  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=no
16322  hardcode_into_libs=yes
16323  ;;
16324
16325irix5* | irix6* | nonstopux*)
16326  case $host_os in
16327    nonstopux*) version_type=nonstopux ;;
16328    *)
16329	if test yes = "$lt_cv_prog_gnu_ld"; then
16330		version_type=linux # correct to gnu/linux during the next big refactor
16331	else
16332		version_type=irix
16333	fi ;;
16334  esac
16335  need_lib_prefix=no
16336  need_version=no
16337  soname_spec='$libname$release$shared_ext$major'
16338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16339  case $host_os in
16340  irix5* | nonstopux*)
16341    libsuff= shlibsuff=
16342    ;;
16343  *)
16344    case $LD in # libtool.m4 will add one of these switches to LD
16345    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16346      libsuff= shlibsuff= libmagic=32-bit;;
16347    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16348      libsuff=32 shlibsuff=N32 libmagic=N32;;
16349    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16350      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16351    *) libsuff= shlibsuff= libmagic=never-match;;
16352    esac
16353    ;;
16354  esac
16355  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16356  shlibpath_overrides_runpath=no
16357  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16358  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16359  hardcode_into_libs=yes
16360  ;;
16361
16362# No shared lib support for Linux oldld, aout, or coff.
16363linux*oldld* | linux*aout* | linux*coff*)
16364  dynamic_linker=no
16365  ;;
16366
16367linux*android*)
16368  version_type=none # Android doesn't support versioned libraries.
16369  need_lib_prefix=no
16370  need_version=no
16371  library_names_spec='$libname$release$shared_ext'
16372  soname_spec='$libname$release$shared_ext'
16373  finish_cmds=
16374  shlibpath_var=LD_LIBRARY_PATH
16375  shlibpath_overrides_runpath=yes
16376
16377  # This implies no fast_install, which is unacceptable.
16378  # Some rework will be needed to allow for fast_install
16379  # before this can be enabled.
16380  hardcode_into_libs=yes
16381
16382  dynamic_linker='Android linker'
16383  # Don't embed -rpath directories since the linker doesn't support them.
16384  hardcode_libdir_flag_spec_CXX='-L$libdir'
16385  ;;
16386
16387# This must be glibc/ELF.
16388linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16389  version_type=linux # correct to gnu/linux during the next big refactor
16390  need_lib_prefix=no
16391  need_version=no
16392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16393  soname_spec='$libname$release$shared_ext$major'
16394  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16395  shlibpath_var=LD_LIBRARY_PATH
16396  shlibpath_overrides_runpath=no
16397
16398  # Some binutils ld are patched to set DT_RUNPATH
16399  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16400  $as_echo_n "(cached) " >&6
16401else
16402  lt_cv_shlibpath_overrides_runpath=no
16403    save_LDFLAGS=$LDFLAGS
16404    save_libdir=$libdir
16405    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16406	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h.  */
16409
16410int
16411main ()
16412{
16413
16414  ;
16415  return 0;
16416}
16417_ACEOF
16418if ac_fn_cxx_try_link "$LINENO"; then :
16419  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16420  lt_cv_shlibpath_overrides_runpath=yes
16421fi
16422fi
16423rm -f core conftest.err conftest.$ac_objext \
16424    conftest$ac_exeext conftest.$ac_ext
16425    LDFLAGS=$save_LDFLAGS
16426    libdir=$save_libdir
16427
16428fi
16429
16430  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16431
16432  # This implies no fast_install, which is unacceptable.
16433  # Some rework will be needed to allow for fast_install
16434  # before this can be enabled.
16435  hardcode_into_libs=yes
16436
16437  # Ideally, we could use ldconfig to report *all* directores which are
16438  # searched for libraries, however this is still not possible.  Aside from not
16439  # being certain /sbin/ldconfig is available, command
16440  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16441  # even though it is searched at run-time.  Try to do the best guess by
16442  # appending ld.so.conf contents (and includes) to the search path.
16443  if test -f /etc/ld.so.conf; then
16444    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' ' '`
16445    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16446  fi
16447
16448  # We used to test for /lib/ld.so.1 and disable shared libraries on
16449  # powerpc, because MkLinux only supported shared libraries with the
16450  # GNU dynamic linker.  Since this was broken with cross compilers,
16451  # most powerpc-linux boxes support dynamic linking these days and
16452  # people can always --disable-shared, the test was removed, and we
16453  # assume the GNU/Linux dynamic linker is in use.
16454  dynamic_linker='GNU/Linux ld.so'
16455  ;;
16456
16457netbsd*)
16458  version_type=sunos
16459  need_lib_prefix=no
16460  need_version=no
16461  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16462    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16463    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16464    dynamic_linker='NetBSD (a.out) ld.so'
16465  else
16466    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16467    soname_spec='$libname$release$shared_ext$major'
16468    dynamic_linker='NetBSD ld.elf_so'
16469  fi
16470  shlibpath_var=LD_LIBRARY_PATH
16471  shlibpath_overrides_runpath=yes
16472  hardcode_into_libs=yes
16473  ;;
16474
16475newsos6)
16476  version_type=linux # correct to gnu/linux during the next big refactor
16477  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16478  shlibpath_var=LD_LIBRARY_PATH
16479  shlibpath_overrides_runpath=yes
16480  ;;
16481
16482*nto* | *qnx*)
16483  version_type=qnx
16484  need_lib_prefix=no
16485  need_version=no
16486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16487  soname_spec='$libname$release$shared_ext$major'
16488  shlibpath_var=LD_LIBRARY_PATH
16489  shlibpath_overrides_runpath=no
16490  hardcode_into_libs=yes
16491  dynamic_linker='ldqnx.so'
16492  ;;
16493
16494openbsd* | bitrig*)
16495  version_type=sunos
16496  sys_lib_dlsearch_path_spec=/usr/lib
16497  need_lib_prefix=no
16498  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16499    need_version=no
16500  else
16501    need_version=yes
16502  fi
16503  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16504  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16505  shlibpath_var=LD_LIBRARY_PATH
16506  shlibpath_overrides_runpath=yes
16507  ;;
16508
16509os2*)
16510  libname_spec='$name'
16511  version_type=windows
16512  shrext_cmds=.dll
16513  need_version=no
16514  need_lib_prefix=no
16515  # OS/2 can only load a DLL with a base name of 8 characters or less.
16516  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16517    v=$($ECHO $release$versuffix | tr -d .-);
16518    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16519    $ECHO $n$v`$shared_ext'
16520  library_names_spec='${libname}_dll.$libext'
16521  dynamic_linker='OS/2 ld.exe'
16522  shlibpath_var=BEGINLIBPATH
16523  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16524  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16525  postinstall_cmds='base_file=`basename \$file`~
16526    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16527    dldir=$destdir/`dirname \$dlpath`~
16528    test -d \$dldir || mkdir -p \$dldir~
16529    $install_prog $dir/$dlname \$dldir/$dlname~
16530    chmod a+x \$dldir/$dlname~
16531    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16532      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16533    fi'
16534  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16535    dlpath=$dir/\$dldll~
16536    $RM \$dlpath'
16537  ;;
16538
16539osf3* | osf4* | osf5*)
16540  version_type=osf
16541  need_lib_prefix=no
16542  need_version=no
16543  soname_spec='$libname$release$shared_ext$major'
16544  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16545  shlibpath_var=LD_LIBRARY_PATH
16546  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16547  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16548  ;;
16549
16550rdos*)
16551  dynamic_linker=no
16552  ;;
16553
16554solaris*)
16555  version_type=linux # correct to gnu/linux during the next big refactor
16556  need_lib_prefix=no
16557  need_version=no
16558  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16559  soname_spec='$libname$release$shared_ext$major'
16560  shlibpath_var=LD_LIBRARY_PATH
16561  shlibpath_overrides_runpath=yes
16562  hardcode_into_libs=yes
16563  # ldd complains unless libraries are executable
16564  postinstall_cmds='chmod +x $lib'
16565  ;;
16566
16567sunos4*)
16568  version_type=sunos
16569  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16570  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16571  shlibpath_var=LD_LIBRARY_PATH
16572  shlibpath_overrides_runpath=yes
16573  if test yes = "$with_gnu_ld"; then
16574    need_lib_prefix=no
16575  fi
16576  need_version=yes
16577  ;;
16578
16579sysv4 | sysv4.3*)
16580  version_type=linux # correct to gnu/linux during the next big refactor
16581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16582  soname_spec='$libname$release$shared_ext$major'
16583  shlibpath_var=LD_LIBRARY_PATH
16584  case $host_vendor in
16585    sni)
16586      shlibpath_overrides_runpath=no
16587      need_lib_prefix=no
16588      runpath_var=LD_RUN_PATH
16589      ;;
16590    siemens)
16591      need_lib_prefix=no
16592      ;;
16593    motorola)
16594      need_lib_prefix=no
16595      need_version=no
16596      shlibpath_overrides_runpath=no
16597      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16598      ;;
16599  esac
16600  ;;
16601
16602sysv4*MP*)
16603  if test -d /usr/nec; then
16604    version_type=linux # correct to gnu/linux during the next big refactor
16605    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16606    soname_spec='$libname$shared_ext.$major'
16607    shlibpath_var=LD_LIBRARY_PATH
16608  fi
16609  ;;
16610
16611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16612  version_type=sco
16613  need_lib_prefix=no
16614  need_version=no
16615  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16616  soname_spec='$libname$release$shared_ext$major'
16617  shlibpath_var=LD_LIBRARY_PATH
16618  shlibpath_overrides_runpath=yes
16619  hardcode_into_libs=yes
16620  if test yes = "$with_gnu_ld"; then
16621    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16622  else
16623    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16624    case $host_os in
16625      sco3.2v5*)
16626        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16627	;;
16628    esac
16629  fi
16630  sys_lib_dlsearch_path_spec='/usr/lib'
16631  ;;
16632
16633tpf*)
16634  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16635  version_type=linux # correct to gnu/linux during the next big refactor
16636  need_lib_prefix=no
16637  need_version=no
16638  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16639  shlibpath_var=LD_LIBRARY_PATH
16640  shlibpath_overrides_runpath=no
16641  hardcode_into_libs=yes
16642  ;;
16643
16644uts4*)
16645  version_type=linux # correct to gnu/linux during the next big refactor
16646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16647  soname_spec='$libname$release$shared_ext$major'
16648  shlibpath_var=LD_LIBRARY_PATH
16649  ;;
16650
16651*)
16652  dynamic_linker=no
16653  ;;
16654esac
16655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16656$as_echo "$dynamic_linker" >&6; }
16657test no = "$dynamic_linker" && can_build_shared=no
16658
16659variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16660if test yes = "$GCC"; then
16661  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16662fi
16663
16664if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16665  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16666fi
16667
16668if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16669  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16670fi
16671
16672# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16673configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16674
16675# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16676func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16677
16678# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16679configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16721$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16722hardcode_action_CXX=
16723if test -n "$hardcode_libdir_flag_spec_CXX" ||
16724   test -n "$runpath_var_CXX" ||
16725   test yes = "$hardcode_automatic_CXX"; then
16726
16727  # We can hardcode non-existent directories.
16728  if test no != "$hardcode_direct_CXX" &&
16729     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16730     # have to relink, otherwise we might link with an installed library
16731     # when we should be linking with a yet-to-be-installed one
16732     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16733     test no != "$hardcode_minus_L_CXX"; then
16734    # Linking always hardcodes the temporary library directory.
16735    hardcode_action_CXX=relink
16736  else
16737    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16738    hardcode_action_CXX=immediate
16739  fi
16740else
16741  # We cannot hardcode anything, or else we can only hardcode existing
16742  # directories.
16743  hardcode_action_CXX=unsupported
16744fi
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16746$as_echo "$hardcode_action_CXX" >&6; }
16747
16748if test relink = "$hardcode_action_CXX" ||
16749   test yes = "$inherit_rpath_CXX"; then
16750  # Fast installation is not supported
16751  enable_fast_install=no
16752elif test yes = "$shlibpath_overrides_runpath" ||
16753     test no = "$enable_shared"; then
16754  # Fast installation is not necessary
16755  enable_fast_install=needless
16756fi
16757
16758
16759
16760
16761
16762
16763
16764  fi # test -n "$compiler"
16765
16766  CC=$lt_save_CC
16767  CFLAGS=$lt_save_CFLAGS
16768  LDCXX=$LD
16769  LD=$lt_save_LD
16770  GCC=$lt_save_GCC
16771  with_gnu_ld=$lt_save_with_gnu_ld
16772  lt_cv_path_LDCXX=$lt_cv_path_LD
16773  lt_cv_path_LD=$lt_save_path_LD
16774  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16775  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16776fi # test yes != "$_lt_caught_CXX_error"
16777
16778ac_ext=c
16779ac_cpp='$CPP $CPPFLAGS'
16780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16782ac_compiler_gnu=$ac_cv_c_compiler_gnu
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798        ac_config_commands="$ac_config_commands libtool"
16799
16800
16801
16802
16803# Only expand once:
16804
16805
16806
16807ac_config_headers="$ac_config_headers config.h"
16808
16809
16810# Check whether --enable-largefile was given.
16811if test "${enable_largefile+set}" = set; then :
16812  enableval=$enable_largefile;
16813fi
16814
16815if test "$enable_largefile" != no; then
16816
16817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16818$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16819if ${ac_cv_sys_largefile_CC+:} false; then :
16820  $as_echo_n "(cached) " >&6
16821else
16822  ac_cv_sys_largefile_CC=no
16823     if test "$GCC" != yes; then
16824       ac_save_CC=$CC
16825       while :; do
16826	 # IRIX 6.2 and later do not support large files by default,
16827	 # so use the C compiler's -n32 option if that helps.
16828	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h.  */
16830#include <sys/types.h>
16831 /* Check that off_t can represent 2**63 - 1 correctly.
16832    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16833    since some C++ compilers masquerading as C compilers
16834    incorrectly reject 9223372036854775807.  */
16835#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16836  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16837		       && LARGE_OFF_T % 2147483647 == 1)
16838		      ? 1 : -1];
16839int
16840main ()
16841{
16842
16843  ;
16844  return 0;
16845}
16846_ACEOF
16847	 if ac_fn_c_try_compile "$LINENO"; then :
16848  break
16849fi
16850rm -f core conftest.err conftest.$ac_objext
16851	 CC="$CC -n32"
16852	 if ac_fn_c_try_compile "$LINENO"; then :
16853  ac_cv_sys_largefile_CC=' -n32'; break
16854fi
16855rm -f core conftest.err conftest.$ac_objext
16856	 break
16857       done
16858       CC=$ac_save_CC
16859       rm -f conftest.$ac_ext
16860    fi
16861fi
16862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16863$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16864  if test "$ac_cv_sys_largefile_CC" != no; then
16865    CC=$CC$ac_cv_sys_largefile_CC
16866  fi
16867
16868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16869$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16870if ${ac_cv_sys_file_offset_bits+:} false; then :
16871  $as_echo_n "(cached) " >&6
16872else
16873  while :; do
16874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875/* end confdefs.h.  */
16876#include <sys/types.h>
16877 /* Check that off_t can represent 2**63 - 1 correctly.
16878    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16879    since some C++ compilers masquerading as C compilers
16880    incorrectly reject 9223372036854775807.  */
16881#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16882  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16883		       && LARGE_OFF_T % 2147483647 == 1)
16884		      ? 1 : -1];
16885int
16886main ()
16887{
16888
16889  ;
16890  return 0;
16891}
16892_ACEOF
16893if ac_fn_c_try_compile "$LINENO"; then :
16894  ac_cv_sys_file_offset_bits=no; break
16895fi
16896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898/* end confdefs.h.  */
16899#define _FILE_OFFSET_BITS 64
16900#include <sys/types.h>
16901 /* Check that off_t can represent 2**63 - 1 correctly.
16902    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16903    since some C++ compilers masquerading as C compilers
16904    incorrectly reject 9223372036854775807.  */
16905#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16906  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16907		       && LARGE_OFF_T % 2147483647 == 1)
16908		      ? 1 : -1];
16909int
16910main ()
16911{
16912
16913  ;
16914  return 0;
16915}
16916_ACEOF
16917if ac_fn_c_try_compile "$LINENO"; then :
16918  ac_cv_sys_file_offset_bits=64; break
16919fi
16920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921  ac_cv_sys_file_offset_bits=unknown
16922  break
16923done
16924fi
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16926$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16927case $ac_cv_sys_file_offset_bits in #(
16928  no | unknown) ;;
16929  *)
16930cat >>confdefs.h <<_ACEOF
16931#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16932_ACEOF
16933;;
16934esac
16935rm -rf conftest*
16936  if test $ac_cv_sys_file_offset_bits = unknown; then
16937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16938$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16939if ${ac_cv_sys_large_files+:} false; then :
16940  $as_echo_n "(cached) " >&6
16941else
16942  while :; do
16943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h.  */
16945#include <sys/types.h>
16946 /* Check that off_t can represent 2**63 - 1 correctly.
16947    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16948    since some C++ compilers masquerading as C compilers
16949    incorrectly reject 9223372036854775807.  */
16950#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16951  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16952		       && LARGE_OFF_T % 2147483647 == 1)
16953		      ? 1 : -1];
16954int
16955main ()
16956{
16957
16958  ;
16959  return 0;
16960}
16961_ACEOF
16962if ac_fn_c_try_compile "$LINENO"; then :
16963  ac_cv_sys_large_files=no; break
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967/* end confdefs.h.  */
16968#define _LARGE_FILES 1
16969#include <sys/types.h>
16970 /* Check that off_t can represent 2**63 - 1 correctly.
16971    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16972    since some C++ compilers masquerading as C compilers
16973    incorrectly reject 9223372036854775807.  */
16974#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16975  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16976		       && LARGE_OFF_T % 2147483647 == 1)
16977		      ? 1 : -1];
16978int
16979main ()
16980{
16981
16982  ;
16983  return 0;
16984}
16985_ACEOF
16986if ac_fn_c_try_compile "$LINENO"; then :
16987  ac_cv_sys_large_files=1; break
16988fi
16989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990  ac_cv_sys_large_files=unknown
16991  break
16992done
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16995$as_echo "$ac_cv_sys_large_files" >&6; }
16996case $ac_cv_sys_large_files in #(
16997  no | unknown) ;;
16998  *)
16999cat >>confdefs.h <<_ACEOF
17000#define _LARGE_FILES $ac_cv_sys_large_files
17001_ACEOF
17002;;
17003esac
17004rm -rf conftest*
17005  fi
17006
17007
17008fi
17009
17010
17011# Check whether --enable-silent-rules was given.
17012if test "${enable_silent_rules+set}" = set; then :
17013  enableval=$enable_silent_rules;
17014fi
17015
17016case $enable_silent_rules in # (((
17017  yes) AM_DEFAULT_VERBOSITY=0;;
17018   no) AM_DEFAULT_VERBOSITY=1;;
17019    *) AM_DEFAULT_VERBOSITY=0;;
17020esac
17021am_make=${MAKE-make}
17022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17023$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17024if ${am_cv_make_support_nested_variables+:} false; then :
17025  $as_echo_n "(cached) " >&6
17026else
17027  if $as_echo 'TRUE=$(BAR$(V))
17028BAR0=false
17029BAR1=true
17030V=1
17031am__doit:
17032	@$(TRUE)
17033.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17034  am_cv_make_support_nested_variables=yes
17035else
17036  am_cv_make_support_nested_variables=no
17037fi
17038fi
17039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17040$as_echo "$am_cv_make_support_nested_variables" >&6; }
17041if test $am_cv_make_support_nested_variables = yes; then
17042    AM_V='$(V)'
17043  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17044else
17045  AM_V=$AM_DEFAULT_VERBOSITY
17046  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17047fi
17048AM_BACKSLASH='\'
17049
17050
17051need_jack=no
17052
17053ac_ext=cpp
17054ac_cpp='$CXXCPP $CPPFLAGS'
17055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17058
17059TMP_CXXFLAGS="$CXXFLAGS"
17060CXXFLAGS=-std=c++11
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -std=c++11" >&5
17062$as_echo_n "checking whether CXX supports -std=c++11... " >&6; }
17063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064/* end confdefs.h.  */
17065
17066int
17067main ()
17068{
17069
17070  ;
17071  return 0;
17072}
17073_ACEOF
17074if ac_fn_cxx_try_compile "$LINENO"; then :
17075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076$as_echo "yes" >&6; }
17077else
17078
17079	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080$as_echo "no" >&6; }
17081	 CXXFLAGS=-std=c++0x
17082	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -std=c++0x" >&5
17083$as_echo_n "checking whether CXX supports -std=c++0x... " >&6; }
17084	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085/* end confdefs.h.  */
17086
17087int
17088main ()
17089{
17090
17091  ;
17092  return 0;
17093}
17094_ACEOF
17095if ac_fn_cxx_try_compile "$LINENO"; then :
17096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17097$as_echo "yes" >&6; }
17098else
17099
17100	 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17101$as_echo "no" >&6; }
17102	 	 as_fn_error $? "Compiler does not support c++11" "$LINENO" 5
17103
17104
17105fi
17106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17107
17108
17109fi
17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111CXXFLAGS="$TMP_CXXFLAGS $CXXFLAGS"
17112OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS"
17113ac_ext=c
17114ac_cpp='$CPP $CPPFLAGS'
17115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17117ac_compiler_gnu=$ac_cv_c_compiler_gnu
17118
17119
17120ac_ext=cpp
17121ac_cpp='$CXXCPP $CPPFLAGS'
17122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17125
17126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'override' and 'final' keywords are supported" >&5
17127$as_echo_n "checking whether 'override' and 'final' keywords are supported... " >&6; }
17128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h.  */
17130
17131			class A { virtual void foo() {} };
17132			class B : public A { virtual void foo() override {} };
17133			class C : public B { virtual void foo() final {} };
17134
17135
17136
17137_ACEOF
17138if ac_fn_cxx_try_compile "$LINENO"; then :
17139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17140$as_echo "yes" >&6; }
17141else
17142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (deploying fix)" >&5
17143$as_echo "no (deploying fix)" >&6; }
17144	 CXXFLAGS="$CXXFLAGS -Doverride=\"\" -Dfinal=\"\""
17145
17146
17147fi
17148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149ac_ext=c
17150ac_cpp='$CPP $CPPFLAGS'
17151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17153ac_compiler_gnu=$ac_cv_c_compiler_gnu
17154
17155
17156ac_ext=cpp
17157ac_cpp='$CXXCPP $CPPFLAGS'
17158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17161
17162TMP_CXXFLAGS="$CXXFLAGS"
17163CXXFLAGS="-Wall -Werror -ffloat-store"
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -ffloat-store" >&5
17165$as_echo_n "checking whether CXX supports -ffloat-store... " >&6; }
17166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h.  */
17168
17169int
17170main ()
17171{
17172
17173  ;
17174  return 0;
17175}
17176_ACEOF
17177if ac_fn_cxx_try_compile "$LINENO"; then :
17178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17179$as_echo "yes" >&6; }
17180	 FLOAT_STORE="-ffloat-store"
17181
17182else
17183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184$as_echo "no" >&6; }
17185	 FLOAT_STORE=""
17186
17187
17188fi
17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190
17191CXXFLAGS="$TMP_CXXFLAGS"
17192ac_ext=c
17193ac_cpp='$CPP $CPPFLAGS'
17194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17196ac_compiler_gnu=$ac_cv_c_compiler_gnu
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17207	if test -n "$ac_tool_prefix"; then
17208  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17209set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17211$as_echo_n "checking for $ac_word... " >&6; }
17212if ${ac_cv_path_PKG_CONFIG+:} false; then :
17213  $as_echo_n "(cached) " >&6
17214else
17215  case $PKG_CONFIG in
17216  [\\/]* | ?:[\\/]*)
17217  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17218  ;;
17219  *)
17220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221for as_dir in $PATH
17222do
17223  IFS=$as_save_IFS
17224  test -z "$as_dir" && as_dir=.
17225    for ac_exec_ext in '' $ac_executable_extensions; do
17226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17227    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17229    break 2
17230  fi
17231done
17232  done
17233IFS=$as_save_IFS
17234
17235  ;;
17236esac
17237fi
17238PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17239if test -n "$PKG_CONFIG"; then
17240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17241$as_echo "$PKG_CONFIG" >&6; }
17242else
17243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244$as_echo "no" >&6; }
17245fi
17246
17247
17248fi
17249if test -z "$ac_cv_path_PKG_CONFIG"; then
17250  ac_pt_PKG_CONFIG=$PKG_CONFIG
17251  # Extract the first word of "pkg-config", so it can be a program name with args.
17252set dummy pkg-config; ac_word=$2
17253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17254$as_echo_n "checking for $ac_word... " >&6; }
17255if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17256  $as_echo_n "(cached) " >&6
17257else
17258  case $ac_pt_PKG_CONFIG in
17259  [\\/]* | ?:[\\/]*)
17260  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17261  ;;
17262  *)
17263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17264for as_dir in $PATH
17265do
17266  IFS=$as_save_IFS
17267  test -z "$as_dir" && as_dir=.
17268    for ac_exec_ext in '' $ac_executable_extensions; do
17269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17270    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17272    break 2
17273  fi
17274done
17275  done
17276IFS=$as_save_IFS
17277
17278  ;;
17279esac
17280fi
17281ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17282if test -n "$ac_pt_PKG_CONFIG"; then
17283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17284$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17285else
17286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287$as_echo "no" >&6; }
17288fi
17289
17290  if test "x$ac_pt_PKG_CONFIG" = x; then
17291    PKG_CONFIG=""
17292  else
17293    case $cross_compiling:$ac_tool_warned in
17294yes:)
17295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17297ac_tool_warned=yes ;;
17298esac
17299    PKG_CONFIG=$ac_pt_PKG_CONFIG
17300  fi
17301else
17302  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17303fi
17304
17305fi
17306if test -n "$PKG_CONFIG"; then
17307	_pkg_min_version=0.23
17308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17309$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17310	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17312$as_echo "yes" >&6; }
17313	else
17314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
17316		PKG_CONFIG=""
17317	fi
17318fi
17319
17320HUGIN_PARM="-DDISABLE_HUGIN"
17321
17322# Check whether --with-debug was given.
17323if test "${with_debug+set}" = set; then :
17324  withval=$with_debug;
17325fi
17326
17327
17328ac_ext=cpp
17329ac_cpp='$CXXCPP $CPPFLAGS'
17330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17333
17334TMP_CXXFLAGS="$CXXFLAGS"
17335TMP_LDFLAGS="$LDFLAGS"
17336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports '-Wl,-no-undefined'" >&5
17337$as_echo_n "checking whether linker supports '-Wl,-no-undefined'... " >&6; }
17338CXXFLAGS="-Wall -Werror"
17339LDFLAGS="-no-undefined"
17340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341/* end confdefs.h.  */
17342
17343int
17344main ()
17345{
17346
17347  ;
17348  return 0;
17349}
17350_ACEOF
17351if ac_fn_cxx_try_link "$LINENO"; then :
17352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17353$as_echo "yes" >&6; }
17354		NO_UNDEFINED_PARAM=-Wl,-no-undefined
17355
17356else
17357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358$as_echo "no" >&6; }
17359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports '-Wl,-undefined,error'" >&5
17360$as_echo_n "checking whether linker supports '-Wl,-undefined,error'... " >&6; }
17361		LDFLAGS="-undefined,error"
17362		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363/* end confdefs.h.  */
17364
17365int
17366main ()
17367{
17368
17369  ;
17370  return 0;
17371}
17372_ACEOF
17373if ac_fn_cxx_try_link "$LINENO"; then :
17374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375$as_echo "yes" >&6; }
17376				NO_UNDEFINED_PARAM=-Wl,-undefined,error
17377
17378else
17379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17380$as_echo "no" >&6; }
17381				NO_UNDEFINED_PARAM=""
17382
17383
17384fi
17385rm -f core conftest.err conftest.$ac_objext \
17386    conftest$ac_exeext conftest.$ac_ext
17387
17388
17389fi
17390rm -f core conftest.err conftest.$ac_objext \
17391    conftest$ac_exeext conftest.$ac_ext
17392CXXFLAGS="$TMP_CXXFLAGS"
17393LDFLAGS="$TMP_LDFLAGS"
17394ac_ext=c
17395ac_cpp='$CPP $CPPFLAGS'
17396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17398ac_compiler_gnu=$ac_cv_c_compiler_gnu
17399
17400
17401if test "x$with_debug" = "xyes"; then :
17402  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building with debug support!" >&5
17403$as_echo "$as_me: WARNING: *** Building with debug support!" >&2;}
17404	     DEBUG_FLAGS="-Wall -Werror -g $NO_UNDEFINED_PARAM"
17405	     HUGIN_PARM=""
17406
17407fi
17408
17409
17410CXXFLAGS="$CXXFLAGS $HUGIN_PARM"
17411
17412
17413
17414# Check whether --with-nls was given.
17415if test "${with_nls+set}" = set; then :
17416  withval=$with_nls;
17417else
17418  with_nls=yes
17419fi
17420
17421            if test "x$with_nls" == "xyes"; then :
17422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Building with nls support!" >&5
17423$as_echo "*** Building with nls support!" >&6; }
17424                   for ac_prog in xgettext
17425do
17426  # Extract the first word of "$ac_prog", so it can be a program name with args.
17427set dummy $ac_prog; ac_word=$2
17428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17429$as_echo_n "checking for $ac_word... " >&6; }
17430if ${ac_cv_prog_XGETTEXT+:} false; then :
17431  $as_echo_n "(cached) " >&6
17432else
17433  if test -n "$XGETTEXT"; then
17434  ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17435else
17436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17437for as_dir in $PATH
17438do
17439  IFS=$as_save_IFS
17440  test -z "$as_dir" && as_dir=.
17441    for ac_exec_ext in '' $ac_executable_extensions; do
17442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17443    ac_cv_prog_XGETTEXT="$ac_prog"
17444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17445    break 2
17446  fi
17447done
17448  done
17449IFS=$as_save_IFS
17450
17451fi
17452fi
17453XGETTEXT=$ac_cv_prog_XGETTEXT
17454if test -n "$XGETTEXT"; then
17455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17456$as_echo "$XGETTEXT" >&6; }
17457else
17458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459$as_echo "no" >&6; }
17460fi
17461
17462
17463  test -n "$XGETTEXT" && break
17464done
17465
17466                   for ac_prog in msgmerge
17467do
17468  # Extract the first word of "$ac_prog", so it can be a program name with args.
17469set dummy $ac_prog; ac_word=$2
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471$as_echo_n "checking for $ac_word... " >&6; }
17472if ${ac_cv_prog_MSGMERGE+:} false; then :
17473  $as_echo_n "(cached) " >&6
17474else
17475  if test -n "$MSGMERGE"; then
17476  ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17477else
17478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17479for as_dir in $PATH
17480do
17481  IFS=$as_save_IFS
17482  test -z "$as_dir" && as_dir=.
17483    for ac_exec_ext in '' $ac_executable_extensions; do
17484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17485    ac_cv_prog_MSGMERGE="$ac_prog"
17486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17487    break 2
17488  fi
17489done
17490  done
17491IFS=$as_save_IFS
17492
17493fi
17494fi
17495MSGMERGE=$ac_cv_prog_MSGMERGE
17496if test -n "$MSGMERGE"; then
17497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17498$as_echo "$MSGMERGE" >&6; }
17499else
17500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17501$as_echo "no" >&6; }
17502fi
17503
17504
17505  test -n "$MSGMERGE" && break
17506done
17507
17508                   for ac_prog in msgfmt
17509do
17510  # Extract the first word of "$ac_prog", so it can be a program name with args.
17511set dummy $ac_prog; ac_word=$2
17512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17513$as_echo_n "checking for $ac_word... " >&6; }
17514if ${ac_cv_prog_MSGFMT+:} false; then :
17515  $as_echo_n "(cached) " >&6
17516else
17517  if test -n "$MSGFMT"; then
17518  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17519else
17520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521for as_dir in $PATH
17522do
17523  IFS=$as_save_IFS
17524  test -z "$as_dir" && as_dir=.
17525    for ac_exec_ext in '' $ac_executable_extensions; do
17526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17527    ac_cv_prog_MSGFMT="$ac_prog"
17528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17529    break 2
17530  fi
17531done
17532  done
17533IFS=$as_save_IFS
17534
17535fi
17536fi
17537MSGFMT=$ac_cv_prog_MSGFMT
17538if test -n "$MSGFMT"; then
17539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17540$as_echo "$MSGFMT" >&6; }
17541else
17542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543$as_echo "no" >&6; }
17544fi
17545
17546
17547  test -n "$MSGFMT" && break
17548done
17549
17550
17551cat >>confdefs.h <<_ACEOF
17552#define WITH_NLS /**/
17553_ACEOF
17554
17555else
17556  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building without nls support!" >&5
17557$as_echo "$as_me: WARNING: *** Building without nls support!" >&2;}
17558
17559fi
17560 if test "x$with_nls" = "xyes"; then
17561  WITH_NLS_TRUE=
17562  WITH_NLS_FALSE='#'
17563else
17564  WITH_NLS_TRUE='#'
17565  WITH_NLS_FALSE=
17566fi
17567
17568
17569
17570
17571# Check whether --enable-gui was given.
17572if test "${enable_gui+set}" = set; then :
17573  enableval=$enable_gui;
17574else
17575  enable_gui="auto"
17576fi
17577
17578
17579if test "x$enable_gui" = "xyes"; then :
17580  enable_gui="auto"
17581fi
17582
17583if test "x$enable_gui" = "xauto"; then :
17584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Auto setting gui based on host: $host_os" >&5
17585$as_echo "Auto setting gui based on host: $host_os" >&6; }
17586	     case $host_os in #(
17587  darwin*) :
17588    enable_gui="cocoa" ;; #(
17589  linux*|*bsd*|dragonfly*) :
17590    enable_gui="x11" ;; #(
17591  msys|mingw*|windows*|winnt|cygwin) :
17592    enable_gui="win32" ;; #(
17593  *) :
17594    as_fn_error $? "Your platform is not currently supported" "$LINENO" 5
17595	      ;;
17596esac
17597
17598fi
17599
17600if test "x$enable_gui" = "xx11"; then :
17601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to X11" >&5
17602$as_echo "Setting gui backend to X11" >&6; }
17603
17604pkg_failed=no
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
17606$as_echo_n "checking for X11... " >&6; }
17607
17608if test -n "$X11_CFLAGS"; then
17609    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
17610 elif test -n "$PKG_CONFIG"; then
17611    if test -n "$PKG_CONFIG" && \
17612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0\""; } >&5
17613  ($PKG_CONFIG --exists --print-errors "x11 >= 1.0") 2>&5
17614  ac_status=$?
17615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17616  test $ac_status = 0; }; then
17617  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.0" 2>/dev/null`
17618		      test "x$?" != "x0" && pkg_failed=yes
17619else
17620  pkg_failed=yes
17621fi
17622 else
17623    pkg_failed=untried
17624fi
17625if test -n "$X11_LIBS"; then
17626    pkg_cv_X11_LIBS="$X11_LIBS"
17627 elif test -n "$PKG_CONFIG"; then
17628    if test -n "$PKG_CONFIG" && \
17629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0\""; } >&5
17630  ($PKG_CONFIG --exists --print-errors "x11 >= 1.0") 2>&5
17631  ac_status=$?
17632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633  test $ac_status = 0; }; then
17634  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 >= 1.0" 2>/dev/null`
17635		      test "x$?" != "x0" && pkg_failed=yes
17636else
17637  pkg_failed=yes
17638fi
17639 else
17640    pkg_failed=untried
17641fi
17642
17643
17644
17645if test $pkg_failed = yes; then
17646   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647$as_echo "no" >&6; }
17648
17649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17650        _pkg_short_errors_supported=yes
17651else
17652        _pkg_short_errors_supported=no
17653fi
17654        if test $_pkg_short_errors_supported = yes; then
17655	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.0" 2>&1`
17656        else
17657	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.0" 2>&1`
17658        fi
17659	# Put the nasty error message in config.log where it belongs
17660	echo "$X11_PKG_ERRORS" >&5
17661
17662	as_fn_error $? "Package requirements (x11 >= 1.0) were not met:
17663
17664$X11_PKG_ERRORS
17665
17666Consider adjusting the PKG_CONFIG_PATH environment variable if you
17667installed software in a non-standard prefix.
17668
17669Alternatively, you may set the environment variables X11_CFLAGS
17670and X11_LIBS to avoid the need to call pkg-config.
17671See the pkg-config man page for more details." "$LINENO" 5
17672elif test $pkg_failed = untried; then
17673     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674$as_echo "no" >&6; }
17675	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17677as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17678is in your PATH or set the PKG_CONFIG environment variable to the full
17679path to pkg-config.
17680
17681Alternatively, you may set the environment variables X11_CFLAGS
17682and X11_LIBS to avoid the need to call pkg-config.
17683See the pkg-config man page for more details.
17684
17685To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17686See \`config.log' for more details" "$LINENO" 5; }
17687else
17688	X11_CFLAGS=$pkg_cv_X11_CFLAGS
17689	X11_LIBS=$pkg_cv_X11_LIBS
17690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691$as_echo "yes" >&6; }
17692
17693fi
17694
17695pkg_failed=no
17696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17697$as_echo_n "checking for XEXT... " >&6; }
17698
17699if test -n "$XEXT_CFLAGS"; then
17700    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17701 elif test -n "$PKG_CONFIG"; then
17702    if test -n "$PKG_CONFIG" && \
17703    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext >= 1.0\""; } >&5
17704  ($PKG_CONFIG --exists --print-errors "xext >= 1.0") 2>&5
17705  ac_status=$?
17706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17707  test $ac_status = 0; }; then
17708  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext >= 1.0" 2>/dev/null`
17709		      test "x$?" != "x0" && pkg_failed=yes
17710else
17711  pkg_failed=yes
17712fi
17713 else
17714    pkg_failed=untried
17715fi
17716if test -n "$XEXT_LIBS"; then
17717    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17718 elif test -n "$PKG_CONFIG"; then
17719    if test -n "$PKG_CONFIG" && \
17720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext >= 1.0\""; } >&5
17721  ($PKG_CONFIG --exists --print-errors "xext >= 1.0") 2>&5
17722  ac_status=$?
17723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17724  test $ac_status = 0; }; then
17725  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext >= 1.0" 2>/dev/null`
17726		      test "x$?" != "x0" && pkg_failed=yes
17727else
17728  pkg_failed=yes
17729fi
17730 else
17731    pkg_failed=untried
17732fi
17733
17734
17735
17736if test $pkg_failed = yes; then
17737   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738$as_echo "no" >&6; }
17739
17740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17741        _pkg_short_errors_supported=yes
17742else
17743        _pkg_short_errors_supported=no
17744fi
17745        if test $_pkg_short_errors_supported = yes; then
17746	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext >= 1.0" 2>&1`
17747        else
17748	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext >= 1.0" 2>&1`
17749        fi
17750	# Put the nasty error message in config.log where it belongs
17751	echo "$XEXT_PKG_ERRORS" >&5
17752
17753	as_fn_error $? "Package requirements (xext >= 1.0) were not met:
17754
17755$XEXT_PKG_ERRORS
17756
17757Consider adjusting the PKG_CONFIG_PATH environment variable if you
17758installed software in a non-standard prefix.
17759
17760Alternatively, you may set the environment variables XEXT_CFLAGS
17761and XEXT_LIBS to avoid the need to call pkg-config.
17762See the pkg-config man page for more details." "$LINENO" 5
17763elif test $pkg_failed = untried; then
17764     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765$as_echo "no" >&6; }
17766	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17768as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17769is in your PATH or set the PKG_CONFIG environment variable to the full
17770path to pkg-config.
17771
17772Alternatively, you may set the environment variables XEXT_CFLAGS
17773and XEXT_LIBS to avoid the need to call pkg-config.
17774See the pkg-config man page for more details.
17775
17776To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17777See \`config.log' for more details" "$LINENO" 5; }
17778else
17779	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17780	XEXT_LIBS=$pkg_cv_XEXT_LIBS
17781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17782$as_echo "yes" >&6; }
17783
17784fi
17785  GUI_CPPFLAGS="-DUI_X11 $X11_CFLAGS $XEXT_CFLAGS"
17786  GUI_LIBS="$X11_LIBS $XEXT_LIBS"
17787elif test "x$enable_gui" = "xwin32"; then :
17788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Win32" >&5
17789$as_echo "Setting gui backend to Win32" >&6; }
17790  GUI_CPPFLAGS="-DUI_WIN32"
17791  GUI_LIBS="-lgdi32 -lsetupapi -lws2_32 -lcomctl32"
17792elif test "x$enable_gui" = "xcocoa"; then :
17793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Cocoa" >&5
17794$as_echo "Setting gui backend to Cocoa" >&6; }
17795  GUI_CPPFLAGS="-DUI_COCOA"
17796  GUI_LIBS="-framework Cocoa"
17797
17798elif test "x$enable_gui" = "xpugl-x11"; then :
17799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Pugl-X11" >&5
17800$as_echo "Setting gui backend to Pugl-X11" >&6; }
17801
17802pkg_failed=no
17803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
17804$as_echo_n "checking for X11... " >&6; }
17805
17806if test -n "$X11_CFLAGS"; then
17807    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
17808 elif test -n "$PKG_CONFIG"; then
17809    if test -n "$PKG_CONFIG" && \
17810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0\""; } >&5
17811  ($PKG_CONFIG --exists --print-errors "x11 >= 1.0") 2>&5
17812  ac_status=$?
17813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17814  test $ac_status = 0; }; then
17815  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.0" 2>/dev/null`
17816		      test "x$?" != "x0" && pkg_failed=yes
17817else
17818  pkg_failed=yes
17819fi
17820 else
17821    pkg_failed=untried
17822fi
17823if test -n "$X11_LIBS"; then
17824    pkg_cv_X11_LIBS="$X11_LIBS"
17825 elif test -n "$PKG_CONFIG"; then
17826    if test -n "$PKG_CONFIG" && \
17827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.0\""; } >&5
17828  ($PKG_CONFIG --exists --print-errors "x11 >= 1.0") 2>&5
17829  ac_status=$?
17830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831  test $ac_status = 0; }; then
17832  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 >= 1.0" 2>/dev/null`
17833		      test "x$?" != "x0" && pkg_failed=yes
17834else
17835  pkg_failed=yes
17836fi
17837 else
17838    pkg_failed=untried
17839fi
17840
17841
17842
17843if test $pkg_failed = yes; then
17844   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17845$as_echo "no" >&6; }
17846
17847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17848        _pkg_short_errors_supported=yes
17849else
17850        _pkg_short_errors_supported=no
17851fi
17852        if test $_pkg_short_errors_supported = yes; then
17853	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.0" 2>&1`
17854        else
17855	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.0" 2>&1`
17856        fi
17857	# Put the nasty error message in config.log where it belongs
17858	echo "$X11_PKG_ERRORS" >&5
17859
17860	as_fn_error $? "Package requirements (x11 >= 1.0) were not met:
17861
17862$X11_PKG_ERRORS
17863
17864Consider adjusting the PKG_CONFIG_PATH environment variable if you
17865installed software in a non-standard prefix.
17866
17867Alternatively, you may set the environment variables X11_CFLAGS
17868and X11_LIBS to avoid the need to call pkg-config.
17869See the pkg-config man page for more details." "$LINENO" 5
17870elif test $pkg_failed = untried; then
17871     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872$as_echo "no" >&6; }
17873	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17875as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17876is in your PATH or set the PKG_CONFIG environment variable to the full
17877path to pkg-config.
17878
17879Alternatively, you may set the environment variables X11_CFLAGS
17880and X11_LIBS to avoid the need to call pkg-config.
17881See the pkg-config man page for more details.
17882
17883To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17884See \`config.log' for more details" "$LINENO" 5; }
17885else
17886	X11_CFLAGS=$pkg_cv_X11_CFLAGS
17887	X11_LIBS=$pkg_cv_X11_LIBS
17888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17889$as_echo "yes" >&6; }
17890
17891fi
17892
17893pkg_failed=no
17894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17895$as_echo_n "checking for XEXT... " >&6; }
17896
17897if test -n "$XEXT_CFLAGS"; then
17898    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17899 elif test -n "$PKG_CONFIG"; then
17900    if test -n "$PKG_CONFIG" && \
17901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext >= 1.0\""; } >&5
17902  ($PKG_CONFIG --exists --print-errors "xext >= 1.0") 2>&5
17903  ac_status=$?
17904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17905  test $ac_status = 0; }; then
17906  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext >= 1.0" 2>/dev/null`
17907		      test "x$?" != "x0" && pkg_failed=yes
17908else
17909  pkg_failed=yes
17910fi
17911 else
17912    pkg_failed=untried
17913fi
17914if test -n "$XEXT_LIBS"; then
17915    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17916 elif test -n "$PKG_CONFIG"; then
17917    if test -n "$PKG_CONFIG" && \
17918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext >= 1.0\""; } >&5
17919  ($PKG_CONFIG --exists --print-errors "xext >= 1.0") 2>&5
17920  ac_status=$?
17921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17922  test $ac_status = 0; }; then
17923  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext >= 1.0" 2>/dev/null`
17924		      test "x$?" != "x0" && pkg_failed=yes
17925else
17926  pkg_failed=yes
17927fi
17928 else
17929    pkg_failed=untried
17930fi
17931
17932
17933
17934if test $pkg_failed = yes; then
17935   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17936$as_echo "no" >&6; }
17937
17938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17939        _pkg_short_errors_supported=yes
17940else
17941        _pkg_short_errors_supported=no
17942fi
17943        if test $_pkg_short_errors_supported = yes; then
17944	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext >= 1.0" 2>&1`
17945        else
17946	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext >= 1.0" 2>&1`
17947        fi
17948	# Put the nasty error message in config.log where it belongs
17949	echo "$XEXT_PKG_ERRORS" >&5
17950
17951	as_fn_error $? "Package requirements (xext >= 1.0) were not met:
17952
17953$XEXT_PKG_ERRORS
17954
17955Consider adjusting the PKG_CONFIG_PATH environment variable if you
17956installed software in a non-standard prefix.
17957
17958Alternatively, you may set the environment variables XEXT_CFLAGS
17959and XEXT_LIBS to avoid the need to call pkg-config.
17960See the pkg-config man page for more details." "$LINENO" 5
17961elif test $pkg_failed = untried; then
17962     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17963$as_echo "no" >&6; }
17964	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17966as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17967is in your PATH or set the PKG_CONFIG environment variable to the full
17968path to pkg-config.
17969
17970Alternatively, you may set the environment variables XEXT_CFLAGS
17971and XEXT_LIBS to avoid the need to call pkg-config.
17972See the pkg-config man page for more details.
17973
17974To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17975See \`config.log' for more details" "$LINENO" 5; }
17976else
17977	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17978	XEXT_LIBS=$pkg_cv_XEXT_LIBS
17979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17980$as_echo "yes" >&6; }
17981
17982fi
17983  GUI_CPPFLAGS="-DUI_PUGL -DPUGL_HAVE_GL $X11_CFLAGS $XEXT_CFLAGS"
17984  GUI_LIBS="-lGL $X11_LIBS $XEXT_LIBS"
17985elif test "x$enable_gui" = "xpugl-win32"; then :
17986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Pugl-Win32" >&5
17987$as_echo "Setting gui backend to Pugl-Win32" >&6; }
17988  GUI_CPPFLAGS="-DUI_PUGL -DPUGL_HAVE_GL"
17989  GUI_LIBS="-lopengl32 -lgdi32 -luser32 -lsetupapi -lws2_32 -lcomctl32"
17990elif test "x$enable_gui" = "xpugl-cocoa"; then :
17991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting gui backend to Pugl-Cocoa" >&5
17992$as_echo "Setting gui backend to Pugl-Cocoa" >&6; }
17993  GUI_CPPFLAGS="-DUI_PUGL -DPUGL_HAVE_GL"
17994  GUI_LIBS="-framework OpenGL -framework Cocoa"
17995else
17996  as_fn_error $? "*** No GUI backend has been selected ***" "$LINENO" 5
17997
17998fi
17999
18000
18001
18002
18003 if test "x$enable_gui" = "xx11"; then
18004  ENABLE_X11_TRUE=
18005  ENABLE_X11_FALSE='#'
18006else
18007  ENABLE_X11_TRUE='#'
18008  ENABLE_X11_FALSE=
18009fi
18010
18011 if test "x$enable_gui" = "xwin32"; then
18012  ENABLE_WIN32_TRUE=
18013  ENABLE_WIN32_FALSE='#'
18014else
18015  ENABLE_WIN32_TRUE='#'
18016  ENABLE_WIN32_FALSE=
18017fi
18018
18019 if test "x$enable_gui" = "xcocoa"; then
18020  ENABLE_COCOA_TRUE=
18021  ENABLE_COCOA_FALSE='#'
18022else
18023  ENABLE_COCOA_TRUE='#'
18024  ENABLE_COCOA_FALSE=
18025fi
18026
18027 if test "x$enable_gui" = "xpugl-x11"; then
18028  ENABLE_PUGL_X11_TRUE=
18029  ENABLE_PUGL_X11_FALSE='#'
18030else
18031  ENABLE_PUGL_X11_TRUE='#'
18032  ENABLE_PUGL_X11_FALSE=
18033fi
18034
18035 if test "x$enable_gui" = "xpugl-win32"; then
18036  ENABLE_PUGL_WIN32_TRUE=
18037  ENABLE_PUGL_WIN32_FALSE='#'
18038else
18039  ENABLE_PUGL_WIN32_TRUE='#'
18040  ENABLE_PUGL_WIN32_FALSE=
18041fi
18042
18043 if test "x$enable_gui" = "xpugl-cocoa"; then
18044  ENABLE_PUGL_COCOA_TRUE=
18045  ENABLE_PUGL_COCOA_FALSE='#'
18046else
18047  ENABLE_PUGL_COCOA_TRUE='#'
18048  ENABLE_PUGL_COCOA_FALSE=
18049fi
18050
18051
18052# Check whether --enable-custom-channel-count was given.
18053if test "${enable_custom_channel_count+set}" = set; then :
18054  enableval=$enable_custom_channel_count;
18055else
18056  enable_custom_channel_count="16"
18057fi
18058
18059
18060cat >>confdefs.h <<_ACEOF
18061#define NUM_CHANNELS $enable_custom_channel_count
18062_ACEOF
18063
18064
18065
18066# Check whether --with-test was given.
18067if test "${with_test+set}" = set; then :
18068  withval=$with_test;
18069fi
18070
18071
18072 if test "x$with_test" = "xyes"; then
18073  ENABLE_TESTS_TRUE=
18074  ENABLE_TESTS_FALSE='#'
18075else
18076  ENABLE_TESTS_TRUE='#'
18077  ENABLE_TESTS_FALSE=
18078fi
18079
18080
18081# Check whether --enable-lv2 was given.
18082if test "${enable_lv2+set}" = set; then :
18083  enableval=$enable_lv2;
18084else
18085  enable_lv2="no"
18086fi
18087
18088
18089if test "x$enable_lv2" = "xyes"; then :
18090  enable_lv2=yes
18091
18092pkg_failed=no
18093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LV2" >&5
18094$as_echo_n "checking for LV2... " >&6; }
18095
18096if test -n "$LV2_CFLAGS"; then
18097    pkg_cv_LV2_CFLAGS="$LV2_CFLAGS"
18098 elif test -n "$PKG_CONFIG"; then
18099    if test -n "$PKG_CONFIG" && \
18100    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0\""; } >&5
18101  ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0") 2>&5
18102  ac_status=$?
18103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18104  test $ac_status = 0; }; then
18105  pkg_cv_LV2_CFLAGS=`$PKG_CONFIG --cflags "lv2 >= 1.0" 2>/dev/null`
18106		      test "x$?" != "x0" && pkg_failed=yes
18107else
18108  pkg_failed=yes
18109fi
18110 else
18111    pkg_failed=untried
18112fi
18113if test -n "$LV2_LIBS"; then
18114    pkg_cv_LV2_LIBS="$LV2_LIBS"
18115 elif test -n "$PKG_CONFIG"; then
18116    if test -n "$PKG_CONFIG" && \
18117    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0\""; } >&5
18118  ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0") 2>&5
18119  ac_status=$?
18120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18121  test $ac_status = 0; }; then
18122  pkg_cv_LV2_LIBS=`$PKG_CONFIG --libs "lv2 >= 1.0" 2>/dev/null`
18123		      test "x$?" != "x0" && pkg_failed=yes
18124else
18125  pkg_failed=yes
18126fi
18127 else
18128    pkg_failed=untried
18129fi
18130
18131
18132
18133if test $pkg_failed = yes; then
18134   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135$as_echo "no" >&6; }
18136
18137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18138        _pkg_short_errors_supported=yes
18139else
18140        _pkg_short_errors_supported=no
18141fi
18142        if test $_pkg_short_errors_supported = yes; then
18143	        LV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lv2 >= 1.0" 2>&1`
18144        else
18145	        LV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lv2 >= 1.0" 2>&1`
18146        fi
18147	# Put the nasty error message in config.log where it belongs
18148	echo "$LV2_PKG_ERRORS" >&5
18149
18150	as_fn_error $? "Package requirements (lv2 >= 1.0) were not met:
18151
18152$LV2_PKG_ERRORS
18153
18154Consider adjusting the PKG_CONFIG_PATH environment variable if you
18155installed software in a non-standard prefix.
18156
18157Alternatively, you may set the environment variables LV2_CFLAGS
18158and LV2_LIBS to avoid the need to call pkg-config.
18159See the pkg-config man page for more details." "$LINENO" 5
18160elif test $pkg_failed = untried; then
18161     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18162$as_echo "no" >&6; }
18163	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18165as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18166is in your PATH or set the PKG_CONFIG environment variable to the full
18167path to pkg-config.
18168
18169Alternatively, you may set the environment variables LV2_CFLAGS
18170and LV2_LIBS to avoid the need to call pkg-config.
18171See the pkg-config man page for more details.
18172
18173To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18174See \`config.log' for more details" "$LINENO" 5; }
18175else
18176	LV2_CFLAGS=$pkg_cv_LV2_CFLAGS
18177	LV2_LIBS=$pkg_cv_LV2_LIBS
18178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18179$as_echo "yes" >&6; }
18180
18181fi
18182
18183	 	 	 	 tmp_CXXFLAGS="$CXXFLAGS"
18184	 tmp_CPPFLAGS="$CPPFLAGS"
18185	 tmp_CFLAGS="$CFLAGS"
18186	 tmp_LDFLAGS="$LDFLAGS"
18187	 tmp_LIBS="$LIBS"
18188	 CXXFLAGS=""
18189	 CPPFLAGS=""
18190	 CFLAGS=""
18191	 LDFLAGS=""
18192	 LIBS=""
18193	 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
18194if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18195
18196else
18197  as_fn_error $? "*** dlfcn.h header file not found!" "$LINENO" 5
18198fi
18199
18200
18201	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
18202$as_echo_n "checking for dlopen in -lc... " >&6; }
18203if ${ac_cv_lib_c_dlopen+:} false; then :
18204  $as_echo_n "(cached) " >&6
18205else
18206  ac_check_lib_save_LIBS=$LIBS
18207LIBS="-lc  $LIBS"
18208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209/* end confdefs.h.  */
18210
18211/* Override any GCC internal prototype to avoid an error.
18212   Use char because int might match the return type of a GCC
18213   builtin and then its argument prototype would still apply.  */
18214#ifdef __cplusplus
18215extern "C"
18216#endif
18217char dlopen ();
18218int
18219main ()
18220{
18221return dlopen ();
18222  ;
18223  return 0;
18224}
18225_ACEOF
18226if ac_fn_c_try_link "$LINENO"; then :
18227  ac_cv_lib_c_dlopen=yes
18228else
18229  ac_cv_lib_c_dlopen=no
18230fi
18231rm -f core conftest.err conftest.$ac_objext \
18232    conftest$ac_exeext conftest.$ac_ext
18233LIBS=$ac_check_lib_save_LIBS
18234fi
18235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
18236$as_echo "$ac_cv_lib_c_dlopen" >&6; }
18237if test "x$ac_cv_lib_c_dlopen" = xyes; then :
18238  cat >>confdefs.h <<_ACEOF
18239#define HAVE_LIBC 1
18240_ACEOF
18241
18242  LIBS="-lc $LIBS"
18243
18244else
18245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18246$as_echo_n "checking for dlopen in -ldl... " >&6; }
18247if ${ac_cv_lib_dl_dlopen+:} false; then :
18248  $as_echo_n "(cached) " >&6
18249else
18250  ac_check_lib_save_LIBS=$LIBS
18251LIBS="-ldl  $LIBS"
18252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253/* end confdefs.h.  */
18254
18255/* Override any GCC internal prototype to avoid an error.
18256   Use char because int might match the return type of a GCC
18257   builtin and then its argument prototype would still apply.  */
18258#ifdef __cplusplus
18259extern "C"
18260#endif
18261char dlopen ();
18262int
18263main ()
18264{
18265return dlopen ();
18266  ;
18267  return 0;
18268}
18269_ACEOF
18270if ac_fn_c_try_link "$LINENO"; then :
18271  ac_cv_lib_dl_dlopen=yes
18272else
18273  ac_cv_lib_dl_dlopen=no
18274fi
18275rm -f core conftest.err conftest.$ac_objext \
18276    conftest$ac_exeext conftest.$ac_ext
18277LIBS=$ac_check_lib_save_LIBS
18278fi
18279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18280$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18281if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18282  cat >>confdefs.h <<_ACEOF
18283#define HAVE_LIBDL 1
18284_ACEOF
18285
18286  LIBS="-ldl $LIBS"
18287
18288else
18289  as_fn_error $? "*** library conaining dlopen not found!" "$LINENO" 5
18290fi
18291
18292fi
18293
18294	 DL_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS"
18295	 DL_LIBS="$LDFLAGS $LIBS"
18296	 CXXFLAGS="$tmp_CXXFLAGS"
18297	 CPPFLAGS="$tmp_CPPFLAGS"
18298	 CFLAGS="$tmp_CFLAGS"
18299	 LDFLAGS="$tmp_LDFLAGS"
18300	 LIBS="$tmp_LIBS"
18301
18302
18303
18304
18305# Check whether --with-lv2dir was given.
18306if test "${with_lv2dir+set}" = set; then :
18307  withval=$with_lv2dir; LV2DIR=$with_lv2dir
18308else
18309  LV2DIR='$(libdir)/lv2'
18310fi
18311
18312
18313
18314else
18315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LV2 plugin will not be compiled ***" >&5
18316$as_echo "*** LV2 plugin will not be compiled ***" >&6; }
18317   enable_lv2=no
18318
18319fi
18320
18321 if test "x$enable_lv2" = "xyes"; then
18322  ENABLE_LV2_TRUE=
18323  ENABLE_LV2_FALSE='#'
18324else
18325  ENABLE_LV2_TRUE='#'
18326  ENABLE_LV2_FALSE=
18327fi
18328
18329
18330
18331# Check whether --with-vst_sources was given.
18332if test "${with_vst_sources+set}" = set; then :
18333  withval=$with_vst_sources;
18334fi
18335
18336# Check whether --enable-vst was given.
18337if test "${enable_vst+set}" = set; then :
18338  enableval=$enable_vst;
18339else
18340  enable_vst="no"
18341fi
18342
18343
18344if test "x$enable_vst" = "xyes"; then :
18345  enable_vst=yes
18346  VST_CPPFLAGS="-D__int64='long long int'"
18347
18348	# Set up platform specific workarounds for the VST SDK
18349	case $host_os in #(
18350  darwin*) :
18351      ;; #(
18352  linux*|*bsd*|dragonfly*) :
18353    VST_CPPFLAGS="$VST_CPPFLAGS -D__cdecl=" ;; #(
18354  msys|mingw*|windows*|winnt|cygwin) :
18355      ;; #(
18356  *) :
18357    as_fn_error $? "Your platform is not currently supported" "$LINENO" 5
18358	 ;;
18359esac
18360
18361  VST_SOURCE_PATH="$with_vst_sources"
18362
18363
18364  ac_config_files="$ac_config_files plugin/Makefile.mingw32"
18365
18366else
18367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** VST plugin will not be compiled ***" >&5
18368$as_echo "*** VST plugin will not be compiled ***" >&6; }
18369   enable_vst=no
18370
18371fi
18372
18373 if test "x$enable_vst" = "xyes"; then
18374  ENABLE_VST_TRUE=
18375  ENABLE_VST_FALSE='#'
18376else
18377  ENABLE_VST_TRUE='#'
18378  ENABLE_VST_FALSE=
18379fi
18380
18381
18382
18383#AC_ARG_ENABLE([au],
18384#[  --enable-au   Compile the audio units plugin [default=no]],,
18385#        [enable_au="no"])
18386#if test "x$enable_au" = "xyes"; then
18387#	 enable_au=yes
18388#else
18389#	 AC_MSG_RESULT([*** Audio Units plugin will not be compiled ***])
18390#   enable_au=no
18391#fi
18392#AM_CONDITIONAL([ENABLE_AU], [test "x$enable_au" = "xyes"])
18393
18394# Check whether --enable-cli was given.
18395if test "${enable_cli+set}" = set; then :
18396  enableval=$enable_cli;
18397else
18398  enable_cli="yes"
18399fi
18400
18401
18402
18403if test "x$enable_cli" = "xyes"; then :
18404  enable_cli=yes
18405
18406        for ac_header in getopt.h
18407do :
18408  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18409if test "x$ac_cv_header_getopt_h" = xyes; then :
18410  cat >>confdefs.h <<_ACEOF
18411#define HAVE_GETOPT_H 1
18412_ACEOF
18413
18414fi
18415
18416done
18417
18418
18419        for ac_func in wordexp
18420do :
18421  ac_fn_c_check_func "$LINENO" "wordexp" "ac_cv_func_wordexp"
18422if test "x$ac_cv_func_wordexp" = xyes; then :
18423  cat >>confdefs.h <<_ACEOF
18424#define HAVE_WORDEXP 1
18425_ACEOF
18426
18427fi
18428done
18429
18430
18431
18432    # Check whether --enable-input_dummy was given.
18433if test "${enable_input_dummy+set}" = set; then :
18434  enableval=$enable_input_dummy;
18435else
18436  enable_input_dummy="yes"
18437fi
18438
18439
18440  if test "x$enable_input_dummy" = "xyes"; then :
18441  have_input_dummy=yes
18442else
18443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input dummy plugin disabled per user request ***" >&5
18444$as_echo "*** input dummy plugin disabled per user request ***" >&6; }
18445     have_input_dummy=no
18446
18447fi
18448
18449    # Check whether --enable-input_test was given.
18450if test "${enable_input_test+set}" = set; then :
18451  enableval=$enable_input_test;
18452else
18453  enable_input_test="yes"
18454fi
18455
18456
18457  if test "x$enable_input_test" = "xyes"; then :
18458  have_input_test=yes
18459else
18460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input test plugin disabled per user request ***" >&5
18461$as_echo "*** input test plugin disabled per user request ***" >&6; }
18462    have_input_test=no
18463
18464fi
18465
18466    # Check whether --enable-input_jackmidi was given.
18467if test "${enable_input_jackmidi+set}" = set; then :
18468  enableval=$enable_input_jackmidi;
18469else
18470  enable_input_jackmidi="yes"
18471fi
18472
18473
18474  if test "x$enable_input_jackmidi" = "xyes"; then :
18475  have_input_jackmidi=yes
18476    need_jack=yes
18477else
18478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input jackmidi plugin disabled per user request ***" >&5
18479$as_echo "*** input jackmidi plugin disabled per user request ***" >&6; }
18480    have_input_jackmidi=no
18481
18482fi
18483
18484    # Check whether --enable-input_midifile was given.
18485if test "${enable_input_midifile+set}" = set; then :
18486  enableval=$enable_input_midifile;
18487else
18488  enable_input_midifile="yes"
18489fi
18490
18491
18492  if test "x$enable_input_midifile" = "xyes"; then :
18493  have_input_midifile=yes
18494
18495pkg_failed=no
18496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMF" >&5
18497$as_echo_n "checking for SMF... " >&6; }
18498
18499if test -n "$SMF_CFLAGS"; then
18500    pkg_cv_SMF_CFLAGS="$SMF_CFLAGS"
18501 elif test -n "$PKG_CONFIG"; then
18502    if test -n "$PKG_CONFIG" && \
18503    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"smf >= 1.2\""; } >&5
18504  ($PKG_CONFIG --exists --print-errors "smf >= 1.2") 2>&5
18505  ac_status=$?
18506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18507  test $ac_status = 0; }; then
18508  pkg_cv_SMF_CFLAGS=`$PKG_CONFIG --cflags "smf >= 1.2" 2>/dev/null`
18509		      test "x$?" != "x0" && pkg_failed=yes
18510else
18511  pkg_failed=yes
18512fi
18513 else
18514    pkg_failed=untried
18515fi
18516if test -n "$SMF_LIBS"; then
18517    pkg_cv_SMF_LIBS="$SMF_LIBS"
18518 elif test -n "$PKG_CONFIG"; then
18519    if test -n "$PKG_CONFIG" && \
18520    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"smf >= 1.2\""; } >&5
18521  ($PKG_CONFIG --exists --print-errors "smf >= 1.2") 2>&5
18522  ac_status=$?
18523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18524  test $ac_status = 0; }; then
18525  pkg_cv_SMF_LIBS=`$PKG_CONFIG --libs "smf >= 1.2" 2>/dev/null`
18526		      test "x$?" != "x0" && pkg_failed=yes
18527else
18528  pkg_failed=yes
18529fi
18530 else
18531    pkg_failed=untried
18532fi
18533
18534
18535
18536if test $pkg_failed = yes; then
18537   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538$as_echo "no" >&6; }
18539
18540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18541        _pkg_short_errors_supported=yes
18542else
18543        _pkg_short_errors_supported=no
18544fi
18545        if test $_pkg_short_errors_supported = yes; then
18546	        SMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "smf >= 1.2" 2>&1`
18547        else
18548	        SMF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "smf >= 1.2" 2>&1`
18549        fi
18550	# Put the nasty error message in config.log where it belongs
18551	echo "$SMF_PKG_ERRORS" >&5
18552
18553	as_fn_error $? "Package requirements (smf >= 1.2) were not met:
18554
18555$SMF_PKG_ERRORS
18556
18557Consider adjusting the PKG_CONFIG_PATH environment variable if you
18558installed software in a non-standard prefix.
18559
18560Alternatively, you may set the environment variables SMF_CFLAGS
18561and SMF_LIBS to avoid the need to call pkg-config.
18562See the pkg-config man page for more details." "$LINENO" 5
18563elif test $pkg_failed = untried; then
18564     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565$as_echo "no" >&6; }
18566	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18568as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18569is in your PATH or set the PKG_CONFIG environment variable to the full
18570path to pkg-config.
18571
18572Alternatively, you may set the environment variables SMF_CFLAGS
18573and SMF_LIBS to avoid the need to call pkg-config.
18574See the pkg-config man page for more details.
18575
18576To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18577See \`config.log' for more details" "$LINENO" 5; }
18578else
18579	SMF_CFLAGS=$pkg_cv_SMF_CFLAGS
18580	SMF_LIBS=$pkg_cv_SMF_LIBS
18581        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18582$as_echo "yes" >&6; }
18583
18584fi
18585else
18586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input midifile plugin disabled per user request ***" >&5
18587$as_echo "*** input midifile plugin disabled per user request ***" >&6; }
18588     have_input_midifile=no
18589
18590fi
18591
18592    case $host_os in
18593    freebsd*|dragonfly*)
18594      enable_oss_midi_value=yes
18595      ;;
18596    *)
18597      enable_oss_midi_value=no
18598      ;;
18599  esac
18600  # Check whether --enable-input_oss was given.
18601if test "${enable_input_oss+set}" = set; then :
18602  enableval=$enable_input_oss;
18603else
18604  enable_input_ossmidi=$enable_oss_midi_value
18605
18606fi
18607
18608
18609  if test "x$enable_input_ossmidi" = "xyes"; then :
18610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS in" >&5
18611$as_echo_n "checking for OSS in... " >&6; }
18612      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613/* end confdefs.h.  */
18614
18615          #include <sys/soundcard.h>
18616          #ifndef AFMT_S32_NE
18617          # error no oss
18618          #endif
18619
18620_ACEOF
18621if ac_fn_c_try_compile "$LINENO"; then :
18622
18623          have_input_ossmidi=yes
18624          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18625$as_echo "yes" >&6; }
18626
18627else
18628  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18630as_fn_error $? "no OSS headers found
18631See \`config.log' for more details" "$LINENO" 5; }
18632
18633fi
18634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635else
18636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** input ossmidi plugin disabled per user request ***" >&5
18637$as_echo "*** input ossmidi plugin disabled per user request ***" >&6; }
18638    have_input_ossmidi=no
18639
18640fi
18641
18642  INPUT_PLUGINS="midifile jackmidi dummy test ossmidi"
18643
18644
18645
18646    # Check whether --enable-output_dummy was given.
18647if test "${enable_output_dummy+set}" = set; then :
18648  enableval=$enable_output_dummy;
18649else
18650  enable_output_dummy="yes"
18651fi
18652
18653
18654  if test "x$enable_output_dummy" = "xyes"; then :
18655  have_output_dummy=yes
18656else
18657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output dummy plugin disabled per user request ***" >&5
18658$as_echo "*** output dummy plugin disabled per user request ***" >&6; }
18659     have_output_dummy=no
18660
18661fi
18662
18663    # Check whether --enable-output_jackaudio was given.
18664if test "${enable_output_jackaudio+set}" = set; then :
18665  enableval=$enable_output_jackaudio;
18666else
18667  enable_output_jackaudio="yes"
18668fi
18669
18670
18671  if test "x$enable_output_jackaudio" = "xyes"; then :
18672  have_output_jackaudio=yes
18673     need_jack=yes
18674else
18675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output jack plugin disabled per user request ***" >&5
18676$as_echo "*** output jack plugin disabled per user request ***" >&6; }
18677     have_output_jackaudio=no
18678
18679fi
18680
18681    # Check whether --enable-output_alsa was given.
18682if test "${enable_output_alsa+set}" = set; then :
18683  enableval=$enable_output_alsa;
18684else
18685  enable_output_alsa="yes"
18686fi
18687
18688
18689  if test "x$enable_output_alsa" = "xyes"; then :
18690  have_output_alsa=yes
18691
18692pkg_failed=no
18693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
18694$as_echo_n "checking for ALSA... " >&6; }
18695
18696if test -n "$ALSA_CFLAGS"; then
18697    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
18698 elif test -n "$PKG_CONFIG"; then
18699    if test -n "$PKG_CONFIG" && \
18700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.18\""; } >&5
18701  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.18") 2>&5
18702  ac_status=$?
18703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704  test $ac_status = 0; }; then
18705  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.18" 2>/dev/null`
18706		      test "x$?" != "x0" && pkg_failed=yes
18707else
18708  pkg_failed=yes
18709fi
18710 else
18711    pkg_failed=untried
18712fi
18713if test -n "$ALSA_LIBS"; then
18714    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
18715 elif test -n "$PKG_CONFIG"; then
18716    if test -n "$PKG_CONFIG" && \
18717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.18\""; } >&5
18718  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.18") 2>&5
18719  ac_status=$?
18720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18721  test $ac_status = 0; }; then
18722  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.18" 2>/dev/null`
18723		      test "x$?" != "x0" && pkg_failed=yes
18724else
18725  pkg_failed=yes
18726fi
18727 else
18728    pkg_failed=untried
18729fi
18730
18731
18732
18733if test $pkg_failed = yes; then
18734   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18735$as_echo "no" >&6; }
18736
18737if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18738        _pkg_short_errors_supported=yes
18739else
18740        _pkg_short_errors_supported=no
18741fi
18742        if test $_pkg_short_errors_supported = yes; then
18743	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa >= 1.0.18" 2>&1`
18744        else
18745	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa >= 1.0.18" 2>&1`
18746        fi
18747	# Put the nasty error message in config.log where it belongs
18748	echo "$ALSA_PKG_ERRORS" >&5
18749
18750	as_fn_error $? "Package requirements (alsa >= 1.0.18) were not met:
18751
18752$ALSA_PKG_ERRORS
18753
18754Consider adjusting the PKG_CONFIG_PATH environment variable if you
18755installed software in a non-standard prefix.
18756
18757Alternatively, you may set the environment variables ALSA_CFLAGS
18758and ALSA_LIBS to avoid the need to call pkg-config.
18759See the pkg-config man page for more details." "$LINENO" 5
18760elif test $pkg_failed = untried; then
18761     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18762$as_echo "no" >&6; }
18763	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18765as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18766is in your PATH or set the PKG_CONFIG environment variable to the full
18767path to pkg-config.
18768
18769Alternatively, you may set the environment variables ALSA_CFLAGS
18770and ALSA_LIBS to avoid the need to call pkg-config.
18771See the pkg-config man page for more details.
18772
18773To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18774See \`config.log' for more details" "$LINENO" 5; }
18775else
18776	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
18777	ALSA_LIBS=$pkg_cv_ALSA_LIBS
18778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18779$as_echo "yes" >&6; }
18780
18781fi
18782else
18783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output alsa plugin disabled per user request ***" >&5
18784$as_echo "*** output alsa plugin disabled per user request ***" >&6; }
18785     have_output_alsa=no
18786
18787fi
18788
18789    # Check whether --enable-output_wavfile was given.
18790if test "${enable_output_wavfile+set}" = set; then :
18791  enableval=$enable_output_wavfile;
18792else
18793  enable_output_wavfile="yes"
18794fi
18795
18796
18797  if test "x$enable_output_wavfile" = "xyes"; then :
18798  have_output_wavfile=yes
18799else
18800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output wavfile plugin disabled per user request ***" >&5
18801$as_echo "*** output wavfile plugin disabled per user request ***" >&6; }
18802     have_output_wavfile=no
18803
18804fi
18805
18806    case $host_os in
18807    freebsd*|dragonfly*)
18808      enable_oss_value=yes
18809      ;;
18810    *)
18811      enable_oss_value=no
18812      ;;
18813  esac
18814  # Check whether --enable-output_oss was given.
18815if test "${enable_output_oss+set}" = set; then :
18816  enableval=$enable_output_oss;
18817else
18818  enable_output_oss=$enable_oss_value
18819
18820fi
18821
18822
18823  if test "x$enable_output_oss" = "xyes"; then :
18824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS out" >&5
18825$as_echo_n "checking for OSS out... " >&6; }
18826      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827/* end confdefs.h.  */
18828
18829          #include <sys/soundcard.h>
18830          #ifndef AFMT_S32_NE
18831          # error no oss
18832          #endif
18833
18834_ACEOF
18835if ac_fn_c_try_compile "$LINENO"; then :
18836
18837          have_output_oss=yes
18838          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839$as_echo "yes" >&6; }
18840
18841else
18842  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18844as_fn_error $? "no OSS headers found
18845See \`config.log' for more details" "$LINENO" 5; }
18846
18847fi
18848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849else
18850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** output oss plugin disabled per user request ***" >&5
18851$as_echo "*** output oss plugin disabled per user request ***" >&6; }
18852    have_output_oss=no
18853
18854fi
18855
18856  OUTPUT_PLUGINS="dummy alsa wavfile jackaudio oss"
18857
18858
18859        dgplugindir=${libdir}/drumgizmo
18860
18861  INPUT_PLUGIN_DIR=${dgplugindir}/input
18862  OUTPUT_PLUGIN_DIR=${dgplugindir}/output
18863
18864
18865else
18866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Command line interface disabled per user request ***" >&5
18867$as_echo "*** Command line interface disabled per user request ***" >&6; }
18868   enable_cli=no
18869
18870fi
18871
18872 if test "x$enable_cli" == "xyes"; then
18873  ENABLE_CLI_TRUE=
18874  ENABLE_CLI_FALSE='#'
18875else
18876  ENABLE_CLI_TRUE='#'
18877  ENABLE_CLI_FALSE=
18878fi
18879
18880 if test "x$have_input_dummy" = "xyes"; then
18881  HAVE_INPUT_DUMMY_TRUE=
18882  HAVE_INPUT_DUMMY_FALSE='#'
18883else
18884  HAVE_INPUT_DUMMY_TRUE='#'
18885  HAVE_INPUT_DUMMY_FALSE=
18886fi
18887
18888 if test "x$have_input_test" = "xyes"; then
18889  HAVE_INPUT_TEST_TRUE=
18890  HAVE_INPUT_TEST_FALSE='#'
18891else
18892  HAVE_INPUT_TEST_TRUE='#'
18893  HAVE_INPUT_TEST_FALSE=
18894fi
18895
18896 if test "x$have_input_jackmidi" = "xyes"; then
18897  HAVE_INPUT_JACKMIDI_TRUE=
18898  HAVE_INPUT_JACKMIDI_FALSE='#'
18899else
18900  HAVE_INPUT_JACKMIDI_TRUE='#'
18901  HAVE_INPUT_JACKMIDI_FALSE=
18902fi
18903
18904 if test "x$have_input_ossmidi" = "xyes"; then
18905  HAVE_INPUT_OSSMIDI_TRUE=
18906  HAVE_INPUT_OSSMIDI_FALSE='#'
18907else
18908  HAVE_INPUT_OSSMIDI_TRUE='#'
18909  HAVE_INPUT_OSSMIDI_FALSE=
18910fi
18911
18912 if test "x$have_input_midifile" = "xyes"; then
18913  HAVE_INPUT_MIDIFILE_TRUE=
18914  HAVE_INPUT_MIDIFILE_FALSE='#'
18915else
18916  HAVE_INPUT_MIDIFILE_TRUE='#'
18917  HAVE_INPUT_MIDIFILE_FALSE=
18918fi
18919
18920 if test "x$have_output_dummy" = "xyes"; then
18921  HAVE_OUTPUT_DUMMY_TRUE=
18922  HAVE_OUTPUT_DUMMY_FALSE='#'
18923else
18924  HAVE_OUTPUT_DUMMY_TRUE='#'
18925  HAVE_OUTPUT_DUMMY_FALSE=
18926fi
18927
18928 if test "x$have_output_alsa" = "xyes"; then
18929  HAVE_OUTPUT_ALSA_TRUE=
18930  HAVE_OUTPUT_ALSA_FALSE='#'
18931else
18932  HAVE_OUTPUT_ALSA_TRUE='#'
18933  HAVE_OUTPUT_ALSA_FALSE=
18934fi
18935
18936 if test "x$have_output_wavfile" = "xyes"; then
18937  HAVE_OUTPUT_WAVFILE_TRUE=
18938  HAVE_OUTPUT_WAVFILE_FALSE='#'
18939else
18940  HAVE_OUTPUT_WAVFILE_TRUE='#'
18941  HAVE_OUTPUT_WAVFILE_FALSE=
18942fi
18943
18944 if test "x$have_output_jackaudio" = "xyes"; then
18945  HAVE_OUTPUT_JACKAUDIO_TRUE=
18946  HAVE_OUTPUT_JACKAUDIO_FALSE='#'
18947else
18948  HAVE_OUTPUT_JACKAUDIO_TRUE='#'
18949  HAVE_OUTPUT_JACKAUDIO_FALSE=
18950fi
18951
18952 if test "x$have_output_oss" = "xyes"; then
18953  HAVE_OUTPUT_OSS_TRUE=
18954  HAVE_OUTPUT_OSS_FALSE='#'
18955else
18956  HAVE_OUTPUT_OSS_TRUE='#'
18957  HAVE_OUTPUT_OSS_FALSE=
18958fi
18959
18960
18961
18962pkg_failed=no
18963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
18964$as_echo_n "checking for SNDFILE... " >&6; }
18965
18966if test -n "$SNDFILE_CFLAGS"; then
18967    pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
18968 elif test -n "$PKG_CONFIG"; then
18969    if test -n "$PKG_CONFIG" && \
18970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.20\""; } >&5
18971  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.20") 2>&5
18972  ac_status=$?
18973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18974  test $ac_status = 0; }; then
18975  pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.20" 2>/dev/null`
18976		      test "x$?" != "x0" && pkg_failed=yes
18977else
18978  pkg_failed=yes
18979fi
18980 else
18981    pkg_failed=untried
18982fi
18983if test -n "$SNDFILE_LIBS"; then
18984    pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
18985 elif test -n "$PKG_CONFIG"; then
18986    if test -n "$PKG_CONFIG" && \
18987    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.20\""; } >&5
18988  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.20") 2>&5
18989  ac_status=$?
18990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18991  test $ac_status = 0; }; then
18992  pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.20" 2>/dev/null`
18993		      test "x$?" != "x0" && pkg_failed=yes
18994else
18995  pkg_failed=yes
18996fi
18997 else
18998    pkg_failed=untried
18999fi
19000
19001
19002
19003if test $pkg_failed = yes; then
19004   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19005$as_echo "no" >&6; }
19006
19007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19008        _pkg_short_errors_supported=yes
19009else
19010        _pkg_short_errors_supported=no
19011fi
19012        if test $_pkg_short_errors_supported = yes; then
19013	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.20" 2>&1`
19014        else
19015	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.20" 2>&1`
19016        fi
19017	# Put the nasty error message in config.log where it belongs
19018	echo "$SNDFILE_PKG_ERRORS" >&5
19019
19020	as_fn_error $? "Package requirements (sndfile >= 1.0.20) were not met:
19021
19022$SNDFILE_PKG_ERRORS
19023
19024Consider adjusting the PKG_CONFIG_PATH environment variable if you
19025installed software in a non-standard prefix.
19026
19027Alternatively, you may set the environment variables SNDFILE_CFLAGS
19028and SNDFILE_LIBS to avoid the need to call pkg-config.
19029See the pkg-config man page for more details." "$LINENO" 5
19030elif test $pkg_failed = untried; then
19031     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032$as_echo "no" >&6; }
19033	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19035as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19036is in your PATH or set the PKG_CONFIG environment variable to the full
19037path to pkg-config.
19038
19039Alternatively, you may set the environment variables SNDFILE_CFLAGS
19040and SNDFILE_LIBS to avoid the need to call pkg-config.
19041See the pkg-config man page for more details.
19042
19043To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19044See \`config.log' for more details" "$LINENO" 5; }
19045else
19046	SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
19047	SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
19048        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19049$as_echo "yes" >&6; }
19050
19051fi
19052
19053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
19054$as_echo_n "checking for main in -lrt... " >&6; }
19055if ${ac_cv_lib_rt_main+:} false; then :
19056  $as_echo_n "(cached) " >&6
19057else
19058  ac_check_lib_save_LIBS=$LIBS
19059LIBS="-lrt  $LIBS"
19060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061/* end confdefs.h.  */
19062
19063
19064int
19065main ()
19066{
19067return main ();
19068  ;
19069  return 0;
19070}
19071_ACEOF
19072if ac_fn_c_try_link "$LINENO"; then :
19073  ac_cv_lib_rt_main=yes
19074else
19075  ac_cv_lib_rt_main=no
19076fi
19077rm -f core conftest.err conftest.$ac_objext \
19078    conftest$ac_exeext conftest.$ac_ext
19079LIBS=$ac_check_lib_save_LIBS
19080fi
19081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
19082$as_echo "$ac_cv_lib_rt_main" >&6; }
19083if test "x$ac_cv_lib_rt_main" = xyes; then :
19084  cat >>confdefs.h <<_ACEOF
19085#define HAVE_LIBRT 1
19086_ACEOF
19087
19088  LIBS="-lrt $LIBS"
19089
19090fi
19091ac_cv_lib_rt=ac_cv_lib_rt_main
19092
19093
19094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -latomic" >&5
19095$as_echo_n "checking for main in -latomic... " >&6; }
19096if ${ac_cv_lib_atomic_main+:} false; then :
19097  $as_echo_n "(cached) " >&6
19098else
19099  ac_check_lib_save_LIBS=$LIBS
19100LIBS="-latomic  $LIBS"
19101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102/* end confdefs.h.  */
19103
19104
19105int
19106main ()
19107{
19108return main ();
19109  ;
19110  return 0;
19111}
19112_ACEOF
19113if ac_fn_c_try_link "$LINENO"; then :
19114  ac_cv_lib_atomic_main=yes
19115else
19116  ac_cv_lib_atomic_main=no
19117fi
19118rm -f core conftest.err conftest.$ac_objext \
19119    conftest$ac_exeext conftest.$ac_ext
19120LIBS=$ac_check_lib_save_LIBS
19121fi
19122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic_main" >&5
19123$as_echo "$ac_cv_lib_atomic_main" >&6; }
19124if test "x$ac_cv_lib_atomic_main" = xyes; then :
19125  cat >>confdefs.h <<_ACEOF
19126#define HAVE_LIBATOMIC 1
19127_ACEOF
19128
19129  LIBS="-latomic $LIBS"
19130
19131fi
19132ac_cv_lib_atomic=ac_cv_lib_atomic_main
19133
19134
19135tmp_CXXFLAGS="$CXXFLAGS"
19136tmp_CPPFLAGS="$CPPFLAGS"
19137tmp_CFLAGS="$CFLAGS"
19138tmp_LDFLAGS="$LDFLAGS"
19139tmp_LIBS="$LIBS"
19140CXXFLAGS=""
19141CPPFLAGS=""
19142CFLAGS=""
19143LDFLAGS=""
19144LIBS=""
19145ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19146if test "x$ac_cv_header_pthread_h" = xyes; then :
19147
19148else
19149  as_fn_error $? "*** pthread header file not found!" "$LINENO" 5
19150fi
19151
19152
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
19154$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
19155if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
19156  $as_echo_n "(cached) " >&6
19157else
19158  ac_check_lib_save_LIBS=$LIBS
19159LIBS="-lpthread  $LIBS"
19160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161/* end confdefs.h.  */
19162
19163/* Override any GCC internal prototype to avoid an error.
19164   Use char because int might match the return type of a GCC
19165   builtin and then its argument prototype would still apply.  */
19166#ifdef __cplusplus
19167extern "C"
19168#endif
19169char pthread_mutex_init ();
19170int
19171main ()
19172{
19173return pthread_mutex_init ();
19174  ;
19175  return 0;
19176}
19177_ACEOF
19178if ac_fn_c_try_link "$LINENO"; then :
19179  ac_cv_lib_pthread_pthread_mutex_init=yes
19180else
19181  ac_cv_lib_pthread_pthread_mutex_init=no
19182fi
19183rm -f core conftest.err conftest.$ac_objext \
19184    conftest$ac_exeext conftest.$ac_ext
19185LIBS=$ac_check_lib_save_LIBS
19186fi
19187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
19188$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
19189if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
19190  cat >>confdefs.h <<_ACEOF
19191#define HAVE_LIBPTHREAD 1
19192_ACEOF
19193
19194  LIBS="-lpthread $LIBS"
19195
19196else
19197  as_fn_error $? "*** pthread library not found!" "$LINENO" 5
19198fi
19199
19200PTHREAD_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS"
19201PTHREAD_LIBS="$LDFLAGS $LIBS"
19202CXXFLAGS="$tmp_CXXFLAGS"
19203CPPFLAGS="$tmp_CPPFLAGS"
19204CFLAGS="$tmp_CFLAGS"
19205LDFLAGS="$tmp_LDFLAGS"
19206LIBS="$tmp_LIBS"
19207# Add extra (platform specific) libs for semaphore support?
19208case $host_os in #(
19209  darwin*) :
19210    PTHREAD_LIBS="$PTHREAD_LIBS -framework CoreServices" ;; #(
19211  linux*|*bsd*|dragonfly) :
19212     ;; #(
19213  msys|mingw*|windows*|winnt|cygwin) :
19214     ;; #(
19215  *) :
19216     ;;
19217esac
19218
19219
19220
19221# Check whether --enable-sse was given.
19222if test "${enable_sse+set}" = set; then :
19223  enableval=$enable_sse;
19224else
19225  enable_sse="auto"
19226fi
19227
19228
19229if test "x$enable_sse" = "xyes"; then :
19230  enable_sse="auto"
19231fi
19232
19233#AC_MSG_RESULT([SSE: $enable_sse])
19234
19235if test "x$enable_sse" = "x3"; then :
19236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting sse level 3" >&5
19237$as_echo "Setting sse level 3" >&6; }
19238       SSEFLAGS="-DSSE -msse -msse2 -msse3"
19239elif test "x$enable_sse" = "x2"; then :
19240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting sse level 2" >&5
19241$as_echo "Setting sse level 2" >&6; }
19242       SSEFLAGS="-DSSE -msse -msse2"
19243elif test "x$enable_sse" = "x1"; then :
19244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting sse level 1" >&5
19245$as_echo "Setting sse level 1" >&6; }
19246       SSEFLAGS="-DSSE -msse"
19247elif test "x$enable_sse" = "xauto"; then :
19248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Auto setting sse level" >&5
19249$as_echo "Auto setting sse level" >&6; }
19250
19251       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse3 instructions" >&5
19252$as_echo_n "checking for sse3 instructions... " >&6; }
19253       if grep -q "sse3" /proc/cpuinfo; then :
19254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255$as_echo "yes" >&6; }
19256              SSEFLAGS="-msse3"
19257
19258else
19259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260$as_echo "no" >&6; }
19261
19262fi
19263
19264       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse2 instructions" >&5
19265$as_echo_n "checking for sse2 instructions... " >&6; }
19266       if grep -q "sse2" /proc/cpuinfo; then :
19267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19268$as_echo "yes" >&6; }
19269              SSEFLAGS="$SSEFLAGS -msse2"
19270
19271else
19272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273$as_echo "no" >&6; }
19274
19275fi
19276
19277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse instructions" >&5
19278$as_echo_n "checking for sse instructions... " >&6; }
19279       if grep -q "sse" /proc/cpuinfo; then :
19280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19281$as_echo "yes" >&6; }
19282              SSEFLAGS="$SSEFLAGS -DSSE -msse"
19283
19284else
19285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286$as_echo "no" >&6; }
19287
19288fi
19289else
19290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Disabling SSE ***" >&5
19291$as_echo "*** Disabling SSE ***" >&6; }
19292
19293fi
19294
19295if test "x$need_jack" = "xyes"; then :
19296
19297pkg_failed=no
19298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
19299$as_echo_n "checking for JACK... " >&6; }
19300
19301if test -n "$JACK_CFLAGS"; then
19302    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
19303 elif test -n "$PKG_CONFIG"; then
19304    if test -n "$PKG_CONFIG" && \
19305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.120.1\""; } >&5
19306  ($PKG_CONFIG --exists --print-errors "jack >= 0.120.1") 2>&5
19307  ac_status=$?
19308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19309  test $ac_status = 0; }; then
19310  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.120.1" 2>/dev/null`
19311		      test "x$?" != "x0" && pkg_failed=yes
19312else
19313  pkg_failed=yes
19314fi
19315 else
19316    pkg_failed=untried
19317fi
19318if test -n "$JACK_LIBS"; then
19319    pkg_cv_JACK_LIBS="$JACK_LIBS"
19320 elif test -n "$PKG_CONFIG"; then
19321    if test -n "$PKG_CONFIG" && \
19322    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.120.1\""; } >&5
19323  ($PKG_CONFIG --exists --print-errors "jack >= 0.120.1") 2>&5
19324  ac_status=$?
19325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19326  test $ac_status = 0; }; then
19327  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.120.1" 2>/dev/null`
19328		      test "x$?" != "x0" && pkg_failed=yes
19329else
19330  pkg_failed=yes
19331fi
19332 else
19333    pkg_failed=untried
19334fi
19335
19336
19337
19338if test $pkg_failed = yes; then
19339   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19340$as_echo "no" >&6; }
19341
19342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19343        _pkg_short_errors_supported=yes
19344else
19345        _pkg_short_errors_supported=no
19346fi
19347        if test $_pkg_short_errors_supported = yes; then
19348	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.120.1" 2>&1`
19349        else
19350	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.120.1" 2>&1`
19351        fi
19352	# Put the nasty error message in config.log where it belongs
19353	echo "$JACK_PKG_ERRORS" >&5
19354
19355	as_fn_error $? "Package requirements (jack >= 0.120.1) were not met:
19356
19357$JACK_PKG_ERRORS
19358
19359Consider adjusting the PKG_CONFIG_PATH environment variable if you
19360installed software in a non-standard prefix.
19361
19362Alternatively, you may set the environment variables JACK_CFLAGS
19363and JACK_LIBS to avoid the need to call pkg-config.
19364See the pkg-config man page for more details." "$LINENO" 5
19365elif test $pkg_failed = untried; then
19366     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367$as_echo "no" >&6; }
19368	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19370as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19371is in your PATH or set the PKG_CONFIG environment variable to the full
19372path to pkg-config.
19373
19374Alternatively, you may set the environment variables JACK_CFLAGS
19375and JACK_LIBS to avoid the need to call pkg-config.
19376See the pkg-config man page for more details.
19377
19378To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19379See \`config.log' for more details" "$LINENO" 5; }
19380else
19381	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
19382	JACK_LIBS=$pkg_cv_JACK_LIBS
19383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19384$as_echo "yes" >&6; }
19385
19386fi
19387fi
19388
19389
19390
19391
19392
19393
19394
19395ac_config_files="$ac_config_files Makefile tools/Makefile src/Makefile plugin/Makefile plugin/vst/Makefile plugingui/Makefile plugingui/locale/Makefile man/Makefile test/Makefile test/dgreftest/Makefile test/uitests/Makefile drumgizmo/Makefile"
19396
19397
19398cat >confcache <<\_ACEOF
19399# This file is a shell script that caches the results of configure
19400# tests run on this system so they can be shared between configure
19401# scripts and configure runs, see configure's option --config-cache.
19402# It is not useful on other systems.  If it contains results you don't
19403# want to keep, you may remove or edit it.
19404#
19405# config.status only pays attention to the cache file if you give it
19406# the --recheck option to rerun configure.
19407#
19408# `ac_cv_env_foo' variables (set or unset) will be overridden when
19409# loading this file, other *unset* `ac_cv_foo' will be assigned the
19410# following values.
19411
19412_ACEOF
19413
19414# The following way of writing the cache mishandles newlines in values,
19415# but we know of no workaround that is simple, portable, and efficient.
19416# So, we kill variables containing newlines.
19417# Ultrix sh set writes to stderr and can't be redirected directly,
19418# and sets the high bit in the cache file unless we assign to the vars.
19419(
19420  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19421    eval ac_val=\$$ac_var
19422    case $ac_val in #(
19423    *${as_nl}*)
19424      case $ac_var in #(
19425      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19426$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19427      esac
19428      case $ac_var in #(
19429      _ | IFS | as_nl) ;; #(
19430      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19431      *) { eval $ac_var=; unset $ac_var;} ;;
19432      esac ;;
19433    esac
19434  done
19435
19436  (set) 2>&1 |
19437    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19438    *${as_nl}ac_space=\ *)
19439      # `set' does not quote correctly, so add quotes: double-quote
19440      # substitution turns \\\\ into \\, and sed turns \\ into \.
19441      sed -n \
19442	"s/'/'\\\\''/g;
19443	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19444      ;; #(
19445    *)
19446      # `set' quotes correctly as required by POSIX, so do not add quotes.
19447      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19448      ;;
19449    esac |
19450    sort
19451) |
19452  sed '
19453     /^ac_cv_env_/b end
19454     t clear
19455     :clear
19456     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19457     t end
19458     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19459     :end' >>confcache
19460if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19461  if test -w "$cache_file"; then
19462    if test "x$cache_file" != "x/dev/null"; then
19463      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19464$as_echo "$as_me: updating cache $cache_file" >&6;}
19465      if test ! -f "$cache_file" || test -h "$cache_file"; then
19466	cat confcache >"$cache_file"
19467      else
19468        case $cache_file in #(
19469        */* | ?:*)
19470	  mv -f confcache "$cache_file"$$ &&
19471	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19472        *)
19473	  mv -f confcache "$cache_file" ;;
19474	esac
19475      fi
19476    fi
19477  else
19478    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19479$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19480  fi
19481fi
19482rm -f confcache
19483
19484test "x$prefix" = xNONE && prefix=$ac_default_prefix
19485# Let make expand exec_prefix.
19486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19487
19488DEFS=-DHAVE_CONFIG_H
19489
19490ac_libobjs=
19491ac_ltlibobjs=
19492U=
19493for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19494  # 1. Remove the extension, and $U if already installed.
19495  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19496  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19497  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19498  #    will be set to the directory where LIBOBJS objects are built.
19499  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19500  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19501done
19502LIBOBJS=$ac_libobjs
19503
19504LTLIBOBJS=$ac_ltlibobjs
19505
19506
19507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19508$as_echo_n "checking that generated files are newer than configure... " >&6; }
19509   if test -n "$am_sleep_pid"; then
19510     # Hide warnings about reused PIDs.
19511     wait $am_sleep_pid 2>/dev/null
19512   fi
19513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19514$as_echo "done" >&6; }
19515 if test -n "$EXEEXT"; then
19516  am__EXEEXT_TRUE=
19517  am__EXEEXT_FALSE='#'
19518else
19519  am__EXEEXT_TRUE='#'
19520  am__EXEEXT_FALSE=
19521fi
19522
19523if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19524  as_fn_error $? "conditional \"AMDEP\" was never defined.
19525Usually this means the macro was only invoked conditionally." "$LINENO" 5
19526fi
19527if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19528  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19529Usually this means the macro was only invoked conditionally." "$LINENO" 5
19530fi
19531if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
19532  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
19533Usually this means the macro was only invoked conditionally." "$LINENO" 5
19534fi
19535if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
19536  as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
19537Usually this means the macro was only invoked conditionally." "$LINENO" 5
19538fi
19539if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19540  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19541Usually this means the macro was only invoked conditionally." "$LINENO" 5
19542fi
19543if test -z "${WITH_NLS_TRUE}" && test -z "${WITH_NLS_FALSE}"; then
19544  as_fn_error $? "conditional \"WITH_NLS\" was never defined.
19545Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546fi
19547if test -z "${ENABLE_X11_TRUE}" && test -z "${ENABLE_X11_FALSE}"; then
19548  as_fn_error $? "conditional \"ENABLE_X11\" was never defined.
19549Usually this means the macro was only invoked conditionally." "$LINENO" 5
19550fi
19551if test -z "${ENABLE_WIN32_TRUE}" && test -z "${ENABLE_WIN32_FALSE}"; then
19552  as_fn_error $? "conditional \"ENABLE_WIN32\" was never defined.
19553Usually this means the macro was only invoked conditionally." "$LINENO" 5
19554fi
19555if test -z "${ENABLE_COCOA_TRUE}" && test -z "${ENABLE_COCOA_FALSE}"; then
19556  as_fn_error $? "conditional \"ENABLE_COCOA\" was never defined.
19557Usually this means the macro was only invoked conditionally." "$LINENO" 5
19558fi
19559if test -z "${ENABLE_PUGL_X11_TRUE}" && test -z "${ENABLE_PUGL_X11_FALSE}"; then
19560  as_fn_error $? "conditional \"ENABLE_PUGL_X11\" was never defined.
19561Usually this means the macro was only invoked conditionally." "$LINENO" 5
19562fi
19563if test -z "${ENABLE_PUGL_WIN32_TRUE}" && test -z "${ENABLE_PUGL_WIN32_FALSE}"; then
19564  as_fn_error $? "conditional \"ENABLE_PUGL_WIN32\" was never defined.
19565Usually this means the macro was only invoked conditionally." "$LINENO" 5
19566fi
19567if test -z "${ENABLE_PUGL_COCOA_TRUE}" && test -z "${ENABLE_PUGL_COCOA_FALSE}"; then
19568  as_fn_error $? "conditional \"ENABLE_PUGL_COCOA\" was never defined.
19569Usually this means the macro was only invoked conditionally." "$LINENO" 5
19570fi
19571if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19572  as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
19573Usually this means the macro was only invoked conditionally." "$LINENO" 5
19574fi
19575if test -z "${ENABLE_LV2_TRUE}" && test -z "${ENABLE_LV2_FALSE}"; then
19576  as_fn_error $? "conditional \"ENABLE_LV2\" was never defined.
19577Usually this means the macro was only invoked conditionally." "$LINENO" 5
19578fi
19579if test -z "${ENABLE_VST_TRUE}" && test -z "${ENABLE_VST_FALSE}"; then
19580  as_fn_error $? "conditional \"ENABLE_VST\" was never defined.
19581Usually this means the macro was only invoked conditionally." "$LINENO" 5
19582fi
19583if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
19584  as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
19585Usually this means the macro was only invoked conditionally." "$LINENO" 5
19586fi
19587if test -z "${HAVE_INPUT_DUMMY_TRUE}" && test -z "${HAVE_INPUT_DUMMY_FALSE}"; then
19588  as_fn_error $? "conditional \"HAVE_INPUT_DUMMY\" was never defined.
19589Usually this means the macro was only invoked conditionally." "$LINENO" 5
19590fi
19591if test -z "${HAVE_INPUT_TEST_TRUE}" && test -z "${HAVE_INPUT_TEST_FALSE}"; then
19592  as_fn_error $? "conditional \"HAVE_INPUT_TEST\" was never defined.
19593Usually this means the macro was only invoked conditionally." "$LINENO" 5
19594fi
19595if test -z "${HAVE_INPUT_JACKMIDI_TRUE}" && test -z "${HAVE_INPUT_JACKMIDI_FALSE}"; then
19596  as_fn_error $? "conditional \"HAVE_INPUT_JACKMIDI\" was never defined.
19597Usually this means the macro was only invoked conditionally." "$LINENO" 5
19598fi
19599if test -z "${HAVE_INPUT_OSSMIDI_TRUE}" && test -z "${HAVE_INPUT_OSSMIDI_FALSE}"; then
19600  as_fn_error $? "conditional \"HAVE_INPUT_OSSMIDI\" was never defined.
19601Usually this means the macro was only invoked conditionally." "$LINENO" 5
19602fi
19603if test -z "${HAVE_INPUT_MIDIFILE_TRUE}" && test -z "${HAVE_INPUT_MIDIFILE_FALSE}"; then
19604  as_fn_error $? "conditional \"HAVE_INPUT_MIDIFILE\" was never defined.
19605Usually this means the macro was only invoked conditionally." "$LINENO" 5
19606fi
19607if test -z "${HAVE_OUTPUT_DUMMY_TRUE}" && test -z "${HAVE_OUTPUT_DUMMY_FALSE}"; then
19608  as_fn_error $? "conditional \"HAVE_OUTPUT_DUMMY\" was never defined.
19609Usually this means the macro was only invoked conditionally." "$LINENO" 5
19610fi
19611if test -z "${HAVE_OUTPUT_ALSA_TRUE}" && test -z "${HAVE_OUTPUT_ALSA_FALSE}"; then
19612  as_fn_error $? "conditional \"HAVE_OUTPUT_ALSA\" was never defined.
19613Usually this means the macro was only invoked conditionally." "$LINENO" 5
19614fi
19615if test -z "${HAVE_OUTPUT_WAVFILE_TRUE}" && test -z "${HAVE_OUTPUT_WAVFILE_FALSE}"; then
19616  as_fn_error $? "conditional \"HAVE_OUTPUT_WAVFILE\" was never defined.
19617Usually this means the macro was only invoked conditionally." "$LINENO" 5
19618fi
19619if test -z "${HAVE_OUTPUT_JACKAUDIO_TRUE}" && test -z "${HAVE_OUTPUT_JACKAUDIO_FALSE}"; then
19620  as_fn_error $? "conditional \"HAVE_OUTPUT_JACKAUDIO\" was never defined.
19621Usually this means the macro was only invoked conditionally." "$LINENO" 5
19622fi
19623if test -z "${HAVE_OUTPUT_OSS_TRUE}" && test -z "${HAVE_OUTPUT_OSS_FALSE}"; then
19624  as_fn_error $? "conditional \"HAVE_OUTPUT_OSS\" was never defined.
19625Usually this means the macro was only invoked conditionally." "$LINENO" 5
19626fi
19627
19628: "${CONFIG_STATUS=./config.status}"
19629ac_write_fail=0
19630ac_clean_files_save=$ac_clean_files
19631ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19632{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19633$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19634as_write_fail=0
19635cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19636#! $SHELL
19637# Generated by $as_me.
19638# Run this file to recreate the current configuration.
19639# Compiler output produced by configure, useful for debugging
19640# configure, is in config.log if it exists.
19641
19642debug=false
19643ac_cs_recheck=false
19644ac_cs_silent=false
19645
19646SHELL=\${CONFIG_SHELL-$SHELL}
19647export SHELL
19648_ASEOF
19649cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19650## -------------------- ##
19651## M4sh Initialization. ##
19652## -------------------- ##
19653
19654# Be more Bourne compatible
19655DUALCASE=1; export DUALCASE # for MKS sh
19656if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19657  emulate sh
19658  NULLCMD=:
19659  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19660  # is contrary to our usage.  Disable this feature.
19661  alias -g '${1+"$@"}'='"$@"'
19662  setopt NO_GLOB_SUBST
19663else
19664  case `(set -o) 2>/dev/null` in #(
19665  *posix*) :
19666    set -o posix ;; #(
19667  *) :
19668     ;;
19669esac
19670fi
19671
19672
19673as_nl='
19674'
19675export as_nl
19676# Printing a long string crashes Solaris 7 /usr/bin/printf.
19677as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19678as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19679as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19680# Prefer a ksh shell builtin over an external printf program on Solaris,
19681# but without wasting forks for bash or zsh.
19682if test -z "$BASH_VERSION$ZSH_VERSION" \
19683    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19684  as_echo='print -r --'
19685  as_echo_n='print -rn --'
19686elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19687  as_echo='printf %s\n'
19688  as_echo_n='printf %s'
19689else
19690  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19691    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19692    as_echo_n='/usr/ucb/echo -n'
19693  else
19694    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19695    as_echo_n_body='eval
19696      arg=$1;
19697      case $arg in #(
19698      *"$as_nl"*)
19699	expr "X$arg" : "X\\(.*\\)$as_nl";
19700	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19701      esac;
19702      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19703    '
19704    export as_echo_n_body
19705    as_echo_n='sh -c $as_echo_n_body as_echo'
19706  fi
19707  export as_echo_body
19708  as_echo='sh -c $as_echo_body as_echo'
19709fi
19710
19711# The user is always right.
19712if test "${PATH_SEPARATOR+set}" != set; then
19713  PATH_SEPARATOR=:
19714  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19715    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19716      PATH_SEPARATOR=';'
19717  }
19718fi
19719
19720
19721# IFS
19722# We need space, tab and new line, in precisely that order.  Quoting is
19723# there to prevent editors from complaining about space-tab.
19724# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19725# splitting by setting IFS to empty value.)
19726IFS=" ""	$as_nl"
19727
19728# Find who we are.  Look in the path if we contain no directory separator.
19729as_myself=
19730case $0 in #((
19731  *[\\/]* ) as_myself=$0 ;;
19732  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19733for as_dir in $PATH
19734do
19735  IFS=$as_save_IFS
19736  test -z "$as_dir" && as_dir=.
19737    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19738  done
19739IFS=$as_save_IFS
19740
19741     ;;
19742esac
19743# We did not find ourselves, most probably we were run as `sh COMMAND'
19744# in which case we are not to be found in the path.
19745if test "x$as_myself" = x; then
19746  as_myself=$0
19747fi
19748if test ! -f "$as_myself"; then
19749  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19750  exit 1
19751fi
19752
19753# Unset variables that we do not need and which cause bugs (e.g. in
19754# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19755# suppresses any "Segmentation fault" message there.  '((' could
19756# trigger a bug in pdksh 5.2.14.
19757for as_var in BASH_ENV ENV MAIL MAILPATH
19758do eval test x\${$as_var+set} = xset \
19759  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19760done
19761PS1='$ '
19762PS2='> '
19763PS4='+ '
19764
19765# NLS nuisances.
19766LC_ALL=C
19767export LC_ALL
19768LANGUAGE=C
19769export LANGUAGE
19770
19771# CDPATH.
19772(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19773
19774
19775# as_fn_error STATUS ERROR [LINENO LOG_FD]
19776# ----------------------------------------
19777# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19778# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19779# script with STATUS, using 1 if that was 0.
19780as_fn_error ()
19781{
19782  as_status=$1; test $as_status -eq 0 && as_status=1
19783  if test "$4"; then
19784    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19785    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19786  fi
19787  $as_echo "$as_me: error: $2" >&2
19788  as_fn_exit $as_status
19789} # as_fn_error
19790
19791
19792# as_fn_set_status STATUS
19793# -----------------------
19794# Set $? to STATUS, without forking.
19795as_fn_set_status ()
19796{
19797  return $1
19798} # as_fn_set_status
19799
19800# as_fn_exit STATUS
19801# -----------------
19802# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19803as_fn_exit ()
19804{
19805  set +e
19806  as_fn_set_status $1
19807  exit $1
19808} # as_fn_exit
19809
19810# as_fn_unset VAR
19811# ---------------
19812# Portably unset VAR.
19813as_fn_unset ()
19814{
19815  { eval $1=; unset $1;}
19816}
19817as_unset=as_fn_unset
19818# as_fn_append VAR VALUE
19819# ----------------------
19820# Append the text in VALUE to the end of the definition contained in VAR. Take
19821# advantage of any shell optimizations that allow amortized linear growth over
19822# repeated appends, instead of the typical quadratic growth present in naive
19823# implementations.
19824if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19825  eval 'as_fn_append ()
19826  {
19827    eval $1+=\$2
19828  }'
19829else
19830  as_fn_append ()
19831  {
19832    eval $1=\$$1\$2
19833  }
19834fi # as_fn_append
19835
19836# as_fn_arith ARG...
19837# ------------------
19838# Perform arithmetic evaluation on the ARGs, and store the result in the
19839# global $as_val. Take advantage of shells that can avoid forks. The arguments
19840# must be portable across $(()) and expr.
19841if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19842  eval 'as_fn_arith ()
19843  {
19844    as_val=$(( $* ))
19845  }'
19846else
19847  as_fn_arith ()
19848  {
19849    as_val=`expr "$@" || test $? -eq 1`
19850  }
19851fi # as_fn_arith
19852
19853
19854if expr a : '\(a\)' >/dev/null 2>&1 &&
19855   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19856  as_expr=expr
19857else
19858  as_expr=false
19859fi
19860
19861if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19862  as_basename=basename
19863else
19864  as_basename=false
19865fi
19866
19867if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19868  as_dirname=dirname
19869else
19870  as_dirname=false
19871fi
19872
19873as_me=`$as_basename -- "$0" ||
19874$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19875	 X"$0" : 'X\(//\)$' \| \
19876	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19877$as_echo X/"$0" |
19878    sed '/^.*\/\([^/][^/]*\)\/*$/{
19879	    s//\1/
19880	    q
19881	  }
19882	  /^X\/\(\/\/\)$/{
19883	    s//\1/
19884	    q
19885	  }
19886	  /^X\/\(\/\).*/{
19887	    s//\1/
19888	    q
19889	  }
19890	  s/.*/./; q'`
19891
19892# Avoid depending upon Character Ranges.
19893as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19894as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19895as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19896as_cr_digits='0123456789'
19897as_cr_alnum=$as_cr_Letters$as_cr_digits
19898
19899ECHO_C= ECHO_N= ECHO_T=
19900case `echo -n x` in #(((((
19901-n*)
19902  case `echo 'xy\c'` in
19903  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19904  xy)  ECHO_C='\c';;
19905  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19906       ECHO_T='	';;
19907  esac;;
19908*)
19909  ECHO_N='-n';;
19910esac
19911
19912rm -f conf$$ conf$$.exe conf$$.file
19913if test -d conf$$.dir; then
19914  rm -f conf$$.dir/conf$$.file
19915else
19916  rm -f conf$$.dir
19917  mkdir conf$$.dir 2>/dev/null
19918fi
19919if (echo >conf$$.file) 2>/dev/null; then
19920  if ln -s conf$$.file conf$$ 2>/dev/null; then
19921    as_ln_s='ln -s'
19922    # ... but there are two gotchas:
19923    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19924    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19925    # In both cases, we have to default to `cp -pR'.
19926    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19927      as_ln_s='cp -pR'
19928  elif ln conf$$.file conf$$ 2>/dev/null; then
19929    as_ln_s=ln
19930  else
19931    as_ln_s='cp -pR'
19932  fi
19933else
19934  as_ln_s='cp -pR'
19935fi
19936rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19937rmdir conf$$.dir 2>/dev/null
19938
19939
19940# as_fn_mkdir_p
19941# -------------
19942# Create "$as_dir" as a directory, including parents if necessary.
19943as_fn_mkdir_p ()
19944{
19945
19946  case $as_dir in #(
19947  -*) as_dir=./$as_dir;;
19948  esac
19949  test -d "$as_dir" || eval $as_mkdir_p || {
19950    as_dirs=
19951    while :; do
19952      case $as_dir in #(
19953      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19954      *) as_qdir=$as_dir;;
19955      esac
19956      as_dirs="'$as_qdir' $as_dirs"
19957      as_dir=`$as_dirname -- "$as_dir" ||
19958$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19959	 X"$as_dir" : 'X\(//\)[^/]' \| \
19960	 X"$as_dir" : 'X\(//\)$' \| \
19961	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19962$as_echo X"$as_dir" |
19963    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19964	    s//\1/
19965	    q
19966	  }
19967	  /^X\(\/\/\)[^/].*/{
19968	    s//\1/
19969	    q
19970	  }
19971	  /^X\(\/\/\)$/{
19972	    s//\1/
19973	    q
19974	  }
19975	  /^X\(\/\).*/{
19976	    s//\1/
19977	    q
19978	  }
19979	  s/.*/./; q'`
19980      test -d "$as_dir" && break
19981    done
19982    test -z "$as_dirs" || eval "mkdir $as_dirs"
19983  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19984
19985
19986} # as_fn_mkdir_p
19987if mkdir -p . 2>/dev/null; then
19988  as_mkdir_p='mkdir -p "$as_dir"'
19989else
19990  test -d ./-p && rmdir ./-p
19991  as_mkdir_p=false
19992fi
19993
19994
19995# as_fn_executable_p FILE
19996# -----------------------
19997# Test if FILE is an executable regular file.
19998as_fn_executable_p ()
19999{
20000  test -f "$1" && test -x "$1"
20001} # as_fn_executable_p
20002as_test_x='test -x'
20003as_executable_p=as_fn_executable_p
20004
20005# Sed expression to map a string onto a valid CPP name.
20006as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20007
20008# Sed expression to map a string onto a valid variable name.
20009as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20010
20011
20012exec 6>&1
20013## ----------------------------------- ##
20014## Main body of $CONFIG_STATUS script. ##
20015## ----------------------------------- ##
20016_ASEOF
20017test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20018
20019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20020# Save the log message, to keep $0 and so on meaningful, and to
20021# report actual input values of CONFIG_FILES etc. instead of their
20022# values after options handling.
20023ac_log="
20024This file was extended by drumgizmo $as_me 0.9.19, which was
20025generated by GNU Autoconf 2.69.  Invocation command line was
20026
20027  CONFIG_FILES    = $CONFIG_FILES
20028  CONFIG_HEADERS  = $CONFIG_HEADERS
20029  CONFIG_LINKS    = $CONFIG_LINKS
20030  CONFIG_COMMANDS = $CONFIG_COMMANDS
20031  $ $0 $@
20032
20033on `(hostname || uname -n) 2>/dev/null | sed 1q`
20034"
20035
20036_ACEOF
20037
20038case $ac_config_files in *"
20039"*) set x $ac_config_files; shift; ac_config_files=$*;;
20040esac
20041
20042case $ac_config_headers in *"
20043"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20044esac
20045
20046
20047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20048# Files that config.status was made for.
20049config_files="$ac_config_files"
20050config_headers="$ac_config_headers"
20051config_commands="$ac_config_commands"
20052
20053_ACEOF
20054
20055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20056ac_cs_usage="\
20057\`$as_me' instantiates files and other configuration actions
20058from templates according to the current configuration.  Unless the files
20059and actions are specified as TAGs, all are instantiated by default.
20060
20061Usage: $0 [OPTION]... [TAG]...
20062
20063  -h, --help       print this help, then exit
20064  -V, --version    print version number and configuration settings, then exit
20065      --config     print configuration, then exit
20066  -q, --quiet, --silent
20067                   do not print progress messages
20068  -d, --debug      don't remove temporary files
20069      --recheck    update $as_me by reconfiguring in the same conditions
20070      --file=FILE[:TEMPLATE]
20071                   instantiate the configuration file FILE
20072      --header=FILE[:TEMPLATE]
20073                   instantiate the configuration header FILE
20074
20075Configuration files:
20076$config_files
20077
20078Configuration headers:
20079$config_headers
20080
20081Configuration commands:
20082$config_commands
20083
20084Report bugs to the package provider."
20085
20086_ACEOF
20087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20088ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20089ac_cs_version="\\
20090drumgizmo config.status 0.9.19
20091configured by $0, generated by GNU Autoconf 2.69,
20092  with options \\"\$ac_cs_config\\"
20093
20094Copyright (C) 2012 Free Software Foundation, Inc.
20095This config.status script is free software; the Free Software Foundation
20096gives unlimited permission to copy, distribute and modify it."
20097
20098ac_pwd='$ac_pwd'
20099srcdir='$srcdir'
20100INSTALL='$INSTALL'
20101MKDIR_P='$MKDIR_P'
20102AWK='$AWK'
20103test -n "\$AWK" || AWK=awk
20104_ACEOF
20105
20106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20107# The default lists apply if the user does not specify any file.
20108ac_need_defaults=:
20109while test $# != 0
20110do
20111  case $1 in
20112  --*=?*)
20113    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20114    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20115    ac_shift=:
20116    ;;
20117  --*=)
20118    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20119    ac_optarg=
20120    ac_shift=:
20121    ;;
20122  *)
20123    ac_option=$1
20124    ac_optarg=$2
20125    ac_shift=shift
20126    ;;
20127  esac
20128
20129  case $ac_option in
20130  # Handling of the options.
20131  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20132    ac_cs_recheck=: ;;
20133  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20134    $as_echo "$ac_cs_version"; exit ;;
20135  --config | --confi | --conf | --con | --co | --c )
20136    $as_echo "$ac_cs_config"; exit ;;
20137  --debug | --debu | --deb | --de | --d | -d )
20138    debug=: ;;
20139  --file | --fil | --fi | --f )
20140    $ac_shift
20141    case $ac_optarg in
20142    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20143    '') as_fn_error $? "missing file argument" ;;
20144    esac
20145    as_fn_append CONFIG_FILES " '$ac_optarg'"
20146    ac_need_defaults=false;;
20147  --header | --heade | --head | --hea )
20148    $ac_shift
20149    case $ac_optarg in
20150    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20151    esac
20152    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20153    ac_need_defaults=false;;
20154  --he | --h)
20155    # Conflict between --help and --header
20156    as_fn_error $? "ambiguous option: \`$1'
20157Try \`$0 --help' for more information.";;
20158  --help | --hel | -h )
20159    $as_echo "$ac_cs_usage"; exit ;;
20160  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20161  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20162    ac_cs_silent=: ;;
20163
20164  # This is an error.
20165  -*) as_fn_error $? "unrecognized option: \`$1'
20166Try \`$0 --help' for more information." ;;
20167
20168  *) as_fn_append ac_config_targets " $1"
20169     ac_need_defaults=false ;;
20170
20171  esac
20172  shift
20173done
20174
20175ac_configure_extra_args=
20176
20177if $ac_cs_silent; then
20178  exec 6>/dev/null
20179  ac_configure_extra_args="$ac_configure_extra_args --silent"
20180fi
20181
20182_ACEOF
20183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20184if \$ac_cs_recheck; then
20185  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20186  shift
20187  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20188  CONFIG_SHELL='$SHELL'
20189  export CONFIG_SHELL
20190  exec "\$@"
20191fi
20192
20193_ACEOF
20194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20195exec 5>>config.log
20196{
20197  echo
20198  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20199## Running $as_me. ##
20200_ASBOX
20201  $as_echo "$ac_log"
20202} >&5
20203
20204_ACEOF
20205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20206#
20207# INIT-COMMANDS
20208#
20209AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20210
20211
20212# The HP-UX ksh and POSIX shell print the target directory to stdout
20213# if CDPATH is set.
20214(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20215
20216sed_quote_subst='$sed_quote_subst'
20217double_quote_subst='$double_quote_subst'
20218delay_variable_subst='$delay_variable_subst'
20219macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20220macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20221enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20222enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20223pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20224enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20225shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20226SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20227ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20228PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20229host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20230host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20231host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20232build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20233build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20234build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20235SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20236Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20237GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20238EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20239FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20240LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20241NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20242LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20243max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20244ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20245exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20246lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20247lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20248lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20249lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20250lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20251reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20252reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20253OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20254deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20255file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20256file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20257want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20258DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20259sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20260AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20261AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20262archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20263STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20264RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20265old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20266old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20267old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20268lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20269CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20270CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20271compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20272GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20273lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20274lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20275lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20276lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20277lt_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"`'
20278lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20279nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20280lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20281lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20282objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20283MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20284lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20285lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20286lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20287lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20288lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20289need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20290MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20291DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20292NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20293LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20294OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20295OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20296libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20297shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20298extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20299archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20300enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20301export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20302whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20303compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20304old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20305old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20306archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20307archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20308module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20309module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20310with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20311allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20312no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20313hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20314hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20315hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20316hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20317hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20318hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20319hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20320inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20321link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20322always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20323export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20324exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20325include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20326prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20327postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20328file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20329variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20330need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20331need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20332version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20333runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20334shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20335shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20336libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20337library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20338soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20339install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20340postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20341postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20342finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20343finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20344hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20345sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20346configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20347configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20348hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20349enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20350enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20351enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20352old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20353striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20354compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20355predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20356postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20357predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20358postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20359compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20360LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20361reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20362reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20363old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20364compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20365GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20366lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20367lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20368lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20369lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20370lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20371archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20372enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20373export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20374whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20375compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20376old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20377old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20378archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20379archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20380module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20381module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20382with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20383allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20384no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20385hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20386hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20387hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20388hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20389hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20390hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20391hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20392inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20393link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20394always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20395export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20396exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20397include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20398prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20399postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20400file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20401hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20402compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20403predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20404postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20405predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20406postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20407compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20408
20409LTCC='$LTCC'
20410LTCFLAGS='$LTCFLAGS'
20411compiler='$compiler_DEFAULT'
20412
20413# A function that is used when there is no print builtin or printf.
20414func_fallback_echo ()
20415{
20416  eval 'cat <<_LTECHO_EOF
20417\$1
20418_LTECHO_EOF'
20419}
20420
20421# Quote evaled strings.
20422for var in SHELL \
20423ECHO \
20424PATH_SEPARATOR \
20425SED \
20426GREP \
20427EGREP \
20428FGREP \
20429LD \
20430NM \
20431LN_S \
20432lt_SP2NL \
20433lt_NL2SP \
20434reload_flag \
20435OBJDUMP \
20436deplibs_check_method \
20437file_magic_cmd \
20438file_magic_glob \
20439want_nocaseglob \
20440DLLTOOL \
20441sharedlib_from_linklib_cmd \
20442AR \
20443AR_FLAGS \
20444archiver_list_spec \
20445STRIP \
20446RANLIB \
20447CC \
20448CFLAGS \
20449compiler \
20450lt_cv_sys_global_symbol_pipe \
20451lt_cv_sys_global_symbol_to_cdecl \
20452lt_cv_sys_global_symbol_to_import \
20453lt_cv_sys_global_symbol_to_c_name_address \
20454lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20455lt_cv_nm_interface \
20456nm_file_list_spec \
20457lt_cv_truncate_bin \
20458lt_prog_compiler_no_builtin_flag \
20459lt_prog_compiler_pic \
20460lt_prog_compiler_wl \
20461lt_prog_compiler_static \
20462lt_cv_prog_compiler_c_o \
20463need_locks \
20464MANIFEST_TOOL \
20465DSYMUTIL \
20466NMEDIT \
20467LIPO \
20468OTOOL \
20469OTOOL64 \
20470shrext_cmds \
20471export_dynamic_flag_spec \
20472whole_archive_flag_spec \
20473compiler_needs_object \
20474with_gnu_ld \
20475allow_undefined_flag \
20476no_undefined_flag \
20477hardcode_libdir_flag_spec \
20478hardcode_libdir_separator \
20479exclude_expsyms \
20480include_expsyms \
20481file_list_spec \
20482variables_saved_for_relink \
20483libname_spec \
20484library_names_spec \
20485soname_spec \
20486install_override_mode \
20487finish_eval \
20488old_striplib \
20489striplib \
20490compiler_lib_search_dirs \
20491predep_objects \
20492postdep_objects \
20493predeps \
20494postdeps \
20495compiler_lib_search_path \
20496LD_CXX \
20497reload_flag_CXX \
20498compiler_CXX \
20499lt_prog_compiler_no_builtin_flag_CXX \
20500lt_prog_compiler_pic_CXX \
20501lt_prog_compiler_wl_CXX \
20502lt_prog_compiler_static_CXX \
20503lt_cv_prog_compiler_c_o_CXX \
20504export_dynamic_flag_spec_CXX \
20505whole_archive_flag_spec_CXX \
20506compiler_needs_object_CXX \
20507with_gnu_ld_CXX \
20508allow_undefined_flag_CXX \
20509no_undefined_flag_CXX \
20510hardcode_libdir_flag_spec_CXX \
20511hardcode_libdir_separator_CXX \
20512exclude_expsyms_CXX \
20513include_expsyms_CXX \
20514file_list_spec_CXX \
20515compiler_lib_search_dirs_CXX \
20516predep_objects_CXX \
20517postdep_objects_CXX \
20518predeps_CXX \
20519postdeps_CXX \
20520compiler_lib_search_path_CXX; do
20521    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20522    *[\\\\\\\`\\"\\\$]*)
20523      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20524      ;;
20525    *)
20526      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20527      ;;
20528    esac
20529done
20530
20531# Double-quote double-evaled strings.
20532for var in reload_cmds \
20533old_postinstall_cmds \
20534old_postuninstall_cmds \
20535old_archive_cmds \
20536extract_expsyms_cmds \
20537old_archive_from_new_cmds \
20538old_archive_from_expsyms_cmds \
20539archive_cmds \
20540archive_expsym_cmds \
20541module_cmds \
20542module_expsym_cmds \
20543export_symbols_cmds \
20544prelink_cmds \
20545postlink_cmds \
20546postinstall_cmds \
20547postuninstall_cmds \
20548finish_cmds \
20549sys_lib_search_path_spec \
20550configure_time_dlsearch_path \
20551configure_time_lt_sys_library_path \
20552reload_cmds_CXX \
20553old_archive_cmds_CXX \
20554old_archive_from_new_cmds_CXX \
20555old_archive_from_expsyms_cmds_CXX \
20556archive_cmds_CXX \
20557archive_expsym_cmds_CXX \
20558module_cmds_CXX \
20559module_expsym_cmds_CXX \
20560export_symbols_cmds_CXX \
20561prelink_cmds_CXX \
20562postlink_cmds_CXX; do
20563    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20564    *[\\\\\\\`\\"\\\$]*)
20565      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20566      ;;
20567    *)
20568      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20569      ;;
20570    esac
20571done
20572
20573ac_aux_dir='$ac_aux_dir'
20574
20575# See if we are running on zsh, and set the options that allow our
20576# commands through without removal of \ escapes INIT.
20577if test -n "\${ZSH_VERSION+set}"; then
20578   setopt NO_GLOB_SUBST
20579fi
20580
20581
20582    PACKAGE='$PACKAGE'
20583    VERSION='$VERSION'
20584    RM='$RM'
20585    ofile='$ofile'
20586
20587
20588
20589
20590
20591
20592_ACEOF
20593
20594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20595
20596# Handling of arguments.
20597for ac_config_target in $ac_config_targets
20598do
20599  case $ac_config_target in
20600    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20601    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20602    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20603    "plugin/Makefile.mingw32") CONFIG_FILES="$CONFIG_FILES plugin/Makefile.mingw32" ;;
20604    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20605    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20606    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20607    "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
20608    "plugin/vst/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/vst/Makefile" ;;
20609    "plugingui/Makefile") CONFIG_FILES="$CONFIG_FILES plugingui/Makefile" ;;
20610    "plugingui/locale/Makefile") CONFIG_FILES="$CONFIG_FILES plugingui/locale/Makefile" ;;
20611    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20612    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20613    "test/dgreftest/Makefile") CONFIG_FILES="$CONFIG_FILES test/dgreftest/Makefile" ;;
20614    "test/uitests/Makefile") CONFIG_FILES="$CONFIG_FILES test/uitests/Makefile" ;;
20615    "drumgizmo/Makefile") CONFIG_FILES="$CONFIG_FILES drumgizmo/Makefile" ;;
20616
20617  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20618  esac
20619done
20620
20621
20622# If the user did not use the arguments to specify the items to instantiate,
20623# then the envvar interface is used.  Set only those that are not.
20624# We use the long form for the default assignment because of an extremely
20625# bizarre bug on SunOS 4.1.3.
20626if $ac_need_defaults; then
20627  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20628  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20629  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20630fi
20631
20632# Have a temporary directory for convenience.  Make it in the build tree
20633# simply because there is no reason against having it here, and in addition,
20634# creating and moving files from /tmp can sometimes cause problems.
20635# Hook for its removal unless debugging.
20636# Note that there is a small window in which the directory will not be cleaned:
20637# after its creation but before its name has been assigned to `$tmp'.
20638$debug ||
20639{
20640  tmp= ac_tmp=
20641  trap 'exit_status=$?
20642  : "${ac_tmp:=$tmp}"
20643  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20644' 0
20645  trap 'as_fn_exit 1' 1 2 13 15
20646}
20647# Create a (secure) tmp directory for tmp files.
20648
20649{
20650  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20651  test -d "$tmp"
20652}  ||
20653{
20654  tmp=./conf$$-$RANDOM
20655  (umask 077 && mkdir "$tmp")
20656} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20657ac_tmp=$tmp
20658
20659# Set up the scripts for CONFIG_FILES section.
20660# No need to generate them if there are no CONFIG_FILES.
20661# This happens for instance with `./config.status config.h'.
20662if test -n "$CONFIG_FILES"; then
20663
20664
20665ac_cr=`echo X | tr X '\015'`
20666# On cygwin, bash can eat \r inside `` if the user requested igncr.
20667# But we know of no other shell where ac_cr would be empty at this
20668# point, so we can use a bashism as a fallback.
20669if test "x$ac_cr" = x; then
20670  eval ac_cr=\$\'\\r\'
20671fi
20672ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20673if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20674  ac_cs_awk_cr='\\r'
20675else
20676  ac_cs_awk_cr=$ac_cr
20677fi
20678
20679echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20680_ACEOF
20681
20682
20683{
20684  echo "cat >conf$$subs.awk <<_ACEOF" &&
20685  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20686  echo "_ACEOF"
20687} >conf$$subs.sh ||
20688  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20689ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20690ac_delim='%!_!# '
20691for ac_last_try in false false false false false :; do
20692  . ./conf$$subs.sh ||
20693    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20694
20695  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20696  if test $ac_delim_n = $ac_delim_num; then
20697    break
20698  elif $ac_last_try; then
20699    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20700  else
20701    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20702  fi
20703done
20704rm -f conf$$subs.sh
20705
20706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20708_ACEOF
20709sed -n '
20710h
20711s/^/S["/; s/!.*/"]=/
20712p
20713g
20714s/^[^!]*!//
20715:repl
20716t repl
20717s/'"$ac_delim"'$//
20718t delim
20719:nl
20720h
20721s/\(.\{148\}\)..*/\1/
20722t more1
20723s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20724p
20725n
20726b repl
20727:more1
20728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20729p
20730g
20731s/.\{148\}//
20732t nl
20733:delim
20734h
20735s/\(.\{148\}\)..*/\1/
20736t more2
20737s/["\\]/\\&/g; s/^/"/; s/$/"/
20738p
20739b
20740:more2
20741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20742p
20743g
20744s/.\{148\}//
20745t delim
20746' <conf$$subs.awk | sed '
20747/^[^""]/{
20748  N
20749  s/\n//
20750}
20751' >>$CONFIG_STATUS || ac_write_fail=1
20752rm -f conf$$subs.awk
20753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20754_ACAWK
20755cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20756  for (key in S) S_is_set[key] = 1
20757  FS = ""
20758
20759}
20760{
20761  line = $ 0
20762  nfields = split(line, field, "@")
20763  substed = 0
20764  len = length(field[1])
20765  for (i = 2; i < nfields; i++) {
20766    key = field[i]
20767    keylen = length(key)
20768    if (S_is_set[key]) {
20769      value = S[key]
20770      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20771      len += length(value) + length(field[++i])
20772      substed = 1
20773    } else
20774      len += 1 + keylen
20775  }
20776
20777  print line
20778}
20779
20780_ACAWK
20781_ACEOF
20782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20783if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20784  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20785else
20786  cat
20787fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20788  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20789_ACEOF
20790
20791# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20792# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20793# trailing colons and then remove the whole line if VPATH becomes empty
20794# (actually we leave an empty line to preserve line numbers).
20795if test "x$srcdir" = x.; then
20796  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20797h
20798s///
20799s/^/:/
20800s/[	 ]*$/:/
20801s/:\$(srcdir):/:/g
20802s/:\${srcdir}:/:/g
20803s/:@srcdir@:/:/g
20804s/^:*//
20805s/:*$//
20806x
20807s/\(=[	 ]*\).*/\1/
20808G
20809s/\n//
20810s/^[^=]*=[	 ]*$//
20811}'
20812fi
20813
20814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20815fi # test -n "$CONFIG_FILES"
20816
20817# Set up the scripts for CONFIG_HEADERS section.
20818# No need to generate them if there are no CONFIG_HEADERS.
20819# This happens for instance with `./config.status Makefile'.
20820if test -n "$CONFIG_HEADERS"; then
20821cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20822BEGIN {
20823_ACEOF
20824
20825# Transform confdefs.h into an awk script `defines.awk', embedded as
20826# here-document in config.status, that substitutes the proper values into
20827# config.h.in to produce config.h.
20828
20829# Create a delimiter string that does not exist in confdefs.h, to ease
20830# handling of long lines.
20831ac_delim='%!_!# '
20832for ac_last_try in false false :; do
20833  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20834  if test -z "$ac_tt"; then
20835    break
20836  elif $ac_last_try; then
20837    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20838  else
20839    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20840  fi
20841done
20842
20843# For the awk script, D is an array of macro values keyed by name,
20844# likewise P contains macro parameters if any.  Preserve backslash
20845# newline sequences.
20846
20847ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20848sed -n '
20849s/.\{148\}/&'"$ac_delim"'/g
20850t rset
20851:rset
20852s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20853t def
20854d
20855:def
20856s/\\$//
20857t bsnl
20858s/["\\]/\\&/g
20859s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20860D["\1"]=" \3"/p
20861s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20862d
20863:bsnl
20864s/["\\]/\\&/g
20865s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20866D["\1"]=" \3\\\\\\n"\\/p
20867t cont
20868s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20869t cont
20870d
20871:cont
20872n
20873s/.\{148\}/&'"$ac_delim"'/g
20874t clear
20875:clear
20876s/\\$//
20877t bsnlc
20878s/["\\]/\\&/g; s/^/"/; s/$/"/p
20879d
20880:bsnlc
20881s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20882b cont
20883' <confdefs.h | sed '
20884s/'"$ac_delim"'/"\\\
20885"/g' >>$CONFIG_STATUS || ac_write_fail=1
20886
20887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20888  for (key in D) D_is_set[key] = 1
20889  FS = ""
20890}
20891/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20892  line = \$ 0
20893  split(line, arg, " ")
20894  if (arg[1] == "#") {
20895    defundef = arg[2]
20896    mac1 = arg[3]
20897  } else {
20898    defundef = substr(arg[1], 2)
20899    mac1 = arg[2]
20900  }
20901  split(mac1, mac2, "(") #)
20902  macro = mac2[1]
20903  prefix = substr(line, 1, index(line, defundef) - 1)
20904  if (D_is_set[macro]) {
20905    # Preserve the white space surrounding the "#".
20906    print prefix "define", macro P[macro] D[macro]
20907    next
20908  } else {
20909    # Replace #undef with comments.  This is necessary, for example,
20910    # in the case of _POSIX_SOURCE, which is predefined and required
20911    # on some systems where configure will not decide to define it.
20912    if (defundef == "undef") {
20913      print "/*", prefix defundef, macro, "*/"
20914      next
20915    }
20916  }
20917}
20918{ print }
20919_ACAWK
20920_ACEOF
20921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20922  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20923fi # test -n "$CONFIG_HEADERS"
20924
20925
20926eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20927shift
20928for ac_tag
20929do
20930  case $ac_tag in
20931  :[FHLC]) ac_mode=$ac_tag; continue;;
20932  esac
20933  case $ac_mode$ac_tag in
20934  :[FHL]*:*);;
20935  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20936  :[FH]-) ac_tag=-:-;;
20937  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20938  esac
20939  ac_save_IFS=$IFS
20940  IFS=:
20941  set x $ac_tag
20942  IFS=$ac_save_IFS
20943  shift
20944  ac_file=$1
20945  shift
20946
20947  case $ac_mode in
20948  :L) ac_source=$1;;
20949  :[FH])
20950    ac_file_inputs=
20951    for ac_f
20952    do
20953      case $ac_f in
20954      -) ac_f="$ac_tmp/stdin";;
20955      *) # Look for the file first in the build tree, then in the source tree
20956	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20957	 # because $ac_f cannot contain `:'.
20958	 test -f "$ac_f" ||
20959	   case $ac_f in
20960	   [\\/$]*) false;;
20961	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20962	   esac ||
20963	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20964      esac
20965      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20966      as_fn_append ac_file_inputs " '$ac_f'"
20967    done
20968
20969    # Let's still pretend it is `configure' which instantiates (i.e., don't
20970    # use $as_me), people would be surprised to read:
20971    #    /* config.h.  Generated by config.status.  */
20972    configure_input='Generated from '`
20973	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20974	`' by configure.'
20975    if test x"$ac_file" != x-; then
20976      configure_input="$ac_file.  $configure_input"
20977      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20978$as_echo "$as_me: creating $ac_file" >&6;}
20979    fi
20980    # Neutralize special characters interpreted by sed in replacement strings.
20981    case $configure_input in #(
20982    *\&* | *\|* | *\\* )
20983       ac_sed_conf_input=`$as_echo "$configure_input" |
20984       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20985    *) ac_sed_conf_input=$configure_input;;
20986    esac
20987
20988    case $ac_tag in
20989    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20990      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20991    esac
20992    ;;
20993  esac
20994
20995  ac_dir=`$as_dirname -- "$ac_file" ||
20996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20997	 X"$ac_file" : 'X\(//\)[^/]' \| \
20998	 X"$ac_file" : 'X\(//\)$' \| \
20999	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21000$as_echo X"$ac_file" |
21001    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21002	    s//\1/
21003	    q
21004	  }
21005	  /^X\(\/\/\)[^/].*/{
21006	    s//\1/
21007	    q
21008	  }
21009	  /^X\(\/\/\)$/{
21010	    s//\1/
21011	    q
21012	  }
21013	  /^X\(\/\).*/{
21014	    s//\1/
21015	    q
21016	  }
21017	  s/.*/./; q'`
21018  as_dir="$ac_dir"; as_fn_mkdir_p
21019  ac_builddir=.
21020
21021case "$ac_dir" in
21022.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21023*)
21024  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21025  # A ".." for each directory in $ac_dir_suffix.
21026  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21027  case $ac_top_builddir_sub in
21028  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21029  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21030  esac ;;
21031esac
21032ac_abs_top_builddir=$ac_pwd
21033ac_abs_builddir=$ac_pwd$ac_dir_suffix
21034# for backward compatibility:
21035ac_top_builddir=$ac_top_build_prefix
21036
21037case $srcdir in
21038  .)  # We are building in place.
21039    ac_srcdir=.
21040    ac_top_srcdir=$ac_top_builddir_sub
21041    ac_abs_top_srcdir=$ac_pwd ;;
21042  [\\/]* | ?:[\\/]* )  # Absolute name.
21043    ac_srcdir=$srcdir$ac_dir_suffix;
21044    ac_top_srcdir=$srcdir
21045    ac_abs_top_srcdir=$srcdir ;;
21046  *) # Relative name.
21047    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21048    ac_top_srcdir=$ac_top_build_prefix$srcdir
21049    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21050esac
21051ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21052
21053
21054  case $ac_mode in
21055  :F)
21056  #
21057  # CONFIG_FILE
21058  #
21059
21060  case $INSTALL in
21061  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21062  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21063  esac
21064  ac_MKDIR_P=$MKDIR_P
21065  case $MKDIR_P in
21066  [\\/$]* | ?:[\\/]* ) ;;
21067  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21068  esac
21069_ACEOF
21070
21071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21072# If the template does not know about datarootdir, expand it.
21073# FIXME: This hack should be removed a few years after 2.60.
21074ac_datarootdir_hack=; ac_datarootdir_seen=
21075ac_sed_dataroot='
21076/datarootdir/ {
21077  p
21078  q
21079}
21080/@datadir@/p
21081/@docdir@/p
21082/@infodir@/p
21083/@localedir@/p
21084/@mandir@/p'
21085case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21086*datarootdir*) ac_datarootdir_seen=yes;;
21087*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21088  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21089$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21090_ACEOF
21091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21092  ac_datarootdir_hack='
21093  s&@datadir@&$datadir&g
21094  s&@docdir@&$docdir&g
21095  s&@infodir@&$infodir&g
21096  s&@localedir@&$localedir&g
21097  s&@mandir@&$mandir&g
21098  s&\\\${datarootdir}&$datarootdir&g' ;;
21099esac
21100_ACEOF
21101
21102# Neutralize VPATH when `$srcdir' = `.'.
21103# Shell code in configure.ac might set extrasub.
21104# FIXME: do we really want to maintain this feature?
21105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21106ac_sed_extra="$ac_vpsub
21107$extrasub
21108_ACEOF
21109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21110:t
21111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21112s|@configure_input@|$ac_sed_conf_input|;t t
21113s&@top_builddir@&$ac_top_builddir_sub&;t t
21114s&@top_build_prefix@&$ac_top_build_prefix&;t t
21115s&@srcdir@&$ac_srcdir&;t t
21116s&@abs_srcdir@&$ac_abs_srcdir&;t t
21117s&@top_srcdir@&$ac_top_srcdir&;t t
21118s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21119s&@builddir@&$ac_builddir&;t t
21120s&@abs_builddir@&$ac_abs_builddir&;t t
21121s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21122s&@INSTALL@&$ac_INSTALL&;t t
21123s&@MKDIR_P@&$ac_MKDIR_P&;t t
21124$ac_datarootdir_hack
21125"
21126eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21127  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21128
21129test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21130  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21131  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21132      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21133  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21134which seems to be undefined.  Please make sure it is defined" >&5
21135$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21136which seems to be undefined.  Please make sure it is defined" >&2;}
21137
21138  rm -f "$ac_tmp/stdin"
21139  case $ac_file in
21140  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21141  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21142  esac \
21143  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21144 ;;
21145  :H)
21146  #
21147  # CONFIG_HEADER
21148  #
21149  if test x"$ac_file" != x-; then
21150    {
21151      $as_echo "/* $configure_input  */" \
21152      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21153    } >"$ac_tmp/config.h" \
21154      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21155    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21156      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21157$as_echo "$as_me: $ac_file is unchanged" >&6;}
21158    else
21159      rm -f "$ac_file"
21160      mv "$ac_tmp/config.h" "$ac_file" \
21161	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21162    fi
21163  else
21164    $as_echo "/* $configure_input  */" \
21165      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21166      || as_fn_error $? "could not create -" "$LINENO" 5
21167  fi
21168# Compute "$ac_file"'s index in $config_headers.
21169_am_arg="$ac_file"
21170_am_stamp_count=1
21171for _am_header in $config_headers :; do
21172  case $_am_header in
21173    $_am_arg | $_am_arg:* )
21174      break ;;
21175    * )
21176      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21177  esac
21178done
21179echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21180$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21181	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21182	 X"$_am_arg" : 'X\(//\)$' \| \
21183	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21184$as_echo X"$_am_arg" |
21185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21186	    s//\1/
21187	    q
21188	  }
21189	  /^X\(\/\/\)[^/].*/{
21190	    s//\1/
21191	    q
21192	  }
21193	  /^X\(\/\/\)$/{
21194	    s//\1/
21195	    q
21196	  }
21197	  /^X\(\/\).*/{
21198	    s//\1/
21199	    q
21200	  }
21201	  s/.*/./; q'`/stamp-h$_am_stamp_count
21202 ;;
21203
21204  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21205$as_echo "$as_me: executing $ac_file commands" >&6;}
21206 ;;
21207  esac
21208
21209
21210  case $ac_file$ac_mode in
21211    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21212  # Older Autoconf quotes --file arguments for eval, but not when files
21213  # are listed without --file.  Let's play safe and only enable the eval
21214  # if we detect the quoting.
21215  case $CONFIG_FILES in
21216  *\'*) eval set x "$CONFIG_FILES" ;;
21217  *)   set x $CONFIG_FILES ;;
21218  esac
21219  shift
21220  for mf
21221  do
21222    # Strip MF so we end up with the name of the file.
21223    mf=`echo "$mf" | sed -e 's/:.*$//'`
21224    # Check whether this is an Automake generated Makefile or not.
21225    # We used to match only the files named 'Makefile.in', but
21226    # some people rename them; so instead we look at the file content.
21227    # Grep'ing the first line is not enough: some people post-process
21228    # each Makefile.in and add a new line on top of each file to say so.
21229    # Grep'ing the whole file is not good either: AIX grep has a line
21230    # limit of 2048, but all sed's we know have understand at least 4000.
21231    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21232      dirpart=`$as_dirname -- "$mf" ||
21233$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21234	 X"$mf" : 'X\(//\)[^/]' \| \
21235	 X"$mf" : 'X\(//\)$' \| \
21236	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21237$as_echo X"$mf" |
21238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21239	    s//\1/
21240	    q
21241	  }
21242	  /^X\(\/\/\)[^/].*/{
21243	    s//\1/
21244	    q
21245	  }
21246	  /^X\(\/\/\)$/{
21247	    s//\1/
21248	    q
21249	  }
21250	  /^X\(\/\).*/{
21251	    s//\1/
21252	    q
21253	  }
21254	  s/.*/./; q'`
21255    else
21256      continue
21257    fi
21258    # Extract the definition of DEPDIR, am__include, and am__quote
21259    # from the Makefile without running 'make'.
21260    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21261    test -z "$DEPDIR" && continue
21262    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21263    test -z "$am__include" && continue
21264    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21265    # Find all dependency output files, they are included files with
21266    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21267    # simplest approach to changing $(DEPDIR) to its actual value in the
21268    # expansion.
21269    for file in `sed -n "
21270      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21271	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21272      # Make sure the directory exists.
21273      test -f "$dirpart/$file" && continue
21274      fdir=`$as_dirname -- "$file" ||
21275$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21276	 X"$file" : 'X\(//\)[^/]' \| \
21277	 X"$file" : 'X\(//\)$' \| \
21278	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21279$as_echo X"$file" |
21280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21281	    s//\1/
21282	    q
21283	  }
21284	  /^X\(\/\/\)[^/].*/{
21285	    s//\1/
21286	    q
21287	  }
21288	  /^X\(\/\/\)$/{
21289	    s//\1/
21290	    q
21291	  }
21292	  /^X\(\/\).*/{
21293	    s//\1/
21294	    q
21295	  }
21296	  s/.*/./; q'`
21297      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21298      # echo "creating $dirpart/$file"
21299      echo '# dummy' > "$dirpart/$file"
21300    done
21301  done
21302}
21303 ;;
21304    "libtool":C)
21305
21306    # See if we are running on zsh, and set the options that allow our
21307    # commands through without removal of \ escapes.
21308    if test -n "${ZSH_VERSION+set}"; then
21309      setopt NO_GLOB_SUBST
21310    fi
21311
21312    cfgfile=${ofile}T
21313    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21314    $RM "$cfgfile"
21315
21316    cat <<_LT_EOF >> "$cfgfile"
21317#! $SHELL
21318# Generated automatically by $as_me ($PACKAGE) $VERSION
21319# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21320# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21321
21322# Provide generalized library-building support services.
21323# Written by Gordon Matzigkeit, 1996
21324
21325# Copyright (C) 2014 Free Software Foundation, Inc.
21326# This is free software; see the source for copying conditions.  There is NO
21327# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21328
21329# GNU Libtool is free software; you can redistribute it and/or modify
21330# it under the terms of the GNU General Public License as published by
21331# the Free Software Foundation; either version 2 of of the License, or
21332# (at your option) any later version.
21333#
21334# As a special exception to the GNU General Public License, if you
21335# distribute this file as part of a program or library that is built
21336# using GNU Libtool, you may include this file under the  same
21337# distribution terms that you use for the rest of that program.
21338#
21339# GNU Libtool is distributed in the hope that it will be useful, but
21340# WITHOUT ANY WARRANTY; without even the implied warranty of
21341# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21342# GNU General Public License for more details.
21343#
21344# You should have received a copy of the GNU General Public License
21345# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21346
21347
21348# The names of the tagged configurations supported by this script.
21349available_tags='CXX '
21350
21351# Configured defaults for sys_lib_dlsearch_path munging.
21352: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21353
21354# ### BEGIN LIBTOOL CONFIG
21355
21356# Which release of libtool.m4 was used?
21357macro_version=$macro_version
21358macro_revision=$macro_revision
21359
21360# Whether or not to build shared libraries.
21361build_libtool_libs=$enable_shared
21362
21363# Whether or not to build static libraries.
21364build_old_libs=$enable_static
21365
21366# What type of objects to build.
21367pic_mode=$pic_mode
21368
21369# Whether or not to optimize for fast installation.
21370fast_install=$enable_fast_install
21371
21372# Shared archive member basename,for filename based shared library versioning on AIX.
21373shared_archive_member_spec=$shared_archive_member_spec
21374
21375# Shell to use when invoking shell scripts.
21376SHELL=$lt_SHELL
21377
21378# An echo program that protects backslashes.
21379ECHO=$lt_ECHO
21380
21381# The PATH separator for the build system.
21382PATH_SEPARATOR=$lt_PATH_SEPARATOR
21383
21384# The host system.
21385host_alias=$host_alias
21386host=$host
21387host_os=$host_os
21388
21389# The build system.
21390build_alias=$build_alias
21391build=$build
21392build_os=$build_os
21393
21394# A sed program that does not truncate output.
21395SED=$lt_SED
21396
21397# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21398Xsed="\$SED -e 1s/^X//"
21399
21400# A grep program that handles long lines.
21401GREP=$lt_GREP
21402
21403# An ERE matcher.
21404EGREP=$lt_EGREP
21405
21406# A literal string matcher.
21407FGREP=$lt_FGREP
21408
21409# A BSD- or MS-compatible name lister.
21410NM=$lt_NM
21411
21412# Whether we need soft or hard links.
21413LN_S=$lt_LN_S
21414
21415# What is the maximum length of a command?
21416max_cmd_len=$max_cmd_len
21417
21418# Object file suffix (normally "o").
21419objext=$ac_objext
21420
21421# Executable file suffix (normally "").
21422exeext=$exeext
21423
21424# whether the shell understands "unset".
21425lt_unset=$lt_unset
21426
21427# turn spaces into newlines.
21428SP2NL=$lt_lt_SP2NL
21429
21430# turn newlines into spaces.
21431NL2SP=$lt_lt_NL2SP
21432
21433# convert \$build file names to \$host format.
21434to_host_file_cmd=$lt_cv_to_host_file_cmd
21435
21436# convert \$build files to toolchain format.
21437to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21438
21439# An object symbol dumper.
21440OBJDUMP=$lt_OBJDUMP
21441
21442# Method to check whether dependent libraries are shared objects.
21443deplibs_check_method=$lt_deplibs_check_method
21444
21445# Command to use when deplibs_check_method = "file_magic".
21446file_magic_cmd=$lt_file_magic_cmd
21447
21448# How to find potential files when deplibs_check_method = "file_magic".
21449file_magic_glob=$lt_file_magic_glob
21450
21451# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21452want_nocaseglob=$lt_want_nocaseglob
21453
21454# DLL creation program.
21455DLLTOOL=$lt_DLLTOOL
21456
21457# Command to associate shared and link libraries.
21458sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21459
21460# The archiver.
21461AR=$lt_AR
21462
21463# Flags to create an archive.
21464AR_FLAGS=$lt_AR_FLAGS
21465
21466# How to feed a file listing to the archiver.
21467archiver_list_spec=$lt_archiver_list_spec
21468
21469# A symbol stripping program.
21470STRIP=$lt_STRIP
21471
21472# Commands used to install an old-style archive.
21473RANLIB=$lt_RANLIB
21474old_postinstall_cmds=$lt_old_postinstall_cmds
21475old_postuninstall_cmds=$lt_old_postuninstall_cmds
21476
21477# Whether to use a lock for old archive extraction.
21478lock_old_archive_extraction=$lock_old_archive_extraction
21479
21480# A C compiler.
21481LTCC=$lt_CC
21482
21483# LTCC compiler flags.
21484LTCFLAGS=$lt_CFLAGS
21485
21486# Take the output of nm and produce a listing of raw symbols and C names.
21487global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21488
21489# Transform the output of nm in a proper C declaration.
21490global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21491
21492# Transform the output of nm into a list of symbols to manually relocate.
21493global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21494
21495# Transform the output of nm in a C name address pair.
21496global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21497
21498# Transform the output of nm in a C name address pair when lib prefix is needed.
21499global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21500
21501# The name lister interface.
21502nm_interface=$lt_lt_cv_nm_interface
21503
21504# Specify filename containing input files for \$NM.
21505nm_file_list_spec=$lt_nm_file_list_spec
21506
21507# The root where to search for dependent libraries,and where our libraries should be installed.
21508lt_sysroot=$lt_sysroot
21509
21510# Command to truncate a binary pipe.
21511lt_truncate_bin=$lt_lt_cv_truncate_bin
21512
21513# The name of the directory that contains temporary libtool files.
21514objdir=$objdir
21515
21516# Used to examine libraries when file_magic_cmd begins with "file".
21517MAGIC_CMD=$MAGIC_CMD
21518
21519# Must we lock files when doing compilation?
21520need_locks=$lt_need_locks
21521
21522# Manifest tool.
21523MANIFEST_TOOL=$lt_MANIFEST_TOOL
21524
21525# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21526DSYMUTIL=$lt_DSYMUTIL
21527
21528# Tool to change global to local symbols on Mac OS X.
21529NMEDIT=$lt_NMEDIT
21530
21531# Tool to manipulate fat objects and archives on Mac OS X.
21532LIPO=$lt_LIPO
21533
21534# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21535OTOOL=$lt_OTOOL
21536
21537# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21538OTOOL64=$lt_OTOOL64
21539
21540# Old archive suffix (normally "a").
21541libext=$libext
21542
21543# Shared library suffix (normally ".so").
21544shrext_cmds=$lt_shrext_cmds
21545
21546# The commands to extract the exported symbol list from a shared archive.
21547extract_expsyms_cmds=$lt_extract_expsyms_cmds
21548
21549# Variables whose values should be saved in libtool wrapper scripts and
21550# restored at link time.
21551variables_saved_for_relink=$lt_variables_saved_for_relink
21552
21553# Do we need the "lib" prefix for modules?
21554need_lib_prefix=$need_lib_prefix
21555
21556# Do we need a version for libraries?
21557need_version=$need_version
21558
21559# Library versioning type.
21560version_type=$version_type
21561
21562# Shared library runtime path variable.
21563runpath_var=$runpath_var
21564
21565# Shared library path variable.
21566shlibpath_var=$shlibpath_var
21567
21568# Is shlibpath searched before the hard-coded library search path?
21569shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21570
21571# Format of library name prefix.
21572libname_spec=$lt_libname_spec
21573
21574# List of archive names.  First name is the real one, the rest are links.
21575# The last name is the one that the linker finds with -lNAME
21576library_names_spec=$lt_library_names_spec
21577
21578# The coded name of the library, if different from the real name.
21579soname_spec=$lt_soname_spec
21580
21581# Permission mode override for installation of shared libraries.
21582install_override_mode=$lt_install_override_mode
21583
21584# Command to use after installation of a shared archive.
21585postinstall_cmds=$lt_postinstall_cmds
21586
21587# Command to use after uninstallation of a shared archive.
21588postuninstall_cmds=$lt_postuninstall_cmds
21589
21590# Commands used to finish a libtool library installation in a directory.
21591finish_cmds=$lt_finish_cmds
21592
21593# As "finish_cmds", except a single script fragment to be evaled but
21594# not shown.
21595finish_eval=$lt_finish_eval
21596
21597# Whether we should hardcode library paths into libraries.
21598hardcode_into_libs=$hardcode_into_libs
21599
21600# Compile-time system search path for libraries.
21601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21602
21603# Detected run-time system search path for libraries.
21604sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21605
21606# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21607configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21608
21609# Whether dlopen is supported.
21610dlopen_support=$enable_dlopen
21611
21612# Whether dlopen of programs is supported.
21613dlopen_self=$enable_dlopen_self
21614
21615# Whether dlopen of statically linked programs is supported.
21616dlopen_self_static=$enable_dlopen_self_static
21617
21618# Commands to strip libraries.
21619old_striplib=$lt_old_striplib
21620striplib=$lt_striplib
21621
21622
21623# The linker used to build libraries.
21624LD=$lt_LD
21625
21626# How to create reloadable object files.
21627reload_flag=$lt_reload_flag
21628reload_cmds=$lt_reload_cmds
21629
21630# Commands used to build an old-style archive.
21631old_archive_cmds=$lt_old_archive_cmds
21632
21633# A language specific compiler.
21634CC=$lt_compiler
21635
21636# Is the compiler the GNU compiler?
21637with_gcc=$GCC
21638
21639# Compiler flag to turn off builtin functions.
21640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21641
21642# Additional compiler flags for building library objects.
21643pic_flag=$lt_lt_prog_compiler_pic
21644
21645# How to pass a linker flag through the compiler.
21646wl=$lt_lt_prog_compiler_wl
21647
21648# Compiler flag to prevent dynamic linking.
21649link_static_flag=$lt_lt_prog_compiler_static
21650
21651# Does compiler simultaneously support -c and -o options?
21652compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21653
21654# Whether or not to add -lc for building shared libraries.
21655build_libtool_need_lc=$archive_cmds_need_lc
21656
21657# Whether or not to disallow shared libs when runtime libs are static.
21658allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21659
21660# Compiler flag to allow reflexive dlopens.
21661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21662
21663# Compiler flag to generate shared objects directly from archives.
21664whole_archive_flag_spec=$lt_whole_archive_flag_spec
21665
21666# Whether the compiler copes with passing no objects directly.
21667compiler_needs_object=$lt_compiler_needs_object
21668
21669# Create an old-style archive from a shared archive.
21670old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21671
21672# Create a temporary old-style archive to link instead of a shared archive.
21673old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21674
21675# Commands used to build a shared archive.
21676archive_cmds=$lt_archive_cmds
21677archive_expsym_cmds=$lt_archive_expsym_cmds
21678
21679# Commands used to build a loadable module if different from building
21680# a shared archive.
21681module_cmds=$lt_module_cmds
21682module_expsym_cmds=$lt_module_expsym_cmds
21683
21684# Whether we are building with GNU ld or not.
21685with_gnu_ld=$lt_with_gnu_ld
21686
21687# Flag that allows shared libraries with undefined symbols to be built.
21688allow_undefined_flag=$lt_allow_undefined_flag
21689
21690# Flag that enforces no undefined symbols.
21691no_undefined_flag=$lt_no_undefined_flag
21692
21693# Flag to hardcode \$libdir into a binary during linking.
21694# This must work even if \$libdir does not exist
21695hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21696
21697# Whether we need a single "-rpath" flag with a separated argument.
21698hardcode_libdir_separator=$lt_hardcode_libdir_separator
21699
21700# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21701# DIR into the resulting binary.
21702hardcode_direct=$hardcode_direct
21703
21704# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21705# DIR into the resulting binary and the resulting library dependency is
21706# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21707# library is relocated.
21708hardcode_direct_absolute=$hardcode_direct_absolute
21709
21710# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21711# into the resulting binary.
21712hardcode_minus_L=$hardcode_minus_L
21713
21714# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21715# into the resulting binary.
21716hardcode_shlibpath_var=$hardcode_shlibpath_var
21717
21718# Set to "yes" if building a shared library automatically hardcodes DIR
21719# into the library and all subsequent libraries and executables linked
21720# against it.
21721hardcode_automatic=$hardcode_automatic
21722
21723# Set to yes if linker adds runtime paths of dependent libraries
21724# to runtime path list.
21725inherit_rpath=$inherit_rpath
21726
21727# Whether libtool must link a program against all its dependency libraries.
21728link_all_deplibs=$link_all_deplibs
21729
21730# Set to "yes" if exported symbols are required.
21731always_export_symbols=$always_export_symbols
21732
21733# The commands to list exported symbols.
21734export_symbols_cmds=$lt_export_symbols_cmds
21735
21736# Symbols that should not be listed in the preloaded symbols.
21737exclude_expsyms=$lt_exclude_expsyms
21738
21739# Symbols that must always be exported.
21740include_expsyms=$lt_include_expsyms
21741
21742# Commands necessary for linking programs (against libraries) with templates.
21743prelink_cmds=$lt_prelink_cmds
21744
21745# Commands necessary for finishing linking programs.
21746postlink_cmds=$lt_postlink_cmds
21747
21748# Specify filename containing input files.
21749file_list_spec=$lt_file_list_spec
21750
21751# How to hardcode a shared library path into an executable.
21752hardcode_action=$hardcode_action
21753
21754# The directories searched by this compiler when creating a shared library.
21755compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21756
21757# Dependencies to place before and after the objects being linked to
21758# create a shared library.
21759predep_objects=$lt_predep_objects
21760postdep_objects=$lt_postdep_objects
21761predeps=$lt_predeps
21762postdeps=$lt_postdeps
21763
21764# The library search path used internally by the compiler when linking
21765# a shared library.
21766compiler_lib_search_path=$lt_compiler_lib_search_path
21767
21768# ### END LIBTOOL CONFIG
21769
21770_LT_EOF
21771
21772    cat <<'_LT_EOF' >> "$cfgfile"
21773
21774# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21775
21776# func_munge_path_list VARIABLE PATH
21777# -----------------------------------
21778# VARIABLE is name of variable containing _space_ separated list of
21779# directories to be munged by the contents of PATH, which is string
21780# having a format:
21781# "DIR[:DIR]:"
21782#       string "DIR[ DIR]" will be prepended to VARIABLE
21783# ":DIR[:DIR]"
21784#       string "DIR[ DIR]" will be appended to VARIABLE
21785# "DIRP[:DIRP]::[DIRA:]DIRA"
21786#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21787#       "DIRA[ DIRA]" will be appended to VARIABLE
21788# "DIR[:DIR]"
21789#       VARIABLE will be replaced by "DIR[ DIR]"
21790func_munge_path_list ()
21791{
21792    case x$2 in
21793    x)
21794        ;;
21795    *:)
21796        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21797        ;;
21798    x:*)
21799        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21800        ;;
21801    *::*)
21802        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21803        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21804        ;;
21805    *)
21806        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21807        ;;
21808    esac
21809}
21810
21811
21812# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21813func_cc_basename ()
21814{
21815    for cc_temp in $*""; do
21816      case $cc_temp in
21817        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21818        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21819        \-*) ;;
21820        *) break;;
21821      esac
21822    done
21823    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21824}
21825
21826
21827# ### END FUNCTIONS SHARED WITH CONFIGURE
21828
21829_LT_EOF
21830
21831  case $host_os in
21832  aix3*)
21833    cat <<\_LT_EOF >> "$cfgfile"
21834# AIX sometimes has problems with the GCC collect2 program.  For some
21835# reason, if we set the COLLECT_NAMES environment variable, the problems
21836# vanish in a puff of smoke.
21837if test set != "${COLLECT_NAMES+set}"; then
21838  COLLECT_NAMES=
21839  export COLLECT_NAMES
21840fi
21841_LT_EOF
21842    ;;
21843  esac
21844
21845
21846ltmain=$ac_aux_dir/ltmain.sh
21847
21848
21849  # We use sed instead of cat because bash on DJGPP gets confused if
21850  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21851  # text mode, it properly converts lines to CR/LF.  This bash problem
21852  # is reportedly fixed, but why not run on old versions too?
21853  sed '$q' "$ltmain" >> "$cfgfile" \
21854     || (rm -f "$cfgfile"; exit 1)
21855
21856   mv -f "$cfgfile" "$ofile" ||
21857    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21858  chmod +x "$ofile"
21859
21860
21861    cat <<_LT_EOF >> "$ofile"
21862
21863# ### BEGIN LIBTOOL TAG CONFIG: CXX
21864
21865# The linker used to build libraries.
21866LD=$lt_LD_CXX
21867
21868# How to create reloadable object files.
21869reload_flag=$lt_reload_flag_CXX
21870reload_cmds=$lt_reload_cmds_CXX
21871
21872# Commands used to build an old-style archive.
21873old_archive_cmds=$lt_old_archive_cmds_CXX
21874
21875# A language specific compiler.
21876CC=$lt_compiler_CXX
21877
21878# Is the compiler the GNU compiler?
21879with_gcc=$GCC_CXX
21880
21881# Compiler flag to turn off builtin functions.
21882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21883
21884# Additional compiler flags for building library objects.
21885pic_flag=$lt_lt_prog_compiler_pic_CXX
21886
21887# How to pass a linker flag through the compiler.
21888wl=$lt_lt_prog_compiler_wl_CXX
21889
21890# Compiler flag to prevent dynamic linking.
21891link_static_flag=$lt_lt_prog_compiler_static_CXX
21892
21893# Does compiler simultaneously support -c and -o options?
21894compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21895
21896# Whether or not to add -lc for building shared libraries.
21897build_libtool_need_lc=$archive_cmds_need_lc_CXX
21898
21899# Whether or not to disallow shared libs when runtime libs are static.
21900allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21901
21902# Compiler flag to allow reflexive dlopens.
21903export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21904
21905# Compiler flag to generate shared objects directly from archives.
21906whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21907
21908# Whether the compiler copes with passing no objects directly.
21909compiler_needs_object=$lt_compiler_needs_object_CXX
21910
21911# Create an old-style archive from a shared archive.
21912old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21913
21914# Create a temporary old-style archive to link instead of a shared archive.
21915old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21916
21917# Commands used to build a shared archive.
21918archive_cmds=$lt_archive_cmds_CXX
21919archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21920
21921# Commands used to build a loadable module if different from building
21922# a shared archive.
21923module_cmds=$lt_module_cmds_CXX
21924module_expsym_cmds=$lt_module_expsym_cmds_CXX
21925
21926# Whether we are building with GNU ld or not.
21927with_gnu_ld=$lt_with_gnu_ld_CXX
21928
21929# Flag that allows shared libraries with undefined symbols to be built.
21930allow_undefined_flag=$lt_allow_undefined_flag_CXX
21931
21932# Flag that enforces no undefined symbols.
21933no_undefined_flag=$lt_no_undefined_flag_CXX
21934
21935# Flag to hardcode \$libdir into a binary during linking.
21936# This must work even if \$libdir does not exist
21937hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21938
21939# Whether we need a single "-rpath" flag with a separated argument.
21940hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21941
21942# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21943# DIR into the resulting binary.
21944hardcode_direct=$hardcode_direct_CXX
21945
21946# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21947# DIR into the resulting binary and the resulting library dependency is
21948# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21949# library is relocated.
21950hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21951
21952# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21953# into the resulting binary.
21954hardcode_minus_L=$hardcode_minus_L_CXX
21955
21956# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21957# into the resulting binary.
21958hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21959
21960# Set to "yes" if building a shared library automatically hardcodes DIR
21961# into the library and all subsequent libraries and executables linked
21962# against it.
21963hardcode_automatic=$hardcode_automatic_CXX
21964
21965# Set to yes if linker adds runtime paths of dependent libraries
21966# to runtime path list.
21967inherit_rpath=$inherit_rpath_CXX
21968
21969# Whether libtool must link a program against all its dependency libraries.
21970link_all_deplibs=$link_all_deplibs_CXX
21971
21972# Set to "yes" if exported symbols are required.
21973always_export_symbols=$always_export_symbols_CXX
21974
21975# The commands to list exported symbols.
21976export_symbols_cmds=$lt_export_symbols_cmds_CXX
21977
21978# Symbols that should not be listed in the preloaded symbols.
21979exclude_expsyms=$lt_exclude_expsyms_CXX
21980
21981# Symbols that must always be exported.
21982include_expsyms=$lt_include_expsyms_CXX
21983
21984# Commands necessary for linking programs (against libraries) with templates.
21985prelink_cmds=$lt_prelink_cmds_CXX
21986
21987# Commands necessary for finishing linking programs.
21988postlink_cmds=$lt_postlink_cmds_CXX
21989
21990# Specify filename containing input files.
21991file_list_spec=$lt_file_list_spec_CXX
21992
21993# How to hardcode a shared library path into an executable.
21994hardcode_action=$hardcode_action_CXX
21995
21996# The directories searched by this compiler when creating a shared library.
21997compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21998
21999# Dependencies to place before and after the objects being linked to
22000# create a shared library.
22001predep_objects=$lt_predep_objects_CXX
22002postdep_objects=$lt_postdep_objects_CXX
22003predeps=$lt_predeps_CXX
22004postdeps=$lt_postdeps_CXX
22005
22006# The library search path used internally by the compiler when linking
22007# a shared library.
22008compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22009
22010# ### END LIBTOOL TAG CONFIG: CXX
22011_LT_EOF
22012
22013 ;;
22014
22015  esac
22016done # for ac_tag
22017
22018
22019as_fn_exit 0
22020_ACEOF
22021ac_clean_files=$ac_clean_files_save
22022
22023test $ac_write_fail = 0 ||
22024  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22025
22026
22027# configure is writing to config.log, and then calls config.status.
22028# config.status does its own redirection, appending to config.log.
22029# Unfortunately, on DOS this fails, as config.log is still kept open
22030# by configure, so config.status won't be able to write to it; its
22031# output is simply discarded.  So we exec the FD to /dev/null,
22032# effectively closing config.log, so it can be properly (re)opened and
22033# appended to by config.status.  When coming back to configure, we
22034# need to make the FD available again.
22035if test "$no_create" != yes; then
22036  ac_cs_success=:
22037  ac_config_status_args=
22038  test "$silent" = yes &&
22039    ac_config_status_args="$ac_config_status_args --quiet"
22040  exec 5>/dev/null
22041  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22042  exec 5>>config.log
22043  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22044  # would make configure fail if this is the last instruction.
22045  $ac_cs_success || as_fn_exit 1
22046fi
22047if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22048  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22049$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22050fi
22051
22052