1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for love 0.8.0.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='love'
569PACKAGE_TARNAME='love'
570PACKAGE_VERSION='0.8.0'
571PACKAGE_STRING='love 0.8.0'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575ac_unique_file="src/love.cpp"
576ac_default_prefix=/usr
577# Factoring default headers for most tests.
578ac_includes_default="\
579#include <stdio.h>
580#ifdef HAVE_SYS_TYPES_H
581# include <sys/types.h>
582#endif
583#ifdef HAVE_SYS_STAT_H
584# include <sys/stat.h>
585#endif
586#ifdef STDC_HEADERS
587# include <stdlib.h>
588# include <stddef.h>
589#else
590# ifdef HAVE_STDLIB_H
591#  include <stdlib.h>
592# endif
593#endif
594#ifdef HAVE_STRING_H
595# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
596#  include <memory.h>
597# endif
598# include <string.h>
599#endif
600#ifdef HAVE_STRINGS_H
601# include <strings.h>
602#endif
603#ifdef HAVE_INTTYPES_H
604# include <inttypes.h>
605#endif
606#ifdef HAVE_STDINT_H
607# include <stdint.h>
608#endif
609#ifdef HAVE_UNISTD_H
610# include <unistd.h>
611#endif"
612
613ac_subst_vars='am__EXEEXT_FALSE
614am__EXEEXT_TRUE
615LTLIBOBJS
616LIBOBJS
617FILE_OFFSET
618INCLUDE_LUA
619CXXCPP
620am__fastdepCXX_FALSE
621am__fastdepCXX_TRUE
622CXXDEPMODE
623ac_ct_CXX
624CXXFLAGS
625CXX
626CPP
627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
632MANIFEST_TOOL
633RANLIB
634ac_ct_AR
635AR
636DLLTOOL
637OBJDUMP
638LN_S
639NM
640ac_ct_DUMPBIN
641DUMPBIN
642LD
643FGREP
644EGREP
645GREP
646SED
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650am__nodep
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672LIBTOOL
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_shared
738enable_static
739with_pic
740enable_fast_install
741enable_dependency_tracking
742with_gnu_ld
743with_sysroot
744enable_libtool_lock
745with_luajit
746with_llvm_lua
747enable_headless
748'
749      ac_precious_vars='build_alias
750host_alias
751target_alias
752CC
753CFLAGS
754LDFLAGS
755LIBS
756CPPFLAGS
757CPP
758CXX
759CXXFLAGS
760CCC
761CXXCPP'
762
763
764# Initialize some variables set by options.
765ac_init_help=
766ac_init_version=false
767ac_unrecognized_opts=
768ac_unrecognized_sep=
769# The variables have the same names as the options, with
770# dashes changed to underlines.
771cache_file=/dev/null
772exec_prefix=NONE
773no_create=
774no_recursion=
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791sbindir='${exec_prefix}/sbin'
792libexecdir='${exec_prefix}/libexec'
793datarootdir='${prefix}/share'
794datadir='${datarootdir}'
795sysconfdir='${prefix}/etc'
796sharedstatedir='${prefix}/com'
797localstatedir='${prefix}/var'
798includedir='${prefix}/include'
799oldincludedir='/usr/include'
800docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801infodir='${datarootdir}/info'
802htmldir='${docdir}'
803dvidir='${docdir}'
804pdfdir='${docdir}'
805psdir='${docdir}'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813  # If the previous option needs an argument, assign it.
814  if test -n "$ac_prev"; then
815    eval $ac_prev=\$ac_option
816    ac_prev=
817    continue
818  fi
819
820  case $ac_option in
821  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822  *=)   ac_optarg= ;;
823  *)    ac_optarg=yes ;;
824  esac
825
826  # Accept the important Cygnus configure options, so we can diagnose typos.
827
828  case $ac_dashdash$ac_option in
829  --)
830    ac_dashdash=yes ;;
831
832  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833    ac_prev=bindir ;;
834  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835    bindir=$ac_optarg ;;
836
837  -build | --build | --buil | --bui | --bu)
838    ac_prev=build_alias ;;
839  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840    build_alias=$ac_optarg ;;
841
842  -cache-file | --cache-file | --cache-fil | --cache-fi \
843  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844    ac_prev=cache_file ;;
845  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847    cache_file=$ac_optarg ;;
848
849  --config-cache | -C)
850    cache_file=config.cache ;;
851
852  -datadir | --datadir | --datadi | --datad)
853    ac_prev=datadir ;;
854  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855    datadir=$ac_optarg ;;
856
857  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858  | --dataroo | --dataro | --datar)
859    ac_prev=datarootdir ;;
860  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862    datarootdir=$ac_optarg ;;
863
864  -disable-* | --disable-*)
865    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866    # Reject names that are not valid shell variable names.
867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868      as_fn_error $? "invalid feature name: $ac_useropt"
869    ac_useropt_orig=$ac_useropt
870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871    case $ac_user_opts in
872      *"
873"enable_$ac_useropt"
874"*) ;;
875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876	 ac_unrecognized_sep=', ';;
877    esac
878    eval enable_$ac_useropt=no ;;
879
880  -docdir | --docdir | --docdi | --doc | --do)
881    ac_prev=docdir ;;
882  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883    docdir=$ac_optarg ;;
884
885  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886    ac_prev=dvidir ;;
887  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888    dvidir=$ac_optarg ;;
889
890  -enable-* | --enable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
1026  -program-transform-name=* | --program-transform-name=* \
1027  | --program-transform-nam=* | --program-transform-na=* \
1028  | --program-transform-n=* | --program-transform-=* \
1029  | --program-transform=* | --program-transfor=* \
1030  | --program-transfo=* | --program-transf=* \
1031  | --program-trans=* | --program-tran=* \
1032  | --progr-tra=* | --program-tr=* | --program-t=*)
1033    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=\$ac_optarg ;;
1109
1110  -without-* | --without-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=no ;;
1125
1126  --x)
1127    # Obsolete; use --with-x.
1128    with_x=yes ;;
1129
1130  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131  | --x-incl | --x-inc | --x-in | --x-i)
1132    ac_prev=x_includes ;;
1133  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135    x_includes=$ac_optarg ;;
1136
1137  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139    ac_prev=x_libraries ;;
1140  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142    x_libraries=$ac_optarg ;;
1143
1144  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145Try \`$0 --help' for more information"
1146    ;;
1147
1148  *=*)
1149    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150    # Reject names that are not valid shell variable names.
1151    case $ac_envvar in #(
1152      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154    esac
1155    eval $ac_envvar=\$ac_optarg
1156    export $ac_envvar ;;
1157
1158  *)
1159    # FIXME: should be removed in autoconf 3.0.
1160    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164    ;;
1165
1166  esac
1167done
1168
1169if test -n "$ac_prev"; then
1170  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171  as_fn_error $? "missing argument to $ac_option"
1172fi
1173
1174if test -n "$ac_unrecognized_opts"; then
1175  case $enable_option_checking in
1176    no) ;;
1177    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179  esac
1180fi
1181
1182# Check all directory arguments for consistency.
1183for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184		datadir sysconfdir sharedstatedir localstatedir includedir \
1185		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186		libdir localedir mandir
1187do
1188  eval ac_val=\$$ac_var
1189  # Remove trailing slashes.
1190  case $ac_val in
1191    */ )
1192      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193      eval $ac_var=\$ac_val;;
1194  esac
1195  # Be sure to have absolute directory names.
1196  case $ac_val in
1197    [\\/$]* | ?:[\\/]* )  continue;;
1198    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199  esac
1200  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215    If a cross compiler is detected then cross compile mode will be used" >&2
1216  elif test "x$build_alias" != "x$host_alias"; then
1217    cross_compiling=yes
1218  fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
1227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230  as_fn_error $? "working directory cannot be determined"
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232  as_fn_error $? "pwd does not report name of working directory"
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$as_myself" ||
1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242	 X"$as_myself" : 'X\(//\)$' \| \
1243	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244$as_echo X"$as_myself" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272fi
1273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274ac_abs_confdir=`(
1275	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276	pwd)`
1277# When building in place, set srcdir=.
1278if test "$ac_abs_confdir" = "$ac_pwd"; then
1279  srcdir=.
1280fi
1281# Remove unnecessary trailing slashes from srcdir.
1282# Double slashes in file names in object file debugging info
1283# mess up M-x gdb in Emacs.
1284case $srcdir in
1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286esac
1287for ac_var in $ac_precious_vars; do
1288  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_env_${ac_var}_value=\$${ac_var}
1290  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292done
1293
1294#
1295# Report the --help message.
1296#
1297if test "$ac_init_help" = "long"; then
1298  # Omit some internal or obsolete options to make the list less imposing.
1299  # This message is too long to be a string in the A/UX 3.1 sh.
1300  cat <<_ACEOF
1301\`configure' configures love 0.8.0 to adapt to many kinds of systems.
1302
1303Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306VAR=VALUE.  See below for descriptions of some of the useful variables.
1307
1308Defaults for the options are specified in brackets.
1309
1310Configuration:
1311  -h, --help              display this help and exit
1312      --help=short        display options specific to this package
1313      --help=recursive    display the short help of all the included packages
1314  -V, --version           display version information and exit
1315  -q, --quiet, --silent   do not print \`checking ...' messages
1316      --cache-file=FILE   cache test results in FILE [disabled]
1317  -C, --config-cache      alias for \`--cache-file=config.cache'
1318  -n, --no-create         do not create output files
1319      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320
1321Installation directories:
1322  --prefix=PREFIX         install architecture-independent files in PREFIX
1323                          [$ac_default_prefix]
1324  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325                          [PREFIX]
1326
1327By default, \`make install' will install all the files in
1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330for instance \`--prefix=\$HOME'.
1331
1332For better control, use the options below.
1333
1334Fine tuning of the installation directories:
1335  --bindir=DIR            user executables [EPREFIX/bin]
1336  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337  --libexecdir=DIR        program executables [EPREFIX/libexec]
1338  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341  --libdir=DIR            object code libraries [EPREFIX/lib]
1342  --includedir=DIR        C header files [PREFIX/include]
1343  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346  --infodir=DIR           info documentation [DATAROOTDIR/info]
1347  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348  --mandir=DIR            man documentation [DATAROOTDIR/man]
1349  --docdir=DIR            documentation root [DATAROOTDIR/doc/love]
1350  --htmldir=DIR           html documentation [DOCDIR]
1351  --dvidir=DIR            dvi documentation [DOCDIR]
1352  --pdfdir=DIR            pdf documentation [DOCDIR]
1353  --psdir=DIR             ps documentation [DOCDIR]
1354_ACEOF
1355
1356  cat <<\_ACEOF
1357
1358Program names:
1359  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363System types:
1364  --build=BUILD     configure for building on BUILD [guessed]
1365  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370  case $ac_init_help in
1371     short | recursive ) echo "Configuration of love 0.8.0:";;
1372   esac
1373  cat <<\_ACEOF
1374
1375Optional Features:
1376  --disable-option-checking  ignore unrecognized --enable/--with options
1377  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379  --enable-shared[=PKGS]  build shared libraries [default=yes]
1380  --enable-static[=PKGS]  build static libraries [default=yes]
1381  --enable-fast-install[=PKGS]
1382                          optimize for fast installation [default=yes]
1383  --disable-dependency-tracking  speeds up one-time build
1384  --enable-dependency-tracking   do not reject slow dependency extractors
1385  --disable-libtool-lock  avoid locking (might break parallel builds)
1386  --enable-headless Build with less SDL
1387
1388Optional Packages:
1389  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1392                          both]
1393  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1394  --with-sysroot=DIR Search for dependent libraries within DIR
1395                        (or the compiler's sysroot if not specified).
1396  --with-luajit           Use LuaJIT instead of lua and llvm-lua
1397  --with-llvm-lua         Use llvm-lua instead of lua and LuaJIT
1398
1399Some influential environment variables:
1400  CC          C compiler command
1401  CFLAGS      C compiler flags
1402  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403              nonstandard directory <lib dir>
1404  LIBS        libraries to pass to the linker, e.g. -l<library>
1405  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406              you have headers in a nonstandard directory <include dir>
1407  CPP         C preprocessor
1408  CXX         C++ compiler command
1409  CXXFLAGS    C++ compiler flags
1410  CXXCPP      C++ preprocessor
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to the package provider.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478love configure 0.8.0
1479generated by GNU Autoconf 2.68
1480
1481Copyright (C) 2010 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_try_link LINENO
1531# -----------------------
1532# Try to link conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_link ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  rm -f conftest.$ac_objext conftest$ac_exeext
1537  if { { ac_try="$ac_link"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_link") 2>conftest.err
1545  ac_status=$?
1546  if test -s conftest.err; then
1547    grep -v '^ *+' conftest.err >conftest.er1
1548    cat conftest.er1 >&5
1549    mv -f conftest.er1 conftest.err
1550  fi
1551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552  test $ac_status = 0; } && {
1553	 test -z "$ac_c_werror_flag" ||
1554	 test ! -s conftest.err
1555       } && test -s conftest$ac_exeext && {
1556	 test "$cross_compiling" = yes ||
1557	 $as_test_x conftest$ac_exeext
1558       }; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568  # interfere with the next link command; also delete a directory that is
1569  # left behind by Apple's compiler.  We do this before executing the actions.
1570  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572  as_fn_set_status $ac_retval
1573
1574} # ac_fn_c_try_link
1575
1576# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577# -------------------------------------------------------
1578# Tests whether HEADER exists and can be compiled using the include files in
1579# INCLUDES, setting the cache variable VAR accordingly.
1580ac_fn_c_check_header_compile ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584$as_echo_n "checking for $2... " >&6; }
1585if eval \${$3+:} false; then :
1586  $as_echo_n "(cached) " >&6
1587else
1588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h.  */
1590$4
1591#include <$2>
1592_ACEOF
1593if ac_fn_c_try_compile "$LINENO"; then :
1594  eval "$3=yes"
1595else
1596  eval "$3=no"
1597fi
1598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599fi
1600eval ac_res=\$$3
1601	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602$as_echo "$ac_res" >&6; }
1603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
1605} # ac_fn_c_check_header_compile
1606
1607# ac_fn_c_try_cpp LINENO
1608# ----------------------
1609# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_cpp ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  if { { ac_try="$ac_cpp conftest.$ac_ext"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621  ac_status=$?
1622  if test -s conftest.err; then
1623    grep -v '^ *+' conftest.err >conftest.er1
1624    cat conftest.er1 >&5
1625    mv -f conftest.er1 conftest.err
1626  fi
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } > conftest.i && {
1629	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630	 test ! -s conftest.err
1631       }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637    ac_retval=1
1638fi
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640  as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_cpp
1643
1644# ac_fn_c_try_run LINENO
1645# ----------------------
1646# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647# that executables *can* be run.
1648ac_fn_c_try_run ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_link"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_link") 2>&5
1659  ac_status=$?
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662  { { case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_try") 2>&5
1669  ac_status=$?
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; }; }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: program exited with status $ac_status" >&5
1675       $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678       ac_retval=$ac_status
1679fi
1680  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_run
1685
1686# ac_fn_c_check_func LINENO FUNC VAR
1687# ----------------------------------
1688# Tests whether FUNC exists, setting the cache variable VAR accordingly
1689ac_fn_c_check_func ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1701#define $2 innocuous_$2
1702
1703/* System header to define __stub macros and hopefully few prototypes,
1704    which can conflict with char $2 (); below.
1705    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706    <limits.h> exists even on freestanding compilers.  */
1707
1708#ifdef __STDC__
1709# include <limits.h>
1710#else
1711# include <assert.h>
1712#endif
1713
1714#undef $2
1715
1716/* Override any GCC internal prototype to avoid an error.
1717   Use char because int might match the return type of a GCC
1718   builtin and then its argument prototype would still apply.  */
1719#ifdef __cplusplus
1720extern "C"
1721#endif
1722char $2 ();
1723/* The GNU C library defines this for functions which it implements
1724    to always fail with ENOSYS.  Some functions are actually named
1725    something starting with __ and the normal name is an alias.  */
1726#if defined __stub_$2 || defined __stub___$2
1727choke me
1728#endif
1729
1730int
1731main ()
1732{
1733return $2 ();
1734  ;
1735  return 0;
1736}
1737_ACEOF
1738if ac_fn_c_try_link "$LINENO"; then :
1739  eval "$3=yes"
1740else
1741  eval "$3=no"
1742fi
1743rm -f core conftest.err conftest.$ac_objext \
1744    conftest$ac_exeext conftest.$ac_ext
1745fi
1746eval ac_res=\$$3
1747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751} # ac_fn_c_check_func
1752
1753# ac_fn_cxx_try_compile LINENO
1754# ----------------------------
1755# Try to compile conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_cxx_try_compile ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  rm -f conftest.$ac_objext
1760  if { { ac_try="$ac_compile"
1761case "(($ac_try" in
1762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763  *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767  (eval "$ac_compile") 2>conftest.err
1768  ac_status=$?
1769  if test -s conftest.err; then
1770    grep -v '^ *+' conftest.err >conftest.er1
1771    cat conftest.er1 >&5
1772    mv -f conftest.er1 conftest.err
1773  fi
1774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775  test $ac_status = 0; } && {
1776	 test -z "$ac_cxx_werror_flag" ||
1777	 test ! -s conftest.err
1778       } && test -s conftest.$ac_objext; then :
1779  ac_retval=0
1780else
1781  $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784	ac_retval=1
1785fi
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787  as_fn_set_status $ac_retval
1788
1789} # ac_fn_cxx_try_compile
1790
1791# ac_fn_cxx_try_cpp LINENO
1792# ------------------------
1793# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_cxx_try_cpp ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  if { { ac_try="$ac_cpp conftest.$ac_ext"
1798case "(($ac_try" in
1799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800  *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805  ac_status=$?
1806  if test -s conftest.err; then
1807    grep -v '^ *+' conftest.err >conftest.er1
1808    cat conftest.er1 >&5
1809    mv -f conftest.er1 conftest.err
1810  fi
1811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812  test $ac_status = 0; } > conftest.i && {
1813	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1814	 test ! -s conftest.err
1815       }; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821    ac_retval=1
1822fi
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824  as_fn_set_status $ac_retval
1825
1826} # ac_fn_cxx_try_cpp
1827
1828# ac_fn_cxx_try_link LINENO
1829# -------------------------
1830# Try to link conftest.$ac_ext, and return whether this succeeded.
1831ac_fn_cxx_try_link ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  rm -f conftest.$ac_objext conftest$ac_exeext
1835  if { { ac_try="$ac_link"
1836case "(($ac_try" in
1837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838  *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842  (eval "$ac_link") 2>conftest.err
1843  ac_status=$?
1844  if test -s conftest.err; then
1845    grep -v '^ *+' conftest.err >conftest.er1
1846    cat conftest.er1 >&5
1847    mv -f conftest.er1 conftest.err
1848  fi
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; } && {
1851	 test -z "$ac_cxx_werror_flag" ||
1852	 test ! -s conftest.err
1853       } && test -s conftest$ac_exeext && {
1854	 test "$cross_compiling" = yes ||
1855	 $as_test_x conftest$ac_exeext
1856       }; then :
1857  ac_retval=0
1858else
1859  $as_echo "$as_me: failed program was:" >&5
1860sed 's/^/| /' conftest.$ac_ext >&5
1861
1862	ac_retval=1
1863fi
1864  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866  # interfere with the next link command; also delete a directory that is
1867  # left behind by Apple's compiler.  We do this before executing the actions.
1868  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870  as_fn_set_status $ac_retval
1871
1872} # ac_fn_cxx_try_link
1873cat >config.log <<_ACEOF
1874This file contains any messages produced by compilers while
1875running configure, to aid debugging if configure makes a mistake.
1876
1877It was created by love $as_me 0.8.0, which was
1878generated by GNU Autoconf 2.68.  Invocation command line was
1879
1880  $ $0 $@
1881
1882_ACEOF
1883exec 5>>config.log
1884{
1885cat <<_ASUNAME
1886## --------- ##
1887## Platform. ##
1888## --------- ##
1889
1890hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1891uname -m = `(uname -m) 2>/dev/null || echo unknown`
1892uname -r = `(uname -r) 2>/dev/null || echo unknown`
1893uname -s = `(uname -s) 2>/dev/null || echo unknown`
1894uname -v = `(uname -v) 2>/dev/null || echo unknown`
1895
1896/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1897/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1898
1899/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1900/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1901/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1902/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1903/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1904/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1905/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1906
1907_ASUNAME
1908
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914    $as_echo "PATH: $as_dir"
1915  done
1916IFS=$as_save_IFS
1917
1918} >&5
1919
1920cat >&5 <<_ACEOF
1921
1922
1923## ----------- ##
1924## Core tests. ##
1925## ----------- ##
1926
1927_ACEOF
1928
1929
1930# Keep a trace of the command line.
1931# Strip out --no-create and --no-recursion so they do not pile up.
1932# Strip out --silent because we don't want to record it for future runs.
1933# Also quote any args containing shell meta-characters.
1934# Make two passes to allow for proper duplicate-argument suppression.
1935ac_configure_args=
1936ac_configure_args0=
1937ac_configure_args1=
1938ac_must_keep_next=false
1939for ac_pass in 1 2
1940do
1941  for ac_arg
1942  do
1943    case $ac_arg in
1944    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946    | -silent | --silent | --silen | --sile | --sil)
1947      continue ;;
1948    *\'*)
1949      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950    esac
1951    case $ac_pass in
1952    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1953    2)
1954      as_fn_append ac_configure_args1 " '$ac_arg'"
1955      if test $ac_must_keep_next = true; then
1956	ac_must_keep_next=false # Got value, back to normal.
1957      else
1958	case $ac_arg in
1959	  *=* | --config-cache | -C | -disable-* | --disable-* \
1960	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962	  | -with-* | --with-* | -without-* | --without-* | --x)
1963	    case "$ac_configure_args0 " in
1964	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965	    esac
1966	    ;;
1967	  -* ) ac_must_keep_next=true ;;
1968	esac
1969      fi
1970      as_fn_append ac_configure_args " '$ac_arg'"
1971      ;;
1972    esac
1973  done
1974done
1975{ ac_configure_args0=; unset ac_configure_args0;}
1976{ ac_configure_args1=; unset ac_configure_args1;}
1977
1978# When interrupted or exit'd, cleanup temporary files, and complete
1979# config.log.  We remove comments because anyway the quotes in there
1980# would cause problems or look ugly.
1981# WARNING: Use '\'' to represent an apostrophe within the trap.
1982# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983trap 'exit_status=$?
1984  # Save into config.log some information that might help in debugging.
1985  {
1986    echo
1987
1988    $as_echo "## ---------------- ##
1989## Cache variables. ##
1990## ---------------- ##"
1991    echo
1992    # The following way of writing the cache mishandles newlines in values,
1993(
1994  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995    eval ac_val=\$$ac_var
1996    case $ac_val in #(
1997    *${as_nl}*)
1998      case $ac_var in #(
1999      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001      esac
2002      case $ac_var in #(
2003      _ | IFS | as_nl) ;; #(
2004      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005      *) { eval $ac_var=; unset $ac_var;} ;;
2006      esac ;;
2007    esac
2008  done
2009  (set) 2>&1 |
2010    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011    *${as_nl}ac_space=\ *)
2012      sed -n \
2013	"s/'\''/'\''\\\\'\'''\''/g;
2014	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015      ;; #(
2016    *)
2017      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018      ;;
2019    esac |
2020    sort
2021)
2022    echo
2023
2024    $as_echo "## ----------------- ##
2025## Output variables. ##
2026## ----------------- ##"
2027    echo
2028    for ac_var in $ac_subst_vars
2029    do
2030      eval ac_val=\$$ac_var
2031      case $ac_val in
2032      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033      esac
2034      $as_echo "$ac_var='\''$ac_val'\''"
2035    done | sort
2036    echo
2037
2038    if test -n "$ac_subst_files"; then
2039      $as_echo "## ------------------- ##
2040## File substitutions. ##
2041## ------------------- ##"
2042      echo
2043      for ac_var in $ac_subst_files
2044      do
2045	eval ac_val=\$$ac_var
2046	case $ac_val in
2047	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048	esac
2049	$as_echo "$ac_var='\''$ac_val'\''"
2050      done | sort
2051      echo
2052    fi
2053
2054    if test -s confdefs.h; then
2055      $as_echo "## ----------- ##
2056## confdefs.h. ##
2057## ----------- ##"
2058      echo
2059      cat confdefs.h
2060      echo
2061    fi
2062    test "$ac_signal" != 0 &&
2063      $as_echo "$as_me: caught signal $ac_signal"
2064    $as_echo "$as_me: exit $exit_status"
2065  } >&5
2066  rm -f core *.core core.conftest.* &&
2067    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068    exit $exit_status
2069' 0
2070for ac_signal in 1 2 13 15; do
2071  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072done
2073ac_signal=0
2074
2075# confdefs.h avoids OS command line length limits that DEFS can exceed.
2076rm -f -r conftest* confdefs.h
2077
2078$as_echo "/* confdefs.h */" > confdefs.h
2079
2080# Predefined preprocessor variables.
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_NAME "$PACKAGE_NAME"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_VERSION "$PACKAGE_VERSION"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_STRING "$PACKAGE_STRING"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_URL "$PACKAGE_URL"
2104_ACEOF
2105
2106
2107# Let the site file select an alternate cache file if it wants to.
2108# Prefer an explicitly selected file to automatically selected ones.
2109ac_site_file1=NONE
2110ac_site_file2=NONE
2111if test -n "$CONFIG_SITE"; then
2112  # We do not want a PATH search for config.site.
2113  case $CONFIG_SITE in #((
2114    -*)  ac_site_file1=./$CONFIG_SITE;;
2115    */*) ac_site_file1=$CONFIG_SITE;;
2116    *)   ac_site_file1=./$CONFIG_SITE;;
2117  esac
2118elif test "x$prefix" != xNONE; then
2119  ac_site_file1=$prefix/share/config.site
2120  ac_site_file2=$prefix/etc/config.site
2121else
2122  ac_site_file1=$ac_default_prefix/share/config.site
2123  ac_site_file2=$ac_default_prefix/etc/config.site
2124fi
2125for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2126do
2127  test "x$ac_site_file" = xNONE && continue
2128  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2129    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2131    sed 's/^/| /' "$ac_site_file" >&5
2132    . "$ac_site_file" \
2133      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135as_fn_error $? "failed to load site script $ac_site_file
2136See \`config.log' for more details" "$LINENO" 5; }
2137  fi
2138done
2139
2140if test -r "$cache_file"; then
2141  # Some versions of bash will fail to source /dev/null (special files
2142  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2143  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2144    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145$as_echo "$as_me: loading cache $cache_file" >&6;}
2146    case $cache_file in
2147      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148      *)                      . "./$cache_file";;
2149    esac
2150  fi
2151else
2152  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153$as_echo "$as_me: creating cache $cache_file" >&6;}
2154  >$cache_file
2155fi
2156
2157# Check that the precious variables saved in the cache have kept the same
2158# value.
2159ac_cache_corrupted=false
2160for ac_var in $ac_precious_vars; do
2161  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162  eval ac_new_set=\$ac_env_${ac_var}_set
2163  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164  eval ac_new_val=\$ac_env_${ac_var}_value
2165  case $ac_old_set,$ac_new_set in
2166    set,)
2167      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169      ac_cache_corrupted=: ;;
2170    ,set)
2171      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173      ac_cache_corrupted=: ;;
2174    ,);;
2175    *)
2176      if test "x$ac_old_val" != "x$ac_new_val"; then
2177	# differences in whitespace do not lead to failure.
2178	ac_old_val_w=`echo x $ac_old_val`
2179	ac_new_val_w=`echo x $ac_new_val`
2180	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183	  ac_cache_corrupted=:
2184	else
2185	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187	  eval $ac_var=\$ac_old_val
2188	fi
2189	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2190$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2191	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2192$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2193      fi;;
2194  esac
2195  # Pass precious variables to config.status.
2196  if test "$ac_new_set" = set; then
2197    case $ac_new_val in
2198    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199    *) ac_arg=$ac_var=$ac_new_val ;;
2200    esac
2201    case " $ac_configure_args " in
2202      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2203      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204    esac
2205  fi
2206done
2207if $ac_cache_corrupted; then
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2213fi
2214## -------------------- ##
2215## Main body of script. ##
2216## -------------------- ##
2217
2218ac_ext=c
2219ac_cpp='$CPP $CPPFLAGS'
2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
2224
2225ac_config_headers="$ac_config_headers config.h"
2226
2227ac_aux_dir=
2228for ac_dir in platform/unix "$srcdir"/platform/unix; do
2229  if test -f "$ac_dir/install-sh"; then
2230    ac_aux_dir=$ac_dir
2231    ac_install_sh="$ac_aux_dir/install-sh -c"
2232    break
2233  elif test -f "$ac_dir/install.sh"; then
2234    ac_aux_dir=$ac_dir
2235    ac_install_sh="$ac_aux_dir/install.sh -c"
2236    break
2237  elif test -f "$ac_dir/shtool"; then
2238    ac_aux_dir=$ac_dir
2239    ac_install_sh="$ac_aux_dir/shtool install -c"
2240    break
2241  fi
2242done
2243if test -z "$ac_aux_dir"; then
2244  as_fn_error $? "cannot find install-sh, install.sh, or shtool in platform/unix \"$srcdir\"/platform/unix" "$LINENO" 5
2245fi
2246
2247# These three variables are undocumented and unsupported,
2248# and are intended to be withdrawn in a future Autoconf release.
2249# They can cause serious problems if a builder's source tree is in a directory
2250# whose full name contains unusual characters.
2251ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2252ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2253ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2254
2255
2256
2257
2258am__api_version='1.11'
2259
2260# Find a good install program.  We prefer a C program (faster),
2261# so one script is as good as another.  But avoid the broken or
2262# incompatible versions:
2263# SysV /etc/install, /usr/sbin/install
2264# SunOS /usr/etc/install
2265# IRIX /sbin/install
2266# AIX /bin/install
2267# AmigaOS /C/install, which installs bootblocks on floppy discs
2268# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271# OS/2's system install, which has a completely different semantic
2272# ./install, which can be erroneously created by make from ./install.sh.
2273# Reject install programs that cannot install multiple files.
2274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2275$as_echo_n "checking for a BSD-compatible install... " >&6; }
2276if test -z "$INSTALL"; then
2277if ${ac_cv_path_install+:} false; then :
2278  $as_echo_n "(cached) " >&6
2279else
2280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283  IFS=$as_save_IFS
2284  test -z "$as_dir" && as_dir=.
2285    # Account for people who put trailing slashes in PATH elements.
2286case $as_dir/ in #((
2287  ./ | .// | /[cC]/* | \
2288  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2290  /usr/ucb/* ) ;;
2291  *)
2292    # OSF1 and SCO ODT 3.0 have their own names for install.
2293    # Don't use installbsd from OSF since it installs stuff as root
2294    # by default.
2295    for ac_prog in ginstall scoinst install; do
2296      for ac_exec_ext in '' $ac_executable_extensions; do
2297	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298	  if test $ac_prog = install &&
2299	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300	    # AIX install.  It has an incompatible calling convention.
2301	    :
2302	  elif test $ac_prog = install &&
2303	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304	    # program-specific install script used by HP pwplus--don't use.
2305	    :
2306	  else
2307	    rm -rf conftest.one conftest.two conftest.dir
2308	    echo one > conftest.one
2309	    echo two > conftest.two
2310	    mkdir conftest.dir
2311	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2312	      test -s conftest.one && test -s conftest.two &&
2313	      test -s conftest.dir/conftest.one &&
2314	      test -s conftest.dir/conftest.two
2315	    then
2316	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317	      break 3
2318	    fi
2319	  fi
2320	fi
2321      done
2322    done
2323    ;;
2324esac
2325
2326  done
2327IFS=$as_save_IFS
2328
2329rm -rf conftest.one conftest.two conftest.dir
2330
2331fi
2332  if test "${ac_cv_path_install+set}" = set; then
2333    INSTALL=$ac_cv_path_install
2334  else
2335    # As a last resort, use the slow shell script.  Don't cache a
2336    # value for INSTALL within a source directory, because that will
2337    # break other packages using the cache if that directory is
2338    # removed, or if the value is a relative name.
2339    INSTALL=$ac_install_sh
2340  fi
2341fi
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2343$as_echo "$INSTALL" >&6; }
2344
2345# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346# It thinks the first close brace ends the variable substitution.
2347test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348
2349test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350
2351test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2354$as_echo_n "checking whether build environment is sane... " >&6; }
2355# Just in case
2356sleep 1
2357echo timestamp > conftest.file
2358# Reject unsafe characters in $srcdir or the absolute working directory
2359# name.  Accept space and tab only in the latter.
2360am_lf='
2361'
2362case `pwd` in
2363  *[\\\"\#\$\&\'\`$am_lf]*)
2364    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365esac
2366case $srcdir in
2367  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2368    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2369esac
2370
2371# Do `set' in a subshell so we don't clobber the current shell's
2372# arguments.  Must try -L first in case configure is actually a
2373# symlink; some systems play weird games with the mod time of symlinks
2374# (eg FreeBSD returns the mod time of the symlink's containing
2375# directory).
2376if (
2377   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2378   if test "$*" = "X"; then
2379      # -L didn't work.
2380      set X `ls -t "$srcdir/configure" conftest.file`
2381   fi
2382   rm -f conftest.file
2383   if test "$*" != "X $srcdir/configure conftest.file" \
2384      && test "$*" != "X conftest.file $srcdir/configure"; then
2385
2386      # If neither matched, then we have a broken ls.  This can happen
2387      # if, for instance, CONFIG_SHELL is bash and it inherits a
2388      # broken ls alias from the environment.  This has actually
2389      # happened.  Such a system could not be considered "sane".
2390      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2391alias in your environment" "$LINENO" 5
2392   fi
2393
2394   test "$2" = conftest.file
2395   )
2396then
2397   # Ok.
2398   :
2399else
2400   as_fn_error $? "newly created file is older than distributed files!
2401Check your system clock" "$LINENO" 5
2402fi
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404$as_echo "yes" >&6; }
2405test "$program_prefix" != NONE &&
2406  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407# Use a double $ so make ignores it.
2408test "$program_suffix" != NONE &&
2409  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410# Double any \ or $.
2411# By default was `s,x,x', remove it if useless.
2412ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414
2415# expand $ac_aux_dir to an absolute path
2416am_aux_dir=`cd $ac_aux_dir && pwd`
2417
2418if test x"${MISSING+set}" != xset; then
2419  case $am_aux_dir in
2420  *\ * | *\	*)
2421    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2422  *)
2423    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2424  esac
2425fi
2426# Use eval to expand $SHELL
2427if eval "$MISSING --run true"; then
2428  am_missing_run="$MISSING --run "
2429else
2430  am_missing_run=
2431  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2432$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2433fi
2434
2435if test x"${install_sh}" != xset; then
2436  case $am_aux_dir in
2437  *\ * | *\	*)
2438    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2439  *)
2440    install_sh="\${SHELL} $am_aux_dir/install-sh"
2441  esac
2442fi
2443
2444# Installed binaries are usually stripped using `strip' when the user
2445# run `make install-strip'.  However `strip' might not be the right
2446# tool to use in cross-compilation environments, therefore Automake
2447# will honor the `STRIP' environment variable to overrule this program.
2448if test "$cross_compiling" != no; then
2449  if test -n "$ac_tool_prefix"; then
2450  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451set dummy ${ac_tool_prefix}strip; ac_word=$2
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
2454if ${ac_cv_prog_STRIP+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  if test -n "$STRIP"; then
2458  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472  done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477STRIP=$ac_cv_prog_STRIP
2478if test -n "$STRIP"; then
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2480$as_echo "$STRIP" >&6; }
2481else
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483$as_echo "no" >&6; }
2484fi
2485
2486
2487fi
2488if test -z "$ac_cv_prog_STRIP"; then
2489  ac_ct_STRIP=$STRIP
2490  # Extract the first word of "strip", so it can be a program name with args.
2491set dummy strip; ac_word=$2
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493$as_echo_n "checking for $ac_word... " >&6; }
2494if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2495  $as_echo_n "(cached) " >&6
2496else
2497  if test -n "$ac_ct_STRIP"; then
2498  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503  IFS=$as_save_IFS
2504  test -z "$as_dir" && as_dir=.
2505    for ac_exec_ext in '' $ac_executable_extensions; do
2506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507    ac_cv_prog_ac_ct_STRIP="strip"
2508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509    break 2
2510  fi
2511done
2512  done
2513IFS=$as_save_IFS
2514
2515fi
2516fi
2517ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2518if test -n "$ac_ct_STRIP"; then
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2520$as_echo "$ac_ct_STRIP" >&6; }
2521else
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523$as_echo "no" >&6; }
2524fi
2525
2526  if test "x$ac_ct_STRIP" = x; then
2527    STRIP=":"
2528  else
2529    case $cross_compiling:$ac_tool_warned in
2530yes:)
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533ac_tool_warned=yes ;;
2534esac
2535    STRIP=$ac_ct_STRIP
2536  fi
2537else
2538  STRIP="$ac_cv_prog_STRIP"
2539fi
2540
2541fi
2542INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2545$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2546if test -z "$MKDIR_P"; then
2547  if ${ac_cv_path_mkdir+:} false; then :
2548  $as_echo_n "(cached) " >&6
2549else
2550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2552do
2553  IFS=$as_save_IFS
2554  test -z "$as_dir" && as_dir=.
2555    for ac_prog in mkdir gmkdir; do
2556	 for ac_exec_ext in '' $ac_executable_extensions; do
2557	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2558	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2559	     'mkdir (GNU coreutils) '* | \
2560	     'mkdir (coreutils) '* | \
2561	     'mkdir (fileutils) '4.1*)
2562	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2563	       break 3;;
2564	   esac
2565	 done
2566       done
2567  done
2568IFS=$as_save_IFS
2569
2570fi
2571
2572  test -d ./--version && rmdir ./--version
2573  if test "${ac_cv_path_mkdir+set}" = set; then
2574    MKDIR_P="$ac_cv_path_mkdir -p"
2575  else
2576    # As a last resort, use the slow shell script.  Don't cache a
2577    # value for MKDIR_P within a source directory, because that will
2578    # break other packages using the cache if that directory is
2579    # removed, or if the value is a relative name.
2580    MKDIR_P="$ac_install_sh -d"
2581  fi
2582fi
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2584$as_echo "$MKDIR_P" >&6; }
2585
2586mkdir_p="$MKDIR_P"
2587case $mkdir_p in
2588  [\\/$]* | ?:[\\/]*) ;;
2589  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2590esac
2591
2592for ac_prog in gawk mawk nawk awk
2593do
2594  # Extract the first word of "$ac_prog", so it can be a program name with args.
2595set dummy $ac_prog; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_AWK+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$AWK"; then
2602  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611    ac_cv_prog_AWK="$ac_prog"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621AWK=$ac_cv_prog_AWK
2622if test -n "$AWK"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624$as_echo "$AWK" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630
2631  test -n "$AWK" && break
2632done
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636set x ${MAKE-make}
2637ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639  $as_echo_n "(cached) " >&6
2640else
2641  cat >conftest.make <<\_ACEOF
2642SHELL = /bin/sh
2643all:
2644	@echo '@@@%%%=$(MAKE)=@@@%%%'
2645_ACEOF
2646# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648  *@@@%%%=?*=@@@%%%*)
2649    eval ac_cv_prog_make_${ac_make}_set=yes;;
2650  *)
2651    eval ac_cv_prog_make_${ac_make}_set=no;;
2652esac
2653rm -f conftest.make
2654fi
2655if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
2658  SET_MAKE=
2659else
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662  SET_MAKE="MAKE=${MAKE-make}"
2663fi
2664
2665rm -rf .tst 2>/dev/null
2666mkdir .tst 2>/dev/null
2667if test -d .tst; then
2668  am__leading_dot=.
2669else
2670  am__leading_dot=_
2671fi
2672rmdir .tst 2>/dev/null
2673
2674if test "`cd $srcdir && pwd`" != "`pwd`"; then
2675  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2676  # is not polluted with repeated "-I."
2677  am__isrc=' -I$(srcdir)'
2678  # test to see if srcdir already configured
2679  if test -f $srcdir/config.status; then
2680    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2681  fi
2682fi
2683
2684# test whether we have cygpath
2685if test -z "$CYGPATH_W"; then
2686  if (cygpath --version) >/dev/null 2>/dev/null; then
2687    CYGPATH_W='cygpath -w'
2688  else
2689    CYGPATH_W=echo
2690  fi
2691fi
2692
2693
2694# Define the identity of the package.
2695 PACKAGE='love'
2696 VERSION='0.8.0'
2697
2698
2699cat >>confdefs.h <<_ACEOF
2700#define PACKAGE "$PACKAGE"
2701_ACEOF
2702
2703
2704cat >>confdefs.h <<_ACEOF
2705#define VERSION "$VERSION"
2706_ACEOF
2707
2708# Some tools Automake needs.
2709
2710ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2711
2712
2713AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2714
2715
2716AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2717
2718
2719AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2720
2721
2722MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2723
2724# We need awk for the "check" target.  The system "awk" is bad on
2725# some platforms.
2726# Always define AMTAR for backward compatibility.  Yes, it's still used
2727# in the wild :-(  We should find a proper way to deprecate it ...
2728AMTAR='$${TAR-tar}'
2729
2730
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2732$as_echo_n "checking how to create a ustar tar archive... " >&6; }
2733# Loop over all known methods to create a tar archive until one works.
2734_am_tools='gnutar plaintar pax cpio none'
2735_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2736# Do not fold the above two line into one, because Tru64 sh and
2737# Solaris sh will not grok spaces in the rhs of `-'.
2738for _am_tool in $_am_tools
2739do
2740  case $_am_tool in
2741  gnutar)
2742    for _am_tar in tar gnutar gtar;
2743    do
2744      { echo "$as_me:$LINENO: $_am_tar --version" >&5
2745   ($_am_tar --version) >&5 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } && break
2749    done
2750    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2751    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2752    am__untar="$_am_tar -xf -"
2753    ;;
2754  plaintar)
2755    # Must skip GNU tar: if it does not support --format= it doesn't create
2756    # ustar tarball either.
2757    (tar --version) >/dev/null 2>&1 && continue
2758    am__tar='tar chf - "$$tardir"'
2759    am__tar_='tar chf - "$tardir"'
2760    am__untar='tar xf -'
2761    ;;
2762  pax)
2763    am__tar='pax -L -x ustar -w "$$tardir"'
2764    am__tar_='pax -L -x ustar -w "$tardir"'
2765    am__untar='pax -r'
2766    ;;
2767  cpio)
2768    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2769    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2770    am__untar='cpio -i -H ustar -d'
2771    ;;
2772  none)
2773    am__tar=false
2774    am__tar_=false
2775    am__untar=false
2776    ;;
2777  esac
2778
2779  # If the value was cached, stop now.  We just wanted to have am__tar
2780  # and am__untar set.
2781  test -n "${am_cv_prog_tar_ustar}" && break
2782
2783  # tar/untar a dummy directory, and stop if the command works
2784  rm -rf conftest.dir
2785  mkdir conftest.dir
2786  echo GrepMe > conftest.dir/file
2787  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2788   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }
2792  rm -rf conftest.dir
2793  if test -s conftest.tar; then
2794    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2795   ($am__untar <conftest.tar) >&5 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }
2799    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2800  fi
2801done
2802rm -rf conftest.dir
2803
2804if ${am_cv_prog_tar_ustar+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  am_cv_prog_tar_ustar=$_am_tool
2808fi
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2811$as_echo "$am_cv_prog_tar_ustar" >&6; }
2812
2813
2814
2815
2816
2817
2818case `pwd` in
2819  *\ * | *\	*)
2820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2821$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2822esac
2823
2824
2825
2826macro_version='2.4.2'
2827macro_revision='1.3337'
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841ltmain="$ac_aux_dir/ltmain.sh"
2842
2843# Make sure we can run config.sub.
2844$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2845  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2846
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2848$as_echo_n "checking build system type... " >&6; }
2849if ${ac_cv_build+:} false; then :
2850  $as_echo_n "(cached) " >&6
2851else
2852  ac_build_alias=$build_alias
2853test "x$ac_build_alias" = x &&
2854  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2855test "x$ac_build_alias" = x &&
2856  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2857ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2858  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2859
2860fi
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2862$as_echo "$ac_cv_build" >&6; }
2863case $ac_cv_build in
2864*-*-*) ;;
2865*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2866esac
2867build=$ac_cv_build
2868ac_save_IFS=$IFS; IFS='-'
2869set x $ac_cv_build
2870shift
2871build_cpu=$1
2872build_vendor=$2
2873shift; shift
2874# Remember, the first character of IFS is used to create $*,
2875# except with old shells:
2876build_os=$*
2877IFS=$ac_save_IFS
2878case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2879
2880
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2882$as_echo_n "checking host system type... " >&6; }
2883if ${ac_cv_host+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test "x$host_alias" = x; then
2887  ac_cv_host=$ac_cv_build
2888else
2889  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2890    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2891fi
2892
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2895$as_echo "$ac_cv_host" >&6; }
2896case $ac_cv_host in
2897*-*-*) ;;
2898*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2899esac
2900host=$ac_cv_host
2901ac_save_IFS=$IFS; IFS='-'
2902set x $ac_cv_host
2903shift
2904host_cpu=$1
2905host_vendor=$2
2906shift; shift
2907# Remember, the first character of IFS is used to create $*,
2908# except with old shells:
2909host_os=$*
2910IFS=$ac_save_IFS
2911case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2912
2913
2914# Backslashify metacharacters that are still active within
2915# double-quoted strings.
2916sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2917
2918# Same as above, but do not quote variable references.
2919double_quote_subst='s/\(["`\\]\)/\\\1/g'
2920
2921# Sed substitution to delay expansion of an escaped shell variable in a
2922# double_quote_subst'ed string.
2923delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2924
2925# Sed substitution to delay expansion of an escaped single quote.
2926delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2927
2928# Sed substitution to avoid accidental globbing in evaled expressions
2929no_glob_subst='s/\*/\\\*/g'
2930
2931ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2932ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2933ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2936$as_echo_n "checking how to print strings... " >&6; }
2937# Test print first, because it will be a builtin if present.
2938if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2939   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2940  ECHO='print -r --'
2941elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2942  ECHO='printf %s\n'
2943else
2944  # Use this function as a fallback that always works.
2945  func_fallback_echo ()
2946  {
2947    eval 'cat <<_LTECHO_EOF
2948$1
2949_LTECHO_EOF'
2950  }
2951  ECHO='func_fallback_echo'
2952fi
2953
2954# func_echo_all arg...
2955# Invoke $ECHO with all args, space-separated.
2956func_echo_all ()
2957{
2958    $ECHO ""
2959}
2960
2961case "$ECHO" in
2962  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2963$as_echo "printf" >&6; } ;;
2964  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2965$as_echo "print -r" >&6; } ;;
2966  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2967$as_echo "cat" >&6; } ;;
2968esac
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983DEPDIR="${am__leading_dot}deps"
2984
2985ac_config_commands="$ac_config_commands depfiles"
2986
2987
2988am_make=${MAKE-make}
2989cat > confinc << 'END'
2990am__doit:
2991	@echo this is the am__doit target
2992.PHONY: am__doit
2993END
2994# If we don't find an include directive, just comment out the code.
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2996$as_echo_n "checking for style of include used by $am_make... " >&6; }
2997am__include="#"
2998am__quote=
2999_am_result=none
3000# First try GNU make style include.
3001echo "include confinc" > confmf
3002# Ignore all kinds of additional output from `make'.
3003case `$am_make -s -f confmf 2> /dev/null` in #(
3004*the\ am__doit\ target*)
3005  am__include=include
3006  am__quote=
3007  _am_result=GNU
3008  ;;
3009esac
3010# Now try BSD make style include.
3011if test "$am__include" = "#"; then
3012   echo '.include "confinc"' > confmf
3013   case `$am_make -s -f confmf 2> /dev/null` in #(
3014   *the\ am__doit\ target*)
3015     am__include=.include
3016     am__quote="\""
3017     _am_result=BSD
3018     ;;
3019   esac
3020fi
3021
3022
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3024$as_echo "$_am_result" >&6; }
3025rm -f confinc confmf
3026
3027# Check whether --enable-dependency-tracking was given.
3028if test "${enable_dependency_tracking+set}" = set; then :
3029  enableval=$enable_dependency_tracking;
3030fi
3031
3032if test "x$enable_dependency_tracking" != xno; then
3033  am_depcomp="$ac_aux_dir/depcomp"
3034  AMDEPBACKSLASH='\'
3035  am__nodep='_no'
3036fi
3037 if test "x$enable_dependency_tracking" != xno; then
3038  AMDEP_TRUE=
3039  AMDEP_FALSE='#'
3040else
3041  AMDEP_TRUE='#'
3042  AMDEP_FALSE=
3043fi
3044
3045
3046ac_ext=c
3047ac_cpp='$CPP $CPPFLAGS'
3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051if test -n "$ac_tool_prefix"; then
3052  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3053set dummy ${ac_tool_prefix}gcc; ac_word=$2
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055$as_echo_n "checking for $ac_word... " >&6; }
3056if ${ac_cv_prog_CC+:} false; then :
3057  $as_echo_n "(cached) " >&6
3058else
3059  if test -n "$CC"; then
3060  ac_cv_prog_CC="$CC" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067    for ac_exec_ext in '' $ac_executable_extensions; do
3068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074  done
3075IFS=$as_save_IFS
3076
3077fi
3078fi
3079CC=$ac_cv_prog_CC
3080if test -n "$CC"; then
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082$as_echo "$CC" >&6; }
3083else
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086fi
3087
3088
3089fi
3090if test -z "$ac_cv_prog_CC"; then
3091  ac_ct_CC=$CC
3092  # Extract the first word of "gcc", so it can be a program name with args.
3093set dummy gcc; ac_word=$2
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095$as_echo_n "checking for $ac_word... " >&6; }
3096if ${ac_cv_prog_ac_ct_CC+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  if test -n "$ac_ct_CC"; then
3100  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101else
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  test -z "$as_dir" && as_dir=.
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109    ac_cv_prog_ac_ct_CC="gcc"
3110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114  done
3115IFS=$as_save_IFS
3116
3117fi
3118fi
3119ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120if test -n "$ac_ct_CC"; then
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3122$as_echo "$ac_ct_CC" >&6; }
3123else
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126fi
3127
3128  if test "x$ac_ct_CC" = x; then
3129    CC=""
3130  else
3131    case $cross_compiling:$ac_tool_warned in
3132yes:)
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135ac_tool_warned=yes ;;
3136esac
3137    CC=$ac_ct_CC
3138  fi
3139else
3140  CC="$ac_cv_prog_CC"
3141fi
3142
3143if test -z "$CC"; then
3144          if test -n "$ac_tool_prefix"; then
3145    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3146set dummy ${ac_tool_prefix}cc; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if ${ac_cv_prog_CC+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  if test -n "$CC"; then
3153  ac_cv_prog_CC="$CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162    ac_cv_prog_CC="${ac_tool_prefix}cc"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167  done
3168IFS=$as_save_IFS
3169
3170fi
3171fi
3172CC=$ac_cv_prog_CC
3173if test -n "$CC"; then
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175$as_echo "$CC" >&6; }
3176else
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179fi
3180
3181
3182  fi
3183fi
3184if test -z "$CC"; then
3185  # Extract the first word of "cc", so it can be a program name with args.
3186set dummy cc; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if ${ac_cv_prog_CC+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  if test -n "$CC"; then
3193  ac_cv_prog_CC="$CC" # Let the user override the test.
3194else
3195  ac_prog_rejected=no
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201    for ac_exec_ext in '' $ac_executable_extensions; do
3202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3204       ac_prog_rejected=yes
3205       continue
3206     fi
3207    ac_cv_prog_CC="cc"
3208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209    break 2
3210  fi
3211done
3212  done
3213IFS=$as_save_IFS
3214
3215if test $ac_prog_rejected = yes; then
3216  # We found a bogon in the path, so make sure we never use it.
3217  set dummy $ac_cv_prog_CC
3218  shift
3219  if test $# != 0; then
3220    # We chose a different compiler from the bogus one.
3221    # However, it has the same basename, so the bogon will be chosen
3222    # first if we set CC to just the basename; use the full file name.
3223    shift
3224    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3225  fi
3226fi
3227fi
3228fi
3229CC=$ac_cv_prog_CC
3230if test -n "$CC"; then
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232$as_echo "$CC" >&6; }
3233else
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236fi
3237
3238
3239fi
3240if test -z "$CC"; then
3241  if test -n "$ac_tool_prefix"; then
3242  for ac_prog in cl.exe
3243  do
3244    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247$as_echo_n "checking for $ac_word... " >&6; }
3248if ${ac_cv_prog_CC+:} false; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  if test -n "$CC"; then
3252  ac_cv_prog_CC="$CC" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259    for ac_exec_ext in '' $ac_executable_extensions; do
3260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265done
3266  done
3267IFS=$as_save_IFS
3268
3269fi
3270fi
3271CC=$ac_cv_prog_CC
3272if test -n "$CC"; then
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274$as_echo "$CC" >&6; }
3275else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278fi
3279
3280
3281    test -n "$CC" && break
3282  done
3283fi
3284if test -z "$CC"; then
3285  ac_ct_CC=$CC
3286  for ac_prog in cl.exe
3287do
3288  # Extract the first word of "$ac_prog", so it can be a program name with args.
3289set dummy $ac_prog; ac_word=$2
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291$as_echo_n "checking for $ac_word... " >&6; }
3292if ${ac_cv_prog_ac_ct_CC+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  if test -n "$ac_ct_CC"; then
3296  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303    for ac_exec_ext in '' $ac_executable_extensions; do
3304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305    ac_cv_prog_ac_ct_CC="$ac_prog"
3306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307    break 2
3308  fi
3309done
3310  done
3311IFS=$as_save_IFS
3312
3313fi
3314fi
3315ac_ct_CC=$ac_cv_prog_ac_ct_CC
3316if test -n "$ac_ct_CC"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3318$as_echo "$ac_ct_CC" >&6; }
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322fi
3323
3324
3325  test -n "$ac_ct_CC" && break
3326done
3327
3328  if test "x$ac_ct_CC" = x; then
3329    CC=""
3330  else
3331    case $cross_compiling:$ac_tool_warned in
3332yes:)
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335ac_tool_warned=yes ;;
3336esac
3337    CC=$ac_ct_CC
3338  fi
3339fi
3340
3341fi
3342
3343
3344test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346as_fn_error $? "no acceptable C compiler found in \$PATH
3347See \`config.log' for more details" "$LINENO" 5; }
3348
3349# Provide some information about the compiler.
3350$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3351set X $ac_compile
3352ac_compiler=$2
3353for ac_option in --version -v -V -qversion; do
3354  { { ac_try="$ac_compiler $ac_option >&5"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360$as_echo "$ac_try_echo"; } >&5
3361  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3362  ac_status=$?
3363  if test -s conftest.err; then
3364    sed '10a\
3365... rest of stderr output deleted ...
3366         10q' conftest.err >conftest.er1
3367    cat conftest.er1 >&5
3368  fi
3369  rm -f conftest.er1 conftest.err
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; }
3372done
3373
3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376
3377int
3378main ()
3379{
3380
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385ac_clean_files_save=$ac_clean_files
3386ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3387# Try to create an executable without -o first, disregard a.out.
3388# It will help us diagnose broken compilers, and finding out an intuition
3389# of exeext.
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3391$as_echo_n "checking whether the C compiler works... " >&6; }
3392ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3393
3394# The possible output files:
3395ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3396
3397ac_rmfiles=
3398for ac_file in $ac_files
3399do
3400  case $ac_file in
3401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3403  esac
3404done
3405rm -f $ac_rmfiles
3406
3407if { { ac_try="$ac_link_default"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_link_default") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3419# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3420# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3421# so that the user can short-circuit this test for compilers unknown to
3422# Autoconf.
3423for ac_file in $ac_files ''
3424do
3425  test -f "$ac_file" || continue
3426  case $ac_file in
3427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3428	;;
3429    [ab].out )
3430	# We found the default executable, but exeext='' is most
3431	# certainly right.
3432	break;;
3433    *.* )
3434	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3435	then :; else
3436	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437	fi
3438	# We set ac_cv_exeext here because the later test for it is not
3439	# safe: cross compilers may not add the suffix if given an `-o'
3440	# argument, so we may need to know it at that point already.
3441	# Even if this section looks crufty: it has the advantage of
3442	# actually working.
3443	break;;
3444    * )
3445	break;;
3446  esac
3447done
3448test "$ac_cv_exeext" = no && ac_cv_exeext=
3449
3450else
3451  ac_file=''
3452fi
3453if test -z "$ac_file"; then :
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
3456$as_echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461as_fn_error 77 "C compiler cannot create executables
3462See \`config.log' for more details" "$LINENO" 5; }
3463else
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3465$as_echo "yes" >&6; }
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3468$as_echo_n "checking for C compiler default output file name... " >&6; }
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3470$as_echo "$ac_file" >&6; }
3471ac_exeext=$ac_cv_exeext
3472
3473rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3474ac_clean_files=$ac_clean_files_save
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3476$as_echo_n "checking for suffix of executables... " >&6; }
3477if { { ac_try="$ac_link"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_link") 2>&5
3485  ac_status=$?
3486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }; then :
3488  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3489# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3490# work properly (i.e., refer to `conftest.exe'), while it won't with
3491# `rm'.
3492for ac_file in conftest.exe conftest conftest.*; do
3493  test -f "$ac_file" || continue
3494  case $ac_file in
3495    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497	  break;;
3498    * ) break;;
3499  esac
3500done
3501else
3502  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3505See \`config.log' for more details" "$LINENO" 5; }
3506fi
3507rm -f conftest conftest$ac_cv_exeext
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3509$as_echo "$ac_cv_exeext" >&6; }
3510
3511rm -f conftest.$ac_ext
3512EXEEXT=$ac_cv_exeext
3513ac_exeext=$EXEEXT
3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516#include <stdio.h>
3517int
3518main ()
3519{
3520FILE *f = fopen ("conftest.out", "w");
3521 return ferror (f) || fclose (f) != 0;
3522
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527ac_clean_files="$ac_clean_files conftest.out"
3528# Check that the compiler produces executables we can run.  If not, either
3529# the compiler is broken, or we cross compile.
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3531$as_echo_n "checking whether we are cross compiling... " >&6; }
3532if test "$cross_compiling" != yes; then
3533  { { ac_try="$ac_link"
3534case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540  (eval "$ac_link") 2>&5
3541  ac_status=$?
3542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543  test $ac_status = 0; }
3544  if { ac_try='./conftest$ac_cv_exeext'
3545  { { case "(($ac_try" in
3546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547  *) ac_try_echo=$ac_try;;
3548esac
3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550$as_echo "$ac_try_echo"; } >&5
3551  (eval "$ac_try") 2>&5
3552  ac_status=$?
3553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554  test $ac_status = 0; }; }; then
3555    cross_compiling=no
3556  else
3557    if test "$cross_compiling" = maybe; then
3558	cross_compiling=yes
3559    else
3560	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562as_fn_error $? "cannot run C compiled programs.
3563If you meant to cross compile, use \`--host'.
3564See \`config.log' for more details" "$LINENO" 5; }
3565    fi
3566  fi
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3569$as_echo "$cross_compiling" >&6; }
3570
3571rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3572ac_clean_files=$ac_clean_files_save
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3574$as_echo_n "checking for suffix of object files... " >&6; }
3575if ${ac_cv_objext+:} false; then :
3576  $as_echo_n "(cached) " >&6
3577else
3578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h.  */
3580
3581int
3582main ()
3583{
3584
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589rm -f conftest.o conftest.obj
3590if { { ac_try="$ac_compile"
3591case "(($ac_try" in
3592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593  *) ac_try_echo=$ac_try;;
3594esac
3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596$as_echo "$ac_try_echo"; } >&5
3597  (eval "$ac_compile") 2>&5
3598  ac_status=$?
3599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600  test $ac_status = 0; }; then :
3601  for ac_file in conftest.o conftest.obj conftest.*; do
3602  test -f "$ac_file" || continue;
3603  case $ac_file in
3604    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3605    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3606       break;;
3607  esac
3608done
3609else
3610  $as_echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error $? "cannot compute suffix of object files: cannot compile
3616See \`config.log' for more details" "$LINENO" 5; }
3617fi
3618rm -f conftest.$ac_cv_objext conftest.$ac_ext
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3621$as_echo "$ac_cv_objext" >&6; }
3622OBJEXT=$ac_cv_objext
3623ac_objext=$OBJEXT
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3625$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3626if ${ac_cv_c_compiler_gnu+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631
3632int
3633main ()
3634{
3635#ifndef __GNUC__
3636       choke me
3637#endif
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644  ac_compiler_gnu=yes
3645else
3646  ac_compiler_gnu=no
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649ac_cv_c_compiler_gnu=$ac_compiler_gnu
3650
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3653$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3654if test $ac_compiler_gnu = yes; then
3655  GCC=yes
3656else
3657  GCC=
3658fi
3659ac_test_CFLAGS=${CFLAGS+set}
3660ac_save_CFLAGS=$CFLAGS
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3662$as_echo_n "checking whether $CC accepts -g... " >&6; }
3663if ${ac_cv_prog_cc_g+:} false; then :
3664  $as_echo_n "(cached) " >&6
3665else
3666  ac_save_c_werror_flag=$ac_c_werror_flag
3667   ac_c_werror_flag=yes
3668   ac_cv_prog_cc_g=no
3669   CFLAGS="-g"
3670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h.  */
3672
3673int
3674main ()
3675{
3676
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681if ac_fn_c_try_compile "$LINENO"; then :
3682  ac_cv_prog_cc_g=yes
3683else
3684  CFLAGS=""
3685      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_compile "$LINENO"; then :
3697
3698else
3699  ac_c_werror_flag=$ac_save_c_werror_flag
3700	 CFLAGS="-g"
3701	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704int
3705main ()
3706{
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712if ac_fn_c_try_compile "$LINENO"; then :
3713  ac_cv_prog_cc_g=yes
3714fi
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720   ac_c_werror_flag=$ac_save_c_werror_flag
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3723$as_echo "$ac_cv_prog_cc_g" >&6; }
3724if test "$ac_test_CFLAGS" = set; then
3725  CFLAGS=$ac_save_CFLAGS
3726elif test $ac_cv_prog_cc_g = yes; then
3727  if test "$GCC" = yes; then
3728    CFLAGS="-g -O2"
3729  else
3730    CFLAGS="-g"
3731  fi
3732else
3733  if test "$GCC" = yes; then
3734    CFLAGS="-O2"
3735  else
3736    CFLAGS=
3737  fi
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3740$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3741if ${ac_cv_prog_cc_c89+:} false; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  ac_cv_prog_cc_c89=no
3745ac_save_CC=$CC
3746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h.  */
3748#include <stdarg.h>
3749#include <stdio.h>
3750#include <sys/types.h>
3751#include <sys/stat.h>
3752/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3753struct buf { int x; };
3754FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755static char *e (p, i)
3756     char **p;
3757     int i;
3758{
3759  return p[i];
3760}
3761static char *f (char * (*g) (char **, int), char **p, ...)
3762{
3763  char *s;
3764  va_list v;
3765  va_start (v,p);
3766  s = g (p, va_arg (v,int));
3767  va_end (v);
3768  return s;
3769}
3770
3771/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3772   function prototypes and stuff, but not '\xHH' hex character constants.
3773   These don't provoke an error unfortunately, instead are silently treated
3774   as 'x'.  The following induces an error, until -std is added to get
3775   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3776   array size at least.  It's necessary to write '\x00'==0 to get something
3777   that's true only with -std.  */
3778int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3779
3780/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3781   inside strings and character constants.  */
3782#define FOO(x) 'x'
3783int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3784
3785int test (int i, double x);
3786struct s1 {int (*f) (int a);};
3787struct s2 {int (*f) (double a);};
3788int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789int argc;
3790char **argv;
3791int
3792main ()
3793{
3794return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3800	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801do
3802  CC="$ac_save_CC $ac_arg"
3803  if ac_fn_c_try_compile "$LINENO"; then :
3804  ac_cv_prog_cc_c89=$ac_arg
3805fi
3806rm -f core conftest.err conftest.$ac_objext
3807  test "x$ac_cv_prog_cc_c89" != "xno" && break
3808done
3809rm -f conftest.$ac_ext
3810CC=$ac_save_CC
3811
3812fi
3813# AC_CACHE_VAL
3814case "x$ac_cv_prog_cc_c89" in
3815  x)
3816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3817$as_echo "none needed" >&6; } ;;
3818  xno)
3819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3820$as_echo "unsupported" >&6; } ;;
3821  *)
3822    CC="$CC $ac_cv_prog_cc_c89"
3823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3824$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3825esac
3826if test "x$ac_cv_prog_cc_c89" != xno; then :
3827
3828fi
3829
3830ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836depcc="$CC"   am_compiler_list=
3837
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3839$as_echo_n "checking dependency style of $depcc... " >&6; }
3840if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3844  # We make a subdir and do the tests there.  Otherwise we can end up
3845  # making bogus files that we don't know about and never remove.  For
3846  # instance it was reported that on HP-UX the gcc test will end up
3847  # making a dummy file named `D' -- because `-MD' means `put the output
3848  # in D'.
3849  rm -rf conftest.dir
3850  mkdir conftest.dir
3851  # Copy depcomp to subdir because otherwise we won't find it if we're
3852  # using a relative directory.
3853  cp "$am_depcomp" conftest.dir
3854  cd conftest.dir
3855  # We will build objects and dependencies in a subdirectory because
3856  # it helps to detect inapplicable dependency modes.  For instance
3857  # both Tru64's cc and ICC support -MD to output dependencies as a
3858  # side effect of compilation, but ICC will put the dependencies in
3859  # the current directory while Tru64 will put them in the object
3860  # directory.
3861  mkdir sub
3862
3863  am_cv_CC_dependencies_compiler_type=none
3864  if test "$am_compiler_list" = ""; then
3865     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3866  fi
3867  am__universal=false
3868  case " $depcc " in #(
3869     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3870     esac
3871
3872  for depmode in $am_compiler_list; do
3873    # Setup a source with many dependencies, because some compilers
3874    # like to wrap large dependency lists on column 80 (with \), and
3875    # we should not choose a depcomp mode which is confused by this.
3876    #
3877    # We need to recreate these files for each test, as the compiler may
3878    # overwrite some of them when testing with obscure command lines.
3879    # This happens at least with the AIX C compiler.
3880    : > sub/conftest.c
3881    for i in 1 2 3 4 5 6; do
3882      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3883      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3884      # Solaris 8's {/usr,}/bin/sh.
3885      touch sub/conftst$i.h
3886    done
3887    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3888
3889    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3890    # mode.  It turns out that the SunPro C++ compiler does not properly
3891    # handle `-M -o', and we need to detect this.  Also, some Intel
3892    # versions had trouble with output in subdirs
3893    am__obj=sub/conftest.${OBJEXT-o}
3894    am__minus_obj="-o $am__obj"
3895    case $depmode in
3896    gcc)
3897      # This depmode causes a compiler race in universal mode.
3898      test "$am__universal" = false || continue
3899      ;;
3900    nosideeffect)
3901      # after this tag, mechanisms are not by side-effect, so they'll
3902      # only be used when explicitly requested
3903      if test "x$enable_dependency_tracking" = xyes; then
3904	continue
3905      else
3906	break
3907      fi
3908      ;;
3909    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3910      # This compiler won't grok `-c -o', but also, the minuso test has
3911      # not run yet.  These depmodes are late enough in the game, and
3912      # so weak that their functioning should not be impacted.
3913      am__obj=conftest.${OBJEXT-o}
3914      am__minus_obj=
3915      ;;
3916    none) break ;;
3917    esac
3918    if depmode=$depmode \
3919       source=sub/conftest.c object=$am__obj \
3920       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3921       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3922         >/dev/null 2>conftest.err &&
3923       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3924       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3925       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3926       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3927      # icc doesn't choke on unknown options, it will just issue warnings
3928      # or remarks (even with -Werror).  So we grep stderr for any message
3929      # that says an option was ignored or not supported.
3930      # When given -MP, icc 7.0 and 7.1 complain thusly:
3931      #   icc: Command line warning: ignoring option '-M'; no argument required
3932      # The diagnosis changed in icc 8.0:
3933      #   icc: Command line remark: option '-MP' not supported
3934      if (grep 'ignoring option' conftest.err ||
3935          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3936        am_cv_CC_dependencies_compiler_type=$depmode
3937        break
3938      fi
3939    fi
3940  done
3941
3942  cd ..
3943  rm -rf conftest.dir
3944else
3945  am_cv_CC_dependencies_compiler_type=none
3946fi
3947
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3950$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3952
3953 if
3954  test "x$enable_dependency_tracking" != xno \
3955  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3956  am__fastdepCC_TRUE=
3957  am__fastdepCC_FALSE='#'
3958else
3959  am__fastdepCC_TRUE='#'
3960  am__fastdepCC_FALSE=
3961fi
3962
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3965$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3966if ${ac_cv_path_SED+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3970     for ac_i in 1 2 3 4 5 6 7; do
3971       ac_script="$ac_script$as_nl$ac_script"
3972     done
3973     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3974     { ac_script=; unset ac_script;}
3975     if test -z "$SED"; then
3976  ac_path_SED_found=false
3977  # Loop through the user's path and test for each of PROGNAME-LIST
3978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981  IFS=$as_save_IFS
3982  test -z "$as_dir" && as_dir=.
3983    for ac_prog in sed gsed; do
3984    for ac_exec_ext in '' $ac_executable_extensions; do
3985      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3986      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3987# Check for GNU ac_path_SED and select it if it is found.
3988  # Check for GNU $ac_path_SED
3989case `"$ac_path_SED" --version 2>&1` in
3990*GNU*)
3991  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3992*)
3993  ac_count=0
3994  $as_echo_n 0123456789 >"conftest.in"
3995  while :
3996  do
3997    cat "conftest.in" "conftest.in" >"conftest.tmp"
3998    mv "conftest.tmp" "conftest.in"
3999    cp "conftest.in" "conftest.nl"
4000    $as_echo '' >> "conftest.nl"
4001    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003    as_fn_arith $ac_count + 1 && ac_count=$as_val
4004    if test $ac_count -gt ${ac_path_SED_max-0}; then
4005      # Best one so far, save it but keep looking for a better one
4006      ac_cv_path_SED="$ac_path_SED"
4007      ac_path_SED_max=$ac_count
4008    fi
4009    # 10*(2^10) chars as input seems more than enough
4010    test $ac_count -gt 10 && break
4011  done
4012  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013esac
4014
4015      $ac_path_SED_found && break 3
4016    done
4017  done
4018  done
4019IFS=$as_save_IFS
4020  if test -z "$ac_cv_path_SED"; then
4021    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4022  fi
4023else
4024  ac_cv_path_SED=$SED
4025fi
4026
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4029$as_echo "$ac_cv_path_SED" >&6; }
4030 SED="$ac_cv_path_SED"
4031  rm -f conftest.sed
4032
4033test -z "$SED" && SED=sed
4034Xsed="$SED -e 1s/^X//"
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4047$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4048if ${ac_cv_path_GREP+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  if test -z "$GREP"; then
4052  ac_path_GREP_found=false
4053  # Loop through the user's path and test for each of PROGNAME-LIST
4054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056do
4057  IFS=$as_save_IFS
4058  test -z "$as_dir" && as_dir=.
4059    for ac_prog in grep ggrep; do
4060    for ac_exec_ext in '' $ac_executable_extensions; do
4061      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4062      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4063# Check for GNU ac_path_GREP and select it if it is found.
4064  # Check for GNU $ac_path_GREP
4065case `"$ac_path_GREP" --version 2>&1` in
4066*GNU*)
4067  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4068*)
4069  ac_count=0
4070  $as_echo_n 0123456789 >"conftest.in"
4071  while :
4072  do
4073    cat "conftest.in" "conftest.in" >"conftest.tmp"
4074    mv "conftest.tmp" "conftest.in"
4075    cp "conftest.in" "conftest.nl"
4076    $as_echo 'GREP' >> "conftest.nl"
4077    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079    as_fn_arith $ac_count + 1 && ac_count=$as_val
4080    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4081      # Best one so far, save it but keep looking for a better one
4082      ac_cv_path_GREP="$ac_path_GREP"
4083      ac_path_GREP_max=$ac_count
4084    fi
4085    # 10*(2^10) chars as input seems more than enough
4086    test $ac_count -gt 10 && break
4087  done
4088  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089esac
4090
4091      $ac_path_GREP_found && break 3
4092    done
4093  done
4094  done
4095IFS=$as_save_IFS
4096  if test -z "$ac_cv_path_GREP"; then
4097    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4098  fi
4099else
4100  ac_cv_path_GREP=$GREP
4101fi
4102
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4105$as_echo "$ac_cv_path_GREP" >&6; }
4106 GREP="$ac_cv_path_GREP"
4107
4108
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4110$as_echo_n "checking for egrep... " >&6; }
4111if ${ac_cv_path_EGREP+:} false; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4115   then ac_cv_path_EGREP="$GREP -E"
4116   else
4117     if test -z "$EGREP"; then
4118  ac_path_EGREP_found=false
4119  # Loop through the user's path and test for each of PROGNAME-LIST
4120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122do
4123  IFS=$as_save_IFS
4124  test -z "$as_dir" && as_dir=.
4125    for ac_prog in egrep; do
4126    for ac_exec_ext in '' $ac_executable_extensions; do
4127      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4128      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4129# Check for GNU ac_path_EGREP and select it if it is found.
4130  # Check for GNU $ac_path_EGREP
4131case `"$ac_path_EGREP" --version 2>&1` in
4132*GNU*)
4133  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4134*)
4135  ac_count=0
4136  $as_echo_n 0123456789 >"conftest.in"
4137  while :
4138  do
4139    cat "conftest.in" "conftest.in" >"conftest.tmp"
4140    mv "conftest.tmp" "conftest.in"
4141    cp "conftest.in" "conftest.nl"
4142    $as_echo 'EGREP' >> "conftest.nl"
4143    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145    as_fn_arith $ac_count + 1 && ac_count=$as_val
4146    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4147      # Best one so far, save it but keep looking for a better one
4148      ac_cv_path_EGREP="$ac_path_EGREP"
4149      ac_path_EGREP_max=$ac_count
4150    fi
4151    # 10*(2^10) chars as input seems more than enough
4152    test $ac_count -gt 10 && break
4153  done
4154  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155esac
4156
4157      $ac_path_EGREP_found && break 3
4158    done
4159  done
4160  done
4161IFS=$as_save_IFS
4162  if test -z "$ac_cv_path_EGREP"; then
4163    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164  fi
4165else
4166  ac_cv_path_EGREP=$EGREP
4167fi
4168
4169   fi
4170fi
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4172$as_echo "$ac_cv_path_EGREP" >&6; }
4173 EGREP="$ac_cv_path_EGREP"
4174
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4177$as_echo_n "checking for fgrep... " >&6; }
4178if ${ac_cv_path_FGREP+:} false; then :
4179  $as_echo_n "(cached) " >&6
4180else
4181  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4182   then ac_cv_path_FGREP="$GREP -F"
4183   else
4184     if test -z "$FGREP"; then
4185  ac_path_FGREP_found=false
4186  # Loop through the user's path and test for each of PROGNAME-LIST
4187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189do
4190  IFS=$as_save_IFS
4191  test -z "$as_dir" && as_dir=.
4192    for ac_prog in fgrep; do
4193    for ac_exec_ext in '' $ac_executable_extensions; do
4194      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4195      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4196# Check for GNU ac_path_FGREP and select it if it is found.
4197  # Check for GNU $ac_path_FGREP
4198case `"$ac_path_FGREP" --version 2>&1` in
4199*GNU*)
4200  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4201*)
4202  ac_count=0
4203  $as_echo_n 0123456789 >"conftest.in"
4204  while :
4205  do
4206    cat "conftest.in" "conftest.in" >"conftest.tmp"
4207    mv "conftest.tmp" "conftest.in"
4208    cp "conftest.in" "conftest.nl"
4209    $as_echo 'FGREP' >> "conftest.nl"
4210    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212    as_fn_arith $ac_count + 1 && ac_count=$as_val
4213    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4214      # Best one so far, save it but keep looking for a better one
4215      ac_cv_path_FGREP="$ac_path_FGREP"
4216      ac_path_FGREP_max=$ac_count
4217    fi
4218    # 10*(2^10) chars as input seems more than enough
4219    test $ac_count -gt 10 && break
4220  done
4221  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222esac
4223
4224      $ac_path_FGREP_found && break 3
4225    done
4226  done
4227  done
4228IFS=$as_save_IFS
4229  if test -z "$ac_cv_path_FGREP"; then
4230    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4231  fi
4232else
4233  ac_cv_path_FGREP=$FGREP
4234fi
4235
4236   fi
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4239$as_echo "$ac_cv_path_FGREP" >&6; }
4240 FGREP="$ac_cv_path_FGREP"
4241
4242
4243test -z "$GREP" && GREP=grep
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263# Check whether --with-gnu-ld was given.
4264if test "${with_gnu_ld+set}" = set; then :
4265  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4266else
4267  with_gnu_ld=no
4268fi
4269
4270ac_prog=ld
4271if test "$GCC" = yes; then
4272  # Check if gcc -print-prog-name=ld gives a path.
4273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4274$as_echo_n "checking for ld used by $CC... " >&6; }
4275  case $host in
4276  *-*-mingw*)
4277    # gcc leaves a trailing carriage return which upsets mingw
4278    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4279  *)
4280    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4281  esac
4282  case $ac_prog in
4283    # Accept absolute paths.
4284    [\\/]* | ?:[\\/]*)
4285      re_direlt='/[^/][^/]*/\.\./'
4286      # Canonicalize the pathname of ld
4287      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4288      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4289	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4290      done
4291      test -z "$LD" && LD="$ac_prog"
4292      ;;
4293  "")
4294    # If it fails, then pretend we aren't using GCC.
4295    ac_prog=ld
4296    ;;
4297  *)
4298    # If it is relative, then search for the first ld in PATH.
4299    with_gnu_ld=unknown
4300    ;;
4301  esac
4302elif test "$with_gnu_ld" = yes; then
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4304$as_echo_n "checking for GNU ld... " >&6; }
4305else
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4307$as_echo_n "checking for non-GNU ld... " >&6; }
4308fi
4309if ${lt_cv_path_LD+:} false; then :
4310  $as_echo_n "(cached) " >&6
4311else
4312  if test -z "$LD"; then
4313  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4314  for ac_dir in $PATH; do
4315    IFS="$lt_save_ifs"
4316    test -z "$ac_dir" && ac_dir=.
4317    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4318      lt_cv_path_LD="$ac_dir/$ac_prog"
4319      # Check to see if the program is GNU ld.  I'd rather use --version,
4320      # but apparently some variants of GNU ld only accept -v.
4321      # Break only if it was the GNU/non-GNU ld that we prefer.
4322      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4323      *GNU* | *'with BFD'*)
4324	test "$with_gnu_ld" != no && break
4325	;;
4326      *)
4327	test "$with_gnu_ld" != yes && break
4328	;;
4329      esac
4330    fi
4331  done
4332  IFS="$lt_save_ifs"
4333else
4334  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4335fi
4336fi
4337
4338LD="$lt_cv_path_LD"
4339if test -n "$LD"; then
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4341$as_echo "$LD" >&6; }
4342else
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345fi
4346test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4348$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4349if ${lt_cv_prog_gnu_ld+:} false; then :
4350  $as_echo_n "(cached) " >&6
4351else
4352  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4353case `$LD -v 2>&1 </dev/null` in
4354*GNU* | *'with BFD'*)
4355  lt_cv_prog_gnu_ld=yes
4356  ;;
4357*)
4358  lt_cv_prog_gnu_ld=no
4359  ;;
4360esac
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4363$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4364with_gnu_ld=$lt_cv_prog_gnu_ld
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4375$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4376if ${lt_cv_path_NM+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  if test -n "$NM"; then
4380  # Let the user override the test.
4381  lt_cv_path_NM="$NM"
4382else
4383  lt_nm_to_check="${ac_tool_prefix}nm"
4384  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4385    lt_nm_to_check="$lt_nm_to_check nm"
4386  fi
4387  for lt_tmp_nm in $lt_nm_to_check; do
4388    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4389    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4390      IFS="$lt_save_ifs"
4391      test -z "$ac_dir" && ac_dir=.
4392      tmp_nm="$ac_dir/$lt_tmp_nm"
4393      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4394	# Check to see if the nm accepts a BSD-compat flag.
4395	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4396	#   nm: unknown option "B" ignored
4397	# Tru64's nm complains that /dev/null is an invalid object file
4398	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4399	*/dev/null* | *'Invalid file or object type'*)
4400	  lt_cv_path_NM="$tmp_nm -B"
4401	  break
4402	  ;;
4403	*)
4404	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4405	  */dev/null*)
4406	    lt_cv_path_NM="$tmp_nm -p"
4407	    break
4408	    ;;
4409	  *)
4410	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4411	    continue # so that we can try to find one that supports BSD flags
4412	    ;;
4413	  esac
4414	  ;;
4415	esac
4416      fi
4417    done
4418    IFS="$lt_save_ifs"
4419  done
4420  : ${lt_cv_path_NM=no}
4421fi
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4424$as_echo "$lt_cv_path_NM" >&6; }
4425if test "$lt_cv_path_NM" != "no"; then
4426  NM="$lt_cv_path_NM"
4427else
4428  # Didn't find any BSD compatible name lister, look for dumpbin.
4429  if test -n "$DUMPBIN"; then :
4430    # Let the user override the test.
4431  else
4432    if test -n "$ac_tool_prefix"; then
4433  for ac_prog in dumpbin "link -dump"
4434  do
4435    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438$as_echo_n "checking for $ac_word... " >&6; }
4439if ${ac_cv_prog_DUMPBIN+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  if test -n "$DUMPBIN"; then
4443  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450    for ac_exec_ext in '' $ac_executable_extensions; do
4451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454    break 2
4455  fi
4456done
4457  done
4458IFS=$as_save_IFS
4459
4460fi
4461fi
4462DUMPBIN=$ac_cv_prog_DUMPBIN
4463if test -n "$DUMPBIN"; then
4464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4465$as_echo "$DUMPBIN" >&6; }
4466else
4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468$as_echo "no" >&6; }
4469fi
4470
4471
4472    test -n "$DUMPBIN" && break
4473  done
4474fi
4475if test -z "$DUMPBIN"; then
4476  ac_ct_DUMPBIN=$DUMPBIN
4477  for ac_prog in dumpbin "link -dump"
4478do
4479  # Extract the first word of "$ac_prog", so it can be a program name with args.
4480set dummy $ac_prog; ac_word=$2
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482$as_echo_n "checking for $ac_word... " >&6; }
4483if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  if test -n "$ac_ct_DUMPBIN"; then
4487  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4488else
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492  IFS=$as_save_IFS
4493  test -z "$as_dir" && as_dir=.
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498    break 2
4499  fi
4500done
4501  done
4502IFS=$as_save_IFS
4503
4504fi
4505fi
4506ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4507if test -n "$ac_ct_DUMPBIN"; then
4508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4509$as_echo "$ac_ct_DUMPBIN" >&6; }
4510else
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512$as_echo "no" >&6; }
4513fi
4514
4515
4516  test -n "$ac_ct_DUMPBIN" && break
4517done
4518
4519  if test "x$ac_ct_DUMPBIN" = x; then
4520    DUMPBIN=":"
4521  else
4522    case $cross_compiling:$ac_tool_warned in
4523yes:)
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526ac_tool_warned=yes ;;
4527esac
4528    DUMPBIN=$ac_ct_DUMPBIN
4529  fi
4530fi
4531
4532    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4533    *COFF*)
4534      DUMPBIN="$DUMPBIN -symbols"
4535      ;;
4536    *)
4537      DUMPBIN=:
4538      ;;
4539    esac
4540  fi
4541
4542  if test "$DUMPBIN" != ":"; then
4543    NM="$DUMPBIN"
4544  fi
4545fi
4546test -z "$NM" && NM=nm
4547
4548
4549
4550
4551
4552
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4554$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4555if ${lt_cv_nm_interface+:} false; then :
4556  $as_echo_n "(cached) " >&6
4557else
4558  lt_cv_nm_interface="BSD nm"
4559  echo "int some_variable = 0;" > conftest.$ac_ext
4560  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4561  (eval "$ac_compile" 2>conftest.err)
4562  cat conftest.err >&5
4563  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4564  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4565  cat conftest.err >&5
4566  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4567  cat conftest.out >&5
4568  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4569    lt_cv_nm_interface="MS dumpbin"
4570  fi
4571  rm -f conftest*
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4574$as_echo "$lt_cv_nm_interface" >&6; }
4575
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4577$as_echo_n "checking whether ln -s works... " >&6; }
4578LN_S=$as_ln_s
4579if test "$LN_S" = "ln -s"; then
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4581$as_echo "yes" >&6; }
4582else
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4584$as_echo "no, using $LN_S" >&6; }
4585fi
4586
4587# find the maximum length of command line arguments
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4589$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4590if ${lt_cv_sys_max_cmd_len+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593    i=0
4594  teststring="ABCD"
4595
4596  case $build_os in
4597  msdosdjgpp*)
4598    # On DJGPP, this test can blow up pretty badly due to problems in libc
4599    # (any single argument exceeding 2000 bytes causes a buffer overrun
4600    # during glob expansion).  Even if it were fixed, the result of this
4601    # check would be larger than it should be.
4602    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4603    ;;
4604
4605  gnu*)
4606    # Under GNU Hurd, this test is not required because there is
4607    # no limit to the length of command line arguments.
4608    # Libtool will interpret -1 as no limit whatsoever
4609    lt_cv_sys_max_cmd_len=-1;
4610    ;;
4611
4612  cygwin* | mingw* | cegcc*)
4613    # On Win9x/ME, this test blows up -- it succeeds, but takes
4614    # about 5 minutes as the teststring grows exponentially.
4615    # Worse, since 9x/ME are not pre-emptively multitasking,
4616    # you end up with a "frozen" computer, even though with patience
4617    # the test eventually succeeds (with a max line length of 256k).
4618    # Instead, let's just punt: use the minimum linelength reported by
4619    # all of the supported platforms: 8192 (on NT/2K/XP).
4620    lt_cv_sys_max_cmd_len=8192;
4621    ;;
4622
4623  mint*)
4624    # On MiNT this can take a long time and run out of memory.
4625    lt_cv_sys_max_cmd_len=8192;
4626    ;;
4627
4628  amigaos*)
4629    # On AmigaOS with pdksh, this test takes hours, literally.
4630    # So we just punt and use a minimum line length of 8192.
4631    lt_cv_sys_max_cmd_len=8192;
4632    ;;
4633
4634  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4635    # This has been around since 386BSD, at least.  Likely further.
4636    if test -x /sbin/sysctl; then
4637      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4638    elif test -x /usr/sbin/sysctl; then
4639      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4640    else
4641      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4642    fi
4643    # And add a safety zone
4644    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4645    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4646    ;;
4647
4648  interix*)
4649    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4650    lt_cv_sys_max_cmd_len=196608
4651    ;;
4652
4653  os2*)
4654    # The test takes a long time on OS/2.
4655    lt_cv_sys_max_cmd_len=8192
4656    ;;
4657
4658  osf*)
4659    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4660    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4661    # nice to cause kernel panics so lets avoid the loop below.
4662    # First set a reasonable default.
4663    lt_cv_sys_max_cmd_len=16384
4664    #
4665    if test -x /sbin/sysconfig; then
4666      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4667        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4668      esac
4669    fi
4670    ;;
4671  sco3.2v5*)
4672    lt_cv_sys_max_cmd_len=102400
4673    ;;
4674  sysv5* | sco5v6* | sysv4.2uw2*)
4675    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4676    if test -n "$kargmax"; then
4677      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4678    else
4679      lt_cv_sys_max_cmd_len=32768
4680    fi
4681    ;;
4682  *)
4683    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4684    if test -n "$lt_cv_sys_max_cmd_len"; then
4685      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4686      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4687    else
4688      # Make teststring a little bigger before we do anything with it.
4689      # a 1K string should be a reasonable start.
4690      for i in 1 2 3 4 5 6 7 8 ; do
4691        teststring=$teststring$teststring
4692      done
4693      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4694      # If test is not a shell built-in, we'll probably end up computing a
4695      # maximum length that is only half of the actual maximum length, but
4696      # we can't tell.
4697      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4698	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4699	      test $i != 17 # 1/2 MB should be enough
4700      do
4701        i=`expr $i + 1`
4702        teststring=$teststring$teststring
4703      done
4704      # Only check the string length outside the loop.
4705      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4706      teststring=
4707      # Add a significant safety factor because C++ compilers can tack on
4708      # massive amounts of additional arguments before passing them to the
4709      # linker.  It appears as though 1/2 is a usable value.
4710      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4711    fi
4712    ;;
4713  esac
4714
4715fi
4716
4717if test -n $lt_cv_sys_max_cmd_len ; then
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4719$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4720else
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4722$as_echo "none" >&6; }
4723fi
4724max_cmd_len=$lt_cv_sys_max_cmd_len
4725
4726
4727
4728
4729
4730
4731: ${CP="cp -f"}
4732: ${MV="mv -f"}
4733: ${RM="rm -f"}
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4736$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4737# Try some XSI features
4738xsi_shell=no
4739( _lt_dummy="a/b/c"
4740  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4741      = c,a/b,b/c, \
4742    && eval 'test $(( 1 + 1 )) -eq 2 \
4743    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4744  && xsi_shell=yes
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4746$as_echo "$xsi_shell" >&6; }
4747
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4750$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4751lt_shell_append=no
4752( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4753    >/dev/null 2>&1 \
4754  && lt_shell_append=yes
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4756$as_echo "$lt_shell_append" >&6; }
4757
4758
4759if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4760  lt_unset=unset
4761else
4762  lt_unset=false
4763fi
4764
4765
4766
4767
4768
4769# test EBCDIC or ASCII
4770case `echo X|tr X '\101'` in
4771 A) # ASCII based system
4772    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4773  lt_SP2NL='tr \040 \012'
4774  lt_NL2SP='tr \015\012 \040\040'
4775  ;;
4776 *) # EBCDIC based system
4777  lt_SP2NL='tr \100 \n'
4778  lt_NL2SP='tr \r\n \100\100'
4779  ;;
4780esac
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4791$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4792if ${lt_cv_to_host_file_cmd+:} false; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795  case $host in
4796  *-*-mingw* )
4797    case $build in
4798      *-*-mingw* ) # actually msys
4799        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4800        ;;
4801      *-*-cygwin* )
4802        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4803        ;;
4804      * ) # otherwise, assume *nix
4805        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4806        ;;
4807    esac
4808    ;;
4809  *-*-cygwin* )
4810    case $build in
4811      *-*-mingw* ) # actually msys
4812        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4813        ;;
4814      *-*-cygwin* )
4815        lt_cv_to_host_file_cmd=func_convert_file_noop
4816        ;;
4817      * ) # otherwise, assume *nix
4818        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4819        ;;
4820    esac
4821    ;;
4822  * ) # unhandled hosts (and "normal" native builds)
4823    lt_cv_to_host_file_cmd=func_convert_file_noop
4824    ;;
4825esac
4826
4827fi
4828
4829to_host_file_cmd=$lt_cv_to_host_file_cmd
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4831$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4832
4833
4834
4835
4836
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4838$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4839if ${lt_cv_to_tool_file_cmd+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  #assume ordinary cross tools, or native build.
4843lt_cv_to_tool_file_cmd=func_convert_file_noop
4844case $host in
4845  *-*-mingw* )
4846    case $build in
4847      *-*-mingw* ) # actually msys
4848        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4849        ;;
4850    esac
4851    ;;
4852esac
4853
4854fi
4855
4856to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4858$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4859
4860
4861
4862
4863
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4865$as_echo_n "checking for $LD option to reload object files... " >&6; }
4866if ${lt_cv_ld_reload_flag+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  lt_cv_ld_reload_flag='-r'
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4872$as_echo "$lt_cv_ld_reload_flag" >&6; }
4873reload_flag=$lt_cv_ld_reload_flag
4874case $reload_flag in
4875"" | " "*) ;;
4876*) reload_flag=" $reload_flag" ;;
4877esac
4878reload_cmds='$LD$reload_flag -o $output$reload_objs'
4879case $host_os in
4880  cygwin* | mingw* | pw32* | cegcc*)
4881    if test "$GCC" != yes; then
4882      reload_cmds=false
4883    fi
4884    ;;
4885  darwin*)
4886    if test "$GCC" = yes; then
4887      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4888    else
4889      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4890    fi
4891    ;;
4892esac
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902if test -n "$ac_tool_prefix"; then
4903  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4904set dummy ${ac_tool_prefix}objdump; ac_word=$2
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906$as_echo_n "checking for $ac_word... " >&6; }
4907if ${ac_cv_prog_OBJDUMP+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  if test -n "$OBJDUMP"; then
4911  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916  IFS=$as_save_IFS
4917  test -z "$as_dir" && as_dir=.
4918    for ac_exec_ext in '' $ac_executable_extensions; do
4919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922    break 2
4923  fi
4924done
4925  done
4926IFS=$as_save_IFS
4927
4928fi
4929fi
4930OBJDUMP=$ac_cv_prog_OBJDUMP
4931if test -n "$OBJDUMP"; then
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4933$as_echo "$OBJDUMP" >&6; }
4934else
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
4937fi
4938
4939
4940fi
4941if test -z "$ac_cv_prog_OBJDUMP"; then
4942  ac_ct_OBJDUMP=$OBJDUMP
4943  # Extract the first word of "objdump", so it can be a program name with args.
4944set dummy objdump; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$ac_ct_OBJDUMP"; then
4951  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4971if test -n "$ac_ct_OBJDUMP"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4973$as_echo "$ac_ct_OBJDUMP" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979  if test "x$ac_ct_OBJDUMP" = x; then
4980    OBJDUMP="false"
4981  else
4982    case $cross_compiling:$ac_tool_warned in
4983yes:)
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986ac_tool_warned=yes ;;
4987esac
4988    OBJDUMP=$ac_ct_OBJDUMP
4989  fi
4990else
4991  OBJDUMP="$ac_cv_prog_OBJDUMP"
4992fi
4993
4994test -z "$OBJDUMP" && OBJDUMP=objdump
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5005$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5006if ${lt_cv_deplibs_check_method+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  lt_cv_file_magic_cmd='$MAGIC_CMD'
5010lt_cv_file_magic_test_file=
5011lt_cv_deplibs_check_method='unknown'
5012# Need to set the preceding variable on all platforms that support
5013# interlibrary dependencies.
5014# 'none' -- dependencies not supported.
5015# `unknown' -- same as none, but documents that we really don't know.
5016# 'pass_all' -- all dependencies passed with no checks.
5017# 'test_compile' -- check by making test program.
5018# 'file_magic [[regex]]' -- check by looking for files in library path
5019# which responds to the $file_magic_cmd with a given extended regex.
5020# If you have `file' or equivalent on your system and you're not sure
5021# whether `pass_all' will *always* work, you probably want this one.
5022
5023case $host_os in
5024aix[4-9]*)
5025  lt_cv_deplibs_check_method=pass_all
5026  ;;
5027
5028beos*)
5029  lt_cv_deplibs_check_method=pass_all
5030  ;;
5031
5032bsdi[45]*)
5033  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5034  lt_cv_file_magic_cmd='/usr/bin/file -L'
5035  lt_cv_file_magic_test_file=/shlib/libc.so
5036  ;;
5037
5038cygwin*)
5039  # func_win32_libid is a shell function defined in ltmain.sh
5040  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5041  lt_cv_file_magic_cmd='func_win32_libid'
5042  ;;
5043
5044mingw* | pw32*)
5045  # Base MSYS/MinGW do not provide the 'file' command needed by
5046  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5047  # unless we find 'file', for example because we are cross-compiling.
5048  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5049  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5050    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5051    lt_cv_file_magic_cmd='func_win32_libid'
5052  else
5053    # Keep this pattern in sync with the one in func_win32_libid.
5054    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5055    lt_cv_file_magic_cmd='$OBJDUMP -f'
5056  fi
5057  ;;
5058
5059cegcc*)
5060  # use the weaker test based on 'objdump'. See mingw*.
5061  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5062  lt_cv_file_magic_cmd='$OBJDUMP -f'
5063  ;;
5064
5065darwin* | rhapsody*)
5066  lt_cv_deplibs_check_method=pass_all
5067  ;;
5068
5069freebsd* | dragonfly*)
5070  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5071    case $host_cpu in
5072    i*86 )
5073      # Not sure whether the presence of OpenBSD here was a mistake.
5074      # Let's accept both of them until this is cleared up.
5075      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5076      lt_cv_file_magic_cmd=/usr/bin/file
5077      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5078      ;;
5079    esac
5080  else
5081    lt_cv_deplibs_check_method=pass_all
5082  fi
5083  ;;
5084
5085gnu*)
5086  lt_cv_deplibs_check_method=pass_all
5087  ;;
5088
5089haiku*)
5090  lt_cv_deplibs_check_method=pass_all
5091  ;;
5092
5093hpux10.20* | hpux11*)
5094  lt_cv_file_magic_cmd=/usr/bin/file
5095  case $host_cpu in
5096  ia64*)
5097    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5098    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5099    ;;
5100  hppa*64*)
5101    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]'
5102    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5103    ;;
5104  *)
5105    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5106    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5107    ;;
5108  esac
5109  ;;
5110
5111interix[3-9]*)
5112  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5113  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5114  ;;
5115
5116irix5* | irix6* | nonstopux*)
5117  case $LD in
5118  *-32|*"-32 ") libmagic=32-bit;;
5119  *-n32|*"-n32 ") libmagic=N32;;
5120  *-64|*"-64 ") libmagic=64-bit;;
5121  *) libmagic=never-match;;
5122  esac
5123  lt_cv_deplibs_check_method=pass_all
5124  ;;
5125
5126# This must be glibc/ELF.
5127linux* | k*bsd*-gnu | kopensolaris*-gnu)
5128  lt_cv_deplibs_check_method=pass_all
5129  ;;
5130
5131netbsd*)
5132  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5133    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5134  else
5135    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5136  fi
5137  ;;
5138
5139newos6*)
5140  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5141  lt_cv_file_magic_cmd=/usr/bin/file
5142  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5143  ;;
5144
5145*nto* | *qnx*)
5146  lt_cv_deplibs_check_method=pass_all
5147  ;;
5148
5149openbsd*)
5150  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5151    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5152  else
5153    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5154  fi
5155  ;;
5156
5157osf3* | osf4* | osf5*)
5158  lt_cv_deplibs_check_method=pass_all
5159  ;;
5160
5161rdos*)
5162  lt_cv_deplibs_check_method=pass_all
5163  ;;
5164
5165solaris*)
5166  lt_cv_deplibs_check_method=pass_all
5167  ;;
5168
5169sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5170  lt_cv_deplibs_check_method=pass_all
5171  ;;
5172
5173sysv4 | sysv4.3*)
5174  case $host_vendor in
5175  motorola)
5176    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]'
5177    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5178    ;;
5179  ncr)
5180    lt_cv_deplibs_check_method=pass_all
5181    ;;
5182  sequent)
5183    lt_cv_file_magic_cmd='/bin/file'
5184    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5185    ;;
5186  sni)
5187    lt_cv_file_magic_cmd='/bin/file'
5188    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5189    lt_cv_file_magic_test_file=/lib/libc.so
5190    ;;
5191  siemens)
5192    lt_cv_deplibs_check_method=pass_all
5193    ;;
5194  pc)
5195    lt_cv_deplibs_check_method=pass_all
5196    ;;
5197  esac
5198  ;;
5199
5200tpf*)
5201  lt_cv_deplibs_check_method=pass_all
5202  ;;
5203esac
5204
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5207$as_echo "$lt_cv_deplibs_check_method" >&6; }
5208
5209file_magic_glob=
5210want_nocaseglob=no
5211if test "$build" = "$host"; then
5212  case $host_os in
5213  mingw* | pw32*)
5214    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5215      want_nocaseglob=yes
5216    else
5217      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5218    fi
5219    ;;
5220  esac
5221fi
5222
5223file_magic_cmd=$lt_cv_file_magic_cmd
5224deplibs_check_method=$lt_cv_deplibs_check_method
5225test -z "$deplibs_check_method" && deplibs_check_method=unknown
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248if test -n "$ac_tool_prefix"; then
5249  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5250set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if ${ac_cv_prog_DLLTOOL+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  if test -n "$DLLTOOL"; then
5257  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271  done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276DLLTOOL=$ac_cv_prog_DLLTOOL
5277if test -n "$DLLTOOL"; then
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5279$as_echo "$DLLTOOL" >&6; }
5280else
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286fi
5287if test -z "$ac_cv_prog_DLLTOOL"; then
5288  ac_ct_DLLTOOL=$DLLTOOL
5289  # Extract the first word of "dlltool", so it can be a program name with args.
5290set dummy dlltool; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  if test -n "$ac_ct_DLLTOOL"; then
5297  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5298else
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302  IFS=$as_save_IFS
5303  test -z "$as_dir" && as_dir=.
5304    for ac_exec_ext in '' $ac_executable_extensions; do
5305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308    break 2
5309  fi
5310done
5311  done
5312IFS=$as_save_IFS
5313
5314fi
5315fi
5316ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5317if test -n "$ac_ct_DLLTOOL"; then
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5319$as_echo "$ac_ct_DLLTOOL" >&6; }
5320else
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324
5325  if test "x$ac_ct_DLLTOOL" = x; then
5326    DLLTOOL="false"
5327  else
5328    case $cross_compiling:$ac_tool_warned in
5329yes:)
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332ac_tool_warned=yes ;;
5333esac
5334    DLLTOOL=$ac_ct_DLLTOOL
5335  fi
5336else
5337  DLLTOOL="$ac_cv_prog_DLLTOOL"
5338fi
5339
5340test -z "$DLLTOOL" && DLLTOOL=dlltool
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5352$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5353if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  lt_cv_sharedlib_from_linklib_cmd='unknown'
5357
5358case $host_os in
5359cygwin* | mingw* | pw32* | cegcc*)
5360  # two different shell functions defined in ltmain.sh
5361  # decide which to use based on capabilities of $DLLTOOL
5362  case `$DLLTOOL --help 2>&1` in
5363  *--identify-strict*)
5364    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5365    ;;
5366  *)
5367    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5368    ;;
5369  esac
5370  ;;
5371*)
5372  # fallback: assume linklib IS sharedlib
5373  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5374  ;;
5375esac
5376
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5379$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5380sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5381test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5382
5383
5384
5385
5386
5387
5388
5389
5390if test -n "$ac_tool_prefix"; then
5391  for ac_prog in ar
5392  do
5393    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396$as_echo_n "checking for $ac_word... " >&6; }
5397if ${ac_cv_prog_AR+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  if test -n "$AR"; then
5401  ac_cv_prog_AR="$AR" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406  IFS=$as_save_IFS
5407  test -z "$as_dir" && as_dir=.
5408    for ac_exec_ext in '' $ac_executable_extensions; do
5409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412    break 2
5413  fi
5414done
5415  done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420AR=$ac_cv_prog_AR
5421if test -n "$AR"; then
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5423$as_echo "$AR" >&6; }
5424else
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }
5427fi
5428
5429
5430    test -n "$AR" && break
5431  done
5432fi
5433if test -z "$AR"; then
5434  ac_ct_AR=$AR
5435  for ac_prog in ar
5436do
5437  # Extract the first word of "$ac_prog", so it can be a program name with args.
5438set dummy $ac_prog; ac_word=$2
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
5441if ${ac_cv_prog_ac_ct_AR+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  if test -n "$ac_ct_AR"; then
5445  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5446else
5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450  IFS=$as_save_IFS
5451  test -z "$as_dir" && as_dir=.
5452    for ac_exec_ext in '' $ac_executable_extensions; do
5453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454    ac_cv_prog_ac_ct_AR="$ac_prog"
5455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456    break 2
5457  fi
5458done
5459  done
5460IFS=$as_save_IFS
5461
5462fi
5463fi
5464ac_ct_AR=$ac_cv_prog_ac_ct_AR
5465if test -n "$ac_ct_AR"; then
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5467$as_echo "$ac_ct_AR" >&6; }
5468else
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
5472
5473
5474  test -n "$ac_ct_AR" && break
5475done
5476
5477  if test "x$ac_ct_AR" = x; then
5478    AR="false"
5479  else
5480    case $cross_compiling:$ac_tool_warned in
5481yes:)
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484ac_tool_warned=yes ;;
5485esac
5486    AR=$ac_ct_AR
5487  fi
5488fi
5489
5490: ${AR=ar}
5491: ${AR_FLAGS=cru}
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5504$as_echo_n "checking for archiver @FILE support... " >&6; }
5505if ${lt_cv_ar_at_file+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  lt_cv_ar_at_file=no
5509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510/* end confdefs.h.  */
5511
5512int
5513main ()
5514{
5515
5516  ;
5517  return 0;
5518}
5519_ACEOF
5520if ac_fn_c_try_compile "$LINENO"; then :
5521  echo conftest.$ac_objext > conftest.lst
5522      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5523      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5524  (eval $lt_ar_try) 2>&5
5525  ac_status=$?
5526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5527  test $ac_status = 0; }
5528      if test "$ac_status" -eq 0; then
5529	# Ensure the archiver fails upon bogus file names.
5530	rm -f conftest.$ac_objext libconftest.a
5531	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5532  (eval $lt_ar_try) 2>&5
5533  ac_status=$?
5534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5535  test $ac_status = 0; }
5536	if test "$ac_status" -ne 0; then
5537          lt_cv_ar_at_file=@
5538        fi
5539      fi
5540      rm -f conftest.* libconftest.a
5541
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5547$as_echo "$lt_cv_ar_at_file" >&6; }
5548
5549if test "x$lt_cv_ar_at_file" = xno; then
5550  archiver_list_spec=
5551else
5552  archiver_list_spec=$lt_cv_ar_at_file
5553fi
5554
5555
5556
5557
5558
5559
5560
5561if test -n "$ac_tool_prefix"; then
5562  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5563set dummy ${ac_tool_prefix}strip; ac_word=$2
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565$as_echo_n "checking for $ac_word... " >&6; }
5566if ${ac_cv_prog_STRIP+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  if test -n "$STRIP"; then
5570  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5571else
5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575  IFS=$as_save_IFS
5576  test -z "$as_dir" && as_dir=.
5577    for ac_exec_ext in '' $ac_executable_extensions; do
5578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581    break 2
5582  fi
5583done
5584  done
5585IFS=$as_save_IFS
5586
5587fi
5588fi
5589STRIP=$ac_cv_prog_STRIP
5590if test -n "$STRIP"; then
5591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5592$as_echo "$STRIP" >&6; }
5593else
5594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595$as_echo "no" >&6; }
5596fi
5597
5598
5599fi
5600if test -z "$ac_cv_prog_STRIP"; then
5601  ac_ct_STRIP=$STRIP
5602  # Extract the first word of "strip", so it can be a program name with args.
5603set dummy strip; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  if test -n "$ac_ct_STRIP"; then
5610  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615  IFS=$as_save_IFS
5616  test -z "$as_dir" && as_dir=.
5617    for ac_exec_ext in '' $ac_executable_extensions; do
5618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619    ac_cv_prog_ac_ct_STRIP="strip"
5620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621    break 2
5622  fi
5623done
5624  done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5630if test -n "$ac_ct_STRIP"; then
5631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5632$as_echo "$ac_ct_STRIP" >&6; }
5633else
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636fi
5637
5638  if test "x$ac_ct_STRIP" = x; then
5639    STRIP=":"
5640  else
5641    case $cross_compiling:$ac_tool_warned in
5642yes:)
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645ac_tool_warned=yes ;;
5646esac
5647    STRIP=$ac_ct_STRIP
5648  fi
5649else
5650  STRIP="$ac_cv_prog_STRIP"
5651fi
5652
5653test -z "$STRIP" && STRIP=:
5654
5655
5656
5657
5658
5659
5660if test -n "$ac_tool_prefix"; then
5661  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5662set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_prog_RANLIB+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  if test -n "$RANLIB"; then
5669  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676    for ac_exec_ext in '' $ac_executable_extensions; do
5677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683  done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688RANLIB=$ac_cv_prog_RANLIB
5689if test -n "$RANLIB"; then
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5691$as_echo "$RANLIB" >&6; }
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696
5697
5698fi
5699if test -z "$ac_cv_prog_RANLIB"; then
5700  ac_ct_RANLIB=$RANLIB
5701  # Extract the first word of "ranlib", so it can be a program name with args.
5702set dummy ranlib; ac_word=$2
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
5705if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5706  $as_echo_n "(cached) " >&6
5707else
5708  if test -n "$ac_ct_RANLIB"; then
5709  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714  IFS=$as_save_IFS
5715  test -z "$as_dir" && as_dir=.
5716    for ac_exec_ext in '' $ac_executable_extensions; do
5717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718    ac_cv_prog_ac_ct_RANLIB="ranlib"
5719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720    break 2
5721  fi
5722done
5723  done
5724IFS=$as_save_IFS
5725
5726fi
5727fi
5728ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5729if test -n "$ac_ct_RANLIB"; then
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5731$as_echo "$ac_ct_RANLIB" >&6; }
5732else
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
5735fi
5736
5737  if test "x$ac_ct_RANLIB" = x; then
5738    RANLIB=":"
5739  else
5740    case $cross_compiling:$ac_tool_warned in
5741yes:)
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744ac_tool_warned=yes ;;
5745esac
5746    RANLIB=$ac_ct_RANLIB
5747  fi
5748else
5749  RANLIB="$ac_cv_prog_RANLIB"
5750fi
5751
5752test -z "$RANLIB" && RANLIB=:
5753
5754
5755
5756
5757
5758
5759# Determine commands to create old-style static archives.
5760old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5761old_postinstall_cmds='chmod 644 $oldlib'
5762old_postuninstall_cmds=
5763
5764if test -n "$RANLIB"; then
5765  case $host_os in
5766  openbsd*)
5767    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5768    ;;
5769  *)
5770    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5771    ;;
5772  esac
5773  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5774fi
5775
5776case $host_os in
5777  darwin*)
5778    lock_old_archive_extraction=yes ;;
5779  *)
5780    lock_old_archive_extraction=no ;;
5781esac
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821# If no C compiler was specified, use CC.
5822LTCC=${LTCC-"$CC"}
5823
5824# If no C compiler flags were specified, use CFLAGS.
5825LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5826
5827# Allow CC to be a program name with arguments.
5828compiler=$CC
5829
5830
5831# Check for command to grab the raw symbol name followed by C symbol from nm.
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5833$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837
5838# These are sane defaults that work on at least a few old systems.
5839# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5840
5841# Character class describing NM global symbol codes.
5842symcode='[BCDEGRST]'
5843
5844# Regexp to match symbols that can be accessed directly from C.
5845sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5846
5847# Define system-specific variables.
5848case $host_os in
5849aix*)
5850  symcode='[BCDT]'
5851  ;;
5852cygwin* | mingw* | pw32* | cegcc*)
5853  symcode='[ABCDGISTW]'
5854  ;;
5855hpux*)
5856  if test "$host_cpu" = ia64; then
5857    symcode='[ABCDEGRST]'
5858  fi
5859  ;;
5860irix* | nonstopux*)
5861  symcode='[BCDEGRST]'
5862  ;;
5863osf*)
5864  symcode='[BCDEGQRST]'
5865  ;;
5866solaris*)
5867  symcode='[BDRT]'
5868  ;;
5869sco3.2v5*)
5870  symcode='[DT]'
5871  ;;
5872sysv4.2uw2*)
5873  symcode='[DT]'
5874  ;;
5875sysv5* | sco5v6* | unixware* | OpenUNIX*)
5876  symcode='[ABDT]'
5877  ;;
5878sysv4)
5879  symcode='[DFNSTU]'
5880  ;;
5881esac
5882
5883# If we're using GNU nm, then use its standard symbol codes.
5884case `$NM -V 2>&1` in
5885*GNU* | *'with BFD'*)
5886  symcode='[ABCDGIRSTW]' ;;
5887esac
5888
5889# Transform an extracted symbol line into a proper C declaration.
5890# Some systems (esp. on ia64) link data and code symbols differently,
5891# so use this general approach.
5892lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893
5894# Transform an extracted symbol line into symbol name and symbol address
5895lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5896lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5897
5898# Handle CRLF in mingw tool chain
5899opt_cr=
5900case $build_os in
5901mingw*)
5902  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5903  ;;
5904esac
5905
5906# Try without a prefix underscore, then with it.
5907for ac_symprfx in "" "_"; do
5908
5909  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5910  symxfrm="\\1 $ac_symprfx\\2 \\2"
5911
5912  # Write the raw and C identifiers.
5913  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5914    # Fake it for dumpbin and say T for any non-static function
5915    # and D for any global variable.
5916    # Also find C++ and __fastcall symbols from MSVC++,
5917    # which start with @ or ?.
5918    lt_cv_sys_global_symbol_pipe="$AWK '"\
5919"     {last_section=section; section=\$ 3};"\
5920"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5921"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5922"     \$ 0!~/External *\|/{next};"\
5923"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5924"     {if(hide[section]) next};"\
5925"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5926"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5927"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5928"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5929"     ' prfx=^$ac_symprfx"
5930  else
5931    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5932  fi
5933  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5934
5935  # Check to see that the pipe works correctly.
5936  pipe_works=no
5937
5938  rm -f conftest*
5939  cat > conftest.$ac_ext <<_LT_EOF
5940#ifdef __cplusplus
5941extern "C" {
5942#endif
5943char nm_test_var;
5944void nm_test_func(void);
5945void nm_test_func(void){}
5946#ifdef __cplusplus
5947}
5948#endif
5949int main(){nm_test_var='a';nm_test_func();return(0);}
5950_LT_EOF
5951
5952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5953  (eval $ac_compile) 2>&5
5954  ac_status=$?
5955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956  test $ac_status = 0; }; then
5957    # Now try to grab the symbols.
5958    nlist=conftest.nm
5959    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5960  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5961  ac_status=$?
5962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963  test $ac_status = 0; } && test -s "$nlist"; then
5964      # Try sorting and uniquifying the output.
5965      if sort "$nlist" | uniq > "$nlist"T; then
5966	mv -f "$nlist"T "$nlist"
5967      else
5968	rm -f "$nlist"T
5969      fi
5970
5971      # Make sure that we snagged all the symbols we need.
5972      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5973	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5974	  cat <<_LT_EOF > conftest.$ac_ext
5975/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5976#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5977/* DATA imports from DLLs on WIN32 con't be const, because runtime
5978   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5979# define LT_DLSYM_CONST
5980#elif defined(__osf__)
5981/* This system does not cope well with relocations in const data.  */
5982# define LT_DLSYM_CONST
5983#else
5984# define LT_DLSYM_CONST const
5985#endif
5986
5987#ifdef __cplusplus
5988extern "C" {
5989#endif
5990
5991_LT_EOF
5992	  # Now generate the symbol file.
5993	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5994
5995	  cat <<_LT_EOF >> conftest.$ac_ext
5996
5997/* The mapping between symbol names and symbols.  */
5998LT_DLSYM_CONST struct {
5999  const char *name;
6000  void       *address;
6001}
6002lt__PROGRAM__LTX_preloaded_symbols[] =
6003{
6004  { "@PROGRAM@", (void *) 0 },
6005_LT_EOF
6006	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6007	  cat <<\_LT_EOF >> conftest.$ac_ext
6008  {0, (void *) 0}
6009};
6010
6011/* This works around a problem in FreeBSD linker */
6012#ifdef FREEBSD_WORKAROUND
6013static const void *lt_preloaded_setup() {
6014  return lt__PROGRAM__LTX_preloaded_symbols;
6015}
6016#endif
6017
6018#ifdef __cplusplus
6019}
6020#endif
6021_LT_EOF
6022	  # Now try linking the two files.
6023	  mv conftest.$ac_objext conftstm.$ac_objext
6024	  lt_globsym_save_LIBS=$LIBS
6025	  lt_globsym_save_CFLAGS=$CFLAGS
6026	  LIBS="conftstm.$ac_objext"
6027	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6028	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6029  (eval $ac_link) 2>&5
6030  ac_status=$?
6031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6033	    pipe_works=yes
6034	  fi
6035	  LIBS=$lt_globsym_save_LIBS
6036	  CFLAGS=$lt_globsym_save_CFLAGS
6037	else
6038	  echo "cannot find nm_test_func in $nlist" >&5
6039	fi
6040      else
6041	echo "cannot find nm_test_var in $nlist" >&5
6042      fi
6043    else
6044      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6045    fi
6046  else
6047    echo "$progname: failed program was:" >&5
6048    cat conftest.$ac_ext >&5
6049  fi
6050  rm -rf conftest* conftst*
6051
6052  # Do not use the global_symbol_pipe unless it works.
6053  if test "$pipe_works" = yes; then
6054    break
6055  else
6056    lt_cv_sys_global_symbol_pipe=
6057  fi
6058done
6059
6060fi
6061
6062if test -z "$lt_cv_sys_global_symbol_pipe"; then
6063  lt_cv_sys_global_symbol_to_cdecl=
6064fi
6065if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6067$as_echo "failed" >&6; }
6068else
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6070$as_echo "ok" >&6; }
6071fi
6072
6073# Response file support.
6074if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6075  nm_file_list_spec='@'
6076elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6077  nm_file_list_spec='@'
6078fi
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6107$as_echo_n "checking for sysroot... " >&6; }
6108
6109# Check whether --with-sysroot was given.
6110if test "${with_sysroot+set}" = set; then :
6111  withval=$with_sysroot;
6112else
6113  with_sysroot=no
6114fi
6115
6116
6117lt_sysroot=
6118case ${with_sysroot} in #(
6119 yes)
6120   if test "$GCC" = yes; then
6121     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6122   fi
6123   ;; #(
6124 /*)
6125   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6126   ;; #(
6127 no|'')
6128   ;; #(
6129 *)
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6131$as_echo "${with_sysroot}" >&6; }
6132   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6133   ;;
6134esac
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6137$as_echo "${lt_sysroot:-no}" >&6; }
6138
6139
6140
6141
6142
6143# Check whether --enable-libtool-lock was given.
6144if test "${enable_libtool_lock+set}" = set; then :
6145  enableval=$enable_libtool_lock;
6146fi
6147
6148test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6149
6150# Some flags need to be propagated to the compiler or linker for good
6151# libtool support.
6152case $host in
6153ia64-*-hpux*)
6154  # Find out which ABI we are using.
6155  echo 'int i;' > conftest.$ac_ext
6156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157  (eval $ac_compile) 2>&5
6158  ac_status=$?
6159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160  test $ac_status = 0; }; then
6161    case `/usr/bin/file conftest.$ac_objext` in
6162      *ELF-32*)
6163	HPUX_IA64_MODE="32"
6164	;;
6165      *ELF-64*)
6166	HPUX_IA64_MODE="64"
6167	;;
6168    esac
6169  fi
6170  rm -rf conftest*
6171  ;;
6172*-*-irix6*)
6173  # Find out which ABI we are using.
6174  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6175  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176  (eval $ac_compile) 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; }; then
6180    if test "$lt_cv_prog_gnu_ld" = yes; then
6181      case `/usr/bin/file conftest.$ac_objext` in
6182	*32-bit*)
6183	  LD="${LD-ld} -melf32bsmip"
6184	  ;;
6185	*N32*)
6186	  LD="${LD-ld} -melf32bmipn32"
6187	  ;;
6188	*64-bit*)
6189	  LD="${LD-ld} -melf64bmip"
6190	;;
6191      esac
6192    else
6193      case `/usr/bin/file conftest.$ac_objext` in
6194	*32-bit*)
6195	  LD="${LD-ld} -32"
6196	  ;;
6197	*N32*)
6198	  LD="${LD-ld} -n32"
6199	  ;;
6200	*64-bit*)
6201	  LD="${LD-ld} -64"
6202	  ;;
6203      esac
6204    fi
6205  fi
6206  rm -rf conftest*
6207  ;;
6208
6209x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6210s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6211  # Find out which ABI we are using.
6212  echo 'int i;' > conftest.$ac_ext
6213  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214  (eval $ac_compile) 2>&5
6215  ac_status=$?
6216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217  test $ac_status = 0; }; then
6218    case `/usr/bin/file conftest.o` in
6219      *32-bit*)
6220	case $host in
6221	  x86_64-*kfreebsd*-gnu)
6222	    LD="${LD-ld} -m elf_i386_fbsd"
6223	    ;;
6224	  x86_64-*linux*)
6225	    LD="${LD-ld} -m elf_i386"
6226	    ;;
6227	  ppc64-*linux*|powerpc64-*linux*)
6228	    LD="${LD-ld} -m elf32ppclinux"
6229	    ;;
6230	  s390x-*linux*)
6231	    LD="${LD-ld} -m elf_s390"
6232	    ;;
6233	  sparc64-*linux*)
6234	    LD="${LD-ld} -m elf32_sparc"
6235	    ;;
6236	esac
6237	;;
6238      *64-bit*)
6239	case $host in
6240	  x86_64-*kfreebsd*-gnu)
6241	    LD="${LD-ld} -m elf_x86_64_fbsd"
6242	    ;;
6243	  x86_64-*linux*)
6244	    LD="${LD-ld} -m elf_x86_64"
6245	    ;;
6246	  ppc*-*linux*|powerpc*-*linux*)
6247	    LD="${LD-ld} -m elf64ppc"
6248	    ;;
6249	  s390*-*linux*|s390*-*tpf*)
6250	    LD="${LD-ld} -m elf64_s390"
6251	    ;;
6252	  sparc*-*linux*)
6253	    LD="${LD-ld} -m elf64_sparc"
6254	    ;;
6255	esac
6256	;;
6257    esac
6258  fi
6259  rm -rf conftest*
6260  ;;
6261
6262*-*-sco3.2v5*)
6263  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6264  SAVE_CFLAGS="$CFLAGS"
6265  CFLAGS="$CFLAGS -belf"
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6267$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6268if ${lt_cv_cc_needs_belf+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  ac_ext=c
6272ac_cpp='$CPP $CPPFLAGS'
6273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276
6277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279
6280int
6281main ()
6282{
6283
6284  ;
6285  return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_link "$LINENO"; then :
6289  lt_cv_cc_needs_belf=yes
6290else
6291  lt_cv_cc_needs_belf=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext \
6294    conftest$ac_exeext conftest.$ac_ext
6295     ac_ext=c
6296ac_cpp='$CPP $CPPFLAGS'
6297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6303$as_echo "$lt_cv_cc_needs_belf" >&6; }
6304  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6305    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6306    CFLAGS="$SAVE_CFLAGS"
6307  fi
6308  ;;
6309*-*solaris*)
6310  # Find out which ABI we are using.
6311  echo 'int i;' > conftest.$ac_ext
6312  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313  (eval $ac_compile) 2>&5
6314  ac_status=$?
6315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316  test $ac_status = 0; }; then
6317    case `/usr/bin/file conftest.o` in
6318    *64-bit*)
6319      case $lt_cv_prog_gnu_ld in
6320      yes*)
6321        case $host in
6322        i?86-*-solaris*)
6323          LD="${LD-ld} -m elf_x86_64"
6324          ;;
6325        sparc*-*-solaris*)
6326          LD="${LD-ld} -m elf64_sparc"
6327          ;;
6328        esac
6329        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6330        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6331          LD="${LD-ld}_sol2"
6332        fi
6333        ;;
6334      *)
6335	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6336	  LD="${LD-ld} -64"
6337	fi
6338	;;
6339      esac
6340      ;;
6341    esac
6342  fi
6343  rm -rf conftest*
6344  ;;
6345esac
6346
6347need_locks="$enable_libtool_lock"
6348
6349if test -n "$ac_tool_prefix"; then
6350  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6351set dummy ${ac_tool_prefix}mt; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$MANIFEST_TOOL"; then
6358  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_exec_ext in '' $ac_executable_extensions; do
6366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372  done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6378if test -n "$MANIFEST_TOOL"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6380$as_echo "$MANIFEST_TOOL" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386
6387fi
6388if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6389  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6390  # Extract the first word of "mt", so it can be a program name with args.
6391set dummy mt; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  if test -n "$ac_ct_MANIFEST_TOOL"; then
6398  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405    for ac_exec_ext in '' $ac_executable_extensions; do
6406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412  done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6418if test -n "$ac_ct_MANIFEST_TOOL"; then
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6420$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6427    MANIFEST_TOOL=":"
6428  else
6429    case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433ac_tool_warned=yes ;;
6434esac
6435    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6436  fi
6437else
6438  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6439fi
6440
6441test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6443$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6444if ${lt_cv_path_mainfest_tool+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  lt_cv_path_mainfest_tool=no
6448  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6449  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6450  cat conftest.err >&5
6451  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6452    lt_cv_path_mainfest_tool=yes
6453  fi
6454  rm -f conftest*
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6457$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6458if test "x$lt_cv_path_mainfest_tool" != xyes; then
6459  MANIFEST_TOOL=:
6460fi
6461
6462
6463
6464
6465
6466
6467  case $host_os in
6468    rhapsody* | darwin*)
6469    if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_DSYMUTIL+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$DSYMUTIL"; then
6478  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497DSYMUTIL=$ac_cv_prog_DSYMUTIL
6498if test -n "$DSYMUTIL"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6500$as_echo "$DSYMUTIL" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_DSYMUTIL"; then
6509  ac_ct_DSYMUTIL=$DSYMUTIL
6510  # Extract the first word of "dsymutil", so it can be a program name with args.
6511set dummy dsymutil; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_DSYMUTIL"; then
6518  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6538if test -n "$ac_ct_DSYMUTIL"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6540$as_echo "$ac_ct_DSYMUTIL" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_DSYMUTIL" = x; then
6547    DSYMUTIL=":"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    DSYMUTIL=$ac_ct_DSYMUTIL
6556  fi
6557else
6558  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6559fi
6560
6561    if test -n "$ac_tool_prefix"; then
6562  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6563set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
6566if ${ac_cv_prog_NMEDIT+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  if test -n "$NMEDIT"; then
6570  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575  IFS=$as_save_IFS
6576  test -z "$as_dir" && as_dir=.
6577    for ac_exec_ext in '' $ac_executable_extensions; do
6578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584  done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589NMEDIT=$ac_cv_prog_NMEDIT
6590if test -n "$NMEDIT"; then
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6592$as_echo "$NMEDIT" >&6; }
6593else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599fi
6600if test -z "$ac_cv_prog_NMEDIT"; then
6601  ac_ct_NMEDIT=$NMEDIT
6602  # Extract the first word of "nmedit", so it can be a program name with args.
6603set dummy nmedit; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  if test -n "$ac_ct_NMEDIT"; then
6610  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  test -z "$as_dir" && as_dir=.
6617    for ac_exec_ext in '' $ac_executable_extensions; do
6618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624  done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6630if test -n "$ac_ct_NMEDIT"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6632$as_echo "$ac_ct_NMEDIT" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638  if test "x$ac_ct_NMEDIT" = x; then
6639    NMEDIT=":"
6640  else
6641    case $cross_compiling:$ac_tool_warned in
6642yes:)
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645ac_tool_warned=yes ;;
6646esac
6647    NMEDIT=$ac_ct_NMEDIT
6648  fi
6649else
6650  NMEDIT="$ac_cv_prog_NMEDIT"
6651fi
6652
6653    if test -n "$ac_tool_prefix"; then
6654  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6655set dummy ${ac_tool_prefix}lipo; ac_word=$2
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
6658if ${ac_cv_prog_LIPO+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  if test -n "$LIPO"; then
6662  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667  IFS=$as_save_IFS
6668  test -z "$as_dir" && as_dir=.
6669    for ac_exec_ext in '' $ac_executable_extensions; do
6670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673    break 2
6674  fi
6675done
6676  done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681LIPO=$ac_cv_prog_LIPO
6682if test -n "$LIPO"; then
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6684$as_echo "$LIPO" >&6; }
6685else
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
6688fi
6689
6690
6691fi
6692if test -z "$ac_cv_prog_LIPO"; then
6693  ac_ct_LIPO=$LIPO
6694  # Extract the first word of "lipo", so it can be a program name with args.
6695set dummy lipo; ac_word=$2
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697$as_echo_n "checking for $ac_word... " >&6; }
6698if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  if test -n "$ac_ct_LIPO"; then
6702  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709    for ac_exec_ext in '' $ac_executable_extensions; do
6710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711    ac_cv_prog_ac_ct_LIPO="lipo"
6712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716  done
6717IFS=$as_save_IFS
6718
6719fi
6720fi
6721ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6722if test -n "$ac_ct_LIPO"; then
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6724$as_echo "$ac_ct_LIPO" >&6; }
6725else
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727$as_echo "no" >&6; }
6728fi
6729
6730  if test "x$ac_ct_LIPO" = x; then
6731    LIPO=":"
6732  else
6733    case $cross_compiling:$ac_tool_warned in
6734yes:)
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737ac_tool_warned=yes ;;
6738esac
6739    LIPO=$ac_ct_LIPO
6740  fi
6741else
6742  LIPO="$ac_cv_prog_LIPO"
6743fi
6744
6745    if test -n "$ac_tool_prefix"; then
6746  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6747set dummy ${ac_tool_prefix}otool; ac_word=$2
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749$as_echo_n "checking for $ac_word... " >&6; }
6750if ${ac_cv_prog_OTOOL+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  if test -n "$OTOOL"; then
6754  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759  IFS=$as_save_IFS
6760  test -z "$as_dir" && as_dir=.
6761    for ac_exec_ext in '' $ac_executable_extensions; do
6762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765    break 2
6766  fi
6767done
6768  done
6769IFS=$as_save_IFS
6770
6771fi
6772fi
6773OTOOL=$ac_cv_prog_OTOOL
6774if test -n "$OTOOL"; then
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6776$as_echo "$OTOOL" >&6; }
6777else
6778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779$as_echo "no" >&6; }
6780fi
6781
6782
6783fi
6784if test -z "$ac_cv_prog_OTOOL"; then
6785  ac_ct_OTOOL=$OTOOL
6786  # Extract the first word of "otool", so it can be a program name with args.
6787set dummy otool; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -n "$ac_ct_OTOOL"; then
6794  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803    ac_cv_prog_ac_ct_OTOOL="otool"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6814if test -n "$ac_ct_OTOOL"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6816$as_echo "$ac_ct_OTOOL" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822  if test "x$ac_ct_OTOOL" = x; then
6823    OTOOL=":"
6824  else
6825    case $cross_compiling:$ac_tool_warned in
6826yes:)
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829ac_tool_warned=yes ;;
6830esac
6831    OTOOL=$ac_ct_OTOOL
6832  fi
6833else
6834  OTOOL="$ac_cv_prog_OTOOL"
6835fi
6836
6837    if test -n "$ac_tool_prefix"; then
6838  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6839set dummy ${ac_tool_prefix}otool64; ac_word=$2
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if ${ac_cv_prog_OTOOL64+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  if test -n "$OTOOL64"; then
6846  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi
6864fi
6865OTOOL64=$ac_cv_prog_OTOOL64
6866if test -n "$OTOOL64"; then
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6868$as_echo "$OTOOL64" >&6; }
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
6872fi
6873
6874
6875fi
6876if test -z "$ac_cv_prog_OTOOL64"; then
6877  ac_ct_OTOOL64=$OTOOL64
6878  # Extract the first word of "otool64", so it can be a program name with args.
6879set dummy otool64; ac_word=$2
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  if test -n "$ac_ct_OTOOL64"; then
6886  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891  IFS=$as_save_IFS
6892  test -z "$as_dir" && as_dir=.
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895    ac_cv_prog_ac_ct_OTOOL64="otool64"
6896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6906if test -n "$ac_ct_OTOOL64"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6908$as_echo "$ac_ct_OTOOL64" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914  if test "x$ac_ct_OTOOL64" = x; then
6915    OTOOL64=":"
6916  else
6917    case $cross_compiling:$ac_tool_warned in
6918yes:)
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921ac_tool_warned=yes ;;
6922esac
6923    OTOOL64=$ac_ct_OTOOL64
6924  fi
6925else
6926  OTOOL64="$ac_cv_prog_OTOOL64"
6927fi
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6956$as_echo_n "checking for -single_module linker flag... " >&6; }
6957if ${lt_cv_apple_cc_single_mod+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  lt_cv_apple_cc_single_mod=no
6961      if test -z "${LT_MULTI_MODULE}"; then
6962	# By default we will add the -single_module flag. You can override
6963	# by either setting the environment variable LT_MULTI_MODULE
6964	# non-empty at configure time, or by adding -multi_module to the
6965	# link flags.
6966	rm -rf libconftest.dylib*
6967	echo "int foo(void){return 1;}" > conftest.c
6968	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6969-dynamiclib -Wl,-single_module conftest.c" >&5
6970	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6971	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6972        _lt_result=$?
6973	# If there is a non-empty error log, and "single_module"
6974	# appears in it, assume the flag caused a linker warning
6975        if test -s conftest.err && $GREP single_module conftest.err; then
6976	  cat conftest.err >&5
6977	# Otherwise, if the output was created with a 0 exit code from
6978	# the compiler, it worked.
6979	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6980	  lt_cv_apple_cc_single_mod=yes
6981	else
6982	  cat conftest.err >&5
6983	fi
6984	rm -rf libconftest.dylib*
6985	rm -f conftest.*
6986      fi
6987fi
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6989$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6990
6991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6992$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6993if ${lt_cv_ld_exported_symbols_list+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  lt_cv_ld_exported_symbols_list=no
6997      save_LDFLAGS=$LDFLAGS
6998      echo "_main" > conftest.sym
6999      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7000      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002
7003int
7004main ()
7005{
7006
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_link "$LINENO"; then :
7012  lt_cv_ld_exported_symbols_list=yes
7013else
7014  lt_cv_ld_exported_symbols_list=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext conftest.$ac_ext
7018	LDFLAGS="$save_LDFLAGS"
7019
7020fi
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7022$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7023
7024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7025$as_echo_n "checking for -force_load linker flag... " >&6; }
7026if ${lt_cv_ld_force_load+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  lt_cv_ld_force_load=no
7030      cat > conftest.c << _LT_EOF
7031int forced_loaded() { return 2;}
7032_LT_EOF
7033      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7034      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7035      echo "$AR cru libconftest.a conftest.o" >&5
7036      $AR cru libconftest.a conftest.o 2>&5
7037      echo "$RANLIB libconftest.a" >&5
7038      $RANLIB libconftest.a 2>&5
7039      cat > conftest.c << _LT_EOF
7040int main() { return 0;}
7041_LT_EOF
7042      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7043      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7044      _lt_result=$?
7045      if test -s conftest.err && $GREP force_load conftest.err; then
7046	cat conftest.err >&5
7047      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7048	lt_cv_ld_force_load=yes
7049      else
7050	cat conftest.err >&5
7051      fi
7052        rm -f conftest.err libconftest.a conftest conftest.c
7053        rm -rf conftest.dSYM
7054
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7057$as_echo "$lt_cv_ld_force_load" >&6; }
7058    case $host_os in
7059    rhapsody* | darwin1.[012])
7060      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7061    darwin1.*)
7062      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063    darwin*) # darwin 5.x on
7064      # if running on 10.5 or later, the deployment target defaults
7065      # to the OS version, if on x86, and 10.4, the deployment
7066      # target defaults to 10.4. Don't you love it?
7067      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7070	10.[012]*)
7071	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072	10.*)
7073	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7074      esac
7075    ;;
7076  esac
7077    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078      _lt_dar_single_mod='$single_module'
7079    fi
7080    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7082    else
7083      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7084    fi
7085    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7086      _lt_dsymutil='~$DSYMUTIL $lib || :'
7087    else
7088      _lt_dsymutil=
7089    fi
7090    ;;
7091  esac
7092
7093ac_ext=c
7094ac_cpp='$CPP $CPPFLAGS'
7095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7099$as_echo_n "checking how to run the C preprocessor... " >&6; }
7100# On Suns, sometimes $CPP names a directory.
7101if test -n "$CPP" && test -d "$CPP"; then
7102  CPP=
7103fi
7104if test -z "$CPP"; then
7105  if ${ac_cv_prog_CPP+:} false; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108      # Double quotes because CPP needs to be expanded
7109    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7110    do
7111      ac_preproc_ok=false
7112for ac_c_preproc_warn_flag in '' yes
7113do
7114  # Use a header file that comes with gcc, so configuring glibc
7115  # with a fresh cross-compiler works.
7116  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117  # <limits.h> exists even on freestanding compilers.
7118  # On the NeXT, cc -E runs the code through the compiler's parser,
7119  # not just through cpp. "Syntax error" is here to catch this case.
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122#ifdef __STDC__
7123# include <limits.h>
7124#else
7125# include <assert.h>
7126#endif
7127		     Syntax error
7128_ACEOF
7129if ac_fn_c_try_cpp "$LINENO"; then :
7130
7131else
7132  # Broken: fails on valid input.
7133continue
7134fi
7135rm -f conftest.err conftest.i conftest.$ac_ext
7136
7137  # OK, works on sane cases.  Now check whether nonexistent headers
7138  # can be detected and how.
7139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141#include <ac_nonexistent.h>
7142_ACEOF
7143if ac_fn_c_try_cpp "$LINENO"; then :
7144  # Broken: success on invalid input.
7145continue
7146else
7147  # Passes both tests.
7148ac_preproc_ok=:
7149break
7150fi
7151rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153done
7154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7155rm -f conftest.i conftest.err conftest.$ac_ext
7156if $ac_preproc_ok; then :
7157  break
7158fi
7159
7160    done
7161    ac_cv_prog_CPP=$CPP
7162
7163fi
7164  CPP=$ac_cv_prog_CPP
7165else
7166  ac_cv_prog_CPP=$CPP
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7169$as_echo "$CPP" >&6; }
7170ac_preproc_ok=false
7171for ac_c_preproc_warn_flag in '' yes
7172do
7173  # Use a header file that comes with gcc, so configuring glibc
7174  # with a fresh cross-compiler works.
7175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176  # <limits.h> exists even on freestanding compilers.
7177  # On the NeXT, cc -E runs the code through the compiler's parser,
7178  # not just through cpp. "Syntax error" is here to catch this case.
7179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181#ifdef __STDC__
7182# include <limits.h>
7183#else
7184# include <assert.h>
7185#endif
7186		     Syntax error
7187_ACEOF
7188if ac_fn_c_try_cpp "$LINENO"; then :
7189
7190else
7191  # Broken: fails on valid input.
7192continue
7193fi
7194rm -f conftest.err conftest.i conftest.$ac_ext
7195
7196  # OK, works on sane cases.  Now check whether nonexistent headers
7197  # can be detected and how.
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200#include <ac_nonexistent.h>
7201_ACEOF
7202if ac_fn_c_try_cpp "$LINENO"; then :
7203  # Broken: success on invalid input.
7204continue
7205else
7206  # Passes both tests.
7207ac_preproc_ok=:
7208break
7209fi
7210rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212done
7213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7214rm -f conftest.i conftest.err conftest.$ac_ext
7215if $ac_preproc_ok; then :
7216
7217else
7218  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7221See \`config.log' for more details" "$LINENO" 5; }
7222fi
7223
7224ac_ext=c
7225ac_cpp='$CPP $CPPFLAGS'
7226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7232$as_echo_n "checking for ANSI C header files... " >&6; }
7233if ${ac_cv_header_stdc+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237/* end confdefs.h.  */
7238#include <stdlib.h>
7239#include <stdarg.h>
7240#include <string.h>
7241#include <float.h>
7242
7243int
7244main ()
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_compile "$LINENO"; then :
7252  ac_cv_header_stdc=yes
7253else
7254  ac_cv_header_stdc=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257
7258if test $ac_cv_header_stdc = yes; then
7259  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262#include <string.h>
7263
7264_ACEOF
7265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266  $EGREP "memchr" >/dev/null 2>&1; then :
7267
7268else
7269  ac_cv_header_stdc=no
7270fi
7271rm -f conftest*
7272
7273fi
7274
7275if test $ac_cv_header_stdc = yes; then
7276  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279#include <stdlib.h>
7280
7281_ACEOF
7282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283  $EGREP "free" >/dev/null 2>&1; then :
7284
7285else
7286  ac_cv_header_stdc=no
7287fi
7288rm -f conftest*
7289
7290fi
7291
7292if test $ac_cv_header_stdc = yes; then
7293  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7294  if test "$cross_compiling" = yes; then :
7295  :
7296else
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299#include <ctype.h>
7300#include <stdlib.h>
7301#if ((' ' & 0x0FF) == 0x020)
7302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7304#else
7305# define ISLOWER(c) \
7306		   (('a' <= (c) && (c) <= 'i') \
7307		     || ('j' <= (c) && (c) <= 'r') \
7308		     || ('s' <= (c) && (c) <= 'z'))
7309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7310#endif
7311
7312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313int
7314main ()
7315{
7316  int i;
7317  for (i = 0; i < 256; i++)
7318    if (XOR (islower (i), ISLOWER (i))
7319	|| toupper (i) != TOUPPER (i))
7320      return 2;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_run "$LINENO"; then :
7325
7326else
7327  ac_cv_header_stdc=no
7328fi
7329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7330  conftest.$ac_objext conftest.beam conftest.$ac_ext
7331fi
7332
7333fi
7334fi
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7336$as_echo "$ac_cv_header_stdc" >&6; }
7337if test $ac_cv_header_stdc = yes; then
7338
7339$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7340
7341fi
7342
7343# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7345		  inttypes.h stdint.h unistd.h
7346do :
7347  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7349"
7350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7351  cat >>confdefs.h <<_ACEOF
7352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353_ACEOF
7354
7355fi
7356
7357done
7358
7359
7360for ac_header in dlfcn.h
7361do :
7362  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7363"
7364if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7365  cat >>confdefs.h <<_ACEOF
7366#define HAVE_DLFCN_H 1
7367_ACEOF
7368
7369fi
7370
7371done
7372
7373
7374
7375
7376
7377# Set options
7378
7379
7380
7381        enable_dlopen=no
7382
7383
7384  enable_win32_dll=no
7385
7386
7387            # Check whether --enable-shared was given.
7388if test "${enable_shared+set}" = set; then :
7389  enableval=$enable_shared; p=${PACKAGE-default}
7390    case $enableval in
7391    yes) enable_shared=yes ;;
7392    no) enable_shared=no ;;
7393    *)
7394      enable_shared=no
7395      # Look at the argument we got.  We use all the common list separators.
7396      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397      for pkg in $enableval; do
7398	IFS="$lt_save_ifs"
7399	if test "X$pkg" = "X$p"; then
7400	  enable_shared=yes
7401	fi
7402      done
7403      IFS="$lt_save_ifs"
7404      ;;
7405    esac
7406else
7407  enable_shared=yes
7408fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418  # Check whether --enable-static was given.
7419if test "${enable_static+set}" = set; then :
7420  enableval=$enable_static; p=${PACKAGE-default}
7421    case $enableval in
7422    yes) enable_static=yes ;;
7423    no) enable_static=no ;;
7424    *)
7425     enable_static=no
7426      # Look at the argument we got.  We use all the common list separators.
7427      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428      for pkg in $enableval; do
7429	IFS="$lt_save_ifs"
7430	if test "X$pkg" = "X$p"; then
7431	  enable_static=yes
7432	fi
7433      done
7434      IFS="$lt_save_ifs"
7435      ;;
7436    esac
7437else
7438  enable_static=yes
7439fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450# Check whether --with-pic was given.
7451if test "${with_pic+set}" = set; then :
7452  withval=$with_pic; lt_p=${PACKAGE-default}
7453    case $withval in
7454    yes|no) pic_mode=$withval ;;
7455    *)
7456      pic_mode=default
7457      # Look at the argument we got.  We use all the common list separators.
7458      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459      for lt_pkg in $withval; do
7460	IFS="$lt_save_ifs"
7461	if test "X$lt_pkg" = "X$lt_p"; then
7462	  pic_mode=yes
7463	fi
7464      done
7465      IFS="$lt_save_ifs"
7466      ;;
7467    esac
7468else
7469  pic_mode=default
7470fi
7471
7472
7473test -z "$pic_mode" && pic_mode=default
7474
7475
7476
7477
7478
7479
7480
7481  # Check whether --enable-fast-install was given.
7482if test "${enable_fast_install+set}" = set; then :
7483  enableval=$enable_fast_install; p=${PACKAGE-default}
7484    case $enableval in
7485    yes) enable_fast_install=yes ;;
7486    no) enable_fast_install=no ;;
7487    *)
7488      enable_fast_install=no
7489      # Look at the argument we got.  We use all the common list separators.
7490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491      for pkg in $enableval; do
7492	IFS="$lt_save_ifs"
7493	if test "X$pkg" = "X$p"; then
7494	  enable_fast_install=yes
7495	fi
7496      done
7497      IFS="$lt_save_ifs"
7498      ;;
7499    esac
7500else
7501  enable_fast_install=yes
7502fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514# This can be used to rebuild libtool when needed
7515LIBTOOL_DEPS="$ltmain"
7516
7517# Always use our own libtool.
7518LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549test -z "$LN_S" && LN_S="ln -s"
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564if test -n "${ZSH_VERSION+set}" ; then
7565   setopt NO_GLOB_SUBST
7566fi
7567
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7569$as_echo_n "checking for objdir... " >&6; }
7570if ${lt_cv_objdir+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  rm -f .libs 2>/dev/null
7574mkdir .libs 2>/dev/null
7575if test -d .libs; then
7576  lt_cv_objdir=.libs
7577else
7578  # MS-DOS does not allow filenames that begin with a dot.
7579  lt_cv_objdir=_libs
7580fi
7581rmdir .libs 2>/dev/null
7582fi
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7584$as_echo "$lt_cv_objdir" >&6; }
7585objdir=$lt_cv_objdir
7586
7587
7588
7589
7590
7591cat >>confdefs.h <<_ACEOF
7592#define LT_OBJDIR "$lt_cv_objdir/"
7593_ACEOF
7594
7595
7596
7597
7598case $host_os in
7599aix3*)
7600  # AIX sometimes has problems with the GCC collect2 program.  For some
7601  # reason, if we set the COLLECT_NAMES environment variable, the problems
7602  # vanish in a puff of smoke.
7603  if test "X${COLLECT_NAMES+set}" != Xset; then
7604    COLLECT_NAMES=
7605    export COLLECT_NAMES
7606  fi
7607  ;;
7608esac
7609
7610# Global variables:
7611ofile=libtool
7612can_build_shared=yes
7613
7614# All known linkers require a `.a' archive for static linking (except MSVC,
7615# which needs '.lib').
7616libext=a
7617
7618with_gnu_ld="$lt_cv_prog_gnu_ld"
7619
7620old_CC="$CC"
7621old_CFLAGS="$CFLAGS"
7622
7623# Set sane defaults for various variables
7624test -z "$CC" && CC=cc
7625test -z "$LTCC" && LTCC=$CC
7626test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7627test -z "$LD" && LD=ld
7628test -z "$ac_objext" && ac_objext=o
7629
7630for cc_temp in $compiler""; do
7631  case $cc_temp in
7632    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7633    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7634    \-*) ;;
7635    *) break;;
7636  esac
7637done
7638cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7639
7640
7641# Only perform the check for file, if the check method requires it
7642test -z "$MAGIC_CMD" && MAGIC_CMD=file
7643case $deplibs_check_method in
7644file_magic*)
7645  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7647$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7648if ${lt_cv_path_MAGIC_CMD+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  case $MAGIC_CMD in
7652[\\/*] |  ?:[\\/]*)
7653  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7654  ;;
7655*)
7656  lt_save_MAGIC_CMD="$MAGIC_CMD"
7657  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7658  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7659  for ac_dir in $ac_dummy; do
7660    IFS="$lt_save_ifs"
7661    test -z "$ac_dir" && ac_dir=.
7662    if test -f $ac_dir/${ac_tool_prefix}file; then
7663      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7664      if test -n "$file_magic_test_file"; then
7665	case $deplibs_check_method in
7666	"file_magic "*)
7667	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7668	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7669	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7670	    $EGREP "$file_magic_regex" > /dev/null; then
7671	    :
7672	  else
7673	    cat <<_LT_EOF 1>&2
7674
7675*** Warning: the command libtool uses to detect shared libraries,
7676*** $file_magic_cmd, produces output that libtool cannot recognize.
7677*** The result is that libtool may fail to recognize shared libraries
7678*** as such.  This will affect the creation of libtool libraries that
7679*** depend on shared libraries, but programs linked with such libtool
7680*** libraries will work regardless of this problem.  Nevertheless, you
7681*** may want to report the problem to your system manager and/or to
7682*** bug-libtool@gnu.org
7683
7684_LT_EOF
7685	  fi ;;
7686	esac
7687      fi
7688      break
7689    fi
7690  done
7691  IFS="$lt_save_ifs"
7692  MAGIC_CMD="$lt_save_MAGIC_CMD"
7693  ;;
7694esac
7695fi
7696
7697MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698if test -n "$MAGIC_CMD"; then
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7700$as_echo "$MAGIC_CMD" >&6; }
7701else
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
7704fi
7705
7706
7707
7708
7709
7710if test -z "$lt_cv_path_MAGIC_CMD"; then
7711  if test -n "$ac_tool_prefix"; then
7712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7713$as_echo_n "checking for file... " >&6; }
7714if ${lt_cv_path_MAGIC_CMD+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  case $MAGIC_CMD in
7718[\\/*] |  ?:[\\/]*)
7719  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7720  ;;
7721*)
7722  lt_save_MAGIC_CMD="$MAGIC_CMD"
7723  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7724  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7725  for ac_dir in $ac_dummy; do
7726    IFS="$lt_save_ifs"
7727    test -z "$ac_dir" && ac_dir=.
7728    if test -f $ac_dir/file; then
7729      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7730      if test -n "$file_magic_test_file"; then
7731	case $deplibs_check_method in
7732	"file_magic "*)
7733	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7734	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7735	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7736	    $EGREP "$file_magic_regex" > /dev/null; then
7737	    :
7738	  else
7739	    cat <<_LT_EOF 1>&2
7740
7741*** Warning: the command libtool uses to detect shared libraries,
7742*** $file_magic_cmd, produces output that libtool cannot recognize.
7743*** The result is that libtool may fail to recognize shared libraries
7744*** as such.  This will affect the creation of libtool libraries that
7745*** depend on shared libraries, but programs linked with such libtool
7746*** libraries will work regardless of this problem.  Nevertheless, you
7747*** may want to report the problem to your system manager and/or to
7748*** bug-libtool@gnu.org
7749
7750_LT_EOF
7751	  fi ;;
7752	esac
7753      fi
7754      break
7755    fi
7756  done
7757  IFS="$lt_save_ifs"
7758  MAGIC_CMD="$lt_save_MAGIC_CMD"
7759  ;;
7760esac
7761fi
7762
7763MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764if test -n "$MAGIC_CMD"; then
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7766$as_echo "$MAGIC_CMD" >&6; }
7767else
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
7770fi
7771
7772
7773  else
7774    MAGIC_CMD=:
7775  fi
7776fi
7777
7778  fi
7779  ;;
7780esac
7781
7782# Use C for the default configuration in the libtool script
7783
7784lt_save_CC="$CC"
7785ac_ext=c
7786ac_cpp='$CPP $CPPFLAGS'
7787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790
7791
7792# Source file extension for C test sources.
7793ac_ext=c
7794
7795# Object file extension for compiled C test sources.
7796objext=o
7797objext=$objext
7798
7799# Code to be used in simple compile tests
7800lt_simple_compile_test_code="int some_variable = 0;"
7801
7802# Code to be used in simple link tests
7803lt_simple_link_test_code='int main(){return(0);}'
7804
7805
7806
7807
7808
7809
7810
7811# If no C compiler was specified, use CC.
7812LTCC=${LTCC-"$CC"}
7813
7814# If no C compiler flags were specified, use CFLAGS.
7815LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7816
7817# Allow CC to be a program name with arguments.
7818compiler=$CC
7819
7820# Save the default compiler, since it gets overwritten when the other
7821# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7822compiler_DEFAULT=$CC
7823
7824# save warnings/boilerplate of simple test code
7825ac_outfile=conftest.$ac_objext
7826echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7827eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7828_lt_compiler_boilerplate=`cat conftest.err`
7829$RM conftest*
7830
7831ac_outfile=conftest.$ac_objext
7832echo "$lt_simple_link_test_code" >conftest.$ac_ext
7833eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7834_lt_linker_boilerplate=`cat conftest.err`
7835$RM -r conftest*
7836
7837
7838if test -n "$compiler"; then
7839
7840lt_prog_compiler_no_builtin_flag=
7841
7842if test "$GCC" = yes; then
7843  case $cc_basename in
7844  nvcc*)
7845    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7846  *)
7847    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7848  esac
7849
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7851$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7852if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7853  $as_echo_n "(cached) " >&6
7854else
7855  lt_cv_prog_compiler_rtti_exceptions=no
7856   ac_outfile=conftest.$ac_objext
7857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858   lt_compiler_flag="-fno-rtti -fno-exceptions"
7859   # Insert the option either (1) after the last *FLAGS variable, or
7860   # (2) before a word containing "conftest.", or (3) at the end.
7861   # Note that $ac_compile itself does not contain backslashes and begins
7862   # with a dollar sign (not a hyphen), so the echo should work correctly.
7863   # The option is referenced via a variable to avoid confusing sed.
7864   lt_compile=`echo "$ac_compile" | $SED \
7865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867   -e 's:$: $lt_compiler_flag:'`
7868   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7869   (eval "$lt_compile" 2>conftest.err)
7870   ac_status=$?
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   if (exit $ac_status) && test -s "$ac_outfile"; then
7874     # The compiler can only warn and ignore the option if not recognized
7875     # So say no if there are warnings other than the usual output.
7876     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7877     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7878     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7879       lt_cv_prog_compiler_rtti_exceptions=yes
7880     fi
7881   fi
7882   $RM conftest*
7883
7884fi
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7886$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7887
7888if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7889    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7890else
7891    :
7892fi
7893
7894fi
7895
7896
7897
7898
7899
7900
7901  lt_prog_compiler_wl=
7902lt_prog_compiler_pic=
7903lt_prog_compiler_static=
7904
7905
7906  if test "$GCC" = yes; then
7907    lt_prog_compiler_wl='-Wl,'
7908    lt_prog_compiler_static='-static'
7909
7910    case $host_os in
7911      aix*)
7912      # All AIX code is PIC.
7913      if test "$host_cpu" = ia64; then
7914	# AIX 5 now supports IA64 processor
7915	lt_prog_compiler_static='-Bstatic'
7916      fi
7917      ;;
7918
7919    amigaos*)
7920      case $host_cpu in
7921      powerpc)
7922            # see comment about AmigaOS4 .so support
7923            lt_prog_compiler_pic='-fPIC'
7924        ;;
7925      m68k)
7926            # FIXME: we need at least 68020 code to build shared libraries, but
7927            # adding the `-m68020' flag to GCC prevents building anything better,
7928            # like `-m68040'.
7929            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7930        ;;
7931      esac
7932      ;;
7933
7934    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7935      # PIC is the default for these OSes.
7936      ;;
7937
7938    mingw* | cygwin* | pw32* | os2* | cegcc*)
7939      # This hack is so that the source file can tell whether it is being
7940      # built for inclusion in a dll (and should export symbols for example).
7941      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7942      # (--disable-auto-import) libraries
7943      lt_prog_compiler_pic='-DDLL_EXPORT'
7944      ;;
7945
7946    darwin* | rhapsody*)
7947      # PIC is the default on this platform
7948      # Common symbols not allowed in MH_DYLIB files
7949      lt_prog_compiler_pic='-fno-common'
7950      ;;
7951
7952    haiku*)
7953      # PIC is the default for Haiku.
7954      # The "-static" flag exists, but is broken.
7955      lt_prog_compiler_static=
7956      ;;
7957
7958    hpux*)
7959      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7960      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7961      # sets the default TLS model and affects inlining.
7962      case $host_cpu in
7963      hppa*64*)
7964	# +Z the default
7965	;;
7966      *)
7967	lt_prog_compiler_pic='-fPIC'
7968	;;
7969      esac
7970      ;;
7971
7972    interix[3-9]*)
7973      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7974      # Instead, we relocate shared libraries at runtime.
7975      ;;
7976
7977    msdosdjgpp*)
7978      # Just because we use GCC doesn't mean we suddenly get shared libraries
7979      # on systems that don't support them.
7980      lt_prog_compiler_can_build_shared=no
7981      enable_shared=no
7982      ;;
7983
7984    *nto* | *qnx*)
7985      # QNX uses GNU C++, but need to define -shared option too, otherwise
7986      # it will coredump.
7987      lt_prog_compiler_pic='-fPIC -shared'
7988      ;;
7989
7990    sysv4*MP*)
7991      if test -d /usr/nec; then
7992	lt_prog_compiler_pic=-Kconform_pic
7993      fi
7994      ;;
7995
7996    *)
7997      lt_prog_compiler_pic='-fPIC'
7998      ;;
7999    esac
8000
8001    case $cc_basename in
8002    nvcc*) # Cuda Compiler Driver 2.2
8003      lt_prog_compiler_wl='-Xlinker '
8004      if test -n "$lt_prog_compiler_pic"; then
8005        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8006      fi
8007      ;;
8008    esac
8009  else
8010    # PORTME Check for flag to pass linker flags through the system compiler.
8011    case $host_os in
8012    aix*)
8013      lt_prog_compiler_wl='-Wl,'
8014      if test "$host_cpu" = ia64; then
8015	# AIX 5 now supports IA64 processor
8016	lt_prog_compiler_static='-Bstatic'
8017      else
8018	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8019      fi
8020      ;;
8021
8022    mingw* | cygwin* | pw32* | os2* | cegcc*)
8023      # This hack is so that the source file can tell whether it is being
8024      # built for inclusion in a dll (and should export symbols for example).
8025      lt_prog_compiler_pic='-DDLL_EXPORT'
8026      ;;
8027
8028    hpux9* | hpux10* | hpux11*)
8029      lt_prog_compiler_wl='-Wl,'
8030      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8031      # not for PA HP-UX.
8032      case $host_cpu in
8033      hppa*64*|ia64*)
8034	# +Z the default
8035	;;
8036      *)
8037	lt_prog_compiler_pic='+Z'
8038	;;
8039      esac
8040      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8041      lt_prog_compiler_static='${wl}-a ${wl}archive'
8042      ;;
8043
8044    irix5* | irix6* | nonstopux*)
8045      lt_prog_compiler_wl='-Wl,'
8046      # PIC (with -KPIC) is the default.
8047      lt_prog_compiler_static='-non_shared'
8048      ;;
8049
8050    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8051      case $cc_basename in
8052      # old Intel for x86_64 which still supported -KPIC.
8053      ecc*)
8054	lt_prog_compiler_wl='-Wl,'
8055	lt_prog_compiler_pic='-KPIC'
8056	lt_prog_compiler_static='-static'
8057        ;;
8058      # icc used to be incompatible with GCC.
8059      # ICC 10 doesn't accept -KPIC any more.
8060      icc* | ifort*)
8061	lt_prog_compiler_wl='-Wl,'
8062	lt_prog_compiler_pic='-fPIC'
8063	lt_prog_compiler_static='-static'
8064        ;;
8065      # Lahey Fortran 8.1.
8066      lf95*)
8067	lt_prog_compiler_wl='-Wl,'
8068	lt_prog_compiler_pic='--shared'
8069	lt_prog_compiler_static='--static'
8070	;;
8071      nagfor*)
8072	# NAG Fortran compiler
8073	lt_prog_compiler_wl='-Wl,-Wl,,'
8074	lt_prog_compiler_pic='-PIC'
8075	lt_prog_compiler_static='-Bstatic'
8076	;;
8077      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8078        # Portland Group compilers (*not* the Pentium gcc compiler,
8079	# which looks to be a dead project)
8080	lt_prog_compiler_wl='-Wl,'
8081	lt_prog_compiler_pic='-fpic'
8082	lt_prog_compiler_static='-Bstatic'
8083        ;;
8084      ccc*)
8085        lt_prog_compiler_wl='-Wl,'
8086        # All Alpha code is PIC.
8087        lt_prog_compiler_static='-non_shared'
8088        ;;
8089      xl* | bgxl* | bgf* | mpixl*)
8090	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8091	lt_prog_compiler_wl='-Wl,'
8092	lt_prog_compiler_pic='-qpic'
8093	lt_prog_compiler_static='-qstaticlink'
8094	;;
8095      *)
8096	case `$CC -V 2>&1 | sed 5q` in
8097	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8098	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8099	  lt_prog_compiler_pic='-KPIC'
8100	  lt_prog_compiler_static='-Bstatic'
8101	  lt_prog_compiler_wl=''
8102	  ;;
8103	*Sun\ F* | *Sun*Fortran*)
8104	  lt_prog_compiler_pic='-KPIC'
8105	  lt_prog_compiler_static='-Bstatic'
8106	  lt_prog_compiler_wl='-Qoption ld '
8107	  ;;
8108	*Sun\ C*)
8109	  # Sun C 5.9
8110	  lt_prog_compiler_pic='-KPIC'
8111	  lt_prog_compiler_static='-Bstatic'
8112	  lt_prog_compiler_wl='-Wl,'
8113	  ;;
8114        *Intel*\ [CF]*Compiler*)
8115	  lt_prog_compiler_wl='-Wl,'
8116	  lt_prog_compiler_pic='-fPIC'
8117	  lt_prog_compiler_static='-static'
8118	  ;;
8119	*Portland\ Group*)
8120	  lt_prog_compiler_wl='-Wl,'
8121	  lt_prog_compiler_pic='-fpic'
8122	  lt_prog_compiler_static='-Bstatic'
8123	  ;;
8124	esac
8125	;;
8126      esac
8127      ;;
8128
8129    newsos6)
8130      lt_prog_compiler_pic='-KPIC'
8131      lt_prog_compiler_static='-Bstatic'
8132      ;;
8133
8134    *nto* | *qnx*)
8135      # QNX uses GNU C++, but need to define -shared option too, otherwise
8136      # it will coredump.
8137      lt_prog_compiler_pic='-fPIC -shared'
8138      ;;
8139
8140    osf3* | osf4* | osf5*)
8141      lt_prog_compiler_wl='-Wl,'
8142      # All OSF/1 code is PIC.
8143      lt_prog_compiler_static='-non_shared'
8144      ;;
8145
8146    rdos*)
8147      lt_prog_compiler_static='-non_shared'
8148      ;;
8149
8150    solaris*)
8151      lt_prog_compiler_pic='-KPIC'
8152      lt_prog_compiler_static='-Bstatic'
8153      case $cc_basename in
8154      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8155	lt_prog_compiler_wl='-Qoption ld ';;
8156      *)
8157	lt_prog_compiler_wl='-Wl,';;
8158      esac
8159      ;;
8160
8161    sunos4*)
8162      lt_prog_compiler_wl='-Qoption ld '
8163      lt_prog_compiler_pic='-PIC'
8164      lt_prog_compiler_static='-Bstatic'
8165      ;;
8166
8167    sysv4 | sysv4.2uw2* | sysv4.3*)
8168      lt_prog_compiler_wl='-Wl,'
8169      lt_prog_compiler_pic='-KPIC'
8170      lt_prog_compiler_static='-Bstatic'
8171      ;;
8172
8173    sysv4*MP*)
8174      if test -d /usr/nec ;then
8175	lt_prog_compiler_pic='-Kconform_pic'
8176	lt_prog_compiler_static='-Bstatic'
8177      fi
8178      ;;
8179
8180    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8181      lt_prog_compiler_wl='-Wl,'
8182      lt_prog_compiler_pic='-KPIC'
8183      lt_prog_compiler_static='-Bstatic'
8184      ;;
8185
8186    unicos*)
8187      lt_prog_compiler_wl='-Wl,'
8188      lt_prog_compiler_can_build_shared=no
8189      ;;
8190
8191    uts4*)
8192      lt_prog_compiler_pic='-pic'
8193      lt_prog_compiler_static='-Bstatic'
8194      ;;
8195
8196    *)
8197      lt_prog_compiler_can_build_shared=no
8198      ;;
8199    esac
8200  fi
8201
8202case $host_os in
8203  # For platforms which do not support PIC, -DPIC is meaningless:
8204  *djgpp*)
8205    lt_prog_compiler_pic=
8206    ;;
8207  *)
8208    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8209    ;;
8210esac
8211
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8213$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8214if ${lt_cv_prog_compiler_pic+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8220$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8221lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8222
8223#
8224# Check to make sure the PIC flag actually works.
8225#
8226if test -n "$lt_prog_compiler_pic"; then
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8228$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8229if ${lt_cv_prog_compiler_pic_works+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  lt_cv_prog_compiler_pic_works=no
8233   ac_outfile=conftest.$ac_objext
8234   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8236   # Insert the option either (1) after the last *FLAGS variable, or
8237   # (2) before a word containing "conftest.", or (3) at the end.
8238   # Note that $ac_compile itself does not contain backslashes and begins
8239   # with a dollar sign (not a hyphen), so the echo should work correctly.
8240   # The option is referenced via a variable to avoid confusing sed.
8241   lt_compile=`echo "$ac_compile" | $SED \
8242   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244   -e 's:$: $lt_compiler_flag:'`
8245   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246   (eval "$lt_compile" 2>conftest.err)
8247   ac_status=$?
8248   cat conftest.err >&5
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   if (exit $ac_status) && test -s "$ac_outfile"; then
8251     # The compiler can only warn and ignore the option if not recognized
8252     # So say no if there are warnings other than the usual output.
8253     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8254     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8256       lt_cv_prog_compiler_pic_works=yes
8257     fi
8258   fi
8259   $RM conftest*
8260
8261fi
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8263$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8264
8265if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8266    case $lt_prog_compiler_pic in
8267     "" | " "*) ;;
8268     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8269     esac
8270else
8271    lt_prog_compiler_pic=
8272     lt_prog_compiler_can_build_shared=no
8273fi
8274
8275fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287#
8288# Check to make sure the static flag actually works.
8289#
8290wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8292$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8293if ${lt_cv_prog_compiler_static_works+:} false; then :
8294  $as_echo_n "(cached) " >&6
8295else
8296  lt_cv_prog_compiler_static_works=no
8297   save_LDFLAGS="$LDFLAGS"
8298   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8299   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8300   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8301     # The linker can only warn and ignore the option if not recognized
8302     # So say no if there are warnings
8303     if test -s conftest.err; then
8304       # Append any errors to the config.log.
8305       cat conftest.err 1>&5
8306       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8307       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308       if diff conftest.exp conftest.er2 >/dev/null; then
8309         lt_cv_prog_compiler_static_works=yes
8310       fi
8311     else
8312       lt_cv_prog_compiler_static_works=yes
8313     fi
8314   fi
8315   $RM -r conftest*
8316   LDFLAGS="$save_LDFLAGS"
8317
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8320$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8321
8322if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8323    :
8324else
8325    lt_prog_compiler_static=
8326fi
8327
8328
8329
8330
8331
8332
8333
8334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8335$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8336if ${lt_cv_prog_compiler_c_o+:} false; then :
8337  $as_echo_n "(cached) " >&6
8338else
8339  lt_cv_prog_compiler_c_o=no
8340   $RM -r conftest 2>/dev/null
8341   mkdir conftest
8342   cd conftest
8343   mkdir out
8344   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8345
8346   lt_compiler_flag="-o out/conftest2.$ac_objext"
8347   # Insert the option either (1) after the last *FLAGS variable, or
8348   # (2) before a word containing "conftest.", or (3) at the end.
8349   # Note that $ac_compile itself does not contain backslashes and begins
8350   # with a dollar sign (not a hyphen), so the echo should work correctly.
8351   lt_compile=`echo "$ac_compile" | $SED \
8352   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8353   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8354   -e 's:$: $lt_compiler_flag:'`
8355   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8356   (eval "$lt_compile" 2>out/conftest.err)
8357   ac_status=$?
8358   cat out/conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8361   then
8362     # The compiler can only warn and ignore the option if not recognized
8363     # So say no if there are warnings
8364     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8365     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8366     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8367       lt_cv_prog_compiler_c_o=yes
8368     fi
8369   fi
8370   chmod u+w . 2>&5
8371   $RM conftest*
8372   # SGI C++ compiler will create directory out/ii_files/ for
8373   # template instantiation
8374   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8375   $RM out/* && rmdir out
8376   cd ..
8377   $RM -r conftest
8378   $RM conftest*
8379
8380fi
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8382$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8383
8384
8385
8386
8387
8388
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8390$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8391if ${lt_cv_prog_compiler_c_o+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394  lt_cv_prog_compiler_c_o=no
8395   $RM -r conftest 2>/dev/null
8396   mkdir conftest
8397   cd conftest
8398   mkdir out
8399   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8400
8401   lt_compiler_flag="-o out/conftest2.$ac_objext"
8402   # Insert the option either (1) after the last *FLAGS variable, or
8403   # (2) before a word containing "conftest.", or (3) at the end.
8404   # Note that $ac_compile itself does not contain backslashes and begins
8405   # with a dollar sign (not a hyphen), so the echo should work correctly.
8406   lt_compile=`echo "$ac_compile" | $SED \
8407   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8409   -e 's:$: $lt_compiler_flag:'`
8410   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8411   (eval "$lt_compile" 2>out/conftest.err)
8412   ac_status=$?
8413   cat out/conftest.err >&5
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8416   then
8417     # The compiler can only warn and ignore the option if not recognized
8418     # So say no if there are warnings
8419     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8420     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8421     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8422       lt_cv_prog_compiler_c_o=yes
8423     fi
8424   fi
8425   chmod u+w . 2>&5
8426   $RM conftest*
8427   # SGI C++ compiler will create directory out/ii_files/ for
8428   # template instantiation
8429   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8430   $RM out/* && rmdir out
8431   cd ..
8432   $RM -r conftest
8433   $RM conftest*
8434
8435fi
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8437$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8438
8439
8440
8441
8442hard_links="nottested"
8443if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8444  # do not overwrite the value of need_locks provided by the user
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8446$as_echo_n "checking if we can lock with hard links... " >&6; }
8447  hard_links=yes
8448  $RM conftest*
8449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8450  touch conftest.a
8451  ln conftest.a conftest.b 2>&5 || hard_links=no
8452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8454$as_echo "$hard_links" >&6; }
8455  if test "$hard_links" = no; then
8456    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8457$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8458    need_locks=warn
8459  fi
8460else
8461  need_locks=no
8462fi
8463
8464
8465
8466
8467
8468
8469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8470$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8471
8472  runpath_var=
8473  allow_undefined_flag=
8474  always_export_symbols=no
8475  archive_cmds=
8476  archive_expsym_cmds=
8477  compiler_needs_object=no
8478  enable_shared_with_static_runtimes=no
8479  export_dynamic_flag_spec=
8480  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8481  hardcode_automatic=no
8482  hardcode_direct=no
8483  hardcode_direct_absolute=no
8484  hardcode_libdir_flag_spec=
8485  hardcode_libdir_separator=
8486  hardcode_minus_L=no
8487  hardcode_shlibpath_var=unsupported
8488  inherit_rpath=no
8489  link_all_deplibs=unknown
8490  module_cmds=
8491  module_expsym_cmds=
8492  old_archive_from_new_cmds=
8493  old_archive_from_expsyms_cmds=
8494  thread_safe_flag_spec=
8495  whole_archive_flag_spec=
8496  # include_expsyms should be a list of space-separated symbols to be *always*
8497  # included in the symbol list
8498  include_expsyms=
8499  # exclude_expsyms can be an extended regexp of symbols to exclude
8500  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8501  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8502  # as well as any symbol that contains `d'.
8503  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8504  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8505  # platforms (ab)use it in PIC code, but their linkers get confused if
8506  # the symbol is explicitly referenced.  Since portable code cannot
8507  # rely on this symbol name, it's probably fine to never include it in
8508  # preloaded symbol tables.
8509  # Exclude shared library initialization/finalization symbols.
8510  extract_expsyms_cmds=
8511
8512  case $host_os in
8513  cygwin* | mingw* | pw32* | cegcc*)
8514    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8515    # When not using gcc, we currently assume that we are using
8516    # Microsoft Visual C++.
8517    if test "$GCC" != yes; then
8518      with_gnu_ld=no
8519    fi
8520    ;;
8521  interix*)
8522    # we just hope/assume this is gcc and not c89 (= MSVC++)
8523    with_gnu_ld=yes
8524    ;;
8525  openbsd*)
8526    with_gnu_ld=no
8527    ;;
8528  esac
8529
8530  ld_shlibs=yes
8531
8532  # On some targets, GNU ld is compatible enough with the native linker
8533  # that we're better off using the native interface for both.
8534  lt_use_gnu_ld_interface=no
8535  if test "$with_gnu_ld" = yes; then
8536    case $host_os in
8537      aix*)
8538	# The AIX port of GNU ld has always aspired to compatibility
8539	# with the native linker.  However, as the warning in the GNU ld
8540	# block says, versions before 2.19.5* couldn't really create working
8541	# shared libraries, regardless of the interface used.
8542	case `$LD -v 2>&1` in
8543	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8544	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8545	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8546	  *)
8547	    lt_use_gnu_ld_interface=yes
8548	    ;;
8549	esac
8550	;;
8551      *)
8552	lt_use_gnu_ld_interface=yes
8553	;;
8554    esac
8555  fi
8556
8557  if test "$lt_use_gnu_ld_interface" = yes; then
8558    # If archive_cmds runs LD, not CC, wlarc should be empty
8559    wlarc='${wl}'
8560
8561    # Set some defaults for GNU ld with shared library support. These
8562    # are reset later if shared libraries are not supported. Putting them
8563    # here allows them to be overridden if necessary.
8564    runpath_var=LD_RUN_PATH
8565    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566    export_dynamic_flag_spec='${wl}--export-dynamic'
8567    # ancient GNU ld didn't support --whole-archive et. al.
8568    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8569      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8570    else
8571      whole_archive_flag_spec=
8572    fi
8573    supports_anon_versioning=no
8574    case `$LD -v 2>&1` in
8575      *GNU\ gold*) supports_anon_versioning=yes ;;
8576      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8577      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8578      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8579      *\ 2.11.*) ;; # other 2.11 versions
8580      *) supports_anon_versioning=yes ;;
8581    esac
8582
8583    # See if GNU ld supports shared libraries.
8584    case $host_os in
8585    aix[3-9]*)
8586      # On AIX/PPC, the GNU linker is very broken
8587      if test "$host_cpu" != ia64; then
8588	ld_shlibs=no
8589	cat <<_LT_EOF 1>&2
8590
8591*** Warning: the GNU linker, at least up to release 2.19, is reported
8592*** to be unable to reliably create shared libraries on AIX.
8593*** Therefore, libtool is disabling shared libraries support.  If you
8594*** really care for shared libraries, you may want to install binutils
8595*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8596*** You will then need to restart the configuration process.
8597
8598_LT_EOF
8599      fi
8600      ;;
8601
8602    amigaos*)
8603      case $host_cpu in
8604      powerpc)
8605            # see comment about AmigaOS4 .so support
8606            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607            archive_expsym_cmds=''
8608        ;;
8609      m68k)
8610            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)'
8611            hardcode_libdir_flag_spec='-L$libdir'
8612            hardcode_minus_L=yes
8613        ;;
8614      esac
8615      ;;
8616
8617    beos*)
8618      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8619	allow_undefined_flag=unsupported
8620	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8621	# support --undefined.  This deserves some investigation.  FIXME
8622	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623      else
8624	ld_shlibs=no
8625      fi
8626      ;;
8627
8628    cygwin* | mingw* | pw32* | cegcc*)
8629      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8630      # as there is no search path for DLLs.
8631      hardcode_libdir_flag_spec='-L$libdir'
8632      export_dynamic_flag_spec='${wl}--export-all-symbols'
8633      allow_undefined_flag=unsupported
8634      always_export_symbols=no
8635      enable_shared_with_static_runtimes=yes
8636      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'
8637      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8638
8639      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8640        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8641	# If the export-symbols file already is a .def file (1st line
8642	# is EXPORTS), use it as is; otherwise, prepend...
8643	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8644	  cp $export_symbols $output_objdir/$soname.def;
8645	else
8646	  echo EXPORTS > $output_objdir/$soname.def;
8647	  cat $export_symbols >> $output_objdir/$soname.def;
8648	fi~
8649	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8650      else
8651	ld_shlibs=no
8652      fi
8653      ;;
8654
8655    haiku*)
8656      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657      link_all_deplibs=yes
8658      ;;
8659
8660    interix[3-9]*)
8661      hardcode_direct=no
8662      hardcode_shlibpath_var=no
8663      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664      export_dynamic_flag_spec='${wl}-E'
8665      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8666      # Instead, shared libraries are loaded at an image base (0x10000000 by
8667      # default) and relocated if they conflict, which is a slow very memory
8668      # consuming and fragmenting process.  To avoid this, we pick a random,
8669      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8670      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8671      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8672      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'
8673      ;;
8674
8675    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8676      tmp_diet=no
8677      if test "$host_os" = linux-dietlibc; then
8678	case $cc_basename in
8679	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8680	esac
8681      fi
8682      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8683	 && test "$tmp_diet" = no
8684      then
8685	tmp_addflag=' $pic_flag'
8686	tmp_sharedflag='-shared'
8687	case $cc_basename,$host_cpu in
8688        pgcc*)				# Portland Group C compiler
8689	  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'
8690	  tmp_addflag=' $pic_flag'
8691	  ;;
8692	pgf77* | pgf90* | pgf95* | pgfortran*)
8693					# Portland Group f77 and f90 compilers
8694	  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'
8695	  tmp_addflag=' $pic_flag -Mnomain' ;;
8696	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8697	  tmp_addflag=' -i_dynamic' ;;
8698	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8699	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8700	ifc* | ifort*)			# Intel Fortran compiler
8701	  tmp_addflag=' -nofor_main' ;;
8702	lf95*)				# Lahey Fortran 8.1
8703	  whole_archive_flag_spec=
8704	  tmp_sharedflag='--shared' ;;
8705	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8706	  tmp_sharedflag='-qmkshrobj'
8707	  tmp_addflag= ;;
8708	nvcc*)	# Cuda Compiler Driver 2.2
8709	  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'
8710	  compiler_needs_object=yes
8711	  ;;
8712	esac
8713	case `$CC -V 2>&1 | sed 5q` in
8714	*Sun\ C*)			# Sun C 5.9
8715	  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'
8716	  compiler_needs_object=yes
8717	  tmp_sharedflag='-G' ;;
8718	*Sun\ F*)			# Sun Fortran 8.3
8719	  tmp_sharedflag='-G' ;;
8720	esac
8721	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722
8723        if test "x$supports_anon_versioning" = xyes; then
8724          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8725	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8726	    echo "local: *; };" >> $output_objdir/$libname.ver~
8727	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8728        fi
8729
8730	case $cc_basename in
8731	xlf* | bgf* | bgxlf* | mpixlf*)
8732	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8733	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8734	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8736	  if test "x$supports_anon_versioning" = xyes; then
8737	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8738	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8739	      echo "local: *; };" >> $output_objdir/$libname.ver~
8740	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8741	  fi
8742	  ;;
8743	esac
8744      else
8745        ld_shlibs=no
8746      fi
8747      ;;
8748
8749    netbsd*)
8750      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8751	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8752	wlarc=
8753      else
8754	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756      fi
8757      ;;
8758
8759    solaris*)
8760      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8761	ld_shlibs=no
8762	cat <<_LT_EOF 1>&2
8763
8764*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8765*** create shared libraries on Solaris systems.  Therefore, libtool
8766*** is disabling shared libraries support.  We urge you to upgrade GNU
8767*** binutils to release 2.9.1 or newer.  Another option is to modify
8768*** your PATH or compiler configuration so that the native linker is
8769*** used, and then restart.
8770
8771_LT_EOF
8772      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775      else
8776	ld_shlibs=no
8777      fi
8778      ;;
8779
8780    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8781      case `$LD -v 2>&1` in
8782        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8783	ld_shlibs=no
8784	cat <<_LT_EOF 1>&2
8785
8786*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8787*** reliably create shared libraries on SCO systems.  Therefore, libtool
8788*** is disabling shared libraries support.  We urge you to upgrade GNU
8789*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8790*** your PATH or compiler configuration so that the native linker is
8791*** used, and then restart.
8792
8793_LT_EOF
8794	;;
8795	*)
8796	  # For security reasons, it is highly recommended that you always
8797	  # use absolute paths for naming shared libraries, and exclude the
8798	  # DT_RUNPATH tag from executables and libraries.  But doing so
8799	  # requires that you compile everything twice, which is a pain.
8800	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8801	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804	  else
8805	    ld_shlibs=no
8806	  fi
8807	;;
8808      esac
8809      ;;
8810
8811    sunos4*)
8812      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8813      wlarc=
8814      hardcode_direct=yes
8815      hardcode_shlibpath_var=no
8816      ;;
8817
8818    *)
8819      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8820	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8822      else
8823	ld_shlibs=no
8824      fi
8825      ;;
8826    esac
8827
8828    if test "$ld_shlibs" = no; then
8829      runpath_var=
8830      hardcode_libdir_flag_spec=
8831      export_dynamic_flag_spec=
8832      whole_archive_flag_spec=
8833    fi
8834  else
8835    # PORTME fill in a description of your system's linker (not GNU ld)
8836    case $host_os in
8837    aix3*)
8838      allow_undefined_flag=unsupported
8839      always_export_symbols=yes
8840      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'
8841      # Note: this linker hardcodes the directories in LIBPATH if there
8842      # are no directories specified by -L.
8843      hardcode_minus_L=yes
8844      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8845	# Neither direct hardcoding nor static linking is supported with a
8846	# broken collect2.
8847	hardcode_direct=unsupported
8848      fi
8849      ;;
8850
8851    aix[4-9]*)
8852      if test "$host_cpu" = ia64; then
8853	# On IA64, the linker does run time linking by default, so we don't
8854	# have to do anything special.
8855	aix_use_runtimelinking=no
8856	exp_sym_flag='-Bexport'
8857	no_entry_flag=""
8858      else
8859	# If we're using GNU nm, then we don't want the "-C" option.
8860	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8861	# Also, AIX nm treats weak defined symbols like other global
8862	# defined symbols, whereas GNU nm marks them as "W".
8863	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8864	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8865	else
8866	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8867	fi
8868	aix_use_runtimelinking=no
8869
8870	# Test if we are trying to use run time linking or normal
8871	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8872	# need to do runtime linking.
8873	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8874	  for ld_flag in $LDFLAGS; do
8875	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8876	    aix_use_runtimelinking=yes
8877	    break
8878	  fi
8879	  done
8880	  ;;
8881	esac
8882
8883	exp_sym_flag='-bexport'
8884	no_entry_flag='-bnoentry'
8885      fi
8886
8887      # When large executables or shared objects are built, AIX ld can
8888      # have problems creating the table of contents.  If linking a library
8889      # or program results in "error TOC overflow" add -mminimal-toc to
8890      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8891      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8892
8893      archive_cmds=''
8894      hardcode_direct=yes
8895      hardcode_direct_absolute=yes
8896      hardcode_libdir_separator=':'
8897      link_all_deplibs=yes
8898      file_list_spec='${wl}-f,'
8899
8900      if test "$GCC" = yes; then
8901	case $host_os in aix4.[012]|aix4.[012].*)
8902	# We only want to do this on AIX 4.2 and lower, the check
8903	# below for broken collect2 doesn't work under 4.3+
8904	  collect2name=`${CC} -print-prog-name=collect2`
8905	  if test -f "$collect2name" &&
8906	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8907	  then
8908	  # We have reworked collect2
8909	  :
8910	  else
8911	  # We have old collect2
8912	  hardcode_direct=unsupported
8913	  # It fails to find uninstalled libraries when the uninstalled
8914	  # path is not listed in the libpath.  Setting hardcode_minus_L
8915	  # to unsupported forces relinking
8916	  hardcode_minus_L=yes
8917	  hardcode_libdir_flag_spec='-L$libdir'
8918	  hardcode_libdir_separator=
8919	  fi
8920	  ;;
8921	esac
8922	shared_flag='-shared'
8923	if test "$aix_use_runtimelinking" = yes; then
8924	  shared_flag="$shared_flag "'${wl}-G'
8925	fi
8926      else
8927	# not using gcc
8928	if test "$host_cpu" = ia64; then
8929	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8930	# chokes on -Wl,-G. The following line is correct:
8931	  shared_flag='-G'
8932	else
8933	  if test "$aix_use_runtimelinking" = yes; then
8934	    shared_flag='${wl}-G'
8935	  else
8936	    shared_flag='${wl}-bM:SRE'
8937	  fi
8938	fi
8939      fi
8940
8941      export_dynamic_flag_spec='${wl}-bexpall'
8942      # It seems that -bexpall does not export symbols beginning with
8943      # underscore (_), so it is better to generate a list of symbols to export.
8944      always_export_symbols=yes
8945      if test "$aix_use_runtimelinking" = yes; then
8946	# Warning - without using the other runtime loading flags (-brtl),
8947	# -berok will link without error, but may produce a broken library.
8948	allow_undefined_flag='-berok'
8949        # Determine the default libpath from the value encoded in an
8950        # empty executable.
8951        if test "${lt_cv_aix_libpath+set}" = set; then
8952  aix_libpath=$lt_cv_aix_libpath
8953else
8954  if ${lt_cv_aix_libpath_+:} false; then :
8955  $as_echo_n "(cached) " >&6
8956else
8957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h.  */
8959
8960int
8961main ()
8962{
8963
8964  ;
8965  return 0;
8966}
8967_ACEOF
8968if ac_fn_c_try_link "$LINENO"; then :
8969
8970  lt_aix_libpath_sed='
8971      /Import File Strings/,/^$/ {
8972	  /^0/ {
8973	      s/^0  *\([^ ]*\) *$/\1/
8974	      p
8975	  }
8976      }'
8977  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8978  # Check for a 64-bit object if we didn't find anything.
8979  if test -z "$lt_cv_aix_libpath_"; then
8980    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981  fi
8982fi
8983rm -f core conftest.err conftest.$ac_objext \
8984    conftest$ac_exeext conftest.$ac_ext
8985  if test -z "$lt_cv_aix_libpath_"; then
8986    lt_cv_aix_libpath_="/usr/lib:/lib"
8987  fi
8988
8989fi
8990
8991  aix_libpath=$lt_cv_aix_libpath_
8992fi
8993
8994        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8995        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8996      else
8997	if test "$host_cpu" = ia64; then
8998	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8999	  allow_undefined_flag="-z nodefs"
9000	  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"
9001	else
9002	 # Determine the default libpath from the value encoded in an
9003	 # empty executable.
9004	 if test "${lt_cv_aix_libpath+set}" = set; then
9005  aix_libpath=$lt_cv_aix_libpath
9006else
9007  if ${lt_cv_aix_libpath_+:} false; then :
9008  $as_echo_n "(cached) " >&6
9009else
9010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011/* end confdefs.h.  */
9012
9013int
9014main ()
9015{
9016
9017  ;
9018  return 0;
9019}
9020_ACEOF
9021if ac_fn_c_try_link "$LINENO"; then :
9022
9023  lt_aix_libpath_sed='
9024      /Import File Strings/,/^$/ {
9025	  /^0/ {
9026	      s/^0  *\([^ ]*\) *$/\1/
9027	      p
9028	  }
9029      }'
9030  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031  # Check for a 64-bit object if we didn't find anything.
9032  if test -z "$lt_cv_aix_libpath_"; then
9033    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9034  fi
9035fi
9036rm -f core conftest.err conftest.$ac_objext \
9037    conftest$ac_exeext conftest.$ac_ext
9038  if test -z "$lt_cv_aix_libpath_"; then
9039    lt_cv_aix_libpath_="/usr/lib:/lib"
9040  fi
9041
9042fi
9043
9044  aix_libpath=$lt_cv_aix_libpath_
9045fi
9046
9047	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9048	  # Warning - without using the other run time loading flags,
9049	  # -berok will link without error, but may produce a broken library.
9050	  no_undefined_flag=' ${wl}-bernotok'
9051	  allow_undefined_flag=' ${wl}-berok'
9052	  if test "$with_gnu_ld" = yes; then
9053	    # We only use this code for GNU lds that support --whole-archive.
9054	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9055	  else
9056	    # Exported symbols can be pulled into shared objects from archives
9057	    whole_archive_flag_spec='$convenience'
9058	  fi
9059	  archive_cmds_need_lc=yes
9060	  # This is similar to how AIX traditionally builds its shared libraries.
9061	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9062	fi
9063      fi
9064      ;;
9065
9066    amigaos*)
9067      case $host_cpu in
9068      powerpc)
9069            # see comment about AmigaOS4 .so support
9070            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071            archive_expsym_cmds=''
9072        ;;
9073      m68k)
9074            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)'
9075            hardcode_libdir_flag_spec='-L$libdir'
9076            hardcode_minus_L=yes
9077        ;;
9078      esac
9079      ;;
9080
9081    bsdi[45]*)
9082      export_dynamic_flag_spec=-rdynamic
9083      ;;
9084
9085    cygwin* | mingw* | pw32* | cegcc*)
9086      # When not using gcc, we currently assume that we are using
9087      # Microsoft Visual C++.
9088      # hardcode_libdir_flag_spec is actually meaningless, as there is
9089      # no search path for DLLs.
9090      case $cc_basename in
9091      cl*)
9092	# Native MSVC
9093	hardcode_libdir_flag_spec=' '
9094	allow_undefined_flag=unsupported
9095	always_export_symbols=yes
9096	file_list_spec='@'
9097	# Tell ltmain to make .lib files, not .a files.
9098	libext=lib
9099	# Tell ltmain to make .dll files, not .so files.
9100	shrext_cmds=".dll"
9101	# FIXME: Setting linknames here is a bad hack.
9102	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9103	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9104	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9105	  else
9106	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9107	  fi~
9108	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9109	  linknames='
9110	# The linker will not automatically build a static lib if we build a DLL.
9111	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9112	enable_shared_with_static_runtimes=yes
9113	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9114	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9115	# Don't use ranlib
9116	old_postinstall_cmds='chmod 644 $oldlib'
9117	postlink_cmds='lt_outputfile="@OUTPUT@"~
9118	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9119	  case $lt_outputfile in
9120	    *.exe|*.EXE) ;;
9121	    *)
9122	      lt_outputfile="$lt_outputfile.exe"
9123	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9124	      ;;
9125	  esac~
9126	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9127	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9128	    $RM "$lt_outputfile.manifest";
9129	  fi'
9130	;;
9131      *)
9132	# Assume MSVC wrapper
9133	hardcode_libdir_flag_spec=' '
9134	allow_undefined_flag=unsupported
9135	# Tell ltmain to make .lib files, not .a files.
9136	libext=lib
9137	# Tell ltmain to make .dll files, not .so files.
9138	shrext_cmds=".dll"
9139	# FIXME: Setting linknames here is a bad hack.
9140	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9141	# The linker will automatically build a .lib file if we build a DLL.
9142	old_archive_from_new_cmds='true'
9143	# FIXME: Should let the user specify the lib program.
9144	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9145	enable_shared_with_static_runtimes=yes
9146	;;
9147      esac
9148      ;;
9149
9150    darwin* | rhapsody*)
9151
9152
9153  archive_cmds_need_lc=no
9154  hardcode_direct=no
9155  hardcode_automatic=yes
9156  hardcode_shlibpath_var=unsupported
9157  if test "$lt_cv_ld_force_load" = "yes"; then
9158    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\"`'
9159
9160  else
9161    whole_archive_flag_spec=''
9162  fi
9163  link_all_deplibs=yes
9164  allow_undefined_flag="$_lt_dar_allow_undefined"
9165  case $cc_basename in
9166     ifort*) _lt_dar_can_shared=yes ;;
9167     *) _lt_dar_can_shared=$GCC ;;
9168  esac
9169  if test "$_lt_dar_can_shared" = "yes"; then
9170    output_verbose_link_cmd=func_echo_all
9171    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9172    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9173    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}"
9174    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}"
9175
9176  else
9177  ld_shlibs=no
9178  fi
9179
9180      ;;
9181
9182    dgux*)
9183      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184      hardcode_libdir_flag_spec='-L$libdir'
9185      hardcode_shlibpath_var=no
9186      ;;
9187
9188    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9189    # support.  Future versions do this automatically, but an explicit c++rt0.o
9190    # does not break anything, and helps significantly (at the cost of a little
9191    # extra space).
9192    freebsd2.2*)
9193      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9194      hardcode_libdir_flag_spec='-R$libdir'
9195      hardcode_direct=yes
9196      hardcode_shlibpath_var=no
9197      ;;
9198
9199    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9200    freebsd2.*)
9201      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9202      hardcode_direct=yes
9203      hardcode_minus_L=yes
9204      hardcode_shlibpath_var=no
9205      ;;
9206
9207    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9208    freebsd* | dragonfly*)
9209      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9210      hardcode_libdir_flag_spec='-R$libdir'
9211      hardcode_direct=yes
9212      hardcode_shlibpath_var=no
9213      ;;
9214
9215    hpux9*)
9216      if test "$GCC" = yes; then
9217	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9218      else
9219	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9220      fi
9221      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9222      hardcode_libdir_separator=:
9223      hardcode_direct=yes
9224
9225      # hardcode_minus_L: Not really in the search PATH,
9226      # but as the default location of the library.
9227      hardcode_minus_L=yes
9228      export_dynamic_flag_spec='${wl}-E'
9229      ;;
9230
9231    hpux10*)
9232      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9233	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9234      else
9235	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9236      fi
9237      if test "$with_gnu_ld" = no; then
9238	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9239	hardcode_libdir_separator=:
9240	hardcode_direct=yes
9241	hardcode_direct_absolute=yes
9242	export_dynamic_flag_spec='${wl}-E'
9243	# hardcode_minus_L: Not really in the search PATH,
9244	# but as the default location of the library.
9245	hardcode_minus_L=yes
9246      fi
9247      ;;
9248
9249    hpux11*)
9250      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9251	case $host_cpu in
9252	hppa*64*)
9253	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9254	  ;;
9255	ia64*)
9256	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9257	  ;;
9258	*)
9259	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9260	  ;;
9261	esac
9262      else
9263	case $host_cpu in
9264	hppa*64*)
9265	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266	  ;;
9267	ia64*)
9268	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9269	  ;;
9270	*)
9271
9272	  # Older versions of the 11.00 compiler do not understand -b yet
9273	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9274	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9275$as_echo_n "checking if $CC understands -b... " >&6; }
9276if ${lt_cv_prog_compiler__b+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  lt_cv_prog_compiler__b=no
9280   save_LDFLAGS="$LDFLAGS"
9281   LDFLAGS="$LDFLAGS -b"
9282   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9283   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9284     # The linker can only warn and ignore the option if not recognized
9285     # So say no if there are warnings
9286     if test -s conftest.err; then
9287       # Append any errors to the config.log.
9288       cat conftest.err 1>&5
9289       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9290       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9291       if diff conftest.exp conftest.er2 >/dev/null; then
9292         lt_cv_prog_compiler__b=yes
9293       fi
9294     else
9295       lt_cv_prog_compiler__b=yes
9296     fi
9297   fi
9298   $RM -r conftest*
9299   LDFLAGS="$save_LDFLAGS"
9300
9301fi
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9303$as_echo "$lt_cv_prog_compiler__b" >&6; }
9304
9305if test x"$lt_cv_prog_compiler__b" = xyes; then
9306    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9307else
9308    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9309fi
9310
9311	  ;;
9312	esac
9313      fi
9314      if test "$with_gnu_ld" = no; then
9315	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9316	hardcode_libdir_separator=:
9317
9318	case $host_cpu in
9319	hppa*64*|ia64*)
9320	  hardcode_direct=no
9321	  hardcode_shlibpath_var=no
9322	  ;;
9323	*)
9324	  hardcode_direct=yes
9325	  hardcode_direct_absolute=yes
9326	  export_dynamic_flag_spec='${wl}-E'
9327
9328	  # hardcode_minus_L: Not really in the search PATH,
9329	  # but as the default location of the library.
9330	  hardcode_minus_L=yes
9331	  ;;
9332	esac
9333      fi
9334      ;;
9335
9336    irix5* | irix6* | nonstopux*)
9337      if test "$GCC" = yes; then
9338	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'
9339	# Try to use the -exported_symbol ld option, if it does not
9340	# work, assume that -exports_file does not work either and
9341	# implicitly export all symbols.
9342	# This should be the same for all languages, so no per-tag cache variable.
9343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9344$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9345if ${lt_cv_irix_exported_symbol+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  save_LDFLAGS="$LDFLAGS"
9349	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9350	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h.  */
9352int foo (void) { return 0; }
9353_ACEOF
9354if ac_fn_c_try_link "$LINENO"; then :
9355  lt_cv_irix_exported_symbol=yes
9356else
9357  lt_cv_irix_exported_symbol=no
9358fi
9359rm -f core conftest.err conftest.$ac_objext \
9360    conftest$ac_exeext conftest.$ac_ext
9361           LDFLAGS="$save_LDFLAGS"
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9364$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9365	if test "$lt_cv_irix_exported_symbol" = yes; then
9366          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'
9367	fi
9368      else
9369	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'
9370	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'
9371      fi
9372      archive_cmds_need_lc='no'
9373      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374      hardcode_libdir_separator=:
9375      inherit_rpath=yes
9376      link_all_deplibs=yes
9377      ;;
9378
9379    netbsd*)
9380      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9381	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9382      else
9383	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9384      fi
9385      hardcode_libdir_flag_spec='-R$libdir'
9386      hardcode_direct=yes
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    newsos6)
9391      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392      hardcode_direct=yes
9393      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394      hardcode_libdir_separator=:
9395      hardcode_shlibpath_var=no
9396      ;;
9397
9398    *nto* | *qnx*)
9399      ;;
9400
9401    openbsd*)
9402      if test -f /usr/libexec/ld.so; then
9403	hardcode_direct=yes
9404	hardcode_shlibpath_var=no
9405	hardcode_direct_absolute=yes
9406	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9407	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9408	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9409	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9410	  export_dynamic_flag_spec='${wl}-E'
9411	else
9412	  case $host_os in
9413	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9414	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415	     hardcode_libdir_flag_spec='-R$libdir'
9416	     ;;
9417	   *)
9418	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9419	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9420	     ;;
9421	  esac
9422	fi
9423      else
9424	ld_shlibs=no
9425      fi
9426      ;;
9427
9428    os2*)
9429      hardcode_libdir_flag_spec='-L$libdir'
9430      hardcode_minus_L=yes
9431      allow_undefined_flag=unsupported
9432      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9433      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9434      ;;
9435
9436    osf3*)
9437      if test "$GCC" = yes; then
9438	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9439	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'
9440      else
9441	allow_undefined_flag=' -expect_unresolved \*'
9442	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'
9443      fi
9444      archive_cmds_need_lc='no'
9445      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446      hardcode_libdir_separator=:
9447      ;;
9448
9449    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9450      if test "$GCC" = yes; then
9451	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9452	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'
9453	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454      else
9455	allow_undefined_flag=' -expect_unresolved \*'
9456	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'
9457	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~
9458	$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'
9459
9460	# Both c and cxx compiler support -rpath directly
9461	hardcode_libdir_flag_spec='-rpath $libdir'
9462      fi
9463      archive_cmds_need_lc='no'
9464      hardcode_libdir_separator=:
9465      ;;
9466
9467    solaris*)
9468      no_undefined_flag=' -z defs'
9469      if test "$GCC" = yes; then
9470	wlarc='${wl}'
9471	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9473	  $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'
9474      else
9475	case `$CC -V 2>&1` in
9476	*"Compilers 5.0"*)
9477	  wlarc=''
9478	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9481	  ;;
9482	*)
9483	  wlarc='${wl}'
9484	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9485	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9486	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9487	  ;;
9488	esac
9489      fi
9490      hardcode_libdir_flag_spec='-R$libdir'
9491      hardcode_shlibpath_var=no
9492      case $host_os in
9493      solaris2.[0-5] | solaris2.[0-5].*) ;;
9494      *)
9495	# The compiler driver will combine and reorder linker options,
9496	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9497	# but is careful enough not to reorder.
9498	# Supported since Solaris 2.6 (maybe 2.5.1?)
9499	if test "$GCC" = yes; then
9500	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9501	else
9502	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9503	fi
9504	;;
9505      esac
9506      link_all_deplibs=yes
9507      ;;
9508
9509    sunos4*)
9510      if test "x$host_vendor" = xsequent; then
9511	# Use $CC to link under sequent, because it throws in some extra .o
9512	# files that make .init and .fini sections work.
9513	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9514      else
9515	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9516      fi
9517      hardcode_libdir_flag_spec='-L$libdir'
9518      hardcode_direct=yes
9519      hardcode_minus_L=yes
9520      hardcode_shlibpath_var=no
9521      ;;
9522
9523    sysv4)
9524      case $host_vendor in
9525	sni)
9526	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527	  hardcode_direct=yes # is this really true???
9528	;;
9529	siemens)
9530	  ## LD is ld it makes a PLAMLIB
9531	  ## CC just makes a GrossModule.
9532	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9533	  reload_cmds='$CC -r -o $output$reload_objs'
9534	  hardcode_direct=no
9535        ;;
9536	motorola)
9537	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9539	;;
9540      esac
9541      runpath_var='LD_RUN_PATH'
9542      hardcode_shlibpath_var=no
9543      ;;
9544
9545    sysv4.3*)
9546      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547      hardcode_shlibpath_var=no
9548      export_dynamic_flag_spec='-Bexport'
9549      ;;
9550
9551    sysv4*MP*)
9552      if test -d /usr/nec; then
9553	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554	hardcode_shlibpath_var=no
9555	runpath_var=LD_RUN_PATH
9556	hardcode_runpath_var=yes
9557	ld_shlibs=yes
9558      fi
9559      ;;
9560
9561    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9562      no_undefined_flag='${wl}-z,text'
9563      archive_cmds_need_lc=no
9564      hardcode_shlibpath_var=no
9565      runpath_var='LD_RUN_PATH'
9566
9567      if test "$GCC" = yes; then
9568	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570      else
9571	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573      fi
9574      ;;
9575
9576    sysv5* | sco3.2v5* | sco5v6*)
9577      # Note: We can NOT use -z defs as we might desire, because we do not
9578      # link with -lc, and that would cause any symbols used from libc to
9579      # always be unresolved, which means just about no library would
9580      # ever link correctly.  If we're not using GNU ld we use -z text
9581      # though, which does catch some bad symbols but isn't as heavy-handed
9582      # as -z defs.
9583      no_undefined_flag='${wl}-z,text'
9584      allow_undefined_flag='${wl}-z,nodefs'
9585      archive_cmds_need_lc=no
9586      hardcode_shlibpath_var=no
9587      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9588      hardcode_libdir_separator=':'
9589      link_all_deplibs=yes
9590      export_dynamic_flag_spec='${wl}-Bexport'
9591      runpath_var='LD_RUN_PATH'
9592
9593      if test "$GCC" = yes; then
9594	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596      else
9597	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599      fi
9600      ;;
9601
9602    uts4*)
9603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604      hardcode_libdir_flag_spec='-L$libdir'
9605      hardcode_shlibpath_var=no
9606      ;;
9607
9608    *)
9609      ld_shlibs=no
9610      ;;
9611    esac
9612
9613    if test x$host_vendor = xsni; then
9614      case $host in
9615      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9616	export_dynamic_flag_spec='${wl}-Blargedynsym'
9617	;;
9618      esac
9619    fi
9620  fi
9621
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9623$as_echo "$ld_shlibs" >&6; }
9624test "$ld_shlibs" = no && can_build_shared=no
9625
9626with_gnu_ld=$with_gnu_ld
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642#
9643# Do we need to explicitly link libc?
9644#
9645case "x$archive_cmds_need_lc" in
9646x|xyes)
9647  # Assume -lc should be added
9648  archive_cmds_need_lc=yes
9649
9650  if test "$enable_shared" = yes && test "$GCC" = yes; then
9651    case $archive_cmds in
9652    *'~'*)
9653      # FIXME: we may have to deal with multi-command sequences.
9654      ;;
9655    '$CC '*)
9656      # Test whether the compiler implicitly links with -lc since on some
9657      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9658      # to ld, don't add -lc before -lgcc.
9659      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9660$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9661if ${lt_cv_archive_cmds_need_lc+:} false; then :
9662  $as_echo_n "(cached) " >&6
9663else
9664  $RM conftest*
9665	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9666
9667	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9668  (eval $ac_compile) 2>&5
9669  ac_status=$?
9670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9671  test $ac_status = 0; } 2>conftest.err; then
9672	  soname=conftest
9673	  lib=conftest
9674	  libobjs=conftest.$ac_objext
9675	  deplibs=
9676	  wl=$lt_prog_compiler_wl
9677	  pic_flag=$lt_prog_compiler_pic
9678	  compiler_flags=-v
9679	  linker_flags=-v
9680	  verstring=
9681	  output_objdir=.
9682	  libname=conftest
9683	  lt_save_allow_undefined_flag=$allow_undefined_flag
9684	  allow_undefined_flag=
9685	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9686  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9687  ac_status=$?
9688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9689  test $ac_status = 0; }
9690	  then
9691	    lt_cv_archive_cmds_need_lc=no
9692	  else
9693	    lt_cv_archive_cmds_need_lc=yes
9694	  fi
9695	  allow_undefined_flag=$lt_save_allow_undefined_flag
9696	else
9697	  cat conftest.err 1>&5
9698	fi
9699	$RM conftest*
9700
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9703$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9704      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9705      ;;
9706    esac
9707  fi
9708  ;;
9709esac
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9863$as_echo_n "checking dynamic linker characteristics... " >&6; }
9864
9865if test "$GCC" = yes; then
9866  case $host_os in
9867    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9868    *) lt_awk_arg="/^libraries:/" ;;
9869  esac
9870  case $host_os in
9871    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9872    *) lt_sed_strip_eq="s,=/,/,g" ;;
9873  esac
9874  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9875  case $lt_search_path_spec in
9876  *\;*)
9877    # if the path contains ";" then we assume it to be the separator
9878    # otherwise default to the standard path separator (i.e. ":") - it is
9879    # assumed that no part of a normal pathname contains ";" but that should
9880    # okay in the real world where ";" in dirpaths is itself problematic.
9881    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9882    ;;
9883  *)
9884    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9885    ;;
9886  esac
9887  # Ok, now we have the path, separated by spaces, we can step through it
9888  # and add multilib dir if necessary.
9889  lt_tmp_lt_search_path_spec=
9890  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9891  for lt_sys_path in $lt_search_path_spec; do
9892    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9893      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9894    else
9895      test -d "$lt_sys_path" && \
9896	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9897    fi
9898  done
9899  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9900BEGIN {RS=" "; FS="/|\n";} {
9901  lt_foo="";
9902  lt_count=0;
9903  for (lt_i = NF; lt_i > 0; lt_i--) {
9904    if ($lt_i != "" && $lt_i != ".") {
9905      if ($lt_i == "..") {
9906        lt_count++;
9907      } else {
9908        if (lt_count == 0) {
9909          lt_foo="/" $lt_i lt_foo;
9910        } else {
9911          lt_count--;
9912        }
9913      }
9914    }
9915  }
9916  if (lt_foo != "") { lt_freq[lt_foo]++; }
9917  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9918}'`
9919  # AWK program above erroneously prepends '/' to C:/dos/paths
9920  # for these hosts.
9921  case $host_os in
9922    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9923      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9924  esac
9925  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9926else
9927  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9928fi
9929library_names_spec=
9930libname_spec='lib$name'
9931soname_spec=
9932shrext_cmds=".so"
9933postinstall_cmds=
9934postuninstall_cmds=
9935finish_cmds=
9936finish_eval=
9937shlibpath_var=
9938shlibpath_overrides_runpath=unknown
9939version_type=none
9940dynamic_linker="$host_os ld.so"
9941sys_lib_dlsearch_path_spec="/lib /usr/lib"
9942need_lib_prefix=unknown
9943hardcode_into_libs=no
9944
9945# when you set need_version to no, make sure it does not cause -set_version
9946# flags to be left without arguments
9947need_version=unknown
9948
9949case $host_os in
9950aix3*)
9951  version_type=linux # correct to gnu/linux during the next big refactor
9952  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9953  shlibpath_var=LIBPATH
9954
9955  # AIX 3 has no versioning support, so we append a major version to the name.
9956  soname_spec='${libname}${release}${shared_ext}$major'
9957  ;;
9958
9959aix[4-9]*)
9960  version_type=linux # correct to gnu/linux during the next big refactor
9961  need_lib_prefix=no
9962  need_version=no
9963  hardcode_into_libs=yes
9964  if test "$host_cpu" = ia64; then
9965    # AIX 5 supports IA64
9966    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9967    shlibpath_var=LD_LIBRARY_PATH
9968  else
9969    # With GCC up to 2.95.x, collect2 would create an import file
9970    # for dependence libraries.  The import file would start with
9971    # the line `#! .'.  This would cause the generated library to
9972    # depend on `.', always an invalid library.  This was fixed in
9973    # development snapshots of GCC prior to 3.0.
9974    case $host_os in
9975      aix4 | aix4.[01] | aix4.[01].*)
9976      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9977	   echo ' yes '
9978	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9979	:
9980      else
9981	can_build_shared=no
9982      fi
9983      ;;
9984    esac
9985    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9986    # soname into executable. Probably we can add versioning support to
9987    # collect2, so additional links can be useful in future.
9988    if test "$aix_use_runtimelinking" = yes; then
9989      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9990      # instead of lib<name>.a to let people know that these are not
9991      # typical AIX shared libraries.
9992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993    else
9994      # We preserve .a as extension for shared libraries through AIX4.2
9995      # and later when we are not doing run time linking.
9996      library_names_spec='${libname}${release}.a $libname.a'
9997      soname_spec='${libname}${release}${shared_ext}$major'
9998    fi
9999    shlibpath_var=LIBPATH
10000  fi
10001  ;;
10002
10003amigaos*)
10004  case $host_cpu in
10005  powerpc)
10006    # Since July 2007 AmigaOS4 officially supports .so libraries.
10007    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10008    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009    ;;
10010  m68k)
10011    library_names_spec='$libname.ixlibrary $libname.a'
10012    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10013    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10014    ;;
10015  esac
10016  ;;
10017
10018beos*)
10019  library_names_spec='${libname}${shared_ext}'
10020  dynamic_linker="$host_os ld.so"
10021  shlibpath_var=LIBRARY_PATH
10022  ;;
10023
10024bsdi[45]*)
10025  version_type=linux # correct to gnu/linux during the next big refactor
10026  need_version=no
10027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028  soname_spec='${libname}${release}${shared_ext}$major'
10029  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10030  shlibpath_var=LD_LIBRARY_PATH
10031  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10032  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10033  # the default ld.so.conf also contains /usr/contrib/lib and
10034  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10035  # libtool to hard-code these into programs
10036  ;;
10037
10038cygwin* | mingw* | pw32* | cegcc*)
10039  version_type=windows
10040  shrext_cmds=".dll"
10041  need_version=no
10042  need_lib_prefix=no
10043
10044  case $GCC,$cc_basename in
10045  yes,*)
10046    # gcc
10047    library_names_spec='$libname.dll.a'
10048    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10049    postinstall_cmds='base_file=`basename \${file}`~
10050      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10051      dldir=$destdir/`dirname \$dlpath`~
10052      test -d \$dldir || mkdir -p \$dldir~
10053      $install_prog $dir/$dlname \$dldir/$dlname~
10054      chmod a+x \$dldir/$dlname~
10055      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10056        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10057      fi'
10058    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10059      dlpath=$dir/\$dldll~
10060       $RM \$dlpath'
10061    shlibpath_overrides_runpath=yes
10062
10063    case $host_os in
10064    cygwin*)
10065      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10066      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067
10068      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10069      ;;
10070    mingw* | cegcc*)
10071      # MinGW DLLs use traditional 'lib' prefix
10072      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10073      ;;
10074    pw32*)
10075      # pw32 DLLs use 'pw' prefix rather than 'lib'
10076      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10077      ;;
10078    esac
10079    dynamic_linker='Win32 ld.exe'
10080    ;;
10081
10082  *,cl*)
10083    # Native MSVC
10084    libname_spec='$name'
10085    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10086    library_names_spec='${libname}.dll.lib'
10087
10088    case $build_os in
10089    mingw*)
10090      sys_lib_search_path_spec=
10091      lt_save_ifs=$IFS
10092      IFS=';'
10093      for lt_path in $LIB
10094      do
10095        IFS=$lt_save_ifs
10096        # Let DOS variable expansion print the short 8.3 style file name.
10097        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10098        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10099      done
10100      IFS=$lt_save_ifs
10101      # Convert to MSYS style.
10102      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10103      ;;
10104    cygwin*)
10105      # Convert to unix form, then to dos form, then back to unix form
10106      # but this time dos style (no spaces!) so that the unix form looks
10107      # like /cygdrive/c/PROGRA~1:/cygdr...
10108      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10109      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10110      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10111      ;;
10112    *)
10113      sys_lib_search_path_spec="$LIB"
10114      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10115        # It is most probably a Windows format PATH.
10116        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10117      else
10118        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10119      fi
10120      # FIXME: find the short name or the path components, as spaces are
10121      # common. (e.g. "Program Files" -> "PROGRA~1")
10122      ;;
10123    esac
10124
10125    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10126    postinstall_cmds='base_file=`basename \${file}`~
10127      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10128      dldir=$destdir/`dirname \$dlpath`~
10129      test -d \$dldir || mkdir -p \$dldir~
10130      $install_prog $dir/$dlname \$dldir/$dlname'
10131    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10132      dlpath=$dir/\$dldll~
10133       $RM \$dlpath'
10134    shlibpath_overrides_runpath=yes
10135    dynamic_linker='Win32 link.exe'
10136    ;;
10137
10138  *)
10139    # Assume MSVC wrapper
10140    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10141    dynamic_linker='Win32 ld.exe'
10142    ;;
10143  esac
10144  # FIXME: first we should search . and the directory the executable is in
10145  shlibpath_var=PATH
10146  ;;
10147
10148darwin* | rhapsody*)
10149  dynamic_linker="$host_os dyld"
10150  version_type=darwin
10151  need_lib_prefix=no
10152  need_version=no
10153  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10154  soname_spec='${libname}${release}${major}$shared_ext'
10155  shlibpath_overrides_runpath=yes
10156  shlibpath_var=DYLD_LIBRARY_PATH
10157  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10158
10159  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10160  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10161  ;;
10162
10163dgux*)
10164  version_type=linux # correct to gnu/linux during the next big refactor
10165  need_lib_prefix=no
10166  need_version=no
10167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10168  soname_spec='${libname}${release}${shared_ext}$major'
10169  shlibpath_var=LD_LIBRARY_PATH
10170  ;;
10171
10172freebsd* | dragonfly*)
10173  # DragonFly does not have aout.  When/if they implement a new
10174  # versioning mechanism, adjust this.
10175  if test -x /usr/bin/objformat; then
10176    objformat=`/usr/bin/objformat`
10177  else
10178    case $host_os in
10179    freebsd[23].*) objformat=aout ;;
10180    *) objformat=elf ;;
10181    esac
10182  fi
10183  version_type=freebsd-$objformat
10184  case $version_type in
10185    freebsd-elf*)
10186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10187      need_version=no
10188      need_lib_prefix=no
10189      ;;
10190    freebsd-*)
10191      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10192      need_version=yes
10193      ;;
10194  esac
10195  shlibpath_var=LD_LIBRARY_PATH
10196  case $host_os in
10197  freebsd2.*)
10198    shlibpath_overrides_runpath=yes
10199    ;;
10200  freebsd3.[01]* | freebsdelf3.[01]*)
10201    shlibpath_overrides_runpath=yes
10202    hardcode_into_libs=yes
10203    ;;
10204  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10205  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10206    shlibpath_overrides_runpath=no
10207    hardcode_into_libs=yes
10208    ;;
10209  *) # from 4.6 on, and DragonFly
10210    shlibpath_overrides_runpath=yes
10211    hardcode_into_libs=yes
10212    ;;
10213  esac
10214  ;;
10215
10216gnu*)
10217  version_type=linux # correct to gnu/linux during the next big refactor
10218  need_lib_prefix=no
10219  need_version=no
10220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10221  soname_spec='${libname}${release}${shared_ext}$major'
10222  shlibpath_var=LD_LIBRARY_PATH
10223  shlibpath_overrides_runpath=no
10224  hardcode_into_libs=yes
10225  ;;
10226
10227haiku*)
10228  version_type=linux # correct to gnu/linux during the next big refactor
10229  need_lib_prefix=no
10230  need_version=no
10231  dynamic_linker="$host_os runtime_loader"
10232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10233  soname_spec='${libname}${release}${shared_ext}$major'
10234  shlibpath_var=LIBRARY_PATH
10235  shlibpath_overrides_runpath=yes
10236  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10237  hardcode_into_libs=yes
10238  ;;
10239
10240hpux9* | hpux10* | hpux11*)
10241  # Give a soname corresponding to the major version so that dld.sl refuses to
10242  # link against other versions.
10243  version_type=sunos
10244  need_lib_prefix=no
10245  need_version=no
10246  case $host_cpu in
10247  ia64*)
10248    shrext_cmds='.so'
10249    hardcode_into_libs=yes
10250    dynamic_linker="$host_os dld.so"
10251    shlibpath_var=LD_LIBRARY_PATH
10252    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254    soname_spec='${libname}${release}${shared_ext}$major'
10255    if test "X$HPUX_IA64_MODE" = X32; then
10256      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10257    else
10258      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10259    fi
10260    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10261    ;;
10262  hppa*64*)
10263    shrext_cmds='.sl'
10264    hardcode_into_libs=yes
10265    dynamic_linker="$host_os dld.sl"
10266    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10267    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269    soname_spec='${libname}${release}${shared_ext}$major'
10270    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10271    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10272    ;;
10273  *)
10274    shrext_cmds='.sl'
10275    dynamic_linker="$host_os dld.sl"
10276    shlibpath_var=SHLIB_PATH
10277    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279    soname_spec='${libname}${release}${shared_ext}$major'
10280    ;;
10281  esac
10282  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10283  postinstall_cmds='chmod 555 $lib'
10284  # or fails outright, so override atomically:
10285  install_override_mode=555
10286  ;;
10287
10288interix[3-9]*)
10289  version_type=linux # correct to gnu/linux during the next big refactor
10290  need_lib_prefix=no
10291  need_version=no
10292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10293  soname_spec='${libname}${release}${shared_ext}$major'
10294  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10295  shlibpath_var=LD_LIBRARY_PATH
10296  shlibpath_overrides_runpath=no
10297  hardcode_into_libs=yes
10298  ;;
10299
10300irix5* | irix6* | nonstopux*)
10301  case $host_os in
10302    nonstopux*) version_type=nonstopux ;;
10303    *)
10304	if test "$lt_cv_prog_gnu_ld" = yes; then
10305		version_type=linux # correct to gnu/linux during the next big refactor
10306	else
10307		version_type=irix
10308	fi ;;
10309  esac
10310  need_lib_prefix=no
10311  need_version=no
10312  soname_spec='${libname}${release}${shared_ext}$major'
10313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10314  case $host_os in
10315  irix5* | nonstopux*)
10316    libsuff= shlibsuff=
10317    ;;
10318  *)
10319    case $LD in # libtool.m4 will add one of these switches to LD
10320    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10321      libsuff= shlibsuff= libmagic=32-bit;;
10322    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10323      libsuff=32 shlibsuff=N32 libmagic=N32;;
10324    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10325      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10326    *) libsuff= shlibsuff= libmagic=never-match;;
10327    esac
10328    ;;
10329  esac
10330  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10331  shlibpath_overrides_runpath=no
10332  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10333  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10334  hardcode_into_libs=yes
10335  ;;
10336
10337# No shared lib support for Linux oldld, aout, or coff.
10338linux*oldld* | linux*aout* | linux*coff*)
10339  dynamic_linker=no
10340  ;;
10341
10342# This must be glibc/ELF.
10343linux* | k*bsd*-gnu | kopensolaris*-gnu)
10344  version_type=linux # correct to gnu/linux during the next big refactor
10345  need_lib_prefix=no
10346  need_version=no
10347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348  soname_spec='${libname}${release}${shared_ext}$major'
10349  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  shlibpath_overrides_runpath=no
10352
10353  # Some binutils ld are patched to set DT_RUNPATH
10354  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10355  $as_echo_n "(cached) " >&6
10356else
10357  lt_cv_shlibpath_overrides_runpath=no
10358    save_LDFLAGS=$LDFLAGS
10359    save_libdir=$libdir
10360    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10361	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10362    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364
10365int
10366main ()
10367{
10368
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10375  lt_cv_shlibpath_overrides_runpath=yes
10376fi
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380    LDFLAGS=$save_LDFLAGS
10381    libdir=$save_libdir
10382
10383fi
10384
10385  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10386
10387  # This implies no fast_install, which is unacceptable.
10388  # Some rework will be needed to allow for fast_install
10389  # before this can be enabled.
10390  hardcode_into_libs=yes
10391
10392  # Append ld.so.conf contents to the search path
10393  if test -f /etc/ld.so.conf; then
10394    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' ' '`
10395    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10396  fi
10397
10398  # We used to test for /lib/ld.so.1 and disable shared libraries on
10399  # powerpc, because MkLinux only supported shared libraries with the
10400  # GNU dynamic linker.  Since this was broken with cross compilers,
10401  # most powerpc-linux boxes support dynamic linking these days and
10402  # people can always --disable-shared, the test was removed, and we
10403  # assume the GNU/Linux dynamic linker is in use.
10404  dynamic_linker='GNU/Linux ld.so'
10405  ;;
10406
10407netbsd*)
10408  version_type=sunos
10409  need_lib_prefix=no
10410  need_version=no
10411  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10412    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10413    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10414    dynamic_linker='NetBSD (a.out) ld.so'
10415  else
10416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10417    soname_spec='${libname}${release}${shared_ext}$major'
10418    dynamic_linker='NetBSD ld.elf_so'
10419  fi
10420  shlibpath_var=LD_LIBRARY_PATH
10421  shlibpath_overrides_runpath=yes
10422  hardcode_into_libs=yes
10423  ;;
10424
10425newsos6)
10426  version_type=linux # correct to gnu/linux during the next big refactor
10427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428  shlibpath_var=LD_LIBRARY_PATH
10429  shlibpath_overrides_runpath=yes
10430  ;;
10431
10432*nto* | *qnx*)
10433  version_type=qnx
10434  need_lib_prefix=no
10435  need_version=no
10436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437  soname_spec='${libname}${release}${shared_ext}$major'
10438  shlibpath_var=LD_LIBRARY_PATH
10439  shlibpath_overrides_runpath=no
10440  hardcode_into_libs=yes
10441  dynamic_linker='ldqnx.so'
10442  ;;
10443
10444openbsd*)
10445  version_type=sunos
10446  sys_lib_dlsearch_path_spec="/usr/lib"
10447  need_lib_prefix=no
10448  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10449  case $host_os in
10450    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10451    *)				need_version=no  ;;
10452  esac
10453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10454  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10455  shlibpath_var=LD_LIBRARY_PATH
10456  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10457    case $host_os in
10458      openbsd2.[89] | openbsd2.[89].*)
10459	shlibpath_overrides_runpath=no
10460	;;
10461      *)
10462	shlibpath_overrides_runpath=yes
10463	;;
10464      esac
10465  else
10466    shlibpath_overrides_runpath=yes
10467  fi
10468  ;;
10469
10470os2*)
10471  libname_spec='$name'
10472  shrext_cmds=".dll"
10473  need_lib_prefix=no
10474  library_names_spec='$libname${shared_ext} $libname.a'
10475  dynamic_linker='OS/2 ld.exe'
10476  shlibpath_var=LIBPATH
10477  ;;
10478
10479osf3* | osf4* | osf5*)
10480  version_type=osf
10481  need_lib_prefix=no
10482  need_version=no
10483  soname_spec='${libname}${release}${shared_ext}$major'
10484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485  shlibpath_var=LD_LIBRARY_PATH
10486  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10487  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10488  ;;
10489
10490rdos*)
10491  dynamic_linker=no
10492  ;;
10493
10494solaris*)
10495  version_type=linux # correct to gnu/linux during the next big refactor
10496  need_lib_prefix=no
10497  need_version=no
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499  soname_spec='${libname}${release}${shared_ext}$major'
10500  shlibpath_var=LD_LIBRARY_PATH
10501  shlibpath_overrides_runpath=yes
10502  hardcode_into_libs=yes
10503  # ldd complains unless libraries are executable
10504  postinstall_cmds='chmod +x $lib'
10505  ;;
10506
10507sunos4*)
10508  version_type=sunos
10509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10510  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10511  shlibpath_var=LD_LIBRARY_PATH
10512  shlibpath_overrides_runpath=yes
10513  if test "$with_gnu_ld" = yes; then
10514    need_lib_prefix=no
10515  fi
10516  need_version=yes
10517  ;;
10518
10519sysv4 | sysv4.3*)
10520  version_type=linux # correct to gnu/linux during the next big refactor
10521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522  soname_spec='${libname}${release}${shared_ext}$major'
10523  shlibpath_var=LD_LIBRARY_PATH
10524  case $host_vendor in
10525    sni)
10526      shlibpath_overrides_runpath=no
10527      need_lib_prefix=no
10528      runpath_var=LD_RUN_PATH
10529      ;;
10530    siemens)
10531      need_lib_prefix=no
10532      ;;
10533    motorola)
10534      need_lib_prefix=no
10535      need_version=no
10536      shlibpath_overrides_runpath=no
10537      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10538      ;;
10539  esac
10540  ;;
10541
10542sysv4*MP*)
10543  if test -d /usr/nec ;then
10544    version_type=linux # correct to gnu/linux during the next big refactor
10545    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10546    soname_spec='$libname${shared_ext}.$major'
10547    shlibpath_var=LD_LIBRARY_PATH
10548  fi
10549  ;;
10550
10551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552  version_type=freebsd-elf
10553  need_lib_prefix=no
10554  need_version=no
10555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10556  soname_spec='${libname}${release}${shared_ext}$major'
10557  shlibpath_var=LD_LIBRARY_PATH
10558  shlibpath_overrides_runpath=yes
10559  hardcode_into_libs=yes
10560  if test "$with_gnu_ld" = yes; then
10561    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10562  else
10563    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10564    case $host_os in
10565      sco3.2v5*)
10566        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10567	;;
10568    esac
10569  fi
10570  sys_lib_dlsearch_path_spec='/usr/lib'
10571  ;;
10572
10573tpf*)
10574  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10575  version_type=linux # correct to gnu/linux during the next big refactor
10576  need_lib_prefix=no
10577  need_version=no
10578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579  shlibpath_var=LD_LIBRARY_PATH
10580  shlibpath_overrides_runpath=no
10581  hardcode_into_libs=yes
10582  ;;
10583
10584uts4*)
10585  version_type=linux # correct to gnu/linux during the next big refactor
10586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587  soname_spec='${libname}${release}${shared_ext}$major'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  ;;
10590
10591*)
10592  dynamic_linker=no
10593  ;;
10594esac
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10596$as_echo "$dynamic_linker" >&6; }
10597test "$dynamic_linker" = no && can_build_shared=no
10598
10599variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10600if test "$GCC" = yes; then
10601  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10602fi
10603
10604if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10605  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10606fi
10607if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10608  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10609fi
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10703$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10704hardcode_action=
10705if test -n "$hardcode_libdir_flag_spec" ||
10706   test -n "$runpath_var" ||
10707   test "X$hardcode_automatic" = "Xyes" ; then
10708
10709  # We can hardcode non-existent directories.
10710  if test "$hardcode_direct" != no &&
10711     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10712     # have to relink, otherwise we might link with an installed library
10713     # when we should be linking with a yet-to-be-installed one
10714     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10715     test "$hardcode_minus_L" != no; then
10716    # Linking always hardcodes the temporary library directory.
10717    hardcode_action=relink
10718  else
10719    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10720    hardcode_action=immediate
10721  fi
10722else
10723  # We cannot hardcode anything, or else we can only hardcode existing
10724  # directories.
10725  hardcode_action=unsupported
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10728$as_echo "$hardcode_action" >&6; }
10729
10730if test "$hardcode_action" = relink ||
10731   test "$inherit_rpath" = yes; then
10732  # Fast installation is not supported
10733  enable_fast_install=no
10734elif test "$shlibpath_overrides_runpath" = yes ||
10735     test "$enable_shared" = no; then
10736  # Fast installation is not necessary
10737  enable_fast_install=needless
10738fi
10739
10740
10741
10742
10743
10744
10745  if test "x$enable_dlopen" != xyes; then
10746  enable_dlopen=unknown
10747  enable_dlopen_self=unknown
10748  enable_dlopen_self_static=unknown
10749else
10750  lt_cv_dlopen=no
10751  lt_cv_dlopen_libs=
10752
10753  case $host_os in
10754  beos*)
10755    lt_cv_dlopen="load_add_on"
10756    lt_cv_dlopen_libs=
10757    lt_cv_dlopen_self=yes
10758    ;;
10759
10760  mingw* | pw32* | cegcc*)
10761    lt_cv_dlopen="LoadLibrary"
10762    lt_cv_dlopen_libs=
10763    ;;
10764
10765  cygwin*)
10766    lt_cv_dlopen="dlopen"
10767    lt_cv_dlopen_libs=
10768    ;;
10769
10770  darwin*)
10771  # if libdl is installed we need to link against it
10772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10773$as_echo_n "checking for dlopen in -ldl... " >&6; }
10774if ${ac_cv_lib_dl_dlopen+:} false; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777  ac_check_lib_save_LIBS=$LIBS
10778LIBS="-ldl  $LIBS"
10779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780/* end confdefs.h.  */
10781
10782/* Override any GCC internal prototype to avoid an error.
10783   Use char because int might match the return type of a GCC
10784   builtin and then its argument prototype would still apply.  */
10785#ifdef __cplusplus
10786extern "C"
10787#endif
10788char dlopen ();
10789int
10790main ()
10791{
10792return dlopen ();
10793  ;
10794  return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"; then :
10798  ac_cv_lib_dl_dlopen=yes
10799else
10800  ac_cv_lib_dl_dlopen=no
10801fi
10802rm -f core conftest.err conftest.$ac_objext \
10803    conftest$ac_exeext conftest.$ac_ext
10804LIBS=$ac_check_lib_save_LIBS
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10807$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10808if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10809  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10810else
10811
10812    lt_cv_dlopen="dyld"
10813    lt_cv_dlopen_libs=
10814    lt_cv_dlopen_self=yes
10815
10816fi
10817
10818    ;;
10819
10820  *)
10821    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10822if test "x$ac_cv_func_shl_load" = xyes; then :
10823  lt_cv_dlopen="shl_load"
10824else
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10826$as_echo_n "checking for shl_load in -ldld... " >&6; }
10827if ${ac_cv_lib_dld_shl_load+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  ac_check_lib_save_LIBS=$LIBS
10831LIBS="-ldld  $LIBS"
10832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h.  */
10834
10835/* Override any GCC internal prototype to avoid an error.
10836   Use char because int might match the return type of a GCC
10837   builtin and then its argument prototype would still apply.  */
10838#ifdef __cplusplus
10839extern "C"
10840#endif
10841char shl_load ();
10842int
10843main ()
10844{
10845return shl_load ();
10846  ;
10847  return 0;
10848}
10849_ACEOF
10850if ac_fn_c_try_link "$LINENO"; then :
10851  ac_cv_lib_dld_shl_load=yes
10852else
10853  ac_cv_lib_dld_shl_load=no
10854fi
10855rm -f core conftest.err conftest.$ac_objext \
10856    conftest$ac_exeext conftest.$ac_ext
10857LIBS=$ac_check_lib_save_LIBS
10858fi
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10860$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10861if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10862  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10863else
10864  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10865if test "x$ac_cv_func_dlopen" = xyes; then :
10866  lt_cv_dlopen="dlopen"
10867else
10868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10869$as_echo_n "checking for dlopen in -ldl... " >&6; }
10870if ${ac_cv_lib_dl_dlopen+:} false; then :
10871  $as_echo_n "(cached) " >&6
10872else
10873  ac_check_lib_save_LIBS=$LIBS
10874LIBS="-ldl  $LIBS"
10875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h.  */
10877
10878/* Override any GCC internal prototype to avoid an error.
10879   Use char because int might match the return type of a GCC
10880   builtin and then its argument prototype would still apply.  */
10881#ifdef __cplusplus
10882extern "C"
10883#endif
10884char dlopen ();
10885int
10886main ()
10887{
10888return dlopen ();
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_link "$LINENO"; then :
10894  ac_cv_lib_dl_dlopen=yes
10895else
10896  ac_cv_lib_dl_dlopen=no
10897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899    conftest$ac_exeext conftest.$ac_ext
10900LIBS=$ac_check_lib_save_LIBS
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10903$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10904if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10905  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10906else
10907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10908$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10909if ${ac_cv_lib_svld_dlopen+:} false; then :
10910  $as_echo_n "(cached) " >&6
10911else
10912  ac_check_lib_save_LIBS=$LIBS
10913LIBS="-lsvld  $LIBS"
10914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h.  */
10916
10917/* Override any GCC internal prototype to avoid an error.
10918   Use char because int might match the return type of a GCC
10919   builtin and then its argument prototype would still apply.  */
10920#ifdef __cplusplus
10921extern "C"
10922#endif
10923char dlopen ();
10924int
10925main ()
10926{
10927return dlopen ();
10928  ;
10929  return 0;
10930}
10931_ACEOF
10932if ac_fn_c_try_link "$LINENO"; then :
10933  ac_cv_lib_svld_dlopen=yes
10934else
10935  ac_cv_lib_svld_dlopen=no
10936fi
10937rm -f core conftest.err conftest.$ac_objext \
10938    conftest$ac_exeext conftest.$ac_ext
10939LIBS=$ac_check_lib_save_LIBS
10940fi
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10942$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10943if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10944  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10945else
10946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10947$as_echo_n "checking for dld_link in -ldld... " >&6; }
10948if ${ac_cv_lib_dld_dld_link+:} false; then :
10949  $as_echo_n "(cached) " >&6
10950else
10951  ac_check_lib_save_LIBS=$LIBS
10952LIBS="-ldld  $LIBS"
10953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954/* end confdefs.h.  */
10955
10956/* Override any GCC internal prototype to avoid an error.
10957   Use char because int might match the return type of a GCC
10958   builtin and then its argument prototype would still apply.  */
10959#ifdef __cplusplus
10960extern "C"
10961#endif
10962char dld_link ();
10963int
10964main ()
10965{
10966return dld_link ();
10967  ;
10968  return 0;
10969}
10970_ACEOF
10971if ac_fn_c_try_link "$LINENO"; then :
10972  ac_cv_lib_dld_dld_link=yes
10973else
10974  ac_cv_lib_dld_dld_link=no
10975fi
10976rm -f core conftest.err conftest.$ac_objext \
10977    conftest$ac_exeext conftest.$ac_ext
10978LIBS=$ac_check_lib_save_LIBS
10979fi
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10981$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10982if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10983  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10984fi
10985
10986
10987fi
10988
10989
10990fi
10991
10992
10993fi
10994
10995
10996fi
10997
10998
10999fi
11000
11001    ;;
11002  esac
11003
11004  if test "x$lt_cv_dlopen" != xno; then
11005    enable_dlopen=yes
11006  else
11007    enable_dlopen=no
11008  fi
11009
11010  case $lt_cv_dlopen in
11011  dlopen)
11012    save_CPPFLAGS="$CPPFLAGS"
11013    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11014
11015    save_LDFLAGS="$LDFLAGS"
11016    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11017
11018    save_LIBS="$LIBS"
11019    LIBS="$lt_cv_dlopen_libs $LIBS"
11020
11021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11022$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11023if ${lt_cv_dlopen_self+:} false; then :
11024  $as_echo_n "(cached) " >&6
11025else
11026  	  if test "$cross_compiling" = yes; then :
11027  lt_cv_dlopen_self=cross
11028else
11029  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11030  lt_status=$lt_dlunknown
11031  cat > conftest.$ac_ext <<_LT_EOF
11032#line $LINENO "configure"
11033#include "confdefs.h"
11034
11035#if HAVE_DLFCN_H
11036#include <dlfcn.h>
11037#endif
11038
11039#include <stdio.h>
11040
11041#ifdef RTLD_GLOBAL
11042#  define LT_DLGLOBAL		RTLD_GLOBAL
11043#else
11044#  ifdef DL_GLOBAL
11045#    define LT_DLGLOBAL		DL_GLOBAL
11046#  else
11047#    define LT_DLGLOBAL		0
11048#  endif
11049#endif
11050
11051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11052   find out it does not work in some platform. */
11053#ifndef LT_DLLAZY_OR_NOW
11054#  ifdef RTLD_LAZY
11055#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11056#  else
11057#    ifdef DL_LAZY
11058#      define LT_DLLAZY_OR_NOW		DL_LAZY
11059#    else
11060#      ifdef RTLD_NOW
11061#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11062#      else
11063#        ifdef DL_NOW
11064#          define LT_DLLAZY_OR_NOW	DL_NOW
11065#        else
11066#          define LT_DLLAZY_OR_NOW	0
11067#        endif
11068#      endif
11069#    endif
11070#  endif
11071#endif
11072
11073/* When -fvisbility=hidden is used, assume the code has been annotated
11074   correspondingly for the symbols needed.  */
11075#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11076int fnord () __attribute__((visibility("default")));
11077#endif
11078
11079int fnord () { return 42; }
11080int main ()
11081{
11082  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11083  int status = $lt_dlunknown;
11084
11085  if (self)
11086    {
11087      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11088      else
11089        {
11090	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11091          else puts (dlerror ());
11092	}
11093      /* dlclose (self); */
11094    }
11095  else
11096    puts (dlerror ());
11097
11098  return status;
11099}
11100_LT_EOF
11101  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11102  (eval $ac_link) 2>&5
11103  ac_status=$?
11104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11106    (./conftest; exit; ) >&5 2>/dev/null
11107    lt_status=$?
11108    case x$lt_status in
11109      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11110      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11111      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11112    esac
11113  else :
11114    # compilation failed
11115    lt_cv_dlopen_self=no
11116  fi
11117fi
11118rm -fr conftest*
11119
11120
11121fi
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11123$as_echo "$lt_cv_dlopen_self" >&6; }
11124
11125    if test "x$lt_cv_dlopen_self" = xyes; then
11126      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11127      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11128$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11129if ${lt_cv_dlopen_self_static+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  	  if test "$cross_compiling" = yes; then :
11133  lt_cv_dlopen_self_static=cross
11134else
11135  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11136  lt_status=$lt_dlunknown
11137  cat > conftest.$ac_ext <<_LT_EOF
11138#line $LINENO "configure"
11139#include "confdefs.h"
11140
11141#if HAVE_DLFCN_H
11142#include <dlfcn.h>
11143#endif
11144
11145#include <stdio.h>
11146
11147#ifdef RTLD_GLOBAL
11148#  define LT_DLGLOBAL		RTLD_GLOBAL
11149#else
11150#  ifdef DL_GLOBAL
11151#    define LT_DLGLOBAL		DL_GLOBAL
11152#  else
11153#    define LT_DLGLOBAL		0
11154#  endif
11155#endif
11156
11157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11158   find out it does not work in some platform. */
11159#ifndef LT_DLLAZY_OR_NOW
11160#  ifdef RTLD_LAZY
11161#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11162#  else
11163#    ifdef DL_LAZY
11164#      define LT_DLLAZY_OR_NOW		DL_LAZY
11165#    else
11166#      ifdef RTLD_NOW
11167#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11168#      else
11169#        ifdef DL_NOW
11170#          define LT_DLLAZY_OR_NOW	DL_NOW
11171#        else
11172#          define LT_DLLAZY_OR_NOW	0
11173#        endif
11174#      endif
11175#    endif
11176#  endif
11177#endif
11178
11179/* When -fvisbility=hidden is used, assume the code has been annotated
11180   correspondingly for the symbols needed.  */
11181#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11182int fnord () __attribute__((visibility("default")));
11183#endif
11184
11185int fnord () { return 42; }
11186int main ()
11187{
11188  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189  int status = $lt_dlunknown;
11190
11191  if (self)
11192    {
11193      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11194      else
11195        {
11196	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11197          else puts (dlerror ());
11198	}
11199      /* dlclose (self); */
11200    }
11201  else
11202    puts (dlerror ());
11203
11204  return status;
11205}
11206_LT_EOF
11207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11208  (eval $ac_link) 2>&5
11209  ac_status=$?
11210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11211  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11212    (./conftest; exit; ) >&5 2>/dev/null
11213    lt_status=$?
11214    case x$lt_status in
11215      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11216      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11217      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11218    esac
11219  else :
11220    # compilation failed
11221    lt_cv_dlopen_self_static=no
11222  fi
11223fi
11224rm -fr conftest*
11225
11226
11227fi
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11229$as_echo "$lt_cv_dlopen_self_static" >&6; }
11230    fi
11231
11232    CPPFLAGS="$save_CPPFLAGS"
11233    LDFLAGS="$save_LDFLAGS"
11234    LIBS="$save_LIBS"
11235    ;;
11236  esac
11237
11238  case $lt_cv_dlopen_self in
11239  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11240  *) enable_dlopen_self=unknown ;;
11241  esac
11242
11243  case $lt_cv_dlopen_self_static in
11244  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11245  *) enable_dlopen_self_static=unknown ;;
11246  esac
11247fi
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265striplib=
11266old_striplib=
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11268$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11269if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11270  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11271  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11273$as_echo "yes" >&6; }
11274else
11275# FIXME - insert some real tests, host_os isn't really good enough
11276  case $host_os in
11277  darwin*)
11278    if test -n "$STRIP" ; then
11279      striplib="$STRIP -x"
11280      old_striplib="$STRIP -S"
11281      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282$as_echo "yes" >&6; }
11283    else
11284      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
11286    fi
11287    ;;
11288  *)
11289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
11291    ;;
11292  esac
11293fi
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306  # Report which library types will actually be built
11307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11308$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11310$as_echo "$can_build_shared" >&6; }
11311
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11313$as_echo_n "checking whether to build shared libraries... " >&6; }
11314  test "$can_build_shared" = "no" && enable_shared=no
11315
11316  # On AIX, shared libraries and static libraries use the same namespace, and
11317  # are all built from PIC.
11318  case $host_os in
11319  aix3*)
11320    test "$enable_shared" = yes && enable_static=no
11321    if test -n "$RANLIB"; then
11322      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11323      postinstall_cmds='$RANLIB $lib'
11324    fi
11325    ;;
11326
11327  aix[4-9]*)
11328    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11329      test "$enable_shared" = yes && enable_static=no
11330    fi
11331    ;;
11332  esac
11333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11334$as_echo "$enable_shared" >&6; }
11335
11336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11337$as_echo_n "checking whether to build static libraries... " >&6; }
11338  # Make sure either enable_shared or enable_static is yes.
11339  test "$enable_shared" = yes || enable_static=yes
11340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11341$as_echo "$enable_static" >&6; }
11342
11343
11344
11345
11346fi
11347ac_ext=c
11348ac_cpp='$CPP $CPPFLAGS'
11349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11351ac_compiler_gnu=$ac_cv_c_compiler_gnu
11352
11353CC="$lt_save_CC"
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369        ac_config_commands="$ac_config_commands libtool"
11370
11371
11372
11373
11374# Only expand once:
11375
11376
11377ac_ext=c
11378ac_cpp='$CPP $CPPFLAGS'
11379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381ac_compiler_gnu=$ac_cv_c_compiler_gnu
11382if test -n "$ac_tool_prefix"; then
11383  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11384set dummy ${ac_tool_prefix}gcc; ac_word=$2
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386$as_echo_n "checking for $ac_word... " >&6; }
11387if ${ac_cv_prog_CC+:} false; then :
11388  $as_echo_n "(cached) " >&6
11389else
11390  if test -n "$CC"; then
11391  ac_cv_prog_CC="$CC" # Let the user override the test.
11392else
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396  IFS=$as_save_IFS
11397  test -z "$as_dir" && as_dir=.
11398    for ac_exec_ext in '' $ac_executable_extensions; do
11399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402    break 2
11403  fi
11404done
11405  done
11406IFS=$as_save_IFS
11407
11408fi
11409fi
11410CC=$ac_cv_prog_CC
11411if test -n "$CC"; then
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11413$as_echo "$CC" >&6; }
11414else
11415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417fi
11418
11419
11420fi
11421if test -z "$ac_cv_prog_CC"; then
11422  ac_ct_CC=$CC
11423  # Extract the first word of "gcc", so it can be a program name with args.
11424set dummy gcc; ac_word=$2
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
11427if ${ac_cv_prog_ac_ct_CC+:} false; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  if test -n "$ac_ct_CC"; then
11431  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436  IFS=$as_save_IFS
11437  test -z "$as_dir" && as_dir=.
11438    for ac_exec_ext in '' $ac_executable_extensions; do
11439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440    ac_cv_prog_ac_ct_CC="gcc"
11441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442    break 2
11443  fi
11444done
11445  done
11446IFS=$as_save_IFS
11447
11448fi
11449fi
11450ac_ct_CC=$ac_cv_prog_ac_ct_CC
11451if test -n "$ac_ct_CC"; then
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11453$as_echo "$ac_ct_CC" >&6; }
11454else
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457fi
11458
11459  if test "x$ac_ct_CC" = x; then
11460    CC=""
11461  else
11462    case $cross_compiling:$ac_tool_warned in
11463yes:)
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11466ac_tool_warned=yes ;;
11467esac
11468    CC=$ac_ct_CC
11469  fi
11470else
11471  CC="$ac_cv_prog_CC"
11472fi
11473
11474if test -z "$CC"; then
11475          if test -n "$ac_tool_prefix"; then
11476    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11477set dummy ${ac_tool_prefix}cc; ac_word=$2
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if ${ac_cv_prog_CC+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  if test -n "$CC"; then
11484  ac_cv_prog_CC="$CC" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489  IFS=$as_save_IFS
11490  test -z "$as_dir" && as_dir=.
11491    for ac_exec_ext in '' $ac_executable_extensions; do
11492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493    ac_cv_prog_CC="${ac_tool_prefix}cc"
11494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495    break 2
11496  fi
11497done
11498  done
11499IFS=$as_save_IFS
11500
11501fi
11502fi
11503CC=$ac_cv_prog_CC
11504if test -n "$CC"; then
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11506$as_echo "$CC" >&6; }
11507else
11508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
11510fi
11511
11512
11513  fi
11514fi
11515if test -z "$CC"; then
11516  # Extract the first word of "cc", so it can be a program name with args.
11517set dummy cc; ac_word=$2
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11519$as_echo_n "checking for $ac_word... " >&6; }
11520if ${ac_cv_prog_CC+:} false; then :
11521  $as_echo_n "(cached) " >&6
11522else
11523  if test -n "$CC"; then
11524  ac_cv_prog_CC="$CC" # Let the user override the test.
11525else
11526  ac_prog_rejected=no
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530  IFS=$as_save_IFS
11531  test -z "$as_dir" && as_dir=.
11532    for ac_exec_ext in '' $ac_executable_extensions; do
11533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11535       ac_prog_rejected=yes
11536       continue
11537     fi
11538    ac_cv_prog_CC="cc"
11539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540    break 2
11541  fi
11542done
11543  done
11544IFS=$as_save_IFS
11545
11546if test $ac_prog_rejected = yes; then
11547  # We found a bogon in the path, so make sure we never use it.
11548  set dummy $ac_cv_prog_CC
11549  shift
11550  if test $# != 0; then
11551    # We chose a different compiler from the bogus one.
11552    # However, it has the same basename, so the bogon will be chosen
11553    # first if we set CC to just the basename; use the full file name.
11554    shift
11555    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11556  fi
11557fi
11558fi
11559fi
11560CC=$ac_cv_prog_CC
11561if test -n "$CC"; then
11562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11563$as_echo "$CC" >&6; }
11564else
11565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566$as_echo "no" >&6; }
11567fi
11568
11569
11570fi
11571if test -z "$CC"; then
11572  if test -n "$ac_tool_prefix"; then
11573  for ac_prog in cl.exe
11574  do
11575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578$as_echo_n "checking for $ac_word... " >&6; }
11579if ${ac_cv_prog_CC+:} false; then :
11580  $as_echo_n "(cached) " >&6
11581else
11582  if test -n "$CC"; then
11583  ac_cv_prog_CC="$CC" # Let the user override the test.
11584else
11585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $PATH
11587do
11588  IFS=$as_save_IFS
11589  test -z "$as_dir" && as_dir=.
11590    for ac_exec_ext in '' $ac_executable_extensions; do
11591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594    break 2
11595  fi
11596done
11597  done
11598IFS=$as_save_IFS
11599
11600fi
11601fi
11602CC=$ac_cv_prog_CC
11603if test -n "$CC"; then
11604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11605$as_echo "$CC" >&6; }
11606else
11607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
11609fi
11610
11611
11612    test -n "$CC" && break
11613  done
11614fi
11615if test -z "$CC"; then
11616  ac_ct_CC=$CC
11617  for ac_prog in cl.exe
11618do
11619  # Extract the first word of "$ac_prog", so it can be a program name with args.
11620set dummy $ac_prog; ac_word=$2
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622$as_echo_n "checking for $ac_word... " >&6; }
11623if ${ac_cv_prog_ac_ct_CC+:} false; then :
11624  $as_echo_n "(cached) " >&6
11625else
11626  if test -n "$ac_ct_CC"; then
11627  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11628else
11629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630for as_dir in $PATH
11631do
11632  IFS=$as_save_IFS
11633  test -z "$as_dir" && as_dir=.
11634    for ac_exec_ext in '' $ac_executable_extensions; do
11635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11636    ac_cv_prog_ac_ct_CC="$ac_prog"
11637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11638    break 2
11639  fi
11640done
11641  done
11642IFS=$as_save_IFS
11643
11644fi
11645fi
11646ac_ct_CC=$ac_cv_prog_ac_ct_CC
11647if test -n "$ac_ct_CC"; then
11648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11649$as_echo "$ac_ct_CC" >&6; }
11650else
11651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652$as_echo "no" >&6; }
11653fi
11654
11655
11656  test -n "$ac_ct_CC" && break
11657done
11658
11659  if test "x$ac_ct_CC" = x; then
11660    CC=""
11661  else
11662    case $cross_compiling:$ac_tool_warned in
11663yes:)
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11666ac_tool_warned=yes ;;
11667esac
11668    CC=$ac_ct_CC
11669  fi
11670fi
11671
11672fi
11673
11674
11675test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11677as_fn_error $? "no acceptable C compiler found in \$PATH
11678See \`config.log' for more details" "$LINENO" 5; }
11679
11680# Provide some information about the compiler.
11681$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11682set X $ac_compile
11683ac_compiler=$2
11684for ac_option in --version -v -V -qversion; do
11685  { { ac_try="$ac_compiler $ac_option >&5"
11686case "(($ac_try" in
11687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688  *) ac_try_echo=$ac_try;;
11689esac
11690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11691$as_echo "$ac_try_echo"; } >&5
11692  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11693  ac_status=$?
11694  if test -s conftest.err; then
11695    sed '10a\
11696... rest of stderr output deleted ...
11697         10q' conftest.err >conftest.er1
11698    cat conftest.er1 >&5
11699  fi
11700  rm -f conftest.er1 conftest.err
11701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702  test $ac_status = 0; }
11703done
11704
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11706$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11707if ${ac_cv_c_compiler_gnu+:} false; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711/* end confdefs.h.  */
11712
11713int
11714main ()
11715{
11716#ifndef __GNUC__
11717       choke me
11718#endif
11719
11720  ;
11721  return 0;
11722}
11723_ACEOF
11724if ac_fn_c_try_compile "$LINENO"; then :
11725  ac_compiler_gnu=yes
11726else
11727  ac_compiler_gnu=no
11728fi
11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730ac_cv_c_compiler_gnu=$ac_compiler_gnu
11731
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11734$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11735if test $ac_compiler_gnu = yes; then
11736  GCC=yes
11737else
11738  GCC=
11739fi
11740ac_test_CFLAGS=${CFLAGS+set}
11741ac_save_CFLAGS=$CFLAGS
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11743$as_echo_n "checking whether $CC accepts -g... " >&6; }
11744if ${ac_cv_prog_cc_g+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  ac_save_c_werror_flag=$ac_c_werror_flag
11748   ac_c_werror_flag=yes
11749   ac_cv_prog_cc_g=no
11750   CFLAGS="-g"
11751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752/* end confdefs.h.  */
11753
11754int
11755main ()
11756{
11757
11758  ;
11759  return 0;
11760}
11761_ACEOF
11762if ac_fn_c_try_compile "$LINENO"; then :
11763  ac_cv_prog_cc_g=yes
11764else
11765  CFLAGS=""
11766      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767/* end confdefs.h.  */
11768
11769int
11770main ()
11771{
11772
11773  ;
11774  return 0;
11775}
11776_ACEOF
11777if ac_fn_c_try_compile "$LINENO"; then :
11778
11779else
11780  ac_c_werror_flag=$ac_save_c_werror_flag
11781	 CFLAGS="-g"
11782	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h.  */
11784
11785int
11786main ()
11787{
11788
11789  ;
11790  return 0;
11791}
11792_ACEOF
11793if ac_fn_c_try_compile "$LINENO"; then :
11794  ac_cv_prog_cc_g=yes
11795fi
11796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797fi
11798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799fi
11800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801   ac_c_werror_flag=$ac_save_c_werror_flag
11802fi
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11804$as_echo "$ac_cv_prog_cc_g" >&6; }
11805if test "$ac_test_CFLAGS" = set; then
11806  CFLAGS=$ac_save_CFLAGS
11807elif test $ac_cv_prog_cc_g = yes; then
11808  if test "$GCC" = yes; then
11809    CFLAGS="-g -O2"
11810  else
11811    CFLAGS="-g"
11812  fi
11813else
11814  if test "$GCC" = yes; then
11815    CFLAGS="-O2"
11816  else
11817    CFLAGS=
11818  fi
11819fi
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11821$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11822if ${ac_cv_prog_cc_c89+:} false; then :
11823  $as_echo_n "(cached) " >&6
11824else
11825  ac_cv_prog_cc_c89=no
11826ac_save_CC=$CC
11827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h.  */
11829#include <stdarg.h>
11830#include <stdio.h>
11831#include <sys/types.h>
11832#include <sys/stat.h>
11833/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11834struct buf { int x; };
11835FILE * (*rcsopen) (struct buf *, struct stat *, int);
11836static char *e (p, i)
11837     char **p;
11838     int i;
11839{
11840  return p[i];
11841}
11842static char *f (char * (*g) (char **, int), char **p, ...)
11843{
11844  char *s;
11845  va_list v;
11846  va_start (v,p);
11847  s = g (p, va_arg (v,int));
11848  va_end (v);
11849  return s;
11850}
11851
11852/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11853   function prototypes and stuff, but not '\xHH' hex character constants.
11854   These don't provoke an error unfortunately, instead are silently treated
11855   as 'x'.  The following induces an error, until -std is added to get
11856   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11857   array size at least.  It's necessary to write '\x00'==0 to get something
11858   that's true only with -std.  */
11859int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11860
11861/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11862   inside strings and character constants.  */
11863#define FOO(x) 'x'
11864int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11865
11866int test (int i, double x);
11867struct s1 {int (*f) (int a);};
11868struct s2 {int (*f) (double a);};
11869int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11870int argc;
11871char **argv;
11872int
11873main ()
11874{
11875return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11876  ;
11877  return 0;
11878}
11879_ACEOF
11880for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11881	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11882do
11883  CC="$ac_save_CC $ac_arg"
11884  if ac_fn_c_try_compile "$LINENO"; then :
11885  ac_cv_prog_cc_c89=$ac_arg
11886fi
11887rm -f core conftest.err conftest.$ac_objext
11888  test "x$ac_cv_prog_cc_c89" != "xno" && break
11889done
11890rm -f conftest.$ac_ext
11891CC=$ac_save_CC
11892
11893fi
11894# AC_CACHE_VAL
11895case "x$ac_cv_prog_cc_c89" in
11896  x)
11897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11898$as_echo "none needed" >&6; } ;;
11899  xno)
11900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11901$as_echo "unsupported" >&6; } ;;
11902  *)
11903    CC="$CC $ac_cv_prog_cc_c89"
11904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11905$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11906esac
11907if test "x$ac_cv_prog_cc_c89" != xno; then :
11908
11909fi
11910
11911ac_ext=c
11912ac_cpp='$CPP $CPPFLAGS'
11913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916
11917depcc="$CC"   am_compiler_list=
11918
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11920$as_echo_n "checking dependency style of $depcc... " >&6; }
11921if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11922  $as_echo_n "(cached) " >&6
11923else
11924  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11925  # We make a subdir and do the tests there.  Otherwise we can end up
11926  # making bogus files that we don't know about and never remove.  For
11927  # instance it was reported that on HP-UX the gcc test will end up
11928  # making a dummy file named `D' -- because `-MD' means `put the output
11929  # in D'.
11930  rm -rf conftest.dir
11931  mkdir conftest.dir
11932  # Copy depcomp to subdir because otherwise we won't find it if we're
11933  # using a relative directory.
11934  cp "$am_depcomp" conftest.dir
11935  cd conftest.dir
11936  # We will build objects and dependencies in a subdirectory because
11937  # it helps to detect inapplicable dependency modes.  For instance
11938  # both Tru64's cc and ICC support -MD to output dependencies as a
11939  # side effect of compilation, but ICC will put the dependencies in
11940  # the current directory while Tru64 will put them in the object
11941  # directory.
11942  mkdir sub
11943
11944  am_cv_CC_dependencies_compiler_type=none
11945  if test "$am_compiler_list" = ""; then
11946     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11947  fi
11948  am__universal=false
11949  case " $depcc " in #(
11950     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11951     esac
11952
11953  for depmode in $am_compiler_list; do
11954    # Setup a source with many dependencies, because some compilers
11955    # like to wrap large dependency lists on column 80 (with \), and
11956    # we should not choose a depcomp mode which is confused by this.
11957    #
11958    # We need to recreate these files for each test, as the compiler may
11959    # overwrite some of them when testing with obscure command lines.
11960    # This happens at least with the AIX C compiler.
11961    : > sub/conftest.c
11962    for i in 1 2 3 4 5 6; do
11963      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11964      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11965      # Solaris 8's {/usr,}/bin/sh.
11966      touch sub/conftst$i.h
11967    done
11968    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11969
11970    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11971    # mode.  It turns out that the SunPro C++ compiler does not properly
11972    # handle `-M -o', and we need to detect this.  Also, some Intel
11973    # versions had trouble with output in subdirs
11974    am__obj=sub/conftest.${OBJEXT-o}
11975    am__minus_obj="-o $am__obj"
11976    case $depmode in
11977    gcc)
11978      # This depmode causes a compiler race in universal mode.
11979      test "$am__universal" = false || continue
11980      ;;
11981    nosideeffect)
11982      # after this tag, mechanisms are not by side-effect, so they'll
11983      # only be used when explicitly requested
11984      if test "x$enable_dependency_tracking" = xyes; then
11985	continue
11986      else
11987	break
11988      fi
11989      ;;
11990    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11991      # This compiler won't grok `-c -o', but also, the minuso test has
11992      # not run yet.  These depmodes are late enough in the game, and
11993      # so weak that their functioning should not be impacted.
11994      am__obj=conftest.${OBJEXT-o}
11995      am__minus_obj=
11996      ;;
11997    none) break ;;
11998    esac
11999    if depmode=$depmode \
12000       source=sub/conftest.c object=$am__obj \
12001       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12002       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12003         >/dev/null 2>conftest.err &&
12004       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12005       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12006       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12007       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12008      # icc doesn't choke on unknown options, it will just issue warnings
12009      # or remarks (even with -Werror).  So we grep stderr for any message
12010      # that says an option was ignored or not supported.
12011      # When given -MP, icc 7.0 and 7.1 complain thusly:
12012      #   icc: Command line warning: ignoring option '-M'; no argument required
12013      # The diagnosis changed in icc 8.0:
12014      #   icc: Command line remark: option '-MP' not supported
12015      if (grep 'ignoring option' conftest.err ||
12016          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12017        am_cv_CC_dependencies_compiler_type=$depmode
12018        break
12019      fi
12020    fi
12021  done
12022
12023  cd ..
12024  rm -rf conftest.dir
12025else
12026  am_cv_CC_dependencies_compiler_type=none
12027fi
12028
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12033
12034 if
12035  test "x$enable_dependency_tracking" != xno \
12036  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12037  am__fastdepCC_TRUE=
12038  am__fastdepCC_FALSE='#'
12039else
12040  am__fastdepCC_TRUE='#'
12041  am__fastdepCC_FALSE=
12042fi
12043
12044
12045ac_ext=cpp
12046ac_cpp='$CXXCPP $CPPFLAGS'
12047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050if test -z "$CXX"; then
12051  if test -n "$CCC"; then
12052    CXX=$CCC
12053  else
12054    if test -n "$ac_tool_prefix"; then
12055  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12056  do
12057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060$as_echo_n "checking for $ac_word... " >&6; }
12061if ${ac_cv_prog_CXX+:} false; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  if test -n "$CXX"; then
12065  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12066else
12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070  IFS=$as_save_IFS
12071  test -z "$as_dir" && as_dir=.
12072    for ac_exec_ext in '' $ac_executable_extensions; do
12073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12074    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076    break 2
12077  fi
12078done
12079  done
12080IFS=$as_save_IFS
12081
12082fi
12083fi
12084CXX=$ac_cv_prog_CXX
12085if test -n "$CXX"; then
12086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12087$as_echo "$CXX" >&6; }
12088else
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090$as_echo "no" >&6; }
12091fi
12092
12093
12094    test -n "$CXX" && break
12095  done
12096fi
12097if test -z "$CXX"; then
12098  ac_ct_CXX=$CXX
12099  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12100do
12101  # Extract the first word of "$ac_prog", so it can be a program name with args.
12102set dummy $ac_prog; ac_word=$2
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104$as_echo_n "checking for $ac_word... " >&6; }
12105if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12106  $as_echo_n "(cached) " >&6
12107else
12108  if test -n "$ac_ct_CXX"; then
12109  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12110else
12111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112for as_dir in $PATH
12113do
12114  IFS=$as_save_IFS
12115  test -z "$as_dir" && as_dir=.
12116    for ac_exec_ext in '' $ac_executable_extensions; do
12117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12118    ac_cv_prog_ac_ct_CXX="$ac_prog"
12119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120    break 2
12121  fi
12122done
12123  done
12124IFS=$as_save_IFS
12125
12126fi
12127fi
12128ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12129if test -n "$ac_ct_CXX"; then
12130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12131$as_echo "$ac_ct_CXX" >&6; }
12132else
12133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134$as_echo "no" >&6; }
12135fi
12136
12137
12138  test -n "$ac_ct_CXX" && break
12139done
12140
12141  if test "x$ac_ct_CXX" = x; then
12142    CXX="g++"
12143  else
12144    case $cross_compiling:$ac_tool_warned in
12145yes:)
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12148ac_tool_warned=yes ;;
12149esac
12150    CXX=$ac_ct_CXX
12151  fi
12152fi
12153
12154  fi
12155fi
12156# Provide some information about the compiler.
12157$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12158set X $ac_compile
12159ac_compiler=$2
12160for ac_option in --version -v -V -qversion; do
12161  { { ac_try="$ac_compiler $ac_option >&5"
12162case "(($ac_try" in
12163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164  *) ac_try_echo=$ac_try;;
12165esac
12166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12167$as_echo "$ac_try_echo"; } >&5
12168  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12169  ac_status=$?
12170  if test -s conftest.err; then
12171    sed '10a\
12172... rest of stderr output deleted ...
12173         10q' conftest.err >conftest.er1
12174    cat conftest.er1 >&5
12175  fi
12176  rm -f conftest.er1 conftest.err
12177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12178  test $ac_status = 0; }
12179done
12180
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12182$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12183if ${ac_cv_cxx_compiler_gnu+:} false; then :
12184  $as_echo_n "(cached) " >&6
12185else
12186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189int
12190main ()
12191{
12192#ifndef __GNUC__
12193       choke me
12194#endif
12195
12196  ;
12197  return 0;
12198}
12199_ACEOF
12200if ac_fn_cxx_try_compile "$LINENO"; then :
12201  ac_compiler_gnu=yes
12202else
12203  ac_compiler_gnu=no
12204fi
12205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12207
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12210$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12211if test $ac_compiler_gnu = yes; then
12212  GXX=yes
12213else
12214  GXX=
12215fi
12216ac_test_CXXFLAGS=${CXXFLAGS+set}
12217ac_save_CXXFLAGS=$CXXFLAGS
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12219$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12220if ${ac_cv_prog_cxx_g+:} false; then :
12221  $as_echo_n "(cached) " >&6
12222else
12223  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12224   ac_cxx_werror_flag=yes
12225   ac_cv_prog_cxx_g=no
12226   CXXFLAGS="-g"
12227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h.  */
12229
12230int
12231main ()
12232{
12233
12234  ;
12235  return 0;
12236}
12237_ACEOF
12238if ac_fn_cxx_try_compile "$LINENO"; then :
12239  ac_cv_prog_cxx_g=yes
12240else
12241  CXXFLAGS=""
12242      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h.  */
12244
12245int
12246main ()
12247{
12248
12249  ;
12250  return 0;
12251}
12252_ACEOF
12253if ac_fn_cxx_try_compile "$LINENO"; then :
12254
12255else
12256  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12257	 CXXFLAGS="-g"
12258	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h.  */
12260
12261int
12262main ()
12263{
12264
12265  ;
12266  return 0;
12267}
12268_ACEOF
12269if ac_fn_cxx_try_compile "$LINENO"; then :
12270  ac_cv_prog_cxx_g=yes
12271fi
12272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273fi
12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275fi
12276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12278fi
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12280$as_echo "$ac_cv_prog_cxx_g" >&6; }
12281if test "$ac_test_CXXFLAGS" = set; then
12282  CXXFLAGS=$ac_save_CXXFLAGS
12283elif test $ac_cv_prog_cxx_g = yes; then
12284  if test "$GXX" = yes; then
12285    CXXFLAGS="-g -O2"
12286  else
12287    CXXFLAGS="-g"
12288  fi
12289else
12290  if test "$GXX" = yes; then
12291    CXXFLAGS="-O2"
12292  else
12293    CXXFLAGS=
12294  fi
12295fi
12296ac_ext=c
12297ac_cpp='$CPP $CPPFLAGS'
12298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300ac_compiler_gnu=$ac_cv_c_compiler_gnu
12301
12302depcc="$CXX"  am_compiler_list=
12303
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12305$as_echo_n "checking dependency style of $depcc... " >&6; }
12306if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12307  $as_echo_n "(cached) " >&6
12308else
12309  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12310  # We make a subdir and do the tests there.  Otherwise we can end up
12311  # making bogus files that we don't know about and never remove.  For
12312  # instance it was reported that on HP-UX the gcc test will end up
12313  # making a dummy file named `D' -- because `-MD' means `put the output
12314  # in D'.
12315  rm -rf conftest.dir
12316  mkdir conftest.dir
12317  # Copy depcomp to subdir because otherwise we won't find it if we're
12318  # using a relative directory.
12319  cp "$am_depcomp" conftest.dir
12320  cd conftest.dir
12321  # We will build objects and dependencies in a subdirectory because
12322  # it helps to detect inapplicable dependency modes.  For instance
12323  # both Tru64's cc and ICC support -MD to output dependencies as a
12324  # side effect of compilation, but ICC will put the dependencies in
12325  # the current directory while Tru64 will put them in the object
12326  # directory.
12327  mkdir sub
12328
12329  am_cv_CXX_dependencies_compiler_type=none
12330  if test "$am_compiler_list" = ""; then
12331     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12332  fi
12333  am__universal=false
12334  case " $depcc " in #(
12335     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12336     esac
12337
12338  for depmode in $am_compiler_list; do
12339    # Setup a source with many dependencies, because some compilers
12340    # like to wrap large dependency lists on column 80 (with \), and
12341    # we should not choose a depcomp mode which is confused by this.
12342    #
12343    # We need to recreate these files for each test, as the compiler may
12344    # overwrite some of them when testing with obscure command lines.
12345    # This happens at least with the AIX C compiler.
12346    : > sub/conftest.c
12347    for i in 1 2 3 4 5 6; do
12348      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12349      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12350      # Solaris 8's {/usr,}/bin/sh.
12351      touch sub/conftst$i.h
12352    done
12353    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12354
12355    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12356    # mode.  It turns out that the SunPro C++ compiler does not properly
12357    # handle `-M -o', and we need to detect this.  Also, some Intel
12358    # versions had trouble with output in subdirs
12359    am__obj=sub/conftest.${OBJEXT-o}
12360    am__minus_obj="-o $am__obj"
12361    case $depmode in
12362    gcc)
12363      # This depmode causes a compiler race in universal mode.
12364      test "$am__universal" = false || continue
12365      ;;
12366    nosideeffect)
12367      # after this tag, mechanisms are not by side-effect, so they'll
12368      # only be used when explicitly requested
12369      if test "x$enable_dependency_tracking" = xyes; then
12370	continue
12371      else
12372	break
12373      fi
12374      ;;
12375    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12376      # This compiler won't grok `-c -o', but also, the minuso test has
12377      # not run yet.  These depmodes are late enough in the game, and
12378      # so weak that their functioning should not be impacted.
12379      am__obj=conftest.${OBJEXT-o}
12380      am__minus_obj=
12381      ;;
12382    none) break ;;
12383    esac
12384    if depmode=$depmode \
12385       source=sub/conftest.c object=$am__obj \
12386       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12387       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12388         >/dev/null 2>conftest.err &&
12389       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12390       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12391       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12392       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12393      # icc doesn't choke on unknown options, it will just issue warnings
12394      # or remarks (even with -Werror).  So we grep stderr for any message
12395      # that says an option was ignored or not supported.
12396      # When given -MP, icc 7.0 and 7.1 complain thusly:
12397      #   icc: Command line warning: ignoring option '-M'; no argument required
12398      # The diagnosis changed in icc 8.0:
12399      #   icc: Command line remark: option '-MP' not supported
12400      if (grep 'ignoring option' conftest.err ||
12401          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12402        am_cv_CXX_dependencies_compiler_type=$depmode
12403        break
12404      fi
12405    fi
12406  done
12407
12408  cd ..
12409  rm -rf conftest.dir
12410else
12411  am_cv_CXX_dependencies_compiler_type=none
12412fi
12413
12414fi
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12416$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12417CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12418
12419 if
12420  test "x$enable_dependency_tracking" != xno \
12421  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12422  am__fastdepCXX_TRUE=
12423  am__fastdepCXX_FALSE='#'
12424else
12425  am__fastdepCXX_TRUE='#'
12426  am__fastdepCXX_FALSE=
12427fi
12428
12429
12430
12431
12432func_stripname_cnf ()
12433{
12434  case ${2} in
12435  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12436  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12437  esac
12438} # func_stripname_cnf
12439
12440      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12441    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12442    (test "X$CXX" != "Xg++"))) ; then
12443  ac_ext=cpp
12444ac_cpp='$CXXCPP $CPPFLAGS'
12445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12449$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12450if test -z "$CXXCPP"; then
12451  if ${ac_cv_prog_CXXCPP+:} false; then :
12452  $as_echo_n "(cached) " >&6
12453else
12454      # Double quotes because CXXCPP needs to be expanded
12455    for CXXCPP in "$CXX -E" "/lib/cpp"
12456    do
12457      ac_preproc_ok=false
12458for ac_cxx_preproc_warn_flag in '' yes
12459do
12460  # Use a header file that comes with gcc, so configuring glibc
12461  # with a fresh cross-compiler works.
12462  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463  # <limits.h> exists even on freestanding compilers.
12464  # On the NeXT, cc -E runs the code through the compiler's parser,
12465  # not just through cpp. "Syntax error" is here to catch this case.
12466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h.  */
12468#ifdef __STDC__
12469# include <limits.h>
12470#else
12471# include <assert.h>
12472#endif
12473		     Syntax error
12474_ACEOF
12475if ac_fn_cxx_try_cpp "$LINENO"; then :
12476
12477else
12478  # Broken: fails on valid input.
12479continue
12480fi
12481rm -f conftest.err conftest.i conftest.$ac_ext
12482
12483  # OK, works on sane cases.  Now check whether nonexistent headers
12484  # can be detected and how.
12485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h.  */
12487#include <ac_nonexistent.h>
12488_ACEOF
12489if ac_fn_cxx_try_cpp "$LINENO"; then :
12490  # Broken: success on invalid input.
12491continue
12492else
12493  # Passes both tests.
12494ac_preproc_ok=:
12495break
12496fi
12497rm -f conftest.err conftest.i conftest.$ac_ext
12498
12499done
12500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501rm -f conftest.i conftest.err conftest.$ac_ext
12502if $ac_preproc_ok; then :
12503  break
12504fi
12505
12506    done
12507    ac_cv_prog_CXXCPP=$CXXCPP
12508
12509fi
12510  CXXCPP=$ac_cv_prog_CXXCPP
12511else
12512  ac_cv_prog_CXXCPP=$CXXCPP
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12515$as_echo "$CXXCPP" >&6; }
12516ac_preproc_ok=false
12517for ac_cxx_preproc_warn_flag in '' yes
12518do
12519  # Use a header file that comes with gcc, so configuring glibc
12520  # with a fresh cross-compiler works.
12521  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522  # <limits.h> exists even on freestanding compilers.
12523  # On the NeXT, cc -E runs the code through the compiler's parser,
12524  # not just through cpp. "Syntax error" is here to catch this case.
12525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h.  */
12527#ifdef __STDC__
12528# include <limits.h>
12529#else
12530# include <assert.h>
12531#endif
12532		     Syntax error
12533_ACEOF
12534if ac_fn_cxx_try_cpp "$LINENO"; then :
12535
12536else
12537  # Broken: fails on valid input.
12538continue
12539fi
12540rm -f conftest.err conftest.i conftest.$ac_ext
12541
12542  # OK, works on sane cases.  Now check whether nonexistent headers
12543  # can be detected and how.
12544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h.  */
12546#include <ac_nonexistent.h>
12547_ACEOF
12548if ac_fn_cxx_try_cpp "$LINENO"; then :
12549  # Broken: success on invalid input.
12550continue
12551else
12552  # Passes both tests.
12553ac_preproc_ok=:
12554break
12555fi
12556rm -f conftest.err conftest.i conftest.$ac_ext
12557
12558done
12559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12560rm -f conftest.i conftest.err conftest.$ac_ext
12561if $ac_preproc_ok; then :
12562
12563else
12564  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12566as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12567See \`config.log' for more details" "$LINENO" 5; }
12568fi
12569
12570ac_ext=c
12571ac_cpp='$CPP $CPPFLAGS'
12572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576else
12577  _lt_caught_CXX_error=yes
12578fi
12579
12580ac_ext=cpp
12581ac_cpp='$CXXCPP $CPPFLAGS'
12582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12585
12586archive_cmds_need_lc_CXX=no
12587allow_undefined_flag_CXX=
12588always_export_symbols_CXX=no
12589archive_expsym_cmds_CXX=
12590compiler_needs_object_CXX=no
12591export_dynamic_flag_spec_CXX=
12592hardcode_direct_CXX=no
12593hardcode_direct_absolute_CXX=no
12594hardcode_libdir_flag_spec_CXX=
12595hardcode_libdir_separator_CXX=
12596hardcode_minus_L_CXX=no
12597hardcode_shlibpath_var_CXX=unsupported
12598hardcode_automatic_CXX=no
12599inherit_rpath_CXX=no
12600module_cmds_CXX=
12601module_expsym_cmds_CXX=
12602link_all_deplibs_CXX=unknown
12603old_archive_cmds_CXX=$old_archive_cmds
12604reload_flag_CXX=$reload_flag
12605reload_cmds_CXX=$reload_cmds
12606no_undefined_flag_CXX=
12607whole_archive_flag_spec_CXX=
12608enable_shared_with_static_runtimes_CXX=no
12609
12610# Source file extension for C++ test sources.
12611ac_ext=cpp
12612
12613# Object file extension for compiled C++ test sources.
12614objext=o
12615objext_CXX=$objext
12616
12617# No sense in running all these tests if we already determined that
12618# the CXX compiler isn't working.  Some variables (like enable_shared)
12619# are currently assumed to apply to all compilers on this platform,
12620# and will be corrupted by setting them based on a non-working compiler.
12621if test "$_lt_caught_CXX_error" != yes; then
12622  # Code to be used in simple compile tests
12623  lt_simple_compile_test_code="int some_variable = 0;"
12624
12625  # Code to be used in simple link tests
12626  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12627
12628  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12629
12630
12631
12632
12633
12634
12635# If no C compiler was specified, use CC.
12636LTCC=${LTCC-"$CC"}
12637
12638# If no C compiler flags were specified, use CFLAGS.
12639LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12640
12641# Allow CC to be a program name with arguments.
12642compiler=$CC
12643
12644
12645  # save warnings/boilerplate of simple test code
12646  ac_outfile=conftest.$ac_objext
12647echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649_lt_compiler_boilerplate=`cat conftest.err`
12650$RM conftest*
12651
12652  ac_outfile=conftest.$ac_objext
12653echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655_lt_linker_boilerplate=`cat conftest.err`
12656$RM -r conftest*
12657
12658
12659  # Allow CC to be a program name with arguments.
12660  lt_save_CC=$CC
12661  lt_save_CFLAGS=$CFLAGS
12662  lt_save_LD=$LD
12663  lt_save_GCC=$GCC
12664  GCC=$GXX
12665  lt_save_with_gnu_ld=$with_gnu_ld
12666  lt_save_path_LD=$lt_cv_path_LD
12667  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12668    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12669  else
12670    $as_unset lt_cv_prog_gnu_ld
12671  fi
12672  if test -n "${lt_cv_path_LDCXX+set}"; then
12673    lt_cv_path_LD=$lt_cv_path_LDCXX
12674  else
12675    $as_unset lt_cv_path_LD
12676  fi
12677  test -z "${LDCXX+set}" || LD=$LDCXX
12678  CC=${CXX-"c++"}
12679  CFLAGS=$CXXFLAGS
12680  compiler=$CC
12681  compiler_CXX=$CC
12682  for cc_temp in $compiler""; do
12683  case $cc_temp in
12684    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12685    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12686    \-*) ;;
12687    *) break;;
12688  esac
12689done
12690cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12691
12692
12693  if test -n "$compiler"; then
12694    # We don't want -fno-exception when compiling C++ code, so set the
12695    # no_builtin_flag separately
12696    if test "$GXX" = yes; then
12697      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12698    else
12699      lt_prog_compiler_no_builtin_flag_CXX=
12700    fi
12701
12702    if test "$GXX" = yes; then
12703      # Set up default GNU C++ configuration
12704
12705
12706
12707# Check whether --with-gnu-ld was given.
12708if test "${with_gnu_ld+set}" = set; then :
12709  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12710else
12711  with_gnu_ld=no
12712fi
12713
12714ac_prog=ld
12715if test "$GCC" = yes; then
12716  # Check if gcc -print-prog-name=ld gives a path.
12717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12718$as_echo_n "checking for ld used by $CC... " >&6; }
12719  case $host in
12720  *-*-mingw*)
12721    # gcc leaves a trailing carriage return which upsets mingw
12722    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12723  *)
12724    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12725  esac
12726  case $ac_prog in
12727    # Accept absolute paths.
12728    [\\/]* | ?:[\\/]*)
12729      re_direlt='/[^/][^/]*/\.\./'
12730      # Canonicalize the pathname of ld
12731      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12732      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12733	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12734      done
12735      test -z "$LD" && LD="$ac_prog"
12736      ;;
12737  "")
12738    # If it fails, then pretend we aren't using GCC.
12739    ac_prog=ld
12740    ;;
12741  *)
12742    # If it is relative, then search for the first ld in PATH.
12743    with_gnu_ld=unknown
12744    ;;
12745  esac
12746elif test "$with_gnu_ld" = yes; then
12747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12748$as_echo_n "checking for GNU ld... " >&6; }
12749else
12750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12751$as_echo_n "checking for non-GNU ld... " >&6; }
12752fi
12753if ${lt_cv_path_LD+:} false; then :
12754  $as_echo_n "(cached) " >&6
12755else
12756  if test -z "$LD"; then
12757  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12758  for ac_dir in $PATH; do
12759    IFS="$lt_save_ifs"
12760    test -z "$ac_dir" && ac_dir=.
12761    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12762      lt_cv_path_LD="$ac_dir/$ac_prog"
12763      # Check to see if the program is GNU ld.  I'd rather use --version,
12764      # but apparently some variants of GNU ld only accept -v.
12765      # Break only if it was the GNU/non-GNU ld that we prefer.
12766      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12767      *GNU* | *'with BFD'*)
12768	test "$with_gnu_ld" != no && break
12769	;;
12770      *)
12771	test "$with_gnu_ld" != yes && break
12772	;;
12773      esac
12774    fi
12775  done
12776  IFS="$lt_save_ifs"
12777else
12778  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12779fi
12780fi
12781
12782LD="$lt_cv_path_LD"
12783if test -n "$LD"; then
12784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12785$as_echo "$LD" >&6; }
12786else
12787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788$as_echo "no" >&6; }
12789fi
12790test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12792$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12793if ${lt_cv_prog_gnu_ld+:} false; then :
12794  $as_echo_n "(cached) " >&6
12795else
12796  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12797case `$LD -v 2>&1 </dev/null` in
12798*GNU* | *'with BFD'*)
12799  lt_cv_prog_gnu_ld=yes
12800  ;;
12801*)
12802  lt_cv_prog_gnu_ld=no
12803  ;;
12804esac
12805fi
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12807$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12808with_gnu_ld=$lt_cv_prog_gnu_ld
12809
12810
12811
12812
12813
12814
12815
12816      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12817      # archiving commands below assume that GNU ld is being used.
12818      if test "$with_gnu_ld" = yes; then
12819        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820        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'
12821
12822        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12823        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824
12825        # If archive_cmds runs LD, not CC, wlarc should be empty
12826        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12827        #     investigate it a little bit more. (MM)
12828        wlarc='${wl}'
12829
12830        # ancient GNU ld didn't support --whole-archive et. al.
12831        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12832	  $GREP 'no-whole-archive' > /dev/null; then
12833          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12834        else
12835          whole_archive_flag_spec_CXX=
12836        fi
12837      else
12838        with_gnu_ld=no
12839        wlarc=
12840
12841        # A generic and very simple default shared library creation
12842        # command for GNU C++ for the case where it uses the native
12843        # linker, instead of GNU ld.  If possible, this setting should
12844        # overridden to take advantage of the native linker features on
12845        # the platform it is being used on.
12846        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12847      fi
12848
12849      # Commands to make compiler produce verbose output that lists
12850      # what "hidden" libraries, object files and flags are used when
12851      # linking a shared library.
12852      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12853
12854    else
12855      GXX=no
12856      with_gnu_ld=no
12857      wlarc=
12858    fi
12859
12860    # PORTME: fill in a description of your system's C++ link characteristics
12861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12862$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12863    ld_shlibs_CXX=yes
12864    case $host_os in
12865      aix3*)
12866        # FIXME: insert proper C++ library support
12867        ld_shlibs_CXX=no
12868        ;;
12869      aix[4-9]*)
12870        if test "$host_cpu" = ia64; then
12871          # On IA64, the linker does run time linking by default, so we don't
12872          # have to do anything special.
12873          aix_use_runtimelinking=no
12874          exp_sym_flag='-Bexport'
12875          no_entry_flag=""
12876        else
12877          aix_use_runtimelinking=no
12878
12879          # Test if we are trying to use run time linking or normal
12880          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12881          # need to do runtime linking.
12882          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12883	    for ld_flag in $LDFLAGS; do
12884	      case $ld_flag in
12885	      *-brtl*)
12886	        aix_use_runtimelinking=yes
12887	        break
12888	        ;;
12889	      esac
12890	    done
12891	    ;;
12892          esac
12893
12894          exp_sym_flag='-bexport'
12895          no_entry_flag='-bnoentry'
12896        fi
12897
12898        # When large executables or shared objects are built, AIX ld can
12899        # have problems creating the table of contents.  If linking a library
12900        # or program results in "error TOC overflow" add -mminimal-toc to
12901        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12902        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12903
12904        archive_cmds_CXX=''
12905        hardcode_direct_CXX=yes
12906        hardcode_direct_absolute_CXX=yes
12907        hardcode_libdir_separator_CXX=':'
12908        link_all_deplibs_CXX=yes
12909        file_list_spec_CXX='${wl}-f,'
12910
12911        if test "$GXX" = yes; then
12912          case $host_os in aix4.[012]|aix4.[012].*)
12913          # We only want to do this on AIX 4.2 and lower, the check
12914          # below for broken collect2 doesn't work under 4.3+
12915	  collect2name=`${CC} -print-prog-name=collect2`
12916	  if test -f "$collect2name" &&
12917	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12918	  then
12919	    # We have reworked collect2
12920	    :
12921	  else
12922	    # We have old collect2
12923	    hardcode_direct_CXX=unsupported
12924	    # It fails to find uninstalled libraries when the uninstalled
12925	    # path is not listed in the libpath.  Setting hardcode_minus_L
12926	    # to unsupported forces relinking
12927	    hardcode_minus_L_CXX=yes
12928	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12929	    hardcode_libdir_separator_CXX=
12930	  fi
12931          esac
12932          shared_flag='-shared'
12933	  if test "$aix_use_runtimelinking" = yes; then
12934	    shared_flag="$shared_flag "'${wl}-G'
12935	  fi
12936        else
12937          # not using gcc
12938          if test "$host_cpu" = ia64; then
12939	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12940	  # chokes on -Wl,-G. The following line is correct:
12941	  shared_flag='-G'
12942          else
12943	    if test "$aix_use_runtimelinking" = yes; then
12944	      shared_flag='${wl}-G'
12945	    else
12946	      shared_flag='${wl}-bM:SRE'
12947	    fi
12948          fi
12949        fi
12950
12951        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12952        # It seems that -bexpall does not export symbols beginning with
12953        # underscore (_), so it is better to generate a list of symbols to
12954	# export.
12955        always_export_symbols_CXX=yes
12956        if test "$aix_use_runtimelinking" = yes; then
12957          # Warning - without using the other runtime loading flags (-brtl),
12958          # -berok will link without error, but may produce a broken library.
12959          allow_undefined_flag_CXX='-berok'
12960          # Determine the default libpath from the value encoded in an empty
12961          # executable.
12962          if test "${lt_cv_aix_libpath+set}" = set; then
12963  aix_libpath=$lt_cv_aix_libpath
12964else
12965  if ${lt_cv_aix_libpath__CXX+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969/* end confdefs.h.  */
12970
12971int
12972main ()
12973{
12974
12975  ;
12976  return 0;
12977}
12978_ACEOF
12979if ac_fn_cxx_try_link "$LINENO"; then :
12980
12981  lt_aix_libpath_sed='
12982      /Import File Strings/,/^$/ {
12983	  /^0/ {
12984	      s/^0  *\([^ ]*\) *$/\1/
12985	      p
12986	  }
12987      }'
12988  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989  # Check for a 64-bit object if we didn't find anything.
12990  if test -z "$lt_cv_aix_libpath__CXX"; then
12991    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12992  fi
12993fi
12994rm -f core conftest.err conftest.$ac_objext \
12995    conftest$ac_exeext conftest.$ac_ext
12996  if test -z "$lt_cv_aix_libpath__CXX"; then
12997    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12998  fi
12999
13000fi
13001
13002  aix_libpath=$lt_cv_aix_libpath__CXX
13003fi
13004
13005          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13006
13007          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13008        else
13009          if test "$host_cpu" = ia64; then
13010	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13011	    allow_undefined_flag_CXX="-z nodefs"
13012	    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"
13013          else
13014	    # Determine the default libpath from the value encoded in an
13015	    # empty executable.
13016	    if test "${lt_cv_aix_libpath+set}" = set; then
13017  aix_libpath=$lt_cv_aix_libpath
13018else
13019  if ${lt_cv_aix_libpath__CXX+:} false; then :
13020  $as_echo_n "(cached) " >&6
13021else
13022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h.  */
13024
13025int
13026main ()
13027{
13028
13029  ;
13030  return 0;
13031}
13032_ACEOF
13033if ac_fn_cxx_try_link "$LINENO"; then :
13034
13035  lt_aix_libpath_sed='
13036      /Import File Strings/,/^$/ {
13037	  /^0/ {
13038	      s/^0  *\([^ ]*\) *$/\1/
13039	      p
13040	  }
13041      }'
13042  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043  # Check for a 64-bit object if we didn't find anything.
13044  if test -z "$lt_cv_aix_libpath__CXX"; then
13045    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13046  fi
13047fi
13048rm -f core conftest.err conftest.$ac_objext \
13049    conftest$ac_exeext conftest.$ac_ext
13050  if test -z "$lt_cv_aix_libpath__CXX"; then
13051    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13052  fi
13053
13054fi
13055
13056  aix_libpath=$lt_cv_aix_libpath__CXX
13057fi
13058
13059	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13060	    # Warning - without using the other run time loading flags,
13061	    # -berok will link without error, but may produce a broken library.
13062	    no_undefined_flag_CXX=' ${wl}-bernotok'
13063	    allow_undefined_flag_CXX=' ${wl}-berok'
13064	    if test "$with_gnu_ld" = yes; then
13065	      # We only use this code for GNU lds that support --whole-archive.
13066	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13067	    else
13068	      # Exported symbols can be pulled into shared objects from archives
13069	      whole_archive_flag_spec_CXX='$convenience'
13070	    fi
13071	    archive_cmds_need_lc_CXX=yes
13072	    # This is similar to how AIX traditionally builds its shared
13073	    # libraries.
13074	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13075          fi
13076        fi
13077        ;;
13078
13079      beos*)
13080	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13081	  allow_undefined_flag_CXX=unsupported
13082	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13083	  # support --undefined.  This deserves some investigation.  FIXME
13084	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085	else
13086	  ld_shlibs_CXX=no
13087	fi
13088	;;
13089
13090      chorus*)
13091        case $cc_basename in
13092          *)
13093	  # FIXME: insert proper C++ library support
13094	  ld_shlibs_CXX=no
13095	  ;;
13096        esac
13097        ;;
13098
13099      cygwin* | mingw* | pw32* | cegcc*)
13100	case $GXX,$cc_basename in
13101	,cl* | no,cl*)
13102	  # Native MSVC
13103	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13104	  # no search path for DLLs.
13105	  hardcode_libdir_flag_spec_CXX=' '
13106	  allow_undefined_flag_CXX=unsupported
13107	  always_export_symbols_CXX=yes
13108	  file_list_spec_CXX='@'
13109	  # Tell ltmain to make .lib files, not .a files.
13110	  libext=lib
13111	  # Tell ltmain to make .dll files, not .so files.
13112	  shrext_cmds=".dll"
13113	  # FIXME: Setting linknames here is a bad hack.
13114	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13115	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13116	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13117	    else
13118	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13119	    fi~
13120	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13121	    linknames='
13122	  # The linker will not automatically build a static lib if we build a DLL.
13123	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13124	  enable_shared_with_static_runtimes_CXX=yes
13125	  # Don't use ranlib
13126	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13127	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13128	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13129	    case $lt_outputfile in
13130	      *.exe|*.EXE) ;;
13131	      *)
13132		lt_outputfile="$lt_outputfile.exe"
13133		lt_tool_outputfile="$lt_tool_outputfile.exe"
13134		;;
13135	    esac~
13136	    func_to_tool_file "$lt_outputfile"~
13137	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13138	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13139	      $RM "$lt_outputfile.manifest";
13140	    fi'
13141	  ;;
13142	*)
13143	  # g++
13144	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13145	  # as there is no search path for DLLs.
13146	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13147	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13148	  allow_undefined_flag_CXX=unsupported
13149	  always_export_symbols_CXX=no
13150	  enable_shared_with_static_runtimes_CXX=yes
13151
13152	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13153	    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'
13154	    # If the export-symbols file already is a .def file (1st line
13155	    # is EXPORTS), use it as is; otherwise, prepend...
13156	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13157	      cp $export_symbols $output_objdir/$soname.def;
13158	    else
13159	      echo EXPORTS > $output_objdir/$soname.def;
13160	      cat $export_symbols >> $output_objdir/$soname.def;
13161	    fi~
13162	    $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'
13163	  else
13164	    ld_shlibs_CXX=no
13165	  fi
13166	  ;;
13167	esac
13168	;;
13169      darwin* | rhapsody*)
13170
13171
13172  archive_cmds_need_lc_CXX=no
13173  hardcode_direct_CXX=no
13174  hardcode_automatic_CXX=yes
13175  hardcode_shlibpath_var_CXX=unsupported
13176  if test "$lt_cv_ld_force_load" = "yes"; then
13177    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\"`'
13178
13179  else
13180    whole_archive_flag_spec_CXX=''
13181  fi
13182  link_all_deplibs_CXX=yes
13183  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13184  case $cc_basename in
13185     ifort*) _lt_dar_can_shared=yes ;;
13186     *) _lt_dar_can_shared=$GCC ;;
13187  esac
13188  if test "$_lt_dar_can_shared" = "yes"; then
13189    output_verbose_link_cmd=func_echo_all
13190    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}"
13191    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13192    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}"
13193    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}"
13194       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13195      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}"
13196      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}"
13197    fi
13198
13199  else
13200  ld_shlibs_CXX=no
13201  fi
13202
13203	;;
13204
13205      dgux*)
13206        case $cc_basename in
13207          ec++*)
13208	    # FIXME: insert proper C++ library support
13209	    ld_shlibs_CXX=no
13210	    ;;
13211          ghcx*)
13212	    # Green Hills C++ Compiler
13213	    # FIXME: insert proper C++ library support
13214	    ld_shlibs_CXX=no
13215	    ;;
13216          *)
13217	    # FIXME: insert proper C++ library support
13218	    ld_shlibs_CXX=no
13219	    ;;
13220        esac
13221        ;;
13222
13223      freebsd2.*)
13224        # C++ shared libraries reported to be fairly broken before
13225	# switch to ELF
13226        ld_shlibs_CXX=no
13227        ;;
13228
13229      freebsd-elf*)
13230        archive_cmds_need_lc_CXX=no
13231        ;;
13232
13233      freebsd* | dragonfly*)
13234        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13235        # conventions
13236        ld_shlibs_CXX=yes
13237        ;;
13238
13239      gnu*)
13240        ;;
13241
13242      haiku*)
13243        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13244        link_all_deplibs_CXX=yes
13245        ;;
13246
13247      hpux9*)
13248        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13249        hardcode_libdir_separator_CXX=:
13250        export_dynamic_flag_spec_CXX='${wl}-E'
13251        hardcode_direct_CXX=yes
13252        hardcode_minus_L_CXX=yes # Not in the search PATH,
13253				             # but as the default
13254				             # location of the library.
13255
13256        case $cc_basename in
13257          CC*)
13258            # FIXME: insert proper C++ library support
13259            ld_shlibs_CXX=no
13260            ;;
13261          aCC*)
13262            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13263            # Commands to make compiler produce verbose output that lists
13264            # what "hidden" libraries, object files and flags are used when
13265            # linking a shared library.
13266            #
13267            # There doesn't appear to be a way to prevent this compiler from
13268            # explicitly linking system object files so we need to strip them
13269            # from the output so that they don't get included in the library
13270            # dependencies.
13271            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"'
13272            ;;
13273          *)
13274            if test "$GXX" = yes; then
13275              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13276            else
13277              # FIXME: insert proper C++ library support
13278              ld_shlibs_CXX=no
13279            fi
13280            ;;
13281        esac
13282        ;;
13283
13284      hpux10*|hpux11*)
13285        if test $with_gnu_ld = no; then
13286	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13287	  hardcode_libdir_separator_CXX=:
13288
13289          case $host_cpu in
13290            hppa*64*|ia64*)
13291              ;;
13292            *)
13293	      export_dynamic_flag_spec_CXX='${wl}-E'
13294              ;;
13295          esac
13296        fi
13297        case $host_cpu in
13298          hppa*64*|ia64*)
13299            hardcode_direct_CXX=no
13300            hardcode_shlibpath_var_CXX=no
13301            ;;
13302          *)
13303            hardcode_direct_CXX=yes
13304            hardcode_direct_absolute_CXX=yes
13305            hardcode_minus_L_CXX=yes # Not in the search PATH,
13306					         # but as the default
13307					         # location of the library.
13308            ;;
13309        esac
13310
13311        case $cc_basename in
13312          CC*)
13313	    # FIXME: insert proper C++ library support
13314	    ld_shlibs_CXX=no
13315	    ;;
13316          aCC*)
13317	    case $host_cpu in
13318	      hppa*64*)
13319	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320	        ;;
13321	      ia64*)
13322	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323	        ;;
13324	      *)
13325	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13326	        ;;
13327	    esac
13328	    # Commands to make compiler produce verbose output that lists
13329	    # what "hidden" libraries, object files and flags are used when
13330	    # linking a shared library.
13331	    #
13332	    # There doesn't appear to be a way to prevent this compiler from
13333	    # explicitly linking system object files so we need to strip them
13334	    # from the output so that they don't get included in the library
13335	    # dependencies.
13336	    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"'
13337	    ;;
13338          *)
13339	    if test "$GXX" = yes; then
13340	      if test $with_gnu_ld = no; then
13341	        case $host_cpu in
13342	          hppa*64*)
13343	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344	            ;;
13345	          ia64*)
13346	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13347	            ;;
13348	          *)
13349	            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'
13350	            ;;
13351	        esac
13352	      fi
13353	    else
13354	      # FIXME: insert proper C++ library support
13355	      ld_shlibs_CXX=no
13356	    fi
13357	    ;;
13358        esac
13359        ;;
13360
13361      interix[3-9]*)
13362	hardcode_direct_CXX=no
13363	hardcode_shlibpath_var_CXX=no
13364	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13365	export_dynamic_flag_spec_CXX='${wl}-E'
13366	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13367	# Instead, shared libraries are loaded at an image base (0x10000000 by
13368	# default) and relocated if they conflict, which is a slow very memory
13369	# consuming and fragmenting process.  To avoid this, we pick a random,
13370	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13371	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13372	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'
13373	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'
13374	;;
13375      irix5* | irix6*)
13376        case $cc_basename in
13377          CC*)
13378	    # SGI C++
13379	    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'
13380
13381	    # Archives containing C++ object files must be created using
13382	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13383	    # necessary to make sure instantiated templates are included
13384	    # in the archive.
13385	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13386	    ;;
13387          *)
13388	    if test "$GXX" = yes; then
13389	      if test "$with_gnu_ld" = no; then
13390	        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'
13391	      else
13392	        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'
13393	      fi
13394	    fi
13395	    link_all_deplibs_CXX=yes
13396	    ;;
13397        esac
13398        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13399        hardcode_libdir_separator_CXX=:
13400        inherit_rpath_CXX=yes
13401        ;;
13402
13403      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13404        case $cc_basename in
13405          KCC*)
13406	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13407
13408	    # KCC will only create a shared library if the output file
13409	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13410	    # to its proper name (with version) after linking.
13411	    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'
13412	    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'
13413	    # Commands to make compiler produce verbose output that lists
13414	    # what "hidden" libraries, object files and flags are used when
13415	    # linking a shared library.
13416	    #
13417	    # There doesn't appear to be a way to prevent this compiler from
13418	    # explicitly linking system object files so we need to strip them
13419	    # from the output so that they don't get included in the library
13420	    # dependencies.
13421	    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"'
13422
13423	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13424	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13425
13426	    # Archives containing C++ object files must be created using
13427	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13428	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13429	    ;;
13430	  icpc* | ecpc* )
13431	    # Intel C++
13432	    with_gnu_ld=yes
13433	    # version 8.0 and above of icpc choke on multiply defined symbols
13434	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13435	    # earlier do not add the objects themselves.
13436	    case `$CC -V 2>&1` in
13437	      *"Version 7."*)
13438	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439		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'
13440		;;
13441	      *)  # Version 8.0 or newer
13442	        tmp_idyn=
13443	        case $host_cpu in
13444		  ia64*) tmp_idyn=' -i_dynamic';;
13445		esac
13446	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13447		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'
13448		;;
13449	    esac
13450	    archive_cmds_need_lc_CXX=no
13451	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13452	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13453	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13454	    ;;
13455          pgCC* | pgcpp*)
13456            # Portland Group C++ compiler
13457	    case `$CC -V` in
13458	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13459	      prelink_cmds_CXX='tpldir=Template.dir~
13460		rm -rf $tpldir~
13461		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13462		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13463	      old_archive_cmds_CXX='tpldir=Template.dir~
13464		rm -rf $tpldir~
13465		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13466		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13467		$RANLIB $oldlib'
13468	      archive_cmds_CXX='tpldir=Template.dir~
13469		rm -rf $tpldir~
13470		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13471		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13472	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13473		rm -rf $tpldir~
13474		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13475		$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'
13476	      ;;
13477	    *) # Version 6 and above use weak symbols
13478	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13479	      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'
13480	      ;;
13481	    esac
13482
13483	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13484	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13485	    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'
13486            ;;
13487	  cxx*)
13488	    # Compaq C++
13489	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490	    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'
13491
13492	    runpath_var=LD_RUN_PATH
13493	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13494	    hardcode_libdir_separator_CXX=:
13495
13496	    # Commands to make compiler produce verbose output that lists
13497	    # what "hidden" libraries, object files and flags are used when
13498	    # linking a shared library.
13499	    #
13500	    # There doesn't appear to be a way to prevent this compiler from
13501	    # explicitly linking system object files so we need to strip them
13502	    # from the output so that they don't get included in the library
13503	    # dependencies.
13504	    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'
13505	    ;;
13506	  xl* | mpixl* | bgxl*)
13507	    # IBM XL 8.0 on PPC, with GNU ld
13508	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13509	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13510	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511	    if test "x$supports_anon_versioning" = xyes; then
13512	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13513		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13514		echo "local: *; };" >> $output_objdir/$libname.ver~
13515		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13516	    fi
13517	    ;;
13518	  *)
13519	    case `$CC -V 2>&1 | sed 5q` in
13520	    *Sun\ C*)
13521	      # Sun C++ 5.9
13522	      no_undefined_flag_CXX=' -zdefs'
13523	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13524	      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'
13525	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13526	      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'
13527	      compiler_needs_object_CXX=yes
13528
13529	      # Not sure whether something based on
13530	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13531	      # would be better.
13532	      output_verbose_link_cmd='func_echo_all'
13533
13534	      # Archives containing C++ object files must be created using
13535	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13536	      # necessary to make sure instantiated templates are included
13537	      # in the archive.
13538	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13539	      ;;
13540	    esac
13541	    ;;
13542	esac
13543	;;
13544
13545      lynxos*)
13546        # FIXME: insert proper C++ library support
13547	ld_shlibs_CXX=no
13548	;;
13549
13550      m88k*)
13551        # FIXME: insert proper C++ library support
13552        ld_shlibs_CXX=no
13553	;;
13554
13555      mvs*)
13556        case $cc_basename in
13557          cxx*)
13558	    # FIXME: insert proper C++ library support
13559	    ld_shlibs_CXX=no
13560	    ;;
13561	  *)
13562	    # FIXME: insert proper C++ library support
13563	    ld_shlibs_CXX=no
13564	    ;;
13565	esac
13566	;;
13567
13568      netbsd*)
13569        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13570	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13571	  wlarc=
13572	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13573	  hardcode_direct_CXX=yes
13574	  hardcode_shlibpath_var_CXX=no
13575	fi
13576	# Workaround some broken pre-1.5 toolchains
13577	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13578	;;
13579
13580      *nto* | *qnx*)
13581        ld_shlibs_CXX=yes
13582	;;
13583
13584      openbsd2*)
13585        # C++ shared libraries are fairly broken
13586	ld_shlibs_CXX=no
13587	;;
13588
13589      openbsd*)
13590	if test -f /usr/libexec/ld.so; then
13591	  hardcode_direct_CXX=yes
13592	  hardcode_shlibpath_var_CXX=no
13593	  hardcode_direct_absolute_CXX=yes
13594	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13595	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13596	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13597	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13598	    export_dynamic_flag_spec_CXX='${wl}-E'
13599	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13600	  fi
13601	  output_verbose_link_cmd=func_echo_all
13602	else
13603	  ld_shlibs_CXX=no
13604	fi
13605	;;
13606
13607      osf3* | osf4* | osf5*)
13608        case $cc_basename in
13609          KCC*)
13610	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13611
13612	    # KCC will only create a shared library if the output file
13613	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13614	    # to its proper name (with version) after linking.
13615	    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'
13616
13617	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13618	    hardcode_libdir_separator_CXX=:
13619
13620	    # Archives containing C++ object files must be created using
13621	    # the KAI C++ compiler.
13622	    case $host in
13623	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13624	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13625	    esac
13626	    ;;
13627          RCC*)
13628	    # Rational C++ 2.4.1
13629	    # FIXME: insert proper C++ library support
13630	    ld_shlibs_CXX=no
13631	    ;;
13632          cxx*)
13633	    case $host in
13634	      osf3*)
13635	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13636	        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'
13637	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13638		;;
13639	      *)
13640	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13641	        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'
13642	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13643	          echo "-hidden">> $lib.exp~
13644	          $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~
13645	          $RM $lib.exp'
13646	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13647		;;
13648	    esac
13649
13650	    hardcode_libdir_separator_CXX=:
13651
13652	    # Commands to make compiler produce verbose output that lists
13653	    # what "hidden" libraries, object files and flags are used when
13654	    # linking a shared library.
13655	    #
13656	    # There doesn't appear to be a way to prevent this compiler from
13657	    # explicitly linking system object files so we need to strip them
13658	    # from the output so that they don't get included in the library
13659	    # dependencies.
13660	    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"'
13661	    ;;
13662	  *)
13663	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13664	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13665	      case $host in
13666	        osf3*)
13667	          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'
13668		  ;;
13669	        *)
13670	          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'
13671		  ;;
13672	      esac
13673
13674	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13675	      hardcode_libdir_separator_CXX=:
13676
13677	      # Commands to make compiler produce verbose output that lists
13678	      # what "hidden" libraries, object files and flags are used when
13679	      # linking a shared library.
13680	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13681
13682	    else
13683	      # FIXME: insert proper C++ library support
13684	      ld_shlibs_CXX=no
13685	    fi
13686	    ;;
13687        esac
13688        ;;
13689
13690      psos*)
13691        # FIXME: insert proper C++ library support
13692        ld_shlibs_CXX=no
13693        ;;
13694
13695      sunos4*)
13696        case $cc_basename in
13697          CC*)
13698	    # Sun C++ 4.x
13699	    # FIXME: insert proper C++ library support
13700	    ld_shlibs_CXX=no
13701	    ;;
13702          lcc*)
13703	    # Lucid
13704	    # FIXME: insert proper C++ library support
13705	    ld_shlibs_CXX=no
13706	    ;;
13707          *)
13708	    # FIXME: insert proper C++ library support
13709	    ld_shlibs_CXX=no
13710	    ;;
13711        esac
13712        ;;
13713
13714      solaris*)
13715        case $cc_basename in
13716          CC* | sunCC*)
13717	    # Sun C++ 4.2, 5.x and Centerline C++
13718            archive_cmds_need_lc_CXX=yes
13719	    no_undefined_flag_CXX=' -zdefs'
13720	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13722	      $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'
13723
13724	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13725	    hardcode_shlibpath_var_CXX=no
13726	    case $host_os in
13727	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13728	      *)
13729		# The compiler driver will combine and reorder linker options,
13730		# but understands `-z linker_flag'.
13731	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13732		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13733	        ;;
13734	    esac
13735	    link_all_deplibs_CXX=yes
13736
13737	    output_verbose_link_cmd='func_echo_all'
13738
13739	    # Archives containing C++ object files must be created using
13740	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13741	    # necessary to make sure instantiated templates are included
13742	    # in the archive.
13743	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13744	    ;;
13745          gcx*)
13746	    # Green Hills C++ Compiler
13747	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13748
13749	    # The C++ compiler must be used to create the archive.
13750	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13751	    ;;
13752          *)
13753	    # GNU C++ compiler with Solaris linker
13754	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13755	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13756	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13757	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13758	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13759		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13760
13761	        # Commands to make compiler produce verbose output that lists
13762	        # what "hidden" libraries, object files and flags are used when
13763	        # linking a shared library.
13764	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13765	      else
13766	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13767	        # platform.
13768	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13769	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13770		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13771
13772	        # Commands to make compiler produce verbose output that lists
13773	        # what "hidden" libraries, object files and flags are used when
13774	        # linking a shared library.
13775	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13776	      fi
13777
13778	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13779	      case $host_os in
13780		solaris2.[0-5] | solaris2.[0-5].*) ;;
13781		*)
13782		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13783		  ;;
13784	      esac
13785	    fi
13786	    ;;
13787        esac
13788        ;;
13789
13790    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13791      no_undefined_flag_CXX='${wl}-z,text'
13792      archive_cmds_need_lc_CXX=no
13793      hardcode_shlibpath_var_CXX=no
13794      runpath_var='LD_RUN_PATH'
13795
13796      case $cc_basename in
13797        CC*)
13798	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800	  ;;
13801	*)
13802	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804	  ;;
13805      esac
13806      ;;
13807
13808      sysv5* | sco3.2v5* | sco5v6*)
13809	# Note: We can NOT use -z defs as we might desire, because we do not
13810	# link with -lc, and that would cause any symbols used from libc to
13811	# always be unresolved, which means just about no library would
13812	# ever link correctly.  If we're not using GNU ld we use -z text
13813	# though, which does catch some bad symbols but isn't as heavy-handed
13814	# as -z defs.
13815	no_undefined_flag_CXX='${wl}-z,text'
13816	allow_undefined_flag_CXX='${wl}-z,nodefs'
13817	archive_cmds_need_lc_CXX=no
13818	hardcode_shlibpath_var_CXX=no
13819	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13820	hardcode_libdir_separator_CXX=':'
13821	link_all_deplibs_CXX=yes
13822	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13823	runpath_var='LD_RUN_PATH'
13824
13825	case $cc_basename in
13826          CC*)
13827	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13830	      '"$old_archive_cmds_CXX"
13831	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13832	      '"$reload_cmds_CXX"
13833	    ;;
13834	  *)
13835	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837	    ;;
13838	esac
13839      ;;
13840
13841      tandem*)
13842        case $cc_basename in
13843          NCC*)
13844	    # NonStop-UX NCC 3.20
13845	    # FIXME: insert proper C++ library support
13846	    ld_shlibs_CXX=no
13847	    ;;
13848          *)
13849	    # FIXME: insert proper C++ library support
13850	    ld_shlibs_CXX=no
13851	    ;;
13852        esac
13853        ;;
13854
13855      vxworks*)
13856        # FIXME: insert proper C++ library support
13857        ld_shlibs_CXX=no
13858        ;;
13859
13860      *)
13861        # FIXME: insert proper C++ library support
13862        ld_shlibs_CXX=no
13863        ;;
13864    esac
13865
13866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13867$as_echo "$ld_shlibs_CXX" >&6; }
13868    test "$ld_shlibs_CXX" = no && can_build_shared=no
13869
13870    GCC_CXX="$GXX"
13871    LD_CXX="$LD"
13872
13873    ## CAVEAT EMPTOR:
13874    ## There is no encapsulation within the following macros, do not change
13875    ## the running order or otherwise move them around unless you know exactly
13876    ## what you are doing...
13877    # Dependencies to place before and after the object being linked:
13878predep_objects_CXX=
13879postdep_objects_CXX=
13880predeps_CXX=
13881postdeps_CXX=
13882compiler_lib_search_path_CXX=
13883
13884cat > conftest.$ac_ext <<_LT_EOF
13885class Foo
13886{
13887public:
13888  Foo (void) { a = 0; }
13889private:
13890  int a;
13891};
13892_LT_EOF
13893
13894
13895_lt_libdeps_save_CFLAGS=$CFLAGS
13896case "$CC $CFLAGS " in #(
13897*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13898*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13899*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13900esac
13901
13902if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13903  (eval $ac_compile) 2>&5
13904  ac_status=$?
13905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906  test $ac_status = 0; }; then
13907  # Parse the compiler output and extract the necessary
13908  # objects, libraries and library flags.
13909
13910  # Sentinel used to keep track of whether or not we are before
13911  # the conftest object file.
13912  pre_test_object_deps_done=no
13913
13914  for p in `eval "$output_verbose_link_cmd"`; do
13915    case ${prev}${p} in
13916
13917    -L* | -R* | -l*)
13918       # Some compilers place space between "-{L,R}" and the path.
13919       # Remove the space.
13920       if test $p = "-L" ||
13921          test $p = "-R"; then
13922	 prev=$p
13923	 continue
13924       fi
13925
13926       # Expand the sysroot to ease extracting the directories later.
13927       if test -z "$prev"; then
13928         case $p in
13929         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13930         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13931         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13932         esac
13933       fi
13934       case $p in
13935       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13936       esac
13937       if test "$pre_test_object_deps_done" = no; then
13938	 case ${prev} in
13939	 -L | -R)
13940	   # Internal compiler library paths should come after those
13941	   # provided the user.  The postdeps already come after the
13942	   # user supplied libs so there is no need to process them.
13943	   if test -z "$compiler_lib_search_path_CXX"; then
13944	     compiler_lib_search_path_CXX="${prev}${p}"
13945	   else
13946	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13947	   fi
13948	   ;;
13949	 # The "-l" case would never come before the object being
13950	 # linked, so don't bother handling this case.
13951	 esac
13952       else
13953	 if test -z "$postdeps_CXX"; then
13954	   postdeps_CXX="${prev}${p}"
13955	 else
13956	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13957	 fi
13958       fi
13959       prev=
13960       ;;
13961
13962    *.lto.$objext) ;; # Ignore GCC LTO objects
13963    *.$objext)
13964       # This assumes that the test object file only shows up
13965       # once in the compiler output.
13966       if test "$p" = "conftest.$objext"; then
13967	 pre_test_object_deps_done=yes
13968	 continue
13969       fi
13970
13971       if test "$pre_test_object_deps_done" = no; then
13972	 if test -z "$predep_objects_CXX"; then
13973	   predep_objects_CXX="$p"
13974	 else
13975	   predep_objects_CXX="$predep_objects_CXX $p"
13976	 fi
13977       else
13978	 if test -z "$postdep_objects_CXX"; then
13979	   postdep_objects_CXX="$p"
13980	 else
13981	   postdep_objects_CXX="$postdep_objects_CXX $p"
13982	 fi
13983       fi
13984       ;;
13985
13986    *) ;; # Ignore the rest.
13987
13988    esac
13989  done
13990
13991  # Clean up.
13992  rm -f a.out a.exe
13993else
13994  echo "libtool.m4: error: problem compiling CXX test program"
13995fi
13996
13997$RM -f confest.$objext
13998CFLAGS=$_lt_libdeps_save_CFLAGS
13999
14000# PORTME: override above test on systems where it is broken
14001case $host_os in
14002interix[3-9]*)
14003  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14004  # hack all around it, let's just trust "g++" to DTRT.
14005  predep_objects_CXX=
14006  postdep_objects_CXX=
14007  postdeps_CXX=
14008  ;;
14009
14010linux*)
14011  case `$CC -V 2>&1 | sed 5q` in
14012  *Sun\ C*)
14013    # Sun C++ 5.9
14014
14015    # The more standards-conforming stlport4 library is
14016    # incompatible with the Cstd library. Avoid specifying
14017    # it if it's in CXXFLAGS. Ignore libCrun as
14018    # -library=stlport4 depends on it.
14019    case " $CXX $CXXFLAGS " in
14020    *" -library=stlport4 "*)
14021      solaris_use_stlport4=yes
14022      ;;
14023    esac
14024
14025    if test "$solaris_use_stlport4" != yes; then
14026      postdeps_CXX='-library=Cstd -library=Crun'
14027    fi
14028    ;;
14029  esac
14030  ;;
14031
14032solaris*)
14033  case $cc_basename in
14034  CC* | sunCC*)
14035    # The more standards-conforming stlport4 library is
14036    # incompatible with the Cstd library. Avoid specifying
14037    # it if it's in CXXFLAGS. Ignore libCrun as
14038    # -library=stlport4 depends on it.
14039    case " $CXX $CXXFLAGS " in
14040    *" -library=stlport4 "*)
14041      solaris_use_stlport4=yes
14042      ;;
14043    esac
14044
14045    # Adding this requires a known-good setup of shared libraries for
14046    # Sun compiler versions before 5.6, else PIC objects from an old
14047    # archive will be linked into the output, leading to subtle bugs.
14048    if test "$solaris_use_stlport4" != yes; then
14049      postdeps_CXX='-library=Cstd -library=Crun'
14050    fi
14051    ;;
14052  esac
14053  ;;
14054esac
14055
14056
14057case " $postdeps_CXX " in
14058*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14059esac
14060 compiler_lib_search_dirs_CXX=
14061if test -n "${compiler_lib_search_path_CXX}"; then
14062 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14063fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095    lt_prog_compiler_wl_CXX=
14096lt_prog_compiler_pic_CXX=
14097lt_prog_compiler_static_CXX=
14098
14099
14100  # C++ specific cases for pic, static, wl, etc.
14101  if test "$GXX" = yes; then
14102    lt_prog_compiler_wl_CXX='-Wl,'
14103    lt_prog_compiler_static_CXX='-static'
14104
14105    case $host_os in
14106    aix*)
14107      # All AIX code is PIC.
14108      if test "$host_cpu" = ia64; then
14109	# AIX 5 now supports IA64 processor
14110	lt_prog_compiler_static_CXX='-Bstatic'
14111      fi
14112      ;;
14113
14114    amigaos*)
14115      case $host_cpu in
14116      powerpc)
14117            # see comment about AmigaOS4 .so support
14118            lt_prog_compiler_pic_CXX='-fPIC'
14119        ;;
14120      m68k)
14121            # FIXME: we need at least 68020 code to build shared libraries, but
14122            # adding the `-m68020' flag to GCC prevents building anything better,
14123            # like `-m68040'.
14124            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14125        ;;
14126      esac
14127      ;;
14128
14129    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14130      # PIC is the default for these OSes.
14131      ;;
14132    mingw* | cygwin* | os2* | pw32* | cegcc*)
14133      # This hack is so that the source file can tell whether it is being
14134      # built for inclusion in a dll (and should export symbols for example).
14135      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14136      # (--disable-auto-import) libraries
14137      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14138      ;;
14139    darwin* | rhapsody*)
14140      # PIC is the default on this platform
14141      # Common symbols not allowed in MH_DYLIB files
14142      lt_prog_compiler_pic_CXX='-fno-common'
14143      ;;
14144    *djgpp*)
14145      # DJGPP does not support shared libraries at all
14146      lt_prog_compiler_pic_CXX=
14147      ;;
14148    haiku*)
14149      # PIC is the default for Haiku.
14150      # The "-static" flag exists, but is broken.
14151      lt_prog_compiler_static_CXX=
14152      ;;
14153    interix[3-9]*)
14154      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14155      # Instead, we relocate shared libraries at runtime.
14156      ;;
14157    sysv4*MP*)
14158      if test -d /usr/nec; then
14159	lt_prog_compiler_pic_CXX=-Kconform_pic
14160      fi
14161      ;;
14162    hpux*)
14163      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14164      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14165      # sets the default TLS model and affects inlining.
14166      case $host_cpu in
14167      hppa*64*)
14168	;;
14169      *)
14170	lt_prog_compiler_pic_CXX='-fPIC'
14171	;;
14172      esac
14173      ;;
14174    *qnx* | *nto*)
14175      # QNX uses GNU C++, but need to define -shared option too, otherwise
14176      # it will coredump.
14177      lt_prog_compiler_pic_CXX='-fPIC -shared'
14178      ;;
14179    *)
14180      lt_prog_compiler_pic_CXX='-fPIC'
14181      ;;
14182    esac
14183  else
14184    case $host_os in
14185      aix[4-9]*)
14186	# All AIX code is PIC.
14187	if test "$host_cpu" = ia64; then
14188	  # AIX 5 now supports IA64 processor
14189	  lt_prog_compiler_static_CXX='-Bstatic'
14190	else
14191	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14192	fi
14193	;;
14194      chorus*)
14195	case $cc_basename in
14196	cxch68*)
14197	  # Green Hills C++ Compiler
14198	  # _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"
14199	  ;;
14200	esac
14201	;;
14202      mingw* | cygwin* | os2* | pw32* | cegcc*)
14203	# This hack is so that the source file can tell whether it is being
14204	# built for inclusion in a dll (and should export symbols for example).
14205	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14206	;;
14207      dgux*)
14208	case $cc_basename in
14209	  ec++*)
14210	    lt_prog_compiler_pic_CXX='-KPIC'
14211	    ;;
14212	  ghcx*)
14213	    # Green Hills C++ Compiler
14214	    lt_prog_compiler_pic_CXX='-pic'
14215	    ;;
14216	  *)
14217	    ;;
14218	esac
14219	;;
14220      freebsd* | dragonfly*)
14221	# FreeBSD uses GNU C++
14222	;;
14223      hpux9* | hpux10* | hpux11*)
14224	case $cc_basename in
14225	  CC*)
14226	    lt_prog_compiler_wl_CXX='-Wl,'
14227	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14228	    if test "$host_cpu" != ia64; then
14229	      lt_prog_compiler_pic_CXX='+Z'
14230	    fi
14231	    ;;
14232	  aCC*)
14233	    lt_prog_compiler_wl_CXX='-Wl,'
14234	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14235	    case $host_cpu in
14236	    hppa*64*|ia64*)
14237	      # +Z the default
14238	      ;;
14239	    *)
14240	      lt_prog_compiler_pic_CXX='+Z'
14241	      ;;
14242	    esac
14243	    ;;
14244	  *)
14245	    ;;
14246	esac
14247	;;
14248      interix*)
14249	# This is c89, which is MS Visual C++ (no shared libs)
14250	# Anyone wants to do a port?
14251	;;
14252      irix5* | irix6* | nonstopux*)
14253	case $cc_basename in
14254	  CC*)
14255	    lt_prog_compiler_wl_CXX='-Wl,'
14256	    lt_prog_compiler_static_CXX='-non_shared'
14257	    # CC pic flag -KPIC is the default.
14258	    ;;
14259	  *)
14260	    ;;
14261	esac
14262	;;
14263      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14264	case $cc_basename in
14265	  KCC*)
14266	    # KAI C++ Compiler
14267	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14268	    lt_prog_compiler_pic_CXX='-fPIC'
14269	    ;;
14270	  ecpc* )
14271	    # old Intel C++ for x86_64 which still supported -KPIC.
14272	    lt_prog_compiler_wl_CXX='-Wl,'
14273	    lt_prog_compiler_pic_CXX='-KPIC'
14274	    lt_prog_compiler_static_CXX='-static'
14275	    ;;
14276	  icpc* )
14277	    # Intel C++, used to be incompatible with GCC.
14278	    # ICC 10 doesn't accept -KPIC any more.
14279	    lt_prog_compiler_wl_CXX='-Wl,'
14280	    lt_prog_compiler_pic_CXX='-fPIC'
14281	    lt_prog_compiler_static_CXX='-static'
14282	    ;;
14283	  pgCC* | pgcpp*)
14284	    # Portland Group C++ compiler
14285	    lt_prog_compiler_wl_CXX='-Wl,'
14286	    lt_prog_compiler_pic_CXX='-fpic'
14287	    lt_prog_compiler_static_CXX='-Bstatic'
14288	    ;;
14289	  cxx*)
14290	    # Compaq C++
14291	    # Make sure the PIC flag is empty.  It appears that all Alpha
14292	    # Linux and Compaq Tru64 Unix objects are PIC.
14293	    lt_prog_compiler_pic_CXX=
14294	    lt_prog_compiler_static_CXX='-non_shared'
14295	    ;;
14296	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14297	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14298	    lt_prog_compiler_wl_CXX='-Wl,'
14299	    lt_prog_compiler_pic_CXX='-qpic'
14300	    lt_prog_compiler_static_CXX='-qstaticlink'
14301	    ;;
14302	  *)
14303	    case `$CC -V 2>&1 | sed 5q` in
14304	    *Sun\ C*)
14305	      # Sun C++ 5.9
14306	      lt_prog_compiler_pic_CXX='-KPIC'
14307	      lt_prog_compiler_static_CXX='-Bstatic'
14308	      lt_prog_compiler_wl_CXX='-Qoption ld '
14309	      ;;
14310	    esac
14311	    ;;
14312	esac
14313	;;
14314      lynxos*)
14315	;;
14316      m88k*)
14317	;;
14318      mvs*)
14319	case $cc_basename in
14320	  cxx*)
14321	    lt_prog_compiler_pic_CXX='-W c,exportall'
14322	    ;;
14323	  *)
14324	    ;;
14325	esac
14326	;;
14327      netbsd*)
14328	;;
14329      *qnx* | *nto*)
14330        # QNX uses GNU C++, but need to define -shared option too, otherwise
14331        # it will coredump.
14332        lt_prog_compiler_pic_CXX='-fPIC -shared'
14333        ;;
14334      osf3* | osf4* | osf5*)
14335	case $cc_basename in
14336	  KCC*)
14337	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14338	    ;;
14339	  RCC*)
14340	    # Rational C++ 2.4.1
14341	    lt_prog_compiler_pic_CXX='-pic'
14342	    ;;
14343	  cxx*)
14344	    # Digital/Compaq C++
14345	    lt_prog_compiler_wl_CXX='-Wl,'
14346	    # Make sure the PIC flag is empty.  It appears that all Alpha
14347	    # Linux and Compaq Tru64 Unix objects are PIC.
14348	    lt_prog_compiler_pic_CXX=
14349	    lt_prog_compiler_static_CXX='-non_shared'
14350	    ;;
14351	  *)
14352	    ;;
14353	esac
14354	;;
14355      psos*)
14356	;;
14357      solaris*)
14358	case $cc_basename in
14359	  CC* | sunCC*)
14360	    # Sun C++ 4.2, 5.x and Centerline C++
14361	    lt_prog_compiler_pic_CXX='-KPIC'
14362	    lt_prog_compiler_static_CXX='-Bstatic'
14363	    lt_prog_compiler_wl_CXX='-Qoption ld '
14364	    ;;
14365	  gcx*)
14366	    # Green Hills C++ Compiler
14367	    lt_prog_compiler_pic_CXX='-PIC'
14368	    ;;
14369	  *)
14370	    ;;
14371	esac
14372	;;
14373      sunos4*)
14374	case $cc_basename in
14375	  CC*)
14376	    # Sun C++ 4.x
14377	    lt_prog_compiler_pic_CXX='-pic'
14378	    lt_prog_compiler_static_CXX='-Bstatic'
14379	    ;;
14380	  lcc*)
14381	    # Lucid
14382	    lt_prog_compiler_pic_CXX='-pic'
14383	    ;;
14384	  *)
14385	    ;;
14386	esac
14387	;;
14388      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14389	case $cc_basename in
14390	  CC*)
14391	    lt_prog_compiler_wl_CXX='-Wl,'
14392	    lt_prog_compiler_pic_CXX='-KPIC'
14393	    lt_prog_compiler_static_CXX='-Bstatic'
14394	    ;;
14395	esac
14396	;;
14397      tandem*)
14398	case $cc_basename in
14399	  NCC*)
14400	    # NonStop-UX NCC 3.20
14401	    lt_prog_compiler_pic_CXX='-KPIC'
14402	    ;;
14403	  *)
14404	    ;;
14405	esac
14406	;;
14407      vxworks*)
14408	;;
14409      *)
14410	lt_prog_compiler_can_build_shared_CXX=no
14411	;;
14412    esac
14413  fi
14414
14415case $host_os in
14416  # For platforms which do not support PIC, -DPIC is meaningless:
14417  *djgpp*)
14418    lt_prog_compiler_pic_CXX=
14419    ;;
14420  *)
14421    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14422    ;;
14423esac
14424
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14426$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14427if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14428  $as_echo_n "(cached) " >&6
14429else
14430  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14431fi
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14433$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14434lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14435
14436#
14437# Check to make sure the PIC flag actually works.
14438#
14439if test -n "$lt_prog_compiler_pic_CXX"; then
14440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14441$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14442if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14443  $as_echo_n "(cached) " >&6
14444else
14445  lt_cv_prog_compiler_pic_works_CXX=no
14446   ac_outfile=conftest.$ac_objext
14447   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14448   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14449   # Insert the option either (1) after the last *FLAGS variable, or
14450   # (2) before a word containing "conftest.", or (3) at the end.
14451   # Note that $ac_compile itself does not contain backslashes and begins
14452   # with a dollar sign (not a hyphen), so the echo should work correctly.
14453   # The option is referenced via a variable to avoid confusing sed.
14454   lt_compile=`echo "$ac_compile" | $SED \
14455   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14456   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14457   -e 's:$: $lt_compiler_flag:'`
14458   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14459   (eval "$lt_compile" 2>conftest.err)
14460   ac_status=$?
14461   cat conftest.err >&5
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   if (exit $ac_status) && test -s "$ac_outfile"; then
14464     # The compiler can only warn and ignore the option if not recognized
14465     # So say no if there are warnings other than the usual output.
14466     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14467     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14468     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14469       lt_cv_prog_compiler_pic_works_CXX=yes
14470     fi
14471   fi
14472   $RM conftest*
14473
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14476$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14477
14478if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14479    case $lt_prog_compiler_pic_CXX in
14480     "" | " "*) ;;
14481     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14482     esac
14483else
14484    lt_prog_compiler_pic_CXX=
14485     lt_prog_compiler_can_build_shared_CXX=no
14486fi
14487
14488fi
14489
14490
14491
14492
14493
14494#
14495# Check to make sure the static flag actually works.
14496#
14497wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14499$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14500if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14501  $as_echo_n "(cached) " >&6
14502else
14503  lt_cv_prog_compiler_static_works_CXX=no
14504   save_LDFLAGS="$LDFLAGS"
14505   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14506   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14507   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14508     # The linker can only warn and ignore the option if not recognized
14509     # So say no if there are warnings
14510     if test -s conftest.err; then
14511       # Append any errors to the config.log.
14512       cat conftest.err 1>&5
14513       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14514       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14515       if diff conftest.exp conftest.er2 >/dev/null; then
14516         lt_cv_prog_compiler_static_works_CXX=yes
14517       fi
14518     else
14519       lt_cv_prog_compiler_static_works_CXX=yes
14520     fi
14521   fi
14522   $RM -r conftest*
14523   LDFLAGS="$save_LDFLAGS"
14524
14525fi
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14527$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14528
14529if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14530    :
14531else
14532    lt_prog_compiler_static_CXX=
14533fi
14534
14535
14536
14537
14538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14539$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14540if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14541  $as_echo_n "(cached) " >&6
14542else
14543  lt_cv_prog_compiler_c_o_CXX=no
14544   $RM -r conftest 2>/dev/null
14545   mkdir conftest
14546   cd conftest
14547   mkdir out
14548   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14549
14550   lt_compiler_flag="-o out/conftest2.$ac_objext"
14551   # Insert the option either (1) after the last *FLAGS variable, or
14552   # (2) before a word containing "conftest.", or (3) at the end.
14553   # Note that $ac_compile itself does not contain backslashes and begins
14554   # with a dollar sign (not a hyphen), so the echo should work correctly.
14555   lt_compile=`echo "$ac_compile" | $SED \
14556   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14557   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14558   -e 's:$: $lt_compiler_flag:'`
14559   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14560   (eval "$lt_compile" 2>out/conftest.err)
14561   ac_status=$?
14562   cat out/conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14565   then
14566     # The compiler can only warn and ignore the option if not recognized
14567     # So say no if there are warnings
14568     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14569     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14570     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14571       lt_cv_prog_compiler_c_o_CXX=yes
14572     fi
14573   fi
14574   chmod u+w . 2>&5
14575   $RM conftest*
14576   # SGI C++ compiler will create directory out/ii_files/ for
14577   # template instantiation
14578   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14579   $RM out/* && rmdir out
14580   cd ..
14581   $RM -r conftest
14582   $RM conftest*
14583
14584fi
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14586$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14587
14588
14589
14590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14591$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14592if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14593  $as_echo_n "(cached) " >&6
14594else
14595  lt_cv_prog_compiler_c_o_CXX=no
14596   $RM -r conftest 2>/dev/null
14597   mkdir conftest
14598   cd conftest
14599   mkdir out
14600   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14601
14602   lt_compiler_flag="-o out/conftest2.$ac_objext"
14603   # Insert the option either (1) after the last *FLAGS variable, or
14604   # (2) before a word containing "conftest.", or (3) at the end.
14605   # Note that $ac_compile itself does not contain backslashes and begins
14606   # with a dollar sign (not a hyphen), so the echo should work correctly.
14607   lt_compile=`echo "$ac_compile" | $SED \
14608   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14609   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610   -e 's:$: $lt_compiler_flag:'`
14611   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14612   (eval "$lt_compile" 2>out/conftest.err)
14613   ac_status=$?
14614   cat out/conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14617   then
14618     # The compiler can only warn and ignore the option if not recognized
14619     # So say no if there are warnings
14620     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14621     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14623       lt_cv_prog_compiler_c_o_CXX=yes
14624     fi
14625   fi
14626   chmod u+w . 2>&5
14627   $RM conftest*
14628   # SGI C++ compiler will create directory out/ii_files/ for
14629   # template instantiation
14630   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14631   $RM out/* && rmdir out
14632   cd ..
14633   $RM -r conftest
14634   $RM conftest*
14635
14636fi
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14638$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14639
14640
14641
14642
14643hard_links="nottested"
14644if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14645  # do not overwrite the value of need_locks provided by the user
14646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14647$as_echo_n "checking if we can lock with hard links... " >&6; }
14648  hard_links=yes
14649  $RM conftest*
14650  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14651  touch conftest.a
14652  ln conftest.a conftest.b 2>&5 || hard_links=no
14653  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14655$as_echo "$hard_links" >&6; }
14656  if test "$hard_links" = no; then
14657    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14658$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14659    need_locks=warn
14660  fi
14661else
14662  need_locks=no
14663fi
14664
14665
14666
14667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14668$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14669
14670  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14671  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14672  case $host_os in
14673  aix[4-9]*)
14674    # If we're using GNU nm, then we don't want the "-C" option.
14675    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14676    # Also, AIX nm treats weak defined symbols like other global defined
14677    # symbols, whereas GNU nm marks them as "W".
14678    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14679      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14680    else
14681      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14682    fi
14683    ;;
14684  pw32*)
14685    export_symbols_cmds_CXX="$ltdll_cmds"
14686    ;;
14687  cygwin* | mingw* | cegcc*)
14688    case $cc_basename in
14689    cl*)
14690      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14691      ;;
14692    *)
14693      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'
14694      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14695      ;;
14696    esac
14697    ;;
14698  *)
14699    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14700    ;;
14701  esac
14702
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14704$as_echo "$ld_shlibs_CXX" >&6; }
14705test "$ld_shlibs_CXX" = no && can_build_shared=no
14706
14707with_gnu_ld_CXX=$with_gnu_ld
14708
14709
14710
14711
14712
14713
14714#
14715# Do we need to explicitly link libc?
14716#
14717case "x$archive_cmds_need_lc_CXX" in
14718x|xyes)
14719  # Assume -lc should be added
14720  archive_cmds_need_lc_CXX=yes
14721
14722  if test "$enable_shared" = yes && test "$GCC" = yes; then
14723    case $archive_cmds_CXX in
14724    *'~'*)
14725      # FIXME: we may have to deal with multi-command sequences.
14726      ;;
14727    '$CC '*)
14728      # Test whether the compiler implicitly links with -lc since on some
14729      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14730      # to ld, don't add -lc before -lgcc.
14731      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14732$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14733if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14734  $as_echo_n "(cached) " >&6
14735else
14736  $RM conftest*
14737	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14738
14739	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14740  (eval $ac_compile) 2>&5
14741  ac_status=$?
14742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743  test $ac_status = 0; } 2>conftest.err; then
14744	  soname=conftest
14745	  lib=conftest
14746	  libobjs=conftest.$ac_objext
14747	  deplibs=
14748	  wl=$lt_prog_compiler_wl_CXX
14749	  pic_flag=$lt_prog_compiler_pic_CXX
14750	  compiler_flags=-v
14751	  linker_flags=-v
14752	  verstring=
14753	  output_objdir=.
14754	  libname=conftest
14755	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14756	  allow_undefined_flag_CXX=
14757	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14758  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14759  ac_status=$?
14760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14761  test $ac_status = 0; }
14762	  then
14763	    lt_cv_archive_cmds_need_lc_CXX=no
14764	  else
14765	    lt_cv_archive_cmds_need_lc_CXX=yes
14766	  fi
14767	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14768	else
14769	  cat conftest.err 1>&5
14770	fi
14771	$RM conftest*
14772
14773fi
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14775$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14776      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14777      ;;
14778    esac
14779  fi
14780  ;;
14781esac
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14845$as_echo_n "checking dynamic linker characteristics... " >&6; }
14846
14847library_names_spec=
14848libname_spec='lib$name'
14849soname_spec=
14850shrext_cmds=".so"
14851postinstall_cmds=
14852postuninstall_cmds=
14853finish_cmds=
14854finish_eval=
14855shlibpath_var=
14856shlibpath_overrides_runpath=unknown
14857version_type=none
14858dynamic_linker="$host_os ld.so"
14859sys_lib_dlsearch_path_spec="/lib /usr/lib"
14860need_lib_prefix=unknown
14861hardcode_into_libs=no
14862
14863# when you set need_version to no, make sure it does not cause -set_version
14864# flags to be left without arguments
14865need_version=unknown
14866
14867case $host_os in
14868aix3*)
14869  version_type=linux # correct to gnu/linux during the next big refactor
14870  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14871  shlibpath_var=LIBPATH
14872
14873  # AIX 3 has no versioning support, so we append a major version to the name.
14874  soname_spec='${libname}${release}${shared_ext}$major'
14875  ;;
14876
14877aix[4-9]*)
14878  version_type=linux # correct to gnu/linux during the next big refactor
14879  need_lib_prefix=no
14880  need_version=no
14881  hardcode_into_libs=yes
14882  if test "$host_cpu" = ia64; then
14883    # AIX 5 supports IA64
14884    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14885    shlibpath_var=LD_LIBRARY_PATH
14886  else
14887    # With GCC up to 2.95.x, collect2 would create an import file
14888    # for dependence libraries.  The import file would start with
14889    # the line `#! .'.  This would cause the generated library to
14890    # depend on `.', always an invalid library.  This was fixed in
14891    # development snapshots of GCC prior to 3.0.
14892    case $host_os in
14893      aix4 | aix4.[01] | aix4.[01].*)
14894      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14895	   echo ' yes '
14896	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14897	:
14898      else
14899	can_build_shared=no
14900      fi
14901      ;;
14902    esac
14903    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14904    # soname into executable. Probably we can add versioning support to
14905    # collect2, so additional links can be useful in future.
14906    if test "$aix_use_runtimelinking" = yes; then
14907      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14908      # instead of lib<name>.a to let people know that these are not
14909      # typical AIX shared libraries.
14910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911    else
14912      # We preserve .a as extension for shared libraries through AIX4.2
14913      # and later when we are not doing run time linking.
14914      library_names_spec='${libname}${release}.a $libname.a'
14915      soname_spec='${libname}${release}${shared_ext}$major'
14916    fi
14917    shlibpath_var=LIBPATH
14918  fi
14919  ;;
14920
14921amigaos*)
14922  case $host_cpu in
14923  powerpc)
14924    # Since July 2007 AmigaOS4 officially supports .so libraries.
14925    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927    ;;
14928  m68k)
14929    library_names_spec='$libname.ixlibrary $libname.a'
14930    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14931    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14932    ;;
14933  esac
14934  ;;
14935
14936beos*)
14937  library_names_spec='${libname}${shared_ext}'
14938  dynamic_linker="$host_os ld.so"
14939  shlibpath_var=LIBRARY_PATH
14940  ;;
14941
14942bsdi[45]*)
14943  version_type=linux # correct to gnu/linux during the next big refactor
14944  need_version=no
14945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946  soname_spec='${libname}${release}${shared_ext}$major'
14947  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14948  shlibpath_var=LD_LIBRARY_PATH
14949  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14950  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14951  # the default ld.so.conf also contains /usr/contrib/lib and
14952  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14953  # libtool to hard-code these into programs
14954  ;;
14955
14956cygwin* | mingw* | pw32* | cegcc*)
14957  version_type=windows
14958  shrext_cmds=".dll"
14959  need_version=no
14960  need_lib_prefix=no
14961
14962  case $GCC,$cc_basename in
14963  yes,*)
14964    # gcc
14965    library_names_spec='$libname.dll.a'
14966    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14967    postinstall_cmds='base_file=`basename \${file}`~
14968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14969      dldir=$destdir/`dirname \$dlpath`~
14970      test -d \$dldir || mkdir -p \$dldir~
14971      $install_prog $dir/$dlname \$dldir/$dlname~
14972      chmod a+x \$dldir/$dlname~
14973      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14974        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14975      fi'
14976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14977      dlpath=$dir/\$dldll~
14978       $RM \$dlpath'
14979    shlibpath_overrides_runpath=yes
14980
14981    case $host_os in
14982    cygwin*)
14983      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14984      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14985
14986      ;;
14987    mingw* | cegcc*)
14988      # MinGW DLLs use traditional 'lib' prefix
14989      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990      ;;
14991    pw32*)
14992      # pw32 DLLs use 'pw' prefix rather than 'lib'
14993      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14994      ;;
14995    esac
14996    dynamic_linker='Win32 ld.exe'
14997    ;;
14998
14999  *,cl*)
15000    # Native MSVC
15001    libname_spec='$name'
15002    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003    library_names_spec='${libname}.dll.lib'
15004
15005    case $build_os in
15006    mingw*)
15007      sys_lib_search_path_spec=
15008      lt_save_ifs=$IFS
15009      IFS=';'
15010      for lt_path in $LIB
15011      do
15012        IFS=$lt_save_ifs
15013        # Let DOS variable expansion print the short 8.3 style file name.
15014        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15015        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15016      done
15017      IFS=$lt_save_ifs
15018      # Convert to MSYS style.
15019      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15020      ;;
15021    cygwin*)
15022      # Convert to unix form, then to dos form, then back to unix form
15023      # but this time dos style (no spaces!) so that the unix form looks
15024      # like /cygdrive/c/PROGRA~1:/cygdr...
15025      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15026      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15027      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15028      ;;
15029    *)
15030      sys_lib_search_path_spec="$LIB"
15031      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15032        # It is most probably a Windows format PATH.
15033        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15034      else
15035        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15036      fi
15037      # FIXME: find the short name or the path components, as spaces are
15038      # common. (e.g. "Program Files" -> "PROGRA~1")
15039      ;;
15040    esac
15041
15042    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15043    postinstall_cmds='base_file=`basename \${file}`~
15044      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15045      dldir=$destdir/`dirname \$dlpath`~
15046      test -d \$dldir || mkdir -p \$dldir~
15047      $install_prog $dir/$dlname \$dldir/$dlname'
15048    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15049      dlpath=$dir/\$dldll~
15050       $RM \$dlpath'
15051    shlibpath_overrides_runpath=yes
15052    dynamic_linker='Win32 link.exe'
15053    ;;
15054
15055  *)
15056    # Assume MSVC wrapper
15057    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15058    dynamic_linker='Win32 ld.exe'
15059    ;;
15060  esac
15061  # FIXME: first we should search . and the directory the executable is in
15062  shlibpath_var=PATH
15063  ;;
15064
15065darwin* | rhapsody*)
15066  dynamic_linker="$host_os dyld"
15067  version_type=darwin
15068  need_lib_prefix=no
15069  need_version=no
15070  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071  soname_spec='${libname}${release}${major}$shared_ext'
15072  shlibpath_overrides_runpath=yes
15073  shlibpath_var=DYLD_LIBRARY_PATH
15074  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15075
15076  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15077  ;;
15078
15079dgux*)
15080  version_type=linux # correct to gnu/linux during the next big refactor
15081  need_lib_prefix=no
15082  need_version=no
15083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15084  soname_spec='${libname}${release}${shared_ext}$major'
15085  shlibpath_var=LD_LIBRARY_PATH
15086  ;;
15087
15088freebsd* | dragonfly*)
15089  # DragonFly does not have aout.  When/if they implement a new
15090  # versioning mechanism, adjust this.
15091  if test -x /usr/bin/objformat; then
15092    objformat=`/usr/bin/objformat`
15093  else
15094    case $host_os in
15095    freebsd[23].*) objformat=aout ;;
15096    *) objformat=elf ;;
15097    esac
15098  fi
15099  version_type=freebsd-$objformat
15100  case $version_type in
15101    freebsd-elf*)
15102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15103      need_version=no
15104      need_lib_prefix=no
15105      ;;
15106    freebsd-*)
15107      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15108      need_version=yes
15109      ;;
15110  esac
15111  shlibpath_var=LD_LIBRARY_PATH
15112  case $host_os in
15113  freebsd2.*)
15114    shlibpath_overrides_runpath=yes
15115    ;;
15116  freebsd3.[01]* | freebsdelf3.[01]*)
15117    shlibpath_overrides_runpath=yes
15118    hardcode_into_libs=yes
15119    ;;
15120  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15121  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15122    shlibpath_overrides_runpath=no
15123    hardcode_into_libs=yes
15124    ;;
15125  *) # from 4.6 on, and DragonFly
15126    shlibpath_overrides_runpath=yes
15127    hardcode_into_libs=yes
15128    ;;
15129  esac
15130  ;;
15131
15132gnu*)
15133  version_type=linux # correct to gnu/linux during the next big refactor
15134  need_lib_prefix=no
15135  need_version=no
15136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15137  soname_spec='${libname}${release}${shared_ext}$major'
15138  shlibpath_var=LD_LIBRARY_PATH
15139  shlibpath_overrides_runpath=no
15140  hardcode_into_libs=yes
15141  ;;
15142
15143haiku*)
15144  version_type=linux # correct to gnu/linux during the next big refactor
15145  need_lib_prefix=no
15146  need_version=no
15147  dynamic_linker="$host_os runtime_loader"
15148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15149  soname_spec='${libname}${release}${shared_ext}$major'
15150  shlibpath_var=LIBRARY_PATH
15151  shlibpath_overrides_runpath=yes
15152  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15153  hardcode_into_libs=yes
15154  ;;
15155
15156hpux9* | hpux10* | hpux11*)
15157  # Give a soname corresponding to the major version so that dld.sl refuses to
15158  # link against other versions.
15159  version_type=sunos
15160  need_lib_prefix=no
15161  need_version=no
15162  case $host_cpu in
15163  ia64*)
15164    shrext_cmds='.so'
15165    hardcode_into_libs=yes
15166    dynamic_linker="$host_os dld.so"
15167    shlibpath_var=LD_LIBRARY_PATH
15168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170    soname_spec='${libname}${release}${shared_ext}$major'
15171    if test "X$HPUX_IA64_MODE" = X32; then
15172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15173    else
15174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15175    fi
15176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15177    ;;
15178  hppa*64*)
15179    shrext_cmds='.sl'
15180    hardcode_into_libs=yes
15181    dynamic_linker="$host_os dld.sl"
15182    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15183    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15184    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185    soname_spec='${libname}${release}${shared_ext}$major'
15186    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15187    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15188    ;;
15189  *)
15190    shrext_cmds='.sl'
15191    dynamic_linker="$host_os dld.sl"
15192    shlibpath_var=SHLIB_PATH
15193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195    soname_spec='${libname}${release}${shared_ext}$major'
15196    ;;
15197  esac
15198  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15199  postinstall_cmds='chmod 555 $lib'
15200  # or fails outright, so override atomically:
15201  install_override_mode=555
15202  ;;
15203
15204interix[3-9]*)
15205  version_type=linux # correct to gnu/linux during the next big refactor
15206  need_lib_prefix=no
15207  need_version=no
15208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15209  soname_spec='${libname}${release}${shared_ext}$major'
15210  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15211  shlibpath_var=LD_LIBRARY_PATH
15212  shlibpath_overrides_runpath=no
15213  hardcode_into_libs=yes
15214  ;;
15215
15216irix5* | irix6* | nonstopux*)
15217  case $host_os in
15218    nonstopux*) version_type=nonstopux ;;
15219    *)
15220	if test "$lt_cv_prog_gnu_ld" = yes; then
15221		version_type=linux # correct to gnu/linux during the next big refactor
15222	else
15223		version_type=irix
15224	fi ;;
15225  esac
15226  need_lib_prefix=no
15227  need_version=no
15228  soname_spec='${libname}${release}${shared_ext}$major'
15229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230  case $host_os in
15231  irix5* | nonstopux*)
15232    libsuff= shlibsuff=
15233    ;;
15234  *)
15235    case $LD in # libtool.m4 will add one of these switches to LD
15236    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15237      libsuff= shlibsuff= libmagic=32-bit;;
15238    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15239      libsuff=32 shlibsuff=N32 libmagic=N32;;
15240    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15241      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15242    *) libsuff= shlibsuff= libmagic=never-match;;
15243    esac
15244    ;;
15245  esac
15246  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15247  shlibpath_overrides_runpath=no
15248  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15249  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15250  hardcode_into_libs=yes
15251  ;;
15252
15253# No shared lib support for Linux oldld, aout, or coff.
15254linux*oldld* | linux*aout* | linux*coff*)
15255  dynamic_linker=no
15256  ;;
15257
15258# This must be glibc/ELF.
15259linux* | k*bsd*-gnu | kopensolaris*-gnu)
15260  version_type=linux # correct to gnu/linux during the next big refactor
15261  need_lib_prefix=no
15262  need_version=no
15263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264  soname_spec='${libname}${release}${shared_ext}$major'
15265  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15266  shlibpath_var=LD_LIBRARY_PATH
15267  shlibpath_overrides_runpath=no
15268
15269  # Some binutils ld are patched to set DT_RUNPATH
15270  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15271  $as_echo_n "(cached) " >&6
15272else
15273  lt_cv_shlibpath_overrides_runpath=no
15274    save_LDFLAGS=$LDFLAGS
15275    save_libdir=$libdir
15276    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15277	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280
15281int
15282main ()
15283{
15284
15285  ;
15286  return 0;
15287}
15288_ACEOF
15289if ac_fn_cxx_try_link "$LINENO"; then :
15290  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15291  lt_cv_shlibpath_overrides_runpath=yes
15292fi
15293fi
15294rm -f core conftest.err conftest.$ac_objext \
15295    conftest$ac_exeext conftest.$ac_ext
15296    LDFLAGS=$save_LDFLAGS
15297    libdir=$save_libdir
15298
15299fi
15300
15301  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15302
15303  # This implies no fast_install, which is unacceptable.
15304  # Some rework will be needed to allow for fast_install
15305  # before this can be enabled.
15306  hardcode_into_libs=yes
15307
15308  # Append ld.so.conf contents to the search path
15309  if test -f /etc/ld.so.conf; then
15310    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' ' '`
15311    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15312  fi
15313
15314  # We used to test for /lib/ld.so.1 and disable shared libraries on
15315  # powerpc, because MkLinux only supported shared libraries with the
15316  # GNU dynamic linker.  Since this was broken with cross compilers,
15317  # most powerpc-linux boxes support dynamic linking these days and
15318  # people can always --disable-shared, the test was removed, and we
15319  # assume the GNU/Linux dynamic linker is in use.
15320  dynamic_linker='GNU/Linux ld.so'
15321  ;;
15322
15323netbsd*)
15324  version_type=sunos
15325  need_lib_prefix=no
15326  need_version=no
15327  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15329    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15330    dynamic_linker='NetBSD (a.out) ld.so'
15331  else
15332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15333    soname_spec='${libname}${release}${shared_ext}$major'
15334    dynamic_linker='NetBSD ld.elf_so'
15335  fi
15336  shlibpath_var=LD_LIBRARY_PATH
15337  shlibpath_overrides_runpath=yes
15338  hardcode_into_libs=yes
15339  ;;
15340
15341newsos6)
15342  version_type=linux # correct to gnu/linux during the next big refactor
15343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344  shlibpath_var=LD_LIBRARY_PATH
15345  shlibpath_overrides_runpath=yes
15346  ;;
15347
15348*nto* | *qnx*)
15349  version_type=qnx
15350  need_lib_prefix=no
15351  need_version=no
15352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353  soname_spec='${libname}${release}${shared_ext}$major'
15354  shlibpath_var=LD_LIBRARY_PATH
15355  shlibpath_overrides_runpath=no
15356  hardcode_into_libs=yes
15357  dynamic_linker='ldqnx.so'
15358  ;;
15359
15360openbsd*)
15361  version_type=sunos
15362  sys_lib_dlsearch_path_spec="/usr/lib"
15363  need_lib_prefix=no
15364  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15365  case $host_os in
15366    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15367    *)				need_version=no  ;;
15368  esac
15369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15370  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15371  shlibpath_var=LD_LIBRARY_PATH
15372  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15373    case $host_os in
15374      openbsd2.[89] | openbsd2.[89].*)
15375	shlibpath_overrides_runpath=no
15376	;;
15377      *)
15378	shlibpath_overrides_runpath=yes
15379	;;
15380      esac
15381  else
15382    shlibpath_overrides_runpath=yes
15383  fi
15384  ;;
15385
15386os2*)
15387  libname_spec='$name'
15388  shrext_cmds=".dll"
15389  need_lib_prefix=no
15390  library_names_spec='$libname${shared_ext} $libname.a'
15391  dynamic_linker='OS/2 ld.exe'
15392  shlibpath_var=LIBPATH
15393  ;;
15394
15395osf3* | osf4* | osf5*)
15396  version_type=osf
15397  need_lib_prefix=no
15398  need_version=no
15399  soname_spec='${libname}${release}${shared_ext}$major'
15400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401  shlibpath_var=LD_LIBRARY_PATH
15402  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15403  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15404  ;;
15405
15406rdos*)
15407  dynamic_linker=no
15408  ;;
15409
15410solaris*)
15411  version_type=linux # correct to gnu/linux during the next big refactor
15412  need_lib_prefix=no
15413  need_version=no
15414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415  soname_spec='${libname}${release}${shared_ext}$major'
15416  shlibpath_var=LD_LIBRARY_PATH
15417  shlibpath_overrides_runpath=yes
15418  hardcode_into_libs=yes
15419  # ldd complains unless libraries are executable
15420  postinstall_cmds='chmod +x $lib'
15421  ;;
15422
15423sunos4*)
15424  version_type=sunos
15425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15426  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15427  shlibpath_var=LD_LIBRARY_PATH
15428  shlibpath_overrides_runpath=yes
15429  if test "$with_gnu_ld" = yes; then
15430    need_lib_prefix=no
15431  fi
15432  need_version=yes
15433  ;;
15434
15435sysv4 | sysv4.3*)
15436  version_type=linux # correct to gnu/linux during the next big refactor
15437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438  soname_spec='${libname}${release}${shared_ext}$major'
15439  shlibpath_var=LD_LIBRARY_PATH
15440  case $host_vendor in
15441    sni)
15442      shlibpath_overrides_runpath=no
15443      need_lib_prefix=no
15444      runpath_var=LD_RUN_PATH
15445      ;;
15446    siemens)
15447      need_lib_prefix=no
15448      ;;
15449    motorola)
15450      need_lib_prefix=no
15451      need_version=no
15452      shlibpath_overrides_runpath=no
15453      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15454      ;;
15455  esac
15456  ;;
15457
15458sysv4*MP*)
15459  if test -d /usr/nec ;then
15460    version_type=linux # correct to gnu/linux during the next big refactor
15461    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15462    soname_spec='$libname${shared_ext}.$major'
15463    shlibpath_var=LD_LIBRARY_PATH
15464  fi
15465  ;;
15466
15467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15468  version_type=freebsd-elf
15469  need_lib_prefix=no
15470  need_version=no
15471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15472  soname_spec='${libname}${release}${shared_ext}$major'
15473  shlibpath_var=LD_LIBRARY_PATH
15474  shlibpath_overrides_runpath=yes
15475  hardcode_into_libs=yes
15476  if test "$with_gnu_ld" = yes; then
15477    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15478  else
15479    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15480    case $host_os in
15481      sco3.2v5*)
15482        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15483	;;
15484    esac
15485  fi
15486  sys_lib_dlsearch_path_spec='/usr/lib'
15487  ;;
15488
15489tpf*)
15490  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15491  version_type=linux # correct to gnu/linux during the next big refactor
15492  need_lib_prefix=no
15493  need_version=no
15494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495  shlibpath_var=LD_LIBRARY_PATH
15496  shlibpath_overrides_runpath=no
15497  hardcode_into_libs=yes
15498  ;;
15499
15500uts4*)
15501  version_type=linux # correct to gnu/linux during the next big refactor
15502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15503  soname_spec='${libname}${release}${shared_ext}$major'
15504  shlibpath_var=LD_LIBRARY_PATH
15505  ;;
15506
15507*)
15508  dynamic_linker=no
15509  ;;
15510esac
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15512$as_echo "$dynamic_linker" >&6; }
15513test "$dynamic_linker" = no && can_build_shared=no
15514
15515variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15516if test "$GCC" = yes; then
15517  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15518fi
15519
15520if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15521  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15522fi
15523if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15524  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15525fi
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15565$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15566hardcode_action_CXX=
15567if test -n "$hardcode_libdir_flag_spec_CXX" ||
15568   test -n "$runpath_var_CXX" ||
15569   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15570
15571  # We can hardcode non-existent directories.
15572  if test "$hardcode_direct_CXX" != no &&
15573     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15574     # have to relink, otherwise we might link with an installed library
15575     # when we should be linking with a yet-to-be-installed one
15576     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15577     test "$hardcode_minus_L_CXX" != no; then
15578    # Linking always hardcodes the temporary library directory.
15579    hardcode_action_CXX=relink
15580  else
15581    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15582    hardcode_action_CXX=immediate
15583  fi
15584else
15585  # We cannot hardcode anything, or else we can only hardcode existing
15586  # directories.
15587  hardcode_action_CXX=unsupported
15588fi
15589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15590$as_echo "$hardcode_action_CXX" >&6; }
15591
15592if test "$hardcode_action_CXX" = relink ||
15593   test "$inherit_rpath_CXX" = yes; then
15594  # Fast installation is not supported
15595  enable_fast_install=no
15596elif test "$shlibpath_overrides_runpath" = yes ||
15597     test "$enable_shared" = no; then
15598  # Fast installation is not necessary
15599  enable_fast_install=needless
15600fi
15601
15602
15603
15604
15605
15606
15607
15608  fi # test -n "$compiler"
15609
15610  CC=$lt_save_CC
15611  CFLAGS=$lt_save_CFLAGS
15612  LDCXX=$LD
15613  LD=$lt_save_LD
15614  GCC=$lt_save_GCC
15615  with_gnu_ld=$lt_save_with_gnu_ld
15616  lt_cv_path_LDCXX=$lt_cv_path_LD
15617  lt_cv_path_LD=$lt_save_path_LD
15618  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15619  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15620fi # test "$_lt_caught_CXX_error" != yes
15621
15622ac_ext=c
15623ac_cpp='$CPP $CPPFLAGS'
15624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626ac_compiler_gnu=$ac_cv_c_compiler_gnu
15627
15628
15629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
15630$as_echo_n "checking for library containing sqrt... " >&6; }
15631if ${ac_cv_search_sqrt+:} false; then :
15632  $as_echo_n "(cached) " >&6
15633else
15634  ac_func_search_save_LIBS=$LIBS
15635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637
15638/* Override any GCC internal prototype to avoid an error.
15639   Use char because int might match the return type of a GCC
15640   builtin and then its argument prototype would still apply.  */
15641#ifdef __cplusplus
15642extern "C"
15643#endif
15644char sqrt ();
15645int
15646main ()
15647{
15648return sqrt ();
15649  ;
15650  return 0;
15651}
15652_ACEOF
15653for ac_lib in '' m; do
15654  if test -z "$ac_lib"; then
15655    ac_res="none required"
15656  else
15657    ac_res=-l$ac_lib
15658    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15659  fi
15660  if ac_fn_c_try_link "$LINENO"; then :
15661  ac_cv_search_sqrt=$ac_res
15662fi
15663rm -f core conftest.err conftest.$ac_objext \
15664    conftest$ac_exeext
15665  if ${ac_cv_search_sqrt+:} false; then :
15666  break
15667fi
15668done
15669if ${ac_cv_search_sqrt+:} false; then :
15670
15671else
15672  ac_cv_search_sqrt=no
15673fi
15674rm conftest.$ac_ext
15675LIBS=$ac_func_search_save_LIBS
15676fi
15677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
15678$as_echo "$ac_cv_search_sqrt" >&6; }
15679ac_res=$ac_cv_search_sqrt
15680if test "$ac_res" != no; then :
15681  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15682
15683else
15684  as_fn_error $? "Can't LÖVE without C math library" "$LINENO" 5
15685fi
15686
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SDL_Init" >&5
15688$as_echo_n "checking for library containing SDL_Init... " >&6; }
15689if ${ac_cv_search_SDL_Init+:} false; then :
15690  $as_echo_n "(cached) " >&6
15691else
15692  ac_func_search_save_LIBS=$LIBS
15693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h.  */
15695
15696/* Override any GCC internal prototype to avoid an error.
15697   Use char because int might match the return type of a GCC
15698   builtin and then its argument prototype would still apply.  */
15699#ifdef __cplusplus
15700extern "C"
15701#endif
15702char SDL_Init ();
15703int
15704main ()
15705{
15706return SDL_Init ();
15707  ;
15708  return 0;
15709}
15710_ACEOF
15711for ac_lib in '' SDL; do
15712  if test -z "$ac_lib"; then
15713    ac_res="none required"
15714  else
15715    ac_res=-l$ac_lib
15716    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15717  fi
15718  if ac_fn_c_try_link "$LINENO"; then :
15719  ac_cv_search_SDL_Init=$ac_res
15720fi
15721rm -f core conftest.err conftest.$ac_objext \
15722    conftest$ac_exeext
15723  if ${ac_cv_search_SDL_Init+:} false; then :
15724  break
15725fi
15726done
15727if ${ac_cv_search_SDL_Init+:} false; then :
15728
15729else
15730  ac_cv_search_SDL_Init=no
15731fi
15732rm conftest.$ac_ext
15733LIBS=$ac_func_search_save_LIBS
15734fi
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SDL_Init" >&5
15736$as_echo "$ac_cv_search_SDL_Init" >&6; }
15737ac_res=$ac_cv_search_SDL_Init
15738if test "$ac_res" != no; then :
15739  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15740
15741else
15742  as_fn_error $? "Can't LÖVE without SDL" "$LINENO" 5
15743fi
15744
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glLoadIdentity" >&5
15746$as_echo_n "checking for library containing glLoadIdentity... " >&6; }
15747if ${ac_cv_search_glLoadIdentity+:} false; then :
15748  $as_echo_n "(cached) " >&6
15749else
15750  ac_func_search_save_LIBS=$LIBS
15751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h.  */
15753
15754/* Override any GCC internal prototype to avoid an error.
15755   Use char because int might match the return type of a GCC
15756   builtin and then its argument prototype would still apply.  */
15757#ifdef __cplusplus
15758extern "C"
15759#endif
15760char glLoadIdentity ();
15761int
15762main ()
15763{
15764return glLoadIdentity ();
15765  ;
15766  return 0;
15767}
15768_ACEOF
15769for ac_lib in '' GL; do
15770  if test -z "$ac_lib"; then
15771    ac_res="none required"
15772  else
15773    ac_res=-l$ac_lib
15774    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15775  fi
15776  if ac_fn_c_try_link "$LINENO"; then :
15777  ac_cv_search_glLoadIdentity=$ac_res
15778fi
15779rm -f core conftest.err conftest.$ac_objext \
15780    conftest$ac_exeext
15781  if ${ac_cv_search_glLoadIdentity+:} false; then :
15782  break
15783fi
15784done
15785if ${ac_cv_search_glLoadIdentity+:} false; then :
15786
15787else
15788  ac_cv_search_glLoadIdentity=no
15789fi
15790rm conftest.$ac_ext
15791LIBS=$ac_func_search_save_LIBS
15792fi
15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glLoadIdentity" >&5
15794$as_echo "$ac_cv_search_glLoadIdentity" >&6; }
15795ac_res=$ac_cv_search_glLoadIdentity
15796if test "$ac_res" != no; then :
15797  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15798
15799else
15800  as_fn_error $? "Can't LÖVE without OpenGL" "$LINENO" 5
15801fi
15802
15803#AC_SEARCH_LIBS([gluOrtho2D], [GLU], [], AC_MSG_ERROR([Can't LÖVE without OpenGL Utility Library]))
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing alSourcePlay" >&5
15805$as_echo_n "checking for library containing alSourcePlay... " >&6; }
15806if ${ac_cv_search_alSourcePlay+:} false; then :
15807  $as_echo_n "(cached) " >&6
15808else
15809  ac_func_search_save_LIBS=$LIBS
15810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811/* end confdefs.h.  */
15812
15813/* Override any GCC internal prototype to avoid an error.
15814   Use char because int might match the return type of a GCC
15815   builtin and then its argument prototype would still apply.  */
15816#ifdef __cplusplus
15817extern "C"
15818#endif
15819char alSourcePlay ();
15820int
15821main ()
15822{
15823return alSourcePlay ();
15824  ;
15825  return 0;
15826}
15827_ACEOF
15828for ac_lib in '' openal; do
15829  if test -z "$ac_lib"; then
15830    ac_res="none required"
15831  else
15832    ac_res=-l$ac_lib
15833    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15834  fi
15835  if ac_fn_c_try_link "$LINENO"; then :
15836  ac_cv_search_alSourcePlay=$ac_res
15837fi
15838rm -f core conftest.err conftest.$ac_objext \
15839    conftest$ac_exeext
15840  if ${ac_cv_search_alSourcePlay+:} false; then :
15841  break
15842fi
15843done
15844if ${ac_cv_search_alSourcePlay+:} false; then :
15845
15846else
15847  ac_cv_search_alSourcePlay=no
15848fi
15849rm conftest.$ac_ext
15850LIBS=$ac_func_search_save_LIBS
15851fi
15852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_alSourcePlay" >&5
15853$as_echo "$ac_cv_search_alSourcePlay" >&6; }
15854ac_res=$ac_cv_search_alSourcePlay
15855if test "$ac_res" != no; then :
15856  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15857
15858else
15859  as_fn_error $? "Can't LÖVE without OpenAL" "$LINENO" 5
15860fi
15861
15862lua=lua
15863
15864# Check whether --with-luajit was given.
15865if test "${with_luajit+set}" = set; then :
15866  withval=$with_luajit; lua=luajit
15867fi
15868
15869
15870# Check whether --with-llvm-lua was given.
15871if test "${with_llvm_lua+set}" = set; then :
15872  withval=$with_llvm_lua; lua=llvm-lua
15873fi
15874
15875
15876if test "$lua" = "lua"; then :
15877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_pcall" >&5
15878$as_echo_n "checking for library containing lua_pcall... " >&6; }
15879if ${ac_cv_search_lua_pcall+:} false; then :
15880  $as_echo_n "(cached) " >&6
15881else
15882  ac_func_search_save_LIBS=$LIBS
15883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885
15886/* Override any GCC internal prototype to avoid an error.
15887   Use char because int might match the return type of a GCC
15888   builtin and then its argument prototype would still apply.  */
15889#ifdef __cplusplus
15890extern "C"
15891#endif
15892char lua_pcall ();
15893int
15894main ()
15895{
15896return lua_pcall ();
15897  ;
15898  return 0;
15899}
15900_ACEOF
15901for ac_lib in '' lua lua-5.1; do
15902  if test -z "$ac_lib"; then
15903    ac_res="none required"
15904  else
15905    ac_res=-l$ac_lib
15906    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15907  fi
15908  if ac_fn_c_try_link "$LINENO"; then :
15909  ac_cv_search_lua_pcall=$ac_res
15910fi
15911rm -f core conftest.err conftest.$ac_objext \
15912    conftest$ac_exeext
15913  if ${ac_cv_search_lua_pcall+:} false; then :
15914  break
15915fi
15916done
15917if ${ac_cv_search_lua_pcall+:} false; then :
15918
15919else
15920  ac_cv_search_lua_pcall=no
15921fi
15922rm conftest.$ac_ext
15923LIBS=$ac_func_search_save_LIBS
15924fi
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_pcall" >&5
15926$as_echo "$ac_cv_search_lua_pcall" >&6; }
15927ac_res=$ac_cv_search_lua_pcall
15928if test "$ac_res" != no; then :
15929  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15930  if test "$ac_cv_search_lua_pcall" = "-llua-5.1"; then
15931			INCLUDE_LUA=-I/usr/include/lua-5.1
15932
15933		fi
15934else
15935  as_fn_error $? "Can't LÖVE without Lua" "$LINENO" 5
15936
15937fi
15938
15939
15940fi
15941if test "$lua" = "luajit"; then :
15942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_pcall" >&5
15943$as_echo_n "checking for library containing lua_pcall... " >&6; }
15944if ${ac_cv_search_lua_pcall+:} false; then :
15945  $as_echo_n "(cached) " >&6
15946else
15947  ac_func_search_save_LIBS=$LIBS
15948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949/* end confdefs.h.  */
15950
15951/* Override any GCC internal prototype to avoid an error.
15952   Use char because int might match the return type of a GCC
15953   builtin and then its argument prototype would still apply.  */
15954#ifdef __cplusplus
15955extern "C"
15956#endif
15957char lua_pcall ();
15958int
15959main ()
15960{
15961return lua_pcall ();
15962  ;
15963  return 0;
15964}
15965_ACEOF
15966for ac_lib in '' luajit luajit-5.1; do
15967  if test -z "$ac_lib"; then
15968    ac_res="none required"
15969  else
15970    ac_res=-l$ac_lib
15971    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15972  fi
15973  if ac_fn_c_try_link "$LINENO"; then :
15974  ac_cv_search_lua_pcall=$ac_res
15975fi
15976rm -f core conftest.err conftest.$ac_objext \
15977    conftest$ac_exeext
15978  if ${ac_cv_search_lua_pcall+:} false; then :
15979  break
15980fi
15981done
15982if ${ac_cv_search_lua_pcall+:} false; then :
15983
15984else
15985  ac_cv_search_lua_pcall=no
15986fi
15987rm conftest.$ac_ext
15988LIBS=$ac_func_search_save_LIBS
15989fi
15990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_pcall" >&5
15991$as_echo "$ac_cv_search_lua_pcall" >&6; }
15992ac_res=$ac_cv_search_lua_pcall
15993if test "$ac_res" != no; then :
15994  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15995  INCLUDE_LUA=-I/usr/include/luajit-2.0
15996
15997else
15998  as_fn_error $? "Can't LÖVE without LuaJIT" "$LINENO" 5
15999
16000fi
16001
16002
16003fi
16004if test "$lua" = "llvm-lua"; then :
16005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_pcall" >&5
16006$as_echo_n "checking for library containing lua_pcall... " >&6; }
16007if ${ac_cv_search_lua_pcall+:} false; then :
16008  $as_echo_n "(cached) " >&6
16009else
16010  ac_func_search_save_LIBS=$LIBS
16011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013
16014/* Override any GCC internal prototype to avoid an error.
16015   Use char because int might match the return type of a GCC
16016   builtin and then its argument prototype would still apply.  */
16017#ifdef __cplusplus
16018extern "C"
16019#endif
16020char lua_pcall ();
16021int
16022main ()
16023{
16024return lua_pcall ();
16025  ;
16026  return 0;
16027}
16028_ACEOF
16029for ac_lib in '' llvm-lua; do
16030  if test -z "$ac_lib"; then
16031    ac_res="none required"
16032  else
16033    ac_res=-l$ac_lib
16034    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16035  fi
16036  if ac_fn_c_try_link "$LINENO"; then :
16037  ac_cv_search_lua_pcall=$ac_res
16038fi
16039rm -f core conftest.err conftest.$ac_objext \
16040    conftest$ac_exeext
16041  if ${ac_cv_search_lua_pcall+:} false; then :
16042  break
16043fi
16044done
16045if ${ac_cv_search_lua_pcall+:} false; then :
16046
16047else
16048  ac_cv_search_lua_pcall=no
16049fi
16050rm conftest.$ac_ext
16051LIBS=$ac_func_search_save_LIBS
16052fi
16053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_pcall" >&5
16054$as_echo "$ac_cv_search_lua_pcall" >&6; }
16055ac_res=$ac_cv_search_lua_pcall
16056if test "$ac_res" != no; then :
16057  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16058
16059else
16060  as_fn_error $? "Can't LÖVE without llvm-lua" "$LINENO" 5
16061
16062fi
16063
16064
16065fi
16066
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ilInit" >&5
16068$as_echo_n "checking for library containing ilInit... " >&6; }
16069if ${ac_cv_search_ilInit+:} false; then :
16070  $as_echo_n "(cached) " >&6
16071else
16072  ac_func_search_save_LIBS=$LIBS
16073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074/* end confdefs.h.  */
16075
16076/* Override any GCC internal prototype to avoid an error.
16077   Use char because int might match the return type of a GCC
16078   builtin and then its argument prototype would still apply.  */
16079#ifdef __cplusplus
16080extern "C"
16081#endif
16082char ilInit ();
16083int
16084main ()
16085{
16086return ilInit ();
16087  ;
16088  return 0;
16089}
16090_ACEOF
16091for ac_lib in '' IL; do
16092  if test -z "$ac_lib"; then
16093    ac_res="none required"
16094  else
16095    ac_res=-l$ac_lib
16096    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16097  fi
16098  if ac_fn_c_try_link "$LINENO"; then :
16099  ac_cv_search_ilInit=$ac_res
16100fi
16101rm -f core conftest.err conftest.$ac_objext \
16102    conftest$ac_exeext
16103  if ${ac_cv_search_ilInit+:} false; then :
16104  break
16105fi
16106done
16107if ${ac_cv_search_ilInit+:} false; then :
16108
16109else
16110  ac_cv_search_ilInit=no
16111fi
16112rm conftest.$ac_ext
16113LIBS=$ac_func_search_save_LIBS
16114fi
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ilInit" >&5
16116$as_echo "$ac_cv_search_ilInit" >&6; }
16117ac_res=$ac_cv_search_ilInit
16118if test "$ac_res" != no; then :
16119  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16120
16121else
16122  as_fn_error $? "Can't LÖVE without DevIL" "$LINENO" 5
16123fi
16124
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing FT_Load_Glyph" >&5
16126$as_echo_n "checking for library containing FT_Load_Glyph... " >&6; }
16127if ${ac_cv_search_FT_Load_Glyph+:} false; then :
16128  $as_echo_n "(cached) " >&6
16129else
16130  ac_func_search_save_LIBS=$LIBS
16131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132/* end confdefs.h.  */
16133
16134/* Override any GCC internal prototype to avoid an error.
16135   Use char because int might match the return type of a GCC
16136   builtin and then its argument prototype would still apply.  */
16137#ifdef __cplusplus
16138extern "C"
16139#endif
16140char FT_Load_Glyph ();
16141int
16142main ()
16143{
16144return FT_Load_Glyph ();
16145  ;
16146  return 0;
16147}
16148_ACEOF
16149for ac_lib in '' freetype; do
16150  if test -z "$ac_lib"; then
16151    ac_res="none required"
16152  else
16153    ac_res=-l$ac_lib
16154    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16155  fi
16156  if ac_fn_c_try_link "$LINENO"; then :
16157  ac_cv_search_FT_Load_Glyph=$ac_res
16158fi
16159rm -f core conftest.err conftest.$ac_objext \
16160    conftest$ac_exeext
16161  if ${ac_cv_search_FT_Load_Glyph+:} false; then :
16162  break
16163fi
16164done
16165if ${ac_cv_search_FT_Load_Glyph+:} false; then :
16166
16167else
16168  ac_cv_search_FT_Load_Glyph=no
16169fi
16170rm conftest.$ac_ext
16171LIBS=$ac_func_search_save_LIBS
16172fi
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_FT_Load_Glyph" >&5
16174$as_echo "$ac_cv_search_FT_Load_Glyph" >&6; }
16175ac_res=$ac_cv_search_FT_Load_Glyph
16176if test "$ac_res" != no; then :
16177  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16178
16179else
16180  as_fn_error $? "Can't LÖVE without FreeType" "$LINENO" 5
16181fi
16182
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PHYSFS_init" >&5
16184$as_echo_n "checking for library containing PHYSFS_init... " >&6; }
16185if ${ac_cv_search_PHYSFS_init+:} false; then :
16186  $as_echo_n "(cached) " >&6
16187else
16188  ac_func_search_save_LIBS=$LIBS
16189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190/* end confdefs.h.  */
16191
16192/* Override any GCC internal prototype to avoid an error.
16193   Use char because int might match the return type of a GCC
16194   builtin and then its argument prototype would still apply.  */
16195#ifdef __cplusplus
16196extern "C"
16197#endif
16198char PHYSFS_init ();
16199int
16200main ()
16201{
16202return PHYSFS_init ();
16203  ;
16204  return 0;
16205}
16206_ACEOF
16207for ac_lib in '' physfs; do
16208  if test -z "$ac_lib"; then
16209    ac_res="none required"
16210  else
16211    ac_res=-l$ac_lib
16212    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16213  fi
16214  if ac_fn_c_try_link "$LINENO"; then :
16215  ac_cv_search_PHYSFS_init=$ac_res
16216fi
16217rm -f core conftest.err conftest.$ac_objext \
16218    conftest$ac_exeext
16219  if ${ac_cv_search_PHYSFS_init+:} false; then :
16220  break
16221fi
16222done
16223if ${ac_cv_search_PHYSFS_init+:} false; then :
16224
16225else
16226  ac_cv_search_PHYSFS_init=no
16227fi
16228rm conftest.$ac_ext
16229LIBS=$ac_func_search_save_LIBS
16230fi
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PHYSFS_init" >&5
16232$as_echo "$ac_cv_search_PHYSFS_init" >&6; }
16233ac_res=$ac_cv_search_PHYSFS_init
16234if test "$ac_res" != no; then :
16235  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16236
16237else
16238  as_fn_error $? "Can't LÖVE without PhysicsFS" "$LINENO" 5
16239fi
16240
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ModPlug_Load" >&5
16242$as_echo_n "checking for library containing ModPlug_Load... " >&6; }
16243if ${ac_cv_search_ModPlug_Load+:} false; then :
16244  $as_echo_n "(cached) " >&6
16245else
16246  ac_func_search_save_LIBS=$LIBS
16247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249
16250/* Override any GCC internal prototype to avoid an error.
16251   Use char because int might match the return type of a GCC
16252   builtin and then its argument prototype would still apply.  */
16253#ifdef __cplusplus
16254extern "C"
16255#endif
16256char ModPlug_Load ();
16257int
16258main ()
16259{
16260return ModPlug_Load ();
16261  ;
16262  return 0;
16263}
16264_ACEOF
16265for ac_lib in '' modplug; do
16266  if test -z "$ac_lib"; then
16267    ac_res="none required"
16268  else
16269    ac_res=-l$ac_lib
16270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16271  fi
16272  if ac_fn_c_try_link "$LINENO"; then :
16273  ac_cv_search_ModPlug_Load=$ac_res
16274fi
16275rm -f core conftest.err conftest.$ac_objext \
16276    conftest$ac_exeext
16277  if ${ac_cv_search_ModPlug_Load+:} false; then :
16278  break
16279fi
16280done
16281if ${ac_cv_search_ModPlug_Load+:} false; then :
16282
16283else
16284  ac_cv_search_ModPlug_Load=no
16285fi
16286rm conftest.$ac_ext
16287LIBS=$ac_func_search_save_LIBS
16288fi
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ModPlug_Load" >&5
16290$as_echo "$ac_cv_search_ModPlug_Load" >&6; }
16291ac_res=$ac_cv_search_ModPlug_Load
16292if test "$ac_res" != no; then :
16293  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16294
16295else
16296  as_fn_error $? "Can't LÖVE without ModPlug" "$LINENO" 5
16297fi
16298
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mpg123_open_feed" >&5
16300$as_echo_n "checking for library containing mpg123_open_feed... " >&6; }
16301if ${ac_cv_search_mpg123_open_feed+:} false; then :
16302  $as_echo_n "(cached) " >&6
16303else
16304  ac_func_search_save_LIBS=$LIBS
16305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307
16308/* Override any GCC internal prototype to avoid an error.
16309   Use char because int might match the return type of a GCC
16310   builtin and then its argument prototype would still apply.  */
16311#ifdef __cplusplus
16312extern "C"
16313#endif
16314char mpg123_open_feed ();
16315int
16316main ()
16317{
16318return mpg123_open_feed ();
16319  ;
16320  return 0;
16321}
16322_ACEOF
16323for ac_lib in '' mpg123; do
16324  if test -z "$ac_lib"; then
16325    ac_res="none required"
16326  else
16327    ac_res=-l$ac_lib
16328    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16329  fi
16330  if ac_fn_c_try_link "$LINENO"; then :
16331  ac_cv_search_mpg123_open_feed=$ac_res
16332fi
16333rm -f core conftest.err conftest.$ac_objext \
16334    conftest$ac_exeext
16335  if ${ac_cv_search_mpg123_open_feed+:} false; then :
16336  break
16337fi
16338done
16339if ${ac_cv_search_mpg123_open_feed+:} false; then :
16340
16341else
16342  ac_cv_search_mpg123_open_feed=no
16343fi
16344rm conftest.$ac_ext
16345LIBS=$ac_func_search_save_LIBS
16346fi
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mpg123_open_feed" >&5
16348$as_echo "$ac_cv_search_mpg123_open_feed" >&6; }
16349ac_res=$ac_cv_search_mpg123_open_feed
16350if test "$ac_res" != no; then :
16351  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16352
16353else
16354  as_fn_error $? "Can't LÖVE without Mpg123" "$LINENO" 5
16355fi
16356
16357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mpg123_seek_64" >&5
16358$as_echo_n "checking for library containing mpg123_seek_64... " >&6; }
16359if ${ac_cv_search_mpg123_seek_64+:} false; then :
16360  $as_echo_n "(cached) " >&6
16361else
16362  ac_func_search_save_LIBS=$LIBS
16363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h.  */
16365
16366/* Override any GCC internal prototype to avoid an error.
16367   Use char because int might match the return type of a GCC
16368   builtin and then its argument prototype would still apply.  */
16369#ifdef __cplusplus
16370extern "C"
16371#endif
16372char mpg123_seek_64 ();
16373int
16374main ()
16375{
16376return mpg123_seek_64 ();
16377  ;
16378  return 0;
16379}
16380_ACEOF
16381for ac_lib in '' mpg123; do
16382  if test -z "$ac_lib"; then
16383    ac_res="none required"
16384  else
16385    ac_res=-l$ac_lib
16386    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16387  fi
16388  if ac_fn_c_try_link "$LINENO"; then :
16389  ac_cv_search_mpg123_seek_64=$ac_res
16390fi
16391rm -f core conftest.err conftest.$ac_objext \
16392    conftest$ac_exeext
16393  if ${ac_cv_search_mpg123_seek_64+:} false; then :
16394  break
16395fi
16396done
16397if ${ac_cv_search_mpg123_seek_64+:} false; then :
16398
16399else
16400  ac_cv_search_mpg123_seek_64=no
16401fi
16402rm conftest.$ac_ext
16403LIBS=$ac_func_search_save_LIBS
16404fi
16405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mpg123_seek_64" >&5
16406$as_echo "$ac_cv_search_mpg123_seek_64" >&6; }
16407ac_res=$ac_cv_search_mpg123_seek_64
16408if test "$ac_res" != no; then :
16409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16410  FILE_OFFSET=-D_FILE_OFFSET_BITS=64
16411
16412fi
16413
16414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ov_open" >&5
16415$as_echo_n "checking for library containing ov_open... " >&6; }
16416if ${ac_cv_search_ov_open+:} false; then :
16417  $as_echo_n "(cached) " >&6
16418else
16419  ac_func_search_save_LIBS=$LIBS
16420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h.  */
16422
16423/* Override any GCC internal prototype to avoid an error.
16424   Use char because int might match the return type of a GCC
16425   builtin and then its argument prototype would still apply.  */
16426#ifdef __cplusplus
16427extern "C"
16428#endif
16429char ov_open ();
16430int
16431main ()
16432{
16433return ov_open ();
16434  ;
16435  return 0;
16436}
16437_ACEOF
16438for ac_lib in '' vorbisfile; do
16439  if test -z "$ac_lib"; then
16440    ac_res="none required"
16441  else
16442    ac_res=-l$ac_lib
16443    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16444  fi
16445  if ac_fn_c_try_link "$LINENO"; then :
16446  ac_cv_search_ov_open=$ac_res
16447fi
16448rm -f core conftest.err conftest.$ac_objext \
16449    conftest$ac_exeext
16450  if ${ac_cv_search_ov_open+:} false; then :
16451  break
16452fi
16453done
16454if ${ac_cv_search_ov_open+:} false; then :
16455
16456else
16457  ac_cv_search_ov_open=no
16458fi
16459rm conftest.$ac_ext
16460LIBS=$ac_func_search_save_LIBS
16461fi
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ov_open" >&5
16463$as_echo "$ac_cv_search_ov_open" >&6; }
16464ac_res=$ac_cv_search_ov_open
16465if test "$ac_res" != no; then :
16466  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16467
16468else
16469  as_fn_error $? "Can't LÖVE without VorbisFile" "$LINENO" 5
16470fi
16471
16472# Check whether --enable-headless was given.
16473if test "${enable_headless+set}" = set; then :
16474  enableval=$enable_headless;
16475$as_echo "#define LOVE_HEADLESS /**/" >>confdefs.h
16476
16477fi
16478
16479ac_config_files="$ac_config_files Makefile src/Makefile"
16480
16481cat >confcache <<\_ACEOF
16482# This file is a shell script that caches the results of configure
16483# tests run on this system so they can be shared between configure
16484# scripts and configure runs, see configure's option --config-cache.
16485# It is not useful on other systems.  If it contains results you don't
16486# want to keep, you may remove or edit it.
16487#
16488# config.status only pays attention to the cache file if you give it
16489# the --recheck option to rerun configure.
16490#
16491# `ac_cv_env_foo' variables (set or unset) will be overridden when
16492# loading this file, other *unset* `ac_cv_foo' will be assigned the
16493# following values.
16494
16495_ACEOF
16496
16497# The following way of writing the cache mishandles newlines in values,
16498# but we know of no workaround that is simple, portable, and efficient.
16499# So, we kill variables containing newlines.
16500# Ultrix sh set writes to stderr and can't be redirected directly,
16501# and sets the high bit in the cache file unless we assign to the vars.
16502(
16503  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16504    eval ac_val=\$$ac_var
16505    case $ac_val in #(
16506    *${as_nl}*)
16507      case $ac_var in #(
16508      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16509$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16510      esac
16511      case $ac_var in #(
16512      _ | IFS | as_nl) ;; #(
16513      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16514      *) { eval $ac_var=; unset $ac_var;} ;;
16515      esac ;;
16516    esac
16517  done
16518
16519  (set) 2>&1 |
16520    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16521    *${as_nl}ac_space=\ *)
16522      # `set' does not quote correctly, so add quotes: double-quote
16523      # substitution turns \\\\ into \\, and sed turns \\ into \.
16524      sed -n \
16525	"s/'/'\\\\''/g;
16526	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16527      ;; #(
16528    *)
16529      # `set' quotes correctly as required by POSIX, so do not add quotes.
16530      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16531      ;;
16532    esac |
16533    sort
16534) |
16535  sed '
16536     /^ac_cv_env_/b end
16537     t clear
16538     :clear
16539     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16540     t end
16541     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16542     :end' >>confcache
16543if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16544  if test -w "$cache_file"; then
16545    if test "x$cache_file" != "x/dev/null"; then
16546      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16547$as_echo "$as_me: updating cache $cache_file" >&6;}
16548      if test ! -f "$cache_file" || test -h "$cache_file"; then
16549	cat confcache >"$cache_file"
16550      else
16551        case $cache_file in #(
16552        */* | ?:*)
16553	  mv -f confcache "$cache_file"$$ &&
16554	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16555        *)
16556	  mv -f confcache "$cache_file" ;;
16557	esac
16558      fi
16559    fi
16560  else
16561    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16562$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16563  fi
16564fi
16565rm -f confcache
16566
16567test "x$prefix" = xNONE && prefix=$ac_default_prefix
16568# Let make expand exec_prefix.
16569test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16570
16571DEFS=-DHAVE_CONFIG_H
16572
16573ac_libobjs=
16574ac_ltlibobjs=
16575U=
16576for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16577  # 1. Remove the extension, and $U if already installed.
16578  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16579  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16580  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16581  #    will be set to the directory where LIBOBJS objects are built.
16582  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16583  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16584done
16585LIBOBJS=$ac_libobjs
16586
16587LTLIBOBJS=$ac_ltlibobjs
16588
16589
16590 if test -n "$EXEEXT"; then
16591  am__EXEEXT_TRUE=
16592  am__EXEEXT_FALSE='#'
16593else
16594  am__EXEEXT_TRUE='#'
16595  am__EXEEXT_FALSE=
16596fi
16597
16598if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16599  as_fn_error $? "conditional \"AMDEP\" was never defined.
16600Usually this means the macro was only invoked conditionally." "$LINENO" 5
16601fi
16602if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16603  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16604Usually this means the macro was only invoked conditionally." "$LINENO" 5
16605fi
16606if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16607  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16608Usually this means the macro was only invoked conditionally." "$LINENO" 5
16609fi
16610if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16611  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16612Usually this means the macro was only invoked conditionally." "$LINENO" 5
16613fi
16614
16615: "${CONFIG_STATUS=./config.status}"
16616ac_write_fail=0
16617ac_clean_files_save=$ac_clean_files
16618ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16620$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16621as_write_fail=0
16622cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16623#! $SHELL
16624# Generated by $as_me.
16625# Run this file to recreate the current configuration.
16626# Compiler output produced by configure, useful for debugging
16627# configure, is in config.log if it exists.
16628
16629debug=false
16630ac_cs_recheck=false
16631ac_cs_silent=false
16632
16633SHELL=\${CONFIG_SHELL-$SHELL}
16634export SHELL
16635_ASEOF
16636cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16637## -------------------- ##
16638## M4sh Initialization. ##
16639## -------------------- ##
16640
16641# Be more Bourne compatible
16642DUALCASE=1; export DUALCASE # for MKS sh
16643if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16644  emulate sh
16645  NULLCMD=:
16646  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16647  # is contrary to our usage.  Disable this feature.
16648  alias -g '${1+"$@"}'='"$@"'
16649  setopt NO_GLOB_SUBST
16650else
16651  case `(set -o) 2>/dev/null` in #(
16652  *posix*) :
16653    set -o posix ;; #(
16654  *) :
16655     ;;
16656esac
16657fi
16658
16659
16660as_nl='
16661'
16662export as_nl
16663# Printing a long string crashes Solaris 7 /usr/bin/printf.
16664as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16667# Prefer a ksh shell builtin over an external printf program on Solaris,
16668# but without wasting forks for bash or zsh.
16669if test -z "$BASH_VERSION$ZSH_VERSION" \
16670    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16671  as_echo='print -r --'
16672  as_echo_n='print -rn --'
16673elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16674  as_echo='printf %s\n'
16675  as_echo_n='printf %s'
16676else
16677  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16678    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16679    as_echo_n='/usr/ucb/echo -n'
16680  else
16681    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16682    as_echo_n_body='eval
16683      arg=$1;
16684      case $arg in #(
16685      *"$as_nl"*)
16686	expr "X$arg" : "X\\(.*\\)$as_nl";
16687	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16688      esac;
16689      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16690    '
16691    export as_echo_n_body
16692    as_echo_n='sh -c $as_echo_n_body as_echo'
16693  fi
16694  export as_echo_body
16695  as_echo='sh -c $as_echo_body as_echo'
16696fi
16697
16698# The user is always right.
16699if test "${PATH_SEPARATOR+set}" != set; then
16700  PATH_SEPARATOR=:
16701  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16702    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16703      PATH_SEPARATOR=';'
16704  }
16705fi
16706
16707
16708# IFS
16709# We need space, tab and new line, in precisely that order.  Quoting is
16710# there to prevent editors from complaining about space-tab.
16711# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16712# splitting by setting IFS to empty value.)
16713IFS=" ""	$as_nl"
16714
16715# Find who we are.  Look in the path if we contain no directory separator.
16716as_myself=
16717case $0 in #((
16718  *[\\/]* ) as_myself=$0 ;;
16719  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720for as_dir in $PATH
16721do
16722  IFS=$as_save_IFS
16723  test -z "$as_dir" && as_dir=.
16724    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16725  done
16726IFS=$as_save_IFS
16727
16728     ;;
16729esac
16730# We did not find ourselves, most probably we were run as `sh COMMAND'
16731# in which case we are not to be found in the path.
16732if test "x$as_myself" = x; then
16733  as_myself=$0
16734fi
16735if test ! -f "$as_myself"; then
16736  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16737  exit 1
16738fi
16739
16740# Unset variables that we do not need and which cause bugs (e.g. in
16741# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16742# suppresses any "Segmentation fault" message there.  '((' could
16743# trigger a bug in pdksh 5.2.14.
16744for as_var in BASH_ENV ENV MAIL MAILPATH
16745do eval test x\${$as_var+set} = xset \
16746  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16747done
16748PS1='$ '
16749PS2='> '
16750PS4='+ '
16751
16752# NLS nuisances.
16753LC_ALL=C
16754export LC_ALL
16755LANGUAGE=C
16756export LANGUAGE
16757
16758# CDPATH.
16759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16760
16761
16762# as_fn_error STATUS ERROR [LINENO LOG_FD]
16763# ----------------------------------------
16764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16766# script with STATUS, using 1 if that was 0.
16767as_fn_error ()
16768{
16769  as_status=$1; test $as_status -eq 0 && as_status=1
16770  if test "$4"; then
16771    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16772    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16773  fi
16774  $as_echo "$as_me: error: $2" >&2
16775  as_fn_exit $as_status
16776} # as_fn_error
16777
16778
16779# as_fn_set_status STATUS
16780# -----------------------
16781# Set $? to STATUS, without forking.
16782as_fn_set_status ()
16783{
16784  return $1
16785} # as_fn_set_status
16786
16787# as_fn_exit STATUS
16788# -----------------
16789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16790as_fn_exit ()
16791{
16792  set +e
16793  as_fn_set_status $1
16794  exit $1
16795} # as_fn_exit
16796
16797# as_fn_unset VAR
16798# ---------------
16799# Portably unset VAR.
16800as_fn_unset ()
16801{
16802  { eval $1=; unset $1;}
16803}
16804as_unset=as_fn_unset
16805# as_fn_append VAR VALUE
16806# ----------------------
16807# Append the text in VALUE to the end of the definition contained in VAR. Take
16808# advantage of any shell optimizations that allow amortized linear growth over
16809# repeated appends, instead of the typical quadratic growth present in naive
16810# implementations.
16811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16812  eval 'as_fn_append ()
16813  {
16814    eval $1+=\$2
16815  }'
16816else
16817  as_fn_append ()
16818  {
16819    eval $1=\$$1\$2
16820  }
16821fi # as_fn_append
16822
16823# as_fn_arith ARG...
16824# ------------------
16825# Perform arithmetic evaluation on the ARGs, and store the result in the
16826# global $as_val. Take advantage of shells that can avoid forks. The arguments
16827# must be portable across $(()) and expr.
16828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16829  eval 'as_fn_arith ()
16830  {
16831    as_val=$(( $* ))
16832  }'
16833else
16834  as_fn_arith ()
16835  {
16836    as_val=`expr "$@" || test $? -eq 1`
16837  }
16838fi # as_fn_arith
16839
16840
16841if expr a : '\(a\)' >/dev/null 2>&1 &&
16842   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16843  as_expr=expr
16844else
16845  as_expr=false
16846fi
16847
16848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16849  as_basename=basename
16850else
16851  as_basename=false
16852fi
16853
16854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16855  as_dirname=dirname
16856else
16857  as_dirname=false
16858fi
16859
16860as_me=`$as_basename -- "$0" ||
16861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16862	 X"$0" : 'X\(//\)$' \| \
16863	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16864$as_echo X/"$0" |
16865    sed '/^.*\/\([^/][^/]*\)\/*$/{
16866	    s//\1/
16867	    q
16868	  }
16869	  /^X\/\(\/\/\)$/{
16870	    s//\1/
16871	    q
16872	  }
16873	  /^X\/\(\/\).*/{
16874	    s//\1/
16875	    q
16876	  }
16877	  s/.*/./; q'`
16878
16879# Avoid depending upon Character Ranges.
16880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16883as_cr_digits='0123456789'
16884as_cr_alnum=$as_cr_Letters$as_cr_digits
16885
16886ECHO_C= ECHO_N= ECHO_T=
16887case `echo -n x` in #(((((
16888-n*)
16889  case `echo 'xy\c'` in
16890  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16891  xy)  ECHO_C='\c';;
16892  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16893       ECHO_T='	';;
16894  esac;;
16895*)
16896  ECHO_N='-n';;
16897esac
16898
16899rm -f conf$$ conf$$.exe conf$$.file
16900if test -d conf$$.dir; then
16901  rm -f conf$$.dir/conf$$.file
16902else
16903  rm -f conf$$.dir
16904  mkdir conf$$.dir 2>/dev/null
16905fi
16906if (echo >conf$$.file) 2>/dev/null; then
16907  if ln -s conf$$.file conf$$ 2>/dev/null; then
16908    as_ln_s='ln -s'
16909    # ... but there are two gotchas:
16910    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16911    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16912    # In both cases, we have to default to `cp -p'.
16913    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16914      as_ln_s='cp -p'
16915  elif ln conf$$.file conf$$ 2>/dev/null; then
16916    as_ln_s=ln
16917  else
16918    as_ln_s='cp -p'
16919  fi
16920else
16921  as_ln_s='cp -p'
16922fi
16923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16924rmdir conf$$.dir 2>/dev/null
16925
16926
16927# as_fn_mkdir_p
16928# -------------
16929# Create "$as_dir" as a directory, including parents if necessary.
16930as_fn_mkdir_p ()
16931{
16932
16933  case $as_dir in #(
16934  -*) as_dir=./$as_dir;;
16935  esac
16936  test -d "$as_dir" || eval $as_mkdir_p || {
16937    as_dirs=
16938    while :; do
16939      case $as_dir in #(
16940      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16941      *) as_qdir=$as_dir;;
16942      esac
16943      as_dirs="'$as_qdir' $as_dirs"
16944      as_dir=`$as_dirname -- "$as_dir" ||
16945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16946	 X"$as_dir" : 'X\(//\)[^/]' \| \
16947	 X"$as_dir" : 'X\(//\)$' \| \
16948	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16949$as_echo X"$as_dir" |
16950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16951	    s//\1/
16952	    q
16953	  }
16954	  /^X\(\/\/\)[^/].*/{
16955	    s//\1/
16956	    q
16957	  }
16958	  /^X\(\/\/\)$/{
16959	    s//\1/
16960	    q
16961	  }
16962	  /^X\(\/\).*/{
16963	    s//\1/
16964	    q
16965	  }
16966	  s/.*/./; q'`
16967      test -d "$as_dir" && break
16968    done
16969    test -z "$as_dirs" || eval "mkdir $as_dirs"
16970  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16971
16972
16973} # as_fn_mkdir_p
16974if mkdir -p . 2>/dev/null; then
16975  as_mkdir_p='mkdir -p "$as_dir"'
16976else
16977  test -d ./-p && rmdir ./-p
16978  as_mkdir_p=false
16979fi
16980
16981if test -x / >/dev/null 2>&1; then
16982  as_test_x='test -x'
16983else
16984  if ls -dL / >/dev/null 2>&1; then
16985    as_ls_L_option=L
16986  else
16987    as_ls_L_option=
16988  fi
16989  as_test_x='
16990    eval sh -c '\''
16991      if test -d "$1"; then
16992	test -d "$1/.";
16993      else
16994	case $1 in #(
16995	-*)set "./$1";;
16996	esac;
16997	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16998	???[sx]*):;;*)false;;esac;fi
16999    '\'' sh
17000  '
17001fi
17002as_executable_p=$as_test_x
17003
17004# Sed expression to map a string onto a valid CPP name.
17005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17006
17007# Sed expression to map a string onto a valid variable name.
17008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17009
17010
17011exec 6>&1
17012## ----------------------------------- ##
17013## Main body of $CONFIG_STATUS script. ##
17014## ----------------------------------- ##
17015_ASEOF
17016test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17017
17018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17019# Save the log message, to keep $0 and so on meaningful, and to
17020# report actual input values of CONFIG_FILES etc. instead of their
17021# values after options handling.
17022ac_log="
17023This file was extended by love $as_me 0.8.0, which was
17024generated by GNU Autoconf 2.68.  Invocation command line was
17025
17026  CONFIG_FILES    = $CONFIG_FILES
17027  CONFIG_HEADERS  = $CONFIG_HEADERS
17028  CONFIG_LINKS    = $CONFIG_LINKS
17029  CONFIG_COMMANDS = $CONFIG_COMMANDS
17030  $ $0 $@
17031
17032on `(hostname || uname -n) 2>/dev/null | sed 1q`
17033"
17034
17035_ACEOF
17036
17037case $ac_config_files in *"
17038"*) set x $ac_config_files; shift; ac_config_files=$*;;
17039esac
17040
17041case $ac_config_headers in *"
17042"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17043esac
17044
17045
17046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047# Files that config.status was made for.
17048config_files="$ac_config_files"
17049config_headers="$ac_config_headers"
17050config_commands="$ac_config_commands"
17051
17052_ACEOF
17053
17054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055ac_cs_usage="\
17056\`$as_me' instantiates files and other configuration actions
17057from templates according to the current configuration.  Unless the files
17058and actions are specified as TAGs, all are instantiated by default.
17059
17060Usage: $0 [OPTION]... [TAG]...
17061
17062  -h, --help       print this help, then exit
17063  -V, --version    print version number and configuration settings, then exit
17064      --config     print configuration, then exit
17065  -q, --quiet, --silent
17066                   do not print progress messages
17067  -d, --debug      don't remove temporary files
17068      --recheck    update $as_me by reconfiguring in the same conditions
17069      --file=FILE[:TEMPLATE]
17070                   instantiate the configuration file FILE
17071      --header=FILE[:TEMPLATE]
17072                   instantiate the configuration header FILE
17073
17074Configuration files:
17075$config_files
17076
17077Configuration headers:
17078$config_headers
17079
17080Configuration commands:
17081$config_commands
17082
17083Report bugs to the package provider."
17084
17085_ACEOF
17086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17087ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17088ac_cs_version="\\
17089love config.status 0.8.0
17090configured by $0, generated by GNU Autoconf 2.68,
17091  with options \\"\$ac_cs_config\\"
17092
17093Copyright (C) 2010 Free Software Foundation, Inc.
17094This config.status script is free software; the Free Software Foundation
17095gives unlimited permission to copy, distribute and modify it."
17096
17097ac_pwd='$ac_pwd'
17098srcdir='$srcdir'
17099INSTALL='$INSTALL'
17100MKDIR_P='$MKDIR_P'
17101AWK='$AWK'
17102test -n "\$AWK" || AWK=awk
17103_ACEOF
17104
17105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17106# The default lists apply if the user does not specify any file.
17107ac_need_defaults=:
17108while test $# != 0
17109do
17110  case $1 in
17111  --*=?*)
17112    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17113    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17114    ac_shift=:
17115    ;;
17116  --*=)
17117    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17118    ac_optarg=
17119    ac_shift=:
17120    ;;
17121  *)
17122    ac_option=$1
17123    ac_optarg=$2
17124    ac_shift=shift
17125    ;;
17126  esac
17127
17128  case $ac_option in
17129  # Handling of the options.
17130  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17131    ac_cs_recheck=: ;;
17132  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17133    $as_echo "$ac_cs_version"; exit ;;
17134  --config | --confi | --conf | --con | --co | --c )
17135    $as_echo "$ac_cs_config"; exit ;;
17136  --debug | --debu | --deb | --de | --d | -d )
17137    debug=: ;;
17138  --file | --fil | --fi | --f )
17139    $ac_shift
17140    case $ac_optarg in
17141    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17142    '') as_fn_error $? "missing file argument" ;;
17143    esac
17144    as_fn_append CONFIG_FILES " '$ac_optarg'"
17145    ac_need_defaults=false;;
17146  --header | --heade | --head | --hea )
17147    $ac_shift
17148    case $ac_optarg in
17149    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17150    esac
17151    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17152    ac_need_defaults=false;;
17153  --he | --h)
17154    # Conflict between --help and --header
17155    as_fn_error $? "ambiguous option: \`$1'
17156Try \`$0 --help' for more information.";;
17157  --help | --hel | -h )
17158    $as_echo "$ac_cs_usage"; exit ;;
17159  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17160  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17161    ac_cs_silent=: ;;
17162
17163  # This is an error.
17164  -*) as_fn_error $? "unrecognized option: \`$1'
17165Try \`$0 --help' for more information." ;;
17166
17167  *) as_fn_append ac_config_targets " $1"
17168     ac_need_defaults=false ;;
17169
17170  esac
17171  shift
17172done
17173
17174ac_configure_extra_args=
17175
17176if $ac_cs_silent; then
17177  exec 6>/dev/null
17178  ac_configure_extra_args="$ac_configure_extra_args --silent"
17179fi
17180
17181_ACEOF
17182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17183if \$ac_cs_recheck; then
17184  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17185  shift
17186  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17187  CONFIG_SHELL='$SHELL'
17188  export CONFIG_SHELL
17189  exec "\$@"
17190fi
17191
17192_ACEOF
17193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17194exec 5>>config.log
17195{
17196  echo
17197  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17198## Running $as_me. ##
17199_ASBOX
17200  $as_echo "$ac_log"
17201} >&5
17202
17203_ACEOF
17204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17205#
17206# INIT-COMMANDS
17207#
17208AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17209
17210
17211# The HP-UX ksh and POSIX shell print the target directory to stdout
17212# if CDPATH is set.
17213(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17214
17215sed_quote_subst='$sed_quote_subst'
17216double_quote_subst='$double_quote_subst'
17217delay_variable_subst='$delay_variable_subst'
17218macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17219macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17220enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17221enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17222pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17223enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17224SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17225ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17226PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17227host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17228host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17229host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17230build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17231build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17232build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17233SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17234Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17235GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17236EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17237FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17238LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17239NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17240LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17241max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17242ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17243exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17244lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17245lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17246lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17247lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17248lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17249reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17250reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17251OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17252deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17253file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17254file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17255want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17256DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17257sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17258AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17259AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17260archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17261STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17262RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17263old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17264old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17265old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17266lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17267CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17268CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17269compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17270GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17271lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17272lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17273lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17274lt_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"`'
17275nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17276lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17277objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17278MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17279lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17280lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17281lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17282lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17283lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17284need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17285MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17286DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17287NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17288LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17289OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17290OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17291libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17292shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17293extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17294archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17295enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17296export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17297whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17298compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17299old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17300old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17301archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17302archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17303module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17304module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17305with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17306allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17307no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17308hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17309hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17310hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17311hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17312hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17313hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17314hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17315inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17316link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17317always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17318export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17319exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17320include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17321prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17322postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17323file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17324variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17325need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17326need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17327version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17328runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17329shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17330shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17331libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17332library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17333soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17334install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17335postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17336postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17337finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17338finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17339hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17340sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17341sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17342hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17343enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17344enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17345enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17346old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17347striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17348compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17349predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17350postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17351predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17352postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17353compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17354LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17355reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17356reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17357old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17358compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17359GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17360lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17361lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17362lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17363lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17364lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17365archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17366enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17367export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17368whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17369compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17370old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17371old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17372archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17373archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17374module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17375module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17376with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17377allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17378no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17379hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17380hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17381hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17382hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17383hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17384hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17385hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17386inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17387link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17388always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17389export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17390exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17391include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17392prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17393postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17394file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17395hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17396compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17397predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17398postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17399predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17400postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17401compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17402
17403LTCC='$LTCC'
17404LTCFLAGS='$LTCFLAGS'
17405compiler='$compiler_DEFAULT'
17406
17407# A function that is used when there is no print builtin or printf.
17408func_fallback_echo ()
17409{
17410  eval 'cat <<_LTECHO_EOF
17411\$1
17412_LTECHO_EOF'
17413}
17414
17415# Quote evaled strings.
17416for var in SHELL \
17417ECHO \
17418PATH_SEPARATOR \
17419SED \
17420GREP \
17421EGREP \
17422FGREP \
17423LD \
17424NM \
17425LN_S \
17426lt_SP2NL \
17427lt_NL2SP \
17428reload_flag \
17429OBJDUMP \
17430deplibs_check_method \
17431file_magic_cmd \
17432file_magic_glob \
17433want_nocaseglob \
17434DLLTOOL \
17435sharedlib_from_linklib_cmd \
17436AR \
17437AR_FLAGS \
17438archiver_list_spec \
17439STRIP \
17440RANLIB \
17441CC \
17442CFLAGS \
17443compiler \
17444lt_cv_sys_global_symbol_pipe \
17445lt_cv_sys_global_symbol_to_cdecl \
17446lt_cv_sys_global_symbol_to_c_name_address \
17447lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17448nm_file_list_spec \
17449lt_prog_compiler_no_builtin_flag \
17450lt_prog_compiler_pic \
17451lt_prog_compiler_wl \
17452lt_prog_compiler_static \
17453lt_cv_prog_compiler_c_o \
17454need_locks \
17455MANIFEST_TOOL \
17456DSYMUTIL \
17457NMEDIT \
17458LIPO \
17459OTOOL \
17460OTOOL64 \
17461shrext_cmds \
17462export_dynamic_flag_spec \
17463whole_archive_flag_spec \
17464compiler_needs_object \
17465with_gnu_ld \
17466allow_undefined_flag \
17467no_undefined_flag \
17468hardcode_libdir_flag_spec \
17469hardcode_libdir_separator \
17470exclude_expsyms \
17471include_expsyms \
17472file_list_spec \
17473variables_saved_for_relink \
17474libname_spec \
17475library_names_spec \
17476soname_spec \
17477install_override_mode \
17478finish_eval \
17479old_striplib \
17480striplib \
17481compiler_lib_search_dirs \
17482predep_objects \
17483postdep_objects \
17484predeps \
17485postdeps \
17486compiler_lib_search_path \
17487LD_CXX \
17488reload_flag_CXX \
17489compiler_CXX \
17490lt_prog_compiler_no_builtin_flag_CXX \
17491lt_prog_compiler_pic_CXX \
17492lt_prog_compiler_wl_CXX \
17493lt_prog_compiler_static_CXX \
17494lt_cv_prog_compiler_c_o_CXX \
17495export_dynamic_flag_spec_CXX \
17496whole_archive_flag_spec_CXX \
17497compiler_needs_object_CXX \
17498with_gnu_ld_CXX \
17499allow_undefined_flag_CXX \
17500no_undefined_flag_CXX \
17501hardcode_libdir_flag_spec_CXX \
17502hardcode_libdir_separator_CXX \
17503exclude_expsyms_CXX \
17504include_expsyms_CXX \
17505file_list_spec_CXX \
17506compiler_lib_search_dirs_CXX \
17507predep_objects_CXX \
17508postdep_objects_CXX \
17509predeps_CXX \
17510postdeps_CXX \
17511compiler_lib_search_path_CXX; do
17512    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17513    *[\\\\\\\`\\"\\\$]*)
17514      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17515      ;;
17516    *)
17517      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17518      ;;
17519    esac
17520done
17521
17522# Double-quote double-evaled strings.
17523for var in reload_cmds \
17524old_postinstall_cmds \
17525old_postuninstall_cmds \
17526old_archive_cmds \
17527extract_expsyms_cmds \
17528old_archive_from_new_cmds \
17529old_archive_from_expsyms_cmds \
17530archive_cmds \
17531archive_expsym_cmds \
17532module_cmds \
17533module_expsym_cmds \
17534export_symbols_cmds \
17535prelink_cmds \
17536postlink_cmds \
17537postinstall_cmds \
17538postuninstall_cmds \
17539finish_cmds \
17540sys_lib_search_path_spec \
17541sys_lib_dlsearch_path_spec \
17542reload_cmds_CXX \
17543old_archive_cmds_CXX \
17544old_archive_from_new_cmds_CXX \
17545old_archive_from_expsyms_cmds_CXX \
17546archive_cmds_CXX \
17547archive_expsym_cmds_CXX \
17548module_cmds_CXX \
17549module_expsym_cmds_CXX \
17550export_symbols_cmds_CXX \
17551prelink_cmds_CXX \
17552postlink_cmds_CXX; do
17553    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17554    *[\\\\\\\`\\"\\\$]*)
17555      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17556      ;;
17557    *)
17558      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17559      ;;
17560    esac
17561done
17562
17563ac_aux_dir='$ac_aux_dir'
17564xsi_shell='$xsi_shell'
17565lt_shell_append='$lt_shell_append'
17566
17567# See if we are running on zsh, and set the options which allow our
17568# commands through without removal of \ escapes INIT.
17569if test -n "\${ZSH_VERSION+set}" ; then
17570   setopt NO_GLOB_SUBST
17571fi
17572
17573
17574    PACKAGE='$PACKAGE'
17575    VERSION='$VERSION'
17576    TIMESTAMP='$TIMESTAMP'
17577    RM='$RM'
17578    ofile='$ofile'
17579
17580
17581
17582
17583
17584
17585_ACEOF
17586
17587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17588
17589# Handling of arguments.
17590for ac_config_target in $ac_config_targets
17591do
17592  case $ac_config_target in
17593    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17594    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17595    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17596    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17597    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17598
17599  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17600  esac
17601done
17602
17603
17604# If the user did not use the arguments to specify the items to instantiate,
17605# then the envvar interface is used.  Set only those that are not.
17606# We use the long form for the default assignment because of an extremely
17607# bizarre bug on SunOS 4.1.3.
17608if $ac_need_defaults; then
17609  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17610  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17611  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17612fi
17613
17614# Have a temporary directory for convenience.  Make it in the build tree
17615# simply because there is no reason against having it here, and in addition,
17616# creating and moving files from /tmp can sometimes cause problems.
17617# Hook for its removal unless debugging.
17618# Note that there is a small window in which the directory will not be cleaned:
17619# after its creation but before its name has been assigned to `$tmp'.
17620$debug ||
17621{
17622  tmp= ac_tmp=
17623  trap 'exit_status=$?
17624  : "${ac_tmp:=$tmp}"
17625  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17626' 0
17627  trap 'as_fn_exit 1' 1 2 13 15
17628}
17629# Create a (secure) tmp directory for tmp files.
17630
17631{
17632  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17633  test -d "$tmp"
17634}  ||
17635{
17636  tmp=./conf$$-$RANDOM
17637  (umask 077 && mkdir "$tmp")
17638} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17639ac_tmp=$tmp
17640
17641# Set up the scripts for CONFIG_FILES section.
17642# No need to generate them if there are no CONFIG_FILES.
17643# This happens for instance with `./config.status config.h'.
17644if test -n "$CONFIG_FILES"; then
17645
17646
17647ac_cr=`echo X | tr X '\015'`
17648# On cygwin, bash can eat \r inside `` if the user requested igncr.
17649# But we know of no other shell where ac_cr would be empty at this
17650# point, so we can use a bashism as a fallback.
17651if test "x$ac_cr" = x; then
17652  eval ac_cr=\$\'\\r\'
17653fi
17654ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17655if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17656  ac_cs_awk_cr='\\r'
17657else
17658  ac_cs_awk_cr=$ac_cr
17659fi
17660
17661echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17662_ACEOF
17663
17664
17665{
17666  echo "cat >conf$$subs.awk <<_ACEOF" &&
17667  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17668  echo "_ACEOF"
17669} >conf$$subs.sh ||
17670  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17671ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17672ac_delim='%!_!# '
17673for ac_last_try in false false false false false :; do
17674  . ./conf$$subs.sh ||
17675    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17676
17677  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17678  if test $ac_delim_n = $ac_delim_num; then
17679    break
17680  elif $ac_last_try; then
17681    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17682  else
17683    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17684  fi
17685done
17686rm -f conf$$subs.sh
17687
17688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17689cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17690_ACEOF
17691sed -n '
17692h
17693s/^/S["/; s/!.*/"]=/
17694p
17695g
17696s/^[^!]*!//
17697:repl
17698t repl
17699s/'"$ac_delim"'$//
17700t delim
17701:nl
17702h
17703s/\(.\{148\}\)..*/\1/
17704t more1
17705s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17706p
17707n
17708b repl
17709:more1
17710s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17711p
17712g
17713s/.\{148\}//
17714t nl
17715:delim
17716h
17717s/\(.\{148\}\)..*/\1/
17718t more2
17719s/["\\]/\\&/g; s/^/"/; s/$/"/
17720p
17721b
17722:more2
17723s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17724p
17725g
17726s/.\{148\}//
17727t delim
17728' <conf$$subs.awk | sed '
17729/^[^""]/{
17730  N
17731  s/\n//
17732}
17733' >>$CONFIG_STATUS || ac_write_fail=1
17734rm -f conf$$subs.awk
17735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17736_ACAWK
17737cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17738  for (key in S) S_is_set[key] = 1
17739  FS = ""
17740
17741}
17742{
17743  line = $ 0
17744  nfields = split(line, field, "@")
17745  substed = 0
17746  len = length(field[1])
17747  for (i = 2; i < nfields; i++) {
17748    key = field[i]
17749    keylen = length(key)
17750    if (S_is_set[key]) {
17751      value = S[key]
17752      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17753      len += length(value) + length(field[++i])
17754      substed = 1
17755    } else
17756      len += 1 + keylen
17757  }
17758
17759  print line
17760}
17761
17762_ACAWK
17763_ACEOF
17764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17766  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17767else
17768  cat
17769fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17770  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17771_ACEOF
17772
17773# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17774# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17775# trailing colons and then remove the whole line if VPATH becomes empty
17776# (actually we leave an empty line to preserve line numbers).
17777if test "x$srcdir" = x.; then
17778  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17779h
17780s///
17781s/^/:/
17782s/[	 ]*$/:/
17783s/:\$(srcdir):/:/g
17784s/:\${srcdir}:/:/g
17785s/:@srcdir@:/:/g
17786s/^:*//
17787s/:*$//
17788x
17789s/\(=[	 ]*\).*/\1/
17790G
17791s/\n//
17792s/^[^=]*=[	 ]*$//
17793}'
17794fi
17795
17796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17797fi # test -n "$CONFIG_FILES"
17798
17799# Set up the scripts for CONFIG_HEADERS section.
17800# No need to generate them if there are no CONFIG_HEADERS.
17801# This happens for instance with `./config.status Makefile'.
17802if test -n "$CONFIG_HEADERS"; then
17803cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17804BEGIN {
17805_ACEOF
17806
17807# Transform confdefs.h into an awk script `defines.awk', embedded as
17808# here-document in config.status, that substitutes the proper values into
17809# config.h.in to produce config.h.
17810
17811# Create a delimiter string that does not exist in confdefs.h, to ease
17812# handling of long lines.
17813ac_delim='%!_!# '
17814for ac_last_try in false false :; do
17815  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17816  if test -z "$ac_tt"; then
17817    break
17818  elif $ac_last_try; then
17819    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17820  else
17821    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17822  fi
17823done
17824
17825# For the awk script, D is an array of macro values keyed by name,
17826# likewise P contains macro parameters if any.  Preserve backslash
17827# newline sequences.
17828
17829ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17830sed -n '
17831s/.\{148\}/&'"$ac_delim"'/g
17832t rset
17833:rset
17834s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17835t def
17836d
17837:def
17838s/\\$//
17839t bsnl
17840s/["\\]/\\&/g
17841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17842D["\1"]=" \3"/p
17843s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17844d
17845:bsnl
17846s/["\\]/\\&/g
17847s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17848D["\1"]=" \3\\\\\\n"\\/p
17849t cont
17850s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17851t cont
17852d
17853:cont
17854n
17855s/.\{148\}/&'"$ac_delim"'/g
17856t clear
17857:clear
17858s/\\$//
17859t bsnlc
17860s/["\\]/\\&/g; s/^/"/; s/$/"/p
17861d
17862:bsnlc
17863s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17864b cont
17865' <confdefs.h | sed '
17866s/'"$ac_delim"'/"\\\
17867"/g' >>$CONFIG_STATUS || ac_write_fail=1
17868
17869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17870  for (key in D) D_is_set[key] = 1
17871  FS = ""
17872}
17873/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17874  line = \$ 0
17875  split(line, arg, " ")
17876  if (arg[1] == "#") {
17877    defundef = arg[2]
17878    mac1 = arg[3]
17879  } else {
17880    defundef = substr(arg[1], 2)
17881    mac1 = arg[2]
17882  }
17883  split(mac1, mac2, "(") #)
17884  macro = mac2[1]
17885  prefix = substr(line, 1, index(line, defundef) - 1)
17886  if (D_is_set[macro]) {
17887    # Preserve the white space surrounding the "#".
17888    print prefix "define", macro P[macro] D[macro]
17889    next
17890  } else {
17891    # Replace #undef with comments.  This is necessary, for example,
17892    # in the case of _POSIX_SOURCE, which is predefined and required
17893    # on some systems where configure will not decide to define it.
17894    if (defundef == "undef") {
17895      print "/*", prefix defundef, macro, "*/"
17896      next
17897    }
17898  }
17899}
17900{ print }
17901_ACAWK
17902_ACEOF
17903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17904  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17905fi # test -n "$CONFIG_HEADERS"
17906
17907
17908eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17909shift
17910for ac_tag
17911do
17912  case $ac_tag in
17913  :[FHLC]) ac_mode=$ac_tag; continue;;
17914  esac
17915  case $ac_mode$ac_tag in
17916  :[FHL]*:*);;
17917  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17918  :[FH]-) ac_tag=-:-;;
17919  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17920  esac
17921  ac_save_IFS=$IFS
17922  IFS=:
17923  set x $ac_tag
17924  IFS=$ac_save_IFS
17925  shift
17926  ac_file=$1
17927  shift
17928
17929  case $ac_mode in
17930  :L) ac_source=$1;;
17931  :[FH])
17932    ac_file_inputs=
17933    for ac_f
17934    do
17935      case $ac_f in
17936      -) ac_f="$ac_tmp/stdin";;
17937      *) # Look for the file first in the build tree, then in the source tree
17938	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17939	 # because $ac_f cannot contain `:'.
17940	 test -f "$ac_f" ||
17941	   case $ac_f in
17942	   [\\/$]*) false;;
17943	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17944	   esac ||
17945	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17946      esac
17947      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17948      as_fn_append ac_file_inputs " '$ac_f'"
17949    done
17950
17951    # Let's still pretend it is `configure' which instantiates (i.e., don't
17952    # use $as_me), people would be surprised to read:
17953    #    /* config.h.  Generated by config.status.  */
17954    configure_input='Generated from '`
17955	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17956	`' by configure.'
17957    if test x"$ac_file" != x-; then
17958      configure_input="$ac_file.  $configure_input"
17959      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17960$as_echo "$as_me: creating $ac_file" >&6;}
17961    fi
17962    # Neutralize special characters interpreted by sed in replacement strings.
17963    case $configure_input in #(
17964    *\&* | *\|* | *\\* )
17965       ac_sed_conf_input=`$as_echo "$configure_input" |
17966       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17967    *) ac_sed_conf_input=$configure_input;;
17968    esac
17969
17970    case $ac_tag in
17971    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17972      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17973    esac
17974    ;;
17975  esac
17976
17977  ac_dir=`$as_dirname -- "$ac_file" ||
17978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17979	 X"$ac_file" : 'X\(//\)[^/]' \| \
17980	 X"$ac_file" : 'X\(//\)$' \| \
17981	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17982$as_echo X"$ac_file" |
17983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17984	    s//\1/
17985	    q
17986	  }
17987	  /^X\(\/\/\)[^/].*/{
17988	    s//\1/
17989	    q
17990	  }
17991	  /^X\(\/\/\)$/{
17992	    s//\1/
17993	    q
17994	  }
17995	  /^X\(\/\).*/{
17996	    s//\1/
17997	    q
17998	  }
17999	  s/.*/./; q'`
18000  as_dir="$ac_dir"; as_fn_mkdir_p
18001  ac_builddir=.
18002
18003case "$ac_dir" in
18004.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18005*)
18006  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18007  # A ".." for each directory in $ac_dir_suffix.
18008  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18009  case $ac_top_builddir_sub in
18010  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18011  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18012  esac ;;
18013esac
18014ac_abs_top_builddir=$ac_pwd
18015ac_abs_builddir=$ac_pwd$ac_dir_suffix
18016# for backward compatibility:
18017ac_top_builddir=$ac_top_build_prefix
18018
18019case $srcdir in
18020  .)  # We are building in place.
18021    ac_srcdir=.
18022    ac_top_srcdir=$ac_top_builddir_sub
18023    ac_abs_top_srcdir=$ac_pwd ;;
18024  [\\/]* | ?:[\\/]* )  # Absolute name.
18025    ac_srcdir=$srcdir$ac_dir_suffix;
18026    ac_top_srcdir=$srcdir
18027    ac_abs_top_srcdir=$srcdir ;;
18028  *) # Relative name.
18029    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18030    ac_top_srcdir=$ac_top_build_prefix$srcdir
18031    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18032esac
18033ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18034
18035
18036  case $ac_mode in
18037  :F)
18038  #
18039  # CONFIG_FILE
18040  #
18041
18042  case $INSTALL in
18043  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18044  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18045  esac
18046  ac_MKDIR_P=$MKDIR_P
18047  case $MKDIR_P in
18048  [\\/$]* | ?:[\\/]* ) ;;
18049  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18050  esac
18051_ACEOF
18052
18053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054# If the template does not know about datarootdir, expand it.
18055# FIXME: This hack should be removed a few years after 2.60.
18056ac_datarootdir_hack=; ac_datarootdir_seen=
18057ac_sed_dataroot='
18058/datarootdir/ {
18059  p
18060  q
18061}
18062/@datadir@/p
18063/@docdir@/p
18064/@infodir@/p
18065/@localedir@/p
18066/@mandir@/p'
18067case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18068*datarootdir*) ac_datarootdir_seen=yes;;
18069*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18070  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18071$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18072_ACEOF
18073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18074  ac_datarootdir_hack='
18075  s&@datadir@&$datadir&g
18076  s&@docdir@&$docdir&g
18077  s&@infodir@&$infodir&g
18078  s&@localedir@&$localedir&g
18079  s&@mandir@&$mandir&g
18080  s&\\\${datarootdir}&$datarootdir&g' ;;
18081esac
18082_ACEOF
18083
18084# Neutralize VPATH when `$srcdir' = `.'.
18085# Shell code in configure.ac might set extrasub.
18086# FIXME: do we really want to maintain this feature?
18087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18088ac_sed_extra="$ac_vpsub
18089$extrasub
18090_ACEOF
18091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18092:t
18093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18094s|@configure_input@|$ac_sed_conf_input|;t t
18095s&@top_builddir@&$ac_top_builddir_sub&;t t
18096s&@top_build_prefix@&$ac_top_build_prefix&;t t
18097s&@srcdir@&$ac_srcdir&;t t
18098s&@abs_srcdir@&$ac_abs_srcdir&;t t
18099s&@top_srcdir@&$ac_top_srcdir&;t t
18100s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18101s&@builddir@&$ac_builddir&;t t
18102s&@abs_builddir@&$ac_abs_builddir&;t t
18103s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18104s&@INSTALL@&$ac_INSTALL&;t t
18105s&@MKDIR_P@&$ac_MKDIR_P&;t t
18106$ac_datarootdir_hack
18107"
18108eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18109  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18110
18111test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18112  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18113  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18114      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18115  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18116which seems to be undefined.  Please make sure it is defined" >&5
18117$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18118which seems to be undefined.  Please make sure it is defined" >&2;}
18119
18120  rm -f "$ac_tmp/stdin"
18121  case $ac_file in
18122  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18123  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18124  esac \
18125  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18126 ;;
18127  :H)
18128  #
18129  # CONFIG_HEADER
18130  #
18131  if test x"$ac_file" != x-; then
18132    {
18133      $as_echo "/* $configure_input  */" \
18134      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18135    } >"$ac_tmp/config.h" \
18136      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18137    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18138      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18139$as_echo "$as_me: $ac_file is unchanged" >&6;}
18140    else
18141      rm -f "$ac_file"
18142      mv "$ac_tmp/config.h" "$ac_file" \
18143	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18144    fi
18145  else
18146    $as_echo "/* $configure_input  */" \
18147      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18148      || as_fn_error $? "could not create -" "$LINENO" 5
18149  fi
18150# Compute "$ac_file"'s index in $config_headers.
18151_am_arg="$ac_file"
18152_am_stamp_count=1
18153for _am_header in $config_headers :; do
18154  case $_am_header in
18155    $_am_arg | $_am_arg:* )
18156      break ;;
18157    * )
18158      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18159  esac
18160done
18161echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18162$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18163	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18164	 X"$_am_arg" : 'X\(//\)$' \| \
18165	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18166$as_echo X"$_am_arg" |
18167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18168	    s//\1/
18169	    q
18170	  }
18171	  /^X\(\/\/\)[^/].*/{
18172	    s//\1/
18173	    q
18174	  }
18175	  /^X\(\/\/\)$/{
18176	    s//\1/
18177	    q
18178	  }
18179	  /^X\(\/\).*/{
18180	    s//\1/
18181	    q
18182	  }
18183	  s/.*/./; q'`/stamp-h$_am_stamp_count
18184 ;;
18185
18186  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18187$as_echo "$as_me: executing $ac_file commands" >&6;}
18188 ;;
18189  esac
18190
18191
18192  case $ac_file$ac_mode in
18193    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18194  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18195  # are listed without --file.  Let's play safe and only enable the eval
18196  # if we detect the quoting.
18197  case $CONFIG_FILES in
18198  *\'*) eval set x "$CONFIG_FILES" ;;
18199  *)   set x $CONFIG_FILES ;;
18200  esac
18201  shift
18202  for mf
18203  do
18204    # Strip MF so we end up with the name of the file.
18205    mf=`echo "$mf" | sed -e 's/:.*$//'`
18206    # Check whether this is an Automake generated Makefile or not.
18207    # We used to match only the files named `Makefile.in', but
18208    # some people rename them; so instead we look at the file content.
18209    # Grep'ing the first line is not enough: some people post-process
18210    # each Makefile.in and add a new line on top of each file to say so.
18211    # Grep'ing the whole file is not good either: AIX grep has a line
18212    # limit of 2048, but all sed's we know have understand at least 4000.
18213    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18214      dirpart=`$as_dirname -- "$mf" ||
18215$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18216	 X"$mf" : 'X\(//\)[^/]' \| \
18217	 X"$mf" : 'X\(//\)$' \| \
18218	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18219$as_echo X"$mf" |
18220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18221	    s//\1/
18222	    q
18223	  }
18224	  /^X\(\/\/\)[^/].*/{
18225	    s//\1/
18226	    q
18227	  }
18228	  /^X\(\/\/\)$/{
18229	    s//\1/
18230	    q
18231	  }
18232	  /^X\(\/\).*/{
18233	    s//\1/
18234	    q
18235	  }
18236	  s/.*/./; q'`
18237    else
18238      continue
18239    fi
18240    # Extract the definition of DEPDIR, am__include, and am__quote
18241    # from the Makefile without running `make'.
18242    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18243    test -z "$DEPDIR" && continue
18244    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18245    test -z "am__include" && continue
18246    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18247    # When using ansi2knr, U may be empty or an underscore; expand it
18248    U=`sed -n 's/^U = //p' < "$mf"`
18249    # Find all dependency output files, they are included files with
18250    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18251    # simplest approach to changing $(DEPDIR) to its actual value in the
18252    # expansion.
18253    for file in `sed -n "
18254      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18255	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18256      # Make sure the directory exists.
18257      test -f "$dirpart/$file" && continue
18258      fdir=`$as_dirname -- "$file" ||
18259$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260	 X"$file" : 'X\(//\)[^/]' \| \
18261	 X"$file" : 'X\(//\)$' \| \
18262	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18263$as_echo X"$file" |
18264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18265	    s//\1/
18266	    q
18267	  }
18268	  /^X\(\/\/\)[^/].*/{
18269	    s//\1/
18270	    q
18271	  }
18272	  /^X\(\/\/\)$/{
18273	    s//\1/
18274	    q
18275	  }
18276	  /^X\(\/\).*/{
18277	    s//\1/
18278	    q
18279	  }
18280	  s/.*/./; q'`
18281      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18282      # echo "creating $dirpart/$file"
18283      echo '# dummy' > "$dirpart/$file"
18284    done
18285  done
18286}
18287 ;;
18288    "libtool":C)
18289
18290    # See if we are running on zsh, and set the options which allow our
18291    # commands through without removal of \ escapes.
18292    if test -n "${ZSH_VERSION+set}" ; then
18293      setopt NO_GLOB_SUBST
18294    fi
18295
18296    cfgfile="${ofile}T"
18297    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18298    $RM "$cfgfile"
18299
18300    cat <<_LT_EOF >> "$cfgfile"
18301#! $SHELL
18302
18303# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18304# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18305# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18307#
18308#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18309#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18310#                 Foundation, Inc.
18311#   Written by Gordon Matzigkeit, 1996
18312#
18313#   This file is part of GNU Libtool.
18314#
18315# GNU Libtool is free software; you can redistribute it and/or
18316# modify it under the terms of the GNU General Public License as
18317# published by the Free Software Foundation; either version 2 of
18318# the License, or (at your option) any later version.
18319#
18320# As a special exception to the GNU General Public License,
18321# if you distribute this file as part of a program or library that
18322# is built using GNU Libtool, you may include this file under the
18323# same distribution terms that you use for the rest of that program.
18324#
18325# GNU Libtool is distributed in the hope that it will be useful,
18326# but WITHOUT ANY WARRANTY; without even the implied warranty of
18327# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18328# GNU General Public License for more details.
18329#
18330# You should have received a copy of the GNU General Public License
18331# along with GNU Libtool; see the file COPYING.  If not, a copy
18332# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18333# obtained by writing to the Free Software Foundation, Inc.,
18334# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18335
18336
18337# The names of the tagged configurations supported by this script.
18338available_tags="CXX "
18339
18340# ### BEGIN LIBTOOL CONFIG
18341
18342# Which release of libtool.m4 was used?
18343macro_version=$macro_version
18344macro_revision=$macro_revision
18345
18346# Whether or not to build shared libraries.
18347build_libtool_libs=$enable_shared
18348
18349# Whether or not to build static libraries.
18350build_old_libs=$enable_static
18351
18352# What type of objects to build.
18353pic_mode=$pic_mode
18354
18355# Whether or not to optimize for fast installation.
18356fast_install=$enable_fast_install
18357
18358# Shell to use when invoking shell scripts.
18359SHELL=$lt_SHELL
18360
18361# An echo program that protects backslashes.
18362ECHO=$lt_ECHO
18363
18364# The PATH separator for the build system.
18365PATH_SEPARATOR=$lt_PATH_SEPARATOR
18366
18367# The host system.
18368host_alias=$host_alias
18369host=$host
18370host_os=$host_os
18371
18372# The build system.
18373build_alias=$build_alias
18374build=$build
18375build_os=$build_os
18376
18377# A sed program that does not truncate output.
18378SED=$lt_SED
18379
18380# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18381Xsed="\$SED -e 1s/^X//"
18382
18383# A grep program that handles long lines.
18384GREP=$lt_GREP
18385
18386# An ERE matcher.
18387EGREP=$lt_EGREP
18388
18389# A literal string matcher.
18390FGREP=$lt_FGREP
18391
18392# A BSD- or MS-compatible name lister.
18393NM=$lt_NM
18394
18395# Whether we need soft or hard links.
18396LN_S=$lt_LN_S
18397
18398# What is the maximum length of a command?
18399max_cmd_len=$max_cmd_len
18400
18401# Object file suffix (normally "o").
18402objext=$ac_objext
18403
18404# Executable file suffix (normally "").
18405exeext=$exeext
18406
18407# whether the shell understands "unset".
18408lt_unset=$lt_unset
18409
18410# turn spaces into newlines.
18411SP2NL=$lt_lt_SP2NL
18412
18413# turn newlines into spaces.
18414NL2SP=$lt_lt_NL2SP
18415
18416# convert \$build file names to \$host format.
18417to_host_file_cmd=$lt_cv_to_host_file_cmd
18418
18419# convert \$build files to toolchain format.
18420to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18421
18422# An object symbol dumper.
18423OBJDUMP=$lt_OBJDUMP
18424
18425# Method to check whether dependent libraries are shared objects.
18426deplibs_check_method=$lt_deplibs_check_method
18427
18428# Command to use when deplibs_check_method = "file_magic".
18429file_magic_cmd=$lt_file_magic_cmd
18430
18431# How to find potential files when deplibs_check_method = "file_magic".
18432file_magic_glob=$lt_file_magic_glob
18433
18434# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18435want_nocaseglob=$lt_want_nocaseglob
18436
18437# DLL creation program.
18438DLLTOOL=$lt_DLLTOOL
18439
18440# Command to associate shared and link libraries.
18441sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18442
18443# The archiver.
18444AR=$lt_AR
18445
18446# Flags to create an archive.
18447AR_FLAGS=$lt_AR_FLAGS
18448
18449# How to feed a file listing to the archiver.
18450archiver_list_spec=$lt_archiver_list_spec
18451
18452# A symbol stripping program.
18453STRIP=$lt_STRIP
18454
18455# Commands used to install an old-style archive.
18456RANLIB=$lt_RANLIB
18457old_postinstall_cmds=$lt_old_postinstall_cmds
18458old_postuninstall_cmds=$lt_old_postuninstall_cmds
18459
18460# Whether to use a lock for old archive extraction.
18461lock_old_archive_extraction=$lock_old_archive_extraction
18462
18463# A C compiler.
18464LTCC=$lt_CC
18465
18466# LTCC compiler flags.
18467LTCFLAGS=$lt_CFLAGS
18468
18469# Take the output of nm and produce a listing of raw symbols and C names.
18470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18471
18472# Transform the output of nm in a proper C declaration.
18473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18474
18475# Transform the output of nm in a C name address pair.
18476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18477
18478# Transform the output of nm in a C name address pair when lib prefix is needed.
18479global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18480
18481# Specify filename containing input files for \$NM.
18482nm_file_list_spec=$lt_nm_file_list_spec
18483
18484# The root where to search for dependent libraries,and in which our libraries should be installed.
18485lt_sysroot=$lt_sysroot
18486
18487# The name of the directory that contains temporary libtool files.
18488objdir=$objdir
18489
18490# Used to examine libraries when file_magic_cmd begins with "file".
18491MAGIC_CMD=$MAGIC_CMD
18492
18493# Must we lock files when doing compilation?
18494need_locks=$lt_need_locks
18495
18496# Manifest tool.
18497MANIFEST_TOOL=$lt_MANIFEST_TOOL
18498
18499# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18500DSYMUTIL=$lt_DSYMUTIL
18501
18502# Tool to change global to local symbols on Mac OS X.
18503NMEDIT=$lt_NMEDIT
18504
18505# Tool to manipulate fat objects and archives on Mac OS X.
18506LIPO=$lt_LIPO
18507
18508# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18509OTOOL=$lt_OTOOL
18510
18511# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18512OTOOL64=$lt_OTOOL64
18513
18514# Old archive suffix (normally "a").
18515libext=$libext
18516
18517# Shared library suffix (normally ".so").
18518shrext_cmds=$lt_shrext_cmds
18519
18520# The commands to extract the exported symbol list from a shared archive.
18521extract_expsyms_cmds=$lt_extract_expsyms_cmds
18522
18523# Variables whose values should be saved in libtool wrapper scripts and
18524# restored at link time.
18525variables_saved_for_relink=$lt_variables_saved_for_relink
18526
18527# Do we need the "lib" prefix for modules?
18528need_lib_prefix=$need_lib_prefix
18529
18530# Do we need a version for libraries?
18531need_version=$need_version
18532
18533# Library versioning type.
18534version_type=$version_type
18535
18536# Shared library runtime path variable.
18537runpath_var=$runpath_var
18538
18539# Shared library path variable.
18540shlibpath_var=$shlibpath_var
18541
18542# Is shlibpath searched before the hard-coded library search path?
18543shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18544
18545# Format of library name prefix.
18546libname_spec=$lt_libname_spec
18547
18548# List of archive names.  First name is the real one, the rest are links.
18549# The last name is the one that the linker finds with -lNAME
18550library_names_spec=$lt_library_names_spec
18551
18552# The coded name of the library, if different from the real name.
18553soname_spec=$lt_soname_spec
18554
18555# Permission mode override for installation of shared libraries.
18556install_override_mode=$lt_install_override_mode
18557
18558# Command to use after installation of a shared archive.
18559postinstall_cmds=$lt_postinstall_cmds
18560
18561# Command to use after uninstallation of a shared archive.
18562postuninstall_cmds=$lt_postuninstall_cmds
18563
18564# Commands used to finish a libtool library installation in a directory.
18565finish_cmds=$lt_finish_cmds
18566
18567# As "finish_cmds", except a single script fragment to be evaled but
18568# not shown.
18569finish_eval=$lt_finish_eval
18570
18571# Whether we should hardcode library paths into libraries.
18572hardcode_into_libs=$hardcode_into_libs
18573
18574# Compile-time system search path for libraries.
18575sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18576
18577# Run-time system search path for libraries.
18578sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18579
18580# Whether dlopen is supported.
18581dlopen_support=$enable_dlopen
18582
18583# Whether dlopen of programs is supported.
18584dlopen_self=$enable_dlopen_self
18585
18586# Whether dlopen of statically linked programs is supported.
18587dlopen_self_static=$enable_dlopen_self_static
18588
18589# Commands to strip libraries.
18590old_striplib=$lt_old_striplib
18591striplib=$lt_striplib
18592
18593
18594# The linker used to build libraries.
18595LD=$lt_LD
18596
18597# How to create reloadable object files.
18598reload_flag=$lt_reload_flag
18599reload_cmds=$lt_reload_cmds
18600
18601# Commands used to build an old-style archive.
18602old_archive_cmds=$lt_old_archive_cmds
18603
18604# A language specific compiler.
18605CC=$lt_compiler
18606
18607# Is the compiler the GNU compiler?
18608with_gcc=$GCC
18609
18610# Compiler flag to turn off builtin functions.
18611no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18612
18613# Additional compiler flags for building library objects.
18614pic_flag=$lt_lt_prog_compiler_pic
18615
18616# How to pass a linker flag through the compiler.
18617wl=$lt_lt_prog_compiler_wl
18618
18619# Compiler flag to prevent dynamic linking.
18620link_static_flag=$lt_lt_prog_compiler_static
18621
18622# Does compiler simultaneously support -c and -o options?
18623compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18624
18625# Whether or not to add -lc for building shared libraries.
18626build_libtool_need_lc=$archive_cmds_need_lc
18627
18628# Whether or not to disallow shared libs when runtime libs are static.
18629allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18630
18631# Compiler flag to allow reflexive dlopens.
18632export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18633
18634# Compiler flag to generate shared objects directly from archives.
18635whole_archive_flag_spec=$lt_whole_archive_flag_spec
18636
18637# Whether the compiler copes with passing no objects directly.
18638compiler_needs_object=$lt_compiler_needs_object
18639
18640# Create an old-style archive from a shared archive.
18641old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18642
18643# Create a temporary old-style archive to link instead of a shared archive.
18644old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18645
18646# Commands used to build a shared archive.
18647archive_cmds=$lt_archive_cmds
18648archive_expsym_cmds=$lt_archive_expsym_cmds
18649
18650# Commands used to build a loadable module if different from building
18651# a shared archive.
18652module_cmds=$lt_module_cmds
18653module_expsym_cmds=$lt_module_expsym_cmds
18654
18655# Whether we are building with GNU ld or not.
18656with_gnu_ld=$lt_with_gnu_ld
18657
18658# Flag that allows shared libraries with undefined symbols to be built.
18659allow_undefined_flag=$lt_allow_undefined_flag
18660
18661# Flag that enforces no undefined symbols.
18662no_undefined_flag=$lt_no_undefined_flag
18663
18664# Flag to hardcode \$libdir into a binary during linking.
18665# This must work even if \$libdir does not exist
18666hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18667
18668# Whether we need a single "-rpath" flag with a separated argument.
18669hardcode_libdir_separator=$lt_hardcode_libdir_separator
18670
18671# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18672# DIR into the resulting binary.
18673hardcode_direct=$hardcode_direct
18674
18675# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18676# DIR into the resulting binary and the resulting library dependency is
18677# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18678# library is relocated.
18679hardcode_direct_absolute=$hardcode_direct_absolute
18680
18681# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18682# into the resulting binary.
18683hardcode_minus_L=$hardcode_minus_L
18684
18685# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18686# into the resulting binary.
18687hardcode_shlibpath_var=$hardcode_shlibpath_var
18688
18689# Set to "yes" if building a shared library automatically hardcodes DIR
18690# into the library and all subsequent libraries and executables linked
18691# against it.
18692hardcode_automatic=$hardcode_automatic
18693
18694# Set to yes if linker adds runtime paths of dependent libraries
18695# to runtime path list.
18696inherit_rpath=$inherit_rpath
18697
18698# Whether libtool must link a program against all its dependency libraries.
18699link_all_deplibs=$link_all_deplibs
18700
18701# Set to "yes" if exported symbols are required.
18702always_export_symbols=$always_export_symbols
18703
18704# The commands to list exported symbols.
18705export_symbols_cmds=$lt_export_symbols_cmds
18706
18707# Symbols that should not be listed in the preloaded symbols.
18708exclude_expsyms=$lt_exclude_expsyms
18709
18710# Symbols that must always be exported.
18711include_expsyms=$lt_include_expsyms
18712
18713# Commands necessary for linking programs (against libraries) with templates.
18714prelink_cmds=$lt_prelink_cmds
18715
18716# Commands necessary for finishing linking programs.
18717postlink_cmds=$lt_postlink_cmds
18718
18719# Specify filename containing input files.
18720file_list_spec=$lt_file_list_spec
18721
18722# How to hardcode a shared library path into an executable.
18723hardcode_action=$hardcode_action
18724
18725# The directories searched by this compiler when creating a shared library.
18726compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18727
18728# Dependencies to place before and after the objects being linked to
18729# create a shared library.
18730predep_objects=$lt_predep_objects
18731postdep_objects=$lt_postdep_objects
18732predeps=$lt_predeps
18733postdeps=$lt_postdeps
18734
18735# The library search path used internally by the compiler when linking
18736# a shared library.
18737compiler_lib_search_path=$lt_compiler_lib_search_path
18738
18739# ### END LIBTOOL CONFIG
18740
18741_LT_EOF
18742
18743  case $host_os in
18744  aix3*)
18745    cat <<\_LT_EOF >> "$cfgfile"
18746# AIX sometimes has problems with the GCC collect2 program.  For some
18747# reason, if we set the COLLECT_NAMES environment variable, the problems
18748# vanish in a puff of smoke.
18749if test "X${COLLECT_NAMES+set}" != Xset; then
18750  COLLECT_NAMES=
18751  export COLLECT_NAMES
18752fi
18753_LT_EOF
18754    ;;
18755  esac
18756
18757
18758ltmain="$ac_aux_dir/ltmain.sh"
18759
18760
18761  # We use sed instead of cat because bash on DJGPP gets confused if
18762  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18763  # text mode, it properly converts lines to CR/LF.  This bash problem
18764  # is reportedly fixed, but why not run on old versions too?
18765  sed '$q' "$ltmain" >> "$cfgfile" \
18766     || (rm -f "$cfgfile"; exit 1)
18767
18768  if test x"$xsi_shell" = xyes; then
18769  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18770func_dirname ()\
18771{\
18772\    case ${1} in\
18773\      */*) func_dirname_result="${1%/*}${2}" ;;\
18774\      *  ) func_dirname_result="${3}" ;;\
18775\    esac\
18776} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18777  && mv -f "$cfgfile.tmp" "$cfgfile" \
18778    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18779test 0 -eq $? || _lt_function_replace_fail=:
18780
18781
18782  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18783func_basename ()\
18784{\
18785\    func_basename_result="${1##*/}"\
18786} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18787  && mv -f "$cfgfile.tmp" "$cfgfile" \
18788    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18789test 0 -eq $? || _lt_function_replace_fail=:
18790
18791
18792  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18793func_dirname_and_basename ()\
18794{\
18795\    case ${1} in\
18796\      */*) func_dirname_result="${1%/*}${2}" ;;\
18797\      *  ) func_dirname_result="${3}" ;;\
18798\    esac\
18799\    func_basename_result="${1##*/}"\
18800} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18801  && mv -f "$cfgfile.tmp" "$cfgfile" \
18802    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18803test 0 -eq $? || _lt_function_replace_fail=:
18804
18805
18806  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18807func_stripname ()\
18808{\
18809\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18810\    # positional parameters, so assign one to ordinary parameter first.\
18811\    func_stripname_result=${3}\
18812\    func_stripname_result=${func_stripname_result#"${1}"}\
18813\    func_stripname_result=${func_stripname_result%"${2}"}\
18814} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18815  && mv -f "$cfgfile.tmp" "$cfgfile" \
18816    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18817test 0 -eq $? || _lt_function_replace_fail=:
18818
18819
18820  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18821func_split_long_opt ()\
18822{\
18823\    func_split_long_opt_name=${1%%=*}\
18824\    func_split_long_opt_arg=${1#*=}\
18825} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18826  && mv -f "$cfgfile.tmp" "$cfgfile" \
18827    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18828test 0 -eq $? || _lt_function_replace_fail=:
18829
18830
18831  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18832func_split_short_opt ()\
18833{\
18834\    func_split_short_opt_arg=${1#??}\
18835\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18836} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18837  && mv -f "$cfgfile.tmp" "$cfgfile" \
18838    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18839test 0 -eq $? || _lt_function_replace_fail=:
18840
18841
18842  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18843func_lo2o ()\
18844{\
18845\    case ${1} in\
18846\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18847\      *)    func_lo2o_result=${1} ;;\
18848\    esac\
18849} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18850  && mv -f "$cfgfile.tmp" "$cfgfile" \
18851    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18852test 0 -eq $? || _lt_function_replace_fail=:
18853
18854
18855  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18856func_xform ()\
18857{\
18858    func_xform_result=${1%.*}.lo\
18859} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18860  && mv -f "$cfgfile.tmp" "$cfgfile" \
18861    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18862test 0 -eq $? || _lt_function_replace_fail=:
18863
18864
18865  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18866func_arith ()\
18867{\
18868    func_arith_result=$(( $* ))\
18869} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18870  && mv -f "$cfgfile.tmp" "$cfgfile" \
18871    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18872test 0 -eq $? || _lt_function_replace_fail=:
18873
18874
18875  sed -e '/^func_len ()$/,/^} # func_len /c\
18876func_len ()\
18877{\
18878    func_len_result=${#1}\
18879} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18880  && mv -f "$cfgfile.tmp" "$cfgfile" \
18881    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18882test 0 -eq $? || _lt_function_replace_fail=:
18883
18884fi
18885
18886if test x"$lt_shell_append" = xyes; then
18887  sed -e '/^func_append ()$/,/^} # func_append /c\
18888func_append ()\
18889{\
18890    eval "${1}+=\\${2}"\
18891} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18892  && mv -f "$cfgfile.tmp" "$cfgfile" \
18893    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18894test 0 -eq $? || _lt_function_replace_fail=:
18895
18896
18897  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18898func_append_quoted ()\
18899{\
18900\    func_quote_for_eval "${2}"\
18901\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18902} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18903  && mv -f "$cfgfile.tmp" "$cfgfile" \
18904    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18905test 0 -eq $? || _lt_function_replace_fail=:
18906
18907
18908  # Save a `func_append' function call where possible by direct use of '+='
18909  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18910    && mv -f "$cfgfile.tmp" "$cfgfile" \
18911      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18912  test 0 -eq $? || _lt_function_replace_fail=:
18913else
18914  # Save a `func_append' function call even when '+=' is not available
18915  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18916    && mv -f "$cfgfile.tmp" "$cfgfile" \
18917      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18918  test 0 -eq $? || _lt_function_replace_fail=:
18919fi
18920
18921if test x"$_lt_function_replace_fail" = x":"; then
18922  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18923$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18924fi
18925
18926
18927   mv -f "$cfgfile" "$ofile" ||
18928    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18929  chmod +x "$ofile"
18930
18931
18932    cat <<_LT_EOF >> "$ofile"
18933
18934# ### BEGIN LIBTOOL TAG CONFIG: CXX
18935
18936# The linker used to build libraries.
18937LD=$lt_LD_CXX
18938
18939# How to create reloadable object files.
18940reload_flag=$lt_reload_flag_CXX
18941reload_cmds=$lt_reload_cmds_CXX
18942
18943# Commands used to build an old-style archive.
18944old_archive_cmds=$lt_old_archive_cmds_CXX
18945
18946# A language specific compiler.
18947CC=$lt_compiler_CXX
18948
18949# Is the compiler the GNU compiler?
18950with_gcc=$GCC_CXX
18951
18952# Compiler flag to turn off builtin functions.
18953no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18954
18955# Additional compiler flags for building library objects.
18956pic_flag=$lt_lt_prog_compiler_pic_CXX
18957
18958# How to pass a linker flag through the compiler.
18959wl=$lt_lt_prog_compiler_wl_CXX
18960
18961# Compiler flag to prevent dynamic linking.
18962link_static_flag=$lt_lt_prog_compiler_static_CXX
18963
18964# Does compiler simultaneously support -c and -o options?
18965compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18966
18967# Whether or not to add -lc for building shared libraries.
18968build_libtool_need_lc=$archive_cmds_need_lc_CXX
18969
18970# Whether or not to disallow shared libs when runtime libs are static.
18971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18972
18973# Compiler flag to allow reflexive dlopens.
18974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18975
18976# Compiler flag to generate shared objects directly from archives.
18977whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18978
18979# Whether the compiler copes with passing no objects directly.
18980compiler_needs_object=$lt_compiler_needs_object_CXX
18981
18982# Create an old-style archive from a shared archive.
18983old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18984
18985# Create a temporary old-style archive to link instead of a shared archive.
18986old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18987
18988# Commands used to build a shared archive.
18989archive_cmds=$lt_archive_cmds_CXX
18990archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18991
18992# Commands used to build a loadable module if different from building
18993# a shared archive.
18994module_cmds=$lt_module_cmds_CXX
18995module_expsym_cmds=$lt_module_expsym_cmds_CXX
18996
18997# Whether we are building with GNU ld or not.
18998with_gnu_ld=$lt_with_gnu_ld_CXX
18999
19000# Flag that allows shared libraries with undefined symbols to be built.
19001allow_undefined_flag=$lt_allow_undefined_flag_CXX
19002
19003# Flag that enforces no undefined symbols.
19004no_undefined_flag=$lt_no_undefined_flag_CXX
19005
19006# Flag to hardcode \$libdir into a binary during linking.
19007# This must work even if \$libdir does not exist
19008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19009
19010# Whether we need a single "-rpath" flag with a separated argument.
19011hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19012
19013# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19014# DIR into the resulting binary.
19015hardcode_direct=$hardcode_direct_CXX
19016
19017# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19018# DIR into the resulting binary and the resulting library dependency is
19019# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19020# library is relocated.
19021hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19022
19023# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19024# into the resulting binary.
19025hardcode_minus_L=$hardcode_minus_L_CXX
19026
19027# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19028# into the resulting binary.
19029hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19030
19031# Set to "yes" if building a shared library automatically hardcodes DIR
19032# into the library and all subsequent libraries and executables linked
19033# against it.
19034hardcode_automatic=$hardcode_automatic_CXX
19035
19036# Set to yes if linker adds runtime paths of dependent libraries
19037# to runtime path list.
19038inherit_rpath=$inherit_rpath_CXX
19039
19040# Whether libtool must link a program against all its dependency libraries.
19041link_all_deplibs=$link_all_deplibs_CXX
19042
19043# Set to "yes" if exported symbols are required.
19044always_export_symbols=$always_export_symbols_CXX
19045
19046# The commands to list exported symbols.
19047export_symbols_cmds=$lt_export_symbols_cmds_CXX
19048
19049# Symbols that should not be listed in the preloaded symbols.
19050exclude_expsyms=$lt_exclude_expsyms_CXX
19051
19052# Symbols that must always be exported.
19053include_expsyms=$lt_include_expsyms_CXX
19054
19055# Commands necessary for linking programs (against libraries) with templates.
19056prelink_cmds=$lt_prelink_cmds_CXX
19057
19058# Commands necessary for finishing linking programs.
19059postlink_cmds=$lt_postlink_cmds_CXX
19060
19061# Specify filename containing input files.
19062file_list_spec=$lt_file_list_spec_CXX
19063
19064# How to hardcode a shared library path into an executable.
19065hardcode_action=$hardcode_action_CXX
19066
19067# The directories searched by this compiler when creating a shared library.
19068compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19069
19070# Dependencies to place before and after the objects being linked to
19071# create a shared library.
19072predep_objects=$lt_predep_objects_CXX
19073postdep_objects=$lt_postdep_objects_CXX
19074predeps=$lt_predeps_CXX
19075postdeps=$lt_postdeps_CXX
19076
19077# The library search path used internally by the compiler when linking
19078# a shared library.
19079compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19080
19081# ### END LIBTOOL TAG CONFIG: CXX
19082_LT_EOF
19083
19084 ;;
19085
19086  esac
19087done # for ac_tag
19088
19089
19090as_fn_exit 0
19091_ACEOF
19092ac_clean_files=$ac_clean_files_save
19093
19094test $ac_write_fail = 0 ||
19095  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19096
19097
19098# configure is writing to config.log, and then calls config.status.
19099# config.status does its own redirection, appending to config.log.
19100# Unfortunately, on DOS this fails, as config.log is still kept open
19101# by configure, so config.status won't be able to write to it; its
19102# output is simply discarded.  So we exec the FD to /dev/null,
19103# effectively closing config.log, so it can be properly (re)opened and
19104# appended to by config.status.  When coming back to configure, we
19105# need to make the FD available again.
19106if test "$no_create" != yes; then
19107  ac_cs_success=:
19108  ac_config_status_args=
19109  test "$silent" = yes &&
19110    ac_config_status_args="$ac_config_status_args --quiet"
19111  exec 5>/dev/null
19112  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19113  exec 5>>config.log
19114  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19115  # would make configure fail if this is the last instruction.
19116  $ac_cs_success || as_fn_exit 1
19117fi
19118if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19119  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19120$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19121fi
19122
19123