configure revision a4f78def
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libvdpau 1.1.1.
4#
5# Report bugs to <vdpau@lists.freedesktop.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: vdpau@lists.freedesktop.org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libvdpau'
592PACKAGE_TARNAME='libvdpau'
593PACKAGE_VERSION='1.1.1'
594PACKAGE_STRING='libvdpau 1.1.1'
595PACKAGE_BUGREPORT='vdpau@lists.freedesktop.org'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638distcleancheck_listfiles
639CHANGELOG_CMD
640moduledir
641ENABLE_DOCS_FALSE
642ENABLE_DOCS_TRUE
643DOT
644DOXYGEN
645PTHREAD_LIBS
646DLOPEN_LIBS
647DRI2_FALSE
648DRI2_TRUE
649XEXT_LIBS
650XEXT_CFLAGS
651dri2proto_LIBS
652dri2proto_CFLAGS
653X11_LIBS
654X11_CFLAGS
655PKG_CONFIG_LIBDIR
656PKG_CONFIG_PATH
657PKG_CONFIG
658CXXCPP
659LT_SYS_LIBRARY_PATH
660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
665MANIFEST_TOOL
666RANLIB
667ac_ct_AR
668AR
669DLLTOOL
670OBJDUMP
671LN_S
672NM
673ac_ct_DUMPBIN
674DUMPBIN
675LD
676FGREP
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686LIBTOOL
687am__fastdepCXX_FALSE
688am__fastdepCXX_TRUE
689CXXDEPMODE
690ac_ct_CXX
691CXXFLAGS
692CXX
693EGREP
694GREP
695CPP
696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
699am__nodep
700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__quote
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_silent_rules
782enable_dependency_tracking
783enable_static
784enable_shared
785with_pic
786enable_fast_install
787with_aix_soname
788with_gnu_ld
789with_sysroot
790enable_libtool_lock
791enable_dri2
792enable_documentation
793with_module_dir
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
806CCC
807LT_SYS_LIBRARY_PATH
808CXXCPP
809PKG_CONFIG
810PKG_CONFIG_PATH
811PKG_CONFIG_LIBDIR
812X11_CFLAGS
813X11_LIBS
814dri2proto_CFLAGS
815dri2proto_LIBS
816XEXT_CFLAGS
817XEXT_LIBS'
818
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823ac_unrecognized_opts=
824ac_unrecognized_sep=
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
847# (The list follows the same order as the GNU Coding Standards.)
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
867
868ac_prev=
869ac_dashdash=
870for ac_option
871do
872  # If the previous option needs an argument, assign it.
873  if test -n "$ac_prev"; then
874    eval $ac_prev=\$ac_option
875    ac_prev=
876    continue
877  fi
878
879  case $ac_option in
880  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881  *=)   ac_optarg= ;;
882  *)    ac_optarg=yes ;;
883  esac
884
885  # Accept the important Cygnus configure options, so we can diagnose typos.
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
1085  -program-transform-name=* | --program-transform-name=* \
1086  | --program-transform-nam=* | --program-transform-na=* \
1087  | --program-transform-n=* | --program-transform-=* \
1088  | --program-transform=* | --program-transfor=* \
1089  | --program-transfo=* | --program-transf=* \
1090  | --program-trans=* | --program-tran=* \
1091  | --progr-tra=* | --program-tr=* | --program-t=*)
1092    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109    ac_prev=sbindir ;;
1110  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111  | --sbi=* | --sb=*)
1112    sbindir=$ac_optarg ;;
1113
1114  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116  | --sharedst | --shareds | --shared | --share | --shar \
1117  | --sha | --sh)
1118    ac_prev=sharedstatedir ;;
1119  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122  | --sha=* | --sh=*)
1123    sharedstatedir=$ac_optarg ;;
1124
1125  -site | --site | --sit)
1126    ac_prev=site ;;
1127  -site=* | --site=* | --sit=*)
1128    site=$ac_optarg ;;
1129
1130  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131    ac_prev=srcdir ;;
1132  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133    srcdir=$ac_optarg ;;
1134
1135  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136  | --syscon | --sysco | --sysc | --sys | --sy)
1137    ac_prev=sysconfdir ;;
1138  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140    sysconfdir=$ac_optarg ;;
1141
1142  -target | --target | --targe | --targ | --tar | --ta | --t)
1143    ac_prev=target_alias ;;
1144  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145    target_alias=$ac_optarg ;;
1146
1147  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148    verbose=yes ;;
1149
1150  -version | --version | --versio | --versi | --vers | -V)
1151    ac_init_version=: ;;
1152
1153  -with-* | --with-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=\$ac_optarg ;;
1168
1169  -without-* | --without-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=no ;;
1184
1185  --x)
1186    # Obsolete; use --with-x.
1187    with_x=yes ;;
1188
1189  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190  | --x-incl | --x-inc | --x-in | --x-i)
1191    ac_prev=x_includes ;;
1192  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194    x_includes=$ac_optarg ;;
1195
1196  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198    ac_prev=x_libraries ;;
1199  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201    x_libraries=$ac_optarg ;;
1202
1203  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information"
1205    ;;
1206
1207  *=*)
1208    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209    # Reject names that are not valid shell variable names.
1210    case $ac_envvar in #(
1211      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213    esac
1214    eval $ac_envvar=\$ac_optarg
1215    export $ac_envvar ;;
1216
1217  *)
1218    # FIXME: should be removed in autoconf 3.0.
1219    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223    ;;
1224
1225  esac
1226done
1227
1228if test -n "$ac_prev"; then
1229  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230  as_fn_error $? "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234  case $enable_option_checking in
1235    no) ;;
1236    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238  esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243		datadir sysconfdir sharedstatedir localstatedir includedir \
1244		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245		libdir localedir mandir
1246do
1247  eval ac_val=\$$ac_var
1248  # Remove trailing slashes.
1249  case $ac_val in
1250    */ )
1251      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252      eval $ac_var=\$ac_val;;
1253  esac
1254  # Be sure to have absolute directory names.
1255  case $ac_val in
1256    [\\/$]* | ?:[\\/]* )  continue;;
1257    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258  esac
1259  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271  if test "x$build_alias" = x; then
1272    cross_compiling=maybe
1273  elif test "x$build_alias" != "x$host_alias"; then
1274    cross_compiling=yes
1275  fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
1282
1283
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287  as_fn_error $? "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289  as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294  ac_srcdir_defaulted=yes
1295  # Try the directory containing this script, then the parent directory.
1296  ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298	 X"$as_myself" : 'X\(//\)[^/]' \| \
1299	 X"$as_myself" : 'X\(//\)$' \| \
1300	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)[^/].*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\).*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  s/.*/./; q'`
1319  srcdir=$ac_confdir
1320  if test ! -r "$srcdir/$ac_unique_file"; then
1321    srcdir=..
1322  fi
1323else
1324  ac_srcdir_defaulted=no
1325fi
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333	pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336  srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_env_${ac_var}_value=\$${ac_var}
1347  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
1350
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355  # Omit some internal or obsolete options to make the list less imposing.
1356  # This message is too long to be a string in the A/UX 3.1 sh.
1357  cat <<_ACEOF
1358\`configure' configures libvdpau 1.1.1 to adapt to many kinds of systems.
1359
1360Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365Defaults for the options are specified in brackets.
1366
1367Configuration:
1368  -h, --help              display this help and exit
1369      --help=short        display options specific to this package
1370      --help=recursive    display the short help of all the included packages
1371  -V, --version           display version information and exit
1372  -q, --quiet, --silent   do not print \`checking ...' messages
1373      --cache-file=FILE   cache test results in FILE [disabled]
1374  -C, --config-cache      alias for \`--cache-file=config.cache'
1375  -n, --no-create         do not create output files
1376      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378Installation directories:
1379  --prefix=PREFIX         install architecture-independent files in PREFIX
1380                          [$ac_default_prefix]
1381  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                          [PREFIX]
1383
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
1388
1389For better control, use the options below.
1390
1391Fine tuning of the installation directories:
1392  --bindir=DIR            user executables [EPREFIX/bin]
1393  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394  --libexecdir=DIR        program executables [EPREFIX/libexec]
1395  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root [DATAROOTDIR/doc/libvdpau]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of libvdpau 1.1.1:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437  --disable-silent-rules  verbose build output (undo: "make V=0")
1438  --enable-dependency-tracking
1439                          do not reject slow dependency extractors
1440  --disable-dependency-tracking
1441                          speeds up one-time build
1442  --enable-static[=PKGS]  build static libraries [default=no]
1443  --enable-shared[=PKGS]  build shared libraries [default=yes]
1444  --enable-fast-install[=PKGS]
1445                          optimize for fast installation [default=yes]
1446  --disable-libtool-lock  avoid locking (might break parallel builds)
1447  --disable-dri2          Disable driver name query through DRI2 (default:
1448                          auto)
1449  --disable-documentation Disable Doxygen documentation (default: auto)
1450
1451Optional Packages:
1452  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1455                          both]
1456  --with-aix-soname=aix|svr4|both
1457                          shared library versioning (aka "SONAME") variant to
1458                          provide on AIX, [default=aix].
1459  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1461                          compiler's sysroot if not specified).
1462  --with-module-dir=DIR   Default module directory [[default=LIBDIR/vdpau]]
1463
1464Some influential environment variables:
1465  CC          C compiler command
1466  CFLAGS      C compiler flags
1467  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468              nonstandard directory <lib dir>
1469  LIBS        libraries to pass to the linker, e.g. -l<library>
1470  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471              you have headers in a nonstandard directory <include dir>
1472  CPP         C preprocessor
1473  CXX         C++ compiler command
1474  CXXFLAGS    C++ compiler flags
1475  LT_SYS_LIBRARY_PATH
1476              User-defined run-time library search path.
1477  CXXCPP      C++ preprocessor
1478  PKG_CONFIG  path to pkg-config utility
1479  PKG_CONFIG_PATH
1480              directories to add to pkg-config's search path
1481  PKG_CONFIG_LIBDIR
1482              path overriding pkg-config's built-in search path
1483  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1484  X11_LIBS    linker flags for X11, overriding pkg-config
1485  dri2proto_CFLAGS
1486              C compiler flags for dri2proto, overriding pkg-config
1487  dri2proto_LIBS
1488              linker flags for dri2proto, overriding pkg-config
1489  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1490  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to <vdpau@lists.freedesktop.org>.
1496_ACEOF
1497ac_status=$?
1498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501  # If there are subdirs, report their specific --help.
1502  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503    test -d "$ac_dir" ||
1504      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505      continue
1506    ac_builddir=.
1507
1508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
1511  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512  # A ".." for each directory in $ac_dir_suffix.
1513  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514  case $ac_top_builddir_sub in
1515  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517  esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
1523
1524case $srcdir in
1525  .)  # We are building in place.
1526    ac_srcdir=.
1527    ac_top_srcdir=$ac_top_builddir_sub
1528    ac_abs_top_srcdir=$ac_pwd ;;
1529  [\\/]* | ?:[\\/]* )  # Absolute name.
1530    ac_srcdir=$srcdir$ac_dir_suffix;
1531    ac_top_srcdir=$srcdir
1532    ac_abs_top_srcdir=$srcdir ;;
1533  *) # Relative name.
1534    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535    ac_top_srcdir=$ac_top_build_prefix$srcdir
1536    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537esac
1538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540    cd "$ac_dir" || { ac_status=$?; continue; }
1541    # Check for guested configure.
1542    if test -f "$ac_srcdir/configure.gnu"; then
1543      echo &&
1544      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545    elif test -f "$ac_srcdir/configure"; then
1546      echo &&
1547      $SHELL "$ac_srcdir/configure" --help=recursive
1548    else
1549      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550    fi || ac_status=$?
1551    cd "$ac_pwd" || { ac_status=$?; break; }
1552  done
1553fi
1554
1555test -n "$ac_init_help" && exit $ac_status
1556if $ac_init_version; then
1557  cat <<\_ACEOF
1558libvdpau configure 1.1.1
1559generated by GNU Autoconf 2.69
1560
1561Copyright (C) 2012 Free Software Foundation, Inc.
1562This configure script is free software; the Free Software Foundation
1563gives unlimited permission to copy, distribute and modify it.
1564_ACEOF
1565  exit
1566fi
1567
1568## ------------------------ ##
1569## Autoconf initialization. ##
1570## ------------------------ ##
1571
1572# ac_fn_c_try_compile LINENO
1573# --------------------------
1574# Try to compile conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_compile ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  rm -f conftest.$ac_objext
1579  if { { ac_try="$ac_compile"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_compile") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } && {
1595	 test -z "$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       } && test -s conftest.$ac_objext; then :
1598  ac_retval=0
1599else
1600  $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603	ac_retval=1
1604fi
1605  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606  as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_compile
1609
1610# ac_fn_c_try_cpp LINENO
1611# ----------------------
1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_cpp ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  if { { ac_try="$ac_cpp conftest.$ac_ext"
1617case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624  ac_status=$?
1625  if test -s conftest.err; then
1626    grep -v '^ *+' conftest.err >conftest.er1
1627    cat conftest.er1 >&5
1628    mv -f conftest.er1 conftest.err
1629  fi
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; } > conftest.i && {
1632	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633	 test ! -s conftest.err
1634       }; then :
1635  ac_retval=0
1636else
1637  $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640    ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_cpp
1646
1647# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650# the include files in INCLUDES and setting the cache variable VAR
1651# accordingly.
1652ac_fn_c_check_header_mongrel ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  if eval \${$3+:} false; then :
1656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if eval \${$3+:} false; then :
1659  $as_echo_n "(cached) " >&6
1660fi
1661eval ac_res=\$$3
1662	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663$as_echo "$ac_res" >&6; }
1664else
1665  # Is the header compilable?
1666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667$as_echo_n "checking $2 usability... " >&6; }
1668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670$4
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674  ac_header_compiler=yes
1675else
1676  ac_header_compiler=no
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680$as_echo "$ac_header_compiler" >&6; }
1681
1682# Is the header present?
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684$as_echo_n "checking $2 presence... " >&6; }
1685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h.  */
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_cpp "$LINENO"; then :
1690  ac_header_preproc=yes
1691else
1692  ac_header_preproc=no
1693fi
1694rm -f conftest.err conftest.i conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696$as_echo "$ac_header_preproc" >&6; }
1697
1698# So?  What about this header?
1699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700  yes:no: )
1701    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705    ;;
1706  no:yes:* )
1707    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1710$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1714$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717( $as_echo "## ------------------------------------------ ##
1718## Report this to vdpau@lists.freedesktop.org ##
1719## ------------------------------------------ ##"
1720     ) | sed "s/^/$as_me: WARNING:     /" >&2
1721    ;;
1722esac
1723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726  $as_echo_n "(cached) " >&6
1727else
1728  eval "$3=\$ac_header_compiler"
1729fi
1730eval ac_res=\$$3
1731	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733fi
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736} # ac_fn_c_check_header_mongrel
1737
1738# ac_fn_c_try_run LINENO
1739# ----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741# that executables *can* be run.
1742ac_fn_c_try_run ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748  *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752  (eval "$ac_link") 2>&5
1753  ac_status=$?
1754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756  { { case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_try") 2>&5
1763  ac_status=$?
1764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765  test $ac_status = 0; }; }; then :
1766  ac_retval=0
1767else
1768  $as_echo "$as_me: program exited with status $ac_status" >&5
1769       $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772       ac_retval=$ac_status
1773fi
1774  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776  as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_run
1779
1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists and can be compiled using the include files in
1783# INCLUDES, setting the cache variable VAR accordingly.
1784ac_fn_c_check_header_compile ()
1785{
1786  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791else
1792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794$4
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798  eval "$3=yes"
1799else
1800  eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_header_compile
1810
1811# ac_fn_c_try_link LINENO
1812# -----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_link ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  rm -f conftest.$ac_objext conftest$ac_exeext
1818  if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_link") 2>conftest.err
1826  ac_status=$?
1827  if test -s conftest.err; then
1828    grep -v '^ *+' conftest.err >conftest.er1
1829    cat conftest.er1 >&5
1830    mv -f conftest.er1 conftest.err
1831  fi
1832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } && {
1834	 test -z "$ac_c_werror_flag" ||
1835	 test ! -s conftest.err
1836       } && test -s conftest$ac_exeext && {
1837	 test "$cross_compiling" = yes ||
1838	 test -x conftest$ac_exeext
1839       }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845	ac_retval=1
1846fi
1847  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849  # interfere with the next link command; also delete a directory that is
1850  # left behind by Apple's compiler.  We do this before executing the actions.
1851  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_link
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867else
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875    which can conflict with char $2 (); below.
1876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877    <limits.h> exists even on freestanding compilers.  */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888   Use char because int might match the return type of a GCC
1889   builtin and then its argument prototype would still apply.  */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895    to always fail with ENOSYS.  Some functions are actually named
1896    something starting with __ and the normal name is an alias.  */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910  eval "$3=yes"
1911else
1912  eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915    conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_cxx_try_compile LINENO
1925# ----------------------------
1926# Try to compile conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_cxx_try_compile ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  rm -f conftest.$ac_objext
1931  if { { ac_try="$ac_compile"
1932case "(($ac_try" in
1933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934  *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938  (eval "$ac_compile") 2>conftest.err
1939  ac_status=$?
1940  if test -s conftest.err; then
1941    grep -v '^ *+' conftest.err >conftest.er1
1942    cat conftest.er1 >&5
1943    mv -f conftest.er1 conftest.err
1944  fi
1945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946  test $ac_status = 0; } && {
1947	 test -z "$ac_cxx_werror_flag" ||
1948	 test ! -s conftest.err
1949       } && test -s conftest.$ac_objext; then :
1950  ac_retval=0
1951else
1952  $as_echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955	ac_retval=1
1956fi
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958  as_fn_set_status $ac_retval
1959
1960} # ac_fn_cxx_try_compile
1961
1962# ac_fn_cxx_try_cpp LINENO
1963# ------------------------
1964# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965ac_fn_cxx_try_cpp ()
1966{
1967  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968  if { { ac_try="$ac_cpp conftest.$ac_ext"
1969case "(($ac_try" in
1970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971  *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1976  ac_status=$?
1977  if test -s conftest.err; then
1978    grep -v '^ *+' conftest.err >conftest.er1
1979    cat conftest.er1 >&5
1980    mv -f conftest.er1 conftest.err
1981  fi
1982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983  test $ac_status = 0; } > conftest.i && {
1984	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1985	 test ! -s conftest.err
1986       }; then :
1987  ac_retval=0
1988else
1989  $as_echo "$as_me: failed program was:" >&5
1990sed 's/^/| /' conftest.$ac_ext >&5
1991
1992    ac_retval=1
1993fi
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995  as_fn_set_status $ac_retval
1996
1997} # ac_fn_cxx_try_cpp
1998
1999# ac_fn_cxx_try_link LINENO
2000# -------------------------
2001# Try to link conftest.$ac_ext, and return whether this succeeded.
2002ac_fn_cxx_try_link ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  rm -f conftest.$ac_objext conftest$ac_exeext
2006  if { { ac_try="$ac_link"
2007case "(($ac_try" in
2008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009  *) ac_try_echo=$ac_try;;
2010esac
2011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012$as_echo "$ac_try_echo"; } >&5
2013  (eval "$ac_link") 2>conftest.err
2014  ac_status=$?
2015  if test -s conftest.err; then
2016    grep -v '^ *+' conftest.err >conftest.er1
2017    cat conftest.er1 >&5
2018    mv -f conftest.er1 conftest.err
2019  fi
2020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021  test $ac_status = 0; } && {
2022	 test -z "$ac_cxx_werror_flag" ||
2023	 test ! -s conftest.err
2024       } && test -s conftest$ac_exeext && {
2025	 test "$cross_compiling" = yes ||
2026	 test -x conftest$ac_exeext
2027       }; then :
2028  ac_retval=0
2029else
2030  $as_echo "$as_me: failed program was:" >&5
2031sed 's/^/| /' conftest.$ac_ext >&5
2032
2033	ac_retval=1
2034fi
2035  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2036  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2037  # interfere with the next link command; also delete a directory that is
2038  # left behind by Apple's compiler.  We do this before executing the actions.
2039  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041  as_fn_set_status $ac_retval
2042
2043} # ac_fn_cxx_try_link
2044cat >config.log <<_ACEOF
2045This file contains any messages produced by compilers while
2046running configure, to aid debugging if configure makes a mistake.
2047
2048It was created by libvdpau $as_me 1.1.1, which was
2049generated by GNU Autoconf 2.69.  Invocation command line was
2050
2051  $ $0 $@
2052
2053_ACEOF
2054exec 5>>config.log
2055{
2056cat <<_ASUNAME
2057## --------- ##
2058## Platform. ##
2059## --------- ##
2060
2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069
2070/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2071/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2074/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2075/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2076/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077
2078_ASUNAME
2079
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085    $as_echo "PATH: $as_dir"
2086  done
2087IFS=$as_save_IFS
2088
2089} >&5
2090
2091cat >&5 <<_ACEOF
2092
2093
2094## ----------- ##
2095## Core tests. ##
2096## ----------- ##
2097
2098_ACEOF
2099
2100
2101# Keep a trace of the command line.
2102# Strip out --no-create and --no-recursion so they do not pile up.
2103# Strip out --silent because we don't want to record it for future runs.
2104# Also quote any args containing shell meta-characters.
2105# Make two passes to allow for proper duplicate-argument suppression.
2106ac_configure_args=
2107ac_configure_args0=
2108ac_configure_args1=
2109ac_must_keep_next=false
2110for ac_pass in 1 2
2111do
2112  for ac_arg
2113  do
2114    case $ac_arg in
2115    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117    | -silent | --silent | --silen | --sile | --sil)
2118      continue ;;
2119    *\'*)
2120      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121    esac
2122    case $ac_pass in
2123    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124    2)
2125      as_fn_append ac_configure_args1 " '$ac_arg'"
2126      if test $ac_must_keep_next = true; then
2127	ac_must_keep_next=false # Got value, back to normal.
2128      else
2129	case $ac_arg in
2130	  *=* | --config-cache | -C | -disable-* | --disable-* \
2131	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133	  | -with-* | --with-* | -without-* | --without-* | --x)
2134	    case "$ac_configure_args0 " in
2135	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136	    esac
2137	    ;;
2138	  -* ) ac_must_keep_next=true ;;
2139	esac
2140      fi
2141      as_fn_append ac_configure_args " '$ac_arg'"
2142      ;;
2143    esac
2144  done
2145done
2146{ ac_configure_args0=; unset ac_configure_args0;}
2147{ ac_configure_args1=; unset ac_configure_args1;}
2148
2149# When interrupted or exit'd, cleanup temporary files, and complete
2150# config.log.  We remove comments because anyway the quotes in there
2151# would cause problems or look ugly.
2152# WARNING: Use '\'' to represent an apostrophe within the trap.
2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154trap 'exit_status=$?
2155  # Save into config.log some information that might help in debugging.
2156  {
2157    echo
2158
2159    $as_echo "## ---------------- ##
2160## Cache variables. ##
2161## ---------------- ##"
2162    echo
2163    # The following way of writing the cache mishandles newlines in values,
2164(
2165  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166    eval ac_val=\$$ac_var
2167    case $ac_val in #(
2168    *${as_nl}*)
2169      case $ac_var in #(
2170      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172      esac
2173      case $ac_var in #(
2174      _ | IFS | as_nl) ;; #(
2175      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176      *) { eval $ac_var=; unset $ac_var;} ;;
2177      esac ;;
2178    esac
2179  done
2180  (set) 2>&1 |
2181    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182    *${as_nl}ac_space=\ *)
2183      sed -n \
2184	"s/'\''/'\''\\\\'\'''\''/g;
2185	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186      ;; #(
2187    *)
2188      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189      ;;
2190    esac |
2191    sort
2192)
2193    echo
2194
2195    $as_echo "## ----------------- ##
2196## Output variables. ##
2197## ----------------- ##"
2198    echo
2199    for ac_var in $ac_subst_vars
2200    do
2201      eval ac_val=\$$ac_var
2202      case $ac_val in
2203      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204      esac
2205      $as_echo "$ac_var='\''$ac_val'\''"
2206    done | sort
2207    echo
2208
2209    if test -n "$ac_subst_files"; then
2210      $as_echo "## ------------------- ##
2211## File substitutions. ##
2212## ------------------- ##"
2213      echo
2214      for ac_var in $ac_subst_files
2215      do
2216	eval ac_val=\$$ac_var
2217	case $ac_val in
2218	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219	esac
2220	$as_echo "$ac_var='\''$ac_val'\''"
2221      done | sort
2222      echo
2223    fi
2224
2225    if test -s confdefs.h; then
2226      $as_echo "## ----------- ##
2227## confdefs.h. ##
2228## ----------- ##"
2229      echo
2230      cat confdefs.h
2231      echo
2232    fi
2233    test "$ac_signal" != 0 &&
2234      $as_echo "$as_me: caught signal $ac_signal"
2235    $as_echo "$as_me: exit $exit_status"
2236  } >&5
2237  rm -f core *.core core.conftest.* &&
2238    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239    exit $exit_status
2240' 0
2241for ac_signal in 1 2 13 15; do
2242  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243done
2244ac_signal=0
2245
2246# confdefs.h avoids OS command line length limits that DEFS can exceed.
2247rm -f -r conftest* confdefs.h
2248
2249$as_echo "/* confdefs.h */" > confdefs.h
2250
2251# Predefined preprocessor variables.
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_NAME "$PACKAGE_NAME"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259_ACEOF
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_VERSION "$PACKAGE_VERSION"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_STRING "$PACKAGE_STRING"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_URL "$PACKAGE_URL"
2275_ACEOF
2276
2277
2278# Let the site file select an alternate cache file if it wants to.
2279# Prefer an explicitly selected file to automatically selected ones.
2280ac_site_file1=NONE
2281ac_site_file2=NONE
2282if test -n "$CONFIG_SITE"; then
2283  # We do not want a PATH search for config.site.
2284  case $CONFIG_SITE in #((
2285    -*)  ac_site_file1=./$CONFIG_SITE;;
2286    */*) ac_site_file1=$CONFIG_SITE;;
2287    *)   ac_site_file1=./$CONFIG_SITE;;
2288  esac
2289elif test "x$prefix" != xNONE; then
2290  ac_site_file1=$prefix/share/config.site
2291  ac_site_file2=$prefix/etc/config.site
2292else
2293  ac_site_file1=$ac_default_prefix/share/config.site
2294  ac_site_file2=$ac_default_prefix/etc/config.site
2295fi
2296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297do
2298  test "x$ac_site_file" = xNONE && continue
2299  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302    sed 's/^/| /' "$ac_site_file" >&5
2303    . "$ac_site_file" \
2304      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306as_fn_error $? "failed to load site script $ac_site_file
2307See \`config.log' for more details" "$LINENO" 5; }
2308  fi
2309done
2310
2311if test -r "$cache_file"; then
2312  # Some versions of bash will fail to source /dev/null (special files
2313  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2314  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316$as_echo "$as_me: loading cache $cache_file" >&6;}
2317    case $cache_file in
2318      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319      *)                      . "./$cache_file";;
2320    esac
2321  fi
2322else
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324$as_echo "$as_me: creating cache $cache_file" >&6;}
2325  >$cache_file
2326fi
2327
2328# Check that the precious variables saved in the cache have kept the same
2329# value.
2330ac_cache_corrupted=false
2331for ac_var in $ac_precious_vars; do
2332  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333  eval ac_new_set=\$ac_env_${ac_var}_set
2334  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335  eval ac_new_val=\$ac_env_${ac_var}_value
2336  case $ac_old_set,$ac_new_set in
2337    set,)
2338      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340      ac_cache_corrupted=: ;;
2341    ,set)
2342      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344      ac_cache_corrupted=: ;;
2345    ,);;
2346    *)
2347      if test "x$ac_old_val" != "x$ac_new_val"; then
2348	# differences in whitespace do not lead to failure.
2349	ac_old_val_w=`echo x $ac_old_val`
2350	ac_new_val_w=`echo x $ac_new_val`
2351	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354	  ac_cache_corrupted=:
2355	else
2356	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358	  eval $ac_var=\$ac_old_val
2359	fi
2360	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2361$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2362	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2363$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2364      fi;;
2365  esac
2366  # Pass precious variables to config.status.
2367  if test "$ac_new_set" = set; then
2368    case $ac_new_val in
2369    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370    *) ac_arg=$ac_var=$ac_new_val ;;
2371    esac
2372    case " $ac_configure_args " in
2373      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2374      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375    esac
2376  fi
2377done
2378if $ac_cache_corrupted; then
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384fi
2385## -------------------- ##
2386## Main body of script. ##
2387## -------------------- ##
2388
2389ac_ext=c
2390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396am__api_version='1.15'
2397
2398ac_aux_dir=
2399for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400  if test -f "$ac_dir/install-sh"; then
2401    ac_aux_dir=$ac_dir
2402    ac_install_sh="$ac_aux_dir/install-sh -c"
2403    break
2404  elif test -f "$ac_dir/install.sh"; then
2405    ac_aux_dir=$ac_dir
2406    ac_install_sh="$ac_aux_dir/install.sh -c"
2407    break
2408  elif test -f "$ac_dir/shtool"; then
2409    ac_aux_dir=$ac_dir
2410    ac_install_sh="$ac_aux_dir/shtool install -c"
2411    break
2412  fi
2413done
2414if test -z "$ac_aux_dir"; then
2415  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416fi
2417
2418# These three variables are undocumented and unsupported,
2419# and are intended to be withdrawn in a future Autoconf release.
2420# They can cause serious problems if a builder's source tree is in a directory
2421# whose full name contains unusual characters.
2422ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2423ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2424ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2425
2426
2427# Find a good install program.  We prefer a C program (faster),
2428# so one script is as good as another.  But avoid the broken or
2429# incompatible versions:
2430# SysV /etc/install, /usr/sbin/install
2431# SunOS /usr/etc/install
2432# IRIX /sbin/install
2433# AIX /bin/install
2434# AmigaOS /C/install, which installs bootblocks on floppy discs
2435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438# OS/2's system install, which has a completely different semantic
2439# ./install, which can be erroneously created by make from ./install.sh.
2440# Reject install programs that cannot install multiple files.
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2442$as_echo_n "checking for a BSD-compatible install... " >&6; }
2443if test -z "$INSTALL"; then
2444if ${ac_cv_path_install+:} false; then :
2445  $as_echo_n "(cached) " >&6
2446else
2447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450  IFS=$as_save_IFS
2451  test -z "$as_dir" && as_dir=.
2452    # Account for people who put trailing slashes in PATH elements.
2453case $as_dir/ in #((
2454  ./ | .// | /[cC]/* | \
2455  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2456  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457  /usr/ucb/* ) ;;
2458  *)
2459    # OSF1 and SCO ODT 3.0 have their own names for install.
2460    # Don't use installbsd from OSF since it installs stuff as root
2461    # by default.
2462    for ac_prog in ginstall scoinst install; do
2463      for ac_exec_ext in '' $ac_executable_extensions; do
2464	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2465	  if test $ac_prog = install &&
2466	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467	    # AIX install.  It has an incompatible calling convention.
2468	    :
2469	  elif test $ac_prog = install &&
2470	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471	    # program-specific install script used by HP pwplus--don't use.
2472	    :
2473	  else
2474	    rm -rf conftest.one conftest.two conftest.dir
2475	    echo one > conftest.one
2476	    echo two > conftest.two
2477	    mkdir conftest.dir
2478	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2479	      test -s conftest.one && test -s conftest.two &&
2480	      test -s conftest.dir/conftest.one &&
2481	      test -s conftest.dir/conftest.two
2482	    then
2483	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2484	      break 3
2485	    fi
2486	  fi
2487	fi
2488      done
2489    done
2490    ;;
2491esac
2492
2493  done
2494IFS=$as_save_IFS
2495
2496rm -rf conftest.one conftest.two conftest.dir
2497
2498fi
2499  if test "${ac_cv_path_install+set}" = set; then
2500    INSTALL=$ac_cv_path_install
2501  else
2502    # As a last resort, use the slow shell script.  Don't cache a
2503    # value for INSTALL within a source directory, because that will
2504    # break other packages using the cache if that directory is
2505    # removed, or if the value is a relative name.
2506    INSTALL=$ac_install_sh
2507  fi
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2510$as_echo "$INSTALL" >&6; }
2511
2512# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2513# It thinks the first close brace ends the variable substitution.
2514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515
2516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517
2518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2521$as_echo_n "checking whether build environment is sane... " >&6; }
2522# Reject unsafe characters in $srcdir or the absolute working directory
2523# name.  Accept space and tab only in the latter.
2524am_lf='
2525'
2526case `pwd` in
2527  *[\\\"\#\$\&\'\`$am_lf]*)
2528    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529esac
2530case $srcdir in
2531  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2532    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533esac
2534
2535# Do 'set' in a subshell so we don't clobber the current shell's
2536# arguments.  Must try -L first in case configure is actually a
2537# symlink; some systems play weird games with the mod time of symlinks
2538# (eg FreeBSD returns the mod time of the symlink's containing
2539# directory).
2540if (
2541   am_has_slept=no
2542   for am_try in 1 2; do
2543     echo "timestamp, slept: $am_has_slept" > conftest.file
2544     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2545     if test "$*" = "X"; then
2546	# -L didn't work.
2547	set X `ls -t "$srcdir/configure" conftest.file`
2548     fi
2549     if test "$*" != "X $srcdir/configure conftest.file" \
2550	&& test "$*" != "X conftest.file $srcdir/configure"; then
2551
2552	# If neither matched, then we have a broken ls.  This can happen
2553	# if, for instance, CONFIG_SHELL is bash and it inherits a
2554	# broken ls alias from the environment.  This has actually
2555	# happened.  Such a system could not be considered "sane".
2556	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2557  alias in your environment" "$LINENO" 5
2558     fi
2559     if test "$2" = conftest.file || test $am_try -eq 2; then
2560       break
2561     fi
2562     # Just in case.
2563     sleep 1
2564     am_has_slept=yes
2565   done
2566   test "$2" = conftest.file
2567   )
2568then
2569   # Ok.
2570   :
2571else
2572   as_fn_error $? "newly created file is older than distributed files!
2573Check your system clock" "$LINENO" 5
2574fi
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576$as_echo "yes" >&6; }
2577# If we didn't sleep, we still need to ensure time stamps of config.status and
2578# generated files are strictly newer.
2579am_sleep_pid=
2580if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2581  ( sleep 1 ) &
2582  am_sleep_pid=$!
2583fi
2584
2585rm -f conftest.file
2586
2587test "$program_prefix" != NONE &&
2588  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589# Use a double $ so make ignores it.
2590test "$program_suffix" != NONE &&
2591  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592# Double any \ or $.
2593# By default was `s,x,x', remove it if useless.
2594ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2596
2597# Expand $ac_aux_dir to an absolute path.
2598am_aux_dir=`cd "$ac_aux_dir" && pwd`
2599
2600if test x"${MISSING+set}" != xset; then
2601  case $am_aux_dir in
2602  *\ * | *\	*)
2603    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2604  *)
2605    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606  esac
2607fi
2608# Use eval to expand $SHELL
2609if eval "$MISSING --is-lightweight"; then
2610  am_missing_run="$MISSING "
2611else
2612  am_missing_run=
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2614$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615fi
2616
2617if test x"${install_sh+set}" != xset; then
2618  case $am_aux_dir in
2619  *\ * | *\	*)
2620    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2621  *)
2622    install_sh="\${SHELL} $am_aux_dir/install-sh"
2623  esac
2624fi
2625
2626# Installed binaries are usually stripped using 'strip' when the user
2627# run "make install-strip".  However 'strip' might not be the right
2628# tool to use in cross-compilation environments, therefore Automake
2629# will honor the 'STRIP' environment variable to overrule this program.
2630if test "$cross_compiling" != no; then
2631  if test -n "$ac_tool_prefix"; then
2632  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633set dummy ${ac_tool_prefix}strip; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
2636if ${ac_cv_prog_STRIP+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  if test -n "$STRIP"; then
2640  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647    for ac_exec_ext in '' $ac_executable_extensions; do
2648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654  done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659STRIP=$ac_cv_prog_STRIP
2660if test -n "$STRIP"; then
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662$as_echo "$STRIP" >&6; }
2663else
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
2667
2668
2669fi
2670if test -z "$ac_cv_prog_STRIP"; then
2671  ac_ct_STRIP=$STRIP
2672  # Extract the first word of "strip", so it can be a program name with args.
2673set dummy strip; ac_word=$2
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675$as_echo_n "checking for $ac_word... " >&6; }
2676if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  if test -n "$ac_ct_STRIP"; then
2680  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_exec_ext in '' $ac_executable_extensions; do
2688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689    ac_cv_prog_ac_ct_STRIP="strip"
2690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694  done
2695IFS=$as_save_IFS
2696
2697fi
2698fi
2699ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700if test -n "$ac_ct_STRIP"; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702$as_echo "$ac_ct_STRIP" >&6; }
2703else
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705$as_echo "no" >&6; }
2706fi
2707
2708  if test "x$ac_ct_STRIP" = x; then
2709    STRIP=":"
2710  else
2711    case $cross_compiling:$ac_tool_warned in
2712yes:)
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715ac_tool_warned=yes ;;
2716esac
2717    STRIP=$ac_ct_STRIP
2718  fi
2719else
2720  STRIP="$ac_cv_prog_STRIP"
2721fi
2722
2723fi
2724INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2725
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728if test -z "$MKDIR_P"; then
2729  if ${ac_cv_path_mkdir+:} false; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    for ac_prog in mkdir gmkdir; do
2738	 for ac_exec_ext in '' $ac_executable_extensions; do
2739	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2740	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741	     'mkdir (GNU coreutils) '* | \
2742	     'mkdir (coreutils) '* | \
2743	     'mkdir (fileutils) '4.1*)
2744	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2745	       break 3;;
2746	   esac
2747	 done
2748       done
2749  done
2750IFS=$as_save_IFS
2751
2752fi
2753
2754  test -d ./--version && rmdir ./--version
2755  if test "${ac_cv_path_mkdir+set}" = set; then
2756    MKDIR_P="$ac_cv_path_mkdir -p"
2757  else
2758    # As a last resort, use the slow shell script.  Don't cache a
2759    # value for MKDIR_P within a source directory, because that will
2760    # break other packages using the cache if that directory is
2761    # removed, or if the value is a relative name.
2762    MKDIR_P="$ac_install_sh -d"
2763  fi
2764fi
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766$as_echo "$MKDIR_P" >&6; }
2767
2768for ac_prog in gawk mawk nawk awk
2769do
2770  # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
2774if ${ac_cv_prog_AWK+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test -n "$AWK"; then
2778  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787    ac_cv_prog_AWK="$ac_prog"
2788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792  done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797AWK=$ac_cv_prog_AWK
2798if test -n "$AWK"; then
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800$as_echo "$AWK" >&6; }
2801else
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807  test -n "$AWK" && break
2808done
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812set x ${MAKE-make}
2813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  cat >conftest.make <<\_ACEOF
2818SHELL = /bin/sh
2819all:
2820	@echo '@@@%%%=$(MAKE)=@@@%%%'
2821_ACEOF
2822# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2823case `${MAKE-make} -f conftest.make 2>/dev/null` in
2824  *@@@%%%=?*=@@@%%%*)
2825    eval ac_cv_prog_make_${ac_make}_set=yes;;
2826  *)
2827    eval ac_cv_prog_make_${ac_make}_set=no;;
2828esac
2829rm -f conftest.make
2830fi
2831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833$as_echo "yes" >&6; }
2834  SET_MAKE=
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838  SET_MAKE="MAKE=${MAKE-make}"
2839fi
2840
2841rm -rf .tst 2>/dev/null
2842mkdir .tst 2>/dev/null
2843if test -d .tst; then
2844  am__leading_dot=.
2845else
2846  am__leading_dot=_
2847fi
2848rmdir .tst 2>/dev/null
2849
2850# Check whether --enable-silent-rules was given.
2851if test "${enable_silent_rules+set}" = set; then :
2852  enableval=$enable_silent_rules;
2853fi
2854
2855case $enable_silent_rules in # (((
2856  yes) AM_DEFAULT_VERBOSITY=0;;
2857   no) AM_DEFAULT_VERBOSITY=1;;
2858    *) AM_DEFAULT_VERBOSITY=1;;
2859esac
2860am_make=${MAKE-make}
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2862$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2863if ${am_cv_make_support_nested_variables+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  if $as_echo 'TRUE=$(BAR$(V))
2867BAR0=false
2868BAR1=true
2869V=1
2870am__doit:
2871	@$(TRUE)
2872.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2873  am_cv_make_support_nested_variables=yes
2874else
2875  am_cv_make_support_nested_variables=no
2876fi
2877fi
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2879$as_echo "$am_cv_make_support_nested_variables" >&6; }
2880if test $am_cv_make_support_nested_variables = yes; then
2881    AM_V='$(V)'
2882  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2883else
2884  AM_V=$AM_DEFAULT_VERBOSITY
2885  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2886fi
2887AM_BACKSLASH='\'
2888
2889if test "`cd $srcdir && pwd`" != "`pwd`"; then
2890  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2891  # is not polluted with repeated "-I."
2892  am__isrc=' -I$(srcdir)'
2893  # test to see if srcdir already configured
2894  if test -f $srcdir/config.status; then
2895    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896  fi
2897fi
2898
2899# test whether we have cygpath
2900if test -z "$CYGPATH_W"; then
2901  if (cygpath --version) >/dev/null 2>/dev/null; then
2902    CYGPATH_W='cygpath -w'
2903  else
2904    CYGPATH_W=echo
2905  fi
2906fi
2907
2908
2909# Define the identity of the package.
2910 PACKAGE='libvdpau'
2911 VERSION='1.1.1'
2912
2913
2914cat >>confdefs.h <<_ACEOF
2915#define PACKAGE "$PACKAGE"
2916_ACEOF
2917
2918
2919cat >>confdefs.h <<_ACEOF
2920#define VERSION "$VERSION"
2921_ACEOF
2922
2923# Some tools Automake needs.
2924
2925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926
2927
2928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929
2930
2931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932
2933
2934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935
2936
2937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2938
2939# For better backward compatibility.  To be removed once Automake 1.9.x
2940# dies out for good.  For more background, see:
2941# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2942# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2943mkdir_p='$(MKDIR_P)'
2944
2945# We need awk for the "check" target (and possibly the TAP driver).  The
2946# system "awk" is bad on some platforms.
2947# Always define AMTAR for backward compatibility.  Yes, it's still used
2948# in the wild :-(  We should find a proper way to deprecate it ...
2949AMTAR='$${TAR-tar}'
2950
2951
2952# We'll loop over all known methods to create a tar archive until one works.
2953_am_tools='gnutar  pax cpio none'
2954
2955am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2956
2957
2958
2959
2960
2961
2962# POSIX will say in a future version that running "rm -f" with no argument
2963# is OK; and we want to be able to make that assumption in our Makefile
2964# recipes.  So use an aggressive probe to check that the usage we want is
2965# actually supported "in the wild" to an acceptable degree.
2966# See automake bug#10828.
2967# To make any issue more visible, cause the running configure to be aborted
2968# by default if the 'rm' program in use doesn't match our expectations; the
2969# user can still override this though.
2970if rm -f && rm -fr && rm -rf; then : OK; else
2971  cat >&2 <<'END'
2972Oops!
2973
2974Your 'rm' program seems unable to run without file operands specified
2975on the command line, even when the '-f' option is present.  This is contrary
2976to the behaviour of most rm programs out there, and not conforming with
2977the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2978
2979Please tell bug-automake@gnu.org about your system, including the value
2980of your $PATH and any error possibly output before this message.  This
2981can help us improve future automake versions.
2982
2983END
2984  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2985    echo 'Configuration will proceed anyway, since you have set the' >&2
2986    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2987    echo >&2
2988  else
2989    cat >&2 <<'END'
2990Aborting the configuration process, to ensure you take notice of the issue.
2991
2992You can download and install GNU coreutils to get an 'rm' implementation
2993that behaves properly: <http://www.gnu.org/software/coreutils/>.
2994
2995If you want to complete the configuration process using your problematic
2996'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2997to "yes", and re-run configure.
2998
2999END
3000    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3001  fi
3002fi
3003
3004
3005ac_config_headers="$ac_config_headers config.h"
3006
3007
3008# Check for secure_getenv
3009DEPDIR="${am__leading_dot}deps"
3010
3011ac_config_commands="$ac_config_commands depfiles"
3012
3013
3014am_make=${MAKE-make}
3015cat > confinc << 'END'
3016am__doit:
3017	@echo this is the am__doit target
3018.PHONY: am__doit
3019END
3020# If we don't find an include directive, just comment out the code.
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3022$as_echo_n "checking for style of include used by $am_make... " >&6; }
3023am__include="#"
3024am__quote=
3025_am_result=none
3026# First try GNU make style include.
3027echo "include confinc" > confmf
3028# Ignore all kinds of additional output from 'make'.
3029case `$am_make -s -f confmf 2> /dev/null` in #(
3030*the\ am__doit\ target*)
3031  am__include=include
3032  am__quote=
3033  _am_result=GNU
3034  ;;
3035esac
3036# Now try BSD make style include.
3037if test "$am__include" = "#"; then
3038   echo '.include "confinc"' > confmf
3039   case `$am_make -s -f confmf 2> /dev/null` in #(
3040   *the\ am__doit\ target*)
3041     am__include=.include
3042     am__quote="\""
3043     _am_result=BSD
3044     ;;
3045   esac
3046fi
3047
3048
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3050$as_echo "$_am_result" >&6; }
3051rm -f confinc confmf
3052
3053# Check whether --enable-dependency-tracking was given.
3054if test "${enable_dependency_tracking+set}" = set; then :
3055  enableval=$enable_dependency_tracking;
3056fi
3057
3058if test "x$enable_dependency_tracking" != xno; then
3059  am_depcomp="$ac_aux_dir/depcomp"
3060  AMDEPBACKSLASH='\'
3061  am__nodep='_no'
3062fi
3063 if test "x$enable_dependency_tracking" != xno; then
3064  AMDEP_TRUE=
3065  AMDEP_FALSE='#'
3066else
3067  AMDEP_TRUE='#'
3068  AMDEP_FALSE=
3069fi
3070
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077if test -n "$ac_tool_prefix"; then
3078  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if ${ac_cv_prog_CC+:} false; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$CC"; then
3086  ac_cv_prog_CC="$CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108$as_echo "$CC" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$ac_cv_prog_CC"; then
3117  ac_ct_CC=$CC
3118  # Extract the first word of "gcc", so it can be a program name with args.
3119set dummy gcc; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$ac_ct_CC"; then
3126  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135    ac_cv_prog_ac_ct_CC="gcc"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146if test -n "$ac_ct_CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148$as_echo "$ac_ct_CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154  if test "x$ac_ct_CC" = x; then
3155    CC=""
3156  else
3157    case $cross_compiling:$ac_tool_warned in
3158yes:)
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161ac_tool_warned=yes ;;
3162esac
3163    CC=$ac_ct_CC
3164  fi
3165else
3166  CC="$ac_cv_prog_CC"
3167fi
3168
3169if test -z "$CC"; then
3170          if test -n "$ac_tool_prefix"; then
3171    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172set dummy ${ac_tool_prefix}cc; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_CC+:} false; then :
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -n "$CC"; then
3179  ac_cv_prog_CC="$CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186    for ac_exec_ext in '' $ac_executable_extensions; do
3187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188    ac_cv_prog_CC="${ac_tool_prefix}cc"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201$as_echo "$CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208  fi
3209fi
3210if test -z "$CC"; then
3211  # Extract the first word of "cc", so it can be a program name with args.
3212set dummy cc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if ${ac_cv_prog_CC+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221  ac_prog_rejected=no
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230       ac_prog_rejected=yes
3231       continue
3232     fi
3233    ac_cv_prog_CC="cc"
3234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238  done
3239IFS=$as_save_IFS
3240
3241if test $ac_prog_rejected = yes; then
3242  # We found a bogon in the path, so make sure we never use it.
3243  set dummy $ac_cv_prog_CC
3244  shift
3245  if test $# != 0; then
3246    # We chose a different compiler from the bogus one.
3247    # However, it has the same basename, so the bogon will be chosen
3248    # first if we set CC to just the basename; use the full file name.
3249    shift
3250    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3251  fi
3252fi
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265fi
3266if test -z "$CC"; then
3267  if test -n "$ac_tool_prefix"; then
3268  for ac_prog in cl.exe
3269  do
3270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273$as_echo_n "checking for $ac_word... " >&6; }
3274if ${ac_cv_prog_CC+:} false; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  if test -n "$CC"; then
3278  ac_cv_prog_CC="$CC" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292  done
3293IFS=$as_save_IFS
3294
3295fi
3296fi
3297CC=$ac_cv_prog_CC
3298if test -n "$CC"; then
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300$as_echo "$CC" >&6; }
3301else
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304fi
3305
3306
3307    test -n "$CC" && break
3308  done
3309fi
3310if test -z "$CC"; then
3311  ac_ct_CC=$CC
3312  for ac_prog in cl.exe
3313do
3314  # Extract the first word of "$ac_prog", so it can be a program name with args.
3315set dummy $ac_prog; ac_word=$2
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317$as_echo_n "checking for $ac_word... " >&6; }
3318if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  if test -n "$ac_ct_CC"; then
3322  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_ac_ct_CC="$ac_prog"
3332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339fi
3340fi
3341ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342if test -n "$ac_ct_CC"; then
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344$as_echo "$ac_ct_CC" >&6; }
3345else
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348fi
3349
3350
3351  test -n "$ac_ct_CC" && break
3352done
3353
3354  if test "x$ac_ct_CC" = x; then
3355    CC=""
3356  else
3357    case $cross_compiling:$ac_tool_warned in
3358yes:)
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361ac_tool_warned=yes ;;
3362esac
3363    CC=$ac_ct_CC
3364  fi
3365fi
3366
3367fi
3368
3369
3370test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error $? "no acceptable C compiler found in \$PATH
3373See \`config.log' for more details" "$LINENO" 5; }
3374
3375# Provide some information about the compiler.
3376$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3377set X $ac_compile
3378ac_compiler=$2
3379for ac_option in --version -v -V -qversion; do
3380  { { ac_try="$ac_compiler $ac_option >&5"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3388  ac_status=$?
3389  if test -s conftest.err; then
3390    sed '10a\
3391... rest of stderr output deleted ...
3392         10q' conftest.err >conftest.er1
3393    cat conftest.er1 >&5
3394  fi
3395  rm -f conftest.er1 conftest.err
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }
3398done
3399
3400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411ac_clean_files_save=$ac_clean_files
3412ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413# Try to create an executable without -o first, disregard a.out.
3414# It will help us diagnose broken compilers, and finding out an intuition
3415# of exeext.
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417$as_echo_n "checking whether the C compiler works... " >&6; }
3418ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3419
3420# The possible output files:
3421ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3422
3423ac_rmfiles=
3424for ac_file in $ac_files
3425do
3426  case $ac_file in
3427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429  esac
3430done
3431rm -f $ac_rmfiles
3432
3433if { { ac_try="$ac_link_default"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_link_default") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; then :
3444  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3447# so that the user can short-circuit this test for compilers unknown to
3448# Autoconf.
3449for ac_file in $ac_files ''
3450do
3451  test -f "$ac_file" || continue
3452  case $ac_file in
3453    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3454	;;
3455    [ab].out )
3456	# We found the default executable, but exeext='' is most
3457	# certainly right.
3458	break;;
3459    *.* )
3460	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3461	then :; else
3462	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463	fi
3464	# We set ac_cv_exeext here because the later test for it is not
3465	# safe: cross compilers may not add the suffix if given an `-o'
3466	# argument, so we may need to know it at that point already.
3467	# Even if this section looks crufty: it has the advantage of
3468	# actually working.
3469	break;;
3470    * )
3471	break;;
3472  esac
3473done
3474test "$ac_cv_exeext" = no && ac_cv_exeext=
3475
3476else
3477  ac_file=''
3478fi
3479if test -z "$ac_file"; then :
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482$as_echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487as_fn_error 77 "C compiler cannot create executables
3488See \`config.log' for more details" "$LINENO" 5; }
3489else
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491$as_echo "yes" >&6; }
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494$as_echo_n "checking for C compiler default output file name... " >&6; }
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3496$as_echo "$ac_file" >&6; }
3497ac_exeext=$ac_cv_exeext
3498
3499rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3500ac_clean_files=$ac_clean_files_save
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3502$as_echo_n "checking for suffix of executables... " >&6; }
3503if { { ac_try="$ac_link"
3504case "(($ac_try" in
3505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506  *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510  (eval "$ac_link") 2>&5
3511  ac_status=$?
3512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513  test $ac_status = 0; }; then :
3514  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3515# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3516# work properly (i.e., refer to `conftest.exe'), while it won't with
3517# `rm'.
3518for ac_file in conftest.exe conftest conftest.*; do
3519  test -f "$ac_file" || continue
3520  case $ac_file in
3521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523	  break;;
3524    * ) break;;
3525  esac
3526done
3527else
3528  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3531See \`config.log' for more details" "$LINENO" 5; }
3532fi
3533rm -f conftest conftest$ac_cv_exeext
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3535$as_echo "$ac_cv_exeext" >&6; }
3536
3537rm -f conftest.$ac_ext
3538EXEEXT=$ac_cv_exeext
3539ac_exeext=$EXEEXT
3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542#include <stdio.h>
3543int
3544main ()
3545{
3546FILE *f = fopen ("conftest.out", "w");
3547 return ferror (f) || fclose (f) != 0;
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553ac_clean_files="$ac_clean_files conftest.out"
3554# Check that the compiler produces executables we can run.  If not, either
3555# the compiler is broken, or we cross compile.
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3557$as_echo_n "checking whether we are cross compiling... " >&6; }
3558if test "$cross_compiling" != yes; then
3559  { { ac_try="$ac_link"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565$as_echo "$ac_try_echo"; } >&5
3566  (eval "$ac_link") 2>&5
3567  ac_status=$?
3568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569  test $ac_status = 0; }
3570  if { ac_try='./conftest$ac_cv_exeext'
3571  { { case "(($ac_try" in
3572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573  *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577  (eval "$ac_try") 2>&5
3578  ac_status=$?
3579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }; }; then
3581    cross_compiling=no
3582  else
3583    if test "$cross_compiling" = maybe; then
3584	cross_compiling=yes
3585    else
3586	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588as_fn_error $? "cannot run C compiled programs.
3589If you meant to cross compile, use \`--host'.
3590See \`config.log' for more details" "$LINENO" 5; }
3591    fi
3592  fi
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3595$as_echo "$cross_compiling" >&6; }
3596
3597rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3598ac_clean_files=$ac_clean_files_save
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600$as_echo_n "checking for suffix of object files... " >&6; }
3601if ${ac_cv_objext+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest.o conftest.obj
3616if { { ac_try="$ac_compile"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_compile") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }; then :
3627  for ac_file in conftest.o conftest.obj conftest.*; do
3628  test -f "$ac_file" || continue;
3629  case $ac_file in
3630    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632       break;;
3633  esac
3634done
3635else
3636  $as_echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641as_fn_error $? "cannot compute suffix of object files: cannot compile
3642See \`config.log' for more details" "$LINENO" 5; }
3643fi
3644rm -f conftest.$ac_cv_objext conftest.$ac_ext
3645fi
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647$as_echo "$ac_cv_objext" >&6; }
3648OBJEXT=$ac_cv_objext
3649ac_objext=$OBJEXT
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652if ${ac_cv_c_compiler_gnu+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661#ifndef __GNUC__
3662       choke me
3663#endif
3664
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669if ac_fn_c_try_compile "$LINENO"; then :
3670  ac_compiler_gnu=yes
3671else
3672  ac_compiler_gnu=no
3673fi
3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680if test $ac_compiler_gnu = yes; then
3681  GCC=yes
3682else
3683  GCC=
3684fi
3685ac_test_CFLAGS=${CFLAGS+set}
3686ac_save_CFLAGS=$CFLAGS
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688$as_echo_n "checking whether $CC accepts -g... " >&6; }
3689if ${ac_cv_prog_cc_g+:} false; then :
3690  $as_echo_n "(cached) " >&6
3691else
3692  ac_save_c_werror_flag=$ac_c_werror_flag
3693   ac_c_werror_flag=yes
3694   ac_cv_prog_cc_g=no
3695   CFLAGS="-g"
3696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698
3699int
3700main ()
3701{
3702
3703  ;
3704  return 0;
3705}
3706_ACEOF
3707if ac_fn_c_try_compile "$LINENO"; then :
3708  ac_cv_prog_cc_g=yes
3709else
3710  CFLAGS=""
3711      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723
3724else
3725  ac_c_werror_flag=$ac_save_c_werror_flag
3726	 CFLAGS="-g"
3727	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729
3730int
3731main ()
3732{
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738if ac_fn_c_try_compile "$LINENO"; then :
3739  ac_cv_prog_cc_g=yes
3740fi
3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746   ac_c_werror_flag=$ac_save_c_werror_flag
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749$as_echo "$ac_cv_prog_cc_g" >&6; }
3750if test "$ac_test_CFLAGS" = set; then
3751  CFLAGS=$ac_save_CFLAGS
3752elif test $ac_cv_prog_cc_g = yes; then
3753  if test "$GCC" = yes; then
3754    CFLAGS="-g -O2"
3755  else
3756    CFLAGS="-g"
3757  fi
3758else
3759  if test "$GCC" = yes; then
3760    CFLAGS="-O2"
3761  else
3762    CFLAGS=
3763  fi
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767if ${ac_cv_prog_cc_c89+:} false; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  ac_cv_prog_cc_c89=no
3771ac_save_CC=$CC
3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774#include <stdarg.h>
3775#include <stdio.h>
3776struct stat;
3777/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3778struct buf { int x; };
3779FILE * (*rcsopen) (struct buf *, struct stat *, int);
3780static char *e (p, i)
3781     char **p;
3782     int i;
3783{
3784  return p[i];
3785}
3786static char *f (char * (*g) (char **, int), char **p, ...)
3787{
3788  char *s;
3789  va_list v;
3790  va_start (v,p);
3791  s = g (p, va_arg (v,int));
3792  va_end (v);
3793  return s;
3794}
3795
3796/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3797   function prototypes and stuff, but not '\xHH' hex character constants.
3798   These don't provoke an error unfortunately, instead are silently treated
3799   as 'x'.  The following induces an error, until -std is added to get
3800   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3801   array size at least.  It's necessary to write '\x00'==0 to get something
3802   that's true only with -std.  */
3803int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804
3805/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3806   inside strings and character constants.  */
3807#define FOO(x) 'x'
3808int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809
3810int test (int i, double x);
3811struct s1 {int (*f) (int a);};
3812struct s2 {int (*f) (double a);};
3813int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3814int argc;
3815char **argv;
3816int
3817main ()
3818{
3819return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826do
3827  CC="$ac_save_CC $ac_arg"
3828  if ac_fn_c_try_compile "$LINENO"; then :
3829  ac_cv_prog_cc_c89=$ac_arg
3830fi
3831rm -f core conftest.err conftest.$ac_objext
3832  test "x$ac_cv_prog_cc_c89" != "xno" && break
3833done
3834rm -f conftest.$ac_ext
3835CC=$ac_save_CC
3836
3837fi
3838# AC_CACHE_VAL
3839case "x$ac_cv_prog_cc_c89" in
3840  x)
3841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3842$as_echo "none needed" >&6; } ;;
3843  xno)
3844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3845$as_echo "unsupported" >&6; } ;;
3846  *)
3847    CC="$CC $ac_cv_prog_cc_c89"
3848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3849$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3850esac
3851if test "x$ac_cv_prog_cc_c89" != xno; then :
3852
3853fi
3854
3855ac_ext=c
3856ac_cpp='$CPP $CPPFLAGS'
3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860
3861ac_ext=c
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3867$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3868if ${am_cv_prog_cc_c_o+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main ()
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882  # Make sure it works both with $CC and with simple cc.
3883  # Following AC_PROG_CC_C_O, we do the test twice because some
3884  # compilers refuse to overwrite an existing .o file with -o,
3885  # though they will create one.
3886  am_cv_prog_cc_c_o=yes
3887  for am_i in 1 2; do
3888    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3889   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } \
3893         && test -f conftest2.$ac_objext; then
3894      : OK
3895    else
3896      am_cv_prog_cc_c_o=no
3897      break
3898    fi
3899  done
3900  rm -f core conftest*
3901  unset am_i
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3904$as_echo "$am_cv_prog_cc_c_o" >&6; }
3905if test "$am_cv_prog_cc_c_o" != yes; then
3906   # Losing compiler, so override with the script.
3907   # FIXME: It is wrong to rewrite CC.
3908   # But if we don't then we get into trouble of one sort or another.
3909   # A longer-term fix would be to have automake use am__CC in this case,
3910   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3911   CC="$am_aux_dir/compile $CC"
3912fi
3913ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919
3920depcc="$CC"   am_compiler_list=
3921
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923$as_echo_n "checking dependency style of $depcc... " >&6; }
3924if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3925  $as_echo_n "(cached) " >&6
3926else
3927  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928  # We make a subdir and do the tests there.  Otherwise we can end up
3929  # making bogus files that we don't know about and never remove.  For
3930  # instance it was reported that on HP-UX the gcc test will end up
3931  # making a dummy file named 'D' -- because '-MD' means "put the output
3932  # in D".
3933  rm -rf conftest.dir
3934  mkdir conftest.dir
3935  # Copy depcomp to subdir because otherwise we won't find it if we're
3936  # using a relative directory.
3937  cp "$am_depcomp" conftest.dir
3938  cd conftest.dir
3939  # We will build objects and dependencies in a subdirectory because
3940  # it helps to detect inapplicable dependency modes.  For instance
3941  # both Tru64's cc and ICC support -MD to output dependencies as a
3942  # side effect of compilation, but ICC will put the dependencies in
3943  # the current directory while Tru64 will put them in the object
3944  # directory.
3945  mkdir sub
3946
3947  am_cv_CC_dependencies_compiler_type=none
3948  if test "$am_compiler_list" = ""; then
3949     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3950  fi
3951  am__universal=false
3952  case " $depcc " in #(
3953     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3954     esac
3955
3956  for depmode in $am_compiler_list; do
3957    # Setup a source with many dependencies, because some compilers
3958    # like to wrap large dependency lists on column 80 (with \), and
3959    # we should not choose a depcomp mode which is confused by this.
3960    #
3961    # We need to recreate these files for each test, as the compiler may
3962    # overwrite some of them when testing with obscure command lines.
3963    # This happens at least with the AIX C compiler.
3964    : > sub/conftest.c
3965    for i in 1 2 3 4 5 6; do
3966      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3967      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3968      # Solaris 10 /bin/sh.
3969      echo '/* dummy */' > sub/conftst$i.h
3970    done
3971    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972
3973    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3974    # mode.  It turns out that the SunPro C++ compiler does not properly
3975    # handle '-M -o', and we need to detect this.  Also, some Intel
3976    # versions had trouble with output in subdirs.
3977    am__obj=sub/conftest.${OBJEXT-o}
3978    am__minus_obj="-o $am__obj"
3979    case $depmode in
3980    gcc)
3981      # This depmode causes a compiler race in universal mode.
3982      test "$am__universal" = false || continue
3983      ;;
3984    nosideeffect)
3985      # After this tag, mechanisms are not by side-effect, so they'll
3986      # only be used when explicitly requested.
3987      if test "x$enable_dependency_tracking" = xyes; then
3988	continue
3989      else
3990	break
3991      fi
3992      ;;
3993    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3994      # This compiler won't grok '-c -o', but also, the minuso test has
3995      # not run yet.  These depmodes are late enough in the game, and
3996      # so weak that their functioning should not be impacted.
3997      am__obj=conftest.${OBJEXT-o}
3998      am__minus_obj=
3999      ;;
4000    none) break ;;
4001    esac
4002    if depmode=$depmode \
4003       source=sub/conftest.c object=$am__obj \
4004       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4005       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4006         >/dev/null 2>conftest.err &&
4007       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4008       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4009       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4010       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4011      # icc doesn't choke on unknown options, it will just issue warnings
4012      # or remarks (even with -Werror).  So we grep stderr for any message
4013      # that says an option was ignored or not supported.
4014      # When given -MP, icc 7.0 and 7.1 complain thusly:
4015      #   icc: Command line warning: ignoring option '-M'; no argument required
4016      # The diagnosis changed in icc 8.0:
4017      #   icc: Command line remark: option '-MP' not supported
4018      if (grep 'ignoring option' conftest.err ||
4019          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4020        am_cv_CC_dependencies_compiler_type=$depmode
4021        break
4022      fi
4023    fi
4024  done
4025
4026  cd ..
4027  rm -rf conftest.dir
4028else
4029  am_cv_CC_dependencies_compiler_type=none
4030fi
4031
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4034$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4035CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4036
4037 if
4038  test "x$enable_dependency_tracking" != xno \
4039  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4040  am__fastdepCC_TRUE=
4041  am__fastdepCC_FALSE='#'
4042else
4043  am__fastdepCC_TRUE='#'
4044  am__fastdepCC_FALSE=
4045fi
4046
4047
4048
4049ac_ext=c
4050ac_cpp='$CPP $CPPFLAGS'
4051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4055$as_echo_n "checking how to run the C preprocessor... " >&6; }
4056# On Suns, sometimes $CPP names a directory.
4057if test -n "$CPP" && test -d "$CPP"; then
4058  CPP=
4059fi
4060if test -z "$CPP"; then
4061  if ${ac_cv_prog_CPP+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064      # Double quotes because CPP needs to be expanded
4065    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4066    do
4067      ac_preproc_ok=false
4068for ac_c_preproc_warn_flag in '' yes
4069do
4070  # Use a header file that comes with gcc, so configuring glibc
4071  # with a fresh cross-compiler works.
4072  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4073  # <limits.h> exists even on freestanding compilers.
4074  # On the NeXT, cc -E runs the code through the compiler's parser,
4075  # not just through cpp. "Syntax error" is here to catch this case.
4076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078#ifdef __STDC__
4079# include <limits.h>
4080#else
4081# include <assert.h>
4082#endif
4083		     Syntax error
4084_ACEOF
4085if ac_fn_c_try_cpp "$LINENO"; then :
4086
4087else
4088  # Broken: fails on valid input.
4089continue
4090fi
4091rm -f conftest.err conftest.i conftest.$ac_ext
4092
4093  # OK, works on sane cases.  Now check whether nonexistent headers
4094  # can be detected and how.
4095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h.  */
4097#include <ac_nonexistent.h>
4098_ACEOF
4099if ac_fn_c_try_cpp "$LINENO"; then :
4100  # Broken: success on invalid input.
4101continue
4102else
4103  # Passes both tests.
4104ac_preproc_ok=:
4105break
4106fi
4107rm -f conftest.err conftest.i conftest.$ac_ext
4108
4109done
4110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4111rm -f conftest.i conftest.err conftest.$ac_ext
4112if $ac_preproc_ok; then :
4113  break
4114fi
4115
4116    done
4117    ac_cv_prog_CPP=$CPP
4118
4119fi
4120  CPP=$ac_cv_prog_CPP
4121else
4122  ac_cv_prog_CPP=$CPP
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4125$as_echo "$CPP" >&6; }
4126ac_preproc_ok=false
4127for ac_c_preproc_warn_flag in '' yes
4128do
4129  # Use a header file that comes with gcc, so configuring glibc
4130  # with a fresh cross-compiler works.
4131  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132  # <limits.h> exists even on freestanding compilers.
4133  # On the NeXT, cc -E runs the code through the compiler's parser,
4134  # not just through cpp. "Syntax error" is here to catch this case.
4135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h.  */
4137#ifdef __STDC__
4138# include <limits.h>
4139#else
4140# include <assert.h>
4141#endif
4142		     Syntax error
4143_ACEOF
4144if ac_fn_c_try_cpp "$LINENO"; then :
4145
4146else
4147  # Broken: fails on valid input.
4148continue
4149fi
4150rm -f conftest.err conftest.i conftest.$ac_ext
4151
4152  # OK, works on sane cases.  Now check whether nonexistent headers
4153  # can be detected and how.
4154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h.  */
4156#include <ac_nonexistent.h>
4157_ACEOF
4158if ac_fn_c_try_cpp "$LINENO"; then :
4159  # Broken: success on invalid input.
4160continue
4161else
4162  # Passes both tests.
4163ac_preproc_ok=:
4164break
4165fi
4166rm -f conftest.err conftest.i conftest.$ac_ext
4167
4168done
4169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170rm -f conftest.i conftest.err conftest.$ac_ext
4171if $ac_preproc_ok; then :
4172
4173else
4174  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4177See \`config.log' for more details" "$LINENO" 5; }
4178fi
4179
4180ac_ext=c
4181ac_cpp='$CPP $CPPFLAGS'
4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
4186
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4188$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4189if ${ac_cv_path_GREP+:} false; then :
4190  $as_echo_n "(cached) " >&6
4191else
4192  if test -z "$GREP"; then
4193  ac_path_GREP_found=false
4194  # Loop through the user's path and test for each of PROGNAME-LIST
4195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197do
4198  IFS=$as_save_IFS
4199  test -z "$as_dir" && as_dir=.
4200    for ac_prog in grep ggrep; do
4201    for ac_exec_ext in '' $ac_executable_extensions; do
4202      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4203      as_fn_executable_p "$ac_path_GREP" || continue
4204# Check for GNU ac_path_GREP and select it if it is found.
4205  # Check for GNU $ac_path_GREP
4206case `"$ac_path_GREP" --version 2>&1` in
4207*GNU*)
4208  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4209*)
4210  ac_count=0
4211  $as_echo_n 0123456789 >"conftest.in"
4212  while :
4213  do
4214    cat "conftest.in" "conftest.in" >"conftest.tmp"
4215    mv "conftest.tmp" "conftest.in"
4216    cp "conftest.in" "conftest.nl"
4217    $as_echo 'GREP' >> "conftest.nl"
4218    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220    as_fn_arith $ac_count + 1 && ac_count=$as_val
4221    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4222      # Best one so far, save it but keep looking for a better one
4223      ac_cv_path_GREP="$ac_path_GREP"
4224      ac_path_GREP_max=$ac_count
4225    fi
4226    # 10*(2^10) chars as input seems more than enough
4227    test $ac_count -gt 10 && break
4228  done
4229  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230esac
4231
4232      $ac_path_GREP_found && break 3
4233    done
4234  done
4235  done
4236IFS=$as_save_IFS
4237  if test -z "$ac_cv_path_GREP"; then
4238    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239  fi
4240else
4241  ac_cv_path_GREP=$GREP
4242fi
4243
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4246$as_echo "$ac_cv_path_GREP" >&6; }
4247 GREP="$ac_cv_path_GREP"
4248
4249
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4251$as_echo_n "checking for egrep... " >&6; }
4252if ${ac_cv_path_EGREP+:} false; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4256   then ac_cv_path_EGREP="$GREP -E"
4257   else
4258     if test -z "$EGREP"; then
4259  ac_path_EGREP_found=false
4260  # Loop through the user's path and test for each of PROGNAME-LIST
4261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263do
4264  IFS=$as_save_IFS
4265  test -z "$as_dir" && as_dir=.
4266    for ac_prog in egrep; do
4267    for ac_exec_ext in '' $ac_executable_extensions; do
4268      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4269      as_fn_executable_p "$ac_path_EGREP" || continue
4270# Check for GNU ac_path_EGREP and select it if it is found.
4271  # Check for GNU $ac_path_EGREP
4272case `"$ac_path_EGREP" --version 2>&1` in
4273*GNU*)
4274  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4275*)
4276  ac_count=0
4277  $as_echo_n 0123456789 >"conftest.in"
4278  while :
4279  do
4280    cat "conftest.in" "conftest.in" >"conftest.tmp"
4281    mv "conftest.tmp" "conftest.in"
4282    cp "conftest.in" "conftest.nl"
4283    $as_echo 'EGREP' >> "conftest.nl"
4284    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286    as_fn_arith $ac_count + 1 && ac_count=$as_val
4287    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4288      # Best one so far, save it but keep looking for a better one
4289      ac_cv_path_EGREP="$ac_path_EGREP"
4290      ac_path_EGREP_max=$ac_count
4291    fi
4292    # 10*(2^10) chars as input seems more than enough
4293    test $ac_count -gt 10 && break
4294  done
4295  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296esac
4297
4298      $ac_path_EGREP_found && break 3
4299    done
4300  done
4301  done
4302IFS=$as_save_IFS
4303  if test -z "$ac_cv_path_EGREP"; then
4304    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305  fi
4306else
4307  ac_cv_path_EGREP=$EGREP
4308fi
4309
4310   fi
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4313$as_echo "$ac_cv_path_EGREP" >&6; }
4314 EGREP="$ac_cv_path_EGREP"
4315
4316
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4318$as_echo_n "checking for ANSI C header files... " >&6; }
4319if ${ac_cv_header_stdc+:} false; then :
4320  $as_echo_n "(cached) " >&6
4321else
4322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324#include <stdlib.h>
4325#include <stdarg.h>
4326#include <string.h>
4327#include <float.h>
4328
4329int
4330main ()
4331{
4332
4333  ;
4334  return 0;
4335}
4336_ACEOF
4337if ac_fn_c_try_compile "$LINENO"; then :
4338  ac_cv_header_stdc=yes
4339else
4340  ac_cv_header_stdc=no
4341fi
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343
4344if test $ac_cv_header_stdc = yes; then
4345  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348#include <string.h>
4349
4350_ACEOF
4351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352  $EGREP "memchr" >/dev/null 2>&1; then :
4353
4354else
4355  ac_cv_header_stdc=no
4356fi
4357rm -f conftest*
4358
4359fi
4360
4361if test $ac_cv_header_stdc = yes; then
4362  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365#include <stdlib.h>
4366
4367_ACEOF
4368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369  $EGREP "free" >/dev/null 2>&1; then :
4370
4371else
4372  ac_cv_header_stdc=no
4373fi
4374rm -f conftest*
4375
4376fi
4377
4378if test $ac_cv_header_stdc = yes; then
4379  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4380  if test "$cross_compiling" = yes; then :
4381  :
4382else
4383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h.  */
4385#include <ctype.h>
4386#include <stdlib.h>
4387#if ((' ' & 0x0FF) == 0x020)
4388# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4389# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4390#else
4391# define ISLOWER(c) \
4392		   (('a' <= (c) && (c) <= 'i') \
4393		     || ('j' <= (c) && (c) <= 'r') \
4394		     || ('s' <= (c) && (c) <= 'z'))
4395# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4396#endif
4397
4398#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4399int
4400main ()
4401{
4402  int i;
4403  for (i = 0; i < 256; i++)
4404    if (XOR (islower (i), ISLOWER (i))
4405	|| toupper (i) != TOUPPER (i))
4406      return 2;
4407  return 0;
4408}
4409_ACEOF
4410if ac_fn_c_try_run "$LINENO"; then :
4411
4412else
4413  ac_cv_header_stdc=no
4414fi
4415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4416  conftest.$ac_objext conftest.beam conftest.$ac_ext
4417fi
4418
4419fi
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4422$as_echo "$ac_cv_header_stdc" >&6; }
4423if test $ac_cv_header_stdc = yes; then
4424
4425$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4426
4427fi
4428
4429# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4430for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431		  inttypes.h stdint.h unistd.h
4432do :
4433  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4435"
4436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4437  cat >>confdefs.h <<_ACEOF
4438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4439_ACEOF
4440
4441fi
4442
4443done
4444
4445
4446
4447  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4448if test "x$ac_cv_header_minix_config_h" = xyes; then :
4449  MINIX=yes
4450else
4451  MINIX=
4452fi
4453
4454
4455  if test "$MINIX" = yes; then
4456
4457$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4458
4459
4460$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4461
4462
4463$as_echo "#define _MINIX 1" >>confdefs.h
4464
4465  fi
4466
4467
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4469$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4470if ${ac_cv_safe_to_define___extensions__+:} false; then :
4471  $as_echo_n "(cached) " >&6
4472else
4473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h.  */
4475
4476#         define __EXTENSIONS__ 1
4477          $ac_includes_default
4478int
4479main ()
4480{
4481
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486if ac_fn_c_try_compile "$LINENO"; then :
4487  ac_cv_safe_to_define___extensions__=yes
4488else
4489  ac_cv_safe_to_define___extensions__=no
4490fi
4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4494$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4495  test $ac_cv_safe_to_define___extensions__ = yes &&
4496    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4497
4498  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4499
4500  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4501
4502  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4503
4504  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4505
4506
4507for ac_func in __secure_getenv secure_getenv
4508do :
4509  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4510ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4511if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4512  cat >>confdefs.h <<_ACEOF
4513#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4514_ACEOF
4515
4516fi
4517done
4518
4519
4520# Disable static libraries by default.  Use --enable-static if you really want
4521# them.
4522# Check whether --enable-static was given.
4523if test "${enable_static+set}" = set; then :
4524  enableval=$enable_static; p=${PACKAGE-default}
4525    case $enableval in
4526    yes) enable_static=yes ;;
4527    no) enable_static=no ;;
4528    *)
4529     enable_static=no
4530      # Look at the argument we got.  We use all the common list separators.
4531      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4532      for pkg in $enableval; do
4533	IFS=$lt_save_ifs
4534	if test "X$pkg" = "X$p"; then
4535	  enable_static=yes
4536	fi
4537      done
4538      IFS=$lt_save_ifs
4539      ;;
4540    esac
4541else
4542  enable_static=no
4543fi
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554# Check for programs.
4555ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560if test -n "$ac_tool_prefix"; then
4561  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4562set dummy ${ac_tool_prefix}gcc; ac_word=$2
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564$as_echo_n "checking for $ac_word... " >&6; }
4565if ${ac_cv_prog_CC+:} false; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  if test -n "$CC"; then
4569  ac_cv_prog_CC="$CC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_exec_ext in '' $ac_executable_extensions; do
4577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583  done
4584IFS=$as_save_IFS
4585
4586fi
4587fi
4588CC=$ac_cv_prog_CC
4589if test -n "$CC"; then
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591$as_echo "$CC" >&6; }
4592else
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595fi
4596
4597
4598fi
4599if test -z "$ac_cv_prog_CC"; then
4600  ac_ct_CC=$CC
4601  # Extract the first word of "gcc", so it can be a program name with args.
4602set dummy gcc; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if ${ac_cv_prog_ac_ct_CC+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -n "$ac_ct_CC"; then
4609  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618    ac_cv_prog_ac_ct_CC="gcc"
4619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629if test -n "$ac_ct_CC"; then
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4631$as_echo "$ac_ct_CC" >&6; }
4632else
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637  if test "x$ac_ct_CC" = x; then
4638    CC=""
4639  else
4640    case $cross_compiling:$ac_tool_warned in
4641yes:)
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644ac_tool_warned=yes ;;
4645esac
4646    CC=$ac_ct_CC
4647  fi
4648else
4649  CC="$ac_cv_prog_CC"
4650fi
4651
4652if test -z "$CC"; then
4653          if test -n "$ac_tool_prefix"; then
4654    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655set dummy ${ac_tool_prefix}cc; ac_word=$2
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657$as_echo_n "checking for $ac_word... " >&6; }
4658if ${ac_cv_prog_CC+:} false; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661  if test -n "$CC"; then
4662  ac_cv_prog_CC="$CC" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667  IFS=$as_save_IFS
4668  test -z "$as_dir" && as_dir=.
4669    for ac_exec_ext in '' $ac_executable_extensions; do
4670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671    ac_cv_prog_CC="${ac_tool_prefix}cc"
4672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673    break 2
4674  fi
4675done
4676  done
4677IFS=$as_save_IFS
4678
4679fi
4680fi
4681CC=$ac_cv_prog_CC
4682if test -n "$CC"; then
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684$as_echo "$CC" >&6; }
4685else
4686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687$as_echo "no" >&6; }
4688fi
4689
4690
4691  fi
4692fi
4693if test -z "$CC"; then
4694  # Extract the first word of "cc", so it can be a program name with args.
4695set dummy cc; ac_word=$2
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697$as_echo_n "checking for $ac_word... " >&6; }
4698if ${ac_cv_prog_CC+:} false; then :
4699  $as_echo_n "(cached) " >&6
4700else
4701  if test -n "$CC"; then
4702  ac_cv_prog_CC="$CC" # Let the user override the test.
4703else
4704  ac_prog_rejected=no
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710    for ac_exec_ext in '' $ac_executable_extensions; do
4711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713       ac_prog_rejected=yes
4714       continue
4715     fi
4716    ac_cv_prog_CC="cc"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724if test $ac_prog_rejected = yes; then
4725  # We found a bogon in the path, so make sure we never use it.
4726  set dummy $ac_cv_prog_CC
4727  shift
4728  if test $# != 0; then
4729    # We chose a different compiler from the bogus one.
4730    # However, it has the same basename, so the bogon will be chosen
4731    # first if we set CC to just the basename; use the full file name.
4732    shift
4733    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4734  fi
4735fi
4736fi
4737fi
4738CC=$ac_cv_prog_CC
4739if test -n "$CC"; then
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741$as_echo "$CC" >&6; }
4742else
4743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744$as_echo "no" >&6; }
4745fi
4746
4747
4748fi
4749if test -z "$CC"; then
4750  if test -n "$ac_tool_prefix"; then
4751  for ac_prog in cl.exe
4752  do
4753    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if ${ac_cv_prog_CC+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  if test -n "$CC"; then
4761  ac_cv_prog_CC="$CC" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766  IFS=$as_save_IFS
4767  test -z "$as_dir" && as_dir=.
4768    for ac_exec_ext in '' $ac_executable_extensions; do
4769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772    break 2
4773  fi
4774done
4775  done
4776IFS=$as_save_IFS
4777
4778fi
4779fi
4780CC=$ac_cv_prog_CC
4781if test -n "$CC"; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783$as_echo "$CC" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790    test -n "$CC" && break
4791  done
4792fi
4793if test -z "$CC"; then
4794  ac_ct_CC=$CC
4795  for ac_prog in cl.exe
4796do
4797  # Extract the first word of "$ac_prog", so it can be a program name with args.
4798set dummy $ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_ac_ct_CC+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$ac_ct_CC"; then
4805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814    ac_cv_prog_ac_ct_CC="$ac_prog"
4815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819  done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824ac_ct_CC=$ac_cv_prog_ac_ct_CC
4825if test -n "$ac_ct_CC"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4827$as_echo "$ac_ct_CC" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834  test -n "$ac_ct_CC" && break
4835done
4836
4837  if test "x$ac_ct_CC" = x; then
4838    CC=""
4839  else
4840    case $cross_compiling:$ac_tool_warned in
4841yes:)
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844ac_tool_warned=yes ;;
4845esac
4846    CC=$ac_ct_CC
4847  fi
4848fi
4849
4850fi
4851
4852
4853test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855as_fn_error $? "no acceptable C compiler found in \$PATH
4856See \`config.log' for more details" "$LINENO" 5; }
4857
4858# Provide some information about the compiler.
4859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4860set X $ac_compile
4861ac_compiler=$2
4862for ac_option in --version -v -V -qversion; do
4863  { { ac_try="$ac_compiler $ac_option >&5"
4864case "(($ac_try" in
4865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866  *) ac_try_echo=$ac_try;;
4867esac
4868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869$as_echo "$ac_try_echo"; } >&5
4870  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4871  ac_status=$?
4872  if test -s conftest.err; then
4873    sed '10a\
4874... rest of stderr output deleted ...
4875         10q' conftest.err >conftest.er1
4876    cat conftest.er1 >&5
4877  fi
4878  rm -f conftest.er1 conftest.err
4879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880  test $ac_status = 0; }
4881done
4882
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4884$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4885if ${ac_cv_c_compiler_gnu+:} false; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h.  */
4890
4891int
4892main ()
4893{
4894#ifndef __GNUC__
4895       choke me
4896#endif
4897
4898  ;
4899  return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  ac_compiler_gnu=yes
4904else
4905  ac_compiler_gnu=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908ac_cv_c_compiler_gnu=$ac_compiler_gnu
4909
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4912$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4913if test $ac_compiler_gnu = yes; then
4914  GCC=yes
4915else
4916  GCC=
4917fi
4918ac_test_CFLAGS=${CFLAGS+set}
4919ac_save_CFLAGS=$CFLAGS
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921$as_echo_n "checking whether $CC accepts -g... " >&6; }
4922if ${ac_cv_prog_cc_g+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  ac_save_c_werror_flag=$ac_c_werror_flag
4926   ac_c_werror_flag=yes
4927   ac_cv_prog_cc_g=no
4928   CFLAGS="-g"
4929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930/* end confdefs.h.  */
4931
4932int
4933main ()
4934{
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940if ac_fn_c_try_compile "$LINENO"; then :
4941  ac_cv_prog_cc_g=yes
4942else
4943  CFLAGS=""
4944      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h.  */
4946
4947int
4948main ()
4949{
4950
4951  ;
4952  return 0;
4953}
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"; then :
4956
4957else
4958  ac_c_werror_flag=$ac_save_c_werror_flag
4959	 CFLAGS="-g"
4960	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961/* end confdefs.h.  */
4962
4963int
4964main ()
4965{
4966
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971if ac_fn_c_try_compile "$LINENO"; then :
4972  ac_cv_prog_cc_g=yes
4973fi
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975fi
4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979   ac_c_werror_flag=$ac_save_c_werror_flag
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4982$as_echo "$ac_cv_prog_cc_g" >&6; }
4983if test "$ac_test_CFLAGS" = set; then
4984  CFLAGS=$ac_save_CFLAGS
4985elif test $ac_cv_prog_cc_g = yes; then
4986  if test "$GCC" = yes; then
4987    CFLAGS="-g -O2"
4988  else
4989    CFLAGS="-g"
4990  fi
4991else
4992  if test "$GCC" = yes; then
4993    CFLAGS="-O2"
4994  else
4995    CFLAGS=
4996  fi
4997fi
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4999$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5000if ${ac_cv_prog_cc_c89+:} false; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003  ac_cv_prog_cc_c89=no
5004ac_save_CC=$CC
5005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007#include <stdarg.h>
5008#include <stdio.h>
5009struct stat;
5010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5011struct buf { int x; };
5012FILE * (*rcsopen) (struct buf *, struct stat *, int);
5013static char *e (p, i)
5014     char **p;
5015     int i;
5016{
5017  return p[i];
5018}
5019static char *f (char * (*g) (char **, int), char **p, ...)
5020{
5021  char *s;
5022  va_list v;
5023  va_start (v,p);
5024  s = g (p, va_arg (v,int));
5025  va_end (v);
5026  return s;
5027}
5028
5029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5030   function prototypes and stuff, but not '\xHH' hex character constants.
5031   These don't provoke an error unfortunately, instead are silently treated
5032   as 'x'.  The following induces an error, until -std is added to get
5033   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5034   array size at least.  It's necessary to write '\x00'==0 to get something
5035   that's true only with -std.  */
5036int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5037
5038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5039   inside strings and character constants.  */
5040#define FOO(x) 'x'
5041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5042
5043int test (int i, double x);
5044struct s1 {int (*f) (int a);};
5045struct s2 {int (*f) (double a);};
5046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5047int argc;
5048char **argv;
5049int
5050main ()
5051{
5052return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5058	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5059do
5060  CC="$ac_save_CC $ac_arg"
5061  if ac_fn_c_try_compile "$LINENO"; then :
5062  ac_cv_prog_cc_c89=$ac_arg
5063fi
5064rm -f core conftest.err conftest.$ac_objext
5065  test "x$ac_cv_prog_cc_c89" != "xno" && break
5066done
5067rm -f conftest.$ac_ext
5068CC=$ac_save_CC
5069
5070fi
5071# AC_CACHE_VAL
5072case "x$ac_cv_prog_cc_c89" in
5073  x)
5074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5075$as_echo "none needed" >&6; } ;;
5076  xno)
5077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5078$as_echo "unsupported" >&6; } ;;
5079  *)
5080    CC="$CC $ac_cv_prog_cc_c89"
5081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5083esac
5084if test "x$ac_cv_prog_cc_c89" != xno; then :
5085
5086fi
5087
5088ac_ext=c
5089ac_cpp='$CPP $CPPFLAGS'
5090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094ac_ext=c
5095ac_cpp='$CPP $CPPFLAGS'
5096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5100$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5101if ${am_cv_prog_cc_c_o+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106
5107int
5108main ()
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115  # Make sure it works both with $CC and with simple cc.
5116  # Following AC_PROG_CC_C_O, we do the test twice because some
5117  # compilers refuse to overwrite an existing .o file with -o,
5118  # though they will create one.
5119  am_cv_prog_cc_c_o=yes
5120  for am_i in 1 2; do
5121    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5122   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5123   ac_status=$?
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } \
5126         && test -f conftest2.$ac_objext; then
5127      : OK
5128    else
5129      am_cv_prog_cc_c_o=no
5130      break
5131    fi
5132  done
5133  rm -f core conftest*
5134  unset am_i
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5137$as_echo "$am_cv_prog_cc_c_o" >&6; }
5138if test "$am_cv_prog_cc_c_o" != yes; then
5139   # Losing compiler, so override with the script.
5140   # FIXME: It is wrong to rewrite CC.
5141   # But if we don't then we get into trouble of one sort or another.
5142   # A longer-term fix would be to have automake use am__CC in this case,
5143   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5144   CC="$am_aux_dir/compile $CC"
5145fi
5146ac_ext=c
5147ac_cpp='$CPP $CPPFLAGS'
5148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152
5153depcc="$CC"   am_compiler_list=
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5156$as_echo_n "checking dependency style of $depcc... " >&6; }
5157if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5161  # We make a subdir and do the tests there.  Otherwise we can end up
5162  # making bogus files that we don't know about and never remove.  For
5163  # instance it was reported that on HP-UX the gcc test will end up
5164  # making a dummy file named 'D' -- because '-MD' means "put the output
5165  # in D".
5166  rm -rf conftest.dir
5167  mkdir conftest.dir
5168  # Copy depcomp to subdir because otherwise we won't find it if we're
5169  # using a relative directory.
5170  cp "$am_depcomp" conftest.dir
5171  cd conftest.dir
5172  # We will build objects and dependencies in a subdirectory because
5173  # it helps to detect inapplicable dependency modes.  For instance
5174  # both Tru64's cc and ICC support -MD to output dependencies as a
5175  # side effect of compilation, but ICC will put the dependencies in
5176  # the current directory while Tru64 will put them in the object
5177  # directory.
5178  mkdir sub
5179
5180  am_cv_CC_dependencies_compiler_type=none
5181  if test "$am_compiler_list" = ""; then
5182     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5183  fi
5184  am__universal=false
5185  case " $depcc " in #(
5186     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5187     esac
5188
5189  for depmode in $am_compiler_list; do
5190    # Setup a source with many dependencies, because some compilers
5191    # like to wrap large dependency lists on column 80 (with \), and
5192    # we should not choose a depcomp mode which is confused by this.
5193    #
5194    # We need to recreate these files for each test, as the compiler may
5195    # overwrite some of them when testing with obscure command lines.
5196    # This happens at least with the AIX C compiler.
5197    : > sub/conftest.c
5198    for i in 1 2 3 4 5 6; do
5199      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5201      # Solaris 10 /bin/sh.
5202      echo '/* dummy */' > sub/conftst$i.h
5203    done
5204    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5205
5206    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5207    # mode.  It turns out that the SunPro C++ compiler does not properly
5208    # handle '-M -o', and we need to detect this.  Also, some Intel
5209    # versions had trouble with output in subdirs.
5210    am__obj=sub/conftest.${OBJEXT-o}
5211    am__minus_obj="-o $am__obj"
5212    case $depmode in
5213    gcc)
5214      # This depmode causes a compiler race in universal mode.
5215      test "$am__universal" = false || continue
5216      ;;
5217    nosideeffect)
5218      # After this tag, mechanisms are not by side-effect, so they'll
5219      # only be used when explicitly requested.
5220      if test "x$enable_dependency_tracking" = xyes; then
5221	continue
5222      else
5223	break
5224      fi
5225      ;;
5226    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5227      # This compiler won't grok '-c -o', but also, the minuso test has
5228      # not run yet.  These depmodes are late enough in the game, and
5229      # so weak that their functioning should not be impacted.
5230      am__obj=conftest.${OBJEXT-o}
5231      am__minus_obj=
5232      ;;
5233    none) break ;;
5234    esac
5235    if depmode=$depmode \
5236       source=sub/conftest.c object=$am__obj \
5237       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5238       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5239         >/dev/null 2>conftest.err &&
5240       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5241       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5242       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5243       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5244      # icc doesn't choke on unknown options, it will just issue warnings
5245      # or remarks (even with -Werror).  So we grep stderr for any message
5246      # that says an option was ignored or not supported.
5247      # When given -MP, icc 7.0 and 7.1 complain thusly:
5248      #   icc: Command line warning: ignoring option '-M'; no argument required
5249      # The diagnosis changed in icc 8.0:
5250      #   icc: Command line remark: option '-MP' not supported
5251      if (grep 'ignoring option' conftest.err ||
5252          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5253        am_cv_CC_dependencies_compiler_type=$depmode
5254        break
5255      fi
5256    fi
5257  done
5258
5259  cd ..
5260  rm -rf conftest.dir
5261else
5262  am_cv_CC_dependencies_compiler_type=none
5263fi
5264
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5267$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5268CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5269
5270 if
5271  test "x$enable_dependency_tracking" != xno \
5272  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5273  am__fastdepCC_TRUE=
5274  am__fastdepCC_FALSE='#'
5275else
5276  am__fastdepCC_TRUE='#'
5277  am__fastdepCC_FALSE=
5278fi
5279
5280
5281ac_ext=cpp
5282ac_cpp='$CXXCPP $CPPFLAGS'
5283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5286if test -z "$CXX"; then
5287  if test -n "$CCC"; then
5288    CXX=$CCC
5289  else
5290    if test -n "$ac_tool_prefix"; then
5291  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5292  do
5293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296$as_echo_n "checking for $ac_word... " >&6; }
5297if ${ac_cv_prog_CXX+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  if test -n "$CXX"; then
5301  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308    for ac_exec_ext in '' $ac_executable_extensions; do
5309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312    break 2
5313  fi
5314done
5315  done
5316IFS=$as_save_IFS
5317
5318fi
5319fi
5320CXX=$ac_cv_prog_CXX
5321if test -n "$CXX"; then
5322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5323$as_echo "$CXX" >&6; }
5324else
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327fi
5328
5329
5330    test -n "$CXX" && break
5331  done
5332fi
5333if test -z "$CXX"; then
5334  ac_ct_CXX=$CXX
5335  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5336do
5337  # Extract the first word of "$ac_prog", so it can be a program name with args.
5338set dummy $ac_prog; ac_word=$2
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340$as_echo_n "checking for $ac_word... " >&6; }
5341if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344  if test -n "$ac_ct_CXX"; then
5345  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352    for ac_exec_ext in '' $ac_executable_extensions; do
5353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354    ac_cv_prog_ac_ct_CXX="$ac_prog"
5355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356    break 2
5357  fi
5358done
5359  done
5360IFS=$as_save_IFS
5361
5362fi
5363fi
5364ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5365if test -n "$ac_ct_CXX"; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5367$as_echo "$ac_ct_CXX" >&6; }
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374  test -n "$ac_ct_CXX" && break
5375done
5376
5377  if test "x$ac_ct_CXX" = x; then
5378    CXX="g++"
5379  else
5380    case $cross_compiling:$ac_tool_warned in
5381yes:)
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384ac_tool_warned=yes ;;
5385esac
5386    CXX=$ac_ct_CXX
5387  fi
5388fi
5389
5390  fi
5391fi
5392# Provide some information about the compiler.
5393$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5394set X $ac_compile
5395ac_compiler=$2
5396for ac_option in --version -v -V -qversion; do
5397  { { ac_try="$ac_compiler $ac_option >&5"
5398case "(($ac_try" in
5399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400  *) ac_try_echo=$ac_try;;
5401esac
5402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5403$as_echo "$ac_try_echo"; } >&5
5404  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5405  ac_status=$?
5406  if test -s conftest.err; then
5407    sed '10a\
5408... rest of stderr output deleted ...
5409         10q' conftest.err >conftest.er1
5410    cat conftest.er1 >&5
5411  fi
5412  rm -f conftest.er1 conftest.err
5413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5414  test $ac_status = 0; }
5415done
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5418$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5419if ${ac_cv_cxx_compiler_gnu+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424
5425int
5426main ()
5427{
5428#ifndef __GNUC__
5429       choke me
5430#endif
5431
5432  ;
5433  return 0;
5434}
5435_ACEOF
5436if ac_fn_cxx_try_compile "$LINENO"; then :
5437  ac_compiler_gnu=yes
5438else
5439  ac_compiler_gnu=no
5440fi
5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5443
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5446$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5447if test $ac_compiler_gnu = yes; then
5448  GXX=yes
5449else
5450  GXX=
5451fi
5452ac_test_CXXFLAGS=${CXXFLAGS+set}
5453ac_save_CXXFLAGS=$CXXFLAGS
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5455$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5456if ${ac_cv_prog_cxx_g+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5460   ac_cxx_werror_flag=yes
5461   ac_cv_prog_cxx_g=no
5462   CXXFLAGS="-g"
5463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h.  */
5465
5466int
5467main ()
5468{
5469
5470  ;
5471  return 0;
5472}
5473_ACEOF
5474if ac_fn_cxx_try_compile "$LINENO"; then :
5475  ac_cv_prog_cxx_g=yes
5476else
5477  CXXFLAGS=""
5478      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480
5481int
5482main ()
5483{
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_cxx_try_compile "$LINENO"; then :
5490
5491else
5492  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5493	 CXXFLAGS="-g"
5494	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496
5497int
5498main ()
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_cxx_try_compile "$LINENO"; then :
5506  ac_cv_prog_cxx_g=yes
5507fi
5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509fi
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5514fi
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5516$as_echo "$ac_cv_prog_cxx_g" >&6; }
5517if test "$ac_test_CXXFLAGS" = set; then
5518  CXXFLAGS=$ac_save_CXXFLAGS
5519elif test $ac_cv_prog_cxx_g = yes; then
5520  if test "$GXX" = yes; then
5521    CXXFLAGS="-g -O2"
5522  else
5523    CXXFLAGS="-g"
5524  fi
5525else
5526  if test "$GXX" = yes; then
5527    CXXFLAGS="-O2"
5528  else
5529    CXXFLAGS=
5530  fi
5531fi
5532ac_ext=c
5533ac_cpp='$CPP $CPPFLAGS'
5534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
5538depcc="$CXX"  am_compiler_list=
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5541$as_echo_n "checking dependency style of $depcc... " >&6; }
5542if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5546  # We make a subdir and do the tests there.  Otherwise we can end up
5547  # making bogus files that we don't know about and never remove.  For
5548  # instance it was reported that on HP-UX the gcc test will end up
5549  # making a dummy file named 'D' -- because '-MD' means "put the output
5550  # in D".
5551  rm -rf conftest.dir
5552  mkdir conftest.dir
5553  # Copy depcomp to subdir because otherwise we won't find it if we're
5554  # using a relative directory.
5555  cp "$am_depcomp" conftest.dir
5556  cd conftest.dir
5557  # We will build objects and dependencies in a subdirectory because
5558  # it helps to detect inapplicable dependency modes.  For instance
5559  # both Tru64's cc and ICC support -MD to output dependencies as a
5560  # side effect of compilation, but ICC will put the dependencies in
5561  # the current directory while Tru64 will put them in the object
5562  # directory.
5563  mkdir sub
5564
5565  am_cv_CXX_dependencies_compiler_type=none
5566  if test "$am_compiler_list" = ""; then
5567     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5568  fi
5569  am__universal=false
5570  case " $depcc " in #(
5571     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5572     esac
5573
5574  for depmode in $am_compiler_list; do
5575    # Setup a source with many dependencies, because some compilers
5576    # like to wrap large dependency lists on column 80 (with \), and
5577    # we should not choose a depcomp mode which is confused by this.
5578    #
5579    # We need to recreate these files for each test, as the compiler may
5580    # overwrite some of them when testing with obscure command lines.
5581    # This happens at least with the AIX C compiler.
5582    : > sub/conftest.c
5583    for i in 1 2 3 4 5 6; do
5584      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5585      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5586      # Solaris 10 /bin/sh.
5587      echo '/* dummy */' > sub/conftst$i.h
5588    done
5589    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5590
5591    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5592    # mode.  It turns out that the SunPro C++ compiler does not properly
5593    # handle '-M -o', and we need to detect this.  Also, some Intel
5594    # versions had trouble with output in subdirs.
5595    am__obj=sub/conftest.${OBJEXT-o}
5596    am__minus_obj="-o $am__obj"
5597    case $depmode in
5598    gcc)
5599      # This depmode causes a compiler race in universal mode.
5600      test "$am__universal" = false || continue
5601      ;;
5602    nosideeffect)
5603      # After this tag, mechanisms are not by side-effect, so they'll
5604      # only be used when explicitly requested.
5605      if test "x$enable_dependency_tracking" = xyes; then
5606	continue
5607      else
5608	break
5609      fi
5610      ;;
5611    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5612      # This compiler won't grok '-c -o', but also, the minuso test has
5613      # not run yet.  These depmodes are late enough in the game, and
5614      # so weak that their functioning should not be impacted.
5615      am__obj=conftest.${OBJEXT-o}
5616      am__minus_obj=
5617      ;;
5618    none) break ;;
5619    esac
5620    if depmode=$depmode \
5621       source=sub/conftest.c object=$am__obj \
5622       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5623       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5624         >/dev/null 2>conftest.err &&
5625       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5626       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5627       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5628       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5629      # icc doesn't choke on unknown options, it will just issue warnings
5630      # or remarks (even with -Werror).  So we grep stderr for any message
5631      # that says an option was ignored or not supported.
5632      # When given -MP, icc 7.0 and 7.1 complain thusly:
5633      #   icc: Command line warning: ignoring option '-M'; no argument required
5634      # The diagnosis changed in icc 8.0:
5635      #   icc: Command line remark: option '-MP' not supported
5636      if (grep 'ignoring option' conftest.err ||
5637          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5638        am_cv_CXX_dependencies_compiler_type=$depmode
5639        break
5640      fi
5641    fi
5642  done
5643
5644  cd ..
5645  rm -rf conftest.dir
5646else
5647  am_cv_CXX_dependencies_compiler_type=none
5648fi
5649
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5652$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5653CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5654
5655 if
5656  test "x$enable_dependency_tracking" != xno \
5657  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5658  am__fastdepCXX_TRUE=
5659  am__fastdepCXX_FALSE='#'
5660else
5661  am__fastdepCXX_TRUE='#'
5662  am__fastdepCXX_FALSE=
5663fi
5664
5665
5666case `pwd` in
5667  *\ * | *\	*)
5668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5669$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5670esac
5671
5672
5673
5674macro_version='2.4.6'
5675macro_revision='2.4.6'
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689ltmain=$ac_aux_dir/ltmain.sh
5690
5691# Make sure we can run config.sub.
5692$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5693  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5694
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5696$as_echo_n "checking build system type... " >&6; }
5697if ${ac_cv_build+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  ac_build_alias=$build_alias
5701test "x$ac_build_alias" = x &&
5702  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5703test "x$ac_build_alias" = x &&
5704  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5705ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5706  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5707
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5710$as_echo "$ac_cv_build" >&6; }
5711case $ac_cv_build in
5712*-*-*) ;;
5713*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5714esac
5715build=$ac_cv_build
5716ac_save_IFS=$IFS; IFS='-'
5717set x $ac_cv_build
5718shift
5719build_cpu=$1
5720build_vendor=$2
5721shift; shift
5722# Remember, the first character of IFS is used to create $*,
5723# except with old shells:
5724build_os=$*
5725IFS=$ac_save_IFS
5726case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5730$as_echo_n "checking host system type... " >&6; }
5731if ${ac_cv_host+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  if test "x$host_alias" = x; then
5735  ac_cv_host=$ac_cv_build
5736else
5737  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5738    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5739fi
5740
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5743$as_echo "$ac_cv_host" >&6; }
5744case $ac_cv_host in
5745*-*-*) ;;
5746*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5747esac
5748host=$ac_cv_host
5749ac_save_IFS=$IFS; IFS='-'
5750set x $ac_cv_host
5751shift
5752host_cpu=$1
5753host_vendor=$2
5754shift; shift
5755# Remember, the first character of IFS is used to create $*,
5756# except with old shells:
5757host_os=$*
5758IFS=$ac_save_IFS
5759case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5760
5761
5762# Backslashify metacharacters that are still active within
5763# double-quoted strings.
5764sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5765
5766# Same as above, but do not quote variable references.
5767double_quote_subst='s/\(["`\\]\)/\\\1/g'
5768
5769# Sed substitution to delay expansion of an escaped shell variable in a
5770# double_quote_subst'ed string.
5771delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5772
5773# Sed substitution to delay expansion of an escaped single quote.
5774delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5775
5776# Sed substitution to avoid accidental globbing in evaled expressions
5777no_glob_subst='s/\*/\\\*/g'
5778
5779ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5780ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5781ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5782
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5784$as_echo_n "checking how to print strings... " >&6; }
5785# Test print first, because it will be a builtin if present.
5786if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5787   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5788  ECHO='print -r --'
5789elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5790  ECHO='printf %s\n'
5791else
5792  # Use this function as a fallback that always works.
5793  func_fallback_echo ()
5794  {
5795    eval 'cat <<_LTECHO_EOF
5796$1
5797_LTECHO_EOF'
5798  }
5799  ECHO='func_fallback_echo'
5800fi
5801
5802# func_echo_all arg...
5803# Invoke $ECHO with all args, space-separated.
5804func_echo_all ()
5805{
5806    $ECHO ""
5807}
5808
5809case $ECHO in
5810  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5811$as_echo "printf" >&6; } ;;
5812  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5813$as_echo "print -r" >&6; } ;;
5814  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5815$as_echo "cat" >&6; } ;;
5816esac
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5832$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5833if ${ac_cv_path_SED+:} false; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5837     for ac_i in 1 2 3 4 5 6 7; do
5838       ac_script="$ac_script$as_nl$ac_script"
5839     done
5840     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5841     { ac_script=; unset ac_script;}
5842     if test -z "$SED"; then
5843  ac_path_SED_found=false
5844  # Loop through the user's path and test for each of PROGNAME-LIST
5845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_prog in sed gsed; do
5851    for ac_exec_ext in '' $ac_executable_extensions; do
5852      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5853      as_fn_executable_p "$ac_path_SED" || continue
5854# Check for GNU ac_path_SED and select it if it is found.
5855  # Check for GNU $ac_path_SED
5856case `"$ac_path_SED" --version 2>&1` in
5857*GNU*)
5858  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5859*)
5860  ac_count=0
5861  $as_echo_n 0123456789 >"conftest.in"
5862  while :
5863  do
5864    cat "conftest.in" "conftest.in" >"conftest.tmp"
5865    mv "conftest.tmp" "conftest.in"
5866    cp "conftest.in" "conftest.nl"
5867    $as_echo '' >> "conftest.nl"
5868    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870    as_fn_arith $ac_count + 1 && ac_count=$as_val
5871    if test $ac_count -gt ${ac_path_SED_max-0}; then
5872      # Best one so far, save it but keep looking for a better one
5873      ac_cv_path_SED="$ac_path_SED"
5874      ac_path_SED_max=$ac_count
5875    fi
5876    # 10*(2^10) chars as input seems more than enough
5877    test $ac_count -gt 10 && break
5878  done
5879  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880esac
5881
5882      $ac_path_SED_found && break 3
5883    done
5884  done
5885  done
5886IFS=$as_save_IFS
5887  if test -z "$ac_cv_path_SED"; then
5888    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5889  fi
5890else
5891  ac_cv_path_SED=$SED
5892fi
5893
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5896$as_echo "$ac_cv_path_SED" >&6; }
5897 SED="$ac_cv_path_SED"
5898  rm -f conftest.sed
5899
5900test -z "$SED" && SED=sed
5901Xsed="$SED -e 1s/^X//"
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5914$as_echo_n "checking for fgrep... " >&6; }
5915if ${ac_cv_path_FGREP+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5919   then ac_cv_path_FGREP="$GREP -F"
5920   else
5921     if test -z "$FGREP"; then
5922  ac_path_FGREP_found=false
5923  # Loop through the user's path and test for each of PROGNAME-LIST
5924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5926do
5927  IFS=$as_save_IFS
5928  test -z "$as_dir" && as_dir=.
5929    for ac_prog in fgrep; do
5930    for ac_exec_ext in '' $ac_executable_extensions; do
5931      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5932      as_fn_executable_p "$ac_path_FGREP" || continue
5933# Check for GNU ac_path_FGREP and select it if it is found.
5934  # Check for GNU $ac_path_FGREP
5935case `"$ac_path_FGREP" --version 2>&1` in
5936*GNU*)
5937  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5938*)
5939  ac_count=0
5940  $as_echo_n 0123456789 >"conftest.in"
5941  while :
5942  do
5943    cat "conftest.in" "conftest.in" >"conftest.tmp"
5944    mv "conftest.tmp" "conftest.in"
5945    cp "conftest.in" "conftest.nl"
5946    $as_echo 'FGREP' >> "conftest.nl"
5947    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5949    as_fn_arith $ac_count + 1 && ac_count=$as_val
5950    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5951      # Best one so far, save it but keep looking for a better one
5952      ac_cv_path_FGREP="$ac_path_FGREP"
5953      ac_path_FGREP_max=$ac_count
5954    fi
5955    # 10*(2^10) chars as input seems more than enough
5956    test $ac_count -gt 10 && break
5957  done
5958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5959esac
5960
5961      $ac_path_FGREP_found && break 3
5962    done
5963  done
5964  done
5965IFS=$as_save_IFS
5966  if test -z "$ac_cv_path_FGREP"; then
5967    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5968  fi
5969else
5970  ac_cv_path_FGREP=$FGREP
5971fi
5972
5973   fi
5974fi
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5976$as_echo "$ac_cv_path_FGREP" >&6; }
5977 FGREP="$ac_cv_path_FGREP"
5978
5979
5980test -z "$GREP" && GREP=grep
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000# Check whether --with-gnu-ld was given.
6001if test "${with_gnu_ld+set}" = set; then :
6002  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6003else
6004  with_gnu_ld=no
6005fi
6006
6007ac_prog=ld
6008if test yes = "$GCC"; then
6009  # Check if gcc -print-prog-name=ld gives a path.
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6011$as_echo_n "checking for ld used by $CC... " >&6; }
6012  case $host in
6013  *-*-mingw*)
6014    # gcc leaves a trailing carriage return, which upsets mingw
6015    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6016  *)
6017    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6018  esac
6019  case $ac_prog in
6020    # Accept absolute paths.
6021    [\\/]* | ?:[\\/]*)
6022      re_direlt='/[^/][^/]*/\.\./'
6023      # Canonicalize the pathname of ld
6024      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6025      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6026	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6027      done
6028      test -z "$LD" && LD=$ac_prog
6029      ;;
6030  "")
6031    # If it fails, then pretend we aren't using GCC.
6032    ac_prog=ld
6033    ;;
6034  *)
6035    # If it is relative, then search for the first ld in PATH.
6036    with_gnu_ld=unknown
6037    ;;
6038  esac
6039elif test yes = "$with_gnu_ld"; then
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6041$as_echo_n "checking for GNU ld... " >&6; }
6042else
6043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6044$as_echo_n "checking for non-GNU ld... " >&6; }
6045fi
6046if ${lt_cv_path_LD+:} false; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  if test -z "$LD"; then
6050  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6051  for ac_dir in $PATH; do
6052    IFS=$lt_save_ifs
6053    test -z "$ac_dir" && ac_dir=.
6054    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6055      lt_cv_path_LD=$ac_dir/$ac_prog
6056      # Check to see if the program is GNU ld.  I'd rather use --version,
6057      # but apparently some variants of GNU ld only accept -v.
6058      # Break only if it was the GNU/non-GNU ld that we prefer.
6059      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6060      *GNU* | *'with BFD'*)
6061	test no != "$with_gnu_ld" && break
6062	;;
6063      *)
6064	test yes != "$with_gnu_ld" && break
6065	;;
6066      esac
6067    fi
6068  done
6069  IFS=$lt_save_ifs
6070else
6071  lt_cv_path_LD=$LD # Let the user override the test with a path.
6072fi
6073fi
6074
6075LD=$lt_cv_path_LD
6076if test -n "$LD"; then
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6078$as_echo "$LD" >&6; }
6079else
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6085$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6086if ${lt_cv_prog_gnu_ld+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6090case `$LD -v 2>&1 </dev/null` in
6091*GNU* | *'with BFD'*)
6092  lt_cv_prog_gnu_ld=yes
6093  ;;
6094*)
6095  lt_cv_prog_gnu_ld=no
6096  ;;
6097esac
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6100$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6101with_gnu_ld=$lt_cv_prog_gnu_ld
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6112$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6113if ${lt_cv_path_NM+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  if test -n "$NM"; then
6117  # Let the user override the test.
6118  lt_cv_path_NM=$NM
6119else
6120  lt_nm_to_check=${ac_tool_prefix}nm
6121  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6122    lt_nm_to_check="$lt_nm_to_check nm"
6123  fi
6124  for lt_tmp_nm in $lt_nm_to_check; do
6125    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6126    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6127      IFS=$lt_save_ifs
6128      test -z "$ac_dir" && ac_dir=.
6129      tmp_nm=$ac_dir/$lt_tmp_nm
6130      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6131	# Check to see if the nm accepts a BSD-compat flag.
6132	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6133	#   nm: unknown option "B" ignored
6134	# Tru64's nm complains that /dev/null is an invalid object file
6135	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6136	case $build_os in
6137	mingw*) lt_bad_file=conftest.nm/nofile ;;
6138	*) lt_bad_file=/dev/null ;;
6139	esac
6140	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6141	*$lt_bad_file* | *'Invalid file or object type'*)
6142	  lt_cv_path_NM="$tmp_nm -B"
6143	  break 2
6144	  ;;
6145	*)
6146	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6147	  */dev/null*)
6148	    lt_cv_path_NM="$tmp_nm -p"
6149	    break 2
6150	    ;;
6151	  *)
6152	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6153	    continue # so that we can try to find one that supports BSD flags
6154	    ;;
6155	  esac
6156	  ;;
6157	esac
6158      fi
6159    done
6160    IFS=$lt_save_ifs
6161  done
6162  : ${lt_cv_path_NM=no}
6163fi
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6166$as_echo "$lt_cv_path_NM" >&6; }
6167if test no != "$lt_cv_path_NM"; then
6168  NM=$lt_cv_path_NM
6169else
6170  # Didn't find any BSD compatible name lister, look for dumpbin.
6171  if test -n "$DUMPBIN"; then :
6172    # Let the user override the test.
6173  else
6174    if test -n "$ac_tool_prefix"; then
6175  for ac_prog in dumpbin "link -dump"
6176  do
6177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
6181if ${ac_cv_prog_DUMPBIN+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  if test -n "$DUMPBIN"; then
6185  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190  IFS=$as_save_IFS
6191  test -z "$as_dir" && as_dir=.
6192    for ac_exec_ext in '' $ac_executable_extensions; do
6193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199  done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204DUMPBIN=$ac_cv_prog_DUMPBIN
6205if test -n "$DUMPBIN"; then
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6207$as_echo "$DUMPBIN" >&6; }
6208else
6209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214    test -n "$DUMPBIN" && break
6215  done
6216fi
6217if test -z "$DUMPBIN"; then
6218  ac_ct_DUMPBIN=$DUMPBIN
6219  for ac_prog in dumpbin "link -dump"
6220do
6221  # Extract the first word of "$ac_prog", so it can be a program name with args.
6222set dummy $ac_prog; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
6225if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  if test -n "$ac_ct_DUMPBIN"; then
6229  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236    for ac_exec_ext in '' $ac_executable_extensions; do
6237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243  done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6249if test -n "$ac_ct_DUMPBIN"; then
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6251$as_echo "$ac_ct_DUMPBIN" >&6; }
6252else
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258  test -n "$ac_ct_DUMPBIN" && break
6259done
6260
6261  if test "x$ac_ct_DUMPBIN" = x; then
6262    DUMPBIN=":"
6263  else
6264    case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270    DUMPBIN=$ac_ct_DUMPBIN
6271  fi
6272fi
6273
6274    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6275    *COFF*)
6276      DUMPBIN="$DUMPBIN -symbols -headers"
6277      ;;
6278    *)
6279      DUMPBIN=:
6280      ;;
6281    esac
6282  fi
6283
6284  if test : != "$DUMPBIN"; then
6285    NM=$DUMPBIN
6286  fi
6287fi
6288test -z "$NM" && NM=nm
6289
6290
6291
6292
6293
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6296$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6297if ${lt_cv_nm_interface+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  lt_cv_nm_interface="BSD nm"
6301  echo "int some_variable = 0;" > conftest.$ac_ext
6302  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6303  (eval "$ac_compile" 2>conftest.err)
6304  cat conftest.err >&5
6305  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6306  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6307  cat conftest.err >&5
6308  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6309  cat conftest.out >&5
6310  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6311    lt_cv_nm_interface="MS dumpbin"
6312  fi
6313  rm -f conftest*
6314fi
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6316$as_echo "$lt_cv_nm_interface" >&6; }
6317
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6319$as_echo_n "checking whether ln -s works... " >&6; }
6320LN_S=$as_ln_s
6321if test "$LN_S" = "ln -s"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6323$as_echo "yes" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6326$as_echo "no, using $LN_S" >&6; }
6327fi
6328
6329# find the maximum length of command line arguments
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6331$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6332if ${lt_cv_sys_max_cmd_len+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335    i=0
6336  teststring=ABCD
6337
6338  case $build_os in
6339  msdosdjgpp*)
6340    # On DJGPP, this test can blow up pretty badly due to problems in libc
6341    # (any single argument exceeding 2000 bytes causes a buffer overrun
6342    # during glob expansion).  Even if it were fixed, the result of this
6343    # check would be larger than it should be.
6344    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6345    ;;
6346
6347  gnu*)
6348    # Under GNU Hurd, this test is not required because there is
6349    # no limit to the length of command line arguments.
6350    # Libtool will interpret -1 as no limit whatsoever
6351    lt_cv_sys_max_cmd_len=-1;
6352    ;;
6353
6354  cygwin* | mingw* | cegcc*)
6355    # On Win9x/ME, this test blows up -- it succeeds, but takes
6356    # about 5 minutes as the teststring grows exponentially.
6357    # Worse, since 9x/ME are not pre-emptively multitasking,
6358    # you end up with a "frozen" computer, even though with patience
6359    # the test eventually succeeds (with a max line length of 256k).
6360    # Instead, let's just punt: use the minimum linelength reported by
6361    # all of the supported platforms: 8192 (on NT/2K/XP).
6362    lt_cv_sys_max_cmd_len=8192;
6363    ;;
6364
6365  mint*)
6366    # On MiNT this can take a long time and run out of memory.
6367    lt_cv_sys_max_cmd_len=8192;
6368    ;;
6369
6370  amigaos*)
6371    # On AmigaOS with pdksh, this test takes hours, literally.
6372    # So we just punt and use a minimum line length of 8192.
6373    lt_cv_sys_max_cmd_len=8192;
6374    ;;
6375
6376  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6377    # This has been around since 386BSD, at least.  Likely further.
6378    if test -x /sbin/sysctl; then
6379      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6380    elif test -x /usr/sbin/sysctl; then
6381      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6382    else
6383      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6384    fi
6385    # And add a safety zone
6386    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6387    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6388    ;;
6389
6390  interix*)
6391    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6392    lt_cv_sys_max_cmd_len=196608
6393    ;;
6394
6395  os2*)
6396    # The test takes a long time on OS/2.
6397    lt_cv_sys_max_cmd_len=8192
6398    ;;
6399
6400  osf*)
6401    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6402    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6403    # nice to cause kernel panics so lets avoid the loop below.
6404    # First set a reasonable default.
6405    lt_cv_sys_max_cmd_len=16384
6406    #
6407    if test -x /sbin/sysconfig; then
6408      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6409        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6410      esac
6411    fi
6412    ;;
6413  sco3.2v5*)
6414    lt_cv_sys_max_cmd_len=102400
6415    ;;
6416  sysv5* | sco5v6* | sysv4.2uw2*)
6417    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6418    if test -n "$kargmax"; then
6419      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6420    else
6421      lt_cv_sys_max_cmd_len=32768
6422    fi
6423    ;;
6424  *)
6425    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6426    if test -n "$lt_cv_sys_max_cmd_len" && \
6427       test undefined != "$lt_cv_sys_max_cmd_len"; then
6428      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6429      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6430    else
6431      # Make teststring a little bigger before we do anything with it.
6432      # a 1K string should be a reasonable start.
6433      for i in 1 2 3 4 5 6 7 8; do
6434        teststring=$teststring$teststring
6435      done
6436      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6437      # If test is not a shell built-in, we'll probably end up computing a
6438      # maximum length that is only half of the actual maximum length, but
6439      # we can't tell.
6440      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6441	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6442	      test 17 != "$i" # 1/2 MB should be enough
6443      do
6444        i=`expr $i + 1`
6445        teststring=$teststring$teststring
6446      done
6447      # Only check the string length outside the loop.
6448      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6449      teststring=
6450      # Add a significant safety factor because C++ compilers can tack on
6451      # massive amounts of additional arguments before passing them to the
6452      # linker.  It appears as though 1/2 is a usable value.
6453      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6454    fi
6455    ;;
6456  esac
6457
6458fi
6459
6460if test -n "$lt_cv_sys_max_cmd_len"; then
6461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6462$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6463else
6464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6465$as_echo "none" >&6; }
6466fi
6467max_cmd_len=$lt_cv_sys_max_cmd_len
6468
6469
6470
6471
6472
6473
6474: ${CP="cp -f"}
6475: ${MV="mv -f"}
6476: ${RM="rm -f"}
6477
6478if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6479  lt_unset=unset
6480else
6481  lt_unset=false
6482fi
6483
6484
6485
6486
6487
6488# test EBCDIC or ASCII
6489case `echo X|tr X '\101'` in
6490 A) # ASCII based system
6491    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6492  lt_SP2NL='tr \040 \012'
6493  lt_NL2SP='tr \015\012 \040\040'
6494  ;;
6495 *) # EBCDIC based system
6496  lt_SP2NL='tr \100 \n'
6497  lt_NL2SP='tr \r\n \100\100'
6498  ;;
6499esac
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6510$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6511if ${lt_cv_to_host_file_cmd+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  case $host in
6515  *-*-mingw* )
6516    case $build in
6517      *-*-mingw* ) # actually msys
6518        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6519        ;;
6520      *-*-cygwin* )
6521        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6522        ;;
6523      * ) # otherwise, assume *nix
6524        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6525        ;;
6526    esac
6527    ;;
6528  *-*-cygwin* )
6529    case $build in
6530      *-*-mingw* ) # actually msys
6531        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6532        ;;
6533      *-*-cygwin* )
6534        lt_cv_to_host_file_cmd=func_convert_file_noop
6535        ;;
6536      * ) # otherwise, assume *nix
6537        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6538        ;;
6539    esac
6540    ;;
6541  * ) # unhandled hosts (and "normal" native builds)
6542    lt_cv_to_host_file_cmd=func_convert_file_noop
6543    ;;
6544esac
6545
6546fi
6547
6548to_host_file_cmd=$lt_cv_to_host_file_cmd
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6550$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6551
6552
6553
6554
6555
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6557$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6558if ${lt_cv_to_tool_file_cmd+:} false; then :
6559  $as_echo_n "(cached) " >&6
6560else
6561  #assume ordinary cross tools, or native build.
6562lt_cv_to_tool_file_cmd=func_convert_file_noop
6563case $host in
6564  *-*-mingw* )
6565    case $build in
6566      *-*-mingw* ) # actually msys
6567        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6568        ;;
6569    esac
6570    ;;
6571esac
6572
6573fi
6574
6575to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6577$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6578
6579
6580
6581
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6584$as_echo_n "checking for $LD option to reload object files... " >&6; }
6585if ${lt_cv_ld_reload_flag+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  lt_cv_ld_reload_flag='-r'
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6591$as_echo "$lt_cv_ld_reload_flag" >&6; }
6592reload_flag=$lt_cv_ld_reload_flag
6593case $reload_flag in
6594"" | " "*) ;;
6595*) reload_flag=" $reload_flag" ;;
6596esac
6597reload_cmds='$LD$reload_flag -o $output$reload_objs'
6598case $host_os in
6599  cygwin* | mingw* | pw32* | cegcc*)
6600    if test yes != "$GCC"; then
6601      reload_cmds=false
6602    fi
6603    ;;
6604  darwin*)
6605    if test yes = "$GCC"; then
6606      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6607    else
6608      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6609    fi
6610    ;;
6611esac
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621if test -n "$ac_tool_prefix"; then
6622  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6623set dummy ${ac_tool_prefix}objdump; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
6626if ${ac_cv_prog_OBJDUMP+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  if test -n "$OBJDUMP"; then
6630  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637    for ac_exec_ext in '' $ac_executable_extensions; do
6638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644  done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649OBJDUMP=$ac_cv_prog_OBJDUMP
6650if test -n "$OBJDUMP"; then
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6652$as_echo "$OBJDUMP" >&6; }
6653else
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658
6659fi
6660if test -z "$ac_cv_prog_OBJDUMP"; then
6661  ac_ct_OBJDUMP=$OBJDUMP
6662  # Extract the first word of "objdump", so it can be a program name with args.
6663set dummy objdump; ac_word=$2
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665$as_echo_n "checking for $ac_word... " >&6; }
6666if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  if test -n "$ac_ct_OBJDUMP"; then
6670  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  test -z "$as_dir" && as_dir=.
6677    for ac_exec_ext in '' $ac_executable_extensions; do
6678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681    break 2
6682  fi
6683done
6684  done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6690if test -n "$ac_ct_OBJDUMP"; then
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6692$as_echo "$ac_ct_OBJDUMP" >&6; }
6693else
6694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695$as_echo "no" >&6; }
6696fi
6697
6698  if test "x$ac_ct_OBJDUMP" = x; then
6699    OBJDUMP="false"
6700  else
6701    case $cross_compiling:$ac_tool_warned in
6702yes:)
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705ac_tool_warned=yes ;;
6706esac
6707    OBJDUMP=$ac_ct_OBJDUMP
6708  fi
6709else
6710  OBJDUMP="$ac_cv_prog_OBJDUMP"
6711fi
6712
6713test -z "$OBJDUMP" && OBJDUMP=objdump
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6724$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6725if ${lt_cv_deplibs_check_method+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  lt_cv_file_magic_cmd='$MAGIC_CMD'
6729lt_cv_file_magic_test_file=
6730lt_cv_deplibs_check_method='unknown'
6731# Need to set the preceding variable on all platforms that support
6732# interlibrary dependencies.
6733# 'none' -- dependencies not supported.
6734# 'unknown' -- same as none, but documents that we really don't know.
6735# 'pass_all' -- all dependencies passed with no checks.
6736# 'test_compile' -- check by making test program.
6737# 'file_magic [[regex]]' -- check by looking for files in library path
6738# that responds to the $file_magic_cmd with a given extended regex.
6739# If you have 'file' or equivalent on your system and you're not sure
6740# whether 'pass_all' will *always* work, you probably want this one.
6741
6742case $host_os in
6743aix[4-9]*)
6744  lt_cv_deplibs_check_method=pass_all
6745  ;;
6746
6747beos*)
6748  lt_cv_deplibs_check_method=pass_all
6749  ;;
6750
6751bsdi[45]*)
6752  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6753  lt_cv_file_magic_cmd='/usr/bin/file -L'
6754  lt_cv_file_magic_test_file=/shlib/libc.so
6755  ;;
6756
6757cygwin*)
6758  # func_win32_libid is a shell function defined in ltmain.sh
6759  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6760  lt_cv_file_magic_cmd='func_win32_libid'
6761  ;;
6762
6763mingw* | pw32*)
6764  # Base MSYS/MinGW do not provide the 'file' command needed by
6765  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6766  # unless we find 'file', for example because we are cross-compiling.
6767  if ( file / ) >/dev/null 2>&1; then
6768    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6769    lt_cv_file_magic_cmd='func_win32_libid'
6770  else
6771    # Keep this pattern in sync with the one in func_win32_libid.
6772    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6773    lt_cv_file_magic_cmd='$OBJDUMP -f'
6774  fi
6775  ;;
6776
6777cegcc*)
6778  # use the weaker test based on 'objdump'. See mingw*.
6779  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6780  lt_cv_file_magic_cmd='$OBJDUMP -f'
6781  ;;
6782
6783darwin* | rhapsody*)
6784  lt_cv_deplibs_check_method=pass_all
6785  ;;
6786
6787freebsd* | dragonfly*)
6788  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6789    case $host_cpu in
6790    i*86 )
6791      # Not sure whether the presence of OpenBSD here was a mistake.
6792      # Let's accept both of them until this is cleared up.
6793      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6794      lt_cv_file_magic_cmd=/usr/bin/file
6795      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6796      ;;
6797    esac
6798  else
6799    lt_cv_deplibs_check_method=pass_all
6800  fi
6801  ;;
6802
6803haiku*)
6804  lt_cv_deplibs_check_method=pass_all
6805  ;;
6806
6807hpux10.20* | hpux11*)
6808  lt_cv_file_magic_cmd=/usr/bin/file
6809  case $host_cpu in
6810  ia64*)
6811    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6812    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6813    ;;
6814  hppa*64*)
6815    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]'
6816    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6817    ;;
6818  *)
6819    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6820    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6821    ;;
6822  esac
6823  ;;
6824
6825interix[3-9]*)
6826  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6827  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6828  ;;
6829
6830irix5* | irix6* | nonstopux*)
6831  case $LD in
6832  *-32|*"-32 ") libmagic=32-bit;;
6833  *-n32|*"-n32 ") libmagic=N32;;
6834  *-64|*"-64 ") libmagic=64-bit;;
6835  *) libmagic=never-match;;
6836  esac
6837  lt_cv_deplibs_check_method=pass_all
6838  ;;
6839
6840# This must be glibc/ELF.
6841linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6842  lt_cv_deplibs_check_method=pass_all
6843  ;;
6844
6845netbsd*)
6846  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6847    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6848  else
6849    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6850  fi
6851  ;;
6852
6853newos6*)
6854  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6855  lt_cv_file_magic_cmd=/usr/bin/file
6856  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6857  ;;
6858
6859*nto* | *qnx*)
6860  lt_cv_deplibs_check_method=pass_all
6861  ;;
6862
6863openbsd* | bitrig*)
6864  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6865    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6866  else
6867    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6868  fi
6869  ;;
6870
6871osf3* | osf4* | osf5*)
6872  lt_cv_deplibs_check_method=pass_all
6873  ;;
6874
6875rdos*)
6876  lt_cv_deplibs_check_method=pass_all
6877  ;;
6878
6879solaris*)
6880  lt_cv_deplibs_check_method=pass_all
6881  ;;
6882
6883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6884  lt_cv_deplibs_check_method=pass_all
6885  ;;
6886
6887sysv4 | sysv4.3*)
6888  case $host_vendor in
6889  motorola)
6890    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]'
6891    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6892    ;;
6893  ncr)
6894    lt_cv_deplibs_check_method=pass_all
6895    ;;
6896  sequent)
6897    lt_cv_file_magic_cmd='/bin/file'
6898    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6899    ;;
6900  sni)
6901    lt_cv_file_magic_cmd='/bin/file'
6902    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6903    lt_cv_file_magic_test_file=/lib/libc.so
6904    ;;
6905  siemens)
6906    lt_cv_deplibs_check_method=pass_all
6907    ;;
6908  pc)
6909    lt_cv_deplibs_check_method=pass_all
6910    ;;
6911  esac
6912  ;;
6913
6914tpf*)
6915  lt_cv_deplibs_check_method=pass_all
6916  ;;
6917os2*)
6918  lt_cv_deplibs_check_method=pass_all
6919  ;;
6920esac
6921
6922fi
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6924$as_echo "$lt_cv_deplibs_check_method" >&6; }
6925
6926file_magic_glob=
6927want_nocaseglob=no
6928if test "$build" = "$host"; then
6929  case $host_os in
6930  mingw* | pw32*)
6931    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6932      want_nocaseglob=yes
6933    else
6934      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6935    fi
6936    ;;
6937  esac
6938fi
6939
6940file_magic_cmd=$lt_cv_file_magic_cmd
6941deplibs_check_method=$lt_cv_deplibs_check_method
6942test -z "$deplibs_check_method" && deplibs_check_method=unknown
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965if test -n "$ac_tool_prefix"; then
6966  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6967set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969$as_echo_n "checking for $ac_word... " >&6; }
6970if ${ac_cv_prog_DLLTOOL+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  if test -n "$DLLTOOL"; then
6974  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6975else
6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981    for ac_exec_ext in '' $ac_executable_extensions; do
6982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985    break 2
6986  fi
6987done
6988  done
6989IFS=$as_save_IFS
6990
6991fi
6992fi
6993DLLTOOL=$ac_cv_prog_DLLTOOL
6994if test -n "$DLLTOOL"; then
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6996$as_echo "$DLLTOOL" >&6; }
6997else
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999$as_echo "no" >&6; }
7000fi
7001
7002
7003fi
7004if test -z "$ac_cv_prog_DLLTOOL"; then
7005  ac_ct_DLLTOOL=$DLLTOOL
7006  # Extract the first word of "dlltool", so it can be a program name with args.
7007set dummy dlltool; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  if test -n "$ac_ct_DLLTOOL"; then
7014  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019  IFS=$as_save_IFS
7020  test -z "$as_dir" && as_dir=.
7021    for ac_exec_ext in '' $ac_executable_extensions; do
7022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025    break 2
7026  fi
7027done
7028  done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7034if test -n "$ac_ct_DLLTOOL"; then
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7036$as_echo "$ac_ct_DLLTOOL" >&6; }
7037else
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042  if test "x$ac_ct_DLLTOOL" = x; then
7043    DLLTOOL="false"
7044  else
7045    case $cross_compiling:$ac_tool_warned in
7046yes:)
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051    DLLTOOL=$ac_ct_DLLTOOL
7052  fi
7053else
7054  DLLTOOL="$ac_cv_prog_DLLTOOL"
7055fi
7056
7057test -z "$DLLTOOL" && DLLTOOL=dlltool
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7069$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7070if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  lt_cv_sharedlib_from_linklib_cmd='unknown'
7074
7075case $host_os in
7076cygwin* | mingw* | pw32* | cegcc*)
7077  # two different shell functions defined in ltmain.sh;
7078  # decide which one to use based on capabilities of $DLLTOOL
7079  case `$DLLTOOL --help 2>&1` in
7080  *--identify-strict*)
7081    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7082    ;;
7083  *)
7084    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7085    ;;
7086  esac
7087  ;;
7088*)
7089  # fallback: assume linklib IS sharedlib
7090  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7091  ;;
7092esac
7093
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7096$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7097sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7098test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7099
7100
7101
7102
7103
7104
7105
7106if test -n "$ac_tool_prefix"; then
7107  for ac_prog in ar
7108  do
7109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_AR+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$AR"; then
7117  ac_cv_prog_AR="$AR" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136AR=$ac_cv_prog_AR
7137if test -n "$AR"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7139$as_echo "$AR" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145
7146    test -n "$AR" && break
7147  done
7148fi
7149if test -z "$AR"; then
7150  ac_ct_AR=$AR
7151  for ac_prog in ar
7152do
7153  # Extract the first word of "$ac_prog", so it can be a program name with args.
7154set dummy $ac_prog; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if ${ac_cv_prog_ac_ct_AR+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  if test -n "$ac_ct_AR"; then
7161  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170    ac_cv_prog_ac_ct_AR="$ac_prog"
7171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180ac_ct_AR=$ac_cv_prog_ac_ct_AR
7181if test -n "$ac_ct_AR"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7183$as_echo "$ac_ct_AR" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189
7190  test -n "$ac_ct_AR" && break
7191done
7192
7193  if test "x$ac_ct_AR" = x; then
7194    AR="false"
7195  else
7196    case $cross_compiling:$ac_tool_warned in
7197yes:)
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200ac_tool_warned=yes ;;
7201esac
7202    AR=$ac_ct_AR
7203  fi
7204fi
7205
7206: ${AR=ar}
7207: ${AR_FLAGS=cru}
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7220$as_echo_n "checking for archiver @FILE support... " >&6; }
7221if ${lt_cv_ar_at_file+:} false; then :
7222  $as_echo_n "(cached) " >&6
7223else
7224  lt_cv_ar_at_file=no
7225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227
7228int
7229main ()
7230{
7231
7232  ;
7233  return 0;
7234}
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"; then :
7237  echo conftest.$ac_objext > conftest.lst
7238      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7239      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7240  (eval $lt_ar_try) 2>&5
7241  ac_status=$?
7242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243  test $ac_status = 0; }
7244      if test 0 -eq "$ac_status"; then
7245	# Ensure the archiver fails upon bogus file names.
7246	rm -f conftest.$ac_objext libconftest.a
7247	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7248  (eval $lt_ar_try) 2>&5
7249  ac_status=$?
7250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251  test $ac_status = 0; }
7252	if test 0 -ne "$ac_status"; then
7253          lt_cv_ar_at_file=@
7254        fi
7255      fi
7256      rm -f conftest.* libconftest.a
7257
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7263$as_echo "$lt_cv_ar_at_file" >&6; }
7264
7265if test no = "$lt_cv_ar_at_file"; then
7266  archiver_list_spec=
7267else
7268  archiver_list_spec=$lt_cv_ar_at_file
7269fi
7270
7271
7272
7273
7274
7275
7276
7277if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}strip; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_STRIP+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$STRIP"; then
7286  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293    for ac_exec_ext in '' $ac_executable_extensions; do
7294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300  done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305STRIP=$ac_cv_prog_STRIP
7306if test -n "$STRIP"; then
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7308$as_echo "$STRIP" >&6; }
7309else
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_STRIP"; then
7317  ac_ct_STRIP=$STRIP
7318  # Extract the first word of "strip", so it can be a program name with args.
7319set dummy strip; ac_word=$2
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  if test -n "$ac_ct_STRIP"; then
7326  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333    for ac_exec_ext in '' $ac_executable_extensions; do
7334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335    ac_cv_prog_ac_ct_STRIP="strip"
7336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340  done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7346if test -n "$ac_ct_STRIP"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7348$as_echo "$ac_ct_STRIP" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_STRIP" = x; then
7355    STRIP=":"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363    STRIP=$ac_ct_STRIP
7364  fi
7365else
7366  STRIP="$ac_cv_prog_STRIP"
7367fi
7368
7369test -z "$STRIP" && STRIP=:
7370
7371
7372
7373
7374
7375
7376if test -n "$ac_tool_prefix"; then
7377  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_prog_RANLIB+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$RANLIB"; then
7385  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404RANLIB=$ac_cv_prog_RANLIB
7405if test -n "$RANLIB"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7407$as_echo "$RANLIB" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413
7414fi
7415if test -z "$ac_cv_prog_RANLIB"; then
7416  ac_ct_RANLIB=$RANLIB
7417  # Extract the first word of "ranlib", so it can be a program name with args.
7418set dummy ranlib; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$ac_ct_RANLIB"; then
7425  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434    ac_cv_prog_ac_ct_RANLIB="ranlib"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7445if test -n "$ac_ct_RANLIB"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7447$as_echo "$ac_ct_RANLIB" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453  if test "x$ac_ct_RANLIB" = x; then
7454    RANLIB=":"
7455  else
7456    case $cross_compiling:$ac_tool_warned in
7457yes:)
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460ac_tool_warned=yes ;;
7461esac
7462    RANLIB=$ac_ct_RANLIB
7463  fi
7464else
7465  RANLIB="$ac_cv_prog_RANLIB"
7466fi
7467
7468test -z "$RANLIB" && RANLIB=:
7469
7470
7471
7472
7473
7474
7475# Determine commands to create old-style static archives.
7476old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7477old_postinstall_cmds='chmod 644 $oldlib'
7478old_postuninstall_cmds=
7479
7480if test -n "$RANLIB"; then
7481  case $host_os in
7482  bitrig* | openbsd*)
7483    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7484    ;;
7485  *)
7486    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7487    ;;
7488  esac
7489  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7490fi
7491
7492case $host_os in
7493  darwin*)
7494    lock_old_archive_extraction=yes ;;
7495  *)
7496    lock_old_archive_extraction=no ;;
7497esac
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537# If no C compiler was specified, use CC.
7538LTCC=${LTCC-"$CC"}
7539
7540# If no C compiler flags were specified, use CFLAGS.
7541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542
7543# Allow CC to be a program name with arguments.
7544compiler=$CC
7545
7546
7547# Check for command to grab the raw symbol name followed by C symbol from nm.
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7549$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7550if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7551  $as_echo_n "(cached) " >&6
7552else
7553
7554# These are sane defaults that work on at least a few old systems.
7555# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7556
7557# Character class describing NM global symbol codes.
7558symcode='[BCDEGRST]'
7559
7560# Regexp to match symbols that can be accessed directly from C.
7561sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7562
7563# Define system-specific variables.
7564case $host_os in
7565aix*)
7566  symcode='[BCDT]'
7567  ;;
7568cygwin* | mingw* | pw32* | cegcc*)
7569  symcode='[ABCDGISTW]'
7570  ;;
7571hpux*)
7572  if test ia64 = "$host_cpu"; then
7573    symcode='[ABCDEGRST]'
7574  fi
7575  ;;
7576irix* | nonstopux*)
7577  symcode='[BCDEGRST]'
7578  ;;
7579osf*)
7580  symcode='[BCDEGQRST]'
7581  ;;
7582solaris*)
7583  symcode='[BDRT]'
7584  ;;
7585sco3.2v5*)
7586  symcode='[DT]'
7587  ;;
7588sysv4.2uw2*)
7589  symcode='[DT]'
7590  ;;
7591sysv5* | sco5v6* | unixware* | OpenUNIX*)
7592  symcode='[ABDT]'
7593  ;;
7594sysv4)
7595  symcode='[DFNSTU]'
7596  ;;
7597esac
7598
7599# If we're using GNU nm, then use its standard symbol codes.
7600case `$NM -V 2>&1` in
7601*GNU* | *'with BFD'*)
7602  symcode='[ABCDGIRSTW]' ;;
7603esac
7604
7605if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7606  # Gets list of data symbols to import.
7607  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7608  # Adjust the below global symbol transforms to fixup imported variables.
7609  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7610  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7611  lt_c_name_lib_hook="\
7612  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7613  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7614else
7615  # Disable hooks by default.
7616  lt_cv_sys_global_symbol_to_import=
7617  lt_cdecl_hook=
7618  lt_c_name_hook=
7619  lt_c_name_lib_hook=
7620fi
7621
7622# Transform an extracted symbol line into a proper C declaration.
7623# Some systems (esp. on ia64) link data and code symbols differently,
7624# so use this general approach.
7625lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7626$lt_cdecl_hook\
7627" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7628" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7629
7630# Transform an extracted symbol line into symbol name and symbol address
7631lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7632$lt_c_name_hook\
7633" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7634" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7635
7636# Transform an extracted symbol line into symbol name with lib prefix and
7637# symbol address.
7638lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7639$lt_c_name_lib_hook\
7640" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7641" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7642" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7643
7644# Handle CRLF in mingw tool chain
7645opt_cr=
7646case $build_os in
7647mingw*)
7648  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7649  ;;
7650esac
7651
7652# Try without a prefix underscore, then with it.
7653for ac_symprfx in "" "_"; do
7654
7655  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7656  symxfrm="\\1 $ac_symprfx\\2 \\2"
7657
7658  # Write the raw and C identifiers.
7659  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7660    # Fake it for dumpbin and say T for any non-static function,
7661    # D for any global variable and I for any imported variable.
7662    # Also find C++ and __fastcall symbols from MSVC++,
7663    # which start with @ or ?.
7664    lt_cv_sys_global_symbol_pipe="$AWK '"\
7665"     {last_section=section; section=\$ 3};"\
7666"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7667"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7668"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7669"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7670"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7671"     \$ 0!~/External *\|/{next};"\
7672"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7673"     {if(hide[section]) next};"\
7674"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7675"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7676"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7677"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7678"     ' prfx=^$ac_symprfx"
7679  else
7680    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7681  fi
7682  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7683
7684  # Check to see that the pipe works correctly.
7685  pipe_works=no
7686
7687  rm -f conftest*
7688  cat > conftest.$ac_ext <<_LT_EOF
7689#ifdef __cplusplus
7690extern "C" {
7691#endif
7692char nm_test_var;
7693void nm_test_func(void);
7694void nm_test_func(void){}
7695#ifdef __cplusplus
7696}
7697#endif
7698int main(){nm_test_var='a';nm_test_func();return(0);}
7699_LT_EOF
7700
7701  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7702  (eval $ac_compile) 2>&5
7703  ac_status=$?
7704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705  test $ac_status = 0; }; then
7706    # Now try to grab the symbols.
7707    nlist=conftest.nm
7708    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7709  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7710  ac_status=$?
7711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712  test $ac_status = 0; } && test -s "$nlist"; then
7713      # Try sorting and uniquifying the output.
7714      if sort "$nlist" | uniq > "$nlist"T; then
7715	mv -f "$nlist"T "$nlist"
7716      else
7717	rm -f "$nlist"T
7718      fi
7719
7720      # Make sure that we snagged all the symbols we need.
7721      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7722	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7723	  cat <<_LT_EOF > conftest.$ac_ext
7724/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7725#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7726/* DATA imports from DLLs on WIN32 can't be const, because runtime
7727   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7728# define LT_DLSYM_CONST
7729#elif defined __osf__
7730/* This system does not cope well with relocations in const data.  */
7731# define LT_DLSYM_CONST
7732#else
7733# define LT_DLSYM_CONST const
7734#endif
7735
7736#ifdef __cplusplus
7737extern "C" {
7738#endif
7739
7740_LT_EOF
7741	  # Now generate the symbol file.
7742	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7743
7744	  cat <<_LT_EOF >> conftest.$ac_ext
7745
7746/* The mapping between symbol names and symbols.  */
7747LT_DLSYM_CONST struct {
7748  const char *name;
7749  void       *address;
7750}
7751lt__PROGRAM__LTX_preloaded_symbols[] =
7752{
7753  { "@PROGRAM@", (void *) 0 },
7754_LT_EOF
7755	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7756	  cat <<\_LT_EOF >> conftest.$ac_ext
7757  {0, (void *) 0}
7758};
7759
7760/* This works around a problem in FreeBSD linker */
7761#ifdef FREEBSD_WORKAROUND
7762static const void *lt_preloaded_setup() {
7763  return lt__PROGRAM__LTX_preloaded_symbols;
7764}
7765#endif
7766
7767#ifdef __cplusplus
7768}
7769#endif
7770_LT_EOF
7771	  # Now try linking the two files.
7772	  mv conftest.$ac_objext conftstm.$ac_objext
7773	  lt_globsym_save_LIBS=$LIBS
7774	  lt_globsym_save_CFLAGS=$CFLAGS
7775	  LIBS=conftstm.$ac_objext
7776	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7777	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7778  (eval $ac_link) 2>&5
7779  ac_status=$?
7780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7782	    pipe_works=yes
7783	  fi
7784	  LIBS=$lt_globsym_save_LIBS
7785	  CFLAGS=$lt_globsym_save_CFLAGS
7786	else
7787	  echo "cannot find nm_test_func in $nlist" >&5
7788	fi
7789      else
7790	echo "cannot find nm_test_var in $nlist" >&5
7791      fi
7792    else
7793      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7794    fi
7795  else
7796    echo "$progname: failed program was:" >&5
7797    cat conftest.$ac_ext >&5
7798  fi
7799  rm -rf conftest* conftst*
7800
7801  # Do not use the global_symbol_pipe unless it works.
7802  if test yes = "$pipe_works"; then
7803    break
7804  else
7805    lt_cv_sys_global_symbol_pipe=
7806  fi
7807done
7808
7809fi
7810
7811if test -z "$lt_cv_sys_global_symbol_pipe"; then
7812  lt_cv_sys_global_symbol_to_cdecl=
7813fi
7814if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7816$as_echo "failed" >&6; }
7817else
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7819$as_echo "ok" >&6; }
7820fi
7821
7822# Response file support.
7823if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7824  nm_file_list_spec='@'
7825elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7826  nm_file_list_spec='@'
7827fi
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7866$as_echo_n "checking for sysroot... " >&6; }
7867
7868# Check whether --with-sysroot was given.
7869if test "${with_sysroot+set}" = set; then :
7870  withval=$with_sysroot;
7871else
7872  with_sysroot=no
7873fi
7874
7875
7876lt_sysroot=
7877case $with_sysroot in #(
7878 yes)
7879   if test yes = "$GCC"; then
7880     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7881   fi
7882   ;; #(
7883 /*)
7884   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7885   ;; #(
7886 no|'')
7887   ;; #(
7888 *)
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7890$as_echo "$with_sysroot" >&6; }
7891   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7892   ;;
7893esac
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7896$as_echo "${lt_sysroot:-no}" >&6; }
7897
7898
7899
7900
7901
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7903$as_echo_n "checking for a working dd... " >&6; }
7904if ${ac_cv_path_lt_DD+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  printf 0123456789abcdef0123456789abcdef >conftest.i
7908cat conftest.i conftest.i >conftest2.i
7909: ${lt_DD:=$DD}
7910if test -z "$lt_DD"; then
7911  ac_path_lt_DD_found=false
7912  # Loop through the user's path and test for each of PROGNAME-LIST
7913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916  IFS=$as_save_IFS
7917  test -z "$as_dir" && as_dir=.
7918    for ac_prog in dd; do
7919    for ac_exec_ext in '' $ac_executable_extensions; do
7920      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7921      as_fn_executable_p "$ac_path_lt_DD" || continue
7922if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7923  cmp -s conftest.i conftest.out \
7924  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7925fi
7926      $ac_path_lt_DD_found && break 3
7927    done
7928  done
7929  done
7930IFS=$as_save_IFS
7931  if test -z "$ac_cv_path_lt_DD"; then
7932    :
7933  fi
7934else
7935  ac_cv_path_lt_DD=$lt_DD
7936fi
7937
7938rm -f conftest.i conftest2.i conftest.out
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7941$as_echo "$ac_cv_path_lt_DD" >&6; }
7942
7943
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7945$as_echo_n "checking how to truncate binary pipes... " >&6; }
7946if ${lt_cv_truncate_bin+:} false; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  printf 0123456789abcdef0123456789abcdef >conftest.i
7950cat conftest.i conftest.i >conftest2.i
7951lt_cv_truncate_bin=
7952if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7953  cmp -s conftest.i conftest.out \
7954  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7955fi
7956rm -f conftest.i conftest2.i conftest.out
7957test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7958fi
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7960$as_echo "$lt_cv_truncate_bin" >&6; }
7961
7962
7963
7964
7965
7966
7967
7968# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7969func_cc_basename ()
7970{
7971    for cc_temp in $*""; do
7972      case $cc_temp in
7973        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7975        \-*) ;;
7976        *) break;;
7977      esac
7978    done
7979    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7980}
7981
7982# Check whether --enable-libtool-lock was given.
7983if test "${enable_libtool_lock+set}" = set; then :
7984  enableval=$enable_libtool_lock;
7985fi
7986
7987test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7988
7989# Some flags need to be propagated to the compiler or linker for good
7990# libtool support.
7991case $host in
7992ia64-*-hpux*)
7993  # Find out what ABI is being produced by ac_compile, and set mode
7994  # options accordingly.
7995  echo 'int i;' > conftest.$ac_ext
7996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7997  (eval $ac_compile) 2>&5
7998  ac_status=$?
7999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000  test $ac_status = 0; }; then
8001    case `/usr/bin/file conftest.$ac_objext` in
8002      *ELF-32*)
8003	HPUX_IA64_MODE=32
8004	;;
8005      *ELF-64*)
8006	HPUX_IA64_MODE=64
8007	;;
8008    esac
8009  fi
8010  rm -rf conftest*
8011  ;;
8012*-*-irix6*)
8013  # Find out what ABI is being produced by ac_compile, and set linker
8014  # options accordingly.
8015  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8017  (eval $ac_compile) 2>&5
8018  ac_status=$?
8019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020  test $ac_status = 0; }; then
8021    if test yes = "$lt_cv_prog_gnu_ld"; then
8022      case `/usr/bin/file conftest.$ac_objext` in
8023	*32-bit*)
8024	  LD="${LD-ld} -melf32bsmip"
8025	  ;;
8026	*N32*)
8027	  LD="${LD-ld} -melf32bmipn32"
8028	  ;;
8029	*64-bit*)
8030	  LD="${LD-ld} -melf64bmip"
8031	;;
8032      esac
8033    else
8034      case `/usr/bin/file conftest.$ac_objext` in
8035	*32-bit*)
8036	  LD="${LD-ld} -32"
8037	  ;;
8038	*N32*)
8039	  LD="${LD-ld} -n32"
8040	  ;;
8041	*64-bit*)
8042	  LD="${LD-ld} -64"
8043	  ;;
8044      esac
8045    fi
8046  fi
8047  rm -rf conftest*
8048  ;;
8049
8050mips64*-*linux*)
8051  # Find out what ABI is being produced by ac_compile, and set linker
8052  # options accordingly.
8053  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8054  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8055  (eval $ac_compile) 2>&5
8056  ac_status=$?
8057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058  test $ac_status = 0; }; then
8059    emul=elf
8060    case `/usr/bin/file conftest.$ac_objext` in
8061      *32-bit*)
8062	emul="${emul}32"
8063	;;
8064      *64-bit*)
8065	emul="${emul}64"
8066	;;
8067    esac
8068    case `/usr/bin/file conftest.$ac_objext` in
8069      *MSB*)
8070	emul="${emul}btsmip"
8071	;;
8072      *LSB*)
8073	emul="${emul}ltsmip"
8074	;;
8075    esac
8076    case `/usr/bin/file conftest.$ac_objext` in
8077      *N32*)
8078	emul="${emul}n32"
8079	;;
8080    esac
8081    LD="${LD-ld} -m $emul"
8082  fi
8083  rm -rf conftest*
8084  ;;
8085
8086x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8087s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8088  # Find out what ABI is being produced by ac_compile, and set linker
8089  # options accordingly.  Note that the listed cases only cover the
8090  # situations where additional linker options are needed (such as when
8091  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8092  # vice versa); the common cases where no linker options are needed do
8093  # not appear in the list.
8094  echo 'int i;' > conftest.$ac_ext
8095  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096  (eval $ac_compile) 2>&5
8097  ac_status=$?
8098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099  test $ac_status = 0; }; then
8100    case `/usr/bin/file conftest.o` in
8101      *32-bit*)
8102	case $host in
8103	  x86_64-*kfreebsd*-gnu)
8104	    LD="${LD-ld} -m elf_i386_fbsd"
8105	    ;;
8106	  x86_64-*linux*)
8107	    case `/usr/bin/file conftest.o` in
8108	      *x86-64*)
8109		LD="${LD-ld} -m elf32_x86_64"
8110		;;
8111	      *)
8112		LD="${LD-ld} -m elf_i386"
8113		;;
8114	    esac
8115	    ;;
8116	  powerpc64le-*linux*)
8117	    LD="${LD-ld} -m elf32lppclinux"
8118	    ;;
8119	  powerpc64-*linux*)
8120	    LD="${LD-ld} -m elf32ppclinux"
8121	    ;;
8122	  s390x-*linux*)
8123	    LD="${LD-ld} -m elf_s390"
8124	    ;;
8125	  sparc64-*linux*)
8126	    LD="${LD-ld} -m elf32_sparc"
8127	    ;;
8128	esac
8129	;;
8130      *64-bit*)
8131	case $host in
8132	  x86_64-*kfreebsd*-gnu)
8133	    LD="${LD-ld} -m elf_x86_64_fbsd"
8134	    ;;
8135	  x86_64-*linux*)
8136	    LD="${LD-ld} -m elf_x86_64"
8137	    ;;
8138	  powerpcle-*linux*)
8139	    LD="${LD-ld} -m elf64lppc"
8140	    ;;
8141	  powerpc-*linux*)
8142	    LD="${LD-ld} -m elf64ppc"
8143	    ;;
8144	  s390*-*linux*|s390*-*tpf*)
8145	    LD="${LD-ld} -m elf64_s390"
8146	    ;;
8147	  sparc*-*linux*)
8148	    LD="${LD-ld} -m elf64_sparc"
8149	    ;;
8150	esac
8151	;;
8152    esac
8153  fi
8154  rm -rf conftest*
8155  ;;
8156
8157*-*-sco3.2v5*)
8158  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8159  SAVE_CFLAGS=$CFLAGS
8160  CFLAGS="$CFLAGS -belf"
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8162$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8163if ${lt_cv_cc_needs_belf+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  ac_ext=c
8167ac_cpp='$CPP $CPPFLAGS'
8168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171
8172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174
8175int
8176main ()
8177{
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_link "$LINENO"; then :
8184  lt_cv_cc_needs_belf=yes
8185else
8186  lt_cv_cc_needs_belf=no
8187fi
8188rm -f core conftest.err conftest.$ac_objext \
8189    conftest$ac_exeext conftest.$ac_ext
8190     ac_ext=c
8191ac_cpp='$CPP $CPPFLAGS'
8192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8198$as_echo "$lt_cv_cc_needs_belf" >&6; }
8199  if test yes != "$lt_cv_cc_needs_belf"; then
8200    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8201    CFLAGS=$SAVE_CFLAGS
8202  fi
8203  ;;
8204*-*solaris*)
8205  # Find out what ABI is being produced by ac_compile, and set linker
8206  # options accordingly.
8207  echo 'int i;' > conftest.$ac_ext
8208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8209  (eval $ac_compile) 2>&5
8210  ac_status=$?
8211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212  test $ac_status = 0; }; then
8213    case `/usr/bin/file conftest.o` in
8214    *64-bit*)
8215      case $lt_cv_prog_gnu_ld in
8216      yes*)
8217        case $host in
8218        i?86-*-solaris*|x86_64-*-solaris*)
8219          LD="${LD-ld} -m elf_x86_64"
8220          ;;
8221        sparc*-*-solaris*)
8222          LD="${LD-ld} -m elf64_sparc"
8223          ;;
8224        esac
8225        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8226        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8227          LD=${LD-ld}_sol2
8228        fi
8229        ;;
8230      *)
8231	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8232	  LD="${LD-ld} -64"
8233	fi
8234	;;
8235      esac
8236      ;;
8237    esac
8238  fi
8239  rm -rf conftest*
8240  ;;
8241esac
8242
8243need_locks=$enable_libtool_lock
8244
8245if test -n "$ac_tool_prefix"; then
8246  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8247set dummy ${ac_tool_prefix}mt; ac_word=$2
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  if test -n "$MANIFEST_TOOL"; then
8254  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259  IFS=$as_save_IFS
8260  test -z "$as_dir" && as_dir=.
8261    for ac_exec_ext in '' $ac_executable_extensions; do
8262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265    break 2
8266  fi
8267done
8268  done
8269IFS=$as_save_IFS
8270
8271fi
8272fi
8273MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8274if test -n "$MANIFEST_TOOL"; then
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8276$as_echo "$MANIFEST_TOOL" >&6; }
8277else
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282
8283fi
8284if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8285  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8286  # Extract the first word of "mt", so it can be a program name with args.
8287set dummy mt; ac_word=$2
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289$as_echo_n "checking for $ac_word... " >&6; }
8290if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8291  $as_echo_n "(cached) " >&6
8292else
8293  if test -n "$ac_ct_MANIFEST_TOOL"; then
8294  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8295else
8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297for as_dir in $PATH
8298do
8299  IFS=$as_save_IFS
8300  test -z "$as_dir" && as_dir=.
8301    for ac_exec_ext in '' $ac_executable_extensions; do
8302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305    break 2
8306  fi
8307done
8308  done
8309IFS=$as_save_IFS
8310
8311fi
8312fi
8313ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8314if test -n "$ac_ct_MANIFEST_TOOL"; then
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8316$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8317else
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319$as_echo "no" >&6; }
8320fi
8321
8322  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8323    MANIFEST_TOOL=":"
8324  else
8325    case $cross_compiling:$ac_tool_warned in
8326yes:)
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8329ac_tool_warned=yes ;;
8330esac
8331    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8332  fi
8333else
8334  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8335fi
8336
8337test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8339$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8340if ${lt_cv_path_mainfest_tool+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343  lt_cv_path_mainfest_tool=no
8344  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8345  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8346  cat conftest.err >&5
8347  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8348    lt_cv_path_mainfest_tool=yes
8349  fi
8350  rm -f conftest*
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8353$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8354if test yes != "$lt_cv_path_mainfest_tool"; then
8355  MANIFEST_TOOL=:
8356fi
8357
8358
8359
8360
8361
8362
8363  case $host_os in
8364    rhapsody* | darwin*)
8365    if test -n "$ac_tool_prefix"; then
8366  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8367set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if ${ac_cv_prog_DSYMUTIL+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  if test -n "$DSYMUTIL"; then
8374  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379  IFS=$as_save_IFS
8380  test -z "$as_dir" && as_dir=.
8381    for ac_exec_ext in '' $ac_executable_extensions; do
8382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385    break 2
8386  fi
8387done
8388  done
8389IFS=$as_save_IFS
8390
8391fi
8392fi
8393DSYMUTIL=$ac_cv_prog_DSYMUTIL
8394if test -n "$DSYMUTIL"; then
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8396$as_echo "$DSYMUTIL" >&6; }
8397else
8398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
8400fi
8401
8402
8403fi
8404if test -z "$ac_cv_prog_DSYMUTIL"; then
8405  ac_ct_DSYMUTIL=$DSYMUTIL
8406  # Extract the first word of "dsymutil", so it can be a program name with args.
8407set dummy dsymutil; ac_word=$2
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409$as_echo_n "checking for $ac_word... " >&6; }
8410if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  if test -n "$ac_ct_DSYMUTIL"; then
8414  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8415else
8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419  IFS=$as_save_IFS
8420  test -z "$as_dir" && as_dir=.
8421    for ac_exec_ext in '' $ac_executable_extensions; do
8422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425    break 2
8426  fi
8427done
8428  done
8429IFS=$as_save_IFS
8430
8431fi
8432fi
8433ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8434if test -n "$ac_ct_DSYMUTIL"; then
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8436$as_echo "$ac_ct_DSYMUTIL" >&6; }
8437else
8438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439$as_echo "no" >&6; }
8440fi
8441
8442  if test "x$ac_ct_DSYMUTIL" = x; then
8443    DSYMUTIL=":"
8444  else
8445    case $cross_compiling:$ac_tool_warned in
8446yes:)
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8449ac_tool_warned=yes ;;
8450esac
8451    DSYMUTIL=$ac_ct_DSYMUTIL
8452  fi
8453else
8454  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8455fi
8456
8457    if test -n "$ac_tool_prefix"; then
8458  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8459set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
8462if ${ac_cv_prog_NMEDIT+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  if test -n "$NMEDIT"; then
8466  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8467else
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471  IFS=$as_save_IFS
8472  test -z "$as_dir" && as_dir=.
8473    for ac_exec_ext in '' $ac_executable_extensions; do
8474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477    break 2
8478  fi
8479done
8480  done
8481IFS=$as_save_IFS
8482
8483fi
8484fi
8485NMEDIT=$ac_cv_prog_NMEDIT
8486if test -n "$NMEDIT"; then
8487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8488$as_echo "$NMEDIT" >&6; }
8489else
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
8492fi
8493
8494
8495fi
8496if test -z "$ac_cv_prog_NMEDIT"; then
8497  ac_ct_NMEDIT=$NMEDIT
8498  # Extract the first word of "nmedit", so it can be a program name with args.
8499set dummy nmedit; ac_word=$2
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501$as_echo_n "checking for $ac_word... " >&6; }
8502if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8503  $as_echo_n "(cached) " >&6
8504else
8505  if test -n "$ac_ct_NMEDIT"; then
8506  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8507else
8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509for as_dir in $PATH
8510do
8511  IFS=$as_save_IFS
8512  test -z "$as_dir" && as_dir=.
8513    for ac_exec_ext in '' $ac_executable_extensions; do
8514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517    break 2
8518  fi
8519done
8520  done
8521IFS=$as_save_IFS
8522
8523fi
8524fi
8525ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8526if test -n "$ac_ct_NMEDIT"; then
8527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8528$as_echo "$ac_ct_NMEDIT" >&6; }
8529else
8530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531$as_echo "no" >&6; }
8532fi
8533
8534  if test "x$ac_ct_NMEDIT" = x; then
8535    NMEDIT=":"
8536  else
8537    case $cross_compiling:$ac_tool_warned in
8538yes:)
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8541ac_tool_warned=yes ;;
8542esac
8543    NMEDIT=$ac_ct_NMEDIT
8544  fi
8545else
8546  NMEDIT="$ac_cv_prog_NMEDIT"
8547fi
8548
8549    if test -n "$ac_tool_prefix"; then
8550  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8551set dummy ${ac_tool_prefix}lipo; ac_word=$2
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if ${ac_cv_prog_LIPO+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  if test -n "$LIPO"; then
8558  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563  IFS=$as_save_IFS
8564  test -z "$as_dir" && as_dir=.
8565    for ac_exec_ext in '' $ac_executable_extensions; do
8566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569    break 2
8570  fi
8571done
8572  done
8573IFS=$as_save_IFS
8574
8575fi
8576fi
8577LIPO=$ac_cv_prog_LIPO
8578if test -n "$LIPO"; then
8579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580$as_echo "$LIPO" >&6; }
8581else
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
8584fi
8585
8586
8587fi
8588if test -z "$ac_cv_prog_LIPO"; then
8589  ac_ct_LIPO=$LIPO
8590  # Extract the first word of "lipo", so it can be a program name with args.
8591set dummy lipo; ac_word=$2
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593$as_echo_n "checking for $ac_word... " >&6; }
8594if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597  if test -n "$ac_ct_LIPO"; then
8598  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8599else
8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601for as_dir in $PATH
8602do
8603  IFS=$as_save_IFS
8604  test -z "$as_dir" && as_dir=.
8605    for ac_exec_ext in '' $ac_executable_extensions; do
8606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607    ac_cv_prog_ac_ct_LIPO="lipo"
8608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609    break 2
8610  fi
8611done
8612  done
8613IFS=$as_save_IFS
8614
8615fi
8616fi
8617ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8618if test -n "$ac_ct_LIPO"; then
8619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8620$as_echo "$ac_ct_LIPO" >&6; }
8621else
8622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623$as_echo "no" >&6; }
8624fi
8625
8626  if test "x$ac_ct_LIPO" = x; then
8627    LIPO=":"
8628  else
8629    case $cross_compiling:$ac_tool_warned in
8630yes:)
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8633ac_tool_warned=yes ;;
8634esac
8635    LIPO=$ac_ct_LIPO
8636  fi
8637else
8638  LIPO="$ac_cv_prog_LIPO"
8639fi
8640
8641    if test -n "$ac_tool_prefix"; then
8642  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8643set dummy ${ac_tool_prefix}otool; ac_word=$2
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if ${ac_cv_prog_OTOOL+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  if test -n "$OTOOL"; then
8650  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8651else
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655  IFS=$as_save_IFS
8656  test -z "$as_dir" && as_dir=.
8657    for ac_exec_ext in '' $ac_executable_extensions; do
8658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661    break 2
8662  fi
8663done
8664  done
8665IFS=$as_save_IFS
8666
8667fi
8668fi
8669OTOOL=$ac_cv_prog_OTOOL
8670if test -n "$OTOOL"; then
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8672$as_echo "$OTOOL" >&6; }
8673else
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
8676fi
8677
8678
8679fi
8680if test -z "$ac_cv_prog_OTOOL"; then
8681  ac_ct_OTOOL=$OTOOL
8682  # Extract the first word of "otool", so it can be a program name with args.
8683set dummy otool; ac_word=$2
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685$as_echo_n "checking for $ac_word... " >&6; }
8686if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  if test -n "$ac_ct_OTOOL"; then
8690  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695  IFS=$as_save_IFS
8696  test -z "$as_dir" && as_dir=.
8697    for ac_exec_ext in '' $ac_executable_extensions; do
8698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699    ac_cv_prog_ac_ct_OTOOL="otool"
8700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701    break 2
8702  fi
8703done
8704  done
8705IFS=$as_save_IFS
8706
8707fi
8708fi
8709ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8710if test -n "$ac_ct_OTOOL"; then
8711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8712$as_echo "$ac_ct_OTOOL" >&6; }
8713else
8714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
8716fi
8717
8718  if test "x$ac_ct_OTOOL" = x; then
8719    OTOOL=":"
8720  else
8721    case $cross_compiling:$ac_tool_warned in
8722yes:)
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8725ac_tool_warned=yes ;;
8726esac
8727    OTOOL=$ac_ct_OTOOL
8728  fi
8729else
8730  OTOOL="$ac_cv_prog_OTOOL"
8731fi
8732
8733    if test -n "$ac_tool_prefix"; then
8734  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8735set dummy ${ac_tool_prefix}otool64; ac_word=$2
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
8738if ${ac_cv_prog_OTOOL64+:} false; then :
8739  $as_echo_n "(cached) " >&6
8740else
8741  if test -n "$OTOOL64"; then
8742  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747  IFS=$as_save_IFS
8748  test -z "$as_dir" && as_dir=.
8749    for ac_exec_ext in '' $ac_executable_extensions; do
8750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753    break 2
8754  fi
8755done
8756  done
8757IFS=$as_save_IFS
8758
8759fi
8760fi
8761OTOOL64=$ac_cv_prog_OTOOL64
8762if test -n "$OTOOL64"; then
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8764$as_echo "$OTOOL64" >&6; }
8765else
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769
8770
8771fi
8772if test -z "$ac_cv_prog_OTOOL64"; then
8773  ac_ct_OTOOL64=$OTOOL64
8774  # Extract the first word of "otool64", so it can be a program name with args.
8775set dummy otool64; ac_word=$2
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
8778if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8779  $as_echo_n "(cached) " >&6
8780else
8781  if test -n "$ac_ct_OTOOL64"; then
8782  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787  IFS=$as_save_IFS
8788  test -z "$as_dir" && as_dir=.
8789    for ac_exec_ext in '' $ac_executable_extensions; do
8790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8791    ac_cv_prog_ac_ct_OTOOL64="otool64"
8792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793    break 2
8794  fi
8795done
8796  done
8797IFS=$as_save_IFS
8798
8799fi
8800fi
8801ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8802if test -n "$ac_ct_OTOOL64"; then
8803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8804$as_echo "$ac_ct_OTOOL64" >&6; }
8805else
8806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808fi
8809
8810  if test "x$ac_ct_OTOOL64" = x; then
8811    OTOOL64=":"
8812  else
8813    case $cross_compiling:$ac_tool_warned in
8814yes:)
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817ac_tool_warned=yes ;;
8818esac
8819    OTOOL64=$ac_ct_OTOOL64
8820  fi
8821else
8822  OTOOL64="$ac_cv_prog_OTOOL64"
8823fi
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8852$as_echo_n "checking for -single_module linker flag... " >&6; }
8853if ${lt_cv_apple_cc_single_mod+:} false; then :
8854  $as_echo_n "(cached) " >&6
8855else
8856  lt_cv_apple_cc_single_mod=no
8857      if test -z "$LT_MULTI_MODULE"; then
8858	# By default we will add the -single_module flag. You can override
8859	# by either setting the environment variable LT_MULTI_MODULE
8860	# non-empty at configure time, or by adding -multi_module to the
8861	# link flags.
8862	rm -rf libconftest.dylib*
8863	echo "int foo(void){return 1;}" > conftest.c
8864	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8865-dynamiclib -Wl,-single_module conftest.c" >&5
8866	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8867	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8868        _lt_result=$?
8869	# If there is a non-empty error log, and "single_module"
8870	# appears in it, assume the flag caused a linker warning
8871        if test -s conftest.err && $GREP single_module conftest.err; then
8872	  cat conftest.err >&5
8873	# Otherwise, if the output was created with a 0 exit code from
8874	# the compiler, it worked.
8875	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8876	  lt_cv_apple_cc_single_mod=yes
8877	else
8878	  cat conftest.err >&5
8879	fi
8880	rm -rf libconftest.dylib*
8881	rm -f conftest.*
8882      fi
8883fi
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8885$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8886
8887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8888$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8889if ${lt_cv_ld_exported_symbols_list+:} false; then :
8890  $as_echo_n "(cached) " >&6
8891else
8892  lt_cv_ld_exported_symbols_list=no
8893      save_LDFLAGS=$LDFLAGS
8894      echo "_main" > conftest.sym
8895      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898
8899int
8900main ()
8901{
8902
8903  ;
8904  return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_link "$LINENO"; then :
8908  lt_cv_ld_exported_symbols_list=yes
8909else
8910  lt_cv_ld_exported_symbols_list=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913    conftest$ac_exeext conftest.$ac_ext
8914	LDFLAGS=$save_LDFLAGS
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8918$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8919
8920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8921$as_echo_n "checking for -force_load linker flag... " >&6; }
8922if ${lt_cv_ld_force_load+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  lt_cv_ld_force_load=no
8926      cat > conftest.c << _LT_EOF
8927int forced_loaded() { return 2;}
8928_LT_EOF
8929      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8930      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8931      echo "$AR cru libconftest.a conftest.o" >&5
8932      $AR cru libconftest.a conftest.o 2>&5
8933      echo "$RANLIB libconftest.a" >&5
8934      $RANLIB libconftest.a 2>&5
8935      cat > conftest.c << _LT_EOF
8936int main() { return 0;}
8937_LT_EOF
8938      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8939      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8940      _lt_result=$?
8941      if test -s conftest.err && $GREP force_load conftest.err; then
8942	cat conftest.err >&5
8943      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8944	lt_cv_ld_force_load=yes
8945      else
8946	cat conftest.err >&5
8947      fi
8948        rm -f conftest.err libconftest.a conftest conftest.c
8949        rm -rf conftest.dSYM
8950
8951fi
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8953$as_echo "$lt_cv_ld_force_load" >&6; }
8954    case $host_os in
8955    rhapsody* | darwin1.[012])
8956      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8957    darwin1.*)
8958      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8959    darwin*) # darwin 5.x on
8960      # if running on 10.5 or later, the deployment target defaults
8961      # to the OS version, if on x86, and 10.4, the deployment
8962      # target defaults to 10.4. Don't you love it?
8963      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8964	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8965	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8966	10.[012][,.]*)
8967	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8968	10.*)
8969	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8970      esac
8971    ;;
8972  esac
8973    if test yes = "$lt_cv_apple_cc_single_mod"; then
8974      _lt_dar_single_mod='$single_module'
8975    fi
8976    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8977      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8978    else
8979      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8980    fi
8981    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8982      _lt_dsymutil='~$DSYMUTIL $lib || :'
8983    else
8984      _lt_dsymutil=
8985    fi
8986    ;;
8987  esac
8988
8989# func_munge_path_list VARIABLE PATH
8990# -----------------------------------
8991# VARIABLE is name of variable containing _space_ separated list of
8992# directories to be munged by the contents of PATH, which is string
8993# having a format:
8994# "DIR[:DIR]:"
8995#       string "DIR[ DIR]" will be prepended to VARIABLE
8996# ":DIR[:DIR]"
8997#       string "DIR[ DIR]" will be appended to VARIABLE
8998# "DIRP[:DIRP]::[DIRA:]DIRA"
8999#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9000#       "DIRA[ DIRA]" will be appended to VARIABLE
9001# "DIR[:DIR]"
9002#       VARIABLE will be replaced by "DIR[ DIR]"
9003func_munge_path_list ()
9004{
9005    case x$2 in
9006    x)
9007        ;;
9008    *:)
9009        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9010        ;;
9011    x:*)
9012        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9013        ;;
9014    *::*)
9015        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9016        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9017        ;;
9018    *)
9019        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9020        ;;
9021    esac
9022}
9023
9024for ac_header in dlfcn.h
9025do :
9026  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9027"
9028if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9029  cat >>confdefs.h <<_ACEOF
9030#define HAVE_DLFCN_H 1
9031_ACEOF
9032
9033fi
9034
9035done
9036
9037
9038
9039
9040func_stripname_cnf ()
9041{
9042  case $2 in
9043  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9044  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9045  esac
9046} # func_stripname_cnf
9047
9048
9049
9050
9051
9052# Set options
9053
9054
9055
9056        enable_dlopen=no
9057
9058
9059  enable_win32_dll=no
9060
9061
9062            # Check whether --enable-shared was given.
9063if test "${enable_shared+set}" = set; then :
9064  enableval=$enable_shared; p=${PACKAGE-default}
9065    case $enableval in
9066    yes) enable_shared=yes ;;
9067    no) enable_shared=no ;;
9068    *)
9069      enable_shared=no
9070      # Look at the argument we got.  We use all the common list separators.
9071      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9072      for pkg in $enableval; do
9073	IFS=$lt_save_ifs
9074	if test "X$pkg" = "X$p"; then
9075	  enable_shared=yes
9076	fi
9077      done
9078      IFS=$lt_save_ifs
9079      ;;
9080    esac
9081else
9082  enable_shared=yes
9083fi
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095# Check whether --with-pic was given.
9096if test "${with_pic+set}" = set; then :
9097  withval=$with_pic; lt_p=${PACKAGE-default}
9098    case $withval in
9099    yes|no) pic_mode=$withval ;;
9100    *)
9101      pic_mode=default
9102      # Look at the argument we got.  We use all the common list separators.
9103      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9104      for lt_pkg in $withval; do
9105	IFS=$lt_save_ifs
9106	if test "X$lt_pkg" = "X$lt_p"; then
9107	  pic_mode=yes
9108	fi
9109      done
9110      IFS=$lt_save_ifs
9111      ;;
9112    esac
9113else
9114  pic_mode=default
9115fi
9116
9117
9118
9119
9120
9121
9122
9123
9124  # Check whether --enable-fast-install was given.
9125if test "${enable_fast_install+set}" = set; then :
9126  enableval=$enable_fast_install; p=${PACKAGE-default}
9127    case $enableval in
9128    yes) enable_fast_install=yes ;;
9129    no) enable_fast_install=no ;;
9130    *)
9131      enable_fast_install=no
9132      # Look at the argument we got.  We use all the common list separators.
9133      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9134      for pkg in $enableval; do
9135	IFS=$lt_save_ifs
9136	if test "X$pkg" = "X$p"; then
9137	  enable_fast_install=yes
9138	fi
9139      done
9140      IFS=$lt_save_ifs
9141      ;;
9142    esac
9143else
9144  enable_fast_install=yes
9145fi
9146
9147
9148
9149
9150
9151
9152
9153
9154  shared_archive_member_spec=
9155case $host,$enable_shared in
9156power*-*-aix[5-9]*,yes)
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9158$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9159
9160# Check whether --with-aix-soname was given.
9161if test "${with_aix_soname+set}" = set; then :
9162  withval=$with_aix_soname; case $withval in
9163    aix|svr4|both)
9164      ;;
9165    *)
9166      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9167      ;;
9168    esac
9169    lt_cv_with_aix_soname=$with_aix_soname
9170else
9171  if ${lt_cv_with_aix_soname+:} false; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174  lt_cv_with_aix_soname=aix
9175fi
9176
9177    with_aix_soname=$lt_cv_with_aix_soname
9178fi
9179
9180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9181$as_echo "$with_aix_soname" >&6; }
9182  if test aix != "$with_aix_soname"; then
9183    # For the AIX way of multilib, we name the shared archive member
9184    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9185    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9186    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9187    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9188    if test 64 = "${OBJECT_MODE-32}"; then
9189      shared_archive_member_spec=shr_64
9190    else
9191      shared_archive_member_spec=shr
9192    fi
9193  fi
9194  ;;
9195*)
9196  with_aix_soname=aix
9197  ;;
9198esac
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209# This can be used to rebuild libtool when needed
9210LIBTOOL_DEPS=$ltmain
9211
9212# Always use our own libtool.
9213LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244test -z "$LN_S" && LN_S="ln -s"
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259if test -n "${ZSH_VERSION+set}"; then
9260   setopt NO_GLOB_SUBST
9261fi
9262
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9264$as_echo_n "checking for objdir... " >&6; }
9265if ${lt_cv_objdir+:} false; then :
9266  $as_echo_n "(cached) " >&6
9267else
9268  rm -f .libs 2>/dev/null
9269mkdir .libs 2>/dev/null
9270if test -d .libs; then
9271  lt_cv_objdir=.libs
9272else
9273  # MS-DOS does not allow filenames that begin with a dot.
9274  lt_cv_objdir=_libs
9275fi
9276rmdir .libs 2>/dev/null
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9279$as_echo "$lt_cv_objdir" >&6; }
9280objdir=$lt_cv_objdir
9281
9282
9283
9284
9285
9286cat >>confdefs.h <<_ACEOF
9287#define LT_OBJDIR "$lt_cv_objdir/"
9288_ACEOF
9289
9290
9291
9292
9293case $host_os in
9294aix3*)
9295  # AIX sometimes has problems with the GCC collect2 program.  For some
9296  # reason, if we set the COLLECT_NAMES environment variable, the problems
9297  # vanish in a puff of smoke.
9298  if test set != "${COLLECT_NAMES+set}"; then
9299    COLLECT_NAMES=
9300    export COLLECT_NAMES
9301  fi
9302  ;;
9303esac
9304
9305# Global variables:
9306ofile=libtool
9307can_build_shared=yes
9308
9309# All known linkers require a '.a' archive for static linking (except MSVC,
9310# which needs '.lib').
9311libext=a
9312
9313with_gnu_ld=$lt_cv_prog_gnu_ld
9314
9315old_CC=$CC
9316old_CFLAGS=$CFLAGS
9317
9318# Set sane defaults for various variables
9319test -z "$CC" && CC=cc
9320test -z "$LTCC" && LTCC=$CC
9321test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9322test -z "$LD" && LD=ld
9323test -z "$ac_objext" && ac_objext=o
9324
9325func_cc_basename $compiler
9326cc_basename=$func_cc_basename_result
9327
9328
9329# Only perform the check for file, if the check method requires it
9330test -z "$MAGIC_CMD" && MAGIC_CMD=file
9331case $deplibs_check_method in
9332file_magic*)
9333  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9335$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9336if ${lt_cv_path_MAGIC_CMD+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  case $MAGIC_CMD in
9340[\\/*] |  ?:[\\/]*)
9341  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9342  ;;
9343*)
9344  lt_save_MAGIC_CMD=$MAGIC_CMD
9345  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9346  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9347  for ac_dir in $ac_dummy; do
9348    IFS=$lt_save_ifs
9349    test -z "$ac_dir" && ac_dir=.
9350    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9351      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9352      if test -n "$file_magic_test_file"; then
9353	case $deplibs_check_method in
9354	"file_magic "*)
9355	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9356	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9357	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9358	    $EGREP "$file_magic_regex" > /dev/null; then
9359	    :
9360	  else
9361	    cat <<_LT_EOF 1>&2
9362
9363*** Warning: the command libtool uses to detect shared libraries,
9364*** $file_magic_cmd, produces output that libtool cannot recognize.
9365*** The result is that libtool may fail to recognize shared libraries
9366*** as such.  This will affect the creation of libtool libraries that
9367*** depend on shared libraries, but programs linked with such libtool
9368*** libraries will work regardless of this problem.  Nevertheless, you
9369*** may want to report the problem to your system manager and/or to
9370*** bug-libtool@gnu.org
9371
9372_LT_EOF
9373	  fi ;;
9374	esac
9375      fi
9376      break
9377    fi
9378  done
9379  IFS=$lt_save_ifs
9380  MAGIC_CMD=$lt_save_MAGIC_CMD
9381  ;;
9382esac
9383fi
9384
9385MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9386if test -n "$MAGIC_CMD"; then
9387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9388$as_echo "$MAGIC_CMD" >&6; }
9389else
9390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391$as_echo "no" >&6; }
9392fi
9393
9394
9395
9396
9397
9398if test -z "$lt_cv_path_MAGIC_CMD"; then
9399  if test -n "$ac_tool_prefix"; then
9400    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9401$as_echo_n "checking for file... " >&6; }
9402if ${lt_cv_path_MAGIC_CMD+:} false; then :
9403  $as_echo_n "(cached) " >&6
9404else
9405  case $MAGIC_CMD in
9406[\\/*] |  ?:[\\/]*)
9407  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9408  ;;
9409*)
9410  lt_save_MAGIC_CMD=$MAGIC_CMD
9411  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9412  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9413  for ac_dir in $ac_dummy; do
9414    IFS=$lt_save_ifs
9415    test -z "$ac_dir" && ac_dir=.
9416    if test -f "$ac_dir/file"; then
9417      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9418      if test -n "$file_magic_test_file"; then
9419	case $deplibs_check_method in
9420	"file_magic "*)
9421	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9422	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9423	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9424	    $EGREP "$file_magic_regex" > /dev/null; then
9425	    :
9426	  else
9427	    cat <<_LT_EOF 1>&2
9428
9429*** Warning: the command libtool uses to detect shared libraries,
9430*** $file_magic_cmd, produces output that libtool cannot recognize.
9431*** The result is that libtool may fail to recognize shared libraries
9432*** as such.  This will affect the creation of libtool libraries that
9433*** depend on shared libraries, but programs linked with such libtool
9434*** libraries will work regardless of this problem.  Nevertheless, you
9435*** may want to report the problem to your system manager and/or to
9436*** bug-libtool@gnu.org
9437
9438_LT_EOF
9439	  fi ;;
9440	esac
9441      fi
9442      break
9443    fi
9444  done
9445  IFS=$lt_save_ifs
9446  MAGIC_CMD=$lt_save_MAGIC_CMD
9447  ;;
9448esac
9449fi
9450
9451MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9452if test -n "$MAGIC_CMD"; then
9453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9454$as_echo "$MAGIC_CMD" >&6; }
9455else
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457$as_echo "no" >&6; }
9458fi
9459
9460
9461  else
9462    MAGIC_CMD=:
9463  fi
9464fi
9465
9466  fi
9467  ;;
9468esac
9469
9470# Use C for the default configuration in the libtool script
9471
9472lt_save_CC=$CC
9473ac_ext=c
9474ac_cpp='$CPP $CPPFLAGS'
9475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9477ac_compiler_gnu=$ac_cv_c_compiler_gnu
9478
9479
9480# Source file extension for C test sources.
9481ac_ext=c
9482
9483# Object file extension for compiled C test sources.
9484objext=o
9485objext=$objext
9486
9487# Code to be used in simple compile tests
9488lt_simple_compile_test_code="int some_variable = 0;"
9489
9490# Code to be used in simple link tests
9491lt_simple_link_test_code='int main(){return(0);}'
9492
9493
9494
9495
9496
9497
9498
9499# If no C compiler was specified, use CC.
9500LTCC=${LTCC-"$CC"}
9501
9502# If no C compiler flags were specified, use CFLAGS.
9503LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9504
9505# Allow CC to be a program name with arguments.
9506compiler=$CC
9507
9508# Save the default compiler, since it gets overwritten when the other
9509# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9510compiler_DEFAULT=$CC
9511
9512# save warnings/boilerplate of simple test code
9513ac_outfile=conftest.$ac_objext
9514echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9516_lt_compiler_boilerplate=`cat conftest.err`
9517$RM conftest*
9518
9519ac_outfile=conftest.$ac_objext
9520echo "$lt_simple_link_test_code" >conftest.$ac_ext
9521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9522_lt_linker_boilerplate=`cat conftest.err`
9523$RM -r conftest*
9524
9525
9526if test -n "$compiler"; then
9527
9528lt_prog_compiler_no_builtin_flag=
9529
9530if test yes = "$GCC"; then
9531  case $cc_basename in
9532  nvcc*)
9533    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9534  *)
9535    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9536  esac
9537
9538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9539$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9540if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9541  $as_echo_n "(cached) " >&6
9542else
9543  lt_cv_prog_compiler_rtti_exceptions=no
9544   ac_outfile=conftest.$ac_objext
9545   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9546   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9547   # Insert the option either (1) after the last *FLAGS variable, or
9548   # (2) before a word containing "conftest.", or (3) at the end.
9549   # Note that $ac_compile itself does not contain backslashes and begins
9550   # with a dollar sign (not a hyphen), so the echo should work correctly.
9551   # The option is referenced via a variable to avoid confusing sed.
9552   lt_compile=`echo "$ac_compile" | $SED \
9553   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9554   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9555   -e 's:$: $lt_compiler_flag:'`
9556   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9557   (eval "$lt_compile" 2>conftest.err)
9558   ac_status=$?
9559   cat conftest.err >&5
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   if (exit $ac_status) && test -s "$ac_outfile"; then
9562     # The compiler can only warn and ignore the option if not recognized
9563     # So say no if there are warnings other than the usual output.
9564     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9565     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9566     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9567       lt_cv_prog_compiler_rtti_exceptions=yes
9568     fi
9569   fi
9570   $RM conftest*
9571
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9574$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9575
9576if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9577    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9578else
9579    :
9580fi
9581
9582fi
9583
9584
9585
9586
9587
9588
9589  lt_prog_compiler_wl=
9590lt_prog_compiler_pic=
9591lt_prog_compiler_static=
9592
9593
9594  if test yes = "$GCC"; then
9595    lt_prog_compiler_wl='-Wl,'
9596    lt_prog_compiler_static='-static'
9597
9598    case $host_os in
9599      aix*)
9600      # All AIX code is PIC.
9601      if test ia64 = "$host_cpu"; then
9602	# AIX 5 now supports IA64 processor
9603	lt_prog_compiler_static='-Bstatic'
9604      fi
9605      lt_prog_compiler_pic='-fPIC'
9606      ;;
9607
9608    amigaos*)
9609      case $host_cpu in
9610      powerpc)
9611            # see comment about AmigaOS4 .so support
9612            lt_prog_compiler_pic='-fPIC'
9613        ;;
9614      m68k)
9615            # FIXME: we need at least 68020 code to build shared libraries, but
9616            # adding the '-m68020' flag to GCC prevents building anything better,
9617            # like '-m68040'.
9618            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9619        ;;
9620      esac
9621      ;;
9622
9623    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9624      # PIC is the default for these OSes.
9625      ;;
9626
9627    mingw* | cygwin* | pw32* | os2* | cegcc*)
9628      # This hack is so that the source file can tell whether it is being
9629      # built for inclusion in a dll (and should export symbols for example).
9630      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9631      # (--disable-auto-import) libraries
9632      lt_prog_compiler_pic='-DDLL_EXPORT'
9633      case $host_os in
9634      os2*)
9635	lt_prog_compiler_static='$wl-static'
9636	;;
9637      esac
9638      ;;
9639
9640    darwin* | rhapsody*)
9641      # PIC is the default on this platform
9642      # Common symbols not allowed in MH_DYLIB files
9643      lt_prog_compiler_pic='-fno-common'
9644      ;;
9645
9646    haiku*)
9647      # PIC is the default for Haiku.
9648      # The "-static" flag exists, but is broken.
9649      lt_prog_compiler_static=
9650      ;;
9651
9652    hpux*)
9653      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9654      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9655      # sets the default TLS model and affects inlining.
9656      case $host_cpu in
9657      hppa*64*)
9658	# +Z the default
9659	;;
9660      *)
9661	lt_prog_compiler_pic='-fPIC'
9662	;;
9663      esac
9664      ;;
9665
9666    interix[3-9]*)
9667      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9668      # Instead, we relocate shared libraries at runtime.
9669      ;;
9670
9671    msdosdjgpp*)
9672      # Just because we use GCC doesn't mean we suddenly get shared libraries
9673      # on systems that don't support them.
9674      lt_prog_compiler_can_build_shared=no
9675      enable_shared=no
9676      ;;
9677
9678    *nto* | *qnx*)
9679      # QNX uses GNU C++, but need to define -shared option too, otherwise
9680      # it will coredump.
9681      lt_prog_compiler_pic='-fPIC -shared'
9682      ;;
9683
9684    sysv4*MP*)
9685      if test -d /usr/nec; then
9686	lt_prog_compiler_pic=-Kconform_pic
9687      fi
9688      ;;
9689
9690    *)
9691      lt_prog_compiler_pic='-fPIC'
9692      ;;
9693    esac
9694
9695    case $cc_basename in
9696    nvcc*) # Cuda Compiler Driver 2.2
9697      lt_prog_compiler_wl='-Xlinker '
9698      if test -n "$lt_prog_compiler_pic"; then
9699        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9700      fi
9701      ;;
9702    esac
9703  else
9704    # PORTME Check for flag to pass linker flags through the system compiler.
9705    case $host_os in
9706    aix*)
9707      lt_prog_compiler_wl='-Wl,'
9708      if test ia64 = "$host_cpu"; then
9709	# AIX 5 now supports IA64 processor
9710	lt_prog_compiler_static='-Bstatic'
9711      else
9712	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9713      fi
9714      ;;
9715
9716    darwin* | rhapsody*)
9717      # PIC is the default on this platform
9718      # Common symbols not allowed in MH_DYLIB files
9719      lt_prog_compiler_pic='-fno-common'
9720      case $cc_basename in
9721      nagfor*)
9722        # NAG Fortran compiler
9723        lt_prog_compiler_wl='-Wl,-Wl,,'
9724        lt_prog_compiler_pic='-PIC'
9725        lt_prog_compiler_static='-Bstatic'
9726        ;;
9727      esac
9728      ;;
9729
9730    mingw* | cygwin* | pw32* | os2* | cegcc*)
9731      # This hack is so that the source file can tell whether it is being
9732      # built for inclusion in a dll (and should export symbols for example).
9733      lt_prog_compiler_pic='-DDLL_EXPORT'
9734      case $host_os in
9735      os2*)
9736	lt_prog_compiler_static='$wl-static'
9737	;;
9738      esac
9739      ;;
9740
9741    hpux9* | hpux10* | hpux11*)
9742      lt_prog_compiler_wl='-Wl,'
9743      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9744      # not for PA HP-UX.
9745      case $host_cpu in
9746      hppa*64*|ia64*)
9747	# +Z the default
9748	;;
9749      *)
9750	lt_prog_compiler_pic='+Z'
9751	;;
9752      esac
9753      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9754      lt_prog_compiler_static='$wl-a ${wl}archive'
9755      ;;
9756
9757    irix5* | irix6* | nonstopux*)
9758      lt_prog_compiler_wl='-Wl,'
9759      # PIC (with -KPIC) is the default.
9760      lt_prog_compiler_static='-non_shared'
9761      ;;
9762
9763    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9764      case $cc_basename in
9765      # old Intel for x86_64, which still supported -KPIC.
9766      ecc*)
9767	lt_prog_compiler_wl='-Wl,'
9768	lt_prog_compiler_pic='-KPIC'
9769	lt_prog_compiler_static='-static'
9770        ;;
9771      # icc used to be incompatible with GCC.
9772      # ICC 10 doesn't accept -KPIC any more.
9773      icc* | ifort*)
9774	lt_prog_compiler_wl='-Wl,'
9775	lt_prog_compiler_pic='-fPIC'
9776	lt_prog_compiler_static='-static'
9777        ;;
9778      # Lahey Fortran 8.1.
9779      lf95*)
9780	lt_prog_compiler_wl='-Wl,'
9781	lt_prog_compiler_pic='--shared'
9782	lt_prog_compiler_static='--static'
9783	;;
9784      nagfor*)
9785	# NAG Fortran compiler
9786	lt_prog_compiler_wl='-Wl,-Wl,,'
9787	lt_prog_compiler_pic='-PIC'
9788	lt_prog_compiler_static='-Bstatic'
9789	;;
9790      tcc*)
9791	# Fabrice Bellard et al's Tiny C Compiler
9792	lt_prog_compiler_wl='-Wl,'
9793	lt_prog_compiler_pic='-fPIC'
9794	lt_prog_compiler_static='-static'
9795	;;
9796      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9797        # Portland Group compilers (*not* the Pentium gcc compiler,
9798	# which looks to be a dead project)
9799	lt_prog_compiler_wl='-Wl,'
9800	lt_prog_compiler_pic='-fpic'
9801	lt_prog_compiler_static='-Bstatic'
9802        ;;
9803      ccc*)
9804        lt_prog_compiler_wl='-Wl,'
9805        # All Alpha code is PIC.
9806        lt_prog_compiler_static='-non_shared'
9807        ;;
9808      xl* | bgxl* | bgf* | mpixl*)
9809	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9810	lt_prog_compiler_wl='-Wl,'
9811	lt_prog_compiler_pic='-qpic'
9812	lt_prog_compiler_static='-qstaticlink'
9813	;;
9814      *)
9815	case `$CC -V 2>&1 | sed 5q` in
9816	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9817	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9818	  lt_prog_compiler_pic='-KPIC'
9819	  lt_prog_compiler_static='-Bstatic'
9820	  lt_prog_compiler_wl=''
9821	  ;;
9822	*Sun\ F* | *Sun*Fortran*)
9823	  lt_prog_compiler_pic='-KPIC'
9824	  lt_prog_compiler_static='-Bstatic'
9825	  lt_prog_compiler_wl='-Qoption ld '
9826	  ;;
9827	*Sun\ C*)
9828	  # Sun C 5.9
9829	  lt_prog_compiler_pic='-KPIC'
9830	  lt_prog_compiler_static='-Bstatic'
9831	  lt_prog_compiler_wl='-Wl,'
9832	  ;;
9833        *Intel*\ [CF]*Compiler*)
9834	  lt_prog_compiler_wl='-Wl,'
9835	  lt_prog_compiler_pic='-fPIC'
9836	  lt_prog_compiler_static='-static'
9837	  ;;
9838	*Portland\ Group*)
9839	  lt_prog_compiler_wl='-Wl,'
9840	  lt_prog_compiler_pic='-fpic'
9841	  lt_prog_compiler_static='-Bstatic'
9842	  ;;
9843	esac
9844	;;
9845      esac
9846      ;;
9847
9848    newsos6)
9849      lt_prog_compiler_pic='-KPIC'
9850      lt_prog_compiler_static='-Bstatic'
9851      ;;
9852
9853    *nto* | *qnx*)
9854      # QNX uses GNU C++, but need to define -shared option too, otherwise
9855      # it will coredump.
9856      lt_prog_compiler_pic='-fPIC -shared'
9857      ;;
9858
9859    osf3* | osf4* | osf5*)
9860      lt_prog_compiler_wl='-Wl,'
9861      # All OSF/1 code is PIC.
9862      lt_prog_compiler_static='-non_shared'
9863      ;;
9864
9865    rdos*)
9866      lt_prog_compiler_static='-non_shared'
9867      ;;
9868
9869    solaris*)
9870      lt_prog_compiler_pic='-KPIC'
9871      lt_prog_compiler_static='-Bstatic'
9872      case $cc_basename in
9873      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9874	lt_prog_compiler_wl='-Qoption ld ';;
9875      *)
9876	lt_prog_compiler_wl='-Wl,';;
9877      esac
9878      ;;
9879
9880    sunos4*)
9881      lt_prog_compiler_wl='-Qoption ld '
9882      lt_prog_compiler_pic='-PIC'
9883      lt_prog_compiler_static='-Bstatic'
9884      ;;
9885
9886    sysv4 | sysv4.2uw2* | sysv4.3*)
9887      lt_prog_compiler_wl='-Wl,'
9888      lt_prog_compiler_pic='-KPIC'
9889      lt_prog_compiler_static='-Bstatic'
9890      ;;
9891
9892    sysv4*MP*)
9893      if test -d /usr/nec; then
9894	lt_prog_compiler_pic='-Kconform_pic'
9895	lt_prog_compiler_static='-Bstatic'
9896      fi
9897      ;;
9898
9899    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9900      lt_prog_compiler_wl='-Wl,'
9901      lt_prog_compiler_pic='-KPIC'
9902      lt_prog_compiler_static='-Bstatic'
9903      ;;
9904
9905    unicos*)
9906      lt_prog_compiler_wl='-Wl,'
9907      lt_prog_compiler_can_build_shared=no
9908      ;;
9909
9910    uts4*)
9911      lt_prog_compiler_pic='-pic'
9912      lt_prog_compiler_static='-Bstatic'
9913      ;;
9914
9915    *)
9916      lt_prog_compiler_can_build_shared=no
9917      ;;
9918    esac
9919  fi
9920
9921case $host_os in
9922  # For platforms that do not support PIC, -DPIC is meaningless:
9923  *djgpp*)
9924    lt_prog_compiler_pic=
9925    ;;
9926  *)
9927    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9928    ;;
9929esac
9930
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9932$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9933if ${lt_cv_prog_compiler_pic+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9937fi
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9939$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9940lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9941
9942#
9943# Check to make sure the PIC flag actually works.
9944#
9945if test -n "$lt_prog_compiler_pic"; then
9946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9947$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9948if ${lt_cv_prog_compiler_pic_works+:} false; then :
9949  $as_echo_n "(cached) " >&6
9950else
9951  lt_cv_prog_compiler_pic_works=no
9952   ac_outfile=conftest.$ac_objext
9953   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9954   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9955   # Insert the option either (1) after the last *FLAGS variable, or
9956   # (2) before a word containing "conftest.", or (3) at the end.
9957   # Note that $ac_compile itself does not contain backslashes and begins
9958   # with a dollar sign (not a hyphen), so the echo should work correctly.
9959   # The option is referenced via a variable to avoid confusing sed.
9960   lt_compile=`echo "$ac_compile" | $SED \
9961   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9962   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9963   -e 's:$: $lt_compiler_flag:'`
9964   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9965   (eval "$lt_compile" 2>conftest.err)
9966   ac_status=$?
9967   cat conftest.err >&5
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   if (exit $ac_status) && test -s "$ac_outfile"; then
9970     # The compiler can only warn and ignore the option if not recognized
9971     # So say no if there are warnings other than the usual output.
9972     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9973     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9974     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9975       lt_cv_prog_compiler_pic_works=yes
9976     fi
9977   fi
9978   $RM conftest*
9979
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9982$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9983
9984if test yes = "$lt_cv_prog_compiler_pic_works"; then
9985    case $lt_prog_compiler_pic in
9986     "" | " "*) ;;
9987     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9988     esac
9989else
9990    lt_prog_compiler_pic=
9991     lt_prog_compiler_can_build_shared=no
9992fi
9993
9994fi
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006#
10007# Check to make sure the static flag actually works.
10008#
10009wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10011$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10012if ${lt_cv_prog_compiler_static_works+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  lt_cv_prog_compiler_static_works=no
10016   save_LDFLAGS=$LDFLAGS
10017   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10018   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10019   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10020     # The linker can only warn and ignore the option if not recognized
10021     # So say no if there are warnings
10022     if test -s conftest.err; then
10023       # Append any errors to the config.log.
10024       cat conftest.err 1>&5
10025       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10026       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10027       if diff conftest.exp conftest.er2 >/dev/null; then
10028         lt_cv_prog_compiler_static_works=yes
10029       fi
10030     else
10031       lt_cv_prog_compiler_static_works=yes
10032     fi
10033   fi
10034   $RM -r conftest*
10035   LDFLAGS=$save_LDFLAGS
10036
10037fi
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10039$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10040
10041if test yes = "$lt_cv_prog_compiler_static_works"; then
10042    :
10043else
10044    lt_prog_compiler_static=
10045fi
10046
10047
10048
10049
10050
10051
10052
10053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10054$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10055if ${lt_cv_prog_compiler_c_o+:} false; then :
10056  $as_echo_n "(cached) " >&6
10057else
10058  lt_cv_prog_compiler_c_o=no
10059   $RM -r conftest 2>/dev/null
10060   mkdir conftest
10061   cd conftest
10062   mkdir out
10063   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10064
10065   lt_compiler_flag="-o out/conftest2.$ac_objext"
10066   # Insert the option either (1) after the last *FLAGS variable, or
10067   # (2) before a word containing "conftest.", or (3) at the end.
10068   # Note that $ac_compile itself does not contain backslashes and begins
10069   # with a dollar sign (not a hyphen), so the echo should work correctly.
10070   lt_compile=`echo "$ac_compile" | $SED \
10071   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10072   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10073   -e 's:$: $lt_compiler_flag:'`
10074   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10075   (eval "$lt_compile" 2>out/conftest.err)
10076   ac_status=$?
10077   cat out/conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10080   then
10081     # The compiler can only warn and ignore the option if not recognized
10082     # So say no if there are warnings
10083     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10084     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10085     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10086       lt_cv_prog_compiler_c_o=yes
10087     fi
10088   fi
10089   chmod u+w . 2>&5
10090   $RM conftest*
10091   # SGI C++ compiler will create directory out/ii_files/ for
10092   # template instantiation
10093   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10094   $RM out/* && rmdir out
10095   cd ..
10096   $RM -r conftest
10097   $RM conftest*
10098
10099fi
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10101$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10102
10103
10104
10105
10106
10107
10108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10109$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10110if ${lt_cv_prog_compiler_c_o+:} false; then :
10111  $as_echo_n "(cached) " >&6
10112else
10113  lt_cv_prog_compiler_c_o=no
10114   $RM -r conftest 2>/dev/null
10115   mkdir conftest
10116   cd conftest
10117   mkdir out
10118   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10119
10120   lt_compiler_flag="-o out/conftest2.$ac_objext"
10121   # Insert the option either (1) after the last *FLAGS variable, or
10122   # (2) before a word containing "conftest.", or (3) at the end.
10123   # Note that $ac_compile itself does not contain backslashes and begins
10124   # with a dollar sign (not a hyphen), so the echo should work correctly.
10125   lt_compile=`echo "$ac_compile" | $SED \
10126   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10127   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10128   -e 's:$: $lt_compiler_flag:'`
10129   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10130   (eval "$lt_compile" 2>out/conftest.err)
10131   ac_status=$?
10132   cat out/conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10135   then
10136     # The compiler can only warn and ignore the option if not recognized
10137     # So say no if there are warnings
10138     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10139     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10140     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10141       lt_cv_prog_compiler_c_o=yes
10142     fi
10143   fi
10144   chmod u+w . 2>&5
10145   $RM conftest*
10146   # SGI C++ compiler will create directory out/ii_files/ for
10147   # template instantiation
10148   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10149   $RM out/* && rmdir out
10150   cd ..
10151   $RM -r conftest
10152   $RM conftest*
10153
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10156$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10157
10158
10159
10160
10161hard_links=nottested
10162if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10163  # do not overwrite the value of need_locks provided by the user
10164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10165$as_echo_n "checking if we can lock with hard links... " >&6; }
10166  hard_links=yes
10167  $RM conftest*
10168  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10169  touch conftest.a
10170  ln conftest.a conftest.b 2>&5 || hard_links=no
10171  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10173$as_echo "$hard_links" >&6; }
10174  if test no = "$hard_links"; then
10175    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10176$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10177    need_locks=warn
10178  fi
10179else
10180  need_locks=no
10181fi
10182
10183
10184
10185
10186
10187
10188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10189$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10190
10191  runpath_var=
10192  allow_undefined_flag=
10193  always_export_symbols=no
10194  archive_cmds=
10195  archive_expsym_cmds=
10196  compiler_needs_object=no
10197  enable_shared_with_static_runtimes=no
10198  export_dynamic_flag_spec=
10199  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10200  hardcode_automatic=no
10201  hardcode_direct=no
10202  hardcode_direct_absolute=no
10203  hardcode_libdir_flag_spec=
10204  hardcode_libdir_separator=
10205  hardcode_minus_L=no
10206  hardcode_shlibpath_var=unsupported
10207  inherit_rpath=no
10208  link_all_deplibs=unknown
10209  module_cmds=
10210  module_expsym_cmds=
10211  old_archive_from_new_cmds=
10212  old_archive_from_expsyms_cmds=
10213  thread_safe_flag_spec=
10214  whole_archive_flag_spec=
10215  # include_expsyms should be a list of space-separated symbols to be *always*
10216  # included in the symbol list
10217  include_expsyms=
10218  # exclude_expsyms can be an extended regexp of symbols to exclude
10219  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10220  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10221  # as well as any symbol that contains 'd'.
10222  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10223  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10224  # platforms (ab)use it in PIC code, but their linkers get confused if
10225  # the symbol is explicitly referenced.  Since portable code cannot
10226  # rely on this symbol name, it's probably fine to never include it in
10227  # preloaded symbol tables.
10228  # Exclude shared library initialization/finalization symbols.
10229  extract_expsyms_cmds=
10230
10231  case $host_os in
10232  cygwin* | mingw* | pw32* | cegcc*)
10233    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10234    # When not using gcc, we currently assume that we are using
10235    # Microsoft Visual C++.
10236    if test yes != "$GCC"; then
10237      with_gnu_ld=no
10238    fi
10239    ;;
10240  interix*)
10241    # we just hope/assume this is gcc and not c89 (= MSVC++)
10242    with_gnu_ld=yes
10243    ;;
10244  openbsd* | bitrig*)
10245    with_gnu_ld=no
10246    ;;
10247  esac
10248
10249  ld_shlibs=yes
10250
10251  # On some targets, GNU ld is compatible enough with the native linker
10252  # that we're better off using the native interface for both.
10253  lt_use_gnu_ld_interface=no
10254  if test yes = "$with_gnu_ld"; then
10255    case $host_os in
10256      aix*)
10257	# The AIX port of GNU ld has always aspired to compatibility
10258	# with the native linker.  However, as the warning in the GNU ld
10259	# block says, versions before 2.19.5* couldn't really create working
10260	# shared libraries, regardless of the interface used.
10261	case `$LD -v 2>&1` in
10262	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10263	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10264	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10265	  *)
10266	    lt_use_gnu_ld_interface=yes
10267	    ;;
10268	esac
10269	;;
10270      *)
10271	lt_use_gnu_ld_interface=yes
10272	;;
10273    esac
10274  fi
10275
10276  if test yes = "$lt_use_gnu_ld_interface"; then
10277    # If archive_cmds runs LD, not CC, wlarc should be empty
10278    wlarc='$wl'
10279
10280    # Set some defaults for GNU ld with shared library support. These
10281    # are reset later if shared libraries are not supported. Putting them
10282    # here allows them to be overridden if necessary.
10283    runpath_var=LD_RUN_PATH
10284    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10285    export_dynamic_flag_spec='$wl--export-dynamic'
10286    # ancient GNU ld didn't support --whole-archive et. al.
10287    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10288      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10289    else
10290      whole_archive_flag_spec=
10291    fi
10292    supports_anon_versioning=no
10293    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10294      *GNU\ gold*) supports_anon_versioning=yes ;;
10295      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10296      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10297      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10298      *\ 2.11.*) ;; # other 2.11 versions
10299      *) supports_anon_versioning=yes ;;
10300    esac
10301
10302    # See if GNU ld supports shared libraries.
10303    case $host_os in
10304    aix[3-9]*)
10305      # On AIX/PPC, the GNU linker is very broken
10306      if test ia64 != "$host_cpu"; then
10307	ld_shlibs=no
10308	cat <<_LT_EOF 1>&2
10309
10310*** Warning: the GNU linker, at least up to release 2.19, is reported
10311*** to be unable to reliably create shared libraries on AIX.
10312*** Therefore, libtool is disabling shared libraries support.  If you
10313*** really care for shared libraries, you may want to install binutils
10314*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10315*** You will then need to restart the configuration process.
10316
10317_LT_EOF
10318      fi
10319      ;;
10320
10321    amigaos*)
10322      case $host_cpu in
10323      powerpc)
10324            # see comment about AmigaOS4 .so support
10325            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10326            archive_expsym_cmds=''
10327        ;;
10328      m68k)
10329            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)'
10330            hardcode_libdir_flag_spec='-L$libdir'
10331            hardcode_minus_L=yes
10332        ;;
10333      esac
10334      ;;
10335
10336    beos*)
10337      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338	allow_undefined_flag=unsupported
10339	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10340	# support --undefined.  This deserves some investigation.  FIXME
10341	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10342      else
10343	ld_shlibs=no
10344      fi
10345      ;;
10346
10347    cygwin* | mingw* | pw32* | cegcc*)
10348      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10349      # as there is no search path for DLLs.
10350      hardcode_libdir_flag_spec='-L$libdir'
10351      export_dynamic_flag_spec='$wl--export-all-symbols'
10352      allow_undefined_flag=unsupported
10353      always_export_symbols=no
10354      enable_shared_with_static_runtimes=yes
10355      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'
10356      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10357
10358      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10359        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10360	# If the export-symbols file already is a .def file, use it as
10361	# is; otherwise, prepend EXPORTS...
10362	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10363          cp $export_symbols $output_objdir/$soname.def;
10364        else
10365          echo EXPORTS > $output_objdir/$soname.def;
10366          cat $export_symbols >> $output_objdir/$soname.def;
10367        fi~
10368        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10369      else
10370	ld_shlibs=no
10371      fi
10372      ;;
10373
10374    haiku*)
10375      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10376      link_all_deplibs=yes
10377      ;;
10378
10379    os2*)
10380      hardcode_libdir_flag_spec='-L$libdir'
10381      hardcode_minus_L=yes
10382      allow_undefined_flag=unsupported
10383      shrext_cmds=.dll
10384      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10385	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10386	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10387	$ECHO EXPORTS >> $output_objdir/$libname.def~
10388	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10389	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10390	emximp -o $lib $output_objdir/$libname.def'
10391      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10392	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10393	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10394	$ECHO EXPORTS >> $output_objdir/$libname.def~
10395	prefix_cmds="$SED"~
10396	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10397	  prefix_cmds="$prefix_cmds -e 1d";
10398	fi~
10399	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10400	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10401	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10402	emximp -o $lib $output_objdir/$libname.def'
10403      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10404      enable_shared_with_static_runtimes=yes
10405      ;;
10406
10407    interix[3-9]*)
10408      hardcode_direct=no
10409      hardcode_shlibpath_var=no
10410      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10411      export_dynamic_flag_spec='$wl-E'
10412      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10413      # Instead, shared libraries are loaded at an image base (0x10000000 by
10414      # default) and relocated if they conflict, which is a slow very memory
10415      # consuming and fragmenting process.  To avoid this, we pick a random,
10416      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10417      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10418      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10419      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'
10420      ;;
10421
10422    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10423      tmp_diet=no
10424      if test linux-dietlibc = "$host_os"; then
10425	case $cc_basename in
10426	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10427	esac
10428      fi
10429      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10430	 && test no = "$tmp_diet"
10431      then
10432	tmp_addflag=' $pic_flag'
10433	tmp_sharedflag='-shared'
10434	case $cc_basename,$host_cpu in
10435        pgcc*)				# Portland Group C compiler
10436	  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'
10437	  tmp_addflag=' $pic_flag'
10438	  ;;
10439	pgf77* | pgf90* | pgf95* | pgfortran*)
10440					# Portland Group f77 and f90 compilers
10441	  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'
10442	  tmp_addflag=' $pic_flag -Mnomain' ;;
10443	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10444	  tmp_addflag=' -i_dynamic' ;;
10445	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10446	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10447	ifc* | ifort*)			# Intel Fortran compiler
10448	  tmp_addflag=' -nofor_main' ;;
10449	lf95*)				# Lahey Fortran 8.1
10450	  whole_archive_flag_spec=
10451	  tmp_sharedflag='--shared' ;;
10452        nagfor*)                        # NAGFOR 5.3
10453          tmp_sharedflag='-Wl,-shared' ;;
10454	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10455	  tmp_sharedflag='-qmkshrobj'
10456	  tmp_addflag= ;;
10457	nvcc*)	# Cuda Compiler Driver 2.2
10458	  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'
10459	  compiler_needs_object=yes
10460	  ;;
10461	esac
10462	case `$CC -V 2>&1 | sed 5q` in
10463	*Sun\ C*)			# Sun C 5.9
10464	  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'
10465	  compiler_needs_object=yes
10466	  tmp_sharedflag='-G' ;;
10467	*Sun\ F*)			# Sun Fortran 8.3
10468	  tmp_sharedflag='-G' ;;
10469	esac
10470	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471
10472        if test yes = "$supports_anon_versioning"; then
10473          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10474            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10475            echo "local: *; };" >> $output_objdir/$libname.ver~
10476            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10477        fi
10478
10479	case $cc_basename in
10480	tcc*)
10481	  export_dynamic_flag_spec='-rdynamic'
10482	  ;;
10483	xlf* | bgf* | bgxlf* | mpixlf*)
10484	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10485	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10486	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10487	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10488	  if test yes = "$supports_anon_versioning"; then
10489	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10490              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10491              echo "local: *; };" >> $output_objdir/$libname.ver~
10492              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10493	  fi
10494	  ;;
10495	esac
10496      else
10497        ld_shlibs=no
10498      fi
10499      ;;
10500
10501    netbsd*)
10502      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10503	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10504	wlarc=
10505      else
10506	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10507	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10508      fi
10509      ;;
10510
10511    solaris*)
10512      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10513	ld_shlibs=no
10514	cat <<_LT_EOF 1>&2
10515
10516*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10517*** create shared libraries on Solaris systems.  Therefore, libtool
10518*** is disabling shared libraries support.  We urge you to upgrade GNU
10519*** binutils to release 2.9.1 or newer.  Another option is to modify
10520*** your PATH or compiler configuration so that the native linker is
10521*** used, and then restart.
10522
10523_LT_EOF
10524      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10525	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10526	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10527      else
10528	ld_shlibs=no
10529      fi
10530      ;;
10531
10532    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10533      case `$LD -v 2>&1` in
10534        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10535	ld_shlibs=no
10536	cat <<_LT_EOF 1>&2
10537
10538*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10539*** reliably create shared libraries on SCO systems.  Therefore, libtool
10540*** is disabling shared libraries support.  We urge you to upgrade GNU
10541*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10542*** your PATH or compiler configuration so that the native linker is
10543*** used, and then restart.
10544
10545_LT_EOF
10546	;;
10547	*)
10548	  # For security reasons, it is highly recommended that you always
10549	  # use absolute paths for naming shared libraries, and exclude the
10550	  # DT_RUNPATH tag from executables and libraries.  But doing so
10551	  # requires that you compile everything twice, which is a pain.
10552	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10554	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10555	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10556	  else
10557	    ld_shlibs=no
10558	  fi
10559	;;
10560      esac
10561      ;;
10562
10563    sunos4*)
10564      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565      wlarc=
10566      hardcode_direct=yes
10567      hardcode_shlibpath_var=no
10568      ;;
10569
10570    *)
10571      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10572	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10573	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10574      else
10575	ld_shlibs=no
10576      fi
10577      ;;
10578    esac
10579
10580    if test no = "$ld_shlibs"; then
10581      runpath_var=
10582      hardcode_libdir_flag_spec=
10583      export_dynamic_flag_spec=
10584      whole_archive_flag_spec=
10585    fi
10586  else
10587    # PORTME fill in a description of your system's linker (not GNU ld)
10588    case $host_os in
10589    aix3*)
10590      allow_undefined_flag=unsupported
10591      always_export_symbols=yes
10592      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'
10593      # Note: this linker hardcodes the directories in LIBPATH if there
10594      # are no directories specified by -L.
10595      hardcode_minus_L=yes
10596      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10597	# Neither direct hardcoding nor static linking is supported with a
10598	# broken collect2.
10599	hardcode_direct=unsupported
10600      fi
10601      ;;
10602
10603    aix[4-9]*)
10604      if test ia64 = "$host_cpu"; then
10605	# On IA64, the linker does run time linking by default, so we don't
10606	# have to do anything special.
10607	aix_use_runtimelinking=no
10608	exp_sym_flag='-Bexport'
10609	no_entry_flag=
10610      else
10611	# If we're using GNU nm, then we don't want the "-C" option.
10612	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10613	# Without the "-l" option, or with the "-B" option, AIX nm treats
10614	# weak defined symbols like other global defined symbols, whereas
10615	# GNU nm marks them as "W".
10616	# While the 'weak' keyword is ignored in the Export File, we need
10617	# it in the Import File for the 'aix-soname' feature, so we have
10618	# to replace the "-B" option with "-P" for AIX nm.
10619	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10620	  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'
10621	else
10622	  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'
10623	fi
10624	aix_use_runtimelinking=no
10625
10626	# Test if we are trying to use run time linking or normal
10627	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10628	# have runtime linking enabled, and use it for executables.
10629	# For shared libraries, we enable/disable runtime linking
10630	# depending on the kind of the shared library created -
10631	# when "with_aix_soname,aix_use_runtimelinking" is:
10632	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10633	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10634	#            lib.a           static archive
10635	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10636	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10637	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10638	#            lib.a(lib.so.V) shared, rtl:no
10639	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10640	#            lib.a           static archive
10641	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10642	  for ld_flag in $LDFLAGS; do
10643	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10644	    aix_use_runtimelinking=yes
10645	    break
10646	  fi
10647	  done
10648	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10649	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10650	    # so we don't have lib.a shared libs to link our executables.
10651	    # We have to force runtime linking in this case.
10652	    aix_use_runtimelinking=yes
10653	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10654	  fi
10655	  ;;
10656	esac
10657
10658	exp_sym_flag='-bexport'
10659	no_entry_flag='-bnoentry'
10660      fi
10661
10662      # When large executables or shared objects are built, AIX ld can
10663      # have problems creating the table of contents.  If linking a library
10664      # or program results in "error TOC overflow" add -mminimal-toc to
10665      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10666      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10667
10668      archive_cmds=''
10669      hardcode_direct=yes
10670      hardcode_direct_absolute=yes
10671      hardcode_libdir_separator=':'
10672      link_all_deplibs=yes
10673      file_list_spec='$wl-f,'
10674      case $with_aix_soname,$aix_use_runtimelinking in
10675      aix,*) ;; # traditional, no import file
10676      svr4,* | *,yes) # use import file
10677	# The Import File defines what to hardcode.
10678	hardcode_direct=no
10679	hardcode_direct_absolute=no
10680	;;
10681      esac
10682
10683      if test yes = "$GCC"; then
10684	case $host_os in aix4.[012]|aix4.[012].*)
10685	# We only want to do this on AIX 4.2 and lower, the check
10686	# below for broken collect2 doesn't work under 4.3+
10687	  collect2name=`$CC -print-prog-name=collect2`
10688	  if test -f "$collect2name" &&
10689	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10690	  then
10691	  # We have reworked collect2
10692	  :
10693	  else
10694	  # We have old collect2
10695	  hardcode_direct=unsupported
10696	  # It fails to find uninstalled libraries when the uninstalled
10697	  # path is not listed in the libpath.  Setting hardcode_minus_L
10698	  # to unsupported forces relinking
10699	  hardcode_minus_L=yes
10700	  hardcode_libdir_flag_spec='-L$libdir'
10701	  hardcode_libdir_separator=
10702	  fi
10703	  ;;
10704	esac
10705	shared_flag='-shared'
10706	if test yes = "$aix_use_runtimelinking"; then
10707	  shared_flag="$shared_flag "'$wl-G'
10708	fi
10709	# Need to ensure runtime linking is disabled for the traditional
10710	# shared library, or the linker may eventually find shared libraries
10711	# /with/ Import File - we do not want to mix them.
10712	shared_flag_aix='-shared'
10713	shared_flag_svr4='-shared $wl-G'
10714      else
10715	# not using gcc
10716	if test ia64 = "$host_cpu"; then
10717	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10718	# chokes on -Wl,-G. The following line is correct:
10719	  shared_flag='-G'
10720	else
10721	  if test yes = "$aix_use_runtimelinking"; then
10722	    shared_flag='$wl-G'
10723	  else
10724	    shared_flag='$wl-bM:SRE'
10725	  fi
10726	  shared_flag_aix='$wl-bM:SRE'
10727	  shared_flag_svr4='$wl-G'
10728	fi
10729      fi
10730
10731      export_dynamic_flag_spec='$wl-bexpall'
10732      # It seems that -bexpall does not export symbols beginning with
10733      # underscore (_), so it is better to generate a list of symbols to export.
10734      always_export_symbols=yes
10735      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10736	# Warning - without using the other runtime loading flags (-brtl),
10737	# -berok will link without error, but may produce a broken library.
10738	allow_undefined_flag='-berok'
10739        # Determine the default libpath from the value encoded in an
10740        # empty executable.
10741        if test set = "${lt_cv_aix_libpath+set}"; then
10742  aix_libpath=$lt_cv_aix_libpath
10743else
10744  if ${lt_cv_aix_libpath_+:} false; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748/* end confdefs.h.  */
10749
10750int
10751main ()
10752{
10753
10754  ;
10755  return 0;
10756}
10757_ACEOF
10758if ac_fn_c_try_link "$LINENO"; then :
10759
10760  lt_aix_libpath_sed='
10761      /Import File Strings/,/^$/ {
10762	  /^0/ {
10763	      s/^0  *\([^ ]*\) *$/\1/
10764	      p
10765	  }
10766      }'
10767  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10768  # Check for a 64-bit object if we didn't find anything.
10769  if test -z "$lt_cv_aix_libpath_"; then
10770    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10771  fi
10772fi
10773rm -f core conftest.err conftest.$ac_objext \
10774    conftest$ac_exeext conftest.$ac_ext
10775  if test -z "$lt_cv_aix_libpath_"; then
10776    lt_cv_aix_libpath_=/usr/lib:/lib
10777  fi
10778
10779fi
10780
10781  aix_libpath=$lt_cv_aix_libpath_
10782fi
10783
10784        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10785        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
10786      else
10787	if test ia64 = "$host_cpu"; then
10788	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10789	  allow_undefined_flag="-z nodefs"
10790	  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"
10791	else
10792	 # Determine the default libpath from the value encoded in an
10793	 # empty executable.
10794	 if test set = "${lt_cv_aix_libpath+set}"; then
10795  aix_libpath=$lt_cv_aix_libpath
10796else
10797  if ${lt_cv_aix_libpath_+:} false; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h.  */
10802
10803int
10804main ()
10805{
10806
10807  ;
10808  return 0;
10809}
10810_ACEOF
10811if ac_fn_c_try_link "$LINENO"; then :
10812
10813  lt_aix_libpath_sed='
10814      /Import File Strings/,/^$/ {
10815	  /^0/ {
10816	      s/^0  *\([^ ]*\) *$/\1/
10817	      p
10818	  }
10819      }'
10820  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10821  # Check for a 64-bit object if we didn't find anything.
10822  if test -z "$lt_cv_aix_libpath_"; then
10823    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10824  fi
10825fi
10826rm -f core conftest.err conftest.$ac_objext \
10827    conftest$ac_exeext conftest.$ac_ext
10828  if test -z "$lt_cv_aix_libpath_"; then
10829    lt_cv_aix_libpath_=/usr/lib:/lib
10830  fi
10831
10832fi
10833
10834  aix_libpath=$lt_cv_aix_libpath_
10835fi
10836
10837	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10838	  # Warning - without using the other run time loading flags,
10839	  # -berok will link without error, but may produce a broken library.
10840	  no_undefined_flag=' $wl-bernotok'
10841	  allow_undefined_flag=' $wl-berok'
10842	  if test yes = "$with_gnu_ld"; then
10843	    # We only use this code for GNU lds that support --whole-archive.
10844	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10845	  else
10846	    # Exported symbols can be pulled into shared objects from archives
10847	    whole_archive_flag_spec='$convenience'
10848	  fi
10849	  archive_cmds_need_lc=yes
10850	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10851	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10852	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10853	  if test svr4 != "$with_aix_soname"; then
10854	    # This is similar to how AIX traditionally builds its shared libraries.
10855	    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'
10856	  fi
10857	  if test aix != "$with_aix_soname"; then
10858	    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'
10859	  else
10860	    # used by -dlpreopen to get the symbols
10861	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10862	  fi
10863	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10864	fi
10865      fi
10866      ;;
10867
10868    amigaos*)
10869      case $host_cpu in
10870      powerpc)
10871            # see comment about AmigaOS4 .so support
10872            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10873            archive_expsym_cmds=''
10874        ;;
10875      m68k)
10876            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)'
10877            hardcode_libdir_flag_spec='-L$libdir'
10878            hardcode_minus_L=yes
10879        ;;
10880      esac
10881      ;;
10882
10883    bsdi[45]*)
10884      export_dynamic_flag_spec=-rdynamic
10885      ;;
10886
10887    cygwin* | mingw* | pw32* | cegcc*)
10888      # When not using gcc, we currently assume that we are using
10889      # Microsoft Visual C++.
10890      # hardcode_libdir_flag_spec is actually meaningless, as there is
10891      # no search path for DLLs.
10892      case $cc_basename in
10893      cl*)
10894	# Native MSVC
10895	hardcode_libdir_flag_spec=' '
10896	allow_undefined_flag=unsupported
10897	always_export_symbols=yes
10898	file_list_spec='@'
10899	# Tell ltmain to make .lib files, not .a files.
10900	libext=lib
10901	# Tell ltmain to make .dll files, not .so files.
10902	shrext_cmds=.dll
10903	# FIXME: Setting linknames here is a bad hack.
10904	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10905	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10906            cp "$export_symbols" "$output_objdir/$soname.def";
10907            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10908          else
10909            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10910          fi~
10911          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10912          linknames='
10913	# The linker will not automatically build a static lib if we build a DLL.
10914	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10915	enable_shared_with_static_runtimes=yes
10916	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10917	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10918	# Don't use ranlib
10919	old_postinstall_cmds='chmod 644 $oldlib'
10920	postlink_cmds='lt_outputfile="@OUTPUT@"~
10921          lt_tool_outputfile="@TOOL_OUTPUT@"~
10922          case $lt_outputfile in
10923            *.exe|*.EXE) ;;
10924            *)
10925              lt_outputfile=$lt_outputfile.exe
10926              lt_tool_outputfile=$lt_tool_outputfile.exe
10927              ;;
10928          esac~
10929          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10930            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10931            $RM "$lt_outputfile.manifest";
10932          fi'
10933	;;
10934      *)
10935	# Assume MSVC wrapper
10936	hardcode_libdir_flag_spec=' '
10937	allow_undefined_flag=unsupported
10938	# Tell ltmain to make .lib files, not .a files.
10939	libext=lib
10940	# Tell ltmain to make .dll files, not .so files.
10941	shrext_cmds=.dll
10942	# FIXME: Setting linknames here is a bad hack.
10943	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10944	# The linker will automatically build a .lib file if we build a DLL.
10945	old_archive_from_new_cmds='true'
10946	# FIXME: Should let the user specify the lib program.
10947	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10948	enable_shared_with_static_runtimes=yes
10949	;;
10950      esac
10951      ;;
10952
10953    darwin* | rhapsody*)
10954
10955
10956  archive_cmds_need_lc=no
10957  hardcode_direct=no
10958  hardcode_automatic=yes
10959  hardcode_shlibpath_var=unsupported
10960  if test yes = "$lt_cv_ld_force_load"; then
10961    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\"`'
10962
10963  else
10964    whole_archive_flag_spec=''
10965  fi
10966  link_all_deplibs=yes
10967  allow_undefined_flag=$_lt_dar_allow_undefined
10968  case $cc_basename in
10969     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10970     *) _lt_dar_can_shared=$GCC ;;
10971  esac
10972  if test yes = "$_lt_dar_can_shared"; then
10973    output_verbose_link_cmd=func_echo_all
10974    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10975    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10976    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"
10977    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"
10978
10979  else
10980  ld_shlibs=no
10981  fi
10982
10983      ;;
10984
10985    dgux*)
10986      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987      hardcode_libdir_flag_spec='-L$libdir'
10988      hardcode_shlibpath_var=no
10989      ;;
10990
10991    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10992    # support.  Future versions do this automatically, but an explicit c++rt0.o
10993    # does not break anything, and helps significantly (at the cost of a little
10994    # extra space).
10995    freebsd2.2*)
10996      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10997      hardcode_libdir_flag_spec='-R$libdir'
10998      hardcode_direct=yes
10999      hardcode_shlibpath_var=no
11000      ;;
11001
11002    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11003    freebsd2.*)
11004      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11005      hardcode_direct=yes
11006      hardcode_minus_L=yes
11007      hardcode_shlibpath_var=no
11008      ;;
11009
11010    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11011    freebsd* | dragonfly*)
11012      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013      hardcode_libdir_flag_spec='-R$libdir'
11014      hardcode_direct=yes
11015      hardcode_shlibpath_var=no
11016      ;;
11017
11018    hpux9*)
11019      if test yes = "$GCC"; then
11020	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'
11021      else
11022	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'
11023      fi
11024      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11025      hardcode_libdir_separator=:
11026      hardcode_direct=yes
11027
11028      # hardcode_minus_L: Not really in the search PATH,
11029      # but as the default location of the library.
11030      hardcode_minus_L=yes
11031      export_dynamic_flag_spec='$wl-E'
11032      ;;
11033
11034    hpux10*)
11035      if test yes,no = "$GCC,$with_gnu_ld"; then
11036	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11037      else
11038	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11039      fi
11040      if test no = "$with_gnu_ld"; then
11041	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11042	hardcode_libdir_separator=:
11043	hardcode_direct=yes
11044	hardcode_direct_absolute=yes
11045	export_dynamic_flag_spec='$wl-E'
11046	# hardcode_minus_L: Not really in the search PATH,
11047	# but as the default location of the library.
11048	hardcode_minus_L=yes
11049      fi
11050      ;;
11051
11052    hpux11*)
11053      if test yes,no = "$GCC,$with_gnu_ld"; then
11054	case $host_cpu in
11055	hppa*64*)
11056	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11057	  ;;
11058	ia64*)
11059	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11060	  ;;
11061	*)
11062	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063	  ;;
11064	esac
11065      else
11066	case $host_cpu in
11067	hppa*64*)
11068	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11069	  ;;
11070	ia64*)
11071	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072	  ;;
11073	*)
11074
11075	  # Older versions of the 11.00 compiler do not understand -b yet
11076	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11077	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11078$as_echo_n "checking if $CC understands -b... " >&6; }
11079if ${lt_cv_prog_compiler__b+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  lt_cv_prog_compiler__b=no
11083   save_LDFLAGS=$LDFLAGS
11084   LDFLAGS="$LDFLAGS -b"
11085   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11086   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11087     # The linker can only warn and ignore the option if not recognized
11088     # So say no if there are warnings
11089     if test -s conftest.err; then
11090       # Append any errors to the config.log.
11091       cat conftest.err 1>&5
11092       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11093       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11094       if diff conftest.exp conftest.er2 >/dev/null; then
11095         lt_cv_prog_compiler__b=yes
11096       fi
11097     else
11098       lt_cv_prog_compiler__b=yes
11099     fi
11100   fi
11101   $RM -r conftest*
11102   LDFLAGS=$save_LDFLAGS
11103
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11106$as_echo "$lt_cv_prog_compiler__b" >&6; }
11107
11108if test yes = "$lt_cv_prog_compiler__b"; then
11109    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11110else
11111    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11112fi
11113
11114	  ;;
11115	esac
11116      fi
11117      if test no = "$with_gnu_ld"; then
11118	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11119	hardcode_libdir_separator=:
11120
11121	case $host_cpu in
11122	hppa*64*|ia64*)
11123	  hardcode_direct=no
11124	  hardcode_shlibpath_var=no
11125	  ;;
11126	*)
11127	  hardcode_direct=yes
11128	  hardcode_direct_absolute=yes
11129	  export_dynamic_flag_spec='$wl-E'
11130
11131	  # hardcode_minus_L: Not really in the search PATH,
11132	  # but as the default location of the library.
11133	  hardcode_minus_L=yes
11134	  ;;
11135	esac
11136      fi
11137      ;;
11138
11139    irix5* | irix6* | nonstopux*)
11140      if test yes = "$GCC"; then
11141	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'
11142	# Try to use the -exported_symbol ld option, if it does not
11143	# work, assume that -exports_file does not work either and
11144	# implicitly export all symbols.
11145	# This should be the same for all languages, so no per-tag cache variable.
11146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11147$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11148if ${lt_cv_irix_exported_symbol+:} false; then :
11149  $as_echo_n "(cached) " >&6
11150else
11151  save_LDFLAGS=$LDFLAGS
11152	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11153	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155int foo (void) { return 0; }
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158  lt_cv_irix_exported_symbol=yes
11159else
11160  lt_cv_irix_exported_symbol=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163    conftest$ac_exeext conftest.$ac_ext
11164           LDFLAGS=$save_LDFLAGS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11167$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11168	if test yes = "$lt_cv_irix_exported_symbol"; then
11169          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'
11170	fi
11171      else
11172	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'
11173	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'
11174      fi
11175      archive_cmds_need_lc='no'
11176      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11177      hardcode_libdir_separator=:
11178      inherit_rpath=yes
11179      link_all_deplibs=yes
11180      ;;
11181
11182    linux*)
11183      case $cc_basename in
11184      tcc*)
11185	# Fabrice Bellard et al's Tiny C Compiler
11186	ld_shlibs=yes
11187	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11188	;;
11189      esac
11190      ;;
11191
11192    netbsd*)
11193      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11194	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11195      else
11196	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11197      fi
11198      hardcode_libdir_flag_spec='-R$libdir'
11199      hardcode_direct=yes
11200      hardcode_shlibpath_var=no
11201      ;;
11202
11203    newsos6)
11204      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11205      hardcode_direct=yes
11206      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11207      hardcode_libdir_separator=:
11208      hardcode_shlibpath_var=no
11209      ;;
11210
11211    *nto* | *qnx*)
11212      ;;
11213
11214    openbsd* | bitrig*)
11215      if test -f /usr/libexec/ld.so; then
11216	hardcode_direct=yes
11217	hardcode_shlibpath_var=no
11218	hardcode_direct_absolute=yes
11219	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11220	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11222	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11223	  export_dynamic_flag_spec='$wl-E'
11224	else
11225	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11226	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11227	fi
11228      else
11229	ld_shlibs=no
11230      fi
11231      ;;
11232
11233    os2*)
11234      hardcode_libdir_flag_spec='-L$libdir'
11235      hardcode_minus_L=yes
11236      allow_undefined_flag=unsupported
11237      shrext_cmds=.dll
11238      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11239	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11240	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11241	$ECHO EXPORTS >> $output_objdir/$libname.def~
11242	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11243	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11244	emximp -o $lib $output_objdir/$libname.def'
11245      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11246	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11247	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11248	$ECHO EXPORTS >> $output_objdir/$libname.def~
11249	prefix_cmds="$SED"~
11250	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11251	  prefix_cmds="$prefix_cmds -e 1d";
11252	fi~
11253	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11254	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11255	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11256	emximp -o $lib $output_objdir/$libname.def'
11257      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11258      enable_shared_with_static_runtimes=yes
11259      ;;
11260
11261    osf3*)
11262      if test yes = "$GCC"; then
11263	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11264	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'
11265      else
11266	allow_undefined_flag=' -expect_unresolved \*'
11267	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'
11268      fi
11269      archive_cmds_need_lc='no'
11270      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11271      hardcode_libdir_separator=:
11272      ;;
11273
11274    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11275      if test yes = "$GCC"; then
11276	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11277	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'
11278	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11279      else
11280	allow_undefined_flag=' -expect_unresolved \*'
11281	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'
11282	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~
11283          $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'
11284
11285	# Both c and cxx compiler support -rpath directly
11286	hardcode_libdir_flag_spec='-rpath $libdir'
11287      fi
11288      archive_cmds_need_lc='no'
11289      hardcode_libdir_separator=:
11290      ;;
11291
11292    solaris*)
11293      no_undefined_flag=' -z defs'
11294      if test yes = "$GCC"; then
11295	wlarc='$wl'
11296	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11297	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11298          $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'
11299      else
11300	case `$CC -V 2>&1` in
11301	*"Compilers 5.0"*)
11302	  wlarc=''
11303	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11305            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11306	  ;;
11307	*)
11308	  wlarc='$wl'
11309	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11310	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11311            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11312	  ;;
11313	esac
11314      fi
11315      hardcode_libdir_flag_spec='-R$libdir'
11316      hardcode_shlibpath_var=no
11317      case $host_os in
11318      solaris2.[0-5] | solaris2.[0-5].*) ;;
11319      *)
11320	# The compiler driver will combine and reorder linker options,
11321	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11322	# but is careful enough not to reorder.
11323	# Supported since Solaris 2.6 (maybe 2.5.1?)
11324	if test yes = "$GCC"; then
11325	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11326	else
11327	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11328	fi
11329	;;
11330      esac
11331      link_all_deplibs=yes
11332      ;;
11333
11334    sunos4*)
11335      if test sequent = "$host_vendor"; then
11336	# Use $CC to link under sequent, because it throws in some extra .o
11337	# files that make .init and .fini sections work.
11338	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11339      else
11340	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11341      fi
11342      hardcode_libdir_flag_spec='-L$libdir'
11343      hardcode_direct=yes
11344      hardcode_minus_L=yes
11345      hardcode_shlibpath_var=no
11346      ;;
11347
11348    sysv4)
11349      case $host_vendor in
11350	sni)
11351	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352	  hardcode_direct=yes # is this really true???
11353	;;
11354	siemens)
11355	  ## LD is ld it makes a PLAMLIB
11356	  ## CC just makes a GrossModule.
11357	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11358	  reload_cmds='$CC -r -o $output$reload_objs'
11359	  hardcode_direct=no
11360        ;;
11361	motorola)
11362	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11364	;;
11365      esac
11366      runpath_var='LD_RUN_PATH'
11367      hardcode_shlibpath_var=no
11368      ;;
11369
11370    sysv4.3*)
11371      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11372      hardcode_shlibpath_var=no
11373      export_dynamic_flag_spec='-Bexport'
11374      ;;
11375
11376    sysv4*MP*)
11377      if test -d /usr/nec; then
11378	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379	hardcode_shlibpath_var=no
11380	runpath_var=LD_RUN_PATH
11381	hardcode_runpath_var=yes
11382	ld_shlibs=yes
11383      fi
11384      ;;
11385
11386    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11387      no_undefined_flag='$wl-z,text'
11388      archive_cmds_need_lc=no
11389      hardcode_shlibpath_var=no
11390      runpath_var='LD_RUN_PATH'
11391
11392      if test yes = "$GCC"; then
11393	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395      else
11396	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398      fi
11399      ;;
11400
11401    sysv5* | sco3.2v5* | sco5v6*)
11402      # Note: We CANNOT use -z defs as we might desire, because we do not
11403      # link with -lc, and that would cause any symbols used from libc to
11404      # always be unresolved, which means just about no library would
11405      # ever link correctly.  If we're not using GNU ld we use -z text
11406      # though, which does catch some bad symbols but isn't as heavy-handed
11407      # as -z defs.
11408      no_undefined_flag='$wl-z,text'
11409      allow_undefined_flag='$wl-z,nodefs'
11410      archive_cmds_need_lc=no
11411      hardcode_shlibpath_var=no
11412      hardcode_libdir_flag_spec='$wl-R,$libdir'
11413      hardcode_libdir_separator=':'
11414      link_all_deplibs=yes
11415      export_dynamic_flag_spec='$wl-Bexport'
11416      runpath_var='LD_RUN_PATH'
11417
11418      if test yes = "$GCC"; then
11419	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421      else
11422	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11423	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424      fi
11425      ;;
11426
11427    uts4*)
11428      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11429      hardcode_libdir_flag_spec='-L$libdir'
11430      hardcode_shlibpath_var=no
11431      ;;
11432
11433    *)
11434      ld_shlibs=no
11435      ;;
11436    esac
11437
11438    if test sni = "$host_vendor"; then
11439      case $host in
11440      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11441	export_dynamic_flag_spec='$wl-Blargedynsym'
11442	;;
11443      esac
11444    fi
11445  fi
11446
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11448$as_echo "$ld_shlibs" >&6; }
11449test no = "$ld_shlibs" && can_build_shared=no
11450
11451with_gnu_ld=$with_gnu_ld
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467#
11468# Do we need to explicitly link libc?
11469#
11470case "x$archive_cmds_need_lc" in
11471x|xyes)
11472  # Assume -lc should be added
11473  archive_cmds_need_lc=yes
11474
11475  if test yes,yes = "$GCC,$enable_shared"; then
11476    case $archive_cmds in
11477    *'~'*)
11478      # FIXME: we may have to deal with multi-command sequences.
11479      ;;
11480    '$CC '*)
11481      # Test whether the compiler implicitly links with -lc since on some
11482      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11483      # to ld, don't add -lc before -lgcc.
11484      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11485$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11486if ${lt_cv_archive_cmds_need_lc+:} false; then :
11487  $as_echo_n "(cached) " >&6
11488else
11489  $RM conftest*
11490	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11491
11492	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11493  (eval $ac_compile) 2>&5
11494  ac_status=$?
11495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496  test $ac_status = 0; } 2>conftest.err; then
11497	  soname=conftest
11498	  lib=conftest
11499	  libobjs=conftest.$ac_objext
11500	  deplibs=
11501	  wl=$lt_prog_compiler_wl
11502	  pic_flag=$lt_prog_compiler_pic
11503	  compiler_flags=-v
11504	  linker_flags=-v
11505	  verstring=
11506	  output_objdir=.
11507	  libname=conftest
11508	  lt_save_allow_undefined_flag=$allow_undefined_flag
11509	  allow_undefined_flag=
11510	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11511  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11512  ac_status=$?
11513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11514  test $ac_status = 0; }
11515	  then
11516	    lt_cv_archive_cmds_need_lc=no
11517	  else
11518	    lt_cv_archive_cmds_need_lc=yes
11519	  fi
11520	  allow_undefined_flag=$lt_save_allow_undefined_flag
11521	else
11522	  cat conftest.err 1>&5
11523	fi
11524	$RM conftest*
11525
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11528$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11529      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11530      ;;
11531    esac
11532  fi
11533  ;;
11534esac
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11688$as_echo_n "checking dynamic linker characteristics... " >&6; }
11689
11690if test yes = "$GCC"; then
11691  case $host_os in
11692    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11693    *) lt_awk_arg='/^libraries:/' ;;
11694  esac
11695  case $host_os in
11696    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11697    *) lt_sed_strip_eq='s|=/|/|g' ;;
11698  esac
11699  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11700  case $lt_search_path_spec in
11701  *\;*)
11702    # if the path contains ";" then we assume it to be the separator
11703    # otherwise default to the standard path separator (i.e. ":") - it is
11704    # assumed that no part of a normal pathname contains ";" but that should
11705    # okay in the real world where ";" in dirpaths is itself problematic.
11706    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11707    ;;
11708  *)
11709    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11710    ;;
11711  esac
11712  # Ok, now we have the path, separated by spaces, we can step through it
11713  # and add multilib dir if necessary...
11714  lt_tmp_lt_search_path_spec=
11715  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11716  # ...but if some path component already ends with the multilib dir we assume
11717  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11718  case "$lt_multi_os_dir; $lt_search_path_spec " in
11719  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11720    lt_multi_os_dir=
11721    ;;
11722  esac
11723  for lt_sys_path in $lt_search_path_spec; do
11724    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11725      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11726    elif test -n "$lt_multi_os_dir"; then
11727      test -d "$lt_sys_path" && \
11728	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11729    fi
11730  done
11731  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11732BEGIN {RS = " "; FS = "/|\n";} {
11733  lt_foo = "";
11734  lt_count = 0;
11735  for (lt_i = NF; lt_i > 0; lt_i--) {
11736    if ($lt_i != "" && $lt_i != ".") {
11737      if ($lt_i == "..") {
11738        lt_count++;
11739      } else {
11740        if (lt_count == 0) {
11741          lt_foo = "/" $lt_i lt_foo;
11742        } else {
11743          lt_count--;
11744        }
11745      }
11746    }
11747  }
11748  if (lt_foo != "") { lt_freq[lt_foo]++; }
11749  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11750}'`
11751  # AWK program above erroneously prepends '/' to C:/dos/paths
11752  # for these hosts.
11753  case $host_os in
11754    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11755      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11756  esac
11757  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11758else
11759  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11760fi
11761library_names_spec=
11762libname_spec='lib$name'
11763soname_spec=
11764shrext_cmds=.so
11765postinstall_cmds=
11766postuninstall_cmds=
11767finish_cmds=
11768finish_eval=
11769shlibpath_var=
11770shlibpath_overrides_runpath=unknown
11771version_type=none
11772dynamic_linker="$host_os ld.so"
11773sys_lib_dlsearch_path_spec="/lib /usr/lib"
11774need_lib_prefix=unknown
11775hardcode_into_libs=no
11776
11777# when you set need_version to no, make sure it does not cause -set_version
11778# flags to be left without arguments
11779need_version=unknown
11780
11781
11782
11783case $host_os in
11784aix3*)
11785  version_type=linux # correct to gnu/linux during the next big refactor
11786  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11787  shlibpath_var=LIBPATH
11788
11789  # AIX 3 has no versioning support, so we append a major version to the name.
11790  soname_spec='$libname$release$shared_ext$major'
11791  ;;
11792
11793aix[4-9]*)
11794  version_type=linux # correct to gnu/linux during the next big refactor
11795  need_lib_prefix=no
11796  need_version=no
11797  hardcode_into_libs=yes
11798  if test ia64 = "$host_cpu"; then
11799    # AIX 5 supports IA64
11800    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11801    shlibpath_var=LD_LIBRARY_PATH
11802  else
11803    # With GCC up to 2.95.x, collect2 would create an import file
11804    # for dependence libraries.  The import file would start with
11805    # the line '#! .'.  This would cause the generated library to
11806    # depend on '.', always an invalid library.  This was fixed in
11807    # development snapshots of GCC prior to 3.0.
11808    case $host_os in
11809      aix4 | aix4.[01] | aix4.[01].*)
11810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11811	   echo ' yes '
11812	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11813	:
11814      else
11815	can_build_shared=no
11816      fi
11817      ;;
11818    esac
11819    # Using Import Files as archive members, it is possible to support
11820    # filename-based versioning of shared library archives on AIX. While
11821    # this would work for both with and without runtime linking, it will
11822    # prevent static linking of such archives. So we do filename-based
11823    # shared library versioning with .so extension only, which is used
11824    # when both runtime linking and shared linking is enabled.
11825    # Unfortunately, runtime linking may impact performance, so we do
11826    # not want this to be the default eventually. Also, we use the
11827    # versioned .so libs for executables only if there is the -brtl
11828    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11829    # To allow for filename-based versioning support, we need to create
11830    # libNAME.so.V as an archive file, containing:
11831    # *) an Import File, referring to the versioned filename of the
11832    #    archive as well as the shared archive member, telling the
11833    #    bitwidth (32 or 64) of that shared object, and providing the
11834    #    list of exported symbols of that shared object, eventually
11835    #    decorated with the 'weak' keyword
11836    # *) the shared object with the F_LOADONLY flag set, to really avoid
11837    #    it being seen by the linker.
11838    # At run time we better use the real file rather than another symlink,
11839    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11840
11841    case $with_aix_soname,$aix_use_runtimelinking in
11842    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11843    # soname into executable. Probably we can add versioning support to
11844    # collect2, so additional links can be useful in future.
11845    aix,yes) # traditional libtool
11846      dynamic_linker='AIX unversionable lib.so'
11847      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11848      # instead of lib<name>.a to let people know that these are not
11849      # typical AIX shared libraries.
11850      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851      ;;
11852    aix,no) # traditional AIX only
11853      dynamic_linker='AIX lib.a(lib.so.V)'
11854      # We preserve .a as extension for shared libraries through AIX4.2
11855      # and later when we are not doing run time linking.
11856      library_names_spec='$libname$release.a $libname.a'
11857      soname_spec='$libname$release$shared_ext$major'
11858      ;;
11859    svr4,*) # full svr4 only
11860      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11861      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11862      # We do not specify a path in Import Files, so LIBPATH fires.
11863      shlibpath_overrides_runpath=yes
11864      ;;
11865    *,yes) # both, prefer svr4
11866      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11867      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11868      # unpreferred sharedlib libNAME.a needs extra handling
11869      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"'
11870      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"'
11871      # We do not specify a path in Import Files, so LIBPATH fires.
11872      shlibpath_overrides_runpath=yes
11873      ;;
11874    *,no) # both, prefer aix
11875      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11876      library_names_spec='$libname$release.a $libname.a'
11877      soname_spec='$libname$release$shared_ext$major'
11878      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11879      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)'
11880      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"'
11881      ;;
11882    esac
11883    shlibpath_var=LIBPATH
11884  fi
11885  ;;
11886
11887amigaos*)
11888  case $host_cpu in
11889  powerpc)
11890    # Since July 2007 AmigaOS4 officially supports .so libraries.
11891    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11892    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893    ;;
11894  m68k)
11895    library_names_spec='$libname.ixlibrary $libname.a'
11896    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11897    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'
11898    ;;
11899  esac
11900  ;;
11901
11902beos*)
11903  library_names_spec='$libname$shared_ext'
11904  dynamic_linker="$host_os ld.so"
11905  shlibpath_var=LIBRARY_PATH
11906  ;;
11907
11908bsdi[45]*)
11909  version_type=linux # correct to gnu/linux during the next big refactor
11910  need_version=no
11911  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912  soname_spec='$libname$release$shared_ext$major'
11913  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11914  shlibpath_var=LD_LIBRARY_PATH
11915  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11916  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11917  # the default ld.so.conf also contains /usr/contrib/lib and
11918  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11919  # libtool to hard-code these into programs
11920  ;;
11921
11922cygwin* | mingw* | pw32* | cegcc*)
11923  version_type=windows
11924  shrext_cmds=.dll
11925  need_version=no
11926  need_lib_prefix=no
11927
11928  case $GCC,$cc_basename in
11929  yes,*)
11930    # gcc
11931    library_names_spec='$libname.dll.a'
11932    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11933    postinstall_cmds='base_file=`basename \$file`~
11934      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11935      dldir=$destdir/`dirname \$dlpath`~
11936      test -d \$dldir || mkdir -p \$dldir~
11937      $install_prog $dir/$dlname \$dldir/$dlname~
11938      chmod a+x \$dldir/$dlname~
11939      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11940        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11941      fi'
11942    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11943      dlpath=$dir/\$dldll~
11944       $RM \$dlpath'
11945    shlibpath_overrides_runpath=yes
11946
11947    case $host_os in
11948    cygwin*)
11949      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11950      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11951
11952      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11953      ;;
11954    mingw* | cegcc*)
11955      # MinGW DLLs use traditional 'lib' prefix
11956      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11957      ;;
11958    pw32*)
11959      # pw32 DLLs use 'pw' prefix rather than 'lib'
11960      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11961      ;;
11962    esac
11963    dynamic_linker='Win32 ld.exe'
11964    ;;
11965
11966  *,cl*)
11967    # Native MSVC
11968    libname_spec='$name'
11969    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11970    library_names_spec='$libname.dll.lib'
11971
11972    case $build_os in
11973    mingw*)
11974      sys_lib_search_path_spec=
11975      lt_save_ifs=$IFS
11976      IFS=';'
11977      for lt_path in $LIB
11978      do
11979        IFS=$lt_save_ifs
11980        # Let DOS variable expansion print the short 8.3 style file name.
11981        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11982        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11983      done
11984      IFS=$lt_save_ifs
11985      # Convert to MSYS style.
11986      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11987      ;;
11988    cygwin*)
11989      # Convert to unix form, then to dos form, then back to unix form
11990      # but this time dos style (no spaces!) so that the unix form looks
11991      # like /cygdrive/c/PROGRA~1:/cygdr...
11992      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11993      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11994      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11995      ;;
11996    *)
11997      sys_lib_search_path_spec=$LIB
11998      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11999        # It is most probably a Windows format PATH.
12000        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12001      else
12002        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12003      fi
12004      # FIXME: find the short name or the path components, as spaces are
12005      # common. (e.g. "Program Files" -> "PROGRA~1")
12006      ;;
12007    esac
12008
12009    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12010    postinstall_cmds='base_file=`basename \$file`~
12011      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12012      dldir=$destdir/`dirname \$dlpath`~
12013      test -d \$dldir || mkdir -p \$dldir~
12014      $install_prog $dir/$dlname \$dldir/$dlname'
12015    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12016      dlpath=$dir/\$dldll~
12017       $RM \$dlpath'
12018    shlibpath_overrides_runpath=yes
12019    dynamic_linker='Win32 link.exe'
12020    ;;
12021
12022  *)
12023    # Assume MSVC wrapper
12024    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12025    dynamic_linker='Win32 ld.exe'
12026    ;;
12027  esac
12028  # FIXME: first we should search . and the directory the executable is in
12029  shlibpath_var=PATH
12030  ;;
12031
12032darwin* | rhapsody*)
12033  dynamic_linker="$host_os dyld"
12034  version_type=darwin
12035  need_lib_prefix=no
12036  need_version=no
12037  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12038  soname_spec='$libname$release$major$shared_ext'
12039  shlibpath_overrides_runpath=yes
12040  shlibpath_var=DYLD_LIBRARY_PATH
12041  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12042
12043  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12044  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12045  ;;
12046
12047dgux*)
12048  version_type=linux # correct to gnu/linux during the next big refactor
12049  need_lib_prefix=no
12050  need_version=no
12051  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052  soname_spec='$libname$release$shared_ext$major'
12053  shlibpath_var=LD_LIBRARY_PATH
12054  ;;
12055
12056freebsd* | dragonfly*)
12057  # DragonFly does not have aout.  When/if they implement a new
12058  # versioning mechanism, adjust this.
12059  if test -x /usr/bin/objformat; then
12060    objformat=`/usr/bin/objformat`
12061  else
12062    case $host_os in
12063    freebsd[23].*) objformat=aout ;;
12064    *) objformat=elf ;;
12065    esac
12066  fi
12067  version_type=freebsd-$objformat
12068  case $version_type in
12069    freebsd-elf*)
12070      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071      soname_spec='$libname$release$shared_ext$major'
12072      need_version=no
12073      need_lib_prefix=no
12074      ;;
12075    freebsd-*)
12076      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12077      need_version=yes
12078      ;;
12079  esac
12080  shlibpath_var=LD_LIBRARY_PATH
12081  case $host_os in
12082  freebsd2.*)
12083    shlibpath_overrides_runpath=yes
12084    ;;
12085  freebsd3.[01]* | freebsdelf3.[01]*)
12086    shlibpath_overrides_runpath=yes
12087    hardcode_into_libs=yes
12088    ;;
12089  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12090  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12091    shlibpath_overrides_runpath=no
12092    hardcode_into_libs=yes
12093    ;;
12094  *) # from 4.6 on, and DragonFly
12095    shlibpath_overrides_runpath=yes
12096    hardcode_into_libs=yes
12097    ;;
12098  esac
12099  ;;
12100
12101haiku*)
12102  version_type=linux # correct to gnu/linux during the next big refactor
12103  need_lib_prefix=no
12104  need_version=no
12105  dynamic_linker="$host_os runtime_loader"
12106  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12107  soname_spec='$libname$release$shared_ext$major'
12108  shlibpath_var=LIBRARY_PATH
12109  shlibpath_overrides_runpath=no
12110  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12111  hardcode_into_libs=yes
12112  ;;
12113
12114hpux9* | hpux10* | hpux11*)
12115  # Give a soname corresponding to the major version so that dld.sl refuses to
12116  # link against other versions.
12117  version_type=sunos
12118  need_lib_prefix=no
12119  need_version=no
12120  case $host_cpu in
12121  ia64*)
12122    shrext_cmds='.so'
12123    hardcode_into_libs=yes
12124    dynamic_linker="$host_os dld.so"
12125    shlibpath_var=LD_LIBRARY_PATH
12126    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12127    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128    soname_spec='$libname$release$shared_ext$major'
12129    if test 32 = "$HPUX_IA64_MODE"; then
12130      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12131      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12132    else
12133      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12134      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12135    fi
12136    ;;
12137  hppa*64*)
12138    shrext_cmds='.sl'
12139    hardcode_into_libs=yes
12140    dynamic_linker="$host_os dld.sl"
12141    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12142    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12143    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144    soname_spec='$libname$release$shared_ext$major'
12145    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12146    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12147    ;;
12148  *)
12149    shrext_cmds='.sl'
12150    dynamic_linker="$host_os dld.sl"
12151    shlibpath_var=SHLIB_PATH
12152    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12153    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154    soname_spec='$libname$release$shared_ext$major'
12155    ;;
12156  esac
12157  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12158  postinstall_cmds='chmod 555 $lib'
12159  # or fails outright, so override atomically:
12160  install_override_mode=555
12161  ;;
12162
12163interix[3-9]*)
12164  version_type=linux # correct to gnu/linux during the next big refactor
12165  need_lib_prefix=no
12166  need_version=no
12167  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168  soname_spec='$libname$release$shared_ext$major'
12169  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12170  shlibpath_var=LD_LIBRARY_PATH
12171  shlibpath_overrides_runpath=no
12172  hardcode_into_libs=yes
12173  ;;
12174
12175irix5* | irix6* | nonstopux*)
12176  case $host_os in
12177    nonstopux*) version_type=nonstopux ;;
12178    *)
12179	if test yes = "$lt_cv_prog_gnu_ld"; then
12180		version_type=linux # correct to gnu/linux during the next big refactor
12181	else
12182		version_type=irix
12183	fi ;;
12184  esac
12185  need_lib_prefix=no
12186  need_version=no
12187  soname_spec='$libname$release$shared_ext$major'
12188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12189  case $host_os in
12190  irix5* | nonstopux*)
12191    libsuff= shlibsuff=
12192    ;;
12193  *)
12194    case $LD in # libtool.m4 will add one of these switches to LD
12195    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12196      libsuff= shlibsuff= libmagic=32-bit;;
12197    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12198      libsuff=32 shlibsuff=N32 libmagic=N32;;
12199    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12200      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12201    *) libsuff= shlibsuff= libmagic=never-match;;
12202    esac
12203    ;;
12204  esac
12205  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12206  shlibpath_overrides_runpath=no
12207  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12208  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12209  hardcode_into_libs=yes
12210  ;;
12211
12212# No shared lib support for Linux oldld, aout, or coff.
12213linux*oldld* | linux*aout* | linux*coff*)
12214  dynamic_linker=no
12215  ;;
12216
12217linux*android*)
12218  version_type=none # Android doesn't support versioned libraries.
12219  need_lib_prefix=no
12220  need_version=no
12221  library_names_spec='$libname$release$shared_ext'
12222  soname_spec='$libname$release$shared_ext'
12223  finish_cmds=
12224  shlibpath_var=LD_LIBRARY_PATH
12225  shlibpath_overrides_runpath=yes
12226
12227  # This implies no fast_install, which is unacceptable.
12228  # Some rework will be needed to allow for fast_install
12229  # before this can be enabled.
12230  hardcode_into_libs=yes
12231
12232  dynamic_linker='Android linker'
12233  # Don't embed -rpath directories since the linker doesn't support them.
12234  hardcode_libdir_flag_spec='-L$libdir'
12235  ;;
12236
12237# This must be glibc/ELF.
12238linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12239  version_type=linux # correct to gnu/linux during the next big refactor
12240  need_lib_prefix=no
12241  need_version=no
12242  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243  soname_spec='$libname$release$shared_ext$major'
12244  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12245  shlibpath_var=LD_LIBRARY_PATH
12246  shlibpath_overrides_runpath=no
12247
12248  # Some binutils ld are patched to set DT_RUNPATH
12249  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  lt_cv_shlibpath_overrides_runpath=no
12253    save_LDFLAGS=$LDFLAGS
12254    save_libdir=$libdir
12255    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12256	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258/* end confdefs.h.  */
12259
12260int
12261main ()
12262{
12263
12264  ;
12265  return 0;
12266}
12267_ACEOF
12268if ac_fn_c_try_link "$LINENO"; then :
12269  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12270  lt_cv_shlibpath_overrides_runpath=yes
12271fi
12272fi
12273rm -f core conftest.err conftest.$ac_objext \
12274    conftest$ac_exeext conftest.$ac_ext
12275    LDFLAGS=$save_LDFLAGS
12276    libdir=$save_libdir
12277
12278fi
12279
12280  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12281
12282  # This implies no fast_install, which is unacceptable.
12283  # Some rework will be needed to allow for fast_install
12284  # before this can be enabled.
12285  hardcode_into_libs=yes
12286
12287  # Ideally, we could use ldconfig to report *all* directores which are
12288  # searched for libraries, however this is still not possible.  Aside from not
12289  # being certain /sbin/ldconfig is available, command
12290  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12291  # even though it is searched at run-time.  Try to do the best guess by
12292  # appending ld.so.conf contents (and includes) to the search path.
12293  if test -f /etc/ld.so.conf; then
12294    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' ' '`
12295    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12296  fi
12297
12298  # We used to test for /lib/ld.so.1 and disable shared libraries on
12299  # powerpc, because MkLinux only supported shared libraries with the
12300  # GNU dynamic linker.  Since this was broken with cross compilers,
12301  # most powerpc-linux boxes support dynamic linking these days and
12302  # people can always --disable-shared, the test was removed, and we
12303  # assume the GNU/Linux dynamic linker is in use.
12304  dynamic_linker='GNU/Linux ld.so'
12305  ;;
12306
12307netbsd*)
12308  version_type=sunos
12309  need_lib_prefix=no
12310  need_version=no
12311  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12312    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12313    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12314    dynamic_linker='NetBSD (a.out) ld.so'
12315  else
12316    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317    soname_spec='$libname$release$shared_ext$major'
12318    dynamic_linker='NetBSD ld.elf_so'
12319  fi
12320  shlibpath_var=LD_LIBRARY_PATH
12321  shlibpath_overrides_runpath=yes
12322  hardcode_into_libs=yes
12323  ;;
12324
12325newsos6)
12326  version_type=linux # correct to gnu/linux during the next big refactor
12327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328  shlibpath_var=LD_LIBRARY_PATH
12329  shlibpath_overrides_runpath=yes
12330  ;;
12331
12332*nto* | *qnx*)
12333  version_type=qnx
12334  need_lib_prefix=no
12335  need_version=no
12336  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12337  soname_spec='$libname$release$shared_ext$major'
12338  shlibpath_var=LD_LIBRARY_PATH
12339  shlibpath_overrides_runpath=no
12340  hardcode_into_libs=yes
12341  dynamic_linker='ldqnx.so'
12342  ;;
12343
12344openbsd* | bitrig*)
12345  version_type=sunos
12346  sys_lib_dlsearch_path_spec=/usr/lib
12347  need_lib_prefix=no
12348  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12349    need_version=no
12350  else
12351    need_version=yes
12352  fi
12353  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12354  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12355  shlibpath_var=LD_LIBRARY_PATH
12356  shlibpath_overrides_runpath=yes
12357  ;;
12358
12359os2*)
12360  libname_spec='$name'
12361  version_type=windows
12362  shrext_cmds=.dll
12363  need_version=no
12364  need_lib_prefix=no
12365  # OS/2 can only load a DLL with a base name of 8 characters or less.
12366  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12367    v=$($ECHO $release$versuffix | tr -d .-);
12368    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12369    $ECHO $n$v`$shared_ext'
12370  library_names_spec='${libname}_dll.$libext'
12371  dynamic_linker='OS/2 ld.exe'
12372  shlibpath_var=BEGINLIBPATH
12373  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12374  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12375  postinstall_cmds='base_file=`basename \$file`~
12376    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12377    dldir=$destdir/`dirname \$dlpath`~
12378    test -d \$dldir || mkdir -p \$dldir~
12379    $install_prog $dir/$dlname \$dldir/$dlname~
12380    chmod a+x \$dldir/$dlname~
12381    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12382      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12383    fi'
12384  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12385    dlpath=$dir/\$dldll~
12386    $RM \$dlpath'
12387  ;;
12388
12389osf3* | osf4* | osf5*)
12390  version_type=osf
12391  need_lib_prefix=no
12392  need_version=no
12393  soname_spec='$libname$release$shared_ext$major'
12394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395  shlibpath_var=LD_LIBRARY_PATH
12396  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12397  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12398  ;;
12399
12400rdos*)
12401  dynamic_linker=no
12402  ;;
12403
12404solaris*)
12405  version_type=linux # correct to gnu/linux during the next big refactor
12406  need_lib_prefix=no
12407  need_version=no
12408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409  soname_spec='$libname$release$shared_ext$major'
12410  shlibpath_var=LD_LIBRARY_PATH
12411  shlibpath_overrides_runpath=yes
12412  hardcode_into_libs=yes
12413  # ldd complains unless libraries are executable
12414  postinstall_cmds='chmod +x $lib'
12415  ;;
12416
12417sunos4*)
12418  version_type=sunos
12419  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12420  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12421  shlibpath_var=LD_LIBRARY_PATH
12422  shlibpath_overrides_runpath=yes
12423  if test yes = "$with_gnu_ld"; then
12424    need_lib_prefix=no
12425  fi
12426  need_version=yes
12427  ;;
12428
12429sysv4 | sysv4.3*)
12430  version_type=linux # correct to gnu/linux during the next big refactor
12431  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432  soname_spec='$libname$release$shared_ext$major'
12433  shlibpath_var=LD_LIBRARY_PATH
12434  case $host_vendor in
12435    sni)
12436      shlibpath_overrides_runpath=no
12437      need_lib_prefix=no
12438      runpath_var=LD_RUN_PATH
12439      ;;
12440    siemens)
12441      need_lib_prefix=no
12442      ;;
12443    motorola)
12444      need_lib_prefix=no
12445      need_version=no
12446      shlibpath_overrides_runpath=no
12447      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12448      ;;
12449  esac
12450  ;;
12451
12452sysv4*MP*)
12453  if test -d /usr/nec; then
12454    version_type=linux # correct to gnu/linux during the next big refactor
12455    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12456    soname_spec='$libname$shared_ext.$major'
12457    shlibpath_var=LD_LIBRARY_PATH
12458  fi
12459  ;;
12460
12461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12462  version_type=sco
12463  need_lib_prefix=no
12464  need_version=no
12465  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12466  soname_spec='$libname$release$shared_ext$major'
12467  shlibpath_var=LD_LIBRARY_PATH
12468  shlibpath_overrides_runpath=yes
12469  hardcode_into_libs=yes
12470  if test yes = "$with_gnu_ld"; then
12471    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12472  else
12473    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12474    case $host_os in
12475      sco3.2v5*)
12476        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12477	;;
12478    esac
12479  fi
12480  sys_lib_dlsearch_path_spec='/usr/lib'
12481  ;;
12482
12483tpf*)
12484  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12485  version_type=linux # correct to gnu/linux during the next big refactor
12486  need_lib_prefix=no
12487  need_version=no
12488  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489  shlibpath_var=LD_LIBRARY_PATH
12490  shlibpath_overrides_runpath=no
12491  hardcode_into_libs=yes
12492  ;;
12493
12494uts4*)
12495  version_type=linux # correct to gnu/linux during the next big refactor
12496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497  soname_spec='$libname$release$shared_ext$major'
12498  shlibpath_var=LD_LIBRARY_PATH
12499  ;;
12500
12501*)
12502  dynamic_linker=no
12503  ;;
12504esac
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12506$as_echo "$dynamic_linker" >&6; }
12507test no = "$dynamic_linker" && can_build_shared=no
12508
12509variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12510if test yes = "$GCC"; then
12511  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12512fi
12513
12514if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12515  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12516fi
12517
12518if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12519  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12520fi
12521
12522# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12523configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12524
12525# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12526func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12527
12528# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12529configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12628$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12629hardcode_action=
12630if test -n "$hardcode_libdir_flag_spec" ||
12631   test -n "$runpath_var" ||
12632   test yes = "$hardcode_automatic"; then
12633
12634  # We can hardcode non-existent directories.
12635  if test no != "$hardcode_direct" &&
12636     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12637     # have to relink, otherwise we might link with an installed library
12638     # when we should be linking with a yet-to-be-installed one
12639     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12640     test no != "$hardcode_minus_L"; then
12641    # Linking always hardcodes the temporary library directory.
12642    hardcode_action=relink
12643  else
12644    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12645    hardcode_action=immediate
12646  fi
12647else
12648  # We cannot hardcode anything, or else we can only hardcode existing
12649  # directories.
12650  hardcode_action=unsupported
12651fi
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12653$as_echo "$hardcode_action" >&6; }
12654
12655if test relink = "$hardcode_action" ||
12656   test yes = "$inherit_rpath"; then
12657  # Fast installation is not supported
12658  enable_fast_install=no
12659elif test yes = "$shlibpath_overrides_runpath" ||
12660     test no = "$enable_shared"; then
12661  # Fast installation is not necessary
12662  enable_fast_install=needless
12663fi
12664
12665
12666
12667
12668
12669
12670  if test yes != "$enable_dlopen"; then
12671  enable_dlopen=unknown
12672  enable_dlopen_self=unknown
12673  enable_dlopen_self_static=unknown
12674else
12675  lt_cv_dlopen=no
12676  lt_cv_dlopen_libs=
12677
12678  case $host_os in
12679  beos*)
12680    lt_cv_dlopen=load_add_on
12681    lt_cv_dlopen_libs=
12682    lt_cv_dlopen_self=yes
12683    ;;
12684
12685  mingw* | pw32* | cegcc*)
12686    lt_cv_dlopen=LoadLibrary
12687    lt_cv_dlopen_libs=
12688    ;;
12689
12690  cygwin*)
12691    lt_cv_dlopen=dlopen
12692    lt_cv_dlopen_libs=
12693    ;;
12694
12695  darwin*)
12696    # if libdl is installed we need to link against it
12697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12698$as_echo_n "checking for dlopen in -ldl... " >&6; }
12699if ${ac_cv_lib_dl_dlopen+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  ac_check_lib_save_LIBS=$LIBS
12703LIBS="-ldl  $LIBS"
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706
12707/* Override any GCC internal prototype to avoid an error.
12708   Use char because int might match the return type of a GCC
12709   builtin and then its argument prototype would still apply.  */
12710#ifdef __cplusplus
12711extern "C"
12712#endif
12713char dlopen ();
12714int
12715main ()
12716{
12717return dlopen ();
12718  ;
12719  return 0;
12720}
12721_ACEOF
12722if ac_fn_c_try_link "$LINENO"; then :
12723  ac_cv_lib_dl_dlopen=yes
12724else
12725  ac_cv_lib_dl_dlopen=no
12726fi
12727rm -f core conftest.err conftest.$ac_objext \
12728    conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12732$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12733if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12734  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12735else
12736
12737    lt_cv_dlopen=dyld
12738    lt_cv_dlopen_libs=
12739    lt_cv_dlopen_self=yes
12740
12741fi
12742
12743    ;;
12744
12745  tpf*)
12746    # Don't try to run any link tests for TPF.  We know it's impossible
12747    # because TPF is a cross-compiler, and we know how we open DSOs.
12748    lt_cv_dlopen=dlopen
12749    lt_cv_dlopen_libs=
12750    lt_cv_dlopen_self=no
12751    ;;
12752
12753  *)
12754    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12755if test "x$ac_cv_func_shl_load" = xyes; then :
12756  lt_cv_dlopen=shl_load
12757else
12758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12759$as_echo_n "checking for shl_load in -ldld... " >&6; }
12760if ${ac_cv_lib_dld_shl_load+:} false; then :
12761  $as_echo_n "(cached) " >&6
12762else
12763  ac_check_lib_save_LIBS=$LIBS
12764LIBS="-ldld  $LIBS"
12765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766/* end confdefs.h.  */
12767
12768/* Override any GCC internal prototype to avoid an error.
12769   Use char because int might match the return type of a GCC
12770   builtin and then its argument prototype would still apply.  */
12771#ifdef __cplusplus
12772extern "C"
12773#endif
12774char shl_load ();
12775int
12776main ()
12777{
12778return shl_load ();
12779  ;
12780  return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_link "$LINENO"; then :
12784  ac_cv_lib_dld_shl_load=yes
12785else
12786  ac_cv_lib_dld_shl_load=no
12787fi
12788rm -f core conftest.err conftest.$ac_objext \
12789    conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12793$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12794if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12795  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12796else
12797  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12798if test "x$ac_cv_func_dlopen" = xyes; then :
12799  lt_cv_dlopen=dlopen
12800else
12801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12802$as_echo_n "checking for dlopen in -ldl... " >&6; }
12803if ${ac_cv_lib_dl_dlopen+:} false; then :
12804  $as_echo_n "(cached) " >&6
12805else
12806  ac_check_lib_save_LIBS=$LIBS
12807LIBS="-ldl  $LIBS"
12808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h.  */
12810
12811/* Override any GCC internal prototype to avoid an error.
12812   Use char because int might match the return type of a GCC
12813   builtin and then its argument prototype would still apply.  */
12814#ifdef __cplusplus
12815extern "C"
12816#endif
12817char dlopen ();
12818int
12819main ()
12820{
12821return dlopen ();
12822  ;
12823  return 0;
12824}
12825_ACEOF
12826if ac_fn_c_try_link "$LINENO"; then :
12827  ac_cv_lib_dl_dlopen=yes
12828else
12829  ac_cv_lib_dl_dlopen=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext \
12832    conftest$ac_exeext conftest.$ac_ext
12833LIBS=$ac_check_lib_save_LIBS
12834fi
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12836$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12837if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12838  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12839else
12840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12841$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12842if ${ac_cv_lib_svld_dlopen+:} false; then :
12843  $as_echo_n "(cached) " >&6
12844else
12845  ac_check_lib_save_LIBS=$LIBS
12846LIBS="-lsvld  $LIBS"
12847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h.  */
12849
12850/* Override any GCC internal prototype to avoid an error.
12851   Use char because int might match the return type of a GCC
12852   builtin and then its argument prototype would still apply.  */
12853#ifdef __cplusplus
12854extern "C"
12855#endif
12856char dlopen ();
12857int
12858main ()
12859{
12860return dlopen ();
12861  ;
12862  return 0;
12863}
12864_ACEOF
12865if ac_fn_c_try_link "$LINENO"; then :
12866  ac_cv_lib_svld_dlopen=yes
12867else
12868  ac_cv_lib_svld_dlopen=no
12869fi
12870rm -f core conftest.err conftest.$ac_objext \
12871    conftest$ac_exeext conftest.$ac_ext
12872LIBS=$ac_check_lib_save_LIBS
12873fi
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12875$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12876if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12877  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12878else
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12880$as_echo_n "checking for dld_link in -ldld... " >&6; }
12881if ${ac_cv_lib_dld_dld_link+:} false; then :
12882  $as_echo_n "(cached) " >&6
12883else
12884  ac_check_lib_save_LIBS=$LIBS
12885LIBS="-ldld  $LIBS"
12886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887/* end confdefs.h.  */
12888
12889/* Override any GCC internal prototype to avoid an error.
12890   Use char because int might match the return type of a GCC
12891   builtin and then its argument prototype would still apply.  */
12892#ifdef __cplusplus
12893extern "C"
12894#endif
12895char dld_link ();
12896int
12897main ()
12898{
12899return dld_link ();
12900  ;
12901  return 0;
12902}
12903_ACEOF
12904if ac_fn_c_try_link "$LINENO"; then :
12905  ac_cv_lib_dld_dld_link=yes
12906else
12907  ac_cv_lib_dld_dld_link=no
12908fi
12909rm -f core conftest.err conftest.$ac_objext \
12910    conftest$ac_exeext conftest.$ac_ext
12911LIBS=$ac_check_lib_save_LIBS
12912fi
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12914$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12915if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12916  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12917fi
12918
12919
12920fi
12921
12922
12923fi
12924
12925
12926fi
12927
12928
12929fi
12930
12931
12932fi
12933
12934    ;;
12935  esac
12936
12937  if test no = "$lt_cv_dlopen"; then
12938    enable_dlopen=no
12939  else
12940    enable_dlopen=yes
12941  fi
12942
12943  case $lt_cv_dlopen in
12944  dlopen)
12945    save_CPPFLAGS=$CPPFLAGS
12946    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12947
12948    save_LDFLAGS=$LDFLAGS
12949    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12950
12951    save_LIBS=$LIBS
12952    LIBS="$lt_cv_dlopen_libs $LIBS"
12953
12954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12955$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12956if ${lt_cv_dlopen_self+:} false; then :
12957  $as_echo_n "(cached) " >&6
12958else
12959  	  if test yes = "$cross_compiling"; then :
12960  lt_cv_dlopen_self=cross
12961else
12962  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12963  lt_status=$lt_dlunknown
12964  cat > conftest.$ac_ext <<_LT_EOF
12965#line $LINENO "configure"
12966#include "confdefs.h"
12967
12968#if HAVE_DLFCN_H
12969#include <dlfcn.h>
12970#endif
12971
12972#include <stdio.h>
12973
12974#ifdef RTLD_GLOBAL
12975#  define LT_DLGLOBAL		RTLD_GLOBAL
12976#else
12977#  ifdef DL_GLOBAL
12978#    define LT_DLGLOBAL		DL_GLOBAL
12979#  else
12980#    define LT_DLGLOBAL		0
12981#  endif
12982#endif
12983
12984/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12985   find out it does not work in some platform. */
12986#ifndef LT_DLLAZY_OR_NOW
12987#  ifdef RTLD_LAZY
12988#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12989#  else
12990#    ifdef DL_LAZY
12991#      define LT_DLLAZY_OR_NOW		DL_LAZY
12992#    else
12993#      ifdef RTLD_NOW
12994#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12995#      else
12996#        ifdef DL_NOW
12997#          define LT_DLLAZY_OR_NOW	DL_NOW
12998#        else
12999#          define LT_DLLAZY_OR_NOW	0
13000#        endif
13001#      endif
13002#    endif
13003#  endif
13004#endif
13005
13006/* When -fvisibility=hidden is used, assume the code has been annotated
13007   correspondingly for the symbols needed.  */
13008#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13009int fnord () __attribute__((visibility("default")));
13010#endif
13011
13012int fnord () { return 42; }
13013int main ()
13014{
13015  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016  int status = $lt_dlunknown;
13017
13018  if (self)
13019    {
13020      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13021      else
13022        {
13023	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13024          else puts (dlerror ());
13025	}
13026      /* dlclose (self); */
13027    }
13028  else
13029    puts (dlerror ());
13030
13031  return status;
13032}
13033_LT_EOF
13034  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13035  (eval $ac_link) 2>&5
13036  ac_status=$?
13037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13039    (./conftest; exit; ) >&5 2>/dev/null
13040    lt_status=$?
13041    case x$lt_status in
13042      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13043      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13044      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13045    esac
13046  else :
13047    # compilation failed
13048    lt_cv_dlopen_self=no
13049  fi
13050fi
13051rm -fr conftest*
13052
13053
13054fi
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13056$as_echo "$lt_cv_dlopen_self" >&6; }
13057
13058    if test yes = "$lt_cv_dlopen_self"; then
13059      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13060      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13061$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13062if ${lt_cv_dlopen_self_static+:} false; then :
13063  $as_echo_n "(cached) " >&6
13064else
13065  	  if test yes = "$cross_compiling"; then :
13066  lt_cv_dlopen_self_static=cross
13067else
13068  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13069  lt_status=$lt_dlunknown
13070  cat > conftest.$ac_ext <<_LT_EOF
13071#line $LINENO "configure"
13072#include "confdefs.h"
13073
13074#if HAVE_DLFCN_H
13075#include <dlfcn.h>
13076#endif
13077
13078#include <stdio.h>
13079
13080#ifdef RTLD_GLOBAL
13081#  define LT_DLGLOBAL		RTLD_GLOBAL
13082#else
13083#  ifdef DL_GLOBAL
13084#    define LT_DLGLOBAL		DL_GLOBAL
13085#  else
13086#    define LT_DLGLOBAL		0
13087#  endif
13088#endif
13089
13090/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13091   find out it does not work in some platform. */
13092#ifndef LT_DLLAZY_OR_NOW
13093#  ifdef RTLD_LAZY
13094#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13095#  else
13096#    ifdef DL_LAZY
13097#      define LT_DLLAZY_OR_NOW		DL_LAZY
13098#    else
13099#      ifdef RTLD_NOW
13100#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13101#      else
13102#        ifdef DL_NOW
13103#          define LT_DLLAZY_OR_NOW	DL_NOW
13104#        else
13105#          define LT_DLLAZY_OR_NOW	0
13106#        endif
13107#      endif
13108#    endif
13109#  endif
13110#endif
13111
13112/* When -fvisibility=hidden is used, assume the code has been annotated
13113   correspondingly for the symbols needed.  */
13114#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13115int fnord () __attribute__((visibility("default")));
13116#endif
13117
13118int fnord () { return 42; }
13119int main ()
13120{
13121  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13122  int status = $lt_dlunknown;
13123
13124  if (self)
13125    {
13126      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13127      else
13128        {
13129	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13130          else puts (dlerror ());
13131	}
13132      /* dlclose (self); */
13133    }
13134  else
13135    puts (dlerror ());
13136
13137  return status;
13138}
13139_LT_EOF
13140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13141  (eval $ac_link) 2>&5
13142  ac_status=$?
13143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13145    (./conftest; exit; ) >&5 2>/dev/null
13146    lt_status=$?
13147    case x$lt_status in
13148      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13149      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13150      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13151    esac
13152  else :
13153    # compilation failed
13154    lt_cv_dlopen_self_static=no
13155  fi
13156fi
13157rm -fr conftest*
13158
13159
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13162$as_echo "$lt_cv_dlopen_self_static" >&6; }
13163    fi
13164
13165    CPPFLAGS=$save_CPPFLAGS
13166    LDFLAGS=$save_LDFLAGS
13167    LIBS=$save_LIBS
13168    ;;
13169  esac
13170
13171  case $lt_cv_dlopen_self in
13172  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13173  *) enable_dlopen_self=unknown ;;
13174  esac
13175
13176  case $lt_cv_dlopen_self_static in
13177  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13178  *) enable_dlopen_self_static=unknown ;;
13179  esac
13180fi
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198striplib=
13199old_striplib=
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13201$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13202if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13203  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13204  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13206$as_echo "yes" >&6; }
13207else
13208# FIXME - insert some real tests, host_os isn't really good enough
13209  case $host_os in
13210  darwin*)
13211    if test -n "$STRIP"; then
13212      striplib="$STRIP -x"
13213      old_striplib="$STRIP -S"
13214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215$as_echo "yes" >&6; }
13216    else
13217      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218$as_echo "no" >&6; }
13219    fi
13220    ;;
13221  *)
13222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
13224    ;;
13225  esac
13226fi
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239  # Report what library types will actually be built
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13241$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13243$as_echo "$can_build_shared" >&6; }
13244
13245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13246$as_echo_n "checking whether to build shared libraries... " >&6; }
13247  test no = "$can_build_shared" && enable_shared=no
13248
13249  # On AIX, shared libraries and static libraries use the same namespace, and
13250  # are all built from PIC.
13251  case $host_os in
13252  aix3*)
13253    test yes = "$enable_shared" && enable_static=no
13254    if test -n "$RANLIB"; then
13255      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13256      postinstall_cmds='$RANLIB $lib'
13257    fi
13258    ;;
13259
13260  aix[4-9]*)
13261    if test ia64 != "$host_cpu"; then
13262      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13263      yes,aix,yes) ;;			# shared object as lib.so file only
13264      yes,svr4,*) ;;			# shared object as lib.so archive member only
13265      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13266      esac
13267    fi
13268    ;;
13269  esac
13270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13271$as_echo "$enable_shared" >&6; }
13272
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13274$as_echo_n "checking whether to build static libraries... " >&6; }
13275  # Make sure either enable_shared or enable_static is yes.
13276  test yes = "$enable_shared" || enable_static=yes
13277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13278$as_echo "$enable_static" >&6; }
13279
13280
13281
13282
13283fi
13284ac_ext=c
13285ac_cpp='$CPP $CPPFLAGS'
13286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288ac_compiler_gnu=$ac_cv_c_compiler_gnu
13289
13290CC=$lt_save_CC
13291
13292      if test -n "$CXX" && ( test no != "$CXX" &&
13293    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13294    (test g++ != "$CXX"))); then
13295  ac_ext=cpp
13296ac_cpp='$CXXCPP $CPPFLAGS'
13297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13301$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13302if test -z "$CXXCPP"; then
13303  if ${ac_cv_prog_CXXCPP+:} false; then :
13304  $as_echo_n "(cached) " >&6
13305else
13306      # Double quotes because CXXCPP needs to be expanded
13307    for CXXCPP in "$CXX -E" "/lib/cpp"
13308    do
13309      ac_preproc_ok=false
13310for ac_cxx_preproc_warn_flag in '' yes
13311do
13312  # Use a header file that comes with gcc, so configuring glibc
13313  # with a fresh cross-compiler works.
13314  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315  # <limits.h> exists even on freestanding compilers.
13316  # On the NeXT, cc -E runs the code through the compiler's parser,
13317  # not just through cpp. "Syntax error" is here to catch this case.
13318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319/* end confdefs.h.  */
13320#ifdef __STDC__
13321# include <limits.h>
13322#else
13323# include <assert.h>
13324#endif
13325		     Syntax error
13326_ACEOF
13327if ac_fn_cxx_try_cpp "$LINENO"; then :
13328
13329else
13330  # Broken: fails on valid input.
13331continue
13332fi
13333rm -f conftest.err conftest.i conftest.$ac_ext
13334
13335  # OK, works on sane cases.  Now check whether nonexistent headers
13336  # can be detected and how.
13337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339#include <ac_nonexistent.h>
13340_ACEOF
13341if ac_fn_cxx_try_cpp "$LINENO"; then :
13342  # Broken: success on invalid input.
13343continue
13344else
13345  # Passes both tests.
13346ac_preproc_ok=:
13347break
13348fi
13349rm -f conftest.err conftest.i conftest.$ac_ext
13350
13351done
13352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13353rm -f conftest.i conftest.err conftest.$ac_ext
13354if $ac_preproc_ok; then :
13355  break
13356fi
13357
13358    done
13359    ac_cv_prog_CXXCPP=$CXXCPP
13360
13361fi
13362  CXXCPP=$ac_cv_prog_CXXCPP
13363else
13364  ac_cv_prog_CXXCPP=$CXXCPP
13365fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13367$as_echo "$CXXCPP" >&6; }
13368ac_preproc_ok=false
13369for ac_cxx_preproc_warn_flag in '' yes
13370do
13371  # Use a header file that comes with gcc, so configuring glibc
13372  # with a fresh cross-compiler works.
13373  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13374  # <limits.h> exists even on freestanding compilers.
13375  # On the NeXT, cc -E runs the code through the compiler's parser,
13376  # not just through cpp. "Syntax error" is here to catch this case.
13377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h.  */
13379#ifdef __STDC__
13380# include <limits.h>
13381#else
13382# include <assert.h>
13383#endif
13384		     Syntax error
13385_ACEOF
13386if ac_fn_cxx_try_cpp "$LINENO"; then :
13387
13388else
13389  # Broken: fails on valid input.
13390continue
13391fi
13392rm -f conftest.err conftest.i conftest.$ac_ext
13393
13394  # OK, works on sane cases.  Now check whether nonexistent headers
13395  # can be detected and how.
13396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397/* end confdefs.h.  */
13398#include <ac_nonexistent.h>
13399_ACEOF
13400if ac_fn_cxx_try_cpp "$LINENO"; then :
13401  # Broken: success on invalid input.
13402continue
13403else
13404  # Passes both tests.
13405ac_preproc_ok=:
13406break
13407fi
13408rm -f conftest.err conftest.i conftest.$ac_ext
13409
13410done
13411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13412rm -f conftest.i conftest.err conftest.$ac_ext
13413if $ac_preproc_ok; then :
13414
13415else
13416  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13418as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13419See \`config.log' for more details" "$LINENO" 5; }
13420fi
13421
13422ac_ext=c
13423ac_cpp='$CPP $CPPFLAGS'
13424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_c_compiler_gnu
13427
13428else
13429  _lt_caught_CXX_error=yes
13430fi
13431
13432ac_ext=cpp
13433ac_cpp='$CXXCPP $CPPFLAGS'
13434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13437
13438archive_cmds_need_lc_CXX=no
13439allow_undefined_flag_CXX=
13440always_export_symbols_CXX=no
13441archive_expsym_cmds_CXX=
13442compiler_needs_object_CXX=no
13443export_dynamic_flag_spec_CXX=
13444hardcode_direct_CXX=no
13445hardcode_direct_absolute_CXX=no
13446hardcode_libdir_flag_spec_CXX=
13447hardcode_libdir_separator_CXX=
13448hardcode_minus_L_CXX=no
13449hardcode_shlibpath_var_CXX=unsupported
13450hardcode_automatic_CXX=no
13451inherit_rpath_CXX=no
13452module_cmds_CXX=
13453module_expsym_cmds_CXX=
13454link_all_deplibs_CXX=unknown
13455old_archive_cmds_CXX=$old_archive_cmds
13456reload_flag_CXX=$reload_flag
13457reload_cmds_CXX=$reload_cmds
13458no_undefined_flag_CXX=
13459whole_archive_flag_spec_CXX=
13460enable_shared_with_static_runtimes_CXX=no
13461
13462# Source file extension for C++ test sources.
13463ac_ext=cpp
13464
13465# Object file extension for compiled C++ test sources.
13466objext=o
13467objext_CXX=$objext
13468
13469# No sense in running all these tests if we already determined that
13470# the CXX compiler isn't working.  Some variables (like enable_shared)
13471# are currently assumed to apply to all compilers on this platform,
13472# and will be corrupted by setting them based on a non-working compiler.
13473if test yes != "$_lt_caught_CXX_error"; then
13474  # Code to be used in simple compile tests
13475  lt_simple_compile_test_code="int some_variable = 0;"
13476
13477  # Code to be used in simple link tests
13478  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13479
13480  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13481
13482
13483
13484
13485
13486
13487# If no C compiler was specified, use CC.
13488LTCC=${LTCC-"$CC"}
13489
13490# If no C compiler flags were specified, use CFLAGS.
13491LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13492
13493# Allow CC to be a program name with arguments.
13494compiler=$CC
13495
13496
13497  # save warnings/boilerplate of simple test code
13498  ac_outfile=conftest.$ac_objext
13499echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13500eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13501_lt_compiler_boilerplate=`cat conftest.err`
13502$RM conftest*
13503
13504  ac_outfile=conftest.$ac_objext
13505echo "$lt_simple_link_test_code" >conftest.$ac_ext
13506eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13507_lt_linker_boilerplate=`cat conftest.err`
13508$RM -r conftest*
13509
13510
13511  # Allow CC to be a program name with arguments.
13512  lt_save_CC=$CC
13513  lt_save_CFLAGS=$CFLAGS
13514  lt_save_LD=$LD
13515  lt_save_GCC=$GCC
13516  GCC=$GXX
13517  lt_save_with_gnu_ld=$with_gnu_ld
13518  lt_save_path_LD=$lt_cv_path_LD
13519  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13520    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13521  else
13522    $as_unset lt_cv_prog_gnu_ld
13523  fi
13524  if test -n "${lt_cv_path_LDCXX+set}"; then
13525    lt_cv_path_LD=$lt_cv_path_LDCXX
13526  else
13527    $as_unset lt_cv_path_LD
13528  fi
13529  test -z "${LDCXX+set}" || LD=$LDCXX
13530  CC=${CXX-"c++"}
13531  CFLAGS=$CXXFLAGS
13532  compiler=$CC
13533  compiler_CXX=$CC
13534  func_cc_basename $compiler
13535cc_basename=$func_cc_basename_result
13536
13537
13538  if test -n "$compiler"; then
13539    # We don't want -fno-exception when compiling C++ code, so set the
13540    # no_builtin_flag separately
13541    if test yes = "$GXX"; then
13542      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13543    else
13544      lt_prog_compiler_no_builtin_flag_CXX=
13545    fi
13546
13547    if test yes = "$GXX"; then
13548      # Set up default GNU C++ configuration
13549
13550
13551
13552# Check whether --with-gnu-ld was given.
13553if test "${with_gnu_ld+set}" = set; then :
13554  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13555else
13556  with_gnu_ld=no
13557fi
13558
13559ac_prog=ld
13560if test yes = "$GCC"; then
13561  # Check if gcc -print-prog-name=ld gives a path.
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13563$as_echo_n "checking for ld used by $CC... " >&6; }
13564  case $host in
13565  *-*-mingw*)
13566    # gcc leaves a trailing carriage return, which upsets mingw
13567    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13568  *)
13569    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13570  esac
13571  case $ac_prog in
13572    # Accept absolute paths.
13573    [\\/]* | ?:[\\/]*)
13574      re_direlt='/[^/][^/]*/\.\./'
13575      # Canonicalize the pathname of ld
13576      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13577      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13578	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13579      done
13580      test -z "$LD" && LD=$ac_prog
13581      ;;
13582  "")
13583    # If it fails, then pretend we aren't using GCC.
13584    ac_prog=ld
13585    ;;
13586  *)
13587    # If it is relative, then search for the first ld in PATH.
13588    with_gnu_ld=unknown
13589    ;;
13590  esac
13591elif test yes = "$with_gnu_ld"; then
13592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13593$as_echo_n "checking for GNU ld... " >&6; }
13594else
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13596$as_echo_n "checking for non-GNU ld... " >&6; }
13597fi
13598if ${lt_cv_path_LD+:} false; then :
13599  $as_echo_n "(cached) " >&6
13600else
13601  if test -z "$LD"; then
13602  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13603  for ac_dir in $PATH; do
13604    IFS=$lt_save_ifs
13605    test -z "$ac_dir" && ac_dir=.
13606    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13607      lt_cv_path_LD=$ac_dir/$ac_prog
13608      # Check to see if the program is GNU ld.  I'd rather use --version,
13609      # but apparently some variants of GNU ld only accept -v.
13610      # Break only if it was the GNU/non-GNU ld that we prefer.
13611      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13612      *GNU* | *'with BFD'*)
13613	test no != "$with_gnu_ld" && break
13614	;;
13615      *)
13616	test yes != "$with_gnu_ld" && break
13617	;;
13618      esac
13619    fi
13620  done
13621  IFS=$lt_save_ifs
13622else
13623  lt_cv_path_LD=$LD # Let the user override the test with a path.
13624fi
13625fi
13626
13627LD=$lt_cv_path_LD
13628if test -n "$LD"; then
13629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13630$as_echo "$LD" >&6; }
13631else
13632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633$as_echo "no" >&6; }
13634fi
13635test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13637$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13638if ${lt_cv_prog_gnu_ld+:} false; then :
13639  $as_echo_n "(cached) " >&6
13640else
13641  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13642case `$LD -v 2>&1 </dev/null` in
13643*GNU* | *'with BFD'*)
13644  lt_cv_prog_gnu_ld=yes
13645  ;;
13646*)
13647  lt_cv_prog_gnu_ld=no
13648  ;;
13649esac
13650fi
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13652$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13653with_gnu_ld=$lt_cv_prog_gnu_ld
13654
13655
13656
13657
13658
13659
13660
13661      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13662      # archiving commands below assume that GNU ld is being used.
13663      if test yes = "$with_gnu_ld"; then
13664        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13665        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'
13666
13667        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13668        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13669
13670        # If archive_cmds runs LD, not CC, wlarc should be empty
13671        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13672        #     investigate it a little bit more. (MM)
13673        wlarc='$wl'
13674
13675        # ancient GNU ld didn't support --whole-archive et. al.
13676        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13677	  $GREP 'no-whole-archive' > /dev/null; then
13678          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13679        else
13680          whole_archive_flag_spec_CXX=
13681        fi
13682      else
13683        with_gnu_ld=no
13684        wlarc=
13685
13686        # A generic and very simple default shared library creation
13687        # command for GNU C++ for the case where it uses the native
13688        # linker, instead of GNU ld.  If possible, this setting should
13689        # overridden to take advantage of the native linker features on
13690        # the platform it is being used on.
13691        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13692      fi
13693
13694      # Commands to make compiler produce verbose output that lists
13695      # what "hidden" libraries, object files and flags are used when
13696      # linking a shared library.
13697      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13698
13699    else
13700      GXX=no
13701      with_gnu_ld=no
13702      wlarc=
13703    fi
13704
13705    # PORTME: fill in a description of your system's C++ link characteristics
13706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13707$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13708    ld_shlibs_CXX=yes
13709    case $host_os in
13710      aix3*)
13711        # FIXME: insert proper C++ library support
13712        ld_shlibs_CXX=no
13713        ;;
13714      aix[4-9]*)
13715        if test ia64 = "$host_cpu"; then
13716          # On IA64, the linker does run time linking by default, so we don't
13717          # have to do anything special.
13718          aix_use_runtimelinking=no
13719          exp_sym_flag='-Bexport'
13720          no_entry_flag=
13721        else
13722          aix_use_runtimelinking=no
13723
13724          # Test if we are trying to use run time linking or normal
13725          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13726          # have runtime linking enabled, and use it for executables.
13727          # For shared libraries, we enable/disable runtime linking
13728          # depending on the kind of the shared library created -
13729          # when "with_aix_soname,aix_use_runtimelinking" is:
13730          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13731          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13732          #            lib.a           static archive
13733          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13734          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13735          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13736          #            lib.a(lib.so.V) shared, rtl:no
13737          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13738          #            lib.a           static archive
13739          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13740	    for ld_flag in $LDFLAGS; do
13741	      case $ld_flag in
13742	      *-brtl*)
13743	        aix_use_runtimelinking=yes
13744	        break
13745	        ;;
13746	      esac
13747	    done
13748	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13749	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13750	      # so we don't have lib.a shared libs to link our executables.
13751	      # We have to force runtime linking in this case.
13752	      aix_use_runtimelinking=yes
13753	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13754	    fi
13755	    ;;
13756          esac
13757
13758          exp_sym_flag='-bexport'
13759          no_entry_flag='-bnoentry'
13760        fi
13761
13762        # When large executables or shared objects are built, AIX ld can
13763        # have problems creating the table of contents.  If linking a library
13764        # or program results in "error TOC overflow" add -mminimal-toc to
13765        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13766        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13767
13768        archive_cmds_CXX=''
13769        hardcode_direct_CXX=yes
13770        hardcode_direct_absolute_CXX=yes
13771        hardcode_libdir_separator_CXX=':'
13772        link_all_deplibs_CXX=yes
13773        file_list_spec_CXX='$wl-f,'
13774        case $with_aix_soname,$aix_use_runtimelinking in
13775        aix,*) ;;	# no import file
13776        svr4,* | *,yes) # use import file
13777          # The Import File defines what to hardcode.
13778          hardcode_direct_CXX=no
13779          hardcode_direct_absolute_CXX=no
13780          ;;
13781        esac
13782
13783        if test yes = "$GXX"; then
13784          case $host_os in aix4.[012]|aix4.[012].*)
13785          # We only want to do this on AIX 4.2 and lower, the check
13786          # below for broken collect2 doesn't work under 4.3+
13787	  collect2name=`$CC -print-prog-name=collect2`
13788	  if test -f "$collect2name" &&
13789	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13790	  then
13791	    # We have reworked collect2
13792	    :
13793	  else
13794	    # We have old collect2
13795	    hardcode_direct_CXX=unsupported
13796	    # It fails to find uninstalled libraries when the uninstalled
13797	    # path is not listed in the libpath.  Setting hardcode_minus_L
13798	    # to unsupported forces relinking
13799	    hardcode_minus_L_CXX=yes
13800	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13801	    hardcode_libdir_separator_CXX=
13802	  fi
13803          esac
13804          shared_flag='-shared'
13805	  if test yes = "$aix_use_runtimelinking"; then
13806	    shared_flag=$shared_flag' $wl-G'
13807	  fi
13808	  # Need to ensure runtime linking is disabled for the traditional
13809	  # shared library, or the linker may eventually find shared libraries
13810	  # /with/ Import File - we do not want to mix them.
13811	  shared_flag_aix='-shared'
13812	  shared_flag_svr4='-shared $wl-G'
13813        else
13814          # not using gcc
13815          if test ia64 = "$host_cpu"; then
13816	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13817	  # chokes on -Wl,-G. The following line is correct:
13818	  shared_flag='-G'
13819          else
13820	    if test yes = "$aix_use_runtimelinking"; then
13821	      shared_flag='$wl-G'
13822	    else
13823	      shared_flag='$wl-bM:SRE'
13824	    fi
13825	    shared_flag_aix='$wl-bM:SRE'
13826	    shared_flag_svr4='$wl-G'
13827          fi
13828        fi
13829
13830        export_dynamic_flag_spec_CXX='$wl-bexpall'
13831        # It seems that -bexpall does not export symbols beginning with
13832        # underscore (_), so it is better to generate a list of symbols to
13833	# export.
13834        always_export_symbols_CXX=yes
13835	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13836          # Warning - without using the other runtime loading flags (-brtl),
13837          # -berok will link without error, but may produce a broken library.
13838          # The "-G" linker flag allows undefined symbols.
13839          no_undefined_flag_CXX='-bernotok'
13840          # Determine the default libpath from the value encoded in an empty
13841          # executable.
13842          if test set = "${lt_cv_aix_libpath+set}"; then
13843  aix_libpath=$lt_cv_aix_libpath
13844else
13845  if ${lt_cv_aix_libpath__CXX+:} false; then :
13846  $as_echo_n "(cached) " >&6
13847else
13848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849/* end confdefs.h.  */
13850
13851int
13852main ()
13853{
13854
13855  ;
13856  return 0;
13857}
13858_ACEOF
13859if ac_fn_cxx_try_link "$LINENO"; then :
13860
13861  lt_aix_libpath_sed='
13862      /Import File Strings/,/^$/ {
13863	  /^0/ {
13864	      s/^0  *\([^ ]*\) *$/\1/
13865	      p
13866	  }
13867      }'
13868  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13869  # Check for a 64-bit object if we didn't find anything.
13870  if test -z "$lt_cv_aix_libpath__CXX"; then
13871    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13872  fi
13873fi
13874rm -f core conftest.err conftest.$ac_objext \
13875    conftest$ac_exeext conftest.$ac_ext
13876  if test -z "$lt_cv_aix_libpath__CXX"; then
13877    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13878  fi
13879
13880fi
13881
13882  aix_libpath=$lt_cv_aix_libpath__CXX
13883fi
13884
13885          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13886
13887          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
13888        else
13889          if test ia64 = "$host_cpu"; then
13890	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13891	    allow_undefined_flag_CXX="-z nodefs"
13892	    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"
13893          else
13894	    # Determine the default libpath from the value encoded in an
13895	    # empty executable.
13896	    if test set = "${lt_cv_aix_libpath+set}"; then
13897  aix_libpath=$lt_cv_aix_libpath
13898else
13899  if ${lt_cv_aix_libpath__CXX+:} false; then :
13900  $as_echo_n "(cached) " >&6
13901else
13902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903/* end confdefs.h.  */
13904
13905int
13906main ()
13907{
13908
13909  ;
13910  return 0;
13911}
13912_ACEOF
13913if ac_fn_cxx_try_link "$LINENO"; then :
13914
13915  lt_aix_libpath_sed='
13916      /Import File Strings/,/^$/ {
13917	  /^0/ {
13918	      s/^0  *\([^ ]*\) *$/\1/
13919	      p
13920	  }
13921      }'
13922  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13923  # Check for a 64-bit object if we didn't find anything.
13924  if test -z "$lt_cv_aix_libpath__CXX"; then
13925    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13926  fi
13927fi
13928rm -f core conftest.err conftest.$ac_objext \
13929    conftest$ac_exeext conftest.$ac_ext
13930  if test -z "$lt_cv_aix_libpath__CXX"; then
13931    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13932  fi
13933
13934fi
13935
13936  aix_libpath=$lt_cv_aix_libpath__CXX
13937fi
13938
13939	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13940	    # Warning - without using the other run time loading flags,
13941	    # -berok will link without error, but may produce a broken library.
13942	    no_undefined_flag_CXX=' $wl-bernotok'
13943	    allow_undefined_flag_CXX=' $wl-berok'
13944	    if test yes = "$with_gnu_ld"; then
13945	      # We only use this code for GNU lds that support --whole-archive.
13946	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13947	    else
13948	      # Exported symbols can be pulled into shared objects from archives
13949	      whole_archive_flag_spec_CXX='$convenience'
13950	    fi
13951	    archive_cmds_need_lc_CXX=yes
13952	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13953	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13954	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13955	    if test svr4 != "$with_aix_soname"; then
13956	      # This is similar to how AIX traditionally builds its shared
13957	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13958	      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'
13959	    fi
13960	    if test aix != "$with_aix_soname"; then
13961	      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'
13962	    else
13963	      # used by -dlpreopen to get the symbols
13964	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13965	    fi
13966	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13967          fi
13968        fi
13969        ;;
13970
13971      beos*)
13972	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13973	  allow_undefined_flag_CXX=unsupported
13974	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13975	  # support --undefined.  This deserves some investigation.  FIXME
13976	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13977	else
13978	  ld_shlibs_CXX=no
13979	fi
13980	;;
13981
13982      chorus*)
13983        case $cc_basename in
13984          *)
13985	  # FIXME: insert proper C++ library support
13986	  ld_shlibs_CXX=no
13987	  ;;
13988        esac
13989        ;;
13990
13991      cygwin* | mingw* | pw32* | cegcc*)
13992	case $GXX,$cc_basename in
13993	,cl* | no,cl*)
13994	  # Native MSVC
13995	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13996	  # no search path for DLLs.
13997	  hardcode_libdir_flag_spec_CXX=' '
13998	  allow_undefined_flag_CXX=unsupported
13999	  always_export_symbols_CXX=yes
14000	  file_list_spec_CXX='@'
14001	  # Tell ltmain to make .lib files, not .a files.
14002	  libext=lib
14003	  # Tell ltmain to make .dll files, not .so files.
14004	  shrext_cmds=.dll
14005	  # FIXME: Setting linknames here is a bad hack.
14006	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14007	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14008              cp "$export_symbols" "$output_objdir/$soname.def";
14009              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14010            else
14011              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14012            fi~
14013            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14014            linknames='
14015	  # The linker will not automatically build a static lib if we build a DLL.
14016	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14017	  enable_shared_with_static_runtimes_CXX=yes
14018	  # Don't use ranlib
14019	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14020	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14021            lt_tool_outputfile="@TOOL_OUTPUT@"~
14022            case $lt_outputfile in
14023              *.exe|*.EXE) ;;
14024              *)
14025                lt_outputfile=$lt_outputfile.exe
14026                lt_tool_outputfile=$lt_tool_outputfile.exe
14027                ;;
14028            esac~
14029            func_to_tool_file "$lt_outputfile"~
14030            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14031              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14032              $RM "$lt_outputfile.manifest";
14033            fi'
14034	  ;;
14035	*)
14036	  # g++
14037	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14038	  # as there is no search path for DLLs.
14039	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14040	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14041	  allow_undefined_flag_CXX=unsupported
14042	  always_export_symbols_CXX=no
14043	  enable_shared_with_static_runtimes_CXX=yes
14044
14045	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14046	    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'
14047	    # If the export-symbols file already is a .def file, use it as
14048	    # is; otherwise, prepend EXPORTS...
14049	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14050              cp $export_symbols $output_objdir/$soname.def;
14051            else
14052              echo EXPORTS > $output_objdir/$soname.def;
14053              cat $export_symbols >> $output_objdir/$soname.def;
14054            fi~
14055            $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'
14056	  else
14057	    ld_shlibs_CXX=no
14058	  fi
14059	  ;;
14060	esac
14061	;;
14062      darwin* | rhapsody*)
14063
14064
14065  archive_cmds_need_lc_CXX=no
14066  hardcode_direct_CXX=no
14067  hardcode_automatic_CXX=yes
14068  hardcode_shlibpath_var_CXX=unsupported
14069  if test yes = "$lt_cv_ld_force_load"; then
14070    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\"`'
14071
14072  else
14073    whole_archive_flag_spec_CXX=''
14074  fi
14075  link_all_deplibs_CXX=yes
14076  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14077  case $cc_basename in
14078     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14079     *) _lt_dar_can_shared=$GCC ;;
14080  esac
14081  if test yes = "$_lt_dar_can_shared"; then
14082    output_verbose_link_cmd=func_echo_all
14083    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"
14084    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14085    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"
14086    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"
14087       if test yes != "$lt_cv_apple_cc_single_mod"; then
14088      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"
14089      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"
14090    fi
14091
14092  else
14093  ld_shlibs_CXX=no
14094  fi
14095
14096	;;
14097
14098      os2*)
14099	hardcode_libdir_flag_spec_CXX='-L$libdir'
14100	hardcode_minus_L_CXX=yes
14101	allow_undefined_flag_CXX=unsupported
14102	shrext_cmds=.dll
14103	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14104	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14105	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14106	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14107	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14108	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14109	  emximp -o $lib $output_objdir/$libname.def'
14110	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14111	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14112	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14113	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14114	  prefix_cmds="$SED"~
14115	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14116	    prefix_cmds="$prefix_cmds -e 1d";
14117	  fi~
14118	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14119	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14120	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14121	  emximp -o $lib $output_objdir/$libname.def'
14122	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14123	enable_shared_with_static_runtimes_CXX=yes
14124	;;
14125
14126      dgux*)
14127        case $cc_basename in
14128          ec++*)
14129	    # FIXME: insert proper C++ library support
14130	    ld_shlibs_CXX=no
14131	    ;;
14132          ghcx*)
14133	    # Green Hills C++ Compiler
14134	    # FIXME: insert proper C++ library support
14135	    ld_shlibs_CXX=no
14136	    ;;
14137          *)
14138	    # FIXME: insert proper C++ library support
14139	    ld_shlibs_CXX=no
14140	    ;;
14141        esac
14142        ;;
14143
14144      freebsd2.*)
14145        # C++ shared libraries reported to be fairly broken before
14146	# switch to ELF
14147        ld_shlibs_CXX=no
14148        ;;
14149
14150      freebsd-elf*)
14151        archive_cmds_need_lc_CXX=no
14152        ;;
14153
14154      freebsd* | dragonfly*)
14155        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14156        # conventions
14157        ld_shlibs_CXX=yes
14158        ;;
14159
14160      haiku*)
14161        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14162        link_all_deplibs_CXX=yes
14163        ;;
14164
14165      hpux9*)
14166        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14167        hardcode_libdir_separator_CXX=:
14168        export_dynamic_flag_spec_CXX='$wl-E'
14169        hardcode_direct_CXX=yes
14170        hardcode_minus_L_CXX=yes # Not in the search PATH,
14171				             # but as the default
14172				             # location of the library.
14173
14174        case $cc_basename in
14175          CC*)
14176            # FIXME: insert proper C++ library support
14177            ld_shlibs_CXX=no
14178            ;;
14179          aCC*)
14180            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'
14181            # Commands to make compiler produce verbose output that lists
14182            # what "hidden" libraries, object files and flags are used when
14183            # linking a shared library.
14184            #
14185            # There doesn't appear to be a way to prevent this compiler from
14186            # explicitly linking system object files so we need to strip them
14187            # from the output so that they don't get included in the library
14188            # dependencies.
14189            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"'
14190            ;;
14191          *)
14192            if test yes = "$GXX"; then
14193              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'
14194            else
14195              # FIXME: insert proper C++ library support
14196              ld_shlibs_CXX=no
14197            fi
14198            ;;
14199        esac
14200        ;;
14201
14202      hpux10*|hpux11*)
14203        if test no = "$with_gnu_ld"; then
14204	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14205	  hardcode_libdir_separator_CXX=:
14206
14207          case $host_cpu in
14208            hppa*64*|ia64*)
14209              ;;
14210            *)
14211	      export_dynamic_flag_spec_CXX='$wl-E'
14212              ;;
14213          esac
14214        fi
14215        case $host_cpu in
14216          hppa*64*|ia64*)
14217            hardcode_direct_CXX=no
14218            hardcode_shlibpath_var_CXX=no
14219            ;;
14220          *)
14221            hardcode_direct_CXX=yes
14222            hardcode_direct_absolute_CXX=yes
14223            hardcode_minus_L_CXX=yes # Not in the search PATH,
14224					         # but as the default
14225					         # location of the library.
14226            ;;
14227        esac
14228
14229        case $cc_basename in
14230          CC*)
14231	    # FIXME: insert proper C++ library support
14232	    ld_shlibs_CXX=no
14233	    ;;
14234          aCC*)
14235	    case $host_cpu in
14236	      hppa*64*)
14237	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14238	        ;;
14239	      ia64*)
14240	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14241	        ;;
14242	      *)
14243	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14244	        ;;
14245	    esac
14246	    # Commands to make compiler produce verbose output that lists
14247	    # what "hidden" libraries, object files and flags are used when
14248	    # linking a shared library.
14249	    #
14250	    # There doesn't appear to be a way to prevent this compiler from
14251	    # explicitly linking system object files so we need to strip them
14252	    # from the output so that they don't get included in the library
14253	    # dependencies.
14254	    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"'
14255	    ;;
14256          *)
14257	    if test yes = "$GXX"; then
14258	      if test no = "$with_gnu_ld"; then
14259	        case $host_cpu in
14260	          hppa*64*)
14261	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262	            ;;
14263	          ia64*)
14264	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14265	            ;;
14266	          *)
14267	            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'
14268	            ;;
14269	        esac
14270	      fi
14271	    else
14272	      # FIXME: insert proper C++ library support
14273	      ld_shlibs_CXX=no
14274	    fi
14275	    ;;
14276        esac
14277        ;;
14278
14279      interix[3-9]*)
14280	hardcode_direct_CXX=no
14281	hardcode_shlibpath_var_CXX=no
14282	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14283	export_dynamic_flag_spec_CXX='$wl-E'
14284	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14285	# Instead, shared libraries are loaded at an image base (0x10000000 by
14286	# default) and relocated if they conflict, which is a slow very memory
14287	# consuming and fragmenting process.  To avoid this, we pick a random,
14288	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14289	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14290	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'
14291	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'
14292	;;
14293      irix5* | irix6*)
14294        case $cc_basename in
14295          CC*)
14296	    # SGI C++
14297	    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'
14298
14299	    # Archives containing C++ object files must be created using
14300	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14301	    # necessary to make sure instantiated templates are included
14302	    # in the archive.
14303	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14304	    ;;
14305          *)
14306	    if test yes = "$GXX"; then
14307	      if test no = "$with_gnu_ld"; then
14308	        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'
14309	      else
14310	        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'
14311	      fi
14312	    fi
14313	    link_all_deplibs_CXX=yes
14314	    ;;
14315        esac
14316        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14317        hardcode_libdir_separator_CXX=:
14318        inherit_rpath_CXX=yes
14319        ;;
14320
14321      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14322        case $cc_basename in
14323          KCC*)
14324	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14325
14326	    # KCC will only create a shared library if the output file
14327	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14328	    # to its proper name (with version) after linking.
14329	    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'
14330	    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'
14331	    # Commands to make compiler produce verbose output that lists
14332	    # what "hidden" libraries, object files and flags are used when
14333	    # linking a shared library.
14334	    #
14335	    # There doesn't appear to be a way to prevent this compiler from
14336	    # explicitly linking system object files so we need to strip them
14337	    # from the output so that they don't get included in the library
14338	    # dependencies.
14339	    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"'
14340
14341	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14342	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14343
14344	    # Archives containing C++ object files must be created using
14345	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14346	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14347	    ;;
14348	  icpc* | ecpc* )
14349	    # Intel C++
14350	    with_gnu_ld=yes
14351	    # version 8.0 and above of icpc choke on multiply defined symbols
14352	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14353	    # earlier do not add the objects themselves.
14354	    case `$CC -V 2>&1` in
14355	      *"Version 7."*)
14356	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14357		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'
14358		;;
14359	      *)  # Version 8.0 or newer
14360	        tmp_idyn=
14361	        case $host_cpu in
14362		  ia64*) tmp_idyn=' -i_dynamic';;
14363		esac
14364	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14365		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'
14366		;;
14367	    esac
14368	    archive_cmds_need_lc_CXX=no
14369	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14370	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14371	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14372	    ;;
14373          pgCC* | pgcpp*)
14374            # Portland Group C++ compiler
14375	    case `$CC -V` in
14376	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14377	      prelink_cmds_CXX='tpldir=Template.dir~
14378               rm -rf $tpldir~
14379               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14380               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14381	      old_archive_cmds_CXX='tpldir=Template.dir~
14382                rm -rf $tpldir~
14383                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14384                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14385                $RANLIB $oldlib'
14386	      archive_cmds_CXX='tpldir=Template.dir~
14387                rm -rf $tpldir~
14388                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14389                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14390	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14391                rm -rf $tpldir~
14392                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14393                $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'
14394	      ;;
14395	    *) # Version 6 and above use weak symbols
14396	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14397	      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'
14398	      ;;
14399	    esac
14400
14401	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14402	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14403	    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'
14404            ;;
14405	  cxx*)
14406	    # Compaq C++
14407	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14408	    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'
14409
14410	    runpath_var=LD_RUN_PATH
14411	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14412	    hardcode_libdir_separator_CXX=:
14413
14414	    # Commands to make compiler produce verbose output that lists
14415	    # what "hidden" libraries, object files and flags are used when
14416	    # linking a shared library.
14417	    #
14418	    # There doesn't appear to be a way to prevent this compiler from
14419	    # explicitly linking system object files so we need to strip them
14420	    # from the output so that they don't get included in the library
14421	    # dependencies.
14422	    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'
14423	    ;;
14424	  xl* | mpixl* | bgxl*)
14425	    # IBM XL 8.0 on PPC, with GNU ld
14426	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14427	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14428	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14429	    if test yes = "$supports_anon_versioning"; then
14430	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14431                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14432                echo "local: *; };" >> $output_objdir/$libname.ver~
14433                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14434	    fi
14435	    ;;
14436	  *)
14437	    case `$CC -V 2>&1 | sed 5q` in
14438	    *Sun\ C*)
14439	      # Sun C++ 5.9
14440	      no_undefined_flag_CXX=' -zdefs'
14441	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14442	      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'
14443	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14444	      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'
14445	      compiler_needs_object_CXX=yes
14446
14447	      # Not sure whether something based on
14448	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14449	      # would be better.
14450	      output_verbose_link_cmd='func_echo_all'
14451
14452	      # Archives containing C++ object files must be created using
14453	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14454	      # necessary to make sure instantiated templates are included
14455	      # in the archive.
14456	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14457	      ;;
14458	    esac
14459	    ;;
14460	esac
14461	;;
14462
14463      lynxos*)
14464        # FIXME: insert proper C++ library support
14465	ld_shlibs_CXX=no
14466	;;
14467
14468      m88k*)
14469        # FIXME: insert proper C++ library support
14470        ld_shlibs_CXX=no
14471	;;
14472
14473      mvs*)
14474        case $cc_basename in
14475          cxx*)
14476	    # FIXME: insert proper C++ library support
14477	    ld_shlibs_CXX=no
14478	    ;;
14479	  *)
14480	    # FIXME: insert proper C++ library support
14481	    ld_shlibs_CXX=no
14482	    ;;
14483	esac
14484	;;
14485
14486      netbsd*)
14487        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14488	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14489	  wlarc=
14490	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14491	  hardcode_direct_CXX=yes
14492	  hardcode_shlibpath_var_CXX=no
14493	fi
14494	# Workaround some broken pre-1.5 toolchains
14495	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14496	;;
14497
14498      *nto* | *qnx*)
14499        ld_shlibs_CXX=yes
14500	;;
14501
14502      openbsd* | bitrig*)
14503	if test -f /usr/libexec/ld.so; then
14504	  hardcode_direct_CXX=yes
14505	  hardcode_shlibpath_var_CXX=no
14506	  hardcode_direct_absolute_CXX=yes
14507	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14508	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14509	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14510	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14511	    export_dynamic_flag_spec_CXX='$wl-E'
14512	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14513	  fi
14514	  output_verbose_link_cmd=func_echo_all
14515	else
14516	  ld_shlibs_CXX=no
14517	fi
14518	;;
14519
14520      osf3* | osf4* | osf5*)
14521        case $cc_basename in
14522          KCC*)
14523	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14524
14525	    # KCC will only create a shared library if the output file
14526	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14527	    # to its proper name (with version) after linking.
14528	    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'
14529
14530	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14531	    hardcode_libdir_separator_CXX=:
14532
14533	    # Archives containing C++ object files must be created using
14534	    # the KAI C++ compiler.
14535	    case $host in
14536	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14537	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14538	    esac
14539	    ;;
14540          RCC*)
14541	    # Rational C++ 2.4.1
14542	    # FIXME: insert proper C++ library support
14543	    ld_shlibs_CXX=no
14544	    ;;
14545          cxx*)
14546	    case $host in
14547	      osf3*)
14548	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14549	        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'
14550	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14551		;;
14552	      *)
14553	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14554	        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'
14555	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14556                  echo "-hidden">> $lib.exp~
14557                  $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~
14558                  $RM $lib.exp'
14559	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14560		;;
14561	    esac
14562
14563	    hardcode_libdir_separator_CXX=:
14564
14565	    # Commands to make compiler produce verbose output that lists
14566	    # what "hidden" libraries, object files and flags are used when
14567	    # linking a shared library.
14568	    #
14569	    # There doesn't appear to be a way to prevent this compiler from
14570	    # explicitly linking system object files so we need to strip them
14571	    # from the output so that they don't get included in the library
14572	    # dependencies.
14573	    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"'
14574	    ;;
14575	  *)
14576	    if test yes,no = "$GXX,$with_gnu_ld"; then
14577	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14578	      case $host in
14579	        osf3*)
14580	          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'
14581		  ;;
14582	        *)
14583	          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'
14584		  ;;
14585	      esac
14586
14587	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14588	      hardcode_libdir_separator_CXX=:
14589
14590	      # Commands to make compiler produce verbose output that lists
14591	      # what "hidden" libraries, object files and flags are used when
14592	      # linking a shared library.
14593	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14594
14595	    else
14596	      # FIXME: insert proper C++ library support
14597	      ld_shlibs_CXX=no
14598	    fi
14599	    ;;
14600        esac
14601        ;;
14602
14603      psos*)
14604        # FIXME: insert proper C++ library support
14605        ld_shlibs_CXX=no
14606        ;;
14607
14608      sunos4*)
14609        case $cc_basename in
14610          CC*)
14611	    # Sun C++ 4.x
14612	    # FIXME: insert proper C++ library support
14613	    ld_shlibs_CXX=no
14614	    ;;
14615          lcc*)
14616	    # Lucid
14617	    # FIXME: insert proper C++ library support
14618	    ld_shlibs_CXX=no
14619	    ;;
14620          *)
14621	    # FIXME: insert proper C++ library support
14622	    ld_shlibs_CXX=no
14623	    ;;
14624        esac
14625        ;;
14626
14627      solaris*)
14628        case $cc_basename in
14629          CC* | sunCC*)
14630	    # Sun C++ 4.2, 5.x and Centerline C++
14631            archive_cmds_need_lc_CXX=yes
14632	    no_undefined_flag_CXX=' -zdefs'
14633	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14634	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14635              $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'
14636
14637	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14638	    hardcode_shlibpath_var_CXX=no
14639	    case $host_os in
14640	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14641	      *)
14642		# The compiler driver will combine and reorder linker options,
14643		# but understands '-z linker_flag'.
14644	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14645		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14646	        ;;
14647	    esac
14648	    link_all_deplibs_CXX=yes
14649
14650	    output_verbose_link_cmd='func_echo_all'
14651
14652	    # Archives containing C++ object files must be created using
14653	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14654	    # necessary to make sure instantiated templates are included
14655	    # in the archive.
14656	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14657	    ;;
14658          gcx*)
14659	    # Green Hills C++ Compiler
14660	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14661
14662	    # The C++ compiler must be used to create the archive.
14663	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14664	    ;;
14665          *)
14666	    # GNU C++ compiler with Solaris linker
14667	    if test yes,no = "$GXX,$with_gnu_ld"; then
14668	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14669	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14670	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14671	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14672                  $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'
14673
14674	        # Commands to make compiler produce verbose output that lists
14675	        # what "hidden" libraries, object files and flags are used when
14676	        # linking a shared library.
14677	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14678	      else
14679	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14680	        # platform.
14681	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14682	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14683                  $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'
14684
14685	        # Commands to make compiler produce verbose output that lists
14686	        # what "hidden" libraries, object files and flags are used when
14687	        # linking a shared library.
14688	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14689	      fi
14690
14691	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14692	      case $host_os in
14693		solaris2.[0-5] | solaris2.[0-5].*) ;;
14694		*)
14695		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14696		  ;;
14697	      esac
14698	    fi
14699	    ;;
14700        esac
14701        ;;
14702
14703    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14704      no_undefined_flag_CXX='$wl-z,text'
14705      archive_cmds_need_lc_CXX=no
14706      hardcode_shlibpath_var_CXX=no
14707      runpath_var='LD_RUN_PATH'
14708
14709      case $cc_basename in
14710        CC*)
14711	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713	  ;;
14714	*)
14715	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14716	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717	  ;;
14718      esac
14719      ;;
14720
14721      sysv5* | sco3.2v5* | sco5v6*)
14722	# Note: We CANNOT use -z defs as we might desire, because we do not
14723	# link with -lc, and that would cause any symbols used from libc to
14724	# always be unresolved, which means just about no library would
14725	# ever link correctly.  If we're not using GNU ld we use -z text
14726	# though, which does catch some bad symbols but isn't as heavy-handed
14727	# as -z defs.
14728	no_undefined_flag_CXX='$wl-z,text'
14729	allow_undefined_flag_CXX='$wl-z,nodefs'
14730	archive_cmds_need_lc_CXX=no
14731	hardcode_shlibpath_var_CXX=no
14732	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14733	hardcode_libdir_separator_CXX=':'
14734	link_all_deplibs_CXX=yes
14735	export_dynamic_flag_spec_CXX='$wl-Bexport'
14736	runpath_var='LD_RUN_PATH'
14737
14738	case $cc_basename in
14739          CC*)
14740	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14742	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14743              '"$old_archive_cmds_CXX"
14744	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14745              '"$reload_cmds_CXX"
14746	    ;;
14747	  *)
14748	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14749	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750	    ;;
14751	esac
14752      ;;
14753
14754      tandem*)
14755        case $cc_basename in
14756          NCC*)
14757	    # NonStop-UX NCC 3.20
14758	    # FIXME: insert proper C++ library support
14759	    ld_shlibs_CXX=no
14760	    ;;
14761          *)
14762	    # FIXME: insert proper C++ library support
14763	    ld_shlibs_CXX=no
14764	    ;;
14765        esac
14766        ;;
14767
14768      vxworks*)
14769        # FIXME: insert proper C++ library support
14770        ld_shlibs_CXX=no
14771        ;;
14772
14773      *)
14774        # FIXME: insert proper C++ library support
14775        ld_shlibs_CXX=no
14776        ;;
14777    esac
14778
14779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14780$as_echo "$ld_shlibs_CXX" >&6; }
14781    test no = "$ld_shlibs_CXX" && can_build_shared=no
14782
14783    GCC_CXX=$GXX
14784    LD_CXX=$LD
14785
14786    ## CAVEAT EMPTOR:
14787    ## There is no encapsulation within the following macros, do not change
14788    ## the running order or otherwise move them around unless you know exactly
14789    ## what you are doing...
14790    # Dependencies to place before and after the object being linked:
14791predep_objects_CXX=
14792postdep_objects_CXX=
14793predeps_CXX=
14794postdeps_CXX=
14795compiler_lib_search_path_CXX=
14796
14797cat > conftest.$ac_ext <<_LT_EOF
14798class Foo
14799{
14800public:
14801  Foo (void) { a = 0; }
14802private:
14803  int a;
14804};
14805_LT_EOF
14806
14807
14808_lt_libdeps_save_CFLAGS=$CFLAGS
14809case "$CC $CFLAGS " in #(
14810*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14811*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14812*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14813esac
14814
14815if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14816  (eval $ac_compile) 2>&5
14817  ac_status=$?
14818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819  test $ac_status = 0; }; then
14820  # Parse the compiler output and extract the necessary
14821  # objects, libraries and library flags.
14822
14823  # Sentinel used to keep track of whether or not we are before
14824  # the conftest object file.
14825  pre_test_object_deps_done=no
14826
14827  for p in `eval "$output_verbose_link_cmd"`; do
14828    case $prev$p in
14829
14830    -L* | -R* | -l*)
14831       # Some compilers place space between "-{L,R}" and the path.
14832       # Remove the space.
14833       if test x-L = "$p" ||
14834          test x-R = "$p"; then
14835	 prev=$p
14836	 continue
14837       fi
14838
14839       # Expand the sysroot to ease extracting the directories later.
14840       if test -z "$prev"; then
14841         case $p in
14842         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14843         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14844         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14845         esac
14846       fi
14847       case $p in
14848       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14849       esac
14850       if test no = "$pre_test_object_deps_done"; then
14851	 case $prev in
14852	 -L | -R)
14853	   # Internal compiler library paths should come after those
14854	   # provided the user.  The postdeps already come after the
14855	   # user supplied libs so there is no need to process them.
14856	   if test -z "$compiler_lib_search_path_CXX"; then
14857	     compiler_lib_search_path_CXX=$prev$p
14858	   else
14859	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14860	   fi
14861	   ;;
14862	 # The "-l" case would never come before the object being
14863	 # linked, so don't bother handling this case.
14864	 esac
14865       else
14866	 if test -z "$postdeps_CXX"; then
14867	   postdeps_CXX=$prev$p
14868	 else
14869	   postdeps_CXX="${postdeps_CXX} $prev$p"
14870	 fi
14871       fi
14872       prev=
14873       ;;
14874
14875    *.lto.$objext) ;; # Ignore GCC LTO objects
14876    *.$objext)
14877       # This assumes that the test object file only shows up
14878       # once in the compiler output.
14879       if test "$p" = "conftest.$objext"; then
14880	 pre_test_object_deps_done=yes
14881	 continue
14882       fi
14883
14884       if test no = "$pre_test_object_deps_done"; then
14885	 if test -z "$predep_objects_CXX"; then
14886	   predep_objects_CXX=$p
14887	 else
14888	   predep_objects_CXX="$predep_objects_CXX $p"
14889	 fi
14890       else
14891	 if test -z "$postdep_objects_CXX"; then
14892	   postdep_objects_CXX=$p
14893	 else
14894	   postdep_objects_CXX="$postdep_objects_CXX $p"
14895	 fi
14896       fi
14897       ;;
14898
14899    *) ;; # Ignore the rest.
14900
14901    esac
14902  done
14903
14904  # Clean up.
14905  rm -f a.out a.exe
14906else
14907  echo "libtool.m4: error: problem compiling CXX test program"
14908fi
14909
14910$RM -f confest.$objext
14911CFLAGS=$_lt_libdeps_save_CFLAGS
14912
14913# PORTME: override above test on systems where it is broken
14914case $host_os in
14915interix[3-9]*)
14916  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14917  # hack all around it, let's just trust "g++" to DTRT.
14918  predep_objects_CXX=
14919  postdep_objects_CXX=
14920  postdeps_CXX=
14921  ;;
14922esac
14923
14924
14925case " $postdeps_CXX " in
14926*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14927esac
14928 compiler_lib_search_dirs_CXX=
14929if test -n "${compiler_lib_search_path_CXX}"; then
14930 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14931fi
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963    lt_prog_compiler_wl_CXX=
14964lt_prog_compiler_pic_CXX=
14965lt_prog_compiler_static_CXX=
14966
14967
14968  # C++ specific cases for pic, static, wl, etc.
14969  if test yes = "$GXX"; then
14970    lt_prog_compiler_wl_CXX='-Wl,'
14971    lt_prog_compiler_static_CXX='-static'
14972
14973    case $host_os in
14974    aix*)
14975      # All AIX code is PIC.
14976      if test ia64 = "$host_cpu"; then
14977	# AIX 5 now supports IA64 processor
14978	lt_prog_compiler_static_CXX='-Bstatic'
14979      fi
14980      lt_prog_compiler_pic_CXX='-fPIC'
14981      ;;
14982
14983    amigaos*)
14984      case $host_cpu in
14985      powerpc)
14986            # see comment about AmigaOS4 .so support
14987            lt_prog_compiler_pic_CXX='-fPIC'
14988        ;;
14989      m68k)
14990            # FIXME: we need at least 68020 code to build shared libraries, but
14991            # adding the '-m68020' flag to GCC prevents building anything better,
14992            # like '-m68040'.
14993            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14994        ;;
14995      esac
14996      ;;
14997
14998    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14999      # PIC is the default for these OSes.
15000      ;;
15001    mingw* | cygwin* | os2* | pw32* | cegcc*)
15002      # This hack is so that the source file can tell whether it is being
15003      # built for inclusion in a dll (and should export symbols for example).
15004      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15005      # (--disable-auto-import) libraries
15006      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15007      case $host_os in
15008      os2*)
15009	lt_prog_compiler_static_CXX='$wl-static'
15010	;;
15011      esac
15012      ;;
15013    darwin* | rhapsody*)
15014      # PIC is the default on this platform
15015      # Common symbols not allowed in MH_DYLIB files
15016      lt_prog_compiler_pic_CXX='-fno-common'
15017      ;;
15018    *djgpp*)
15019      # DJGPP does not support shared libraries at all
15020      lt_prog_compiler_pic_CXX=
15021      ;;
15022    haiku*)
15023      # PIC is the default for Haiku.
15024      # The "-static" flag exists, but is broken.
15025      lt_prog_compiler_static_CXX=
15026      ;;
15027    interix[3-9]*)
15028      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15029      # Instead, we relocate shared libraries at runtime.
15030      ;;
15031    sysv4*MP*)
15032      if test -d /usr/nec; then
15033	lt_prog_compiler_pic_CXX=-Kconform_pic
15034      fi
15035      ;;
15036    hpux*)
15037      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15038      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15039      # sets the default TLS model and affects inlining.
15040      case $host_cpu in
15041      hppa*64*)
15042	;;
15043      *)
15044	lt_prog_compiler_pic_CXX='-fPIC'
15045	;;
15046      esac
15047      ;;
15048    *qnx* | *nto*)
15049      # QNX uses GNU C++, but need to define -shared option too, otherwise
15050      # it will coredump.
15051      lt_prog_compiler_pic_CXX='-fPIC -shared'
15052      ;;
15053    *)
15054      lt_prog_compiler_pic_CXX='-fPIC'
15055      ;;
15056    esac
15057  else
15058    case $host_os in
15059      aix[4-9]*)
15060	# All AIX code is PIC.
15061	if test ia64 = "$host_cpu"; then
15062	  # AIX 5 now supports IA64 processor
15063	  lt_prog_compiler_static_CXX='-Bstatic'
15064	else
15065	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15066	fi
15067	;;
15068      chorus*)
15069	case $cc_basename in
15070	cxch68*)
15071	  # Green Hills C++ Compiler
15072	  # _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"
15073	  ;;
15074	esac
15075	;;
15076      mingw* | cygwin* | os2* | pw32* | cegcc*)
15077	# This hack is so that the source file can tell whether it is being
15078	# built for inclusion in a dll (and should export symbols for example).
15079	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15080	;;
15081      dgux*)
15082	case $cc_basename in
15083	  ec++*)
15084	    lt_prog_compiler_pic_CXX='-KPIC'
15085	    ;;
15086	  ghcx*)
15087	    # Green Hills C++ Compiler
15088	    lt_prog_compiler_pic_CXX='-pic'
15089	    ;;
15090	  *)
15091	    ;;
15092	esac
15093	;;
15094      freebsd* | dragonfly*)
15095	# FreeBSD uses GNU C++
15096	;;
15097      hpux9* | hpux10* | hpux11*)
15098	case $cc_basename in
15099	  CC*)
15100	    lt_prog_compiler_wl_CXX='-Wl,'
15101	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15102	    if test ia64 != "$host_cpu"; then
15103	      lt_prog_compiler_pic_CXX='+Z'
15104	    fi
15105	    ;;
15106	  aCC*)
15107	    lt_prog_compiler_wl_CXX='-Wl,'
15108	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15109	    case $host_cpu in
15110	    hppa*64*|ia64*)
15111	      # +Z the default
15112	      ;;
15113	    *)
15114	      lt_prog_compiler_pic_CXX='+Z'
15115	      ;;
15116	    esac
15117	    ;;
15118	  *)
15119	    ;;
15120	esac
15121	;;
15122      interix*)
15123	# This is c89, which is MS Visual C++ (no shared libs)
15124	# Anyone wants to do a port?
15125	;;
15126      irix5* | irix6* | nonstopux*)
15127	case $cc_basename in
15128	  CC*)
15129	    lt_prog_compiler_wl_CXX='-Wl,'
15130	    lt_prog_compiler_static_CXX='-non_shared'
15131	    # CC pic flag -KPIC is the default.
15132	    ;;
15133	  *)
15134	    ;;
15135	esac
15136	;;
15137      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15138	case $cc_basename in
15139	  KCC*)
15140	    # KAI C++ Compiler
15141	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15142	    lt_prog_compiler_pic_CXX='-fPIC'
15143	    ;;
15144	  ecpc* )
15145	    # old Intel C++ for x86_64, which still supported -KPIC.
15146	    lt_prog_compiler_wl_CXX='-Wl,'
15147	    lt_prog_compiler_pic_CXX='-KPIC'
15148	    lt_prog_compiler_static_CXX='-static'
15149	    ;;
15150	  icpc* )
15151	    # Intel C++, used to be incompatible with GCC.
15152	    # ICC 10 doesn't accept -KPIC any more.
15153	    lt_prog_compiler_wl_CXX='-Wl,'
15154	    lt_prog_compiler_pic_CXX='-fPIC'
15155	    lt_prog_compiler_static_CXX='-static'
15156	    ;;
15157	  pgCC* | pgcpp*)
15158	    # Portland Group C++ compiler
15159	    lt_prog_compiler_wl_CXX='-Wl,'
15160	    lt_prog_compiler_pic_CXX='-fpic'
15161	    lt_prog_compiler_static_CXX='-Bstatic'
15162	    ;;
15163	  cxx*)
15164	    # Compaq C++
15165	    # Make sure the PIC flag is empty.  It appears that all Alpha
15166	    # Linux and Compaq Tru64 Unix objects are PIC.
15167	    lt_prog_compiler_pic_CXX=
15168	    lt_prog_compiler_static_CXX='-non_shared'
15169	    ;;
15170	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15171	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15172	    lt_prog_compiler_wl_CXX='-Wl,'
15173	    lt_prog_compiler_pic_CXX='-qpic'
15174	    lt_prog_compiler_static_CXX='-qstaticlink'
15175	    ;;
15176	  *)
15177	    case `$CC -V 2>&1 | sed 5q` in
15178	    *Sun\ C*)
15179	      # Sun C++ 5.9
15180	      lt_prog_compiler_pic_CXX='-KPIC'
15181	      lt_prog_compiler_static_CXX='-Bstatic'
15182	      lt_prog_compiler_wl_CXX='-Qoption ld '
15183	      ;;
15184	    esac
15185	    ;;
15186	esac
15187	;;
15188      lynxos*)
15189	;;
15190      m88k*)
15191	;;
15192      mvs*)
15193	case $cc_basename in
15194	  cxx*)
15195	    lt_prog_compiler_pic_CXX='-W c,exportall'
15196	    ;;
15197	  *)
15198	    ;;
15199	esac
15200	;;
15201      netbsd*)
15202	;;
15203      *qnx* | *nto*)
15204        # QNX uses GNU C++, but need to define -shared option too, otherwise
15205        # it will coredump.
15206        lt_prog_compiler_pic_CXX='-fPIC -shared'
15207        ;;
15208      osf3* | osf4* | osf5*)
15209	case $cc_basename in
15210	  KCC*)
15211	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15212	    ;;
15213	  RCC*)
15214	    # Rational C++ 2.4.1
15215	    lt_prog_compiler_pic_CXX='-pic'
15216	    ;;
15217	  cxx*)
15218	    # Digital/Compaq C++
15219	    lt_prog_compiler_wl_CXX='-Wl,'
15220	    # Make sure the PIC flag is empty.  It appears that all Alpha
15221	    # Linux and Compaq Tru64 Unix objects are PIC.
15222	    lt_prog_compiler_pic_CXX=
15223	    lt_prog_compiler_static_CXX='-non_shared'
15224	    ;;
15225	  *)
15226	    ;;
15227	esac
15228	;;
15229      psos*)
15230	;;
15231      solaris*)
15232	case $cc_basename in
15233	  CC* | sunCC*)
15234	    # Sun C++ 4.2, 5.x and Centerline C++
15235	    lt_prog_compiler_pic_CXX='-KPIC'
15236	    lt_prog_compiler_static_CXX='-Bstatic'
15237	    lt_prog_compiler_wl_CXX='-Qoption ld '
15238	    ;;
15239	  gcx*)
15240	    # Green Hills C++ Compiler
15241	    lt_prog_compiler_pic_CXX='-PIC'
15242	    ;;
15243	  *)
15244	    ;;
15245	esac
15246	;;
15247      sunos4*)
15248	case $cc_basename in
15249	  CC*)
15250	    # Sun C++ 4.x
15251	    lt_prog_compiler_pic_CXX='-pic'
15252	    lt_prog_compiler_static_CXX='-Bstatic'
15253	    ;;
15254	  lcc*)
15255	    # Lucid
15256	    lt_prog_compiler_pic_CXX='-pic'
15257	    ;;
15258	  *)
15259	    ;;
15260	esac
15261	;;
15262      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15263	case $cc_basename in
15264	  CC*)
15265	    lt_prog_compiler_wl_CXX='-Wl,'
15266	    lt_prog_compiler_pic_CXX='-KPIC'
15267	    lt_prog_compiler_static_CXX='-Bstatic'
15268	    ;;
15269	esac
15270	;;
15271      tandem*)
15272	case $cc_basename in
15273	  NCC*)
15274	    # NonStop-UX NCC 3.20
15275	    lt_prog_compiler_pic_CXX='-KPIC'
15276	    ;;
15277	  *)
15278	    ;;
15279	esac
15280	;;
15281      vxworks*)
15282	;;
15283      *)
15284	lt_prog_compiler_can_build_shared_CXX=no
15285	;;
15286    esac
15287  fi
15288
15289case $host_os in
15290  # For platforms that do not support PIC, -DPIC is meaningless:
15291  *djgpp*)
15292    lt_prog_compiler_pic_CXX=
15293    ;;
15294  *)
15295    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15296    ;;
15297esac
15298
15299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15300$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15301if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15302  $as_echo_n "(cached) " >&6
15303else
15304  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15305fi
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15307$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15308lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15309
15310#
15311# Check to make sure the PIC flag actually works.
15312#
15313if test -n "$lt_prog_compiler_pic_CXX"; then
15314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15315$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15316if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15317  $as_echo_n "(cached) " >&6
15318else
15319  lt_cv_prog_compiler_pic_works_CXX=no
15320   ac_outfile=conftest.$ac_objext
15321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15322   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15323   # Insert the option either (1) after the last *FLAGS variable, or
15324   # (2) before a word containing "conftest.", or (3) at the end.
15325   # Note that $ac_compile itself does not contain backslashes and begins
15326   # with a dollar sign (not a hyphen), so the echo should work correctly.
15327   # The option is referenced via a variable to avoid confusing sed.
15328   lt_compile=`echo "$ac_compile" | $SED \
15329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15331   -e 's:$: $lt_compiler_flag:'`
15332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15333   (eval "$lt_compile" 2>conftest.err)
15334   ac_status=$?
15335   cat conftest.err >&5
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   if (exit $ac_status) && test -s "$ac_outfile"; then
15338     # The compiler can only warn and ignore the option if not recognized
15339     # So say no if there are warnings other than the usual output.
15340     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15343       lt_cv_prog_compiler_pic_works_CXX=yes
15344     fi
15345   fi
15346   $RM conftest*
15347
15348fi
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15350$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15351
15352if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15353    case $lt_prog_compiler_pic_CXX in
15354     "" | " "*) ;;
15355     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15356     esac
15357else
15358    lt_prog_compiler_pic_CXX=
15359     lt_prog_compiler_can_build_shared_CXX=no
15360fi
15361
15362fi
15363
15364
15365
15366
15367
15368#
15369# Check to make sure the static flag actually works.
15370#
15371wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15373$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15374if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15375  $as_echo_n "(cached) " >&6
15376else
15377  lt_cv_prog_compiler_static_works_CXX=no
15378   save_LDFLAGS=$LDFLAGS
15379   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15380   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15381   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15382     # The linker can only warn and ignore the option if not recognized
15383     # So say no if there are warnings
15384     if test -s conftest.err; then
15385       # Append any errors to the config.log.
15386       cat conftest.err 1>&5
15387       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15388       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15389       if diff conftest.exp conftest.er2 >/dev/null; then
15390         lt_cv_prog_compiler_static_works_CXX=yes
15391       fi
15392     else
15393       lt_cv_prog_compiler_static_works_CXX=yes
15394     fi
15395   fi
15396   $RM -r conftest*
15397   LDFLAGS=$save_LDFLAGS
15398
15399fi
15400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15401$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15402
15403if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15404    :
15405else
15406    lt_prog_compiler_static_CXX=
15407fi
15408
15409
15410
15411
15412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15413$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15414if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15415  $as_echo_n "(cached) " >&6
15416else
15417  lt_cv_prog_compiler_c_o_CXX=no
15418   $RM -r conftest 2>/dev/null
15419   mkdir conftest
15420   cd conftest
15421   mkdir out
15422   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15423
15424   lt_compiler_flag="-o out/conftest2.$ac_objext"
15425   # Insert the option either (1) after the last *FLAGS variable, or
15426   # (2) before a word containing "conftest.", or (3) at the end.
15427   # Note that $ac_compile itself does not contain backslashes and begins
15428   # with a dollar sign (not a hyphen), so the echo should work correctly.
15429   lt_compile=`echo "$ac_compile" | $SED \
15430   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432   -e 's:$: $lt_compiler_flag:'`
15433   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15434   (eval "$lt_compile" 2>out/conftest.err)
15435   ac_status=$?
15436   cat out/conftest.err >&5
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439   then
15440     # The compiler can only warn and ignore the option if not recognized
15441     # So say no if there are warnings
15442     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15443     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15444     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15445       lt_cv_prog_compiler_c_o_CXX=yes
15446     fi
15447   fi
15448   chmod u+w . 2>&5
15449   $RM conftest*
15450   # SGI C++ compiler will create directory out/ii_files/ for
15451   # template instantiation
15452   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15453   $RM out/* && rmdir out
15454   cd ..
15455   $RM -r conftest
15456   $RM conftest*
15457
15458fi
15459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15460$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15461
15462
15463
15464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15465$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15466if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15467  $as_echo_n "(cached) " >&6
15468else
15469  lt_cv_prog_compiler_c_o_CXX=no
15470   $RM -r conftest 2>/dev/null
15471   mkdir conftest
15472   cd conftest
15473   mkdir out
15474   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15475
15476   lt_compiler_flag="-o out/conftest2.$ac_objext"
15477   # Insert the option either (1) after the last *FLAGS variable, or
15478   # (2) before a word containing "conftest.", or (3) at the end.
15479   # Note that $ac_compile itself does not contain backslashes and begins
15480   # with a dollar sign (not a hyphen), so the echo should work correctly.
15481   lt_compile=`echo "$ac_compile" | $SED \
15482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15484   -e 's:$: $lt_compiler_flag:'`
15485   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15486   (eval "$lt_compile" 2>out/conftest.err)
15487   ac_status=$?
15488   cat out/conftest.err >&5
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15491   then
15492     # The compiler can only warn and ignore the option if not recognized
15493     # So say no if there are warnings
15494     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15495     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15496     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15497       lt_cv_prog_compiler_c_o_CXX=yes
15498     fi
15499   fi
15500   chmod u+w . 2>&5
15501   $RM conftest*
15502   # SGI C++ compiler will create directory out/ii_files/ for
15503   # template instantiation
15504   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15505   $RM out/* && rmdir out
15506   cd ..
15507   $RM -r conftest
15508   $RM conftest*
15509
15510fi
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15512$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15513
15514
15515
15516
15517hard_links=nottested
15518if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15519  # do not overwrite the value of need_locks provided by the user
15520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15521$as_echo_n "checking if we can lock with hard links... " >&6; }
15522  hard_links=yes
15523  $RM conftest*
15524  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15525  touch conftest.a
15526  ln conftest.a conftest.b 2>&5 || hard_links=no
15527  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15529$as_echo "$hard_links" >&6; }
15530  if test no = "$hard_links"; then
15531    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15532$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15533    need_locks=warn
15534  fi
15535else
15536  need_locks=no
15537fi
15538
15539
15540
15541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15542$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15543
15544  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15545  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15546  case $host_os in
15547  aix[4-9]*)
15548    # If we're using GNU nm, then we don't want the "-C" option.
15549    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15550    # Without the "-l" option, or with the "-B" option, AIX nm treats
15551    # weak defined symbols like other global defined symbols, whereas
15552    # GNU nm marks them as "W".
15553    # While the 'weak' keyword is ignored in the Export File, we need
15554    # it in the Import File for the 'aix-soname' feature, so we have
15555    # to replace the "-B" option with "-P" for AIX nm.
15556    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15557      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'
15558    else
15559      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'
15560    fi
15561    ;;
15562  pw32*)
15563    export_symbols_cmds_CXX=$ltdll_cmds
15564    ;;
15565  cygwin* | mingw* | cegcc*)
15566    case $cc_basename in
15567    cl*)
15568      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15569      ;;
15570    *)
15571      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'
15572      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15573      ;;
15574    esac
15575    ;;
15576  *)
15577    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15578    ;;
15579  esac
15580
15581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15582$as_echo "$ld_shlibs_CXX" >&6; }
15583test no = "$ld_shlibs_CXX" && can_build_shared=no
15584
15585with_gnu_ld_CXX=$with_gnu_ld
15586
15587
15588
15589
15590
15591
15592#
15593# Do we need to explicitly link libc?
15594#
15595case "x$archive_cmds_need_lc_CXX" in
15596x|xyes)
15597  # Assume -lc should be added
15598  archive_cmds_need_lc_CXX=yes
15599
15600  if test yes,yes = "$GCC,$enable_shared"; then
15601    case $archive_cmds_CXX in
15602    *'~'*)
15603      # FIXME: we may have to deal with multi-command sequences.
15604      ;;
15605    '$CC '*)
15606      # Test whether the compiler implicitly links with -lc since on some
15607      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15608      # to ld, don't add -lc before -lgcc.
15609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15610$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15611if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15612  $as_echo_n "(cached) " >&6
15613else
15614  $RM conftest*
15615	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15616
15617	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15618  (eval $ac_compile) 2>&5
15619  ac_status=$?
15620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15621  test $ac_status = 0; } 2>conftest.err; then
15622	  soname=conftest
15623	  lib=conftest
15624	  libobjs=conftest.$ac_objext
15625	  deplibs=
15626	  wl=$lt_prog_compiler_wl_CXX
15627	  pic_flag=$lt_prog_compiler_pic_CXX
15628	  compiler_flags=-v
15629	  linker_flags=-v
15630	  verstring=
15631	  output_objdir=.
15632	  libname=conftest
15633	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15634	  allow_undefined_flag_CXX=
15635	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15636  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15637  ac_status=$?
15638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15639  test $ac_status = 0; }
15640	  then
15641	    lt_cv_archive_cmds_need_lc_CXX=no
15642	  else
15643	    lt_cv_archive_cmds_need_lc_CXX=yes
15644	  fi
15645	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15646	else
15647	  cat conftest.err 1>&5
15648	fi
15649	$RM conftest*
15650
15651fi
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15653$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15654      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15655      ;;
15656    esac
15657  fi
15658  ;;
15659esac
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15723$as_echo_n "checking dynamic linker characteristics... " >&6; }
15724
15725library_names_spec=
15726libname_spec='lib$name'
15727soname_spec=
15728shrext_cmds=.so
15729postinstall_cmds=
15730postuninstall_cmds=
15731finish_cmds=
15732finish_eval=
15733shlibpath_var=
15734shlibpath_overrides_runpath=unknown
15735version_type=none
15736dynamic_linker="$host_os ld.so"
15737sys_lib_dlsearch_path_spec="/lib /usr/lib"
15738need_lib_prefix=unknown
15739hardcode_into_libs=no
15740
15741# when you set need_version to no, make sure it does not cause -set_version
15742# flags to be left without arguments
15743need_version=unknown
15744
15745
15746
15747case $host_os in
15748aix3*)
15749  version_type=linux # correct to gnu/linux during the next big refactor
15750  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15751  shlibpath_var=LIBPATH
15752
15753  # AIX 3 has no versioning support, so we append a major version to the name.
15754  soname_spec='$libname$release$shared_ext$major'
15755  ;;
15756
15757aix[4-9]*)
15758  version_type=linux # correct to gnu/linux during the next big refactor
15759  need_lib_prefix=no
15760  need_version=no
15761  hardcode_into_libs=yes
15762  if test ia64 = "$host_cpu"; then
15763    # AIX 5 supports IA64
15764    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15765    shlibpath_var=LD_LIBRARY_PATH
15766  else
15767    # With GCC up to 2.95.x, collect2 would create an import file
15768    # for dependence libraries.  The import file would start with
15769    # the line '#! .'.  This would cause the generated library to
15770    # depend on '.', always an invalid library.  This was fixed in
15771    # development snapshots of GCC prior to 3.0.
15772    case $host_os in
15773      aix4 | aix4.[01] | aix4.[01].*)
15774      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775	   echo ' yes '
15776	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15777	:
15778      else
15779	can_build_shared=no
15780      fi
15781      ;;
15782    esac
15783    # Using Import Files as archive members, it is possible to support
15784    # filename-based versioning of shared library archives on AIX. While
15785    # this would work for both with and without runtime linking, it will
15786    # prevent static linking of such archives. So we do filename-based
15787    # shared library versioning with .so extension only, which is used
15788    # when both runtime linking and shared linking is enabled.
15789    # Unfortunately, runtime linking may impact performance, so we do
15790    # not want this to be the default eventually. Also, we use the
15791    # versioned .so libs for executables only if there is the -brtl
15792    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15793    # To allow for filename-based versioning support, we need to create
15794    # libNAME.so.V as an archive file, containing:
15795    # *) an Import File, referring to the versioned filename of the
15796    #    archive as well as the shared archive member, telling the
15797    #    bitwidth (32 or 64) of that shared object, and providing the
15798    #    list of exported symbols of that shared object, eventually
15799    #    decorated with the 'weak' keyword
15800    # *) the shared object with the F_LOADONLY flag set, to really avoid
15801    #    it being seen by the linker.
15802    # At run time we better use the real file rather than another symlink,
15803    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15804
15805    case $with_aix_soname,$aix_use_runtimelinking in
15806    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15807    # soname into executable. Probably we can add versioning support to
15808    # collect2, so additional links can be useful in future.
15809    aix,yes) # traditional libtool
15810      dynamic_linker='AIX unversionable lib.so'
15811      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15812      # instead of lib<name>.a to let people know that these are not
15813      # typical AIX shared libraries.
15814      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815      ;;
15816    aix,no) # traditional AIX only
15817      dynamic_linker='AIX lib.a(lib.so.V)'
15818      # We preserve .a as extension for shared libraries through AIX4.2
15819      # and later when we are not doing run time linking.
15820      library_names_spec='$libname$release.a $libname.a'
15821      soname_spec='$libname$release$shared_ext$major'
15822      ;;
15823    svr4,*) # full svr4 only
15824      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15825      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15826      # We do not specify a path in Import Files, so LIBPATH fires.
15827      shlibpath_overrides_runpath=yes
15828      ;;
15829    *,yes) # both, prefer svr4
15830      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15831      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15832      # unpreferred sharedlib libNAME.a needs extra handling
15833      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"'
15834      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"'
15835      # We do not specify a path in Import Files, so LIBPATH fires.
15836      shlibpath_overrides_runpath=yes
15837      ;;
15838    *,no) # both, prefer aix
15839      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15840      library_names_spec='$libname$release.a $libname.a'
15841      soname_spec='$libname$release$shared_ext$major'
15842      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15843      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)'
15844      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"'
15845      ;;
15846    esac
15847    shlibpath_var=LIBPATH
15848  fi
15849  ;;
15850
15851amigaos*)
15852  case $host_cpu in
15853  powerpc)
15854    # Since July 2007 AmigaOS4 officially supports .so libraries.
15855    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15856    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15857    ;;
15858  m68k)
15859    library_names_spec='$libname.ixlibrary $libname.a'
15860    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15861    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'
15862    ;;
15863  esac
15864  ;;
15865
15866beos*)
15867  library_names_spec='$libname$shared_ext'
15868  dynamic_linker="$host_os ld.so"
15869  shlibpath_var=LIBRARY_PATH
15870  ;;
15871
15872bsdi[45]*)
15873  version_type=linux # correct to gnu/linux during the next big refactor
15874  need_version=no
15875  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15876  soname_spec='$libname$release$shared_ext$major'
15877  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15878  shlibpath_var=LD_LIBRARY_PATH
15879  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15880  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15881  # the default ld.so.conf also contains /usr/contrib/lib and
15882  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15883  # libtool to hard-code these into programs
15884  ;;
15885
15886cygwin* | mingw* | pw32* | cegcc*)
15887  version_type=windows
15888  shrext_cmds=.dll
15889  need_version=no
15890  need_lib_prefix=no
15891
15892  case $GCC,$cc_basename in
15893  yes,*)
15894    # gcc
15895    library_names_spec='$libname.dll.a'
15896    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15897    postinstall_cmds='base_file=`basename \$file`~
15898      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15899      dldir=$destdir/`dirname \$dlpath`~
15900      test -d \$dldir || mkdir -p \$dldir~
15901      $install_prog $dir/$dlname \$dldir/$dlname~
15902      chmod a+x \$dldir/$dlname~
15903      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15904        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15905      fi'
15906    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15907      dlpath=$dir/\$dldll~
15908       $RM \$dlpath'
15909    shlibpath_overrides_runpath=yes
15910
15911    case $host_os in
15912    cygwin*)
15913      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15914      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15915
15916      ;;
15917    mingw* | cegcc*)
15918      # MinGW DLLs use traditional 'lib' prefix
15919      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15920      ;;
15921    pw32*)
15922      # pw32 DLLs use 'pw' prefix rather than 'lib'
15923      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15924      ;;
15925    esac
15926    dynamic_linker='Win32 ld.exe'
15927    ;;
15928
15929  *,cl*)
15930    # Native MSVC
15931    libname_spec='$name'
15932    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15933    library_names_spec='$libname.dll.lib'
15934
15935    case $build_os in
15936    mingw*)
15937      sys_lib_search_path_spec=
15938      lt_save_ifs=$IFS
15939      IFS=';'
15940      for lt_path in $LIB
15941      do
15942        IFS=$lt_save_ifs
15943        # Let DOS variable expansion print the short 8.3 style file name.
15944        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15945        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15946      done
15947      IFS=$lt_save_ifs
15948      # Convert to MSYS style.
15949      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15950      ;;
15951    cygwin*)
15952      # Convert to unix form, then to dos form, then back to unix form
15953      # but this time dos style (no spaces!) so that the unix form looks
15954      # like /cygdrive/c/PROGRA~1:/cygdr...
15955      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15956      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15957      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15958      ;;
15959    *)
15960      sys_lib_search_path_spec=$LIB
15961      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15962        # It is most probably a Windows format PATH.
15963        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15964      else
15965        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15966      fi
15967      # FIXME: find the short name or the path components, as spaces are
15968      # common. (e.g. "Program Files" -> "PROGRA~1")
15969      ;;
15970    esac
15971
15972    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15973    postinstall_cmds='base_file=`basename \$file`~
15974      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15975      dldir=$destdir/`dirname \$dlpath`~
15976      test -d \$dldir || mkdir -p \$dldir~
15977      $install_prog $dir/$dlname \$dldir/$dlname'
15978    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15979      dlpath=$dir/\$dldll~
15980       $RM \$dlpath'
15981    shlibpath_overrides_runpath=yes
15982    dynamic_linker='Win32 link.exe'
15983    ;;
15984
15985  *)
15986    # Assume MSVC wrapper
15987    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15988    dynamic_linker='Win32 ld.exe'
15989    ;;
15990  esac
15991  # FIXME: first we should search . and the directory the executable is in
15992  shlibpath_var=PATH
15993  ;;
15994
15995darwin* | rhapsody*)
15996  dynamic_linker="$host_os dyld"
15997  version_type=darwin
15998  need_lib_prefix=no
15999  need_version=no
16000  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16001  soname_spec='$libname$release$major$shared_ext'
16002  shlibpath_overrides_runpath=yes
16003  shlibpath_var=DYLD_LIBRARY_PATH
16004  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16005
16006  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16007  ;;
16008
16009dgux*)
16010  version_type=linux # correct to gnu/linux during the next big refactor
16011  need_lib_prefix=no
16012  need_version=no
16013  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16014  soname_spec='$libname$release$shared_ext$major'
16015  shlibpath_var=LD_LIBRARY_PATH
16016  ;;
16017
16018freebsd* | dragonfly*)
16019  # DragonFly does not have aout.  When/if they implement a new
16020  # versioning mechanism, adjust this.
16021  if test -x /usr/bin/objformat; then
16022    objformat=`/usr/bin/objformat`
16023  else
16024    case $host_os in
16025    freebsd[23].*) objformat=aout ;;
16026    *) objformat=elf ;;
16027    esac
16028  fi
16029  version_type=freebsd-$objformat
16030  case $version_type in
16031    freebsd-elf*)
16032      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16033      soname_spec='$libname$release$shared_ext$major'
16034      need_version=no
16035      need_lib_prefix=no
16036      ;;
16037    freebsd-*)
16038      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16039      need_version=yes
16040      ;;
16041  esac
16042  shlibpath_var=LD_LIBRARY_PATH
16043  case $host_os in
16044  freebsd2.*)
16045    shlibpath_overrides_runpath=yes
16046    ;;
16047  freebsd3.[01]* | freebsdelf3.[01]*)
16048    shlibpath_overrides_runpath=yes
16049    hardcode_into_libs=yes
16050    ;;
16051  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16052  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16053    shlibpath_overrides_runpath=no
16054    hardcode_into_libs=yes
16055    ;;
16056  *) # from 4.6 on, and DragonFly
16057    shlibpath_overrides_runpath=yes
16058    hardcode_into_libs=yes
16059    ;;
16060  esac
16061  ;;
16062
16063haiku*)
16064  version_type=linux # correct to gnu/linux during the next big refactor
16065  need_lib_prefix=no
16066  need_version=no
16067  dynamic_linker="$host_os runtime_loader"
16068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16069  soname_spec='$libname$release$shared_ext$major'
16070  shlibpath_var=LIBRARY_PATH
16071  shlibpath_overrides_runpath=no
16072  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16073  hardcode_into_libs=yes
16074  ;;
16075
16076hpux9* | hpux10* | hpux11*)
16077  # Give a soname corresponding to the major version so that dld.sl refuses to
16078  # link against other versions.
16079  version_type=sunos
16080  need_lib_prefix=no
16081  need_version=no
16082  case $host_cpu in
16083  ia64*)
16084    shrext_cmds='.so'
16085    hardcode_into_libs=yes
16086    dynamic_linker="$host_os dld.so"
16087    shlibpath_var=LD_LIBRARY_PATH
16088    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16089    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16090    soname_spec='$libname$release$shared_ext$major'
16091    if test 32 = "$HPUX_IA64_MODE"; then
16092      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16093      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16094    else
16095      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16096      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16097    fi
16098    ;;
16099  hppa*64*)
16100    shrext_cmds='.sl'
16101    hardcode_into_libs=yes
16102    dynamic_linker="$host_os dld.sl"
16103    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16104    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16105    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16106    soname_spec='$libname$release$shared_ext$major'
16107    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16108    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16109    ;;
16110  *)
16111    shrext_cmds='.sl'
16112    dynamic_linker="$host_os dld.sl"
16113    shlibpath_var=SHLIB_PATH
16114    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16115    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16116    soname_spec='$libname$release$shared_ext$major'
16117    ;;
16118  esac
16119  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16120  postinstall_cmds='chmod 555 $lib'
16121  # or fails outright, so override atomically:
16122  install_override_mode=555
16123  ;;
16124
16125interix[3-9]*)
16126  version_type=linux # correct to gnu/linux during the next big refactor
16127  need_lib_prefix=no
16128  need_version=no
16129  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16130  soname_spec='$libname$release$shared_ext$major'
16131  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16132  shlibpath_var=LD_LIBRARY_PATH
16133  shlibpath_overrides_runpath=no
16134  hardcode_into_libs=yes
16135  ;;
16136
16137irix5* | irix6* | nonstopux*)
16138  case $host_os in
16139    nonstopux*) version_type=nonstopux ;;
16140    *)
16141	if test yes = "$lt_cv_prog_gnu_ld"; then
16142		version_type=linux # correct to gnu/linux during the next big refactor
16143	else
16144		version_type=irix
16145	fi ;;
16146  esac
16147  need_lib_prefix=no
16148  need_version=no
16149  soname_spec='$libname$release$shared_ext$major'
16150  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16151  case $host_os in
16152  irix5* | nonstopux*)
16153    libsuff= shlibsuff=
16154    ;;
16155  *)
16156    case $LD in # libtool.m4 will add one of these switches to LD
16157    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16158      libsuff= shlibsuff= libmagic=32-bit;;
16159    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16160      libsuff=32 shlibsuff=N32 libmagic=N32;;
16161    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16162      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16163    *) libsuff= shlibsuff= libmagic=never-match;;
16164    esac
16165    ;;
16166  esac
16167  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16168  shlibpath_overrides_runpath=no
16169  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16170  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16171  hardcode_into_libs=yes
16172  ;;
16173
16174# No shared lib support for Linux oldld, aout, or coff.
16175linux*oldld* | linux*aout* | linux*coff*)
16176  dynamic_linker=no
16177  ;;
16178
16179linux*android*)
16180  version_type=none # Android doesn't support versioned libraries.
16181  need_lib_prefix=no
16182  need_version=no
16183  library_names_spec='$libname$release$shared_ext'
16184  soname_spec='$libname$release$shared_ext'
16185  finish_cmds=
16186  shlibpath_var=LD_LIBRARY_PATH
16187  shlibpath_overrides_runpath=yes
16188
16189  # This implies no fast_install, which is unacceptable.
16190  # Some rework will be needed to allow for fast_install
16191  # before this can be enabled.
16192  hardcode_into_libs=yes
16193
16194  dynamic_linker='Android linker'
16195  # Don't embed -rpath directories since the linker doesn't support them.
16196  hardcode_libdir_flag_spec_CXX='-L$libdir'
16197  ;;
16198
16199# This must be glibc/ELF.
16200linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16201  version_type=linux # correct to gnu/linux during the next big refactor
16202  need_lib_prefix=no
16203  need_version=no
16204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205  soname_spec='$libname$release$shared_ext$major'
16206  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16207  shlibpath_var=LD_LIBRARY_PATH
16208  shlibpath_overrides_runpath=no
16209
16210  # Some binutils ld are patched to set DT_RUNPATH
16211  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16212  $as_echo_n "(cached) " >&6
16213else
16214  lt_cv_shlibpath_overrides_runpath=no
16215    save_LDFLAGS=$LDFLAGS
16216    save_libdir=$libdir
16217    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16218	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221
16222int
16223main ()
16224{
16225
16226  ;
16227  return 0;
16228}
16229_ACEOF
16230if ac_fn_cxx_try_link "$LINENO"; then :
16231  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16232  lt_cv_shlibpath_overrides_runpath=yes
16233fi
16234fi
16235rm -f core conftest.err conftest.$ac_objext \
16236    conftest$ac_exeext conftest.$ac_ext
16237    LDFLAGS=$save_LDFLAGS
16238    libdir=$save_libdir
16239
16240fi
16241
16242  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16243
16244  # This implies no fast_install, which is unacceptable.
16245  # Some rework will be needed to allow for fast_install
16246  # before this can be enabled.
16247  hardcode_into_libs=yes
16248
16249  # Ideally, we could use ldconfig to report *all* directores which are
16250  # searched for libraries, however this is still not possible.  Aside from not
16251  # being certain /sbin/ldconfig is available, command
16252  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16253  # even though it is searched at run-time.  Try to do the best guess by
16254  # appending ld.so.conf contents (and includes) to the search path.
16255  if test -f /etc/ld.so.conf; then
16256    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' ' '`
16257    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16258  fi
16259
16260  # We used to test for /lib/ld.so.1 and disable shared libraries on
16261  # powerpc, because MkLinux only supported shared libraries with the
16262  # GNU dynamic linker.  Since this was broken with cross compilers,
16263  # most powerpc-linux boxes support dynamic linking these days and
16264  # people can always --disable-shared, the test was removed, and we
16265  # assume the GNU/Linux dynamic linker is in use.
16266  dynamic_linker='GNU/Linux ld.so'
16267  ;;
16268
16269netbsd*)
16270  version_type=sunos
16271  need_lib_prefix=no
16272  need_version=no
16273  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16274    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16275    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16276    dynamic_linker='NetBSD (a.out) ld.so'
16277  else
16278    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16279    soname_spec='$libname$release$shared_ext$major'
16280    dynamic_linker='NetBSD ld.elf_so'
16281  fi
16282  shlibpath_var=LD_LIBRARY_PATH
16283  shlibpath_overrides_runpath=yes
16284  hardcode_into_libs=yes
16285  ;;
16286
16287newsos6)
16288  version_type=linux # correct to gnu/linux during the next big refactor
16289  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290  shlibpath_var=LD_LIBRARY_PATH
16291  shlibpath_overrides_runpath=yes
16292  ;;
16293
16294*nto* | *qnx*)
16295  version_type=qnx
16296  need_lib_prefix=no
16297  need_version=no
16298  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16299  soname_spec='$libname$release$shared_ext$major'
16300  shlibpath_var=LD_LIBRARY_PATH
16301  shlibpath_overrides_runpath=no
16302  hardcode_into_libs=yes
16303  dynamic_linker='ldqnx.so'
16304  ;;
16305
16306openbsd* | bitrig*)
16307  version_type=sunos
16308  sys_lib_dlsearch_path_spec=/usr/lib
16309  need_lib_prefix=no
16310  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16311    need_version=no
16312  else
16313    need_version=yes
16314  fi
16315  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16316  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16317  shlibpath_var=LD_LIBRARY_PATH
16318  shlibpath_overrides_runpath=yes
16319  ;;
16320
16321os2*)
16322  libname_spec='$name'
16323  version_type=windows
16324  shrext_cmds=.dll
16325  need_version=no
16326  need_lib_prefix=no
16327  # OS/2 can only load a DLL with a base name of 8 characters or less.
16328  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16329    v=$($ECHO $release$versuffix | tr -d .-);
16330    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16331    $ECHO $n$v`$shared_ext'
16332  library_names_spec='${libname}_dll.$libext'
16333  dynamic_linker='OS/2 ld.exe'
16334  shlibpath_var=BEGINLIBPATH
16335  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16336  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16337  postinstall_cmds='base_file=`basename \$file`~
16338    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16339    dldir=$destdir/`dirname \$dlpath`~
16340    test -d \$dldir || mkdir -p \$dldir~
16341    $install_prog $dir/$dlname \$dldir/$dlname~
16342    chmod a+x \$dldir/$dlname~
16343    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16344      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16345    fi'
16346  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16347    dlpath=$dir/\$dldll~
16348    $RM \$dlpath'
16349  ;;
16350
16351osf3* | osf4* | osf5*)
16352  version_type=osf
16353  need_lib_prefix=no
16354  need_version=no
16355  soname_spec='$libname$release$shared_ext$major'
16356  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16357  shlibpath_var=LD_LIBRARY_PATH
16358  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16359  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16360  ;;
16361
16362rdos*)
16363  dynamic_linker=no
16364  ;;
16365
16366solaris*)
16367  version_type=linux # correct to gnu/linux during the next big refactor
16368  need_lib_prefix=no
16369  need_version=no
16370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371  soname_spec='$libname$release$shared_ext$major'
16372  shlibpath_var=LD_LIBRARY_PATH
16373  shlibpath_overrides_runpath=yes
16374  hardcode_into_libs=yes
16375  # ldd complains unless libraries are executable
16376  postinstall_cmds='chmod +x $lib'
16377  ;;
16378
16379sunos4*)
16380  version_type=sunos
16381  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16382  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16383  shlibpath_var=LD_LIBRARY_PATH
16384  shlibpath_overrides_runpath=yes
16385  if test yes = "$with_gnu_ld"; then
16386    need_lib_prefix=no
16387  fi
16388  need_version=yes
16389  ;;
16390
16391sysv4 | sysv4.3*)
16392  version_type=linux # correct to gnu/linux during the next big refactor
16393  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16394  soname_spec='$libname$release$shared_ext$major'
16395  shlibpath_var=LD_LIBRARY_PATH
16396  case $host_vendor in
16397    sni)
16398      shlibpath_overrides_runpath=no
16399      need_lib_prefix=no
16400      runpath_var=LD_RUN_PATH
16401      ;;
16402    siemens)
16403      need_lib_prefix=no
16404      ;;
16405    motorola)
16406      need_lib_prefix=no
16407      need_version=no
16408      shlibpath_overrides_runpath=no
16409      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16410      ;;
16411  esac
16412  ;;
16413
16414sysv4*MP*)
16415  if test -d /usr/nec; then
16416    version_type=linux # correct to gnu/linux during the next big refactor
16417    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16418    soname_spec='$libname$shared_ext.$major'
16419    shlibpath_var=LD_LIBRARY_PATH
16420  fi
16421  ;;
16422
16423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16424  version_type=sco
16425  need_lib_prefix=no
16426  need_version=no
16427  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16428  soname_spec='$libname$release$shared_ext$major'
16429  shlibpath_var=LD_LIBRARY_PATH
16430  shlibpath_overrides_runpath=yes
16431  hardcode_into_libs=yes
16432  if test yes = "$with_gnu_ld"; then
16433    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16434  else
16435    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16436    case $host_os in
16437      sco3.2v5*)
16438        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16439	;;
16440    esac
16441  fi
16442  sys_lib_dlsearch_path_spec='/usr/lib'
16443  ;;
16444
16445tpf*)
16446  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16447  version_type=linux # correct to gnu/linux during the next big refactor
16448  need_lib_prefix=no
16449  need_version=no
16450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16451  shlibpath_var=LD_LIBRARY_PATH
16452  shlibpath_overrides_runpath=no
16453  hardcode_into_libs=yes
16454  ;;
16455
16456uts4*)
16457  version_type=linux # correct to gnu/linux during the next big refactor
16458  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16459  soname_spec='$libname$release$shared_ext$major'
16460  shlibpath_var=LD_LIBRARY_PATH
16461  ;;
16462
16463*)
16464  dynamic_linker=no
16465  ;;
16466esac
16467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16468$as_echo "$dynamic_linker" >&6; }
16469test no = "$dynamic_linker" && can_build_shared=no
16470
16471variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16472if test yes = "$GCC"; then
16473  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16474fi
16475
16476if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16477  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16478fi
16479
16480if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16481  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16482fi
16483
16484# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16485configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16486
16487# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16488func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16489
16490# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16491configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16533$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16534hardcode_action_CXX=
16535if test -n "$hardcode_libdir_flag_spec_CXX" ||
16536   test -n "$runpath_var_CXX" ||
16537   test yes = "$hardcode_automatic_CXX"; then
16538
16539  # We can hardcode non-existent directories.
16540  if test no != "$hardcode_direct_CXX" &&
16541     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16542     # have to relink, otherwise we might link with an installed library
16543     # when we should be linking with a yet-to-be-installed one
16544     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16545     test no != "$hardcode_minus_L_CXX"; then
16546    # Linking always hardcodes the temporary library directory.
16547    hardcode_action_CXX=relink
16548  else
16549    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16550    hardcode_action_CXX=immediate
16551  fi
16552else
16553  # We cannot hardcode anything, or else we can only hardcode existing
16554  # directories.
16555  hardcode_action_CXX=unsupported
16556fi
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16558$as_echo "$hardcode_action_CXX" >&6; }
16559
16560if test relink = "$hardcode_action_CXX" ||
16561   test yes = "$inherit_rpath_CXX"; then
16562  # Fast installation is not supported
16563  enable_fast_install=no
16564elif test yes = "$shlibpath_overrides_runpath" ||
16565     test no = "$enable_shared"; then
16566  # Fast installation is not necessary
16567  enable_fast_install=needless
16568fi
16569
16570
16571
16572
16573
16574
16575
16576  fi # test -n "$compiler"
16577
16578  CC=$lt_save_CC
16579  CFLAGS=$lt_save_CFLAGS
16580  LDCXX=$LD
16581  LD=$lt_save_LD
16582  GCC=$lt_save_GCC
16583  with_gnu_ld=$lt_save_with_gnu_ld
16584  lt_cv_path_LDCXX=$lt_cv_path_LD
16585  lt_cv_path_LD=$lt_save_path_LD
16586  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16587  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16588fi # test yes != "$_lt_caught_CXX_error"
16589
16590ac_ext=c
16591ac_cpp='$CPP $CPPFLAGS'
16592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594ac_compiler_gnu=$ac_cv_c_compiler_gnu
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610        ac_config_commands="$ac_config_commands libtool"
16611
16612
16613
16614
16615# Only expand once:
16616
16617
16618
16619# Checks for dependencies.
16620
16621
16622
16623
16624
16625
16626
16627if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16628	if test -n "$ac_tool_prefix"; then
16629  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16630set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16632$as_echo_n "checking for $ac_word... " >&6; }
16633if ${ac_cv_path_PKG_CONFIG+:} false; then :
16634  $as_echo_n "(cached) " >&6
16635else
16636  case $PKG_CONFIG in
16637  [\\/]* | ?:[\\/]*)
16638  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16639  ;;
16640  *)
16641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642for as_dir in $PATH
16643do
16644  IFS=$as_save_IFS
16645  test -z "$as_dir" && as_dir=.
16646    for ac_exec_ext in '' $ac_executable_extensions; do
16647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16648    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16650    break 2
16651  fi
16652done
16653  done
16654IFS=$as_save_IFS
16655
16656  ;;
16657esac
16658fi
16659PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16660if test -n "$PKG_CONFIG"; then
16661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16662$as_echo "$PKG_CONFIG" >&6; }
16663else
16664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665$as_echo "no" >&6; }
16666fi
16667
16668
16669fi
16670if test -z "$ac_cv_path_PKG_CONFIG"; then
16671  ac_pt_PKG_CONFIG=$PKG_CONFIG
16672  # Extract the first word of "pkg-config", so it can be a program name with args.
16673set dummy pkg-config; ac_word=$2
16674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675$as_echo_n "checking for $ac_word... " >&6; }
16676if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  case $ac_pt_PKG_CONFIG in
16680  [\\/]* | ?:[\\/]*)
16681  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16682  ;;
16683  *)
16684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685for as_dir in $PATH
16686do
16687  IFS=$as_save_IFS
16688  test -z "$as_dir" && as_dir=.
16689    for ac_exec_ext in '' $ac_executable_extensions; do
16690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693    break 2
16694  fi
16695done
16696  done
16697IFS=$as_save_IFS
16698
16699  ;;
16700esac
16701fi
16702ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16703if test -n "$ac_pt_PKG_CONFIG"; then
16704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16705$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16706else
16707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708$as_echo "no" >&6; }
16709fi
16710
16711  if test "x$ac_pt_PKG_CONFIG" = x; then
16712    PKG_CONFIG=""
16713  else
16714    case $cross_compiling:$ac_tool_warned in
16715yes:)
16716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16718ac_tool_warned=yes ;;
16719esac
16720    PKG_CONFIG=$ac_pt_PKG_CONFIG
16721  fi
16722else
16723  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16724fi
16725
16726fi
16727if test -n "$PKG_CONFIG"; then
16728	_pkg_min_version=0.9.0
16729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16730$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16731	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16733$as_echo "yes" >&6; }
16734	else
16735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736$as_echo "no" >&6; }
16737		PKG_CONFIG=""
16738	fi
16739fi
16740
16741pkg_failed=no
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
16743$as_echo_n "checking for X11... " >&6; }
16744
16745if test -n "$X11_CFLAGS"; then
16746    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16747 elif test -n "$PKG_CONFIG"; then
16748    if test -n "$PKG_CONFIG" && \
16749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16750  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16751  ac_status=$?
16752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16753  test $ac_status = 0; }; then
16754  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
16755		      test "x$?" != "x0" && pkg_failed=yes
16756else
16757  pkg_failed=yes
16758fi
16759 else
16760    pkg_failed=untried
16761fi
16762if test -n "$X11_LIBS"; then
16763    pkg_cv_X11_LIBS="$X11_LIBS"
16764 elif test -n "$PKG_CONFIG"; then
16765    if test -n "$PKG_CONFIG" && \
16766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16767  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16768  ac_status=$?
16769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16770  test $ac_status = 0; }; then
16771  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
16772		      test "x$?" != "x0" && pkg_failed=yes
16773else
16774  pkg_failed=yes
16775fi
16776 else
16777    pkg_failed=untried
16778fi
16779
16780
16781
16782if test $pkg_failed = yes; then
16783   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784$as_echo "no" >&6; }
16785
16786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16787        _pkg_short_errors_supported=yes
16788else
16789        _pkg_short_errors_supported=no
16790fi
16791        if test $_pkg_short_errors_supported = yes; then
16792	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
16793        else
16794	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
16795        fi
16796	# Put the nasty error message in config.log where it belongs
16797	echo "$X11_PKG_ERRORS" >&5
16798
16799	as_fn_error $? "Package requirements (x11) were not met:
16800
16801$X11_PKG_ERRORS
16802
16803Consider adjusting the PKG_CONFIG_PATH environment variable if you
16804installed software in a non-standard prefix.
16805
16806Alternatively, you may set the environment variables X11_CFLAGS
16807and X11_LIBS to avoid the need to call pkg-config.
16808See the pkg-config man page for more details." "$LINENO" 5
16809elif test $pkg_failed = untried; then
16810     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16811$as_echo "no" >&6; }
16812	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16814as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16815is in your PATH or set the PKG_CONFIG environment variable to the full
16816path to pkg-config.
16817
16818Alternatively, you may set the environment variables X11_CFLAGS
16819and X11_LIBS to avoid the need to call pkg-config.
16820See the pkg-config man page for more details.
16821
16822To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16823See \`config.log' for more details" "$LINENO" 5; }
16824else
16825	X11_CFLAGS=$pkg_cv_X11_CFLAGS
16826	X11_LIBS=$pkg_cv_X11_LIBS
16827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828$as_echo "yes" >&6; }
16829
16830fi
16831
16832
16833
16834# Check for optional dependencies.
16835# Check whether --enable-dri2 was given.
16836if test "${enable_dri2+set}" = set; then :
16837  enableval=$enable_dri2; DRI2=$enableval
16838else
16839  DRI2=auto
16840fi
16841
16842
16843pkg_failed=no
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dri2proto" >&5
16845$as_echo_n "checking for dri2proto... " >&6; }
16846
16847if test -n "$dri2proto_CFLAGS"; then
16848    pkg_cv_dri2proto_CFLAGS="$dri2proto_CFLAGS"
16849 elif test -n "$PKG_CONFIG"; then
16850    if test -n "$PKG_CONFIG" && \
16851    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
16852  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
16853  ac_status=$?
16854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16855  test $ac_status = 0; }; then
16856  pkg_cv_dri2proto_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.2" 2>/dev/null`
16857		      test "x$?" != "x0" && pkg_failed=yes
16858else
16859  pkg_failed=yes
16860fi
16861 else
16862    pkg_failed=untried
16863fi
16864if test -n "$dri2proto_LIBS"; then
16865    pkg_cv_dri2proto_LIBS="$dri2proto_LIBS"
16866 elif test -n "$PKG_CONFIG"; then
16867    if test -n "$PKG_CONFIG" && \
16868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
16869  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
16870  ac_status=$?
16871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16872  test $ac_status = 0; }; then
16873  pkg_cv_dri2proto_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.2" 2>/dev/null`
16874		      test "x$?" != "x0" && pkg_failed=yes
16875else
16876  pkg_failed=yes
16877fi
16878 else
16879    pkg_failed=untried
16880fi
16881
16882
16883
16884if test $pkg_failed = yes; then
16885   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886$as_echo "no" >&6; }
16887
16888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16889        _pkg_short_errors_supported=yes
16890else
16891        _pkg_short_errors_supported=no
16892fi
16893        if test $_pkg_short_errors_supported = yes; then
16894	        dri2proto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.2" 2>&1`
16895        else
16896	        dri2proto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.2" 2>&1`
16897        fi
16898	# Put the nasty error message in config.log where it belongs
16899	echo "$dri2proto_PKG_ERRORS" >&5
16900
16901	HAVE_DRI2PROTO=no
16902elif test $pkg_failed = untried; then
16903     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904$as_echo "no" >&6; }
16905	HAVE_DRI2PROTO=no
16906else
16907	dri2proto_CFLAGS=$pkg_cv_dri2proto_CFLAGS
16908	dri2proto_LIBS=$pkg_cv_dri2proto_LIBS
16909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16910$as_echo "yes" >&6; }
16911	HAVE_DRI2PROTO=yes
16912fi
16913case "$DRI2,$HAVE_DRI2PROTO" in
16914    yes,no)
16915        as_fn_error $? "DRI2 queries require dri2proto >= 2.2" "$LINENO" 5
16916        ;;
16917    yes,yes | auto,yes)
16918
16919$as_echo "#define DRI2 1" >>confdefs.h
16920
16921        DRI2=yes
16922
16923pkg_failed=no
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
16925$as_echo_n "checking for XEXT... " >&6; }
16926
16927if test -n "$XEXT_CFLAGS"; then
16928    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
16929 elif test -n "$PKG_CONFIG"; then
16930    if test -n "$PKG_CONFIG" && \
16931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
16932  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
16933  ac_status=$?
16934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16935  test $ac_status = 0; }; then
16936  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
16937		      test "x$?" != "x0" && pkg_failed=yes
16938else
16939  pkg_failed=yes
16940fi
16941 else
16942    pkg_failed=untried
16943fi
16944if test -n "$XEXT_LIBS"; then
16945    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
16946 elif test -n "$PKG_CONFIG"; then
16947    if test -n "$PKG_CONFIG" && \
16948    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
16949  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
16950  ac_status=$?
16951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16952  test $ac_status = 0; }; then
16953  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
16954		      test "x$?" != "x0" && pkg_failed=yes
16955else
16956  pkg_failed=yes
16957fi
16958 else
16959    pkg_failed=untried
16960fi
16961
16962
16963
16964if test $pkg_failed = yes; then
16965   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966$as_echo "no" >&6; }
16967
16968if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16969        _pkg_short_errors_supported=yes
16970else
16971        _pkg_short_errors_supported=no
16972fi
16973        if test $_pkg_short_errors_supported = yes; then
16974	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
16975        else
16976	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
16977        fi
16978	# Put the nasty error message in config.log where it belongs
16979	echo "$XEXT_PKG_ERRORS" >&5
16980
16981	as_fn_error $? "Package requirements (xext) were not met:
16982
16983$XEXT_PKG_ERRORS
16984
16985Consider adjusting the PKG_CONFIG_PATH environment variable if you
16986installed software in a non-standard prefix.
16987
16988Alternatively, you may set the environment variables XEXT_CFLAGS
16989and XEXT_LIBS to avoid the need to call pkg-config.
16990See the pkg-config man page for more details." "$LINENO" 5
16991elif test $pkg_failed = untried; then
16992     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993$as_echo "no" >&6; }
16994	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16996as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16997is in your PATH or set the PKG_CONFIG environment variable to the full
16998path to pkg-config.
16999
17000Alternatively, you may set the environment variables XEXT_CFLAGS
17001and XEXT_LIBS to avoid the need to call pkg-config.
17002See the pkg-config man page for more details.
17003
17004To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17005See \`config.log' for more details" "$LINENO" 5; }
17006else
17007	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17008	XEXT_LIBS=$pkg_cv_XEXT_LIBS
17009        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17010$as_echo "yes" >&6; }
17011
17012fi
17013
17014
17015        ;;
17016esac
17017 if test "x$DRI2" = xyes; then
17018  DRI2_TRUE=
17019  DRI2_FALSE='#'
17020else
17021  DRI2_TRUE='#'
17022  DRI2_FALSE=
17023fi
17024
17025
17026ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17027if test "x$ac_cv_func_dlopen" = xyes; then :
17028
17029else
17030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17031$as_echo_n "checking for dlopen in -ldl... " >&6; }
17032if ${ac_cv_lib_dl_dlopen+:} false; then :
17033  $as_echo_n "(cached) " >&6
17034else
17035  ac_check_lib_save_LIBS=$LIBS
17036LIBS="-ldl  $LIBS"
17037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038/* end confdefs.h.  */
17039
17040/* Override any GCC internal prototype to avoid an error.
17041   Use char because int might match the return type of a GCC
17042   builtin and then its argument prototype would still apply.  */
17043#ifdef __cplusplus
17044extern "C"
17045#endif
17046char dlopen ();
17047int
17048main ()
17049{
17050return dlopen ();
17051  ;
17052  return 0;
17053}
17054_ACEOF
17055if ac_fn_c_try_link "$LINENO"; then :
17056  ac_cv_lib_dl_dlopen=yes
17057else
17058  ac_cv_lib_dl_dlopen=no
17059fi
17060rm -f core conftest.err conftest.$ac_objext \
17061    conftest$ac_exeext conftest.$ac_ext
17062LIBS=$ac_check_lib_save_LIBS
17063fi
17064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17065$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17066if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17067  DLOPEN_LIBS="-ldl"
17068fi
17069
17070fi
17071
17072
17073
17074# Look for POSIX threads
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_once" >&5
17076$as_echo_n "checking for library containing pthread_once... " >&6; }
17077if ${ac_cv_search_pthread_once+:} false; then :
17078  $as_echo_n "(cached) " >&6
17079else
17080  ac_func_search_save_LIBS=$LIBS
17081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082/* end confdefs.h.  */
17083
17084/* Override any GCC internal prototype to avoid an error.
17085   Use char because int might match the return type of a GCC
17086   builtin and then its argument prototype would still apply.  */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char pthread_once ();
17091int
17092main ()
17093{
17094return pthread_once ();
17095  ;
17096  return 0;
17097}
17098_ACEOF
17099for ac_lib in '' pthread pthreads c_r; do
17100  if test -z "$ac_lib"; then
17101    ac_res="none required"
17102  else
17103    ac_res=-l$ac_lib
17104    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17105  fi
17106  if ac_fn_c_try_link "$LINENO"; then :
17107  ac_cv_search_pthread_once=$ac_res
17108fi
17109rm -f core conftest.err conftest.$ac_objext \
17110    conftest$ac_exeext
17111  if ${ac_cv_search_pthread_once+:} false; then :
17112  break
17113fi
17114done
17115if ${ac_cv_search_pthread_once+:} false; then :
17116
17117else
17118  ac_cv_search_pthread_once=no
17119fi
17120rm conftest.$ac_ext
17121LIBS=$ac_func_search_save_LIBS
17122fi
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_once" >&5
17124$as_echo "$ac_cv_search_pthread_once" >&6; }
17125ac_res=$ac_cv_search_pthread_once
17126if test "$ac_res" != no; then :
17127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17128
17129    if test "$ac_cv_search_pthread_once" != "none required"; then :
17130
17131        PTHREAD_LIBS="$ac_cv_search_pthread_once"
17132
17133fi
17134
17135fi
17136
17137
17138
17139# Check for Doxygen.
17140# Check whether --enable-documentation was given.
17141if test "${enable_documentation+set}" = set; then :
17142  enableval=$enable_documentation; DOCS=$enableval
17143else
17144  DOCS=auto
17145fi
17146
17147if test "x$DOCS" != xno; then
17148    if test -n "$ac_tool_prefix"; then
17149  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
17150set dummy ${ac_tool_prefix}doxygen; ac_word=$2
17151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17152$as_echo_n "checking for $ac_word... " >&6; }
17153if ${ac_cv_prog_DOXYGEN+:} false; then :
17154  $as_echo_n "(cached) " >&6
17155else
17156  if test -n "$DOXYGEN"; then
17157  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
17158else
17159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160for as_dir in $PATH
17161do
17162  IFS=$as_save_IFS
17163  test -z "$as_dir" && as_dir=.
17164    for ac_exec_ext in '' $ac_executable_extensions; do
17165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166    ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen"
17167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17168    break 2
17169  fi
17170done
17171  done
17172IFS=$as_save_IFS
17173
17174fi
17175fi
17176DOXYGEN=$ac_cv_prog_DOXYGEN
17177if test -n "$DOXYGEN"; then
17178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17179$as_echo "$DOXYGEN" >&6; }
17180else
17181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17182$as_echo "no" >&6; }
17183fi
17184
17185
17186fi
17187if test -z "$ac_cv_prog_DOXYGEN"; then
17188  ac_ct_DOXYGEN=$DOXYGEN
17189  # Extract the first word of "doxygen", so it can be a program name with args.
17190set dummy doxygen; ac_word=$2
17191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17192$as_echo_n "checking for $ac_word... " >&6; }
17193if ${ac_cv_prog_ac_ct_DOXYGEN+:} false; then :
17194  $as_echo_n "(cached) " >&6
17195else
17196  if test -n "$ac_ct_DOXYGEN"; then
17197  ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test.
17198else
17199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200for as_dir in $PATH
17201do
17202  IFS=$as_save_IFS
17203  test -z "$as_dir" && as_dir=.
17204    for ac_exec_ext in '' $ac_executable_extensions; do
17205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17206    ac_cv_prog_ac_ct_DOXYGEN="doxygen"
17207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17208    break 2
17209  fi
17210done
17211  done
17212IFS=$as_save_IFS
17213
17214fi
17215fi
17216ac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN
17217if test -n "$ac_ct_DOXYGEN"; then
17218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5
17219$as_echo "$ac_ct_DOXYGEN" >&6; }
17220else
17221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222$as_echo "no" >&6; }
17223fi
17224
17225  if test "x$ac_ct_DOXYGEN" = x; then
17226    DOXYGEN="no"
17227  else
17228    case $cross_compiling:$ac_tool_warned in
17229yes:)
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17232ac_tool_warned=yes ;;
17233esac
17234    DOXYGEN=$ac_ct_DOXYGEN
17235  fi
17236else
17237  DOXYGEN="$ac_cv_prog_DOXYGEN"
17238fi
17239
17240    if test -n "$ac_tool_prefix"; then
17241  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
17242set dummy ${ac_tool_prefix}dot; ac_word=$2
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17244$as_echo_n "checking for $ac_word... " >&6; }
17245if ${ac_cv_prog_DOT+:} false; then :
17246  $as_echo_n "(cached) " >&6
17247else
17248  if test -n "$DOT"; then
17249  ac_cv_prog_DOT="$DOT" # Let the user override the test.
17250else
17251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252for as_dir in $PATH
17253do
17254  IFS=$as_save_IFS
17255  test -z "$as_dir" && as_dir=.
17256    for ac_exec_ext in '' $ac_executable_extensions; do
17257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17258    ac_cv_prog_DOT="${ac_tool_prefix}dot"
17259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17260    break 2
17261  fi
17262done
17263  done
17264IFS=$as_save_IFS
17265
17266fi
17267fi
17268DOT=$ac_cv_prog_DOT
17269if test -n "$DOT"; then
17270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
17271$as_echo "$DOT" >&6; }
17272else
17273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274$as_echo "no" >&6; }
17275fi
17276
17277
17278fi
17279if test -z "$ac_cv_prog_DOT"; then
17280  ac_ct_DOT=$DOT
17281  # Extract the first word of "dot", so it can be a program name with args.
17282set dummy dot; ac_word=$2
17283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17284$as_echo_n "checking for $ac_word... " >&6; }
17285if ${ac_cv_prog_ac_ct_DOT+:} false; then :
17286  $as_echo_n "(cached) " >&6
17287else
17288  if test -n "$ac_ct_DOT"; then
17289  ac_cv_prog_ac_ct_DOT="$ac_ct_DOT" # Let the user override the test.
17290else
17291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292for as_dir in $PATH
17293do
17294  IFS=$as_save_IFS
17295  test -z "$as_dir" && as_dir=.
17296    for ac_exec_ext in '' $ac_executable_extensions; do
17297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17298    ac_cv_prog_ac_ct_DOT="dot"
17299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17300    break 2
17301  fi
17302done
17303  done
17304IFS=$as_save_IFS
17305
17306fi
17307fi
17308ac_ct_DOT=$ac_cv_prog_ac_ct_DOT
17309if test -n "$ac_ct_DOT"; then
17310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOT" >&5
17311$as_echo "$ac_ct_DOT" >&6; }
17312else
17313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314$as_echo "no" >&6; }
17315fi
17316
17317  if test "x$ac_ct_DOT" = x; then
17318    DOT="no"
17319  else
17320    case $cross_compiling:$ac_tool_warned in
17321yes:)
17322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17324ac_tool_warned=yes ;;
17325esac
17326    DOT=$ac_ct_DOT
17327  fi
17328else
17329  DOT="$ac_cv_prog_DOT"
17330fi
17331
17332else
17333    DOXYGEN=no
17334    DOT=no
17335fi
17336if test "x$DOCS" = xyes; then
17337    if test "x$DOXYGEN" = xno; then
17338        as_fn_error $? "Documentation enabled but doxygen was not found in your path" "$LINENO" 5
17339    fi
17340    if test "x$DOT" = xno; then
17341        as_fn_error $? "Documentation enabled but dot was not found in your path.  Please install graphviz" "$LINENO" 5
17342    fi
17343fi
17344 if test "x$DOXYGEN" != xno -a "x$DOT" != xno; then
17345  ENABLE_DOCS_TRUE=
17346  ENABLE_DOCS_FALSE='#'
17347else
17348  ENABLE_DOCS_TRUE='#'
17349  ENABLE_DOCS_FALSE=
17350fi
17351
17352
17353
17354# Options
17355
17356# Check whether --with-module-dir was given.
17357if test "${with_module_dir+set}" = set; then :
17358  withval=$with_module_dir; moduledir="$withval"
17359else
17360  moduledir="$libdir/vdpau"
17361fi
17362
17363
17364
17365
17366CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
17367mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
17368echo 'git directory not found: installing possibly empty changelog.' >&2)"
17369
17370distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
17371
17372
17373
17374ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile test/Makefile trace/Makefile vdpau.pc"
17375
17376cat >confcache <<\_ACEOF
17377# This file is a shell script that caches the results of configure
17378# tests run on this system so they can be shared between configure
17379# scripts and configure runs, see configure's option --config-cache.
17380# It is not useful on other systems.  If it contains results you don't
17381# want to keep, you may remove or edit it.
17382#
17383# config.status only pays attention to the cache file if you give it
17384# the --recheck option to rerun configure.
17385#
17386# `ac_cv_env_foo' variables (set or unset) will be overridden when
17387# loading this file, other *unset* `ac_cv_foo' will be assigned the
17388# following values.
17389
17390_ACEOF
17391
17392# The following way of writing the cache mishandles newlines in values,
17393# but we know of no workaround that is simple, portable, and efficient.
17394# So, we kill variables containing newlines.
17395# Ultrix sh set writes to stderr and can't be redirected directly,
17396# and sets the high bit in the cache file unless we assign to the vars.
17397(
17398  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17399    eval ac_val=\$$ac_var
17400    case $ac_val in #(
17401    *${as_nl}*)
17402      case $ac_var in #(
17403      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17405      esac
17406      case $ac_var in #(
17407      _ | IFS | as_nl) ;; #(
17408      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17409      *) { eval $ac_var=; unset $ac_var;} ;;
17410      esac ;;
17411    esac
17412  done
17413
17414  (set) 2>&1 |
17415    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17416    *${as_nl}ac_space=\ *)
17417      # `set' does not quote correctly, so add quotes: double-quote
17418      # substitution turns \\\\ into \\, and sed turns \\ into \.
17419      sed -n \
17420	"s/'/'\\\\''/g;
17421	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17422      ;; #(
17423    *)
17424      # `set' quotes correctly as required by POSIX, so do not add quotes.
17425      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17426      ;;
17427    esac |
17428    sort
17429) |
17430  sed '
17431     /^ac_cv_env_/b end
17432     t clear
17433     :clear
17434     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17435     t end
17436     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17437     :end' >>confcache
17438if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17439  if test -w "$cache_file"; then
17440    if test "x$cache_file" != "x/dev/null"; then
17441      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17442$as_echo "$as_me: updating cache $cache_file" >&6;}
17443      if test ! -f "$cache_file" || test -h "$cache_file"; then
17444	cat confcache >"$cache_file"
17445      else
17446        case $cache_file in #(
17447        */* | ?:*)
17448	  mv -f confcache "$cache_file"$$ &&
17449	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17450        *)
17451	  mv -f confcache "$cache_file" ;;
17452	esac
17453      fi
17454    fi
17455  else
17456    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17457$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17458  fi
17459fi
17460rm -f confcache
17461
17462test "x$prefix" = xNONE && prefix=$ac_default_prefix
17463# Let make expand exec_prefix.
17464test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17465
17466DEFS=-DHAVE_CONFIG_H
17467
17468ac_libobjs=
17469ac_ltlibobjs=
17470U=
17471for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17472  # 1. Remove the extension, and $U if already installed.
17473  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17474  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17475  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17476  #    will be set to the directory where LIBOBJS objects are built.
17477  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17478  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17479done
17480LIBOBJS=$ac_libobjs
17481
17482LTLIBOBJS=$ac_ltlibobjs
17483
17484
17485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17486$as_echo_n "checking that generated files are newer than configure... " >&6; }
17487   if test -n "$am_sleep_pid"; then
17488     # Hide warnings about reused PIDs.
17489     wait $am_sleep_pid 2>/dev/null
17490   fi
17491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17492$as_echo "done" >&6; }
17493 if test -n "$EXEEXT"; then
17494  am__EXEEXT_TRUE=
17495  am__EXEEXT_FALSE='#'
17496else
17497  am__EXEEXT_TRUE='#'
17498  am__EXEEXT_FALSE=
17499fi
17500
17501if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17502  as_fn_error $? "conditional \"AMDEP\" was never defined.
17503Usually this means the macro was only invoked conditionally." "$LINENO" 5
17504fi
17505if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17506  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17507Usually this means the macro was only invoked conditionally." "$LINENO" 5
17508fi
17509if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17510  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17511Usually this means the macro was only invoked conditionally." "$LINENO" 5
17512fi
17513if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17514  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17515Usually this means the macro was only invoked conditionally." "$LINENO" 5
17516fi
17517if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
17518  as_fn_error $? "conditional \"DRI2\" was never defined.
17519Usually this means the macro was only invoked conditionally." "$LINENO" 5
17520fi
17521if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
17522  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
17523Usually this means the macro was only invoked conditionally." "$LINENO" 5
17524fi
17525
17526: "${CONFIG_STATUS=./config.status}"
17527ac_write_fail=0
17528ac_clean_files_save=$ac_clean_files
17529ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17530{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17531$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17532as_write_fail=0
17533cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17534#! $SHELL
17535# Generated by $as_me.
17536# Run this file to recreate the current configuration.
17537# Compiler output produced by configure, useful for debugging
17538# configure, is in config.log if it exists.
17539
17540debug=false
17541ac_cs_recheck=false
17542ac_cs_silent=false
17543
17544SHELL=\${CONFIG_SHELL-$SHELL}
17545export SHELL
17546_ASEOF
17547cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17548## -------------------- ##
17549## M4sh Initialization. ##
17550## -------------------- ##
17551
17552# Be more Bourne compatible
17553DUALCASE=1; export DUALCASE # for MKS sh
17554if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17555  emulate sh
17556  NULLCMD=:
17557  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17558  # is contrary to our usage.  Disable this feature.
17559  alias -g '${1+"$@"}'='"$@"'
17560  setopt NO_GLOB_SUBST
17561else
17562  case `(set -o) 2>/dev/null` in #(
17563  *posix*) :
17564    set -o posix ;; #(
17565  *) :
17566     ;;
17567esac
17568fi
17569
17570
17571as_nl='
17572'
17573export as_nl
17574# Printing a long string crashes Solaris 7 /usr/bin/printf.
17575as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17576as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17577as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17578# Prefer a ksh shell builtin over an external printf program on Solaris,
17579# but without wasting forks for bash or zsh.
17580if test -z "$BASH_VERSION$ZSH_VERSION" \
17581    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17582  as_echo='print -r --'
17583  as_echo_n='print -rn --'
17584elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17585  as_echo='printf %s\n'
17586  as_echo_n='printf %s'
17587else
17588  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17589    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17590    as_echo_n='/usr/ucb/echo -n'
17591  else
17592    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17593    as_echo_n_body='eval
17594      arg=$1;
17595      case $arg in #(
17596      *"$as_nl"*)
17597	expr "X$arg" : "X\\(.*\\)$as_nl";
17598	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17599      esac;
17600      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17601    '
17602    export as_echo_n_body
17603    as_echo_n='sh -c $as_echo_n_body as_echo'
17604  fi
17605  export as_echo_body
17606  as_echo='sh -c $as_echo_body as_echo'
17607fi
17608
17609# The user is always right.
17610if test "${PATH_SEPARATOR+set}" != set; then
17611  PATH_SEPARATOR=:
17612  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17613    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17614      PATH_SEPARATOR=';'
17615  }
17616fi
17617
17618
17619# IFS
17620# We need space, tab and new line, in precisely that order.  Quoting is
17621# there to prevent editors from complaining about space-tab.
17622# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17623# splitting by setting IFS to empty value.)
17624IFS=" ""	$as_nl"
17625
17626# Find who we are.  Look in the path if we contain no directory separator.
17627as_myself=
17628case $0 in #((
17629  *[\\/]* ) as_myself=$0 ;;
17630  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17631for as_dir in $PATH
17632do
17633  IFS=$as_save_IFS
17634  test -z "$as_dir" && as_dir=.
17635    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17636  done
17637IFS=$as_save_IFS
17638
17639     ;;
17640esac
17641# We did not find ourselves, most probably we were run as `sh COMMAND'
17642# in which case we are not to be found in the path.
17643if test "x$as_myself" = x; then
17644  as_myself=$0
17645fi
17646if test ! -f "$as_myself"; then
17647  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17648  exit 1
17649fi
17650
17651# Unset variables that we do not need and which cause bugs (e.g. in
17652# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17653# suppresses any "Segmentation fault" message there.  '((' could
17654# trigger a bug in pdksh 5.2.14.
17655for as_var in BASH_ENV ENV MAIL MAILPATH
17656do eval test x\${$as_var+set} = xset \
17657  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17658done
17659PS1='$ '
17660PS2='> '
17661PS4='+ '
17662
17663# NLS nuisances.
17664LC_ALL=C
17665export LC_ALL
17666LANGUAGE=C
17667export LANGUAGE
17668
17669# CDPATH.
17670(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17671
17672
17673# as_fn_error STATUS ERROR [LINENO LOG_FD]
17674# ----------------------------------------
17675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17677# script with STATUS, using 1 if that was 0.
17678as_fn_error ()
17679{
17680  as_status=$1; test $as_status -eq 0 && as_status=1
17681  if test "$4"; then
17682    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17683    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17684  fi
17685  $as_echo "$as_me: error: $2" >&2
17686  as_fn_exit $as_status
17687} # as_fn_error
17688
17689
17690# as_fn_set_status STATUS
17691# -----------------------
17692# Set $? to STATUS, without forking.
17693as_fn_set_status ()
17694{
17695  return $1
17696} # as_fn_set_status
17697
17698# as_fn_exit STATUS
17699# -----------------
17700# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17701as_fn_exit ()
17702{
17703  set +e
17704  as_fn_set_status $1
17705  exit $1
17706} # as_fn_exit
17707
17708# as_fn_unset VAR
17709# ---------------
17710# Portably unset VAR.
17711as_fn_unset ()
17712{
17713  { eval $1=; unset $1;}
17714}
17715as_unset=as_fn_unset
17716# as_fn_append VAR VALUE
17717# ----------------------
17718# Append the text in VALUE to the end of the definition contained in VAR. Take
17719# advantage of any shell optimizations that allow amortized linear growth over
17720# repeated appends, instead of the typical quadratic growth present in naive
17721# implementations.
17722if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17723  eval 'as_fn_append ()
17724  {
17725    eval $1+=\$2
17726  }'
17727else
17728  as_fn_append ()
17729  {
17730    eval $1=\$$1\$2
17731  }
17732fi # as_fn_append
17733
17734# as_fn_arith ARG...
17735# ------------------
17736# Perform arithmetic evaluation on the ARGs, and store the result in the
17737# global $as_val. Take advantage of shells that can avoid forks. The arguments
17738# must be portable across $(()) and expr.
17739if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17740  eval 'as_fn_arith ()
17741  {
17742    as_val=$(( $* ))
17743  }'
17744else
17745  as_fn_arith ()
17746  {
17747    as_val=`expr "$@" || test $? -eq 1`
17748  }
17749fi # as_fn_arith
17750
17751
17752if expr a : '\(a\)' >/dev/null 2>&1 &&
17753   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17754  as_expr=expr
17755else
17756  as_expr=false
17757fi
17758
17759if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17760  as_basename=basename
17761else
17762  as_basename=false
17763fi
17764
17765if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17766  as_dirname=dirname
17767else
17768  as_dirname=false
17769fi
17770
17771as_me=`$as_basename -- "$0" ||
17772$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17773	 X"$0" : 'X\(//\)$' \| \
17774	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17775$as_echo X/"$0" |
17776    sed '/^.*\/\([^/][^/]*\)\/*$/{
17777	    s//\1/
17778	    q
17779	  }
17780	  /^X\/\(\/\/\)$/{
17781	    s//\1/
17782	    q
17783	  }
17784	  /^X\/\(\/\).*/{
17785	    s//\1/
17786	    q
17787	  }
17788	  s/.*/./; q'`
17789
17790# Avoid depending upon Character Ranges.
17791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17794as_cr_digits='0123456789'
17795as_cr_alnum=$as_cr_Letters$as_cr_digits
17796
17797ECHO_C= ECHO_N= ECHO_T=
17798case `echo -n x` in #(((((
17799-n*)
17800  case `echo 'xy\c'` in
17801  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17802  xy)  ECHO_C='\c';;
17803  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17804       ECHO_T='	';;
17805  esac;;
17806*)
17807  ECHO_N='-n';;
17808esac
17809
17810rm -f conf$$ conf$$.exe conf$$.file
17811if test -d conf$$.dir; then
17812  rm -f conf$$.dir/conf$$.file
17813else
17814  rm -f conf$$.dir
17815  mkdir conf$$.dir 2>/dev/null
17816fi
17817if (echo >conf$$.file) 2>/dev/null; then
17818  if ln -s conf$$.file conf$$ 2>/dev/null; then
17819    as_ln_s='ln -s'
17820    # ... but there are two gotchas:
17821    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17822    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17823    # In both cases, we have to default to `cp -pR'.
17824    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17825      as_ln_s='cp -pR'
17826  elif ln conf$$.file conf$$ 2>/dev/null; then
17827    as_ln_s=ln
17828  else
17829    as_ln_s='cp -pR'
17830  fi
17831else
17832  as_ln_s='cp -pR'
17833fi
17834rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17835rmdir conf$$.dir 2>/dev/null
17836
17837
17838# as_fn_mkdir_p
17839# -------------
17840# Create "$as_dir" as a directory, including parents if necessary.
17841as_fn_mkdir_p ()
17842{
17843
17844  case $as_dir in #(
17845  -*) as_dir=./$as_dir;;
17846  esac
17847  test -d "$as_dir" || eval $as_mkdir_p || {
17848    as_dirs=
17849    while :; do
17850      case $as_dir in #(
17851      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17852      *) as_qdir=$as_dir;;
17853      esac
17854      as_dirs="'$as_qdir' $as_dirs"
17855      as_dir=`$as_dirname -- "$as_dir" ||
17856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17857	 X"$as_dir" : 'X\(//\)[^/]' \| \
17858	 X"$as_dir" : 'X\(//\)$' \| \
17859	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17860$as_echo X"$as_dir" |
17861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17862	    s//\1/
17863	    q
17864	  }
17865	  /^X\(\/\/\)[^/].*/{
17866	    s//\1/
17867	    q
17868	  }
17869	  /^X\(\/\/\)$/{
17870	    s//\1/
17871	    q
17872	  }
17873	  /^X\(\/\).*/{
17874	    s//\1/
17875	    q
17876	  }
17877	  s/.*/./; q'`
17878      test -d "$as_dir" && break
17879    done
17880    test -z "$as_dirs" || eval "mkdir $as_dirs"
17881  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17882
17883
17884} # as_fn_mkdir_p
17885if mkdir -p . 2>/dev/null; then
17886  as_mkdir_p='mkdir -p "$as_dir"'
17887else
17888  test -d ./-p && rmdir ./-p
17889  as_mkdir_p=false
17890fi
17891
17892
17893# as_fn_executable_p FILE
17894# -----------------------
17895# Test if FILE is an executable regular file.
17896as_fn_executable_p ()
17897{
17898  test -f "$1" && test -x "$1"
17899} # as_fn_executable_p
17900as_test_x='test -x'
17901as_executable_p=as_fn_executable_p
17902
17903# Sed expression to map a string onto a valid CPP name.
17904as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17905
17906# Sed expression to map a string onto a valid variable name.
17907as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17908
17909
17910exec 6>&1
17911## ----------------------------------- ##
17912## Main body of $CONFIG_STATUS script. ##
17913## ----------------------------------- ##
17914_ASEOF
17915test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17916
17917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17918# Save the log message, to keep $0 and so on meaningful, and to
17919# report actual input values of CONFIG_FILES etc. instead of their
17920# values after options handling.
17921ac_log="
17922This file was extended by libvdpau $as_me 1.1.1, which was
17923generated by GNU Autoconf 2.69.  Invocation command line was
17924
17925  CONFIG_FILES    = $CONFIG_FILES
17926  CONFIG_HEADERS  = $CONFIG_HEADERS
17927  CONFIG_LINKS    = $CONFIG_LINKS
17928  CONFIG_COMMANDS = $CONFIG_COMMANDS
17929  $ $0 $@
17930
17931on `(hostname || uname -n) 2>/dev/null | sed 1q`
17932"
17933
17934_ACEOF
17935
17936case $ac_config_files in *"
17937"*) set x $ac_config_files; shift; ac_config_files=$*;;
17938esac
17939
17940case $ac_config_headers in *"
17941"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17942esac
17943
17944
17945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17946# Files that config.status was made for.
17947config_files="$ac_config_files"
17948config_headers="$ac_config_headers"
17949config_commands="$ac_config_commands"
17950
17951_ACEOF
17952
17953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17954ac_cs_usage="\
17955\`$as_me' instantiates files and other configuration actions
17956from templates according to the current configuration.  Unless the files
17957and actions are specified as TAGs, all are instantiated by default.
17958
17959Usage: $0 [OPTION]... [TAG]...
17960
17961  -h, --help       print this help, then exit
17962  -V, --version    print version number and configuration settings, then exit
17963      --config     print configuration, then exit
17964  -q, --quiet, --silent
17965                   do not print progress messages
17966  -d, --debug      don't remove temporary files
17967      --recheck    update $as_me by reconfiguring in the same conditions
17968      --file=FILE[:TEMPLATE]
17969                   instantiate the configuration file FILE
17970      --header=FILE[:TEMPLATE]
17971                   instantiate the configuration header FILE
17972
17973Configuration files:
17974$config_files
17975
17976Configuration headers:
17977$config_headers
17978
17979Configuration commands:
17980$config_commands
17981
17982Report bugs to <vdpau@lists.freedesktop.org>."
17983
17984_ACEOF
17985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17986ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17987ac_cs_version="\\
17988libvdpau config.status 1.1.1
17989configured by $0, generated by GNU Autoconf 2.69,
17990  with options \\"\$ac_cs_config\\"
17991
17992Copyright (C) 2012 Free Software Foundation, Inc.
17993This config.status script is free software; the Free Software Foundation
17994gives unlimited permission to copy, distribute and modify it."
17995
17996ac_pwd='$ac_pwd'
17997srcdir='$srcdir'
17998INSTALL='$INSTALL'
17999MKDIR_P='$MKDIR_P'
18000AWK='$AWK'
18001test -n "\$AWK" || AWK=awk
18002_ACEOF
18003
18004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18005# The default lists apply if the user does not specify any file.
18006ac_need_defaults=:
18007while test $# != 0
18008do
18009  case $1 in
18010  --*=?*)
18011    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18012    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18013    ac_shift=:
18014    ;;
18015  --*=)
18016    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18017    ac_optarg=
18018    ac_shift=:
18019    ;;
18020  *)
18021    ac_option=$1
18022    ac_optarg=$2
18023    ac_shift=shift
18024    ;;
18025  esac
18026
18027  case $ac_option in
18028  # Handling of the options.
18029  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18030    ac_cs_recheck=: ;;
18031  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18032    $as_echo "$ac_cs_version"; exit ;;
18033  --config | --confi | --conf | --con | --co | --c )
18034    $as_echo "$ac_cs_config"; exit ;;
18035  --debug | --debu | --deb | --de | --d | -d )
18036    debug=: ;;
18037  --file | --fil | --fi | --f )
18038    $ac_shift
18039    case $ac_optarg in
18040    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18041    '') as_fn_error $? "missing file argument" ;;
18042    esac
18043    as_fn_append CONFIG_FILES " '$ac_optarg'"
18044    ac_need_defaults=false;;
18045  --header | --heade | --head | --hea )
18046    $ac_shift
18047    case $ac_optarg in
18048    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18049    esac
18050    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18051    ac_need_defaults=false;;
18052  --he | --h)
18053    # Conflict between --help and --header
18054    as_fn_error $? "ambiguous option: \`$1'
18055Try \`$0 --help' for more information.";;
18056  --help | --hel | -h )
18057    $as_echo "$ac_cs_usage"; exit ;;
18058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18059  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18060    ac_cs_silent=: ;;
18061
18062  # This is an error.
18063  -*) as_fn_error $? "unrecognized option: \`$1'
18064Try \`$0 --help' for more information." ;;
18065
18066  *) as_fn_append ac_config_targets " $1"
18067     ac_need_defaults=false ;;
18068
18069  esac
18070  shift
18071done
18072
18073ac_configure_extra_args=
18074
18075if $ac_cs_silent; then
18076  exec 6>/dev/null
18077  ac_configure_extra_args="$ac_configure_extra_args --silent"
18078fi
18079
18080_ACEOF
18081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18082if \$ac_cs_recheck; then
18083  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18084  shift
18085  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18086  CONFIG_SHELL='$SHELL'
18087  export CONFIG_SHELL
18088  exec "\$@"
18089fi
18090
18091_ACEOF
18092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18093exec 5>>config.log
18094{
18095  echo
18096  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18097## Running $as_me. ##
18098_ASBOX
18099  $as_echo "$ac_log"
18100} >&5
18101
18102_ACEOF
18103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104#
18105# INIT-COMMANDS
18106#
18107AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18108
18109
18110# The HP-UX ksh and POSIX shell print the target directory to stdout
18111# if CDPATH is set.
18112(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18113
18114sed_quote_subst='$sed_quote_subst'
18115double_quote_subst='$double_quote_subst'
18116delay_variable_subst='$delay_variable_subst'
18117enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18118macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18119macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18120enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18121pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18122enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18123shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18124SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18125ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18126PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18127host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18128host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18129host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18130build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18131build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18132build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18133SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18134Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18135GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18136EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18137FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18138LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18139NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18140LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18141max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18142ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18143exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18144lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18145lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18146lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18147lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18148lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18149reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18150reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18151OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18152deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18153file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18154file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18155want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18156DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18157sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18158AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18159AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18160archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18161STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18162RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18163old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18164old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18165old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18166lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18167CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18168CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18169compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18170GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18171lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18172lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18173lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18174lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18175lt_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"`'
18176lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18177nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18178lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18179lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18180objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18181MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18182lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18183lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18184lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18185lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18186lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18187need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18188MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18189DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18190NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18191LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18192OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18193OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18194libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18195shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18196extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18197archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18198enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18199export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18200whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18201compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18202old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18203old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18204archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18205archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18206module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18207module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18208with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18209allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18210no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18211hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18212hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18213hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18214hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18215hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18216hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18217hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18218inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18219link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18220always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18221export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18222exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18223include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18224prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18225postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18226file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18227variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18228need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18229need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18230version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18231runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18232shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18233shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18234libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18235library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18236soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18237install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18238postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18239postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18240finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18241finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18242hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18243sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18244configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18245configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18246hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18247enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18248enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18249enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18250old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18251striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18252compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18253predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18254postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18255predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18256postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18257compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18258LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18259reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18260reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18261old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18262compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18263GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18264lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18265lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18266lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18267lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18268lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18269archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18270enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18271export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18272whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18273compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18274old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18275old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18276archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18277archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18278module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18279module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18280with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18281allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18282no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18283hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18284hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18285hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18286hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18287hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18288hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18289hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18290inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18291link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18292always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18293export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18294exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18295include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18296prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18297postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18298file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18299hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18300compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18301predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18302postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18303predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18304postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18305compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18306
18307LTCC='$LTCC'
18308LTCFLAGS='$LTCFLAGS'
18309compiler='$compiler_DEFAULT'
18310
18311# A function that is used when there is no print builtin or printf.
18312func_fallback_echo ()
18313{
18314  eval 'cat <<_LTECHO_EOF
18315\$1
18316_LTECHO_EOF'
18317}
18318
18319# Quote evaled strings.
18320for var in SHELL \
18321ECHO \
18322PATH_SEPARATOR \
18323SED \
18324GREP \
18325EGREP \
18326FGREP \
18327LD \
18328NM \
18329LN_S \
18330lt_SP2NL \
18331lt_NL2SP \
18332reload_flag \
18333OBJDUMP \
18334deplibs_check_method \
18335file_magic_cmd \
18336file_magic_glob \
18337want_nocaseglob \
18338DLLTOOL \
18339sharedlib_from_linklib_cmd \
18340AR \
18341AR_FLAGS \
18342archiver_list_spec \
18343STRIP \
18344RANLIB \
18345CC \
18346CFLAGS \
18347compiler \
18348lt_cv_sys_global_symbol_pipe \
18349lt_cv_sys_global_symbol_to_cdecl \
18350lt_cv_sys_global_symbol_to_import \
18351lt_cv_sys_global_symbol_to_c_name_address \
18352lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18353lt_cv_nm_interface \
18354nm_file_list_spec \
18355lt_cv_truncate_bin \
18356lt_prog_compiler_no_builtin_flag \
18357lt_prog_compiler_pic \
18358lt_prog_compiler_wl \
18359lt_prog_compiler_static \
18360lt_cv_prog_compiler_c_o \
18361need_locks \
18362MANIFEST_TOOL \
18363DSYMUTIL \
18364NMEDIT \
18365LIPO \
18366OTOOL \
18367OTOOL64 \
18368shrext_cmds \
18369export_dynamic_flag_spec \
18370whole_archive_flag_spec \
18371compiler_needs_object \
18372with_gnu_ld \
18373allow_undefined_flag \
18374no_undefined_flag \
18375hardcode_libdir_flag_spec \
18376hardcode_libdir_separator \
18377exclude_expsyms \
18378include_expsyms \
18379file_list_spec \
18380variables_saved_for_relink \
18381libname_spec \
18382library_names_spec \
18383soname_spec \
18384install_override_mode \
18385finish_eval \
18386old_striplib \
18387striplib \
18388compiler_lib_search_dirs \
18389predep_objects \
18390postdep_objects \
18391predeps \
18392postdeps \
18393compiler_lib_search_path \
18394LD_CXX \
18395reload_flag_CXX \
18396compiler_CXX \
18397lt_prog_compiler_no_builtin_flag_CXX \
18398lt_prog_compiler_pic_CXX \
18399lt_prog_compiler_wl_CXX \
18400lt_prog_compiler_static_CXX \
18401lt_cv_prog_compiler_c_o_CXX \
18402export_dynamic_flag_spec_CXX \
18403whole_archive_flag_spec_CXX \
18404compiler_needs_object_CXX \
18405with_gnu_ld_CXX \
18406allow_undefined_flag_CXX \
18407no_undefined_flag_CXX \
18408hardcode_libdir_flag_spec_CXX \
18409hardcode_libdir_separator_CXX \
18410exclude_expsyms_CXX \
18411include_expsyms_CXX \
18412file_list_spec_CXX \
18413compiler_lib_search_dirs_CXX \
18414predep_objects_CXX \
18415postdep_objects_CXX \
18416predeps_CXX \
18417postdeps_CXX \
18418compiler_lib_search_path_CXX; do
18419    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18420    *[\\\\\\\`\\"\\\$]*)
18421      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18422      ;;
18423    *)
18424      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18425      ;;
18426    esac
18427done
18428
18429# Double-quote double-evaled strings.
18430for var in reload_cmds \
18431old_postinstall_cmds \
18432old_postuninstall_cmds \
18433old_archive_cmds \
18434extract_expsyms_cmds \
18435old_archive_from_new_cmds \
18436old_archive_from_expsyms_cmds \
18437archive_cmds \
18438archive_expsym_cmds \
18439module_cmds \
18440module_expsym_cmds \
18441export_symbols_cmds \
18442prelink_cmds \
18443postlink_cmds \
18444postinstall_cmds \
18445postuninstall_cmds \
18446finish_cmds \
18447sys_lib_search_path_spec \
18448configure_time_dlsearch_path \
18449configure_time_lt_sys_library_path \
18450reload_cmds_CXX \
18451old_archive_cmds_CXX \
18452old_archive_from_new_cmds_CXX \
18453old_archive_from_expsyms_cmds_CXX \
18454archive_cmds_CXX \
18455archive_expsym_cmds_CXX \
18456module_cmds_CXX \
18457module_expsym_cmds_CXX \
18458export_symbols_cmds_CXX \
18459prelink_cmds_CXX \
18460postlink_cmds_CXX; do
18461    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18462    *[\\\\\\\`\\"\\\$]*)
18463      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18464      ;;
18465    *)
18466      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18467      ;;
18468    esac
18469done
18470
18471ac_aux_dir='$ac_aux_dir'
18472
18473# See if we are running on zsh, and set the options that allow our
18474# commands through without removal of \ escapes INIT.
18475if test -n "\${ZSH_VERSION+set}"; then
18476   setopt NO_GLOB_SUBST
18477fi
18478
18479
18480    PACKAGE='$PACKAGE'
18481    VERSION='$VERSION'
18482    RM='$RM'
18483    ofile='$ofile'
18484
18485
18486
18487
18488
18489
18490_ACEOF
18491
18492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493
18494# Handling of arguments.
18495for ac_config_target in $ac_config_targets
18496do
18497  case $ac_config_target in
18498    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18499    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18500    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18501    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18502    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18503    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18504    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18505    "trace/Makefile") CONFIG_FILES="$CONFIG_FILES trace/Makefile" ;;
18506    "vdpau.pc") CONFIG_FILES="$CONFIG_FILES vdpau.pc" ;;
18507
18508  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18509  esac
18510done
18511
18512
18513# If the user did not use the arguments to specify the items to instantiate,
18514# then the envvar interface is used.  Set only those that are not.
18515# We use the long form for the default assignment because of an extremely
18516# bizarre bug on SunOS 4.1.3.
18517if $ac_need_defaults; then
18518  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18519  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18520  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18521fi
18522
18523# Have a temporary directory for convenience.  Make it in the build tree
18524# simply because there is no reason against having it here, and in addition,
18525# creating and moving files from /tmp can sometimes cause problems.
18526# Hook for its removal unless debugging.
18527# Note that there is a small window in which the directory will not be cleaned:
18528# after its creation but before its name has been assigned to `$tmp'.
18529$debug ||
18530{
18531  tmp= ac_tmp=
18532  trap 'exit_status=$?
18533  : "${ac_tmp:=$tmp}"
18534  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18535' 0
18536  trap 'as_fn_exit 1' 1 2 13 15
18537}
18538# Create a (secure) tmp directory for tmp files.
18539
18540{
18541  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18542  test -d "$tmp"
18543}  ||
18544{
18545  tmp=./conf$$-$RANDOM
18546  (umask 077 && mkdir "$tmp")
18547} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18548ac_tmp=$tmp
18549
18550# Set up the scripts for CONFIG_FILES section.
18551# No need to generate them if there are no CONFIG_FILES.
18552# This happens for instance with `./config.status config.h'.
18553if test -n "$CONFIG_FILES"; then
18554
18555
18556ac_cr=`echo X | tr X '\015'`
18557# On cygwin, bash can eat \r inside `` if the user requested igncr.
18558# But we know of no other shell where ac_cr would be empty at this
18559# point, so we can use a bashism as a fallback.
18560if test "x$ac_cr" = x; then
18561  eval ac_cr=\$\'\\r\'
18562fi
18563ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18564if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18565  ac_cs_awk_cr='\\r'
18566else
18567  ac_cs_awk_cr=$ac_cr
18568fi
18569
18570echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18571_ACEOF
18572
18573
18574{
18575  echo "cat >conf$$subs.awk <<_ACEOF" &&
18576  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18577  echo "_ACEOF"
18578} >conf$$subs.sh ||
18579  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18580ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18581ac_delim='%!_!# '
18582for ac_last_try in false false false false false :; do
18583  . ./conf$$subs.sh ||
18584    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18585
18586  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18587  if test $ac_delim_n = $ac_delim_num; then
18588    break
18589  elif $ac_last_try; then
18590    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18591  else
18592    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18593  fi
18594done
18595rm -f conf$$subs.sh
18596
18597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18598cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18599_ACEOF
18600sed -n '
18601h
18602s/^/S["/; s/!.*/"]=/
18603p
18604g
18605s/^[^!]*!//
18606:repl
18607t repl
18608s/'"$ac_delim"'$//
18609t delim
18610:nl
18611h
18612s/\(.\{148\}\)..*/\1/
18613t more1
18614s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18615p
18616n
18617b repl
18618:more1
18619s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18620p
18621g
18622s/.\{148\}//
18623t nl
18624:delim
18625h
18626s/\(.\{148\}\)..*/\1/
18627t more2
18628s/["\\]/\\&/g; s/^/"/; s/$/"/
18629p
18630b
18631:more2
18632s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18633p
18634g
18635s/.\{148\}//
18636t delim
18637' <conf$$subs.awk | sed '
18638/^[^""]/{
18639  N
18640  s/\n//
18641}
18642' >>$CONFIG_STATUS || ac_write_fail=1
18643rm -f conf$$subs.awk
18644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18645_ACAWK
18646cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18647  for (key in S) S_is_set[key] = 1
18648  FS = ""
18649
18650}
18651{
18652  line = $ 0
18653  nfields = split(line, field, "@")
18654  substed = 0
18655  len = length(field[1])
18656  for (i = 2; i < nfields; i++) {
18657    key = field[i]
18658    keylen = length(key)
18659    if (S_is_set[key]) {
18660      value = S[key]
18661      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18662      len += length(value) + length(field[++i])
18663      substed = 1
18664    } else
18665      len += 1 + keylen
18666  }
18667
18668  print line
18669}
18670
18671_ACAWK
18672_ACEOF
18673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18675  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18676else
18677  cat
18678fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18679  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18680_ACEOF
18681
18682# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18683# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18684# trailing colons and then remove the whole line if VPATH becomes empty
18685# (actually we leave an empty line to preserve line numbers).
18686if test "x$srcdir" = x.; then
18687  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18688h
18689s///
18690s/^/:/
18691s/[	 ]*$/:/
18692s/:\$(srcdir):/:/g
18693s/:\${srcdir}:/:/g
18694s/:@srcdir@:/:/g
18695s/^:*//
18696s/:*$//
18697x
18698s/\(=[	 ]*\).*/\1/
18699G
18700s/\n//
18701s/^[^=]*=[	 ]*$//
18702}'
18703fi
18704
18705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706fi # test -n "$CONFIG_FILES"
18707
18708# Set up the scripts for CONFIG_HEADERS section.
18709# No need to generate them if there are no CONFIG_HEADERS.
18710# This happens for instance with `./config.status Makefile'.
18711if test -n "$CONFIG_HEADERS"; then
18712cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18713BEGIN {
18714_ACEOF
18715
18716# Transform confdefs.h into an awk script `defines.awk', embedded as
18717# here-document in config.status, that substitutes the proper values into
18718# config.h.in to produce config.h.
18719
18720# Create a delimiter string that does not exist in confdefs.h, to ease
18721# handling of long lines.
18722ac_delim='%!_!# '
18723for ac_last_try in false false :; do
18724  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18725  if test -z "$ac_tt"; then
18726    break
18727  elif $ac_last_try; then
18728    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18729  else
18730    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18731  fi
18732done
18733
18734# For the awk script, D is an array of macro values keyed by name,
18735# likewise P contains macro parameters if any.  Preserve backslash
18736# newline sequences.
18737
18738ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18739sed -n '
18740s/.\{148\}/&'"$ac_delim"'/g
18741t rset
18742:rset
18743s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18744t def
18745d
18746:def
18747s/\\$//
18748t bsnl
18749s/["\\]/\\&/g
18750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18751D["\1"]=" \3"/p
18752s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18753d
18754:bsnl
18755s/["\\]/\\&/g
18756s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18757D["\1"]=" \3\\\\\\n"\\/p
18758t cont
18759s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18760t cont
18761d
18762:cont
18763n
18764s/.\{148\}/&'"$ac_delim"'/g
18765t clear
18766:clear
18767s/\\$//
18768t bsnlc
18769s/["\\]/\\&/g; s/^/"/; s/$/"/p
18770d
18771:bsnlc
18772s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18773b cont
18774' <confdefs.h | sed '
18775s/'"$ac_delim"'/"\\\
18776"/g' >>$CONFIG_STATUS || ac_write_fail=1
18777
18778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18779  for (key in D) D_is_set[key] = 1
18780  FS = ""
18781}
18782/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18783  line = \$ 0
18784  split(line, arg, " ")
18785  if (arg[1] == "#") {
18786    defundef = arg[2]
18787    mac1 = arg[3]
18788  } else {
18789    defundef = substr(arg[1], 2)
18790    mac1 = arg[2]
18791  }
18792  split(mac1, mac2, "(") #)
18793  macro = mac2[1]
18794  prefix = substr(line, 1, index(line, defundef) - 1)
18795  if (D_is_set[macro]) {
18796    # Preserve the white space surrounding the "#".
18797    print prefix "define", macro P[macro] D[macro]
18798    next
18799  } else {
18800    # Replace #undef with comments.  This is necessary, for example,
18801    # in the case of _POSIX_SOURCE, which is predefined and required
18802    # on some systems where configure will not decide to define it.
18803    if (defundef == "undef") {
18804      print "/*", prefix defundef, macro, "*/"
18805      next
18806    }
18807  }
18808}
18809{ print }
18810_ACAWK
18811_ACEOF
18812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18813  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18814fi # test -n "$CONFIG_HEADERS"
18815
18816
18817eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18818shift
18819for ac_tag
18820do
18821  case $ac_tag in
18822  :[FHLC]) ac_mode=$ac_tag; continue;;
18823  esac
18824  case $ac_mode$ac_tag in
18825  :[FHL]*:*);;
18826  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18827  :[FH]-) ac_tag=-:-;;
18828  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18829  esac
18830  ac_save_IFS=$IFS
18831  IFS=:
18832  set x $ac_tag
18833  IFS=$ac_save_IFS
18834  shift
18835  ac_file=$1
18836  shift
18837
18838  case $ac_mode in
18839  :L) ac_source=$1;;
18840  :[FH])
18841    ac_file_inputs=
18842    for ac_f
18843    do
18844      case $ac_f in
18845      -) ac_f="$ac_tmp/stdin";;
18846      *) # Look for the file first in the build tree, then in the source tree
18847	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18848	 # because $ac_f cannot contain `:'.
18849	 test -f "$ac_f" ||
18850	   case $ac_f in
18851	   [\\/$]*) false;;
18852	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18853	   esac ||
18854	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18855      esac
18856      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18857      as_fn_append ac_file_inputs " '$ac_f'"
18858    done
18859
18860    # Let's still pretend it is `configure' which instantiates (i.e., don't
18861    # use $as_me), people would be surprised to read:
18862    #    /* config.h.  Generated by config.status.  */
18863    configure_input='Generated from '`
18864	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18865	`' by configure.'
18866    if test x"$ac_file" != x-; then
18867      configure_input="$ac_file.  $configure_input"
18868      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18869$as_echo "$as_me: creating $ac_file" >&6;}
18870    fi
18871    # Neutralize special characters interpreted by sed in replacement strings.
18872    case $configure_input in #(
18873    *\&* | *\|* | *\\* )
18874       ac_sed_conf_input=`$as_echo "$configure_input" |
18875       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18876    *) ac_sed_conf_input=$configure_input;;
18877    esac
18878
18879    case $ac_tag in
18880    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18881      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18882    esac
18883    ;;
18884  esac
18885
18886  ac_dir=`$as_dirname -- "$ac_file" ||
18887$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18888	 X"$ac_file" : 'X\(//\)[^/]' \| \
18889	 X"$ac_file" : 'X\(//\)$' \| \
18890	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18891$as_echo X"$ac_file" |
18892    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18893	    s//\1/
18894	    q
18895	  }
18896	  /^X\(\/\/\)[^/].*/{
18897	    s//\1/
18898	    q
18899	  }
18900	  /^X\(\/\/\)$/{
18901	    s//\1/
18902	    q
18903	  }
18904	  /^X\(\/\).*/{
18905	    s//\1/
18906	    q
18907	  }
18908	  s/.*/./; q'`
18909  as_dir="$ac_dir"; as_fn_mkdir_p
18910  ac_builddir=.
18911
18912case "$ac_dir" in
18913.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18914*)
18915  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18916  # A ".." for each directory in $ac_dir_suffix.
18917  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18918  case $ac_top_builddir_sub in
18919  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18920  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18921  esac ;;
18922esac
18923ac_abs_top_builddir=$ac_pwd
18924ac_abs_builddir=$ac_pwd$ac_dir_suffix
18925# for backward compatibility:
18926ac_top_builddir=$ac_top_build_prefix
18927
18928case $srcdir in
18929  .)  # We are building in place.
18930    ac_srcdir=.
18931    ac_top_srcdir=$ac_top_builddir_sub
18932    ac_abs_top_srcdir=$ac_pwd ;;
18933  [\\/]* | ?:[\\/]* )  # Absolute name.
18934    ac_srcdir=$srcdir$ac_dir_suffix;
18935    ac_top_srcdir=$srcdir
18936    ac_abs_top_srcdir=$srcdir ;;
18937  *) # Relative name.
18938    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18939    ac_top_srcdir=$ac_top_build_prefix$srcdir
18940    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18941esac
18942ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18943
18944
18945  case $ac_mode in
18946  :F)
18947  #
18948  # CONFIG_FILE
18949  #
18950
18951  case $INSTALL in
18952  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18953  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18954  esac
18955  ac_MKDIR_P=$MKDIR_P
18956  case $MKDIR_P in
18957  [\\/$]* | ?:[\\/]* ) ;;
18958  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18959  esac
18960_ACEOF
18961
18962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18963# If the template does not know about datarootdir, expand it.
18964# FIXME: This hack should be removed a few years after 2.60.
18965ac_datarootdir_hack=; ac_datarootdir_seen=
18966ac_sed_dataroot='
18967/datarootdir/ {
18968  p
18969  q
18970}
18971/@datadir@/p
18972/@docdir@/p
18973/@infodir@/p
18974/@localedir@/p
18975/@mandir@/p'
18976case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18977*datarootdir*) ac_datarootdir_seen=yes;;
18978*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18979  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18980$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18981_ACEOF
18982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18983  ac_datarootdir_hack='
18984  s&@datadir@&$datadir&g
18985  s&@docdir@&$docdir&g
18986  s&@infodir@&$infodir&g
18987  s&@localedir@&$localedir&g
18988  s&@mandir@&$mandir&g
18989  s&\\\${datarootdir}&$datarootdir&g' ;;
18990esac
18991_ACEOF
18992
18993# Neutralize VPATH when `$srcdir' = `.'.
18994# Shell code in configure.ac might set extrasub.
18995# FIXME: do we really want to maintain this feature?
18996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18997ac_sed_extra="$ac_vpsub
18998$extrasub
18999_ACEOF
19000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19001:t
19002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19003s|@configure_input@|$ac_sed_conf_input|;t t
19004s&@top_builddir@&$ac_top_builddir_sub&;t t
19005s&@top_build_prefix@&$ac_top_build_prefix&;t t
19006s&@srcdir@&$ac_srcdir&;t t
19007s&@abs_srcdir@&$ac_abs_srcdir&;t t
19008s&@top_srcdir@&$ac_top_srcdir&;t t
19009s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19010s&@builddir@&$ac_builddir&;t t
19011s&@abs_builddir@&$ac_abs_builddir&;t t
19012s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19013s&@INSTALL@&$ac_INSTALL&;t t
19014s&@MKDIR_P@&$ac_MKDIR_P&;t t
19015$ac_datarootdir_hack
19016"
19017eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19018  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19019
19020test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19021  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19022  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19023      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19024  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19025which seems to be undefined.  Please make sure it is defined" >&5
19026$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19027which seems to be undefined.  Please make sure it is defined" >&2;}
19028
19029  rm -f "$ac_tmp/stdin"
19030  case $ac_file in
19031  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19032  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19033  esac \
19034  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19035 ;;
19036  :H)
19037  #
19038  # CONFIG_HEADER
19039  #
19040  if test x"$ac_file" != x-; then
19041    {
19042      $as_echo "/* $configure_input  */" \
19043      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19044    } >"$ac_tmp/config.h" \
19045      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19046    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19047      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19048$as_echo "$as_me: $ac_file is unchanged" >&6;}
19049    else
19050      rm -f "$ac_file"
19051      mv "$ac_tmp/config.h" "$ac_file" \
19052	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19053    fi
19054  else
19055    $as_echo "/* $configure_input  */" \
19056      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19057      || as_fn_error $? "could not create -" "$LINENO" 5
19058  fi
19059# Compute "$ac_file"'s index in $config_headers.
19060_am_arg="$ac_file"
19061_am_stamp_count=1
19062for _am_header in $config_headers :; do
19063  case $_am_header in
19064    $_am_arg | $_am_arg:* )
19065      break ;;
19066    * )
19067      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19068  esac
19069done
19070echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19071$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19072	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19073	 X"$_am_arg" : 'X\(//\)$' \| \
19074	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19075$as_echo X"$_am_arg" |
19076    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19077	    s//\1/
19078	    q
19079	  }
19080	  /^X\(\/\/\)[^/].*/{
19081	    s//\1/
19082	    q
19083	  }
19084	  /^X\(\/\/\)$/{
19085	    s//\1/
19086	    q
19087	  }
19088	  /^X\(\/\).*/{
19089	    s//\1/
19090	    q
19091	  }
19092	  s/.*/./; q'`/stamp-h$_am_stamp_count
19093 ;;
19094
19095  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19096$as_echo "$as_me: executing $ac_file commands" >&6;}
19097 ;;
19098  esac
19099
19100
19101  case $ac_file$ac_mode in
19102    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19103  # Older Autoconf quotes --file arguments for eval, but not when files
19104  # are listed without --file.  Let's play safe and only enable the eval
19105  # if we detect the quoting.
19106  case $CONFIG_FILES in
19107  *\'*) eval set x "$CONFIG_FILES" ;;
19108  *)   set x $CONFIG_FILES ;;
19109  esac
19110  shift
19111  for mf
19112  do
19113    # Strip MF so we end up with the name of the file.
19114    mf=`echo "$mf" | sed -e 's/:.*$//'`
19115    # Check whether this is an Automake generated Makefile or not.
19116    # We used to match only the files named 'Makefile.in', but
19117    # some people rename them; so instead we look at the file content.
19118    # Grep'ing the first line is not enough: some people post-process
19119    # each Makefile.in and add a new line on top of each file to say so.
19120    # Grep'ing the whole file is not good either: AIX grep has a line
19121    # limit of 2048, but all sed's we know have understand at least 4000.
19122    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19123      dirpart=`$as_dirname -- "$mf" ||
19124$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19125	 X"$mf" : 'X\(//\)[^/]' \| \
19126	 X"$mf" : 'X\(//\)$' \| \
19127	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19128$as_echo X"$mf" |
19129    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19130	    s//\1/
19131	    q
19132	  }
19133	  /^X\(\/\/\)[^/].*/{
19134	    s//\1/
19135	    q
19136	  }
19137	  /^X\(\/\/\)$/{
19138	    s//\1/
19139	    q
19140	  }
19141	  /^X\(\/\).*/{
19142	    s//\1/
19143	    q
19144	  }
19145	  s/.*/./; q'`
19146    else
19147      continue
19148    fi
19149    # Extract the definition of DEPDIR, am__include, and am__quote
19150    # from the Makefile without running 'make'.
19151    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19152    test -z "$DEPDIR" && continue
19153    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19154    test -z "$am__include" && continue
19155    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19156    # Find all dependency output files, they are included files with
19157    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19158    # simplest approach to changing $(DEPDIR) to its actual value in the
19159    # expansion.
19160    for file in `sed -n "
19161      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19162	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19163      # Make sure the directory exists.
19164      test -f "$dirpart/$file" && continue
19165      fdir=`$as_dirname -- "$file" ||
19166$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19167	 X"$file" : 'X\(//\)[^/]' \| \
19168	 X"$file" : 'X\(//\)$' \| \
19169	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19170$as_echo X"$file" |
19171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19172	    s//\1/
19173	    q
19174	  }
19175	  /^X\(\/\/\)[^/].*/{
19176	    s//\1/
19177	    q
19178	  }
19179	  /^X\(\/\/\)$/{
19180	    s//\1/
19181	    q
19182	  }
19183	  /^X\(\/\).*/{
19184	    s//\1/
19185	    q
19186	  }
19187	  s/.*/./; q'`
19188      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19189      # echo "creating $dirpart/$file"
19190      echo '# dummy' > "$dirpart/$file"
19191    done
19192  done
19193}
19194 ;;
19195    "libtool":C)
19196
19197    # See if we are running on zsh, and set the options that allow our
19198    # commands through without removal of \ escapes.
19199    if test -n "${ZSH_VERSION+set}"; then
19200      setopt NO_GLOB_SUBST
19201    fi
19202
19203    cfgfile=${ofile}T
19204    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19205    $RM "$cfgfile"
19206
19207    cat <<_LT_EOF >> "$cfgfile"
19208#! $SHELL
19209# Generated automatically by $as_me ($PACKAGE) $VERSION
19210# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19211# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19212
19213# Provide generalized library-building support services.
19214# Written by Gordon Matzigkeit, 1996
19215
19216# Copyright (C) 2014 Free Software Foundation, Inc.
19217# This is free software; see the source for copying conditions.  There is NO
19218# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19219
19220# GNU Libtool is free software; you can redistribute it and/or modify
19221# it under the terms of the GNU General Public License as published by
19222# the Free Software Foundation; either version 2 of of the License, or
19223# (at your option) any later version.
19224#
19225# As a special exception to the GNU General Public License, if you
19226# distribute this file as part of a program or library that is built
19227# using GNU Libtool, you may include this file under the  same
19228# distribution terms that you use for the rest of that program.
19229#
19230# GNU Libtool is distributed in the hope that it will be useful, but
19231# WITHOUT ANY WARRANTY; without even the implied warranty of
19232# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19233# GNU General Public License for more details.
19234#
19235# You should have received a copy of the GNU General Public License
19236# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19237
19238
19239# The names of the tagged configurations supported by this script.
19240available_tags='CXX '
19241
19242# Configured defaults for sys_lib_dlsearch_path munging.
19243: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19244
19245# ### BEGIN LIBTOOL CONFIG
19246
19247# Whether or not to build static libraries.
19248build_old_libs=$enable_static
19249
19250# Which release of libtool.m4 was used?
19251macro_version=$macro_version
19252macro_revision=$macro_revision
19253
19254# Whether or not to build shared libraries.
19255build_libtool_libs=$enable_shared
19256
19257# What type of objects to build.
19258pic_mode=$pic_mode
19259
19260# Whether or not to optimize for fast installation.
19261fast_install=$enable_fast_install
19262
19263# Shared archive member basename,for filename based shared library versioning on AIX.
19264shared_archive_member_spec=$shared_archive_member_spec
19265
19266# Shell to use when invoking shell scripts.
19267SHELL=$lt_SHELL
19268
19269# An echo program that protects backslashes.
19270ECHO=$lt_ECHO
19271
19272# The PATH separator for the build system.
19273PATH_SEPARATOR=$lt_PATH_SEPARATOR
19274
19275# The host system.
19276host_alias=$host_alias
19277host=$host
19278host_os=$host_os
19279
19280# The build system.
19281build_alias=$build_alias
19282build=$build
19283build_os=$build_os
19284
19285# A sed program that does not truncate output.
19286SED=$lt_SED
19287
19288# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19289Xsed="\$SED -e 1s/^X//"
19290
19291# A grep program that handles long lines.
19292GREP=$lt_GREP
19293
19294# An ERE matcher.
19295EGREP=$lt_EGREP
19296
19297# A literal string matcher.
19298FGREP=$lt_FGREP
19299
19300# A BSD- or MS-compatible name lister.
19301NM=$lt_NM
19302
19303# Whether we need soft or hard links.
19304LN_S=$lt_LN_S
19305
19306# What is the maximum length of a command?
19307max_cmd_len=$max_cmd_len
19308
19309# Object file suffix (normally "o").
19310objext=$ac_objext
19311
19312# Executable file suffix (normally "").
19313exeext=$exeext
19314
19315# whether the shell understands "unset".
19316lt_unset=$lt_unset
19317
19318# turn spaces into newlines.
19319SP2NL=$lt_lt_SP2NL
19320
19321# turn newlines into spaces.
19322NL2SP=$lt_lt_NL2SP
19323
19324# convert \$build file names to \$host format.
19325to_host_file_cmd=$lt_cv_to_host_file_cmd
19326
19327# convert \$build files to toolchain format.
19328to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19329
19330# An object symbol dumper.
19331OBJDUMP=$lt_OBJDUMP
19332
19333# Method to check whether dependent libraries are shared objects.
19334deplibs_check_method=$lt_deplibs_check_method
19335
19336# Command to use when deplibs_check_method = "file_magic".
19337file_magic_cmd=$lt_file_magic_cmd
19338
19339# How to find potential files when deplibs_check_method = "file_magic".
19340file_magic_glob=$lt_file_magic_glob
19341
19342# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19343want_nocaseglob=$lt_want_nocaseglob
19344
19345# DLL creation program.
19346DLLTOOL=$lt_DLLTOOL
19347
19348# Command to associate shared and link libraries.
19349sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19350
19351# The archiver.
19352AR=$lt_AR
19353
19354# Flags to create an archive.
19355AR_FLAGS=$lt_AR_FLAGS
19356
19357# How to feed a file listing to the archiver.
19358archiver_list_spec=$lt_archiver_list_spec
19359
19360# A symbol stripping program.
19361STRIP=$lt_STRIP
19362
19363# Commands used to install an old-style archive.
19364RANLIB=$lt_RANLIB
19365old_postinstall_cmds=$lt_old_postinstall_cmds
19366old_postuninstall_cmds=$lt_old_postuninstall_cmds
19367
19368# Whether to use a lock for old archive extraction.
19369lock_old_archive_extraction=$lock_old_archive_extraction
19370
19371# A C compiler.
19372LTCC=$lt_CC
19373
19374# LTCC compiler flags.
19375LTCFLAGS=$lt_CFLAGS
19376
19377# Take the output of nm and produce a listing of raw symbols and C names.
19378global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19379
19380# Transform the output of nm in a proper C declaration.
19381global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19382
19383# Transform the output of nm into a list of symbols to manually relocate.
19384global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19385
19386# Transform the output of nm in a C name address pair.
19387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19388
19389# Transform the output of nm in a C name address pair when lib prefix is needed.
19390global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19391
19392# The name lister interface.
19393nm_interface=$lt_lt_cv_nm_interface
19394
19395# Specify filename containing input files for \$NM.
19396nm_file_list_spec=$lt_nm_file_list_spec
19397
19398# The root where to search for dependent libraries,and where our libraries should be installed.
19399lt_sysroot=$lt_sysroot
19400
19401# Command to truncate a binary pipe.
19402lt_truncate_bin=$lt_lt_cv_truncate_bin
19403
19404# The name of the directory that contains temporary libtool files.
19405objdir=$objdir
19406
19407# Used to examine libraries when file_magic_cmd begins with "file".
19408MAGIC_CMD=$MAGIC_CMD
19409
19410# Must we lock files when doing compilation?
19411need_locks=$lt_need_locks
19412
19413# Manifest tool.
19414MANIFEST_TOOL=$lt_MANIFEST_TOOL
19415
19416# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19417DSYMUTIL=$lt_DSYMUTIL
19418
19419# Tool to change global to local symbols on Mac OS X.
19420NMEDIT=$lt_NMEDIT
19421
19422# Tool to manipulate fat objects and archives on Mac OS X.
19423LIPO=$lt_LIPO
19424
19425# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19426OTOOL=$lt_OTOOL
19427
19428# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19429OTOOL64=$lt_OTOOL64
19430
19431# Old archive suffix (normally "a").
19432libext=$libext
19433
19434# Shared library suffix (normally ".so").
19435shrext_cmds=$lt_shrext_cmds
19436
19437# The commands to extract the exported symbol list from a shared archive.
19438extract_expsyms_cmds=$lt_extract_expsyms_cmds
19439
19440# Variables whose values should be saved in libtool wrapper scripts and
19441# restored at link time.
19442variables_saved_for_relink=$lt_variables_saved_for_relink
19443
19444# Do we need the "lib" prefix for modules?
19445need_lib_prefix=$need_lib_prefix
19446
19447# Do we need a version for libraries?
19448need_version=$need_version
19449
19450# Library versioning type.
19451version_type=$version_type
19452
19453# Shared library runtime path variable.
19454runpath_var=$runpath_var
19455
19456# Shared library path variable.
19457shlibpath_var=$shlibpath_var
19458
19459# Is shlibpath searched before the hard-coded library search path?
19460shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19461
19462# Format of library name prefix.
19463libname_spec=$lt_libname_spec
19464
19465# List of archive names.  First name is the real one, the rest are links.
19466# The last name is the one that the linker finds with -lNAME
19467library_names_spec=$lt_library_names_spec
19468
19469# The coded name of the library, if different from the real name.
19470soname_spec=$lt_soname_spec
19471
19472# Permission mode override for installation of shared libraries.
19473install_override_mode=$lt_install_override_mode
19474
19475# Command to use after installation of a shared archive.
19476postinstall_cmds=$lt_postinstall_cmds
19477
19478# Command to use after uninstallation of a shared archive.
19479postuninstall_cmds=$lt_postuninstall_cmds
19480
19481# Commands used to finish a libtool library installation in a directory.
19482finish_cmds=$lt_finish_cmds
19483
19484# As "finish_cmds", except a single script fragment to be evaled but
19485# not shown.
19486finish_eval=$lt_finish_eval
19487
19488# Whether we should hardcode library paths into libraries.
19489hardcode_into_libs=$hardcode_into_libs
19490
19491# Compile-time system search path for libraries.
19492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19493
19494# Detected run-time system search path for libraries.
19495sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19496
19497# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19498configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19499
19500# Whether dlopen is supported.
19501dlopen_support=$enable_dlopen
19502
19503# Whether dlopen of programs is supported.
19504dlopen_self=$enable_dlopen_self
19505
19506# Whether dlopen of statically linked programs is supported.
19507dlopen_self_static=$enable_dlopen_self_static
19508
19509# Commands to strip libraries.
19510old_striplib=$lt_old_striplib
19511striplib=$lt_striplib
19512
19513
19514# The linker used to build libraries.
19515LD=$lt_LD
19516
19517# How to create reloadable object files.
19518reload_flag=$lt_reload_flag
19519reload_cmds=$lt_reload_cmds
19520
19521# Commands used to build an old-style archive.
19522old_archive_cmds=$lt_old_archive_cmds
19523
19524# A language specific compiler.
19525CC=$lt_compiler
19526
19527# Is the compiler the GNU compiler?
19528with_gcc=$GCC
19529
19530# Compiler flag to turn off builtin functions.
19531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19532
19533# Additional compiler flags for building library objects.
19534pic_flag=$lt_lt_prog_compiler_pic
19535
19536# How to pass a linker flag through the compiler.
19537wl=$lt_lt_prog_compiler_wl
19538
19539# Compiler flag to prevent dynamic linking.
19540link_static_flag=$lt_lt_prog_compiler_static
19541
19542# Does compiler simultaneously support -c and -o options?
19543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19544
19545# Whether or not to add -lc for building shared libraries.
19546build_libtool_need_lc=$archive_cmds_need_lc
19547
19548# Whether or not to disallow shared libs when runtime libs are static.
19549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19550
19551# Compiler flag to allow reflexive dlopens.
19552export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19553
19554# Compiler flag to generate shared objects directly from archives.
19555whole_archive_flag_spec=$lt_whole_archive_flag_spec
19556
19557# Whether the compiler copes with passing no objects directly.
19558compiler_needs_object=$lt_compiler_needs_object
19559
19560# Create an old-style archive from a shared archive.
19561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19562
19563# Create a temporary old-style archive to link instead of a shared archive.
19564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19565
19566# Commands used to build a shared archive.
19567archive_cmds=$lt_archive_cmds
19568archive_expsym_cmds=$lt_archive_expsym_cmds
19569
19570# Commands used to build a loadable module if different from building
19571# a shared archive.
19572module_cmds=$lt_module_cmds
19573module_expsym_cmds=$lt_module_expsym_cmds
19574
19575# Whether we are building with GNU ld or not.
19576with_gnu_ld=$lt_with_gnu_ld
19577
19578# Flag that allows shared libraries with undefined symbols to be built.
19579allow_undefined_flag=$lt_allow_undefined_flag
19580
19581# Flag that enforces no undefined symbols.
19582no_undefined_flag=$lt_no_undefined_flag
19583
19584# Flag to hardcode \$libdir into a binary during linking.
19585# This must work even if \$libdir does not exist
19586hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19587
19588# Whether we need a single "-rpath" flag with a separated argument.
19589hardcode_libdir_separator=$lt_hardcode_libdir_separator
19590
19591# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19592# DIR into the resulting binary.
19593hardcode_direct=$hardcode_direct
19594
19595# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19596# DIR into the resulting binary and the resulting library dependency is
19597# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19598# library is relocated.
19599hardcode_direct_absolute=$hardcode_direct_absolute
19600
19601# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19602# into the resulting binary.
19603hardcode_minus_L=$hardcode_minus_L
19604
19605# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19606# into the resulting binary.
19607hardcode_shlibpath_var=$hardcode_shlibpath_var
19608
19609# Set to "yes" if building a shared library automatically hardcodes DIR
19610# into the library and all subsequent libraries and executables linked
19611# against it.
19612hardcode_automatic=$hardcode_automatic
19613
19614# Set to yes if linker adds runtime paths of dependent libraries
19615# to runtime path list.
19616inherit_rpath=$inherit_rpath
19617
19618# Whether libtool must link a program against all its dependency libraries.
19619link_all_deplibs=$link_all_deplibs
19620
19621# Set to "yes" if exported symbols are required.
19622always_export_symbols=$always_export_symbols
19623
19624# The commands to list exported symbols.
19625export_symbols_cmds=$lt_export_symbols_cmds
19626
19627# Symbols that should not be listed in the preloaded symbols.
19628exclude_expsyms=$lt_exclude_expsyms
19629
19630# Symbols that must always be exported.
19631include_expsyms=$lt_include_expsyms
19632
19633# Commands necessary for linking programs (against libraries) with templates.
19634prelink_cmds=$lt_prelink_cmds
19635
19636# Commands necessary for finishing linking programs.
19637postlink_cmds=$lt_postlink_cmds
19638
19639# Specify filename containing input files.
19640file_list_spec=$lt_file_list_spec
19641
19642# How to hardcode a shared library path into an executable.
19643hardcode_action=$hardcode_action
19644
19645# The directories searched by this compiler when creating a shared library.
19646compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19647
19648# Dependencies to place before and after the objects being linked to
19649# create a shared library.
19650predep_objects=$lt_predep_objects
19651postdep_objects=$lt_postdep_objects
19652predeps=$lt_predeps
19653postdeps=$lt_postdeps
19654
19655# The library search path used internally by the compiler when linking
19656# a shared library.
19657compiler_lib_search_path=$lt_compiler_lib_search_path
19658
19659# ### END LIBTOOL CONFIG
19660
19661_LT_EOF
19662
19663    cat <<'_LT_EOF' >> "$cfgfile"
19664
19665# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19666
19667# func_munge_path_list VARIABLE PATH
19668# -----------------------------------
19669# VARIABLE is name of variable containing _space_ separated list of
19670# directories to be munged by the contents of PATH, which is string
19671# having a format:
19672# "DIR[:DIR]:"
19673#       string "DIR[ DIR]" will be prepended to VARIABLE
19674# ":DIR[:DIR]"
19675#       string "DIR[ DIR]" will be appended to VARIABLE
19676# "DIRP[:DIRP]::[DIRA:]DIRA"
19677#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19678#       "DIRA[ DIRA]" will be appended to VARIABLE
19679# "DIR[:DIR]"
19680#       VARIABLE will be replaced by "DIR[ DIR]"
19681func_munge_path_list ()
19682{
19683    case x$2 in
19684    x)
19685        ;;
19686    *:)
19687        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19688        ;;
19689    x:*)
19690        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19691        ;;
19692    *::*)
19693        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19694        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19695        ;;
19696    *)
19697        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19698        ;;
19699    esac
19700}
19701
19702
19703# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19704func_cc_basename ()
19705{
19706    for cc_temp in $*""; do
19707      case $cc_temp in
19708        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19709        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19710        \-*) ;;
19711        *) break;;
19712      esac
19713    done
19714    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19715}
19716
19717
19718# ### END FUNCTIONS SHARED WITH CONFIGURE
19719
19720_LT_EOF
19721
19722  case $host_os in
19723  aix3*)
19724    cat <<\_LT_EOF >> "$cfgfile"
19725# AIX sometimes has problems with the GCC collect2 program.  For some
19726# reason, if we set the COLLECT_NAMES environment variable, the problems
19727# vanish in a puff of smoke.
19728if test set != "${COLLECT_NAMES+set}"; then
19729  COLLECT_NAMES=
19730  export COLLECT_NAMES
19731fi
19732_LT_EOF
19733    ;;
19734  esac
19735
19736
19737ltmain=$ac_aux_dir/ltmain.sh
19738
19739
19740  # We use sed instead of cat because bash on DJGPP gets confused if
19741  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19742  # text mode, it properly converts lines to CR/LF.  This bash problem
19743  # is reportedly fixed, but why not run on old versions too?
19744  sed '$q' "$ltmain" >> "$cfgfile" \
19745     || (rm -f "$cfgfile"; exit 1)
19746
19747   mv -f "$cfgfile" "$ofile" ||
19748    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19749  chmod +x "$ofile"
19750
19751
19752    cat <<_LT_EOF >> "$ofile"
19753
19754# ### BEGIN LIBTOOL TAG CONFIG: CXX
19755
19756# The linker used to build libraries.
19757LD=$lt_LD_CXX
19758
19759# How to create reloadable object files.
19760reload_flag=$lt_reload_flag_CXX
19761reload_cmds=$lt_reload_cmds_CXX
19762
19763# Commands used to build an old-style archive.
19764old_archive_cmds=$lt_old_archive_cmds_CXX
19765
19766# A language specific compiler.
19767CC=$lt_compiler_CXX
19768
19769# Is the compiler the GNU compiler?
19770with_gcc=$GCC_CXX
19771
19772# Compiler flag to turn off builtin functions.
19773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19774
19775# Additional compiler flags for building library objects.
19776pic_flag=$lt_lt_prog_compiler_pic_CXX
19777
19778# How to pass a linker flag through the compiler.
19779wl=$lt_lt_prog_compiler_wl_CXX
19780
19781# Compiler flag to prevent dynamic linking.
19782link_static_flag=$lt_lt_prog_compiler_static_CXX
19783
19784# Does compiler simultaneously support -c and -o options?
19785compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19786
19787# Whether or not to add -lc for building shared libraries.
19788build_libtool_need_lc=$archive_cmds_need_lc_CXX
19789
19790# Whether or not to disallow shared libs when runtime libs are static.
19791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19792
19793# Compiler flag to allow reflexive dlopens.
19794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19795
19796# Compiler flag to generate shared objects directly from archives.
19797whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19798
19799# Whether the compiler copes with passing no objects directly.
19800compiler_needs_object=$lt_compiler_needs_object_CXX
19801
19802# Create an old-style archive from a shared archive.
19803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19804
19805# Create a temporary old-style archive to link instead of a shared archive.
19806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19807
19808# Commands used to build a shared archive.
19809archive_cmds=$lt_archive_cmds_CXX
19810archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19811
19812# Commands used to build a loadable module if different from building
19813# a shared archive.
19814module_cmds=$lt_module_cmds_CXX
19815module_expsym_cmds=$lt_module_expsym_cmds_CXX
19816
19817# Whether we are building with GNU ld or not.
19818with_gnu_ld=$lt_with_gnu_ld_CXX
19819
19820# Flag that allows shared libraries with undefined symbols to be built.
19821allow_undefined_flag=$lt_allow_undefined_flag_CXX
19822
19823# Flag that enforces no undefined symbols.
19824no_undefined_flag=$lt_no_undefined_flag_CXX
19825
19826# Flag to hardcode \$libdir into a binary during linking.
19827# This must work even if \$libdir does not exist
19828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19829
19830# Whether we need a single "-rpath" flag with a separated argument.
19831hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19832
19833# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19834# DIR into the resulting binary.
19835hardcode_direct=$hardcode_direct_CXX
19836
19837# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19838# DIR into the resulting binary and the resulting library dependency is
19839# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19840# library is relocated.
19841hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19842
19843# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19844# into the resulting binary.
19845hardcode_minus_L=$hardcode_minus_L_CXX
19846
19847# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19848# into the resulting binary.
19849hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19850
19851# Set to "yes" if building a shared library automatically hardcodes DIR
19852# into the library and all subsequent libraries and executables linked
19853# against it.
19854hardcode_automatic=$hardcode_automatic_CXX
19855
19856# Set to yes if linker adds runtime paths of dependent libraries
19857# to runtime path list.
19858inherit_rpath=$inherit_rpath_CXX
19859
19860# Whether libtool must link a program against all its dependency libraries.
19861link_all_deplibs=$link_all_deplibs_CXX
19862
19863# Set to "yes" if exported symbols are required.
19864always_export_symbols=$always_export_symbols_CXX
19865
19866# The commands to list exported symbols.
19867export_symbols_cmds=$lt_export_symbols_cmds_CXX
19868
19869# Symbols that should not be listed in the preloaded symbols.
19870exclude_expsyms=$lt_exclude_expsyms_CXX
19871
19872# Symbols that must always be exported.
19873include_expsyms=$lt_include_expsyms_CXX
19874
19875# Commands necessary for linking programs (against libraries) with templates.
19876prelink_cmds=$lt_prelink_cmds_CXX
19877
19878# Commands necessary for finishing linking programs.
19879postlink_cmds=$lt_postlink_cmds_CXX
19880
19881# Specify filename containing input files.
19882file_list_spec=$lt_file_list_spec_CXX
19883
19884# How to hardcode a shared library path into an executable.
19885hardcode_action=$hardcode_action_CXX
19886
19887# The directories searched by this compiler when creating a shared library.
19888compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19889
19890# Dependencies to place before and after the objects being linked to
19891# create a shared library.
19892predep_objects=$lt_predep_objects_CXX
19893postdep_objects=$lt_postdep_objects_CXX
19894predeps=$lt_predeps_CXX
19895postdeps=$lt_postdeps_CXX
19896
19897# The library search path used internally by the compiler when linking
19898# a shared library.
19899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19900
19901# ### END LIBTOOL TAG CONFIG: CXX
19902_LT_EOF
19903
19904 ;;
19905
19906  esac
19907done # for ac_tag
19908
19909
19910as_fn_exit 0
19911_ACEOF
19912ac_clean_files=$ac_clean_files_save
19913
19914test $ac_write_fail = 0 ||
19915  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19916
19917
19918# configure is writing to config.log, and then calls config.status.
19919# config.status does its own redirection, appending to config.log.
19920# Unfortunately, on DOS this fails, as config.log is still kept open
19921# by configure, so config.status won't be able to write to it; its
19922# output is simply discarded.  So we exec the FD to /dev/null,
19923# effectively closing config.log, so it can be properly (re)opened and
19924# appended to by config.status.  When coming back to configure, we
19925# need to make the FD available again.
19926if test "$no_create" != yes; then
19927  ac_cs_success=:
19928  ac_config_status_args=
19929  test "$silent" = yes &&
19930    ac_config_status_args="$ac_config_status_args --quiet"
19931  exec 5>/dev/null
19932  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19933  exec 5>>config.log
19934  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19935  # would make configure fail if this is the last instruction.
19936  $ac_cs_success || as_fn_exit 1
19937fi
19938if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19939  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19940$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19941fi
19942
19943