1#! /bin/sh
2# From configure.ac Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for ID3 Tag 0.15.1b.
5#
6# Report bugs to <support@underbit.com>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65	expr "X$arg" : "X\\(.*\\)$as_nl";
66	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""	$as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97  *[\\/]* ) as_myself=$0 ;;
98  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101  IFS=$as_save_IFS
102  test -z "$as_dir" && as_dir=.
103    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104  done
105IFS=$as_save_IFS
106
107     ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112  as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116  exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there.  '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142  emulate sh
143  NULLCMD=:
144  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145  # is contrary to our usage.  Disable this feature.
146  alias -g '\${1+\"\$@\"}'='\"\$@\"'
147  setopt NO_GLOB_SUBST
148else
149  case \`(set -o) 2>/dev/null\` in #(
150  *posix*) :
151    set -o posix ;; #(
152  *) :
153     ;;
154esac
155fi
156"
157  as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171  exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179  if (eval "$as_required") 2>/dev/null; then :
180  as_have_required=yes
181else
182  as_have_required=no
183fi
184  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191  IFS=$as_save_IFS
192  test -z "$as_dir" && as_dir=.
193  as_found=:
194  case $as_dir in #(
195	 /*)
196	   for as_base in sh bash ksh sh5; do
197	     # Try only shells that exist, to save several forks.
198	     as_shell=$as_dir/$as_base
199	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  CONFIG_SHELL=$as_shell as_have_required=yes
202		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  break 2
204fi
205fi
206	   done;;
207       esac
208  as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212  CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217      if test "x$CONFIG_SHELL" != x; then :
218  # We cannot yet assume a decent shell, so we have to provide a
219	# neutralization value for shells without unset; and this also
220	# works around shells that cannot unset nonexistent variables.
221	# Preserve -v and -x to the replacement shell.
222	BASH_ENV=/dev/null
223	ENV=/dev/null
224	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225	export CONFIG_SHELL
226	case $- in # ((((
227	  *v*x* | *x*v* ) as_opts=-vx ;;
228	  *v* ) as_opts=-v ;;
229	  *x* ) as_opts=-x ;;
230	  * ) as_opts= ;;
231	esac
232	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234
235    if test x$as_have_required = xno; then :
236  $as_echo "$0: This script requires a shell more modern than all"
237  $as_echo "$0: the shells that I found on your system."
238  if test x${ZSH_VERSION+set} = xset ; then
239    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241  else
242    $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: support@underbit.com about your system, including any
244$0: error possibly output before this message. Then install
245$0: a modern shell, or manually run the script under such a
246$0: shell if you do have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547  # Remove one level of quotation (which was required for Make).
548  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549  ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554  # Discard the --no-reexec flag, and continue.
555  shift
556elif test "X$1" = X--fallback-echo; then
557  # Avoid inline document here, it may be left over
558  :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560  # Yippee, $echo works!
561  :
562else
563  # Restart under the correct shell.
564  exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568  # used as fallback echo
569  shift
570  cat <<EOF
571$*
572EOF
573  exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
586       echo_test_string="`eval $cmd`" &&
587       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588    then
589      break
590    fi
591  done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596   test "X$echo_testing_string" = "X$echo_test_string"; then
597  :
598else
599  # The Solaris, AIX, and Digital Unix default echo programs unquote
600  # backslashes.  This makes it impossible to quote backslashes using
601  #   echo "$something" | sed 's/\\/\\\\/g'
602  #
603  # So, first we look for a working echo in the user's PATH.
604
605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606  for dir in $PATH /usr/ucb; do
607    IFS="$lt_save_ifs"
608    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611       test "X$echo_testing_string" = "X$echo_test_string"; then
612      echo="$dir/echo"
613      break
614    fi
615  done
616  IFS="$lt_save_ifs"
617
618  if test "X$echo" = Xecho; then
619    # We didn't find a better echo, so look for alternatives.
620    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      # This shell has a builtin print -r that does the trick.
624      echo='print -r'
625    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626	 test "X$CONFIG_SHELL" != X/bin/ksh; then
627      # If we have ksh, try running configure again with it.
628      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629      export ORIGINAL_CONFIG_SHELL
630      CONFIG_SHELL=/bin/ksh
631      export CONFIG_SHELL
632      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633    else
634      # Try using printf.
635      echo='printf %s\n'
636      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638	 test "X$echo_testing_string" = "X$echo_test_string"; then
639	# Cool, printf works
640	:
641      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646	export CONFIG_SHELL
647	SHELL="$CONFIG_SHELL"
648	export SHELL
649	echo="$CONFIG_SHELL $0 --fallback-echo"
650      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651	   test "X$echo_testing_string" = 'X\t' &&
652	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	echo="$CONFIG_SHELL $0 --fallback-echo"
655      else
656	# maybe with a smaller string...
657	prev=:
658
659	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661	  then
662	    break
663	  fi
664	  prev="$cmd"
665	done
666
667	if test "$prev" != 'sed 50q "$0"'; then
668	  echo_test_string=`eval $prev`
669	  export echo_test_string
670	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671	else
672	  # Oops.  We lost completely, so just stick with echo.
673	  echo=echo
674	fi
675      fi
676    fi
677  fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695test -n "$DJDIR" || exec 7<&0 </dev/null
696exec 6>&1
697
698# Name of the host.
699# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
700# so uname gets run too.
701ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702
703#
704# Initializations.
705#
706ac_default_prefix=/usr/local
707ac_clean_files=
708ac_config_libobj_dir=.
709LIBOBJS=
710cross_compiling=no
711subdirs=
712MFLAGS=
713MAKEFLAGS=
714
715# Identity of this package.
716PACKAGE_NAME='ID3 Tag'
717PACKAGE_TARNAME='libid3tag'
718PACKAGE_VERSION='0.15.1b'
719PACKAGE_STRING='ID3 Tag 0.15.1b'
720PACKAGE_BUGREPORT='support@underbit.com'
721PACKAGE_URL=''
722
723ac_unique_file="id3tag.h"
724# Factoring default headers for most tests.
725ac_includes_default="\
726#include <stdio.h>
727#ifdef HAVE_SYS_TYPES_H
728# include <sys/types.h>
729#endif
730#ifdef HAVE_SYS_STAT_H
731# include <sys/stat.h>
732#endif
733#ifdef STDC_HEADERS
734# include <stdlib.h>
735# include <stddef.h>
736#else
737# ifdef HAVE_STDLIB_H
738#  include <stdlib.h>
739# endif
740#endif
741#ifdef HAVE_STRING_H
742# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
743#  include <memory.h>
744# endif
745# include <string.h>
746#endif
747#ifdef HAVE_STRINGS_H
748# include <strings.h>
749#endif
750#ifdef HAVE_INTTYPES_H
751# include <inttypes.h>
752#endif
753#ifdef HAVE_STDINT_H
754# include <stdint.h>
755#endif
756#ifdef HAVE_UNISTD_H
757# include <unistd.h>
758#endif"
759
760ac_subst_vars='LTLIBOBJS
761LIBOBJS
762DEBUG_FALSE
763DEBUG_TRUE
764LIBTOOL_DEPS
765LIBTOOL
766ac_ct_F77
767FFLAGS
768F77
769CXXCPP
770am__fastdepCXX_FALSE
771am__fastdepCXX_TRUE
772CXXDEPMODE
773ac_ct_CXX
774CXXFLAGS
775CXX
776CPP
777RANLIB
778AR
779ECHO
780LN_S
781EGREP
782GREP
783am__fastdepCC_FALSE
784am__fastdepCC_TRUE
785CCDEPMODE
786AMDEPBACKSLASH
787AMDEP_FALSE
788AMDEP_TRUE
789am__quote
790am__include
791DEPDIR
792OBJEXT
793EXEEXT
794ac_ct_CC
795CPPFLAGS
796LDFLAGS
797CFLAGS
798CC
799host_os
800host_vendor
801host_cpu
802host
803build_os
804build_vendor
805build_cpu
806build
807am__leading_dot
808SET_MAKE
809AWK
810mkdir_p
811INSTALL_STRIP_PROGRAM
812STRIP
813install_sh
814AMTAR
815MAKEINFO
816AUTOHEADER
817AUTOMAKE
818AUTOCONF
819ACLOCAL
820VERSION
821PACKAGE
822CYGPATH_W
823INSTALL_DATA
824INSTALL_SCRIPT
825INSTALL_PROGRAM
826target_alias
827host_alias
828build_alias
829LIBS
830ECHO_T
831ECHO_N
832ECHO_C
833DEFS
834mandir
835localedir
836libdir
837psdir
838pdfdir
839dvidir
840htmldir
841infodir
842docdir
843oldincludedir
844includedir
845localstatedir
846sharedstatedir
847sysconfdir
848datadir
849datarootdir
850libexecdir
851sbindir
852bindir
853program_transform_name
854prefix
855exec_prefix
856PACKAGE_URL
857PACKAGE_BUGREPORT
858PACKAGE_STRING
859PACKAGE_VERSION
860PACKAGE_TARNAME
861PACKAGE_NAME
862PATH_SEPARATOR
863SHELL'
864ac_subst_files=''
865ac_user_opts='
866enable_option_checking
867enable_dependency_tracking
868enable_shared
869enable_static
870enable_fast_install
871with_gnu_ld
872enable_libtool_lock
873with_pic
874with_tags
875enable_profiling
876enable_debugging
877'
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CPP
887CXX
888CXXFLAGS
889CCC
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898ac_unrecognized_opts=
899ac_unrecognized_sep=
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
922# (The list follows the same order as the GNU Coding Standards.)
923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
931includedir='${prefix}/include'
932oldincludedir='/usr/include'
933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
942
943ac_prev=
944ac_dashdash=
945for ac_option
946do
947  # If the previous option needs an argument, assign it.
948  if test -n "$ac_prev"; then
949    eval $ac_prev=\$ac_option
950    ac_prev=
951    continue
952  fi
953
954  case $ac_option in
955  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956  *=)   ac_optarg= ;;
957  *)    ac_optarg=yes ;;
958  esac
959
960  # Accept the important Cygnus configure options, so we can diagnose typos.
961
962  case $ac_dashdash$ac_option in
963  --)
964    ac_dashdash=yes ;;
965
966  -bindir | --bindir | --bindi | --bind | --bin | --bi)
967    ac_prev=bindir ;;
968  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969    bindir=$ac_optarg ;;
970
971  -build | --build | --buil | --bui | --bu)
972    ac_prev=build_alias ;;
973  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974    build_alias=$ac_optarg ;;
975
976  -cache-file | --cache-file | --cache-fil | --cache-fi \
977  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978    ac_prev=cache_file ;;
979  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981    cache_file=$ac_optarg ;;
982
983  --config-cache | -C)
984    cache_file=config.cache ;;
985
986  -datadir | --datadir | --datadi | --datad)
987    ac_prev=datadir ;;
988  -datadir=* | --datadir=* | --datadi=* | --datad=*)
989    datadir=$ac_optarg ;;
990
991  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992  | --dataroo | --dataro | --datar)
993    ac_prev=datarootdir ;;
994  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996    datarootdir=$ac_optarg ;;
997
998  -disable-* | --disable-*)
999    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000    # Reject names that are not valid shell variable names.
1001    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002      as_fn_error $? "invalid feature name: $ac_useropt"
1003    ac_useropt_orig=$ac_useropt
1004    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005    case $ac_user_opts in
1006      *"
1007"enable_$ac_useropt"
1008"*) ;;
1009      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010	 ac_unrecognized_sep=', ';;
1011    esac
1012    eval enable_$ac_useropt=no ;;
1013
1014  -docdir | --docdir | --docdi | --doc | --do)
1015    ac_prev=docdir ;;
1016  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017    docdir=$ac_optarg ;;
1018
1019  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020    ac_prev=dvidir ;;
1021  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022    dvidir=$ac_optarg ;;
1023
1024  -enable-* | --enable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error $? "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042  | --exec | --exe | --ex)
1043    ac_prev=exec_prefix ;;
1044  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046  | --exec=* | --exe=* | --ex=*)
1047    exec_prefix=$ac_optarg ;;
1048
1049  -gas | --gas | --ga | --g)
1050    # Obsolete; use --with-gas.
1051    with_gas=yes ;;
1052
1053  -help | --help | --hel | --he | -h)
1054    ac_init_help=long ;;
1055  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056    ac_init_help=recursive ;;
1057  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058    ac_init_help=short ;;
1059
1060  -host | --host | --hos | --ho)
1061    ac_prev=host_alias ;;
1062  -host=* | --host=* | --hos=* | --ho=*)
1063    host_alias=$ac_optarg ;;
1064
1065  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066    ac_prev=htmldir ;;
1067  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068  | --ht=*)
1069    htmldir=$ac_optarg ;;
1070
1071  -includedir | --includedir | --includedi | --included | --include \
1072  | --includ | --inclu | --incl | --inc)
1073    ac_prev=includedir ;;
1074  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075  | --includ=* | --inclu=* | --incl=* | --inc=*)
1076    includedir=$ac_optarg ;;
1077
1078  -infodir | --infodir | --infodi | --infod | --info | --inf)
1079    ac_prev=infodir ;;
1080  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081    infodir=$ac_optarg ;;
1082
1083  -libdir | --libdir | --libdi | --libd)
1084    ac_prev=libdir ;;
1085  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086    libdir=$ac_optarg ;;
1087
1088  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089  | --libexe | --libex | --libe)
1090    ac_prev=libexecdir ;;
1091  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092  | --libexe=* | --libex=* | --libe=*)
1093    libexecdir=$ac_optarg ;;
1094
1095  -localedir | --localedir | --localedi | --localed | --locale)
1096    ac_prev=localedir ;;
1097  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098    localedir=$ac_optarg ;;
1099
1100  -localstatedir | --localstatedir | --localstatedi | --localstated \
1101  | --localstate | --localstat | --localsta | --localst | --locals)
1102    ac_prev=localstatedir ;;
1103  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105    localstatedir=$ac_optarg ;;
1106
1107  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108    ac_prev=mandir ;;
1109  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110    mandir=$ac_optarg ;;
1111
1112  -nfp | --nfp | --nf)
1113    # Obsolete; use --without-fp.
1114    with_fp=no ;;
1115
1116  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117  | --no-cr | --no-c | -n)
1118    no_create=yes ;;
1119
1120  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122    no_recursion=yes ;;
1123
1124  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126  | --oldin | --oldi | --old | --ol | --o)
1127    ac_prev=oldincludedir ;;
1128  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131    oldincludedir=$ac_optarg ;;
1132
1133  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134    ac_prev=prefix ;;
1135  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136    prefix=$ac_optarg ;;
1137
1138  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139  | --program-pre | --program-pr | --program-p)
1140    ac_prev=program_prefix ;;
1141  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143    program_prefix=$ac_optarg ;;
1144
1145  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146  | --program-suf | --program-su | --program-s)
1147    ac_prev=program_suffix ;;
1148  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150    program_suffix=$ac_optarg ;;
1151
1152  -program-transform-name | --program-transform-name \
1153  | --program-transform-nam | --program-transform-na \
1154  | --program-transform-n | --program-transform- \
1155  | --program-transform | --program-transfor \
1156  | --program-transfo | --program-transf \
1157  | --program-trans | --program-tran \
1158  | --progr-tra | --program-tr | --program-t)
1159    ac_prev=program_transform_name ;;
1160  -program-transform-name=* | --program-transform-name=* \
1161  | --program-transform-nam=* | --program-transform-na=* \
1162  | --program-transform-n=* | --program-transform-=* \
1163  | --program-transform=* | --program-transfor=* \
1164  | --program-transfo=* | --program-transf=* \
1165  | --program-trans=* | --program-tran=* \
1166  | --progr-tra=* | --program-tr=* | --program-t=*)
1167    program_transform_name=$ac_optarg ;;
1168
1169  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170    ac_prev=pdfdir ;;
1171  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172    pdfdir=$ac_optarg ;;
1173
1174  -psdir | --psdir | --psdi | --psd | --ps)
1175    ac_prev=psdir ;;
1176  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177    psdir=$ac_optarg ;;
1178
1179  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180  | -silent | --silent | --silen | --sile | --sil)
1181    silent=yes ;;
1182
1183  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184    ac_prev=sbindir ;;
1185  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186  | --sbi=* | --sb=*)
1187    sbindir=$ac_optarg ;;
1188
1189  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191  | --sharedst | --shareds | --shared | --share | --shar \
1192  | --sha | --sh)
1193    ac_prev=sharedstatedir ;;
1194  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197  | --sha=* | --sh=*)
1198    sharedstatedir=$ac_optarg ;;
1199
1200  -site | --site | --sit)
1201    ac_prev=site ;;
1202  -site=* | --site=* | --sit=*)
1203    site=$ac_optarg ;;
1204
1205  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206    ac_prev=srcdir ;;
1207  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208    srcdir=$ac_optarg ;;
1209
1210  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211  | --syscon | --sysco | --sysc | --sys | --sy)
1212    ac_prev=sysconfdir ;;
1213  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215    sysconfdir=$ac_optarg ;;
1216
1217  -target | --target | --targe | --targ | --tar | --ta | --t)
1218    ac_prev=target_alias ;;
1219  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220    target_alias=$ac_optarg ;;
1221
1222  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223    verbose=yes ;;
1224
1225  -version | --version | --versio | --versi | --vers | -V)
1226    ac_init_version=: ;;
1227
1228  -with-* | --with-*)
1229    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230    # Reject names that are not valid shell variable names.
1231    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232      as_fn_error $? "invalid package name: $ac_useropt"
1233    ac_useropt_orig=$ac_useropt
1234    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235    case $ac_user_opts in
1236      *"
1237"with_$ac_useropt"
1238"*) ;;
1239      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240	 ac_unrecognized_sep=', ';;
1241    esac
1242    eval with_$ac_useropt=\$ac_optarg ;;
1243
1244  -without-* | --without-*)
1245    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246    # Reject names that are not valid shell variable names.
1247    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248      as_fn_error $? "invalid package name: $ac_useropt"
1249    ac_useropt_orig=$ac_useropt
1250    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251    case $ac_user_opts in
1252      *"
1253"with_$ac_useropt"
1254"*) ;;
1255      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256	 ac_unrecognized_sep=', ';;
1257    esac
1258    eval with_$ac_useropt=no ;;
1259
1260  --x)
1261    # Obsolete; use --with-x.
1262    with_x=yes ;;
1263
1264  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265  | --x-incl | --x-inc | --x-in | --x-i)
1266    ac_prev=x_includes ;;
1267  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269    x_includes=$ac_optarg ;;
1270
1271  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273    ac_prev=x_libraries ;;
1274  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276    x_libraries=$ac_optarg ;;
1277
1278  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279Try \`$0 --help' for more information"
1280    ;;
1281
1282  *=*)
1283    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284    # Reject names that are not valid shell variable names.
1285    case $ac_envvar in #(
1286      '' | [0-9]* | *[!_$as_cr_alnum]* )
1287      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288    esac
1289    eval $ac_envvar=\$ac_optarg
1290    export $ac_envvar ;;
1291
1292  *)
1293    # FIXME: should be removed in autoconf 3.0.
1294    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298    ;;
1299
1300  esac
1301done
1302
1303if test -n "$ac_prev"; then
1304  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305  as_fn_error $? "missing argument to $ac_option"
1306fi
1307
1308if test -n "$ac_unrecognized_opts"; then
1309  case $enable_option_checking in
1310    no) ;;
1311    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313  esac
1314fi
1315
1316# Check all directory arguments for consistency.
1317for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318		datadir sysconfdir sharedstatedir localstatedir includedir \
1319		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320		libdir localedir mandir
1321do
1322  eval ac_val=\$$ac_var
1323  # Remove trailing slashes.
1324  case $ac_val in
1325    */ )
1326      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327      eval $ac_var=\$ac_val;;
1328  esac
1329  # Be sure to have absolute directory names.
1330  case $ac_val in
1331    [\\/$]* | ?:[\\/]* )  continue;;
1332    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333  esac
1334  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335done
1336
1337# There might be people who depend on the old broken behavior: `$host'
1338# used to hold the argument of --host etc.
1339# FIXME: To remove some day.
1340build=$build_alias
1341host=$host_alias
1342target=$target_alias
1343
1344# FIXME: To remove some day.
1345if test "x$host_alias" != x; then
1346  if test "x$build_alias" = x; then
1347    cross_compiling=maybe
1348    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349    If a cross compiler is detected then cross compile mode will be used" >&2
1350  elif test "x$build_alias" != "x$host_alias"; then
1351    cross_compiling=yes
1352  fi
1353fi
1354
1355ac_tool_prefix=
1356test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358test "$silent" = yes && exec 6>/dev/null
1359
1360
1361ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362ac_ls_di=`ls -di .` &&
1363ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364  as_fn_error $? "working directory cannot be determined"
1365test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366  as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369# Find the source files, if location was not specified.
1370if test -z "$srcdir"; then
1371  ac_srcdir_defaulted=yes
1372  # Try the directory containing this script, then the parent directory.
1373  ac_confdir=`$as_dirname -- "$as_myself" ||
1374$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375	 X"$as_myself" : 'X\(//\)[^/]' \| \
1376	 X"$as_myself" : 'X\(//\)$' \| \
1377	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378$as_echo X"$as_myself" |
1379    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380	    s//\1/
1381	    q
1382	  }
1383	  /^X\(\/\/\)[^/].*/{
1384	    s//\1/
1385	    q
1386	  }
1387	  /^X\(\/\/\)$/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\).*/{
1392	    s//\1/
1393	    q
1394	  }
1395	  s/.*/./; q'`
1396  srcdir=$ac_confdir
1397  if test ! -r "$srcdir/$ac_unique_file"; then
1398    srcdir=..
1399  fi
1400else
1401  ac_srcdir_defaulted=no
1402fi
1403if test ! -r "$srcdir/$ac_unique_file"; then
1404  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406fi
1407ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408ac_abs_confdir=`(
1409	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410	pwd)`
1411# When building in place, set srcdir=.
1412if test "$ac_abs_confdir" = "$ac_pwd"; then
1413  srcdir=.
1414fi
1415# Remove unnecessary trailing slashes from srcdir.
1416# Double slashes in file names in object file debugging info
1417# mess up M-x gdb in Emacs.
1418case $srcdir in
1419*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420esac
1421for ac_var in $ac_precious_vars; do
1422  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423  eval ac_env_${ac_var}_value=\$${ac_var}
1424  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426done
1427
1428#
1429# Report the --help message.
1430#
1431if test "$ac_init_help" = "long"; then
1432  # Omit some internal or obsolete options to make the list less imposing.
1433  # This message is too long to be a string in the A/UX 3.1 sh.
1434  cat <<_ACEOF
1435\`configure' configures ID3 Tag 0.15.1b to adapt to many kinds of systems.
1436
1437Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440VAR=VALUE.  See below for descriptions of some of the useful variables.
1441
1442Defaults for the options are specified in brackets.
1443
1444Configuration:
1445  -h, --help              display this help and exit
1446      --help=short        display options specific to this package
1447      --help=recursive    display the short help of all the included packages
1448  -V, --version           display version information and exit
1449  -q, --quiet, --silent   do not print \`checking ...' messages
1450      --cache-file=FILE   cache test results in FILE [disabled]
1451  -C, --config-cache      alias for \`--cache-file=config.cache'
1452  -n, --no-create         do not create output files
1453      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1454
1455Installation directories:
1456  --prefix=PREFIX         install architecture-independent files in PREFIX
1457                          [$ac_default_prefix]
1458  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459                          [PREFIX]
1460
1461By default, \`make install' will install all the files in
1462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1463an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464for instance \`--prefix=\$HOME'.
1465
1466For better control, use the options below.
1467
1468Fine tuning of the installation directories:
1469  --bindir=DIR            user executables [EPREFIX/bin]
1470  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1471  --libexecdir=DIR        program executables [EPREFIX/libexec]
1472  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1473  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1474  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1475  --libdir=DIR            object code libraries [EPREFIX/lib]
1476  --includedir=DIR        C header files [PREFIX/include]
1477  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1478  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1479  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1480  --infodir=DIR           info documentation [DATAROOTDIR/info]
1481  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1482  --mandir=DIR            man documentation [DATAROOTDIR/man]
1483  --docdir=DIR            documentation root [DATAROOTDIR/doc/libid3tag]
1484  --htmldir=DIR           html documentation [DOCDIR]
1485  --dvidir=DIR            dvi documentation [DOCDIR]
1486  --pdfdir=DIR            pdf documentation [DOCDIR]
1487  --psdir=DIR             ps documentation [DOCDIR]
1488_ACEOF
1489
1490  cat <<\_ACEOF
1491
1492Program names:
1493  --program-prefix=PREFIX            prepend PREFIX to installed program names
1494  --program-suffix=SUFFIX            append SUFFIX to installed program names
1495  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1496
1497System types:
1498  --build=BUILD     configure for building on BUILD [guessed]
1499  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500_ACEOF
1501fi
1502
1503if test -n "$ac_init_help"; then
1504  case $ac_init_help in
1505     short | recursive ) echo "Configuration of ID3 Tag 0.15.1b:";;
1506   esac
1507  cat <<\_ACEOF
1508
1509Optional Features:
1510  --disable-option-checking  ignore unrecognized --enable/--with options
1511  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513  --disable-dependency-tracking  speeds up one-time build
1514  --enable-dependency-tracking   do not reject slow dependency extractors
1515  --enable-shared[=PKGS]  build shared libraries [default=yes]
1516  --enable-static[=PKGS]  build static libraries [default=yes]
1517  --enable-fast-install[=PKGS]
1518                          optimize for fast installation [default=yes]
1519  --disable-libtool-lock  avoid locking (might break parallel builds)
1520  --enable-profiling      generate profiling code
1521  --enable-debugging      enable diagnostic debugging support
1522  --disable-debugging     do not enable debugging and use more optimization
1523
1524Optional Packages:
1525  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528  --with-pic              try to use only PIC/non-PIC objects [default=use
1529                          both]
1530  --with-tags[=TAGS]      include additional configurations [automatic]
1531
1532Some influential environment variables:
1533  CC          C compiler command
1534  CFLAGS      C compiler flags
1535  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536              nonstandard directory <lib dir>
1537  LIBS        libraries to pass to the linker, e.g. -l<library>
1538  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539              you have headers in a nonstandard directory <include dir>
1540  CPP         C preprocessor
1541  CXX         C++ compiler command
1542  CXXFLAGS    C++ compiler flags
1543  CXXCPP      C++ preprocessor
1544  F77         Fortran 77 compiler command
1545  FFLAGS      Fortran 77 compiler flags
1546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to <support@underbit.com>.
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556  # If there are subdirs, report their specific --help.
1557  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558    test -d "$ac_dir" ||
1559      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560      continue
1561    ac_builddir=.
1562
1563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
1566  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567  # A ".." for each directory in $ac_dir_suffix.
1568  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569  case $ac_top_builddir_sub in
1570  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572  esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
1578
1579case $srcdir in
1580  .)  # We are building in place.
1581    ac_srcdir=.
1582    ac_top_srcdir=$ac_top_builddir_sub
1583    ac_abs_top_srcdir=$ac_pwd ;;
1584  [\\/]* | ?:[\\/]* )  # Absolute name.
1585    ac_srcdir=$srcdir$ac_dir_suffix;
1586    ac_top_srcdir=$srcdir
1587    ac_abs_top_srcdir=$srcdir ;;
1588  *) # Relative name.
1589    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590    ac_top_srcdir=$ac_top_build_prefix$srcdir
1591    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592esac
1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595    cd "$ac_dir" || { ac_status=$?; continue; }
1596    # Check for guested configure.
1597    if test -f "$ac_srcdir/configure.gnu"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600    elif test -f "$ac_srcdir/configure"; then
1601      echo &&
1602      $SHELL "$ac_srcdir/configure" --help=recursive
1603    else
1604      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605    fi || ac_status=$?
1606    cd "$ac_pwd" || { ac_status=$?; break; }
1607  done
1608fi
1609
1610test -n "$ac_init_help" && exit $ac_status
1611if $ac_init_version; then
1612  cat <<\_ACEOF
1613ID3 Tag configure 0.15.1b
1614generated by GNU Autoconf 2.68
1615
1616Copyright (C) 2010 Free Software Foundation, Inc.
1617This configure script is free software; the Free Software Foundation
1618gives unlimited permission to copy, distribute and modify it.
1619_ACEOF
1620  exit
1621fi
1622
1623## ------------------------ ##
1624## Autoconf initialization. ##
1625## ------------------------ ##
1626
1627# ac_fn_c_try_compile LINENO
1628# --------------------------
1629# Try to compile conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_compile ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  rm -f conftest.$ac_objext
1634  if { { ac_try="$ac_compile"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_compile") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } && {
1650	 test -z "$ac_c_werror_flag" ||
1651	 test ! -s conftest.err
1652       } && test -s conftest.$ac_objext; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658	ac_retval=1
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_compile
1664
1665# ac_fn_c_try_link LINENO
1666# -----------------------
1667# Try to link conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_link ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  rm -f conftest.$ac_objext conftest$ac_exeext
1672  if { { ac_try="$ac_link"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_link") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } && {
1688	 test -z "$ac_c_werror_flag" ||
1689	 test ! -s conftest.err
1690       } && test -s conftest$ac_exeext && {
1691	 test "$cross_compiling" = yes ||
1692	 $as_test_x conftest$ac_exeext
1693       }; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699	ac_retval=1
1700fi
1701  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703  # interfere with the next link command; also delete a directory that is
1704  # left behind by Apple's compiler.  We do this before executing the actions.
1705  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707  as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_link
1710
1711# ac_fn_c_try_cpp LINENO
1712# ----------------------
1713# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_cpp ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  if { { ac_try="$ac_cpp conftest.$ac_ext"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725  ac_status=$?
1726  if test -s conftest.err; then
1727    grep -v '^ *+' conftest.err >conftest.er1
1728    cat conftest.er1 >&5
1729    mv -f conftest.er1 conftest.err
1730  fi
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } > conftest.i && {
1733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734	 test ! -s conftest.err
1735       }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741    ac_retval=1
1742fi
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744  as_fn_set_status $ac_retval
1745
1746} # ac_fn_c_try_cpp
1747
1748# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749# -------------------------------------------------------
1750# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1751# the include files in INCLUDES and setting the cache variable VAR
1752# accordingly.
1753ac_fn_c_check_header_mongrel ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  if eval \${$3+:} false; then :
1757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758$as_echo_n "checking for $2... " >&6; }
1759if eval \${$3+:} false; then :
1760  $as_echo_n "(cached) " >&6
1761fi
1762eval ac_res=\$$3
1763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765else
1766  # Is the header compilable?
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1768$as_echo_n "checking $2 usability... " >&6; }
1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775  ac_header_compiler=yes
1776else
1777  ac_header_compiler=no
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1781$as_echo "$ac_header_compiler" >&6; }
1782
1783# Is the header present?
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1785$as_echo_n "checking $2 presence... " >&6; }
1786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_cpp "$LINENO"; then :
1791  ac_header_preproc=yes
1792else
1793  ac_header_preproc=no
1794fi
1795rm -f conftest.err conftest.i conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1797$as_echo "$ac_header_preproc" >&6; }
1798
1799# So?  What about this header?
1800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1801  yes:no: )
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1803$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806    ;;
1807  no:yes:* )
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1809$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1811$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1813$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1815$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818( $as_echo "## ----------------------------------- ##
1819## Report this to support@underbit.com ##
1820## ----------------------------------- ##"
1821     ) | sed "s/^/$as_me: WARNING:     /" >&2
1822    ;;
1823esac
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  eval "$3=\$ac_header_compiler"
1830fi
1831eval ac_res=\$$3
1832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834fi
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837} # ac_fn_c_check_header_mongrel
1838
1839# ac_fn_c_try_run LINENO
1840# ----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842# that executables *can* be run.
1843ac_fn_c_try_run ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849  *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853  (eval "$ac_link") 2>&5
1854  ac_status=$?
1855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857  { { case "(($ac_try" in
1858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859  *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862$as_echo "$ac_try_echo"; } >&5
1863  (eval "$ac_try") 2>&5
1864  ac_status=$?
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; }; }; then :
1867  ac_retval=0
1868else
1869  $as_echo "$as_me: program exited with status $ac_status" >&5
1870       $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873       ac_retval=$ac_status
1874fi
1875  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_run
1880
1881# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882# -------------------------------------------------------
1883# Tests whether HEADER exists and can be compiled using the include files in
1884# INCLUDES, setting the cache variable VAR accordingly.
1885ac_fn_c_check_header_compile ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892else
1893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895$4
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899  eval "$3=yes"
1900else
1901  eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_header_compile
1911
1912# ac_fn_c_check_func LINENO FUNC VAR
1913# ----------------------------------
1914# Tests whether FUNC exists, setting the cache variable VAR accordingly
1915ac_fn_c_check_func ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1927#define $2 innocuous_$2
1928
1929/* System header to define __stub macros and hopefully few prototypes,
1930    which can conflict with char $2 (); below.
1931    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932    <limits.h> exists even on freestanding compilers.  */
1933
1934#ifdef __STDC__
1935# include <limits.h>
1936#else
1937# include <assert.h>
1938#endif
1939
1940#undef $2
1941
1942/* Override any GCC internal prototype to avoid an error.
1943   Use char because int might match the return type of a GCC
1944   builtin and then its argument prototype would still apply.  */
1945#ifdef __cplusplus
1946extern "C"
1947#endif
1948char $2 ();
1949/* The GNU C library defines this for functions which it implements
1950    to always fail with ENOSYS.  Some functions are actually named
1951    something starting with __ and the normal name is an alias.  */
1952#if defined __stub_$2 || defined __stub___$2
1953choke me
1954#endif
1955
1956int
1957main ()
1958{
1959return $2 ();
1960  ;
1961  return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_link "$LINENO"; then :
1965  eval "$3=yes"
1966else
1967  eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext \
1970    conftest$ac_exeext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
1977} # ac_fn_c_check_func
1978
1979# ac_fn_cxx_try_compile LINENO
1980# ----------------------------
1981# Try to compile conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_compile ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  rm -f conftest.$ac_objext
1986  if { { ac_try="$ac_compile"
1987case "(($ac_try" in
1988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989  *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993  (eval "$ac_compile") 2>conftest.err
1994  ac_status=$?
1995  if test -s conftest.err; then
1996    grep -v '^ *+' conftest.err >conftest.er1
1997    cat conftest.er1 >&5
1998    mv -f conftest.er1 conftest.err
1999  fi
2000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001  test $ac_status = 0; } && {
2002	 test -z "$ac_cxx_werror_flag" ||
2003	 test ! -s conftest.err
2004       } && test -s conftest.$ac_objext; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010	ac_retval=1
2011fi
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_cxx_try_compile
2016
2017# ac_fn_cxx_try_cpp LINENO
2018# ------------------------
2019# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_cxx_try_cpp ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  if { { ac_try="$ac_cpp conftest.$ac_ext"
2024case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2031  ac_status=$?
2032  if test -s conftest.err; then
2033    grep -v '^ *+' conftest.err >conftest.er1
2034    cat conftest.er1 >&5
2035    mv -f conftest.er1 conftest.err
2036  fi
2037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038  test $ac_status = 0; } > conftest.i && {
2039	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2040	 test ! -s conftest.err
2041       }; then :
2042  ac_retval=0
2043else
2044  $as_echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047    ac_retval=1
2048fi
2049  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050  as_fn_set_status $ac_retval
2051
2052} # ac_fn_cxx_try_cpp
2053
2054# ac_fn_cxx_try_link LINENO
2055# -------------------------
2056# Try to link conftest.$ac_ext, and return whether this succeeded.
2057ac_fn_cxx_try_link ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  rm -f conftest.$ac_objext conftest$ac_exeext
2061  if { { ac_try="$ac_link"
2062case "(($ac_try" in
2063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064  *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068  (eval "$ac_link") 2>conftest.err
2069  ac_status=$?
2070  if test -s conftest.err; then
2071    grep -v '^ *+' conftest.err >conftest.er1
2072    cat conftest.er1 >&5
2073    mv -f conftest.er1 conftest.err
2074  fi
2075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076  test $ac_status = 0; } && {
2077	 test -z "$ac_cxx_werror_flag" ||
2078	 test ! -s conftest.err
2079       } && test -s conftest$ac_exeext && {
2080	 test "$cross_compiling" = yes ||
2081	 $as_test_x conftest$ac_exeext
2082       }; then :
2083  ac_retval=0
2084else
2085  $as_echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088	ac_retval=1
2089fi
2090  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2091  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2092  # interfere with the next link command; also delete a directory that is
2093  # left behind by Apple's compiler.  We do this before executing the actions.
2094  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096  as_fn_set_status $ac_retval
2097
2098} # ac_fn_cxx_try_link
2099
2100# ac_fn_cxx_check_func LINENO FUNC VAR
2101# ------------------------------------
2102# Tests whether FUNC exists, setting the cache variable VAR accordingly
2103ac_fn_cxx_check_func ()
2104{
2105  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107$as_echo_n "checking for $2... " >&6; }
2108if eval \${$3+:} false; then :
2109  $as_echo_n "(cached) " >&6
2110else
2111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h.  */
2113/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2114   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2115#define $2 innocuous_$2
2116
2117/* System header to define __stub macros and hopefully few prototypes,
2118    which can conflict with char $2 (); below.
2119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2120    <limits.h> exists even on freestanding compilers.  */
2121
2122#ifdef __STDC__
2123# include <limits.h>
2124#else
2125# include <assert.h>
2126#endif
2127
2128#undef $2
2129
2130/* Override any GCC internal prototype to avoid an error.
2131   Use char because int might match the return type of a GCC
2132   builtin and then its argument prototype would still apply.  */
2133#ifdef __cplusplus
2134extern "C"
2135#endif
2136char $2 ();
2137/* The GNU C library defines this for functions which it implements
2138    to always fail with ENOSYS.  Some functions are actually named
2139    something starting with __ and the normal name is an alias.  */
2140#if defined __stub_$2 || defined __stub___$2
2141choke me
2142#endif
2143
2144int
2145main ()
2146{
2147return $2 ();
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152if ac_fn_cxx_try_link "$LINENO"; then :
2153  eval "$3=yes"
2154else
2155  eval "$3=no"
2156fi
2157rm -f core conftest.err conftest.$ac_objext \
2158    conftest$ac_exeext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165} # ac_fn_cxx_check_func
2166
2167# ac_fn_f77_try_compile LINENO
2168# ----------------------------
2169# Try to compile conftest.$ac_ext, and return whether this succeeded.
2170ac_fn_f77_try_compile ()
2171{
2172  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173  rm -f conftest.$ac_objext
2174  if { { ac_try="$ac_compile"
2175case "(($ac_try" in
2176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177  *) ac_try_echo=$ac_try;;
2178esac
2179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180$as_echo "$ac_try_echo"; } >&5
2181  (eval "$ac_compile") 2>conftest.err
2182  ac_status=$?
2183  if test -s conftest.err; then
2184    grep -v '^ *+' conftest.err >conftest.er1
2185    cat conftest.er1 >&5
2186    mv -f conftest.er1 conftest.err
2187  fi
2188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189  test $ac_status = 0; } && {
2190	 test -z "$ac_f77_werror_flag" ||
2191	 test ! -s conftest.err
2192       } && test -s conftest.$ac_objext; then :
2193  ac_retval=0
2194else
2195  $as_echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198	ac_retval=1
2199fi
2200  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201  as_fn_set_status $ac_retval
2202
2203} # ac_fn_f77_try_compile
2204
2205# ac_fn_f77_try_link LINENO
2206# -------------------------
2207# Try to link conftest.$ac_ext, and return whether this succeeded.
2208ac_fn_f77_try_link ()
2209{
2210  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211  rm -f conftest.$ac_objext conftest$ac_exeext
2212  if { { ac_try="$ac_link"
2213case "(($ac_try" in
2214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215  *) ac_try_echo=$ac_try;;
2216esac
2217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218$as_echo "$ac_try_echo"; } >&5
2219  (eval "$ac_link") 2>conftest.err
2220  ac_status=$?
2221  if test -s conftest.err; then
2222    grep -v '^ *+' conftest.err >conftest.er1
2223    cat conftest.er1 >&5
2224    mv -f conftest.er1 conftest.err
2225  fi
2226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227  test $ac_status = 0; } && {
2228	 test -z "$ac_f77_werror_flag" ||
2229	 test ! -s conftest.err
2230       } && test -s conftest$ac_exeext && {
2231	 test "$cross_compiling" = yes ||
2232	 $as_test_x conftest$ac_exeext
2233       }; then :
2234  ac_retval=0
2235else
2236  $as_echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239	ac_retval=1
2240fi
2241  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2242  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2243  # interfere with the next link command; also delete a directory that is
2244  # left behind by Apple's compiler.  We do this before executing the actions.
2245  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247  as_fn_set_status $ac_retval
2248
2249} # ac_fn_f77_try_link
2250cat >config.log <<_ACEOF
2251This file contains any messages produced by compilers while
2252running configure, to aid debugging if configure makes a mistake.
2253
2254It was created by ID3 Tag $as_me 0.15.1b, which was
2255generated by GNU Autoconf 2.68.  Invocation command line was
2256
2257  $ $0 $@
2258
2259_ACEOF
2260exec 5>>config.log
2261{
2262cat <<_ASUNAME
2263## --------- ##
2264## Platform. ##
2265## --------- ##
2266
2267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272
2273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2275
2276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2283
2284_ASUNAME
2285
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289  IFS=$as_save_IFS
2290  test -z "$as_dir" && as_dir=.
2291    $as_echo "PATH: $as_dir"
2292  done
2293IFS=$as_save_IFS
2294
2295} >&5
2296
2297cat >&5 <<_ACEOF
2298
2299
2300## ----------- ##
2301## Core tests. ##
2302## ----------- ##
2303
2304_ACEOF
2305
2306
2307# Keep a trace of the command line.
2308# Strip out --no-create and --no-recursion so they do not pile up.
2309# Strip out --silent because we don't want to record it for future runs.
2310# Also quote any args containing shell meta-characters.
2311# Make two passes to allow for proper duplicate-argument suppression.
2312ac_configure_args=
2313ac_configure_args0=
2314ac_configure_args1=
2315ac_must_keep_next=false
2316for ac_pass in 1 2
2317do
2318  for ac_arg
2319  do
2320    case $ac_arg in
2321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323    | -silent | --silent | --silen | --sile | --sil)
2324      continue ;;
2325    *\'*)
2326      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327    esac
2328    case $ac_pass in
2329    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330    2)
2331      as_fn_append ac_configure_args1 " '$ac_arg'"
2332      if test $ac_must_keep_next = true; then
2333	ac_must_keep_next=false # Got value, back to normal.
2334      else
2335	case $ac_arg in
2336	  *=* | --config-cache | -C | -disable-* | --disable-* \
2337	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339	  | -with-* | --with-* | -without-* | --without-* | --x)
2340	    case "$ac_configure_args0 " in
2341	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342	    esac
2343	    ;;
2344	  -* ) ac_must_keep_next=true ;;
2345	esac
2346      fi
2347      as_fn_append ac_configure_args " '$ac_arg'"
2348      ;;
2349    esac
2350  done
2351done
2352{ ac_configure_args0=; unset ac_configure_args0;}
2353{ ac_configure_args1=; unset ac_configure_args1;}
2354
2355# When interrupted or exit'd, cleanup temporary files, and complete
2356# config.log.  We remove comments because anyway the quotes in there
2357# would cause problems or look ugly.
2358# WARNING: Use '\'' to represent an apostrophe within the trap.
2359# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360trap 'exit_status=$?
2361  # Save into config.log some information that might help in debugging.
2362  {
2363    echo
2364
2365    $as_echo "## ---------------- ##
2366## Cache variables. ##
2367## ---------------- ##"
2368    echo
2369    # The following way of writing the cache mishandles newlines in values,
2370(
2371  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372    eval ac_val=\$$ac_var
2373    case $ac_val in #(
2374    *${as_nl}*)
2375      case $ac_var in #(
2376      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378      esac
2379      case $ac_var in #(
2380      _ | IFS | as_nl) ;; #(
2381      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382      *) { eval $ac_var=; unset $ac_var;} ;;
2383      esac ;;
2384    esac
2385  done
2386  (set) 2>&1 |
2387    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388    *${as_nl}ac_space=\ *)
2389      sed -n \
2390	"s/'\''/'\''\\\\'\'''\''/g;
2391	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392      ;; #(
2393    *)
2394      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395      ;;
2396    esac |
2397    sort
2398)
2399    echo
2400
2401    $as_echo "## ----------------- ##
2402## Output variables. ##
2403## ----------------- ##"
2404    echo
2405    for ac_var in $ac_subst_vars
2406    do
2407      eval ac_val=\$$ac_var
2408      case $ac_val in
2409      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410      esac
2411      $as_echo "$ac_var='\''$ac_val'\''"
2412    done | sort
2413    echo
2414
2415    if test -n "$ac_subst_files"; then
2416      $as_echo "## ------------------- ##
2417## File substitutions. ##
2418## ------------------- ##"
2419      echo
2420      for ac_var in $ac_subst_files
2421      do
2422	eval ac_val=\$$ac_var
2423	case $ac_val in
2424	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425	esac
2426	$as_echo "$ac_var='\''$ac_val'\''"
2427      done | sort
2428      echo
2429    fi
2430
2431    if test -s confdefs.h; then
2432      $as_echo "## ----------- ##
2433## confdefs.h. ##
2434## ----------- ##"
2435      echo
2436      cat confdefs.h
2437      echo
2438    fi
2439    test "$ac_signal" != 0 &&
2440      $as_echo "$as_me: caught signal $ac_signal"
2441    $as_echo "$as_me: exit $exit_status"
2442  } >&5
2443  rm -f core *.core core.conftest.* &&
2444    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445    exit $exit_status
2446' 0
2447for ac_signal in 1 2 13 15; do
2448  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449done
2450ac_signal=0
2451
2452# confdefs.h avoids OS command line length limits that DEFS can exceed.
2453rm -f -r conftest* confdefs.h
2454
2455$as_echo "/* confdefs.h */" > confdefs.h
2456
2457# Predefined preprocessor variables.
2458
2459cat >>confdefs.h <<_ACEOF
2460#define PACKAGE_NAME "$PACKAGE_NAME"
2461_ACEOF
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465_ACEOF
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_VERSION "$PACKAGE_VERSION"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_STRING "$PACKAGE_STRING"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_URL "$PACKAGE_URL"
2481_ACEOF
2482
2483
2484# Let the site file select an alternate cache file if it wants to.
2485# Prefer an explicitly selected file to automatically selected ones.
2486ac_site_file1=NONE
2487ac_site_file2=NONE
2488if test -n "$CONFIG_SITE"; then
2489  # We do not want a PATH search for config.site.
2490  case $CONFIG_SITE in #((
2491    -*)  ac_site_file1=./$CONFIG_SITE;;
2492    */*) ac_site_file1=$CONFIG_SITE;;
2493    *)   ac_site_file1=./$CONFIG_SITE;;
2494  esac
2495elif test "x$prefix" != xNONE; then
2496  ac_site_file1=$prefix/share/config.site
2497  ac_site_file2=$prefix/etc/config.site
2498else
2499  ac_site_file1=$ac_default_prefix/share/config.site
2500  ac_site_file2=$ac_default_prefix/etc/config.site
2501fi
2502for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503do
2504  test "x$ac_site_file" = xNONE && continue
2505  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2506    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2508    sed 's/^/| /' "$ac_site_file" >&5
2509    . "$ac_site_file" \
2510      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512as_fn_error $? "failed to load site script $ac_site_file
2513See \`config.log' for more details" "$LINENO" 5; }
2514  fi
2515done
2516
2517if test -r "$cache_file"; then
2518  # Some versions of bash will fail to source /dev/null (special files
2519  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2520  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522$as_echo "$as_me: loading cache $cache_file" >&6;}
2523    case $cache_file in
2524      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525      *)                      . "./$cache_file";;
2526    esac
2527  fi
2528else
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530$as_echo "$as_me: creating cache $cache_file" >&6;}
2531  >$cache_file
2532fi
2533
2534# Check that the precious variables saved in the cache have kept the same
2535# value.
2536ac_cache_corrupted=false
2537for ac_var in $ac_precious_vars; do
2538  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539  eval ac_new_set=\$ac_env_${ac_var}_set
2540  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541  eval ac_new_val=\$ac_env_${ac_var}_value
2542  case $ac_old_set,$ac_new_set in
2543    set,)
2544      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546      ac_cache_corrupted=: ;;
2547    ,set)
2548      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550      ac_cache_corrupted=: ;;
2551    ,);;
2552    *)
2553      if test "x$ac_old_val" != "x$ac_new_val"; then
2554	# differences in whitespace do not lead to failure.
2555	ac_old_val_w=`echo x $ac_old_val`
2556	ac_new_val_w=`echo x $ac_new_val`
2557	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560	  ac_cache_corrupted=:
2561	else
2562	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564	  eval $ac_var=\$ac_old_val
2565	fi
2566	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2567$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2568	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2569$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2570      fi;;
2571  esac
2572  # Pass precious variables to config.status.
2573  if test "$ac_new_set" = set; then
2574    case $ac_new_val in
2575    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576    *) ac_arg=$ac_var=$ac_new_val ;;
2577    esac
2578    case " $ac_configure_args " in
2579      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2580      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581    esac
2582  fi
2583done
2584if $ac_cache_corrupted; then
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590fi
2591## -------------------- ##
2592## Main body of script. ##
2593## -------------------- ##
2594
2595ac_ext=c
2596ac_cpp='$CPP $CPPFLAGS'
2597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600
2601
2602
2603
2604
2605
2606am__api_version="1.8"
2607ac_aux_dir=
2608for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609  if test -f "$ac_dir/install-sh"; then
2610    ac_aux_dir=$ac_dir
2611    ac_install_sh="$ac_aux_dir/install-sh -c"
2612    break
2613  elif test -f "$ac_dir/install.sh"; then
2614    ac_aux_dir=$ac_dir
2615    ac_install_sh="$ac_aux_dir/install.sh -c"
2616    break
2617  elif test -f "$ac_dir/shtool"; then
2618    ac_aux_dir=$ac_dir
2619    ac_install_sh="$ac_aux_dir/shtool install -c"
2620    break
2621  fi
2622done
2623if test -z "$ac_aux_dir"; then
2624  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2625fi
2626
2627# These three variables are undocumented and unsupported,
2628# and are intended to be withdrawn in a future Autoconf release.
2629# They can cause serious problems if a builder's source tree is in a directory
2630# whose full name contains unusual characters.
2631ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2632ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2633ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2634
2635
2636# Find a good install program.  We prefer a C program (faster),
2637# so one script is as good as another.  But avoid the broken or
2638# incompatible versions:
2639# SysV /etc/install, /usr/sbin/install
2640# SunOS /usr/etc/install
2641# IRIX /sbin/install
2642# AIX /bin/install
2643# AmigaOS /C/install, which installs bootblocks on floppy discs
2644# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647# OS/2's system install, which has a completely different semantic
2648# ./install, which can be erroneously created by make from ./install.sh.
2649# Reject install programs that cannot install multiple files.
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651$as_echo_n "checking for a BSD-compatible install... " >&6; }
2652if test -z "$INSTALL"; then
2653if ${ac_cv_path_install+:} false; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661    # Account for people who put trailing slashes in PATH elements.
2662case $as_dir/ in #((
2663  ./ | .// | /[cC]/* | \
2664  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2666  /usr/ucb/* ) ;;
2667  *)
2668    # OSF1 and SCO ODT 3.0 have their own names for install.
2669    # Don't use installbsd from OSF since it installs stuff as root
2670    # by default.
2671    for ac_prog in ginstall scoinst install; do
2672      for ac_exec_ext in '' $ac_executable_extensions; do
2673	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2674	  if test $ac_prog = install &&
2675	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676	    # AIX install.  It has an incompatible calling convention.
2677	    :
2678	  elif test $ac_prog = install &&
2679	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680	    # program-specific install script used by HP pwplus--don't use.
2681	    :
2682	  else
2683	    rm -rf conftest.one conftest.two conftest.dir
2684	    echo one > conftest.one
2685	    echo two > conftest.two
2686	    mkdir conftest.dir
2687	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2688	      test -s conftest.one && test -s conftest.two &&
2689	      test -s conftest.dir/conftest.one &&
2690	      test -s conftest.dir/conftest.two
2691	    then
2692	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2693	      break 3
2694	    fi
2695	  fi
2696	fi
2697      done
2698    done
2699    ;;
2700esac
2701
2702  done
2703IFS=$as_save_IFS
2704
2705rm -rf conftest.one conftest.two conftest.dir
2706
2707fi
2708  if test "${ac_cv_path_install+set}" = set; then
2709    INSTALL=$ac_cv_path_install
2710  else
2711    # As a last resort, use the slow shell script.  Don't cache a
2712    # value for INSTALL within a source directory, because that will
2713    # break other packages using the cache if that directory is
2714    # removed, or if the value is a relative name.
2715    INSTALL=$ac_install_sh
2716  fi
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2719$as_echo "$INSTALL" >&6; }
2720
2721# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722# It thinks the first close brace ends the variable substitution.
2723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2724
2725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2726
2727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2730$as_echo_n "checking whether build environment is sane... " >&6; }
2731# Just in case
2732sleep 1
2733echo timestamp > conftest.file
2734# Do `set' in a subshell so we don't clobber the current shell's
2735# arguments.  Must try -L first in case configure is actually a
2736# symlink; some systems play weird games with the mod time of symlinks
2737# (eg FreeBSD returns the mod time of the symlink's containing
2738# directory).
2739if (
2740   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2741   if test "$*" = "X"; then
2742      # -L didn't work.
2743      set X `ls -t $srcdir/configure conftest.file`
2744   fi
2745   rm -f conftest.file
2746   if test "$*" != "X $srcdir/configure conftest.file" \
2747      && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749      # If neither matched, then we have a broken ls.  This can happen
2750      # if, for instance, CONFIG_SHELL is bash and it inherits a
2751      # broken ls alias from the environment.  This has actually
2752      # happened.  Such a system could not be considered "sane".
2753      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2754alias in your environment" "$LINENO" 5
2755   fi
2756
2757   test "$2" = conftest.file
2758   )
2759then
2760   # Ok.
2761   :
2762else
2763   as_fn_error $? "newly created file is older than distributed files!
2764Check your system clock" "$LINENO" 5
2765fi
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767$as_echo "yes" >&6; }
2768test "$program_prefix" != NONE &&
2769  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2770# Use a double $ so make ignores it.
2771test "$program_suffix" != NONE &&
2772  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2773# Double any \ or $.
2774# By default was `s,x,x', remove it if useless.
2775ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2776program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2777
2778# expand $ac_aux_dir to an absolute path
2779am_aux_dir=`cd $ac_aux_dir && pwd`
2780
2781test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2782# Use eval to expand $SHELL
2783if eval "$MISSING --run true"; then
2784  am_missing_run="$MISSING --run "
2785else
2786  am_missing_run=
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2788$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2789fi
2790
2791if mkdir -p -- . 2>/dev/null; then
2792  # Keeping the `.' argument allows $(mkdir_p) to be used without
2793  # argument.  Indeed, we sometimes output rules like
2794  #   $(mkdir_p) $(somedir)
2795  # where $(somedir) is conditionally defined.
2796  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2797  # expensive solution, as it forces Make to start a sub-shell.)
2798  mkdir_p='mkdir -p -- .'
2799else
2800  # On NextStep and OpenStep, the `mkdir' command does not
2801  # recognize any option.  It will interpret all options as
2802  # directories to create, and then abort because `.' already
2803  # exists.
2804  for d in ./-p ./--;
2805  do
2806    test -d $d && rmdir $d
2807  done
2808  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2809  if test -f "$ac_aux_dir/mkinstalldirs"; then
2810    mkdir_p='$(mkinstalldirs)'
2811  else
2812    mkdir_p='$(install_sh) -d'
2813  fi
2814fi
2815
2816for ac_prog in gawk mawk nawk awk
2817do
2818  # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_AWK+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$AWK"; then
2826  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835    ac_cv_prog_AWK="$ac_prog"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845AWK=$ac_cv_prog_AWK
2846if test -n "$AWK"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848$as_echo "$AWK" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855  test -n "$AWK" && break
2856done
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860set x ${MAKE-make}
2861ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  cat >conftest.make <<\_ACEOF
2866SHELL = /bin/sh
2867all:
2868	@echo '@@@%%%=$(MAKE)=@@@%%%'
2869_ACEOF
2870# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872  *@@@%%%=?*=@@@%%%*)
2873    eval ac_cv_prog_make_${ac_make}_set=yes;;
2874  *)
2875    eval ac_cv_prog_make_${ac_make}_set=no;;
2876esac
2877rm -f conftest.make
2878fi
2879if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882  SET_MAKE=
2883else
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885$as_echo "no" >&6; }
2886  SET_MAKE="MAKE=${MAKE-make}"
2887fi
2888
2889rm -rf .tst 2>/dev/null
2890mkdir .tst 2>/dev/null
2891if test -d .tst; then
2892  am__leading_dot=.
2893else
2894  am__leading_dot=_
2895fi
2896rmdir .tst 2>/dev/null
2897
2898# test to see if srcdir already configured
2899if test "`cd $srcdir && pwd`" != "`pwd`" &&
2900   test -f $srcdir/config.status; then
2901  as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902fi
2903
2904# test whether we have cygpath
2905if test -z "$CYGPATH_W"; then
2906  if (cygpath --version) >/dev/null 2>/dev/null; then
2907    CYGPATH_W='cygpath -w'
2908  else
2909    CYGPATH_W=echo
2910  fi
2911fi
2912
2913
2914# Define the identity of the package.
2915 PACKAGE='libid3tag'
2916 VERSION='0.15.1b'
2917
2918
2919cat >>confdefs.h <<_ACEOF
2920#define PACKAGE "$PACKAGE"
2921_ACEOF
2922
2923
2924cat >>confdefs.h <<_ACEOF
2925#define VERSION "$VERSION"
2926_ACEOF
2927
2928# Some tools Automake needs.
2929
2930ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2931
2932
2933AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2934
2935
2936AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2937
2938
2939AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2940
2941
2942MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2943
2944
2945AMTAR=${AMTAR-"${am_missing_run}tar"}
2946
2947install_sh=${install_sh-"$am_aux_dir/install-sh"}
2948
2949# Installed binaries are usually stripped using `strip' when the user
2950# run `make install-strip'.  However `strip' might not be the right
2951# tool to use in cross-compilation environments, therefore Automake
2952# will honor the `STRIP' environment variable to overrule this program.
2953if test "$cross_compiling" != no; then
2954  if test -n "$ac_tool_prefix"; then
2955  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956set dummy ${ac_tool_prefix}strip; ac_word=$2
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if ${ac_cv_prog_STRIP+:} false; then :
2960  $as_echo_n "(cached) " >&6
2961else
2962  if test -n "$STRIP"; then
2963  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  test -z "$as_dir" && as_dir=.
2970    for ac_exec_ext in '' $ac_executable_extensions; do
2971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977  done
2978IFS=$as_save_IFS
2979
2980fi
2981fi
2982STRIP=$ac_cv_prog_STRIP
2983if test -n "$STRIP"; then
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985$as_echo "$STRIP" >&6; }
2986else
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992fi
2993if test -z "$ac_cv_prog_STRIP"; then
2994  ac_ct_STRIP=$STRIP
2995  # Extract the first word of "strip", so it can be a program name with args.
2996set dummy strip; ac_word=$2
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
2999if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000  $as_echo_n "(cached) " >&6
3001else
3002  if test -n "$ac_ct_STRIP"; then
3003  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  test -z "$as_dir" && as_dir=.
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012    ac_cv_prog_ac_ct_STRIP="strip"
3013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017  done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023if test -n "$ac_ct_STRIP"; then
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025$as_echo "$ac_ct_STRIP" >&6; }
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031  if test "x$ac_ct_STRIP" = x; then
3032    STRIP=":"
3033  else
3034    case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040    STRIP=$ac_ct_STRIP
3041  fi
3042else
3043  STRIP="$ac_cv_prog_STRIP"
3044fi
3045
3046fi
3047INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3048
3049# We need awk for the "check" target.  The system "awk" is bad on
3050# some platforms.
3051
3052
3053
3054
3055ac_config_headers="$ac_config_headers config.h"
3056
3057
3058
3059# Make sure we can run config.sub.
3060$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3061  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3062
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3064$as_echo_n "checking build system type... " >&6; }
3065if ${ac_cv_build+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  ac_build_alias=$build_alias
3069test "x$ac_build_alias" = x &&
3070  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3071test "x$ac_build_alias" = x &&
3072  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3073ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3074  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3075
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3078$as_echo "$ac_cv_build" >&6; }
3079case $ac_cv_build in
3080*-*-*) ;;
3081*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3082esac
3083build=$ac_cv_build
3084ac_save_IFS=$IFS; IFS='-'
3085set x $ac_cv_build
3086shift
3087build_cpu=$1
3088build_vendor=$2
3089shift; shift
3090# Remember, the first character of IFS is used to create $*,
3091# except with old shells:
3092build_os=$*
3093IFS=$ac_save_IFS
3094case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3095
3096
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3098$as_echo_n "checking host system type... " >&6; }
3099if ${ac_cv_host+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test "x$host_alias" = x; then
3103  ac_cv_host=$ac_cv_build
3104else
3105  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3106    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3107fi
3108
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3111$as_echo "$ac_cv_host" >&6; }
3112case $ac_cv_host in
3113*-*-*) ;;
3114*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3115esac
3116host=$ac_cv_host
3117ac_save_IFS=$IFS; IFS='-'
3118set x $ac_cv_host
3119shift
3120host_cpu=$1
3121host_vendor=$2
3122shift; shift
3123# Remember, the first character of IFS is used to create $*,
3124# except with old shells:
3125host_os=$*
3126IFS=$ac_save_IFS
3127case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3128
3129
3130
3131
3132ac_ext=c
3133ac_cpp='$CPP $CPPFLAGS'
3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137if test -n "$ac_tool_prefix"; then
3138  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if ${ac_cv_prog_CC+:} false; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  if test -n "$CC"; then
3146  ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153    for ac_exec_ext in '' $ac_executable_extensions; do
3154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160  done
3161IFS=$as_save_IFS
3162
3163fi
3164fi
3165CC=$ac_cv_prog_CC
3166if test -n "$CC"; then
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168$as_echo "$CC" >&6; }
3169else
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172fi
3173
3174
3175fi
3176if test -z "$ac_cv_prog_CC"; then
3177  ac_ct_CC=$CC
3178  # Extract the first word of "gcc", so it can be a program name with args.
3179set dummy gcc; ac_word=$2
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  if test -n "$ac_ct_CC"; then
3186  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191  IFS=$as_save_IFS
3192  test -z "$as_dir" && as_dir=.
3193    for ac_exec_ext in '' $ac_executable_extensions; do
3194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195    ac_cv_prog_ac_ct_CC="gcc"
3196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197    break 2
3198  fi
3199done
3200  done
3201IFS=$as_save_IFS
3202
3203fi
3204fi
3205ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206if test -n "$ac_ct_CC"; then
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208$as_echo "$ac_ct_CC" >&6; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214  if test "x$ac_ct_CC" = x; then
3215    CC=""
3216  else
3217    case $cross_compiling:$ac_tool_warned in
3218yes:)
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221ac_tool_warned=yes ;;
3222esac
3223    CC=$ac_ct_CC
3224  fi
3225else
3226  CC="$ac_cv_prog_CC"
3227fi
3228
3229if test -z "$CC"; then
3230          if test -n "$ac_tool_prefix"; then
3231    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232set dummy ${ac_tool_prefix}cc; ac_word=$2
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234$as_echo_n "checking for $ac_word... " >&6; }
3235if ${ac_cv_prog_CC+:} false; then :
3236  $as_echo_n "(cached) " >&6
3237else
3238  if test -n "$CC"; then
3239  ac_cv_prog_CC="$CC" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246    for ac_exec_ext in '' $ac_executable_extensions; do
3247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248    ac_cv_prog_CC="${ac_tool_prefix}cc"
3249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253  done
3254IFS=$as_save_IFS
3255
3256fi
3257fi
3258CC=$ac_cv_prog_CC
3259if test -n "$CC"; then
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261$as_echo "$CC" >&6; }
3262else
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265fi
3266
3267
3268  fi
3269fi
3270if test -z "$CC"; then
3271  # Extract the first word of "cc", so it can be a program name with args.
3272set dummy cc; ac_word=$2
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274$as_echo_n "checking for $ac_word... " >&6; }
3275if ${ac_cv_prog_CC+:} false; then :
3276  $as_echo_n "(cached) " >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281  ac_prog_rejected=no
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290       ac_prog_rejected=yes
3291       continue
3292     fi
3293    ac_cv_prog_CC="cc"
3294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298  done
3299IFS=$as_save_IFS
3300
3301if test $ac_prog_rejected = yes; then
3302  # We found a bogon in the path, so make sure we never use it.
3303  set dummy $ac_cv_prog_CC
3304  shift
3305  if test $# != 0; then
3306    # We chose a different compiler from the bogus one.
3307    # However, it has the same basename, so the bogon will be chosen
3308    # first if we set CC to just the basename; use the full file name.
3309    shift
3310    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3311  fi
3312fi
3313fi
3314fi
3315CC=$ac_cv_prog_CC
3316if test -n "$CC"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318$as_echo "$CC" >&6; }
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322fi
3323
3324
3325fi
3326if test -z "$CC"; then
3327  if test -n "$ac_tool_prefix"; then
3328  for ac_prog in cl.exe
3329  do
3330    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if ${ac_cv_prog_CC+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  if test -n "$CC"; then
3338  ac_cv_prog_CC="$CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3361else
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367    test -n "$CC" && break
3368  done
3369fi
3370if test -z "$CC"; then
3371  ac_ct_CC=$CC
3372  for ac_prog in cl.exe
3373do
3374  # Extract the first word of "$ac_prog", so it can be a program name with args.
3375set dummy $ac_prog; ac_word=$2
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377$as_echo_n "checking for $ac_word... " >&6; }
3378if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  if test -n "$ac_ct_CC"; then
3382  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383else
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  test -z "$as_dir" && as_dir=.
3389    for ac_exec_ext in '' $ac_executable_extensions; do
3390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391    ac_cv_prog_ac_ct_CC="$ac_prog"
3392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393    break 2
3394  fi
3395done
3396  done
3397IFS=$as_save_IFS
3398
3399fi
3400fi
3401ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402if test -n "$ac_ct_CC"; then
3403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404$as_echo "$ac_ct_CC" >&6; }
3405else
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407$as_echo "no" >&6; }
3408fi
3409
3410
3411  test -n "$ac_ct_CC" && break
3412done
3413
3414  if test "x$ac_ct_CC" = x; then
3415    CC=""
3416  else
3417    case $cross_compiling:$ac_tool_warned in
3418yes:)
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421ac_tool_warned=yes ;;
3422esac
3423    CC=$ac_ct_CC
3424  fi
3425fi
3426
3427fi
3428
3429
3430test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "no acceptable C compiler found in \$PATH
3433See \`config.log' for more details" "$LINENO" 5; }
3434
3435# Provide some information about the compiler.
3436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3437set X $ac_compile
3438ac_compiler=$2
3439for ac_option in --version -v -V -qversion; do
3440  { { ac_try="$ac_compiler $ac_option >&5"
3441case "(($ac_try" in
3442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443  *) ac_try_echo=$ac_try;;
3444esac
3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446$as_echo "$ac_try_echo"; } >&5
3447  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448  ac_status=$?
3449  if test -s conftest.err; then
3450    sed '10a\
3451... rest of stderr output deleted ...
3452         10q' conftest.err >conftest.er1
3453    cat conftest.er1 >&5
3454  fi
3455  rm -f conftest.er1 conftest.err
3456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457  test $ac_status = 0; }
3458done
3459
3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471ac_clean_files_save=$ac_clean_files
3472ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473# Try to create an executable without -o first, disregard a.out.
3474# It will help us diagnose broken compilers, and finding out an intuition
3475# of exeext.
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477$as_echo_n "checking whether the C compiler works... " >&6; }
3478ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479
3480# The possible output files:
3481ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3482
3483ac_rmfiles=
3484for ac_file in $ac_files
3485do
3486  case $ac_file in
3487    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3489  esac
3490done
3491rm -f $ac_rmfiles
3492
3493if { { ac_try="$ac_link_default"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499$as_echo "$ac_try_echo"; } >&5
3500  (eval "$ac_link_default") 2>&5
3501  ac_status=$?
3502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503  test $ac_status = 0; }; then :
3504  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3507# so that the user can short-circuit this test for compilers unknown to
3508# Autoconf.
3509for ac_file in $ac_files ''
3510do
3511  test -f "$ac_file" || continue
3512  case $ac_file in
3513    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3514	;;
3515    [ab].out )
3516	# We found the default executable, but exeext='' is most
3517	# certainly right.
3518	break;;
3519    *.* )
3520	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521	then :; else
3522	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523	fi
3524	# We set ac_cv_exeext here because the later test for it is not
3525	# safe: cross compilers may not add the suffix if given an `-o'
3526	# argument, so we may need to know it at that point already.
3527	# Even if this section looks crufty: it has the advantage of
3528	# actually working.
3529	break;;
3530    * )
3531	break;;
3532  esac
3533done
3534test "$ac_cv_exeext" = no && ac_cv_exeext=
3535
3536else
3537  ac_file=''
3538fi
3539if test -z "$ac_file"; then :
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542$as_echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547as_fn_error 77 "C compiler cannot create executables
3548See \`config.log' for more details" "$LINENO" 5; }
3549else
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551$as_echo "yes" >&6; }
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554$as_echo_n "checking for C compiler default output file name... " >&6; }
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556$as_echo "$ac_file" >&6; }
3557ac_exeext=$ac_cv_exeext
3558
3559rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560ac_clean_files=$ac_clean_files_save
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562$as_echo_n "checking for suffix of executables... " >&6; }
3563if { { ac_try="$ac_link"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_link") 2>&5
3571  ac_status=$?
3572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; }; then :
3574  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3576# work properly (i.e., refer to `conftest.exe'), while it won't with
3577# `rm'.
3578for ac_file in conftest.exe conftest conftest.*; do
3579  test -f "$ac_file" || continue
3580  case $ac_file in
3581    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583	  break;;
3584    * ) break;;
3585  esac
3586done
3587else
3588  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591See \`config.log' for more details" "$LINENO" 5; }
3592fi
3593rm -f conftest conftest$ac_cv_exeext
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595$as_echo "$ac_cv_exeext" >&6; }
3596
3597rm -f conftest.$ac_ext
3598EXEEXT=$ac_cv_exeext
3599ac_exeext=$EXEEXT
3600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602#include <stdio.h>
3603int
3604main ()
3605{
3606FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613ac_clean_files="$ac_clean_files conftest.out"
3614# Check that the compiler produces executables we can run.  If not, either
3615# the compiler is broken, or we cross compile.
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617$as_echo_n "checking whether we are cross compiling... " >&6; }
3618if test "$cross_compiling" != yes; then
3619  { { ac_try="$ac_link"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625$as_echo "$ac_try_echo"; } >&5
3626  (eval "$ac_link") 2>&5
3627  ac_status=$?
3628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629  test $ac_status = 0; }
3630  if { ac_try='./conftest$ac_cv_exeext'
3631  { { case "(($ac_try" in
3632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633  *) ac_try_echo=$ac_try;;
3634esac
3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636$as_echo "$ac_try_echo"; } >&5
3637  (eval "$ac_try") 2>&5
3638  ac_status=$?
3639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640  test $ac_status = 0; }; }; then
3641    cross_compiling=no
3642  else
3643    if test "$cross_compiling" = maybe; then
3644	cross_compiling=yes
3645    else
3646	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648as_fn_error $? "cannot run C compiled programs.
3649If you meant to cross compile, use \`--host'.
3650See \`config.log' for more details" "$LINENO" 5; }
3651    fi
3652  fi
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655$as_echo "$cross_compiling" >&6; }
3656
3657rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658ac_clean_files=$ac_clean_files_save
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660$as_echo_n "checking for suffix of object files... " >&6; }
3661if ${ac_cv_objext+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666
3667int
3668main ()
3669{
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675rm -f conftest.o conftest.obj
3676if { { ac_try="$ac_compile"
3677case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682$as_echo "$ac_try_echo"; } >&5
3683  (eval "$ac_compile") 2>&5
3684  ac_status=$?
3685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686  test $ac_status = 0; }; then :
3687  for ac_file in conftest.o conftest.obj conftest.*; do
3688  test -f "$ac_file" || continue;
3689  case $ac_file in
3690    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692       break;;
3693  esac
3694done
3695else
3696  $as_echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701as_fn_error $? "cannot compute suffix of object files: cannot compile
3702See \`config.log' for more details" "$LINENO" 5; }
3703fi
3704rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707$as_echo "$ac_cv_objext" >&6; }
3708OBJEXT=$ac_cv_objext
3709ac_objext=$OBJEXT
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712if ${ac_cv_c_compiler_gnu+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
3721#ifndef __GNUC__
3722       choke me
3723#endif
3724
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729if ac_fn_c_try_compile "$LINENO"; then :
3730  ac_compiler_gnu=yes
3731else
3732  ac_compiler_gnu=no
3733fi
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740if test $ac_compiler_gnu = yes; then
3741  GCC=yes
3742else
3743  GCC=
3744fi
3745ac_test_CFLAGS=${CFLAGS+set}
3746ac_save_CFLAGS=$CFLAGS
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748$as_echo_n "checking whether $CC accepts -g... " >&6; }
3749if ${ac_cv_prog_cc_g+:} false; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  ac_save_c_werror_flag=$ac_c_werror_flag
3753   ac_c_werror_flag=yes
3754   ac_cv_prog_cc_g=no
3755   CFLAGS="-g"
3756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758
3759int
3760main ()
3761{
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767if ac_fn_c_try_compile "$LINENO"; then :
3768  ac_cv_prog_cc_g=yes
3769else
3770  CFLAGS=""
3771      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
3783
3784else
3785  ac_c_werror_flag=$ac_save_c_werror_flag
3786	 CFLAGS="-g"
3787	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789
3790int
3791main ()
3792{
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799  ac_cv_prog_cc_g=yes
3800fi
3801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802fi
3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804fi
3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806   ac_c_werror_flag=$ac_save_c_werror_flag
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809$as_echo "$ac_cv_prog_cc_g" >&6; }
3810if test "$ac_test_CFLAGS" = set; then
3811  CFLAGS=$ac_save_CFLAGS
3812elif test $ac_cv_prog_cc_g = yes; then
3813  if test "$GCC" = yes; then
3814    CFLAGS="-g -O2"
3815  else
3816    CFLAGS="-g"
3817  fi
3818else
3819  if test "$GCC" = yes; then
3820    CFLAGS="-O2"
3821  else
3822    CFLAGS=
3823  fi
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827if ${ac_cv_prog_cc_c89+:} false; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  ac_cv_prog_cc_c89=no
3831ac_save_CC=$CC
3832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834#include <stdarg.h>
3835#include <stdio.h>
3836#include <sys/types.h>
3837#include <sys/stat.h>
3838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3839struct buf { int x; };
3840FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841static char *e (p, i)
3842     char **p;
3843     int i;
3844{
3845  return p[i];
3846}
3847static char *f (char * (*g) (char **, int), char **p, ...)
3848{
3849  char *s;
3850  va_list v;
3851  va_start (v,p);
3852  s = g (p, va_arg (v,int));
3853  va_end (v);
3854  return s;
3855}
3856
3857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3858   function prototypes and stuff, but not '\xHH' hex character constants.
3859   These don't provoke an error unfortunately, instead are silently treated
3860   as 'x'.  The following induces an error, until -std is added to get
3861   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3862   array size at least.  It's necessary to write '\x00'==0 to get something
3863   that's true only with -std.  */
3864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865
3866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867   inside strings and character constants.  */
3868#define FOO(x) 'x'
3869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870
3871int test (int i, double x);
3872struct s1 {int (*f) (int a);};
3873struct s2 {int (*f) (double a);};
3874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875int argc;
3876char **argv;
3877int
3878main ()
3879{
3880return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887do
3888  CC="$ac_save_CC $ac_arg"
3889  if ac_fn_c_try_compile "$LINENO"; then :
3890  ac_cv_prog_cc_c89=$ac_arg
3891fi
3892rm -f core conftest.err conftest.$ac_objext
3893  test "x$ac_cv_prog_cc_c89" != "xno" && break
3894done
3895rm -f conftest.$ac_ext
3896CC=$ac_save_CC
3897
3898fi
3899# AC_CACHE_VAL
3900case "x$ac_cv_prog_cc_c89" in
3901  x)
3902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903$as_echo "none needed" >&6; } ;;
3904  xno)
3905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906$as_echo "unsupported" >&6; } ;;
3907  *)
3908    CC="$CC $ac_cv_prog_cc_c89"
3909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911esac
3912if test "x$ac_cv_prog_cc_c89" != xno; then :
3913
3914fi
3915
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921DEPDIR="${am__leading_dot}deps"
3922
3923ac_config_commands="$ac_config_commands depfiles"
3924
3925
3926am_make=${MAKE-make}
3927cat > confinc << 'END'
3928am__doit:
3929	@echo done
3930.PHONY: am__doit
3931END
3932# If we don't find an include directive, just comment out the code.
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934$as_echo_n "checking for style of include used by $am_make... " >&6; }
3935am__include="#"
3936am__quote=
3937_am_result=none
3938# First try GNU make style include.
3939echo "include confinc" > confmf
3940# We grep out `Entering directory' and `Leaving directory'
3941# messages which can occur if `w' ends up in MAKEFLAGS.
3942# In particular we don't look at `^make:' because GNU make might
3943# be invoked under some other name (usually "gmake"), in which
3944# case it prints its new name instead of `make'.
3945if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3946   am__include=include
3947   am__quote=
3948   _am_result=GNU
3949fi
3950# Now try BSD make style include.
3951if test "$am__include" = "#"; then
3952   echo '.include "confinc"' > confmf
3953   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3954      am__include=.include
3955      am__quote="\""
3956      _am_result=BSD
3957   fi
3958fi
3959
3960
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962$as_echo "$_am_result" >&6; }
3963rm -f confinc confmf
3964
3965# Check whether --enable-dependency-tracking was given.
3966if test "${enable_dependency_tracking+set}" = set; then :
3967  enableval=$enable_dependency_tracking;
3968fi
3969
3970if test "x$enable_dependency_tracking" != xno; then
3971  am_depcomp="$ac_aux_dir/depcomp"
3972  AMDEPBACKSLASH='\'
3973fi
3974
3975
3976if test "x$enable_dependency_tracking" != xno; then
3977  AMDEP_TRUE=
3978  AMDEP_FALSE='#'
3979else
3980  AMDEP_TRUE='#'
3981  AMDEP_FALSE=
3982fi
3983
3984
3985
3986
3987depcc="$CC"   am_compiler_list=
3988
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3990$as_echo_n "checking dependency style of $depcc... " >&6; }
3991if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3992  $as_echo_n "(cached) " >&6
3993else
3994  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3995  # We make a subdir and do the tests there.  Otherwise we can end up
3996  # making bogus files that we don't know about and never remove.  For
3997  # instance it was reported that on HP-UX the gcc test will end up
3998  # making a dummy file named `D' -- because `-MD' means `put the output
3999  # in D'.
4000  mkdir conftest.dir
4001  # Copy depcomp to subdir because otherwise we won't find it if we're
4002  # using a relative directory.
4003  cp "$am_depcomp" conftest.dir
4004  cd conftest.dir
4005  # We will build objects and dependencies in a subdirectory because
4006  # it helps to detect inapplicable dependency modes.  For instance
4007  # both Tru64's cc and ICC support -MD to output dependencies as a
4008  # side effect of compilation, but ICC will put the dependencies in
4009  # the current directory while Tru64 will put them in the object
4010  # directory.
4011  mkdir sub
4012
4013  am_cv_CC_dependencies_compiler_type=none
4014  if test "$am_compiler_list" = ""; then
4015     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4016  fi
4017  for depmode in $am_compiler_list; do
4018    # Setup a source with many dependencies, because some compilers
4019    # like to wrap large dependency lists on column 80 (with \), and
4020    # we should not choose a depcomp mode which is confused by this.
4021    #
4022    # We need to recreate these files for each test, as the compiler may
4023    # overwrite some of them when testing with obscure command lines.
4024    # This happens at least with the AIX C compiler.
4025    : > sub/conftest.c
4026    for i in 1 2 3 4 5 6; do
4027      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4028      : > sub/conftst$i.h
4029    done
4030    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4031
4032    case $depmode in
4033    nosideeffect)
4034      # after this tag, mechanisms are not by side-effect, so they'll
4035      # only be used when explicitly requested
4036      if test "x$enable_dependency_tracking" = xyes; then
4037	continue
4038      else
4039	break
4040      fi
4041      ;;
4042    none) break ;;
4043    esac
4044    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045    # mode.  It turns out that the SunPro C++ compiler does not properly
4046    # handle `-M -o', and we need to detect this.
4047    if depmode=$depmode \
4048       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4049       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4051         >/dev/null 2>conftest.err &&
4052       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4053       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4054       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4055      # icc doesn't choke on unknown options, it will just issue warnings
4056      # (even with -Werror).  So we grep stderr for any message
4057      # that says an option was ignored.
4058      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4059        am_cv_CC_dependencies_compiler_type=$depmode
4060        break
4061      fi
4062    fi
4063  done
4064
4065  cd ..
4066  rm -rf conftest.dir
4067else
4068  am_cv_CC_dependencies_compiler_type=none
4069fi
4070
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4073$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4074CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4075
4076
4077
4078if
4079  test "x$enable_dependency_tracking" != xno \
4080  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4081  am__fastdepCC_TRUE=
4082  am__fastdepCC_FALSE='#'
4083else
4084  am__fastdepCC_TRUE='#'
4085  am__fastdepCC_FALSE=
4086fi
4087
4088
4089
4090if test "$GCC" = yes
4091then
4092    case "$host" in
4093	*-*-mingw*)
4094	    case "$build" in
4095		*-*-cygwin*)
4096		    CPPFLAGS="$CPPFLAGS -mno-cygwin"
4097		    LDFLAGS="$LDFLAGS -mno-cygwin"
4098		    ;;
4099	    esac
4100    esac
4101
4102fi
4103
4104
4105# Check whether --enable-shared was given.
4106if test "${enable_shared+set}" = set; then :
4107  enableval=$enable_shared; p=${PACKAGE-default}
4108    case $enableval in
4109    yes) enable_shared=yes ;;
4110    no) enable_shared=no ;;
4111    *)
4112      enable_shared=no
4113      # Look at the argument we got.  We use all the common list separators.
4114      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4115      for pkg in $enableval; do
4116	IFS="$lt_save_ifs"
4117	if test "X$pkg" = "X$p"; then
4118	  enable_shared=yes
4119	fi
4120      done
4121      IFS="$lt_save_ifs"
4122      ;;
4123    esac
4124else
4125  enable_shared=yes
4126fi
4127
4128
4129# Check whether --enable-static was given.
4130if test "${enable_static+set}" = set; then :
4131  enableval=$enable_static; p=${PACKAGE-default}
4132    case $enableval in
4133    yes) enable_static=yes ;;
4134    no) enable_static=no ;;
4135    *)
4136     enable_static=no
4137      # Look at the argument we got.  We use all the common list separators.
4138      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4139      for pkg in $enableval; do
4140	IFS="$lt_save_ifs"
4141	if test "X$pkg" = "X$p"; then
4142	  enable_static=yes
4143	fi
4144      done
4145      IFS="$lt_save_ifs"
4146      ;;
4147    esac
4148else
4149  enable_static=yes
4150fi
4151
4152
4153# Check whether --enable-fast-install was given.
4154if test "${enable_fast_install+set}" = set; then :
4155  enableval=$enable_fast_install; p=${PACKAGE-default}
4156    case $enableval in
4157    yes) enable_fast_install=yes ;;
4158    no) enable_fast_install=no ;;
4159    *)
4160      enable_fast_install=no
4161      # Look at the argument we got.  We use all the common list separators.
4162      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4163      for pkg in $enableval; do
4164	IFS="$lt_save_ifs"
4165	if test "X$pkg" = "X$p"; then
4166	  enable_fast_install=yes
4167	fi
4168      done
4169      IFS="$lt_save_ifs"
4170      ;;
4171    esac
4172else
4173  enable_fast_install=yes
4174fi
4175
4176
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4178$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4179if ${lt_cv_path_SED+:} false; then :
4180  $as_echo_n "(cached) " >&6
4181else
4182  # Loop through the user's path and test for sed and gsed.
4183# Then use that list of sed's as ones to test for truncation.
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189  for lt_ac_prog in sed gsed; do
4190    for ac_exec_ext in '' $ac_executable_extensions; do
4191      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4192        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4193      fi
4194    done
4195  done
4196done
4197lt_ac_max=0
4198lt_ac_count=0
4199# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4200# along with /bin/sed that truncates output.
4201for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4202  test ! -f $lt_ac_sed && break
4203  cat /dev/null > conftest.in
4204  lt_ac_count=0
4205  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4206  # Check for GNU sed and select it if it is found.
4207  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4208    lt_cv_path_SED=$lt_ac_sed
4209    break
4210  fi
4211  while true; do
4212    cat conftest.in conftest.in >conftest.tmp
4213    mv conftest.tmp conftest.in
4214    cp conftest.in conftest.nl
4215    echo >>conftest.nl
4216    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4217    cmp -s conftest.out conftest.nl || break
4218    # 10000 chars as input seems more than enough
4219    test $lt_ac_count -gt 10 && break
4220    lt_ac_count=`expr $lt_ac_count + 1`
4221    if test $lt_ac_count -gt $lt_ac_max; then
4222      lt_ac_max=$lt_ac_count
4223      lt_cv_path_SED=$lt_ac_sed
4224    fi
4225  done
4226done
4227SED=$lt_cv_path_SED
4228
4229fi
4230
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4232$as_echo "$SED" >&6; }
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4235$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4236if ${ac_cv_path_GREP+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if test -z "$GREP"; then
4240  ac_path_GREP_found=false
4241  # Loop through the user's path and test for each of PROGNAME-LIST
4242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247    for ac_prog in grep ggrep; do
4248    for ac_exec_ext in '' $ac_executable_extensions; do
4249      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251# Check for GNU ac_path_GREP and select it if it is found.
4252  # Check for GNU $ac_path_GREP
4253case `"$ac_path_GREP" --version 2>&1` in
4254*GNU*)
4255  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4256*)
4257  ac_count=0
4258  $as_echo_n 0123456789 >"conftest.in"
4259  while :
4260  do
4261    cat "conftest.in" "conftest.in" >"conftest.tmp"
4262    mv "conftest.tmp" "conftest.in"
4263    cp "conftest.in" "conftest.nl"
4264    $as_echo 'GREP' >> "conftest.nl"
4265    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267    as_fn_arith $ac_count + 1 && ac_count=$as_val
4268    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269      # Best one so far, save it but keep looking for a better one
4270      ac_cv_path_GREP="$ac_path_GREP"
4271      ac_path_GREP_max=$ac_count
4272    fi
4273    # 10*(2^10) chars as input seems more than enough
4274    test $ac_count -gt 10 && break
4275  done
4276  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277esac
4278
4279      $ac_path_GREP_found && break 3
4280    done
4281  done
4282  done
4283IFS=$as_save_IFS
4284  if test -z "$ac_cv_path_GREP"; then
4285    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4286  fi
4287else
4288  ac_cv_path_GREP=$GREP
4289fi
4290
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4293$as_echo "$ac_cv_path_GREP" >&6; }
4294 GREP="$ac_cv_path_GREP"
4295
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4298$as_echo_n "checking for egrep... " >&6; }
4299if ${ac_cv_path_EGREP+:} false; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303   then ac_cv_path_EGREP="$GREP -E"
4304   else
4305     if test -z "$EGREP"; then
4306  ac_path_EGREP_found=false
4307  # Loop through the user's path and test for each of PROGNAME-LIST
4308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310do
4311  IFS=$as_save_IFS
4312  test -z "$as_dir" && as_dir=.
4313    for ac_prog in egrep; do
4314    for ac_exec_ext in '' $ac_executable_extensions; do
4315      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317# Check for GNU ac_path_EGREP and select it if it is found.
4318  # Check for GNU $ac_path_EGREP
4319case `"$ac_path_EGREP" --version 2>&1` in
4320*GNU*)
4321  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4322*)
4323  ac_count=0
4324  $as_echo_n 0123456789 >"conftest.in"
4325  while :
4326  do
4327    cat "conftest.in" "conftest.in" >"conftest.tmp"
4328    mv "conftest.tmp" "conftest.in"
4329    cp "conftest.in" "conftest.nl"
4330    $as_echo 'EGREP' >> "conftest.nl"
4331    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333    as_fn_arith $ac_count + 1 && ac_count=$as_val
4334    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335      # Best one so far, save it but keep looking for a better one
4336      ac_cv_path_EGREP="$ac_path_EGREP"
4337      ac_path_EGREP_max=$ac_count
4338    fi
4339    # 10*(2^10) chars as input seems more than enough
4340    test $ac_count -gt 10 && break
4341  done
4342  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343esac
4344
4345      $ac_path_EGREP_found && break 3
4346    done
4347  done
4348  done
4349IFS=$as_save_IFS
4350  if test -z "$ac_cv_path_EGREP"; then
4351    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352  fi
4353else
4354  ac_cv_path_EGREP=$EGREP
4355fi
4356
4357   fi
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4360$as_echo "$ac_cv_path_EGREP" >&6; }
4361 EGREP="$ac_cv_path_EGREP"
4362
4363
4364
4365# Check whether --with-gnu-ld was given.
4366if test "${with_gnu_ld+set}" = set; then :
4367  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4368else
4369  with_gnu_ld=no
4370fi
4371
4372ac_prog=ld
4373if test "$GCC" = yes; then
4374  # Check if gcc -print-prog-name=ld gives a path.
4375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4376$as_echo_n "checking for ld used by $CC... " >&6; }
4377  case $host in
4378  *-*-mingw*)
4379    # gcc leaves a trailing carriage return which upsets mingw
4380    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381  *)
4382    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4383  esac
4384  case $ac_prog in
4385    # Accept absolute paths.
4386    [\\/]* | ?:[\\/]*)
4387      re_direlt='/[^/][^/]*/\.\./'
4388      # Canonicalize the pathname of ld
4389      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4390      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4391	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4392      done
4393      test -z "$LD" && LD="$ac_prog"
4394      ;;
4395  "")
4396    # If it fails, then pretend we aren't using GCC.
4397    ac_prog=ld
4398    ;;
4399  *)
4400    # If it is relative, then search for the first ld in PATH.
4401    with_gnu_ld=unknown
4402    ;;
4403  esac
4404elif test "$with_gnu_ld" = yes; then
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4406$as_echo_n "checking for GNU ld... " >&6; }
4407else
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4409$as_echo_n "checking for non-GNU ld... " >&6; }
4410fi
4411if ${lt_cv_path_LD+:} false; then :
4412  $as_echo_n "(cached) " >&6
4413else
4414  if test -z "$LD"; then
4415  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4416  for ac_dir in $PATH; do
4417    IFS="$lt_save_ifs"
4418    test -z "$ac_dir" && ac_dir=.
4419    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4420      lt_cv_path_LD="$ac_dir/$ac_prog"
4421      # Check to see if the program is GNU ld.  I'd rather use --version,
4422      # but apparently some GNU ld's only accept -v.
4423      # Break only if it was the GNU/non-GNU ld that we prefer.
4424      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4425      *GNU* | *'with BFD'*)
4426	test "$with_gnu_ld" != no && break
4427	;;
4428      *)
4429	test "$with_gnu_ld" != yes && break
4430	;;
4431      esac
4432    fi
4433  done
4434  IFS="$lt_save_ifs"
4435else
4436  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4437fi
4438fi
4439
4440LD="$lt_cv_path_LD"
4441if test -n "$LD"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4443$as_echo "$LD" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4450$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4451if ${lt_cv_prog_gnu_ld+:} false; then :
4452  $as_echo_n "(cached) " >&6
4453else
4454  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4455case `$LD -v 2>&1 </dev/null` in
4456*GNU* | *'with BFD'*)
4457  lt_cv_prog_gnu_ld=yes
4458  ;;
4459*)
4460  lt_cv_prog_gnu_ld=no
4461  ;;
4462esac
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4465$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4466with_gnu_ld=$lt_cv_prog_gnu_ld
4467
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4470$as_echo_n "checking for $LD option to reload object files... " >&6; }
4471if ${lt_cv_ld_reload_flag+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  lt_cv_ld_reload_flag='-r'
4475fi
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4477$as_echo "$lt_cv_ld_reload_flag" >&6; }
4478reload_flag=$lt_cv_ld_reload_flag
4479case $reload_flag in
4480"" | " "*) ;;
4481*) reload_flag=" $reload_flag" ;;
4482esac
4483reload_cmds='$LD$reload_flag -o $output$reload_objs'
4484
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4486$as_echo_n "checking for BSD-compatible nm... " >&6; }
4487if ${lt_cv_path_NM+:} false; then :
4488  $as_echo_n "(cached) " >&6
4489else
4490  if test -n "$NM"; then
4491  # Let the user override the test.
4492  lt_cv_path_NM="$NM"
4493else
4494  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4495  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4496    IFS="$lt_save_ifs"
4497    test -z "$ac_dir" && ac_dir=.
4498    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4499    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4500      # Check to see if the nm accepts a BSD-compat flag.
4501      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4502      #   nm: unknown option "B" ignored
4503      # Tru64's nm complains that /dev/null is an invalid object file
4504      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4505      */dev/null* | *'Invalid file or object type'*)
4506	lt_cv_path_NM="$tmp_nm -B"
4507	break
4508        ;;
4509      *)
4510	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4511	*/dev/null*)
4512	  lt_cv_path_NM="$tmp_nm -p"
4513	  break
4514	  ;;
4515	*)
4516	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4517	  continue # so that we can try to find one that supports BSD flags
4518	  ;;
4519	esac
4520      esac
4521    fi
4522  done
4523  IFS="$lt_save_ifs"
4524  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4525fi
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4528$as_echo "$lt_cv_path_NM" >&6; }
4529NM="$lt_cv_path_NM"
4530
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4532$as_echo_n "checking whether ln -s works... " >&6; }
4533LN_S=$as_ln_s
4534if test "$LN_S" = "ln -s"; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536$as_echo "yes" >&6; }
4537else
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4539$as_echo "no, using $LN_S" >&6; }
4540fi
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4543$as_echo_n "checking how to recognise dependent libraries... " >&6; }
4544if ${lt_cv_deplibs_check_method+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  lt_cv_file_magic_cmd='$MAGIC_CMD'
4548lt_cv_file_magic_test_file=
4549lt_cv_deplibs_check_method='unknown'
4550# Need to set the preceding variable on all platforms that support
4551# interlibrary dependencies.
4552# 'none' -- dependencies not supported.
4553# `unknown' -- same as none, but documents that we really don't know.
4554# 'pass_all' -- all dependencies passed with no checks.
4555# 'test_compile' -- check by making test program.
4556# 'file_magic [[regex]]' -- check by looking for files in library path
4557# which responds to the $file_magic_cmd with a given extended regex.
4558# If you have `file' or equivalent on your system and you're not sure
4559# whether `pass_all' will *always* work, you probably want this one.
4560
4561case $host_os in
4562aix4* | aix5*)
4563  lt_cv_deplibs_check_method=pass_all
4564  ;;
4565
4566beos*)
4567  lt_cv_deplibs_check_method=pass_all
4568  ;;
4569
4570bsdi4*)
4571  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4572  lt_cv_file_magic_cmd='/usr/bin/file -L'
4573  lt_cv_file_magic_test_file=/shlib/libc.so
4574  ;;
4575
4576cygwin*)
4577  # win32_libid is a shell function defined in ltmain.sh
4578  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4579  lt_cv_file_magic_cmd='win32_libid'
4580  ;;
4581
4582mingw* | pw32*)
4583  # Base MSYS/MinGW do not provide the 'file' command needed by
4584  # win32_libid shell function, so use a weaker test based on 'objdump'.
4585  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4586  lt_cv_file_magic_cmd='$OBJDUMP -f'
4587  ;;
4588
4589darwin* | rhapsody*)
4590  lt_cv_deplibs_check_method=pass_all
4591  ;;
4592
4593freebsd* | kfreebsd*-gnu)
4594  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4595    case $host_cpu in
4596    i*86 )
4597      # Not sure whether the presence of OpenBSD here was a mistake.
4598      # Let's accept both of them until this is cleared up.
4599      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4600      lt_cv_file_magic_cmd=/usr/bin/file
4601      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4602      ;;
4603    esac
4604  else
4605    lt_cv_deplibs_check_method=pass_all
4606  fi
4607  ;;
4608
4609gnu*)
4610  lt_cv_deplibs_check_method=pass_all
4611  ;;
4612
4613hpux10.20* | hpux11*)
4614  lt_cv_file_magic_cmd=/usr/bin/file
4615  case "$host_cpu" in
4616  ia64*)
4617    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4618    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4619    ;;
4620  hppa*64*)
4621    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4622    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4623    ;;
4624  *)
4625    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4626    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4627    ;;
4628  esac
4629  ;;
4630
4631irix5* | irix6* | nonstopux*)
4632  case $LD in
4633  *-32|*"-32 ") libmagic=32-bit;;
4634  *-n32|*"-n32 ") libmagic=N32;;
4635  *-64|*"-64 ") libmagic=64-bit;;
4636  *) libmagic=never-match;;
4637  esac
4638  lt_cv_deplibs_check_method=pass_all
4639  ;;
4640
4641# This must be Linux ELF.
4642linux*)
4643  lt_cv_deplibs_check_method=pass_all
4644  ;;
4645
4646netbsd* | knetbsd*-gnu)
4647  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4648    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4649  else
4650    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4651  fi
4652  ;;
4653
4654newos6*)
4655  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4656  lt_cv_file_magic_cmd=/usr/bin/file
4657  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4658  ;;
4659
4660nto-qnx*)
4661  lt_cv_deplibs_check_method=unknown
4662  ;;
4663
4664openbsd*)
4665  lt_cv_file_magic_cmd=/usr/bin/file
4666  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4667  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4668    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4669  else
4670    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4671  fi
4672  ;;
4673
4674osf3* | osf4* | osf5*)
4675  lt_cv_deplibs_check_method=pass_all
4676  ;;
4677
4678sco3.2v5*)
4679  lt_cv_deplibs_check_method=pass_all
4680  ;;
4681
4682solaris*)
4683  lt_cv_deplibs_check_method=pass_all
4684  ;;
4685
4686sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4687  case $host_vendor in
4688  motorola)
4689    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]'
4690    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4691    ;;
4692  ncr)
4693    lt_cv_deplibs_check_method=pass_all
4694    ;;
4695  sequent)
4696    lt_cv_file_magic_cmd='/bin/file'
4697    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4698    ;;
4699  sni)
4700    lt_cv_file_magic_cmd='/bin/file'
4701    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4702    lt_cv_file_magic_test_file=/lib/libc.so
4703    ;;
4704  siemens)
4705    lt_cv_deplibs_check_method=pass_all
4706    ;;
4707  esac
4708  ;;
4709
4710sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4711  lt_cv_deplibs_check_method=pass_all
4712  ;;
4713esac
4714
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4717$as_echo "$lt_cv_deplibs_check_method" >&6; }
4718file_magic_cmd=$lt_cv_file_magic_cmd
4719deplibs_check_method=$lt_cv_deplibs_check_method
4720test -z "$deplibs_check_method" && deplibs_check_method=unknown
4721
4722
4723
4724
4725# If no C compiler was specified, use CC.
4726LTCC=${LTCC-"$CC"}
4727
4728# Allow CC to be a program name with arguments.
4729compiler=$CC
4730
4731
4732# Check whether --enable-libtool-lock was given.
4733if test "${enable_libtool_lock+set}" = set; then :
4734  enableval=$enable_libtool_lock;
4735fi
4736
4737test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4738
4739# Some flags need to be propagated to the compiler or linker for good
4740# libtool support.
4741case $host in
4742ia64-*-hpux*)
4743  # Find out which ABI we are using.
4744  echo 'int i;' > conftest.$ac_ext
4745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4746  (eval $ac_compile) 2>&5
4747  ac_status=$?
4748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749  test $ac_status = 0; }; then
4750    case `/usr/bin/file conftest.$ac_objext` in
4751    *ELF-32*)
4752      HPUX_IA64_MODE="32"
4753      ;;
4754    *ELF-64*)
4755      HPUX_IA64_MODE="64"
4756      ;;
4757    esac
4758  fi
4759  rm -rf conftest*
4760  ;;
4761*-*-irix6*)
4762  # Find out which ABI we are using.
4763  echo '#line 4763 "configure"' > conftest.$ac_ext
4764  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4765  (eval $ac_compile) 2>&5
4766  ac_status=$?
4767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768  test $ac_status = 0; }; then
4769   if test "$lt_cv_prog_gnu_ld" = yes; then
4770    case `/usr/bin/file conftest.$ac_objext` in
4771    *32-bit*)
4772      LD="${LD-ld} -melf32bsmip"
4773      ;;
4774    *N32*)
4775      LD="${LD-ld} -melf32bmipn32"
4776      ;;
4777    *64-bit*)
4778      LD="${LD-ld} -melf64bmip"
4779      ;;
4780    esac
4781   else
4782    case `/usr/bin/file conftest.$ac_objext` in
4783    *32-bit*)
4784      LD="${LD-ld} -32"
4785      ;;
4786    *N32*)
4787      LD="${LD-ld} -n32"
4788      ;;
4789    *64-bit*)
4790      LD="${LD-ld} -64"
4791      ;;
4792    esac
4793   fi
4794  fi
4795  rm -rf conftest*
4796  ;;
4797
4798x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4799  # Find out which ABI we are using.
4800  echo 'int i;' > conftest.$ac_ext
4801  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4802  (eval $ac_compile) 2>&5
4803  ac_status=$?
4804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805  test $ac_status = 0; }; then
4806    case "`/usr/bin/file conftest.o`" in
4807    *32-bit*)
4808      case $host in
4809        x86_64-*linux*)
4810          LD="${LD-ld} -m elf_i386"
4811          ;;
4812        ppc64-*linux*|powerpc64-*linux*)
4813          LD="${LD-ld} -m elf32ppclinux"
4814          ;;
4815        s390x-*linux*)
4816          LD="${LD-ld} -m elf_s390"
4817          ;;
4818        sparc64-*linux*)
4819          LD="${LD-ld} -m elf32_sparc"
4820          ;;
4821      esac
4822      ;;
4823    *64-bit*)
4824      case $host in
4825        x86_64-*linux*)
4826          LD="${LD-ld} -m elf_x86_64"
4827          ;;
4828        ppc*-*linux*|powerpc*-*linux*)
4829          LD="${LD-ld} -m elf64ppc"
4830          ;;
4831        s390*-*linux*)
4832          LD="${LD-ld} -m elf64_s390"
4833          ;;
4834        sparc*-*linux*)
4835          LD="${LD-ld} -m elf64_sparc"
4836          ;;
4837      esac
4838      ;;
4839    esac
4840  fi
4841  rm -rf conftest*
4842  ;;
4843
4844*-*-sco3.2v5*)
4845  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4846  SAVE_CFLAGS="$CFLAGS"
4847  CFLAGS="$CFLAGS -belf"
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4849$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4850if ${lt_cv_cc_needs_belf+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861
4862int
4863main ()
4864{
4865
4866  ;
4867  return 0;
4868}
4869_ACEOF
4870if ac_fn_c_try_link "$LINENO"; then :
4871  lt_cv_cc_needs_belf=yes
4872else
4873  lt_cv_cc_needs_belf=no
4874fi
4875rm -f core conftest.err conftest.$ac_objext \
4876    conftest$ac_exeext conftest.$ac_ext
4877     ac_ext=c
4878ac_cpp='$CPP $CPPFLAGS'
4879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4885$as_echo "$lt_cv_cc_needs_belf" >&6; }
4886  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4887    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4888    CFLAGS="$SAVE_CFLAGS"
4889  fi
4890  ;;
4891
4892esac
4893
4894need_locks="$enable_libtool_lock"
4895
4896
4897ac_ext=c
4898ac_cpp='$CPP $CPPFLAGS'
4899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4903$as_echo_n "checking how to run the C preprocessor... " >&6; }
4904# On Suns, sometimes $CPP names a directory.
4905if test -n "$CPP" && test -d "$CPP"; then
4906  CPP=
4907fi
4908if test -z "$CPP"; then
4909  if ${ac_cv_prog_CPP+:} false; then :
4910  $as_echo_n "(cached) " >&6
4911else
4912      # Double quotes because CPP needs to be expanded
4913    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4914    do
4915      ac_preproc_ok=false
4916for ac_c_preproc_warn_flag in '' yes
4917do
4918  # Use a header file that comes with gcc, so configuring glibc
4919  # with a fresh cross-compiler works.
4920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921  # <limits.h> exists even on freestanding compilers.
4922  # On the NeXT, cc -E runs the code through the compiler's parser,
4923  # not just through cpp. "Syntax error" is here to catch this case.
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926#ifdef __STDC__
4927# include <limits.h>
4928#else
4929# include <assert.h>
4930#endif
4931		     Syntax error
4932_ACEOF
4933if ac_fn_c_try_cpp "$LINENO"; then :
4934
4935else
4936  # Broken: fails on valid input.
4937continue
4938fi
4939rm -f conftest.err conftest.i conftest.$ac_ext
4940
4941  # OK, works on sane cases.  Now check whether nonexistent headers
4942  # can be detected and how.
4943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945#include <ac_nonexistent.h>
4946_ACEOF
4947if ac_fn_c_try_cpp "$LINENO"; then :
4948  # Broken: success on invalid input.
4949continue
4950else
4951  # Passes both tests.
4952ac_preproc_ok=:
4953break
4954fi
4955rm -f conftest.err conftest.i conftest.$ac_ext
4956
4957done
4958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959rm -f conftest.i conftest.err conftest.$ac_ext
4960if $ac_preproc_ok; then :
4961  break
4962fi
4963
4964    done
4965    ac_cv_prog_CPP=$CPP
4966
4967fi
4968  CPP=$ac_cv_prog_CPP
4969else
4970  ac_cv_prog_CPP=$CPP
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4973$as_echo "$CPP" >&6; }
4974ac_preproc_ok=false
4975for ac_c_preproc_warn_flag in '' yes
4976do
4977  # Use a header file that comes with gcc, so configuring glibc
4978  # with a fresh cross-compiler works.
4979  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980  # <limits.h> exists even on freestanding compilers.
4981  # On the NeXT, cc -E runs the code through the compiler's parser,
4982  # not just through cpp. "Syntax error" is here to catch this case.
4983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985#ifdef __STDC__
4986# include <limits.h>
4987#else
4988# include <assert.h>
4989#endif
4990		     Syntax error
4991_ACEOF
4992if ac_fn_c_try_cpp "$LINENO"; then :
4993
4994else
4995  # Broken: fails on valid input.
4996continue
4997fi
4998rm -f conftest.err conftest.i conftest.$ac_ext
4999
5000  # OK, works on sane cases.  Now check whether nonexistent headers
5001  # can be detected and how.
5002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004#include <ac_nonexistent.h>
5005_ACEOF
5006if ac_fn_c_try_cpp "$LINENO"; then :
5007  # Broken: success on invalid input.
5008continue
5009else
5010  # Passes both tests.
5011ac_preproc_ok=:
5012break
5013fi
5014rm -f conftest.err conftest.i conftest.$ac_ext
5015
5016done
5017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018rm -f conftest.i conftest.err conftest.$ac_ext
5019if $ac_preproc_ok; then :
5020
5021else
5022  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5024as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5025See \`config.log' for more details" "$LINENO" 5; }
5026fi
5027
5028ac_ext=c
5029ac_cpp='$CPP $CPPFLAGS'
5030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5036$as_echo_n "checking for ANSI C header files... " >&6; }
5037if ${ac_cv_header_stdc+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h.  */
5042#include <stdlib.h>
5043#include <stdarg.h>
5044#include <string.h>
5045#include <float.h>
5046
5047int
5048main ()
5049{
5050
5051  ;
5052  return 0;
5053}
5054_ACEOF
5055if ac_fn_c_try_compile "$LINENO"; then :
5056  ac_cv_header_stdc=yes
5057else
5058  ac_cv_header_stdc=no
5059fi
5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061
5062if test $ac_cv_header_stdc = yes; then
5063  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066#include <string.h>
5067
5068_ACEOF
5069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5070  $EGREP "memchr" >/dev/null 2>&1; then :
5071
5072else
5073  ac_cv_header_stdc=no
5074fi
5075rm -f conftest*
5076
5077fi
5078
5079if test $ac_cv_header_stdc = yes; then
5080  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083#include <stdlib.h>
5084
5085_ACEOF
5086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087  $EGREP "free" >/dev/null 2>&1; then :
5088
5089else
5090  ac_cv_header_stdc=no
5091fi
5092rm -f conftest*
5093
5094fi
5095
5096if test $ac_cv_header_stdc = yes; then
5097  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5098  if test "$cross_compiling" = yes; then :
5099  :
5100else
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103#include <ctype.h>
5104#include <stdlib.h>
5105#if ((' ' & 0x0FF) == 0x020)
5106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5108#else
5109# define ISLOWER(c) \
5110		   (('a' <= (c) && (c) <= 'i') \
5111		     || ('j' <= (c) && (c) <= 'r') \
5112		     || ('s' <= (c) && (c) <= 'z'))
5113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5114#endif
5115
5116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5117int
5118main ()
5119{
5120  int i;
5121  for (i = 0; i < 256; i++)
5122    if (XOR (islower (i), ISLOWER (i))
5123	|| toupper (i) != TOUPPER (i))
5124      return 2;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_run "$LINENO"; then :
5129
5130else
5131  ac_cv_header_stdc=no
5132fi
5133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5134  conftest.$ac_objext conftest.beam conftest.$ac_ext
5135fi
5136
5137fi
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5140$as_echo "$ac_cv_header_stdc" >&6; }
5141if test $ac_cv_header_stdc = yes; then
5142
5143$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5144
5145fi
5146
5147# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5148for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5149		  inttypes.h stdint.h unistd.h
5150do :
5151  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5153"
5154if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5155  cat >>confdefs.h <<_ACEOF
5156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157_ACEOF
5158
5159fi
5160
5161done
5162
5163
5164for ac_header in dlfcn.h
5165do :
5166  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5167if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5168  cat >>confdefs.h <<_ACEOF
5169#define HAVE_DLFCN_H 1
5170_ACEOF
5171
5172fi
5173
5174done
5175
5176ac_ext=cpp
5177ac_cpp='$CXXCPP $CPPFLAGS'
5178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5181if test -z "$CXX"; then
5182  if test -n "$CCC"; then
5183    CXX=$CCC
5184  else
5185    if test -n "$ac_tool_prefix"; then
5186  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5187  do
5188    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191$as_echo_n "checking for $ac_word... " >&6; }
5192if ${ac_cv_prog_CXX+:} false; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195  if test -n "$CXX"; then
5196  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_exec_ext in '' $ac_executable_extensions; do
5204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210  done
5211IFS=$as_save_IFS
5212
5213fi
5214fi
5215CXX=$ac_cv_prog_CXX
5216if test -n "$CXX"; then
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5218$as_echo "$CXX" >&6; }
5219else
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
5222fi
5223
5224
5225    test -n "$CXX" && break
5226  done
5227fi
5228if test -z "$CXX"; then
5229  ac_ct_CXX=$CXX
5230  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5231do
5232  # Extract the first word of "$ac_prog", so it can be a program name with args.
5233set dummy $ac_prog; ac_word=$2
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
5236if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  if test -n "$ac_ct_CXX"; then
5240  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5241else
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247    for ac_exec_ext in '' $ac_executable_extensions; do
5248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249    ac_cv_prog_ac_ct_CXX="$ac_prog"
5250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251    break 2
5252  fi
5253done
5254  done
5255IFS=$as_save_IFS
5256
5257fi
5258fi
5259ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5260if test -n "$ac_ct_CXX"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5262$as_echo "$ac_ct_CXX" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268
5269  test -n "$ac_ct_CXX" && break
5270done
5271
5272  if test "x$ac_ct_CXX" = x; then
5273    CXX="g++"
5274  else
5275    case $cross_compiling:$ac_tool_warned in
5276yes:)
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279ac_tool_warned=yes ;;
5280esac
5281    CXX=$ac_ct_CXX
5282  fi
5283fi
5284
5285  fi
5286fi
5287# Provide some information about the compiler.
5288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5289set X $ac_compile
5290ac_compiler=$2
5291for ac_option in --version -v -V -qversion; do
5292  { { ac_try="$ac_compiler $ac_option >&5"
5293case "(($ac_try" in
5294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295  *) ac_try_echo=$ac_try;;
5296esac
5297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298$as_echo "$ac_try_echo"; } >&5
5299  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5300  ac_status=$?
5301  if test -s conftest.err; then
5302    sed '10a\
5303... rest of stderr output deleted ...
5304         10q' conftest.err >conftest.er1
5305    cat conftest.er1 >&5
5306  fi
5307  rm -f conftest.er1 conftest.err
5308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309  test $ac_status = 0; }
5310done
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5313$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5314if ${ac_cv_cxx_compiler_gnu+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319
5320int
5321main ()
5322{
5323#ifndef __GNUC__
5324       choke me
5325#endif
5326
5327  ;
5328  return 0;
5329}
5330_ACEOF
5331if ac_fn_cxx_try_compile "$LINENO"; then :
5332  ac_compiler_gnu=yes
5333else
5334  ac_compiler_gnu=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5338
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5341$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5342if test $ac_compiler_gnu = yes; then
5343  GXX=yes
5344else
5345  GXX=
5346fi
5347ac_test_CXXFLAGS=${CXXFLAGS+set}
5348ac_save_CXXFLAGS=$CXXFLAGS
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5350$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5351if ${ac_cv_prog_cxx_g+:} false; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5355   ac_cxx_werror_flag=yes
5356   ac_cv_prog_cxx_g=no
5357   CXXFLAGS="-g"
5358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h.  */
5360
5361int
5362main ()
5363{
5364
5365  ;
5366  return 0;
5367}
5368_ACEOF
5369if ac_fn_cxx_try_compile "$LINENO"; then :
5370  ac_cv_prog_cxx_g=yes
5371else
5372  CXXFLAGS=""
5373      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375
5376int
5377main ()
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_cxx_try_compile "$LINENO"; then :
5385
5386else
5387  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5388	 CXXFLAGS="-g"
5389	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391
5392int
5393main ()
5394{
5395
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400if ac_fn_cxx_try_compile "$LINENO"; then :
5401  ac_cv_prog_cxx_g=yes
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5411$as_echo "$ac_cv_prog_cxx_g" >&6; }
5412if test "$ac_test_CXXFLAGS" = set; then
5413  CXXFLAGS=$ac_save_CXXFLAGS
5414elif test $ac_cv_prog_cxx_g = yes; then
5415  if test "$GXX" = yes; then
5416    CXXFLAGS="-g -O2"
5417  else
5418    CXXFLAGS="-g"
5419  fi
5420else
5421  if test "$GXX" = yes; then
5422    CXXFLAGS="-O2"
5423  else
5424    CXXFLAGS=
5425  fi
5426fi
5427ac_ext=cpp
5428ac_cpp='$CXXCPP $CPPFLAGS'
5429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5432
5433depcc="$CXX"  am_compiler_list=
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5436$as_echo_n "checking dependency style of $depcc... " >&6; }
5437if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5441  # We make a subdir and do the tests there.  Otherwise we can end up
5442  # making bogus files that we don't know about and never remove.  For
5443  # instance it was reported that on HP-UX the gcc test will end up
5444  # making a dummy file named `D' -- because `-MD' means `put the output
5445  # in D'.
5446  mkdir conftest.dir
5447  # Copy depcomp to subdir because otherwise we won't find it if we're
5448  # using a relative directory.
5449  cp "$am_depcomp" conftest.dir
5450  cd conftest.dir
5451  # We will build objects and dependencies in a subdirectory because
5452  # it helps to detect inapplicable dependency modes.  For instance
5453  # both Tru64's cc and ICC support -MD to output dependencies as a
5454  # side effect of compilation, but ICC will put the dependencies in
5455  # the current directory while Tru64 will put them in the object
5456  # directory.
5457  mkdir sub
5458
5459  am_cv_CXX_dependencies_compiler_type=none
5460  if test "$am_compiler_list" = ""; then
5461     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5462  fi
5463  for depmode in $am_compiler_list; do
5464    # Setup a source with many dependencies, because some compilers
5465    # like to wrap large dependency lists on column 80 (with \), and
5466    # we should not choose a depcomp mode which is confused by this.
5467    #
5468    # We need to recreate these files for each test, as the compiler may
5469    # overwrite some of them when testing with obscure command lines.
5470    # This happens at least with the AIX C compiler.
5471    : > sub/conftest.c
5472    for i in 1 2 3 4 5 6; do
5473      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5474      : > sub/conftst$i.h
5475    done
5476    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5477
5478    case $depmode in
5479    nosideeffect)
5480      # after this tag, mechanisms are not by side-effect, so they'll
5481      # only be used when explicitly requested
5482      if test "x$enable_dependency_tracking" = xyes; then
5483	continue
5484      else
5485	break
5486      fi
5487      ;;
5488    none) break ;;
5489    esac
5490    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5491    # mode.  It turns out that the SunPro C++ compiler does not properly
5492    # handle `-M -o', and we need to detect this.
5493    if depmode=$depmode \
5494       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5495       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5496       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5497         >/dev/null 2>conftest.err &&
5498       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5499       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5500       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5501      # icc doesn't choke on unknown options, it will just issue warnings
5502      # (even with -Werror).  So we grep stderr for any message
5503      # that says an option was ignored.
5504      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5505        am_cv_CXX_dependencies_compiler_type=$depmode
5506        break
5507      fi
5508    fi
5509  done
5510
5511  cd ..
5512  rm -rf conftest.dir
5513else
5514  am_cv_CXX_dependencies_compiler_type=none
5515fi
5516
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5519$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5520CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5521
5522
5523
5524if
5525  test "x$enable_dependency_tracking" != xno \
5526  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5527  am__fastdepCXX_TRUE=
5528  am__fastdepCXX_FALSE='#'
5529else
5530  am__fastdepCXX_TRUE='#'
5531  am__fastdepCXX_FALSE=
5532fi
5533
5534
5535ac_ext=cpp
5536ac_cpp='$CXXCPP $CPPFLAGS'
5537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5541$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5542if test -z "$CXXCPP"; then
5543  if ${ac_cv_prog_CXXCPP+:} false; then :
5544  $as_echo_n "(cached) " >&6
5545else
5546      # Double quotes because CXXCPP needs to be expanded
5547    for CXXCPP in "$CXX -E" "/lib/cpp"
5548    do
5549      ac_preproc_ok=false
5550for ac_cxx_preproc_warn_flag in '' yes
5551do
5552  # Use a header file that comes with gcc, so configuring glibc
5553  # with a fresh cross-compiler works.
5554  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555  # <limits.h> exists even on freestanding compilers.
5556  # On the NeXT, cc -E runs the code through the compiler's parser,
5557  # not just through cpp. "Syntax error" is here to catch this case.
5558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h.  */
5560#ifdef __STDC__
5561# include <limits.h>
5562#else
5563# include <assert.h>
5564#endif
5565		     Syntax error
5566_ACEOF
5567if ac_fn_cxx_try_cpp "$LINENO"; then :
5568
5569else
5570  # Broken: fails on valid input.
5571continue
5572fi
5573rm -f conftest.err conftest.i conftest.$ac_ext
5574
5575  # OK, works on sane cases.  Now check whether nonexistent headers
5576  # can be detected and how.
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579#include <ac_nonexistent.h>
5580_ACEOF
5581if ac_fn_cxx_try_cpp "$LINENO"; then :
5582  # Broken: success on invalid input.
5583continue
5584else
5585  # Passes both tests.
5586ac_preproc_ok=:
5587break
5588fi
5589rm -f conftest.err conftest.i conftest.$ac_ext
5590
5591done
5592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593rm -f conftest.i conftest.err conftest.$ac_ext
5594if $ac_preproc_ok; then :
5595  break
5596fi
5597
5598    done
5599    ac_cv_prog_CXXCPP=$CXXCPP
5600
5601fi
5602  CXXCPP=$ac_cv_prog_CXXCPP
5603else
5604  ac_cv_prog_CXXCPP=$CXXCPP
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5607$as_echo "$CXXCPP" >&6; }
5608ac_preproc_ok=false
5609for ac_cxx_preproc_warn_flag in '' yes
5610do
5611  # Use a header file that comes with gcc, so configuring glibc
5612  # with a fresh cross-compiler works.
5613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614  # <limits.h> exists even on freestanding compilers.
5615  # On the NeXT, cc -E runs the code through the compiler's parser,
5616  # not just through cpp. "Syntax error" is here to catch this case.
5617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619#ifdef __STDC__
5620# include <limits.h>
5621#else
5622# include <assert.h>
5623#endif
5624		     Syntax error
5625_ACEOF
5626if ac_fn_cxx_try_cpp "$LINENO"; then :
5627
5628else
5629  # Broken: fails on valid input.
5630continue
5631fi
5632rm -f conftest.err conftest.i conftest.$ac_ext
5633
5634  # OK, works on sane cases.  Now check whether nonexistent headers
5635  # can be detected and how.
5636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638#include <ac_nonexistent.h>
5639_ACEOF
5640if ac_fn_cxx_try_cpp "$LINENO"; then :
5641  # Broken: success on invalid input.
5642continue
5643else
5644  # Passes both tests.
5645ac_preproc_ok=:
5646break
5647fi
5648rm -f conftest.err conftest.i conftest.$ac_ext
5649
5650done
5651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652rm -f conftest.i conftest.err conftest.$ac_ext
5653if $ac_preproc_ok; then :
5654
5655else
5656  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5659See \`config.log' for more details" "$LINENO" 5; }
5660fi
5661
5662ac_ext=cpp
5663ac_cpp='$CXXCPP $CPPFLAGS'
5664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5667
5668
5669ac_ext=f
5670ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5671ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5673if test -n "$ac_tool_prefix"; then
5674  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5675  do
5676    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if ${ac_cv_prog_F77+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$F77"; then
5684  ac_cv_prog_F77="$F77" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691    for ac_exec_ext in '' $ac_executable_extensions; do
5692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698  done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703F77=$ac_cv_prog_F77
5704if test -n "$F77"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5706$as_echo "$F77" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713    test -n "$F77" && break
5714  done
5715fi
5716if test -z "$F77"; then
5717  ac_ct_F77=$F77
5718  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5719do
5720  # Extract the first word of "$ac_prog", so it can be a program name with args.
5721set dummy $ac_prog; ac_word=$2
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723$as_echo_n "checking for $ac_word... " >&6; }
5724if ${ac_cv_prog_ac_ct_F77+:} false; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  if test -n "$ac_ct_F77"; then
5728  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733  IFS=$as_save_IFS
5734  test -z "$as_dir" && as_dir=.
5735    for ac_exec_ext in '' $ac_executable_extensions; do
5736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737    ac_cv_prog_ac_ct_F77="$ac_prog"
5738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739    break 2
5740  fi
5741done
5742  done
5743IFS=$as_save_IFS
5744
5745fi
5746fi
5747ac_ct_F77=$ac_cv_prog_ac_ct_F77
5748if test -n "$ac_ct_F77"; then
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5750$as_echo "$ac_ct_F77" >&6; }
5751else
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754fi
5755
5756
5757  test -n "$ac_ct_F77" && break
5758done
5759
5760  if test "x$ac_ct_F77" = x; then
5761    F77=""
5762  else
5763    case $cross_compiling:$ac_tool_warned in
5764yes:)
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767ac_tool_warned=yes ;;
5768esac
5769    F77=$ac_ct_F77
5770  fi
5771fi
5772
5773
5774# Provide some information about the compiler.
5775$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5776set X $ac_compile
5777ac_compiler=$2
5778for ac_option in --version -v -V -qversion; do
5779  { { ac_try="$ac_compiler $ac_option >&5"
5780case "(($ac_try" in
5781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782  *) ac_try_echo=$ac_try;;
5783esac
5784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785$as_echo "$ac_try_echo"; } >&5
5786  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5787  ac_status=$?
5788  if test -s conftest.err; then
5789    sed '10a\
5790... rest of stderr output deleted ...
5791         10q' conftest.err >conftest.er1
5792    cat conftest.er1 >&5
5793  fi
5794  rm -f conftest.er1 conftest.err
5795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796  test $ac_status = 0; }
5797done
5798rm -f a.out
5799
5800# If we don't use `.F' as extension, the preprocessor is not run on the
5801# input file.  (Note that this only needs to work for GNU compilers.)
5802ac_save_ext=$ac_ext
5803ac_ext=F
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5805$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5806if ${ac_cv_f77_compiler_gnu+:} false; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  cat > conftest.$ac_ext <<_ACEOF
5810      program main
5811#ifndef __GNUC__
5812       choke me
5813#endif
5814
5815      end
5816_ACEOF
5817if ac_fn_f77_try_compile "$LINENO"; then :
5818  ac_compiler_gnu=yes
5819else
5820  ac_compiler_gnu=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5824
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5827$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5828ac_ext=$ac_save_ext
5829ac_test_FFLAGS=${FFLAGS+set}
5830ac_save_FFLAGS=$FFLAGS
5831FFLAGS=
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5833$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5834if ${ac_cv_prog_f77_g+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837  FFLAGS=-g
5838cat > conftest.$ac_ext <<_ACEOF
5839      program main
5840
5841      end
5842_ACEOF
5843if ac_fn_f77_try_compile "$LINENO"; then :
5844  ac_cv_prog_f77_g=yes
5845else
5846  ac_cv_prog_f77_g=no
5847fi
5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5852$as_echo "$ac_cv_prog_f77_g" >&6; }
5853if test "$ac_test_FFLAGS" = set; then
5854  FFLAGS=$ac_save_FFLAGS
5855elif test $ac_cv_prog_f77_g = yes; then
5856  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5857    FFLAGS="-g -O2"
5858  else
5859    FFLAGS="-g"
5860  fi
5861else
5862  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5863    FFLAGS="-O2"
5864  else
5865    FFLAGS=
5866  fi
5867fi
5868
5869if test $ac_compiler_gnu = yes; then
5870  G77=yes
5871else
5872  G77=
5873fi
5874ac_ext=c
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
5880
5881
5882# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5883
5884# find the maximum length of command line arguments
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5886$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5887if ${lt_cv_sys_max_cmd_len+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890    i=0
5891  testring="ABCD"
5892
5893  case $build_os in
5894  msdosdjgpp*)
5895    # On DJGPP, this test can blow up pretty badly due to problems in libc
5896    # (any single argument exceeding 2000 bytes causes a buffer overrun
5897    # during glob expansion).  Even if it were fixed, the result of this
5898    # check would be larger than it should be.
5899    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5900    ;;
5901
5902  gnu*)
5903    # Under GNU Hurd, this test is not required because there is
5904    # no limit to the length of command line arguments.
5905    # Libtool will interpret -1 as no limit whatsoever
5906    lt_cv_sys_max_cmd_len=-1;
5907    ;;
5908
5909  cygwin* | mingw*)
5910    # On Win9x/ME, this test blows up -- it succeeds, but takes
5911    # about 5 minutes as the teststring grows exponentially.
5912    # Worse, since 9x/ME are not pre-emptively multitasking,
5913    # you end up with a "frozen" computer, even though with patience
5914    # the test eventually succeeds (with a max line length of 256k).
5915    # Instead, let's just punt: use the minimum linelength reported by
5916    # all of the supported platforms: 8192 (on NT/2K/XP).
5917    lt_cv_sys_max_cmd_len=8192;
5918    ;;
5919
5920  amigaos*)
5921    # On AmigaOS with pdksh, this test takes hours, literally.
5922    # So we just punt and use a minimum line length of 8192.
5923    lt_cv_sys_max_cmd_len=8192;
5924    ;;
5925
5926 *)
5927    # If test is not a shell built-in, we'll probably end up computing a
5928    # maximum length that is only half of the actual maximum length, but
5929    # we can't tell.
5930    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5931	       = "XX$testring") >/dev/null 2>&1 &&
5932	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5933	    lt_cv_sys_max_cmd_len=$new_result &&
5934	    test $i != 17 # 1/2 MB should be enough
5935    do
5936      i=`expr $i + 1`
5937      testring=$testring$testring
5938    done
5939    testring=
5940    # Add a significant safety factor because C++ compilers can tack on massive
5941    # amounts of additional arguments before passing them to the linker.
5942    # It appears as though 1/2 is a usable value.
5943    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5944    ;;
5945  esac
5946
5947fi
5948
5949if test -n $lt_cv_sys_max_cmd_len ; then
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5951$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5952else
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5954$as_echo "none" >&6; }
5955fi
5956
5957
5958
5959
5960# Check for command to grab the raw symbol name followed by C symbol from nm.
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5962$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5963if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966
5967# These are sane defaults that work on at least a few old systems.
5968# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5969
5970# Character class describing NM global symbol codes.
5971symcode='[BCDEGRST]'
5972
5973# Regexp to match symbols that can be accessed directly from C.
5974sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5975
5976# Transform the above into a raw symbol and a C symbol.
5977symxfrm='\1 \2\3 \3'
5978
5979# Transform an extracted symbol line into a proper C declaration
5980lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5981
5982# Transform an extracted symbol line into symbol name and symbol address
5983lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5984
5985# Define system-specific variables.
5986case $host_os in
5987aix*)
5988  symcode='[BCDT]'
5989  ;;
5990cygwin* | mingw* | pw32*)
5991  symcode='[ABCDGISTW]'
5992  ;;
5993hpux*) # Its linker distinguishes data from code symbols
5994  if test "$host_cpu" = ia64; then
5995    symcode='[ABCDEGRST]'
5996  fi
5997  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5998  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5999  ;;
6000irix* | nonstopux*)
6001  symcode='[BCDEGRST]'
6002  ;;
6003osf*)
6004  symcode='[BCDEGQRST]'
6005  ;;
6006solaris* | sysv5*)
6007  symcode='[BDRT]'
6008  ;;
6009sysv4)
6010  symcode='[DFNSTU]'
6011  ;;
6012esac
6013
6014# Handle CRLF in mingw tool chain
6015opt_cr=
6016case $build_os in
6017mingw*)
6018  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6019  ;;
6020esac
6021
6022# If we're using GNU nm, then use its standard symbol codes.
6023case `$NM -V 2>&1` in
6024*GNU* | *'with BFD'*)
6025  symcode='[ABCDGIRSTW]' ;;
6026esac
6027
6028# Try without a prefix undercore, then with it.
6029for ac_symprfx in "" "_"; do
6030
6031  # Write the raw and C identifiers.
6032  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6033
6034  # Check to see that the pipe works correctly.
6035  pipe_works=no
6036
6037  rm -f conftest*
6038  cat > conftest.$ac_ext <<EOF
6039#ifdef __cplusplus
6040extern "C" {
6041#endif
6042char nm_test_var;
6043void nm_test_func(){}
6044#ifdef __cplusplus
6045}
6046#endif
6047int main(){nm_test_var='a';nm_test_func();return(0);}
6048EOF
6049
6050  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051  (eval $ac_compile) 2>&5
6052  ac_status=$?
6053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054  test $ac_status = 0; }; then
6055    # Now try to grab the symbols.
6056    nlist=conftest.nm
6057    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6058  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6059  ac_status=$?
6060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061  test $ac_status = 0; } && test -s "$nlist"; then
6062      # Try sorting and uniquifying the output.
6063      if sort "$nlist" | uniq > "$nlist"T; then
6064	mv -f "$nlist"T "$nlist"
6065      else
6066	rm -f "$nlist"T
6067      fi
6068
6069      # Make sure that we snagged all the symbols we need.
6070      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6071	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6072	  cat <<EOF > conftest.$ac_ext
6073#ifdef __cplusplus
6074extern "C" {
6075#endif
6076
6077EOF
6078	  # Now generate the symbol file.
6079	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6080
6081	  cat <<EOF >> conftest.$ac_ext
6082#if defined (__STDC__) && __STDC__
6083# define lt_ptr_t void *
6084#else
6085# define lt_ptr_t char *
6086# define const
6087#endif
6088
6089/* The mapping between symbol names and symbols. */
6090const struct {
6091  const char *name;
6092  lt_ptr_t address;
6093}
6094lt_preloaded_symbols[] =
6095{
6096EOF
6097	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6098	  cat <<\EOF >> conftest.$ac_ext
6099  {0, (lt_ptr_t) 0}
6100};
6101
6102#ifdef __cplusplus
6103}
6104#endif
6105EOF
6106	  # Now try linking the two files.
6107	  mv conftest.$ac_objext conftstm.$ac_objext
6108	  lt_save_LIBS="$LIBS"
6109	  lt_save_CFLAGS="$CFLAGS"
6110	  LIBS="conftstm.$ac_objext"
6111	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113  (eval $ac_link) 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6117	    pipe_works=yes
6118	  fi
6119	  LIBS="$lt_save_LIBS"
6120	  CFLAGS="$lt_save_CFLAGS"
6121	else
6122	  echo "cannot find nm_test_func in $nlist" >&5
6123	fi
6124      else
6125	echo "cannot find nm_test_var in $nlist" >&5
6126      fi
6127    else
6128      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6129    fi
6130  else
6131    echo "$progname: failed program was:" >&5
6132    cat conftest.$ac_ext >&5
6133  fi
6134  rm -f conftest* conftst*
6135
6136  # Do not use the global_symbol_pipe unless it works.
6137  if test "$pipe_works" = yes; then
6138    break
6139  else
6140    lt_cv_sys_global_symbol_pipe=
6141  fi
6142done
6143
6144fi
6145
6146if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147  lt_cv_sys_global_symbol_to_cdecl=
6148fi
6149if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151$as_echo "failed" >&6; }
6152else
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154$as_echo "ok" >&6; }
6155fi
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6158$as_echo_n "checking for objdir... " >&6; }
6159if ${lt_cv_objdir+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  rm -f .libs 2>/dev/null
6163mkdir .libs 2>/dev/null
6164if test -d .libs; then
6165  lt_cv_objdir=.libs
6166else
6167  # MS-DOS does not allow filenames that begin with a dot.
6168  lt_cv_objdir=_libs
6169fi
6170rmdir .libs 2>/dev/null
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6173$as_echo "$lt_cv_objdir" >&6; }
6174objdir=$lt_cv_objdir
6175
6176
6177
6178
6179
6180case $host_os in
6181aix3*)
6182  # AIX sometimes has problems with the GCC collect2 program.  For some
6183  # reason, if we set the COLLECT_NAMES environment variable, the problems
6184  # vanish in a puff of smoke.
6185  if test "X${COLLECT_NAMES+set}" != Xset; then
6186    COLLECT_NAMES=
6187    export COLLECT_NAMES
6188  fi
6189  ;;
6190esac
6191
6192# Sed substitution that helps us do robust quoting.  It backslashifies
6193# metacharacters that are still active within double-quoted strings.
6194Xsed='sed -e s/^X//'
6195sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6196
6197# Same as above, but do not quote variable references.
6198double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6199
6200# Sed substitution to delay expansion of an escaped shell variable in a
6201# double_quote_subst'ed string.
6202delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6203
6204# Sed substitution to avoid accidental globbing in evaled expressions
6205no_glob_subst='s/\*/\\\*/g'
6206
6207# Constants:
6208rm="rm -f"
6209
6210# Global variables:
6211default_ofile=libtool
6212can_build_shared=yes
6213
6214# All known linkers require a `.a' archive for static linking (except M$VC,
6215# which needs '.lib').
6216libext=a
6217ltmain="$ac_aux_dir/ltmain.sh"
6218ofile="$default_ofile"
6219with_gnu_ld="$lt_cv_prog_gnu_ld"
6220
6221if test -n "$ac_tool_prefix"; then
6222  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6223set dummy ${ac_tool_prefix}ar; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if ${ac_cv_prog_AR+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  if test -n "$AR"; then
6230  ac_cv_prog_AR="$AR" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239    ac_cv_prog_AR="${ac_tool_prefix}ar"
6240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249AR=$ac_cv_prog_AR
6250if test -n "$AR"; then
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6252$as_echo "$AR" >&6; }
6253else
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258
6259fi
6260if test -z "$ac_cv_prog_AR"; then
6261  ac_ct_AR=$AR
6262  # Extract the first word of "ar", so it can be a program name with args.
6263set dummy ar; ac_word=$2
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265$as_echo_n "checking for $ac_word... " >&6; }
6266if ${ac_cv_prog_ac_ct_AR+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  if test -n "$ac_ct_AR"; then
6270  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275  IFS=$as_save_IFS
6276  test -z "$as_dir" && as_dir=.
6277    for ac_exec_ext in '' $ac_executable_extensions; do
6278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279    ac_cv_prog_ac_ct_AR="ar"
6280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281    break 2
6282  fi
6283done
6284  done
6285IFS=$as_save_IFS
6286
6287fi
6288fi
6289ac_ct_AR=$ac_cv_prog_ac_ct_AR
6290if test -n "$ac_ct_AR"; then
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6292$as_echo "$ac_ct_AR" >&6; }
6293else
6294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295$as_echo "no" >&6; }
6296fi
6297
6298  if test "x$ac_ct_AR" = x; then
6299    AR="false"
6300  else
6301    case $cross_compiling:$ac_tool_warned in
6302yes:)
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305ac_tool_warned=yes ;;
6306esac
6307    AR=$ac_ct_AR
6308  fi
6309else
6310  AR="$ac_cv_prog_AR"
6311fi
6312
6313if test -n "$ac_tool_prefix"; then
6314  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if ${ac_cv_prog_RANLIB+:} false; then :
6319  $as_echo_n "(cached) " >&6
6320else
6321  if test -n "$RANLIB"; then
6322  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327  IFS=$as_save_IFS
6328  test -z "$as_dir" && as_dir=.
6329    for ac_exec_ext in '' $ac_executable_extensions; do
6330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333    break 2
6334  fi
6335done
6336  done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341RANLIB=$ac_cv_prog_RANLIB
6342if test -n "$RANLIB"; then
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6344$as_echo "$RANLIB" >&6; }
6345else
6346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
6348fi
6349
6350
6351fi
6352if test -z "$ac_cv_prog_RANLIB"; then
6353  ac_ct_RANLIB=$RANLIB
6354  # Extract the first word of "ranlib", so it can be a program name with args.
6355set dummy ranlib; ac_word=$2
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
6358if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6359  $as_echo_n "(cached) " >&6
6360else
6361  if test -n "$ac_ct_RANLIB"; then
6362  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367  IFS=$as_save_IFS
6368  test -z "$as_dir" && as_dir=.
6369    for ac_exec_ext in '' $ac_executable_extensions; do
6370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371    ac_cv_prog_ac_ct_RANLIB="ranlib"
6372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373    break 2
6374  fi
6375done
6376  done
6377IFS=$as_save_IFS
6378
6379fi
6380fi
6381ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382if test -n "$ac_ct_RANLIB"; then
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6384$as_echo "$ac_ct_RANLIB" >&6; }
6385else
6386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
6388fi
6389
6390  if test "x$ac_ct_RANLIB" = x; then
6391    RANLIB=":"
6392  else
6393    case $cross_compiling:$ac_tool_warned in
6394yes:)
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397ac_tool_warned=yes ;;
6398esac
6399    RANLIB=$ac_ct_RANLIB
6400  fi
6401else
6402  RANLIB="$ac_cv_prog_RANLIB"
6403fi
6404
6405if test -n "$ac_tool_prefix"; then
6406  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}strip; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_STRIP+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$STRIP"; then
6414  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433STRIP=$ac_cv_prog_STRIP
6434if test -n "$STRIP"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6436$as_echo "$STRIP" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_STRIP"; then
6445  ac_ct_STRIP=$STRIP
6446  # Extract the first word of "strip", so it can be a program name with args.
6447set dummy strip; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$ac_ct_STRIP"; then
6454  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463    ac_cv_prog_ac_ct_STRIP="strip"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474if test -n "$ac_ct_STRIP"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6476$as_echo "$ac_ct_STRIP" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482  if test "x$ac_ct_STRIP" = x; then
6483    STRIP=":"
6484  else
6485    case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491    STRIP=$ac_ct_STRIP
6492  fi
6493else
6494  STRIP="$ac_cv_prog_STRIP"
6495fi
6496
6497
6498old_CC="$CC"
6499old_CFLAGS="$CFLAGS"
6500
6501# Set sane defaults for various variables
6502test -z "$AR" && AR=ar
6503test -z "$AR_FLAGS" && AR_FLAGS=cru
6504test -z "$AS" && AS=as
6505test -z "$CC" && CC=cc
6506test -z "$LTCC" && LTCC=$CC
6507test -z "$DLLTOOL" && DLLTOOL=dlltool
6508test -z "$LD" && LD=ld
6509test -z "$LN_S" && LN_S="ln -s"
6510test -z "$MAGIC_CMD" && MAGIC_CMD=file
6511test -z "$NM" && NM=nm
6512test -z "$SED" && SED=sed
6513test -z "$OBJDUMP" && OBJDUMP=objdump
6514test -z "$RANLIB" && RANLIB=:
6515test -z "$STRIP" && STRIP=:
6516test -z "$ac_objext" && ac_objext=o
6517
6518# Determine commands to create old-style static archives.
6519old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6520old_postinstall_cmds='chmod 644 $oldlib'
6521old_postuninstall_cmds=
6522
6523if test -n "$RANLIB"; then
6524  case $host_os in
6525  openbsd*)
6526    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6527    ;;
6528  *)
6529    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6530    ;;
6531  esac
6532  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6533fi
6534
6535# Only perform the check for file, if the check method requires it
6536case $deplibs_check_method in
6537file_magic*)
6538  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6540$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6541if ${lt_cv_path_MAGIC_CMD+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  case $MAGIC_CMD in
6545[\\/*] |  ?:[\\/]*)
6546  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6547  ;;
6548*)
6549  lt_save_MAGIC_CMD="$MAGIC_CMD"
6550  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6552  for ac_dir in $ac_dummy; do
6553    IFS="$lt_save_ifs"
6554    test -z "$ac_dir" && ac_dir=.
6555    if test -f $ac_dir/${ac_tool_prefix}file; then
6556      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6557      if test -n "$file_magic_test_file"; then
6558	case $deplibs_check_method in
6559	"file_magic "*)
6560	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6561	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6562	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6563	    $EGREP "$file_magic_regex" > /dev/null; then
6564	    :
6565	  else
6566	    cat <<EOF 1>&2
6567
6568*** Warning: the command libtool uses to detect shared libraries,
6569*** $file_magic_cmd, produces output that libtool cannot recognize.
6570*** The result is that libtool may fail to recognize shared libraries
6571*** as such.  This will affect the creation of libtool libraries that
6572*** depend on shared libraries, but programs linked with such libtool
6573*** libraries will work regardless of this problem.  Nevertheless, you
6574*** may want to report the problem to your system manager and/or to
6575*** bug-libtool@gnu.org
6576
6577EOF
6578	  fi ;;
6579	esac
6580      fi
6581      break
6582    fi
6583  done
6584  IFS="$lt_save_ifs"
6585  MAGIC_CMD="$lt_save_MAGIC_CMD"
6586  ;;
6587esac
6588fi
6589
6590MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6591if test -n "$MAGIC_CMD"; then
6592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6593$as_echo "$MAGIC_CMD" >&6; }
6594else
6595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598
6599if test -z "$lt_cv_path_MAGIC_CMD"; then
6600  if test -n "$ac_tool_prefix"; then
6601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6602$as_echo_n "checking for file... " >&6; }
6603if ${lt_cv_path_MAGIC_CMD+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  case $MAGIC_CMD in
6607[\\/*] |  ?:[\\/]*)
6608  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6609  ;;
6610*)
6611  lt_save_MAGIC_CMD="$MAGIC_CMD"
6612  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6613  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6614  for ac_dir in $ac_dummy; do
6615    IFS="$lt_save_ifs"
6616    test -z "$ac_dir" && ac_dir=.
6617    if test -f $ac_dir/file; then
6618      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6619      if test -n "$file_magic_test_file"; then
6620	case $deplibs_check_method in
6621	"file_magic "*)
6622	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6623	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6624	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6625	    $EGREP "$file_magic_regex" > /dev/null; then
6626	    :
6627	  else
6628	    cat <<EOF 1>&2
6629
6630*** Warning: the command libtool uses to detect shared libraries,
6631*** $file_magic_cmd, produces output that libtool cannot recognize.
6632*** The result is that libtool may fail to recognize shared libraries
6633*** as such.  This will affect the creation of libtool libraries that
6634*** depend on shared libraries, but programs linked with such libtool
6635*** libraries will work regardless of this problem.  Nevertheless, you
6636*** may want to report the problem to your system manager and/or to
6637*** bug-libtool@gnu.org
6638
6639EOF
6640	  fi ;;
6641	esac
6642      fi
6643      break
6644    fi
6645  done
6646  IFS="$lt_save_ifs"
6647  MAGIC_CMD="$lt_save_MAGIC_CMD"
6648  ;;
6649esac
6650fi
6651
6652MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653if test -n "$MAGIC_CMD"; then
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6655$as_echo "$MAGIC_CMD" >&6; }
6656else
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661  else
6662    MAGIC_CMD=:
6663  fi
6664fi
6665
6666  fi
6667  ;;
6668esac
6669
6670enable_dlopen=no
6671enable_win32_dll=no
6672
6673# Check whether --enable-libtool-lock was given.
6674if test "${enable_libtool_lock+set}" = set; then :
6675  enableval=$enable_libtool_lock;
6676fi
6677
6678test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6679
6680
6681# Check whether --with-pic was given.
6682if test "${with_pic+set}" = set; then :
6683  withval=$with_pic; pic_mode="$withval"
6684else
6685  pic_mode=default
6686fi
6687
6688test -z "$pic_mode" && pic_mode=default
6689
6690# Use C for the default configuration in the libtool script
6691tagname=
6692lt_save_CC="$CC"
6693ac_ext=c
6694ac_cpp='$CPP $CPPFLAGS'
6695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698
6699
6700# Source file extension for C test sources.
6701ac_ext=c
6702
6703# Object file extension for compiled C test sources.
6704objext=o
6705objext=$objext
6706
6707# Code to be used in simple compile tests
6708lt_simple_compile_test_code="int some_variable = 0;\n"
6709
6710# Code to be used in simple link tests
6711lt_simple_link_test_code='int main(){return(0);}\n'
6712
6713
6714# If no C compiler was specified, use CC.
6715LTCC=${LTCC-"$CC"}
6716
6717# Allow CC to be a program name with arguments.
6718compiler=$CC
6719
6720
6721#
6722# Check for any special shared library compilation flags.
6723#
6724lt_prog_cc_shlib=
6725if test "$GCC" = no; then
6726  case $host_os in
6727  sco3.2v5*)
6728    lt_prog_cc_shlib='-belf'
6729    ;;
6730  esac
6731fi
6732if test -n "$lt_prog_cc_shlib"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6734$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6735  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6736  else
6737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6738$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6739    lt_cv_prog_cc_can_build_shared=no
6740  fi
6741fi
6742
6743
6744#
6745# Check to make sure the static flag actually works.
6746#
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6748$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6749if ${lt_prog_compiler_static_works+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  lt_prog_compiler_static_works=no
6753   save_LDFLAGS="$LDFLAGS"
6754   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6755   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6756   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6757     # The compiler can only warn and ignore the option if not recognized
6758     # So say no if there are warnings
6759     if test -s conftest.err; then
6760       # Append any errors to the config.log.
6761       cat conftest.err 1>&5
6762     else
6763       lt_prog_compiler_static_works=yes
6764     fi
6765   fi
6766   $rm conftest*
6767   LDFLAGS="$save_LDFLAGS"
6768
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6771$as_echo "$lt_prog_compiler_static_works" >&6; }
6772
6773if test x"$lt_prog_compiler_static_works" = xyes; then
6774    :
6775else
6776    lt_prog_compiler_static=
6777fi
6778
6779
6780
6781
6782lt_prog_compiler_no_builtin_flag=
6783
6784if test "$GCC" = yes; then
6785  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6786
6787
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6789$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6790if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  lt_cv_prog_compiler_rtti_exceptions=no
6794  ac_outfile=conftest.$ac_objext
6795   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6796   lt_compiler_flag="-fno-rtti -fno-exceptions"
6797   # Insert the option either (1) after the last *FLAGS variable, or
6798   # (2) before a word containing "conftest.", or (3) at the end.
6799   # Note that $ac_compile itself does not contain backslashes and begins
6800   # with a dollar sign (not a hyphen), so the echo should work correctly.
6801   # The option is referenced via a variable to avoid confusing sed.
6802   lt_compile=`echo "$ac_compile" | $SED \
6803   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6805   -e 's:$: $lt_compiler_flag:'`
6806   (eval echo "\"\$as_me:6806: $lt_compile\"" >&5)
6807   (eval "$lt_compile" 2>conftest.err)
6808   ac_status=$?
6809   cat conftest.err >&5
6810   echo "$as_me:6810: \$? = $ac_status" >&5
6811   if (exit $ac_status) && test -s "$ac_outfile"; then
6812     # The compiler can only warn and ignore the option if not recognized
6813     # So say no if there are warnings
6814     if test ! -s conftest.err; then
6815       lt_cv_prog_compiler_rtti_exceptions=yes
6816     fi
6817   fi
6818   $rm conftest*
6819
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6822$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6823
6824if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6825    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6826else
6827    :
6828fi
6829
6830fi
6831
6832lt_prog_compiler_wl=
6833lt_prog_compiler_pic=
6834lt_prog_compiler_static=
6835
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6837$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6838
6839  if test "$GCC" = yes; then
6840    lt_prog_compiler_wl='-Wl,'
6841    lt_prog_compiler_static='-static'
6842
6843    case $host_os in
6844      aix*)
6845      # All AIX code is PIC.
6846      if test "$host_cpu" = ia64; then
6847	# AIX 5 now supports IA64 processor
6848	lt_prog_compiler_static='-Bstatic'
6849      fi
6850      ;;
6851
6852    amigaos*)
6853      # FIXME: we need at least 68020 code to build shared libraries, but
6854      # adding the `-m68020' flag to GCC prevents building anything better,
6855      # like `-m68040'.
6856      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6857      ;;
6858
6859    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6860      # PIC is the default for these OSes.
6861      ;;
6862
6863    mingw* | pw32* | os2*)
6864      # This hack is so that the source file can tell whether it is being
6865      # built for inclusion in a dll (and should export symbols for example).
6866      lt_prog_compiler_pic='-DDLL_EXPORT'
6867      ;;
6868
6869    darwin* | rhapsody*)
6870      # PIC is the default on this platform
6871      # Common symbols not allowed in MH_DYLIB files
6872      lt_prog_compiler_pic='-fno-common'
6873      ;;
6874
6875    msdosdjgpp*)
6876      # Just because we use GCC doesn't mean we suddenly get shared libraries
6877      # on systems that don't support them.
6878      lt_prog_compiler_can_build_shared=no
6879      enable_shared=no
6880      ;;
6881
6882    sysv4*MP*)
6883      if test -d /usr/nec; then
6884	lt_prog_compiler_pic=-Kconform_pic
6885      fi
6886      ;;
6887
6888    hpux*)
6889      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6890      # not for PA HP-UX.
6891      case "$host_cpu" in
6892      hppa*64*|ia64*)
6893	# +Z the default
6894	;;
6895      *)
6896	lt_prog_compiler_pic='-fPIC'
6897	;;
6898      esac
6899      ;;
6900
6901    *)
6902      lt_prog_compiler_pic='-fPIC'
6903      ;;
6904    esac
6905  else
6906    # PORTME Check for flag to pass linker flags through the system compiler.
6907    case $host_os in
6908    aix*)
6909      lt_prog_compiler_wl='-Wl,'
6910      if test "$host_cpu" = ia64; then
6911	# AIX 5 now supports IA64 processor
6912	lt_prog_compiler_static='-Bstatic'
6913      else
6914	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6915      fi
6916      ;;
6917
6918    mingw* | pw32* | os2*)
6919      # This hack is so that the source file can tell whether it is being
6920      # built for inclusion in a dll (and should export symbols for example).
6921      lt_prog_compiler_pic='-DDLL_EXPORT'
6922      ;;
6923
6924    hpux9* | hpux10* | hpux11*)
6925      lt_prog_compiler_wl='-Wl,'
6926      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6927      # not for PA HP-UX.
6928      case "$host_cpu" in
6929      hppa*64*|ia64*)
6930	# +Z the default
6931	;;
6932      *)
6933	lt_prog_compiler_pic='+Z'
6934	;;
6935      esac
6936      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6937      lt_prog_compiler_static='${wl}-a ${wl}archive'
6938      ;;
6939
6940    irix5* | irix6* | nonstopux*)
6941      lt_prog_compiler_wl='-Wl,'
6942      # PIC (with -KPIC) is the default.
6943      lt_prog_compiler_static='-non_shared'
6944      ;;
6945
6946    newsos6)
6947      lt_prog_compiler_pic='-KPIC'
6948      lt_prog_compiler_static='-Bstatic'
6949      ;;
6950
6951    linux*)
6952      case $CC in
6953      icc* | ecc*)
6954	lt_prog_compiler_wl='-Wl,'
6955	lt_prog_compiler_pic='-KPIC'
6956	lt_prog_compiler_static='-static'
6957        ;;
6958      ccc*)
6959        lt_prog_compiler_wl='-Wl,'
6960        # All Alpha code is PIC.
6961        lt_prog_compiler_static='-non_shared'
6962        ;;
6963      esac
6964      ;;
6965
6966    osf3* | osf4* | osf5*)
6967      lt_prog_compiler_wl='-Wl,'
6968      # All OSF/1 code is PIC.
6969      lt_prog_compiler_static='-non_shared'
6970      ;;
6971
6972    sco3.2v5*)
6973      lt_prog_compiler_pic='-Kpic'
6974      lt_prog_compiler_static='-dn'
6975      ;;
6976
6977    solaris*)
6978      lt_prog_compiler_wl='-Wl,'
6979      lt_prog_compiler_pic='-KPIC'
6980      lt_prog_compiler_static='-Bstatic'
6981      ;;
6982
6983    sunos4*)
6984      lt_prog_compiler_wl='-Qoption ld '
6985      lt_prog_compiler_pic='-PIC'
6986      lt_prog_compiler_static='-Bstatic'
6987      ;;
6988
6989    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6990      lt_prog_compiler_wl='-Wl,'
6991      lt_prog_compiler_pic='-KPIC'
6992      lt_prog_compiler_static='-Bstatic'
6993      ;;
6994
6995    sysv4*MP*)
6996      if test -d /usr/nec ;then
6997	lt_prog_compiler_pic='-Kconform_pic'
6998	lt_prog_compiler_static='-Bstatic'
6999      fi
7000      ;;
7001
7002    uts4*)
7003      lt_prog_compiler_pic='-pic'
7004      lt_prog_compiler_static='-Bstatic'
7005      ;;
7006
7007    *)
7008      lt_prog_compiler_can_build_shared=no
7009      ;;
7010    esac
7011  fi
7012
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7014$as_echo "$lt_prog_compiler_pic" >&6; }
7015
7016#
7017# Check to make sure the PIC flag actually works.
7018#
7019if test -n "$lt_prog_compiler_pic"; then
7020
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7022$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7023if ${lt_prog_compiler_pic_works+:} false; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026  lt_prog_compiler_pic_works=no
7027  ac_outfile=conftest.$ac_objext
7028   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7029   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7030   # Insert the option either (1) after the last *FLAGS variable, or
7031   # (2) before a word containing "conftest.", or (3) at the end.
7032   # Note that $ac_compile itself does not contain backslashes and begins
7033   # with a dollar sign (not a hyphen), so the echo should work correctly.
7034   # The option is referenced via a variable to avoid confusing sed.
7035   lt_compile=`echo "$ac_compile" | $SED \
7036   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7037   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038   -e 's:$: $lt_compiler_flag:'`
7039   (eval echo "\"\$as_me:7039: $lt_compile\"" >&5)
7040   (eval "$lt_compile" 2>conftest.err)
7041   ac_status=$?
7042   cat conftest.err >&5
7043   echo "$as_me:7043: \$? = $ac_status" >&5
7044   if (exit $ac_status) && test -s "$ac_outfile"; then
7045     # The compiler can only warn and ignore the option if not recognized
7046     # So say no if there are warnings
7047     if test ! -s conftest.err; then
7048       lt_prog_compiler_pic_works=yes
7049     fi
7050   fi
7051   $rm conftest*
7052
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7055$as_echo "$lt_prog_compiler_pic_works" >&6; }
7056
7057if test x"$lt_prog_compiler_pic_works" = xyes; then
7058    case $lt_prog_compiler_pic in
7059     "" | " "*) ;;
7060     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7061     esac
7062else
7063    lt_prog_compiler_pic=
7064     lt_prog_compiler_can_build_shared=no
7065fi
7066
7067fi
7068case "$host_os" in
7069  # For platforms which do not support PIC, -DPIC is meaningless:
7070  *djgpp*)
7071    lt_prog_compiler_pic=
7072    ;;
7073  *)
7074    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7075    ;;
7076esac
7077
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7079$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7080if ${lt_cv_prog_compiler_c_o+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  lt_cv_prog_compiler_c_o=no
7084   $rm -r conftest 2>/dev/null
7085   mkdir conftest
7086   cd conftest
7087   mkdir out
7088   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089
7090   lt_compiler_flag="-o out/conftest2.$ac_objext"
7091   # Insert the option either (1) after the last *FLAGS variable, or
7092   # (2) before a word containing "conftest.", or (3) at the end.
7093   # Note that $ac_compile itself does not contain backslashes and begins
7094   # with a dollar sign (not a hyphen), so the echo should work correctly.
7095   lt_compile=`echo "$ac_compile" | $SED \
7096   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098   -e 's:$: $lt_compiler_flag:'`
7099   (eval echo "\"\$as_me:7099: $lt_compile\"" >&5)
7100   (eval "$lt_compile" 2>out/conftest.err)
7101   ac_status=$?
7102   cat out/conftest.err >&5
7103   echo "$as_me:7103: \$? = $ac_status" >&5
7104   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7105   then
7106     # The compiler can only warn and ignore the option if not recognized
7107     # So say no if there are warnings
7108     if test ! -s out/conftest.err; then
7109       lt_cv_prog_compiler_c_o=yes
7110     fi
7111   fi
7112   chmod u+w .
7113   $rm conftest*
7114   # SGI C++ compiler will create directory out/ii_files/ for
7115   # template instantiation
7116   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7117   $rm out/* && rmdir out
7118   cd ..
7119   rmdir conftest
7120   $rm conftest*
7121
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7124$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7125
7126
7127hard_links="nottested"
7128if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7129  # do not overwrite the value of need_locks provided by the user
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7131$as_echo_n "checking if we can lock with hard links... " >&6; }
7132  hard_links=yes
7133  $rm conftest*
7134  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7135  touch conftest.a
7136  ln conftest.a conftest.b 2>&5 || hard_links=no
7137  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7139$as_echo "$hard_links" >&6; }
7140  if test "$hard_links" = no; then
7141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7142$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7143    need_locks=warn
7144  fi
7145else
7146  need_locks=no
7147fi
7148
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7150$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7151
7152  runpath_var=
7153  allow_undefined_flag=
7154  enable_shared_with_static_runtimes=no
7155  archive_cmds=
7156  archive_expsym_cmds=
7157  old_archive_From_new_cmds=
7158  old_archive_from_expsyms_cmds=
7159  export_dynamic_flag_spec=
7160  whole_archive_flag_spec=
7161  thread_safe_flag_spec=
7162  hardcode_libdir_flag_spec=
7163  hardcode_libdir_flag_spec_ld=
7164  hardcode_libdir_separator=
7165  hardcode_direct=no
7166  hardcode_minus_L=no
7167  hardcode_shlibpath_var=unsupported
7168  link_all_deplibs=unknown
7169  hardcode_automatic=no
7170  module_cmds=
7171  module_expsym_cmds=
7172  always_export_symbols=no
7173  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7174  # include_expsyms should be a list of space-separated symbols to be *always*
7175  # included in the symbol list
7176  include_expsyms=
7177  # exclude_expsyms can be an extended regexp of symbols to exclude
7178  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7179  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7180  # as well as any symbol that contains `d'.
7181  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7182  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7183  # platforms (ab)use it in PIC code, but their linkers get confused if
7184  # the symbol is explicitly referenced.  Since portable code cannot
7185  # rely on this symbol name, it's probably fine to never include it in
7186  # preloaded symbol tables.
7187  extract_expsyms_cmds=
7188
7189  case $host_os in
7190  cygwin* | mingw* | pw32*)
7191    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7192    # When not using gcc, we currently assume that we are using
7193    # Microsoft Visual C++.
7194    if test "$GCC" != yes; then
7195      with_gnu_ld=no
7196    fi
7197    ;;
7198  openbsd*)
7199    with_gnu_ld=no
7200    ;;
7201  esac
7202
7203  ld_shlibs=yes
7204  if test "$with_gnu_ld" = yes; then
7205    # If archive_cmds runs LD, not CC, wlarc should be empty
7206    wlarc='${wl}'
7207
7208    # See if GNU ld supports shared libraries.
7209    case $host_os in
7210    aix3* | aix4* | aix5*)
7211      # On AIX/PPC, the GNU linker is very broken
7212      if test "$host_cpu" != ia64; then
7213	ld_shlibs=no
7214	cat <<EOF 1>&2
7215
7216*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7217*** to be unable to reliably create shared libraries on AIX.
7218*** Therefore, libtool is disabling shared libraries support.  If you
7219*** really care for shared libraries, you may want to modify your PATH
7220*** so that a non-GNU linker is found, and then restart.
7221
7222EOF
7223      fi
7224      ;;
7225
7226    amigaos*)
7227      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)'
7228      hardcode_libdir_flag_spec='-L$libdir'
7229      hardcode_minus_L=yes
7230
7231      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7232      # that the semantics of dynamic libraries on AmigaOS, at least up
7233      # to version 4, is to share data among multiple programs linked
7234      # with the same dynamic library.  Since this doesn't match the
7235      # behavior of shared libraries on other platforms, we can't use
7236      # them.
7237      ld_shlibs=no
7238      ;;
7239
7240    beos*)
7241      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7242	allow_undefined_flag=unsupported
7243	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7244	# support --undefined.  This deserves some investigation.  FIXME
7245	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7246      else
7247	ld_shlibs=no
7248      fi
7249      ;;
7250
7251    cygwin* | mingw* | pw32*)
7252      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7253      # as there is no search path for DLLs.
7254      hardcode_libdir_flag_spec='-L$libdir'
7255      allow_undefined_flag=unsupported
7256      always_export_symbols=no
7257      enable_shared_with_static_runtimes=yes
7258      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7259
7260      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7261        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7262	# If the export-symbols file already is a .def file (1st line
7263	# is EXPORTS), use it as is; otherwise, prepend...
7264	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7265	  cp $export_symbols $output_objdir/$soname.def;
7266	else
7267	  echo EXPORTS > $output_objdir/$soname.def;
7268	  cat $export_symbols >> $output_objdir/$soname.def;
7269	fi~
7270	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7271      else
7272	ld_shlibs=no
7273      fi
7274      ;;
7275
7276    netbsd* | knetbsd*-gnu)
7277      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7279	wlarc=
7280      else
7281	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7282	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7283      fi
7284      ;;
7285
7286    solaris* | sysv5*)
7287      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7288	ld_shlibs=no
7289	cat <<EOF 1>&2
7290
7291*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7292*** create shared libraries on Solaris systems.  Therefore, libtool
7293*** is disabling shared libraries support.  We urge you to upgrade GNU
7294*** binutils to release 2.9.1 or newer.  Another option is to modify
7295*** your PATH or compiler configuration so that the native linker is
7296*** used, and then restart.
7297
7298EOF
7299      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7300	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7301	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7302      else
7303	ld_shlibs=no
7304      fi
7305      ;;
7306
7307    sunos4*)
7308      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7309      wlarc=
7310      hardcode_direct=yes
7311      hardcode_shlibpath_var=no
7312      ;;
7313
7314  linux*)
7315    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7316        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317	archive_cmds="$tmp_archive_cmds"
7318      supports_anon_versioning=no
7319      case `$LD -v 2>/dev/null` in
7320        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7321        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7322        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7323        *\ 2.11.*) ;; # other 2.11 versions
7324        *) supports_anon_versioning=yes ;;
7325      esac
7326      if test $supports_anon_versioning = yes; then
7327        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7328cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7329$echo "local: *; };" >> $output_objdir/$libname.ver~
7330        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7331      else
7332        archive_expsym_cmds="$tmp_archive_cmds"
7333      fi
7334    else
7335      ld_shlibs=no
7336    fi
7337    ;;
7338
7339    *)
7340      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7341	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7342	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7343      else
7344	ld_shlibs=no
7345      fi
7346      ;;
7347    esac
7348
7349    if test "$ld_shlibs" = yes; then
7350      runpath_var=LD_RUN_PATH
7351      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7352      export_dynamic_flag_spec='${wl}--export-dynamic'
7353      # ancient GNU ld didn't support --whole-archive et. al.
7354      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7355 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7356      else
7357  	whole_archive_flag_spec=
7358      fi
7359    fi
7360  else
7361    # PORTME fill in a description of your system's linker (not GNU ld)
7362    case $host_os in
7363    aix3*)
7364      allow_undefined_flag=unsupported
7365      always_export_symbols=yes
7366      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'
7367      # Note: this linker hardcodes the directories in LIBPATH if there
7368      # are no directories specified by -L.
7369      hardcode_minus_L=yes
7370      if test "$GCC" = yes && test -z "$link_static_flag"; then
7371	# Neither direct hardcoding nor static linking is supported with a
7372	# broken collect2.
7373	hardcode_direct=unsupported
7374      fi
7375      ;;
7376
7377    aix4* | aix5*)
7378      if test "$host_cpu" = ia64; then
7379	# On IA64, the linker does run time linking by default, so we don't
7380	# have to do anything special.
7381	aix_use_runtimelinking=no
7382	exp_sym_flag='-Bexport'
7383	no_entry_flag=""
7384      else
7385	# If we're using GNU nm, then we don't want the "-C" option.
7386	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7387	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7388	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7389	else
7390	  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'
7391	fi
7392	aix_use_runtimelinking=no
7393
7394	# Test if we are trying to use run time linking or normal
7395	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7396	# need to do runtime linking.
7397	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7398	  for ld_flag in $LDFLAGS; do
7399  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7400  	    aix_use_runtimelinking=yes
7401  	    break
7402  	  fi
7403	  done
7404	esac
7405
7406	exp_sym_flag='-bexport'
7407	no_entry_flag='-bnoentry'
7408      fi
7409
7410      # When large executables or shared objects are built, AIX ld can
7411      # have problems creating the table of contents.  If linking a library
7412      # or program results in "error TOC overflow" add -mminimal-toc to
7413      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7414      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7415
7416      archive_cmds=''
7417      hardcode_direct=yes
7418      hardcode_libdir_separator=':'
7419      link_all_deplibs=yes
7420
7421      if test "$GCC" = yes; then
7422	case $host_os in aix4.012|aix4.012.*)
7423	# We only want to do this on AIX 4.2 and lower, the check
7424	# below for broken collect2 doesn't work under 4.3+
7425	  collect2name=`${CC} -print-prog-name=collect2`
7426	  if test -f "$collect2name" && \
7427  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7428	  then
7429  	  # We have reworked collect2
7430  	  hardcode_direct=yes
7431	  else
7432  	  # We have old collect2
7433  	  hardcode_direct=unsupported
7434  	  # It fails to find uninstalled libraries when the uninstalled
7435  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7436  	  # to unsupported forces relinking
7437  	  hardcode_minus_L=yes
7438  	  hardcode_libdir_flag_spec='-L$libdir'
7439  	  hardcode_libdir_separator=
7440	  fi
7441	esac
7442	shared_flag='-shared'
7443      else
7444	# not using gcc
7445	if test "$host_cpu" = ia64; then
7446  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7447  	# chokes on -Wl,-G. The following line is correct:
7448	  shared_flag='-G'
7449	else
7450  	if test "$aix_use_runtimelinking" = yes; then
7451	    shared_flag='${wl}-G'
7452	  else
7453	    shared_flag='${wl}-bM:SRE'
7454  	fi
7455	fi
7456      fi
7457
7458      # It seems that -bexpall does not export symbols beginning with
7459      # underscore (_), so it is better to generate a list of symbols to export.
7460      always_export_symbols=yes
7461      if test "$aix_use_runtimelinking" = yes; then
7462	# Warning - without using the other runtime loading flags (-brtl),
7463	# -berok will link without error, but may produce a broken library.
7464	allow_undefined_flag='-berok'
7465       # Determine the default libpath from the value encoded in an empty executable.
7466       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h.  */
7468
7469int
7470main ()
7471{
7472
7473  ;
7474  return 0;
7475}
7476_ACEOF
7477if ac_fn_c_try_link "$LINENO"; then :
7478
7479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7480}'`
7481# Check for a 64-bit object if we didn't find anything.
7482if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7483}'`; fi
7484fi
7485rm -f core conftest.err conftest.$ac_objext \
7486    conftest$ac_exeext conftest.$ac_ext
7487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7488
7489       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7490	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7491       else
7492	if test "$host_cpu" = ia64; then
7493	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7494	  allow_undefined_flag="-z nodefs"
7495	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7496	else
7497	 # Determine the default libpath from the value encoded in an empty executable.
7498	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499/* end confdefs.h.  */
7500
7501int
7502main ()
7503{
7504
7505  ;
7506  return 0;
7507}
7508_ACEOF
7509if ac_fn_c_try_link "$LINENO"; then :
7510
7511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7512}'`
7513# Check for a 64-bit object if we didn't find anything.
7514if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7515}'`; fi
7516fi
7517rm -f core conftest.err conftest.$ac_objext \
7518    conftest$ac_exeext conftest.$ac_ext
7519if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7520
7521	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7522	  # Warning - without using the other run time loading flags,
7523	  # -berok will link without error, but may produce a broken library.
7524	  no_undefined_flag=' ${wl}-bernotok'
7525	  allow_undefined_flag=' ${wl}-berok'
7526	  # -bexpall does not export symbols beginning with underscore (_)
7527	  always_export_symbols=yes
7528	  # Exported symbols can be pulled into shared objects from archives
7529	  whole_archive_flag_spec=' '
7530	  archive_cmds_need_lc=yes
7531	  # This is similar to how AIX traditionally builds it's shared libraries.
7532	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7533	fi
7534      fi
7535      ;;
7536
7537    amigaos*)
7538      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)'
7539      hardcode_libdir_flag_spec='-L$libdir'
7540      hardcode_minus_L=yes
7541      # see comment about different semantics on the GNU ld section
7542      ld_shlibs=no
7543      ;;
7544
7545    bsdi4*)
7546      export_dynamic_flag_spec=-rdynamic
7547      ;;
7548
7549    cygwin* | mingw* | pw32*)
7550      # When not using gcc, we currently assume that we are using
7551      # Microsoft Visual C++.
7552      # hardcode_libdir_flag_spec is actually meaningless, as there is
7553      # no search path for DLLs.
7554      hardcode_libdir_flag_spec=' '
7555      allow_undefined_flag=unsupported
7556      # Tell ltmain to make .lib files, not .a files.
7557      libext=lib
7558      # Tell ltmain to make .dll files, not .so files.
7559      shrext=".dll"
7560      # FIXME: Setting linknames here is a bad hack.
7561      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7562      # The linker will automatically build a .lib file if we build a DLL.
7563      old_archive_From_new_cmds='true'
7564      # FIXME: Should let the user specify the lib program.
7565      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7566      fix_srcfile_path='`cygpath -w "$srcfile"`'
7567      enable_shared_with_static_runtimes=yes
7568      ;;
7569
7570    darwin* | rhapsody*)
7571    if test "$GXX" = yes ; then
7572      archive_cmds_need_lc=no
7573      case "$host_os" in
7574      rhapsody* | darwin1.[012])
7575	allow_undefined_flag='-undefined suppress'
7576	;;
7577      *) # Darwin 1.3 on
7578      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7579      	allow_undefined_flag='-flat_namespace -undefined suppress'
7580      else
7581        case ${MACOSX_DEPLOYMENT_TARGET} in
7582          10.[012])
7583            allow_undefined_flag='-flat_namespace -undefined suppress'
7584            ;;
7585          10.*)
7586            allow_undefined_flag='-undefined dynamic_lookup'
7587            ;;
7588        esac
7589      fi
7590	;;
7591      esac
7592    	lt_int_apple_cc_single_mod=no
7593    	output_verbose_link_cmd='echo'
7594    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7595    	  lt_int_apple_cc_single_mod=yes
7596    	fi
7597    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7598    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7599    	else
7600        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7601      fi
7602      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7603      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7604        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7605          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606        else
7607          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7608        fi
7609          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610      hardcode_direct=no
7611      hardcode_automatic=yes
7612      hardcode_shlibpath_var=unsupported
7613      whole_archive_flag_spec='-all_load $convenience'
7614      link_all_deplibs=yes
7615    else
7616      ld_shlibs=no
7617    fi
7618      ;;
7619
7620    dgux*)
7621      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622      hardcode_libdir_flag_spec='-L$libdir'
7623      hardcode_shlibpath_var=no
7624      ;;
7625
7626    freebsd1*)
7627      ld_shlibs=no
7628      ;;
7629
7630    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7631    # support.  Future versions do this automatically, but an explicit c++rt0.o
7632    # does not break anything, and helps significantly (at the cost of a little
7633    # extra space).
7634    freebsd2.2*)
7635      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7636      hardcode_libdir_flag_spec='-R$libdir'
7637      hardcode_direct=yes
7638      hardcode_shlibpath_var=no
7639      ;;
7640
7641    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7642    freebsd2*)
7643      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7644      hardcode_direct=yes
7645      hardcode_minus_L=yes
7646      hardcode_shlibpath_var=no
7647      ;;
7648
7649    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7650    freebsd* | kfreebsd*-gnu)
7651      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7652      hardcode_libdir_flag_spec='-R$libdir'
7653      hardcode_direct=yes
7654      hardcode_shlibpath_var=no
7655      ;;
7656
7657    hpux9*)
7658      if test "$GCC" = yes; then
7659	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7660      else
7661	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'
7662      fi
7663      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7664      hardcode_libdir_separator=:
7665      hardcode_direct=yes
7666
7667      # hardcode_minus_L: Not really in the search PATH,
7668      # but as the default location of the library.
7669      hardcode_minus_L=yes
7670      export_dynamic_flag_spec='${wl}-E'
7671      ;;
7672
7673    hpux10* | hpux11*)
7674      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7675	case "$host_cpu" in
7676	hppa*64*|ia64*)
7677	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7678	  ;;
7679	*)
7680	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7681	  ;;
7682	esac
7683      else
7684	case "$host_cpu" in
7685	hppa*64*|ia64*)
7686	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7687	  ;;
7688	*)
7689	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7690	  ;;
7691	esac
7692      fi
7693      if test "$with_gnu_ld" = no; then
7694	case "$host_cpu" in
7695	hppa*64*)
7696	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7697	  hardcode_libdir_flag_spec_ld='+b $libdir'
7698	  hardcode_libdir_separator=:
7699	  hardcode_direct=no
7700	  hardcode_shlibpath_var=no
7701	  ;;
7702	ia64*)
7703	  hardcode_libdir_flag_spec='-L$libdir'
7704	  hardcode_direct=no
7705	  hardcode_shlibpath_var=no
7706
7707	  # hardcode_minus_L: Not really in the search PATH,
7708	  # but as the default location of the library.
7709	  hardcode_minus_L=yes
7710	  ;;
7711	*)
7712	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7713	  hardcode_libdir_separator=:
7714	  hardcode_direct=yes
7715	  export_dynamic_flag_spec='${wl}-E'
7716
7717	  # hardcode_minus_L: Not really in the search PATH,
7718	  # but as the default location of the library.
7719	  hardcode_minus_L=yes
7720	  ;;
7721	esac
7722      fi
7723      ;;
7724
7725    irix5* | irix6* | nonstopux*)
7726      if test "$GCC" = yes; then
7727	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7728      else
7729	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7730	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7731      fi
7732      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7733      hardcode_libdir_separator=:
7734      link_all_deplibs=yes
7735      ;;
7736
7737    netbsd* | knetbsd*-gnu)
7738      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7739	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7740      else
7741	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7742      fi
7743      hardcode_libdir_flag_spec='-R$libdir'
7744      hardcode_direct=yes
7745      hardcode_shlibpath_var=no
7746      ;;
7747
7748    newsos6)
7749      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7750      hardcode_direct=yes
7751      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752      hardcode_libdir_separator=:
7753      hardcode_shlibpath_var=no
7754      ;;
7755
7756    openbsd*)
7757      hardcode_direct=yes
7758      hardcode_shlibpath_var=no
7759      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7760	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7761	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762	export_dynamic_flag_spec='${wl}-E'
7763      else
7764       case $host_os in
7765	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7766	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7767	   hardcode_libdir_flag_spec='-R$libdir'
7768	   ;;
7769	 *)
7770	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7771	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7772	   ;;
7773       esac
7774      fi
7775      ;;
7776
7777    os2*)
7778      hardcode_libdir_flag_spec='-L$libdir'
7779      hardcode_minus_L=yes
7780      allow_undefined_flag=unsupported
7781      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'
7782      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7783      ;;
7784
7785    osf3*)
7786      if test "$GCC" = yes; then
7787	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7788	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7789      else
7790	allow_undefined_flag=' -expect_unresolved \*'
7791	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7792      fi
7793      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7794      hardcode_libdir_separator=:
7795      ;;
7796
7797    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7798      if test "$GCC" = yes; then
7799	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7800	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7801	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7802      else
7803	allow_undefined_flag=' -expect_unresolved \*'
7804	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7805	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7806	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7807
7808	# Both c and cxx compiler support -rpath directly
7809	hardcode_libdir_flag_spec='-rpath $libdir'
7810      fi
7811      hardcode_libdir_separator=:
7812      ;;
7813
7814    sco3.2v5*)
7815      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816      hardcode_shlibpath_var=no
7817      export_dynamic_flag_spec='${wl}-Bexport'
7818      runpath_var=LD_RUN_PATH
7819      hardcode_runpath_var=yes
7820      ;;
7821
7822    solaris*)
7823      no_undefined_flag=' -z text'
7824      if test "$GCC" = yes; then
7825	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7826	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7827	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7828      else
7829	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7831  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7832      fi
7833      hardcode_libdir_flag_spec='-R$libdir'
7834      hardcode_shlibpath_var=no
7835      case $host_os in
7836      solaris2.[0-5] | solaris2.[0-5].*) ;;
7837      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7838	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7839      esac
7840      link_all_deplibs=yes
7841      ;;
7842
7843    sunos4*)
7844      if test "x$host_vendor" = xsequent; then
7845	# Use $CC to link under sequent, because it throws in some extra .o
7846	# files that make .init and .fini sections work.
7847	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7848      else
7849	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7850      fi
7851      hardcode_libdir_flag_spec='-L$libdir'
7852      hardcode_direct=yes
7853      hardcode_minus_L=yes
7854      hardcode_shlibpath_var=no
7855      ;;
7856
7857    sysv4)
7858      case $host_vendor in
7859	sni)
7860	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7861	  hardcode_direct=yes # is this really true???
7862	;;
7863	siemens)
7864	  ## LD is ld it makes a PLAMLIB
7865	  ## CC just makes a GrossModule.
7866	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7867	  reload_cmds='$CC -r -o $output$reload_objs'
7868	  hardcode_direct=no
7869        ;;
7870	motorola)
7871	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7872	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7873	;;
7874      esac
7875      runpath_var='LD_RUN_PATH'
7876      hardcode_shlibpath_var=no
7877      ;;
7878
7879    sysv4.3*)
7880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881      hardcode_shlibpath_var=no
7882      export_dynamic_flag_spec='-Bexport'
7883      ;;
7884
7885    sysv4*MP*)
7886      if test -d /usr/nec; then
7887	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888	hardcode_shlibpath_var=no
7889	runpath_var=LD_RUN_PATH
7890	hardcode_runpath_var=yes
7891	ld_shlibs=yes
7892      fi
7893      ;;
7894
7895    sysv4.2uw2*)
7896      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7897      hardcode_direct=yes
7898      hardcode_minus_L=no
7899      hardcode_shlibpath_var=no
7900      hardcode_runpath_var=yes
7901      runpath_var=LD_RUN_PATH
7902      ;;
7903
7904   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7905      no_undefined_flag='${wl}-z ${wl}text'
7906      if test "$GCC" = yes; then
7907	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7908      else
7909	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7910      fi
7911      runpath_var='LD_RUN_PATH'
7912      hardcode_shlibpath_var=no
7913      ;;
7914
7915    sysv5*)
7916      no_undefined_flag=' -z text'
7917      # $CC -shared without GNU ld will not create a library from C++
7918      # object files and a static libstdc++, better avoid it by now
7919      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7920      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7921  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7922      hardcode_libdir_flag_spec=
7923      hardcode_shlibpath_var=no
7924      runpath_var='LD_RUN_PATH'
7925      ;;
7926
7927    uts4*)
7928      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7929      hardcode_libdir_flag_spec='-L$libdir'
7930      hardcode_shlibpath_var=no
7931      ;;
7932
7933    *)
7934      ld_shlibs=no
7935      ;;
7936    esac
7937  fi
7938
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7940$as_echo "$ld_shlibs" >&6; }
7941test "$ld_shlibs" = no && can_build_shared=no
7942
7943variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7944if test "$GCC" = yes; then
7945  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7946fi
7947
7948#
7949# Do we need to explicitly link libc?
7950#
7951case "x$archive_cmds_need_lc" in
7952x|xyes)
7953  # Assume -lc should be added
7954  archive_cmds_need_lc=yes
7955
7956  if test "$enable_shared" = yes && test "$GCC" = yes; then
7957    case $archive_cmds in
7958    *'~'*)
7959      # FIXME: we may have to deal with multi-command sequences.
7960      ;;
7961    '$CC '*)
7962      # Test whether the compiler implicitly links with -lc since on some
7963      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7964      # to ld, don't add -lc before -lgcc.
7965      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7966$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7967      $rm conftest*
7968      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7969
7970      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7971  (eval $ac_compile) 2>&5
7972  ac_status=$?
7973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974  test $ac_status = 0; } 2>conftest.err; then
7975        soname=conftest
7976        lib=conftest
7977        libobjs=conftest.$ac_objext
7978        deplibs=
7979        wl=$lt_prog_compiler_wl
7980        compiler_flags=-v
7981        linker_flags=-v
7982        verstring=
7983        output_objdir=.
7984        libname=conftest
7985        lt_save_allow_undefined_flag=$allow_undefined_flag
7986        allow_undefined_flag=
7987        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7988  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7989  ac_status=$?
7990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991  test $ac_status = 0; }
7992        then
7993	  archive_cmds_need_lc=no
7994        else
7995	  archive_cmds_need_lc=yes
7996        fi
7997        allow_undefined_flag=$lt_save_allow_undefined_flag
7998      else
7999        cat conftest.err 1>&5
8000      fi
8001      $rm conftest*
8002      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8003$as_echo "$archive_cmds_need_lc" >&6; }
8004      ;;
8005    esac
8006  fi
8007  ;;
8008esac
8009
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8011$as_echo_n "checking dynamic linker characteristics... " >&6; }
8012library_names_spec=
8013libname_spec='lib$name'
8014soname_spec=
8015shrext=".so"
8016postinstall_cmds=
8017postuninstall_cmds=
8018finish_cmds=
8019finish_eval=
8020shlibpath_var=
8021shlibpath_overrides_runpath=unknown
8022version_type=none
8023dynamic_linker="$host_os ld.so"
8024sys_lib_dlsearch_path_spec="/lib /usr/lib"
8025if test "$GCC" = yes; then
8026  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8027  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8028    # if the path contains ";" then we assume it to be the separator
8029    # otherwise default to the standard path separator (i.e. ":") - it is
8030    # assumed that no part of a normal pathname contains ";" but that should
8031    # okay in the real world where ";" in dirpaths is itself problematic.
8032    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8033  else
8034    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8035  fi
8036else
8037  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8038fi
8039need_lib_prefix=unknown
8040hardcode_into_libs=no
8041
8042# when you set need_version to no, make sure it does not cause -set_version
8043# flags to be left without arguments
8044need_version=unknown
8045
8046case $host_os in
8047aix3*)
8048  version_type=linux
8049  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8050  shlibpath_var=LIBPATH
8051
8052  # AIX 3 has no versioning support, so we append a major version to the name.
8053  soname_spec='${libname}${release}${shared_ext}$major'
8054  ;;
8055
8056aix4* | aix5*)
8057  version_type=linux
8058  need_lib_prefix=no
8059  need_version=no
8060  hardcode_into_libs=yes
8061  if test "$host_cpu" = ia64; then
8062    # AIX 5 supports IA64
8063    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8064    shlibpath_var=LD_LIBRARY_PATH
8065  else
8066    # With GCC up to 2.95.x, collect2 would create an import file
8067    # for dependence libraries.  The import file would start with
8068    # the line `#! .'.  This would cause the generated library to
8069    # depend on `.', always an invalid library.  This was fixed in
8070    # development snapshots of GCC prior to 3.0.
8071    case $host_os in
8072      aix4 | aix4.[01] | aix4.[01].*)
8073      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8074	   echo ' yes '
8075	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8076	:
8077      else
8078	can_build_shared=no
8079      fi
8080      ;;
8081    esac
8082    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8083    # soname into executable. Probably we can add versioning support to
8084    # collect2, so additional links can be useful in future.
8085    if test "$aix_use_runtimelinking" = yes; then
8086      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8087      # instead of lib<name>.a to let people know that these are not
8088      # typical AIX shared libraries.
8089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8090    else
8091      # We preserve .a as extension for shared libraries through AIX4.2
8092      # and later when we are not doing run time linking.
8093      library_names_spec='${libname}${release}.a $libname.a'
8094      soname_spec='${libname}${release}${shared_ext}$major'
8095    fi
8096    shlibpath_var=LIBPATH
8097  fi
8098  ;;
8099
8100amigaos*)
8101  library_names_spec='$libname.ixlibrary $libname.a'
8102  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8103  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8104  ;;
8105
8106beos*)
8107  library_names_spec='${libname}${shared_ext}'
8108  dynamic_linker="$host_os ld.so"
8109  shlibpath_var=LIBRARY_PATH
8110  ;;
8111
8112bsdi4*)
8113  version_type=linux
8114  need_version=no
8115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116  soname_spec='${libname}${release}${shared_ext}$major'
8117  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8118  shlibpath_var=LD_LIBRARY_PATH
8119  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8120  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8121  # the default ld.so.conf also contains /usr/contrib/lib and
8122  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8123  # libtool to hard-code these into programs
8124  ;;
8125
8126cygwin* | mingw* | pw32*)
8127  version_type=windows
8128  shrext=".dll"
8129  need_version=no
8130  need_lib_prefix=no
8131
8132  case $GCC,$host_os in
8133  yes,cygwin* | yes,mingw* | yes,pw32*)
8134    library_names_spec='$libname.dll.a'
8135    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8136    postinstall_cmds='base_file=`basename \${file}`~
8137      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8138      dldir=$destdir/`dirname \$dlpath`~
8139      test -d \$dldir || mkdir -p \$dldir~
8140      $install_prog $dir/$dlname \$dldir/$dlname'
8141    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8142      dlpath=$dir/\$dldll~
8143       $rm \$dlpath'
8144    shlibpath_overrides_runpath=yes
8145
8146    case $host_os in
8147    cygwin*)
8148      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8149      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8150      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8151      ;;
8152    mingw*)
8153      # MinGW DLLs use traditional 'lib' prefix
8154      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8155      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8156      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8157        # It is most probably a Windows format PATH printed by
8158        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8159        # path with ; separators, and with drive letters. We can handle the
8160        # drive letters (cygwin fileutils understands them), so leave them,
8161        # especially as we might pass files found there to a mingw objdump,
8162        # which wouldn't understand a cygwinified path. Ahh.
8163        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8164      else
8165        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8166      fi
8167      ;;
8168    pw32*)
8169      # pw32 DLLs use 'pw' prefix rather than 'lib'
8170      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8171      ;;
8172    esac
8173    ;;
8174
8175  *)
8176    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8177    ;;
8178  esac
8179  dynamic_linker='Win32 ld.exe'
8180  # FIXME: first we should search . and the directory the executable is in
8181  shlibpath_var=PATH
8182  ;;
8183
8184darwin* | rhapsody*)
8185  dynamic_linker="$host_os dyld"
8186  version_type=darwin
8187  need_lib_prefix=no
8188  need_version=no
8189  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8190  soname_spec='${libname}${release}${major}$shared_ext'
8191  shlibpath_overrides_runpath=yes
8192  shlibpath_var=DYLD_LIBRARY_PATH
8193  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8194  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8195  if test "$GCC" = yes; then
8196    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8197  else
8198    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8199  fi
8200  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8201  ;;
8202
8203dgux*)
8204  version_type=linux
8205  need_lib_prefix=no
8206  need_version=no
8207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8208  soname_spec='${libname}${release}${shared_ext}$major'
8209  shlibpath_var=LD_LIBRARY_PATH
8210  ;;
8211
8212freebsd1*)
8213  dynamic_linker=no
8214  ;;
8215
8216kfreebsd*-gnu)
8217  version_type=linux
8218  need_lib_prefix=no
8219  need_version=no
8220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8221  soname_spec='${libname}${release}${shared_ext}$major'
8222  shlibpath_var=LD_LIBRARY_PATH
8223  shlibpath_overrides_runpath=no
8224  hardcode_into_libs=yes
8225  dynamic_linker='GNU ld.so'
8226  ;;
8227
8228freebsd*)
8229  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8230  version_type=freebsd-$objformat
8231  case $version_type in
8232    freebsd-elf*)
8233      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8234      need_version=no
8235      need_lib_prefix=no
8236      ;;
8237    freebsd-*)
8238      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8239      need_version=yes
8240      ;;
8241  esac
8242  shlibpath_var=LD_LIBRARY_PATH
8243  case $host_os in
8244  freebsd2*)
8245    shlibpath_overrides_runpath=yes
8246    ;;
8247  freebsd3.01* | freebsdelf3.01*)
8248    shlibpath_overrides_runpath=yes
8249    hardcode_into_libs=yes
8250    ;;
8251  *) # from 3.2 on
8252    shlibpath_overrides_runpath=no
8253    hardcode_into_libs=yes
8254    ;;
8255  esac
8256  ;;
8257
8258gnu*)
8259  version_type=linux
8260  need_lib_prefix=no
8261  need_version=no
8262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8263  soname_spec='${libname}${release}${shared_ext}$major'
8264  shlibpath_var=LD_LIBRARY_PATH
8265  hardcode_into_libs=yes
8266  ;;
8267
8268hpux9* | hpux10* | hpux11*)
8269  # Give a soname corresponding to the major version so that dld.sl refuses to
8270  # link against other versions.
8271  version_type=sunos
8272  need_lib_prefix=no
8273  need_version=no
8274  case "$host_cpu" in
8275  ia64*)
8276    shrext='.so'
8277    hardcode_into_libs=yes
8278    dynamic_linker="$host_os dld.so"
8279    shlibpath_var=LD_LIBRARY_PATH
8280    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282    soname_spec='${libname}${release}${shared_ext}$major'
8283    if test "X$HPUX_IA64_MODE" = X32; then
8284      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8285    else
8286      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8287    fi
8288    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8289    ;;
8290   hppa*64*)
8291     shrext='.sl'
8292     hardcode_into_libs=yes
8293     dynamic_linker="$host_os dld.sl"
8294     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8295     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8297     soname_spec='${libname}${release}${shared_ext}$major'
8298     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8299     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300     ;;
8301   *)
8302    shrext='.sl'
8303    dynamic_linker="$host_os dld.sl"
8304    shlibpath_var=SHLIB_PATH
8305    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307    soname_spec='${libname}${release}${shared_ext}$major'
8308    ;;
8309  esac
8310  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8311  postinstall_cmds='chmod 555 $lib'
8312  ;;
8313
8314irix5* | irix6* | nonstopux*)
8315  case $host_os in
8316    nonstopux*) version_type=nonstopux ;;
8317    *)
8318	if test "$lt_cv_prog_gnu_ld" = yes; then
8319		version_type=linux
8320	else
8321		version_type=irix
8322	fi ;;
8323  esac
8324  need_lib_prefix=no
8325  need_version=no
8326  soname_spec='${libname}${release}${shared_ext}$major'
8327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8328  case $host_os in
8329  irix5* | nonstopux*)
8330    libsuff= shlibsuff=
8331    ;;
8332  *)
8333    case $LD in # libtool.m4 will add one of these switches to LD
8334    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8335      libsuff= shlibsuff= libmagic=32-bit;;
8336    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8337      libsuff=32 shlibsuff=N32 libmagic=N32;;
8338    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8339      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8340    *) libsuff= shlibsuff= libmagic=never-match;;
8341    esac
8342    ;;
8343  esac
8344  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8345  shlibpath_overrides_runpath=no
8346  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8347  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8348  hardcode_into_libs=yes
8349  ;;
8350
8351# No shared lib support for Linux oldld, aout, or coff.
8352linux*oldld* | linux*aout* | linux*coff*)
8353  dynamic_linker=no
8354  ;;
8355
8356# This must be Linux ELF.
8357linux*)
8358  version_type=linux
8359  need_lib_prefix=no
8360  need_version=no
8361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362  soname_spec='${libname}${release}${shared_ext}$major'
8363  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8364  shlibpath_var=LD_LIBRARY_PATH
8365  shlibpath_overrides_runpath=no
8366  # This implies no fast_install, which is unacceptable.
8367  # Some rework will be needed to allow for fast_install
8368  # before this can be enabled.
8369  hardcode_into_libs=yes
8370
8371  # Append ld.so.conf contents to the search path
8372  if test -f /etc/ld.so.conf; then
8373    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8374    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8375  fi
8376
8377  # We used to test for /lib/ld.so.1 and disable shared libraries on
8378  # powerpc, because MkLinux only supported shared libraries with the
8379  # GNU dynamic linker.  Since this was broken with cross compilers,
8380  # most powerpc-linux boxes support dynamic linking these days and
8381  # people can always --disable-shared, the test was removed, and we
8382  # assume the GNU/Linux dynamic linker is in use.
8383  dynamic_linker='GNU/Linux ld.so'
8384  ;;
8385
8386knetbsd*-gnu)
8387  version_type=linux
8388  need_lib_prefix=no
8389  need_version=no
8390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391  soname_spec='${libname}${release}${shared_ext}$major'
8392  shlibpath_var=LD_LIBRARY_PATH
8393  shlibpath_overrides_runpath=no
8394  hardcode_into_libs=yes
8395  dynamic_linker='GNU ld.so'
8396  ;;
8397
8398netbsd*)
8399  version_type=sunos
8400  need_lib_prefix=no
8401  need_version=no
8402  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8404    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8405    dynamic_linker='NetBSD (a.out) ld.so'
8406  else
8407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8408    soname_spec='${libname}${release}${shared_ext}$major'
8409    dynamic_linker='NetBSD ld.elf_so'
8410  fi
8411  shlibpath_var=LD_LIBRARY_PATH
8412  shlibpath_overrides_runpath=yes
8413  hardcode_into_libs=yes
8414  ;;
8415
8416newsos6)
8417  version_type=linux
8418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419  shlibpath_var=LD_LIBRARY_PATH
8420  shlibpath_overrides_runpath=yes
8421  ;;
8422
8423nto-qnx*)
8424  version_type=linux
8425  need_lib_prefix=no
8426  need_version=no
8427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428  soname_spec='${libname}${release}${shared_ext}$major'
8429  shlibpath_var=LD_LIBRARY_PATH
8430  shlibpath_overrides_runpath=yes
8431  ;;
8432
8433openbsd*)
8434  version_type=sunos
8435  need_lib_prefix=no
8436  need_version=yes
8437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8439  shlibpath_var=LD_LIBRARY_PATH
8440  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8441    case $host_os in
8442      openbsd2.[89] | openbsd2.[89].*)
8443	shlibpath_overrides_runpath=no
8444	;;
8445      *)
8446	shlibpath_overrides_runpath=yes
8447	;;
8448      esac
8449  else
8450    shlibpath_overrides_runpath=yes
8451  fi
8452  ;;
8453
8454os2*)
8455  libname_spec='$name'
8456  shrext=".dll"
8457  need_lib_prefix=no
8458  library_names_spec='$libname${shared_ext} $libname.a'
8459  dynamic_linker='OS/2 ld.exe'
8460  shlibpath_var=LIBPATH
8461  ;;
8462
8463osf3* | osf4* | osf5*)
8464  version_type=osf
8465  need_lib_prefix=no
8466  need_version=no
8467  soname_spec='${libname}${release}${shared_ext}$major'
8468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469  shlibpath_var=LD_LIBRARY_PATH
8470  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8471  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8472  ;;
8473
8474sco3.2v5*)
8475  version_type=osf
8476  soname_spec='${libname}${release}${shared_ext}$major'
8477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478  shlibpath_var=LD_LIBRARY_PATH
8479  ;;
8480
8481solaris*)
8482  version_type=linux
8483  need_lib_prefix=no
8484  need_version=no
8485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486  soname_spec='${libname}${release}${shared_ext}$major'
8487  shlibpath_var=LD_LIBRARY_PATH
8488  shlibpath_overrides_runpath=yes
8489  hardcode_into_libs=yes
8490  # ldd complains unless libraries are executable
8491  postinstall_cmds='chmod +x $lib'
8492  ;;
8493
8494sunos4*)
8495  version_type=sunos
8496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8497  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8498  shlibpath_var=LD_LIBRARY_PATH
8499  shlibpath_overrides_runpath=yes
8500  if test "$with_gnu_ld" = yes; then
8501    need_lib_prefix=no
8502  fi
8503  need_version=yes
8504  ;;
8505
8506sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8507  version_type=linux
8508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8509  soname_spec='${libname}${release}${shared_ext}$major'
8510  shlibpath_var=LD_LIBRARY_PATH
8511  case $host_vendor in
8512    sni)
8513      shlibpath_overrides_runpath=no
8514      need_lib_prefix=no
8515      export_dynamic_flag_spec='${wl}-Blargedynsym'
8516      runpath_var=LD_RUN_PATH
8517      ;;
8518    siemens)
8519      need_lib_prefix=no
8520      ;;
8521    motorola)
8522      need_lib_prefix=no
8523      need_version=no
8524      shlibpath_overrides_runpath=no
8525      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8526      ;;
8527  esac
8528  ;;
8529
8530sysv4*MP*)
8531  if test -d /usr/nec ;then
8532    version_type=linux
8533    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8534    soname_spec='$libname${shared_ext}.$major'
8535    shlibpath_var=LD_LIBRARY_PATH
8536  fi
8537  ;;
8538
8539uts4*)
8540  version_type=linux
8541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542  soname_spec='${libname}${release}${shared_ext}$major'
8543  shlibpath_var=LD_LIBRARY_PATH
8544  ;;
8545
8546*)
8547  dynamic_linker=no
8548  ;;
8549esac
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8551$as_echo "$dynamic_linker" >&6; }
8552test "$dynamic_linker" = no && can_build_shared=no
8553
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8555$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8556hardcode_action=
8557if test -n "$hardcode_libdir_flag_spec" || \
8558   test -n "$runpath_var " || \
8559   test "X$hardcode_automatic"="Xyes" ; then
8560
8561  # We can hardcode non-existant directories.
8562  if test "$hardcode_direct" != no &&
8563     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8564     # have to relink, otherwise we might link with an installed library
8565     # when we should be linking with a yet-to-be-installed one
8566     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8567     test "$hardcode_minus_L" != no; then
8568    # Linking always hardcodes the temporary library directory.
8569    hardcode_action=relink
8570  else
8571    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8572    hardcode_action=immediate
8573  fi
8574else
8575  # We cannot hardcode anything, or else we can only hardcode existing
8576  # directories.
8577  hardcode_action=unsupported
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8580$as_echo "$hardcode_action" >&6; }
8581
8582if test "$hardcode_action" = relink; then
8583  # Fast installation is not supported
8584  enable_fast_install=no
8585elif test "$shlibpath_overrides_runpath" = yes ||
8586     test "$enable_shared" = no; then
8587  # Fast installation is not necessary
8588  enable_fast_install=needless
8589fi
8590
8591striplib=
8592old_striplib=
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8594$as_echo_n "checking whether stripping libraries is possible... " >&6; }
8595if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8596  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8597  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8599$as_echo "yes" >&6; }
8600else
8601# FIXME - insert some real tests, host_os isn't really good enough
8602  case $host_os in
8603   darwin*)
8604       if test -n "$STRIP" ; then
8605         striplib="$STRIP -x"
8606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8607$as_echo "yes" >&6; }
8608       else
8609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610$as_echo "no" >&6; }
8611fi
8612       ;;
8613   *)
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615$as_echo "no" >&6; }
8616    ;;
8617  esac
8618fi
8619
8620if test "x$enable_dlopen" != xyes; then
8621  enable_dlopen=unknown
8622  enable_dlopen_self=unknown
8623  enable_dlopen_self_static=unknown
8624else
8625  lt_cv_dlopen=no
8626  lt_cv_dlopen_libs=
8627
8628  case $host_os in
8629  beos*)
8630    lt_cv_dlopen="load_add_on"
8631    lt_cv_dlopen_libs=
8632    lt_cv_dlopen_self=yes
8633    ;;
8634
8635  mingw* | pw32*)
8636    lt_cv_dlopen="LoadLibrary"
8637    lt_cv_dlopen_libs=
8638   ;;
8639
8640  cygwin*)
8641    lt_cv_dlopen="dlopen"
8642    lt_cv_dlopen_libs=
8643   ;;
8644
8645  darwin*)
8646  # if libdl is installed we need to link against it
8647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8648$as_echo_n "checking for dlopen in -ldl... " >&6; }
8649if ${ac_cv_lib_dl_dlopen+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  ac_check_lib_save_LIBS=$LIBS
8653LIBS="-ldl  $LIBS"
8654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h.  */
8656
8657/* Override any GCC internal prototype to avoid an error.
8658   Use char because int might match the return type of a GCC
8659   builtin and then its argument prototype would still apply.  */
8660#ifdef __cplusplus
8661extern "C"
8662#endif
8663char dlopen ();
8664int
8665main ()
8666{
8667return dlopen ();
8668  ;
8669  return 0;
8670}
8671_ACEOF
8672if ac_fn_c_try_link "$LINENO"; then :
8673  ac_cv_lib_dl_dlopen=yes
8674else
8675  ac_cv_lib_dl_dlopen=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext \
8678    conftest$ac_exeext conftest.$ac_ext
8679LIBS=$ac_check_lib_save_LIBS
8680fi
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8682$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8683if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8684  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8685else
8686
8687    lt_cv_dlopen="dyld"
8688    lt_cv_dlopen_libs=
8689    lt_cv_dlopen_self=yes
8690
8691fi
8692
8693   ;;
8694
8695  *)
8696    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8697if test "x$ac_cv_func_shl_load" = xyes; then :
8698  lt_cv_dlopen="shl_load"
8699else
8700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8701$as_echo_n "checking for shl_load in -ldld... " >&6; }
8702if ${ac_cv_lib_dld_shl_load+:} false; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  ac_check_lib_save_LIBS=$LIBS
8706LIBS="-ldld  $LIBS"
8707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709
8710/* Override any GCC internal prototype to avoid an error.
8711   Use char because int might match the return type of a GCC
8712   builtin and then its argument prototype would still apply.  */
8713#ifdef __cplusplus
8714extern "C"
8715#endif
8716char shl_load ();
8717int
8718main ()
8719{
8720return shl_load ();
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726  ac_cv_lib_dld_shl_load=yes
8727else
8728  ac_cv_lib_dld_shl_load=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext \
8731    conftest$ac_exeext conftest.$ac_ext
8732LIBS=$ac_check_lib_save_LIBS
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8735$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8736if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8737  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8738else
8739  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8740if test "x$ac_cv_func_dlopen" = xyes; then :
8741  lt_cv_dlopen="dlopen"
8742else
8743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8744$as_echo_n "checking for dlopen in -ldl... " >&6; }
8745if ${ac_cv_lib_dl_dlopen+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  ac_check_lib_save_LIBS=$LIBS
8749LIBS="-ldl  $LIBS"
8750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752
8753/* Override any GCC internal prototype to avoid an error.
8754   Use char because int might match the return type of a GCC
8755   builtin and then its argument prototype would still apply.  */
8756#ifdef __cplusplus
8757extern "C"
8758#endif
8759char dlopen ();
8760int
8761main ()
8762{
8763return dlopen ();
8764  ;
8765  return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_link "$LINENO"; then :
8769  ac_cv_lib_dl_dlopen=yes
8770else
8771  ac_cv_lib_dl_dlopen=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext \
8774    conftest$ac_exeext conftest.$ac_ext
8775LIBS=$ac_check_lib_save_LIBS
8776fi
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8778$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8779if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8780  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8781else
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8783$as_echo_n "checking for dlopen in -lsvld... " >&6; }
8784if ${ac_cv_lib_svld_dlopen+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  ac_check_lib_save_LIBS=$LIBS
8788LIBS="-lsvld  $LIBS"
8789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791
8792/* Override any GCC internal prototype to avoid an error.
8793   Use char because int might match the return type of a GCC
8794   builtin and then its argument prototype would still apply.  */
8795#ifdef __cplusplus
8796extern "C"
8797#endif
8798char dlopen ();
8799int
8800main ()
8801{
8802return dlopen ();
8803  ;
8804  return 0;
8805}
8806_ACEOF
8807if ac_fn_c_try_link "$LINENO"; then :
8808  ac_cv_lib_svld_dlopen=yes
8809else
8810  ac_cv_lib_svld_dlopen=no
8811fi
8812rm -f core conftest.err conftest.$ac_objext \
8813    conftest$ac_exeext conftest.$ac_ext
8814LIBS=$ac_check_lib_save_LIBS
8815fi
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8817$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8818if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8819  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8820else
8821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8822$as_echo_n "checking for dld_link in -ldld... " >&6; }
8823if ${ac_cv_lib_dld_dld_link+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  ac_check_lib_save_LIBS=$LIBS
8827LIBS="-ldld  $LIBS"
8828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h.  */
8830
8831/* Override any GCC internal prototype to avoid an error.
8832   Use char because int might match the return type of a GCC
8833   builtin and then its argument prototype would still apply.  */
8834#ifdef __cplusplus
8835extern "C"
8836#endif
8837char dld_link ();
8838int
8839main ()
8840{
8841return dld_link ();
8842  ;
8843  return 0;
8844}
8845_ACEOF
8846if ac_fn_c_try_link "$LINENO"; then :
8847  ac_cv_lib_dld_dld_link=yes
8848else
8849  ac_cv_lib_dld_dld_link=no
8850fi
8851rm -f core conftest.err conftest.$ac_objext \
8852    conftest$ac_exeext conftest.$ac_ext
8853LIBS=$ac_check_lib_save_LIBS
8854fi
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8856$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8857if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8858  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8859fi
8860
8861
8862fi
8863
8864
8865fi
8866
8867
8868fi
8869
8870
8871fi
8872
8873
8874fi
8875
8876    ;;
8877  esac
8878
8879  if test "x$lt_cv_dlopen" != xno; then
8880    enable_dlopen=yes
8881  else
8882    enable_dlopen=no
8883  fi
8884
8885  case $lt_cv_dlopen in
8886  dlopen)
8887    save_CPPFLAGS="$CPPFLAGS"
8888    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8889
8890    save_LDFLAGS="$LDFLAGS"
8891    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8892
8893    save_LIBS="$LIBS"
8894    LIBS="$lt_cv_dlopen_libs $LIBS"
8895
8896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8897$as_echo_n "checking whether a program can dlopen itself... " >&6; }
8898if ${lt_cv_dlopen_self+:} false; then :
8899  $as_echo_n "(cached) " >&6
8900else
8901  	  if test "$cross_compiling" = yes; then :
8902  lt_cv_dlopen_self=cross
8903else
8904  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8905  lt_status=$lt_dlunknown
8906  cat > conftest.$ac_ext <<EOF
8907#line 8907 "configure"
8908#include "confdefs.h"
8909
8910#if HAVE_DLFCN_H
8911#include <dlfcn.h>
8912#endif
8913
8914#include <stdio.h>
8915
8916#ifdef RTLD_GLOBAL
8917#  define LT_DLGLOBAL		RTLD_GLOBAL
8918#else
8919#  ifdef DL_GLOBAL
8920#    define LT_DLGLOBAL		DL_GLOBAL
8921#  else
8922#    define LT_DLGLOBAL		0
8923#  endif
8924#endif
8925
8926/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8927   find out it does not work in some platform. */
8928#ifndef LT_DLLAZY_OR_NOW
8929#  ifdef RTLD_LAZY
8930#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8931#  else
8932#    ifdef DL_LAZY
8933#      define LT_DLLAZY_OR_NOW		DL_LAZY
8934#    else
8935#      ifdef RTLD_NOW
8936#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8937#      else
8938#        ifdef DL_NOW
8939#          define LT_DLLAZY_OR_NOW	DL_NOW
8940#        else
8941#          define LT_DLLAZY_OR_NOW	0
8942#        endif
8943#      endif
8944#    endif
8945#  endif
8946#endif
8947
8948#ifdef __cplusplus
8949extern "C" void exit (int);
8950#endif
8951
8952void fnord() { int i=42;}
8953int main ()
8954{
8955  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8956  int status = $lt_dlunknown;
8957
8958  if (self)
8959    {
8960      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8961      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8962      /* dlclose (self); */
8963    }
8964
8965    exit (status);
8966}
8967EOF
8968  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8969  (eval $ac_link) 2>&5
8970  ac_status=$?
8971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8972  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8973    (./conftest; exit; ) 2>/dev/null
8974    lt_status=$?
8975    case x$lt_status in
8976      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8977      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8978      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8979    esac
8980  else :
8981    # compilation failed
8982    lt_cv_dlopen_self=no
8983  fi
8984fi
8985rm -fr conftest*
8986
8987
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8990$as_echo "$lt_cv_dlopen_self" >&6; }
8991
8992    if test "x$lt_cv_dlopen_self" = xyes; then
8993      LDFLAGS="$LDFLAGS $link_static_flag"
8994      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8995$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8996if ${lt_cv_dlopen_self_static+:} false; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  	  if test "$cross_compiling" = yes; then :
9000  lt_cv_dlopen_self_static=cross
9001else
9002  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9003  lt_status=$lt_dlunknown
9004  cat > conftest.$ac_ext <<EOF
9005#line 9005 "configure"
9006#include "confdefs.h"
9007
9008#if HAVE_DLFCN_H
9009#include <dlfcn.h>
9010#endif
9011
9012#include <stdio.h>
9013
9014#ifdef RTLD_GLOBAL
9015#  define LT_DLGLOBAL		RTLD_GLOBAL
9016#else
9017#  ifdef DL_GLOBAL
9018#    define LT_DLGLOBAL		DL_GLOBAL
9019#  else
9020#    define LT_DLGLOBAL		0
9021#  endif
9022#endif
9023
9024/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9025   find out it does not work in some platform. */
9026#ifndef LT_DLLAZY_OR_NOW
9027#  ifdef RTLD_LAZY
9028#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9029#  else
9030#    ifdef DL_LAZY
9031#      define LT_DLLAZY_OR_NOW		DL_LAZY
9032#    else
9033#      ifdef RTLD_NOW
9034#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9035#      else
9036#        ifdef DL_NOW
9037#          define LT_DLLAZY_OR_NOW	DL_NOW
9038#        else
9039#          define LT_DLLAZY_OR_NOW	0
9040#        endif
9041#      endif
9042#    endif
9043#  endif
9044#endif
9045
9046#ifdef __cplusplus
9047extern "C" void exit (int);
9048#endif
9049
9050void fnord() { int i=42;}
9051int main ()
9052{
9053  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9054  int status = $lt_dlunknown;
9055
9056  if (self)
9057    {
9058      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9059      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9060      /* dlclose (self); */
9061    }
9062
9063    exit (status);
9064}
9065EOF
9066  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9067  (eval $ac_link) 2>&5
9068  ac_status=$?
9069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9070  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9071    (./conftest; exit; ) 2>/dev/null
9072    lt_status=$?
9073    case x$lt_status in
9074      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9075      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9076      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9077    esac
9078  else :
9079    # compilation failed
9080    lt_cv_dlopen_self_static=no
9081  fi
9082fi
9083rm -fr conftest*
9084
9085
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9088$as_echo "$lt_cv_dlopen_self_static" >&6; }
9089    fi
9090
9091    CPPFLAGS="$save_CPPFLAGS"
9092    LDFLAGS="$save_LDFLAGS"
9093    LIBS="$save_LIBS"
9094    ;;
9095  esac
9096
9097  case $lt_cv_dlopen_self in
9098  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9099  *) enable_dlopen_self=unknown ;;
9100  esac
9101
9102  case $lt_cv_dlopen_self_static in
9103  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9104  *) enable_dlopen_self_static=unknown ;;
9105  esac
9106fi
9107
9108
9109# Report which librarie types wil actually be built
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9111$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9113$as_echo "$can_build_shared" >&6; }
9114
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9116$as_echo_n "checking whether to build shared libraries... " >&6; }
9117test "$can_build_shared" = "no" && enable_shared=no
9118
9119# On AIX, shared libraries and static libraries use the same namespace, and
9120# are all built from PIC.
9121case "$host_os" in
9122aix3*)
9123  test "$enable_shared" = yes && enable_static=no
9124  if test -n "$RANLIB"; then
9125    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9126    postinstall_cmds='$RANLIB $lib'
9127  fi
9128  ;;
9129
9130aix4*)
9131  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9132    test "$enable_shared" = yes && enable_static=no
9133  fi
9134  ;;
9135  darwin* | rhapsody*)
9136  if test "$GCC" = yes; then
9137    archive_cmds_need_lc=no
9138    case "$host_os" in
9139    rhapsody* | darwin1.[012])
9140      allow_undefined_flag='-undefined suppress'
9141      ;;
9142    *) # Darwin 1.3 on
9143      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9144      	allow_undefined_flag='-flat_namespace -undefined suppress'
9145      else
9146        case ${MACOSX_DEPLOYMENT_TARGET} in
9147          10.[012])
9148            allow_undefined_flag='-flat_namespace -undefined suppress'
9149            ;;
9150          10.*)
9151            allow_undefined_flag='-undefined dynamic_lookup'
9152            ;;
9153        esac
9154      fi
9155      ;;
9156    esac
9157    output_verbose_link_cmd='echo'
9158    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9159    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9160    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9161    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9162    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9163    hardcode_direct=no
9164    hardcode_automatic=yes
9165    hardcode_shlibpath_var=unsupported
9166    whole_archive_flag_spec='-all_load $convenience'
9167    link_all_deplibs=yes
9168  else
9169    ld_shlibs=no
9170  fi
9171    ;;
9172esac
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9174$as_echo "$enable_shared" >&6; }
9175
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9177$as_echo_n "checking whether to build static libraries... " >&6; }
9178# Make sure either enable_shared or enable_static is yes.
9179test "$enable_shared" = yes || enable_static=yes
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9181$as_echo "$enable_static" >&6; }
9182
9183# The else clause should only fire when bootstrapping the
9184# libtool distribution, otherwise you forgot to ship ltmain.sh
9185# with your package, and you will get complaints that there are
9186# no rules to generate ltmain.sh.
9187if test -f "$ltmain"; then
9188  # See if we are running on zsh, and set the options which allow our commands through
9189  # without removal of \ escapes.
9190  if test -n "${ZSH_VERSION+set}" ; then
9191    setopt NO_GLOB_SUBST
9192  fi
9193  # Now quote all the things that may contain metacharacters while being
9194  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9195  # variables and quote the copies for generation of the libtool script.
9196  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9197    SED SHELL STRIP \
9198    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9199    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9200    deplibs_check_method reload_flag reload_cmds need_locks \
9201    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9202    lt_cv_sys_global_symbol_to_c_name_address \
9203    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9204    old_postinstall_cmds old_postuninstall_cmds \
9205    compiler \
9206    CC \
9207    LD \
9208    lt_prog_compiler_wl \
9209    lt_prog_compiler_pic \
9210    lt_prog_compiler_static \
9211    lt_prog_compiler_no_builtin_flag \
9212    export_dynamic_flag_spec \
9213    thread_safe_flag_spec \
9214    whole_archive_flag_spec \
9215    enable_shared_with_static_runtimes \
9216    old_archive_cmds \
9217    old_archive_from_new_cmds \
9218    predep_objects \
9219    postdep_objects \
9220    predeps \
9221    postdeps \
9222    compiler_lib_search_path \
9223    archive_cmds \
9224    archive_expsym_cmds \
9225    postinstall_cmds \
9226    postuninstall_cmds \
9227    old_archive_from_expsyms_cmds \
9228    allow_undefined_flag \
9229    no_undefined_flag \
9230    export_symbols_cmds \
9231    hardcode_libdir_flag_spec \
9232    hardcode_libdir_flag_spec_ld \
9233    hardcode_libdir_separator \
9234    hardcode_automatic \
9235    module_cmds \
9236    module_expsym_cmds \
9237    lt_cv_prog_compiler_c_o \
9238    exclude_expsyms \
9239    include_expsyms; do
9240
9241    case $var in
9242    old_archive_cmds | \
9243    old_archive_from_new_cmds | \
9244    archive_cmds | \
9245    archive_expsym_cmds | \
9246    module_cmds | \
9247    module_expsym_cmds | \
9248    old_archive_from_expsyms_cmds | \
9249    export_symbols_cmds | \
9250    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9251    postinstall_cmds | postuninstall_cmds | \
9252    old_postinstall_cmds | old_postuninstall_cmds | \
9253    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9254      # Double-quote double-evaled strings.
9255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9256      ;;
9257    *)
9258      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9259      ;;
9260    esac
9261  done
9262
9263  case $lt_echo in
9264  *'\$0 --fallback-echo"')
9265    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9266    ;;
9267  esac
9268
9269cfgfile="${ofile}T"
9270  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9271  $rm -f "$cfgfile"
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9273$as_echo "$as_me: creating $ofile" >&6;}
9274
9275  cat <<__EOF__ >> "$cfgfile"
9276#! $SHELL
9277
9278# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9279# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9280# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9281#
9282# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9283# Free Software Foundation, Inc.
9284#
9285# This file is part of GNU Libtool:
9286# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9287#
9288# This program is free software; you can redistribute it and/or modify
9289# it under the terms of the GNU General Public License as published by
9290# the Free Software Foundation; either version 2 of the License, or
9291# (at your option) any later version.
9292#
9293# This program is distributed in the hope that it will be useful, but
9294# WITHOUT ANY WARRANTY; without even the implied warranty of
9295# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9296# General Public License for more details.
9297#
9298# You should have received a copy of the GNU General Public License
9299# along with this program; if not, write to the Free Software
9300# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9301#
9302# As a special exception to the GNU General Public License, if you
9303# distribute this file as part of a program that contains a
9304# configuration script generated by Autoconf, you may include it under
9305# the same distribution terms that you use for the rest of that program.
9306
9307# A sed program that does not truncate output.
9308SED=$lt_SED
9309
9310# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9311Xsed="$SED -e s/^X//"
9312
9313# The HP-UX ksh and POSIX shell print the target directory to stdout
9314# if CDPATH is set.
9315if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9316
9317# The names of the tagged configurations supported by this script.
9318available_tags=
9319
9320# ### BEGIN LIBTOOL CONFIG
9321
9322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9323
9324# Shell to use when invoking shell scripts.
9325SHELL=$lt_SHELL
9326
9327# Whether or not to build shared libraries.
9328build_libtool_libs=$enable_shared
9329
9330# Whether or not to build static libraries.
9331build_old_libs=$enable_static
9332
9333# Whether or not to add -lc for building shared libraries.
9334build_libtool_need_lc=$archive_cmds_need_lc
9335
9336# Whether or not to disallow shared libs when runtime libs are static
9337allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9338
9339# Whether or not to optimize for fast installation.
9340fast_install=$enable_fast_install
9341
9342# The host system.
9343host_alias=$host_alias
9344host=$host
9345
9346# An echo program that does not interpret backslashes.
9347echo=$lt_echo
9348
9349# The archiver.
9350AR=$lt_AR
9351AR_FLAGS=$lt_AR_FLAGS
9352
9353# A C compiler.
9354LTCC=$lt_LTCC
9355
9356# A language-specific compiler.
9357CC=$lt_compiler
9358
9359# Is the compiler the GNU C compiler?
9360with_gcc=$GCC
9361
9362# An ERE matcher.
9363EGREP=$lt_EGREP
9364
9365# The linker used to build libraries.
9366LD=$lt_LD
9367
9368# Whether we need hard or soft links.
9369LN_S=$lt_LN_S
9370
9371# A BSD-compatible nm program.
9372NM=$lt_NM
9373
9374# A symbol stripping program
9375STRIP=$lt_STRIP
9376
9377# Used to examine libraries when file_magic_cmd begins "file"
9378MAGIC_CMD=$MAGIC_CMD
9379
9380# Used on cygwin: DLL creation program.
9381DLLTOOL="$DLLTOOL"
9382
9383# Used on cygwin: object dumper.
9384OBJDUMP="$OBJDUMP"
9385
9386# Used on cygwin: assembler.
9387AS="$AS"
9388
9389# The name of the directory that contains temporary libtool files.
9390objdir=$objdir
9391
9392# How to create reloadable object files.
9393reload_flag=$lt_reload_flag
9394reload_cmds=$lt_reload_cmds
9395
9396# How to pass a linker flag through the compiler.
9397wl=$lt_lt_prog_compiler_wl
9398
9399# Object file suffix (normally "o").
9400objext="$ac_objext"
9401
9402# Old archive suffix (normally "a").
9403libext="$libext"
9404
9405# Shared library suffix (normally ".so").
9406shrext='$shrext'
9407
9408# Executable file suffix (normally "").
9409exeext="$exeext"
9410
9411# Additional compiler flags for building library objects.
9412pic_flag=$lt_lt_prog_compiler_pic
9413pic_mode=$pic_mode
9414
9415# What is the maximum length of a command?
9416max_cmd_len=$lt_cv_sys_max_cmd_len
9417
9418# Does compiler simultaneously support -c and -o options?
9419compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9420
9421# Must we lock files when doing compilation ?
9422need_locks=$lt_need_locks
9423
9424# Do we need the lib prefix for modules?
9425need_lib_prefix=$need_lib_prefix
9426
9427# Do we need a version for libraries?
9428need_version=$need_version
9429
9430# Whether dlopen is supported.
9431dlopen_support=$enable_dlopen
9432
9433# Whether dlopen of programs is supported.
9434dlopen_self=$enable_dlopen_self
9435
9436# Whether dlopen of statically linked programs is supported.
9437dlopen_self_static=$enable_dlopen_self_static
9438
9439# Compiler flag to prevent dynamic linking.
9440link_static_flag=$lt_lt_prog_compiler_static
9441
9442# Compiler flag to turn off builtin functions.
9443no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9444
9445# Compiler flag to allow reflexive dlopens.
9446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9447
9448# Compiler flag to generate shared objects directly from archives.
9449whole_archive_flag_spec=$lt_whole_archive_flag_spec
9450
9451# Compiler flag to generate thread-safe objects.
9452thread_safe_flag_spec=$lt_thread_safe_flag_spec
9453
9454# Library versioning type.
9455version_type=$version_type
9456
9457# Format of library name prefix.
9458libname_spec=$lt_libname_spec
9459
9460# List of archive names.  First name is the real one, the rest are links.
9461# The last name is the one that the linker finds with -lNAME.
9462library_names_spec=$lt_library_names_spec
9463
9464# The coded name of the library, if different from the real name.
9465soname_spec=$lt_soname_spec
9466
9467# Commands used to build and install an old-style archive.
9468RANLIB=$lt_RANLIB
9469old_archive_cmds=$lt_old_archive_cmds
9470old_postinstall_cmds=$lt_old_postinstall_cmds
9471old_postuninstall_cmds=$lt_old_postuninstall_cmds
9472
9473# Create an old-style archive from a shared archive.
9474old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9475
9476# Create a temporary old-style archive to link instead of a shared archive.
9477old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9478
9479# Commands used to build and install a shared archive.
9480archive_cmds=$lt_archive_cmds
9481archive_expsym_cmds=$lt_archive_expsym_cmds
9482postinstall_cmds=$lt_postinstall_cmds
9483postuninstall_cmds=$lt_postuninstall_cmds
9484
9485# Commands used to build a loadable module (assumed same as above if empty)
9486module_cmds=$lt_module_cmds
9487module_expsym_cmds=$lt_module_expsym_cmds
9488
9489# Commands to strip libraries.
9490old_striplib=$lt_old_striplib
9491striplib=$lt_striplib
9492
9493# Dependencies to place before the objects being linked to create a
9494# shared library.
9495predep_objects=$lt_predep_objects
9496
9497# Dependencies to place after the objects being linked to create a
9498# shared library.
9499postdep_objects=$lt_postdep_objects
9500
9501# Dependencies to place before the objects being linked to create a
9502# shared library.
9503predeps=$lt_predeps
9504
9505# Dependencies to place after the objects being linked to create a
9506# shared library.
9507postdeps=$lt_postdeps
9508
9509# The library search path used internally by the compiler when linking
9510# a shared library.
9511compiler_lib_search_path=$lt_compiler_lib_search_path
9512
9513# Method to check whether dependent libraries are shared objects.
9514deplibs_check_method=$lt_deplibs_check_method
9515
9516# Command to use when deplibs_check_method == file_magic.
9517file_magic_cmd=$lt_file_magic_cmd
9518
9519# Flag that allows shared libraries with undefined symbols to be built.
9520allow_undefined_flag=$lt_allow_undefined_flag
9521
9522# Flag that forces no undefined symbols.
9523no_undefined_flag=$lt_no_undefined_flag
9524
9525# Commands used to finish a libtool library installation in a directory.
9526finish_cmds=$lt_finish_cmds
9527
9528# Same as above, but a single script fragment to be evaled but not shown.
9529finish_eval=$lt_finish_eval
9530
9531# Take the output of nm and produce a listing of raw symbols and C names.
9532global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9533
9534# Transform the output of nm in a proper C declaration
9535global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9536
9537# Transform the output of nm in a C name address pair
9538global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9539
9540# This is the shared library runtime path variable.
9541runpath_var=$runpath_var
9542
9543# This is the shared library path variable.
9544shlibpath_var=$shlibpath_var
9545
9546# Is shlibpath searched before the hard-coded library search path?
9547shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9548
9549# How to hardcode a shared library path into an executable.
9550hardcode_action=$hardcode_action
9551
9552# Whether we should hardcode library paths into libraries.
9553hardcode_into_libs=$hardcode_into_libs
9554
9555# Flag to hardcode \$libdir into a binary during linking.
9556# This must work even if \$libdir does not exist.
9557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9558
9559# If ld is used when linking, flag to hardcode \$libdir into
9560# a binary during linking. This must work even if \$libdir does
9561# not exist.
9562hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9563
9564# Whether we need a single -rpath flag with a separated argument.
9565hardcode_libdir_separator=$lt_hardcode_libdir_separator
9566
9567# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9568# resulting binary.
9569hardcode_direct=$hardcode_direct
9570
9571# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9572# resulting binary.
9573hardcode_minus_L=$hardcode_minus_L
9574
9575# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9576# the resulting binary.
9577hardcode_shlibpath_var=$hardcode_shlibpath_var
9578
9579# Set to yes if building a shared library automatically hardcodes DIR into the library
9580# and all subsequent libraries and executables linked against it.
9581hardcode_automatic=$hardcode_automatic
9582
9583# Variables whose values should be saved in libtool wrapper scripts and
9584# restored at relink time.
9585variables_saved_for_relink="$variables_saved_for_relink"
9586
9587# Whether libtool must link a program against all its dependency libraries.
9588link_all_deplibs=$link_all_deplibs
9589
9590# Compile-time system search path for libraries
9591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9592
9593# Run-time system search path for libraries
9594sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9595
9596# Fix the shell variable \$srcfile for the compiler.
9597fix_srcfile_path="$fix_srcfile_path"
9598
9599# Set to yes if exported symbols are required.
9600always_export_symbols=$always_export_symbols
9601
9602# The commands to list exported symbols.
9603export_symbols_cmds=$lt_export_symbols_cmds
9604
9605# The commands to extract the exported symbol list from a shared archive.
9606extract_expsyms_cmds=$lt_extract_expsyms_cmds
9607
9608# Symbols that should not be listed in the preloaded symbols.
9609exclude_expsyms=$lt_exclude_expsyms
9610
9611# Symbols that must always be exported.
9612include_expsyms=$lt_include_expsyms
9613
9614# ### END LIBTOOL CONFIG
9615
9616__EOF__
9617
9618
9619  case $host_os in
9620  aix3*)
9621    cat <<\EOF >> "$cfgfile"
9622
9623# AIX sometimes has problems with the GCC collect2 program.  For some
9624# reason, if we set the COLLECT_NAMES environment variable, the problems
9625# vanish in a puff of smoke.
9626if test "X${COLLECT_NAMES+set}" != Xset; then
9627  COLLECT_NAMES=
9628  export COLLECT_NAMES
9629fi
9630EOF
9631    ;;
9632  esac
9633
9634  # We use sed instead of cat because bash on DJGPP gets confused if
9635  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9636  # text mode, it properly converts lines to CR/LF.  This bash problem
9637  # is reportedly fixed, but why not run on old versions too?
9638  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9639
9640  mv -f "$cfgfile" "$ofile" || \
9641    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9642  chmod +x "$ofile"
9643
9644else
9645  # If there is no Makefile yet, we rely on a make rule to execute
9646  # `config.status --recheck' to rerun these tests and create the
9647  # libtool script then.
9648  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9649  if test -f "$ltmain_in"; then
9650    test -f Makefile && make "$ltmain"
9651  fi
9652fi
9653
9654
9655ac_ext=c
9656ac_cpp='$CPP $CPPFLAGS'
9657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659ac_compiler_gnu=$ac_cv_c_compiler_gnu
9660
9661CC="$lt_save_CC"
9662
9663
9664# Check whether --with-tags was given.
9665if test "${with_tags+set}" = set; then :
9666  withval=$with_tags; tagnames="$withval"
9667fi
9668
9669
9670if test -f "$ltmain" && test -n "$tagnames"; then
9671  if test ! -f "${ofile}"; then
9672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9673$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9674  fi
9675
9676  if test -z "$LTCC"; then
9677    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9678    if test -z "$LTCC"; then
9679      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9680$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9681    else
9682      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9683$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9684    fi
9685  fi
9686
9687  # Extract list of available tagged configurations in $ofile.
9688  # Note that this assumes the entire list is on one line.
9689  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9690
9691  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9692  for tagname in $tagnames; do
9693    IFS="$lt_save_ifs"
9694    # Check whether tagname contains only valid characters
9695    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9696    "") ;;
9697    *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9698	;;
9699    esac
9700
9701    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9702    then
9703      as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9704    fi
9705
9706    # Update the list of available tags.
9707    if test -n "$tagname"; then
9708      echo appending configuration tag \"$tagname\" to $ofile
9709
9710      case $tagname in
9711      CXX)
9712	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9713	  ac_ext=cpp
9714ac_cpp='$CXXCPP $CPPFLAGS'
9715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9718
9719
9720
9721
9722archive_cmds_need_lc_CXX=no
9723allow_undefined_flag_CXX=
9724always_export_symbols_CXX=no
9725archive_expsym_cmds_CXX=
9726export_dynamic_flag_spec_CXX=
9727hardcode_direct_CXX=no
9728hardcode_libdir_flag_spec_CXX=
9729hardcode_libdir_flag_spec_ld_CXX=
9730hardcode_libdir_separator_CXX=
9731hardcode_minus_L_CXX=no
9732hardcode_automatic_CXX=no
9733module_cmds_CXX=
9734module_expsym_cmds_CXX=
9735link_all_deplibs_CXX=unknown
9736old_archive_cmds_CXX=$old_archive_cmds
9737no_undefined_flag_CXX=
9738whole_archive_flag_spec_CXX=
9739enable_shared_with_static_runtimes_CXX=no
9740
9741# Dependencies to place before and after the object being linked:
9742predep_objects_CXX=
9743postdep_objects_CXX=
9744predeps_CXX=
9745postdeps_CXX=
9746compiler_lib_search_path_CXX=
9747
9748# Source file extension for C++ test sources.
9749ac_ext=cc
9750
9751# Object file extension for compiled C++ test sources.
9752objext=o
9753objext_CXX=$objext
9754
9755# Code to be used in simple compile tests
9756lt_simple_compile_test_code="int some_variable = 0;\n"
9757
9758# Code to be used in simple link tests
9759lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9760
9761# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9762
9763# If no C compiler was specified, use CC.
9764LTCC=${LTCC-"$CC"}
9765
9766# Allow CC to be a program name with arguments.
9767compiler=$CC
9768
9769
9770# Allow CC to be a program name with arguments.
9771lt_save_CC=$CC
9772lt_save_LD=$LD
9773lt_save_GCC=$GCC
9774GCC=$GXX
9775lt_save_with_gnu_ld=$with_gnu_ld
9776lt_save_path_LD=$lt_cv_path_LD
9777if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9778  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9779else
9780  unset lt_cv_prog_gnu_ld
9781fi
9782if test -n "${lt_cv_path_LDCXX+set}"; then
9783  lt_cv_path_LD=$lt_cv_path_LDCXX
9784else
9785  unset lt_cv_path_LD
9786fi
9787test -z "${LDCXX+set}" || LD=$LDCXX
9788CC=${CXX-"c++"}
9789compiler=$CC
9790compiler_CXX=$CC
9791cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9792
9793# We don't want -fno-exception wen compiling C++ code, so set the
9794# no_builtin_flag separately
9795if test "$GXX" = yes; then
9796  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9797else
9798  lt_prog_compiler_no_builtin_flag_CXX=
9799fi
9800
9801if test "$GXX" = yes; then
9802  # Set up default GNU C++ configuration
9803
9804
9805# Check whether --with-gnu-ld was given.
9806if test "${with_gnu_ld+set}" = set; then :
9807  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9808else
9809  with_gnu_ld=no
9810fi
9811
9812ac_prog=ld
9813if test "$GCC" = yes; then
9814  # Check if gcc -print-prog-name=ld gives a path.
9815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9816$as_echo_n "checking for ld used by $CC... " >&6; }
9817  case $host in
9818  *-*-mingw*)
9819    # gcc leaves a trailing carriage return which upsets mingw
9820    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9821  *)
9822    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9823  esac
9824  case $ac_prog in
9825    # Accept absolute paths.
9826    [\\/]* | ?:[\\/]*)
9827      re_direlt='/[^/][^/]*/\.\./'
9828      # Canonicalize the pathname of ld
9829      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9830      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9831	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9832      done
9833      test -z "$LD" && LD="$ac_prog"
9834      ;;
9835  "")
9836    # If it fails, then pretend we aren't using GCC.
9837    ac_prog=ld
9838    ;;
9839  *)
9840    # If it is relative, then search for the first ld in PATH.
9841    with_gnu_ld=unknown
9842    ;;
9843  esac
9844elif test "$with_gnu_ld" = yes; then
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9846$as_echo_n "checking for GNU ld... " >&6; }
9847else
9848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9849$as_echo_n "checking for non-GNU ld... " >&6; }
9850fi
9851if ${lt_cv_path_LD+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  if test -z "$LD"; then
9855  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9856  for ac_dir in $PATH; do
9857    IFS="$lt_save_ifs"
9858    test -z "$ac_dir" && ac_dir=.
9859    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9860      lt_cv_path_LD="$ac_dir/$ac_prog"
9861      # Check to see if the program is GNU ld.  I'd rather use --version,
9862      # but apparently some GNU ld's only accept -v.
9863      # Break only if it was the GNU/non-GNU ld that we prefer.
9864      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9865      *GNU* | *'with BFD'*)
9866	test "$with_gnu_ld" != no && break
9867	;;
9868      *)
9869	test "$with_gnu_ld" != yes && break
9870	;;
9871      esac
9872    fi
9873  done
9874  IFS="$lt_save_ifs"
9875else
9876  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9877fi
9878fi
9879
9880LD="$lt_cv_path_LD"
9881if test -n "$LD"; then
9882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9883$as_echo "$LD" >&6; }
9884else
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
9887fi
9888test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9890$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9891if ${lt_cv_prog_gnu_ld+:} false; then :
9892  $as_echo_n "(cached) " >&6
9893else
9894  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9895case `$LD -v 2>&1 </dev/null` in
9896*GNU* | *'with BFD'*)
9897  lt_cv_prog_gnu_ld=yes
9898  ;;
9899*)
9900  lt_cv_prog_gnu_ld=no
9901  ;;
9902esac
9903fi
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9905$as_echo "$lt_cv_prog_gnu_ld" >&6; }
9906with_gnu_ld=$lt_cv_prog_gnu_ld
9907
9908
9909
9910  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9911  # archiving commands below assume that GNU ld is being used.
9912  if test "$with_gnu_ld" = yes; then
9913    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9915
9916    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9917    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9918
9919    # If archive_cmds runs LD, not CC, wlarc should be empty
9920    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9921    #     investigate it a little bit more. (MM)
9922    wlarc='${wl}'
9923
9924    # ancient GNU ld didn't support --whole-archive et. al.
9925    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9926	grep 'no-whole-archive' > /dev/null; then
9927      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9928    else
9929      whole_archive_flag_spec_CXX=
9930    fi
9931  else
9932    with_gnu_ld=no
9933    wlarc=
9934
9935    # A generic and very simple default shared library creation
9936    # command for GNU C++ for the case where it uses the native
9937    # linker, instead of GNU ld.  If possible, this setting should
9938    # overridden to take advantage of the native linker features on
9939    # the platform it is being used on.
9940    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9941  fi
9942
9943  # Commands to make compiler produce verbose output that lists
9944  # what "hidden" libraries, object files and flags are used when
9945  # linking a shared library.
9946  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9947
9948else
9949  GXX=no
9950  with_gnu_ld=no
9951  wlarc=
9952fi
9953
9954# PORTME: fill in a description of your system's C++ link characteristics
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9956$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9957ld_shlibs_CXX=yes
9958case $host_os in
9959  aix3*)
9960    # FIXME: insert proper C++ library support
9961    ld_shlibs_CXX=no
9962    ;;
9963  aix4* | aix5*)
9964    if test "$host_cpu" = ia64; then
9965      # On IA64, the linker does run time linking by default, so we don't
9966      # have to do anything special.
9967      aix_use_runtimelinking=no
9968      exp_sym_flag='-Bexport'
9969      no_entry_flag=""
9970    else
9971      aix_use_runtimelinking=no
9972
9973      # Test if we are trying to use run time linking or normal
9974      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975      # need to do runtime linking.
9976      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9977	for ld_flag in $LDFLAGS; do
9978	  case $ld_flag in
9979	  *-brtl*)
9980	    aix_use_runtimelinking=yes
9981	    break
9982	    ;;
9983	  esac
9984	done
9985      esac
9986
9987      exp_sym_flag='-bexport'
9988      no_entry_flag='-bnoentry'
9989    fi
9990
9991    # When large executables or shared objects are built, AIX ld can
9992    # have problems creating the table of contents.  If linking a library
9993    # or program results in "error TOC overflow" add -mminimal-toc to
9994    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9995    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9996
9997    archive_cmds_CXX=''
9998    hardcode_direct_CXX=yes
9999    hardcode_libdir_separator_CXX=':'
10000    link_all_deplibs_CXX=yes
10001
10002    if test "$GXX" = yes; then
10003      case $host_os in aix4.012|aix4.012.*)
10004      # We only want to do this on AIX 4.2 and lower, the check
10005      # below for broken collect2 doesn't work under 4.3+
10006	collect2name=`${CC} -print-prog-name=collect2`
10007	if test -f "$collect2name" && \
10008	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10009	then
10010	  # We have reworked collect2
10011	  hardcode_direct_CXX=yes
10012	else
10013	  # We have old collect2
10014	  hardcode_direct_CXX=unsupported
10015	  # It fails to find uninstalled libraries when the uninstalled
10016	  # path is not listed in the libpath.  Setting hardcode_minus_L
10017	  # to unsupported forces relinking
10018	  hardcode_minus_L_CXX=yes
10019	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10020	  hardcode_libdir_separator_CXX=
10021	fi
10022      esac
10023      shared_flag='-shared'
10024    else
10025      # not using gcc
10026      if test "$host_cpu" = ia64; then
10027	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10028	# chokes on -Wl,-G. The following line is correct:
10029	shared_flag='-G'
10030      else
10031	if test "$aix_use_runtimelinking" = yes; then
10032	  shared_flag='${wl}-G'
10033	else
10034	  shared_flag='${wl}-bM:SRE'
10035	fi
10036      fi
10037    fi
10038
10039    # It seems that -bexpall does not export symbols beginning with
10040    # underscore (_), so it is better to generate a list of symbols to export.
10041    always_export_symbols_CXX=yes
10042    if test "$aix_use_runtimelinking" = yes; then
10043      # Warning - without using the other runtime loading flags (-brtl),
10044      # -berok will link without error, but may produce a broken library.
10045      allow_undefined_flag_CXX='-berok'
10046      # Determine the default libpath from the value encoded in an empty executable.
10047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049
10050int
10051main ()
10052{
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058if ac_fn_cxx_try_link "$LINENO"; then :
10059
10060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10061}'`
10062# Check for a 64-bit object if we didn't find anything.
10063if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10064}'`; fi
10065fi
10066rm -f core conftest.err conftest.$ac_objext \
10067    conftest$ac_exeext conftest.$ac_ext
10068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10069
10070      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10071
10072      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10073     else
10074      if test "$host_cpu" = ia64; then
10075	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10076	allow_undefined_flag_CXX="-z nodefs"
10077	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10078      else
10079	# Determine the default libpath from the value encoded in an empty executable.
10080	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082
10083int
10084main ()
10085{
10086
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091if ac_fn_cxx_try_link "$LINENO"; then :
10092
10093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10094}'`
10095# Check for a 64-bit object if we didn't find anything.
10096if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10097}'`; fi
10098fi
10099rm -f core conftest.err conftest.$ac_objext \
10100    conftest$ac_exeext conftest.$ac_ext
10101if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10102
10103	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10104	# Warning - without using the other run time loading flags,
10105	# -berok will link without error, but may produce a broken library.
10106	no_undefined_flag_CXX=' ${wl}-bernotok'
10107	allow_undefined_flag_CXX=' ${wl}-berok'
10108	# -bexpall does not export symbols beginning with underscore (_)
10109	always_export_symbols_CXX=yes
10110	# Exported symbols can be pulled into shared objects from archives
10111	whole_archive_flag_spec_CXX=' '
10112	archive_cmds_need_lc_CXX=yes
10113	# This is similar to how AIX traditionally builds it's shared libraries.
10114	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10115      fi
10116    fi
10117    ;;
10118  chorus*)
10119    case $cc_basename in
10120      *)
10121	# FIXME: insert proper C++ library support
10122	ld_shlibs_CXX=no
10123	;;
10124    esac
10125    ;;
10126
10127  cygwin* | mingw* | pw32*)
10128    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10129    # as there is no search path for DLLs.
10130    hardcode_libdir_flag_spec_CXX='-L$libdir'
10131    allow_undefined_flag_CXX=unsupported
10132    always_export_symbols_CXX=no
10133    enable_shared_with_static_runtimes_CXX=yes
10134
10135    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10136      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10137      # If the export-symbols file already is a .def file (1st line
10138      # is EXPORTS), use it as is; otherwise, prepend...
10139      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140	cp $export_symbols $output_objdir/$soname.def;
10141      else
10142	echo EXPORTS > $output_objdir/$soname.def;
10143	cat $export_symbols >> $output_objdir/$soname.def;
10144      fi~
10145      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10146    else
10147      ld_shlibs_CXX=no
10148    fi
10149  ;;
10150
10151  darwin* | rhapsody*)
10152  if test "$GXX" = yes; then
10153    archive_cmds_need_lc_CXX=no
10154    case "$host_os" in
10155    rhapsody* | darwin1.[012])
10156      allow_undefined_flag_CXX='-undefined suppress'
10157      ;;
10158    *) # Darwin 1.3 on
10159      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10160      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10161      else
10162        case ${MACOSX_DEPLOYMENT_TARGET} in
10163          10.[012])
10164            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10165            ;;
10166          10.*)
10167            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10168            ;;
10169        esac
10170      fi
10171      ;;
10172    esac
10173    lt_int_apple_cc_single_mod=no
10174    output_verbose_link_cmd='echo'
10175    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10176      lt_int_apple_cc_single_mod=yes
10177    fi
10178    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10179      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10180    else
10181      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10182    fi
10183    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10184
10185    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10186    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10187      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10188    else
10189      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10190    fi
10191    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10192    hardcode_direct_CXX=no
10193    hardcode_automatic_CXX=yes
10194    hardcode_shlibpath_var_CXX=unsupported
10195    whole_archive_flag_spec_CXX='-all_load $convenience'
10196    link_all_deplibs_CXX=yes
10197  else
10198    ld_shlibs_CXX=no
10199  fi
10200    ;;
10201
10202  dgux*)
10203    case $cc_basename in
10204      ec++)
10205	# FIXME: insert proper C++ library support
10206	ld_shlibs_CXX=no
10207	;;
10208      ghcx)
10209	# Green Hills C++ Compiler
10210	# FIXME: insert proper C++ library support
10211	ld_shlibs_CXX=no
10212	;;
10213      *)
10214	# FIXME: insert proper C++ library support
10215	ld_shlibs_CXX=no
10216	;;
10217    esac
10218    ;;
10219  freebsd12*)
10220    # C++ shared libraries reported to be fairly broken before switch to ELF
10221    ld_shlibs_CXX=no
10222    ;;
10223  freebsd-elf*)
10224    archive_cmds_need_lc_CXX=no
10225    ;;
10226  freebsd* | kfreebsd*-gnu)
10227    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10228    # conventions
10229    ld_shlibs_CXX=yes
10230    ;;
10231  gnu*)
10232    ;;
10233  hpux9*)
10234    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10235    hardcode_libdir_separator_CXX=:
10236    export_dynamic_flag_spec_CXX='${wl}-E'
10237    hardcode_direct_CXX=yes
10238    hardcode_minus_L_CXX=yes # Not in the search PATH,
10239				# but as the default
10240				# location of the library.
10241
10242    case $cc_basename in
10243    CC)
10244      # FIXME: insert proper C++ library support
10245      ld_shlibs_CXX=no
10246      ;;
10247    aCC)
10248      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'
10249      # Commands to make compiler produce verbose output that lists
10250      # what "hidden" libraries, object files and flags are used when
10251      # linking a shared library.
10252      #
10253      # There doesn't appear to be a way to prevent this compiler from
10254      # explicitly linking system object files so we need to strip them
10255      # from the output so that they don't get included in the library
10256      # dependencies.
10257      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; echo $list'
10258      ;;
10259    *)
10260      if test "$GXX" = yes; then
10261        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
10262      else
10263        # FIXME: insert proper C++ library support
10264        ld_shlibs_CXX=no
10265      fi
10266      ;;
10267    esac
10268    ;;
10269  hpux10*|hpux11*)
10270    if test $with_gnu_ld = no; then
10271      case "$host_cpu" in
10272      hppa*64*)
10273	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10274	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10275	hardcode_libdir_separator_CXX=:
10276        ;;
10277      ia64*)
10278	hardcode_libdir_flag_spec_CXX='-L$libdir'
10279        ;;
10280      *)
10281	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10282	hardcode_libdir_separator_CXX=:
10283	export_dynamic_flag_spec_CXX='${wl}-E'
10284        ;;
10285      esac
10286    fi
10287    case "$host_cpu" in
10288    hppa*64*)
10289      hardcode_direct_CXX=no
10290      hardcode_shlibpath_var_CXX=no
10291      ;;
10292    ia64*)
10293      hardcode_direct_CXX=no
10294      hardcode_shlibpath_var_CXX=no
10295      hardcode_minus_L_CXX=yes # Not in the search PATH,
10296					      # but as the default
10297					      # location of the library.
10298      ;;
10299    *)
10300      hardcode_direct_CXX=yes
10301      hardcode_minus_L_CXX=yes # Not in the search PATH,
10302					      # but as the default
10303					      # location of the library.
10304      ;;
10305    esac
10306
10307    case $cc_basename in
10308      CC)
10309	# FIXME: insert proper C++ library support
10310	ld_shlibs_CXX=no
10311	;;
10312      aCC)
10313	case "$host_cpu" in
10314	hppa*64*|ia64*)
10315	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10316	  ;;
10317	*)
10318	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10319	  ;;
10320	esac
10321	# Commands to make compiler produce verbose output that lists
10322	# what "hidden" libraries, object files and flags are used when
10323	# linking a shared library.
10324	#
10325	# There doesn't appear to be a way to prevent this compiler from
10326	# explicitly linking system object files so we need to strip them
10327	# from the output so that they don't get included in the library
10328	# dependencies.
10329	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; echo $list'
10330	;;
10331      *)
10332	if test "$GXX" = yes; then
10333	  if test $with_gnu_ld = no; then
10334	    case "$host_cpu" in
10335	    ia64*|hppa*64*)
10336	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10337	      ;;
10338	    *)
10339	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10340	      ;;
10341	    esac
10342	  fi
10343	else
10344	  # FIXME: insert proper C++ library support
10345	  ld_shlibs_CXX=no
10346	fi
10347	;;
10348    esac
10349    ;;
10350  irix5* | irix6*)
10351    case $cc_basename in
10352      CC)
10353	# SGI C++
10354	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10355
10356	# Archives containing C++ object files must be created using
10357	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10358	# necessary to make sure instantiated templates are included
10359	# in the archive.
10360	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10361	;;
10362      *)
10363	if test "$GXX" = yes; then
10364	  if test "$with_gnu_ld" = no; then
10365	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10366	  else
10367	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10368	  fi
10369	fi
10370	link_all_deplibs_CXX=yes
10371	;;
10372    esac
10373    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10374    hardcode_libdir_separator_CXX=:
10375    ;;
10376  linux*)
10377    case $cc_basename in
10378      KCC)
10379	# Kuck and Associates, Inc. (KAI) C++ Compiler
10380
10381	# KCC will only create a shared library if the output file
10382	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10383	# to its proper name (with version) after linking.
10384	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'
10385	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'
10386	# Commands to make compiler produce verbose output that lists
10387	# what "hidden" libraries, object files and flags are used when
10388	# linking a shared library.
10389	#
10390	# There doesn't appear to be a way to prevent this compiler from
10391	# explicitly linking system object files so we need to strip them
10392	# from the output so that they don't get included in the library
10393	# dependencies.
10394	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; echo $list'
10395
10396	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10397	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10398
10399	# Archives containing C++ object files must be created using
10400	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10401	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10402	;;
10403      icpc)
10404	# Intel C++
10405	with_gnu_ld=yes
10406	archive_cmds_need_lc_CXX=no
10407	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408	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'
10409	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10410	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10412	;;
10413      cxx)
10414	# Compaq C++
10415	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416	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'
10417
10418	runpath_var=LD_RUN_PATH
10419	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10420	hardcode_libdir_separator_CXX=:
10421
10422	# Commands to make compiler produce verbose output that lists
10423	# what "hidden" libraries, object files and flags are used when
10424	# linking a shared library.
10425	#
10426	# There doesn't appear to be a way to prevent this compiler from
10427	# explicitly linking system object files so we need to strip them
10428	# from the output so that they don't get included in the library
10429	# dependencies.
10430	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
10431	;;
10432    esac
10433    ;;
10434  lynxos*)
10435    # FIXME: insert proper C++ library support
10436    ld_shlibs_CXX=no
10437    ;;
10438  m88k*)
10439    # FIXME: insert proper C++ library support
10440    ld_shlibs_CXX=no
10441    ;;
10442  mvs*)
10443    case $cc_basename in
10444      cxx)
10445	# FIXME: insert proper C++ library support
10446	ld_shlibs_CXX=no
10447	;;
10448      *)
10449	# FIXME: insert proper C++ library support
10450	ld_shlibs_CXX=no
10451	;;
10452    esac
10453    ;;
10454  netbsd* | knetbsd*-gnu)
10455    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10456      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10457      wlarc=
10458      hardcode_libdir_flag_spec_CXX='-R$libdir'
10459      hardcode_direct_CXX=yes
10460      hardcode_shlibpath_var_CXX=no
10461    fi
10462    # Workaround some broken pre-1.5 toolchains
10463    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10464    ;;
10465  osf3*)
10466    case $cc_basename in
10467      KCC)
10468	# Kuck and Associates, Inc. (KAI) C++ Compiler
10469
10470	# KCC will only create a shared library if the output file
10471	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10472	# to its proper name (with version) after linking.
10473	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'
10474
10475	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10476	hardcode_libdir_separator_CXX=:
10477
10478	# Archives containing C++ object files must be created using
10479	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10480	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10481
10482	;;
10483      RCC)
10484	# Rational C++ 2.4.1
10485	# FIXME: insert proper C++ library support
10486	ld_shlibs_CXX=no
10487	;;
10488      cxx)
10489	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10490	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10491
10492	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10493	hardcode_libdir_separator_CXX=:
10494
10495	# Commands to make compiler produce verbose output that lists
10496	# what "hidden" libraries, object files and flags are used when
10497	# linking a shared library.
10498	#
10499	# There doesn't appear to be a way to prevent this compiler from
10500	# explicitly linking system object files so we need to strip them
10501	# from the output so that they don't get included in the library
10502	# dependencies.
10503	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10504	;;
10505      *)
10506	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10507	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10508	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10509
10510	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10511	  hardcode_libdir_separator_CXX=:
10512
10513	  # Commands to make compiler produce verbose output that lists
10514	  # what "hidden" libraries, object files and flags are used when
10515	  # linking a shared library.
10516	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10517
10518	else
10519	  # FIXME: insert proper C++ library support
10520	  ld_shlibs_CXX=no
10521	fi
10522	;;
10523    esac
10524    ;;
10525  osf4* | osf5*)
10526    case $cc_basename in
10527      KCC)
10528	# Kuck and Associates, Inc. (KAI) C++ Compiler
10529
10530	# KCC will only create a shared library if the output file
10531	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10532	# to its proper name (with version) after linking.
10533	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'
10534
10535	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10536	hardcode_libdir_separator_CXX=:
10537
10538	# Archives containing C++ object files must be created using
10539	# the KAI C++ compiler.
10540	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10541	;;
10542      RCC)
10543	# Rational C++ 2.4.1
10544	# FIXME: insert proper C++ library support
10545	ld_shlibs_CXX=no
10546	;;
10547      cxx)
10548	allow_undefined_flag_CXX=' -expect_unresolved \*'
10549	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10550	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10551	  echo "-hidden">> $lib.exp~
10552	  $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 $objdir/so_locations -o $lib~
10553	  $rm $lib.exp'
10554
10555	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10556	hardcode_libdir_separator_CXX=:
10557
10558	# Commands to make compiler produce verbose output that lists
10559	# what "hidden" libraries, object files and flags are used when
10560	# linking a shared library.
10561	#
10562	# There doesn't appear to be a way to prevent this compiler from
10563	# explicitly linking system object files so we need to strip them
10564	# from the output so that they don't get included in the library
10565	# dependencies.
10566	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10567	;;
10568      *)
10569	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10570	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10571	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10572
10573	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10574	  hardcode_libdir_separator_CXX=:
10575
10576	  # Commands to make compiler produce verbose output that lists
10577	  # what "hidden" libraries, object files and flags are used when
10578	  # linking a shared library.
10579	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10580
10581	else
10582	  # FIXME: insert proper C++ library support
10583	  ld_shlibs_CXX=no
10584	fi
10585	;;
10586    esac
10587    ;;
10588  psos*)
10589    # FIXME: insert proper C++ library support
10590    ld_shlibs_CXX=no
10591    ;;
10592  sco*)
10593    archive_cmds_need_lc_CXX=no
10594    case $cc_basename in
10595      CC)
10596	# FIXME: insert proper C++ library support
10597	ld_shlibs_CXX=no
10598	;;
10599      *)
10600	# FIXME: insert proper C++ library support
10601	ld_shlibs_CXX=no
10602	;;
10603    esac
10604    ;;
10605  sunos4*)
10606    case $cc_basename in
10607      CC)
10608	# Sun C++ 4.x
10609	# FIXME: insert proper C++ library support
10610	ld_shlibs_CXX=no
10611	;;
10612      lcc)
10613	# Lucid
10614	# FIXME: insert proper C++ library support
10615	ld_shlibs_CXX=no
10616	;;
10617      *)
10618	# FIXME: insert proper C++ library support
10619	ld_shlibs_CXX=no
10620	;;
10621    esac
10622    ;;
10623  solaris*)
10624    case $cc_basename in
10625      CC)
10626	# Sun C++ 4.2, 5.x and Centerline C++
10627	no_undefined_flag_CXX=' -zdefs'
10628	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10629	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10630	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10631
10632	hardcode_libdir_flag_spec_CXX='-R$libdir'
10633	hardcode_shlibpath_var_CXX=no
10634	case $host_os in
10635	  solaris2.0-5 | solaris2.0-5.*) ;;
10636	  *)
10637	    # The C++ compiler is used as linker so we must use $wl
10638	    # flag to pass the commands to the underlying system
10639	    # linker.
10640	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10641	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10642	    ;;
10643	esac
10644	link_all_deplibs_CXX=yes
10645
10646	# Commands to make compiler produce verbose output that lists
10647	# what "hidden" libraries, object files and flags are used when
10648	# linking a shared library.
10649	#
10650	# There doesn't appear to be a way to prevent this compiler from
10651	# explicitly linking system object files so we need to strip them
10652	# from the output so that they don't get included in the library
10653	# dependencies.
10654	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10655
10656	# Archives containing C++ object files must be created using
10657	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10658	# necessary to make sure instantiated templates are included
10659	# in the archive.
10660	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10661	;;
10662      gcx)
10663	# Green Hills C++ Compiler
10664	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10665
10666	# The C++ compiler must be used to create the archive.
10667	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10668	;;
10669      *)
10670	# GNU C++ compiler with Solaris linker
10671	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10672	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10673	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10674	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10675	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10676		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10677
10678	    # Commands to make compiler produce verbose output that lists
10679	    # what "hidden" libraries, object files and flags are used when
10680	    # linking a shared library.
10681	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10682	  else
10683	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10684	    # platform.
10685	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10686	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10687		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10688
10689	    # Commands to make compiler produce verbose output that lists
10690	    # what "hidden" libraries, object files and flags are used when
10691	    # linking a shared library.
10692	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10693	  fi
10694
10695	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10696	fi
10697	;;
10698    esac
10699    ;;
10700  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10701    archive_cmds_need_lc_CXX=no
10702    ;;
10703  tandem*)
10704    case $cc_basename in
10705      NCC)
10706	# NonStop-UX NCC 3.20
10707	# FIXME: insert proper C++ library support
10708	ld_shlibs_CXX=no
10709	;;
10710      *)
10711	# FIXME: insert proper C++ library support
10712	ld_shlibs_CXX=no
10713	;;
10714    esac
10715    ;;
10716  vxworks*)
10717    # FIXME: insert proper C++ library support
10718    ld_shlibs_CXX=no
10719    ;;
10720  *)
10721    # FIXME: insert proper C++ library support
10722    ld_shlibs_CXX=no
10723    ;;
10724esac
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10726$as_echo "$ld_shlibs_CXX" >&6; }
10727test "$ld_shlibs_CXX" = no && can_build_shared=no
10728
10729GCC_CXX="$GXX"
10730LD_CXX="$LD"
10731
10732
10733cat > conftest.$ac_ext <<EOF
10734class Foo
10735{
10736public:
10737  Foo (void) { a = 0; }
10738private:
10739  int a;
10740};
10741EOF
10742
10743if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10744  (eval $ac_compile) 2>&5
10745  ac_status=$?
10746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747  test $ac_status = 0; }; then
10748  # Parse the compiler output and extract the necessary
10749  # objects, libraries and library flags.
10750
10751  # Sentinel used to keep track of whether or not we are before
10752  # the conftest object file.
10753  pre_test_object_deps_done=no
10754
10755  # The `*' in the case matches for architectures that use `case' in
10756  # $output_verbose_cmd can trigger glob expansion during the loop
10757  # eval without this substitution.
10758  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10759
10760  for p in `eval $output_verbose_link_cmd`; do
10761    case $p in
10762
10763    -L* | -R* | -l*)
10764       # Some compilers place space between "-{L,R}" and the path.
10765       # Remove the space.
10766       if test $p = "-L" \
10767	  || test $p = "-R"; then
10768	 prev=$p
10769	 continue
10770       else
10771	 prev=
10772       fi
10773
10774       if test "$pre_test_object_deps_done" = no; then
10775	 case $p in
10776	 -L* | -R*)
10777	   # Internal compiler library paths should come after those
10778	   # provided the user.  The postdeps already come after the
10779	   # user supplied libs so there is no need to process them.
10780	   if test -z "$compiler_lib_search_path_CXX"; then
10781	     compiler_lib_search_path_CXX="${prev}${p}"
10782	   else
10783	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10784	   fi
10785	   ;;
10786	 # The "-l" case would never come before the object being
10787	 # linked, so don't bother handling this case.
10788	 esac
10789       else
10790	 if test -z "$postdeps_CXX"; then
10791	   postdeps_CXX="${prev}${p}"
10792	 else
10793	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10794	 fi
10795       fi
10796       ;;
10797
10798    *.$objext)
10799       # This assumes that the test object file only shows up
10800       # once in the compiler output.
10801       if test "$p" = "conftest.$objext"; then
10802	 pre_test_object_deps_done=yes
10803	 continue
10804       fi
10805
10806       if test "$pre_test_object_deps_done" = no; then
10807	 if test -z "$predep_objects_CXX"; then
10808	   predep_objects_CXX="$p"
10809	 else
10810	   predep_objects_CXX="$predep_objects_CXX $p"
10811	 fi
10812       else
10813	 if test -z "$postdep_objects_CXX"; then
10814	   postdep_objects_CXX="$p"
10815	 else
10816	   postdep_objects_CXX="$postdep_objects_CXX $p"
10817	 fi
10818       fi
10819       ;;
10820
10821    *) ;; # Ignore the rest.
10822
10823    esac
10824  done
10825
10826  # Clean up.
10827  rm -f a.out a.exe
10828else
10829  echo "libtool.m4: error: problem compiling CXX test program"
10830fi
10831
10832$rm -f confest.$objext
10833
10834case " $postdeps_CXX " in
10835*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10836esac
10837
10838lt_prog_compiler_wl_CXX=
10839lt_prog_compiler_pic_CXX=
10840lt_prog_compiler_static_CXX=
10841
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10843$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10844
10845  # C++ specific cases for pic, static, wl, etc.
10846  if test "$GXX" = yes; then
10847    lt_prog_compiler_wl_CXX='-Wl,'
10848    lt_prog_compiler_static_CXX='-static'
10849
10850    case $host_os in
10851    aix*)
10852      # All AIX code is PIC.
10853      if test "$host_cpu" = ia64; then
10854	# AIX 5 now supports IA64 processor
10855	lt_prog_compiler_static_CXX='-Bstatic'
10856      fi
10857      ;;
10858    amigaos*)
10859      # FIXME: we need at least 68020 code to build shared libraries, but
10860      # adding the `-m68020' flag to GCC prevents building anything better,
10861      # like `-m68040'.
10862      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10863      ;;
10864    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10865      # PIC is the default for these OSes.
10866      ;;
10867    mingw* | os2* | pw32*)
10868      # This hack is so that the source file can tell whether it is being
10869      # built for inclusion in a dll (and should export symbols for example).
10870      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10871      ;;
10872    darwin* | rhapsody*)
10873      # PIC is the default on this platform
10874      # Common symbols not allowed in MH_DYLIB files
10875      lt_prog_compiler_pic_CXX='-fno-common'
10876      ;;
10877    *djgpp*)
10878      # DJGPP does not support shared libraries at all
10879      lt_prog_compiler_pic_CXX=
10880      ;;
10881    sysv4*MP*)
10882      if test -d /usr/nec; then
10883	lt_prog_compiler_pic_CXX=-Kconform_pic
10884      fi
10885      ;;
10886    hpux*)
10887      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10888      # not for PA HP-UX.
10889      case "$host_cpu" in
10890      hppa*64*|ia64*)
10891	;;
10892      *)
10893	lt_prog_compiler_pic_CXX='-fPIC'
10894	;;
10895      esac
10896      ;;
10897    *)
10898      lt_prog_compiler_pic_CXX='-fPIC'
10899      ;;
10900    esac
10901  else
10902    case $host_os in
10903      aix4* | aix5*)
10904	# All AIX code is PIC.
10905	if test "$host_cpu" = ia64; then
10906	  # AIX 5 now supports IA64 processor
10907	  lt_prog_compiler_static_CXX='-Bstatic'
10908	else
10909	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10910	fi
10911	;;
10912      chorus*)
10913	case $cc_basename in
10914	cxch68)
10915	  # Green Hills C++ Compiler
10916	  # _LT_AC_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"
10917	  ;;
10918	esac
10919	;;
10920      dgux*)
10921	case $cc_basename in
10922	  ec++)
10923	    lt_prog_compiler_pic_CXX='-KPIC'
10924	    ;;
10925	  ghcx)
10926	    # Green Hills C++ Compiler
10927	    lt_prog_compiler_pic_CXX='-pic'
10928	    ;;
10929	  *)
10930	    ;;
10931	esac
10932	;;
10933      freebsd* | kfreebsd*-gnu)
10934	# FreeBSD uses GNU C++
10935	;;
10936      hpux9* | hpux10* | hpux11*)
10937	case $cc_basename in
10938	  CC)
10939	    lt_prog_compiler_wl_CXX='-Wl,'
10940	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10941	    if test "$host_cpu" != ia64; then
10942	      lt_prog_compiler_pic_CXX='+Z'
10943	    fi
10944	    ;;
10945	  aCC)
10946	    lt_prog_compiler_wl_CXX='-Wl,'
10947	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10948	    case "$host_cpu" in
10949	    hppa*64*|ia64*)
10950	      # +Z the default
10951	      ;;
10952	    *)
10953	      lt_prog_compiler_pic_CXX='+Z'
10954	      ;;
10955	    esac
10956	    ;;
10957	  *)
10958	    ;;
10959	esac
10960	;;
10961      irix5* | irix6* | nonstopux*)
10962	case $cc_basename in
10963	  CC)
10964	    lt_prog_compiler_wl_CXX='-Wl,'
10965	    lt_prog_compiler_static_CXX='-non_shared'
10966	    # CC pic flag -KPIC is the default.
10967	    ;;
10968	  *)
10969	    ;;
10970	esac
10971	;;
10972      linux*)
10973	case $cc_basename in
10974	  KCC)
10975	    # KAI C++ Compiler
10976	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10977	    lt_prog_compiler_pic_CXX='-fPIC'
10978	    ;;
10979	  icpc)
10980	    # Intel C++
10981	    lt_prog_compiler_wl_CXX='-Wl,'
10982	    lt_prog_compiler_pic_CXX='-KPIC'
10983	    lt_prog_compiler_static_CXX='-static'
10984	    ;;
10985	  cxx)
10986	    # Compaq C++
10987	    # Make sure the PIC flag is empty.  It appears that all Alpha
10988	    # Linux and Compaq Tru64 Unix objects are PIC.
10989	    lt_prog_compiler_pic_CXX=
10990	    lt_prog_compiler_static_CXX='-non_shared'
10991	    ;;
10992	  *)
10993	    ;;
10994	esac
10995	;;
10996      lynxos*)
10997	;;
10998      m88k*)
10999	;;
11000      mvs*)
11001	case $cc_basename in
11002	  cxx)
11003	    lt_prog_compiler_pic_CXX='-W c,exportall'
11004	    ;;
11005	  *)
11006	    ;;
11007	esac
11008	;;
11009      netbsd* | knetbsd*-gnu)
11010	;;
11011      osf3* | osf4* | osf5*)
11012	case $cc_basename in
11013	  KCC)
11014	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11015	    ;;
11016	  RCC)
11017	    # Rational C++ 2.4.1
11018	    lt_prog_compiler_pic_CXX='-pic'
11019	    ;;
11020	  cxx)
11021	    # Digital/Compaq C++
11022	    lt_prog_compiler_wl_CXX='-Wl,'
11023	    # Make sure the PIC flag is empty.  It appears that all Alpha
11024	    # Linux and Compaq Tru64 Unix objects are PIC.
11025	    lt_prog_compiler_pic_CXX=
11026	    lt_prog_compiler_static_CXX='-non_shared'
11027	    ;;
11028	  *)
11029	    ;;
11030	esac
11031	;;
11032      psos*)
11033	;;
11034      sco*)
11035	case $cc_basename in
11036	  CC)
11037	    lt_prog_compiler_pic_CXX='-fPIC'
11038	    ;;
11039	  *)
11040	    ;;
11041	esac
11042	;;
11043      solaris*)
11044	case $cc_basename in
11045	  CC)
11046	    # Sun C++ 4.2, 5.x and Centerline C++
11047	    lt_prog_compiler_pic_CXX='-KPIC'
11048	    lt_prog_compiler_static_CXX='-Bstatic'
11049	    lt_prog_compiler_wl_CXX='-Qoption ld '
11050	    ;;
11051	  gcx)
11052	    # Green Hills C++ Compiler
11053	    lt_prog_compiler_pic_CXX='-PIC'
11054	    ;;
11055	  *)
11056	    ;;
11057	esac
11058	;;
11059      sunos4*)
11060	case $cc_basename in
11061	  CC)
11062	    # Sun C++ 4.x
11063	    lt_prog_compiler_pic_CXX='-pic'
11064	    lt_prog_compiler_static_CXX='-Bstatic'
11065	    ;;
11066	  lcc)
11067	    # Lucid
11068	    lt_prog_compiler_pic_CXX='-pic'
11069	    ;;
11070	  *)
11071	    ;;
11072	esac
11073	;;
11074      tandem*)
11075	case $cc_basename in
11076	  NCC)
11077	    # NonStop-UX NCC 3.20
11078	    lt_prog_compiler_pic_CXX='-KPIC'
11079	    ;;
11080	  *)
11081	    ;;
11082	esac
11083	;;
11084      unixware*)
11085	;;
11086      vxworks*)
11087	;;
11088      *)
11089	lt_prog_compiler_can_build_shared_CXX=no
11090	;;
11091    esac
11092  fi
11093
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11095$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11096
11097#
11098# Check to make sure the PIC flag actually works.
11099#
11100if test -n "$lt_prog_compiler_pic_CXX"; then
11101
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11103$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11104if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  lt_prog_compiler_pic_works_CXX=no
11108  ac_outfile=conftest.$ac_objext
11109   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11110   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11111   # Insert the option either (1) after the last *FLAGS variable, or
11112   # (2) before a word containing "conftest.", or (3) at the end.
11113   # Note that $ac_compile itself does not contain backslashes and begins
11114   # with a dollar sign (not a hyphen), so the echo should work correctly.
11115   # The option is referenced via a variable to avoid confusing sed.
11116   lt_compile=`echo "$ac_compile" | $SED \
11117   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11119   -e 's:$: $lt_compiler_flag:'`
11120   (eval echo "\"\$as_me:11120: $lt_compile\"" >&5)
11121   (eval "$lt_compile" 2>conftest.err)
11122   ac_status=$?
11123   cat conftest.err >&5
11124   echo "$as_me:11124: \$? = $ac_status" >&5
11125   if (exit $ac_status) && test -s "$ac_outfile"; then
11126     # The compiler can only warn and ignore the option if not recognized
11127     # So say no if there are warnings
11128     if test ! -s conftest.err; then
11129       lt_prog_compiler_pic_works_CXX=yes
11130     fi
11131   fi
11132   $rm conftest*
11133
11134fi
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11136$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11137
11138if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11139    case $lt_prog_compiler_pic_CXX in
11140     "" | " "*) ;;
11141     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11142     esac
11143else
11144    lt_prog_compiler_pic_CXX=
11145     lt_prog_compiler_can_build_shared_CXX=no
11146fi
11147
11148fi
11149case "$host_os" in
11150  # For platforms which do not support PIC, -DPIC is meaningless:
11151  *djgpp*)
11152    lt_prog_compiler_pic_CXX=
11153    ;;
11154  *)
11155    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11156    ;;
11157esac
11158
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11161if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164  lt_cv_prog_compiler_c_o_CXX=no
11165   $rm -r conftest 2>/dev/null
11166   mkdir conftest
11167   cd conftest
11168   mkdir out
11169   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11170
11171   lt_compiler_flag="-o out/conftest2.$ac_objext"
11172   # Insert the option either (1) after the last *FLAGS variable, or
11173   # (2) before a word containing "conftest.", or (3) at the end.
11174   # Note that $ac_compile itself does not contain backslashes and begins
11175   # with a dollar sign (not a hyphen), so the echo should work correctly.
11176   lt_compile=`echo "$ac_compile" | $SED \
11177   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11178   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11179   -e 's:$: $lt_compiler_flag:'`
11180   (eval echo "\"\$as_me:11180: $lt_compile\"" >&5)
11181   (eval "$lt_compile" 2>out/conftest.err)
11182   ac_status=$?
11183   cat out/conftest.err >&5
11184   echo "$as_me:11184: \$? = $ac_status" >&5
11185   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11186   then
11187     # The compiler can only warn and ignore the option if not recognized
11188     # So say no if there are warnings
11189     if test ! -s out/conftest.err; then
11190       lt_cv_prog_compiler_c_o_CXX=yes
11191     fi
11192   fi
11193   chmod u+w .
11194   $rm conftest*
11195   # SGI C++ compiler will create directory out/ii_files/ for
11196   # template instantiation
11197   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11198   $rm out/* && rmdir out
11199   cd ..
11200   rmdir conftest
11201   $rm conftest*
11202
11203fi
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11205$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11206
11207
11208hard_links="nottested"
11209if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11210  # do not overwrite the value of need_locks provided by the user
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11212$as_echo_n "checking if we can lock with hard links... " >&6; }
11213  hard_links=yes
11214  $rm conftest*
11215  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11216  touch conftest.a
11217  ln conftest.a conftest.b 2>&5 || hard_links=no
11218  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11220$as_echo "$hard_links" >&6; }
11221  if test "$hard_links" = no; then
11222    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11223$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11224    need_locks=warn
11225  fi
11226else
11227  need_locks=no
11228fi
11229
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11232
11233  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11234  case $host_os in
11235  aix4* | aix5*)
11236    # If we're using GNU nm, then we don't want the "-C" option.
11237    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11238    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11239      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11240    else
11241      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'
11242    fi
11243    ;;
11244  pw32*)
11245    export_symbols_cmds_CXX="$ltdll_cmds"
11246  ;;
11247  cygwin* | mingw*)
11248    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11249  ;;
11250  *)
11251    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11252  ;;
11253  esac
11254
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11256$as_echo "$ld_shlibs_CXX" >&6; }
11257test "$ld_shlibs_CXX" = no && can_build_shared=no
11258
11259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11260if test "$GCC" = yes; then
11261  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11262fi
11263
11264#
11265# Do we need to explicitly link libc?
11266#
11267case "x$archive_cmds_need_lc_CXX" in
11268x|xyes)
11269  # Assume -lc should be added
11270  archive_cmds_need_lc_CXX=yes
11271
11272  if test "$enable_shared" = yes && test "$GCC" = yes; then
11273    case $archive_cmds_CXX in
11274    *'~'*)
11275      # FIXME: we may have to deal with multi-command sequences.
11276      ;;
11277    '$CC '*)
11278      # Test whether the compiler implicitly links with -lc since on some
11279      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11280      # to ld, don't add -lc before -lgcc.
11281      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11282$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11283      $rm conftest*
11284      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11285
11286      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11287  (eval $ac_compile) 2>&5
11288  ac_status=$?
11289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290  test $ac_status = 0; } 2>conftest.err; then
11291        soname=conftest
11292        lib=conftest
11293        libobjs=conftest.$ac_objext
11294        deplibs=
11295        wl=$lt_prog_compiler_wl_CXX
11296        compiler_flags=-v
11297        linker_flags=-v
11298        verstring=
11299        output_objdir=.
11300        libname=conftest
11301        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11302        allow_undefined_flag_CXX=
11303        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11304  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11305  ac_status=$?
11306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307  test $ac_status = 0; }
11308        then
11309	  archive_cmds_need_lc_CXX=no
11310        else
11311	  archive_cmds_need_lc_CXX=yes
11312        fi
11313        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11314      else
11315        cat conftest.err 1>&5
11316      fi
11317      $rm conftest*
11318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11319$as_echo "$archive_cmds_need_lc_CXX" >&6; }
11320      ;;
11321    esac
11322  fi
11323  ;;
11324esac
11325
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327$as_echo_n "checking dynamic linker characteristics... " >&6; }
11328library_names_spec=
11329libname_spec='lib$name'
11330soname_spec=
11331shrext=".so"
11332postinstall_cmds=
11333postuninstall_cmds=
11334finish_cmds=
11335finish_eval=
11336shlibpath_var=
11337shlibpath_overrides_runpath=unknown
11338version_type=none
11339dynamic_linker="$host_os ld.so"
11340sys_lib_dlsearch_path_spec="/lib /usr/lib"
11341if test "$GCC" = yes; then
11342  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11343  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11344    # if the path contains ";" then we assume it to be the separator
11345    # otherwise default to the standard path separator (i.e. ":") - it is
11346    # assumed that no part of a normal pathname contains ";" but that should
11347    # okay in the real world where ";" in dirpaths is itself problematic.
11348    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11349  else
11350    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11351  fi
11352else
11353  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11354fi
11355need_lib_prefix=unknown
11356hardcode_into_libs=no
11357
11358# when you set need_version to no, make sure it does not cause -set_version
11359# flags to be left without arguments
11360need_version=unknown
11361
11362case $host_os in
11363aix3*)
11364  version_type=linux
11365  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11366  shlibpath_var=LIBPATH
11367
11368  # AIX 3 has no versioning support, so we append a major version to the name.
11369  soname_spec='${libname}${release}${shared_ext}$major'
11370  ;;
11371
11372aix4* | aix5*)
11373  version_type=linux
11374  need_lib_prefix=no
11375  need_version=no
11376  hardcode_into_libs=yes
11377  if test "$host_cpu" = ia64; then
11378    # AIX 5 supports IA64
11379    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11380    shlibpath_var=LD_LIBRARY_PATH
11381  else
11382    # With GCC up to 2.95.x, collect2 would create an import file
11383    # for dependence libraries.  The import file would start with
11384    # the line `#! .'.  This would cause the generated library to
11385    # depend on `.', always an invalid library.  This was fixed in
11386    # development snapshots of GCC prior to 3.0.
11387    case $host_os in
11388      aix4 | aix4.[01] | aix4.[01].*)
11389      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11390	   echo ' yes '
11391	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11392	:
11393      else
11394	can_build_shared=no
11395      fi
11396      ;;
11397    esac
11398    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11399    # soname into executable. Probably we can add versioning support to
11400    # collect2, so additional links can be useful in future.
11401    if test "$aix_use_runtimelinking" = yes; then
11402      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11403      # instead of lib<name>.a to let people know that these are not
11404      # typical AIX shared libraries.
11405      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406    else
11407      # We preserve .a as extension for shared libraries through AIX4.2
11408      # and later when we are not doing run time linking.
11409      library_names_spec='${libname}${release}.a $libname.a'
11410      soname_spec='${libname}${release}${shared_ext}$major'
11411    fi
11412    shlibpath_var=LIBPATH
11413  fi
11414  ;;
11415
11416amigaos*)
11417  library_names_spec='$libname.ixlibrary $libname.a'
11418  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11419  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
11420  ;;
11421
11422beos*)
11423  library_names_spec='${libname}${shared_ext}'
11424  dynamic_linker="$host_os ld.so"
11425  shlibpath_var=LIBRARY_PATH
11426  ;;
11427
11428bsdi4*)
11429  version_type=linux
11430  need_version=no
11431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432  soname_spec='${libname}${release}${shared_ext}$major'
11433  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11434  shlibpath_var=LD_LIBRARY_PATH
11435  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11436  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11437  # the default ld.so.conf also contains /usr/contrib/lib and
11438  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11439  # libtool to hard-code these into programs
11440  ;;
11441
11442cygwin* | mingw* | pw32*)
11443  version_type=windows
11444  shrext=".dll"
11445  need_version=no
11446  need_lib_prefix=no
11447
11448  case $GCC,$host_os in
11449  yes,cygwin* | yes,mingw* | yes,pw32*)
11450    library_names_spec='$libname.dll.a'
11451    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11452    postinstall_cmds='base_file=`basename \${file}`~
11453      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11454      dldir=$destdir/`dirname \$dlpath`~
11455      test -d \$dldir || mkdir -p \$dldir~
11456      $install_prog $dir/$dlname \$dldir/$dlname'
11457    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11458      dlpath=$dir/\$dldll~
11459       $rm \$dlpath'
11460    shlibpath_overrides_runpath=yes
11461
11462    case $host_os in
11463    cygwin*)
11464      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11465      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11466      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11467      ;;
11468    mingw*)
11469      # MinGW DLLs use traditional 'lib' prefix
11470      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11472      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11473        # It is most probably a Windows format PATH printed by
11474        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11475        # path with ; separators, and with drive letters. We can handle the
11476        # drive letters (cygwin fileutils understands them), so leave them,
11477        # especially as we might pass files found there to a mingw objdump,
11478        # which wouldn't understand a cygwinified path. Ahh.
11479        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11480      else
11481        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11482      fi
11483      ;;
11484    pw32*)
11485      # pw32 DLLs use 'pw' prefix rather than 'lib'
11486      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11487      ;;
11488    esac
11489    ;;
11490
11491  *)
11492    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11493    ;;
11494  esac
11495  dynamic_linker='Win32 ld.exe'
11496  # FIXME: first we should search . and the directory the executable is in
11497  shlibpath_var=PATH
11498  ;;
11499
11500darwin* | rhapsody*)
11501  dynamic_linker="$host_os dyld"
11502  version_type=darwin
11503  need_lib_prefix=no
11504  need_version=no
11505  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11506  soname_spec='${libname}${release}${major}$shared_ext'
11507  shlibpath_overrides_runpath=yes
11508  shlibpath_var=DYLD_LIBRARY_PATH
11509  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11510  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11511  if test "$GCC" = yes; then
11512    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11513  else
11514    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11515  fi
11516  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11517  ;;
11518
11519dgux*)
11520  version_type=linux
11521  need_lib_prefix=no
11522  need_version=no
11523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11524  soname_spec='${libname}${release}${shared_ext}$major'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  ;;
11527
11528freebsd1*)
11529  dynamic_linker=no
11530  ;;
11531
11532kfreebsd*-gnu)
11533  version_type=linux
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11537  soname_spec='${libname}${release}${shared_ext}$major'
11538  shlibpath_var=LD_LIBRARY_PATH
11539  shlibpath_overrides_runpath=no
11540  hardcode_into_libs=yes
11541  dynamic_linker='GNU ld.so'
11542  ;;
11543
11544freebsd*)
11545  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11546  version_type=freebsd-$objformat
11547  case $version_type in
11548    freebsd-elf*)
11549      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11550      need_version=no
11551      need_lib_prefix=no
11552      ;;
11553    freebsd-*)
11554      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11555      need_version=yes
11556      ;;
11557  esac
11558  shlibpath_var=LD_LIBRARY_PATH
11559  case $host_os in
11560  freebsd2*)
11561    shlibpath_overrides_runpath=yes
11562    ;;
11563  freebsd3.01* | freebsdelf3.01*)
11564    shlibpath_overrides_runpath=yes
11565    hardcode_into_libs=yes
11566    ;;
11567  *) # from 3.2 on
11568    shlibpath_overrides_runpath=no
11569    hardcode_into_libs=yes
11570    ;;
11571  esac
11572  ;;
11573
11574gnu*)
11575  version_type=linux
11576  need_lib_prefix=no
11577  need_version=no
11578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11579  soname_spec='${libname}${release}${shared_ext}$major'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  hardcode_into_libs=yes
11582  ;;
11583
11584hpux9* | hpux10* | hpux11*)
11585  # Give a soname corresponding to the major version so that dld.sl refuses to
11586  # link against other versions.
11587  version_type=sunos
11588  need_lib_prefix=no
11589  need_version=no
11590  case "$host_cpu" in
11591  ia64*)
11592    shrext='.so'
11593    hardcode_into_libs=yes
11594    dynamic_linker="$host_os dld.so"
11595    shlibpath_var=LD_LIBRARY_PATH
11596    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598    soname_spec='${libname}${release}${shared_ext}$major'
11599    if test "X$HPUX_IA64_MODE" = X32; then
11600      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11601    else
11602      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11603    fi
11604    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11605    ;;
11606   hppa*64*)
11607     shrext='.sl'
11608     hardcode_into_libs=yes
11609     dynamic_linker="$host_os dld.sl"
11610     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613     soname_spec='${libname}${release}${shared_ext}$major'
11614     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11616     ;;
11617   *)
11618    shrext='.sl'
11619    dynamic_linker="$host_os dld.sl"
11620    shlibpath_var=SHLIB_PATH
11621    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623    soname_spec='${libname}${release}${shared_ext}$major'
11624    ;;
11625  esac
11626  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11627  postinstall_cmds='chmod 555 $lib'
11628  ;;
11629
11630irix5* | irix6* | nonstopux*)
11631  case $host_os in
11632    nonstopux*) version_type=nonstopux ;;
11633    *)
11634	if test "$lt_cv_prog_gnu_ld" = yes; then
11635		version_type=linux
11636	else
11637		version_type=irix
11638	fi ;;
11639  esac
11640  need_lib_prefix=no
11641  need_version=no
11642  soname_spec='${libname}${release}${shared_ext}$major'
11643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11644  case $host_os in
11645  irix5* | nonstopux*)
11646    libsuff= shlibsuff=
11647    ;;
11648  *)
11649    case $LD in # libtool.m4 will add one of these switches to LD
11650    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11651      libsuff= shlibsuff= libmagic=32-bit;;
11652    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11653      libsuff=32 shlibsuff=N32 libmagic=N32;;
11654    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11655      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11656    *) libsuff= shlibsuff= libmagic=never-match;;
11657    esac
11658    ;;
11659  esac
11660  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11661  shlibpath_overrides_runpath=no
11662  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11663  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11664  hardcode_into_libs=yes
11665  ;;
11666
11667# No shared lib support for Linux oldld, aout, or coff.
11668linux*oldld* | linux*aout* | linux*coff*)
11669  dynamic_linker=no
11670  ;;
11671
11672# This must be Linux ELF.
11673linux*)
11674  version_type=linux
11675  need_lib_prefix=no
11676  need_version=no
11677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678  soname_spec='${libname}${release}${shared_ext}$major'
11679  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11680  shlibpath_var=LD_LIBRARY_PATH
11681  shlibpath_overrides_runpath=no
11682  # This implies no fast_install, which is unacceptable.
11683  # Some rework will be needed to allow for fast_install
11684  # before this can be enabled.
11685  hardcode_into_libs=yes
11686
11687  # Append ld.so.conf contents to the search path
11688  if test -f /etc/ld.so.conf; then
11689    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11690    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11691  fi
11692
11693  # We used to test for /lib/ld.so.1 and disable shared libraries on
11694  # powerpc, because MkLinux only supported shared libraries with the
11695  # GNU dynamic linker.  Since this was broken with cross compilers,
11696  # most powerpc-linux boxes support dynamic linking these days and
11697  # people can always --disable-shared, the test was removed, and we
11698  # assume the GNU/Linux dynamic linker is in use.
11699  dynamic_linker='GNU/Linux ld.so'
11700  ;;
11701
11702knetbsd*-gnu)
11703  version_type=linux
11704  need_lib_prefix=no
11705  need_version=no
11706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707  soname_spec='${libname}${release}${shared_ext}$major'
11708  shlibpath_var=LD_LIBRARY_PATH
11709  shlibpath_overrides_runpath=no
11710  hardcode_into_libs=yes
11711  dynamic_linker='GNU ld.so'
11712  ;;
11713
11714netbsd*)
11715  version_type=sunos
11716  need_lib_prefix=no
11717  need_version=no
11718  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11719    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11720    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721    dynamic_linker='NetBSD (a.out) ld.so'
11722  else
11723    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11724    soname_spec='${libname}${release}${shared_ext}$major'
11725    dynamic_linker='NetBSD ld.elf_so'
11726  fi
11727  shlibpath_var=LD_LIBRARY_PATH
11728  shlibpath_overrides_runpath=yes
11729  hardcode_into_libs=yes
11730  ;;
11731
11732newsos6)
11733  version_type=linux
11734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735  shlibpath_var=LD_LIBRARY_PATH
11736  shlibpath_overrides_runpath=yes
11737  ;;
11738
11739nto-qnx*)
11740  version_type=linux
11741  need_lib_prefix=no
11742  need_version=no
11743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744  soname_spec='${libname}${release}${shared_ext}$major'
11745  shlibpath_var=LD_LIBRARY_PATH
11746  shlibpath_overrides_runpath=yes
11747  ;;
11748
11749openbsd*)
11750  version_type=sunos
11751  need_lib_prefix=no
11752  need_version=yes
11753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11755  shlibpath_var=LD_LIBRARY_PATH
11756  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11757    case $host_os in
11758      openbsd2.[89] | openbsd2.[89].*)
11759	shlibpath_overrides_runpath=no
11760	;;
11761      *)
11762	shlibpath_overrides_runpath=yes
11763	;;
11764      esac
11765  else
11766    shlibpath_overrides_runpath=yes
11767  fi
11768  ;;
11769
11770os2*)
11771  libname_spec='$name'
11772  shrext=".dll"
11773  need_lib_prefix=no
11774  library_names_spec='$libname${shared_ext} $libname.a'
11775  dynamic_linker='OS/2 ld.exe'
11776  shlibpath_var=LIBPATH
11777  ;;
11778
11779osf3* | osf4* | osf5*)
11780  version_type=osf
11781  need_lib_prefix=no
11782  need_version=no
11783  soname_spec='${libname}${release}${shared_ext}$major'
11784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11787  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11788  ;;
11789
11790sco3.2v5*)
11791  version_type=osf
11792  soname_spec='${libname}${release}${shared_ext}$major'
11793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794  shlibpath_var=LD_LIBRARY_PATH
11795  ;;
11796
11797solaris*)
11798  version_type=linux
11799  need_lib_prefix=no
11800  need_version=no
11801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802  soname_spec='${libname}${release}${shared_ext}$major'
11803  shlibpath_var=LD_LIBRARY_PATH
11804  shlibpath_overrides_runpath=yes
11805  hardcode_into_libs=yes
11806  # ldd complains unless libraries are executable
11807  postinstall_cmds='chmod +x $lib'
11808  ;;
11809
11810sunos4*)
11811  version_type=sunos
11812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11813  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11814  shlibpath_var=LD_LIBRARY_PATH
11815  shlibpath_overrides_runpath=yes
11816  if test "$with_gnu_ld" = yes; then
11817    need_lib_prefix=no
11818  fi
11819  need_version=yes
11820  ;;
11821
11822sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11823  version_type=linux
11824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825  soname_spec='${libname}${release}${shared_ext}$major'
11826  shlibpath_var=LD_LIBRARY_PATH
11827  case $host_vendor in
11828    sni)
11829      shlibpath_overrides_runpath=no
11830      need_lib_prefix=no
11831      export_dynamic_flag_spec='${wl}-Blargedynsym'
11832      runpath_var=LD_RUN_PATH
11833      ;;
11834    siemens)
11835      need_lib_prefix=no
11836      ;;
11837    motorola)
11838      need_lib_prefix=no
11839      need_version=no
11840      shlibpath_overrides_runpath=no
11841      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11842      ;;
11843  esac
11844  ;;
11845
11846sysv4*MP*)
11847  if test -d /usr/nec ;then
11848    version_type=linux
11849    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11850    soname_spec='$libname${shared_ext}.$major'
11851    shlibpath_var=LD_LIBRARY_PATH
11852  fi
11853  ;;
11854
11855uts4*)
11856  version_type=linux
11857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858  soname_spec='${libname}${release}${shared_ext}$major'
11859  shlibpath_var=LD_LIBRARY_PATH
11860  ;;
11861
11862*)
11863  dynamic_linker=no
11864  ;;
11865esac
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11867$as_echo "$dynamic_linker" >&6; }
11868test "$dynamic_linker" = no && can_build_shared=no
11869
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11871$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11872hardcode_action_CXX=
11873if test -n "$hardcode_libdir_flag_spec_CXX" || \
11874   test -n "$runpath_var CXX" || \
11875   test "X$hardcode_automatic_CXX"="Xyes" ; then
11876
11877  # We can hardcode non-existant directories.
11878  if test "$hardcode_direct_CXX" != no &&
11879     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11880     # have to relink, otherwise we might link with an installed library
11881     # when we should be linking with a yet-to-be-installed one
11882     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11883     test "$hardcode_minus_L_CXX" != no; then
11884    # Linking always hardcodes the temporary library directory.
11885    hardcode_action_CXX=relink
11886  else
11887    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11888    hardcode_action_CXX=immediate
11889  fi
11890else
11891  # We cannot hardcode anything, or else we can only hardcode existing
11892  # directories.
11893  hardcode_action_CXX=unsupported
11894fi
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11896$as_echo "$hardcode_action_CXX" >&6; }
11897
11898if test "$hardcode_action_CXX" = relink; then
11899  # Fast installation is not supported
11900  enable_fast_install=no
11901elif test "$shlibpath_overrides_runpath" = yes ||
11902     test "$enable_shared" = no; then
11903  # Fast installation is not necessary
11904  enable_fast_install=needless
11905fi
11906
11907striplib=
11908old_striplib=
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11910$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11911if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11912  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11913  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915$as_echo "yes" >&6; }
11916else
11917# FIXME - insert some real tests, host_os isn't really good enough
11918  case $host_os in
11919   darwin*)
11920       if test -n "$STRIP" ; then
11921         striplib="$STRIP -x"
11922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923$as_echo "yes" >&6; }
11924       else
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
11927fi
11928       ;;
11929   *)
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931$as_echo "no" >&6; }
11932    ;;
11933  esac
11934fi
11935
11936if test "x$enable_dlopen" != xyes; then
11937  enable_dlopen=unknown
11938  enable_dlopen_self=unknown
11939  enable_dlopen_self_static=unknown
11940else
11941  lt_cv_dlopen=no
11942  lt_cv_dlopen_libs=
11943
11944  case $host_os in
11945  beos*)
11946    lt_cv_dlopen="load_add_on"
11947    lt_cv_dlopen_libs=
11948    lt_cv_dlopen_self=yes
11949    ;;
11950
11951  mingw* | pw32*)
11952    lt_cv_dlopen="LoadLibrary"
11953    lt_cv_dlopen_libs=
11954   ;;
11955
11956  cygwin*)
11957    lt_cv_dlopen="dlopen"
11958    lt_cv_dlopen_libs=
11959   ;;
11960
11961  darwin*)
11962  # if libdl is installed we need to link against it
11963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11964$as_echo_n "checking for dlopen in -ldl... " >&6; }
11965if ${ac_cv_lib_dl_dlopen+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  ac_check_lib_save_LIBS=$LIBS
11969LIBS="-ldl  $LIBS"
11970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971/* end confdefs.h.  */
11972
11973/* Override any GCC internal prototype to avoid an error.
11974   Use char because int might match the return type of a GCC
11975   builtin and then its argument prototype would still apply.  */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char dlopen ();
11980int
11981main ()
11982{
11983return dlopen ();
11984  ;
11985  return 0;
11986}
11987_ACEOF
11988if ac_fn_cxx_try_link "$LINENO"; then :
11989  ac_cv_lib_dl_dlopen=yes
11990else
11991  ac_cv_lib_dl_dlopen=no
11992fi
11993rm -f core conftest.err conftest.$ac_objext \
11994    conftest$ac_exeext conftest.$ac_ext
11995LIBS=$ac_check_lib_save_LIBS
11996fi
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11998$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11999if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12000  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12001else
12002
12003    lt_cv_dlopen="dyld"
12004    lt_cv_dlopen_libs=
12005    lt_cv_dlopen_self=yes
12006
12007fi
12008
12009   ;;
12010
12011  *)
12012    ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12013if test "x$ac_cv_func_shl_load" = xyes; then :
12014  lt_cv_dlopen="shl_load"
12015else
12016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12017$as_echo_n "checking for shl_load in -ldld... " >&6; }
12018if ${ac_cv_lib_dld_shl_load+:} false; then :
12019  $as_echo_n "(cached) " >&6
12020else
12021  ac_check_lib_save_LIBS=$LIBS
12022LIBS="-ldld  $LIBS"
12023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024/* end confdefs.h.  */
12025
12026/* Override any GCC internal prototype to avoid an error.
12027   Use char because int might match the return type of a GCC
12028   builtin and then its argument prototype would still apply.  */
12029#ifdef __cplusplus
12030extern "C"
12031#endif
12032char shl_load ();
12033int
12034main ()
12035{
12036return shl_load ();
12037  ;
12038  return 0;
12039}
12040_ACEOF
12041if ac_fn_cxx_try_link "$LINENO"; then :
12042  ac_cv_lib_dld_shl_load=yes
12043else
12044  ac_cv_lib_dld_shl_load=no
12045fi
12046rm -f core conftest.err conftest.$ac_objext \
12047    conftest$ac_exeext conftest.$ac_ext
12048LIBS=$ac_check_lib_save_LIBS
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12051$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12052if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12053  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12054else
12055  ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12056if test "x$ac_cv_func_dlopen" = xyes; then :
12057  lt_cv_dlopen="dlopen"
12058else
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12060$as_echo_n "checking for dlopen in -ldl... " >&6; }
12061if ${ac_cv_lib_dl_dlopen+:} false; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  ac_check_lib_save_LIBS=$LIBS
12065LIBS="-ldl  $LIBS"
12066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h.  */
12068
12069/* Override any GCC internal prototype to avoid an error.
12070   Use char because int might match the return type of a GCC
12071   builtin and then its argument prototype would still apply.  */
12072#ifdef __cplusplus
12073extern "C"
12074#endif
12075char dlopen ();
12076int
12077main ()
12078{
12079return dlopen ();
12080  ;
12081  return 0;
12082}
12083_ACEOF
12084if ac_fn_cxx_try_link "$LINENO"; then :
12085  ac_cv_lib_dl_dlopen=yes
12086else
12087  ac_cv_lib_dl_dlopen=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext \
12090    conftest$ac_exeext conftest.$ac_ext
12091LIBS=$ac_check_lib_save_LIBS
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12094$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12095if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12096  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12097else
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12099$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12100if ${ac_cv_lib_svld_dlopen+:} false; then :
12101  $as_echo_n "(cached) " >&6
12102else
12103  ac_check_lib_save_LIBS=$LIBS
12104LIBS="-lsvld  $LIBS"
12105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106/* end confdefs.h.  */
12107
12108/* Override any GCC internal prototype to avoid an error.
12109   Use char because int might match the return type of a GCC
12110   builtin and then its argument prototype would still apply.  */
12111#ifdef __cplusplus
12112extern "C"
12113#endif
12114char dlopen ();
12115int
12116main ()
12117{
12118return dlopen ();
12119  ;
12120  return 0;
12121}
12122_ACEOF
12123if ac_fn_cxx_try_link "$LINENO"; then :
12124  ac_cv_lib_svld_dlopen=yes
12125else
12126  ac_cv_lib_svld_dlopen=no
12127fi
12128rm -f core conftest.err conftest.$ac_objext \
12129    conftest$ac_exeext conftest.$ac_ext
12130LIBS=$ac_check_lib_save_LIBS
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12133$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12134if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12135  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12136else
12137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12138$as_echo_n "checking for dld_link in -ldld... " >&6; }
12139if ${ac_cv_lib_dld_dld_link+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  ac_check_lib_save_LIBS=$LIBS
12143LIBS="-ldld  $LIBS"
12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h.  */
12146
12147/* Override any GCC internal prototype to avoid an error.
12148   Use char because int might match the return type of a GCC
12149   builtin and then its argument prototype would still apply.  */
12150#ifdef __cplusplus
12151extern "C"
12152#endif
12153char dld_link ();
12154int
12155main ()
12156{
12157return dld_link ();
12158  ;
12159  return 0;
12160}
12161_ACEOF
12162if ac_fn_cxx_try_link "$LINENO"; then :
12163  ac_cv_lib_dld_dld_link=yes
12164else
12165  ac_cv_lib_dld_dld_link=no
12166fi
12167rm -f core conftest.err conftest.$ac_objext \
12168    conftest$ac_exeext conftest.$ac_ext
12169LIBS=$ac_check_lib_save_LIBS
12170fi
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12172$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12173if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12174  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12175fi
12176
12177
12178fi
12179
12180
12181fi
12182
12183
12184fi
12185
12186
12187fi
12188
12189
12190fi
12191
12192    ;;
12193  esac
12194
12195  if test "x$lt_cv_dlopen" != xno; then
12196    enable_dlopen=yes
12197  else
12198    enable_dlopen=no
12199  fi
12200
12201  case $lt_cv_dlopen in
12202  dlopen)
12203    save_CPPFLAGS="$CPPFLAGS"
12204    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12205
12206    save_LDFLAGS="$LDFLAGS"
12207    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12208
12209    save_LIBS="$LIBS"
12210    LIBS="$lt_cv_dlopen_libs $LIBS"
12211
12212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12213$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12214if ${lt_cv_dlopen_self+:} false; then :
12215  $as_echo_n "(cached) " >&6
12216else
12217  	  if test "$cross_compiling" = yes; then :
12218  lt_cv_dlopen_self=cross
12219else
12220  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221  lt_status=$lt_dlunknown
12222  cat > conftest.$ac_ext <<EOF
12223#line 12223 "configure"
12224#include "confdefs.h"
12225
12226#if HAVE_DLFCN_H
12227#include <dlfcn.h>
12228#endif
12229
12230#include <stdio.h>
12231
12232#ifdef RTLD_GLOBAL
12233#  define LT_DLGLOBAL		RTLD_GLOBAL
12234#else
12235#  ifdef DL_GLOBAL
12236#    define LT_DLGLOBAL		DL_GLOBAL
12237#  else
12238#    define LT_DLGLOBAL		0
12239#  endif
12240#endif
12241
12242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243   find out it does not work in some platform. */
12244#ifndef LT_DLLAZY_OR_NOW
12245#  ifdef RTLD_LAZY
12246#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12247#  else
12248#    ifdef DL_LAZY
12249#      define LT_DLLAZY_OR_NOW		DL_LAZY
12250#    else
12251#      ifdef RTLD_NOW
12252#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12253#      else
12254#        ifdef DL_NOW
12255#          define LT_DLLAZY_OR_NOW	DL_NOW
12256#        else
12257#          define LT_DLLAZY_OR_NOW	0
12258#        endif
12259#      endif
12260#    endif
12261#  endif
12262#endif
12263
12264#ifdef __cplusplus
12265extern "C" void exit (int);
12266#endif
12267
12268void fnord() { int i=42;}
12269int main ()
12270{
12271  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272  int status = $lt_dlunknown;
12273
12274  if (self)
12275    {
12276      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12277      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278      /* dlclose (self); */
12279    }
12280
12281    exit (status);
12282}
12283EOF
12284  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12285  (eval $ac_link) 2>&5
12286  ac_status=$?
12287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12289    (./conftest; exit; ) 2>/dev/null
12290    lt_status=$?
12291    case x$lt_status in
12292      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12293      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12294      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12295    esac
12296  else :
12297    # compilation failed
12298    lt_cv_dlopen_self=no
12299  fi
12300fi
12301rm -fr conftest*
12302
12303
12304fi
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12306$as_echo "$lt_cv_dlopen_self" >&6; }
12307
12308    if test "x$lt_cv_dlopen_self" = xyes; then
12309      LDFLAGS="$LDFLAGS $link_static_flag"
12310      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12311$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12312if ${lt_cv_dlopen_self_static+:} false; then :
12313  $as_echo_n "(cached) " >&6
12314else
12315  	  if test "$cross_compiling" = yes; then :
12316  lt_cv_dlopen_self_static=cross
12317else
12318  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319  lt_status=$lt_dlunknown
12320  cat > conftest.$ac_ext <<EOF
12321#line 12321 "configure"
12322#include "confdefs.h"
12323
12324#if HAVE_DLFCN_H
12325#include <dlfcn.h>
12326#endif
12327
12328#include <stdio.h>
12329
12330#ifdef RTLD_GLOBAL
12331#  define LT_DLGLOBAL		RTLD_GLOBAL
12332#else
12333#  ifdef DL_GLOBAL
12334#    define LT_DLGLOBAL		DL_GLOBAL
12335#  else
12336#    define LT_DLGLOBAL		0
12337#  endif
12338#endif
12339
12340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341   find out it does not work in some platform. */
12342#ifndef LT_DLLAZY_OR_NOW
12343#  ifdef RTLD_LAZY
12344#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12345#  else
12346#    ifdef DL_LAZY
12347#      define LT_DLLAZY_OR_NOW		DL_LAZY
12348#    else
12349#      ifdef RTLD_NOW
12350#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12351#      else
12352#        ifdef DL_NOW
12353#          define LT_DLLAZY_OR_NOW	DL_NOW
12354#        else
12355#          define LT_DLLAZY_OR_NOW	0
12356#        endif
12357#      endif
12358#    endif
12359#  endif
12360#endif
12361
12362#ifdef __cplusplus
12363extern "C" void exit (int);
12364#endif
12365
12366void fnord() { int i=42;}
12367int main ()
12368{
12369  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370  int status = $lt_dlunknown;
12371
12372  if (self)
12373    {
12374      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12375      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12376      /* dlclose (self); */
12377    }
12378
12379    exit (status);
12380}
12381EOF
12382  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12383  (eval $ac_link) 2>&5
12384  ac_status=$?
12385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12387    (./conftest; exit; ) 2>/dev/null
12388    lt_status=$?
12389    case x$lt_status in
12390      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12391      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12392      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12393    esac
12394  else :
12395    # compilation failed
12396    lt_cv_dlopen_self_static=no
12397  fi
12398fi
12399rm -fr conftest*
12400
12401
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12404$as_echo "$lt_cv_dlopen_self_static" >&6; }
12405    fi
12406
12407    CPPFLAGS="$save_CPPFLAGS"
12408    LDFLAGS="$save_LDFLAGS"
12409    LIBS="$save_LIBS"
12410    ;;
12411  esac
12412
12413  case $lt_cv_dlopen_self in
12414  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12415  *) enable_dlopen_self=unknown ;;
12416  esac
12417
12418  case $lt_cv_dlopen_self_static in
12419  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12420  *) enable_dlopen_self_static=unknown ;;
12421  esac
12422fi
12423
12424
12425# The else clause should only fire when bootstrapping the
12426# libtool distribution, otherwise you forgot to ship ltmain.sh
12427# with your package, and you will get complaints that there are
12428# no rules to generate ltmain.sh.
12429if test -f "$ltmain"; then
12430  # See if we are running on zsh, and set the options which allow our commands through
12431  # without removal of \ escapes.
12432  if test -n "${ZSH_VERSION+set}" ; then
12433    setopt NO_GLOB_SUBST
12434  fi
12435  # Now quote all the things that may contain metacharacters while being
12436  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12437  # variables and quote the copies for generation of the libtool script.
12438  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12439    SED SHELL STRIP \
12440    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12441    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12442    deplibs_check_method reload_flag reload_cmds need_locks \
12443    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12444    lt_cv_sys_global_symbol_to_c_name_address \
12445    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12446    old_postinstall_cmds old_postuninstall_cmds \
12447    compiler_CXX \
12448    CC_CXX \
12449    LD_CXX \
12450    lt_prog_compiler_wl_CXX \
12451    lt_prog_compiler_pic_CXX \
12452    lt_prog_compiler_static_CXX \
12453    lt_prog_compiler_no_builtin_flag_CXX \
12454    export_dynamic_flag_spec_CXX \
12455    thread_safe_flag_spec_CXX \
12456    whole_archive_flag_spec_CXX \
12457    enable_shared_with_static_runtimes_CXX \
12458    old_archive_cmds_CXX \
12459    old_archive_from_new_cmds_CXX \
12460    predep_objects_CXX \
12461    postdep_objects_CXX \
12462    predeps_CXX \
12463    postdeps_CXX \
12464    compiler_lib_search_path_CXX \
12465    archive_cmds_CXX \
12466    archive_expsym_cmds_CXX \
12467    postinstall_cmds_CXX \
12468    postuninstall_cmds_CXX \
12469    old_archive_from_expsyms_cmds_CXX \
12470    allow_undefined_flag_CXX \
12471    no_undefined_flag_CXX \
12472    export_symbols_cmds_CXX \
12473    hardcode_libdir_flag_spec_CXX \
12474    hardcode_libdir_flag_spec_ld_CXX \
12475    hardcode_libdir_separator_CXX \
12476    hardcode_automatic_CXX \
12477    module_cmds_CXX \
12478    module_expsym_cmds_CXX \
12479    lt_cv_prog_compiler_c_o_CXX \
12480    exclude_expsyms_CXX \
12481    include_expsyms_CXX; do
12482
12483    case $var in
12484    old_archive_cmds_CXX | \
12485    old_archive_from_new_cmds_CXX | \
12486    archive_cmds_CXX | \
12487    archive_expsym_cmds_CXX | \
12488    module_cmds_CXX | \
12489    module_expsym_cmds_CXX | \
12490    old_archive_from_expsyms_cmds_CXX | \
12491    export_symbols_cmds_CXX | \
12492    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12493    postinstall_cmds | postuninstall_cmds | \
12494    old_postinstall_cmds | old_postuninstall_cmds | \
12495    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12496      # Double-quote double-evaled strings.
12497      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12498      ;;
12499    *)
12500      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12501      ;;
12502    esac
12503  done
12504
12505  case $lt_echo in
12506  *'\$0 --fallback-echo"')
12507    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12508    ;;
12509  esac
12510
12511cfgfile="$ofile"
12512
12513  cat <<__EOF__ >> "$cfgfile"
12514# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12515
12516# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12517
12518# Shell to use when invoking shell scripts.
12519SHELL=$lt_SHELL
12520
12521# Whether or not to build shared libraries.
12522build_libtool_libs=$enable_shared
12523
12524# Whether or not to build static libraries.
12525build_old_libs=$enable_static
12526
12527# Whether or not to add -lc for building shared libraries.
12528build_libtool_need_lc=$archive_cmds_need_lc_CXX
12529
12530# Whether or not to disallow shared libs when runtime libs are static
12531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12532
12533# Whether or not to optimize for fast installation.
12534fast_install=$enable_fast_install
12535
12536# The host system.
12537host_alias=$host_alias
12538host=$host
12539
12540# An echo program that does not interpret backslashes.
12541echo=$lt_echo
12542
12543# The archiver.
12544AR=$lt_AR
12545AR_FLAGS=$lt_AR_FLAGS
12546
12547# A C compiler.
12548LTCC=$lt_LTCC
12549
12550# A language-specific compiler.
12551CC=$lt_compiler_CXX
12552
12553# Is the compiler the GNU C compiler?
12554with_gcc=$GCC_CXX
12555
12556# An ERE matcher.
12557EGREP=$lt_EGREP
12558
12559# The linker used to build libraries.
12560LD=$lt_LD_CXX
12561
12562# Whether we need hard or soft links.
12563LN_S=$lt_LN_S
12564
12565# A BSD-compatible nm program.
12566NM=$lt_NM
12567
12568# A symbol stripping program
12569STRIP=$lt_STRIP
12570
12571# Used to examine libraries when file_magic_cmd begins "file"
12572MAGIC_CMD=$MAGIC_CMD
12573
12574# Used on cygwin: DLL creation program.
12575DLLTOOL="$DLLTOOL"
12576
12577# Used on cygwin: object dumper.
12578OBJDUMP="$OBJDUMP"
12579
12580# Used on cygwin: assembler.
12581AS="$AS"
12582
12583# The name of the directory that contains temporary libtool files.
12584objdir=$objdir
12585
12586# How to create reloadable object files.
12587reload_flag=$lt_reload_flag
12588reload_cmds=$lt_reload_cmds
12589
12590# How to pass a linker flag through the compiler.
12591wl=$lt_lt_prog_compiler_wl_CXX
12592
12593# Object file suffix (normally "o").
12594objext="$ac_objext"
12595
12596# Old archive suffix (normally "a").
12597libext="$libext"
12598
12599# Shared library suffix (normally ".so").
12600shrext='$shrext'
12601
12602# Executable file suffix (normally "").
12603exeext="$exeext"
12604
12605# Additional compiler flags for building library objects.
12606pic_flag=$lt_lt_prog_compiler_pic_CXX
12607pic_mode=$pic_mode
12608
12609# What is the maximum length of a command?
12610max_cmd_len=$lt_cv_sys_max_cmd_len
12611
12612# Does compiler simultaneously support -c and -o options?
12613compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12614
12615# Must we lock files when doing compilation ?
12616need_locks=$lt_need_locks
12617
12618# Do we need the lib prefix for modules?
12619need_lib_prefix=$need_lib_prefix
12620
12621# Do we need a version for libraries?
12622need_version=$need_version
12623
12624# Whether dlopen is supported.
12625dlopen_support=$enable_dlopen
12626
12627# Whether dlopen of programs is supported.
12628dlopen_self=$enable_dlopen_self
12629
12630# Whether dlopen of statically linked programs is supported.
12631dlopen_self_static=$enable_dlopen_self_static
12632
12633# Compiler flag to prevent dynamic linking.
12634link_static_flag=$lt_lt_prog_compiler_static_CXX
12635
12636# Compiler flag to turn off builtin functions.
12637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12638
12639# Compiler flag to allow reflexive dlopens.
12640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12641
12642# Compiler flag to generate shared objects directly from archives.
12643whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12644
12645# Compiler flag to generate thread-safe objects.
12646thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12647
12648# Library versioning type.
12649version_type=$version_type
12650
12651# Format of library name prefix.
12652libname_spec=$lt_libname_spec
12653
12654# List of archive names.  First name is the real one, the rest are links.
12655# The last name is the one that the linker finds with -lNAME.
12656library_names_spec=$lt_library_names_spec
12657
12658# The coded name of the library, if different from the real name.
12659soname_spec=$lt_soname_spec
12660
12661# Commands used to build and install an old-style archive.
12662RANLIB=$lt_RANLIB
12663old_archive_cmds=$lt_old_archive_cmds_CXX
12664old_postinstall_cmds=$lt_old_postinstall_cmds
12665old_postuninstall_cmds=$lt_old_postuninstall_cmds
12666
12667# Create an old-style archive from a shared archive.
12668old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12669
12670# Create a temporary old-style archive to link instead of a shared archive.
12671old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12672
12673# Commands used to build and install a shared archive.
12674archive_cmds=$lt_archive_cmds_CXX
12675archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12676postinstall_cmds=$lt_postinstall_cmds
12677postuninstall_cmds=$lt_postuninstall_cmds
12678
12679# Commands used to build a loadable module (assumed same as above if empty)
12680module_cmds=$lt_module_cmds_CXX
12681module_expsym_cmds=$lt_module_expsym_cmds_CXX
12682
12683# Commands to strip libraries.
12684old_striplib=$lt_old_striplib
12685striplib=$lt_striplib
12686
12687# Dependencies to place before the objects being linked to create a
12688# shared library.
12689predep_objects=$lt_predep_objects_CXX
12690
12691# Dependencies to place after the objects being linked to create a
12692# shared library.
12693postdep_objects=$lt_postdep_objects_CXX
12694
12695# Dependencies to place before the objects being linked to create a
12696# shared library.
12697predeps=$lt_predeps_CXX
12698
12699# Dependencies to place after the objects being linked to create a
12700# shared library.
12701postdeps=$lt_postdeps_CXX
12702
12703# The library search path used internally by the compiler when linking
12704# a shared library.
12705compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12706
12707# Method to check whether dependent libraries are shared objects.
12708deplibs_check_method=$lt_deplibs_check_method
12709
12710# Command to use when deplibs_check_method == file_magic.
12711file_magic_cmd=$lt_file_magic_cmd
12712
12713# Flag that allows shared libraries with undefined symbols to be built.
12714allow_undefined_flag=$lt_allow_undefined_flag_CXX
12715
12716# Flag that forces no undefined symbols.
12717no_undefined_flag=$lt_no_undefined_flag_CXX
12718
12719# Commands used to finish a libtool library installation in a directory.
12720finish_cmds=$lt_finish_cmds
12721
12722# Same as above, but a single script fragment to be evaled but not shown.
12723finish_eval=$lt_finish_eval
12724
12725# Take the output of nm and produce a listing of raw symbols and C names.
12726global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12727
12728# Transform the output of nm in a proper C declaration
12729global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12730
12731# Transform the output of nm in a C name address pair
12732global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12733
12734# This is the shared library runtime path variable.
12735runpath_var=$runpath_var
12736
12737# This is the shared library path variable.
12738shlibpath_var=$shlibpath_var
12739
12740# Is shlibpath searched before the hard-coded library search path?
12741shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12742
12743# How to hardcode a shared library path into an executable.
12744hardcode_action=$hardcode_action_CXX
12745
12746# Whether we should hardcode library paths into libraries.
12747hardcode_into_libs=$hardcode_into_libs
12748
12749# Flag to hardcode \$libdir into a binary during linking.
12750# This must work even if \$libdir does not exist.
12751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12752
12753# If ld is used when linking, flag to hardcode \$libdir into
12754# a binary during linking. This must work even if \$libdir does
12755# not exist.
12756hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12757
12758# Whether we need a single -rpath flag with a separated argument.
12759hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12760
12761# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12762# resulting binary.
12763hardcode_direct=$hardcode_direct_CXX
12764
12765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12766# resulting binary.
12767hardcode_minus_L=$hardcode_minus_L_CXX
12768
12769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12770# the resulting binary.
12771hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12772
12773# Set to yes if building a shared library automatically hardcodes DIR into the library
12774# and all subsequent libraries and executables linked against it.
12775hardcode_automatic=$hardcode_automatic_CXX
12776
12777# Variables whose values should be saved in libtool wrapper scripts and
12778# restored at relink time.
12779variables_saved_for_relink="$variables_saved_for_relink"
12780
12781# Whether libtool must link a program against all its dependency libraries.
12782link_all_deplibs=$link_all_deplibs_CXX
12783
12784# Compile-time system search path for libraries
12785sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12786
12787# Run-time system search path for libraries
12788sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12789
12790# Fix the shell variable \$srcfile for the compiler.
12791fix_srcfile_path="$fix_srcfile_path_CXX"
12792
12793# Set to yes if exported symbols are required.
12794always_export_symbols=$always_export_symbols_CXX
12795
12796# The commands to list exported symbols.
12797export_symbols_cmds=$lt_export_symbols_cmds_CXX
12798
12799# The commands to extract the exported symbol list from a shared archive.
12800extract_expsyms_cmds=$lt_extract_expsyms_cmds
12801
12802# Symbols that should not be listed in the preloaded symbols.
12803exclude_expsyms=$lt_exclude_expsyms_CXX
12804
12805# Symbols that must always be exported.
12806include_expsyms=$lt_include_expsyms_CXX
12807
12808# ### END LIBTOOL TAG CONFIG: $tagname
12809
12810__EOF__
12811
12812
12813else
12814  # If there is no Makefile yet, we rely on a make rule to execute
12815  # `config.status --recheck' to rerun these tests and create the
12816  # libtool script then.
12817  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12818  if test -f "$ltmain_in"; then
12819    test -f Makefile && make "$ltmain"
12820  fi
12821fi
12822
12823
12824ac_ext=c
12825ac_cpp='$CPP $CPPFLAGS'
12826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
12830CC=$lt_save_CC
12831LDCXX=$LD
12832LD=$lt_save_LD
12833GCC=$lt_save_GCC
12834with_gnu_ldcxx=$with_gnu_ld
12835with_gnu_ld=$lt_save_with_gnu_ld
12836lt_cv_path_LDCXX=$lt_cv_path_LD
12837lt_cv_path_LD=$lt_save_path_LD
12838lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12839lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12840
12841	else
12842	  tagname=""
12843	fi
12844	;;
12845
12846      F77)
12847	if test -n "$F77" && test "X$F77" != "Xno"; then
12848
12849ac_ext=f
12850ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12851ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12853
12854
12855archive_cmds_need_lc_F77=no
12856allow_undefined_flag_F77=
12857always_export_symbols_F77=no
12858archive_expsym_cmds_F77=
12859export_dynamic_flag_spec_F77=
12860hardcode_direct_F77=no
12861hardcode_libdir_flag_spec_F77=
12862hardcode_libdir_flag_spec_ld_F77=
12863hardcode_libdir_separator_F77=
12864hardcode_minus_L_F77=no
12865hardcode_automatic_F77=no
12866module_cmds_F77=
12867module_expsym_cmds_F77=
12868link_all_deplibs_F77=unknown
12869old_archive_cmds_F77=$old_archive_cmds
12870no_undefined_flag_F77=
12871whole_archive_flag_spec_F77=
12872enable_shared_with_static_runtimes_F77=no
12873
12874# Source file extension for f77 test sources.
12875ac_ext=f
12876
12877# Object file extension for compiled f77 test sources.
12878objext=o
12879objext_F77=$objext
12880
12881# Code to be used in simple compile tests
12882lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12883
12884# Code to be used in simple link tests
12885lt_simple_link_test_code="      program t\n      end\n"
12886
12887# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12888
12889# If no C compiler was specified, use CC.
12890LTCC=${LTCC-"$CC"}
12891
12892# Allow CC to be a program name with arguments.
12893compiler=$CC
12894
12895
12896# Allow CC to be a program name with arguments.
12897lt_save_CC="$CC"
12898CC=${F77-"f77"}
12899compiler=$CC
12900compiler_F77=$CC
12901cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12902
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12904$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12906$as_echo "$can_build_shared" >&6; }
12907
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12909$as_echo_n "checking whether to build shared libraries... " >&6; }
12910test "$can_build_shared" = "no" && enable_shared=no
12911
12912# On AIX, shared libraries and static libraries use the same namespace, and
12913# are all built from PIC.
12914case "$host_os" in
12915aix3*)
12916  test "$enable_shared" = yes && enable_static=no
12917  if test -n "$RANLIB"; then
12918    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12919    postinstall_cmds='$RANLIB $lib'
12920  fi
12921  ;;
12922aix4*)
12923  test "$enable_shared" = yes && enable_static=no
12924  ;;
12925esac
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12927$as_echo "$enable_shared" >&6; }
12928
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12930$as_echo_n "checking whether to build static libraries... " >&6; }
12931# Make sure either enable_shared or enable_static is yes.
12932test "$enable_shared" = yes || enable_static=yes
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12934$as_echo "$enable_static" >&6; }
12935
12936test "$ld_shlibs_F77" = no && can_build_shared=no
12937
12938GCC_F77="$G77"
12939LD_F77="$LD"
12940
12941lt_prog_compiler_wl_F77=
12942lt_prog_compiler_pic_F77=
12943lt_prog_compiler_static_F77=
12944
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12946$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12947
12948  if test "$GCC" = yes; then
12949    lt_prog_compiler_wl_F77='-Wl,'
12950    lt_prog_compiler_static_F77='-static'
12951
12952    case $host_os in
12953      aix*)
12954      # All AIX code is PIC.
12955      if test "$host_cpu" = ia64; then
12956	# AIX 5 now supports IA64 processor
12957	lt_prog_compiler_static_F77='-Bstatic'
12958      fi
12959      ;;
12960
12961    amigaos*)
12962      # FIXME: we need at least 68020 code to build shared libraries, but
12963      # adding the `-m68020' flag to GCC prevents building anything better,
12964      # like `-m68040'.
12965      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12966      ;;
12967
12968    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12969      # PIC is the default for these OSes.
12970      ;;
12971
12972    mingw* | pw32* | os2*)
12973      # This hack is so that the source file can tell whether it is being
12974      # built for inclusion in a dll (and should export symbols for example).
12975      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12976      ;;
12977
12978    darwin* | rhapsody*)
12979      # PIC is the default on this platform
12980      # Common symbols not allowed in MH_DYLIB files
12981      lt_prog_compiler_pic_F77='-fno-common'
12982      ;;
12983
12984    msdosdjgpp*)
12985      # Just because we use GCC doesn't mean we suddenly get shared libraries
12986      # on systems that don't support them.
12987      lt_prog_compiler_can_build_shared_F77=no
12988      enable_shared=no
12989      ;;
12990
12991    sysv4*MP*)
12992      if test -d /usr/nec; then
12993	lt_prog_compiler_pic_F77=-Kconform_pic
12994      fi
12995      ;;
12996
12997    hpux*)
12998      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12999      # not for PA HP-UX.
13000      case "$host_cpu" in
13001      hppa*64*|ia64*)
13002	# +Z the default
13003	;;
13004      *)
13005	lt_prog_compiler_pic_F77='-fPIC'
13006	;;
13007      esac
13008      ;;
13009
13010    *)
13011      lt_prog_compiler_pic_F77='-fPIC'
13012      ;;
13013    esac
13014  else
13015    # PORTME Check for flag to pass linker flags through the system compiler.
13016    case $host_os in
13017    aix*)
13018      lt_prog_compiler_wl_F77='-Wl,'
13019      if test "$host_cpu" = ia64; then
13020	# AIX 5 now supports IA64 processor
13021	lt_prog_compiler_static_F77='-Bstatic'
13022      else
13023	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13024      fi
13025      ;;
13026
13027    mingw* | pw32* | os2*)
13028      # This hack is so that the source file can tell whether it is being
13029      # built for inclusion in a dll (and should export symbols for example).
13030      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13031      ;;
13032
13033    hpux9* | hpux10* | hpux11*)
13034      lt_prog_compiler_wl_F77='-Wl,'
13035      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13036      # not for PA HP-UX.
13037      case "$host_cpu" in
13038      hppa*64*|ia64*)
13039	# +Z the default
13040	;;
13041      *)
13042	lt_prog_compiler_pic_F77='+Z'
13043	;;
13044      esac
13045      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13046      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13047      ;;
13048
13049    irix5* | irix6* | nonstopux*)
13050      lt_prog_compiler_wl_F77='-Wl,'
13051      # PIC (with -KPIC) is the default.
13052      lt_prog_compiler_static_F77='-non_shared'
13053      ;;
13054
13055    newsos6)
13056      lt_prog_compiler_pic_F77='-KPIC'
13057      lt_prog_compiler_static_F77='-Bstatic'
13058      ;;
13059
13060    linux*)
13061      case $CC in
13062      icc* | ecc*)
13063	lt_prog_compiler_wl_F77='-Wl,'
13064	lt_prog_compiler_pic_F77='-KPIC'
13065	lt_prog_compiler_static_F77='-static'
13066        ;;
13067      ccc*)
13068        lt_prog_compiler_wl_F77='-Wl,'
13069        # All Alpha code is PIC.
13070        lt_prog_compiler_static_F77='-non_shared'
13071        ;;
13072      esac
13073      ;;
13074
13075    osf3* | osf4* | osf5*)
13076      lt_prog_compiler_wl_F77='-Wl,'
13077      # All OSF/1 code is PIC.
13078      lt_prog_compiler_static_F77='-non_shared'
13079      ;;
13080
13081    sco3.2v5*)
13082      lt_prog_compiler_pic_F77='-Kpic'
13083      lt_prog_compiler_static_F77='-dn'
13084      ;;
13085
13086    solaris*)
13087      lt_prog_compiler_wl_F77='-Wl,'
13088      lt_prog_compiler_pic_F77='-KPIC'
13089      lt_prog_compiler_static_F77='-Bstatic'
13090      ;;
13091
13092    sunos4*)
13093      lt_prog_compiler_wl_F77='-Qoption ld '
13094      lt_prog_compiler_pic_F77='-PIC'
13095      lt_prog_compiler_static_F77='-Bstatic'
13096      ;;
13097
13098    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13099      lt_prog_compiler_wl_F77='-Wl,'
13100      lt_prog_compiler_pic_F77='-KPIC'
13101      lt_prog_compiler_static_F77='-Bstatic'
13102      ;;
13103
13104    sysv4*MP*)
13105      if test -d /usr/nec ;then
13106	lt_prog_compiler_pic_F77='-Kconform_pic'
13107	lt_prog_compiler_static_F77='-Bstatic'
13108      fi
13109      ;;
13110
13111    uts4*)
13112      lt_prog_compiler_pic_F77='-pic'
13113      lt_prog_compiler_static_F77='-Bstatic'
13114      ;;
13115
13116    *)
13117      lt_prog_compiler_can_build_shared_F77=no
13118      ;;
13119    esac
13120  fi
13121
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13123$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13124
13125#
13126# Check to make sure the PIC flag actually works.
13127#
13128if test -n "$lt_prog_compiler_pic_F77"; then
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13131$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13132if ${lt_prog_compiler_pic_works_F77+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  lt_prog_compiler_pic_works_F77=no
13136  ac_outfile=conftest.$ac_objext
13137   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13138   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13139   # Insert the option either (1) after the last *FLAGS variable, or
13140   # (2) before a word containing "conftest.", or (3) at the end.
13141   # Note that $ac_compile itself does not contain backslashes and begins
13142   # with a dollar sign (not a hyphen), so the echo should work correctly.
13143   # The option is referenced via a variable to avoid confusing sed.
13144   lt_compile=`echo "$ac_compile" | $SED \
13145   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13146   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13147   -e 's:$: $lt_compiler_flag:'`
13148   (eval echo "\"\$as_me:13148: $lt_compile\"" >&5)
13149   (eval "$lt_compile" 2>conftest.err)
13150   ac_status=$?
13151   cat conftest.err >&5
13152   echo "$as_me:13152: \$? = $ac_status" >&5
13153   if (exit $ac_status) && test -s "$ac_outfile"; then
13154     # The compiler can only warn and ignore the option if not recognized
13155     # So say no if there are warnings
13156     if test ! -s conftest.err; then
13157       lt_prog_compiler_pic_works_F77=yes
13158     fi
13159   fi
13160   $rm conftest*
13161
13162fi
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13164$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13165
13166if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13167    case $lt_prog_compiler_pic_F77 in
13168     "" | " "*) ;;
13169     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13170     esac
13171else
13172    lt_prog_compiler_pic_F77=
13173     lt_prog_compiler_can_build_shared_F77=no
13174fi
13175
13176fi
13177case "$host_os" in
13178  # For platforms which do not support PIC, -DPIC is meaningless:
13179  *djgpp*)
13180    lt_prog_compiler_pic_F77=
13181    ;;
13182  *)
13183    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13184    ;;
13185esac
13186
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13188$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13189if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  lt_cv_prog_compiler_c_o_F77=no
13193   $rm -r conftest 2>/dev/null
13194   mkdir conftest
13195   cd conftest
13196   mkdir out
13197   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13198
13199   lt_compiler_flag="-o out/conftest2.$ac_objext"
13200   # Insert the option either (1) after the last *FLAGS variable, or
13201   # (2) before a word containing "conftest.", or (3) at the end.
13202   # Note that $ac_compile itself does not contain backslashes and begins
13203   # with a dollar sign (not a hyphen), so the echo should work correctly.
13204   lt_compile=`echo "$ac_compile" | $SED \
13205   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13207   -e 's:$: $lt_compiler_flag:'`
13208   (eval echo "\"\$as_me:13208: $lt_compile\"" >&5)
13209   (eval "$lt_compile" 2>out/conftest.err)
13210   ac_status=$?
13211   cat out/conftest.err >&5
13212   echo "$as_me:13212: \$? = $ac_status" >&5
13213   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13214   then
13215     # The compiler can only warn and ignore the option if not recognized
13216     # So say no if there are warnings
13217     if test ! -s out/conftest.err; then
13218       lt_cv_prog_compiler_c_o_F77=yes
13219     fi
13220   fi
13221   chmod u+w .
13222   $rm conftest*
13223   # SGI C++ compiler will create directory out/ii_files/ for
13224   # template instantiation
13225   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13226   $rm out/* && rmdir out
13227   cd ..
13228   rmdir conftest
13229   $rm conftest*
13230
13231fi
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13233$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13234
13235
13236hard_links="nottested"
13237if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13238  # do not overwrite the value of need_locks provided by the user
13239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13240$as_echo_n "checking if we can lock with hard links... " >&6; }
13241  hard_links=yes
13242  $rm conftest*
13243  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13244  touch conftest.a
13245  ln conftest.a conftest.b 2>&5 || hard_links=no
13246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13248$as_echo "$hard_links" >&6; }
13249  if test "$hard_links" = no; then
13250    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13251$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13252    need_locks=warn
13253  fi
13254else
13255  need_locks=no
13256fi
13257
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13259$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13260
13261  runpath_var=
13262  allow_undefined_flag_F77=
13263  enable_shared_with_static_runtimes_F77=no
13264  archive_cmds_F77=
13265  archive_expsym_cmds_F77=
13266  old_archive_From_new_cmds_F77=
13267  old_archive_from_expsyms_cmds_F77=
13268  export_dynamic_flag_spec_F77=
13269  whole_archive_flag_spec_F77=
13270  thread_safe_flag_spec_F77=
13271  hardcode_libdir_flag_spec_F77=
13272  hardcode_libdir_flag_spec_ld_F77=
13273  hardcode_libdir_separator_F77=
13274  hardcode_direct_F77=no
13275  hardcode_minus_L_F77=no
13276  hardcode_shlibpath_var_F77=unsupported
13277  link_all_deplibs_F77=unknown
13278  hardcode_automatic_F77=no
13279  module_cmds_F77=
13280  module_expsym_cmds_F77=
13281  always_export_symbols_F77=no
13282  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13283  # include_expsyms should be a list of space-separated symbols to be *always*
13284  # included in the symbol list
13285  include_expsyms_F77=
13286  # exclude_expsyms can be an extended regexp of symbols to exclude
13287  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13288  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13289  # as well as any symbol that contains `d'.
13290  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13291  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13292  # platforms (ab)use it in PIC code, but their linkers get confused if
13293  # the symbol is explicitly referenced.  Since portable code cannot
13294  # rely on this symbol name, it's probably fine to never include it in
13295  # preloaded symbol tables.
13296  extract_expsyms_cmds=
13297
13298  case $host_os in
13299  cygwin* | mingw* | pw32*)
13300    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13301    # When not using gcc, we currently assume that we are using
13302    # Microsoft Visual C++.
13303    if test "$GCC" != yes; then
13304      with_gnu_ld=no
13305    fi
13306    ;;
13307  openbsd*)
13308    with_gnu_ld=no
13309    ;;
13310  esac
13311
13312  ld_shlibs_F77=yes
13313  if test "$with_gnu_ld" = yes; then
13314    # If archive_cmds runs LD, not CC, wlarc should be empty
13315    wlarc='${wl}'
13316
13317    # See if GNU ld supports shared libraries.
13318    case $host_os in
13319    aix3* | aix4* | aix5*)
13320      # On AIX/PPC, the GNU linker is very broken
13321      if test "$host_cpu" != ia64; then
13322	ld_shlibs_F77=no
13323	cat <<EOF 1>&2
13324
13325*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13326*** to be unable to reliably create shared libraries on AIX.
13327*** Therefore, libtool is disabling shared libraries support.  If you
13328*** really care for shared libraries, you may want to modify your PATH
13329*** so that a non-GNU linker is found, and then restart.
13330
13331EOF
13332      fi
13333      ;;
13334
13335    amigaos*)
13336      archive_cmds_F77='$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)'
13337      hardcode_libdir_flag_spec_F77='-L$libdir'
13338      hardcode_minus_L_F77=yes
13339
13340      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13341      # that the semantics of dynamic libraries on AmigaOS, at least up
13342      # to version 4, is to share data among multiple programs linked
13343      # with the same dynamic library.  Since this doesn't match the
13344      # behavior of shared libraries on other platforms, we can't use
13345      # them.
13346      ld_shlibs_F77=no
13347      ;;
13348
13349    beos*)
13350      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13351	allow_undefined_flag_F77=unsupported
13352	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13353	# support --undefined.  This deserves some investigation.  FIXME
13354	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355      else
13356	ld_shlibs_F77=no
13357      fi
13358      ;;
13359
13360    cygwin* | mingw* | pw32*)
13361      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13362      # as there is no search path for DLLs.
13363      hardcode_libdir_flag_spec_F77='-L$libdir'
13364      allow_undefined_flag_F77=unsupported
13365      always_export_symbols_F77=no
13366      enable_shared_with_static_runtimes_F77=yes
13367      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13368
13369      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13370        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13371	# If the export-symbols file already is a .def file (1st line
13372	# is EXPORTS), use it as is; otherwise, prepend...
13373	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13374	  cp $export_symbols $output_objdir/$soname.def;
13375	else
13376	  echo EXPORTS > $output_objdir/$soname.def;
13377	  cat $export_symbols >> $output_objdir/$soname.def;
13378	fi~
13379	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13380      else
13381	ld_shlibs=no
13382      fi
13383      ;;
13384
13385    netbsd* | knetbsd*-gnu)
13386      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13387	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13388	wlarc=
13389      else
13390	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13392      fi
13393      ;;
13394
13395    solaris* | sysv5*)
13396      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13397	ld_shlibs_F77=no
13398	cat <<EOF 1>&2
13399
13400*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13401*** create shared libraries on Solaris systems.  Therefore, libtool
13402*** is disabling shared libraries support.  We urge you to upgrade GNU
13403*** binutils to release 2.9.1 or newer.  Another option is to modify
13404*** your PATH or compiler configuration so that the native linker is
13405*** used, and then restart.
13406
13407EOF
13408      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13409	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13410	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13411      else
13412	ld_shlibs_F77=no
13413      fi
13414      ;;
13415
13416    sunos4*)
13417      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13418      wlarc=
13419      hardcode_direct_F77=yes
13420      hardcode_shlibpath_var_F77=no
13421      ;;
13422
13423  linux*)
13424    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13425        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426	archive_cmds_F77="$tmp_archive_cmds"
13427      supports_anon_versioning=no
13428      case `$LD -v 2>/dev/null` in
13429        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13430        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13431        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13432        *\ 2.11.*) ;; # other 2.11 versions
13433        *) supports_anon_versioning=yes ;;
13434      esac
13435      if test $supports_anon_versioning = yes; then
13436        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13437cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13438$echo "local: *; };" >> $output_objdir/$libname.ver~
13439        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13440      else
13441        archive_expsym_cmds_F77="$tmp_archive_cmds"
13442      fi
13443    else
13444      ld_shlibs_F77=no
13445    fi
13446    ;;
13447
13448    *)
13449      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13450	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13452      else
13453	ld_shlibs_F77=no
13454      fi
13455      ;;
13456    esac
13457
13458    if test "$ld_shlibs_F77" = yes; then
13459      runpath_var=LD_RUN_PATH
13460      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13461      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13462      # ancient GNU ld didn't support --whole-archive et. al.
13463      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13464 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13465      else
13466  	whole_archive_flag_spec_F77=
13467      fi
13468    fi
13469  else
13470    # PORTME fill in a description of your system's linker (not GNU ld)
13471    case $host_os in
13472    aix3*)
13473      allow_undefined_flag_F77=unsupported
13474      always_export_symbols_F77=yes
13475      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13476      # Note: this linker hardcodes the directories in LIBPATH if there
13477      # are no directories specified by -L.
13478      hardcode_minus_L_F77=yes
13479      if test "$GCC" = yes && test -z "$link_static_flag"; then
13480	# Neither direct hardcoding nor static linking is supported with a
13481	# broken collect2.
13482	hardcode_direct_F77=unsupported
13483      fi
13484      ;;
13485
13486    aix4* | aix5*)
13487      if test "$host_cpu" = ia64; then
13488	# On IA64, the linker does run time linking by default, so we don't
13489	# have to do anything special.
13490	aix_use_runtimelinking=no
13491	exp_sym_flag='-Bexport'
13492	no_entry_flag=""
13493      else
13494	# If we're using GNU nm, then we don't want the "-C" option.
13495	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13496	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13497	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13498	else
13499	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13500	fi
13501	aix_use_runtimelinking=no
13502
13503	# Test if we are trying to use run time linking or normal
13504	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13505	# need to do runtime linking.
13506	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13507	  for ld_flag in $LDFLAGS; do
13508  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13509  	    aix_use_runtimelinking=yes
13510  	    break
13511  	  fi
13512	  done
13513	esac
13514
13515	exp_sym_flag='-bexport'
13516	no_entry_flag='-bnoentry'
13517      fi
13518
13519      # When large executables or shared objects are built, AIX ld can
13520      # have problems creating the table of contents.  If linking a library
13521      # or program results in "error TOC overflow" add -mminimal-toc to
13522      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13523      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13524
13525      archive_cmds_F77=''
13526      hardcode_direct_F77=yes
13527      hardcode_libdir_separator_F77=':'
13528      link_all_deplibs_F77=yes
13529
13530      if test "$GCC" = yes; then
13531	case $host_os in aix4.012|aix4.012.*)
13532	# We only want to do this on AIX 4.2 and lower, the check
13533	# below for broken collect2 doesn't work under 4.3+
13534	  collect2name=`${CC} -print-prog-name=collect2`
13535	  if test -f "$collect2name" && \
13536  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13537	  then
13538  	  # We have reworked collect2
13539  	  hardcode_direct_F77=yes
13540	  else
13541  	  # We have old collect2
13542  	  hardcode_direct_F77=unsupported
13543  	  # It fails to find uninstalled libraries when the uninstalled
13544  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13545  	  # to unsupported forces relinking
13546  	  hardcode_minus_L_F77=yes
13547  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13548  	  hardcode_libdir_separator_F77=
13549	  fi
13550	esac
13551	shared_flag='-shared'
13552      else
13553	# not using gcc
13554	if test "$host_cpu" = ia64; then
13555  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13556  	# chokes on -Wl,-G. The following line is correct:
13557	  shared_flag='-G'
13558	else
13559  	if test "$aix_use_runtimelinking" = yes; then
13560	    shared_flag='${wl}-G'
13561	  else
13562	    shared_flag='${wl}-bM:SRE'
13563  	fi
13564	fi
13565      fi
13566
13567      # It seems that -bexpall does not export symbols beginning with
13568      # underscore (_), so it is better to generate a list of symbols to export.
13569      always_export_symbols_F77=yes
13570      if test "$aix_use_runtimelinking" = yes; then
13571	# Warning - without using the other runtime loading flags (-brtl),
13572	# -berok will link without error, but may produce a broken library.
13573	allow_undefined_flag_F77='-berok'
13574       # Determine the default libpath from the value encoded in an empty executable.
13575       cat > conftest.$ac_ext <<_ACEOF
13576      program main
13577
13578      end
13579_ACEOF
13580if ac_fn_f77_try_link "$LINENO"; then :
13581
13582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13583}'`
13584# Check for a 64-bit object if we didn't find anything.
13585if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13586}'`; fi
13587fi
13588rm -f core conftest.err conftest.$ac_objext \
13589    conftest$ac_exeext conftest.$ac_ext
13590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13591
13592       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13593	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13594       else
13595	if test "$host_cpu" = ia64; then
13596	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13597	  allow_undefined_flag_F77="-z nodefs"
13598	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13599	else
13600	 # Determine the default libpath from the value encoded in an empty executable.
13601	 cat > conftest.$ac_ext <<_ACEOF
13602      program main
13603
13604      end
13605_ACEOF
13606if ac_fn_f77_try_link "$LINENO"; then :
13607
13608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13609}'`
13610# Check for a 64-bit object if we didn't find anything.
13611if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13612}'`; fi
13613fi
13614rm -f core conftest.err conftest.$ac_objext \
13615    conftest$ac_exeext conftest.$ac_ext
13616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13617
13618	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13619	  # Warning - without using the other run time loading flags,
13620	  # -berok will link without error, but may produce a broken library.
13621	  no_undefined_flag_F77=' ${wl}-bernotok'
13622	  allow_undefined_flag_F77=' ${wl}-berok'
13623	  # -bexpall does not export symbols beginning with underscore (_)
13624	  always_export_symbols_F77=yes
13625	  # Exported symbols can be pulled into shared objects from archives
13626	  whole_archive_flag_spec_F77=' '
13627	  archive_cmds_need_lc_F77=yes
13628	  # This is similar to how AIX traditionally builds it's shared libraries.
13629	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13630	fi
13631      fi
13632      ;;
13633
13634    amigaos*)
13635      archive_cmds_F77='$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)'
13636      hardcode_libdir_flag_spec_F77='-L$libdir'
13637      hardcode_minus_L_F77=yes
13638      # see comment about different semantics on the GNU ld section
13639      ld_shlibs_F77=no
13640      ;;
13641
13642    bsdi4*)
13643      export_dynamic_flag_spec_F77=-rdynamic
13644      ;;
13645
13646    cygwin* | mingw* | pw32*)
13647      # When not using gcc, we currently assume that we are using
13648      # Microsoft Visual C++.
13649      # hardcode_libdir_flag_spec is actually meaningless, as there is
13650      # no search path for DLLs.
13651      hardcode_libdir_flag_spec_F77=' '
13652      allow_undefined_flag_F77=unsupported
13653      # Tell ltmain to make .lib files, not .a files.
13654      libext=lib
13655      # Tell ltmain to make .dll files, not .so files.
13656      shrext=".dll"
13657      # FIXME: Setting linknames here is a bad hack.
13658      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13659      # The linker will automatically build a .lib file if we build a DLL.
13660      old_archive_From_new_cmds_F77='true'
13661      # FIXME: Should let the user specify the lib program.
13662      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13663      fix_srcfile_path='`cygpath -w "$srcfile"`'
13664      enable_shared_with_static_runtimes_F77=yes
13665      ;;
13666
13667    darwin* | rhapsody*)
13668    if test "$GXX" = yes ; then
13669      archive_cmds_need_lc_F77=no
13670      case "$host_os" in
13671      rhapsody* | darwin1.[012])
13672	allow_undefined_flag_F77='-undefined suppress'
13673	;;
13674      *) # Darwin 1.3 on
13675      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13676      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13677      else
13678        case ${MACOSX_DEPLOYMENT_TARGET} in
13679          10.[012])
13680            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13681            ;;
13682          10.*)
13683            allow_undefined_flag_F77='-undefined dynamic_lookup'
13684            ;;
13685        esac
13686      fi
13687	;;
13688      esac
13689    	lt_int_apple_cc_single_mod=no
13690    	output_verbose_link_cmd='echo'
13691    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13692    	  lt_int_apple_cc_single_mod=yes
13693    	fi
13694    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13695    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13696    	else
13697        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13698      fi
13699      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13700      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13701        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13702          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13703        else
13704          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13705        fi
13706          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13707      hardcode_direct_F77=no
13708      hardcode_automatic_F77=yes
13709      hardcode_shlibpath_var_F77=unsupported
13710      whole_archive_flag_spec_F77='-all_load $convenience'
13711      link_all_deplibs_F77=yes
13712    else
13713      ld_shlibs_F77=no
13714    fi
13715      ;;
13716
13717    dgux*)
13718      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13719      hardcode_libdir_flag_spec_F77='-L$libdir'
13720      hardcode_shlibpath_var_F77=no
13721      ;;
13722
13723    freebsd1*)
13724      ld_shlibs_F77=no
13725      ;;
13726
13727    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13728    # support.  Future versions do this automatically, but an explicit c++rt0.o
13729    # does not break anything, and helps significantly (at the cost of a little
13730    # extra space).
13731    freebsd2.2*)
13732      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13733      hardcode_libdir_flag_spec_F77='-R$libdir'
13734      hardcode_direct_F77=yes
13735      hardcode_shlibpath_var_F77=no
13736      ;;
13737
13738    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13739    freebsd2*)
13740      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741      hardcode_direct_F77=yes
13742      hardcode_minus_L_F77=yes
13743      hardcode_shlibpath_var_F77=no
13744      ;;
13745
13746    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13747    freebsd* | kfreebsd*-gnu)
13748      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13749      hardcode_libdir_flag_spec_F77='-R$libdir'
13750      hardcode_direct_F77=yes
13751      hardcode_shlibpath_var_F77=no
13752      ;;
13753
13754    hpux9*)
13755      if test "$GCC" = yes; then
13756	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13757      else
13758	archive_cmds_F77='$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'
13759      fi
13760      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13761      hardcode_libdir_separator_F77=:
13762      hardcode_direct_F77=yes
13763
13764      # hardcode_minus_L: Not really in the search PATH,
13765      # but as the default location of the library.
13766      hardcode_minus_L_F77=yes
13767      export_dynamic_flag_spec_F77='${wl}-E'
13768      ;;
13769
13770    hpux10* | hpux11*)
13771      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13772	case "$host_cpu" in
13773	hppa*64*|ia64*)
13774	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13775	  ;;
13776	*)
13777	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13778	  ;;
13779	esac
13780      else
13781	case "$host_cpu" in
13782	hppa*64*|ia64*)
13783	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13784	  ;;
13785	*)
13786	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13787	  ;;
13788	esac
13789      fi
13790      if test "$with_gnu_ld" = no; then
13791	case "$host_cpu" in
13792	hppa*64*)
13793	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13794	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13795	  hardcode_libdir_separator_F77=:
13796	  hardcode_direct_F77=no
13797	  hardcode_shlibpath_var_F77=no
13798	  ;;
13799	ia64*)
13800	  hardcode_libdir_flag_spec_F77='-L$libdir'
13801	  hardcode_direct_F77=no
13802	  hardcode_shlibpath_var_F77=no
13803
13804	  # hardcode_minus_L: Not really in the search PATH,
13805	  # but as the default location of the library.
13806	  hardcode_minus_L_F77=yes
13807	  ;;
13808	*)
13809	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13810	  hardcode_libdir_separator_F77=:
13811	  hardcode_direct_F77=yes
13812	  export_dynamic_flag_spec_F77='${wl}-E'
13813
13814	  # hardcode_minus_L: Not really in the search PATH,
13815	  # but as the default location of the library.
13816	  hardcode_minus_L_F77=yes
13817	  ;;
13818	esac
13819      fi
13820      ;;
13821
13822    irix5* | irix6* | nonstopux*)
13823      if test "$GCC" = yes; then
13824	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13825      else
13826	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13827	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13828      fi
13829      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13830      hardcode_libdir_separator_F77=:
13831      link_all_deplibs_F77=yes
13832      ;;
13833
13834    netbsd* | knetbsd*-gnu)
13835      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13836	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13837      else
13838	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13839      fi
13840      hardcode_libdir_flag_spec_F77='-R$libdir'
13841      hardcode_direct_F77=yes
13842      hardcode_shlibpath_var_F77=no
13843      ;;
13844
13845    newsos6)
13846      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847      hardcode_direct_F77=yes
13848      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13849      hardcode_libdir_separator_F77=:
13850      hardcode_shlibpath_var_F77=no
13851      ;;
13852
13853    openbsd*)
13854      hardcode_direct_F77=yes
13855      hardcode_shlibpath_var_F77=no
13856      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13857	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13858	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13859	export_dynamic_flag_spec_F77='${wl}-E'
13860      else
13861       case $host_os in
13862	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13863	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13864	   hardcode_libdir_flag_spec_F77='-R$libdir'
13865	   ;;
13866	 *)
13867	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13868	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13869	   ;;
13870       esac
13871      fi
13872      ;;
13873
13874    os2*)
13875      hardcode_libdir_flag_spec_F77='-L$libdir'
13876      hardcode_minus_L_F77=yes
13877      allow_undefined_flag_F77=unsupported
13878      archive_cmds_F77='$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'
13879      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13880      ;;
13881
13882    osf3*)
13883      if test "$GCC" = yes; then
13884	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13885	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13886      else
13887	allow_undefined_flag_F77=' -expect_unresolved \*'
13888	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13889      fi
13890      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13891      hardcode_libdir_separator_F77=:
13892      ;;
13893
13894    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13895      if test "$GCC" = yes; then
13896	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13897	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13898	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13899      else
13900	allow_undefined_flag_F77=' -expect_unresolved \*'
13901	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13902	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13903	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13904
13905	# Both c and cxx compiler support -rpath directly
13906	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13907      fi
13908      hardcode_libdir_separator_F77=:
13909      ;;
13910
13911    sco3.2v5*)
13912      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913      hardcode_shlibpath_var_F77=no
13914      export_dynamic_flag_spec_F77='${wl}-Bexport'
13915      runpath_var=LD_RUN_PATH
13916      hardcode_runpath_var=yes
13917      ;;
13918
13919    solaris*)
13920      no_undefined_flag_F77=' -z text'
13921      if test "$GCC" = yes; then
13922	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13923	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13924	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13925      else
13926	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13927	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13928  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13929      fi
13930      hardcode_libdir_flag_spec_F77='-R$libdir'
13931      hardcode_shlibpath_var_F77=no
13932      case $host_os in
13933      solaris2.[0-5] | solaris2.[0-5].*) ;;
13934      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13935	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13936      esac
13937      link_all_deplibs_F77=yes
13938      ;;
13939
13940    sunos4*)
13941      if test "x$host_vendor" = xsequent; then
13942	# Use $CC to link under sequent, because it throws in some extra .o
13943	# files that make .init and .fini sections work.
13944	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13945      else
13946	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13947      fi
13948      hardcode_libdir_flag_spec_F77='-L$libdir'
13949      hardcode_direct_F77=yes
13950      hardcode_minus_L_F77=yes
13951      hardcode_shlibpath_var_F77=no
13952      ;;
13953
13954    sysv4)
13955      case $host_vendor in
13956	sni)
13957	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958	  hardcode_direct_F77=yes # is this really true???
13959	;;
13960	siemens)
13961	  ## LD is ld it makes a PLAMLIB
13962	  ## CC just makes a GrossModule.
13963	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13964	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13965	  hardcode_direct_F77=no
13966        ;;
13967	motorola)
13968	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13969	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13970	;;
13971      esac
13972      runpath_var='LD_RUN_PATH'
13973      hardcode_shlibpath_var_F77=no
13974      ;;
13975
13976    sysv4.3*)
13977      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13978      hardcode_shlibpath_var_F77=no
13979      export_dynamic_flag_spec_F77='-Bexport'
13980      ;;
13981
13982    sysv4*MP*)
13983      if test -d /usr/nec; then
13984	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13985	hardcode_shlibpath_var_F77=no
13986	runpath_var=LD_RUN_PATH
13987	hardcode_runpath_var=yes
13988	ld_shlibs_F77=yes
13989      fi
13990      ;;
13991
13992    sysv4.2uw2*)
13993      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13994      hardcode_direct_F77=yes
13995      hardcode_minus_L_F77=no
13996      hardcode_shlibpath_var_F77=no
13997      hardcode_runpath_var=yes
13998      runpath_var=LD_RUN_PATH
13999      ;;
14000
14001   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14002      no_undefined_flag_F77='${wl}-z ${wl}text'
14003      if test "$GCC" = yes; then
14004	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14005      else
14006	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14007      fi
14008      runpath_var='LD_RUN_PATH'
14009      hardcode_shlibpath_var_F77=no
14010      ;;
14011
14012    sysv5*)
14013      no_undefined_flag_F77=' -z text'
14014      # $CC -shared without GNU ld will not create a library from C++
14015      # object files and a static libstdc++, better avoid it by now
14016      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14018  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14019      hardcode_libdir_flag_spec_F77=
14020      hardcode_shlibpath_var_F77=no
14021      runpath_var='LD_RUN_PATH'
14022      ;;
14023
14024    uts4*)
14025      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026      hardcode_libdir_flag_spec_F77='-L$libdir'
14027      hardcode_shlibpath_var_F77=no
14028      ;;
14029
14030    *)
14031      ld_shlibs_F77=no
14032      ;;
14033    esac
14034  fi
14035
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14037$as_echo "$ld_shlibs_F77" >&6; }
14038test "$ld_shlibs_F77" = no && can_build_shared=no
14039
14040variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14041if test "$GCC" = yes; then
14042  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14043fi
14044
14045#
14046# Do we need to explicitly link libc?
14047#
14048case "x$archive_cmds_need_lc_F77" in
14049x|xyes)
14050  # Assume -lc should be added
14051  archive_cmds_need_lc_F77=yes
14052
14053  if test "$enable_shared" = yes && test "$GCC" = yes; then
14054    case $archive_cmds_F77 in
14055    *'~'*)
14056      # FIXME: we may have to deal with multi-command sequences.
14057      ;;
14058    '$CC '*)
14059      # Test whether the compiler implicitly links with -lc since on some
14060      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14061      # to ld, don't add -lc before -lgcc.
14062      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14063$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14064      $rm conftest*
14065      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14066
14067      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14068  (eval $ac_compile) 2>&5
14069  ac_status=$?
14070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071  test $ac_status = 0; } 2>conftest.err; then
14072        soname=conftest
14073        lib=conftest
14074        libobjs=conftest.$ac_objext
14075        deplibs=
14076        wl=$lt_prog_compiler_wl_F77
14077        compiler_flags=-v
14078        linker_flags=-v
14079        verstring=
14080        output_objdir=.
14081        libname=conftest
14082        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14083        allow_undefined_flag_F77=
14084        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14085  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14086  ac_status=$?
14087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088  test $ac_status = 0; }
14089        then
14090	  archive_cmds_need_lc_F77=no
14091        else
14092	  archive_cmds_need_lc_F77=yes
14093        fi
14094        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14095      else
14096        cat conftest.err 1>&5
14097      fi
14098      $rm conftest*
14099      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14100$as_echo "$archive_cmds_need_lc_F77" >&6; }
14101      ;;
14102    esac
14103  fi
14104  ;;
14105esac
14106
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14108$as_echo_n "checking dynamic linker characteristics... " >&6; }
14109library_names_spec=
14110libname_spec='lib$name'
14111soname_spec=
14112shrext=".so"
14113postinstall_cmds=
14114postuninstall_cmds=
14115finish_cmds=
14116finish_eval=
14117shlibpath_var=
14118shlibpath_overrides_runpath=unknown
14119version_type=none
14120dynamic_linker="$host_os ld.so"
14121sys_lib_dlsearch_path_spec="/lib /usr/lib"
14122if test "$GCC" = yes; then
14123  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14124  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14125    # if the path contains ";" then we assume it to be the separator
14126    # otherwise default to the standard path separator (i.e. ":") - it is
14127    # assumed that no part of a normal pathname contains ";" but that should
14128    # okay in the real world where ";" in dirpaths is itself problematic.
14129    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14130  else
14131    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14132  fi
14133else
14134  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14135fi
14136need_lib_prefix=unknown
14137hardcode_into_libs=no
14138
14139# when you set need_version to no, make sure it does not cause -set_version
14140# flags to be left without arguments
14141need_version=unknown
14142
14143case $host_os in
14144aix3*)
14145  version_type=linux
14146  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14147  shlibpath_var=LIBPATH
14148
14149  # AIX 3 has no versioning support, so we append a major version to the name.
14150  soname_spec='${libname}${release}${shared_ext}$major'
14151  ;;
14152
14153aix4* | aix5*)
14154  version_type=linux
14155  need_lib_prefix=no
14156  need_version=no
14157  hardcode_into_libs=yes
14158  if test "$host_cpu" = ia64; then
14159    # AIX 5 supports IA64
14160    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14161    shlibpath_var=LD_LIBRARY_PATH
14162  else
14163    # With GCC up to 2.95.x, collect2 would create an import file
14164    # for dependence libraries.  The import file would start with
14165    # the line `#! .'.  This would cause the generated library to
14166    # depend on `.', always an invalid library.  This was fixed in
14167    # development snapshots of GCC prior to 3.0.
14168    case $host_os in
14169      aix4 | aix4.[01] | aix4.[01].*)
14170      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14171	   echo ' yes '
14172	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14173	:
14174      else
14175	can_build_shared=no
14176      fi
14177      ;;
14178    esac
14179    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14180    # soname into executable. Probably we can add versioning support to
14181    # collect2, so additional links can be useful in future.
14182    if test "$aix_use_runtimelinking" = yes; then
14183      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14184      # instead of lib<name>.a to let people know that these are not
14185      # typical AIX shared libraries.
14186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187    else
14188      # We preserve .a as extension for shared libraries through AIX4.2
14189      # and later when we are not doing run time linking.
14190      library_names_spec='${libname}${release}.a $libname.a'
14191      soname_spec='${libname}${release}${shared_ext}$major'
14192    fi
14193    shlibpath_var=LIBPATH
14194  fi
14195  ;;
14196
14197amigaos*)
14198  library_names_spec='$libname.ixlibrary $libname.a'
14199  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14200  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14201  ;;
14202
14203beos*)
14204  library_names_spec='${libname}${shared_ext}'
14205  dynamic_linker="$host_os ld.so"
14206  shlibpath_var=LIBRARY_PATH
14207  ;;
14208
14209bsdi4*)
14210  version_type=linux
14211  need_version=no
14212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213  soname_spec='${libname}${release}${shared_ext}$major'
14214  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14215  shlibpath_var=LD_LIBRARY_PATH
14216  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14217  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14218  # the default ld.so.conf also contains /usr/contrib/lib and
14219  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14220  # libtool to hard-code these into programs
14221  ;;
14222
14223cygwin* | mingw* | pw32*)
14224  version_type=windows
14225  shrext=".dll"
14226  need_version=no
14227  need_lib_prefix=no
14228
14229  case $GCC,$host_os in
14230  yes,cygwin* | yes,mingw* | yes,pw32*)
14231    library_names_spec='$libname.dll.a'
14232    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14233    postinstall_cmds='base_file=`basename \${file}`~
14234      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14235      dldir=$destdir/`dirname \$dlpath`~
14236      test -d \$dldir || mkdir -p \$dldir~
14237      $install_prog $dir/$dlname \$dldir/$dlname'
14238    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14239      dlpath=$dir/\$dldll~
14240       $rm \$dlpath'
14241    shlibpath_overrides_runpath=yes
14242
14243    case $host_os in
14244    cygwin*)
14245      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14246      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14248      ;;
14249    mingw*)
14250      # MinGW DLLs use traditional 'lib' prefix
14251      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14252      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14253      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14254        # It is most probably a Windows format PATH printed by
14255        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14256        # path with ; separators, and with drive letters. We can handle the
14257        # drive letters (cygwin fileutils understands them), so leave them,
14258        # especially as we might pass files found there to a mingw objdump,
14259        # which wouldn't understand a cygwinified path. Ahh.
14260        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14261      else
14262        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14263      fi
14264      ;;
14265    pw32*)
14266      # pw32 DLLs use 'pw' prefix rather than 'lib'
14267      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14268      ;;
14269    esac
14270    ;;
14271
14272  *)
14273    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14274    ;;
14275  esac
14276  dynamic_linker='Win32 ld.exe'
14277  # FIXME: first we should search . and the directory the executable is in
14278  shlibpath_var=PATH
14279  ;;
14280
14281darwin* | rhapsody*)
14282  dynamic_linker="$host_os dyld"
14283  version_type=darwin
14284  need_lib_prefix=no
14285  need_version=no
14286  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14287  soname_spec='${libname}${release}${major}$shared_ext'
14288  shlibpath_overrides_runpath=yes
14289  shlibpath_var=DYLD_LIBRARY_PATH
14290  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14291  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14292  if test "$GCC" = yes; then
14293    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14294  else
14295    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14296  fi
14297  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14298  ;;
14299
14300dgux*)
14301  version_type=linux
14302  need_lib_prefix=no
14303  need_version=no
14304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14305  soname_spec='${libname}${release}${shared_ext}$major'
14306  shlibpath_var=LD_LIBRARY_PATH
14307  ;;
14308
14309freebsd1*)
14310  dynamic_linker=no
14311  ;;
14312
14313kfreebsd*-gnu)
14314  version_type=linux
14315  need_lib_prefix=no
14316  need_version=no
14317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14318  soname_spec='${libname}${release}${shared_ext}$major'
14319  shlibpath_var=LD_LIBRARY_PATH
14320  shlibpath_overrides_runpath=no
14321  hardcode_into_libs=yes
14322  dynamic_linker='GNU ld.so'
14323  ;;
14324
14325freebsd*)
14326  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14327  version_type=freebsd-$objformat
14328  case $version_type in
14329    freebsd-elf*)
14330      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14331      need_version=no
14332      need_lib_prefix=no
14333      ;;
14334    freebsd-*)
14335      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14336      need_version=yes
14337      ;;
14338  esac
14339  shlibpath_var=LD_LIBRARY_PATH
14340  case $host_os in
14341  freebsd2*)
14342    shlibpath_overrides_runpath=yes
14343    ;;
14344  freebsd3.01* | freebsdelf3.01*)
14345    shlibpath_overrides_runpath=yes
14346    hardcode_into_libs=yes
14347    ;;
14348  *) # from 3.2 on
14349    shlibpath_overrides_runpath=no
14350    hardcode_into_libs=yes
14351    ;;
14352  esac
14353  ;;
14354
14355gnu*)
14356  version_type=linux
14357  need_lib_prefix=no
14358  need_version=no
14359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14360  soname_spec='${libname}${release}${shared_ext}$major'
14361  shlibpath_var=LD_LIBRARY_PATH
14362  hardcode_into_libs=yes
14363  ;;
14364
14365hpux9* | hpux10* | hpux11*)
14366  # Give a soname corresponding to the major version so that dld.sl refuses to
14367  # link against other versions.
14368  version_type=sunos
14369  need_lib_prefix=no
14370  need_version=no
14371  case "$host_cpu" in
14372  ia64*)
14373    shrext='.so'
14374    hardcode_into_libs=yes
14375    dynamic_linker="$host_os dld.so"
14376    shlibpath_var=LD_LIBRARY_PATH
14377    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379    soname_spec='${libname}${release}${shared_ext}$major'
14380    if test "X$HPUX_IA64_MODE" = X32; then
14381      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14382    else
14383      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14384    fi
14385    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14386    ;;
14387   hppa*64*)
14388     shrext='.sl'
14389     hardcode_into_libs=yes
14390     dynamic_linker="$host_os dld.sl"
14391     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394     soname_spec='${libname}${release}${shared_ext}$major'
14395     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14397     ;;
14398   *)
14399    shrext='.sl'
14400    dynamic_linker="$host_os dld.sl"
14401    shlibpath_var=SHLIB_PATH
14402    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404    soname_spec='${libname}${release}${shared_ext}$major'
14405    ;;
14406  esac
14407  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14408  postinstall_cmds='chmod 555 $lib'
14409  ;;
14410
14411irix5* | irix6* | nonstopux*)
14412  case $host_os in
14413    nonstopux*) version_type=nonstopux ;;
14414    *)
14415	if test "$lt_cv_prog_gnu_ld" = yes; then
14416		version_type=linux
14417	else
14418		version_type=irix
14419	fi ;;
14420  esac
14421  need_lib_prefix=no
14422  need_version=no
14423  soname_spec='${libname}${release}${shared_ext}$major'
14424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14425  case $host_os in
14426  irix5* | nonstopux*)
14427    libsuff= shlibsuff=
14428    ;;
14429  *)
14430    case $LD in # libtool.m4 will add one of these switches to LD
14431    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14432      libsuff= shlibsuff= libmagic=32-bit;;
14433    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14434      libsuff=32 shlibsuff=N32 libmagic=N32;;
14435    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14436      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14437    *) libsuff= shlibsuff= libmagic=never-match;;
14438    esac
14439    ;;
14440  esac
14441  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14442  shlibpath_overrides_runpath=no
14443  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14444  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14445  hardcode_into_libs=yes
14446  ;;
14447
14448# No shared lib support for Linux oldld, aout, or coff.
14449linux*oldld* | linux*aout* | linux*coff*)
14450  dynamic_linker=no
14451  ;;
14452
14453# This must be Linux ELF.
14454linux*)
14455  version_type=linux
14456  need_lib_prefix=no
14457  need_version=no
14458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459  soname_spec='${libname}${release}${shared_ext}$major'
14460  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14461  shlibpath_var=LD_LIBRARY_PATH
14462  shlibpath_overrides_runpath=no
14463  # This implies no fast_install, which is unacceptable.
14464  # Some rework will be needed to allow for fast_install
14465  # before this can be enabled.
14466  hardcode_into_libs=yes
14467
14468  # Append ld.so.conf contents to the search path
14469  if test -f /etc/ld.so.conf; then
14470    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14471    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14472  fi
14473
14474  # We used to test for /lib/ld.so.1 and disable shared libraries on
14475  # powerpc, because MkLinux only supported shared libraries with the
14476  # GNU dynamic linker.  Since this was broken with cross compilers,
14477  # most powerpc-linux boxes support dynamic linking these days and
14478  # people can always --disable-shared, the test was removed, and we
14479  # assume the GNU/Linux dynamic linker is in use.
14480  dynamic_linker='GNU/Linux ld.so'
14481  ;;
14482
14483knetbsd*-gnu)
14484  version_type=linux
14485  need_lib_prefix=no
14486  need_version=no
14487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14488  soname_spec='${libname}${release}${shared_ext}$major'
14489  shlibpath_var=LD_LIBRARY_PATH
14490  shlibpath_overrides_runpath=no
14491  hardcode_into_libs=yes
14492  dynamic_linker='GNU ld.so'
14493  ;;
14494
14495netbsd*)
14496  version_type=sunos
14497  need_lib_prefix=no
14498  need_version=no
14499  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502    dynamic_linker='NetBSD (a.out) ld.so'
14503  else
14504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505    soname_spec='${libname}${release}${shared_ext}$major'
14506    dynamic_linker='NetBSD ld.elf_so'
14507  fi
14508  shlibpath_var=LD_LIBRARY_PATH
14509  shlibpath_overrides_runpath=yes
14510  hardcode_into_libs=yes
14511  ;;
14512
14513newsos6)
14514  version_type=linux
14515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516  shlibpath_var=LD_LIBRARY_PATH
14517  shlibpath_overrides_runpath=yes
14518  ;;
14519
14520nto-qnx*)
14521  version_type=linux
14522  need_lib_prefix=no
14523  need_version=no
14524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525  soname_spec='${libname}${release}${shared_ext}$major'
14526  shlibpath_var=LD_LIBRARY_PATH
14527  shlibpath_overrides_runpath=yes
14528  ;;
14529
14530openbsd*)
14531  version_type=sunos
14532  need_lib_prefix=no
14533  need_version=yes
14534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14536  shlibpath_var=LD_LIBRARY_PATH
14537  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14538    case $host_os in
14539      openbsd2.[89] | openbsd2.[89].*)
14540	shlibpath_overrides_runpath=no
14541	;;
14542      *)
14543	shlibpath_overrides_runpath=yes
14544	;;
14545      esac
14546  else
14547    shlibpath_overrides_runpath=yes
14548  fi
14549  ;;
14550
14551os2*)
14552  libname_spec='$name'
14553  shrext=".dll"
14554  need_lib_prefix=no
14555  library_names_spec='$libname${shared_ext} $libname.a'
14556  dynamic_linker='OS/2 ld.exe'
14557  shlibpath_var=LIBPATH
14558  ;;
14559
14560osf3* | osf4* | osf5*)
14561  version_type=osf
14562  need_lib_prefix=no
14563  need_version=no
14564  soname_spec='${libname}${release}${shared_ext}$major'
14565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566  shlibpath_var=LD_LIBRARY_PATH
14567  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14568  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14569  ;;
14570
14571sco3.2v5*)
14572  version_type=osf
14573  soname_spec='${libname}${release}${shared_ext}$major'
14574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575  shlibpath_var=LD_LIBRARY_PATH
14576  ;;
14577
14578solaris*)
14579  version_type=linux
14580  need_lib_prefix=no
14581  need_version=no
14582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583  soname_spec='${libname}${release}${shared_ext}$major'
14584  shlibpath_var=LD_LIBRARY_PATH
14585  shlibpath_overrides_runpath=yes
14586  hardcode_into_libs=yes
14587  # ldd complains unless libraries are executable
14588  postinstall_cmds='chmod +x $lib'
14589  ;;
14590
14591sunos4*)
14592  version_type=sunos
14593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14595  shlibpath_var=LD_LIBRARY_PATH
14596  shlibpath_overrides_runpath=yes
14597  if test "$with_gnu_ld" = yes; then
14598    need_lib_prefix=no
14599  fi
14600  need_version=yes
14601  ;;
14602
14603sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14604  version_type=linux
14605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606  soname_spec='${libname}${release}${shared_ext}$major'
14607  shlibpath_var=LD_LIBRARY_PATH
14608  case $host_vendor in
14609    sni)
14610      shlibpath_overrides_runpath=no
14611      need_lib_prefix=no
14612      export_dynamic_flag_spec='${wl}-Blargedynsym'
14613      runpath_var=LD_RUN_PATH
14614      ;;
14615    siemens)
14616      need_lib_prefix=no
14617      ;;
14618    motorola)
14619      need_lib_prefix=no
14620      need_version=no
14621      shlibpath_overrides_runpath=no
14622      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14623      ;;
14624  esac
14625  ;;
14626
14627sysv4*MP*)
14628  if test -d /usr/nec ;then
14629    version_type=linux
14630    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14631    soname_spec='$libname${shared_ext}.$major'
14632    shlibpath_var=LD_LIBRARY_PATH
14633  fi
14634  ;;
14635
14636uts4*)
14637  version_type=linux
14638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639  soname_spec='${libname}${release}${shared_ext}$major'
14640  shlibpath_var=LD_LIBRARY_PATH
14641  ;;
14642
14643*)
14644  dynamic_linker=no
14645  ;;
14646esac
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14648$as_echo "$dynamic_linker" >&6; }
14649test "$dynamic_linker" = no && can_build_shared=no
14650
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14652$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14653hardcode_action_F77=
14654if test -n "$hardcode_libdir_flag_spec_F77" || \
14655   test -n "$runpath_var F77" || \
14656   test "X$hardcode_automatic_F77"="Xyes" ; then
14657
14658  # We can hardcode non-existant directories.
14659  if test "$hardcode_direct_F77" != no &&
14660     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661     # have to relink, otherwise we might link with an installed library
14662     # when we should be linking with a yet-to-be-installed one
14663     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14664     test "$hardcode_minus_L_F77" != no; then
14665    # Linking always hardcodes the temporary library directory.
14666    hardcode_action_F77=relink
14667  else
14668    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669    hardcode_action_F77=immediate
14670  fi
14671else
14672  # We cannot hardcode anything, or else we can only hardcode existing
14673  # directories.
14674  hardcode_action_F77=unsupported
14675fi
14676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14677$as_echo "$hardcode_action_F77" >&6; }
14678
14679if test "$hardcode_action_F77" = relink; then
14680  # Fast installation is not supported
14681  enable_fast_install=no
14682elif test "$shlibpath_overrides_runpath" = yes ||
14683     test "$enable_shared" = no; then
14684  # Fast installation is not necessary
14685  enable_fast_install=needless
14686fi
14687
14688striplib=
14689old_striplib=
14690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14691$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14692if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14693  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14694  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14696$as_echo "yes" >&6; }
14697else
14698# FIXME - insert some real tests, host_os isn't really good enough
14699  case $host_os in
14700   darwin*)
14701       if test -n "$STRIP" ; then
14702         striplib="$STRIP -x"
14703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14704$as_echo "yes" >&6; }
14705       else
14706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707$as_echo "no" >&6; }
14708fi
14709       ;;
14710   *)
14711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712$as_echo "no" >&6; }
14713    ;;
14714  esac
14715fi
14716
14717
14718
14719# The else clause should only fire when bootstrapping the
14720# libtool distribution, otherwise you forgot to ship ltmain.sh
14721# with your package, and you will get complaints that there are
14722# no rules to generate ltmain.sh.
14723if test -f "$ltmain"; then
14724  # See if we are running on zsh, and set the options which allow our commands through
14725  # without removal of \ escapes.
14726  if test -n "${ZSH_VERSION+set}" ; then
14727    setopt NO_GLOB_SUBST
14728  fi
14729  # Now quote all the things that may contain metacharacters while being
14730  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14731  # variables and quote the copies for generation of the libtool script.
14732  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14733    SED SHELL STRIP \
14734    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14735    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14736    deplibs_check_method reload_flag reload_cmds need_locks \
14737    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14738    lt_cv_sys_global_symbol_to_c_name_address \
14739    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14740    old_postinstall_cmds old_postuninstall_cmds \
14741    compiler_F77 \
14742    CC_F77 \
14743    LD_F77 \
14744    lt_prog_compiler_wl_F77 \
14745    lt_prog_compiler_pic_F77 \
14746    lt_prog_compiler_static_F77 \
14747    lt_prog_compiler_no_builtin_flag_F77 \
14748    export_dynamic_flag_spec_F77 \
14749    thread_safe_flag_spec_F77 \
14750    whole_archive_flag_spec_F77 \
14751    enable_shared_with_static_runtimes_F77 \
14752    old_archive_cmds_F77 \
14753    old_archive_from_new_cmds_F77 \
14754    predep_objects_F77 \
14755    postdep_objects_F77 \
14756    predeps_F77 \
14757    postdeps_F77 \
14758    compiler_lib_search_path_F77 \
14759    archive_cmds_F77 \
14760    archive_expsym_cmds_F77 \
14761    postinstall_cmds_F77 \
14762    postuninstall_cmds_F77 \
14763    old_archive_from_expsyms_cmds_F77 \
14764    allow_undefined_flag_F77 \
14765    no_undefined_flag_F77 \
14766    export_symbols_cmds_F77 \
14767    hardcode_libdir_flag_spec_F77 \
14768    hardcode_libdir_flag_spec_ld_F77 \
14769    hardcode_libdir_separator_F77 \
14770    hardcode_automatic_F77 \
14771    module_cmds_F77 \
14772    module_expsym_cmds_F77 \
14773    lt_cv_prog_compiler_c_o_F77 \
14774    exclude_expsyms_F77 \
14775    include_expsyms_F77; do
14776
14777    case $var in
14778    old_archive_cmds_F77 | \
14779    old_archive_from_new_cmds_F77 | \
14780    archive_cmds_F77 | \
14781    archive_expsym_cmds_F77 | \
14782    module_cmds_F77 | \
14783    module_expsym_cmds_F77 | \
14784    old_archive_from_expsyms_cmds_F77 | \
14785    export_symbols_cmds_F77 | \
14786    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14787    postinstall_cmds | postuninstall_cmds | \
14788    old_postinstall_cmds | old_postuninstall_cmds | \
14789    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14790      # Double-quote double-evaled strings.
14791      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14792      ;;
14793    *)
14794      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14795      ;;
14796    esac
14797  done
14798
14799  case $lt_echo in
14800  *'\$0 --fallback-echo"')
14801    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14802    ;;
14803  esac
14804
14805cfgfile="$ofile"
14806
14807  cat <<__EOF__ >> "$cfgfile"
14808# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14809
14810# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14811
14812# Shell to use when invoking shell scripts.
14813SHELL=$lt_SHELL
14814
14815# Whether or not to build shared libraries.
14816build_libtool_libs=$enable_shared
14817
14818# Whether or not to build static libraries.
14819build_old_libs=$enable_static
14820
14821# Whether or not to add -lc for building shared libraries.
14822build_libtool_need_lc=$archive_cmds_need_lc_F77
14823
14824# Whether or not to disallow shared libs when runtime libs are static
14825allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14826
14827# Whether or not to optimize for fast installation.
14828fast_install=$enable_fast_install
14829
14830# The host system.
14831host_alias=$host_alias
14832host=$host
14833
14834# An echo program that does not interpret backslashes.
14835echo=$lt_echo
14836
14837# The archiver.
14838AR=$lt_AR
14839AR_FLAGS=$lt_AR_FLAGS
14840
14841# A C compiler.
14842LTCC=$lt_LTCC
14843
14844# A language-specific compiler.
14845CC=$lt_compiler_F77
14846
14847# Is the compiler the GNU C compiler?
14848with_gcc=$GCC_F77
14849
14850# An ERE matcher.
14851EGREP=$lt_EGREP
14852
14853# The linker used to build libraries.
14854LD=$lt_LD_F77
14855
14856# Whether we need hard or soft links.
14857LN_S=$lt_LN_S
14858
14859# A BSD-compatible nm program.
14860NM=$lt_NM
14861
14862# A symbol stripping program
14863STRIP=$lt_STRIP
14864
14865# Used to examine libraries when file_magic_cmd begins "file"
14866MAGIC_CMD=$MAGIC_CMD
14867
14868# Used on cygwin: DLL creation program.
14869DLLTOOL="$DLLTOOL"
14870
14871# Used on cygwin: object dumper.
14872OBJDUMP="$OBJDUMP"
14873
14874# Used on cygwin: assembler.
14875AS="$AS"
14876
14877# The name of the directory that contains temporary libtool files.
14878objdir=$objdir
14879
14880# How to create reloadable object files.
14881reload_flag=$lt_reload_flag
14882reload_cmds=$lt_reload_cmds
14883
14884# How to pass a linker flag through the compiler.
14885wl=$lt_lt_prog_compiler_wl_F77
14886
14887# Object file suffix (normally "o").
14888objext="$ac_objext"
14889
14890# Old archive suffix (normally "a").
14891libext="$libext"
14892
14893# Shared library suffix (normally ".so").
14894shrext='$shrext'
14895
14896# Executable file suffix (normally "").
14897exeext="$exeext"
14898
14899# Additional compiler flags for building library objects.
14900pic_flag=$lt_lt_prog_compiler_pic_F77
14901pic_mode=$pic_mode
14902
14903# What is the maximum length of a command?
14904max_cmd_len=$lt_cv_sys_max_cmd_len
14905
14906# Does compiler simultaneously support -c and -o options?
14907compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14908
14909# Must we lock files when doing compilation ?
14910need_locks=$lt_need_locks
14911
14912# Do we need the lib prefix for modules?
14913need_lib_prefix=$need_lib_prefix
14914
14915# Do we need a version for libraries?
14916need_version=$need_version
14917
14918# Whether dlopen is supported.
14919dlopen_support=$enable_dlopen
14920
14921# Whether dlopen of programs is supported.
14922dlopen_self=$enable_dlopen_self
14923
14924# Whether dlopen of statically linked programs is supported.
14925dlopen_self_static=$enable_dlopen_self_static
14926
14927# Compiler flag to prevent dynamic linking.
14928link_static_flag=$lt_lt_prog_compiler_static_F77
14929
14930# Compiler flag to turn off builtin functions.
14931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14932
14933# Compiler flag to allow reflexive dlopens.
14934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14935
14936# Compiler flag to generate shared objects directly from archives.
14937whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14938
14939# Compiler flag to generate thread-safe objects.
14940thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14941
14942# Library versioning type.
14943version_type=$version_type
14944
14945# Format of library name prefix.
14946libname_spec=$lt_libname_spec
14947
14948# List of archive names.  First name is the real one, the rest are links.
14949# The last name is the one that the linker finds with -lNAME.
14950library_names_spec=$lt_library_names_spec
14951
14952# The coded name of the library, if different from the real name.
14953soname_spec=$lt_soname_spec
14954
14955# Commands used to build and install an old-style archive.
14956RANLIB=$lt_RANLIB
14957old_archive_cmds=$lt_old_archive_cmds_F77
14958old_postinstall_cmds=$lt_old_postinstall_cmds
14959old_postuninstall_cmds=$lt_old_postuninstall_cmds
14960
14961# Create an old-style archive from a shared archive.
14962old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14963
14964# Create a temporary old-style archive to link instead of a shared archive.
14965old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14966
14967# Commands used to build and install a shared archive.
14968archive_cmds=$lt_archive_cmds_F77
14969archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14970postinstall_cmds=$lt_postinstall_cmds
14971postuninstall_cmds=$lt_postuninstall_cmds
14972
14973# Commands used to build a loadable module (assumed same as above if empty)
14974module_cmds=$lt_module_cmds_F77
14975module_expsym_cmds=$lt_module_expsym_cmds_F77
14976
14977# Commands to strip libraries.
14978old_striplib=$lt_old_striplib
14979striplib=$lt_striplib
14980
14981# Dependencies to place before the objects being linked to create a
14982# shared library.
14983predep_objects=$lt_predep_objects_F77
14984
14985# Dependencies to place after the objects being linked to create a
14986# shared library.
14987postdep_objects=$lt_postdep_objects_F77
14988
14989# Dependencies to place before the objects being linked to create a
14990# shared library.
14991predeps=$lt_predeps_F77
14992
14993# Dependencies to place after the objects being linked to create a
14994# shared library.
14995postdeps=$lt_postdeps_F77
14996
14997# The library search path used internally by the compiler when linking
14998# a shared library.
14999compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15000
15001# Method to check whether dependent libraries are shared objects.
15002deplibs_check_method=$lt_deplibs_check_method
15003
15004# Command to use when deplibs_check_method == file_magic.
15005file_magic_cmd=$lt_file_magic_cmd
15006
15007# Flag that allows shared libraries with undefined symbols to be built.
15008allow_undefined_flag=$lt_allow_undefined_flag_F77
15009
15010# Flag that forces no undefined symbols.
15011no_undefined_flag=$lt_no_undefined_flag_F77
15012
15013# Commands used to finish a libtool library installation in a directory.
15014finish_cmds=$lt_finish_cmds
15015
15016# Same as above, but a single script fragment to be evaled but not shown.
15017finish_eval=$lt_finish_eval
15018
15019# Take the output of nm and produce a listing of raw symbols and C names.
15020global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15021
15022# Transform the output of nm in a proper C declaration
15023global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15024
15025# Transform the output of nm in a C name address pair
15026global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15027
15028# This is the shared library runtime path variable.
15029runpath_var=$runpath_var
15030
15031# This is the shared library path variable.
15032shlibpath_var=$shlibpath_var
15033
15034# Is shlibpath searched before the hard-coded library search path?
15035shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15036
15037# How to hardcode a shared library path into an executable.
15038hardcode_action=$hardcode_action_F77
15039
15040# Whether we should hardcode library paths into libraries.
15041hardcode_into_libs=$hardcode_into_libs
15042
15043# Flag to hardcode \$libdir into a binary during linking.
15044# This must work even if \$libdir does not exist.
15045hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15046
15047# If ld is used when linking, flag to hardcode \$libdir into
15048# a binary during linking. This must work even if \$libdir does
15049# not exist.
15050hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15051
15052# Whether we need a single -rpath flag with a separated argument.
15053hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15054
15055# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15056# resulting binary.
15057hardcode_direct=$hardcode_direct_F77
15058
15059# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15060# resulting binary.
15061hardcode_minus_L=$hardcode_minus_L_F77
15062
15063# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15064# the resulting binary.
15065hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15066
15067# Set to yes if building a shared library automatically hardcodes DIR into the library
15068# and all subsequent libraries and executables linked against it.
15069hardcode_automatic=$hardcode_automatic_F77
15070
15071# Variables whose values should be saved in libtool wrapper scripts and
15072# restored at relink time.
15073variables_saved_for_relink="$variables_saved_for_relink"
15074
15075# Whether libtool must link a program against all its dependency libraries.
15076link_all_deplibs=$link_all_deplibs_F77
15077
15078# Compile-time system search path for libraries
15079sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15080
15081# Run-time system search path for libraries
15082sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15083
15084# Fix the shell variable \$srcfile for the compiler.
15085fix_srcfile_path="$fix_srcfile_path_F77"
15086
15087# Set to yes if exported symbols are required.
15088always_export_symbols=$always_export_symbols_F77
15089
15090# The commands to list exported symbols.
15091export_symbols_cmds=$lt_export_symbols_cmds_F77
15092
15093# The commands to extract the exported symbol list from a shared archive.
15094extract_expsyms_cmds=$lt_extract_expsyms_cmds
15095
15096# Symbols that should not be listed in the preloaded symbols.
15097exclude_expsyms=$lt_exclude_expsyms_F77
15098
15099# Symbols that must always be exported.
15100include_expsyms=$lt_include_expsyms_F77
15101
15102# ### END LIBTOOL TAG CONFIG: $tagname
15103
15104__EOF__
15105
15106
15107else
15108  # If there is no Makefile yet, we rely on a make rule to execute
15109  # `config.status --recheck' to rerun these tests and create the
15110  # libtool script then.
15111  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15112  if test -f "$ltmain_in"; then
15113    test -f Makefile && make "$ltmain"
15114  fi
15115fi
15116
15117
15118ac_ext=c
15119ac_cpp='$CPP $CPPFLAGS'
15120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124CC="$lt_save_CC"
15125
15126	else
15127	  tagname=""
15128	fi
15129	;;
15130
15131      GCJ)
15132	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15133
15134
15135# Source file extension for Java test sources.
15136ac_ext=java
15137
15138# Object file extension for compiled Java test sources.
15139objext=o
15140objext_GCJ=$objext
15141
15142# Code to be used in simple compile tests
15143lt_simple_compile_test_code="class foo {}\n"
15144
15145# Code to be used in simple link tests
15146lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15147
15148# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15149
15150# If no C compiler was specified, use CC.
15151LTCC=${LTCC-"$CC"}
15152
15153# Allow CC to be a program name with arguments.
15154compiler=$CC
15155
15156
15157# Allow CC to be a program name with arguments.
15158lt_save_CC="$CC"
15159CC=${GCJ-"gcj"}
15160compiler=$CC
15161compiler_GCJ=$CC
15162
15163# GCJ did not exist at the time GCC didn't implicitly link libc in.
15164archive_cmds_need_lc_GCJ=no
15165
15166
15167lt_prog_compiler_no_builtin_flag_GCJ=
15168
15169if test "$GCC" = yes; then
15170  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15171
15172
15173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15174$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15175if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15176  $as_echo_n "(cached) " >&6
15177else
15178  lt_cv_prog_compiler_rtti_exceptions=no
15179  ac_outfile=conftest.$ac_objext
15180   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15181   lt_compiler_flag="-fno-rtti -fno-exceptions"
15182   # Insert the option either (1) after the last *FLAGS variable, or
15183   # (2) before a word containing "conftest.", or (3) at the end.
15184   # Note that $ac_compile itself does not contain backslashes and begins
15185   # with a dollar sign (not a hyphen), so the echo should work correctly.
15186   # The option is referenced via a variable to avoid confusing sed.
15187   lt_compile=`echo "$ac_compile" | $SED \
15188   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15190   -e 's:$: $lt_compiler_flag:'`
15191   (eval echo "\"\$as_me:15191: $lt_compile\"" >&5)
15192   (eval "$lt_compile" 2>conftest.err)
15193   ac_status=$?
15194   cat conftest.err >&5
15195   echo "$as_me:15195: \$? = $ac_status" >&5
15196   if (exit $ac_status) && test -s "$ac_outfile"; then
15197     # The compiler can only warn and ignore the option if not recognized
15198     # So say no if there are warnings
15199     if test ! -s conftest.err; then
15200       lt_cv_prog_compiler_rtti_exceptions=yes
15201     fi
15202   fi
15203   $rm conftest*
15204
15205fi
15206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15207$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15208
15209if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15210    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15211else
15212    :
15213fi
15214
15215fi
15216
15217lt_prog_compiler_wl_GCJ=
15218lt_prog_compiler_pic_GCJ=
15219lt_prog_compiler_static_GCJ=
15220
15221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15222$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15223
15224  if test "$GCC" = yes; then
15225    lt_prog_compiler_wl_GCJ='-Wl,'
15226    lt_prog_compiler_static_GCJ='-static'
15227
15228    case $host_os in
15229      aix*)
15230      # All AIX code is PIC.
15231      if test "$host_cpu" = ia64; then
15232	# AIX 5 now supports IA64 processor
15233	lt_prog_compiler_static_GCJ='-Bstatic'
15234      fi
15235      ;;
15236
15237    amigaos*)
15238      # FIXME: we need at least 68020 code to build shared libraries, but
15239      # adding the `-m68020' flag to GCC prevents building anything better,
15240      # like `-m68040'.
15241      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15242      ;;
15243
15244    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15245      # PIC is the default for these OSes.
15246      ;;
15247
15248    mingw* | pw32* | os2*)
15249      # This hack is so that the source file can tell whether it is being
15250      # built for inclusion in a dll (and should export symbols for example).
15251      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15252      ;;
15253
15254    darwin* | rhapsody*)
15255      # PIC is the default on this platform
15256      # Common symbols not allowed in MH_DYLIB files
15257      lt_prog_compiler_pic_GCJ='-fno-common'
15258      ;;
15259
15260    msdosdjgpp*)
15261      # Just because we use GCC doesn't mean we suddenly get shared libraries
15262      # on systems that don't support them.
15263      lt_prog_compiler_can_build_shared_GCJ=no
15264      enable_shared=no
15265      ;;
15266
15267    sysv4*MP*)
15268      if test -d /usr/nec; then
15269	lt_prog_compiler_pic_GCJ=-Kconform_pic
15270      fi
15271      ;;
15272
15273    hpux*)
15274      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15275      # not for PA HP-UX.
15276      case "$host_cpu" in
15277      hppa*64*|ia64*)
15278	# +Z the default
15279	;;
15280      *)
15281	lt_prog_compiler_pic_GCJ='-fPIC'
15282	;;
15283      esac
15284      ;;
15285
15286    *)
15287      lt_prog_compiler_pic_GCJ='-fPIC'
15288      ;;
15289    esac
15290  else
15291    # PORTME Check for flag to pass linker flags through the system compiler.
15292    case $host_os in
15293    aix*)
15294      lt_prog_compiler_wl_GCJ='-Wl,'
15295      if test "$host_cpu" = ia64; then
15296	# AIX 5 now supports IA64 processor
15297	lt_prog_compiler_static_GCJ='-Bstatic'
15298      else
15299	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15300      fi
15301      ;;
15302
15303    mingw* | pw32* | os2*)
15304      # This hack is so that the source file can tell whether it is being
15305      # built for inclusion in a dll (and should export symbols for example).
15306      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15307      ;;
15308
15309    hpux9* | hpux10* | hpux11*)
15310      lt_prog_compiler_wl_GCJ='-Wl,'
15311      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15312      # not for PA HP-UX.
15313      case "$host_cpu" in
15314      hppa*64*|ia64*)
15315	# +Z the default
15316	;;
15317      *)
15318	lt_prog_compiler_pic_GCJ='+Z'
15319	;;
15320      esac
15321      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15322      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15323      ;;
15324
15325    irix5* | irix6* | nonstopux*)
15326      lt_prog_compiler_wl_GCJ='-Wl,'
15327      # PIC (with -KPIC) is the default.
15328      lt_prog_compiler_static_GCJ='-non_shared'
15329      ;;
15330
15331    newsos6)
15332      lt_prog_compiler_pic_GCJ='-KPIC'
15333      lt_prog_compiler_static_GCJ='-Bstatic'
15334      ;;
15335
15336    linux*)
15337      case $CC in
15338      icc* | ecc*)
15339	lt_prog_compiler_wl_GCJ='-Wl,'
15340	lt_prog_compiler_pic_GCJ='-KPIC'
15341	lt_prog_compiler_static_GCJ='-static'
15342        ;;
15343      ccc*)
15344        lt_prog_compiler_wl_GCJ='-Wl,'
15345        # All Alpha code is PIC.
15346        lt_prog_compiler_static_GCJ='-non_shared'
15347        ;;
15348      esac
15349      ;;
15350
15351    osf3* | osf4* | osf5*)
15352      lt_prog_compiler_wl_GCJ='-Wl,'
15353      # All OSF/1 code is PIC.
15354      lt_prog_compiler_static_GCJ='-non_shared'
15355      ;;
15356
15357    sco3.2v5*)
15358      lt_prog_compiler_pic_GCJ='-Kpic'
15359      lt_prog_compiler_static_GCJ='-dn'
15360      ;;
15361
15362    solaris*)
15363      lt_prog_compiler_wl_GCJ='-Wl,'
15364      lt_prog_compiler_pic_GCJ='-KPIC'
15365      lt_prog_compiler_static_GCJ='-Bstatic'
15366      ;;
15367
15368    sunos4*)
15369      lt_prog_compiler_wl_GCJ='-Qoption ld '
15370      lt_prog_compiler_pic_GCJ='-PIC'
15371      lt_prog_compiler_static_GCJ='-Bstatic'
15372      ;;
15373
15374    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15375      lt_prog_compiler_wl_GCJ='-Wl,'
15376      lt_prog_compiler_pic_GCJ='-KPIC'
15377      lt_prog_compiler_static_GCJ='-Bstatic'
15378      ;;
15379
15380    sysv4*MP*)
15381      if test -d /usr/nec ;then
15382	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15383	lt_prog_compiler_static_GCJ='-Bstatic'
15384      fi
15385      ;;
15386
15387    uts4*)
15388      lt_prog_compiler_pic_GCJ='-pic'
15389      lt_prog_compiler_static_GCJ='-Bstatic'
15390      ;;
15391
15392    *)
15393      lt_prog_compiler_can_build_shared_GCJ=no
15394      ;;
15395    esac
15396  fi
15397
15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15399$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15400
15401#
15402# Check to make sure the PIC flag actually works.
15403#
15404if test -n "$lt_prog_compiler_pic_GCJ"; then
15405
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15407$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15408if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
15409  $as_echo_n "(cached) " >&6
15410else
15411  lt_prog_compiler_pic_works_GCJ=no
15412  ac_outfile=conftest.$ac_objext
15413   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15414   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15415   # Insert the option either (1) after the last *FLAGS variable, or
15416   # (2) before a word containing "conftest.", or (3) at the end.
15417   # Note that $ac_compile itself does not contain backslashes and begins
15418   # with a dollar sign (not a hyphen), so the echo should work correctly.
15419   # The option is referenced via a variable to avoid confusing sed.
15420   lt_compile=`echo "$ac_compile" | $SED \
15421   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15422   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423   -e 's:$: $lt_compiler_flag:'`
15424   (eval echo "\"\$as_me:15424: $lt_compile\"" >&5)
15425   (eval "$lt_compile" 2>conftest.err)
15426   ac_status=$?
15427   cat conftest.err >&5
15428   echo "$as_me:15428: \$? = $ac_status" >&5
15429   if (exit $ac_status) && test -s "$ac_outfile"; then
15430     # The compiler can only warn and ignore the option if not recognized
15431     # So say no if there are warnings
15432     if test ! -s conftest.err; then
15433       lt_prog_compiler_pic_works_GCJ=yes
15434     fi
15435   fi
15436   $rm conftest*
15437
15438fi
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15440$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15441
15442if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15443    case $lt_prog_compiler_pic_GCJ in
15444     "" | " "*) ;;
15445     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15446     esac
15447else
15448    lt_prog_compiler_pic_GCJ=
15449     lt_prog_compiler_can_build_shared_GCJ=no
15450fi
15451
15452fi
15453case "$host_os" in
15454  # For platforms which do not support PIC, -DPIC is meaningless:
15455  *djgpp*)
15456    lt_prog_compiler_pic_GCJ=
15457    ;;
15458  *)
15459    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15460    ;;
15461esac
15462
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15464$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15465if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
15466  $as_echo_n "(cached) " >&6
15467else
15468  lt_cv_prog_compiler_c_o_GCJ=no
15469   $rm -r conftest 2>/dev/null
15470   mkdir conftest
15471   cd conftest
15472   mkdir out
15473   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15474
15475   lt_compiler_flag="-o out/conftest2.$ac_objext"
15476   # Insert the option either (1) after the last *FLAGS variable, or
15477   # (2) before a word containing "conftest.", or (3) at the end.
15478   # Note that $ac_compile itself does not contain backslashes and begins
15479   # with a dollar sign (not a hyphen), so the echo should work correctly.
15480   lt_compile=`echo "$ac_compile" | $SED \
15481   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483   -e 's:$: $lt_compiler_flag:'`
15484   (eval echo "\"\$as_me:15484: $lt_compile\"" >&5)
15485   (eval "$lt_compile" 2>out/conftest.err)
15486   ac_status=$?
15487   cat out/conftest.err >&5
15488   echo "$as_me:15488: \$? = $ac_status" >&5
15489   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15490   then
15491     # The compiler can only warn and ignore the option if not recognized
15492     # So say no if there are warnings
15493     if test ! -s out/conftest.err; then
15494       lt_cv_prog_compiler_c_o_GCJ=yes
15495     fi
15496   fi
15497   chmod u+w .
15498   $rm conftest*
15499   # SGI C++ compiler will create directory out/ii_files/ for
15500   # template instantiation
15501   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15502   $rm out/* && rmdir out
15503   cd ..
15504   rmdir conftest
15505   $rm conftest*
15506
15507fi
15508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15509$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15510
15511
15512hard_links="nottested"
15513if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15514  # do not overwrite the value of need_locks provided by the user
15515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15516$as_echo_n "checking if we can lock with hard links... " >&6; }
15517  hard_links=yes
15518  $rm conftest*
15519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15520  touch conftest.a
15521  ln conftest.a conftest.b 2>&5 || hard_links=no
15522  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15524$as_echo "$hard_links" >&6; }
15525  if test "$hard_links" = no; then
15526    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15527$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15528    need_locks=warn
15529  fi
15530else
15531  need_locks=no
15532fi
15533
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15535$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15536
15537  runpath_var=
15538  allow_undefined_flag_GCJ=
15539  enable_shared_with_static_runtimes_GCJ=no
15540  archive_cmds_GCJ=
15541  archive_expsym_cmds_GCJ=
15542  old_archive_From_new_cmds_GCJ=
15543  old_archive_from_expsyms_cmds_GCJ=
15544  export_dynamic_flag_spec_GCJ=
15545  whole_archive_flag_spec_GCJ=
15546  thread_safe_flag_spec_GCJ=
15547  hardcode_libdir_flag_spec_GCJ=
15548  hardcode_libdir_flag_spec_ld_GCJ=
15549  hardcode_libdir_separator_GCJ=
15550  hardcode_direct_GCJ=no
15551  hardcode_minus_L_GCJ=no
15552  hardcode_shlibpath_var_GCJ=unsupported
15553  link_all_deplibs_GCJ=unknown
15554  hardcode_automatic_GCJ=no
15555  module_cmds_GCJ=
15556  module_expsym_cmds_GCJ=
15557  always_export_symbols_GCJ=no
15558  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15559  # include_expsyms should be a list of space-separated symbols to be *always*
15560  # included in the symbol list
15561  include_expsyms_GCJ=
15562  # exclude_expsyms can be an extended regexp of symbols to exclude
15563  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15564  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15565  # as well as any symbol that contains `d'.
15566  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15567  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15568  # platforms (ab)use it in PIC code, but their linkers get confused if
15569  # the symbol is explicitly referenced.  Since portable code cannot
15570  # rely on this symbol name, it's probably fine to never include it in
15571  # preloaded symbol tables.
15572  extract_expsyms_cmds=
15573
15574  case $host_os in
15575  cygwin* | mingw* | pw32*)
15576    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15577    # When not using gcc, we currently assume that we are using
15578    # Microsoft Visual C++.
15579    if test "$GCC" != yes; then
15580      with_gnu_ld=no
15581    fi
15582    ;;
15583  openbsd*)
15584    with_gnu_ld=no
15585    ;;
15586  esac
15587
15588  ld_shlibs_GCJ=yes
15589  if test "$with_gnu_ld" = yes; then
15590    # If archive_cmds runs LD, not CC, wlarc should be empty
15591    wlarc='${wl}'
15592
15593    # See if GNU ld supports shared libraries.
15594    case $host_os in
15595    aix3* | aix4* | aix5*)
15596      # On AIX/PPC, the GNU linker is very broken
15597      if test "$host_cpu" != ia64; then
15598	ld_shlibs_GCJ=no
15599	cat <<EOF 1>&2
15600
15601*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15602*** to be unable to reliably create shared libraries on AIX.
15603*** Therefore, libtool is disabling shared libraries support.  If you
15604*** really care for shared libraries, you may want to modify your PATH
15605*** so that a non-GNU linker is found, and then restart.
15606
15607EOF
15608      fi
15609      ;;
15610
15611    amigaos*)
15612      archive_cmds_GCJ='$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)'
15613      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15614      hardcode_minus_L_GCJ=yes
15615
15616      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15617      # that the semantics of dynamic libraries on AmigaOS, at least up
15618      # to version 4, is to share data among multiple programs linked
15619      # with the same dynamic library.  Since this doesn't match the
15620      # behavior of shared libraries on other platforms, we can't use
15621      # them.
15622      ld_shlibs_GCJ=no
15623      ;;
15624
15625    beos*)
15626      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15627	allow_undefined_flag_GCJ=unsupported
15628	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15629	# support --undefined.  This deserves some investigation.  FIXME
15630	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631      else
15632	ld_shlibs_GCJ=no
15633      fi
15634      ;;
15635
15636    cygwin* | mingw* | pw32*)
15637      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15638      # as there is no search path for DLLs.
15639      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640      allow_undefined_flag_GCJ=unsupported
15641      always_export_symbols_GCJ=no
15642      enable_shared_with_static_runtimes_GCJ=yes
15643      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15644
15645      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15646        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15647	# If the export-symbols file already is a .def file (1st line
15648	# is EXPORTS), use it as is; otherwise, prepend...
15649	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15650	  cp $export_symbols $output_objdir/$soname.def;
15651	else
15652	  echo EXPORTS > $output_objdir/$soname.def;
15653	  cat $export_symbols >> $output_objdir/$soname.def;
15654	fi~
15655	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15656      else
15657	ld_shlibs=no
15658      fi
15659      ;;
15660
15661    netbsd* | knetbsd*-gnu)
15662      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15664	wlarc=
15665      else
15666	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15667	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15668      fi
15669      ;;
15670
15671    solaris* | sysv5*)
15672      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15673	ld_shlibs_GCJ=no
15674	cat <<EOF 1>&2
15675
15676*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15677*** create shared libraries on Solaris systems.  Therefore, libtool
15678*** is disabling shared libraries support.  We urge you to upgrade GNU
15679*** binutils to release 2.9.1 or newer.  Another option is to modify
15680*** your PATH or compiler configuration so that the native linker is
15681*** used, and then restart.
15682
15683EOF
15684      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15685	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15687      else
15688	ld_shlibs_GCJ=no
15689      fi
15690      ;;
15691
15692    sunos4*)
15693      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15694      wlarc=
15695      hardcode_direct_GCJ=yes
15696      hardcode_shlibpath_var_GCJ=no
15697      ;;
15698
15699  linux*)
15700    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15701        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702	archive_cmds_GCJ="$tmp_archive_cmds"
15703      supports_anon_versioning=no
15704      case `$LD -v 2>/dev/null` in
15705        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15706        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15707        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15708        *\ 2.11.*) ;; # other 2.11 versions
15709        *) supports_anon_versioning=yes ;;
15710      esac
15711      if test $supports_anon_versioning = yes; then
15712        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15713cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15714$echo "local: *; };" >> $output_objdir/$libname.ver~
15715        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15716      else
15717        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15718      fi
15719    else
15720      ld_shlibs_GCJ=no
15721    fi
15722    ;;
15723
15724    *)
15725      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15726	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15727	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15728      else
15729	ld_shlibs_GCJ=no
15730      fi
15731      ;;
15732    esac
15733
15734    if test "$ld_shlibs_GCJ" = yes; then
15735      runpath_var=LD_RUN_PATH
15736      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15737      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15738      # ancient GNU ld didn't support --whole-archive et. al.
15739      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15740 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15741      else
15742  	whole_archive_flag_spec_GCJ=
15743      fi
15744    fi
15745  else
15746    # PORTME fill in a description of your system's linker (not GNU ld)
15747    case $host_os in
15748    aix3*)
15749      allow_undefined_flag_GCJ=unsupported
15750      always_export_symbols_GCJ=yes
15751      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15752      # Note: this linker hardcodes the directories in LIBPATH if there
15753      # are no directories specified by -L.
15754      hardcode_minus_L_GCJ=yes
15755      if test "$GCC" = yes && test -z "$link_static_flag"; then
15756	# Neither direct hardcoding nor static linking is supported with a
15757	# broken collect2.
15758	hardcode_direct_GCJ=unsupported
15759      fi
15760      ;;
15761
15762    aix4* | aix5*)
15763      if test "$host_cpu" = ia64; then
15764	# On IA64, the linker does run time linking by default, so we don't
15765	# have to do anything special.
15766	aix_use_runtimelinking=no
15767	exp_sym_flag='-Bexport'
15768	no_entry_flag=""
15769      else
15770	# If we're using GNU nm, then we don't want the "-C" option.
15771	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15772	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15773	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15774	else
15775	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15776	fi
15777	aix_use_runtimelinking=no
15778
15779	# Test if we are trying to use run time linking or normal
15780	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15781	# need to do runtime linking.
15782	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15783	  for ld_flag in $LDFLAGS; do
15784  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15785  	    aix_use_runtimelinking=yes
15786  	    break
15787  	  fi
15788	  done
15789	esac
15790
15791	exp_sym_flag='-bexport'
15792	no_entry_flag='-bnoentry'
15793      fi
15794
15795      # When large executables or shared objects are built, AIX ld can
15796      # have problems creating the table of contents.  If linking a library
15797      # or program results in "error TOC overflow" add -mminimal-toc to
15798      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15799      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15800
15801      archive_cmds_GCJ=''
15802      hardcode_direct_GCJ=yes
15803      hardcode_libdir_separator_GCJ=':'
15804      link_all_deplibs_GCJ=yes
15805
15806      if test "$GCC" = yes; then
15807	case $host_os in aix4.012|aix4.012.*)
15808	# We only want to do this on AIX 4.2 and lower, the check
15809	# below for broken collect2 doesn't work under 4.3+
15810	  collect2name=`${CC} -print-prog-name=collect2`
15811	  if test -f "$collect2name" && \
15812  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15813	  then
15814  	  # We have reworked collect2
15815  	  hardcode_direct_GCJ=yes
15816	  else
15817  	  # We have old collect2
15818  	  hardcode_direct_GCJ=unsupported
15819  	  # It fails to find uninstalled libraries when the uninstalled
15820  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15821  	  # to unsupported forces relinking
15822  	  hardcode_minus_L_GCJ=yes
15823  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15824  	  hardcode_libdir_separator_GCJ=
15825	  fi
15826	esac
15827	shared_flag='-shared'
15828      else
15829	# not using gcc
15830	if test "$host_cpu" = ia64; then
15831  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15832  	# chokes on -Wl,-G. The following line is correct:
15833	  shared_flag='-G'
15834	else
15835  	if test "$aix_use_runtimelinking" = yes; then
15836	    shared_flag='${wl}-G'
15837	  else
15838	    shared_flag='${wl}-bM:SRE'
15839  	fi
15840	fi
15841      fi
15842
15843      # It seems that -bexpall does not export symbols beginning with
15844      # underscore (_), so it is better to generate a list of symbols to export.
15845      always_export_symbols_GCJ=yes
15846      if test "$aix_use_runtimelinking" = yes; then
15847	# Warning - without using the other runtime loading flags (-brtl),
15848	# -berok will link without error, but may produce a broken library.
15849	allow_undefined_flag_GCJ='-berok'
15850       # Determine the default libpath from the value encoded in an empty executable.
15851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852/* end confdefs.h.  */
15853
15854int
15855main ()
15856{
15857
15858  ;
15859  return 0;
15860}
15861_ACEOF
15862if ac_fn_c_try_link "$LINENO"; then :
15863
15864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15865}'`
15866# Check for a 64-bit object if we didn't find anything.
15867if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15868}'`; fi
15869fi
15870rm -f core conftest.err conftest.$ac_objext \
15871    conftest$ac_exeext conftest.$ac_ext
15872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15873
15874       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15875	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15876       else
15877	if test "$host_cpu" = ia64; then
15878	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15879	  allow_undefined_flag_GCJ="-z nodefs"
15880	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15881	else
15882	 # Determine the default libpath from the value encoded in an empty executable.
15883	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885
15886int
15887main ()
15888{
15889
15890  ;
15891  return 0;
15892}
15893_ACEOF
15894if ac_fn_c_try_link "$LINENO"; then :
15895
15896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15897}'`
15898# Check for a 64-bit object if we didn't find anything.
15899if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15900}'`; fi
15901fi
15902rm -f core conftest.err conftest.$ac_objext \
15903    conftest$ac_exeext conftest.$ac_ext
15904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15905
15906	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15907	  # Warning - without using the other run time loading flags,
15908	  # -berok will link without error, but may produce a broken library.
15909	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15910	  allow_undefined_flag_GCJ=' ${wl}-berok'
15911	  # -bexpall does not export symbols beginning with underscore (_)
15912	  always_export_symbols_GCJ=yes
15913	  # Exported symbols can be pulled into shared objects from archives
15914	  whole_archive_flag_spec_GCJ=' '
15915	  archive_cmds_need_lc_GCJ=yes
15916	  # This is similar to how AIX traditionally builds it's shared libraries.
15917	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15918	fi
15919      fi
15920      ;;
15921
15922    amigaos*)
15923      archive_cmds_GCJ='$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)'
15924      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15925      hardcode_minus_L_GCJ=yes
15926      # see comment about different semantics on the GNU ld section
15927      ld_shlibs_GCJ=no
15928      ;;
15929
15930    bsdi4*)
15931      export_dynamic_flag_spec_GCJ=-rdynamic
15932      ;;
15933
15934    cygwin* | mingw* | pw32*)
15935      # When not using gcc, we currently assume that we are using
15936      # Microsoft Visual C++.
15937      # hardcode_libdir_flag_spec is actually meaningless, as there is
15938      # no search path for DLLs.
15939      hardcode_libdir_flag_spec_GCJ=' '
15940      allow_undefined_flag_GCJ=unsupported
15941      # Tell ltmain to make .lib files, not .a files.
15942      libext=lib
15943      # Tell ltmain to make .dll files, not .so files.
15944      shrext=".dll"
15945      # FIXME: Setting linknames here is a bad hack.
15946      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15947      # The linker will automatically build a .lib file if we build a DLL.
15948      old_archive_From_new_cmds_GCJ='true'
15949      # FIXME: Should let the user specify the lib program.
15950      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15951      fix_srcfile_path='`cygpath -w "$srcfile"`'
15952      enable_shared_with_static_runtimes_GCJ=yes
15953      ;;
15954
15955    darwin* | rhapsody*)
15956    if test "$GXX" = yes ; then
15957      archive_cmds_need_lc_GCJ=no
15958      case "$host_os" in
15959      rhapsody* | darwin1.[012])
15960	allow_undefined_flag_GCJ='-undefined suppress'
15961	;;
15962      *) # Darwin 1.3 on
15963      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15964      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15965      else
15966        case ${MACOSX_DEPLOYMENT_TARGET} in
15967          10.[012])
15968            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15969            ;;
15970          10.*)
15971            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15972            ;;
15973        esac
15974      fi
15975	;;
15976      esac
15977    	lt_int_apple_cc_single_mod=no
15978    	output_verbose_link_cmd='echo'
15979    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15980    	  lt_int_apple_cc_single_mod=yes
15981    	fi
15982    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15983    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15984    	else
15985        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15986      fi
15987      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15988      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15989        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15990          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15991        else
15992          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15993        fi
15994          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15995      hardcode_direct_GCJ=no
15996      hardcode_automatic_GCJ=yes
15997      hardcode_shlibpath_var_GCJ=unsupported
15998      whole_archive_flag_spec_GCJ='-all_load $convenience'
15999      link_all_deplibs_GCJ=yes
16000    else
16001      ld_shlibs_GCJ=no
16002    fi
16003      ;;
16004
16005    dgux*)
16006      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16007      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16008      hardcode_shlibpath_var_GCJ=no
16009      ;;
16010
16011    freebsd1*)
16012      ld_shlibs_GCJ=no
16013      ;;
16014
16015    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16016    # support.  Future versions do this automatically, but an explicit c++rt0.o
16017    # does not break anything, and helps significantly (at the cost of a little
16018    # extra space).
16019    freebsd2.2*)
16020      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16021      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16022      hardcode_direct_GCJ=yes
16023      hardcode_shlibpath_var_GCJ=no
16024      ;;
16025
16026    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16027    freebsd2*)
16028      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16029      hardcode_direct_GCJ=yes
16030      hardcode_minus_L_GCJ=yes
16031      hardcode_shlibpath_var_GCJ=no
16032      ;;
16033
16034    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16035    freebsd* | kfreebsd*-gnu)
16036      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16037      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16038      hardcode_direct_GCJ=yes
16039      hardcode_shlibpath_var_GCJ=no
16040      ;;
16041
16042    hpux9*)
16043      if test "$GCC" = yes; then
16044	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16045      else
16046	archive_cmds_GCJ='$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'
16047      fi
16048      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16049      hardcode_libdir_separator_GCJ=:
16050      hardcode_direct_GCJ=yes
16051
16052      # hardcode_minus_L: Not really in the search PATH,
16053      # but as the default location of the library.
16054      hardcode_minus_L_GCJ=yes
16055      export_dynamic_flag_spec_GCJ='${wl}-E'
16056      ;;
16057
16058    hpux10* | hpux11*)
16059      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16060	case "$host_cpu" in
16061	hppa*64*|ia64*)
16062	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16063	  ;;
16064	*)
16065	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16066	  ;;
16067	esac
16068      else
16069	case "$host_cpu" in
16070	hppa*64*|ia64*)
16071	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16072	  ;;
16073	*)
16074	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16075	  ;;
16076	esac
16077      fi
16078      if test "$with_gnu_ld" = no; then
16079	case "$host_cpu" in
16080	hppa*64*)
16081	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16082	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16083	  hardcode_libdir_separator_GCJ=:
16084	  hardcode_direct_GCJ=no
16085	  hardcode_shlibpath_var_GCJ=no
16086	  ;;
16087	ia64*)
16088	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16089	  hardcode_direct_GCJ=no
16090	  hardcode_shlibpath_var_GCJ=no
16091
16092	  # hardcode_minus_L: Not really in the search PATH,
16093	  # but as the default location of the library.
16094	  hardcode_minus_L_GCJ=yes
16095	  ;;
16096	*)
16097	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16098	  hardcode_libdir_separator_GCJ=:
16099	  hardcode_direct_GCJ=yes
16100	  export_dynamic_flag_spec_GCJ='${wl}-E'
16101
16102	  # hardcode_minus_L: Not really in the search PATH,
16103	  # but as the default location of the library.
16104	  hardcode_minus_L_GCJ=yes
16105	  ;;
16106	esac
16107      fi
16108      ;;
16109
16110    irix5* | irix6* | nonstopux*)
16111      if test "$GCC" = yes; then
16112	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16113      else
16114	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16115	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16116      fi
16117      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16118      hardcode_libdir_separator_GCJ=:
16119      link_all_deplibs_GCJ=yes
16120      ;;
16121
16122    netbsd* | knetbsd*-gnu)
16123      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16124	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16125      else
16126	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16127      fi
16128      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16129      hardcode_direct_GCJ=yes
16130      hardcode_shlibpath_var_GCJ=no
16131      ;;
16132
16133    newsos6)
16134      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135      hardcode_direct_GCJ=yes
16136      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16137      hardcode_libdir_separator_GCJ=:
16138      hardcode_shlibpath_var_GCJ=no
16139      ;;
16140
16141    openbsd*)
16142      hardcode_direct_GCJ=yes
16143      hardcode_shlibpath_var_GCJ=no
16144      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16147	export_dynamic_flag_spec_GCJ='${wl}-E'
16148      else
16149       case $host_os in
16150	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16151	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16153	   ;;
16154	 *)
16155	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16156	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16157	   ;;
16158       esac
16159      fi
16160      ;;
16161
16162    os2*)
16163      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164      hardcode_minus_L_GCJ=yes
16165      allow_undefined_flag_GCJ=unsupported
16166      archive_cmds_GCJ='$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'
16167      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16168      ;;
16169
16170    osf3*)
16171      if test "$GCC" = yes; then
16172	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16173	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16174      else
16175	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16176	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16177      fi
16178      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16179      hardcode_libdir_separator_GCJ=:
16180      ;;
16181
16182    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16183      if test "$GCC" = yes; then
16184	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16185	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16186	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16187      else
16188	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16189	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16190	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16191	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16192
16193	# Both c and cxx compiler support -rpath directly
16194	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16195      fi
16196      hardcode_libdir_separator_GCJ=:
16197      ;;
16198
16199    sco3.2v5*)
16200      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201      hardcode_shlibpath_var_GCJ=no
16202      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16203      runpath_var=LD_RUN_PATH
16204      hardcode_runpath_var=yes
16205      ;;
16206
16207    solaris*)
16208      no_undefined_flag_GCJ=' -z text'
16209      if test "$GCC" = yes; then
16210	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16211	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16212	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16213      else
16214	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16216  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16217      fi
16218      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16219      hardcode_shlibpath_var_GCJ=no
16220      case $host_os in
16221      solaris2.[0-5] | solaris2.[0-5].*) ;;
16222      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16223	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16224      esac
16225      link_all_deplibs_GCJ=yes
16226      ;;
16227
16228    sunos4*)
16229      if test "x$host_vendor" = xsequent; then
16230	# Use $CC to link under sequent, because it throws in some extra .o
16231	# files that make .init and .fini sections work.
16232	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16233      else
16234	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16235      fi
16236      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16237      hardcode_direct_GCJ=yes
16238      hardcode_minus_L_GCJ=yes
16239      hardcode_shlibpath_var_GCJ=no
16240      ;;
16241
16242    sysv4)
16243      case $host_vendor in
16244	sni)
16245	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246	  hardcode_direct_GCJ=yes # is this really true???
16247	;;
16248	siemens)
16249	  ## LD is ld it makes a PLAMLIB
16250	  ## CC just makes a GrossModule.
16251	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16252	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16253	  hardcode_direct_GCJ=no
16254        ;;
16255	motorola)
16256	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16258	;;
16259      esac
16260      runpath_var='LD_RUN_PATH'
16261      hardcode_shlibpath_var_GCJ=no
16262      ;;
16263
16264    sysv4.3*)
16265      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266      hardcode_shlibpath_var_GCJ=no
16267      export_dynamic_flag_spec_GCJ='-Bexport'
16268      ;;
16269
16270    sysv4*MP*)
16271      if test -d /usr/nec; then
16272	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273	hardcode_shlibpath_var_GCJ=no
16274	runpath_var=LD_RUN_PATH
16275	hardcode_runpath_var=yes
16276	ld_shlibs_GCJ=yes
16277      fi
16278      ;;
16279
16280    sysv4.2uw2*)
16281      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16282      hardcode_direct_GCJ=yes
16283      hardcode_minus_L_GCJ=no
16284      hardcode_shlibpath_var_GCJ=no
16285      hardcode_runpath_var=yes
16286      runpath_var=LD_RUN_PATH
16287      ;;
16288
16289   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16290      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16291      if test "$GCC" = yes; then
16292	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16293      else
16294	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295      fi
16296      runpath_var='LD_RUN_PATH'
16297      hardcode_shlibpath_var_GCJ=no
16298      ;;
16299
16300    sysv5*)
16301      no_undefined_flag_GCJ=' -z text'
16302      # $CC -shared without GNU ld will not create a library from C++
16303      # object files and a static libstdc++, better avoid it by now
16304      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16305      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16306  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16307      hardcode_libdir_flag_spec_GCJ=
16308      hardcode_shlibpath_var_GCJ=no
16309      runpath_var='LD_RUN_PATH'
16310      ;;
16311
16312    uts4*)
16313      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16315      hardcode_shlibpath_var_GCJ=no
16316      ;;
16317
16318    *)
16319      ld_shlibs_GCJ=no
16320      ;;
16321    esac
16322  fi
16323
16324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16325$as_echo "$ld_shlibs_GCJ" >&6; }
16326test "$ld_shlibs_GCJ" = no && can_build_shared=no
16327
16328variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16329if test "$GCC" = yes; then
16330  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16331fi
16332
16333#
16334# Do we need to explicitly link libc?
16335#
16336case "x$archive_cmds_need_lc_GCJ" in
16337x|xyes)
16338  # Assume -lc should be added
16339  archive_cmds_need_lc_GCJ=yes
16340
16341  if test "$enable_shared" = yes && test "$GCC" = yes; then
16342    case $archive_cmds_GCJ in
16343    *'~'*)
16344      # FIXME: we may have to deal with multi-command sequences.
16345      ;;
16346    '$CC '*)
16347      # Test whether the compiler implicitly links with -lc since on some
16348      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16349      # to ld, don't add -lc before -lgcc.
16350      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16351$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16352      $rm conftest*
16353      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16354
16355      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16356  (eval $ac_compile) 2>&5
16357  ac_status=$?
16358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359  test $ac_status = 0; } 2>conftest.err; then
16360        soname=conftest
16361        lib=conftest
16362        libobjs=conftest.$ac_objext
16363        deplibs=
16364        wl=$lt_prog_compiler_wl_GCJ
16365        compiler_flags=-v
16366        linker_flags=-v
16367        verstring=
16368        output_objdir=.
16369        libname=conftest
16370        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16371        allow_undefined_flag_GCJ=
16372        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16373  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16374  ac_status=$?
16375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16376  test $ac_status = 0; }
16377        then
16378	  archive_cmds_need_lc_GCJ=no
16379        else
16380	  archive_cmds_need_lc_GCJ=yes
16381        fi
16382        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16383      else
16384        cat conftest.err 1>&5
16385      fi
16386      $rm conftest*
16387      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
16388$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16389      ;;
16390    esac
16391  fi
16392  ;;
16393esac
16394
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16396$as_echo_n "checking dynamic linker characteristics... " >&6; }
16397library_names_spec=
16398libname_spec='lib$name'
16399soname_spec=
16400shrext=".so"
16401postinstall_cmds=
16402postuninstall_cmds=
16403finish_cmds=
16404finish_eval=
16405shlibpath_var=
16406shlibpath_overrides_runpath=unknown
16407version_type=none
16408dynamic_linker="$host_os ld.so"
16409sys_lib_dlsearch_path_spec="/lib /usr/lib"
16410if test "$GCC" = yes; then
16411  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16412  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16413    # if the path contains ";" then we assume it to be the separator
16414    # otherwise default to the standard path separator (i.e. ":") - it is
16415    # assumed that no part of a normal pathname contains ";" but that should
16416    # okay in the real world where ";" in dirpaths is itself problematic.
16417    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16418  else
16419    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16420  fi
16421else
16422  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16423fi
16424need_lib_prefix=unknown
16425hardcode_into_libs=no
16426
16427# when you set need_version to no, make sure it does not cause -set_version
16428# flags to be left without arguments
16429need_version=unknown
16430
16431case $host_os in
16432aix3*)
16433  version_type=linux
16434  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16435  shlibpath_var=LIBPATH
16436
16437  # AIX 3 has no versioning support, so we append a major version to the name.
16438  soname_spec='${libname}${release}${shared_ext}$major'
16439  ;;
16440
16441aix4* | aix5*)
16442  version_type=linux
16443  need_lib_prefix=no
16444  need_version=no
16445  hardcode_into_libs=yes
16446  if test "$host_cpu" = ia64; then
16447    # AIX 5 supports IA64
16448    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16449    shlibpath_var=LD_LIBRARY_PATH
16450  else
16451    # With GCC up to 2.95.x, collect2 would create an import file
16452    # for dependence libraries.  The import file would start with
16453    # the line `#! .'.  This would cause the generated library to
16454    # depend on `.', always an invalid library.  This was fixed in
16455    # development snapshots of GCC prior to 3.0.
16456    case $host_os in
16457      aix4 | aix4.[01] | aix4.[01].*)
16458      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16459	   echo ' yes '
16460	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16461	:
16462      else
16463	can_build_shared=no
16464      fi
16465      ;;
16466    esac
16467    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16468    # soname into executable. Probably we can add versioning support to
16469    # collect2, so additional links can be useful in future.
16470    if test "$aix_use_runtimelinking" = yes; then
16471      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16472      # instead of lib<name>.a to let people know that these are not
16473      # typical AIX shared libraries.
16474      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475    else
16476      # We preserve .a as extension for shared libraries through AIX4.2
16477      # and later when we are not doing run time linking.
16478      library_names_spec='${libname}${release}.a $libname.a'
16479      soname_spec='${libname}${release}${shared_ext}$major'
16480    fi
16481    shlibpath_var=LIBPATH
16482  fi
16483  ;;
16484
16485amigaos*)
16486  library_names_spec='$libname.ixlibrary $libname.a'
16487  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16488  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
16489  ;;
16490
16491beos*)
16492  library_names_spec='${libname}${shared_ext}'
16493  dynamic_linker="$host_os ld.so"
16494  shlibpath_var=LIBRARY_PATH
16495  ;;
16496
16497bsdi4*)
16498  version_type=linux
16499  need_version=no
16500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501  soname_spec='${libname}${release}${shared_ext}$major'
16502  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16503  shlibpath_var=LD_LIBRARY_PATH
16504  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16505  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16506  # the default ld.so.conf also contains /usr/contrib/lib and
16507  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16508  # libtool to hard-code these into programs
16509  ;;
16510
16511cygwin* | mingw* | pw32*)
16512  version_type=windows
16513  shrext=".dll"
16514  need_version=no
16515  need_lib_prefix=no
16516
16517  case $GCC,$host_os in
16518  yes,cygwin* | yes,mingw* | yes,pw32*)
16519    library_names_spec='$libname.dll.a'
16520    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16521    postinstall_cmds='base_file=`basename \${file}`~
16522      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16523      dldir=$destdir/`dirname \$dlpath`~
16524      test -d \$dldir || mkdir -p \$dldir~
16525      $install_prog $dir/$dlname \$dldir/$dlname'
16526    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527      dlpath=$dir/\$dldll~
16528       $rm \$dlpath'
16529    shlibpath_overrides_runpath=yes
16530
16531    case $host_os in
16532    cygwin*)
16533      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16535      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16536      ;;
16537    mingw*)
16538      # MinGW DLLs use traditional 'lib' prefix
16539      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16541      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16542        # It is most probably a Windows format PATH printed by
16543        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16544        # path with ; separators, and with drive letters. We can handle the
16545        # drive letters (cygwin fileutils understands them), so leave them,
16546        # especially as we might pass files found there to a mingw objdump,
16547        # which wouldn't understand a cygwinified path. Ahh.
16548        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16549      else
16550        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16551      fi
16552      ;;
16553    pw32*)
16554      # pw32 DLLs use 'pw' prefix rather than 'lib'
16555      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16556      ;;
16557    esac
16558    ;;
16559
16560  *)
16561    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16562    ;;
16563  esac
16564  dynamic_linker='Win32 ld.exe'
16565  # FIXME: first we should search . and the directory the executable is in
16566  shlibpath_var=PATH
16567  ;;
16568
16569darwin* | rhapsody*)
16570  dynamic_linker="$host_os dyld"
16571  version_type=darwin
16572  need_lib_prefix=no
16573  need_version=no
16574  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16575  soname_spec='${libname}${release}${major}$shared_ext'
16576  shlibpath_overrides_runpath=yes
16577  shlibpath_var=DYLD_LIBRARY_PATH
16578  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16579  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16580  if test "$GCC" = yes; then
16581    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16582  else
16583    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16584  fi
16585  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16586  ;;
16587
16588dgux*)
16589  version_type=linux
16590  need_lib_prefix=no
16591  need_version=no
16592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16593  soname_spec='${libname}${release}${shared_ext}$major'
16594  shlibpath_var=LD_LIBRARY_PATH
16595  ;;
16596
16597freebsd1*)
16598  dynamic_linker=no
16599  ;;
16600
16601kfreebsd*-gnu)
16602  version_type=linux
16603  need_lib_prefix=no
16604  need_version=no
16605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606  soname_spec='${libname}${release}${shared_ext}$major'
16607  shlibpath_var=LD_LIBRARY_PATH
16608  shlibpath_overrides_runpath=no
16609  hardcode_into_libs=yes
16610  dynamic_linker='GNU ld.so'
16611  ;;
16612
16613freebsd*)
16614  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16615  version_type=freebsd-$objformat
16616  case $version_type in
16617    freebsd-elf*)
16618      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16619      need_version=no
16620      need_lib_prefix=no
16621      ;;
16622    freebsd-*)
16623      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16624      need_version=yes
16625      ;;
16626  esac
16627  shlibpath_var=LD_LIBRARY_PATH
16628  case $host_os in
16629  freebsd2*)
16630    shlibpath_overrides_runpath=yes
16631    ;;
16632  freebsd3.01* | freebsdelf3.01*)
16633    shlibpath_overrides_runpath=yes
16634    hardcode_into_libs=yes
16635    ;;
16636  *) # from 3.2 on
16637    shlibpath_overrides_runpath=no
16638    hardcode_into_libs=yes
16639    ;;
16640  esac
16641  ;;
16642
16643gnu*)
16644  version_type=linux
16645  need_lib_prefix=no
16646  need_version=no
16647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16648  soname_spec='${libname}${release}${shared_ext}$major'
16649  shlibpath_var=LD_LIBRARY_PATH
16650  hardcode_into_libs=yes
16651  ;;
16652
16653hpux9* | hpux10* | hpux11*)
16654  # Give a soname corresponding to the major version so that dld.sl refuses to
16655  # link against other versions.
16656  version_type=sunos
16657  need_lib_prefix=no
16658  need_version=no
16659  case "$host_cpu" in
16660  ia64*)
16661    shrext='.so'
16662    hardcode_into_libs=yes
16663    dynamic_linker="$host_os dld.so"
16664    shlibpath_var=LD_LIBRARY_PATH
16665    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667    soname_spec='${libname}${release}${shared_ext}$major'
16668    if test "X$HPUX_IA64_MODE" = X32; then
16669      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16670    else
16671      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16672    fi
16673    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16674    ;;
16675   hppa*64*)
16676     shrext='.sl'
16677     hardcode_into_libs=yes
16678     dynamic_linker="$host_os dld.sl"
16679     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16680     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682     soname_spec='${libname}${release}${shared_ext}$major'
16683     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16684     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16685     ;;
16686   *)
16687    shrext='.sl'
16688    dynamic_linker="$host_os dld.sl"
16689    shlibpath_var=SHLIB_PATH
16690    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692    soname_spec='${libname}${release}${shared_ext}$major'
16693    ;;
16694  esac
16695  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16696  postinstall_cmds='chmod 555 $lib'
16697  ;;
16698
16699irix5* | irix6* | nonstopux*)
16700  case $host_os in
16701    nonstopux*) version_type=nonstopux ;;
16702    *)
16703	if test "$lt_cv_prog_gnu_ld" = yes; then
16704		version_type=linux
16705	else
16706		version_type=irix
16707	fi ;;
16708  esac
16709  need_lib_prefix=no
16710  need_version=no
16711  soname_spec='${libname}${release}${shared_ext}$major'
16712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16713  case $host_os in
16714  irix5* | nonstopux*)
16715    libsuff= shlibsuff=
16716    ;;
16717  *)
16718    case $LD in # libtool.m4 will add one of these switches to LD
16719    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16720      libsuff= shlibsuff= libmagic=32-bit;;
16721    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16722      libsuff=32 shlibsuff=N32 libmagic=N32;;
16723    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16724      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16725    *) libsuff= shlibsuff= libmagic=never-match;;
16726    esac
16727    ;;
16728  esac
16729  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16730  shlibpath_overrides_runpath=no
16731  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16732  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16733  hardcode_into_libs=yes
16734  ;;
16735
16736# No shared lib support for Linux oldld, aout, or coff.
16737linux*oldld* | linux*aout* | linux*coff*)
16738  dynamic_linker=no
16739  ;;
16740
16741# This must be Linux ELF.
16742linux*)
16743  version_type=linux
16744  need_lib_prefix=no
16745  need_version=no
16746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747  soname_spec='${libname}${release}${shared_ext}$major'
16748  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16749  shlibpath_var=LD_LIBRARY_PATH
16750  shlibpath_overrides_runpath=no
16751  # This implies no fast_install, which is unacceptable.
16752  # Some rework will be needed to allow for fast_install
16753  # before this can be enabled.
16754  hardcode_into_libs=yes
16755
16756  # Append ld.so.conf contents to the search path
16757  if test -f /etc/ld.so.conf; then
16758    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16759    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16760  fi
16761
16762  # We used to test for /lib/ld.so.1 and disable shared libraries on
16763  # powerpc, because MkLinux only supported shared libraries with the
16764  # GNU dynamic linker.  Since this was broken with cross compilers,
16765  # most powerpc-linux boxes support dynamic linking these days and
16766  # people can always --disable-shared, the test was removed, and we
16767  # assume the GNU/Linux dynamic linker is in use.
16768  dynamic_linker='GNU/Linux ld.so'
16769  ;;
16770
16771knetbsd*-gnu)
16772  version_type=linux
16773  need_lib_prefix=no
16774  need_version=no
16775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16776  soname_spec='${libname}${release}${shared_ext}$major'
16777  shlibpath_var=LD_LIBRARY_PATH
16778  shlibpath_overrides_runpath=no
16779  hardcode_into_libs=yes
16780  dynamic_linker='GNU ld.so'
16781  ;;
16782
16783netbsd*)
16784  version_type=sunos
16785  need_lib_prefix=no
16786  need_version=no
16787  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16788    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16789    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16790    dynamic_linker='NetBSD (a.out) ld.so'
16791  else
16792    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16793    soname_spec='${libname}${release}${shared_ext}$major'
16794    dynamic_linker='NetBSD ld.elf_so'
16795  fi
16796  shlibpath_var=LD_LIBRARY_PATH
16797  shlibpath_overrides_runpath=yes
16798  hardcode_into_libs=yes
16799  ;;
16800
16801newsos6)
16802  version_type=linux
16803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804  shlibpath_var=LD_LIBRARY_PATH
16805  shlibpath_overrides_runpath=yes
16806  ;;
16807
16808nto-qnx*)
16809  version_type=linux
16810  need_lib_prefix=no
16811  need_version=no
16812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813  soname_spec='${libname}${release}${shared_ext}$major'
16814  shlibpath_var=LD_LIBRARY_PATH
16815  shlibpath_overrides_runpath=yes
16816  ;;
16817
16818openbsd*)
16819  version_type=sunos
16820  need_lib_prefix=no
16821  need_version=yes
16822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824  shlibpath_var=LD_LIBRARY_PATH
16825  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16826    case $host_os in
16827      openbsd2.[89] | openbsd2.[89].*)
16828	shlibpath_overrides_runpath=no
16829	;;
16830      *)
16831	shlibpath_overrides_runpath=yes
16832	;;
16833      esac
16834  else
16835    shlibpath_overrides_runpath=yes
16836  fi
16837  ;;
16838
16839os2*)
16840  libname_spec='$name'
16841  shrext=".dll"
16842  need_lib_prefix=no
16843  library_names_spec='$libname${shared_ext} $libname.a'
16844  dynamic_linker='OS/2 ld.exe'
16845  shlibpath_var=LIBPATH
16846  ;;
16847
16848osf3* | osf4* | osf5*)
16849  version_type=osf
16850  need_lib_prefix=no
16851  need_version=no
16852  soname_spec='${libname}${release}${shared_ext}$major'
16853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854  shlibpath_var=LD_LIBRARY_PATH
16855  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16857  ;;
16858
16859sco3.2v5*)
16860  version_type=osf
16861  soname_spec='${libname}${release}${shared_ext}$major'
16862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863  shlibpath_var=LD_LIBRARY_PATH
16864  ;;
16865
16866solaris*)
16867  version_type=linux
16868  need_lib_prefix=no
16869  need_version=no
16870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871  soname_spec='${libname}${release}${shared_ext}$major'
16872  shlibpath_var=LD_LIBRARY_PATH
16873  shlibpath_overrides_runpath=yes
16874  hardcode_into_libs=yes
16875  # ldd complains unless libraries are executable
16876  postinstall_cmds='chmod +x $lib'
16877  ;;
16878
16879sunos4*)
16880  version_type=sunos
16881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16882  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16883  shlibpath_var=LD_LIBRARY_PATH
16884  shlibpath_overrides_runpath=yes
16885  if test "$with_gnu_ld" = yes; then
16886    need_lib_prefix=no
16887  fi
16888  need_version=yes
16889  ;;
16890
16891sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16892  version_type=linux
16893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894  soname_spec='${libname}${release}${shared_ext}$major'
16895  shlibpath_var=LD_LIBRARY_PATH
16896  case $host_vendor in
16897    sni)
16898      shlibpath_overrides_runpath=no
16899      need_lib_prefix=no
16900      export_dynamic_flag_spec='${wl}-Blargedynsym'
16901      runpath_var=LD_RUN_PATH
16902      ;;
16903    siemens)
16904      need_lib_prefix=no
16905      ;;
16906    motorola)
16907      need_lib_prefix=no
16908      need_version=no
16909      shlibpath_overrides_runpath=no
16910      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16911      ;;
16912  esac
16913  ;;
16914
16915sysv4*MP*)
16916  if test -d /usr/nec ;then
16917    version_type=linux
16918    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16919    soname_spec='$libname${shared_ext}.$major'
16920    shlibpath_var=LD_LIBRARY_PATH
16921  fi
16922  ;;
16923
16924uts4*)
16925  version_type=linux
16926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927  soname_spec='${libname}${release}${shared_ext}$major'
16928  shlibpath_var=LD_LIBRARY_PATH
16929  ;;
16930
16931*)
16932  dynamic_linker=no
16933  ;;
16934esac
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16936$as_echo "$dynamic_linker" >&6; }
16937test "$dynamic_linker" = no && can_build_shared=no
16938
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16940$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16941hardcode_action_GCJ=
16942if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16943   test -n "$runpath_var GCJ" || \
16944   test "X$hardcode_automatic_GCJ"="Xyes" ; then
16945
16946  # We can hardcode non-existant directories.
16947  if test "$hardcode_direct_GCJ" != no &&
16948     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16949     # have to relink, otherwise we might link with an installed library
16950     # when we should be linking with a yet-to-be-installed one
16951     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16952     test "$hardcode_minus_L_GCJ" != no; then
16953    # Linking always hardcodes the temporary library directory.
16954    hardcode_action_GCJ=relink
16955  else
16956    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16957    hardcode_action_GCJ=immediate
16958  fi
16959else
16960  # We cannot hardcode anything, or else we can only hardcode existing
16961  # directories.
16962  hardcode_action_GCJ=unsupported
16963fi
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16965$as_echo "$hardcode_action_GCJ" >&6; }
16966
16967if test "$hardcode_action_GCJ" = relink; then
16968  # Fast installation is not supported
16969  enable_fast_install=no
16970elif test "$shlibpath_overrides_runpath" = yes ||
16971     test "$enable_shared" = no; then
16972  # Fast installation is not necessary
16973  enable_fast_install=needless
16974fi
16975
16976striplib=
16977old_striplib=
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16979$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16980if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16981  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16982  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16984$as_echo "yes" >&6; }
16985else
16986# FIXME - insert some real tests, host_os isn't really good enough
16987  case $host_os in
16988   darwin*)
16989       if test -n "$STRIP" ; then
16990         striplib="$STRIP -x"
16991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16992$as_echo "yes" >&6; }
16993       else
16994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995$as_echo "no" >&6; }
16996fi
16997       ;;
16998   *)
16999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17000$as_echo "no" >&6; }
17001    ;;
17002  esac
17003fi
17004
17005if test "x$enable_dlopen" != xyes; then
17006  enable_dlopen=unknown
17007  enable_dlopen_self=unknown
17008  enable_dlopen_self_static=unknown
17009else
17010  lt_cv_dlopen=no
17011  lt_cv_dlopen_libs=
17012
17013  case $host_os in
17014  beos*)
17015    lt_cv_dlopen="load_add_on"
17016    lt_cv_dlopen_libs=
17017    lt_cv_dlopen_self=yes
17018    ;;
17019
17020  mingw* | pw32*)
17021    lt_cv_dlopen="LoadLibrary"
17022    lt_cv_dlopen_libs=
17023   ;;
17024
17025  cygwin*)
17026    lt_cv_dlopen="dlopen"
17027    lt_cv_dlopen_libs=
17028   ;;
17029
17030  darwin*)
17031  # if libdl is installed we need to link against it
17032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17033$as_echo_n "checking for dlopen in -ldl... " >&6; }
17034if ${ac_cv_lib_dl_dlopen+:} false; then :
17035  $as_echo_n "(cached) " >&6
17036else
17037  ac_check_lib_save_LIBS=$LIBS
17038LIBS="-ldl  $LIBS"
17039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040/* end confdefs.h.  */
17041
17042/* Override any GCC internal prototype to avoid an error.
17043   Use char because int might match the return type of a GCC
17044   builtin and then its argument prototype would still apply.  */
17045#ifdef __cplusplus
17046extern "C"
17047#endif
17048char dlopen ();
17049int
17050main ()
17051{
17052return dlopen ();
17053  ;
17054  return 0;
17055}
17056_ACEOF
17057if ac_fn_c_try_link "$LINENO"; then :
17058  ac_cv_lib_dl_dlopen=yes
17059else
17060  ac_cv_lib_dl_dlopen=no
17061fi
17062rm -f core conftest.err conftest.$ac_objext \
17063    conftest$ac_exeext conftest.$ac_ext
17064LIBS=$ac_check_lib_save_LIBS
17065fi
17066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17068if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17069  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17070else
17071
17072    lt_cv_dlopen="dyld"
17073    lt_cv_dlopen_libs=
17074    lt_cv_dlopen_self=yes
17075
17076fi
17077
17078   ;;
17079
17080  *)
17081    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17082if test "x$ac_cv_func_shl_load" = xyes; then :
17083  lt_cv_dlopen="shl_load"
17084else
17085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17086$as_echo_n "checking for shl_load in -ldld... " >&6; }
17087if ${ac_cv_lib_dld_shl_load+:} false; then :
17088  $as_echo_n "(cached) " >&6
17089else
17090  ac_check_lib_save_LIBS=$LIBS
17091LIBS="-ldld  $LIBS"
17092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093/* end confdefs.h.  */
17094
17095/* Override any GCC internal prototype to avoid an error.
17096   Use char because int might match the return type of a GCC
17097   builtin and then its argument prototype would still apply.  */
17098#ifdef __cplusplus
17099extern "C"
17100#endif
17101char shl_load ();
17102int
17103main ()
17104{
17105return shl_load ();
17106  ;
17107  return 0;
17108}
17109_ACEOF
17110if ac_fn_c_try_link "$LINENO"; then :
17111  ac_cv_lib_dld_shl_load=yes
17112else
17113  ac_cv_lib_dld_shl_load=no
17114fi
17115rm -f core conftest.err conftest.$ac_objext \
17116    conftest$ac_exeext conftest.$ac_ext
17117LIBS=$ac_check_lib_save_LIBS
17118fi
17119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17120$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17121if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17122  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17123else
17124  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17125if test "x$ac_cv_func_dlopen" = xyes; then :
17126  lt_cv_dlopen="dlopen"
17127else
17128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17129$as_echo_n "checking for dlopen in -ldl... " >&6; }
17130if ${ac_cv_lib_dl_dlopen+:} false; then :
17131  $as_echo_n "(cached) " >&6
17132else
17133  ac_check_lib_save_LIBS=$LIBS
17134LIBS="-ldl  $LIBS"
17135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136/* end confdefs.h.  */
17137
17138/* Override any GCC internal prototype to avoid an error.
17139   Use char because int might match the return type of a GCC
17140   builtin and then its argument prototype would still apply.  */
17141#ifdef __cplusplus
17142extern "C"
17143#endif
17144char dlopen ();
17145int
17146main ()
17147{
17148return dlopen ();
17149  ;
17150  return 0;
17151}
17152_ACEOF
17153if ac_fn_c_try_link "$LINENO"; then :
17154  ac_cv_lib_dl_dlopen=yes
17155else
17156  ac_cv_lib_dl_dlopen=no
17157fi
17158rm -f core conftest.err conftest.$ac_objext \
17159    conftest$ac_exeext conftest.$ac_ext
17160LIBS=$ac_check_lib_save_LIBS
17161fi
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17163$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17164if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17165  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17166else
17167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17168$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17169if ${ac_cv_lib_svld_dlopen+:} false; then :
17170  $as_echo_n "(cached) " >&6
17171else
17172  ac_check_lib_save_LIBS=$LIBS
17173LIBS="-lsvld  $LIBS"
17174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175/* end confdefs.h.  */
17176
17177/* Override any GCC internal prototype to avoid an error.
17178   Use char because int might match the return type of a GCC
17179   builtin and then its argument prototype would still apply.  */
17180#ifdef __cplusplus
17181extern "C"
17182#endif
17183char dlopen ();
17184int
17185main ()
17186{
17187return dlopen ();
17188  ;
17189  return 0;
17190}
17191_ACEOF
17192if ac_fn_c_try_link "$LINENO"; then :
17193  ac_cv_lib_svld_dlopen=yes
17194else
17195  ac_cv_lib_svld_dlopen=no
17196fi
17197rm -f core conftest.err conftest.$ac_objext \
17198    conftest$ac_exeext conftest.$ac_ext
17199LIBS=$ac_check_lib_save_LIBS
17200fi
17201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17202$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17203if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17204  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17205else
17206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17207$as_echo_n "checking for dld_link in -ldld... " >&6; }
17208if ${ac_cv_lib_dld_dld_link+:} false; then :
17209  $as_echo_n "(cached) " >&6
17210else
17211  ac_check_lib_save_LIBS=$LIBS
17212LIBS="-ldld  $LIBS"
17213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214/* end confdefs.h.  */
17215
17216/* Override any GCC internal prototype to avoid an error.
17217   Use char because int might match the return type of a GCC
17218   builtin and then its argument prototype would still apply.  */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222char dld_link ();
17223int
17224main ()
17225{
17226return dld_link ();
17227  ;
17228  return 0;
17229}
17230_ACEOF
17231if ac_fn_c_try_link "$LINENO"; then :
17232  ac_cv_lib_dld_dld_link=yes
17233else
17234  ac_cv_lib_dld_dld_link=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext \
17237    conftest$ac_exeext conftest.$ac_ext
17238LIBS=$ac_check_lib_save_LIBS
17239fi
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17241$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17242if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17243  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17244fi
17245
17246
17247fi
17248
17249
17250fi
17251
17252
17253fi
17254
17255
17256fi
17257
17258
17259fi
17260
17261    ;;
17262  esac
17263
17264  if test "x$lt_cv_dlopen" != xno; then
17265    enable_dlopen=yes
17266  else
17267    enable_dlopen=no
17268  fi
17269
17270  case $lt_cv_dlopen in
17271  dlopen)
17272    save_CPPFLAGS="$CPPFLAGS"
17273    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17274
17275    save_LDFLAGS="$LDFLAGS"
17276    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17277
17278    save_LIBS="$LIBS"
17279    LIBS="$lt_cv_dlopen_libs $LIBS"
17280
17281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17282$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17283if ${lt_cv_dlopen_self+:} false; then :
17284  $as_echo_n "(cached) " >&6
17285else
17286  	  if test "$cross_compiling" = yes; then :
17287  lt_cv_dlopen_self=cross
17288else
17289  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17290  lt_status=$lt_dlunknown
17291  cat > conftest.$ac_ext <<EOF
17292#line 17292 "configure"
17293#include "confdefs.h"
17294
17295#if HAVE_DLFCN_H
17296#include <dlfcn.h>
17297#endif
17298
17299#include <stdio.h>
17300
17301#ifdef RTLD_GLOBAL
17302#  define LT_DLGLOBAL		RTLD_GLOBAL
17303#else
17304#  ifdef DL_GLOBAL
17305#    define LT_DLGLOBAL		DL_GLOBAL
17306#  else
17307#    define LT_DLGLOBAL		0
17308#  endif
17309#endif
17310
17311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17312   find out it does not work in some platform. */
17313#ifndef LT_DLLAZY_OR_NOW
17314#  ifdef RTLD_LAZY
17315#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17316#  else
17317#    ifdef DL_LAZY
17318#      define LT_DLLAZY_OR_NOW		DL_LAZY
17319#    else
17320#      ifdef RTLD_NOW
17321#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17322#      else
17323#        ifdef DL_NOW
17324#          define LT_DLLAZY_OR_NOW	DL_NOW
17325#        else
17326#          define LT_DLLAZY_OR_NOW	0
17327#        endif
17328#      endif
17329#    endif
17330#  endif
17331#endif
17332
17333#ifdef __cplusplus
17334extern "C" void exit (int);
17335#endif
17336
17337void fnord() { int i=42;}
17338int main ()
17339{
17340  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17341  int status = $lt_dlunknown;
17342
17343  if (self)
17344    {
17345      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17346      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17347      /* dlclose (self); */
17348    }
17349
17350    exit (status);
17351}
17352EOF
17353  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17354  (eval $ac_link) 2>&5
17355  ac_status=$?
17356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17357  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17358    (./conftest; exit; ) 2>/dev/null
17359    lt_status=$?
17360    case x$lt_status in
17361      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17362      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17363      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17364    esac
17365  else :
17366    # compilation failed
17367    lt_cv_dlopen_self=no
17368  fi
17369fi
17370rm -fr conftest*
17371
17372
17373fi
17374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17375$as_echo "$lt_cv_dlopen_self" >&6; }
17376
17377    if test "x$lt_cv_dlopen_self" = xyes; then
17378      LDFLAGS="$LDFLAGS $link_static_flag"
17379      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17380$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17381if ${lt_cv_dlopen_self_static+:} false; then :
17382  $as_echo_n "(cached) " >&6
17383else
17384  	  if test "$cross_compiling" = yes; then :
17385  lt_cv_dlopen_self_static=cross
17386else
17387  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17388  lt_status=$lt_dlunknown
17389  cat > conftest.$ac_ext <<EOF
17390#line 17390 "configure"
17391#include "confdefs.h"
17392
17393#if HAVE_DLFCN_H
17394#include <dlfcn.h>
17395#endif
17396
17397#include <stdio.h>
17398
17399#ifdef RTLD_GLOBAL
17400#  define LT_DLGLOBAL		RTLD_GLOBAL
17401#else
17402#  ifdef DL_GLOBAL
17403#    define LT_DLGLOBAL		DL_GLOBAL
17404#  else
17405#    define LT_DLGLOBAL		0
17406#  endif
17407#endif
17408
17409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17410   find out it does not work in some platform. */
17411#ifndef LT_DLLAZY_OR_NOW
17412#  ifdef RTLD_LAZY
17413#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17414#  else
17415#    ifdef DL_LAZY
17416#      define LT_DLLAZY_OR_NOW		DL_LAZY
17417#    else
17418#      ifdef RTLD_NOW
17419#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17420#      else
17421#        ifdef DL_NOW
17422#          define LT_DLLAZY_OR_NOW	DL_NOW
17423#        else
17424#          define LT_DLLAZY_OR_NOW	0
17425#        endif
17426#      endif
17427#    endif
17428#  endif
17429#endif
17430
17431#ifdef __cplusplus
17432extern "C" void exit (int);
17433#endif
17434
17435void fnord() { int i=42;}
17436int main ()
17437{
17438  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17439  int status = $lt_dlunknown;
17440
17441  if (self)
17442    {
17443      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17444      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17445      /* dlclose (self); */
17446    }
17447
17448    exit (status);
17449}
17450EOF
17451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17452  (eval $ac_link) 2>&5
17453  ac_status=$?
17454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17455  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17456    (./conftest; exit; ) 2>/dev/null
17457    lt_status=$?
17458    case x$lt_status in
17459      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17460      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17461      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17462    esac
17463  else :
17464    # compilation failed
17465    lt_cv_dlopen_self_static=no
17466  fi
17467fi
17468rm -fr conftest*
17469
17470
17471fi
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17473$as_echo "$lt_cv_dlopen_self_static" >&6; }
17474    fi
17475
17476    CPPFLAGS="$save_CPPFLAGS"
17477    LDFLAGS="$save_LDFLAGS"
17478    LIBS="$save_LIBS"
17479    ;;
17480  esac
17481
17482  case $lt_cv_dlopen_self in
17483  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17484  *) enable_dlopen_self=unknown ;;
17485  esac
17486
17487  case $lt_cv_dlopen_self_static in
17488  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17489  *) enable_dlopen_self_static=unknown ;;
17490  esac
17491fi
17492
17493
17494# The else clause should only fire when bootstrapping the
17495# libtool distribution, otherwise you forgot to ship ltmain.sh
17496# with your package, and you will get complaints that there are
17497# no rules to generate ltmain.sh.
17498if test -f "$ltmain"; then
17499  # See if we are running on zsh, and set the options which allow our commands through
17500  # without removal of \ escapes.
17501  if test -n "${ZSH_VERSION+set}" ; then
17502    setopt NO_GLOB_SUBST
17503  fi
17504  # Now quote all the things that may contain metacharacters while being
17505  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17506  # variables and quote the copies for generation of the libtool script.
17507  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17508    SED SHELL STRIP \
17509    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17510    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17511    deplibs_check_method reload_flag reload_cmds need_locks \
17512    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17513    lt_cv_sys_global_symbol_to_c_name_address \
17514    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17515    old_postinstall_cmds old_postuninstall_cmds \
17516    compiler_GCJ \
17517    CC_GCJ \
17518    LD_GCJ \
17519    lt_prog_compiler_wl_GCJ \
17520    lt_prog_compiler_pic_GCJ \
17521    lt_prog_compiler_static_GCJ \
17522    lt_prog_compiler_no_builtin_flag_GCJ \
17523    export_dynamic_flag_spec_GCJ \
17524    thread_safe_flag_spec_GCJ \
17525    whole_archive_flag_spec_GCJ \
17526    enable_shared_with_static_runtimes_GCJ \
17527    old_archive_cmds_GCJ \
17528    old_archive_from_new_cmds_GCJ \
17529    predep_objects_GCJ \
17530    postdep_objects_GCJ \
17531    predeps_GCJ \
17532    postdeps_GCJ \
17533    compiler_lib_search_path_GCJ \
17534    archive_cmds_GCJ \
17535    archive_expsym_cmds_GCJ \
17536    postinstall_cmds_GCJ \
17537    postuninstall_cmds_GCJ \
17538    old_archive_from_expsyms_cmds_GCJ \
17539    allow_undefined_flag_GCJ \
17540    no_undefined_flag_GCJ \
17541    export_symbols_cmds_GCJ \
17542    hardcode_libdir_flag_spec_GCJ \
17543    hardcode_libdir_flag_spec_ld_GCJ \
17544    hardcode_libdir_separator_GCJ \
17545    hardcode_automatic_GCJ \
17546    module_cmds_GCJ \
17547    module_expsym_cmds_GCJ \
17548    lt_cv_prog_compiler_c_o_GCJ \
17549    exclude_expsyms_GCJ \
17550    include_expsyms_GCJ; do
17551
17552    case $var in
17553    old_archive_cmds_GCJ | \
17554    old_archive_from_new_cmds_GCJ | \
17555    archive_cmds_GCJ | \
17556    archive_expsym_cmds_GCJ | \
17557    module_cmds_GCJ | \
17558    module_expsym_cmds_GCJ | \
17559    old_archive_from_expsyms_cmds_GCJ | \
17560    export_symbols_cmds_GCJ | \
17561    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17562    postinstall_cmds | postuninstall_cmds | \
17563    old_postinstall_cmds | old_postuninstall_cmds | \
17564    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17565      # Double-quote double-evaled strings.
17566      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17567      ;;
17568    *)
17569      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17570      ;;
17571    esac
17572  done
17573
17574  case $lt_echo in
17575  *'\$0 --fallback-echo"')
17576    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17577    ;;
17578  esac
17579
17580cfgfile="$ofile"
17581
17582  cat <<__EOF__ >> "$cfgfile"
17583# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17584
17585# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17586
17587# Shell to use when invoking shell scripts.
17588SHELL=$lt_SHELL
17589
17590# Whether or not to build shared libraries.
17591build_libtool_libs=$enable_shared
17592
17593# Whether or not to build static libraries.
17594build_old_libs=$enable_static
17595
17596# Whether or not to add -lc for building shared libraries.
17597build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17598
17599# Whether or not to disallow shared libs when runtime libs are static
17600allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17601
17602# Whether or not to optimize for fast installation.
17603fast_install=$enable_fast_install
17604
17605# The host system.
17606host_alias=$host_alias
17607host=$host
17608
17609# An echo program that does not interpret backslashes.
17610echo=$lt_echo
17611
17612# The archiver.
17613AR=$lt_AR
17614AR_FLAGS=$lt_AR_FLAGS
17615
17616# A C compiler.
17617LTCC=$lt_LTCC
17618
17619# A language-specific compiler.
17620CC=$lt_compiler_GCJ
17621
17622# Is the compiler the GNU C compiler?
17623with_gcc=$GCC_GCJ
17624
17625# An ERE matcher.
17626EGREP=$lt_EGREP
17627
17628# The linker used to build libraries.
17629LD=$lt_LD_GCJ
17630
17631# Whether we need hard or soft links.
17632LN_S=$lt_LN_S
17633
17634# A BSD-compatible nm program.
17635NM=$lt_NM
17636
17637# A symbol stripping program
17638STRIP=$lt_STRIP
17639
17640# Used to examine libraries when file_magic_cmd begins "file"
17641MAGIC_CMD=$MAGIC_CMD
17642
17643# Used on cygwin: DLL creation program.
17644DLLTOOL="$DLLTOOL"
17645
17646# Used on cygwin: object dumper.
17647OBJDUMP="$OBJDUMP"
17648
17649# Used on cygwin: assembler.
17650AS="$AS"
17651
17652# The name of the directory that contains temporary libtool files.
17653objdir=$objdir
17654
17655# How to create reloadable object files.
17656reload_flag=$lt_reload_flag
17657reload_cmds=$lt_reload_cmds
17658
17659# How to pass a linker flag through the compiler.
17660wl=$lt_lt_prog_compiler_wl_GCJ
17661
17662# Object file suffix (normally "o").
17663objext="$ac_objext"
17664
17665# Old archive suffix (normally "a").
17666libext="$libext"
17667
17668# Shared library suffix (normally ".so").
17669shrext='$shrext'
17670
17671# Executable file suffix (normally "").
17672exeext="$exeext"
17673
17674# Additional compiler flags for building library objects.
17675pic_flag=$lt_lt_prog_compiler_pic_GCJ
17676pic_mode=$pic_mode
17677
17678# What is the maximum length of a command?
17679max_cmd_len=$lt_cv_sys_max_cmd_len
17680
17681# Does compiler simultaneously support -c and -o options?
17682compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17683
17684# Must we lock files when doing compilation ?
17685need_locks=$lt_need_locks
17686
17687# Do we need the lib prefix for modules?
17688need_lib_prefix=$need_lib_prefix
17689
17690# Do we need a version for libraries?
17691need_version=$need_version
17692
17693# Whether dlopen is supported.
17694dlopen_support=$enable_dlopen
17695
17696# Whether dlopen of programs is supported.
17697dlopen_self=$enable_dlopen_self
17698
17699# Whether dlopen of statically linked programs is supported.
17700dlopen_self_static=$enable_dlopen_self_static
17701
17702# Compiler flag to prevent dynamic linking.
17703link_static_flag=$lt_lt_prog_compiler_static_GCJ
17704
17705# Compiler flag to turn off builtin functions.
17706no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17707
17708# Compiler flag to allow reflexive dlopens.
17709export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17710
17711# Compiler flag to generate shared objects directly from archives.
17712whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17713
17714# Compiler flag to generate thread-safe objects.
17715thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17716
17717# Library versioning type.
17718version_type=$version_type
17719
17720# Format of library name prefix.
17721libname_spec=$lt_libname_spec
17722
17723# List of archive names.  First name is the real one, the rest are links.
17724# The last name is the one that the linker finds with -lNAME.
17725library_names_spec=$lt_library_names_spec
17726
17727# The coded name of the library, if different from the real name.
17728soname_spec=$lt_soname_spec
17729
17730# Commands used to build and install an old-style archive.
17731RANLIB=$lt_RANLIB
17732old_archive_cmds=$lt_old_archive_cmds_GCJ
17733old_postinstall_cmds=$lt_old_postinstall_cmds
17734old_postuninstall_cmds=$lt_old_postuninstall_cmds
17735
17736# Create an old-style archive from a shared archive.
17737old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17738
17739# Create a temporary old-style archive to link instead of a shared archive.
17740old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17741
17742# Commands used to build and install a shared archive.
17743archive_cmds=$lt_archive_cmds_GCJ
17744archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17745postinstall_cmds=$lt_postinstall_cmds
17746postuninstall_cmds=$lt_postuninstall_cmds
17747
17748# Commands used to build a loadable module (assumed same as above if empty)
17749module_cmds=$lt_module_cmds_GCJ
17750module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17751
17752# Commands to strip libraries.
17753old_striplib=$lt_old_striplib
17754striplib=$lt_striplib
17755
17756# Dependencies to place before the objects being linked to create a
17757# shared library.
17758predep_objects=$lt_predep_objects_GCJ
17759
17760# Dependencies to place after the objects being linked to create a
17761# shared library.
17762postdep_objects=$lt_postdep_objects_GCJ
17763
17764# Dependencies to place before the objects being linked to create a
17765# shared library.
17766predeps=$lt_predeps_GCJ
17767
17768# Dependencies to place after the objects being linked to create a
17769# shared library.
17770postdeps=$lt_postdeps_GCJ
17771
17772# The library search path used internally by the compiler when linking
17773# a shared library.
17774compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17775
17776# Method to check whether dependent libraries are shared objects.
17777deplibs_check_method=$lt_deplibs_check_method
17778
17779# Command to use when deplibs_check_method == file_magic.
17780file_magic_cmd=$lt_file_magic_cmd
17781
17782# Flag that allows shared libraries with undefined symbols to be built.
17783allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17784
17785# Flag that forces no undefined symbols.
17786no_undefined_flag=$lt_no_undefined_flag_GCJ
17787
17788# Commands used to finish a libtool library installation in a directory.
17789finish_cmds=$lt_finish_cmds
17790
17791# Same as above, but a single script fragment to be evaled but not shown.
17792finish_eval=$lt_finish_eval
17793
17794# Take the output of nm and produce a listing of raw symbols and C names.
17795global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17796
17797# Transform the output of nm in a proper C declaration
17798global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17799
17800# Transform the output of nm in a C name address pair
17801global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17802
17803# This is the shared library runtime path variable.
17804runpath_var=$runpath_var
17805
17806# This is the shared library path variable.
17807shlibpath_var=$shlibpath_var
17808
17809# Is shlibpath searched before the hard-coded library search path?
17810shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17811
17812# How to hardcode a shared library path into an executable.
17813hardcode_action=$hardcode_action_GCJ
17814
17815# Whether we should hardcode library paths into libraries.
17816hardcode_into_libs=$hardcode_into_libs
17817
17818# Flag to hardcode \$libdir into a binary during linking.
17819# This must work even if \$libdir does not exist.
17820hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17821
17822# If ld is used when linking, flag to hardcode \$libdir into
17823# a binary during linking. This must work even if \$libdir does
17824# not exist.
17825hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17826
17827# Whether we need a single -rpath flag with a separated argument.
17828hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17829
17830# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17831# resulting binary.
17832hardcode_direct=$hardcode_direct_GCJ
17833
17834# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17835# resulting binary.
17836hardcode_minus_L=$hardcode_minus_L_GCJ
17837
17838# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17839# the resulting binary.
17840hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17841
17842# Set to yes if building a shared library automatically hardcodes DIR into the library
17843# and all subsequent libraries and executables linked against it.
17844hardcode_automatic=$hardcode_automatic_GCJ
17845
17846# Variables whose values should be saved in libtool wrapper scripts and
17847# restored at relink time.
17848variables_saved_for_relink="$variables_saved_for_relink"
17849
17850# Whether libtool must link a program against all its dependency libraries.
17851link_all_deplibs=$link_all_deplibs_GCJ
17852
17853# Compile-time system search path for libraries
17854sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17855
17856# Run-time system search path for libraries
17857sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17858
17859# Fix the shell variable \$srcfile for the compiler.
17860fix_srcfile_path="$fix_srcfile_path_GCJ"
17861
17862# Set to yes if exported symbols are required.
17863always_export_symbols=$always_export_symbols_GCJ
17864
17865# The commands to list exported symbols.
17866export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17867
17868# The commands to extract the exported symbol list from a shared archive.
17869extract_expsyms_cmds=$lt_extract_expsyms_cmds
17870
17871# Symbols that should not be listed in the preloaded symbols.
17872exclude_expsyms=$lt_exclude_expsyms_GCJ
17873
17874# Symbols that must always be exported.
17875include_expsyms=$lt_include_expsyms_GCJ
17876
17877# ### END LIBTOOL TAG CONFIG: $tagname
17878
17879__EOF__
17880
17881
17882else
17883  # If there is no Makefile yet, we rely on a make rule to execute
17884  # `config.status --recheck' to rerun these tests and create the
17885  # libtool script then.
17886  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17887  if test -f "$ltmain_in"; then
17888    test -f Makefile && make "$ltmain"
17889  fi
17890fi
17891
17892
17893ac_ext=c
17894ac_cpp='$CPP $CPPFLAGS'
17895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897ac_compiler_gnu=$ac_cv_c_compiler_gnu
17898
17899CC="$lt_save_CC"
17900
17901	else
17902	  tagname=""
17903	fi
17904	;;
17905
17906      RC)
17907
17908
17909# Source file extension for RC test sources.
17910ac_ext=rc
17911
17912# Object file extension for compiled RC test sources.
17913objext=o
17914objext_RC=$objext
17915
17916# Code to be used in simple compile tests
17917lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17918
17919# Code to be used in simple link tests
17920lt_simple_link_test_code="$lt_simple_compile_test_code"
17921
17922# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17923
17924# If no C compiler was specified, use CC.
17925LTCC=${LTCC-"$CC"}
17926
17927# Allow CC to be a program name with arguments.
17928compiler=$CC
17929
17930
17931# Allow CC to be a program name with arguments.
17932lt_save_CC="$CC"
17933CC=${RC-"windres"}
17934compiler=$CC
17935compiler_RC=$CC
17936lt_cv_prog_compiler_c_o_RC=yes
17937
17938# The else clause should only fire when bootstrapping the
17939# libtool distribution, otherwise you forgot to ship ltmain.sh
17940# with your package, and you will get complaints that there are
17941# no rules to generate ltmain.sh.
17942if test -f "$ltmain"; then
17943  # See if we are running on zsh, and set the options which allow our commands through
17944  # without removal of \ escapes.
17945  if test -n "${ZSH_VERSION+set}" ; then
17946    setopt NO_GLOB_SUBST
17947  fi
17948  # Now quote all the things that may contain metacharacters while being
17949  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17950  # variables and quote the copies for generation of the libtool script.
17951  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17952    SED SHELL STRIP \
17953    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17954    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17955    deplibs_check_method reload_flag reload_cmds need_locks \
17956    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17957    lt_cv_sys_global_symbol_to_c_name_address \
17958    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17959    old_postinstall_cmds old_postuninstall_cmds \
17960    compiler_RC \
17961    CC_RC \
17962    LD_RC \
17963    lt_prog_compiler_wl_RC \
17964    lt_prog_compiler_pic_RC \
17965    lt_prog_compiler_static_RC \
17966    lt_prog_compiler_no_builtin_flag_RC \
17967    export_dynamic_flag_spec_RC \
17968    thread_safe_flag_spec_RC \
17969    whole_archive_flag_spec_RC \
17970    enable_shared_with_static_runtimes_RC \
17971    old_archive_cmds_RC \
17972    old_archive_from_new_cmds_RC \
17973    predep_objects_RC \
17974    postdep_objects_RC \
17975    predeps_RC \
17976    postdeps_RC \
17977    compiler_lib_search_path_RC \
17978    archive_cmds_RC \
17979    archive_expsym_cmds_RC \
17980    postinstall_cmds_RC \
17981    postuninstall_cmds_RC \
17982    old_archive_from_expsyms_cmds_RC \
17983    allow_undefined_flag_RC \
17984    no_undefined_flag_RC \
17985    export_symbols_cmds_RC \
17986    hardcode_libdir_flag_spec_RC \
17987    hardcode_libdir_flag_spec_ld_RC \
17988    hardcode_libdir_separator_RC \
17989    hardcode_automatic_RC \
17990    module_cmds_RC \
17991    module_expsym_cmds_RC \
17992    lt_cv_prog_compiler_c_o_RC \
17993    exclude_expsyms_RC \
17994    include_expsyms_RC; do
17995
17996    case $var in
17997    old_archive_cmds_RC | \
17998    old_archive_from_new_cmds_RC | \
17999    archive_cmds_RC | \
18000    archive_expsym_cmds_RC | \
18001    module_cmds_RC | \
18002    module_expsym_cmds_RC | \
18003    old_archive_from_expsyms_cmds_RC | \
18004    export_symbols_cmds_RC | \
18005    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18006    postinstall_cmds | postuninstall_cmds | \
18007    old_postinstall_cmds | old_postuninstall_cmds | \
18008    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18009      # Double-quote double-evaled strings.
18010      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18011      ;;
18012    *)
18013      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18014      ;;
18015    esac
18016  done
18017
18018  case $lt_echo in
18019  *'\$0 --fallback-echo"')
18020    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18021    ;;
18022  esac
18023
18024cfgfile="$ofile"
18025
18026  cat <<__EOF__ >> "$cfgfile"
18027# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18028
18029# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18030
18031# Shell to use when invoking shell scripts.
18032SHELL=$lt_SHELL
18033
18034# Whether or not to build shared libraries.
18035build_libtool_libs=$enable_shared
18036
18037# Whether or not to build static libraries.
18038build_old_libs=$enable_static
18039
18040# Whether or not to add -lc for building shared libraries.
18041build_libtool_need_lc=$archive_cmds_need_lc_RC
18042
18043# Whether or not to disallow shared libs when runtime libs are static
18044allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18045
18046# Whether or not to optimize for fast installation.
18047fast_install=$enable_fast_install
18048
18049# The host system.
18050host_alias=$host_alias
18051host=$host
18052
18053# An echo program that does not interpret backslashes.
18054echo=$lt_echo
18055
18056# The archiver.
18057AR=$lt_AR
18058AR_FLAGS=$lt_AR_FLAGS
18059
18060# A C compiler.
18061LTCC=$lt_LTCC
18062
18063# A language-specific compiler.
18064CC=$lt_compiler_RC
18065
18066# Is the compiler the GNU C compiler?
18067with_gcc=$GCC_RC
18068
18069# An ERE matcher.
18070EGREP=$lt_EGREP
18071
18072# The linker used to build libraries.
18073LD=$lt_LD_RC
18074
18075# Whether we need hard or soft links.
18076LN_S=$lt_LN_S
18077
18078# A BSD-compatible nm program.
18079NM=$lt_NM
18080
18081# A symbol stripping program
18082STRIP=$lt_STRIP
18083
18084# Used to examine libraries when file_magic_cmd begins "file"
18085MAGIC_CMD=$MAGIC_CMD
18086
18087# Used on cygwin: DLL creation program.
18088DLLTOOL="$DLLTOOL"
18089
18090# Used on cygwin: object dumper.
18091OBJDUMP="$OBJDUMP"
18092
18093# Used on cygwin: assembler.
18094AS="$AS"
18095
18096# The name of the directory that contains temporary libtool files.
18097objdir=$objdir
18098
18099# How to create reloadable object files.
18100reload_flag=$lt_reload_flag
18101reload_cmds=$lt_reload_cmds
18102
18103# How to pass a linker flag through the compiler.
18104wl=$lt_lt_prog_compiler_wl_RC
18105
18106# Object file suffix (normally "o").
18107objext="$ac_objext"
18108
18109# Old archive suffix (normally "a").
18110libext="$libext"
18111
18112# Shared library suffix (normally ".so").
18113shrext='$shrext'
18114
18115# Executable file suffix (normally "").
18116exeext="$exeext"
18117
18118# Additional compiler flags for building library objects.
18119pic_flag=$lt_lt_prog_compiler_pic_RC
18120pic_mode=$pic_mode
18121
18122# What is the maximum length of a command?
18123max_cmd_len=$lt_cv_sys_max_cmd_len
18124
18125# Does compiler simultaneously support -c and -o options?
18126compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18127
18128# Must we lock files when doing compilation ?
18129need_locks=$lt_need_locks
18130
18131# Do we need the lib prefix for modules?
18132need_lib_prefix=$need_lib_prefix
18133
18134# Do we need a version for libraries?
18135need_version=$need_version
18136
18137# Whether dlopen is supported.
18138dlopen_support=$enable_dlopen
18139
18140# Whether dlopen of programs is supported.
18141dlopen_self=$enable_dlopen_self
18142
18143# Whether dlopen of statically linked programs is supported.
18144dlopen_self_static=$enable_dlopen_self_static
18145
18146# Compiler flag to prevent dynamic linking.
18147link_static_flag=$lt_lt_prog_compiler_static_RC
18148
18149# Compiler flag to turn off builtin functions.
18150no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18151
18152# Compiler flag to allow reflexive dlopens.
18153export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18154
18155# Compiler flag to generate shared objects directly from archives.
18156whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18157
18158# Compiler flag to generate thread-safe objects.
18159thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18160
18161# Library versioning type.
18162version_type=$version_type
18163
18164# Format of library name prefix.
18165libname_spec=$lt_libname_spec
18166
18167# List of archive names.  First name is the real one, the rest are links.
18168# The last name is the one that the linker finds with -lNAME.
18169library_names_spec=$lt_library_names_spec
18170
18171# The coded name of the library, if different from the real name.
18172soname_spec=$lt_soname_spec
18173
18174# Commands used to build and install an old-style archive.
18175RANLIB=$lt_RANLIB
18176old_archive_cmds=$lt_old_archive_cmds_RC
18177old_postinstall_cmds=$lt_old_postinstall_cmds
18178old_postuninstall_cmds=$lt_old_postuninstall_cmds
18179
18180# Create an old-style archive from a shared archive.
18181old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18182
18183# Create a temporary old-style archive to link instead of a shared archive.
18184old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18185
18186# Commands used to build and install a shared archive.
18187archive_cmds=$lt_archive_cmds_RC
18188archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18189postinstall_cmds=$lt_postinstall_cmds
18190postuninstall_cmds=$lt_postuninstall_cmds
18191
18192# Commands used to build a loadable module (assumed same as above if empty)
18193module_cmds=$lt_module_cmds_RC
18194module_expsym_cmds=$lt_module_expsym_cmds_RC
18195
18196# Commands to strip libraries.
18197old_striplib=$lt_old_striplib
18198striplib=$lt_striplib
18199
18200# Dependencies to place before the objects being linked to create a
18201# shared library.
18202predep_objects=$lt_predep_objects_RC
18203
18204# Dependencies to place after the objects being linked to create a
18205# shared library.
18206postdep_objects=$lt_postdep_objects_RC
18207
18208# Dependencies to place before the objects being linked to create a
18209# shared library.
18210predeps=$lt_predeps_RC
18211
18212# Dependencies to place after the objects being linked to create a
18213# shared library.
18214postdeps=$lt_postdeps_RC
18215
18216# The library search path used internally by the compiler when linking
18217# a shared library.
18218compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18219
18220# Method to check whether dependent libraries are shared objects.
18221deplibs_check_method=$lt_deplibs_check_method
18222
18223# Command to use when deplibs_check_method == file_magic.
18224file_magic_cmd=$lt_file_magic_cmd
18225
18226# Flag that allows shared libraries with undefined symbols to be built.
18227allow_undefined_flag=$lt_allow_undefined_flag_RC
18228
18229# Flag that forces no undefined symbols.
18230no_undefined_flag=$lt_no_undefined_flag_RC
18231
18232# Commands used to finish a libtool library installation in a directory.
18233finish_cmds=$lt_finish_cmds
18234
18235# Same as above, but a single script fragment to be evaled but not shown.
18236finish_eval=$lt_finish_eval
18237
18238# Take the output of nm and produce a listing of raw symbols and C names.
18239global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18240
18241# Transform the output of nm in a proper C declaration
18242global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18243
18244# Transform the output of nm in a C name address pair
18245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18246
18247# This is the shared library runtime path variable.
18248runpath_var=$runpath_var
18249
18250# This is the shared library path variable.
18251shlibpath_var=$shlibpath_var
18252
18253# Is shlibpath searched before the hard-coded library search path?
18254shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18255
18256# How to hardcode a shared library path into an executable.
18257hardcode_action=$hardcode_action_RC
18258
18259# Whether we should hardcode library paths into libraries.
18260hardcode_into_libs=$hardcode_into_libs
18261
18262# Flag to hardcode \$libdir into a binary during linking.
18263# This must work even if \$libdir does not exist.
18264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18265
18266# If ld is used when linking, flag to hardcode \$libdir into
18267# a binary during linking. This must work even if \$libdir does
18268# not exist.
18269hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18270
18271# Whether we need a single -rpath flag with a separated argument.
18272hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18273
18274# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18275# resulting binary.
18276hardcode_direct=$hardcode_direct_RC
18277
18278# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18279# resulting binary.
18280hardcode_minus_L=$hardcode_minus_L_RC
18281
18282# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18283# the resulting binary.
18284hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18285
18286# Set to yes if building a shared library automatically hardcodes DIR into the library
18287# and all subsequent libraries and executables linked against it.
18288hardcode_automatic=$hardcode_automatic_RC
18289
18290# Variables whose values should be saved in libtool wrapper scripts and
18291# restored at relink time.
18292variables_saved_for_relink="$variables_saved_for_relink"
18293
18294# Whether libtool must link a program against all its dependency libraries.
18295link_all_deplibs=$link_all_deplibs_RC
18296
18297# Compile-time system search path for libraries
18298sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18299
18300# Run-time system search path for libraries
18301sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18302
18303# Fix the shell variable \$srcfile for the compiler.
18304fix_srcfile_path="$fix_srcfile_path_RC"
18305
18306# Set to yes if exported symbols are required.
18307always_export_symbols=$always_export_symbols_RC
18308
18309# The commands to list exported symbols.
18310export_symbols_cmds=$lt_export_symbols_cmds_RC
18311
18312# The commands to extract the exported symbol list from a shared archive.
18313extract_expsyms_cmds=$lt_extract_expsyms_cmds
18314
18315# Symbols that should not be listed in the preloaded symbols.
18316exclude_expsyms=$lt_exclude_expsyms_RC
18317
18318# Symbols that must always be exported.
18319include_expsyms=$lt_include_expsyms_RC
18320
18321# ### END LIBTOOL TAG CONFIG: $tagname
18322
18323__EOF__
18324
18325
18326else
18327  # If there is no Makefile yet, we rely on a make rule to execute
18328  # `config.status --recheck' to rerun these tests and create the
18329  # libtool script then.
18330  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18331  if test -f "$ltmain_in"; then
18332    test -f Makefile && make "$ltmain"
18333  fi
18334fi
18335
18336
18337ac_ext=c
18338ac_cpp='$CPP $CPPFLAGS'
18339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341ac_compiler_gnu=$ac_cv_c_compiler_gnu
18342
18343CC="$lt_save_CC"
18344
18345	;;
18346
18347      *)
18348	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18349	;;
18350      esac
18351
18352      # Append the new tag name to the list of available tags.
18353      if test -n "$tagname" ; then
18354      available_tags="$available_tags $tagname"
18355    fi
18356    fi
18357  done
18358  IFS="$lt_save_ifs"
18359
18360  # Now substitute the updated list of available tags.
18361  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18362    mv "${ofile}T" "$ofile"
18363    chmod +x "$ofile"
18364  else
18365    rm -f "${ofile}T"
18366    as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18367  fi
18368fi
18369
18370
18371
18372# This can be used to rebuild libtool when needed
18373LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18374
18375# Always use our own libtool.
18376LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18377
18378# Prevent multiple expansion
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403arch=""
18404debug=""
18405optimize=""
18406profile=""
18407
18408set -- $CFLAGS
18409CFLAGS=""
18410
18411if test "$GCC" = yes
18412then
18413    CFLAGS="-Wall"
18414fi
18415
18416while test $# -gt 0
18417do
18418    case "$1" in
18419	-Wall)
18420	    if test "$GCC" = yes
18421	    then
18422		:
18423	    else
18424		CFLAGS="$CFLAGS $1"
18425	    fi
18426	    shift
18427	    ;;
18428	-g)
18429	    debug="-g"
18430	    shift
18431	    ;;
18432	-mno-cygwin)
18433	    shift
18434	    ;;
18435	-m*)
18436	    arch="$arch $1"
18437	    shift
18438	    ;;
18439	-fomit-frame-pointer)
18440	    shift
18441	    ;;
18442	-O*|-f*)
18443	    optimize="$1"
18444	    shift
18445	    ;;
18446	*)
18447	    CFLAGS="$CFLAGS $1"
18448	    shift
18449	    ;;
18450    esac
18451done
18452
18453
18454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18455$as_echo_n "checking for ANSI C header files... " >&6; }
18456if ${ac_cv_header_stdc+:} false; then :
18457  $as_echo_n "(cached) " >&6
18458else
18459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460/* end confdefs.h.  */
18461#include <stdlib.h>
18462#include <stdarg.h>
18463#include <string.h>
18464#include <float.h>
18465
18466int
18467main ()
18468{
18469
18470  ;
18471  return 0;
18472}
18473_ACEOF
18474if ac_fn_c_try_compile "$LINENO"; then :
18475  ac_cv_header_stdc=yes
18476else
18477  ac_cv_header_stdc=no
18478fi
18479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480
18481if test $ac_cv_header_stdc = yes; then
18482  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484/* end confdefs.h.  */
18485#include <string.h>
18486
18487_ACEOF
18488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18489  $EGREP "memchr" >/dev/null 2>&1; then :
18490
18491else
18492  ac_cv_header_stdc=no
18493fi
18494rm -f conftest*
18495
18496fi
18497
18498if test $ac_cv_header_stdc = yes; then
18499  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h.  */
18502#include <stdlib.h>
18503
18504_ACEOF
18505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18506  $EGREP "free" >/dev/null 2>&1; then :
18507
18508else
18509  ac_cv_header_stdc=no
18510fi
18511rm -f conftest*
18512
18513fi
18514
18515if test $ac_cv_header_stdc = yes; then
18516  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18517  if test "$cross_compiling" = yes; then :
18518  :
18519else
18520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521/* end confdefs.h.  */
18522#include <ctype.h>
18523#include <stdlib.h>
18524#if ((' ' & 0x0FF) == 0x020)
18525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18527#else
18528# define ISLOWER(c) \
18529		   (('a' <= (c) && (c) <= 'i') \
18530		     || ('j' <= (c) && (c) <= 'r') \
18531		     || ('s' <= (c) && (c) <= 'z'))
18532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18533#endif
18534
18535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18536int
18537main ()
18538{
18539  int i;
18540  for (i = 0; i < 256; i++)
18541    if (XOR (islower (i), ISLOWER (i))
18542	|| toupper (i) != TOUPPER (i))
18543      return 2;
18544  return 0;
18545}
18546_ACEOF
18547if ac_fn_c_try_run "$LINENO"; then :
18548
18549else
18550  ac_cv_header_stdc=no
18551fi
18552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18553  conftest.$ac_objext conftest.beam conftest.$ac_ext
18554fi
18555
18556fi
18557fi
18558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18559$as_echo "$ac_cv_header_stdc" >&6; }
18560if test $ac_cv_header_stdc = yes; then
18561
18562$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18563
18564fi
18565
18566for ac_header in assert.h unistd.h
18567do :
18568  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18569ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18571  cat >>confdefs.h <<_ACEOF
18572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18573_ACEOF
18574
18575fi
18576
18577done
18578
18579
18580ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18581if test "x$ac_cv_header_zlib_h" = xyes; then :
18582
18583else
18584
18585	as_fn_error $? "zlib.h was not found
18586*** You must first install zlib (libz) before you can build this package.
18587*** If zlib is already installed, you may need to use the CPPFLAGS
18588*** environment variable to specify its installed location, e.g. -I<dir>." "$LINENO" 5
18589
18590fi
18591
18592
18593
18594
18595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18596$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18597if ${ac_cv_c_const+:} false; then :
18598  $as_echo_n "(cached) " >&6
18599else
18600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601/* end confdefs.h.  */
18602
18603int
18604main ()
18605{
18606/* FIXME: Include the comments suggested by Paul. */
18607#ifndef __cplusplus
18608  /* Ultrix mips cc rejects this.  */
18609  typedef int charset[2];
18610  const charset cs;
18611  /* SunOS 4.1.1 cc rejects this.  */
18612  char const *const *pcpcc;
18613  char **ppc;
18614  /* NEC SVR4.0.2 mips cc rejects this.  */
18615  struct point {int x, y;};
18616  static struct point const zero = {0,0};
18617  /* AIX XL C 1.02.0.0 rejects this.
18618     It does not let you subtract one const X* pointer from another in
18619     an arm of an if-expression whose if-part is not a constant
18620     expression */
18621  const char *g = "string";
18622  pcpcc = &g + (g ? g-g : 0);
18623  /* HPUX 7.0 cc rejects these. */
18624  ++pcpcc;
18625  ppc = (char**) pcpcc;
18626  pcpcc = (char const *const *) ppc;
18627  { /* SCO 3.2v4 cc rejects this.  */
18628    char *t;
18629    char const *s = 0 ? (char *) 0 : (char const *) 0;
18630
18631    *t++ = 0;
18632    if (s) return 0;
18633  }
18634  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18635    int x[] = {25, 17};
18636    const int *foo = &x[0];
18637    ++foo;
18638  }
18639  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18640    typedef const int *iptr;
18641    iptr p = 0;
18642    ++p;
18643  }
18644  { /* AIX XL C 1.02.0.0 rejects this saying
18645       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18646    struct s { int j; const int *ap[3]; };
18647    struct s *b; b->j = 5;
18648  }
18649  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18650    const int foo = 10;
18651    if (!foo) return 0;
18652  }
18653  return !cs[0] && !zero.x;
18654#endif
18655
18656  ;
18657  return 0;
18658}
18659_ACEOF
18660if ac_fn_c_try_compile "$LINENO"; then :
18661  ac_cv_c_const=yes
18662else
18663  ac_cv_c_const=no
18664fi
18665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666fi
18667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18668$as_echo "$ac_cv_c_const" >&6; }
18669if test $ac_cv_c_const = no; then
18670
18671$as_echo "#define const /**/" >>confdefs.h
18672
18673fi
18674
18675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18676$as_echo_n "checking for inline... " >&6; }
18677if ${ac_cv_c_inline+:} false; then :
18678  $as_echo_n "(cached) " >&6
18679else
18680  ac_cv_c_inline=no
18681for ac_kw in inline __inline__ __inline; do
18682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683/* end confdefs.h.  */
18684#ifndef __cplusplus
18685typedef int foo_t;
18686static $ac_kw foo_t static_foo () {return 0; }
18687$ac_kw foo_t foo () {return 0; }
18688#endif
18689
18690_ACEOF
18691if ac_fn_c_try_compile "$LINENO"; then :
18692  ac_cv_c_inline=$ac_kw
18693fi
18694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18695  test "$ac_cv_c_inline" != no && break
18696done
18697
18698fi
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18700$as_echo "$ac_cv_c_inline" >&6; }
18701
18702case $ac_cv_c_inline in
18703  inline | yes) ;;
18704  *)
18705    case $ac_cv_c_inline in
18706      no) ac_val=;;
18707      *) ac_val=$ac_cv_c_inline;;
18708    esac
18709    cat >>confdefs.h <<_ACEOF
18710#ifndef __cplusplus
18711#define inline $ac_val
18712#endif
18713_ACEOF
18714    ;;
18715esac
18716
18717
18718
18719for ac_func in ftruncate
18720do :
18721  ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18722if test "x$ac_cv_func_ftruncate" = xyes; then :
18723  cat >>confdefs.h <<_ACEOF
18724#define HAVE_FTRUNCATE 1
18725_ACEOF
18726
18727fi
18728done
18729
18730
18731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
18732$as_echo_n "checking for compress2 in -lz... " >&6; }
18733if ${ac_cv_lib_z_compress2+:} false; then :
18734  $as_echo_n "(cached) " >&6
18735else
18736  ac_check_lib_save_LIBS=$LIBS
18737LIBS="-lz  $LIBS"
18738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739/* end confdefs.h.  */
18740
18741/* Override any GCC internal prototype to avoid an error.
18742   Use char because int might match the return type of a GCC
18743   builtin and then its argument prototype would still apply.  */
18744#ifdef __cplusplus
18745extern "C"
18746#endif
18747char compress2 ();
18748int
18749main ()
18750{
18751return compress2 ();
18752  ;
18753  return 0;
18754}
18755_ACEOF
18756if ac_fn_c_try_link "$LINENO"; then :
18757  ac_cv_lib_z_compress2=yes
18758else
18759  ac_cv_lib_z_compress2=no
18760fi
18761rm -f core conftest.err conftest.$ac_objext \
18762    conftest$ac_exeext conftest.$ac_ext
18763LIBS=$ac_check_lib_save_LIBS
18764fi
18765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
18766$as_echo "$ac_cv_lib_z_compress2" >&6; }
18767if test "x$ac_cv_lib_z_compress2" = xyes; then :
18768  cat >>confdefs.h <<_ACEOF
18769#define HAVE_LIBZ 1
18770_ACEOF
18771
18772  LIBS="-lz $LIBS"
18773
18774else
18775
18776	as_fn_error $? "libz was not found
18777*** You must first install zlib (libz) before you can build this package.
18778*** If zlib is already installed, you may need to use the LDFLAGS
18779*** environment variable to specify its installed location, e.g. -L<dir>." "$LINENO" 5
18780
18781fi
18782
18783
18784
18785cat >confcache <<\_ACEOF
18786# This file is a shell script that caches the results of configure
18787# tests run on this system so they can be shared between configure
18788# scripts and configure runs, see configure's option --config-cache.
18789# It is not useful on other systems.  If it contains results you don't
18790# want to keep, you may remove or edit it.
18791#
18792# config.status only pays attention to the cache file if you give it
18793# the --recheck option to rerun configure.
18794#
18795# `ac_cv_env_foo' variables (set or unset) will be overridden when
18796# loading this file, other *unset* `ac_cv_foo' will be assigned the
18797# following values.
18798
18799_ACEOF
18800
18801# The following way of writing the cache mishandles newlines in values,
18802# but we know of no workaround that is simple, portable, and efficient.
18803# So, we kill variables containing newlines.
18804# Ultrix sh set writes to stderr and can't be redirected directly,
18805# and sets the high bit in the cache file unless we assign to the vars.
18806(
18807  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18808    eval ac_val=\$$ac_var
18809    case $ac_val in #(
18810    *${as_nl}*)
18811      case $ac_var in #(
18812      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18814      esac
18815      case $ac_var in #(
18816      _ | IFS | as_nl) ;; #(
18817      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18818      *) { eval $ac_var=; unset $ac_var;} ;;
18819      esac ;;
18820    esac
18821  done
18822
18823  (set) 2>&1 |
18824    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18825    *${as_nl}ac_space=\ *)
18826      # `set' does not quote correctly, so add quotes: double-quote
18827      # substitution turns \\\\ into \\, and sed turns \\ into \.
18828      sed -n \
18829	"s/'/'\\\\''/g;
18830	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18831      ;; #(
18832    *)
18833      # `set' quotes correctly as required by POSIX, so do not add quotes.
18834      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18835      ;;
18836    esac |
18837    sort
18838) |
18839  sed '
18840     /^ac_cv_env_/b end
18841     t clear
18842     :clear
18843     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18844     t end
18845     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18846     :end' >>confcache
18847if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18848  if test -w "$cache_file"; then
18849    if test "x$cache_file" != "x/dev/null"; then
18850      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18851$as_echo "$as_me: updating cache $cache_file" >&6;}
18852      if test ! -f "$cache_file" || test -h "$cache_file"; then
18853	cat confcache >"$cache_file"
18854      else
18855        case $cache_file in #(
18856        */* | ?:*)
18857	  mv -f confcache "$cache_file"$$ &&
18858	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18859        *)
18860	  mv -f confcache "$cache_file" ;;
18861	esac
18862      fi
18863    fi
18864  else
18865    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18866$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18867  fi
18868fi
18869rm -f confcache
18870
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
18872$as_echo_n "checking whether to enable profiling... " >&6; }
18873# Check whether --enable-profiling was given.
18874if test "${enable_profiling+set}" = set; then :
18875  enableval=$enable_profiling;
18876    case "$enableval" in
18877	yes) profile="-pg" ;;
18878    esac
18879
18880fi
18881
18882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
18883$as_echo "${enable_profiling-no}" >&6; }
18884
18885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
18886$as_echo_n "checking whether to enable debugging... " >&6; }
18887# Check whether --enable-debugging was given.
18888if test "${enable_debugging+set}" = set; then :
18889  enableval=$enable_debugging;
18890    case "$enableval" in
18891	yes)
18892
18893$as_echo "#define DEBUG 1" >>confdefs.h
18894
18895	    optimize=""
18896	    ;;
18897	no)
18898	    if test -n "$profile"
18899	    then
18900    as_fn_error $? "--enable-profiling and --disable-debugging are incompatible" "$LINENO" 5
18901	    fi
18902
18903
18904$as_echo "#define NDEBUG 1" >>confdefs.h
18905
18906	    debug=""
18907	    if test "$GCC" = yes
18908	    then
18909		optimize="$optimize -fomit-frame-pointer"
18910	    fi
18911	    ;;
18912    esac
18913
18914fi
18915
18916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debugging-default}" >&5
18917$as_echo "${enable_debugging-default}" >&6; }
18918
18919
18920if test ${enable_debugging-default} = yes; then
18921  DEBUG_TRUE=
18922  DEBUG_FALSE='#'
18923else
18924  DEBUG_TRUE='#'
18925  DEBUG_FALSE=
18926fi
18927
18928
18929
18930test -n "$arch"     && CFLAGS="$CFLAGS $arch"
18931test -n "$debug"    && CFLAGS="$CFLAGS $debug"
18932test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
18933test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
18934
18935
18936ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list"
18937
18938cat >confcache <<\_ACEOF
18939# This file is a shell script that caches the results of configure
18940# tests run on this system so they can be shared between configure
18941# scripts and configure runs, see configure's option --config-cache.
18942# It is not useful on other systems.  If it contains results you don't
18943# want to keep, you may remove or edit it.
18944#
18945# config.status only pays attention to the cache file if you give it
18946# the --recheck option to rerun configure.
18947#
18948# `ac_cv_env_foo' variables (set or unset) will be overridden when
18949# loading this file, other *unset* `ac_cv_foo' will be assigned the
18950# following values.
18951
18952_ACEOF
18953
18954# The following way of writing the cache mishandles newlines in values,
18955# but we know of no workaround that is simple, portable, and efficient.
18956# So, we kill variables containing newlines.
18957# Ultrix sh set writes to stderr and can't be redirected directly,
18958# and sets the high bit in the cache file unless we assign to the vars.
18959(
18960  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18961    eval ac_val=\$$ac_var
18962    case $ac_val in #(
18963    *${as_nl}*)
18964      case $ac_var in #(
18965      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18967      esac
18968      case $ac_var in #(
18969      _ | IFS | as_nl) ;; #(
18970      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18971      *) { eval $ac_var=; unset $ac_var;} ;;
18972      esac ;;
18973    esac
18974  done
18975
18976  (set) 2>&1 |
18977    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18978    *${as_nl}ac_space=\ *)
18979      # `set' does not quote correctly, so add quotes: double-quote
18980      # substitution turns \\\\ into \\, and sed turns \\ into \.
18981      sed -n \
18982	"s/'/'\\\\''/g;
18983	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18984      ;; #(
18985    *)
18986      # `set' quotes correctly as required by POSIX, so do not add quotes.
18987      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18988      ;;
18989    esac |
18990    sort
18991) |
18992  sed '
18993     /^ac_cv_env_/b end
18994     t clear
18995     :clear
18996     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18997     t end
18998     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18999     :end' >>confcache
19000if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19001  if test -w "$cache_file"; then
19002    if test "x$cache_file" != "x/dev/null"; then
19003      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19004$as_echo "$as_me: updating cache $cache_file" >&6;}
19005      if test ! -f "$cache_file" || test -h "$cache_file"; then
19006	cat confcache >"$cache_file"
19007      else
19008        case $cache_file in #(
19009        */* | ?:*)
19010	  mv -f confcache "$cache_file"$$ &&
19011	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19012        *)
19013	  mv -f confcache "$cache_file" ;;
19014	esac
19015      fi
19016    fi
19017  else
19018    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19019$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19020  fi
19021fi
19022rm -f confcache
19023
19024test "x$prefix" = xNONE && prefix=$ac_default_prefix
19025# Let make expand exec_prefix.
19026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19027
19028DEFS=-DHAVE_CONFIG_H
19029
19030ac_libobjs=
19031ac_ltlibobjs=
19032U=
19033for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19034  # 1. Remove the extension, and $U if already installed.
19035  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19036  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19037  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19038  #    will be set to the directory where LIBOBJS objects are built.
19039  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19040  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19041done
19042LIBOBJS=$ac_libobjs
19043
19044LTLIBOBJS=$ac_ltlibobjs
19045
19046
19047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19048  as_fn_error $? "conditional \"AMDEP\" was never defined.
19049Usually this means the macro was only invoked conditionally." "$LINENO" 5
19050fi
19051if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19052  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19053Usually this means the macro was only invoked conditionally." "$LINENO" 5
19054fi
19055if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19056  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19057Usually this means the macro was only invoked conditionally." "$LINENO" 5
19058fi
19059if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
19060  as_fn_error $? "conditional \"DEBUG\" was never defined.
19061Usually this means the macro was only invoked conditionally." "$LINENO" 5
19062fi
19063
19064: "${CONFIG_STATUS=./config.status}"
19065ac_write_fail=0
19066ac_clean_files_save=$ac_clean_files
19067ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19068{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19069$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19070as_write_fail=0
19071cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19072#! $SHELL
19073# Generated by $as_me.
19074# Run this file to recreate the current configuration.
19075# Compiler output produced by configure, useful for debugging
19076# configure, is in config.log if it exists.
19077
19078debug=false
19079ac_cs_recheck=false
19080ac_cs_silent=false
19081
19082SHELL=\${CONFIG_SHELL-$SHELL}
19083export SHELL
19084_ASEOF
19085cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19086## -------------------- ##
19087## M4sh Initialization. ##
19088## -------------------- ##
19089
19090# Be more Bourne compatible
19091DUALCASE=1; export DUALCASE # for MKS sh
19092if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19093  emulate sh
19094  NULLCMD=:
19095  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19096  # is contrary to our usage.  Disable this feature.
19097  alias -g '${1+"$@"}'='"$@"'
19098  setopt NO_GLOB_SUBST
19099else
19100  case `(set -o) 2>/dev/null` in #(
19101  *posix*) :
19102    set -o posix ;; #(
19103  *) :
19104     ;;
19105esac
19106fi
19107
19108
19109as_nl='
19110'
19111export as_nl
19112# Printing a long string crashes Solaris 7 /usr/bin/printf.
19113as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19114as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19115as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19116# Prefer a ksh shell builtin over an external printf program on Solaris,
19117# but without wasting forks for bash or zsh.
19118if test -z "$BASH_VERSION$ZSH_VERSION" \
19119    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19120  as_echo='print -r --'
19121  as_echo_n='print -rn --'
19122elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19123  as_echo='printf %s\n'
19124  as_echo_n='printf %s'
19125else
19126  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19127    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19128    as_echo_n='/usr/ucb/echo -n'
19129  else
19130    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19131    as_echo_n_body='eval
19132      arg=$1;
19133      case $arg in #(
19134      *"$as_nl"*)
19135	expr "X$arg" : "X\\(.*\\)$as_nl";
19136	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19137      esac;
19138      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19139    '
19140    export as_echo_n_body
19141    as_echo_n='sh -c $as_echo_n_body as_echo'
19142  fi
19143  export as_echo_body
19144  as_echo='sh -c $as_echo_body as_echo'
19145fi
19146
19147# The user is always right.
19148if test "${PATH_SEPARATOR+set}" != set; then
19149  PATH_SEPARATOR=:
19150  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19151    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19152      PATH_SEPARATOR=';'
19153  }
19154fi
19155
19156
19157# IFS
19158# We need space, tab and new line, in precisely that order.  Quoting is
19159# there to prevent editors from complaining about space-tab.
19160# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19161# splitting by setting IFS to empty value.)
19162IFS=" ""	$as_nl"
19163
19164# Find who we are.  Look in the path if we contain no directory separator.
19165as_myself=
19166case $0 in #((
19167  *[\\/]* ) as_myself=$0 ;;
19168  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169for as_dir in $PATH
19170do
19171  IFS=$as_save_IFS
19172  test -z "$as_dir" && as_dir=.
19173    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19174  done
19175IFS=$as_save_IFS
19176
19177     ;;
19178esac
19179# We did not find ourselves, most probably we were run as `sh COMMAND'
19180# in which case we are not to be found in the path.
19181if test "x$as_myself" = x; then
19182  as_myself=$0
19183fi
19184if test ! -f "$as_myself"; then
19185  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19186  exit 1
19187fi
19188
19189# Unset variables that we do not need and which cause bugs (e.g. in
19190# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19191# suppresses any "Segmentation fault" message there.  '((' could
19192# trigger a bug in pdksh 5.2.14.
19193for as_var in BASH_ENV ENV MAIL MAILPATH
19194do eval test x\${$as_var+set} = xset \
19195  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19196done
19197PS1='$ '
19198PS2='> '
19199PS4='+ '
19200
19201# NLS nuisances.
19202LC_ALL=C
19203export LC_ALL
19204LANGUAGE=C
19205export LANGUAGE
19206
19207# CDPATH.
19208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19209
19210
19211# as_fn_error STATUS ERROR [LINENO LOG_FD]
19212# ----------------------------------------
19213# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19214# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19215# script with STATUS, using 1 if that was 0.
19216as_fn_error ()
19217{
19218  as_status=$1; test $as_status -eq 0 && as_status=1
19219  if test "$4"; then
19220    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19221    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19222  fi
19223  $as_echo "$as_me: error: $2" >&2
19224  as_fn_exit $as_status
19225} # as_fn_error
19226
19227
19228# as_fn_set_status STATUS
19229# -----------------------
19230# Set $? to STATUS, without forking.
19231as_fn_set_status ()
19232{
19233  return $1
19234} # as_fn_set_status
19235
19236# as_fn_exit STATUS
19237# -----------------
19238# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19239as_fn_exit ()
19240{
19241  set +e
19242  as_fn_set_status $1
19243  exit $1
19244} # as_fn_exit
19245
19246# as_fn_unset VAR
19247# ---------------
19248# Portably unset VAR.
19249as_fn_unset ()
19250{
19251  { eval $1=; unset $1;}
19252}
19253as_unset=as_fn_unset
19254# as_fn_append VAR VALUE
19255# ----------------------
19256# Append the text in VALUE to the end of the definition contained in VAR. Take
19257# advantage of any shell optimizations that allow amortized linear growth over
19258# repeated appends, instead of the typical quadratic growth present in naive
19259# implementations.
19260if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19261  eval 'as_fn_append ()
19262  {
19263    eval $1+=\$2
19264  }'
19265else
19266  as_fn_append ()
19267  {
19268    eval $1=\$$1\$2
19269  }
19270fi # as_fn_append
19271
19272# as_fn_arith ARG...
19273# ------------------
19274# Perform arithmetic evaluation on the ARGs, and store the result in the
19275# global $as_val. Take advantage of shells that can avoid forks. The arguments
19276# must be portable across $(()) and expr.
19277if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19278  eval 'as_fn_arith ()
19279  {
19280    as_val=$(( $* ))
19281  }'
19282else
19283  as_fn_arith ()
19284  {
19285    as_val=`expr "$@" || test $? -eq 1`
19286  }
19287fi # as_fn_arith
19288
19289
19290if expr a : '\(a\)' >/dev/null 2>&1 &&
19291   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19292  as_expr=expr
19293else
19294  as_expr=false
19295fi
19296
19297if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19298  as_basename=basename
19299else
19300  as_basename=false
19301fi
19302
19303if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19304  as_dirname=dirname
19305else
19306  as_dirname=false
19307fi
19308
19309as_me=`$as_basename -- "$0" ||
19310$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19311	 X"$0" : 'X\(//\)$' \| \
19312	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19313$as_echo X/"$0" |
19314    sed '/^.*\/\([^/][^/]*\)\/*$/{
19315	    s//\1/
19316	    q
19317	  }
19318	  /^X\/\(\/\/\)$/{
19319	    s//\1/
19320	    q
19321	  }
19322	  /^X\/\(\/\).*/{
19323	    s//\1/
19324	    q
19325	  }
19326	  s/.*/./; q'`
19327
19328# Avoid depending upon Character Ranges.
19329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19332as_cr_digits='0123456789'
19333as_cr_alnum=$as_cr_Letters$as_cr_digits
19334
19335ECHO_C= ECHO_N= ECHO_T=
19336case `echo -n x` in #(((((
19337-n*)
19338  case `echo 'xy\c'` in
19339  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19340  xy)  ECHO_C='\c';;
19341  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19342       ECHO_T='	';;
19343  esac;;
19344*)
19345  ECHO_N='-n';;
19346esac
19347
19348rm -f conf$$ conf$$.exe conf$$.file
19349if test -d conf$$.dir; then
19350  rm -f conf$$.dir/conf$$.file
19351else
19352  rm -f conf$$.dir
19353  mkdir conf$$.dir 2>/dev/null
19354fi
19355if (echo >conf$$.file) 2>/dev/null; then
19356  if ln -s conf$$.file conf$$ 2>/dev/null; then
19357    as_ln_s='ln -s'
19358    # ... but there are two gotchas:
19359    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19360    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19361    # In both cases, we have to default to `cp -p'.
19362    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19363      as_ln_s='cp -p'
19364  elif ln conf$$.file conf$$ 2>/dev/null; then
19365    as_ln_s=ln
19366  else
19367    as_ln_s='cp -p'
19368  fi
19369else
19370  as_ln_s='cp -p'
19371fi
19372rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19373rmdir conf$$.dir 2>/dev/null
19374
19375
19376# as_fn_mkdir_p
19377# -------------
19378# Create "$as_dir" as a directory, including parents if necessary.
19379as_fn_mkdir_p ()
19380{
19381
19382  case $as_dir in #(
19383  -*) as_dir=./$as_dir;;
19384  esac
19385  test -d "$as_dir" || eval $as_mkdir_p || {
19386    as_dirs=
19387    while :; do
19388      case $as_dir in #(
19389      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19390      *) as_qdir=$as_dir;;
19391      esac
19392      as_dirs="'$as_qdir' $as_dirs"
19393      as_dir=`$as_dirname -- "$as_dir" ||
19394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19395	 X"$as_dir" : 'X\(//\)[^/]' \| \
19396	 X"$as_dir" : 'X\(//\)$' \| \
19397	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19398$as_echo X"$as_dir" |
19399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19400	    s//\1/
19401	    q
19402	  }
19403	  /^X\(\/\/\)[^/].*/{
19404	    s//\1/
19405	    q
19406	  }
19407	  /^X\(\/\/\)$/{
19408	    s//\1/
19409	    q
19410	  }
19411	  /^X\(\/\).*/{
19412	    s//\1/
19413	    q
19414	  }
19415	  s/.*/./; q'`
19416      test -d "$as_dir" && break
19417    done
19418    test -z "$as_dirs" || eval "mkdir $as_dirs"
19419  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19420
19421
19422} # as_fn_mkdir_p
19423if mkdir -p . 2>/dev/null; then
19424  as_mkdir_p='mkdir -p "$as_dir"'
19425else
19426  test -d ./-p && rmdir ./-p
19427  as_mkdir_p=false
19428fi
19429
19430if test -x / >/dev/null 2>&1; then
19431  as_test_x='test -x'
19432else
19433  if ls -dL / >/dev/null 2>&1; then
19434    as_ls_L_option=L
19435  else
19436    as_ls_L_option=
19437  fi
19438  as_test_x='
19439    eval sh -c '\''
19440      if test -d "$1"; then
19441	test -d "$1/.";
19442      else
19443	case $1 in #(
19444	-*)set "./$1";;
19445	esac;
19446	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19447	???[sx]*):;;*)false;;esac;fi
19448    '\'' sh
19449  '
19450fi
19451as_executable_p=$as_test_x
19452
19453# Sed expression to map a string onto a valid CPP name.
19454as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19455
19456# Sed expression to map a string onto a valid variable name.
19457as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19458
19459
19460exec 6>&1
19461## ----------------------------------- ##
19462## Main body of $CONFIG_STATUS script. ##
19463## ----------------------------------- ##
19464_ASEOF
19465test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19466
19467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19468# Save the log message, to keep $0 and so on meaningful, and to
19469# report actual input values of CONFIG_FILES etc. instead of their
19470# values after options handling.
19471ac_log="
19472This file was extended by ID3 Tag $as_me 0.15.1b, which was
19473generated by GNU Autoconf 2.68.  Invocation command line was
19474
19475  CONFIG_FILES    = $CONFIG_FILES
19476  CONFIG_HEADERS  = $CONFIG_HEADERS
19477  CONFIG_LINKS    = $CONFIG_LINKS
19478  CONFIG_COMMANDS = $CONFIG_COMMANDS
19479  $ $0 $@
19480
19481on `(hostname || uname -n) 2>/dev/null | sed 1q`
19482"
19483
19484_ACEOF
19485
19486case $ac_config_files in *"
19487"*) set x $ac_config_files; shift; ac_config_files=$*;;
19488esac
19489
19490case $ac_config_headers in *"
19491"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19492esac
19493
19494
19495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496# Files that config.status was made for.
19497config_files="$ac_config_files"
19498config_headers="$ac_config_headers"
19499config_commands="$ac_config_commands"
19500
19501_ACEOF
19502
19503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19504ac_cs_usage="\
19505\`$as_me' instantiates files and other configuration actions
19506from templates according to the current configuration.  Unless the files
19507and actions are specified as TAGs, all are instantiated by default.
19508
19509Usage: $0 [OPTION]... [TAG]...
19510
19511  -h, --help       print this help, then exit
19512  -V, --version    print version number and configuration settings, then exit
19513      --config     print configuration, then exit
19514  -q, --quiet, --silent
19515                   do not print progress messages
19516  -d, --debug      don't remove temporary files
19517      --recheck    update $as_me by reconfiguring in the same conditions
19518      --file=FILE[:TEMPLATE]
19519                   instantiate the configuration file FILE
19520      --header=FILE[:TEMPLATE]
19521                   instantiate the configuration header FILE
19522
19523Configuration files:
19524$config_files
19525
19526Configuration headers:
19527$config_headers
19528
19529Configuration commands:
19530$config_commands
19531
19532Report bugs to <support@underbit.com>."
19533
19534_ACEOF
19535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19536ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19537ac_cs_version="\\
19538ID3 Tag config.status 0.15.1b
19539configured by $0, generated by GNU Autoconf 2.68,
19540  with options \\"\$ac_cs_config\\"
19541
19542Copyright (C) 2010 Free Software Foundation, Inc.
19543This config.status script is free software; the Free Software Foundation
19544gives unlimited permission to copy, distribute and modify it."
19545
19546ac_pwd='$ac_pwd'
19547srcdir='$srcdir'
19548INSTALL='$INSTALL'
19549AWK='$AWK'
19550test -n "\$AWK" || AWK=awk
19551_ACEOF
19552
19553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19554# The default lists apply if the user does not specify any file.
19555ac_need_defaults=:
19556while test $# != 0
19557do
19558  case $1 in
19559  --*=?*)
19560    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19561    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19562    ac_shift=:
19563    ;;
19564  --*=)
19565    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19566    ac_optarg=
19567    ac_shift=:
19568    ;;
19569  *)
19570    ac_option=$1
19571    ac_optarg=$2
19572    ac_shift=shift
19573    ;;
19574  esac
19575
19576  case $ac_option in
19577  # Handling of the options.
19578  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19579    ac_cs_recheck=: ;;
19580  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19581    $as_echo "$ac_cs_version"; exit ;;
19582  --config | --confi | --conf | --con | --co | --c )
19583    $as_echo "$ac_cs_config"; exit ;;
19584  --debug | --debu | --deb | --de | --d | -d )
19585    debug=: ;;
19586  --file | --fil | --fi | --f )
19587    $ac_shift
19588    case $ac_optarg in
19589    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19590    '') as_fn_error $? "missing file argument" ;;
19591    esac
19592    as_fn_append CONFIG_FILES " '$ac_optarg'"
19593    ac_need_defaults=false;;
19594  --header | --heade | --head | --hea )
19595    $ac_shift
19596    case $ac_optarg in
19597    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19598    esac
19599    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19600    ac_need_defaults=false;;
19601  --he | --h)
19602    # Conflict between --help and --header
19603    as_fn_error $? "ambiguous option: \`$1'
19604Try \`$0 --help' for more information.";;
19605  --help | --hel | -h )
19606    $as_echo "$ac_cs_usage"; exit ;;
19607  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19608  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19609    ac_cs_silent=: ;;
19610
19611  # This is an error.
19612  -*) as_fn_error $? "unrecognized option: \`$1'
19613Try \`$0 --help' for more information." ;;
19614
19615  *) as_fn_append ac_config_targets " $1"
19616     ac_need_defaults=false ;;
19617
19618  esac
19619  shift
19620done
19621
19622ac_configure_extra_args=
19623
19624if $ac_cs_silent; then
19625  exec 6>/dev/null
19626  ac_configure_extra_args="$ac_configure_extra_args --silent"
19627fi
19628
19629_ACEOF
19630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19631if \$ac_cs_recheck; then
19632  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19633  shift
19634  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19635  CONFIG_SHELL='$SHELL'
19636  export CONFIG_SHELL
19637  exec "\$@"
19638fi
19639
19640_ACEOF
19641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19642exec 5>>config.log
19643{
19644  echo
19645  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19646## Running $as_me. ##
19647_ASBOX
19648  $as_echo "$ac_log"
19649} >&5
19650
19651_ACEOF
19652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19653#
19654# INIT-COMMANDS
19655#
19656AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19657
19658_ACEOF
19659
19660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661
19662# Handling of arguments.
19663for ac_config_target in $ac_config_targets
19664do
19665  case $ac_config_target in
19666    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19667    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19668    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19669    "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
19670    "libid3tag.list") CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;;
19671
19672  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19673  esac
19674done
19675
19676
19677# If the user did not use the arguments to specify the items to instantiate,
19678# then the envvar interface is used.  Set only those that are not.
19679# We use the long form for the default assignment because of an extremely
19680# bizarre bug on SunOS 4.1.3.
19681if $ac_need_defaults; then
19682  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19683  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19684  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19685fi
19686
19687# Have a temporary directory for convenience.  Make it in the build tree
19688# simply because there is no reason against having it here, and in addition,
19689# creating and moving files from /tmp can sometimes cause problems.
19690# Hook for its removal unless debugging.
19691# Note that there is a small window in which the directory will not be cleaned:
19692# after its creation but before its name has been assigned to `$tmp'.
19693$debug ||
19694{
19695  tmp= ac_tmp=
19696  trap 'exit_status=$?
19697  : "${ac_tmp:=$tmp}"
19698  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19699' 0
19700  trap 'as_fn_exit 1' 1 2 13 15
19701}
19702# Create a (secure) tmp directory for tmp files.
19703
19704{
19705  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19706  test -d "$tmp"
19707}  ||
19708{
19709  tmp=./conf$$-$RANDOM
19710  (umask 077 && mkdir "$tmp")
19711} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19712ac_tmp=$tmp
19713
19714# Set up the scripts for CONFIG_FILES section.
19715# No need to generate them if there are no CONFIG_FILES.
19716# This happens for instance with `./config.status config.h'.
19717if test -n "$CONFIG_FILES"; then
19718
19719
19720ac_cr=`echo X | tr X '\015'`
19721# On cygwin, bash can eat \r inside `` if the user requested igncr.
19722# But we know of no other shell where ac_cr would be empty at this
19723# point, so we can use a bashism as a fallback.
19724if test "x$ac_cr" = x; then
19725  eval ac_cr=\$\'\\r\'
19726fi
19727ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19728if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19729  ac_cs_awk_cr='\\r'
19730else
19731  ac_cs_awk_cr=$ac_cr
19732fi
19733
19734echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19735_ACEOF
19736
19737
19738{
19739  echo "cat >conf$$subs.awk <<_ACEOF" &&
19740  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19741  echo "_ACEOF"
19742} >conf$$subs.sh ||
19743  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19744ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19745ac_delim='%!_!# '
19746for ac_last_try in false false false false false :; do
19747  . ./conf$$subs.sh ||
19748    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19749
19750  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19751  if test $ac_delim_n = $ac_delim_num; then
19752    break
19753  elif $ac_last_try; then
19754    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19755  else
19756    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19757  fi
19758done
19759rm -f conf$$subs.sh
19760
19761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19762cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19763_ACEOF
19764sed -n '
19765h
19766s/^/S["/; s/!.*/"]=/
19767p
19768g
19769s/^[^!]*!//
19770:repl
19771t repl
19772s/'"$ac_delim"'$//
19773t delim
19774:nl
19775h
19776s/\(.\{148\}\)..*/\1/
19777t more1
19778s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19779p
19780n
19781b repl
19782:more1
19783s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19784p
19785g
19786s/.\{148\}//
19787t nl
19788:delim
19789h
19790s/\(.\{148\}\)..*/\1/
19791t more2
19792s/["\\]/\\&/g; s/^/"/; s/$/"/
19793p
19794b
19795:more2
19796s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19797p
19798g
19799s/.\{148\}//
19800t delim
19801' <conf$$subs.awk | sed '
19802/^[^""]/{
19803  N
19804  s/\n//
19805}
19806' >>$CONFIG_STATUS || ac_write_fail=1
19807rm -f conf$$subs.awk
19808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19809_ACAWK
19810cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19811  for (key in S) S_is_set[key] = 1
19812  FS = ""
19813
19814}
19815{
19816  line = $ 0
19817  nfields = split(line, field, "@")
19818  substed = 0
19819  len = length(field[1])
19820  for (i = 2; i < nfields; i++) {
19821    key = field[i]
19822    keylen = length(key)
19823    if (S_is_set[key]) {
19824      value = S[key]
19825      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19826      len += length(value) + length(field[++i])
19827      substed = 1
19828    } else
19829      len += 1 + keylen
19830  }
19831
19832  print line
19833}
19834
19835_ACAWK
19836_ACEOF
19837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19838if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19839  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19840else
19841  cat
19842fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19843  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19844_ACEOF
19845
19846# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19847# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19848# trailing colons and then remove the whole line if VPATH becomes empty
19849# (actually we leave an empty line to preserve line numbers).
19850if test "x$srcdir" = x.; then
19851  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19852h
19853s///
19854s/^/:/
19855s/[	 ]*$/:/
19856s/:\$(srcdir):/:/g
19857s/:\${srcdir}:/:/g
19858s/:@srcdir@:/:/g
19859s/^:*//
19860s/:*$//
19861x
19862s/\(=[	 ]*\).*/\1/
19863G
19864s/\n//
19865s/^[^=]*=[	 ]*$//
19866}'
19867fi
19868
19869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870fi # test -n "$CONFIG_FILES"
19871
19872# Set up the scripts for CONFIG_HEADERS section.
19873# No need to generate them if there are no CONFIG_HEADERS.
19874# This happens for instance with `./config.status Makefile'.
19875if test -n "$CONFIG_HEADERS"; then
19876cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19877BEGIN {
19878_ACEOF
19879
19880# Transform confdefs.h into an awk script `defines.awk', embedded as
19881# here-document in config.status, that substitutes the proper values into
19882# config.h.in to produce config.h.
19883
19884# Create a delimiter string that does not exist in confdefs.h, to ease
19885# handling of long lines.
19886ac_delim='%!_!# '
19887for ac_last_try in false false :; do
19888  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19889  if test -z "$ac_tt"; then
19890    break
19891  elif $ac_last_try; then
19892    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19893  else
19894    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19895  fi
19896done
19897
19898# For the awk script, D is an array of macro values keyed by name,
19899# likewise P contains macro parameters if any.  Preserve backslash
19900# newline sequences.
19901
19902ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19903sed -n '
19904s/.\{148\}/&'"$ac_delim"'/g
19905t rset
19906:rset
19907s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19908t def
19909d
19910:def
19911s/\\$//
19912t bsnl
19913s/["\\]/\\&/g
19914s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19915D["\1"]=" \3"/p
19916s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19917d
19918:bsnl
19919s/["\\]/\\&/g
19920s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19921D["\1"]=" \3\\\\\\n"\\/p
19922t cont
19923s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19924t cont
19925d
19926:cont
19927n
19928s/.\{148\}/&'"$ac_delim"'/g
19929t clear
19930:clear
19931s/\\$//
19932t bsnlc
19933s/["\\]/\\&/g; s/^/"/; s/$/"/p
19934d
19935:bsnlc
19936s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19937b cont
19938' <confdefs.h | sed '
19939s/'"$ac_delim"'/"\\\
19940"/g' >>$CONFIG_STATUS || ac_write_fail=1
19941
19942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19943  for (key in D) D_is_set[key] = 1
19944  FS = ""
19945}
19946/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19947  line = \$ 0
19948  split(line, arg, " ")
19949  if (arg[1] == "#") {
19950    defundef = arg[2]
19951    mac1 = arg[3]
19952  } else {
19953    defundef = substr(arg[1], 2)
19954    mac1 = arg[2]
19955  }
19956  split(mac1, mac2, "(") #)
19957  macro = mac2[1]
19958  prefix = substr(line, 1, index(line, defundef) - 1)
19959  if (D_is_set[macro]) {
19960    # Preserve the white space surrounding the "#".
19961    print prefix "define", macro P[macro] D[macro]
19962    next
19963  } else {
19964    # Replace #undef with comments.  This is necessary, for example,
19965    # in the case of _POSIX_SOURCE, which is predefined and required
19966    # on some systems where configure will not decide to define it.
19967    if (defundef == "undef") {
19968      print "/*", prefix defundef, macro, "*/"
19969      next
19970    }
19971  }
19972}
19973{ print }
19974_ACAWK
19975_ACEOF
19976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19977  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19978fi # test -n "$CONFIG_HEADERS"
19979
19980
19981eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19982shift
19983for ac_tag
19984do
19985  case $ac_tag in
19986  :[FHLC]) ac_mode=$ac_tag; continue;;
19987  esac
19988  case $ac_mode$ac_tag in
19989  :[FHL]*:*);;
19990  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19991  :[FH]-) ac_tag=-:-;;
19992  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19993  esac
19994  ac_save_IFS=$IFS
19995  IFS=:
19996  set x $ac_tag
19997  IFS=$ac_save_IFS
19998  shift
19999  ac_file=$1
20000  shift
20001
20002  case $ac_mode in
20003  :L) ac_source=$1;;
20004  :[FH])
20005    ac_file_inputs=
20006    for ac_f
20007    do
20008      case $ac_f in
20009      -) ac_f="$ac_tmp/stdin";;
20010      *) # Look for the file first in the build tree, then in the source tree
20011	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20012	 # because $ac_f cannot contain `:'.
20013	 test -f "$ac_f" ||
20014	   case $ac_f in
20015	   [\\/$]*) false;;
20016	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20017	   esac ||
20018	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20019      esac
20020      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20021      as_fn_append ac_file_inputs " '$ac_f'"
20022    done
20023
20024    # Let's still pretend it is `configure' which instantiates (i.e., don't
20025    # use $as_me), people would be surprised to read:
20026    #    /* config.h.  Generated by config.status.  */
20027    configure_input='Generated from '`
20028	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20029	`' by configure.'
20030    if test x"$ac_file" != x-; then
20031      configure_input="$ac_file.  $configure_input"
20032      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20033$as_echo "$as_me: creating $ac_file" >&6;}
20034    fi
20035    # Neutralize special characters interpreted by sed in replacement strings.
20036    case $configure_input in #(
20037    *\&* | *\|* | *\\* )
20038       ac_sed_conf_input=`$as_echo "$configure_input" |
20039       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20040    *) ac_sed_conf_input=$configure_input;;
20041    esac
20042
20043    case $ac_tag in
20044    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20045      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20046    esac
20047    ;;
20048  esac
20049
20050  ac_dir=`$as_dirname -- "$ac_file" ||
20051$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20052	 X"$ac_file" : 'X\(//\)[^/]' \| \
20053	 X"$ac_file" : 'X\(//\)$' \| \
20054	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20055$as_echo X"$ac_file" |
20056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20057	    s//\1/
20058	    q
20059	  }
20060	  /^X\(\/\/\)[^/].*/{
20061	    s//\1/
20062	    q
20063	  }
20064	  /^X\(\/\/\)$/{
20065	    s//\1/
20066	    q
20067	  }
20068	  /^X\(\/\).*/{
20069	    s//\1/
20070	    q
20071	  }
20072	  s/.*/./; q'`
20073  as_dir="$ac_dir"; as_fn_mkdir_p
20074  ac_builddir=.
20075
20076case "$ac_dir" in
20077.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20078*)
20079  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20080  # A ".." for each directory in $ac_dir_suffix.
20081  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20082  case $ac_top_builddir_sub in
20083  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20084  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20085  esac ;;
20086esac
20087ac_abs_top_builddir=$ac_pwd
20088ac_abs_builddir=$ac_pwd$ac_dir_suffix
20089# for backward compatibility:
20090ac_top_builddir=$ac_top_build_prefix
20091
20092case $srcdir in
20093  .)  # We are building in place.
20094    ac_srcdir=.
20095    ac_top_srcdir=$ac_top_builddir_sub
20096    ac_abs_top_srcdir=$ac_pwd ;;
20097  [\\/]* | ?:[\\/]* )  # Absolute name.
20098    ac_srcdir=$srcdir$ac_dir_suffix;
20099    ac_top_srcdir=$srcdir
20100    ac_abs_top_srcdir=$srcdir ;;
20101  *) # Relative name.
20102    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20103    ac_top_srcdir=$ac_top_build_prefix$srcdir
20104    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20105esac
20106ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20107
20108
20109  case $ac_mode in
20110  :F)
20111  #
20112  # CONFIG_FILE
20113  #
20114
20115  case $INSTALL in
20116  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20117  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20118  esac
20119_ACEOF
20120
20121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122# If the template does not know about datarootdir, expand it.
20123# FIXME: This hack should be removed a few years after 2.60.
20124ac_datarootdir_hack=; ac_datarootdir_seen=
20125ac_sed_dataroot='
20126/datarootdir/ {
20127  p
20128  q
20129}
20130/@datadir@/p
20131/@docdir@/p
20132/@infodir@/p
20133/@localedir@/p
20134/@mandir@/p'
20135case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20136*datarootdir*) ac_datarootdir_seen=yes;;
20137*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20139$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20140_ACEOF
20141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20142  ac_datarootdir_hack='
20143  s&@datadir@&$datadir&g
20144  s&@docdir@&$docdir&g
20145  s&@infodir@&$infodir&g
20146  s&@localedir@&$localedir&g
20147  s&@mandir@&$mandir&g
20148  s&\\\${datarootdir}&$datarootdir&g' ;;
20149esac
20150_ACEOF
20151
20152# Neutralize VPATH when `$srcdir' = `.'.
20153# Shell code in configure.ac might set extrasub.
20154# FIXME: do we really want to maintain this feature?
20155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20156ac_sed_extra="$ac_vpsub
20157$extrasub
20158_ACEOF
20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160:t
20161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20162s|@configure_input@|$ac_sed_conf_input|;t t
20163s&@top_builddir@&$ac_top_builddir_sub&;t t
20164s&@top_build_prefix@&$ac_top_build_prefix&;t t
20165s&@srcdir@&$ac_srcdir&;t t
20166s&@abs_srcdir@&$ac_abs_srcdir&;t t
20167s&@top_srcdir@&$ac_top_srcdir&;t t
20168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20169s&@builddir@&$ac_builddir&;t t
20170s&@abs_builddir@&$ac_abs_builddir&;t t
20171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20172s&@INSTALL@&$ac_INSTALL&;t t
20173$ac_datarootdir_hack
20174"
20175eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20176  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20177
20178test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20179  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20180  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20181      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20183which seems to be undefined.  Please make sure it is defined" >&5
20184$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20185which seems to be undefined.  Please make sure it is defined" >&2;}
20186
20187  rm -f "$ac_tmp/stdin"
20188  case $ac_file in
20189  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20190  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20191  esac \
20192  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20193 ;;
20194  :H)
20195  #
20196  # CONFIG_HEADER
20197  #
20198  if test x"$ac_file" != x-; then
20199    {
20200      $as_echo "/* $configure_input  */" \
20201      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20202    } >"$ac_tmp/config.h" \
20203      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20204    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20205      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20206$as_echo "$as_me: $ac_file is unchanged" >&6;}
20207    else
20208      rm -f "$ac_file"
20209      mv "$ac_tmp/config.h" "$ac_file" \
20210	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20211    fi
20212  else
20213    $as_echo "/* $configure_input  */" \
20214      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20215      || as_fn_error $? "could not create -" "$LINENO" 5
20216  fi
20217# Compute "$ac_file"'s index in $config_headers.
20218_am_stamp_count=1
20219for _am_header in $config_headers :; do
20220  case $_am_header in
20221    "$ac_file" | "$ac_file":* )
20222      break ;;
20223    * )
20224      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20225  esac
20226done
20227echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
20228$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229	 X"$ac_file" : 'X\(//\)[^/]' \| \
20230	 X"$ac_file" : 'X\(//\)$' \| \
20231	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20232$as_echo X"$ac_file" |
20233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20234	    s//\1/
20235	    q
20236	  }
20237	  /^X\(\/\/\)[^/].*/{
20238	    s//\1/
20239	    q
20240	  }
20241	  /^X\(\/\/\)$/{
20242	    s//\1/
20243	    q
20244	  }
20245	  /^X\(\/\).*/{
20246	    s//\1/
20247	    q
20248	  }
20249	  s/.*/./; q'`/stamp-h$_am_stamp_count
20250 ;;
20251
20252  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20253$as_echo "$as_me: executing $ac_file commands" >&6;}
20254 ;;
20255  esac
20256
20257
20258  case $ac_file$ac_mode in
20259    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20260  # Strip MF so we end up with the name of the file.
20261  mf=`echo "$mf" | sed -e 's/:.*$//'`
20262  # Check whether this is an Automake generated Makefile or not.
20263  # We used to match only the files named `Makefile.in', but
20264  # some people rename them; so instead we look at the file content.
20265  # Grep'ing the first line is not enough: some people post-process
20266  # each Makefile.in and add a new line on top of each file to say so.
20267  # So let's grep whole file.
20268  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20269    dirpart=`$as_dirname -- "$mf" ||
20270$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20271	 X"$mf" : 'X\(//\)[^/]' \| \
20272	 X"$mf" : 'X\(//\)$' \| \
20273	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20274$as_echo X"$mf" |
20275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20276	    s//\1/
20277	    q
20278	  }
20279	  /^X\(\/\/\)[^/].*/{
20280	    s//\1/
20281	    q
20282	  }
20283	  /^X\(\/\/\)$/{
20284	    s//\1/
20285	    q
20286	  }
20287	  /^X\(\/\).*/{
20288	    s//\1/
20289	    q
20290	  }
20291	  s/.*/./; q'`
20292  else
20293    continue
20294  fi
20295  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20296  # Extract the definition of DEP_FILES from the Makefile without
20297  # running `make'.
20298  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20299  test -z "$DEPDIR" && continue
20300  # When using ansi2knr, U may be empty or an underscore; expand it
20301  U=`sed -n -e '/^U = / s///p' < "$mf"`
20302  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20303  # We invoke sed twice because it is the simplest approach to
20304  # changing $(DEPDIR) to its actual value in the expansion.
20305  for file in `sed -n -e '
20306    /^DEP_FILES = .*\\\\$/ {
20307      s/^DEP_FILES = //
20308      :loop
20309	s/\\\\$//
20310	p
20311	n
20312	/\\\\$/ b loop
20313      p
20314    }
20315    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20316       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20317    # Make sure the directory exists.
20318    test -f "$dirpart/$file" && continue
20319    fdir=`$as_dirname -- "$file" ||
20320$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321	 X"$file" : 'X\(//\)[^/]' \| \
20322	 X"$file" : 'X\(//\)$' \| \
20323	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20324$as_echo X"$file" |
20325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20326	    s//\1/
20327	    q
20328	  }
20329	  /^X\(\/\/\)[^/].*/{
20330	    s//\1/
20331	    q
20332	  }
20333	  /^X\(\/\/\)$/{
20334	    s//\1/
20335	    q
20336	  }
20337	  /^X\(\/\).*/{
20338	    s//\1/
20339	    q
20340	  }
20341	  s/.*/./; q'`
20342    as_dir=$dirpart/$fdir; as_fn_mkdir_p
20343    # echo "creating $dirpart/$file"
20344    echo '# dummy' > "$dirpart/$file"
20345  done
20346done
20347 ;;
20348
20349  esac
20350done # for ac_tag
20351
20352
20353as_fn_exit 0
20354_ACEOF
20355ac_clean_files=$ac_clean_files_save
20356
20357test $ac_write_fail = 0 ||
20358  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20359
20360
20361# configure is writing to config.log, and then calls config.status.
20362# config.status does its own redirection, appending to config.log.
20363# Unfortunately, on DOS this fails, as config.log is still kept open
20364# by configure, so config.status won't be able to write to it; its
20365# output is simply discarded.  So we exec the FD to /dev/null,
20366# effectively closing config.log, so it can be properly (re)opened and
20367# appended to by config.status.  When coming back to configure, we
20368# need to make the FD available again.
20369if test "$no_create" != yes; then
20370  ac_cs_success=:
20371  ac_config_status_args=
20372  test "$silent" = yes &&
20373    ac_config_status_args="$ac_config_status_args --quiet"
20374  exec 5>/dev/null
20375  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20376  exec 5>>config.log
20377  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20378  # would make configure fail if this is the last instruction.
20379  $ac_cs_success || as_fn_exit 1
20380fi
20381if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20383$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20384fi
20385
20386