configure revision 251886
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.7.17.
4#
5# Report bugs to <http://www.sqlite.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: http://www.sqlite.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561# Check that we are running under the correct shell.
562SHELL=${CONFIG_SHELL-/bin/sh}
563
564case X$ECHO in
565X*--fallback-echo)
566  # Remove one level of quotation (which was required for Make).
567  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568  ;;
569esac
570
571echo=${ECHO-echo}
572if test "X$1" = X--no-reexec; then
573  # Discard the --no-reexec flag, and continue.
574  shift
575elif test "X$1" = X--fallback-echo; then
576  # Avoid inline document here, it may be left over
577  :
578elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579  # Yippee, $echo works!
580  :
581else
582  # Restart under the correct shell.
583  exec $SHELL "$0" --no-reexec ${1+"$@"}
584fi
585
586if test "X$1" = X--fallback-echo; then
587  # used as fallback echo
588  shift
589  cat <<EOF
590$*
591EOF
592  exit 0
593fi
594
595# The HP-UX ksh and POSIX shell print the target directory to stdout
596# if CDPATH is set.
597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599if test -z "$ECHO"; then
600if test "X${echo_test_string+set}" != Xset; then
601# find a string as large as possible, as long as the shell can cope with it
602  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605       echo_test_string=`eval $cmd` &&
606       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607    then
608      break
609    fi
610  done
611fi
612
613if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615   test "X$echo_testing_string" = "X$echo_test_string"; then
616  :
617else
618  # The Solaris, AIX, and Digital Unix default echo programs unquote
619  # backslashes.  This makes it impossible to quote backslashes using
620  #   echo "$something" | sed 's/\\/\\\\/g'
621  #
622  # So, first we look for a working echo in the user's PATH.
623
624  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625  for dir in $PATH /usr/ucb; do
626    IFS="$lt_save_ifs"
627    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630       test "X$echo_testing_string" = "X$echo_test_string"; then
631      echo="$dir/echo"
632      break
633    fi
634  done
635  IFS="$lt_save_ifs"
636
637  if test "X$echo" = Xecho; then
638    # We didn't find a better echo, so look for alternatives.
639    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641       test "X$echo_testing_string" = "X$echo_test_string"; then
642      # This shell has a builtin print -r that does the trick.
643      echo='print -r'
644    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645	 test "X$CONFIG_SHELL" != X/bin/ksh; then
646      # If we have ksh, try running configure again with it.
647      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648      export ORIGINAL_CONFIG_SHELL
649      CONFIG_SHELL=/bin/ksh
650      export CONFIG_SHELL
651      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652    else
653      # Try using printf.
654      echo='printf %s\n'
655      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657	 test "X$echo_testing_string" = "X$echo_test_string"; then
658	# Cool, printf works
659	:
660      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661	   test "X$echo_testing_string" = 'X\t' &&
662	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663	   test "X$echo_testing_string" = "X$echo_test_string"; then
664	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665	export CONFIG_SHELL
666	SHELL="$CONFIG_SHELL"
667	export SHELL
668	echo="$CONFIG_SHELL $0 --fallback-echo"
669      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670	   test "X$echo_testing_string" = 'X\t' &&
671	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	echo="$CONFIG_SHELL $0 --fallback-echo"
674      else
675	# maybe with a smaller string...
676	prev=:
677
678	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680	  then
681	    break
682	  fi
683	  prev="$cmd"
684	done
685
686	if test "$prev" != 'sed 50q "$0"'; then
687	  echo_test_string=`eval $prev`
688	  export echo_test_string
689	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690	else
691	  # Oops.  We lost completely, so just stick with echo.
692	  echo=echo
693	fi
694      fi
695    fi
696  fi
697fi
698fi
699
700# Copy echo and quote the copy suitably for passing to libtool from
701# the Makefile, instead of quoting the original, which is used later.
702ECHO=$echo
703if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705fi
706
707
708
709
710tagnames=${tagnames+${tagnames},}CXX
711
712tagnames=${tagnames+${tagnames},}F77
713
714test -n "$DJDIR" || exec 7<&0 </dev/null
715exec 6>&1
716
717# Name of the host.
718# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719# so uname gets run too.
720ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721
722#
723# Initializations.
724#
725ac_default_prefix=/usr/local
726ac_clean_files=
727ac_config_libobj_dir=.
728LIBOBJS=
729cross_compiling=no
730subdirs=
731MFLAGS=
732MAKEFLAGS=
733
734# Identity of this package.
735PACKAGE_NAME='sqlite'
736PACKAGE_TARNAME='sqlite'
737PACKAGE_VERSION='3.7.17'
738PACKAGE_STRING='sqlite 3.7.17'
739PACKAGE_BUGREPORT='http://www.sqlite.org'
740PACKAGE_URL=''
741
742ac_unique_file="sqlite3.c"
743# Factoring default headers for most tests.
744ac_includes_default="\
745#include <stdio.h>
746#ifdef HAVE_SYS_TYPES_H
747# include <sys/types.h>
748#endif
749#ifdef HAVE_SYS_STAT_H
750# include <sys/stat.h>
751#endif
752#ifdef STDC_HEADERS
753# include <stdlib.h>
754# include <stddef.h>
755#else
756# ifdef HAVE_STDLIB_H
757#  include <stdlib.h>
758# endif
759#endif
760#ifdef HAVE_STRING_H
761# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762#  include <memory.h>
763# endif
764# include <string.h>
765#endif
766#ifdef HAVE_STRINGS_H
767# include <strings.h>
768#endif
769#ifdef HAVE_INTTYPES_H
770# include <inttypes.h>
771#endif
772#ifdef HAVE_STDINT_H
773# include <stdint.h>
774#endif
775#ifdef HAVE_UNISTD_H
776# include <unistd.h>
777#endif"
778
779ac_subst_vars='LTLIBOBJS
780LIBOBJS
781DYNAMIC_EXTENSION_FLAGS
782THREADSAFE_FLAGS
783READLINE_LIBS
784BUILD_CFLAGS
785MKDIR_P
786LIBTOOL
787ac_ct_F77
788FFLAGS
789F77
790CXXCPP
791am__fastdepCXX_FALSE
792am__fastdepCXX_TRUE
793CXXDEPMODE
794ac_ct_CXX
795CXXFLAGS
796CXX
797CPP
798AR
799ECHO
800LN_S
801EGREP
802GREP
803host_os
804host_vendor
805host_cpu
806host
807build_os
808build_vendor
809build_cpu
810build
811RANLIB
812am__fastdepCC_FALSE
813am__fastdepCC_TRUE
814CCDEPMODE
815AMDEPBACKSLASH
816AMDEP_FALSE
817AMDEP_TRUE
818am__quote
819am__include
820DEPDIR
821OBJEXT
822EXEEXT
823ac_ct_CC
824CPPFLAGS
825LDFLAGS
826CFLAGS
827CC
828am__untar
829am__tar
830AMTAR
831am__leading_dot
832SET_MAKE
833AWK
834mkdir_p
835INSTALL_STRIP_PROGRAM
836STRIP
837install_sh
838MAKEINFO
839AUTOHEADER
840AUTOMAKE
841AUTOCONF
842ACLOCAL
843VERSION
844PACKAGE
845CYGPATH_W
846INSTALL_DATA
847INSTALL_SCRIPT
848INSTALL_PROGRAM
849target_alias
850host_alias
851build_alias
852LIBS
853ECHO_T
854ECHO_N
855ECHO_C
856DEFS
857mandir
858localedir
859libdir
860psdir
861pdfdir
862dvidir
863htmldir
864infodir
865docdir
866oldincludedir
867includedir
868localstatedir
869sharedstatedir
870sysconfdir
871datadir
872datarootdir
873libexecdir
874sbindir
875bindir
876program_transform_name
877prefix
878exec_prefix
879PACKAGE_URL
880PACKAGE_BUGREPORT
881PACKAGE_STRING
882PACKAGE_VERSION
883PACKAGE_TARNAME
884PACKAGE_NAME
885PATH_SEPARATOR
886SHELL'
887ac_subst_files=''
888ac_user_opts='
889enable_option_checking
890enable_largefile
891enable_dependency_tracking
892enable_shared
893enable_static
894enable_fast_install
895with_gnu_ld
896enable_libtool_lock
897with_pic
898with_tags
899enable_readline
900enable_threadsafe
901enable_dynamic_extensions
902'
903      ac_precious_vars='build_alias
904host_alias
905target_alias
906CC
907CFLAGS
908LDFLAGS
909LIBS
910CPPFLAGS
911CPP
912CXX
913CXXFLAGS
914CCC
915CXXCPP
916F77
917FFLAGS'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *=)   ac_optarg= ;;
982  *)    ac_optarg=yes ;;
983  esac
984
985  # Accept the important Cygnus configure options, so we can diagnose typos.
986
987  case $ac_dashdash$ac_option in
988  --)
989    ac_dashdash=yes ;;
990
991  -bindir | --bindir | --bindi | --bind | --bin | --bi)
992    ac_prev=bindir ;;
993  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994    bindir=$ac_optarg ;;
995
996  -build | --build | --buil | --bui | --bu)
997    ac_prev=build_alias ;;
998  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999    build_alias=$ac_optarg ;;
1000
1001  -cache-file | --cache-file | --cache-fil | --cache-fi \
1002  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003    ac_prev=cache_file ;;
1004  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006    cache_file=$ac_optarg ;;
1007
1008  --config-cache | -C)
1009    cache_file=config.cache ;;
1010
1011  -datadir | --datadir | --datadi | --datad)
1012    ac_prev=datadir ;;
1013  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014    datadir=$ac_optarg ;;
1015
1016  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017  | --dataroo | --dataro | --datar)
1018    ac_prev=datarootdir ;;
1019  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021    datarootdir=$ac_optarg ;;
1022
1023  -disable-* | --disable-*)
1024    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025    # Reject names that are not valid shell variable names.
1026    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027      as_fn_error $? "invalid feature name: $ac_useropt"
1028    ac_useropt_orig=$ac_useropt
1029    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030    case $ac_user_opts in
1031      *"
1032"enable_$ac_useropt"
1033"*) ;;
1034      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035	 ac_unrecognized_sep=', ';;
1036    esac
1037    eval enable_$ac_useropt=no ;;
1038
1039  -docdir | --docdir | --docdi | --doc | --do)
1040    ac_prev=docdir ;;
1041  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042    docdir=$ac_optarg ;;
1043
1044  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045    ac_prev=dvidir ;;
1046  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047    dvidir=$ac_optarg ;;
1048
1049  -enable-* | --enable-*)
1050    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053      as_fn_error $? "invalid feature name: $ac_useropt"
1054    ac_useropt_orig=$ac_useropt
1055    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056    case $ac_user_opts in
1057      *"
1058"enable_$ac_useropt"
1059"*) ;;
1060      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061	 ac_unrecognized_sep=', ';;
1062    esac
1063    eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067  | --exec | --exe | --ex)
1068    ac_prev=exec_prefix ;;
1069  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071  | --exec=* | --exe=* | --ex=*)
1072    exec_prefix=$ac_optarg ;;
1073
1074  -gas | --gas | --ga | --g)
1075    # Obsolete; use --with-gas.
1076    with_gas=yes ;;
1077
1078  -help | --help | --hel | --he | -h)
1079    ac_init_help=long ;;
1080  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081    ac_init_help=recursive ;;
1082  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083    ac_init_help=short ;;
1084
1085  -host | --host | --hos | --ho)
1086    ac_prev=host_alias ;;
1087  -host=* | --host=* | --hos=* | --ho=*)
1088    host_alias=$ac_optarg ;;
1089
1090  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091    ac_prev=htmldir ;;
1092  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093  | --ht=*)
1094    htmldir=$ac_optarg ;;
1095
1096  -includedir | --includedir | --includedi | --included | --include \
1097  | --includ | --inclu | --incl | --inc)
1098    ac_prev=includedir ;;
1099  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100  | --includ=* | --inclu=* | --incl=* | --inc=*)
1101    includedir=$ac_optarg ;;
1102
1103  -infodir | --infodir | --infodi | --infod | --info | --inf)
1104    ac_prev=infodir ;;
1105  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106    infodir=$ac_optarg ;;
1107
1108  -libdir | --libdir | --libdi | --libd)
1109    ac_prev=libdir ;;
1110  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111    libdir=$ac_optarg ;;
1112
1113  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114  | --libexe | --libex | --libe)
1115    ac_prev=libexecdir ;;
1116  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117  | --libexe=* | --libex=* | --libe=*)
1118    libexecdir=$ac_optarg ;;
1119
1120  -localedir | --localedir | --localedi | --localed | --locale)
1121    ac_prev=localedir ;;
1122  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123    localedir=$ac_optarg ;;
1124
1125  -localstatedir | --localstatedir | --localstatedi | --localstated \
1126  | --localstate | --localstat | --localsta | --localst | --locals)
1127    ac_prev=localstatedir ;;
1128  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130    localstatedir=$ac_optarg ;;
1131
1132  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133    ac_prev=mandir ;;
1134  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135    mandir=$ac_optarg ;;
1136
1137  -nfp | --nfp | --nf)
1138    # Obsolete; use --without-fp.
1139    with_fp=no ;;
1140
1141  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142  | --no-cr | --no-c | -n)
1143    no_create=yes ;;
1144
1145  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147    no_recursion=yes ;;
1148
1149  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151  | --oldin | --oldi | --old | --ol | --o)
1152    ac_prev=oldincludedir ;;
1153  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156    oldincludedir=$ac_optarg ;;
1157
1158  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159    ac_prev=prefix ;;
1160  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161    prefix=$ac_optarg ;;
1162
1163  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164  | --program-pre | --program-pr | --program-p)
1165    ac_prev=program_prefix ;;
1166  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168    program_prefix=$ac_optarg ;;
1169
1170  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171  | --program-suf | --program-su | --program-s)
1172    ac_prev=program_suffix ;;
1173  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175    program_suffix=$ac_optarg ;;
1176
1177  -program-transform-name | --program-transform-name \
1178  | --program-transform-nam | --program-transform-na \
1179  | --program-transform-n | --program-transform- \
1180  | --program-transform | --program-transfor \
1181  | --program-transfo | --program-transf \
1182  | --program-trans | --program-tran \
1183  | --progr-tra | --program-tr | --program-t)
1184    ac_prev=program_transform_name ;;
1185  -program-transform-name=* | --program-transform-name=* \
1186  | --program-transform-nam=* | --program-transform-na=* \
1187  | --program-transform-n=* | --program-transform-=* \
1188  | --program-transform=* | --program-transfor=* \
1189  | --program-transfo=* | --program-transf=* \
1190  | --program-trans=* | --program-tran=* \
1191  | --progr-tra=* | --program-tr=* | --program-t=*)
1192    program_transform_name=$ac_optarg ;;
1193
1194  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195    ac_prev=pdfdir ;;
1196  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197    pdfdir=$ac_optarg ;;
1198
1199  -psdir | --psdir | --psdi | --psd | --ps)
1200    ac_prev=psdir ;;
1201  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202    psdir=$ac_optarg ;;
1203
1204  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205  | -silent | --silent | --silen | --sile | --sil)
1206    silent=yes ;;
1207
1208  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209    ac_prev=sbindir ;;
1210  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211  | --sbi=* | --sb=*)
1212    sbindir=$ac_optarg ;;
1213
1214  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216  | --sharedst | --shareds | --shared | --share | --shar \
1217  | --sha | --sh)
1218    ac_prev=sharedstatedir ;;
1219  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222  | --sha=* | --sh=*)
1223    sharedstatedir=$ac_optarg ;;
1224
1225  -site | --site | --sit)
1226    ac_prev=site ;;
1227  -site=* | --site=* | --sit=*)
1228    site=$ac_optarg ;;
1229
1230  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231    ac_prev=srcdir ;;
1232  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233    srcdir=$ac_optarg ;;
1234
1235  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236  | --syscon | --sysco | --sysc | --sys | --sy)
1237    ac_prev=sysconfdir ;;
1238  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240    sysconfdir=$ac_optarg ;;
1241
1242  -target | --target | --targe | --targ | --tar | --ta | --t)
1243    ac_prev=target_alias ;;
1244  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245    target_alias=$ac_optarg ;;
1246
1247  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248    verbose=yes ;;
1249
1250  -version | --version | --versio | --versi | --vers | -V)
1251    ac_init_version=: ;;
1252
1253  -with-* | --with-*)
1254    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257      as_fn_error $? "invalid package name: $ac_useropt"
1258    ac_useropt_orig=$ac_useropt
1259    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260    case $ac_user_opts in
1261      *"
1262"with_$ac_useropt"
1263"*) ;;
1264      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265	 ac_unrecognized_sep=', ';;
1266    esac
1267    eval with_$ac_useropt=\$ac_optarg ;;
1268
1269  -without-* | --without-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error $? "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281	 ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=no ;;
1284
1285  --x)
1286    # Obsolete; use --with-x.
1287    with_x=yes ;;
1288
1289  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290  | --x-incl | --x-inc | --x-in | --x-i)
1291    ac_prev=x_includes ;;
1292  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294    x_includes=$ac_optarg ;;
1295
1296  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298    ac_prev=x_libraries ;;
1299  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301    x_libraries=$ac_optarg ;;
1302
1303  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304Try \`$0 --help' for more information"
1305    ;;
1306
1307  *=*)
1308    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309    # Reject names that are not valid shell variable names.
1310    case $ac_envvar in #(
1311      '' | [0-9]* | *[!_$as_cr_alnum]* )
1312      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313    esac
1314    eval $ac_envvar=\$ac_optarg
1315    export $ac_envvar ;;
1316
1317  *)
1318    # FIXME: should be removed in autoconf 3.0.
1319    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323    ;;
1324
1325  esac
1326done
1327
1328if test -n "$ac_prev"; then
1329  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330  as_fn_error $? "missing argument to $ac_option"
1331fi
1332
1333if test -n "$ac_unrecognized_opts"; then
1334  case $enable_option_checking in
1335    no) ;;
1336    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338  esac
1339fi
1340
1341# Check all directory arguments for consistency.
1342for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343		datadir sysconfdir sharedstatedir localstatedir includedir \
1344		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345		libdir localedir mandir
1346do
1347  eval ac_val=\$$ac_var
1348  # Remove trailing slashes.
1349  case $ac_val in
1350    */ )
1351      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352      eval $ac_var=\$ac_val;;
1353  esac
1354  # Be sure to have absolute directory names.
1355  case $ac_val in
1356    [\\/$]* | ?:[\\/]* )  continue;;
1357    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358  esac
1359  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371  if test "x$build_alias" = x; then
1372    cross_compiling=maybe
1373  elif test "x$build_alias" != "x$host_alias"; then
1374    cross_compiling=yes
1375  fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387  as_fn_error $? "working directory cannot be determined"
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389  as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394  ac_srcdir_defaulted=yes
1395  # Try the directory containing this script, then the parent directory.
1396  ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398	 X"$as_myself" : 'X\(//\)[^/]' \| \
1399	 X"$as_myself" : 'X\(//\)$' \| \
1400	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
1402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\/\)[^/].*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\).*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  s/.*/./; q'`
1419  srcdir=$ac_confdir
1420  if test ! -r "$srcdir/$ac_unique_file"; then
1421    srcdir=..
1422  fi
1423else
1424  ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429fi
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433	pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436  srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_env_${ac_var}_value=\$${ac_var}
1447  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455  # Omit some internal or obsolete options to make the list less imposing.
1456  # This message is too long to be a string in the A/UX 3.1 sh.
1457  cat <<_ACEOF
1458\`configure' configures sqlite 3.7.17 to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468  -h, --help              display this help and exit
1469      --help=short        display options specific to this package
1470      --help=recursive    display the short help of all the included packages
1471  -V, --version           display version information and exit
1472  -q, --quiet, --silent   do not print \`checking ...' messages
1473      --cache-file=FILE   cache test results in FILE [disabled]
1474  -C, --config-cache      alias for \`--cache-file=config.cache'
1475  -n, --no-create         do not create output files
1476      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479  --prefix=PREFIX         install architecture-independent files in PREFIX
1480                          [$ac_default_prefix]
1481  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                          [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492  --bindir=DIR            user executables [EPREFIX/bin]
1493  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494  --libexecdir=DIR        program executables [EPREFIX/libexec]
1495  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498  --libdir=DIR            object code libraries [EPREFIX/lib]
1499  --includedir=DIR        C header files [PREFIX/include]
1500  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503  --infodir=DIR           info documentation [DATAROOTDIR/info]
1504  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505  --mandir=DIR            man documentation [DATAROOTDIR/man]
1506  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1507  --htmldir=DIR           html documentation [DOCDIR]
1508  --dvidir=DIR            dvi documentation [DOCDIR]
1509  --pdfdir=DIR            pdf documentation [DOCDIR]
1510  --psdir=DIR             ps documentation [DOCDIR]
1511_ACEOF
1512
1513  cat <<\_ACEOF
1514
1515Program names:
1516  --program-prefix=PREFIX            prepend PREFIX to installed program names
1517  --program-suffix=SUFFIX            append SUFFIX to installed program names
1518  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1519
1520System types:
1521  --build=BUILD     configure for building on BUILD [guessed]
1522  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527  case $ac_init_help in
1528     short | recursive ) echo "Configuration of sqlite 3.7.17:";;
1529   esac
1530  cat <<\_ACEOF
1531
1532Optional Features:
1533  --disable-option-checking  ignore unrecognized --enable/--with options
1534  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536  --disable-largefile     omit support for large files
1537  --disable-dependency-tracking  speeds up one-time build
1538  --enable-dependency-tracking   do not reject slow dependency extractors
1539  --enable-shared[=PKGS]  build shared libraries [default=yes]
1540  --enable-static[=PKGS]  build static libraries [default=yes]
1541  --enable-fast-install[=PKGS]
1542                          optimize for fast installation [default=yes]
1543  --disable-libtool-lock  avoid locking (might break parallel builds)
1544  --enable-readline       use readline in shell tool (yes, no) [default=yes]
1545  --enable-threadsafe     build a thread-safe library [default=yes]
1546  --enable-dynamic-extensions
1547                          support loadable extensions [default=yes]
1548
1549Optional Packages:
1550  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553  --with-pic              try to use only PIC/non-PIC objects [default=use
1554                          both]
1555  --with-tags[=TAGS]      include additional configurations [automatic]
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  CPP         C preprocessor
1566  CXX         C++ compiler command
1567  CXXFLAGS    C++ compiler flags
1568  CXXCPP      C++ preprocessor
1569  F77         Fortran 77 compiler command
1570  FFLAGS      Fortran 77 compiler flags
1571
1572Use these variables to override the choices made by `configure' or to help
1573it to find libraries and programs with nonstandard names/locations.
1574
1575Report bugs to <http://www.sqlite.org>.
1576_ACEOF
1577ac_status=$?
1578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581  # If there are subdirs, report their specific --help.
1582  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583    test -d "$ac_dir" ||
1584      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585      continue
1586    ac_builddir=.
1587
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592  # A ".." for each directory in $ac_dir_suffix.
1593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594  case $ac_top_builddir_sub in
1595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597  esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
1603
1604case $srcdir in
1605  .)  # We are building in place.
1606    ac_srcdir=.
1607    ac_top_srcdir=$ac_top_builddir_sub
1608    ac_abs_top_srcdir=$ac_pwd ;;
1609  [\\/]* | ?:[\\/]* )  # Absolute name.
1610    ac_srcdir=$srcdir$ac_dir_suffix;
1611    ac_top_srcdir=$srcdir
1612    ac_abs_top_srcdir=$srcdir ;;
1613  *) # Relative name.
1614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615    ac_top_srcdir=$ac_top_build_prefix$srcdir
1616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617esac
1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620    cd "$ac_dir" || { ac_status=$?; continue; }
1621    # Check for guested configure.
1622    if test -f "$ac_srcdir/configure.gnu"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625    elif test -f "$ac_srcdir/configure"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure" --help=recursive
1628    else
1629      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630    fi || ac_status=$?
1631    cd "$ac_pwd" || { ac_status=$?; break; }
1632  done
1633fi
1634
1635test -n "$ac_init_help" && exit $ac_status
1636if $ac_init_version; then
1637  cat <<\_ACEOF
1638sqlite configure 3.7.17
1639generated by GNU Autoconf 2.69
1640
1641Copyright (C) 2012 Free Software Foundation, Inc.
1642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
1645  exit
1646fi
1647
1648## ------------------------ ##
1649## Autoconf initialization. ##
1650## ------------------------ ##
1651
1652# ac_fn_c_try_compile LINENO
1653# --------------------------
1654# Try to compile conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_c_try_link LINENO
1691# -----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_link ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  rm -f conftest.$ac_objext conftest$ac_exeext
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>conftest.err
1705  ac_status=$?
1706  if test -s conftest.err; then
1707    grep -v '^ *+' conftest.err >conftest.er1
1708    cat conftest.er1 >&5
1709    mv -f conftest.er1 conftest.err
1710  fi
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && {
1713	 test -z "$ac_c_werror_flag" ||
1714	 test ! -s conftest.err
1715       } && test -s conftest$ac_exeext && {
1716	 test "$cross_compiling" = yes ||
1717	 test -x conftest$ac_exeext
1718       }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724	ac_retval=1
1725fi
1726  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728  # interfere with the next link command; also delete a directory that is
1729  # left behind by Apple's compiler.  We do this before executing the actions.
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_link
1735
1736# ac_fn_c_try_cpp LINENO
1737# ----------------------
1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_cpp ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_cpp conftest.$ac_ext"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } > conftest.i && {
1758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766    ac_retval=1
1767fi
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_cpp
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if eval \${$3+:} false; then :
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791  # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  ac_header_compiler=yes
1801else
1802  ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816  ac_header_preproc=yes
1817else
1818  ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So?  What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826  yes:no: )
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831    ;;
1832  no:yes:* )
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843( $as_echo "## ------------------------------------ ##
1844## Report this to http://www.sqlite.org ##
1845## ------------------------------------ ##"
1846     ) | sed "s/^/$as_me: WARNING:     /" >&2
1847    ;;
1848esac
1849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852  $as_echo_n "(cached) " >&6
1853else
1854  eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>&5
1879  ac_status=$?
1880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882  { { case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_try") 2>&5
1889  ac_status=$?
1890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891  test $ac_status = 0; }; }; then :
1892  ac_retval=0
1893else
1894  $as_echo "$as_me: program exited with status $ac_status" >&5
1895       $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898       ac_retval=$ac_status
1899fi
1900  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924  eval "$3=yes"
1925else
1926  eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935} # ac_fn_c_check_header_compile
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955    which can conflict with char $2 (); below.
1956    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957    <limits.h> exists even on freestanding compilers.  */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968   Use char because int might match the return type of a GCC
1969   builtin and then its argument prototype would still apply.  */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975    to always fail with ENOSYS.  Some functions are actually named
1976    something starting with __ and the normal name is an alias.  */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990  eval "$3=yes"
1991else
1992  eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995    conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_cxx_try_compile LINENO
2005# ----------------------------
2006# Try to compile conftest.$ac_ext, and return whether this succeeded.
2007ac_fn_cxx_try_compile ()
2008{
2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010  rm -f conftest.$ac_objext
2011  if { { ac_try="$ac_compile"
2012case "(($ac_try" in
2013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014  *) ac_try_echo=$ac_try;;
2015esac
2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017$as_echo "$ac_try_echo"; } >&5
2018  (eval "$ac_compile") 2>conftest.err
2019  ac_status=$?
2020  if test -s conftest.err; then
2021    grep -v '^ *+' conftest.err >conftest.er1
2022    cat conftest.er1 >&5
2023    mv -f conftest.er1 conftest.err
2024  fi
2025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026  test $ac_status = 0; } && {
2027	 test -z "$ac_cxx_werror_flag" ||
2028	 test ! -s conftest.err
2029       } && test -s conftest.$ac_objext; then :
2030  ac_retval=0
2031else
2032  $as_echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035	ac_retval=1
2036fi
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038  as_fn_set_status $ac_retval
2039
2040} # ac_fn_cxx_try_compile
2041
2042# ac_fn_cxx_try_cpp LINENO
2043# ------------------------
2044# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2045ac_fn_cxx_try_cpp ()
2046{
2047  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048  if { { ac_try="$ac_cpp conftest.$ac_ext"
2049case "(($ac_try" in
2050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051  *) ac_try_echo=$ac_try;;
2052esac
2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054$as_echo "$ac_try_echo"; } >&5
2055  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2056  ac_status=$?
2057  if test -s conftest.err; then
2058    grep -v '^ *+' conftest.err >conftest.er1
2059    cat conftest.er1 >&5
2060    mv -f conftest.er1 conftest.err
2061  fi
2062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063  test $ac_status = 0; } > conftest.i && {
2064	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2065	 test ! -s conftest.err
2066       }; then :
2067  ac_retval=0
2068else
2069  $as_echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072    ac_retval=1
2073fi
2074  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075  as_fn_set_status $ac_retval
2076
2077} # ac_fn_cxx_try_cpp
2078
2079# ac_fn_cxx_try_link LINENO
2080# -------------------------
2081# Try to link conftest.$ac_ext, and return whether this succeeded.
2082ac_fn_cxx_try_link ()
2083{
2084  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085  rm -f conftest.$ac_objext conftest$ac_exeext
2086  if { { ac_try="$ac_link"
2087case "(($ac_try" in
2088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089  *) ac_try_echo=$ac_try;;
2090esac
2091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092$as_echo "$ac_try_echo"; } >&5
2093  (eval "$ac_link") 2>conftest.err
2094  ac_status=$?
2095  if test -s conftest.err; then
2096    grep -v '^ *+' conftest.err >conftest.er1
2097    cat conftest.er1 >&5
2098    mv -f conftest.er1 conftest.err
2099  fi
2100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101  test $ac_status = 0; } && {
2102	 test -z "$ac_cxx_werror_flag" ||
2103	 test ! -s conftest.err
2104       } && test -s conftest$ac_exeext && {
2105	 test "$cross_compiling" = yes ||
2106	 test -x conftest$ac_exeext
2107       }; then :
2108  ac_retval=0
2109else
2110  $as_echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113	ac_retval=1
2114fi
2115  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2116  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2117  # interfere with the next link command; also delete a directory that is
2118  # left behind by Apple's compiler.  We do this before executing the actions.
2119  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121  as_fn_set_status $ac_retval
2122
2123} # ac_fn_cxx_try_link
2124
2125# ac_fn_f77_try_compile LINENO
2126# ----------------------------
2127# Try to compile conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_f77_try_compile ()
2129{
2130  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131  rm -f conftest.$ac_objext
2132  if { { ac_try="$ac_compile"
2133case "(($ac_try" in
2134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135  *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139  (eval "$ac_compile") 2>conftest.err
2140  ac_status=$?
2141  if test -s conftest.err; then
2142    grep -v '^ *+' conftest.err >conftest.er1
2143    cat conftest.er1 >&5
2144    mv -f conftest.er1 conftest.err
2145  fi
2146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147  test $ac_status = 0; } && {
2148	 test -z "$ac_f77_werror_flag" ||
2149	 test ! -s conftest.err
2150       } && test -s conftest.$ac_objext; then :
2151  ac_retval=0
2152else
2153  $as_echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156	ac_retval=1
2157fi
2158  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159  as_fn_set_status $ac_retval
2160
2161} # ac_fn_f77_try_compile
2162
2163# ac_fn_f77_try_link LINENO
2164# -------------------------
2165# Try to link conftest.$ac_ext, and return whether this succeeded.
2166ac_fn_f77_try_link ()
2167{
2168  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169  rm -f conftest.$ac_objext conftest$ac_exeext
2170  if { { ac_try="$ac_link"
2171case "(($ac_try" in
2172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173  *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177  (eval "$ac_link") 2>conftest.err
2178  ac_status=$?
2179  if test -s conftest.err; then
2180    grep -v '^ *+' conftest.err >conftest.er1
2181    cat conftest.er1 >&5
2182    mv -f conftest.er1 conftest.err
2183  fi
2184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185  test $ac_status = 0; } && {
2186	 test -z "$ac_f77_werror_flag" ||
2187	 test ! -s conftest.err
2188       } && test -s conftest$ac_exeext && {
2189	 test "$cross_compiling" = yes ||
2190	 test -x conftest$ac_exeext
2191       }; then :
2192  ac_retval=0
2193else
2194  $as_echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197	ac_retval=1
2198fi
2199  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2200  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2201  # interfere with the next link command; also delete a directory that is
2202  # left behind by Apple's compiler.  We do this before executing the actions.
2203  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205  as_fn_set_status $ac_retval
2206
2207} # ac_fn_f77_try_link
2208
2209# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2210# ---------------------------------------------
2211# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2212# accordingly.
2213ac_fn_c_check_decl ()
2214{
2215  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216  as_decl_name=`echo $2|sed 's/ *(.*//'`
2217  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2219$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$4
2226int
2227main ()
2228{
2229#ifndef $as_decl_name
2230#ifdef __cplusplus
2231  (void) $as_decl_use;
2232#else
2233  (void) $as_decl_name;
2234#endif
2235#endif
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_compile "$LINENO"; then :
2242  eval "$3=yes"
2243else
2244  eval "$3=no"
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247fi
2248eval ac_res=\$$3
2249	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250$as_echo "$ac_res" >&6; }
2251  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252
2253} # ac_fn_c_check_decl
2254cat >config.log <<_ACEOF
2255This file contains any messages produced by compilers while
2256running configure, to aid debugging if configure makes a mistake.
2257
2258It was created by sqlite $as_me 3.7.17, which was
2259generated by GNU Autoconf 2.69.  Invocation command line was
2260
2261  $ $0 $@
2262
2263_ACEOF
2264exec 5>>config.log
2265{
2266cat <<_ASUNAME
2267## --------- ##
2268## Platform. ##
2269## --------- ##
2270
2271hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276
2277/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2279
2280/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2281/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2282/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2284/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2285/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2286/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2287
2288_ASUNAME
2289
2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293  IFS=$as_save_IFS
2294  test -z "$as_dir" && as_dir=.
2295    $as_echo "PATH: $as_dir"
2296  done
2297IFS=$as_save_IFS
2298
2299} >&5
2300
2301cat >&5 <<_ACEOF
2302
2303
2304## ----------- ##
2305## Core tests. ##
2306## ----------- ##
2307
2308_ACEOF
2309
2310
2311# Keep a trace of the command line.
2312# Strip out --no-create and --no-recursion so they do not pile up.
2313# Strip out --silent because we don't want to record it for future runs.
2314# Also quote any args containing shell meta-characters.
2315# Make two passes to allow for proper duplicate-argument suppression.
2316ac_configure_args=
2317ac_configure_args0=
2318ac_configure_args1=
2319ac_must_keep_next=false
2320for ac_pass in 1 2
2321do
2322  for ac_arg
2323  do
2324    case $ac_arg in
2325    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327    | -silent | --silent | --silen | --sile | --sil)
2328      continue ;;
2329    *\'*)
2330      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331    esac
2332    case $ac_pass in
2333    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334    2)
2335      as_fn_append ac_configure_args1 " '$ac_arg'"
2336      if test $ac_must_keep_next = true; then
2337	ac_must_keep_next=false # Got value, back to normal.
2338      else
2339	case $ac_arg in
2340	  *=* | --config-cache | -C | -disable-* | --disable-* \
2341	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343	  | -with-* | --with-* | -without-* | --without-* | --x)
2344	    case "$ac_configure_args0 " in
2345	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346	    esac
2347	    ;;
2348	  -* ) ac_must_keep_next=true ;;
2349	esac
2350      fi
2351      as_fn_append ac_configure_args " '$ac_arg'"
2352      ;;
2353    esac
2354  done
2355done
2356{ ac_configure_args0=; unset ac_configure_args0;}
2357{ ac_configure_args1=; unset ac_configure_args1;}
2358
2359# When interrupted or exit'd, cleanup temporary files, and complete
2360# config.log.  We remove comments because anyway the quotes in there
2361# would cause problems or look ugly.
2362# WARNING: Use '\'' to represent an apostrophe within the trap.
2363# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364trap 'exit_status=$?
2365  # Save into config.log some information that might help in debugging.
2366  {
2367    echo
2368
2369    $as_echo "## ---------------- ##
2370## Cache variables. ##
2371## ---------------- ##"
2372    echo
2373    # The following way of writing the cache mishandles newlines in values,
2374(
2375  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376    eval ac_val=\$$ac_var
2377    case $ac_val in #(
2378    *${as_nl}*)
2379      case $ac_var in #(
2380      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382      esac
2383      case $ac_var in #(
2384      _ | IFS | as_nl) ;; #(
2385      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386      *) { eval $ac_var=; unset $ac_var;} ;;
2387      esac ;;
2388    esac
2389  done
2390  (set) 2>&1 |
2391    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392    *${as_nl}ac_space=\ *)
2393      sed -n \
2394	"s/'\''/'\''\\\\'\'''\''/g;
2395	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396      ;; #(
2397    *)
2398      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399      ;;
2400    esac |
2401    sort
2402)
2403    echo
2404
2405    $as_echo "## ----------------- ##
2406## Output variables. ##
2407## ----------------- ##"
2408    echo
2409    for ac_var in $ac_subst_vars
2410    do
2411      eval ac_val=\$$ac_var
2412      case $ac_val in
2413      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414      esac
2415      $as_echo "$ac_var='\''$ac_val'\''"
2416    done | sort
2417    echo
2418
2419    if test -n "$ac_subst_files"; then
2420      $as_echo "## ------------------- ##
2421## File substitutions. ##
2422## ------------------- ##"
2423      echo
2424      for ac_var in $ac_subst_files
2425      do
2426	eval ac_val=\$$ac_var
2427	case $ac_val in
2428	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429	esac
2430	$as_echo "$ac_var='\''$ac_val'\''"
2431      done | sort
2432      echo
2433    fi
2434
2435    if test -s confdefs.h; then
2436      $as_echo "## ----------- ##
2437## confdefs.h. ##
2438## ----------- ##"
2439      echo
2440      cat confdefs.h
2441      echo
2442    fi
2443    test "$ac_signal" != 0 &&
2444      $as_echo "$as_me: caught signal $ac_signal"
2445    $as_echo "$as_me: exit $exit_status"
2446  } >&5
2447  rm -f core *.core core.conftest.* &&
2448    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449    exit $exit_status
2450' 0
2451for ac_signal in 1 2 13 15; do
2452  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453done
2454ac_signal=0
2455
2456# confdefs.h avoids OS command line length limits that DEFS can exceed.
2457rm -f -r conftest* confdefs.h
2458
2459$as_echo "/* confdefs.h */" > confdefs.h
2460
2461# Predefined preprocessor variables.
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_NAME "$PACKAGE_NAME"
2465_ACEOF
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_VERSION "$PACKAGE_VERSION"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_STRING "$PACKAGE_STRING"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_URL "$PACKAGE_URL"
2485_ACEOF
2486
2487
2488# Let the site file select an alternate cache file if it wants to.
2489# Prefer an explicitly selected file to automatically selected ones.
2490ac_site_file1=NONE
2491ac_site_file2=NONE
2492if test -n "$CONFIG_SITE"; then
2493  # We do not want a PATH search for config.site.
2494  case $CONFIG_SITE in #((
2495    -*)  ac_site_file1=./$CONFIG_SITE;;
2496    */*) ac_site_file1=$CONFIG_SITE;;
2497    *)   ac_site_file1=./$CONFIG_SITE;;
2498  esac
2499elif test "x$prefix" != xNONE; then
2500  ac_site_file1=$prefix/share/config.site
2501  ac_site_file2=$prefix/etc/config.site
2502else
2503  ac_site_file1=$ac_default_prefix/share/config.site
2504  ac_site_file2=$ac_default_prefix/etc/config.site
2505fi
2506for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2507do
2508  test "x$ac_site_file" = xNONE && continue
2509  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512    sed 's/^/| /' "$ac_site_file" >&5
2513    . "$ac_site_file" \
2514      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516as_fn_error $? "failed to load site script $ac_site_file
2517See \`config.log' for more details" "$LINENO" 5; }
2518  fi
2519done
2520
2521if test -r "$cache_file"; then
2522  # Some versions of bash will fail to source /dev/null (special files
2523  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2524  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2525    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526$as_echo "$as_me: loading cache $cache_file" >&6;}
2527    case $cache_file in
2528      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529      *)                      . "./$cache_file";;
2530    esac
2531  fi
2532else
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534$as_echo "$as_me: creating cache $cache_file" >&6;}
2535  >$cache_file
2536fi
2537
2538# Check that the precious variables saved in the cache have kept the same
2539# value.
2540ac_cache_corrupted=false
2541for ac_var in $ac_precious_vars; do
2542  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2543  eval ac_new_set=\$ac_env_${ac_var}_set
2544  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2545  eval ac_new_val=\$ac_env_${ac_var}_value
2546  case $ac_old_set,$ac_new_set in
2547    set,)
2548      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2549$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2550      ac_cache_corrupted=: ;;
2551    ,set)
2552      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2553$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2554      ac_cache_corrupted=: ;;
2555    ,);;
2556    *)
2557      if test "x$ac_old_val" != "x$ac_new_val"; then
2558	# differences in whitespace do not lead to failure.
2559	ac_old_val_w=`echo x $ac_old_val`
2560	ac_new_val_w=`echo x $ac_new_val`
2561	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2562	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2563$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2564	  ac_cache_corrupted=:
2565	else
2566	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2567$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2568	  eval $ac_var=\$ac_old_val
2569	fi
2570	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2571$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2572	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2573$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2574      fi;;
2575  esac
2576  # Pass precious variables to config.status.
2577  if test "$ac_new_set" = set; then
2578    case $ac_new_val in
2579    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2580    *) ac_arg=$ac_var=$ac_new_val ;;
2581    esac
2582    case " $ac_configure_args " in
2583      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2584      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2585    esac
2586  fi
2587done
2588if $ac_cache_corrupted; then
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2592$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2593  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594fi
2595## -------------------- ##
2596## Main body of script. ##
2597## -------------------- ##
2598
2599ac_ext=c
2600ac_cpp='$CPP $CPPFLAGS'
2601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604
2605
2606
2607
2608# Use automake.
2609am__api_version="1.9"
2610ac_aux_dir=
2611for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612  if test -f "$ac_dir/install-sh"; then
2613    ac_aux_dir=$ac_dir
2614    ac_install_sh="$ac_aux_dir/install-sh -c"
2615    break
2616  elif test -f "$ac_dir/install.sh"; then
2617    ac_aux_dir=$ac_dir
2618    ac_install_sh="$ac_aux_dir/install.sh -c"
2619    break
2620  elif test -f "$ac_dir/shtool"; then
2621    ac_aux_dir=$ac_dir
2622    ac_install_sh="$ac_aux_dir/shtool install -c"
2623    break
2624  fi
2625done
2626if test -z "$ac_aux_dir"; then
2627  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2628fi
2629
2630# These three variables are undocumented and unsupported,
2631# and are intended to be withdrawn in a future Autoconf release.
2632# They can cause serious problems if a builder's source tree is in a directory
2633# whose full name contains unusual characters.
2634ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2635ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2636ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2637
2638
2639# Find a good install program.  We prefer a C program (faster),
2640# so one script is as good as another.  But avoid the broken or
2641# incompatible versions:
2642# SysV /etc/install, /usr/sbin/install
2643# SunOS /usr/etc/install
2644# IRIX /sbin/install
2645# AIX /bin/install
2646# AmigaOS /C/install, which installs bootblocks on floppy discs
2647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2648# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2650# OS/2's system install, which has a completely different semantic
2651# ./install, which can be erroneously created by make from ./install.sh.
2652# Reject install programs that cannot install multiple files.
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2654$as_echo_n "checking for a BSD-compatible install... " >&6; }
2655if test -z "$INSTALL"; then
2656if ${ac_cv_path_install+:} false; then :
2657  $as_echo_n "(cached) " >&6
2658else
2659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    # Account for people who put trailing slashes in PATH elements.
2665case $as_dir/ in #((
2666  ./ | .// | /[cC]/* | \
2667  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2668  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2669  /usr/ucb/* ) ;;
2670  *)
2671    # OSF1 and SCO ODT 3.0 have their own names for install.
2672    # Don't use installbsd from OSF since it installs stuff as root
2673    # by default.
2674    for ac_prog in ginstall scoinst install; do
2675      for ac_exec_ext in '' $ac_executable_extensions; do
2676	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2677	  if test $ac_prog = install &&
2678	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2679	    # AIX install.  It has an incompatible calling convention.
2680	    :
2681	  elif test $ac_prog = install &&
2682	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683	    # program-specific install script used by HP pwplus--don't use.
2684	    :
2685	  else
2686	    rm -rf conftest.one conftest.two conftest.dir
2687	    echo one > conftest.one
2688	    echo two > conftest.two
2689	    mkdir conftest.dir
2690	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2691	      test -s conftest.one && test -s conftest.two &&
2692	      test -s conftest.dir/conftest.one &&
2693	      test -s conftest.dir/conftest.two
2694	    then
2695	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2696	      break 3
2697	    fi
2698	  fi
2699	fi
2700      done
2701    done
2702    ;;
2703esac
2704
2705  done
2706IFS=$as_save_IFS
2707
2708rm -rf conftest.one conftest.two conftest.dir
2709
2710fi
2711  if test "${ac_cv_path_install+set}" = set; then
2712    INSTALL=$ac_cv_path_install
2713  else
2714    # As a last resort, use the slow shell script.  Don't cache a
2715    # value for INSTALL within a source directory, because that will
2716    # break other packages using the cache if that directory is
2717    # removed, or if the value is a relative name.
2718    INSTALL=$ac_install_sh
2719  fi
2720fi
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2722$as_echo "$INSTALL" >&6; }
2723
2724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2725# It thinks the first close brace ends the variable substitution.
2726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2727
2728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2729
2730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2733$as_echo_n "checking whether build environment is sane... " >&6; }
2734# Just in case
2735sleep 1
2736echo timestamp > conftest.file
2737# Do `set' in a subshell so we don't clobber the current shell's
2738# arguments.  Must try -L first in case configure is actually a
2739# symlink; some systems play weird games with the mod time of symlinks
2740# (eg FreeBSD returns the mod time of the symlink's containing
2741# directory).
2742if (
2743   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2744   if test "$*" = "X"; then
2745      # -L didn't work.
2746      set X `ls -t $srcdir/configure conftest.file`
2747   fi
2748   rm -f conftest.file
2749   if test "$*" != "X $srcdir/configure conftest.file" \
2750      && test "$*" != "X conftest.file $srcdir/configure"; then
2751
2752      # If neither matched, then we have a broken ls.  This can happen
2753      # if, for instance, CONFIG_SHELL is bash and it inherits a
2754      # broken ls alias from the environment.  This has actually
2755      # happened.  Such a system could not be considered "sane".
2756      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2757alias in your environment" "$LINENO" 5
2758   fi
2759
2760   test "$2" = conftest.file
2761   )
2762then
2763   # Ok.
2764   :
2765else
2766   as_fn_error $? "newly created file is older than distributed files!
2767Check your system clock" "$LINENO" 5
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770$as_echo "yes" >&6; }
2771test "$program_prefix" != NONE &&
2772  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2773# Use a double $ so make ignores it.
2774test "$program_suffix" != NONE &&
2775  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2776# Double any \ or $.
2777# By default was `s,x,x', remove it if useless.
2778ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2779program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2780
2781# expand $ac_aux_dir to an absolute path
2782am_aux_dir=`cd $ac_aux_dir && pwd`
2783
2784test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2785# Use eval to expand $SHELL
2786if eval "$MISSING --run true"; then
2787  am_missing_run="$MISSING --run "
2788else
2789  am_missing_run=
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2791$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2792fi
2793
2794if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2795  # We used to keeping the `.' as first argument, in order to
2796  # allow $(mkdir_p) to be used without argument.  As in
2797  #   $(mkdir_p) $(somedir)
2798  # where $(somedir) is conditionally defined.  However this is wrong
2799  # for two reasons:
2800  #  1. if the package is installed by a user who cannot write `.'
2801  #     make install will fail,
2802  #  2. the above comment should most certainly read
2803  #     $(mkdir_p) $(DESTDIR)$(somedir)
2804  #     so it does not work when $(somedir) is undefined and
2805  #     $(DESTDIR) is not.
2806  #  To support the latter case, we have to write
2807  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2808  #  so the `.' trick is pointless.
2809  mkdir_p='mkdir -p --'
2810else
2811  # On NextStep and OpenStep, the `mkdir' command does not
2812  # recognize any option.  It will interpret all options as
2813  # directories to create, and then abort because `.' already
2814  # exists.
2815  for d in ./-p ./--version;
2816  do
2817    test -d $d && rmdir $d
2818  done
2819  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2820  if test -f "$ac_aux_dir/mkinstalldirs"; then
2821    mkdir_p='$(mkinstalldirs)'
2822  else
2823    mkdir_p='$(install_sh) -d'
2824  fi
2825fi
2826
2827for ac_prog in gawk mawk nawk awk
2828do
2829  # Extract the first word of "$ac_prog", so it can be a program name with args.
2830set dummy $ac_prog; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if ${ac_cv_prog_AWK+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test -n "$AWK"; then
2837  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846    ac_cv_prog_AWK="$ac_prog"
2847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856AWK=$ac_cv_prog_AWK
2857if test -n "$AWK"; then
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859$as_echo "$AWK" >&6; }
2860else
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866  test -n "$AWK" && break
2867done
2868
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871set x ${MAKE-make}
2872ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  cat >conftest.make <<\_ACEOF
2877SHELL = /bin/sh
2878all:
2879	@echo '@@@%%%=$(MAKE)=@@@%%%'
2880_ACEOF
2881# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883  *@@@%%%=?*=@@@%%%*)
2884    eval ac_cv_prog_make_${ac_make}_set=yes;;
2885  *)
2886    eval ac_cv_prog_make_${ac_make}_set=no;;
2887esac
2888rm -f conftest.make
2889fi
2890if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892$as_echo "yes" >&6; }
2893  SET_MAKE=
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897  SET_MAKE="MAKE=${MAKE-make}"
2898fi
2899
2900rm -rf .tst 2>/dev/null
2901mkdir .tst 2>/dev/null
2902if test -d .tst; then
2903  am__leading_dot=.
2904else
2905  am__leading_dot=_
2906fi
2907rmdir .tst 2>/dev/null
2908
2909# test to see if srcdir already configured
2910if test "`cd $srcdir && pwd`" != "`pwd`" &&
2911   test -f $srcdir/config.status; then
2912  as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2913fi
2914
2915# test whether we have cygpath
2916if test -z "$CYGPATH_W"; then
2917  if (cygpath --version) >/dev/null 2>/dev/null; then
2918    CYGPATH_W='cygpath -w'
2919  else
2920    CYGPATH_W=echo
2921  fi
2922fi
2923
2924
2925# Define the identity of the package.
2926 PACKAGE='sqlite'
2927 VERSION='3.7.17'
2928
2929
2930cat >>confdefs.h <<_ACEOF
2931#define PACKAGE "$PACKAGE"
2932_ACEOF
2933
2934
2935cat >>confdefs.h <<_ACEOF
2936#define VERSION "$VERSION"
2937_ACEOF
2938
2939# Some tools Automake needs.
2940
2941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2942
2943
2944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2945
2946
2947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2948
2949
2950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2951
2952
2953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2954
2955install_sh=${install_sh-"$am_aux_dir/install-sh"}
2956
2957# Installed binaries are usually stripped using `strip' when the user
2958# run `make install-strip'.  However `strip' might not be the right
2959# tool to use in cross-compilation environments, therefore Automake
2960# will honor the `STRIP' environment variable to overrule this program.
2961if test "$cross_compiling" != no; then
2962  if test -n "$ac_tool_prefix"; then
2963  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}strip; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_STRIP+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$STRIP"; then
2971  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990STRIP=$ac_cv_prog_STRIP
2991if test -n "$STRIP"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993$as_echo "$STRIP" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_STRIP"; then
3002  ac_ct_STRIP=$STRIP
3003  # Extract the first word of "strip", so it can be a program name with args.
3004set dummy strip; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$ac_ct_STRIP"; then
3011  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    ac_cv_prog_ac_ct_STRIP="strip"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031if test -n "$ac_ct_STRIP"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033$as_echo "$ac_ct_STRIP" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039  if test "x$ac_ct_STRIP" = x; then
3040    STRIP=":"
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    STRIP=$ac_ct_STRIP
3049  fi
3050else
3051  STRIP="$ac_cv_prog_STRIP"
3052fi
3053
3054fi
3055INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3056
3057# We need awk for the "check" target.  The system "awk" is bad on
3058# some platforms.
3059# Always define AMTAR for backward compatibility.
3060
3061AMTAR=${AMTAR-"${am_missing_run}tar"}
3062
3063am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3064
3065
3066
3067
3068
3069
3070DEPDIR="${am__leading_dot}deps"
3071
3072ac_config_commands="$ac_config_commands depfiles"
3073
3074
3075am_make=${MAKE-make}
3076cat > confinc << 'END'
3077am__doit:
3078	@echo done
3079.PHONY: am__doit
3080END
3081# If we don't find an include directive, just comment out the code.
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3083$as_echo_n "checking for style of include used by $am_make... " >&6; }
3084am__include="#"
3085am__quote=
3086_am_result=none
3087# First try GNU make style include.
3088echo "include confinc" > confmf
3089# We grep out `Entering directory' and `Leaving directory'
3090# messages which can occur if `w' ends up in MAKEFLAGS.
3091# In particular we don't look at `^make:' because GNU make might
3092# be invoked under some other name (usually "gmake"), in which
3093# case it prints its new name instead of `make'.
3094if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3095   am__include=include
3096   am__quote=
3097   _am_result=GNU
3098fi
3099# Now try BSD make style include.
3100if test "$am__include" = "#"; then
3101   echo '.include "confinc"' > confmf
3102   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3103      am__include=.include
3104      am__quote="\""
3105      _am_result=BSD
3106   fi
3107fi
3108
3109
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3111$as_echo "$_am_result" >&6; }
3112rm -f confinc confmf
3113
3114# Check whether --enable-dependency-tracking was given.
3115if test "${enable_dependency_tracking+set}" = set; then :
3116  enableval=$enable_dependency_tracking;
3117fi
3118
3119if test "x$enable_dependency_tracking" != xno; then
3120  am_depcomp="$ac_aux_dir/depcomp"
3121  AMDEPBACKSLASH='\'
3122fi
3123
3124
3125if test "x$enable_dependency_tracking" != xno; then
3126  AMDEP_TRUE=
3127  AMDEP_FALSE='#'
3128else
3129  AMDEP_TRUE='#'
3130  AMDEP_FALSE=
3131fi
3132
3133
3134
3135ac_ext=c
3136ac_cpp='$CPP $CPPFLAGS'
3137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140if test -n "$ac_tool_prefix"; then
3141  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3142set dummy ${ac_tool_prefix}gcc; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_CC+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$CC"; then
3149  ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168CC=$ac_cv_prog_CC
3169if test -n "$CC"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171$as_echo "$CC" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178fi
3179if test -z "$ac_cv_prog_CC"; then
3180  ac_ct_CC=$CC
3181  # Extract the first word of "gcc", so it can be a program name with args.
3182set dummy gcc; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$ac_ct_CC"; then
3189  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198    ac_cv_prog_ac_ct_CC="gcc"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209if test -n "$ac_ct_CC"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211$as_echo "$ac_ct_CC" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217  if test "x$ac_ct_CC" = x; then
3218    CC=""
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    CC=$ac_ct_CC
3227  fi
3228else
3229  CC="$ac_cv_prog_CC"
3230fi
3231
3232if test -z "$CC"; then
3233          if test -n "$ac_tool_prefix"; then
3234    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3235set dummy ${ac_tool_prefix}cc; ac_word=$2
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237$as_echo_n "checking for $ac_word... " >&6; }
3238if ${ac_cv_prog_CC+:} false; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  if test -n "$CC"; then
3242  ac_cv_prog_CC="$CC" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249    for ac_exec_ext in '' $ac_executable_extensions; do
3250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_CC="${ac_tool_prefix}cc"
3252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256  done
3257IFS=$as_save_IFS
3258
3259fi
3260fi
3261CC=$ac_cv_prog_CC
3262if test -n "$CC"; then
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264$as_echo "$CC" >&6; }
3265else
3266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267$as_echo "no" >&6; }
3268fi
3269
3270
3271  fi
3272fi
3273if test -z "$CC"; then
3274  # Extract the first word of "cc", so it can be a program name with args.
3275set dummy cc; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if ${ac_cv_prog_CC+:} false; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  if test -n "$CC"; then
3282  ac_cv_prog_CC="$CC" # Let the user override the test.
3283else
3284  ac_prog_rejected=no
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290    for ac_exec_ext in '' $ac_executable_extensions; do
3291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3293       ac_prog_rejected=yes
3294       continue
3295     fi
3296    ac_cv_prog_CC="cc"
3297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304if test $ac_prog_rejected = yes; then
3305  # We found a bogon in the path, so make sure we never use it.
3306  set dummy $ac_cv_prog_CC
3307  shift
3308  if test $# != 0; then
3309    # We chose a different compiler from the bogus one.
3310    # However, it has the same basename, so the bogon will be chosen
3311    # first if we set CC to just the basename; use the full file name.
3312    shift
3313    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3314  fi
3315fi
3316fi
3317fi
3318CC=$ac_cv_prog_CC
3319if test -n "$CC"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321$as_echo "$CC" >&6; }
3322else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325fi
3326
3327
3328fi
3329if test -z "$CC"; then
3330  if test -n "$ac_tool_prefix"; then
3331  for ac_prog in cl.exe
3332  do
3333    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_prog_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348    for ac_exec_ext in '' $ac_executable_extensions; do
3349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360CC=$ac_cv_prog_CC
3361if test -n "$CC"; then
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363$as_echo "$CC" >&6; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370    test -n "$CC" && break
3371  done
3372fi
3373if test -z "$CC"; then
3374  ac_ct_CC=$CC
3375  for ac_prog in cl.exe
3376do
3377  # Extract the first word of "$ac_prog", so it can be a program name with args.
3378set dummy $ac_prog; ac_word=$2
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if ${ac_cv_prog_ac_ct_CC+:} false; then :
3382  $as_echo_n "(cached) " >&6
3383else
3384  if test -n "$ac_ct_CC"; then
3385  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394    ac_cv_prog_ac_ct_CC="$ac_prog"
3395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405if test -n "$ac_ct_CC"; then
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407$as_echo "$ac_ct_CC" >&6; }
3408else
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414  test -n "$ac_ct_CC" && break
3415done
3416
3417  if test "x$ac_ct_CC" = x; then
3418    CC=""
3419  else
3420    case $cross_compiling:$ac_tool_warned in
3421yes:)
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424ac_tool_warned=yes ;;
3425esac
3426    CC=$ac_ct_CC
3427  fi
3428fi
3429
3430fi
3431
3432
3433test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435as_fn_error $? "no acceptable C compiler found in \$PATH
3436See \`config.log' for more details" "$LINENO" 5; }
3437
3438# Provide some information about the compiler.
3439$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3440set X $ac_compile
3441ac_compiler=$2
3442for ac_option in --version -v -V -qversion; do
3443  { { ac_try="$ac_compiler $ac_option >&5"
3444case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3451  ac_status=$?
3452  if test -s conftest.err; then
3453    sed '10a\
3454... rest of stderr output deleted ...
3455         10q' conftest.err >conftest.er1
3456    cat conftest.er1 >&5
3457  fi
3458  rm -f conftest.er1 conftest.err
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }
3461done
3462
3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474ac_clean_files_save=$ac_clean_files
3475ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476# Try to create an executable without -o first, disregard a.out.
3477# It will help us diagnose broken compilers, and finding out an intuition
3478# of exeext.
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3480$as_echo_n "checking whether the C compiler works... " >&6; }
3481ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482
3483# The possible output files:
3484ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3485
3486ac_rmfiles=
3487for ac_file in $ac_files
3488do
3489  case $ac_file in
3490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492  esac
3493done
3494rm -f $ac_rmfiles
3495
3496if { { ac_try="$ac_link_default"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$ac_link_default") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }; then :
3507  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3510# so that the user can short-circuit this test for compilers unknown to
3511# Autoconf.
3512for ac_file in $ac_files ''
3513do
3514  test -f "$ac_file" || continue
3515  case $ac_file in
3516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3517	;;
3518    [ab].out )
3519	# We found the default executable, but exeext='' is most
3520	# certainly right.
3521	break;;
3522    *.* )
3523	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3524	then :; else
3525	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526	fi
3527	# We set ac_cv_exeext here because the later test for it is not
3528	# safe: cross compilers may not add the suffix if given an `-o'
3529	# argument, so we may need to know it at that point already.
3530	# Even if this section looks crufty: it has the advantage of
3531	# actually working.
3532	break;;
3533    * )
3534	break;;
3535  esac
3536done
3537test "$ac_cv_exeext" = no && ac_cv_exeext=
3538
3539else
3540  ac_file=''
3541fi
3542if test -z "$ac_file"; then :
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545$as_echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550as_fn_error 77 "C compiler cannot create executables
3551See \`config.log' for more details" "$LINENO" 5; }
3552else
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3554$as_echo "yes" >&6; }
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3557$as_echo_n "checking for C compiler default output file name... " >&6; }
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3559$as_echo "$ac_file" >&6; }
3560ac_exeext=$ac_cv_exeext
3561
3562rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3563ac_clean_files=$ac_clean_files_save
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3565$as_echo_n "checking for suffix of executables... " >&6; }
3566if { { ac_try="$ac_link"
3567case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572$as_echo "$ac_try_echo"; } >&5
3573  (eval "$ac_link") 2>&5
3574  ac_status=$?
3575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576  test $ac_status = 0; }; then :
3577  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3578# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3579# work properly (i.e., refer to `conftest.exe'), while it won't with
3580# `rm'.
3581for ac_file in conftest.exe conftest conftest.*; do
3582  test -f "$ac_file" || continue
3583  case $ac_file in
3584    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3586	  break;;
3587    * ) break;;
3588  esac
3589done
3590else
3591  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3594See \`config.log' for more details" "$LINENO" 5; }
3595fi
3596rm -f conftest conftest$ac_cv_exeext
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3598$as_echo "$ac_cv_exeext" >&6; }
3599
3600rm -f conftest.$ac_ext
3601EXEEXT=$ac_cv_exeext
3602ac_exeext=$EXEEXT
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <stdio.h>
3606int
3607main ()
3608{
3609FILE *f = fopen ("conftest.out", "w");
3610 return ferror (f) || fclose (f) != 0;
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616ac_clean_files="$ac_clean_files conftest.out"
3617# Check that the compiler produces executables we can run.  If not, either
3618# the compiler is broken, or we cross compile.
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3620$as_echo_n "checking whether we are cross compiling... " >&6; }
3621if test "$cross_compiling" != yes; then
3622  { { ac_try="$ac_link"
3623case "(($ac_try" in
3624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625  *) ac_try_echo=$ac_try;;
3626esac
3627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628$as_echo "$ac_try_echo"; } >&5
3629  (eval "$ac_link") 2>&5
3630  ac_status=$?
3631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632  test $ac_status = 0; }
3633  if { ac_try='./conftest$ac_cv_exeext'
3634  { { case "(($ac_try" in
3635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636  *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639$as_echo "$ac_try_echo"; } >&5
3640  (eval "$ac_try") 2>&5
3641  ac_status=$?
3642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643  test $ac_status = 0; }; }; then
3644    cross_compiling=no
3645  else
3646    if test "$cross_compiling" = maybe; then
3647	cross_compiling=yes
3648    else
3649	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651as_fn_error $? "cannot run C compiled programs.
3652If you meant to cross compile, use \`--host'.
3653See \`config.log' for more details" "$LINENO" 5; }
3654    fi
3655  fi
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3658$as_echo "$cross_compiling" >&6; }
3659
3660rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3661ac_clean_files=$ac_clean_files_save
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3663$as_echo_n "checking for suffix of object files... " >&6; }
3664if ${ac_cv_objext+:} false; then :
3665  $as_echo_n "(cached) " >&6
3666else
3667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h.  */
3669
3670int
3671main ()
3672{
3673
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678rm -f conftest.o conftest.obj
3679if { { ac_try="$ac_compile"
3680case "(($ac_try" in
3681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682  *) ac_try_echo=$ac_try;;
3683esac
3684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685$as_echo "$ac_try_echo"; } >&5
3686  (eval "$ac_compile") 2>&5
3687  ac_status=$?
3688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689  test $ac_status = 0; }; then :
3690  for ac_file in conftest.o conftest.obj conftest.*; do
3691  test -f "$ac_file" || continue;
3692  case $ac_file in
3693    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3694    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3695       break;;
3696  esac
3697done
3698else
3699  $as_echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704as_fn_error $? "cannot compute suffix of object files: cannot compile
3705See \`config.log' for more details" "$LINENO" 5; }
3706fi
3707rm -f conftest.$ac_cv_objext conftest.$ac_ext
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3710$as_echo "$ac_cv_objext" >&6; }
3711OBJEXT=$ac_cv_objext
3712ac_objext=$OBJEXT
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3714$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3715if ${ac_cv_c_compiler_gnu+:} false; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719/* end confdefs.h.  */
3720
3721int
3722main ()
3723{
3724#ifndef __GNUC__
3725       choke me
3726#endif
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_compile "$LINENO"; then :
3733  ac_compiler_gnu=yes
3734else
3735  ac_compiler_gnu=no
3736fi
3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_cv_c_compiler_gnu=$ac_compiler_gnu
3739
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3742$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3743if test $ac_compiler_gnu = yes; then
3744  GCC=yes
3745else
3746  GCC=
3747fi
3748ac_test_CFLAGS=${CFLAGS+set}
3749ac_save_CFLAGS=$CFLAGS
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3751$as_echo_n "checking whether $CC accepts -g... " >&6; }
3752if ${ac_cv_prog_cc_g+:} false; then :
3753  $as_echo_n "(cached) " >&6
3754else
3755  ac_save_c_werror_flag=$ac_c_werror_flag
3756   ac_c_werror_flag=yes
3757   ac_cv_prog_cc_g=no
3758   CFLAGS="-g"
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771  ac_cv_prog_cc_g=yes
3772else
3773  CFLAGS=""
3774      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777int
3778main ()
3779{
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785if ac_fn_c_try_compile "$LINENO"; then :
3786
3787else
3788  ac_c_werror_flag=$ac_save_c_werror_flag
3789	 CFLAGS="-g"
3790	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h.  */
3792
3793int
3794main ()
3795{
3796
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801if ac_fn_c_try_compile "$LINENO"; then :
3802  ac_cv_prog_cc_g=yes
3803fi
3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805fi
3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807fi
3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809   ac_c_werror_flag=$ac_save_c_werror_flag
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3812$as_echo "$ac_cv_prog_cc_g" >&6; }
3813if test "$ac_test_CFLAGS" = set; then
3814  CFLAGS=$ac_save_CFLAGS
3815elif test $ac_cv_prog_cc_g = yes; then
3816  if test "$GCC" = yes; then
3817    CFLAGS="-g -O2"
3818  else
3819    CFLAGS="-g"
3820  fi
3821else
3822  if test "$GCC" = yes; then
3823    CFLAGS="-O2"
3824  else
3825    CFLAGS=
3826  fi
3827fi
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3829$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3830if ${ac_cv_prog_cc_c89+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  ac_cv_prog_cc_c89=no
3834ac_save_CC=$CC
3835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h.  */
3837#include <stdarg.h>
3838#include <stdio.h>
3839struct stat;
3840/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3841struct buf { int x; };
3842FILE * (*rcsopen) (struct buf *, struct stat *, int);
3843static char *e (p, i)
3844     char **p;
3845     int i;
3846{
3847  return p[i];
3848}
3849static char *f (char * (*g) (char **, int), char **p, ...)
3850{
3851  char *s;
3852  va_list v;
3853  va_start (v,p);
3854  s = g (p, va_arg (v,int));
3855  va_end (v);
3856  return s;
3857}
3858
3859/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3860   function prototypes and stuff, but not '\xHH' hex character constants.
3861   These don't provoke an error unfortunately, instead are silently treated
3862   as 'x'.  The following induces an error, until -std is added to get
3863   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3864   array size at least.  It's necessary to write '\x00'==0 to get something
3865   that's true only with -std.  */
3866int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867
3868/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3869   inside strings and character constants.  */
3870#define FOO(x) 'x'
3871int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3872
3873int test (int i, double x);
3874struct s1 {int (*f) (int a);};
3875struct s2 {int (*f) (double a);};
3876int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3877int argc;
3878char **argv;
3879int
3880main ()
3881{
3882return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3883  ;
3884  return 0;
3885}
3886_ACEOF
3887for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3888	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3889do
3890  CC="$ac_save_CC $ac_arg"
3891  if ac_fn_c_try_compile "$LINENO"; then :
3892  ac_cv_prog_cc_c89=$ac_arg
3893fi
3894rm -f core conftest.err conftest.$ac_objext
3895  test "x$ac_cv_prog_cc_c89" != "xno" && break
3896done
3897rm -f conftest.$ac_ext
3898CC=$ac_save_CC
3899
3900fi
3901# AC_CACHE_VAL
3902case "x$ac_cv_prog_cc_c89" in
3903  x)
3904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905$as_echo "none needed" >&6; } ;;
3906  xno)
3907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908$as_echo "unsupported" >&6; } ;;
3909  *)
3910    CC="$CC $ac_cv_prog_cc_c89"
3911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3912$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3913esac
3914if test "x$ac_cv_prog_cc_c89" != xno; then :
3915
3916fi
3917
3918ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923
3924depcc="$CC"   am_compiler_list=
3925
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3927$as_echo_n "checking dependency style of $depcc... " >&6; }
3928if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932  # We make a subdir and do the tests there.  Otherwise we can end up
3933  # making bogus files that we don't know about and never remove.  For
3934  # instance it was reported that on HP-UX the gcc test will end up
3935  # making a dummy file named `D' -- because `-MD' means `put the output
3936  # in D'.
3937  mkdir conftest.dir
3938  # Copy depcomp to subdir because otherwise we won't find it if we're
3939  # using a relative directory.
3940  cp "$am_depcomp" conftest.dir
3941  cd conftest.dir
3942  # We will build objects and dependencies in a subdirectory because
3943  # it helps to detect inapplicable dependency modes.  For instance
3944  # both Tru64's cc and ICC support -MD to output dependencies as a
3945  # side effect of compilation, but ICC will put the dependencies in
3946  # the current directory while Tru64 will put them in the object
3947  # directory.
3948  mkdir sub
3949
3950  am_cv_CC_dependencies_compiler_type=none
3951  if test "$am_compiler_list" = ""; then
3952     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953  fi
3954  for depmode in $am_compiler_list; do
3955    # Setup a source with many dependencies, because some compilers
3956    # like to wrap large dependency lists on column 80 (with \), and
3957    # we should not choose a depcomp mode which is confused by this.
3958    #
3959    # We need to recreate these files for each test, as the compiler may
3960    # overwrite some of them when testing with obscure command lines.
3961    # This happens at least with the AIX C compiler.
3962    : > sub/conftest.c
3963    for i in 1 2 3 4 5 6; do
3964      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3966      # Solaris 8's {/usr,}/bin/sh.
3967      touch sub/conftst$i.h
3968    done
3969    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971    case $depmode in
3972    nosideeffect)
3973      # after this tag, mechanisms are not by side-effect, so they'll
3974      # only be used when explicitly requested
3975      if test "x$enable_dependency_tracking" = xyes; then
3976	continue
3977      else
3978	break
3979      fi
3980      ;;
3981    none) break ;;
3982    esac
3983    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984    # mode.  It turns out that the SunPro C++ compiler does not properly
3985    # handle `-M -o', and we need to detect this.
3986    if depmode=$depmode \
3987       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3988       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3990         >/dev/null 2>conftest.err &&
3991       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3993       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994      # icc doesn't choke on unknown options, it will just issue warnings
3995      # or remarks (even with -Werror).  So we grep stderr for any message
3996      # that says an option was ignored or not supported.
3997      # When given -MP, icc 7.0 and 7.1 complain thusly:
3998      #   icc: Command line warning: ignoring option '-M'; no argument required
3999      # The diagnosis changed in icc 8.0:
4000      #   icc: Command line remark: option '-MP' not supported
4001      if (grep 'ignoring option' conftest.err ||
4002          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003        am_cv_CC_dependencies_compiler_type=$depmode
4004        break
4005      fi
4006    fi
4007  done
4008
4009  cd ..
4010  rm -rf conftest.dir
4011else
4012  am_cv_CC_dependencies_compiler_type=none
4013fi
4014
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
4020
4021
4022if
4023  test "x$enable_dependency_tracking" != xno \
4024  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4025  am__fastdepCC_TRUE=
4026  am__fastdepCC_FALSE='#'
4027else
4028  am__fastdepCC_TRUE='#'
4029  am__fastdepCC_FALSE=
4030fi
4031
4032
4033
4034# Check whether --enable-largefile was given.
4035if test "${enable_largefile+set}" = set; then :
4036  enableval=$enable_largefile;
4037fi
4038
4039if test "$enable_largefile" != no; then
4040
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4042$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4043if ${ac_cv_sys_largefile_CC+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  ac_cv_sys_largefile_CC=no
4047     if test "$GCC" != yes; then
4048       ac_save_CC=$CC
4049       while :; do
4050	 # IRIX 6.2 and later do not support large files by default,
4051	 # so use the C compiler's -n32 option if that helps.
4052	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054#include <sys/types.h>
4055 /* Check that off_t can represent 2**63 - 1 correctly.
4056    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4057    since some C++ compilers masquerading as C compilers
4058    incorrectly reject 9223372036854775807.  */
4059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4060  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4061		       && LARGE_OFF_T % 2147483647 == 1)
4062		      ? 1 : -1];
4063int
4064main ()
4065{
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071	 if ac_fn_c_try_compile "$LINENO"; then :
4072  break
4073fi
4074rm -f core conftest.err conftest.$ac_objext
4075	 CC="$CC -n32"
4076	 if ac_fn_c_try_compile "$LINENO"; then :
4077  ac_cv_sys_largefile_CC=' -n32'; break
4078fi
4079rm -f core conftest.err conftest.$ac_objext
4080	 break
4081       done
4082       CC=$ac_save_CC
4083       rm -f conftest.$ac_ext
4084    fi
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4087$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4088  if test "$ac_cv_sys_largefile_CC" != no; then
4089    CC=$CC$ac_cv_sys_largefile_CC
4090  fi
4091
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4093$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4094if ${ac_cv_sys_file_offset_bits+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  while :; do
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100#include <sys/types.h>
4101 /* Check that off_t can represent 2**63 - 1 correctly.
4102    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4103    since some C++ compilers masquerading as C compilers
4104    incorrectly reject 9223372036854775807.  */
4105#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4106  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4107		       && LARGE_OFF_T % 2147483647 == 1)
4108		      ? 1 : -1];
4109int
4110main ()
4111{
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"; then :
4118  ac_cv_sys_file_offset_bits=no; break
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#define _FILE_OFFSET_BITS 64
4124#include <sys/types.h>
4125 /* Check that off_t can represent 2**63 - 1 correctly.
4126    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4127    since some C++ compilers masquerading as C compilers
4128    incorrectly reject 9223372036854775807.  */
4129#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4130  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4131		       && LARGE_OFF_T % 2147483647 == 1)
4132		      ? 1 : -1];
4133int
4134main ()
4135{
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141if ac_fn_c_try_compile "$LINENO"; then :
4142  ac_cv_sys_file_offset_bits=64; break
4143fi
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145  ac_cv_sys_file_offset_bits=unknown
4146  break
4147done
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4150$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4151case $ac_cv_sys_file_offset_bits in #(
4152  no | unknown) ;;
4153  *)
4154cat >>confdefs.h <<_ACEOF
4155#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4156_ACEOF
4157;;
4158esac
4159rm -rf conftest*
4160  if test $ac_cv_sys_file_offset_bits = unknown; then
4161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4162$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4163if ${ac_cv_sys_large_files+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166  while :; do
4167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h.  */
4169#include <sys/types.h>
4170 /* Check that off_t can represent 2**63 - 1 correctly.
4171    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4172    since some C++ compilers masquerading as C compilers
4173    incorrectly reject 9223372036854775807.  */
4174#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4175  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4176		       && LARGE_OFF_T % 2147483647 == 1)
4177		      ? 1 : -1];
4178int
4179main ()
4180{
4181
4182  ;
4183  return 0;
4184}
4185_ACEOF
4186if ac_fn_c_try_compile "$LINENO"; then :
4187  ac_cv_sys_large_files=no; break
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#define _LARGE_FILES 1
4193#include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196    since some C++ compilers masquerading as C compilers
4197    incorrectly reject 9223372036854775807.  */
4198#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200		       && LARGE_OFF_T % 2147483647 == 1)
4201		      ? 1 : -1];
4202int
4203main ()
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211  ac_cv_sys_large_files=1; break
4212fi
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214  ac_cv_sys_large_files=unknown
4215  break
4216done
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4219$as_echo "$ac_cv_sys_large_files" >&6; }
4220case $ac_cv_sys_large_files in #(
4221  no | unknown) ;;
4222  *)
4223cat >>confdefs.h <<_ACEOF
4224#define _LARGE_FILES $ac_cv_sys_large_files
4225_ACEOF
4226;;
4227esac
4228rm -rf conftest*
4229  fi
4230
4231
4232fi
4233
4234
4235# Check for required programs.
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241if test -n "$ac_tool_prefix"; then
4242  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4243set dummy ${ac_tool_prefix}gcc; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if ${ac_cv_prog_CC+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if test -n "$CC"; then
4250  ac_cv_prog_CC="$CC" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264  done
4265IFS=$as_save_IFS
4266
4267fi
4268fi
4269CC=$ac_cv_prog_CC
4270if test -n "$CC"; then
4271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272$as_echo "$CC" >&6; }
4273else
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
4276fi
4277
4278
4279fi
4280if test -z "$ac_cv_prog_CC"; then
4281  ac_ct_CC=$CC
4282  # Extract the first word of "gcc", so it can be a program name with args.
4283set dummy gcc; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  if test -n "$ac_ct_CC"; then
4290  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295  IFS=$as_save_IFS
4296  test -z "$as_dir" && as_dir=.
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299    ac_cv_prog_ac_ct_CC="gcc"
4300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301    break 2
4302  fi
4303done
4304  done
4305IFS=$as_save_IFS
4306
4307fi
4308fi
4309ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310if test -n "$ac_ct_CC"; then
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312$as_echo "$ac_ct_CC" >&6; }
4313else
4314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318  if test "x$ac_ct_CC" = x; then
4319    CC=""
4320  else
4321    case $cross_compiling:$ac_tool_warned in
4322yes:)
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325ac_tool_warned=yes ;;
4326esac
4327    CC=$ac_ct_CC
4328  fi
4329else
4330  CC="$ac_cv_prog_CC"
4331fi
4332
4333if test -z "$CC"; then
4334          if test -n "$ac_tool_prefix"; then
4335    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4336set dummy ${ac_tool_prefix}cc; ac_word=$2
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
4339if ${ac_cv_prog_CC+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -n "$CC"; then
4343  ac_cv_prog_CC="$CC" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350    for ac_exec_ext in '' $ac_executable_extensions; do
4351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352    ac_cv_prog_CC="${ac_tool_prefix}cc"
4353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354    break 2
4355  fi
4356done
4357  done
4358IFS=$as_save_IFS
4359
4360fi
4361fi
4362CC=$ac_cv_prog_CC
4363if test -n "$CC"; then
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4365$as_echo "$CC" >&6; }
4366else
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368$as_echo "no" >&6; }
4369fi
4370
4371
4372  fi
4373fi
4374if test -z "$CC"; then
4375  # Extract the first word of "cc", so it can be a program name with args.
4376set dummy cc; ac_word=$2
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378$as_echo_n "checking for $ac_word... " >&6; }
4379if ${ac_cv_prog_CC+:} false; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  if test -n "$CC"; then
4383  ac_cv_prog_CC="$CC" # Let the user override the test.
4384else
4385  ac_prog_rejected=no
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  test -z "$as_dir" && as_dir=.
4391    for ac_exec_ext in '' $ac_executable_extensions; do
4392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4394       ac_prog_rejected=yes
4395       continue
4396     fi
4397    ac_cv_prog_CC="cc"
4398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399    break 2
4400  fi
4401done
4402  done
4403IFS=$as_save_IFS
4404
4405if test $ac_prog_rejected = yes; then
4406  # We found a bogon in the path, so make sure we never use it.
4407  set dummy $ac_cv_prog_CC
4408  shift
4409  if test $# != 0; then
4410    # We chose a different compiler from the bogus one.
4411    # However, it has the same basename, so the bogon will be chosen
4412    # first if we set CC to just the basename; use the full file name.
4413    shift
4414    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4415  fi
4416fi
4417fi
4418fi
4419CC=$ac_cv_prog_CC
4420if test -n "$CC"; then
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4422$as_echo "$CC" >&6; }
4423else
4424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425$as_echo "no" >&6; }
4426fi
4427
4428
4429fi
4430if test -z "$CC"; then
4431  if test -n "$ac_tool_prefix"; then
4432  for ac_prog in cl.exe
4433  do
4434    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437$as_echo_n "checking for $ac_word... " >&6; }
4438if ${ac_cv_prog_CC+:} false; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441  if test -n "$CC"; then
4442  ac_cv_prog_CC="$CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447  IFS=$as_save_IFS
4448  test -z "$as_dir" && as_dir=.
4449    for ac_exec_ext in '' $ac_executable_extensions; do
4450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453    break 2
4454  fi
4455done
4456  done
4457IFS=$as_save_IFS
4458
4459fi
4460fi
4461CC=$ac_cv_prog_CC
4462if test -n "$CC"; then
4463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4464$as_echo "$CC" >&6; }
4465else
4466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467$as_echo "no" >&6; }
4468fi
4469
4470
4471    test -n "$CC" && break
4472  done
4473fi
4474if test -z "$CC"; then
4475  ac_ct_CC=$CC
4476  for ac_prog in cl.exe
4477do
4478  # Extract the first word of "$ac_prog", so it can be a program name with args.
4479set dummy $ac_prog; ac_word=$2
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481$as_echo_n "checking for $ac_word... " >&6; }
4482if ${ac_cv_prog_ac_ct_CC+:} false; then :
4483  $as_echo_n "(cached) " >&6
4484else
4485  if test -n "$ac_ct_CC"; then
4486  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4487else
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493    for ac_exec_ext in '' $ac_executable_extensions; do
4494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495    ac_cv_prog_ac_ct_CC="$ac_prog"
4496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497    break 2
4498  fi
4499done
4500  done
4501IFS=$as_save_IFS
4502
4503fi
4504fi
4505ac_ct_CC=$ac_cv_prog_ac_ct_CC
4506if test -n "$ac_ct_CC"; then
4507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4508$as_echo "$ac_ct_CC" >&6; }
4509else
4510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511$as_echo "no" >&6; }
4512fi
4513
4514
4515  test -n "$ac_ct_CC" && break
4516done
4517
4518  if test "x$ac_ct_CC" = x; then
4519    CC=""
4520  else
4521    case $cross_compiling:$ac_tool_warned in
4522yes:)
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525ac_tool_warned=yes ;;
4526esac
4527    CC=$ac_ct_CC
4528  fi
4529fi
4530
4531fi
4532
4533
4534test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536as_fn_error $? "no acceptable C compiler found in \$PATH
4537See \`config.log' for more details" "$LINENO" 5; }
4538
4539# Provide some information about the compiler.
4540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4541set X $ac_compile
4542ac_compiler=$2
4543for ac_option in --version -v -V -qversion; do
4544  { { ac_try="$ac_compiler $ac_option >&5"
4545case "(($ac_try" in
4546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547  *) ac_try_echo=$ac_try;;
4548esac
4549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550$as_echo "$ac_try_echo"; } >&5
4551  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4552  ac_status=$?
4553  if test -s conftest.err; then
4554    sed '10a\
4555... rest of stderr output deleted ...
4556         10q' conftest.err >conftest.er1
4557    cat conftest.er1 >&5
4558  fi
4559  rm -f conftest.er1 conftest.err
4560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561  test $ac_status = 0; }
4562done
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4565$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4566if ${ac_cv_c_compiler_gnu+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571
4572int
4573main ()
4574{
4575#ifndef __GNUC__
4576       choke me
4577#endif
4578
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583if ac_fn_c_try_compile "$LINENO"; then :
4584  ac_compiler_gnu=yes
4585else
4586  ac_compiler_gnu=no
4587fi
4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589ac_cv_c_compiler_gnu=$ac_compiler_gnu
4590
4591fi
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594if test $ac_compiler_gnu = yes; then
4595  GCC=yes
4596else
4597  GCC=
4598fi
4599ac_test_CFLAGS=${CFLAGS+set}
4600ac_save_CFLAGS=$CFLAGS
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602$as_echo_n "checking whether $CC accepts -g... " >&6; }
4603if ${ac_cv_prog_cc_g+:} false; then :
4604  $as_echo_n "(cached) " >&6
4605else
4606  ac_save_c_werror_flag=$ac_c_werror_flag
4607   ac_c_werror_flag=yes
4608   ac_cv_prog_cc_g=no
4609   CFLAGS="-g"
4610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h.  */
4612
4613int
4614main ()
4615{
4616
4617  ;
4618  return 0;
4619}
4620_ACEOF
4621if ac_fn_c_try_compile "$LINENO"; then :
4622  ac_cv_prog_cc_g=yes
4623else
4624  CFLAGS=""
4625      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627
4628int
4629main ()
4630{
4631
4632  ;
4633  return 0;
4634}
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"; then :
4637
4638else
4639  ac_c_werror_flag=$ac_save_c_werror_flag
4640	 CFLAGS="-g"
4641	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h.  */
4643
4644int
4645main ()
4646{
4647
4648  ;
4649  return 0;
4650}
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653  ac_cv_prog_cc_g=yes
4654fi
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656fi
4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658fi
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660   ac_c_werror_flag=$ac_save_c_werror_flag
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4663$as_echo "$ac_cv_prog_cc_g" >&6; }
4664if test "$ac_test_CFLAGS" = set; then
4665  CFLAGS=$ac_save_CFLAGS
4666elif test $ac_cv_prog_cc_g = yes; then
4667  if test "$GCC" = yes; then
4668    CFLAGS="-g -O2"
4669  else
4670    CFLAGS="-g"
4671  fi
4672else
4673  if test "$GCC" = yes; then
4674    CFLAGS="-O2"
4675  else
4676    CFLAGS=
4677  fi
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4680$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4681if ${ac_cv_prog_cc_c89+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  ac_cv_prog_cc_c89=no
4685ac_save_CC=$CC
4686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688#include <stdarg.h>
4689#include <stdio.h>
4690struct stat;
4691/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4692struct buf { int x; };
4693FILE * (*rcsopen) (struct buf *, struct stat *, int);
4694static char *e (p, i)
4695     char **p;
4696     int i;
4697{
4698  return p[i];
4699}
4700static char *f (char * (*g) (char **, int), char **p, ...)
4701{
4702  char *s;
4703  va_list v;
4704  va_start (v,p);
4705  s = g (p, va_arg (v,int));
4706  va_end (v);
4707  return s;
4708}
4709
4710/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4711   function prototypes and stuff, but not '\xHH' hex character constants.
4712   These don't provoke an error unfortunately, instead are silently treated
4713   as 'x'.  The following induces an error, until -std is added to get
4714   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4715   array size at least.  It's necessary to write '\x00'==0 to get something
4716   that's true only with -std.  */
4717int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4718
4719/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4720   inside strings and character constants.  */
4721#define FOO(x) 'x'
4722int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4723
4724int test (int i, double x);
4725struct s1 {int (*f) (int a);};
4726struct s2 {int (*f) (double a);};
4727int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4728int argc;
4729char **argv;
4730int
4731main ()
4732{
4733return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4739	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4740do
4741  CC="$ac_save_CC $ac_arg"
4742  if ac_fn_c_try_compile "$LINENO"; then :
4743  ac_cv_prog_cc_c89=$ac_arg
4744fi
4745rm -f core conftest.err conftest.$ac_objext
4746  test "x$ac_cv_prog_cc_c89" != "xno" && break
4747done
4748rm -f conftest.$ac_ext
4749CC=$ac_save_CC
4750
4751fi
4752# AC_CACHE_VAL
4753case "x$ac_cv_prog_cc_c89" in
4754  x)
4755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756$as_echo "none needed" >&6; } ;;
4757  xno)
4758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759$as_echo "unsupported" >&6; } ;;
4760  *)
4761    CC="$CC $ac_cv_prog_cc_c89"
4762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4763$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4764esac
4765if test "x$ac_cv_prog_cc_c89" != xno; then :
4766
4767fi
4768
4769ac_ext=c
4770ac_cpp='$CPP $CPPFLAGS'
4771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774
4775depcc="$CC"   am_compiler_list=
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4778$as_echo_n "checking dependency style of $depcc... " >&6; }
4779if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4783  # We make a subdir and do the tests there.  Otherwise we can end up
4784  # making bogus files that we don't know about and never remove.  For
4785  # instance it was reported that on HP-UX the gcc test will end up
4786  # making a dummy file named `D' -- because `-MD' means `put the output
4787  # in D'.
4788  mkdir conftest.dir
4789  # Copy depcomp to subdir because otherwise we won't find it if we're
4790  # using a relative directory.
4791  cp "$am_depcomp" conftest.dir
4792  cd conftest.dir
4793  # We will build objects and dependencies in a subdirectory because
4794  # it helps to detect inapplicable dependency modes.  For instance
4795  # both Tru64's cc and ICC support -MD to output dependencies as a
4796  # side effect of compilation, but ICC will put the dependencies in
4797  # the current directory while Tru64 will put them in the object
4798  # directory.
4799  mkdir sub
4800
4801  am_cv_CC_dependencies_compiler_type=none
4802  if test "$am_compiler_list" = ""; then
4803     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4804  fi
4805  for depmode in $am_compiler_list; do
4806    # Setup a source with many dependencies, because some compilers
4807    # like to wrap large dependency lists on column 80 (with \), and
4808    # we should not choose a depcomp mode which is confused by this.
4809    #
4810    # We need to recreate these files for each test, as the compiler may
4811    # overwrite some of them when testing with obscure command lines.
4812    # This happens at least with the AIX C compiler.
4813    : > sub/conftest.c
4814    for i in 1 2 3 4 5 6; do
4815      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4816      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4817      # Solaris 8's {/usr,}/bin/sh.
4818      touch sub/conftst$i.h
4819    done
4820    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4821
4822    case $depmode in
4823    nosideeffect)
4824      # after this tag, mechanisms are not by side-effect, so they'll
4825      # only be used when explicitly requested
4826      if test "x$enable_dependency_tracking" = xyes; then
4827	continue
4828      else
4829	break
4830      fi
4831      ;;
4832    none) break ;;
4833    esac
4834    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4835    # mode.  It turns out that the SunPro C++ compiler does not properly
4836    # handle `-M -o', and we need to detect this.
4837    if depmode=$depmode \
4838       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4839       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4840       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4841         >/dev/null 2>conftest.err &&
4842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845      # icc doesn't choke on unknown options, it will just issue warnings
4846      # or remarks (even with -Werror).  So we grep stderr for any message
4847      # that says an option was ignored or not supported.
4848      # When given -MP, icc 7.0 and 7.1 complain thusly:
4849      #   icc: Command line warning: ignoring option '-M'; no argument required
4850      # The diagnosis changed in icc 8.0:
4851      #   icc: Command line remark: option '-MP' not supported
4852      if (grep 'ignoring option' conftest.err ||
4853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854        am_cv_CC_dependencies_compiler_type=$depmode
4855        break
4856      fi
4857    fi
4858  done
4859
4860  cd ..
4861  rm -rf conftest.dir
4862else
4863  am_cv_CC_dependencies_compiler_type=none
4864fi
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4870
4871
4872
4873if
4874  test "x$enable_dependency_tracking" != xno \
4875  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4876  am__fastdepCC_TRUE=
4877  am__fastdepCC_FALSE='#'
4878else
4879  am__fastdepCC_TRUE='#'
4880  am__fastdepCC_FALSE=
4881fi
4882
4883
4884if test -n "$ac_tool_prefix"; then
4885  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4886set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if ${ac_cv_prog_RANLIB+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  if test -n "$RANLIB"; then
4893  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_exec_ext in '' $ac_executable_extensions; do
4901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907  done
4908IFS=$as_save_IFS
4909
4910fi
4911fi
4912RANLIB=$ac_cv_prog_RANLIB
4913if test -n "$RANLIB"; then
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4915$as_echo "$RANLIB" >&6; }
4916else
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919fi
4920
4921
4922fi
4923if test -z "$ac_cv_prog_RANLIB"; then
4924  ac_ct_RANLIB=$RANLIB
4925  # Extract the first word of "ranlib", so it can be a program name with args.
4926set dummy ranlib; ac_word=$2
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
4929if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  if test -n "$ac_ct_RANLIB"; then
4933  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938  IFS=$as_save_IFS
4939  test -z "$as_dir" && as_dir=.
4940    for ac_exec_ext in '' $ac_executable_extensions; do
4941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942    ac_cv_prog_ac_ct_RANLIB="ranlib"
4943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944    break 2
4945  fi
4946done
4947  done
4948IFS=$as_save_IFS
4949
4950fi
4951fi
4952ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4953if test -n "$ac_ct_RANLIB"; then
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4955$as_echo "$ac_ct_RANLIB" >&6; }
4956else
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961  if test "x$ac_ct_RANLIB" = x; then
4962    RANLIB=":"
4963  else
4964    case $cross_compiling:$ac_tool_warned in
4965yes:)
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968ac_tool_warned=yes ;;
4969esac
4970    RANLIB=$ac_ct_RANLIB
4971  fi
4972else
4973  RANLIB="$ac_cv_prog_RANLIB"
4974fi
4975
4976# Check whether --enable-shared was given.
4977if test "${enable_shared+set}" = set; then :
4978  enableval=$enable_shared; p=${PACKAGE-default}
4979    case $enableval in
4980    yes) enable_shared=yes ;;
4981    no) enable_shared=no ;;
4982    *)
4983      enable_shared=no
4984      # Look at the argument we got.  We use all the common list separators.
4985      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4986      for pkg in $enableval; do
4987	IFS="$lt_save_ifs"
4988	if test "X$pkg" = "X$p"; then
4989	  enable_shared=yes
4990	fi
4991      done
4992      IFS="$lt_save_ifs"
4993      ;;
4994    esac
4995else
4996  enable_shared=yes
4997fi
4998
4999
5000# Check whether --enable-static was given.
5001if test "${enable_static+set}" = set; then :
5002  enableval=$enable_static; p=${PACKAGE-default}
5003    case $enableval in
5004    yes) enable_static=yes ;;
5005    no) enable_static=no ;;
5006    *)
5007     enable_static=no
5008      # Look at the argument we got.  We use all the common list separators.
5009      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5010      for pkg in $enableval; do
5011	IFS="$lt_save_ifs"
5012	if test "X$pkg" = "X$p"; then
5013	  enable_static=yes
5014	fi
5015      done
5016      IFS="$lt_save_ifs"
5017      ;;
5018    esac
5019else
5020  enable_static=yes
5021fi
5022
5023
5024# Check whether --enable-fast-install was given.
5025if test "${enable_fast_install+set}" = set; then :
5026  enableval=$enable_fast_install; p=${PACKAGE-default}
5027    case $enableval in
5028    yes) enable_fast_install=yes ;;
5029    no) enable_fast_install=no ;;
5030    *)
5031      enable_fast_install=no
5032      # Look at the argument we got.  We use all the common list separators.
5033      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5034      for pkg in $enableval; do
5035	IFS="$lt_save_ifs"
5036	if test "X$pkg" = "X$p"; then
5037	  enable_fast_install=yes
5038	fi
5039      done
5040      IFS="$lt_save_ifs"
5041      ;;
5042    esac
5043else
5044  enable_fast_install=yes
5045fi
5046
5047
5048# Make sure we can run config.sub.
5049$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5050  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5053$as_echo_n "checking build system type... " >&6; }
5054if ${ac_cv_build+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  ac_build_alias=$build_alias
5058test "x$ac_build_alias" = x &&
5059  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5060test "x$ac_build_alias" = x &&
5061  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5062ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5063  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5064
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5067$as_echo "$ac_cv_build" >&6; }
5068case $ac_cv_build in
5069*-*-*) ;;
5070*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5071esac
5072build=$ac_cv_build
5073ac_save_IFS=$IFS; IFS='-'
5074set x $ac_cv_build
5075shift
5076build_cpu=$1
5077build_vendor=$2
5078shift; shift
5079# Remember, the first character of IFS is used to create $*,
5080# except with old shells:
5081build_os=$*
5082IFS=$ac_save_IFS
5083case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5084
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5087$as_echo_n "checking host system type... " >&6; }
5088if ${ac_cv_host+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  if test "x$host_alias" = x; then
5092  ac_cv_host=$ac_cv_build
5093else
5094  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5095    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5096fi
5097
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5100$as_echo "$ac_cv_host" >&6; }
5101case $ac_cv_host in
5102*-*-*) ;;
5103*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5104esac
5105host=$ac_cv_host
5106ac_save_IFS=$IFS; IFS='-'
5107set x $ac_cv_host
5108shift
5109host_cpu=$1
5110host_vendor=$2
5111shift; shift
5112# Remember, the first character of IFS is used to create $*,
5113# except with old shells:
5114host_os=$*
5115IFS=$ac_save_IFS
5116case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5117
5118
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5120$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5121if ${lt_cv_path_SED+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  # Loop through the user's path and test for sed and gsed.
5125# Then use that list of sed's as ones to test for truncation.
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131  for lt_ac_prog in sed gsed; do
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5134        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5135      fi
5136    done
5137  done
5138done
5139lt_ac_max=0
5140lt_ac_count=0
5141# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5142# along with /bin/sed that truncates output.
5143for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5144  test ! -f $lt_ac_sed && continue
5145  cat /dev/null > conftest.in
5146  lt_ac_count=0
5147  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5148  # Check for GNU sed and select it if it is found.
5149  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5150    lt_cv_path_SED=$lt_ac_sed
5151    break
5152  fi
5153  while true; do
5154    cat conftest.in conftest.in >conftest.tmp
5155    mv conftest.tmp conftest.in
5156    cp conftest.in conftest.nl
5157    echo >>conftest.nl
5158    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5159    cmp -s conftest.out conftest.nl || break
5160    # 10000 chars as input seems more than enough
5161    test $lt_ac_count -gt 10 && break
5162    lt_ac_count=`expr $lt_ac_count + 1`
5163    if test $lt_ac_count -gt $lt_ac_max; then
5164      lt_ac_max=$lt_ac_count
5165      lt_cv_path_SED=$lt_ac_sed
5166    fi
5167  done
5168done
5169
5170fi
5171
5172SED=$lt_cv_path_SED
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5174$as_echo "$SED" >&6; }
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5177$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5178if ${ac_cv_path_GREP+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  if test -z "$GREP"; then
5182  ac_path_GREP_found=false
5183  # Loop through the user's path and test for each of PROGNAME-LIST
5184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_prog in grep ggrep; do
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5192      as_fn_executable_p "$ac_path_GREP" || continue
5193# Check for GNU ac_path_GREP and select it if it is found.
5194  # Check for GNU $ac_path_GREP
5195case `"$ac_path_GREP" --version 2>&1` in
5196*GNU*)
5197  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5198*)
5199  ac_count=0
5200  $as_echo_n 0123456789 >"conftest.in"
5201  while :
5202  do
5203    cat "conftest.in" "conftest.in" >"conftest.tmp"
5204    mv "conftest.tmp" "conftest.in"
5205    cp "conftest.in" "conftest.nl"
5206    $as_echo 'GREP' >> "conftest.nl"
5207    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209    as_fn_arith $ac_count + 1 && ac_count=$as_val
5210    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5211      # Best one so far, save it but keep looking for a better one
5212      ac_cv_path_GREP="$ac_path_GREP"
5213      ac_path_GREP_max=$ac_count
5214    fi
5215    # 10*(2^10) chars as input seems more than enough
5216    test $ac_count -gt 10 && break
5217  done
5218  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219esac
5220
5221      $ac_path_GREP_found && break 3
5222    done
5223  done
5224  done
5225IFS=$as_save_IFS
5226  if test -z "$ac_cv_path_GREP"; then
5227    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228  fi
5229else
5230  ac_cv_path_GREP=$GREP
5231fi
5232
5233fi
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5235$as_echo "$ac_cv_path_GREP" >&6; }
5236 GREP="$ac_cv_path_GREP"
5237
5238
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5240$as_echo_n "checking for egrep... " >&6; }
5241if ${ac_cv_path_EGREP+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5245   then ac_cv_path_EGREP="$GREP -E"
5246   else
5247     if test -z "$EGREP"; then
5248  ac_path_EGREP_found=false
5249  # Loop through the user's path and test for each of PROGNAME-LIST
5250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255    for ac_prog in egrep; do
5256    for ac_exec_ext in '' $ac_executable_extensions; do
5257      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5258      as_fn_executable_p "$ac_path_EGREP" || continue
5259# Check for GNU ac_path_EGREP and select it if it is found.
5260  # Check for GNU $ac_path_EGREP
5261case `"$ac_path_EGREP" --version 2>&1` in
5262*GNU*)
5263  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5264*)
5265  ac_count=0
5266  $as_echo_n 0123456789 >"conftest.in"
5267  while :
5268  do
5269    cat "conftest.in" "conftest.in" >"conftest.tmp"
5270    mv "conftest.tmp" "conftest.in"
5271    cp "conftest.in" "conftest.nl"
5272    $as_echo 'EGREP' >> "conftest.nl"
5273    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275    as_fn_arith $ac_count + 1 && ac_count=$as_val
5276    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5277      # Best one so far, save it but keep looking for a better one
5278      ac_cv_path_EGREP="$ac_path_EGREP"
5279      ac_path_EGREP_max=$ac_count
5280    fi
5281    # 10*(2^10) chars as input seems more than enough
5282    test $ac_count -gt 10 && break
5283  done
5284  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285esac
5286
5287      $ac_path_EGREP_found && break 3
5288    done
5289  done
5290  done
5291IFS=$as_save_IFS
5292  if test -z "$ac_cv_path_EGREP"; then
5293    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5294  fi
5295else
5296  ac_cv_path_EGREP=$EGREP
5297fi
5298
5299   fi
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5302$as_echo "$ac_cv_path_EGREP" >&6; }
5303 EGREP="$ac_cv_path_EGREP"
5304
5305
5306
5307# Check whether --with-gnu-ld was given.
5308if test "${with_gnu_ld+set}" = set; then :
5309  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5310else
5311  with_gnu_ld=no
5312fi
5313
5314ac_prog=ld
5315if test "$GCC" = yes; then
5316  # Check if gcc -print-prog-name=ld gives a path.
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5318$as_echo_n "checking for ld used by $CC... " >&6; }
5319  case $host in
5320  *-*-mingw*)
5321    # gcc leaves a trailing carriage return which upsets mingw
5322    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5323  *)
5324    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5325  esac
5326  case $ac_prog in
5327    # Accept absolute paths.
5328    [\\/]* | ?:[\\/]*)
5329      re_direlt='/[^/][^/]*/\.\./'
5330      # Canonicalize the pathname of ld
5331      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5332      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5333	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5334      done
5335      test -z "$LD" && LD="$ac_prog"
5336      ;;
5337  "")
5338    # If it fails, then pretend we aren't using GCC.
5339    ac_prog=ld
5340    ;;
5341  *)
5342    # If it is relative, then search for the first ld in PATH.
5343    with_gnu_ld=unknown
5344    ;;
5345  esac
5346elif test "$with_gnu_ld" = yes; then
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5348$as_echo_n "checking for GNU ld... " >&6; }
5349else
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5351$as_echo_n "checking for non-GNU ld... " >&6; }
5352fi
5353if ${lt_cv_path_LD+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  if test -z "$LD"; then
5357  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358  for ac_dir in $PATH; do
5359    IFS="$lt_save_ifs"
5360    test -z "$ac_dir" && ac_dir=.
5361    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5362      lt_cv_path_LD="$ac_dir/$ac_prog"
5363      # Check to see if the program is GNU ld.  I'd rather use --version,
5364      # but apparently some variants of GNU ld only accept -v.
5365      # Break only if it was the GNU/non-GNU ld that we prefer.
5366      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5367      *GNU* | *'with BFD'*)
5368	test "$with_gnu_ld" != no && break
5369	;;
5370      *)
5371	test "$with_gnu_ld" != yes && break
5372	;;
5373      esac
5374    fi
5375  done
5376  IFS="$lt_save_ifs"
5377else
5378  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5379fi
5380fi
5381
5382LD="$lt_cv_path_LD"
5383if test -n "$LD"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5385$as_echo "$LD" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5392$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5393if ${lt_cv_prog_gnu_ld+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5397case `$LD -v 2>&1 </dev/null` in
5398*GNU* | *'with BFD'*)
5399  lt_cv_prog_gnu_ld=yes
5400  ;;
5401*)
5402  lt_cv_prog_gnu_ld=no
5403  ;;
5404esac
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5407$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5408with_gnu_ld=$lt_cv_prog_gnu_ld
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412$as_echo_n "checking for $LD option to reload object files... " >&6; }
5413if ${lt_cv_ld_reload_flag+:} false; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  lt_cv_ld_reload_flag='-r'
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419$as_echo "$lt_cv_ld_reload_flag" >&6; }
5420reload_flag=$lt_cv_ld_reload_flag
5421case $reload_flag in
5422"" | " "*) ;;
5423*) reload_flag=" $reload_flag" ;;
5424esac
5425reload_cmds='$LD$reload_flag -o $output$reload_objs'
5426case $host_os in
5427  darwin*)
5428    if test "$GCC" = yes; then
5429      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5430    else
5431      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5432    fi
5433    ;;
5434esac
5435
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5437$as_echo_n "checking for BSD-compatible nm... " >&6; }
5438if ${lt_cv_path_NM+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  if test -n "$NM"; then
5442  # Let the user override the test.
5443  lt_cv_path_NM="$NM"
5444else
5445  lt_nm_to_check="${ac_tool_prefix}nm"
5446  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5447    lt_nm_to_check="$lt_nm_to_check nm"
5448  fi
5449  for lt_tmp_nm in $lt_nm_to_check; do
5450    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5451    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5452      IFS="$lt_save_ifs"
5453      test -z "$ac_dir" && ac_dir=.
5454      tmp_nm="$ac_dir/$lt_tmp_nm"
5455      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5456	# Check to see if the nm accepts a BSD-compat flag.
5457	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5458	#   nm: unknown option "B" ignored
5459	# Tru64's nm complains that /dev/null is an invalid object file
5460	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5461	*/dev/null* | *'Invalid file or object type'*)
5462	  lt_cv_path_NM="$tmp_nm -B"
5463	  break
5464	  ;;
5465	*)
5466	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5467	  */dev/null*)
5468	    lt_cv_path_NM="$tmp_nm -p"
5469	    break
5470	    ;;
5471	  *)
5472	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5473	    continue # so that we can try to find one that supports BSD flags
5474	    ;;
5475	  esac
5476	  ;;
5477	esac
5478      fi
5479    done
5480    IFS="$lt_save_ifs"
5481  done
5482  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5483fi
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5486$as_echo "$lt_cv_path_NM" >&6; }
5487NM="$lt_cv_path_NM"
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5490$as_echo_n "checking whether ln -s works... " >&6; }
5491LN_S=$as_ln_s
5492if test "$LN_S" = "ln -s"; then
5493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494$as_echo "yes" >&6; }
5495else
5496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5497$as_echo "no, using $LN_S" >&6; }
5498fi
5499
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5501$as_echo_n "checking how to recognise dependent libraries... " >&6; }
5502if ${lt_cv_deplibs_check_method+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  lt_cv_file_magic_cmd='$MAGIC_CMD'
5506lt_cv_file_magic_test_file=
5507lt_cv_deplibs_check_method='unknown'
5508# Need to set the preceding variable on all platforms that support
5509# interlibrary dependencies.
5510# 'none' -- dependencies not supported.
5511# `unknown' -- same as none, but documents that we really don't know.
5512# 'pass_all' -- all dependencies passed with no checks.
5513# 'test_compile' -- check by making test program.
5514# 'file_magic [[regex]]' -- check by looking for files in library path
5515# which responds to the $file_magic_cmd with a given extended regex.
5516# If you have `file' or equivalent on your system and you're not sure
5517# whether `pass_all' will *always* work, you probably want this one.
5518
5519case $host_os in
5520aix4* | aix5*)
5521  lt_cv_deplibs_check_method=pass_all
5522  ;;
5523
5524beos*)
5525  lt_cv_deplibs_check_method=pass_all
5526  ;;
5527
5528bsdi[45]*)
5529  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5530  lt_cv_file_magic_cmd='/usr/bin/file -L'
5531  lt_cv_file_magic_test_file=/shlib/libc.so
5532  ;;
5533
5534cygwin*)
5535  # func_win32_libid is a shell function defined in ltmain.sh
5536  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5537  lt_cv_file_magic_cmd='func_win32_libid'
5538  ;;
5539
5540mingw* | pw32*)
5541  # Base MSYS/MinGW do not provide the 'file' command needed by
5542  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5543  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5544  lt_cv_file_magic_cmd='$OBJDUMP -f'
5545  ;;
5546
5547darwin* | rhapsody*)
5548  lt_cv_deplibs_check_method=pass_all
5549  ;;
5550
5551freebsd* | kfreebsd*-gnu | dragonfly*)
5552  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5553    case $host_cpu in
5554    i*86 )
5555      # Not sure whether the presence of OpenBSD here was a mistake.
5556      # Let's accept both of them until this is cleared up.
5557      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5558      lt_cv_file_magic_cmd=/usr/bin/file
5559      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560      ;;
5561    esac
5562  else
5563    lt_cv_deplibs_check_method=pass_all
5564  fi
5565  ;;
5566
5567gnu*)
5568  lt_cv_deplibs_check_method=pass_all
5569  ;;
5570
5571hpux10.20* | hpux11*)
5572  lt_cv_file_magic_cmd=/usr/bin/file
5573  case $host_cpu in
5574  ia64*)
5575    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5576    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5577    ;;
5578  hppa*64*)
5579    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]'
5580    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5581    ;;
5582  *)
5583    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5584    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5585    ;;
5586  esac
5587  ;;
5588
5589interix3*)
5590  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5591  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5592  ;;
5593
5594irix5* | irix6* | nonstopux*)
5595  case $LD in
5596  *-32|*"-32 ") libmagic=32-bit;;
5597  *-n32|*"-n32 ") libmagic=N32;;
5598  *-64|*"-64 ") libmagic=64-bit;;
5599  *) libmagic=never-match;;
5600  esac
5601  lt_cv_deplibs_check_method=pass_all
5602  ;;
5603
5604# This must be Linux ELF.
5605linux*)
5606  lt_cv_deplibs_check_method=pass_all
5607  ;;
5608
5609netbsd*)
5610  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5611    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5612  else
5613    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5614  fi
5615  ;;
5616
5617newos6*)
5618  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5619  lt_cv_file_magic_cmd=/usr/bin/file
5620  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5621  ;;
5622
5623nto-qnx*)
5624  lt_cv_deplibs_check_method=unknown
5625  ;;
5626
5627openbsd*)
5628  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5629    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5630  else
5631    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5632  fi
5633  ;;
5634
5635osf3* | osf4* | osf5*)
5636  lt_cv_deplibs_check_method=pass_all
5637  ;;
5638
5639solaris*)
5640  lt_cv_deplibs_check_method=pass_all
5641  ;;
5642
5643sysv4 | sysv4.3*)
5644  case $host_vendor in
5645  motorola)
5646    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]'
5647    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5648    ;;
5649  ncr)
5650    lt_cv_deplibs_check_method=pass_all
5651    ;;
5652  sequent)
5653    lt_cv_file_magic_cmd='/bin/file'
5654    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5655    ;;
5656  sni)
5657    lt_cv_file_magic_cmd='/bin/file'
5658    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5659    lt_cv_file_magic_test_file=/lib/libc.so
5660    ;;
5661  siemens)
5662    lt_cv_deplibs_check_method=pass_all
5663    ;;
5664  pc)
5665    lt_cv_deplibs_check_method=pass_all
5666    ;;
5667  esac
5668  ;;
5669
5670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673esac
5674
5675fi
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677$as_echo "$lt_cv_deplibs_check_method" >&6; }
5678file_magic_cmd=$lt_cv_file_magic_cmd
5679deplibs_check_method=$lt_cv_deplibs_check_method
5680test -z "$deplibs_check_method" && deplibs_check_method=unknown
5681
5682
5683
5684
5685# If no C compiler was specified, use CC.
5686LTCC=${LTCC-"$CC"}
5687
5688# If no C compiler flags were specified, use CFLAGS.
5689LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5690
5691# Allow CC to be a program name with arguments.
5692compiler=$CC
5693
5694# Check whether --enable-libtool-lock was given.
5695if test "${enable_libtool_lock+set}" = set; then :
5696  enableval=$enable_libtool_lock;
5697fi
5698
5699test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5700
5701# Some flags need to be propagated to the compiler or linker for good
5702# libtool support.
5703case $host in
5704ia64-*-hpux*)
5705  # Find out which ABI we are using.
5706  echo 'int i;' > conftest.$ac_ext
5707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5708  (eval $ac_compile) 2>&5
5709  ac_status=$?
5710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711  test $ac_status = 0; }; then
5712    case `/usr/bin/file conftest.$ac_objext` in
5713    *ELF-32*)
5714      HPUX_IA64_MODE="32"
5715      ;;
5716    *ELF-64*)
5717      HPUX_IA64_MODE="64"
5718      ;;
5719    esac
5720  fi
5721  rm -rf conftest*
5722  ;;
5723*-*-irix6*)
5724  # Find out which ABI we are using.
5725  echo '#line 5725 "configure"' > conftest.$ac_ext
5726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5727  (eval $ac_compile) 2>&5
5728  ac_status=$?
5729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730  test $ac_status = 0; }; then
5731   if test "$lt_cv_prog_gnu_ld" = yes; then
5732    case `/usr/bin/file conftest.$ac_objext` in
5733    *32-bit*)
5734      LD="${LD-ld} -melf32bsmip"
5735      ;;
5736    *N32*)
5737      LD="${LD-ld} -melf32bmipn32"
5738      ;;
5739    *64-bit*)
5740      LD="${LD-ld} -melf64bmip"
5741      ;;
5742    esac
5743   else
5744    case `/usr/bin/file conftest.$ac_objext` in
5745    *32-bit*)
5746      LD="${LD-ld} -32"
5747      ;;
5748    *N32*)
5749      LD="${LD-ld} -n32"
5750      ;;
5751    *64-bit*)
5752      LD="${LD-ld} -64"
5753      ;;
5754    esac
5755   fi
5756  fi
5757  rm -rf conftest*
5758  ;;
5759
5760x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5761  # Find out which ABI we are using.
5762  echo 'int i;' > conftest.$ac_ext
5763  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5764  (eval $ac_compile) 2>&5
5765  ac_status=$?
5766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767  test $ac_status = 0; }; then
5768    case `/usr/bin/file conftest.o` in
5769    *32-bit*)
5770      case $host in
5771        x86_64-*linux*)
5772          LD="${LD-ld} -m elf_i386"
5773          ;;
5774        ppc64-*linux*|powerpc64-*linux*)
5775          LD="${LD-ld} -m elf32ppclinux"
5776          ;;
5777        s390x-*linux*)
5778          LD="${LD-ld} -m elf_s390"
5779          ;;
5780        sparc64-*linux*)
5781          LD="${LD-ld} -m elf32_sparc"
5782          ;;
5783      esac
5784      ;;
5785    *64-bit*)
5786      case $host in
5787        x86_64-*linux*)
5788          LD="${LD-ld} -m elf_x86_64"
5789          ;;
5790        ppc*-*linux*|powerpc*-*linux*)
5791          LD="${LD-ld} -m elf64ppc"
5792          ;;
5793        s390*-*linux*)
5794          LD="${LD-ld} -m elf64_s390"
5795          ;;
5796        sparc*-*linux*)
5797          LD="${LD-ld} -m elf64_sparc"
5798          ;;
5799      esac
5800      ;;
5801    esac
5802  fi
5803  rm -rf conftest*
5804  ;;
5805
5806*-*-sco3.2v5*)
5807  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5808  SAVE_CFLAGS="$CFLAGS"
5809  CFLAGS="$CFLAGS -belf"
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5811$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5812if ${lt_cv_cc_needs_belf+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  ac_ext=c
5816ac_cpp='$CPP $CPPFLAGS'
5817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823
5824int
5825main ()
5826{
5827
5828  ;
5829  return 0;
5830}
5831_ACEOF
5832if ac_fn_c_try_link "$LINENO"; then :
5833  lt_cv_cc_needs_belf=yes
5834else
5835  lt_cv_cc_needs_belf=no
5836fi
5837rm -f core conftest.err conftest.$ac_objext \
5838    conftest$ac_exeext conftest.$ac_ext
5839     ac_ext=c
5840ac_cpp='$CPP $CPPFLAGS'
5841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5847$as_echo "$lt_cv_cc_needs_belf" >&6; }
5848  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5849    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5850    CFLAGS="$SAVE_CFLAGS"
5851  fi
5852  ;;
5853sparc*-*solaris*)
5854  # Find out which ABI we are using.
5855  echo 'int i;' > conftest.$ac_ext
5856  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5857  (eval $ac_compile) 2>&5
5858  ac_status=$?
5859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860  test $ac_status = 0; }; then
5861    case `/usr/bin/file conftest.o` in
5862    *64-bit*)
5863      case $lt_cv_prog_gnu_ld in
5864      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5865      *)    LD="${LD-ld} -64" ;;
5866      esac
5867      ;;
5868    esac
5869  fi
5870  rm -rf conftest*
5871  ;;
5872
5873
5874esac
5875
5876need_locks="$enable_libtool_lock"
5877
5878
5879ac_ext=c
5880ac_cpp='$CPP $CPPFLAGS'
5881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5885$as_echo_n "checking how to run the C preprocessor... " >&6; }
5886# On Suns, sometimes $CPP names a directory.
5887if test -n "$CPP" && test -d "$CPP"; then
5888  CPP=
5889fi
5890if test -z "$CPP"; then
5891  if ${ac_cv_prog_CPP+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894      # Double quotes because CPP needs to be expanded
5895    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5896    do
5897      ac_preproc_ok=false
5898for ac_c_preproc_warn_flag in '' yes
5899do
5900  # Use a header file that comes with gcc, so configuring glibc
5901  # with a fresh cross-compiler works.
5902  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5903  # <limits.h> exists even on freestanding compilers.
5904  # On the NeXT, cc -E runs the code through the compiler's parser,
5905  # not just through cpp. "Syntax error" is here to catch this case.
5906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908#ifdef __STDC__
5909# include <limits.h>
5910#else
5911# include <assert.h>
5912#endif
5913		     Syntax error
5914_ACEOF
5915if ac_fn_c_try_cpp "$LINENO"; then :
5916
5917else
5918  # Broken: fails on valid input.
5919continue
5920fi
5921rm -f conftest.err conftest.i conftest.$ac_ext
5922
5923  # OK, works on sane cases.  Now check whether nonexistent headers
5924  # can be detected and how.
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927#include <ac_nonexistent.h>
5928_ACEOF
5929if ac_fn_c_try_cpp "$LINENO"; then :
5930  # Broken: success on invalid input.
5931continue
5932else
5933  # Passes both tests.
5934ac_preproc_ok=:
5935break
5936fi
5937rm -f conftest.err conftest.i conftest.$ac_ext
5938
5939done
5940# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941rm -f conftest.i conftest.err conftest.$ac_ext
5942if $ac_preproc_ok; then :
5943  break
5944fi
5945
5946    done
5947    ac_cv_prog_CPP=$CPP
5948
5949fi
5950  CPP=$ac_cv_prog_CPP
5951else
5952  ac_cv_prog_CPP=$CPP
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5955$as_echo "$CPP" >&6; }
5956ac_preproc_ok=false
5957for ac_c_preproc_warn_flag in '' yes
5958do
5959  # Use a header file that comes with gcc, so configuring glibc
5960  # with a fresh cross-compiler works.
5961  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962  # <limits.h> exists even on freestanding compilers.
5963  # On the NeXT, cc -E runs the code through the compiler's parser,
5964  # not just through cpp. "Syntax error" is here to catch this case.
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967#ifdef __STDC__
5968# include <limits.h>
5969#else
5970# include <assert.h>
5971#endif
5972		     Syntax error
5973_ACEOF
5974if ac_fn_c_try_cpp "$LINENO"; then :
5975
5976else
5977  # Broken: fails on valid input.
5978continue
5979fi
5980rm -f conftest.err conftest.i conftest.$ac_ext
5981
5982  # OK, works on sane cases.  Now check whether nonexistent headers
5983  # can be detected and how.
5984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986#include <ac_nonexistent.h>
5987_ACEOF
5988if ac_fn_c_try_cpp "$LINENO"; then :
5989  # Broken: success on invalid input.
5990continue
5991else
5992  # Passes both tests.
5993ac_preproc_ok=:
5994break
5995fi
5996rm -f conftest.err conftest.i conftest.$ac_ext
5997
5998done
5999# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000rm -f conftest.i conftest.err conftest.$ac_ext
6001if $ac_preproc_ok; then :
6002
6003else
6004  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6007See \`config.log' for more details" "$LINENO" 5; }
6008fi
6009
6010ac_ext=c
6011ac_cpp='$CPP $CPPFLAGS'
6012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6018$as_echo_n "checking for ANSI C header files... " >&6; }
6019if ${ac_cv_header_stdc+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023/* end confdefs.h.  */
6024#include <stdlib.h>
6025#include <stdarg.h>
6026#include <string.h>
6027#include <float.h>
6028
6029int
6030main ()
6031{
6032
6033  ;
6034  return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_compile "$LINENO"; then :
6038  ac_cv_header_stdc=yes
6039else
6040  ac_cv_header_stdc=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043
6044if test $ac_cv_header_stdc = yes; then
6045  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048#include <string.h>
6049
6050_ACEOF
6051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052  $EGREP "memchr" >/dev/null 2>&1; then :
6053
6054else
6055  ac_cv_header_stdc=no
6056fi
6057rm -f conftest*
6058
6059fi
6060
6061if test $ac_cv_header_stdc = yes; then
6062  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065#include <stdlib.h>
6066
6067_ACEOF
6068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069  $EGREP "free" >/dev/null 2>&1; then :
6070
6071else
6072  ac_cv_header_stdc=no
6073fi
6074rm -f conftest*
6075
6076fi
6077
6078if test $ac_cv_header_stdc = yes; then
6079  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6080  if test "$cross_compiling" = yes; then :
6081  :
6082else
6083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085#include <ctype.h>
6086#include <stdlib.h>
6087#if ((' ' & 0x0FF) == 0x020)
6088# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090#else
6091# define ISLOWER(c) \
6092		   (('a' <= (c) && (c) <= 'i') \
6093		     || ('j' <= (c) && (c) <= 'r') \
6094		     || ('s' <= (c) && (c) <= 'z'))
6095# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096#endif
6097
6098#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099int
6100main ()
6101{
6102  int i;
6103  for (i = 0; i < 256; i++)
6104    if (XOR (islower (i), ISLOWER (i))
6105	|| toupper (i) != TOUPPER (i))
6106      return 2;
6107  return 0;
6108}
6109_ACEOF
6110if ac_fn_c_try_run "$LINENO"; then :
6111
6112else
6113  ac_cv_header_stdc=no
6114fi
6115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6116  conftest.$ac_objext conftest.beam conftest.$ac_ext
6117fi
6118
6119fi
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6122$as_echo "$ac_cv_header_stdc" >&6; }
6123if test $ac_cv_header_stdc = yes; then
6124
6125$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6126
6127fi
6128
6129# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6130for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6131		  inttypes.h stdint.h unistd.h
6132do :
6133  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6134ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6135"
6136if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6137  cat >>confdefs.h <<_ACEOF
6138#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6139_ACEOF
6140
6141fi
6142
6143done
6144
6145
6146for ac_header in dlfcn.h
6147do :
6148  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6149if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6150  cat >>confdefs.h <<_ACEOF
6151#define HAVE_DLFCN_H 1
6152_ACEOF
6153
6154fi
6155
6156done
6157
6158ac_ext=cpp
6159ac_cpp='$CXXCPP $CPPFLAGS'
6160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6163if test -z "$CXX"; then
6164  if test -n "$CCC"; then
6165    CXX=$CCC
6166  else
6167    if test -n "$ac_tool_prefix"; then
6168  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6169  do
6170    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if ${ac_cv_prog_CXX+:} false; then :
6175  $as_echo_n "(cached) " >&6
6176else
6177  if test -n "$CXX"; then
6178  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183  IFS=$as_save_IFS
6184  test -z "$as_dir" && as_dir=.
6185    for ac_exec_ext in '' $ac_executable_extensions; do
6186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189    break 2
6190  fi
6191done
6192  done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197CXX=$ac_cv_prog_CXX
6198if test -n "$CXX"; then
6199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6200$as_echo "$CXX" >&6; }
6201else
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206
6207    test -n "$CXX" && break
6208  done
6209fi
6210if test -z "$CXX"; then
6211  ac_ct_CXX=$CXX
6212  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6213do
6214  # Extract the first word of "$ac_prog", so it can be a program name with args.
6215set dummy $ac_prog; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
6218if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  if test -n "$ac_ct_CXX"; then
6222  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227  IFS=$as_save_IFS
6228  test -z "$as_dir" && as_dir=.
6229    for ac_exec_ext in '' $ac_executable_extensions; do
6230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231    ac_cv_prog_ac_ct_CXX="$ac_prog"
6232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233    break 2
6234  fi
6235done
6236  done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6242if test -n "$ac_ct_CXX"; then
6243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6244$as_echo "$ac_ct_CXX" >&6; }
6245else
6246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250
6251  test -n "$ac_ct_CXX" && break
6252done
6253
6254  if test "x$ac_ct_CXX" = x; then
6255    CXX="g++"
6256  else
6257    case $cross_compiling:$ac_tool_warned in
6258yes:)
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261ac_tool_warned=yes ;;
6262esac
6263    CXX=$ac_ct_CXX
6264  fi
6265fi
6266
6267  fi
6268fi
6269# Provide some information about the compiler.
6270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6271set X $ac_compile
6272ac_compiler=$2
6273for ac_option in --version -v -V -qversion; do
6274  { { ac_try="$ac_compiler $ac_option >&5"
6275case "(($ac_try" in
6276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277  *) ac_try_echo=$ac_try;;
6278esac
6279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6280$as_echo "$ac_try_echo"; } >&5
6281  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6282  ac_status=$?
6283  if test -s conftest.err; then
6284    sed '10a\
6285... rest of stderr output deleted ...
6286         10q' conftest.err >conftest.er1
6287    cat conftest.er1 >&5
6288  fi
6289  rm -f conftest.er1 conftest.err
6290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291  test $ac_status = 0; }
6292done
6293
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6295$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6296if ${ac_cv_cxx_compiler_gnu+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h.  */
6301
6302int
6303main ()
6304{
6305#ifndef __GNUC__
6306       choke me
6307#endif
6308
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313if ac_fn_cxx_try_compile "$LINENO"; then :
6314  ac_compiler_gnu=yes
6315else
6316  ac_compiler_gnu=no
6317fi
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6323$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6324if test $ac_compiler_gnu = yes; then
6325  GXX=yes
6326else
6327  GXX=
6328fi
6329ac_test_CXXFLAGS=${CXXFLAGS+set}
6330ac_save_CXXFLAGS=$CXXFLAGS
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6332$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6333if ${ac_cv_prog_cxx_g+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6337   ac_cxx_werror_flag=yes
6338   ac_cv_prog_cxx_g=no
6339   CXXFLAGS="-g"
6340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h.  */
6342
6343int
6344main ()
6345{
6346
6347  ;
6348  return 0;
6349}
6350_ACEOF
6351if ac_fn_cxx_try_compile "$LINENO"; then :
6352  ac_cv_prog_cxx_g=yes
6353else
6354  CXXFLAGS=""
6355      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357
6358int
6359main ()
6360{
6361
6362  ;
6363  return 0;
6364}
6365_ACEOF
6366if ac_fn_cxx_try_compile "$LINENO"; then :
6367
6368else
6369  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6370	 CXXFLAGS="-g"
6371	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373
6374int
6375main ()
6376{
6377
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382if ac_fn_cxx_try_compile "$LINENO"; then :
6383  ac_cv_prog_cxx_g=yes
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388fi
6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6393$as_echo "$ac_cv_prog_cxx_g" >&6; }
6394if test "$ac_test_CXXFLAGS" = set; then
6395  CXXFLAGS=$ac_save_CXXFLAGS
6396elif test $ac_cv_prog_cxx_g = yes; then
6397  if test "$GXX" = yes; then
6398    CXXFLAGS="-g -O2"
6399  else
6400    CXXFLAGS="-g"
6401  fi
6402else
6403  if test "$GXX" = yes; then
6404    CXXFLAGS="-O2"
6405  else
6406    CXXFLAGS=
6407  fi
6408fi
6409ac_ext=cpp
6410ac_cpp='$CXXCPP $CPPFLAGS'
6411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6414
6415depcc="$CXX"  am_compiler_list=
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6418$as_echo_n "checking dependency style of $depcc... " >&6; }
6419if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6420  $as_echo_n "(cached) " >&6
6421else
6422  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6423  # We make a subdir and do the tests there.  Otherwise we can end up
6424  # making bogus files that we don't know about and never remove.  For
6425  # instance it was reported that on HP-UX the gcc test will end up
6426  # making a dummy file named `D' -- because `-MD' means `put the output
6427  # in D'.
6428  mkdir conftest.dir
6429  # Copy depcomp to subdir because otherwise we won't find it if we're
6430  # using a relative directory.
6431  cp "$am_depcomp" conftest.dir
6432  cd conftest.dir
6433  # We will build objects and dependencies in a subdirectory because
6434  # it helps to detect inapplicable dependency modes.  For instance
6435  # both Tru64's cc and ICC support -MD to output dependencies as a
6436  # side effect of compilation, but ICC will put the dependencies in
6437  # the current directory while Tru64 will put them in the object
6438  # directory.
6439  mkdir sub
6440
6441  am_cv_CXX_dependencies_compiler_type=none
6442  if test "$am_compiler_list" = ""; then
6443     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6444  fi
6445  for depmode in $am_compiler_list; do
6446    # Setup a source with many dependencies, because some compilers
6447    # like to wrap large dependency lists on column 80 (with \), and
6448    # we should not choose a depcomp mode which is confused by this.
6449    #
6450    # We need to recreate these files for each test, as the compiler may
6451    # overwrite some of them when testing with obscure command lines.
6452    # This happens at least with the AIX C compiler.
6453    : > sub/conftest.c
6454    for i in 1 2 3 4 5 6; do
6455      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6456      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6457      # Solaris 8's {/usr,}/bin/sh.
6458      touch sub/conftst$i.h
6459    done
6460    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6461
6462    case $depmode in
6463    nosideeffect)
6464      # after this tag, mechanisms are not by side-effect, so they'll
6465      # only be used when explicitly requested
6466      if test "x$enable_dependency_tracking" = xyes; then
6467	continue
6468      else
6469	break
6470      fi
6471      ;;
6472    none) break ;;
6473    esac
6474    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6475    # mode.  It turns out that the SunPro C++ compiler does not properly
6476    # handle `-M -o', and we need to detect this.
6477    if depmode=$depmode \
6478       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6479       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6480       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6481         >/dev/null 2>conftest.err &&
6482       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6483       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6484       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6485      # icc doesn't choke on unknown options, it will just issue warnings
6486      # or remarks (even with -Werror).  So we grep stderr for any message
6487      # that says an option was ignored or not supported.
6488      # When given -MP, icc 7.0 and 7.1 complain thusly:
6489      #   icc: Command line warning: ignoring option '-M'; no argument required
6490      # The diagnosis changed in icc 8.0:
6491      #   icc: Command line remark: option '-MP' not supported
6492      if (grep 'ignoring option' conftest.err ||
6493          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6494        am_cv_CXX_dependencies_compiler_type=$depmode
6495        break
6496      fi
6497    fi
6498  done
6499
6500  cd ..
6501  rm -rf conftest.dir
6502else
6503  am_cv_CXX_dependencies_compiler_type=none
6504fi
6505
6506fi
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6508$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6509CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6510
6511
6512
6513if
6514  test "x$enable_dependency_tracking" != xno \
6515  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6516  am__fastdepCXX_TRUE=
6517  am__fastdepCXX_FALSE='#'
6518else
6519  am__fastdepCXX_TRUE='#'
6520  am__fastdepCXX_FALSE=
6521fi
6522
6523
6524
6525
6526if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6527    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6528    (test "X$CXX" != "Xg++"))) ; then
6529  ac_ext=cpp
6530ac_cpp='$CXXCPP $CPPFLAGS'
6531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6535$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6536if test -z "$CXXCPP"; then
6537  if ${ac_cv_prog_CXXCPP+:} false; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540      # Double quotes because CXXCPP needs to be expanded
6541    for CXXCPP in "$CXX -E" "/lib/cpp"
6542    do
6543      ac_preproc_ok=false
6544for ac_cxx_preproc_warn_flag in '' yes
6545do
6546  # Use a header file that comes with gcc, so configuring glibc
6547  # with a fresh cross-compiler works.
6548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6549  # <limits.h> exists even on freestanding compilers.
6550  # On the NeXT, cc -E runs the code through the compiler's parser,
6551  # not just through cpp. "Syntax error" is here to catch this case.
6552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553/* end confdefs.h.  */
6554#ifdef __STDC__
6555# include <limits.h>
6556#else
6557# include <assert.h>
6558#endif
6559		     Syntax error
6560_ACEOF
6561if ac_fn_cxx_try_cpp "$LINENO"; then :
6562
6563else
6564  # Broken: fails on valid input.
6565continue
6566fi
6567rm -f conftest.err conftest.i conftest.$ac_ext
6568
6569  # OK, works on sane cases.  Now check whether nonexistent headers
6570  # can be detected and how.
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573#include <ac_nonexistent.h>
6574_ACEOF
6575if ac_fn_cxx_try_cpp "$LINENO"; then :
6576  # Broken: success on invalid input.
6577continue
6578else
6579  # Passes both tests.
6580ac_preproc_ok=:
6581break
6582fi
6583rm -f conftest.err conftest.i conftest.$ac_ext
6584
6585done
6586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6587rm -f conftest.i conftest.err conftest.$ac_ext
6588if $ac_preproc_ok; then :
6589  break
6590fi
6591
6592    done
6593    ac_cv_prog_CXXCPP=$CXXCPP
6594
6595fi
6596  CXXCPP=$ac_cv_prog_CXXCPP
6597else
6598  ac_cv_prog_CXXCPP=$CXXCPP
6599fi
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6601$as_echo "$CXXCPP" >&6; }
6602ac_preproc_ok=false
6603for ac_cxx_preproc_warn_flag in '' yes
6604do
6605  # Use a header file that comes with gcc, so configuring glibc
6606  # with a fresh cross-compiler works.
6607  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6608  # <limits.h> exists even on freestanding compilers.
6609  # On the NeXT, cc -E runs the code through the compiler's parser,
6610  # not just through cpp. "Syntax error" is here to catch this case.
6611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h.  */
6613#ifdef __STDC__
6614# include <limits.h>
6615#else
6616# include <assert.h>
6617#endif
6618		     Syntax error
6619_ACEOF
6620if ac_fn_cxx_try_cpp "$LINENO"; then :
6621
6622else
6623  # Broken: fails on valid input.
6624continue
6625fi
6626rm -f conftest.err conftest.i conftest.$ac_ext
6627
6628  # OK, works on sane cases.  Now check whether nonexistent headers
6629  # can be detected and how.
6630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h.  */
6632#include <ac_nonexistent.h>
6633_ACEOF
6634if ac_fn_cxx_try_cpp "$LINENO"; then :
6635  # Broken: success on invalid input.
6636continue
6637else
6638  # Passes both tests.
6639ac_preproc_ok=:
6640break
6641fi
6642rm -f conftest.err conftest.i conftest.$ac_ext
6643
6644done
6645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6646rm -f conftest.i conftest.err conftest.$ac_ext
6647if $ac_preproc_ok; then :
6648
6649else
6650  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6652as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6653See \`config.log' for more details" "$LINENO" 5; }
6654fi
6655
6656ac_ext=cpp
6657ac_cpp='$CXXCPP $CPPFLAGS'
6658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6661
6662fi
6663
6664
6665ac_ext=f
6666ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6667ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6669if test -n "$ac_tool_prefix"; then
6670  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 nagfor
6671  do
6672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if ${ac_cv_prog_F77+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  if test -n "$F77"; then
6680  ac_cv_prog_F77="$F77" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685  IFS=$as_save_IFS
6686  test -z "$as_dir" && as_dir=.
6687    for ac_exec_ext in '' $ac_executable_extensions; do
6688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691    break 2
6692  fi
6693done
6694  done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699F77=$ac_cv_prog_F77
6700if test -n "$F77"; then
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6702$as_echo "$F77" >&6; }
6703else
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708
6709    test -n "$F77" && break
6710  done
6711fi
6712if test -z "$F77"; then
6713  ac_ct_F77=$F77
6714  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 nagfor
6715do
6716  # Extract the first word of "$ac_prog", so it can be a program name with args.
6717set dummy $ac_prog; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_ac_ct_F77+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$ac_ct_F77"; then
6724  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_ac_ct_F77="$ac_prog"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_F77=$ac_cv_prog_ac_ct_F77
6744if test -n "$ac_ct_F77"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6746$as_echo "$ac_ct_F77" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752
6753  test -n "$ac_ct_F77" && break
6754done
6755
6756  if test "x$ac_ct_F77" = x; then
6757    F77=""
6758  else
6759    case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765    F77=$ac_ct_F77
6766  fi
6767fi
6768
6769
6770# Provide some information about the compiler.
6771$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6772set X $ac_compile
6773ac_compiler=$2
6774for ac_option in --version -v -V -qversion; do
6775  { { ac_try="$ac_compiler $ac_option >&5"
6776case "(($ac_try" in
6777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778  *) ac_try_echo=$ac_try;;
6779esac
6780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6781$as_echo "$ac_try_echo"; } >&5
6782  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6783  ac_status=$?
6784  if test -s conftest.err; then
6785    sed '10a\
6786... rest of stderr output deleted ...
6787         10q' conftest.err >conftest.er1
6788    cat conftest.er1 >&5
6789  fi
6790  rm -f conftest.er1 conftest.err
6791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792  test $ac_status = 0; }
6793done
6794rm -f a.out
6795
6796# If we don't use `.F' as extension, the preprocessor is not run on the
6797# input file.  (Note that this only needs to work for GNU compilers.)
6798ac_save_ext=$ac_ext
6799ac_ext=F
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6801$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6802if ${ac_cv_f77_compiler_gnu+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  cat > conftest.$ac_ext <<_ACEOF
6806      program main
6807#ifndef __GNUC__
6808       choke me
6809#endif
6810
6811      end
6812_ACEOF
6813if ac_fn_f77_try_compile "$LINENO"; then :
6814  ac_compiler_gnu=yes
6815else
6816  ac_compiler_gnu=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6820
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6823$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6824ac_ext=$ac_save_ext
6825ac_test_FFLAGS=${FFLAGS+set}
6826ac_save_FFLAGS=$FFLAGS
6827FFLAGS=
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6829$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6830if ${ac_cv_prog_f77_g+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  FFLAGS=-g
6834cat > conftest.$ac_ext <<_ACEOF
6835      program main
6836
6837      end
6838_ACEOF
6839if ac_fn_f77_try_compile "$LINENO"; then :
6840  ac_cv_prog_f77_g=yes
6841else
6842  ac_cv_prog_f77_g=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845
6846fi
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6848$as_echo "$ac_cv_prog_f77_g" >&6; }
6849if test "$ac_test_FFLAGS" = set; then
6850  FFLAGS=$ac_save_FFLAGS
6851elif test $ac_cv_prog_f77_g = yes; then
6852  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6853    FFLAGS="-g -O2"
6854  else
6855    FFLAGS="-g"
6856  fi
6857else
6858  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6859    FFLAGS="-O2"
6860  else
6861    FFLAGS=
6862  fi
6863fi
6864
6865if test $ac_compiler_gnu = yes; then
6866  G77=yes
6867else
6868  G77=
6869fi
6870ac_ext=c
6871ac_cpp='$CPP $CPPFLAGS'
6872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875
6876
6877
6878# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6879
6880# find the maximum length of command line arguments
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6882$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6883if ${lt_cv_sys_max_cmd_len+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886    i=0
6887  teststring="ABCD"
6888
6889  case $build_os in
6890  msdosdjgpp*)
6891    # On DJGPP, this test can blow up pretty badly due to problems in libc
6892    # (any single argument exceeding 2000 bytes causes a buffer overrun
6893    # during glob expansion).  Even if it were fixed, the result of this
6894    # check would be larger than it should be.
6895    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6896    ;;
6897
6898  gnu*)
6899    # Under GNU Hurd, this test is not required because there is
6900    # no limit to the length of command line arguments.
6901    # Libtool will interpret -1 as no limit whatsoever
6902    lt_cv_sys_max_cmd_len=-1;
6903    ;;
6904
6905  cygwin* | mingw*)
6906    # On Win9x/ME, this test blows up -- it succeeds, but takes
6907    # about 5 minutes as the teststring grows exponentially.
6908    # Worse, since 9x/ME are not pre-emptively multitasking,
6909    # you end up with a "frozen" computer, even though with patience
6910    # the test eventually succeeds (with a max line length of 256k).
6911    # Instead, let's just punt: use the minimum linelength reported by
6912    # all of the supported platforms: 8192 (on NT/2K/XP).
6913    lt_cv_sys_max_cmd_len=8192;
6914    ;;
6915
6916  amigaos*)
6917    # On AmigaOS with pdksh, this test takes hours, literally.
6918    # So we just punt and use a minimum line length of 8192.
6919    lt_cv_sys_max_cmd_len=8192;
6920    ;;
6921
6922  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6923    # This has been around since 386BSD, at least.  Likely further.
6924    if test -x /sbin/sysctl; then
6925      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6926    elif test -x /usr/sbin/sysctl; then
6927      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6928    else
6929      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6930    fi
6931    # And add a safety zone
6932    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6933    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6934    ;;
6935
6936  interix*)
6937    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6938    lt_cv_sys_max_cmd_len=196608
6939    ;;
6940
6941  osf*)
6942    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6943    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6944    # nice to cause kernel panics so lets avoid the loop below.
6945    # First set a reasonable default.
6946    lt_cv_sys_max_cmd_len=16384
6947    #
6948    if test -x /sbin/sysconfig; then
6949      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6950        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6951      esac
6952    fi
6953    ;;
6954  sco3.2v5*)
6955    lt_cv_sys_max_cmd_len=102400
6956    ;;
6957  sysv5* | sco5v6* | sysv4.2uw2*)
6958    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6959    if test -n "$kargmax"; then
6960      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6961    else
6962      lt_cv_sys_max_cmd_len=32768
6963    fi
6964    ;;
6965  *)
6966    # If test is not a shell built-in, we'll probably end up computing a
6967    # maximum length that is only half of the actual maximum length, but
6968    # we can't tell.
6969    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6970    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6971	       = "XX$teststring") >/dev/null 2>&1 &&
6972	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6973	    lt_cv_sys_max_cmd_len=$new_result &&
6974	    test $i != 17 # 1/2 MB should be enough
6975    do
6976      i=`expr $i + 1`
6977      teststring=$teststring$teststring
6978    done
6979    teststring=
6980    # Add a significant safety factor because C++ compilers can tack on massive
6981    # amounts of additional arguments before passing them to the linker.
6982    # It appears as though 1/2 is a usable value.
6983    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6984    ;;
6985  esac
6986
6987fi
6988
6989if test -n $lt_cv_sys_max_cmd_len ; then
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6991$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6992else
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6994$as_echo "none" >&6; }
6995fi
6996
6997
6998
6999
7000# Check for command to grab the raw symbol name followed by C symbol from nm.
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7002$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7003if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006
7007# These are sane defaults that work on at least a few old systems.
7008# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7009
7010# Character class describing NM global symbol codes.
7011symcode='[BCDEGRST]'
7012
7013# Regexp to match symbols that can be accessed directly from C.
7014sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7015
7016# Transform an extracted symbol line into a proper C declaration
7017lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7018
7019# Transform an extracted symbol line into symbol name and symbol address
7020lt_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'"
7021
7022# Define system-specific variables.
7023case $host_os in
7024aix*)
7025  symcode='[BCDT]'
7026  ;;
7027cygwin* | mingw* | pw32*)
7028  symcode='[ABCDGISTW]'
7029  ;;
7030hpux*) # Its linker distinguishes data from code symbols
7031  if test "$host_cpu" = ia64; then
7032    symcode='[ABCDEGRST]'
7033  fi
7034  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7035  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'"
7036  ;;
7037linux*)
7038  if test "$host_cpu" = ia64; then
7039    symcode='[ABCDGIRSTW]'
7040    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7041    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'"
7042  fi
7043  ;;
7044irix* | nonstopux*)
7045  symcode='[BCDEGRST]'
7046  ;;
7047osf*)
7048  symcode='[BCDEGQRST]'
7049  ;;
7050solaris*)
7051  symcode='[BDRT]'
7052  ;;
7053sco3.2v5*)
7054  symcode='[DT]'
7055  ;;
7056sysv4.2uw2*)
7057  symcode='[DT]'
7058  ;;
7059sysv5* | sco5v6* | unixware* | OpenUNIX*)
7060  symcode='[ABDT]'
7061  ;;
7062sysv4)
7063  symcode='[DFNSTU]'
7064  ;;
7065esac
7066
7067# Handle CRLF in mingw tool chain
7068opt_cr=
7069case $build_os in
7070mingw*)
7071  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7072  ;;
7073esac
7074
7075# If we're using GNU nm, then use its standard symbol codes.
7076case `$NM -V 2>&1` in
7077*GNU* | *'with BFD'*)
7078  symcode='[ABCDGIRSTW]' ;;
7079esac
7080
7081# Try without a prefix undercore, then with it.
7082for ac_symprfx in "" "_"; do
7083
7084  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7085  symxfrm="\\1 $ac_symprfx\\2 \\2"
7086
7087  # Write the raw and C identifiers.
7088  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7089
7090  # Check to see that the pipe works correctly.
7091  pipe_works=no
7092
7093  rm -f conftest*
7094  cat > conftest.$ac_ext <<EOF
7095#ifdef __cplusplus
7096extern "C" {
7097#endif
7098char nm_test_var;
7099void nm_test_func(){}
7100#ifdef __cplusplus
7101}
7102#endif
7103int main(){nm_test_var='a';nm_test_func();return(0);}
7104EOF
7105
7106  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107  (eval $ac_compile) 2>&5
7108  ac_status=$?
7109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110  test $ac_status = 0; }; then
7111    # Now try to grab the symbols.
7112    nlist=conftest.nm
7113    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7114  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7115  ac_status=$?
7116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7117  test $ac_status = 0; } && test -s "$nlist"; then
7118      # Try sorting and uniquifying the output.
7119      if sort "$nlist" | uniq > "$nlist"T; then
7120	mv -f "$nlist"T "$nlist"
7121      else
7122	rm -f "$nlist"T
7123      fi
7124
7125      # Make sure that we snagged all the symbols we need.
7126      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7127	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7128	  cat <<EOF > conftest.$ac_ext
7129#ifdef __cplusplus
7130extern "C" {
7131#endif
7132
7133EOF
7134	  # Now generate the symbol file.
7135	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7136
7137	  cat <<EOF >> conftest.$ac_ext
7138#if defined (__STDC__) && __STDC__
7139# define lt_ptr_t void *
7140#else
7141# define lt_ptr_t char *
7142# define const
7143#endif
7144
7145/* The mapping between symbol names and symbols. */
7146const struct {
7147  const char *name;
7148  lt_ptr_t address;
7149}
7150lt_preloaded_symbols[] =
7151{
7152EOF
7153	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7154	  cat <<\EOF >> conftest.$ac_ext
7155  {0, (lt_ptr_t) 0}
7156};
7157
7158#ifdef __cplusplus
7159}
7160#endif
7161EOF
7162	  # Now try linking the two files.
7163	  mv conftest.$ac_objext conftstm.$ac_objext
7164	  lt_save_LIBS="$LIBS"
7165	  lt_save_CFLAGS="$CFLAGS"
7166	  LIBS="conftstm.$ac_objext"
7167	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7168	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7169  (eval $ac_link) 2>&5
7170  ac_status=$?
7171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7173	    pipe_works=yes
7174	  fi
7175	  LIBS="$lt_save_LIBS"
7176	  CFLAGS="$lt_save_CFLAGS"
7177	else
7178	  echo "cannot find nm_test_func in $nlist" >&5
7179	fi
7180      else
7181	echo "cannot find nm_test_var in $nlist" >&5
7182      fi
7183    else
7184      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7185    fi
7186  else
7187    echo "$progname: failed program was:" >&5
7188    cat conftest.$ac_ext >&5
7189  fi
7190  rm -f conftest* conftst*
7191
7192  # Do not use the global_symbol_pipe unless it works.
7193  if test "$pipe_works" = yes; then
7194    break
7195  else
7196    lt_cv_sys_global_symbol_pipe=
7197  fi
7198done
7199
7200fi
7201
7202if test -z "$lt_cv_sys_global_symbol_pipe"; then
7203  lt_cv_sys_global_symbol_to_cdecl=
7204fi
7205if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7207$as_echo "failed" >&6; }
7208else
7209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7210$as_echo "ok" >&6; }
7211fi
7212
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7214$as_echo_n "checking for objdir... " >&6; }
7215if ${lt_cv_objdir+:} false; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218  rm -f .libs 2>/dev/null
7219mkdir .libs 2>/dev/null
7220if test -d .libs; then
7221  lt_cv_objdir=.libs
7222else
7223  # MS-DOS does not allow filenames that begin with a dot.
7224  lt_cv_objdir=_libs
7225fi
7226rmdir .libs 2>/dev/null
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7229$as_echo "$lt_cv_objdir" >&6; }
7230objdir=$lt_cv_objdir
7231
7232
7233
7234
7235
7236case $host_os in
7237aix3*)
7238  # AIX sometimes has problems with the GCC collect2 program.  For some
7239  # reason, if we set the COLLECT_NAMES environment variable, the problems
7240  # vanish in a puff of smoke.
7241  if test "X${COLLECT_NAMES+set}" != Xset; then
7242    COLLECT_NAMES=
7243    export COLLECT_NAMES
7244  fi
7245  ;;
7246esac
7247
7248# Sed substitution that helps us do robust quoting.  It backslashifies
7249# metacharacters that are still active within double-quoted strings.
7250Xsed='sed -e 1s/^X//'
7251sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7252
7253# Same as above, but do not quote variable references.
7254double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7255
7256# Sed substitution to delay expansion of an escaped shell variable in a
7257# double_quote_subst'ed string.
7258delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7259
7260# Sed substitution to avoid accidental globbing in evaled expressions
7261no_glob_subst='s/\*/\\\*/g'
7262
7263# Constants:
7264rm="rm -f"
7265
7266# Global variables:
7267default_ofile=libtool
7268can_build_shared=yes
7269
7270# All known linkers require a `.a' archive for static linking (except MSVC,
7271# which needs '.lib').
7272libext=a
7273ltmain="$ac_aux_dir/ltmain.sh"
7274ofile="$default_ofile"
7275with_gnu_ld="$lt_cv_prog_gnu_ld"
7276
7277if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}ar; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_AR+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$AR"; then
7286  ac_cv_prog_AR="$AR" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293    for ac_exec_ext in '' $ac_executable_extensions; do
7294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295    ac_cv_prog_AR="${ac_tool_prefix}ar"
7296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300  done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305AR=$ac_cv_prog_AR
7306if test -n "$AR"; then
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7308$as_echo "$AR" >&6; }
7309else
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_AR"; then
7317  ac_ct_AR=$AR
7318  # Extract the first word of "ar", so it can be a program name with args.
7319set dummy ar; ac_word=$2
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if ${ac_cv_prog_ac_ct_AR+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  if test -n "$ac_ct_AR"; then
7326  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333    for ac_exec_ext in '' $ac_executable_extensions; do
7334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335    ac_cv_prog_ac_ct_AR="ar"
7336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340  done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_AR=$ac_cv_prog_ac_ct_AR
7346if test -n "$ac_ct_AR"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7348$as_echo "$ac_ct_AR" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_AR" = x; then
7355    AR="false"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363    AR=$ac_ct_AR
7364  fi
7365else
7366  AR="$ac_cv_prog_AR"
7367fi
7368
7369if test -n "$ac_tool_prefix"; then
7370  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7371set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if ${ac_cv_prog_RANLIB+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  if test -n "$RANLIB"; then
7378  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383  IFS=$as_save_IFS
7384  test -z "$as_dir" && as_dir=.
7385    for ac_exec_ext in '' $ac_executable_extensions; do
7386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389    break 2
7390  fi
7391done
7392  done
7393IFS=$as_save_IFS
7394
7395fi
7396fi
7397RANLIB=$ac_cv_prog_RANLIB
7398if test -n "$RANLIB"; then
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7400$as_echo "$RANLIB" >&6; }
7401else
7402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
7404fi
7405
7406
7407fi
7408if test -z "$ac_cv_prog_RANLIB"; then
7409  ac_ct_RANLIB=$RANLIB
7410  # Extract the first word of "ranlib", so it can be a program name with args.
7411set dummy ranlib; ac_word=$2
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413$as_echo_n "checking for $ac_word... " >&6; }
7414if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7415  $as_echo_n "(cached) " >&6
7416else
7417  if test -n "$ac_ct_RANLIB"; then
7418  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423  IFS=$as_save_IFS
7424  test -z "$as_dir" && as_dir=.
7425    for ac_exec_ext in '' $ac_executable_extensions; do
7426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427    ac_cv_prog_ac_ct_RANLIB="ranlib"
7428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429    break 2
7430  fi
7431done
7432  done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
7437ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7438if test -n "$ac_ct_RANLIB"; then
7439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7440$as_echo "$ac_ct_RANLIB" >&6; }
7441else
7442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
7444fi
7445
7446  if test "x$ac_ct_RANLIB" = x; then
7447    RANLIB=":"
7448  else
7449    case $cross_compiling:$ac_tool_warned in
7450yes:)
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453ac_tool_warned=yes ;;
7454esac
7455    RANLIB=$ac_ct_RANLIB
7456  fi
7457else
7458  RANLIB="$ac_cv_prog_RANLIB"
7459fi
7460
7461if test -n "$ac_tool_prefix"; then
7462  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}strip; ac_word=$2
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
7466if ${ac_cv_prog_STRIP+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  if test -n "$STRIP"; then
7470  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475  IFS=$as_save_IFS
7476  test -z "$as_dir" && as_dir=.
7477    for ac_exec_ext in '' $ac_executable_extensions; do
7478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481    break 2
7482  fi
7483done
7484  done
7485IFS=$as_save_IFS
7486
7487fi
7488fi
7489STRIP=$ac_cv_prog_STRIP
7490if test -n "$STRIP"; then
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7492$as_echo "$STRIP" >&6; }
7493else
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
7496fi
7497
7498
7499fi
7500if test -z "$ac_cv_prog_STRIP"; then
7501  ac_ct_STRIP=$STRIP
7502  # Extract the first word of "strip", so it can be a program name with args.
7503set dummy strip; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  if test -n "$ac_ct_STRIP"; then
7510  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519    ac_cv_prog_ac_ct_STRIP="strip"
7520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7530if test -n "$ac_ct_STRIP"; then
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7532$as_echo "$ac_ct_STRIP" >&6; }
7533else
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538  if test "x$ac_ct_STRIP" = x; then
7539    STRIP=":"
7540  else
7541    case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547    STRIP=$ac_ct_STRIP
7548  fi
7549else
7550  STRIP="$ac_cv_prog_STRIP"
7551fi
7552
7553
7554old_CC="$CC"
7555old_CFLAGS="$CFLAGS"
7556
7557# Set sane defaults for various variables
7558test -z "$AR" && AR=ar
7559test -z "$AR_FLAGS" && AR_FLAGS=cru
7560test -z "$AS" && AS=as
7561test -z "$CC" && CC=cc
7562test -z "$LTCC" && LTCC=$CC
7563test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7564test -z "$DLLTOOL" && DLLTOOL=dlltool
7565test -z "$LD" && LD=ld
7566test -z "$LN_S" && LN_S="ln -s"
7567test -z "$MAGIC_CMD" && MAGIC_CMD=file
7568test -z "$NM" && NM=nm
7569test -z "$SED" && SED=sed
7570test -z "$OBJDUMP" && OBJDUMP=objdump
7571test -z "$RANLIB" && RANLIB=:
7572test -z "$STRIP" && STRIP=:
7573test -z "$ac_objext" && ac_objext=o
7574
7575# Determine commands to create old-style static archives.
7576old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7577old_postinstall_cmds='chmod 644 $oldlib'
7578old_postuninstall_cmds=
7579
7580if test -n "$RANLIB"; then
7581  case $host_os in
7582  openbsd*)
7583    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7584    ;;
7585  *)
7586    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7587    ;;
7588  esac
7589  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7590fi
7591
7592for cc_temp in $compiler""; do
7593  case $cc_temp in
7594    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7595    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7596    \-*) ;;
7597    *) break;;
7598  esac
7599done
7600cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7601
7602
7603# Only perform the check for file, if the check method requires it
7604case $deplibs_check_method in
7605file_magic*)
7606  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7607    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7609if ${lt_cv_path_MAGIC_CMD+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  case $MAGIC_CMD in
7613[\\/*] |  ?:[\\/]*)
7614  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615  ;;
7616*)
7617  lt_save_MAGIC_CMD="$MAGIC_CMD"
7618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7619  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7620  for ac_dir in $ac_dummy; do
7621    IFS="$lt_save_ifs"
7622    test -z "$ac_dir" && ac_dir=.
7623    if test -f $ac_dir/${ac_tool_prefix}file; then
7624      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7625      if test -n "$file_magic_test_file"; then
7626	case $deplibs_check_method in
7627	"file_magic "*)
7628	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7629	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7630	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7631	    $EGREP "$file_magic_regex" > /dev/null; then
7632	    :
7633	  else
7634	    cat <<EOF 1>&2
7635
7636*** Warning: the command libtool uses to detect shared libraries,
7637*** $file_magic_cmd, produces output that libtool cannot recognize.
7638*** The result is that libtool may fail to recognize shared libraries
7639*** as such.  This will affect the creation of libtool libraries that
7640*** depend on shared libraries, but programs linked with such libtool
7641*** libraries will work regardless of this problem.  Nevertheless, you
7642*** may want to report the problem to your system manager and/or to
7643*** bug-libtool@gnu.org
7644
7645EOF
7646	  fi ;;
7647	esac
7648      fi
7649      break
7650    fi
7651  done
7652  IFS="$lt_save_ifs"
7653  MAGIC_CMD="$lt_save_MAGIC_CMD"
7654  ;;
7655esac
7656fi
7657
7658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659if test -n "$MAGIC_CMD"; then
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7661$as_echo "$MAGIC_CMD" >&6; }
7662else
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667if test -z "$lt_cv_path_MAGIC_CMD"; then
7668  if test -n "$ac_tool_prefix"; then
7669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7670$as_echo_n "checking for file... " >&6; }
7671if ${lt_cv_path_MAGIC_CMD+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  case $MAGIC_CMD in
7675[\\/*] |  ?:[\\/]*)
7676  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7677  ;;
7678*)
7679  lt_save_MAGIC_CMD="$MAGIC_CMD"
7680  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7681  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7682  for ac_dir in $ac_dummy; do
7683    IFS="$lt_save_ifs"
7684    test -z "$ac_dir" && ac_dir=.
7685    if test -f $ac_dir/file; then
7686      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7687      if test -n "$file_magic_test_file"; then
7688	case $deplibs_check_method in
7689	"file_magic "*)
7690	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7691	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7693	    $EGREP "$file_magic_regex" > /dev/null; then
7694	    :
7695	  else
7696	    cat <<EOF 1>&2
7697
7698*** Warning: the command libtool uses to detect shared libraries,
7699*** $file_magic_cmd, produces output that libtool cannot recognize.
7700*** The result is that libtool may fail to recognize shared libraries
7701*** as such.  This will affect the creation of libtool libraries that
7702*** depend on shared libraries, but programs linked with such libtool
7703*** libraries will work regardless of this problem.  Nevertheless, you
7704*** may want to report the problem to your system manager and/or to
7705*** bug-libtool@gnu.org
7706
7707EOF
7708	  fi ;;
7709	esac
7710      fi
7711      break
7712    fi
7713  done
7714  IFS="$lt_save_ifs"
7715  MAGIC_CMD="$lt_save_MAGIC_CMD"
7716  ;;
7717esac
7718fi
7719
7720MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7721if test -n "$MAGIC_CMD"; then
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7723$as_echo "$MAGIC_CMD" >&6; }
7724else
7725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726$as_echo "no" >&6; }
7727fi
7728
7729  else
7730    MAGIC_CMD=:
7731  fi
7732fi
7733
7734  fi
7735  ;;
7736esac
7737
7738enable_dlopen=no
7739enable_win32_dll=no
7740
7741# Check whether --enable-libtool-lock was given.
7742if test "${enable_libtool_lock+set}" = set; then :
7743  enableval=$enable_libtool_lock;
7744fi
7745
7746test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7747
7748
7749# Check whether --with-pic was given.
7750if test "${with_pic+set}" = set; then :
7751  withval=$with_pic; pic_mode="$withval"
7752else
7753  pic_mode=default
7754fi
7755
7756test -z "$pic_mode" && pic_mode=default
7757
7758# Use C for the default configuration in the libtool script
7759tagname=
7760lt_save_CC="$CC"
7761ac_ext=c
7762ac_cpp='$CPP $CPPFLAGS'
7763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7765ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766
7767
7768# Source file extension for C test sources.
7769ac_ext=c
7770
7771# Object file extension for compiled C test sources.
7772objext=o
7773objext=$objext
7774
7775# Code to be used in simple compile tests
7776lt_simple_compile_test_code="int some_variable = 0;\n"
7777
7778# Code to be used in simple link tests
7779lt_simple_link_test_code='int main(){return(0);}\n'
7780
7781
7782# If no C compiler was specified, use CC.
7783LTCC=${LTCC-"$CC"}
7784
7785# If no C compiler flags were specified, use CFLAGS.
7786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7787
7788# Allow CC to be a program name with arguments.
7789compiler=$CC
7790
7791
7792# save warnings/boilerplate of simple test code
7793ac_outfile=conftest.$ac_objext
7794printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7795eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7796_lt_compiler_boilerplate=`cat conftest.err`
7797$rm conftest*
7798
7799ac_outfile=conftest.$ac_objext
7800printf "$lt_simple_link_test_code" >conftest.$ac_ext
7801eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7802_lt_linker_boilerplate=`cat conftest.err`
7803$rm conftest*
7804
7805
7806
7807lt_prog_compiler_no_builtin_flag=
7808
7809if test "$GCC" = yes; then
7810  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7811
7812
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7814$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7815if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7816  $as_echo_n "(cached) " >&6
7817else
7818  lt_cv_prog_compiler_rtti_exceptions=no
7819  ac_outfile=conftest.$ac_objext
7820   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7821   lt_compiler_flag="-fno-rtti -fno-exceptions"
7822   # Insert the option either (1) after the last *FLAGS variable, or
7823   # (2) before a word containing "conftest.", or (3) at the end.
7824   # Note that $ac_compile itself does not contain backslashes and begins
7825   # with a dollar sign (not a hyphen), so the echo should work correctly.
7826   # The option is referenced via a variable to avoid confusing sed.
7827   lt_compile=`echo "$ac_compile" | $SED \
7828   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7830   -e 's:$: $lt_compiler_flag:'`
7831   (eval echo "\"\$as_me:7831: $lt_compile\"" >&5)
7832   (eval "$lt_compile" 2>conftest.err)
7833   ac_status=$?
7834   cat conftest.err >&5
7835   echo "$as_me:7835: \$? = $ac_status" >&5
7836   if (exit $ac_status) && test -s "$ac_outfile"; then
7837     # The compiler can only warn and ignore the option if not recognized
7838     # So say no if there are warnings other than the usual output.
7839     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7840     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7841     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7842       lt_cv_prog_compiler_rtti_exceptions=yes
7843     fi
7844   fi
7845   $rm conftest*
7846
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7849$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7850
7851if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7852    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7853else
7854    :
7855fi
7856
7857fi
7858
7859lt_prog_compiler_wl=
7860lt_prog_compiler_pic=
7861lt_prog_compiler_static=
7862
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7864$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7865
7866  if test "$GCC" = yes; then
7867    lt_prog_compiler_wl='-Wl,'
7868    lt_prog_compiler_static='-static'
7869
7870    case $host_os in
7871      aix*)
7872      # All AIX code is PIC.
7873      if test "$host_cpu" = ia64; then
7874	# AIX 5 now supports IA64 processor
7875	lt_prog_compiler_static='-Bstatic'
7876      fi
7877      ;;
7878
7879    amigaos*)
7880      # FIXME: we need at least 68020 code to build shared libraries, but
7881      # adding the `-m68020' flag to GCC prevents building anything better,
7882      # like `-m68040'.
7883      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7884      ;;
7885
7886    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7887      # PIC is the default for these OSes.
7888      ;;
7889
7890    mingw* | pw32* | os2*)
7891      # This hack is so that the source file can tell whether it is being
7892      # built for inclusion in a dll (and should export symbols for example).
7893      lt_prog_compiler_pic='-DDLL_EXPORT'
7894      ;;
7895
7896    darwin* | rhapsody*)
7897      # PIC is the default on this platform
7898      # Common symbols not allowed in MH_DYLIB files
7899      lt_prog_compiler_pic='-fno-common'
7900      ;;
7901
7902    interix3*)
7903      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7904      # Instead, we relocate shared libraries at runtime.
7905      ;;
7906
7907    msdosdjgpp*)
7908      # Just because we use GCC doesn't mean we suddenly get shared libraries
7909      # on systems that don't support them.
7910      lt_prog_compiler_can_build_shared=no
7911      enable_shared=no
7912      ;;
7913
7914    sysv4*MP*)
7915      if test -d /usr/nec; then
7916	lt_prog_compiler_pic=-Kconform_pic
7917      fi
7918      ;;
7919
7920    hpux*)
7921      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7922      # not for PA HP-UX.
7923      case $host_cpu in
7924      hppa*64*|ia64*)
7925	# +Z the default
7926	;;
7927      *)
7928	lt_prog_compiler_pic='-fPIC'
7929	;;
7930      esac
7931      ;;
7932
7933    *)
7934      lt_prog_compiler_pic='-fPIC'
7935      ;;
7936    esac
7937  else
7938    # PORTME Check for flag to pass linker flags through the system compiler.
7939    case $host_os in
7940    aix*)
7941      lt_prog_compiler_wl='-Wl,'
7942      if test "$host_cpu" = ia64; then
7943	# AIX 5 now supports IA64 processor
7944	lt_prog_compiler_static='-Bstatic'
7945      else
7946	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7947      fi
7948      ;;
7949      darwin*)
7950        # PIC is the default on this platform
7951        # Common symbols not allowed in MH_DYLIB files
7952       case $cc_basename in
7953         xlc*)
7954         lt_prog_compiler_pic='-qnocommon'
7955         lt_prog_compiler_wl='-Wl,'
7956         ;;
7957       esac
7958       ;;
7959
7960    mingw* | pw32* | os2*)
7961      # This hack is so that the source file can tell whether it is being
7962      # built for inclusion in a dll (and should export symbols for example).
7963      lt_prog_compiler_pic='-DDLL_EXPORT'
7964      ;;
7965
7966    hpux9* | hpux10* | hpux11*)
7967      lt_prog_compiler_wl='-Wl,'
7968      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7969      # not for PA HP-UX.
7970      case $host_cpu in
7971      hppa*64*|ia64*)
7972	# +Z the default
7973	;;
7974      *)
7975	lt_prog_compiler_pic='+Z'
7976	;;
7977      esac
7978      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7979      lt_prog_compiler_static='${wl}-a ${wl}archive'
7980      ;;
7981
7982    irix5* | irix6* | nonstopux*)
7983      lt_prog_compiler_wl='-Wl,'
7984      # PIC (with -KPIC) is the default.
7985      lt_prog_compiler_static='-non_shared'
7986      ;;
7987
7988    newsos6)
7989      lt_prog_compiler_pic='-KPIC'
7990      lt_prog_compiler_static='-Bstatic'
7991      ;;
7992
7993    linux*)
7994      case $cc_basename in
7995      icc* | ecc*)
7996	lt_prog_compiler_wl='-Wl,'
7997	lt_prog_compiler_pic='-KPIC'
7998	lt_prog_compiler_static='-static'
7999        ;;
8000      pgcc* | pgf77* | pgf90* | pgf95*)
8001        # Portland Group compilers (*not* the Pentium gcc compiler,
8002	# which looks to be a dead project)
8003	lt_prog_compiler_wl='-Wl,'
8004	lt_prog_compiler_pic='-fpic'
8005	lt_prog_compiler_static='-Bstatic'
8006        ;;
8007      ccc*)
8008        lt_prog_compiler_wl='-Wl,'
8009        # All Alpha code is PIC.
8010        lt_prog_compiler_static='-non_shared'
8011        ;;
8012      esac
8013      ;;
8014
8015    osf3* | osf4* | osf5*)
8016      lt_prog_compiler_wl='-Wl,'
8017      # All OSF/1 code is PIC.
8018      lt_prog_compiler_static='-non_shared'
8019      ;;
8020
8021    solaris*)
8022      lt_prog_compiler_pic='-KPIC'
8023      lt_prog_compiler_static='-Bstatic'
8024      case $cc_basename in
8025      f77* | f90* | f95*)
8026	lt_prog_compiler_wl='-Qoption ld ';;
8027      *)
8028	lt_prog_compiler_wl='-Wl,';;
8029      esac
8030      ;;
8031
8032    sunos4*)
8033      lt_prog_compiler_wl='-Qoption ld '
8034      lt_prog_compiler_pic='-PIC'
8035      lt_prog_compiler_static='-Bstatic'
8036      ;;
8037
8038    sysv4 | sysv4.2uw2* | sysv4.3*)
8039      lt_prog_compiler_wl='-Wl,'
8040      lt_prog_compiler_pic='-KPIC'
8041      lt_prog_compiler_static='-Bstatic'
8042      ;;
8043
8044    sysv4*MP*)
8045      if test -d /usr/nec ;then
8046	lt_prog_compiler_pic='-Kconform_pic'
8047	lt_prog_compiler_static='-Bstatic'
8048      fi
8049      ;;
8050
8051    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8052      lt_prog_compiler_wl='-Wl,'
8053      lt_prog_compiler_pic='-KPIC'
8054      lt_prog_compiler_static='-Bstatic'
8055      ;;
8056
8057    unicos*)
8058      lt_prog_compiler_wl='-Wl,'
8059      lt_prog_compiler_can_build_shared=no
8060      ;;
8061
8062    uts4*)
8063      lt_prog_compiler_pic='-pic'
8064      lt_prog_compiler_static='-Bstatic'
8065      ;;
8066
8067    *)
8068      lt_prog_compiler_can_build_shared=no
8069      ;;
8070    esac
8071  fi
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8074$as_echo "$lt_prog_compiler_pic" >&6; }
8075
8076#
8077# Check to make sure the PIC flag actually works.
8078#
8079if test -n "$lt_prog_compiler_pic"; then
8080
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8082$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8083if ${lt_prog_compiler_pic_works+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  lt_prog_compiler_pic_works=no
8087  ac_outfile=conftest.$ac_objext
8088   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8089   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8090   # Insert the option either (1) after the last *FLAGS variable, or
8091   # (2) before a word containing "conftest.", or (3) at the end.
8092   # Note that $ac_compile itself does not contain backslashes and begins
8093   # with a dollar sign (not a hyphen), so the echo should work correctly.
8094   # The option is referenced via a variable to avoid confusing sed.
8095   lt_compile=`echo "$ac_compile" | $SED \
8096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098   -e 's:$: $lt_compiler_flag:'`
8099   (eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
8100   (eval "$lt_compile" 2>conftest.err)
8101   ac_status=$?
8102   cat conftest.err >&5
8103   echo "$as_me:8103: \$? = $ac_status" >&5
8104   if (exit $ac_status) && test -s "$ac_outfile"; then
8105     # The compiler can only warn and ignore the option if not recognized
8106     # So say no if there are warnings other than the usual output.
8107     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8108     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110       lt_prog_compiler_pic_works=yes
8111     fi
8112   fi
8113   $rm conftest*
8114
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8117$as_echo "$lt_prog_compiler_pic_works" >&6; }
8118
8119if test x"$lt_prog_compiler_pic_works" = xyes; then
8120    case $lt_prog_compiler_pic in
8121     "" | " "*) ;;
8122     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8123     esac
8124else
8125    lt_prog_compiler_pic=
8126     lt_prog_compiler_can_build_shared=no
8127fi
8128
8129fi
8130case $host_os in
8131  # For platforms which do not support PIC, -DPIC is meaningless:
8132  *djgpp*)
8133    lt_prog_compiler_pic=
8134    ;;
8135  *)
8136    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8137    ;;
8138esac
8139
8140#
8141# Check to make sure the static flag actually works.
8142#
8143wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8145$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8146if ${lt_prog_compiler_static_works+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  lt_prog_compiler_static_works=no
8150   save_LDFLAGS="$LDFLAGS"
8151   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8152   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8153   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8154     # The linker can only warn and ignore the option if not recognized
8155     # So say no if there are warnings
8156     if test -s conftest.err; then
8157       # Append any errors to the config.log.
8158       cat conftest.err 1>&5
8159       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8160       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8161       if diff conftest.exp conftest.er2 >/dev/null; then
8162         lt_prog_compiler_static_works=yes
8163       fi
8164     else
8165       lt_prog_compiler_static_works=yes
8166     fi
8167   fi
8168   $rm conftest*
8169   LDFLAGS="$save_LDFLAGS"
8170
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8173$as_echo "$lt_prog_compiler_static_works" >&6; }
8174
8175if test x"$lt_prog_compiler_static_works" = xyes; then
8176    :
8177else
8178    lt_prog_compiler_static=
8179fi
8180
8181
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8183$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8184if ${lt_cv_prog_compiler_c_o+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  lt_cv_prog_compiler_c_o=no
8188   $rm -r conftest 2>/dev/null
8189   mkdir conftest
8190   cd conftest
8191   mkdir out
8192   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8193
8194   lt_compiler_flag="-o out/conftest2.$ac_objext"
8195   # Insert the option either (1) after the last *FLAGS variable, or
8196   # (2) before a word containing "conftest.", or (3) at the end.
8197   # Note that $ac_compile itself does not contain backslashes and begins
8198   # with a dollar sign (not a hyphen), so the echo should work correctly.
8199   lt_compile=`echo "$ac_compile" | $SED \
8200   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8201   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8202   -e 's:$: $lt_compiler_flag:'`
8203   (eval echo "\"\$as_me:8203: $lt_compile\"" >&5)
8204   (eval "$lt_compile" 2>out/conftest.err)
8205   ac_status=$?
8206   cat out/conftest.err >&5
8207   echo "$as_me:8207: \$? = $ac_status" >&5
8208   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8209   then
8210     # The compiler can only warn and ignore the option if not recognized
8211     # So say no if there are warnings
8212     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8213     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8214     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8215       lt_cv_prog_compiler_c_o=yes
8216     fi
8217   fi
8218   chmod u+w . 2>&5
8219   $rm conftest*
8220   # SGI C++ compiler will create directory out/ii_files/ for
8221   # template instantiation
8222   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8223   $rm out/* && rmdir out
8224   cd ..
8225   rmdir conftest
8226   $rm conftest*
8227
8228fi
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8230$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8231
8232
8233hard_links="nottested"
8234if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8235  # do not overwrite the value of need_locks provided by the user
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8237$as_echo_n "checking if we can lock with hard links... " >&6; }
8238  hard_links=yes
8239  $rm conftest*
8240  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8241  touch conftest.a
8242  ln conftest.a conftest.b 2>&5 || hard_links=no
8243  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8245$as_echo "$hard_links" >&6; }
8246  if test "$hard_links" = no; then
8247    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8248$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8249    need_locks=warn
8250  fi
8251else
8252  need_locks=no
8253fi
8254
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8256$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8257
8258  runpath_var=
8259  allow_undefined_flag=
8260  enable_shared_with_static_runtimes=no
8261  archive_cmds=
8262  archive_expsym_cmds=
8263  old_archive_From_new_cmds=
8264  old_archive_from_expsyms_cmds=
8265  export_dynamic_flag_spec=
8266  whole_archive_flag_spec=
8267  thread_safe_flag_spec=
8268  hardcode_libdir_flag_spec=
8269  hardcode_libdir_flag_spec_ld=
8270  hardcode_libdir_separator=
8271  hardcode_direct=no
8272  hardcode_minus_L=no
8273  hardcode_shlibpath_var=unsupported
8274  link_all_deplibs=unknown
8275  hardcode_automatic=no
8276  module_cmds=
8277  module_expsym_cmds=
8278  always_export_symbols=no
8279  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8280  # include_expsyms should be a list of space-separated symbols to be *always*
8281  # included in the symbol list
8282  include_expsyms=
8283  # exclude_expsyms can be an extended regexp of symbols to exclude
8284  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8285  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8286  # as well as any symbol that contains `d'.
8287  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8288  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8289  # platforms (ab)use it in PIC code, but their linkers get confused if
8290  # the symbol is explicitly referenced.  Since portable code cannot
8291  # rely on this symbol name, it's probably fine to never include it in
8292  # preloaded symbol tables.
8293  extract_expsyms_cmds=
8294  # Just being paranoid about ensuring that cc_basename is set.
8295  for cc_temp in $compiler""; do
8296  case $cc_temp in
8297    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8298    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8299    \-*) ;;
8300    *) break;;
8301  esac
8302done
8303cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8304
8305  case $host_os in
8306  cygwin* | mingw* | pw32*)
8307    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8308    # When not using gcc, we currently assume that we are using
8309    # Microsoft Visual C++.
8310    if test "$GCC" != yes; then
8311      with_gnu_ld=no
8312    fi
8313    ;;
8314  interix*)
8315    # we just hope/assume this is gcc and not c89 (= MSVC++)
8316    with_gnu_ld=yes
8317    ;;
8318  openbsd*)
8319    with_gnu_ld=no
8320    ;;
8321  esac
8322
8323  ld_shlibs=yes
8324  if test "$with_gnu_ld" = yes; then
8325    # If archive_cmds runs LD, not CC, wlarc should be empty
8326    wlarc='${wl}'
8327
8328    # Set some defaults for GNU ld with shared library support. These
8329    # are reset later if shared libraries are not supported. Putting them
8330    # here allows them to be overridden if necessary.
8331    runpath_var=LD_RUN_PATH
8332    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8333    export_dynamic_flag_spec='${wl}--export-dynamic'
8334    # ancient GNU ld didn't support --whole-archive et. al.
8335    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8336	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8337      else
8338  	whole_archive_flag_spec=
8339    fi
8340    supports_anon_versioning=no
8341    case `$LD -v 2>/dev/null` in
8342      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8343      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8344      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8345      *\ 2.11.*) ;; # other 2.11 versions
8346      *) supports_anon_versioning=yes ;;
8347    esac
8348
8349    # See if GNU ld supports shared libraries.
8350    case $host_os in
8351    aix3* | aix4* | aix5*)
8352      # On AIX/PPC, the GNU linker is very broken
8353      if test "$host_cpu" != ia64; then
8354	ld_shlibs=no
8355	cat <<EOF 1>&2
8356
8357*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8358*** to be unable to reliably create shared libraries on AIX.
8359*** Therefore, libtool is disabling shared libraries support.  If you
8360*** really care for shared libraries, you may want to modify your PATH
8361*** so that a non-GNU linker is found, and then restart.
8362
8363EOF
8364      fi
8365      ;;
8366
8367    amigaos*)
8368      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)'
8369      hardcode_libdir_flag_spec='-L$libdir'
8370      hardcode_minus_L=yes
8371
8372      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8373      # that the semantics of dynamic libraries on AmigaOS, at least up
8374      # to version 4, is to share data among multiple programs linked
8375      # with the same dynamic library.  Since this doesn't match the
8376      # behavior of shared libraries on other platforms, we can't use
8377      # them.
8378      ld_shlibs=no
8379      ;;
8380
8381    beos*)
8382      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8383	allow_undefined_flag=unsupported
8384	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8385	# support --undefined.  This deserves some investigation.  FIXME
8386	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387      else
8388	ld_shlibs=no
8389      fi
8390      ;;
8391
8392    cygwin* | mingw* | pw32*)
8393      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8394      # as there is no search path for DLLs.
8395      hardcode_libdir_flag_spec='-L$libdir'
8396      allow_undefined_flag=unsupported
8397      always_export_symbols=no
8398      enable_shared_with_static_runtimes=yes
8399      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8400
8401      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8402        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8403	# If the export-symbols file already is a .def file (1st line
8404	# is EXPORTS), use it as is; otherwise, prepend...
8405	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8406	  cp $export_symbols $output_objdir/$soname.def;
8407	else
8408	  echo EXPORTS > $output_objdir/$soname.def;
8409	  cat $export_symbols >> $output_objdir/$soname.def;
8410	fi~
8411	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8412      else
8413	ld_shlibs=no
8414      fi
8415      ;;
8416
8417    interix3*)
8418      hardcode_direct=no
8419      hardcode_shlibpath_var=no
8420      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8421      export_dynamic_flag_spec='${wl}-E'
8422      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8423      # Instead, shared libraries are loaded at an image base (0x10000000 by
8424      # default) and relocated if they conflict, which is a slow very memory
8425      # consuming and fragmenting process.  To avoid this, we pick a random,
8426      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8427      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8428      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8429      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8430      ;;
8431
8432    linux*)
8433      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8434	tmp_addflag=
8435	case $cc_basename,$host_cpu in
8436	pgcc*)				# Portland Group C compiler
8437	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8438	  tmp_addflag=' $pic_flag'
8439	  ;;
8440	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8441	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8442	  tmp_addflag=' $pic_flag -Mnomain' ;;
8443	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8444	  tmp_addflag=' -i_dynamic' ;;
8445	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8446	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8447	ifc* | ifort*)			# Intel Fortran compiler
8448	  tmp_addflag=' -nofor_main' ;;
8449	esac
8450	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451
8452	if test $supports_anon_versioning = yes; then
8453	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8454  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8455  $echo "local: *; };" >> $output_objdir/$libname.ver~
8456	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8457	fi
8458      else
8459	ld_shlibs=no
8460      fi
8461      ;;
8462
8463    netbsd*)
8464      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8465	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8466	wlarc=
8467      else
8468	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8470      fi
8471      ;;
8472
8473    solaris*)
8474      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8475	ld_shlibs=no
8476	cat <<EOF 1>&2
8477
8478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8479*** create shared libraries on Solaris systems.  Therefore, libtool
8480*** is disabling shared libraries support.  We urge you to upgrade GNU
8481*** binutils to release 2.9.1 or newer.  Another option is to modify
8482*** your PATH or compiler configuration so that the native linker is
8483*** used, and then restart.
8484
8485EOF
8486      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8487	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8489      else
8490	ld_shlibs=no
8491      fi
8492      ;;
8493
8494    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8495      case `$LD -v 2>&1` in
8496        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8497	ld_shlibs=no
8498	cat <<_LT_EOF 1>&2
8499
8500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8501*** reliably create shared libraries on SCO systems.  Therefore, libtool
8502*** is disabling shared libraries support.  We urge you to upgrade GNU
8503*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8504*** your PATH or compiler configuration so that the native linker is
8505*** used, and then restart.
8506
8507_LT_EOF
8508	;;
8509	*)
8510	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8511	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8512	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8513	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8514	  else
8515	    ld_shlibs=no
8516	  fi
8517	;;
8518      esac
8519      ;;
8520
8521    sunos4*)
8522      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8523      wlarc=
8524      hardcode_direct=yes
8525      hardcode_shlibpath_var=no
8526      ;;
8527
8528    *)
8529      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8530	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8532      else
8533	ld_shlibs=no
8534      fi
8535      ;;
8536    esac
8537
8538    if test "$ld_shlibs" = no; then
8539      runpath_var=
8540      hardcode_libdir_flag_spec=
8541      export_dynamic_flag_spec=
8542      whole_archive_flag_spec=
8543    fi
8544  else
8545    # PORTME fill in a description of your system's linker (not GNU ld)
8546    case $host_os in
8547    aix3*)
8548      allow_undefined_flag=unsupported
8549      always_export_symbols=yes
8550      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'
8551      # Note: this linker hardcodes the directories in LIBPATH if there
8552      # are no directories specified by -L.
8553      hardcode_minus_L=yes
8554      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8555	# Neither direct hardcoding nor static linking is supported with a
8556	# broken collect2.
8557	hardcode_direct=unsupported
8558      fi
8559      ;;
8560
8561    aix4* | aix5*)
8562      if test "$host_cpu" = ia64; then
8563	# On IA64, the linker does run time linking by default, so we don't
8564	# have to do anything special.
8565	aix_use_runtimelinking=no
8566	exp_sym_flag='-Bexport'
8567	no_entry_flag=""
8568      else
8569	# If we're using GNU nm, then we don't want the "-C" option.
8570	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8571	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8572	  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'
8573	else
8574	  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'
8575	fi
8576	aix_use_runtimelinking=no
8577
8578	# Test if we are trying to use run time linking or normal
8579	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8580	# need to do runtime linking.
8581	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8582	  for ld_flag in $LDFLAGS; do
8583  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8584  	    aix_use_runtimelinking=yes
8585  	    break
8586  	  fi
8587	  done
8588	  ;;
8589	esac
8590
8591	exp_sym_flag='-bexport'
8592	no_entry_flag='-bnoentry'
8593      fi
8594
8595      # When large executables or shared objects are built, AIX ld can
8596      # have problems creating the table of contents.  If linking a library
8597      # or program results in "error TOC overflow" add -mminimal-toc to
8598      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8599      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8600
8601      archive_cmds=''
8602      hardcode_direct=yes
8603      hardcode_libdir_separator=':'
8604      link_all_deplibs=yes
8605
8606      if test "$GCC" = yes; then
8607	case $host_os in aix4.[012]|aix4.[012].*)
8608	# We only want to do this on AIX 4.2 and lower, the check
8609	# below for broken collect2 doesn't work under 4.3+
8610	  collect2name=`${CC} -print-prog-name=collect2`
8611	  if test -f "$collect2name" && \
8612  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8613	  then
8614  	  # We have reworked collect2
8615  	  hardcode_direct=yes
8616	  else
8617  	  # We have old collect2
8618  	  hardcode_direct=unsupported
8619  	  # It fails to find uninstalled libraries when the uninstalled
8620  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8621  	  # to unsupported forces relinking
8622  	  hardcode_minus_L=yes
8623  	  hardcode_libdir_flag_spec='-L$libdir'
8624  	  hardcode_libdir_separator=
8625	  fi
8626	  ;;
8627	esac
8628	shared_flag='-shared'
8629	if test "$aix_use_runtimelinking" = yes; then
8630	  shared_flag="$shared_flag "'${wl}-G'
8631	fi
8632      else
8633	# not using gcc
8634	if test "$host_cpu" = ia64; then
8635  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8636  	# chokes on -Wl,-G. The following line is correct:
8637	  shared_flag='-G'
8638	else
8639	  if test "$aix_use_runtimelinking" = yes; then
8640	    shared_flag='${wl}-G'
8641	  else
8642	    shared_flag='${wl}-bM:SRE'
8643	  fi
8644	fi
8645      fi
8646
8647      # It seems that -bexpall does not export symbols beginning with
8648      # underscore (_), so it is better to generate a list of symbols to export.
8649      always_export_symbols=yes
8650      if test "$aix_use_runtimelinking" = yes; then
8651	# Warning - without using the other runtime loading flags (-brtl),
8652	# -berok will link without error, but may produce a broken library.
8653	allow_undefined_flag='-berok'
8654       # Determine the default libpath from the value encoded in an empty executable.
8655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657
8658int
8659main ()
8660{
8661
8662  ;
8663  return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667
8668aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8669}'`
8670# Check for a 64-bit object if we didn't find anything.
8671if 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; }
8672}'`; fi
8673fi
8674rm -f core conftest.err conftest.$ac_objext \
8675    conftest$ac_exeext conftest.$ac_ext
8676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677
8678       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8679	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8680       else
8681	if test "$host_cpu" = ia64; then
8682	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8683	  allow_undefined_flag="-z nodefs"
8684	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8685	else
8686	 # Determine the default libpath from the value encoded in an empty executable.
8687	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689
8690int
8691main ()
8692{
8693
8694  ;
8695  return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_link "$LINENO"; then :
8699
8700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8701}'`
8702# Check for a 64-bit object if we didn't find anything.
8703if 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; }
8704}'`; fi
8705fi
8706rm -f core conftest.err conftest.$ac_objext \
8707    conftest$ac_exeext conftest.$ac_ext
8708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8709
8710	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8711	  # Warning - without using the other run time loading flags,
8712	  # -berok will link without error, but may produce a broken library.
8713	  no_undefined_flag=' ${wl}-bernotok'
8714	  allow_undefined_flag=' ${wl}-berok'
8715	  # Exported symbols can be pulled into shared objects from archives
8716	  whole_archive_flag_spec='$convenience'
8717	  archive_cmds_need_lc=yes
8718	  # This is similar to how AIX traditionally builds its shared libraries.
8719	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8720	fi
8721      fi
8722      ;;
8723
8724    amigaos*)
8725      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)'
8726      hardcode_libdir_flag_spec='-L$libdir'
8727      hardcode_minus_L=yes
8728      # see comment about different semantics on the GNU ld section
8729      ld_shlibs=no
8730      ;;
8731
8732    bsdi[45]*)
8733      export_dynamic_flag_spec=-rdynamic
8734      ;;
8735
8736    cygwin* | mingw* | pw32*)
8737      # When not using gcc, we currently assume that we are using
8738      # Microsoft Visual C++.
8739      # hardcode_libdir_flag_spec is actually meaningless, as there is
8740      # no search path for DLLs.
8741      hardcode_libdir_flag_spec=' '
8742      allow_undefined_flag=unsupported
8743      # Tell ltmain to make .lib files, not .a files.
8744      libext=lib
8745      # Tell ltmain to make .dll files, not .so files.
8746      shrext_cmds=".dll"
8747      # FIXME: Setting linknames here is a bad hack.
8748      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8749      # The linker will automatically build a .lib file if we build a DLL.
8750      old_archive_From_new_cmds='true'
8751      # FIXME: Should let the user specify the lib program.
8752      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8753      fix_srcfile_path='`cygpath -w "$srcfile"`'
8754      enable_shared_with_static_runtimes=yes
8755      ;;
8756
8757    darwin* | rhapsody*)
8758      case $host_os in
8759        rhapsody* | darwin1.[012])
8760         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8761         ;;
8762       *) # Darwin 1.3 on
8763         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8764           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8765         else
8766           case ${MACOSX_DEPLOYMENT_TARGET} in
8767             10.[012])
8768               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8769               ;;
8770             10.*)
8771               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8772               ;;
8773           esac
8774         fi
8775         ;;
8776      esac
8777      archive_cmds_need_lc=no
8778      hardcode_direct=no
8779      hardcode_automatic=yes
8780      hardcode_shlibpath_var=unsupported
8781      whole_archive_flag_spec=''
8782      link_all_deplibs=yes
8783    if test "$GCC" = yes ; then
8784    	output_verbose_link_cmd='echo'
8785        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8786      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8787      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8788      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}'
8789      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}'
8790    else
8791      case $cc_basename in
8792        xlc*)
8793         output_verbose_link_cmd='echo'
8794         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8795         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8796          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8797         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8798          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}'
8799          ;;
8800       *)
8801         ld_shlibs=no
8802          ;;
8803      esac
8804    fi
8805      ;;
8806
8807    dgux*)
8808      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809      hardcode_libdir_flag_spec='-L$libdir'
8810      hardcode_shlibpath_var=no
8811      ;;
8812
8813    freebsd1*)
8814      ld_shlibs=no
8815      ;;
8816
8817    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8818    # support.  Future versions do this automatically, but an explicit c++rt0.o
8819    # does not break anything, and helps significantly (at the cost of a little
8820    # extra space).
8821    freebsd2.2*)
8822      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8823      hardcode_libdir_flag_spec='-R$libdir'
8824      hardcode_direct=yes
8825      hardcode_shlibpath_var=no
8826      ;;
8827
8828    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8829    freebsd2*)
8830      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8831      hardcode_direct=yes
8832      hardcode_minus_L=yes
8833      hardcode_shlibpath_var=no
8834      ;;
8835
8836    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8837    freebsd* | kfreebsd*-gnu | dragonfly*)
8838      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8839      hardcode_libdir_flag_spec='-R$libdir'
8840      hardcode_direct=yes
8841      hardcode_shlibpath_var=no
8842      ;;
8843
8844    hpux9*)
8845      if test "$GCC" = yes; then
8846	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'
8847      else
8848	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'
8849      fi
8850      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851      hardcode_libdir_separator=:
8852      hardcode_direct=yes
8853
8854      # hardcode_minus_L: Not really in the search PATH,
8855      # but as the default location of the library.
8856      hardcode_minus_L=yes
8857      export_dynamic_flag_spec='${wl}-E'
8858      ;;
8859
8860    hpux10*)
8861      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8862	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8863      else
8864	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8865      fi
8866      if test "$with_gnu_ld" = no; then
8867	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868	hardcode_libdir_separator=:
8869
8870	hardcode_direct=yes
8871	export_dynamic_flag_spec='${wl}-E'
8872
8873	# hardcode_minus_L: Not really in the search PATH,
8874	# but as the default location of the library.
8875	hardcode_minus_L=yes
8876      fi
8877      ;;
8878
8879    hpux11*)
8880      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8881	case $host_cpu in
8882	hppa*64*)
8883	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884	  ;;
8885	ia64*)
8886	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8887	  ;;
8888	*)
8889	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890	  ;;
8891	esac
8892      else
8893	case $host_cpu in
8894	hppa*64*)
8895	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8896	  ;;
8897	ia64*)
8898	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8899	  ;;
8900	*)
8901	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8902	  ;;
8903	esac
8904      fi
8905      if test "$with_gnu_ld" = no; then
8906	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907	hardcode_libdir_separator=:
8908
8909	case $host_cpu in
8910	hppa*64*|ia64*)
8911	  hardcode_libdir_flag_spec_ld='+b $libdir'
8912	  hardcode_direct=no
8913	  hardcode_shlibpath_var=no
8914	  ;;
8915	*)
8916	  hardcode_direct=yes
8917	  export_dynamic_flag_spec='${wl}-E'
8918
8919	  # hardcode_minus_L: Not really in the search PATH,
8920	  # but as the default location of the library.
8921	  hardcode_minus_L=yes
8922	  ;;
8923	esac
8924      fi
8925      ;;
8926
8927    irix5* | irix6* | nonstopux*)
8928      if test "$GCC" = yes; then
8929	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'
8930      else
8931	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'
8932	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933      fi
8934      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935      hardcode_libdir_separator=:
8936      link_all_deplibs=yes
8937      ;;
8938
8939    netbsd*)
8940      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8941	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8942      else
8943	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8944      fi
8945      hardcode_libdir_flag_spec='-R$libdir'
8946      hardcode_direct=yes
8947      hardcode_shlibpath_var=no
8948      ;;
8949
8950    newsos6)
8951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952      hardcode_direct=yes
8953      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954      hardcode_libdir_separator=:
8955      hardcode_shlibpath_var=no
8956      ;;
8957
8958    openbsd*)
8959      hardcode_direct=yes
8960      hardcode_shlibpath_var=no
8961      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8962	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8963	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8964	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8965	export_dynamic_flag_spec='${wl}-E'
8966      else
8967       case $host_os in
8968	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8969	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970	   hardcode_libdir_flag_spec='-R$libdir'
8971	   ;;
8972	 *)
8973	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8975	   ;;
8976       esac
8977      fi
8978      ;;
8979
8980    os2*)
8981      hardcode_libdir_flag_spec='-L$libdir'
8982      hardcode_minus_L=yes
8983      allow_undefined_flag=unsupported
8984      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'
8985      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8986      ;;
8987
8988    osf3*)
8989      if test "$GCC" = yes; then
8990	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8991	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'
8992      else
8993	allow_undefined_flag=' -expect_unresolved \*'
8994	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'
8995      fi
8996      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997      hardcode_libdir_separator=:
8998      ;;
8999
9000    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9001      if test "$GCC" = yes; then
9002	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9003	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'
9004	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9005      else
9006	allow_undefined_flag=' -expect_unresolved \*'
9007	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'
9008	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9009	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9010
9011	# Both c and cxx compiler support -rpath directly
9012	hardcode_libdir_flag_spec='-rpath $libdir'
9013      fi
9014      hardcode_libdir_separator=:
9015      ;;
9016
9017    solaris*)
9018      no_undefined_flag=' -z text'
9019      if test "$GCC" = yes; then
9020	wlarc='${wl}'
9021	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9023	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9024      else
9025	wlarc=''
9026	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9028  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9029      fi
9030      hardcode_libdir_flag_spec='-R$libdir'
9031      hardcode_shlibpath_var=no
9032      case $host_os in
9033      solaris2.[0-5] | solaris2.[0-5].*) ;;
9034      *)
9035 	# The compiler driver will combine linker options so we
9036 	# cannot just pass the convience library names through
9037 	# without $wl, iff we do not link with $LD.
9038 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9039 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9040 	case $wlarc in
9041 	'')
9042 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9043 	*)
9044 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9045 	esac ;;
9046      esac
9047      link_all_deplibs=yes
9048      ;;
9049
9050    sunos4*)
9051      if test "x$host_vendor" = xsequent; then
9052	# Use $CC to link under sequent, because it throws in some extra .o
9053	# files that make .init and .fini sections work.
9054	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9055      else
9056	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9057      fi
9058      hardcode_libdir_flag_spec='-L$libdir'
9059      hardcode_direct=yes
9060      hardcode_minus_L=yes
9061      hardcode_shlibpath_var=no
9062      ;;
9063
9064    sysv4)
9065      case $host_vendor in
9066	sni)
9067	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068	  hardcode_direct=yes # is this really true???
9069	;;
9070	siemens)
9071	  ## LD is ld it makes a PLAMLIB
9072	  ## CC just makes a GrossModule.
9073	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9074	  reload_cmds='$CC -r -o $output$reload_objs'
9075	  hardcode_direct=no
9076        ;;
9077	motorola)
9078	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9080	;;
9081      esac
9082      runpath_var='LD_RUN_PATH'
9083      hardcode_shlibpath_var=no
9084      ;;
9085
9086    sysv4.3*)
9087      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088      hardcode_shlibpath_var=no
9089      export_dynamic_flag_spec='-Bexport'
9090      ;;
9091
9092    sysv4*MP*)
9093      if test -d /usr/nec; then
9094	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095	hardcode_shlibpath_var=no
9096	runpath_var=LD_RUN_PATH
9097	hardcode_runpath_var=yes
9098	ld_shlibs=yes
9099      fi
9100      ;;
9101
9102    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9103      no_undefined_flag='${wl}-z,text'
9104      archive_cmds_need_lc=no
9105      hardcode_shlibpath_var=no
9106      runpath_var='LD_RUN_PATH'
9107
9108      if test "$GCC" = yes; then
9109	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9111      else
9112	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114      fi
9115      ;;
9116
9117    sysv5* | sco3.2v5* | sco5v6*)
9118      # Note: We can NOT use -z defs as we might desire, because we do not
9119      # link with -lc, and that would cause any symbols used from libc to
9120      # always be unresolved, which means just about no library would
9121      # ever link correctly.  If we're not using GNU ld we use -z text
9122      # though, which does catch some bad symbols but isn't as heavy-handed
9123      # as -z defs.
9124      no_undefined_flag='${wl}-z,text'
9125      allow_undefined_flag='${wl}-z,nodefs'
9126      archive_cmds_need_lc=no
9127      hardcode_shlibpath_var=no
9128      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9129      hardcode_libdir_separator=':'
9130      link_all_deplibs=yes
9131      export_dynamic_flag_spec='${wl}-Bexport'
9132      runpath_var='LD_RUN_PATH'
9133
9134      if test "$GCC" = yes; then
9135	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137      else
9138	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9139	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9140      fi
9141      ;;
9142
9143    uts4*)
9144      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145      hardcode_libdir_flag_spec='-L$libdir'
9146      hardcode_shlibpath_var=no
9147      ;;
9148
9149    *)
9150      ld_shlibs=no
9151      ;;
9152    esac
9153  fi
9154
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9156$as_echo "$ld_shlibs" >&6; }
9157test "$ld_shlibs" = no && can_build_shared=no
9158
9159#
9160# Do we need to explicitly link libc?
9161#
9162case "x$archive_cmds_need_lc" in
9163x|xyes)
9164  # Assume -lc should be added
9165  archive_cmds_need_lc=yes
9166
9167  if test "$enable_shared" = yes && test "$GCC" = yes; then
9168    case $archive_cmds in
9169    *'~'*)
9170      # FIXME: we may have to deal with multi-command sequences.
9171      ;;
9172    '$CC '*)
9173      # Test whether the compiler implicitly links with -lc since on some
9174      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9175      # to ld, don't add -lc before -lgcc.
9176      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9177$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9178      $rm conftest*
9179      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9180
9181      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9182  (eval $ac_compile) 2>&5
9183  ac_status=$?
9184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9185  test $ac_status = 0; } 2>conftest.err; then
9186        soname=conftest
9187        lib=conftest
9188        libobjs=conftest.$ac_objext
9189        deplibs=
9190        wl=$lt_prog_compiler_wl
9191	pic_flag=$lt_prog_compiler_pic
9192        compiler_flags=-v
9193        linker_flags=-v
9194        verstring=
9195        output_objdir=.
9196        libname=conftest
9197        lt_save_allow_undefined_flag=$allow_undefined_flag
9198        allow_undefined_flag=
9199        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9200  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9201  ac_status=$?
9202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9203  test $ac_status = 0; }
9204        then
9205	  archive_cmds_need_lc=no
9206        else
9207	  archive_cmds_need_lc=yes
9208        fi
9209        allow_undefined_flag=$lt_save_allow_undefined_flag
9210      else
9211        cat conftest.err 1>&5
9212      fi
9213      $rm conftest*
9214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9215$as_echo "$archive_cmds_need_lc" >&6; }
9216      ;;
9217    esac
9218  fi
9219  ;;
9220esac
9221
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9223$as_echo_n "checking dynamic linker characteristics... " >&6; }
9224library_names_spec=
9225libname_spec='lib$name'
9226soname_spec=
9227shrext_cmds=".so"
9228postinstall_cmds=
9229postuninstall_cmds=
9230finish_cmds=
9231finish_eval=
9232shlibpath_var=
9233shlibpath_overrides_runpath=unknown
9234version_type=none
9235dynamic_linker="$host_os ld.so"
9236sys_lib_dlsearch_path_spec="/lib /usr/lib"
9237if test "$GCC" = yes; then
9238  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9239  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9240    # if the path contains ";" then we assume it to be the separator
9241    # otherwise default to the standard path separator (i.e. ":") - it is
9242    # assumed that no part of a normal pathname contains ";" but that should
9243    # okay in the real world where ";" in dirpaths is itself problematic.
9244    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9245  else
9246    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9247  fi
9248else
9249  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9250fi
9251need_lib_prefix=unknown
9252hardcode_into_libs=no
9253
9254# when you set need_version to no, make sure it does not cause -set_version
9255# flags to be left without arguments
9256need_version=unknown
9257
9258case $host_os in
9259aix3*)
9260  version_type=linux
9261  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9262  shlibpath_var=LIBPATH
9263
9264  # AIX 3 has no versioning support, so we append a major version to the name.
9265  soname_spec='${libname}${release}${shared_ext}$major'
9266  ;;
9267
9268aix4* | aix5*)
9269  version_type=linux
9270  need_lib_prefix=no
9271  need_version=no
9272  hardcode_into_libs=yes
9273  if test "$host_cpu" = ia64; then
9274    # AIX 5 supports IA64
9275    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9276    shlibpath_var=LD_LIBRARY_PATH
9277  else
9278    # With GCC up to 2.95.x, collect2 would create an import file
9279    # for dependence libraries.  The import file would start with
9280    # the line `#! .'.  This would cause the generated library to
9281    # depend on `.', always an invalid library.  This was fixed in
9282    # development snapshots of GCC prior to 3.0.
9283    case $host_os in
9284      aix4 | aix4.[01] | aix4.[01].*)
9285      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9286	   echo ' yes '
9287	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9288	:
9289      else
9290	can_build_shared=no
9291      fi
9292      ;;
9293    esac
9294    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9295    # soname into executable. Probably we can add versioning support to
9296    # collect2, so additional links can be useful in future.
9297    if test "$aix_use_runtimelinking" = yes; then
9298      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9299      # instead of lib<name>.a to let people know that these are not
9300      # typical AIX shared libraries.
9301      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302    else
9303      # We preserve .a as extension for shared libraries through AIX4.2
9304      # and later when we are not doing run time linking.
9305      library_names_spec='${libname}${release}.a $libname.a'
9306      soname_spec='${libname}${release}${shared_ext}$major'
9307    fi
9308    shlibpath_var=LIBPATH
9309  fi
9310  ;;
9311
9312amigaos*)
9313  library_names_spec='$libname.ixlibrary $libname.a'
9314  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9315  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'
9316  ;;
9317
9318beos*)
9319  library_names_spec='${libname}${shared_ext}'
9320  dynamic_linker="$host_os ld.so"
9321  shlibpath_var=LIBRARY_PATH
9322  ;;
9323
9324bsdi[45]*)
9325  version_type=linux
9326  need_version=no
9327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328  soname_spec='${libname}${release}${shared_ext}$major'
9329  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9330  shlibpath_var=LD_LIBRARY_PATH
9331  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9332  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9333  # the default ld.so.conf also contains /usr/contrib/lib and
9334  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9335  # libtool to hard-code these into programs
9336  ;;
9337
9338cygwin* | mingw* | pw32*)
9339  version_type=windows
9340  shrext_cmds=".dll"
9341  need_version=no
9342  need_lib_prefix=no
9343
9344  case $GCC,$host_os in
9345  yes,cygwin* | yes,mingw* | yes,pw32*)
9346    library_names_spec='$libname.dll.a'
9347    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9348    postinstall_cmds='base_file=`basename \${file}`~
9349      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9350      dldir=$destdir/`dirname \$dlpath`~
9351      test -d \$dldir || mkdir -p \$dldir~
9352      $install_prog $dir/$dlname \$dldir/$dlname~
9353      chmod a+x \$dldir/$dlname'
9354    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9355      dlpath=$dir/\$dldll~
9356       $rm \$dlpath'
9357    shlibpath_overrides_runpath=yes
9358
9359    case $host_os in
9360    cygwin*)
9361      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9362      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9364      ;;
9365    mingw*)
9366      # MinGW DLLs use traditional 'lib' prefix
9367      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9369      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9370        # It is most probably a Windows format PATH printed by
9371        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9372        # path with ; separators, and with drive letters. We can handle the
9373        # drive letters (cygwin fileutils understands them), so leave them,
9374        # especially as we might pass files found there to a mingw objdump,
9375        # which wouldn't understand a cygwinified path. Ahh.
9376        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9377      else
9378        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9379      fi
9380      ;;
9381    pw32*)
9382      # pw32 DLLs use 'pw' prefix rather than 'lib'
9383      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9384      ;;
9385    esac
9386    ;;
9387
9388  *)
9389    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9390    ;;
9391  esac
9392  dynamic_linker='Win32 ld.exe'
9393  # FIXME: first we should search . and the directory the executable is in
9394  shlibpath_var=PATH
9395  ;;
9396
9397darwin* | rhapsody*)
9398  dynamic_linker="$host_os dyld"
9399  version_type=darwin
9400  need_lib_prefix=no
9401  need_version=no
9402  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9403  soname_spec='${libname}${release}${major}$shared_ext'
9404  shlibpath_overrides_runpath=yes
9405  shlibpath_var=DYLD_LIBRARY_PATH
9406  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9407  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9408  if test "$GCC" = yes; then
9409    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"`
9410  else
9411    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9412  fi
9413  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9414  ;;
9415
9416dgux*)
9417  version_type=linux
9418  need_lib_prefix=no
9419  need_version=no
9420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9421  soname_spec='${libname}${release}${shared_ext}$major'
9422  shlibpath_var=LD_LIBRARY_PATH
9423  ;;
9424
9425freebsd1*)
9426  dynamic_linker=no
9427  ;;
9428
9429kfreebsd*-gnu)
9430  version_type=linux
9431  need_lib_prefix=no
9432  need_version=no
9433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9434  soname_spec='${libname}${release}${shared_ext}$major'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=no
9437  hardcode_into_libs=yes
9438  dynamic_linker='GNU ld.so'
9439  ;;
9440
9441freebsd* | dragonfly*)
9442  # DragonFly does not have aout.  When/if they implement a new
9443  # versioning mechanism, adjust this.
9444  if test -x /usr/bin/objformat; then
9445    objformat=`/usr/bin/objformat`
9446  else
9447    case $host_os in
9448    freebsd[123]*) objformat=aout ;;
9449    *) objformat=elf ;;
9450    esac
9451  fi
9452  version_type=freebsd-$objformat
9453  case $version_type in
9454    freebsd-elf*)
9455      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9456      need_version=no
9457      need_lib_prefix=no
9458      ;;
9459    freebsd-*)
9460      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9461      need_version=yes
9462      ;;
9463  esac
9464  shlibpath_var=LD_LIBRARY_PATH
9465  case $host_os in
9466  freebsd2*)
9467    shlibpath_overrides_runpath=yes
9468    ;;
9469  freebsd3.[01]* | freebsdelf3.[01]*)
9470    shlibpath_overrides_runpath=yes
9471    hardcode_into_libs=yes
9472    ;;
9473  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9474  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9475    shlibpath_overrides_runpath=no
9476    hardcode_into_libs=yes
9477    ;;
9478  freebsd*) # from 4.6 on
9479    shlibpath_overrides_runpath=yes
9480    hardcode_into_libs=yes
9481    ;;
9482  esac
9483  ;;
9484
9485gnu*)
9486  version_type=linux
9487  need_lib_prefix=no
9488  need_version=no
9489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9490  soname_spec='${libname}${release}${shared_ext}$major'
9491  shlibpath_var=LD_LIBRARY_PATH
9492  hardcode_into_libs=yes
9493  ;;
9494
9495hpux9* | hpux10* | hpux11*)
9496  # Give a soname corresponding to the major version so that dld.sl refuses to
9497  # link against other versions.
9498  version_type=sunos
9499  need_lib_prefix=no
9500  need_version=no
9501  case $host_cpu in
9502  ia64*)
9503    shrext_cmds='.so'
9504    hardcode_into_libs=yes
9505    dynamic_linker="$host_os dld.so"
9506    shlibpath_var=LD_LIBRARY_PATH
9507    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509    soname_spec='${libname}${release}${shared_ext}$major'
9510    if test "X$HPUX_IA64_MODE" = X32; then
9511      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9512    else
9513      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9514    fi
9515    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9516    ;;
9517   hppa*64*)
9518     shrext_cmds='.sl'
9519     hardcode_into_libs=yes
9520     dynamic_linker="$host_os dld.sl"
9521     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9522     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524     soname_spec='${libname}${release}${shared_ext}$major'
9525     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9526     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9527     ;;
9528   *)
9529    shrext_cmds='.sl'
9530    dynamic_linker="$host_os dld.sl"
9531    shlibpath_var=SHLIB_PATH
9532    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9533    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534    soname_spec='${libname}${release}${shared_ext}$major'
9535    ;;
9536  esac
9537  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9538  postinstall_cmds='chmod 555 $lib'
9539  ;;
9540
9541interix3*)
9542  version_type=linux
9543  need_lib_prefix=no
9544  need_version=no
9545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9546  soname_spec='${libname}${release}${shared_ext}$major'
9547  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9548  shlibpath_var=LD_LIBRARY_PATH
9549  shlibpath_overrides_runpath=no
9550  hardcode_into_libs=yes
9551  ;;
9552
9553irix5* | irix6* | nonstopux*)
9554  case $host_os in
9555    nonstopux*) version_type=nonstopux ;;
9556    *)
9557	if test "$lt_cv_prog_gnu_ld" = yes; then
9558		version_type=linux
9559	else
9560		version_type=irix
9561	fi ;;
9562  esac
9563  need_lib_prefix=no
9564  need_version=no
9565  soname_spec='${libname}${release}${shared_ext}$major'
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9567  case $host_os in
9568  irix5* | nonstopux*)
9569    libsuff= shlibsuff=
9570    ;;
9571  *)
9572    case $LD in # libtool.m4 will add one of these switches to LD
9573    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9574      libsuff= shlibsuff= libmagic=32-bit;;
9575    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9576      libsuff=32 shlibsuff=N32 libmagic=N32;;
9577    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9578      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9579    *) libsuff= shlibsuff= libmagic=never-match;;
9580    esac
9581    ;;
9582  esac
9583  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9584  shlibpath_overrides_runpath=no
9585  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9586  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9587  hardcode_into_libs=yes
9588  ;;
9589
9590# No shared lib support for Linux oldld, aout, or coff.
9591linux*oldld* | linux*aout* | linux*coff*)
9592  dynamic_linker=no
9593  ;;
9594
9595# This must be Linux ELF.
9596linux*)
9597  version_type=linux
9598  need_lib_prefix=no
9599  need_version=no
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9603  shlibpath_var=LD_LIBRARY_PATH
9604  shlibpath_overrides_runpath=no
9605  # This implies no fast_install, which is unacceptable.
9606  # Some rework will be needed to allow for fast_install
9607  # before this can be enabled.
9608  hardcode_into_libs=yes
9609
9610  # Append ld.so.conf contents to the search path
9611  if test -f /etc/ld.so.conf; then
9612    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9613    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9614  fi
9615
9616  # We used to test for /lib/ld.so.1 and disable shared libraries on
9617  # powerpc, because MkLinux only supported shared libraries with the
9618  # GNU dynamic linker.  Since this was broken with cross compilers,
9619  # most powerpc-linux boxes support dynamic linking these days and
9620  # people can always --disable-shared, the test was removed, and we
9621  # assume the GNU/Linux dynamic linker is in use.
9622  dynamic_linker='GNU/Linux ld.so'
9623  ;;
9624
9625knetbsd*-gnu)
9626  version_type=linux
9627  need_lib_prefix=no
9628  need_version=no
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  shlibpath_overrides_runpath=no
9633  hardcode_into_libs=yes
9634  dynamic_linker='GNU ld.so'
9635  ;;
9636
9637netbsd*)
9638  version_type=sunos
9639  need_lib_prefix=no
9640  need_version=no
9641  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9642    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9644    dynamic_linker='NetBSD (a.out) ld.so'
9645  else
9646    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647    soname_spec='${libname}${release}${shared_ext}$major'
9648    dynamic_linker='NetBSD ld.elf_so'
9649  fi
9650  shlibpath_var=LD_LIBRARY_PATH
9651  shlibpath_overrides_runpath=yes
9652  hardcode_into_libs=yes
9653  ;;
9654
9655newsos6)
9656  version_type=linux
9657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  shlibpath_overrides_runpath=yes
9660  ;;
9661
9662nto-qnx*)
9663  version_type=linux
9664  need_lib_prefix=no
9665  need_version=no
9666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667  soname_spec='${libname}${release}${shared_ext}$major'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  shlibpath_overrides_runpath=yes
9670  ;;
9671
9672openbsd*)
9673  version_type=sunos
9674  sys_lib_dlsearch_path_spec="/usr/lib"
9675  need_lib_prefix=no
9676  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9677  case $host_os in
9678    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9679    *)                         need_version=no  ;;
9680  esac
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683  shlibpath_var=LD_LIBRARY_PATH
9684  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9685    case $host_os in
9686      openbsd2.[89] | openbsd2.[89].*)
9687	shlibpath_overrides_runpath=no
9688	;;
9689      *)
9690	shlibpath_overrides_runpath=yes
9691	;;
9692      esac
9693  else
9694    shlibpath_overrides_runpath=yes
9695  fi
9696  ;;
9697
9698os2*)
9699  libname_spec='$name'
9700  shrext_cmds=".dll"
9701  need_lib_prefix=no
9702  library_names_spec='$libname${shared_ext} $libname.a'
9703  dynamic_linker='OS/2 ld.exe'
9704  shlibpath_var=LIBPATH
9705  ;;
9706
9707osf3* | osf4* | osf5*)
9708  version_type=osf
9709  need_lib_prefix=no
9710  need_version=no
9711  soname_spec='${libname}${release}${shared_ext}$major'
9712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713  shlibpath_var=LD_LIBRARY_PATH
9714  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9715  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9716  ;;
9717
9718solaris*)
9719  version_type=linux
9720  need_lib_prefix=no
9721  need_version=no
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723  soname_spec='${libname}${release}${shared_ext}$major'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  shlibpath_overrides_runpath=yes
9726  hardcode_into_libs=yes
9727  # ldd complains unless libraries are executable
9728  postinstall_cmds='chmod +x $lib'
9729  ;;
9730
9731sunos4*)
9732  version_type=sunos
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735  shlibpath_var=LD_LIBRARY_PATH
9736  shlibpath_overrides_runpath=yes
9737  if test "$with_gnu_ld" = yes; then
9738    need_lib_prefix=no
9739  fi
9740  need_version=yes
9741  ;;
9742
9743sysv4 | sysv4.3*)
9744  version_type=linux
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746  soname_spec='${libname}${release}${shared_ext}$major'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  case $host_vendor in
9749    sni)
9750      shlibpath_overrides_runpath=no
9751      need_lib_prefix=no
9752      export_dynamic_flag_spec='${wl}-Blargedynsym'
9753      runpath_var=LD_RUN_PATH
9754      ;;
9755    siemens)
9756      need_lib_prefix=no
9757      ;;
9758    motorola)
9759      need_lib_prefix=no
9760      need_version=no
9761      shlibpath_overrides_runpath=no
9762      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9763      ;;
9764  esac
9765  ;;
9766
9767sysv4*MP*)
9768  if test -d /usr/nec ;then
9769    version_type=linux
9770    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9771    soname_spec='$libname${shared_ext}.$major'
9772    shlibpath_var=LD_LIBRARY_PATH
9773  fi
9774  ;;
9775
9776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9777  version_type=freebsd-elf
9778  need_lib_prefix=no
9779  need_version=no
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9781  soname_spec='${libname}${release}${shared_ext}$major'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  hardcode_into_libs=yes
9784  if test "$with_gnu_ld" = yes; then
9785    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9786    shlibpath_overrides_runpath=no
9787  else
9788    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9789    shlibpath_overrides_runpath=yes
9790    case $host_os in
9791      sco3.2v5*)
9792        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9793	;;
9794    esac
9795  fi
9796  sys_lib_dlsearch_path_spec='/usr/lib'
9797  ;;
9798
9799uts4*)
9800  version_type=linux
9801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  shlibpath_var=LD_LIBRARY_PATH
9804  ;;
9805
9806*)
9807  dynamic_linker=no
9808  ;;
9809esac
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9811$as_echo "$dynamic_linker" >&6; }
9812test "$dynamic_linker" = no && can_build_shared=no
9813
9814variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9815if test "$GCC" = yes; then
9816  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9817fi
9818
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9820$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9821hardcode_action=
9822if test -n "$hardcode_libdir_flag_spec" || \
9823   test -n "$runpath_var" || \
9824   test "X$hardcode_automatic" = "Xyes" ; then
9825
9826  # We can hardcode non-existant directories.
9827  if test "$hardcode_direct" != no &&
9828     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9829     # have to relink, otherwise we might link with an installed library
9830     # when we should be linking with a yet-to-be-installed one
9831     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9832     test "$hardcode_minus_L" != no; then
9833    # Linking always hardcodes the temporary library directory.
9834    hardcode_action=relink
9835  else
9836    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9837    hardcode_action=immediate
9838  fi
9839else
9840  # We cannot hardcode anything, or else we can only hardcode existing
9841  # directories.
9842  hardcode_action=unsupported
9843fi
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9845$as_echo "$hardcode_action" >&6; }
9846
9847if test "$hardcode_action" = relink; then
9848  # Fast installation is not supported
9849  enable_fast_install=no
9850elif test "$shlibpath_overrides_runpath" = yes ||
9851     test "$enable_shared" = no; then
9852  # Fast installation is not necessary
9853  enable_fast_install=needless
9854fi
9855
9856striplib=
9857old_striplib=
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9859$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9860if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9861  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9862  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9864$as_echo "yes" >&6; }
9865else
9866# FIXME - insert some real tests, host_os isn't really good enough
9867  case $host_os in
9868   darwin*)
9869       if test -n "$STRIP" ; then
9870         striplib="$STRIP -x"
9871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9872$as_echo "yes" >&6; }
9873       else
9874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875$as_echo "no" >&6; }
9876fi
9877       ;;
9878   *)
9879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880$as_echo "no" >&6; }
9881    ;;
9882  esac
9883fi
9884
9885if test "x$enable_dlopen" != xyes; then
9886  enable_dlopen=unknown
9887  enable_dlopen_self=unknown
9888  enable_dlopen_self_static=unknown
9889else
9890  lt_cv_dlopen=no
9891  lt_cv_dlopen_libs=
9892
9893  case $host_os in
9894  beos*)
9895    lt_cv_dlopen="load_add_on"
9896    lt_cv_dlopen_libs=
9897    lt_cv_dlopen_self=yes
9898    ;;
9899
9900  mingw* | pw32*)
9901    lt_cv_dlopen="LoadLibrary"
9902    lt_cv_dlopen_libs=
9903   ;;
9904
9905  cygwin*)
9906    lt_cv_dlopen="dlopen"
9907    lt_cv_dlopen_libs=
9908   ;;
9909
9910  darwin*)
9911  # if libdl is installed we need to link against it
9912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9913$as_echo_n "checking for dlopen in -ldl... " >&6; }
9914if ${ac_cv_lib_dl_dlopen+:} false; then :
9915  $as_echo_n "(cached) " >&6
9916else
9917  ac_check_lib_save_LIBS=$LIBS
9918LIBS="-ldl  $LIBS"
9919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921
9922/* Override any GCC internal prototype to avoid an error.
9923   Use char because int might match the return type of a GCC
9924   builtin and then its argument prototype would still apply.  */
9925#ifdef __cplusplus
9926extern "C"
9927#endif
9928char dlopen ();
9929int
9930main ()
9931{
9932return dlopen ();
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937if ac_fn_c_try_link "$LINENO"; then :
9938  ac_cv_lib_dl_dlopen=yes
9939else
9940  ac_cv_lib_dl_dlopen=no
9941fi
9942rm -f core conftest.err conftest.$ac_objext \
9943    conftest$ac_exeext conftest.$ac_ext
9944LIBS=$ac_check_lib_save_LIBS
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9947$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9948if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9949  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9950else
9951
9952    lt_cv_dlopen="dyld"
9953    lt_cv_dlopen_libs=
9954    lt_cv_dlopen_self=yes
9955
9956fi
9957
9958   ;;
9959
9960  *)
9961    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9962if test "x$ac_cv_func_shl_load" = xyes; then :
9963  lt_cv_dlopen="shl_load"
9964else
9965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9966$as_echo_n "checking for shl_load in -ldld... " >&6; }
9967if ${ac_cv_lib_dld_shl_load+:} false; then :
9968  $as_echo_n "(cached) " >&6
9969else
9970  ac_check_lib_save_LIBS=$LIBS
9971LIBS="-ldld  $LIBS"
9972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974
9975/* Override any GCC internal prototype to avoid an error.
9976   Use char because int might match the return type of a GCC
9977   builtin and then its argument prototype would still apply.  */
9978#ifdef __cplusplus
9979extern "C"
9980#endif
9981char shl_load ();
9982int
9983main ()
9984{
9985return shl_load ();
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_link "$LINENO"; then :
9991  ac_cv_lib_dld_shl_load=yes
9992else
9993  ac_cv_lib_dld_shl_load=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext \
9996    conftest$ac_exeext conftest.$ac_ext
9997LIBS=$ac_check_lib_save_LIBS
9998fi
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10000$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10001if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10002  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10003else
10004  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10005if test "x$ac_cv_func_dlopen" = xyes; then :
10006  lt_cv_dlopen="dlopen"
10007else
10008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10009$as_echo_n "checking for dlopen in -ldl... " >&6; }
10010if ${ac_cv_lib_dl_dlopen+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  ac_check_lib_save_LIBS=$LIBS
10014LIBS="-ldl  $LIBS"
10015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017
10018/* Override any GCC internal prototype to avoid an error.
10019   Use char because int might match the return type of a GCC
10020   builtin and then its argument prototype would still apply.  */
10021#ifdef __cplusplus
10022extern "C"
10023#endif
10024char dlopen ();
10025int
10026main ()
10027{
10028return dlopen ();
10029  ;
10030  return 0;
10031}
10032_ACEOF
10033if ac_fn_c_try_link "$LINENO"; then :
10034  ac_cv_lib_dl_dlopen=yes
10035else
10036  ac_cv_lib_dl_dlopen=no
10037fi
10038rm -f core conftest.err conftest.$ac_objext \
10039    conftest$ac_exeext conftest.$ac_ext
10040LIBS=$ac_check_lib_save_LIBS
10041fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10043$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10044if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10045  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10046else
10047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10048$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10049if ${ac_cv_lib_svld_dlopen+:} false; then :
10050  $as_echo_n "(cached) " >&6
10051else
10052  ac_check_lib_save_LIBS=$LIBS
10053LIBS="-lsvld  $LIBS"
10054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h.  */
10056
10057/* Override any GCC internal prototype to avoid an error.
10058   Use char because int might match the return type of a GCC
10059   builtin and then its argument prototype would still apply.  */
10060#ifdef __cplusplus
10061extern "C"
10062#endif
10063char dlopen ();
10064int
10065main ()
10066{
10067return dlopen ();
10068  ;
10069  return 0;
10070}
10071_ACEOF
10072if ac_fn_c_try_link "$LINENO"; then :
10073  ac_cv_lib_svld_dlopen=yes
10074else
10075  ac_cv_lib_svld_dlopen=no
10076fi
10077rm -f core conftest.err conftest.$ac_objext \
10078    conftest$ac_exeext conftest.$ac_ext
10079LIBS=$ac_check_lib_save_LIBS
10080fi
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10082$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10083if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10084  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10085else
10086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10087$as_echo_n "checking for dld_link in -ldld... " >&6; }
10088if ${ac_cv_lib_dld_dld_link+:} false; then :
10089  $as_echo_n "(cached) " >&6
10090else
10091  ac_check_lib_save_LIBS=$LIBS
10092LIBS="-ldld  $LIBS"
10093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095
10096/* Override any GCC internal prototype to avoid an error.
10097   Use char because int might match the return type of a GCC
10098   builtin and then its argument prototype would still apply.  */
10099#ifdef __cplusplus
10100extern "C"
10101#endif
10102char dld_link ();
10103int
10104main ()
10105{
10106return dld_link ();
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_link "$LINENO"; then :
10112  ac_cv_lib_dld_dld_link=yes
10113else
10114  ac_cv_lib_dld_dld_link=no
10115fi
10116rm -f core conftest.err conftest.$ac_objext \
10117    conftest$ac_exeext conftest.$ac_ext
10118LIBS=$ac_check_lib_save_LIBS
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10121$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10122if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10123  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10124fi
10125
10126
10127fi
10128
10129
10130fi
10131
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141    ;;
10142  esac
10143
10144  if test "x$lt_cv_dlopen" != xno; then
10145    enable_dlopen=yes
10146  else
10147    enable_dlopen=no
10148  fi
10149
10150  case $lt_cv_dlopen in
10151  dlopen)
10152    save_CPPFLAGS="$CPPFLAGS"
10153    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10154
10155    save_LDFLAGS="$LDFLAGS"
10156    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10157
10158    save_LIBS="$LIBS"
10159    LIBS="$lt_cv_dlopen_libs $LIBS"
10160
10161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10162$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10163if ${lt_cv_dlopen_self+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  	  if test "$cross_compiling" = yes; then :
10167  lt_cv_dlopen_self=cross
10168else
10169  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10170  lt_status=$lt_dlunknown
10171  cat > conftest.$ac_ext <<EOF
10172#line 10172 "configure"
10173#include "confdefs.h"
10174
10175#if HAVE_DLFCN_H
10176#include <dlfcn.h>
10177#endif
10178
10179#include <stdio.h>
10180
10181#ifdef RTLD_GLOBAL
10182#  define LT_DLGLOBAL		RTLD_GLOBAL
10183#else
10184#  ifdef DL_GLOBAL
10185#    define LT_DLGLOBAL		DL_GLOBAL
10186#  else
10187#    define LT_DLGLOBAL		0
10188#  endif
10189#endif
10190
10191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10192   find out it does not work in some platform. */
10193#ifndef LT_DLLAZY_OR_NOW
10194#  ifdef RTLD_LAZY
10195#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10196#  else
10197#    ifdef DL_LAZY
10198#      define LT_DLLAZY_OR_NOW		DL_LAZY
10199#    else
10200#      ifdef RTLD_NOW
10201#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10202#      else
10203#        ifdef DL_NOW
10204#          define LT_DLLAZY_OR_NOW	DL_NOW
10205#        else
10206#          define LT_DLLAZY_OR_NOW	0
10207#        endif
10208#      endif
10209#    endif
10210#  endif
10211#endif
10212
10213#ifdef __cplusplus
10214extern "C" void exit (int);
10215#endif
10216
10217void fnord() { int i=42;}
10218int main ()
10219{
10220  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10221  int status = $lt_dlunknown;
10222
10223  if (self)
10224    {
10225      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10226      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10227      /* dlclose (self); */
10228    }
10229  else
10230    puts (dlerror ());
10231
10232    exit (status);
10233}
10234EOF
10235  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10236  (eval $ac_link) 2>&5
10237  ac_status=$?
10238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10239  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10240    (./conftest; exit; ) >&5 2>/dev/null
10241    lt_status=$?
10242    case x$lt_status in
10243      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10244      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10245      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10246    esac
10247  else :
10248    # compilation failed
10249    lt_cv_dlopen_self=no
10250  fi
10251fi
10252rm -fr conftest*
10253
10254
10255fi
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10257$as_echo "$lt_cv_dlopen_self" >&6; }
10258
10259    if test "x$lt_cv_dlopen_self" = xyes; then
10260      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10261      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10262$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10263if ${lt_cv_dlopen_self_static+:} false; then :
10264  $as_echo_n "(cached) " >&6
10265else
10266  	  if test "$cross_compiling" = yes; then :
10267  lt_cv_dlopen_self_static=cross
10268else
10269  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270  lt_status=$lt_dlunknown
10271  cat > conftest.$ac_ext <<EOF
10272#line 10272 "configure"
10273#include "confdefs.h"
10274
10275#if HAVE_DLFCN_H
10276#include <dlfcn.h>
10277#endif
10278
10279#include <stdio.h>
10280
10281#ifdef RTLD_GLOBAL
10282#  define LT_DLGLOBAL		RTLD_GLOBAL
10283#else
10284#  ifdef DL_GLOBAL
10285#    define LT_DLGLOBAL		DL_GLOBAL
10286#  else
10287#    define LT_DLGLOBAL		0
10288#  endif
10289#endif
10290
10291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292   find out it does not work in some platform. */
10293#ifndef LT_DLLAZY_OR_NOW
10294#  ifdef RTLD_LAZY
10295#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10296#  else
10297#    ifdef DL_LAZY
10298#      define LT_DLLAZY_OR_NOW		DL_LAZY
10299#    else
10300#      ifdef RTLD_NOW
10301#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10302#      else
10303#        ifdef DL_NOW
10304#          define LT_DLLAZY_OR_NOW	DL_NOW
10305#        else
10306#          define LT_DLLAZY_OR_NOW	0
10307#        endif
10308#      endif
10309#    endif
10310#  endif
10311#endif
10312
10313#ifdef __cplusplus
10314extern "C" void exit (int);
10315#endif
10316
10317void fnord() { int i=42;}
10318int main ()
10319{
10320  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321  int status = $lt_dlunknown;
10322
10323  if (self)
10324    {
10325      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10326      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327      /* dlclose (self); */
10328    }
10329  else
10330    puts (dlerror ());
10331
10332    exit (status);
10333}
10334EOF
10335  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10336  (eval $ac_link) 2>&5
10337  ac_status=$?
10338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10339  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10340    (./conftest; exit; ) >&5 2>/dev/null
10341    lt_status=$?
10342    case x$lt_status in
10343      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10344      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10345      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10346    esac
10347  else :
10348    # compilation failed
10349    lt_cv_dlopen_self_static=no
10350  fi
10351fi
10352rm -fr conftest*
10353
10354
10355fi
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10357$as_echo "$lt_cv_dlopen_self_static" >&6; }
10358    fi
10359
10360    CPPFLAGS="$save_CPPFLAGS"
10361    LDFLAGS="$save_LDFLAGS"
10362    LIBS="$save_LIBS"
10363    ;;
10364  esac
10365
10366  case $lt_cv_dlopen_self in
10367  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10368  *) enable_dlopen_self=unknown ;;
10369  esac
10370
10371  case $lt_cv_dlopen_self_static in
10372  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10373  *) enable_dlopen_self_static=unknown ;;
10374  esac
10375fi
10376
10377
10378# Report which library types will actually be built
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10380$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10382$as_echo "$can_build_shared" >&6; }
10383
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10385$as_echo_n "checking whether to build shared libraries... " >&6; }
10386test "$can_build_shared" = "no" && enable_shared=no
10387
10388# On AIX, shared libraries and static libraries use the same namespace, and
10389# are all built from PIC.
10390case $host_os in
10391aix3*)
10392  test "$enable_shared" = yes && enable_static=no
10393  if test -n "$RANLIB"; then
10394    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10395    postinstall_cmds='$RANLIB $lib'
10396  fi
10397  ;;
10398
10399aix4* | aix5*)
10400  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10401    test "$enable_shared" = yes && enable_static=no
10402  fi
10403    ;;
10404esac
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10406$as_echo "$enable_shared" >&6; }
10407
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10409$as_echo_n "checking whether to build static libraries... " >&6; }
10410# Make sure either enable_shared or enable_static is yes.
10411test "$enable_shared" = yes || enable_static=yes
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10413$as_echo "$enable_static" >&6; }
10414
10415# The else clause should only fire when bootstrapping the
10416# libtool distribution, otherwise you forgot to ship ltmain.sh
10417# with your package, and you will get complaints that there are
10418# no rules to generate ltmain.sh.
10419if test -f "$ltmain"; then
10420  # See if we are running on zsh, and set the options which allow our commands through
10421  # without removal of \ escapes.
10422  if test -n "${ZSH_VERSION+set}" ; then
10423    setopt NO_GLOB_SUBST
10424  fi
10425  # Now quote all the things that may contain metacharacters while being
10426  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10427  # variables and quote the copies for generation of the libtool script.
10428  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10429    SED SHELL STRIP \
10430    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10431    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10432    deplibs_check_method reload_flag reload_cmds need_locks \
10433    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10434    lt_cv_sys_global_symbol_to_c_name_address \
10435    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10436    old_postinstall_cmds old_postuninstall_cmds \
10437    compiler \
10438    CC \
10439    LD \
10440    lt_prog_compiler_wl \
10441    lt_prog_compiler_pic \
10442    lt_prog_compiler_static \
10443    lt_prog_compiler_no_builtin_flag \
10444    export_dynamic_flag_spec \
10445    thread_safe_flag_spec \
10446    whole_archive_flag_spec \
10447    enable_shared_with_static_runtimes \
10448    old_archive_cmds \
10449    old_archive_from_new_cmds \
10450    predep_objects \
10451    postdep_objects \
10452    predeps \
10453    postdeps \
10454    compiler_lib_search_path \
10455    archive_cmds \
10456    archive_expsym_cmds \
10457    postinstall_cmds \
10458    postuninstall_cmds \
10459    old_archive_from_expsyms_cmds \
10460    allow_undefined_flag \
10461    no_undefined_flag \
10462    export_symbols_cmds \
10463    hardcode_libdir_flag_spec \
10464    hardcode_libdir_flag_spec_ld \
10465    hardcode_libdir_separator \
10466    hardcode_automatic \
10467    module_cmds \
10468    module_expsym_cmds \
10469    lt_cv_prog_compiler_c_o \
10470    exclude_expsyms \
10471    include_expsyms; do
10472
10473    case $var in
10474    old_archive_cmds | \
10475    old_archive_from_new_cmds | \
10476    archive_cmds | \
10477    archive_expsym_cmds | \
10478    module_cmds | \
10479    module_expsym_cmds | \
10480    old_archive_from_expsyms_cmds | \
10481    export_symbols_cmds | \
10482    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10483    postinstall_cmds | postuninstall_cmds | \
10484    old_postinstall_cmds | old_postuninstall_cmds | \
10485    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10486      # Double-quote double-evaled strings.
10487      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10488      ;;
10489    *)
10490      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10491      ;;
10492    esac
10493  done
10494
10495  case $lt_echo in
10496  *'\$0 --fallback-echo"')
10497    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10498    ;;
10499  esac
10500
10501cfgfile="${ofile}T"
10502  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10503  $rm -f "$cfgfile"
10504  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10505$as_echo "$as_me: creating $ofile" >&6;}
10506
10507  cat <<__EOF__ >> "$cfgfile"
10508#! $SHELL
10509
10510# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10511# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10512# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10513#
10514# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10515# Free Software Foundation, Inc.
10516#
10517# This file is part of GNU Libtool:
10518# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10519#
10520# This program is free software; you can redistribute it and/or modify
10521# it under the terms of the GNU General Public License as published by
10522# the Free Software Foundation; either version 2 of the License, or
10523# (at your option) any later version.
10524#
10525# This program is distributed in the hope that it will be useful, but
10526# WITHOUT ANY WARRANTY; without even the implied warranty of
10527# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10528# General Public License for more details.
10529#
10530# You should have received a copy of the GNU General Public License
10531# along with this program; if not, write to the Free Software
10532# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10533#
10534# As a special exception to the GNU General Public License, if you
10535# distribute this file as part of a program that contains a
10536# configuration script generated by Autoconf, you may include it under
10537# the same distribution terms that you use for the rest of that program.
10538
10539# A sed program that does not truncate output.
10540SED=$lt_SED
10541
10542# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10543Xsed="$SED -e 1s/^X//"
10544
10545# The HP-UX ksh and POSIX shell print the target directory to stdout
10546# if CDPATH is set.
10547(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10548
10549# The names of the tagged configurations supported by this script.
10550available_tags=
10551
10552# ### BEGIN LIBTOOL CONFIG
10553
10554# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10555
10556# Shell to use when invoking shell scripts.
10557SHELL=$lt_SHELL
10558
10559# Whether or not to build shared libraries.
10560build_libtool_libs=$enable_shared
10561
10562# Whether or not to build static libraries.
10563build_old_libs=$enable_static
10564
10565# Whether or not to add -lc for building shared libraries.
10566build_libtool_need_lc=$archive_cmds_need_lc
10567
10568# Whether or not to disallow shared libs when runtime libs are static
10569allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10570
10571# Whether or not to optimize for fast installation.
10572fast_install=$enable_fast_install
10573
10574# The host system.
10575host_alias=$host_alias
10576host=$host
10577host_os=$host_os
10578
10579# The build system.
10580build_alias=$build_alias
10581build=$build
10582build_os=$build_os
10583
10584# An echo program that does not interpret backslashes.
10585echo=$lt_echo
10586
10587# The archiver.
10588AR=$lt_AR
10589AR_FLAGS=$lt_AR_FLAGS
10590
10591# A C compiler.
10592LTCC=$lt_LTCC
10593
10594# LTCC compiler flags.
10595LTCFLAGS=$lt_LTCFLAGS
10596
10597# A language-specific compiler.
10598CC=$lt_compiler
10599
10600# Is the compiler the GNU C compiler?
10601with_gcc=$GCC
10602
10603# An ERE matcher.
10604EGREP=$lt_EGREP
10605
10606# The linker used to build libraries.
10607LD=$lt_LD
10608
10609# Whether we need hard or soft links.
10610LN_S=$lt_LN_S
10611
10612# A BSD-compatible nm program.
10613NM=$lt_NM
10614
10615# A symbol stripping program
10616STRIP=$lt_STRIP
10617
10618# Used to examine libraries when file_magic_cmd begins "file"
10619MAGIC_CMD=$MAGIC_CMD
10620
10621# Used on cygwin: DLL creation program.
10622DLLTOOL="$DLLTOOL"
10623
10624# Used on cygwin: object dumper.
10625OBJDUMP="$OBJDUMP"
10626
10627# Used on cygwin: assembler.
10628AS="$AS"
10629
10630# The name of the directory that contains temporary libtool files.
10631objdir=$objdir
10632
10633# How to create reloadable object files.
10634reload_flag=$lt_reload_flag
10635reload_cmds=$lt_reload_cmds
10636
10637# How to pass a linker flag through the compiler.
10638wl=$lt_lt_prog_compiler_wl
10639
10640# Object file suffix (normally "o").
10641objext="$ac_objext"
10642
10643# Old archive suffix (normally "a").
10644libext="$libext"
10645
10646# Shared library suffix (normally ".so").
10647shrext_cmds='$shrext_cmds'
10648
10649# Executable file suffix (normally "").
10650exeext="$exeext"
10651
10652# Additional compiler flags for building library objects.
10653pic_flag=$lt_lt_prog_compiler_pic
10654pic_mode=$pic_mode
10655
10656# What is the maximum length of a command?
10657max_cmd_len=$lt_cv_sys_max_cmd_len
10658
10659# Does compiler simultaneously support -c and -o options?
10660compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10661
10662# Must we lock files when doing compilation?
10663need_locks=$lt_need_locks
10664
10665# Do we need the lib prefix for modules?
10666need_lib_prefix=$need_lib_prefix
10667
10668# Do we need a version for libraries?
10669need_version=$need_version
10670
10671# Whether dlopen is supported.
10672dlopen_support=$enable_dlopen
10673
10674# Whether dlopen of programs is supported.
10675dlopen_self=$enable_dlopen_self
10676
10677# Whether dlopen of statically linked programs is supported.
10678dlopen_self_static=$enable_dlopen_self_static
10679
10680# Compiler flag to prevent dynamic linking.
10681link_static_flag=$lt_lt_prog_compiler_static
10682
10683# Compiler flag to turn off builtin functions.
10684no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10685
10686# Compiler flag to allow reflexive dlopens.
10687export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10688
10689# Compiler flag to generate shared objects directly from archives.
10690whole_archive_flag_spec=$lt_whole_archive_flag_spec
10691
10692# Compiler flag to generate thread-safe objects.
10693thread_safe_flag_spec=$lt_thread_safe_flag_spec
10694
10695# Library versioning type.
10696version_type=$version_type
10697
10698# Format of library name prefix.
10699libname_spec=$lt_libname_spec
10700
10701# List of archive names.  First name is the real one, the rest are links.
10702# The last name is the one that the linker finds with -lNAME.
10703library_names_spec=$lt_library_names_spec
10704
10705# The coded name of the library, if different from the real name.
10706soname_spec=$lt_soname_spec
10707
10708# Commands used to build and install an old-style archive.
10709RANLIB=$lt_RANLIB
10710old_archive_cmds=$lt_old_archive_cmds
10711old_postinstall_cmds=$lt_old_postinstall_cmds
10712old_postuninstall_cmds=$lt_old_postuninstall_cmds
10713
10714# Create an old-style archive from a shared archive.
10715old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10716
10717# Create a temporary old-style archive to link instead of a shared archive.
10718old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10719
10720# Commands used to build and install a shared archive.
10721archive_cmds=$lt_archive_cmds
10722archive_expsym_cmds=$lt_archive_expsym_cmds
10723postinstall_cmds=$lt_postinstall_cmds
10724postuninstall_cmds=$lt_postuninstall_cmds
10725
10726# Commands used to build a loadable module (assumed same as above if empty)
10727module_cmds=$lt_module_cmds
10728module_expsym_cmds=$lt_module_expsym_cmds
10729
10730# Commands to strip libraries.
10731old_striplib=$lt_old_striplib
10732striplib=$lt_striplib
10733
10734# Dependencies to place before the objects being linked to create a
10735# shared library.
10736predep_objects=$lt_predep_objects
10737
10738# Dependencies to place after the objects being linked to create a
10739# shared library.
10740postdep_objects=$lt_postdep_objects
10741
10742# Dependencies to place before the objects being linked to create a
10743# shared library.
10744predeps=$lt_predeps
10745
10746# Dependencies to place after the objects being linked to create a
10747# shared library.
10748postdeps=$lt_postdeps
10749
10750# The library search path used internally by the compiler when linking
10751# a shared library.
10752compiler_lib_search_path=$lt_compiler_lib_search_path
10753
10754# Method to check whether dependent libraries are shared objects.
10755deplibs_check_method=$lt_deplibs_check_method
10756
10757# Command to use when deplibs_check_method == file_magic.
10758file_magic_cmd=$lt_file_magic_cmd
10759
10760# Flag that allows shared libraries with undefined symbols to be built.
10761allow_undefined_flag=$lt_allow_undefined_flag
10762
10763# Flag that forces no undefined symbols.
10764no_undefined_flag=$lt_no_undefined_flag
10765
10766# Commands used to finish a libtool library installation in a directory.
10767finish_cmds=$lt_finish_cmds
10768
10769# Same as above, but a single script fragment to be evaled but not shown.
10770finish_eval=$lt_finish_eval
10771
10772# Take the output of nm and produce a listing of raw symbols and C names.
10773global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10774
10775# Transform the output of nm in a proper C declaration
10776global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10777
10778# Transform the output of nm in a C name address pair
10779global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10780
10781# This is the shared library runtime path variable.
10782runpath_var=$runpath_var
10783
10784# This is the shared library path variable.
10785shlibpath_var=$shlibpath_var
10786
10787# Is shlibpath searched before the hard-coded library search path?
10788shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10789
10790# How to hardcode a shared library path into an executable.
10791hardcode_action=$hardcode_action
10792
10793# Whether we should hardcode library paths into libraries.
10794hardcode_into_libs=$hardcode_into_libs
10795
10796# Flag to hardcode \$libdir into a binary during linking.
10797# This must work even if \$libdir does not exist.
10798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10799
10800# If ld is used when linking, flag to hardcode \$libdir into
10801# a binary during linking. This must work even if \$libdir does
10802# not exist.
10803hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10804
10805# Whether we need a single -rpath flag with a separated argument.
10806hardcode_libdir_separator=$lt_hardcode_libdir_separator
10807
10808# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10809# resulting binary.
10810hardcode_direct=$hardcode_direct
10811
10812# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10813# resulting binary.
10814hardcode_minus_L=$hardcode_minus_L
10815
10816# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10817# the resulting binary.
10818hardcode_shlibpath_var=$hardcode_shlibpath_var
10819
10820# Set to yes if building a shared library automatically hardcodes DIR into the library
10821# and all subsequent libraries and executables linked against it.
10822hardcode_automatic=$hardcode_automatic
10823
10824# Variables whose values should be saved in libtool wrapper scripts and
10825# restored at relink time.
10826variables_saved_for_relink="$variables_saved_for_relink"
10827
10828# Whether libtool must link a program against all its dependency libraries.
10829link_all_deplibs=$link_all_deplibs
10830
10831# Compile-time system search path for libraries
10832sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10833
10834# Run-time system search path for libraries
10835sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10836
10837# Fix the shell variable \$srcfile for the compiler.
10838fix_srcfile_path="$fix_srcfile_path"
10839
10840# Set to yes if exported symbols are required.
10841always_export_symbols=$always_export_symbols
10842
10843# The commands to list exported symbols.
10844export_symbols_cmds=$lt_export_symbols_cmds
10845
10846# The commands to extract the exported symbol list from a shared archive.
10847extract_expsyms_cmds=$lt_extract_expsyms_cmds
10848
10849# Symbols that should not be listed in the preloaded symbols.
10850exclude_expsyms=$lt_exclude_expsyms
10851
10852# Symbols that must always be exported.
10853include_expsyms=$lt_include_expsyms
10854
10855# ### END LIBTOOL CONFIG
10856
10857__EOF__
10858
10859
10860  case $host_os in
10861  aix3*)
10862    cat <<\EOF >> "$cfgfile"
10863
10864# AIX sometimes has problems with the GCC collect2 program.  For some
10865# reason, if we set the COLLECT_NAMES environment variable, the problems
10866# vanish in a puff of smoke.
10867if test "X${COLLECT_NAMES+set}" != Xset; then
10868  COLLECT_NAMES=
10869  export COLLECT_NAMES
10870fi
10871EOF
10872    ;;
10873  esac
10874
10875  # We use sed instead of cat because bash on DJGPP gets confused if
10876  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10877  # text mode, it properly converts lines to CR/LF.  This bash problem
10878  # is reportedly fixed, but why not run on old versions too?
10879  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10880
10881  mv -f "$cfgfile" "$ofile" || \
10882    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10883  chmod +x "$ofile"
10884
10885else
10886  # If there is no Makefile yet, we rely on a make rule to execute
10887  # `config.status --recheck' to rerun these tests and create the
10888  # libtool script then.
10889  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10890  if test -f "$ltmain_in"; then
10891    test -f Makefile && make "$ltmain"
10892  fi
10893fi
10894
10895
10896ac_ext=c
10897ac_cpp='$CPP $CPPFLAGS'
10898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900ac_compiler_gnu=$ac_cv_c_compiler_gnu
10901
10902CC="$lt_save_CC"
10903
10904
10905# Check whether --with-tags was given.
10906if test "${with_tags+set}" = set; then :
10907  withval=$with_tags; tagnames="$withval"
10908fi
10909
10910
10911if test -f "$ltmain" && test -n "$tagnames"; then
10912  if test ! -f "${ofile}"; then
10913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10914$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10915  fi
10916
10917  if test -z "$LTCC"; then
10918    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10919    if test -z "$LTCC"; then
10920      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10921$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10922    else
10923      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10924$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10925    fi
10926  fi
10927  if test -z "$LTCFLAGS"; then
10928    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10929  fi
10930
10931  # Extract list of available tagged configurations in $ofile.
10932  # Note that this assumes the entire list is on one line.
10933  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10934
10935  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10936  for tagname in $tagnames; do
10937    IFS="$lt_save_ifs"
10938    # Check whether tagname contains only valid characters
10939    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10940    "") ;;
10941    *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10942	;;
10943    esac
10944
10945    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10946    then
10947      as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10948    fi
10949
10950    # Update the list of available tags.
10951    if test -n "$tagname"; then
10952      echo appending configuration tag \"$tagname\" to $ofile
10953
10954      case $tagname in
10955      CXX)
10956	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10957	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10958	    (test "X$CXX" != "Xg++"))) ; then
10959	  ac_ext=cpp
10960ac_cpp='$CXXCPP $CPPFLAGS'
10961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10964
10965
10966
10967
10968archive_cmds_need_lc_CXX=no
10969allow_undefined_flag_CXX=
10970always_export_symbols_CXX=no
10971archive_expsym_cmds_CXX=
10972export_dynamic_flag_spec_CXX=
10973hardcode_direct_CXX=no
10974hardcode_libdir_flag_spec_CXX=
10975hardcode_libdir_flag_spec_ld_CXX=
10976hardcode_libdir_separator_CXX=
10977hardcode_minus_L_CXX=no
10978hardcode_shlibpath_var_CXX=unsupported
10979hardcode_automatic_CXX=no
10980module_cmds_CXX=
10981module_expsym_cmds_CXX=
10982link_all_deplibs_CXX=unknown
10983old_archive_cmds_CXX=$old_archive_cmds
10984no_undefined_flag_CXX=
10985whole_archive_flag_spec_CXX=
10986enable_shared_with_static_runtimes_CXX=no
10987
10988# Dependencies to place before and after the object being linked:
10989predep_objects_CXX=
10990postdep_objects_CXX=
10991predeps_CXX=
10992postdeps_CXX=
10993compiler_lib_search_path_CXX=
10994
10995# Source file extension for C++ test sources.
10996ac_ext=cpp
10997
10998# Object file extension for compiled C++ test sources.
10999objext=o
11000objext_CXX=$objext
11001
11002# Code to be used in simple compile tests
11003lt_simple_compile_test_code="int some_variable = 0;\n"
11004
11005# Code to be used in simple link tests
11006lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11007
11008# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11009
11010# If no C compiler was specified, use CC.
11011LTCC=${LTCC-"$CC"}
11012
11013# If no C compiler flags were specified, use CFLAGS.
11014LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11015
11016# Allow CC to be a program name with arguments.
11017compiler=$CC
11018
11019
11020# save warnings/boilerplate of simple test code
11021ac_outfile=conftest.$ac_objext
11022printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11023eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11024_lt_compiler_boilerplate=`cat conftest.err`
11025$rm conftest*
11026
11027ac_outfile=conftest.$ac_objext
11028printf "$lt_simple_link_test_code" >conftest.$ac_ext
11029eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11030_lt_linker_boilerplate=`cat conftest.err`
11031$rm conftest*
11032
11033
11034# Allow CC to be a program name with arguments.
11035lt_save_CC=$CC
11036lt_save_LD=$LD
11037lt_save_GCC=$GCC
11038GCC=$GXX
11039lt_save_with_gnu_ld=$with_gnu_ld
11040lt_save_path_LD=$lt_cv_path_LD
11041if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11042  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11043else
11044  $as_unset lt_cv_prog_gnu_ld
11045fi
11046if test -n "${lt_cv_path_LDCXX+set}"; then
11047  lt_cv_path_LD=$lt_cv_path_LDCXX
11048else
11049  $as_unset lt_cv_path_LD
11050fi
11051test -z "${LDCXX+set}" || LD=$LDCXX
11052CC=${CXX-"c++"}
11053compiler=$CC
11054compiler_CXX=$CC
11055for cc_temp in $compiler""; do
11056  case $cc_temp in
11057    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11058    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11059    \-*) ;;
11060    *) break;;
11061  esac
11062done
11063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11064
11065
11066# We don't want -fno-exception wen compiling C++ code, so set the
11067# no_builtin_flag separately
11068if test "$GXX" = yes; then
11069  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11070else
11071  lt_prog_compiler_no_builtin_flag_CXX=
11072fi
11073
11074if test "$GXX" = yes; then
11075  # Set up default GNU C++ configuration
11076
11077
11078# Check whether --with-gnu-ld was given.
11079if test "${with_gnu_ld+set}" = set; then :
11080  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11081else
11082  with_gnu_ld=no
11083fi
11084
11085ac_prog=ld
11086if test "$GCC" = yes; then
11087  # Check if gcc -print-prog-name=ld gives a path.
11088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11089$as_echo_n "checking for ld used by $CC... " >&6; }
11090  case $host in
11091  *-*-mingw*)
11092    # gcc leaves a trailing carriage return which upsets mingw
11093    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11094  *)
11095    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11096  esac
11097  case $ac_prog in
11098    # Accept absolute paths.
11099    [\\/]* | ?:[\\/]*)
11100      re_direlt='/[^/][^/]*/\.\./'
11101      # Canonicalize the pathname of ld
11102      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11103      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11104	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11105      done
11106      test -z "$LD" && LD="$ac_prog"
11107      ;;
11108  "")
11109    # If it fails, then pretend we aren't using GCC.
11110    ac_prog=ld
11111    ;;
11112  *)
11113    # If it is relative, then search for the first ld in PATH.
11114    with_gnu_ld=unknown
11115    ;;
11116  esac
11117elif test "$with_gnu_ld" = yes; then
11118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11119$as_echo_n "checking for GNU ld... " >&6; }
11120else
11121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11122$as_echo_n "checking for non-GNU ld... " >&6; }
11123fi
11124if ${lt_cv_path_LD+:} false; then :
11125  $as_echo_n "(cached) " >&6
11126else
11127  if test -z "$LD"; then
11128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11129  for ac_dir in $PATH; do
11130    IFS="$lt_save_ifs"
11131    test -z "$ac_dir" && ac_dir=.
11132    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11133      lt_cv_path_LD="$ac_dir/$ac_prog"
11134      # Check to see if the program is GNU ld.  I'd rather use --version,
11135      # but apparently some variants of GNU ld only accept -v.
11136      # Break only if it was the GNU/non-GNU ld that we prefer.
11137      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11138      *GNU* | *'with BFD'*)
11139	test "$with_gnu_ld" != no && break
11140	;;
11141      *)
11142	test "$with_gnu_ld" != yes && break
11143	;;
11144      esac
11145    fi
11146  done
11147  IFS="$lt_save_ifs"
11148else
11149  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11150fi
11151fi
11152
11153LD="$lt_cv_path_LD"
11154if test -n "$LD"; then
11155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11156$as_echo "$LD" >&6; }
11157else
11158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159$as_echo "no" >&6; }
11160fi
11161test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11163$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11164if ${lt_cv_prog_gnu_ld+:} false; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11168case `$LD -v 2>&1 </dev/null` in
11169*GNU* | *'with BFD'*)
11170  lt_cv_prog_gnu_ld=yes
11171  ;;
11172*)
11173  lt_cv_prog_gnu_ld=no
11174  ;;
11175esac
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11178$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11179with_gnu_ld=$lt_cv_prog_gnu_ld
11180
11181
11182
11183  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11184  # archiving commands below assume that GNU ld is being used.
11185  if test "$with_gnu_ld" = yes; then
11186    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11187    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'
11188
11189    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11190    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11191
11192    # If archive_cmds runs LD, not CC, wlarc should be empty
11193    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11194    #     investigate it a little bit more. (MM)
11195    wlarc='${wl}'
11196
11197    # ancient GNU ld didn't support --whole-archive et. al.
11198    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11199	grep 'no-whole-archive' > /dev/null; then
11200      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11201    else
11202      whole_archive_flag_spec_CXX=
11203    fi
11204  else
11205    with_gnu_ld=no
11206    wlarc=
11207
11208    # A generic and very simple default shared library creation
11209    # command for GNU C++ for the case where it uses the native
11210    # linker, instead of GNU ld.  If possible, this setting should
11211    # overridden to take advantage of the native linker features on
11212    # the platform it is being used on.
11213    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11214  fi
11215
11216  # Commands to make compiler produce verbose output that lists
11217  # what "hidden" libraries, object files and flags are used when
11218  # linking a shared library.
11219  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11220
11221else
11222  GXX=no
11223  with_gnu_ld=no
11224  wlarc=
11225fi
11226
11227# PORTME: fill in a description of your system's C++ link characteristics
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11229$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11230ld_shlibs_CXX=yes
11231case $host_os in
11232  aix3*)
11233    # FIXME: insert proper C++ library support
11234    ld_shlibs_CXX=no
11235    ;;
11236  aix4* | aix5*)
11237    if test "$host_cpu" = ia64; then
11238      # On IA64, the linker does run time linking by default, so we don't
11239      # have to do anything special.
11240      aix_use_runtimelinking=no
11241      exp_sym_flag='-Bexport'
11242      no_entry_flag=""
11243    else
11244      aix_use_runtimelinking=no
11245
11246      # Test if we are trying to use run time linking or normal
11247      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11248      # need to do runtime linking.
11249      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11250	for ld_flag in $LDFLAGS; do
11251	  case $ld_flag in
11252	  *-brtl*)
11253	    aix_use_runtimelinking=yes
11254	    break
11255	    ;;
11256	  esac
11257	done
11258	;;
11259      esac
11260
11261      exp_sym_flag='-bexport'
11262      no_entry_flag='-bnoentry'
11263    fi
11264
11265    # When large executables or shared objects are built, AIX ld can
11266    # have problems creating the table of contents.  If linking a library
11267    # or program results in "error TOC overflow" add -mminimal-toc to
11268    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11269    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11270
11271    archive_cmds_CXX=''
11272    hardcode_direct_CXX=yes
11273    hardcode_libdir_separator_CXX=':'
11274    link_all_deplibs_CXX=yes
11275
11276    if test "$GXX" = yes; then
11277      case $host_os in aix4.[012]|aix4.[012].*)
11278      # We only want to do this on AIX 4.2 and lower, the check
11279      # below for broken collect2 doesn't work under 4.3+
11280	collect2name=`${CC} -print-prog-name=collect2`
11281	if test -f "$collect2name" && \
11282	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11283	then
11284	  # We have reworked collect2
11285	  hardcode_direct_CXX=yes
11286	else
11287	  # We have old collect2
11288	  hardcode_direct_CXX=unsupported
11289	  # It fails to find uninstalled libraries when the uninstalled
11290	  # path is not listed in the libpath.  Setting hardcode_minus_L
11291	  # to unsupported forces relinking
11292	  hardcode_minus_L_CXX=yes
11293	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11294	  hardcode_libdir_separator_CXX=
11295	fi
11296	;;
11297      esac
11298      shared_flag='-shared'
11299      if test "$aix_use_runtimelinking" = yes; then
11300	shared_flag="$shared_flag "'${wl}-G'
11301      fi
11302    else
11303      # not using gcc
11304      if test "$host_cpu" = ia64; then
11305	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11306	# chokes on -Wl,-G. The following line is correct:
11307	shared_flag='-G'
11308      else
11309	if test "$aix_use_runtimelinking" = yes; then
11310	  shared_flag='${wl}-G'
11311	else
11312	  shared_flag='${wl}-bM:SRE'
11313	fi
11314      fi
11315    fi
11316
11317    # It seems that -bexpall does not export symbols beginning with
11318    # underscore (_), so it is better to generate a list of symbols to export.
11319    always_export_symbols_CXX=yes
11320    if test "$aix_use_runtimelinking" = yes; then
11321      # Warning - without using the other runtime loading flags (-brtl),
11322      # -berok will link without error, but may produce a broken library.
11323      allow_undefined_flag_CXX='-berok'
11324      # Determine the default libpath from the value encoded in an empty executable.
11325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326/* end confdefs.h.  */
11327
11328int
11329main ()
11330{
11331
11332  ;
11333  return 0;
11334}
11335_ACEOF
11336if ac_fn_cxx_try_link "$LINENO"; then :
11337
11338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11339}'`
11340# Check for a 64-bit object if we didn't find anything.
11341if 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; }
11342}'`; fi
11343fi
11344rm -f core conftest.err conftest.$ac_objext \
11345    conftest$ac_exeext conftest.$ac_ext
11346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11347
11348      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11349
11350      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11351     else
11352      if test "$host_cpu" = ia64; then
11353	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11354	allow_undefined_flag_CXX="-z nodefs"
11355	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11356      else
11357	# Determine the default libpath from the value encoded in an empty executable.
11358	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h.  */
11360
11361int
11362main ()
11363{
11364
11365  ;
11366  return 0;
11367}
11368_ACEOF
11369if ac_fn_cxx_try_link "$LINENO"; then :
11370
11371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11372}'`
11373# Check for a 64-bit object if we didn't find anything.
11374if 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; }
11375}'`; fi
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378    conftest$ac_exeext conftest.$ac_ext
11379if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11380
11381	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11382	# Warning - without using the other run time loading flags,
11383	# -berok will link without error, but may produce a broken library.
11384	no_undefined_flag_CXX=' ${wl}-bernotok'
11385	allow_undefined_flag_CXX=' ${wl}-berok'
11386	# Exported symbols can be pulled into shared objects from archives
11387	whole_archive_flag_spec_CXX='$convenience'
11388	archive_cmds_need_lc_CXX=yes
11389	# This is similar to how AIX traditionally builds its shared libraries.
11390	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11391      fi
11392    fi
11393    ;;
11394
11395  beos*)
11396    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11397      allow_undefined_flag_CXX=unsupported
11398      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11399      # support --undefined.  This deserves some investigation.  FIXME
11400      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11401    else
11402      ld_shlibs_CXX=no
11403    fi
11404    ;;
11405
11406  chorus*)
11407    case $cc_basename in
11408      *)
11409	# FIXME: insert proper C++ library support
11410	ld_shlibs_CXX=no
11411	;;
11412    esac
11413    ;;
11414
11415  cygwin* | mingw* | pw32*)
11416    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11417    # as there is no search path for DLLs.
11418    hardcode_libdir_flag_spec_CXX='-L$libdir'
11419    allow_undefined_flag_CXX=unsupported
11420    always_export_symbols_CXX=no
11421    enable_shared_with_static_runtimes_CXX=yes
11422
11423    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11424      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11425      # If the export-symbols file already is a .def file (1st line
11426      # is EXPORTS), use it as is; otherwise, prepend...
11427      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11428	cp $export_symbols $output_objdir/$soname.def;
11429      else
11430	echo EXPORTS > $output_objdir/$soname.def;
11431	cat $export_symbols >> $output_objdir/$soname.def;
11432      fi~
11433      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11434    else
11435      ld_shlibs_CXX=no
11436    fi
11437  ;;
11438      darwin* | rhapsody*)
11439        case $host_os in
11440        rhapsody* | darwin1.[012])
11441         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11442         ;;
11443       *) # Darwin 1.3 on
11444         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11445           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11446         else
11447           case ${MACOSX_DEPLOYMENT_TARGET} in
11448             10.[012])
11449               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11450               ;;
11451             10.*)
11452               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11453               ;;
11454           esac
11455         fi
11456         ;;
11457        esac
11458      archive_cmds_need_lc_CXX=no
11459      hardcode_direct_CXX=no
11460      hardcode_automatic_CXX=yes
11461      hardcode_shlibpath_var_CXX=unsupported
11462      whole_archive_flag_spec_CXX=''
11463      link_all_deplibs_CXX=yes
11464
11465    if test "$GXX" = yes ; then
11466      lt_int_apple_cc_single_mod=no
11467      output_verbose_link_cmd='echo'
11468      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11469       lt_int_apple_cc_single_mod=yes
11470      fi
11471      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11472       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11473      else
11474          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11475        fi
11476        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11477        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11478          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11479            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}'
11480          else
11481            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11482          fi
11483            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}'
11484      else
11485      case $cc_basename in
11486        xlc*)
11487         output_verbose_link_cmd='echo'
11488          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11489          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11490          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11491          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11492          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}'
11493          ;;
11494       *)
11495         ld_shlibs_CXX=no
11496          ;;
11497      esac
11498      fi
11499        ;;
11500
11501  dgux*)
11502    case $cc_basename in
11503      ec++*)
11504	# FIXME: insert proper C++ library support
11505	ld_shlibs_CXX=no
11506	;;
11507      ghcx*)
11508	# Green Hills C++ Compiler
11509	# FIXME: insert proper C++ library support
11510	ld_shlibs_CXX=no
11511	;;
11512      *)
11513	# FIXME: insert proper C++ library support
11514	ld_shlibs_CXX=no
11515	;;
11516    esac
11517    ;;
11518  freebsd[12]*)
11519    # C++ shared libraries reported to be fairly broken before switch to ELF
11520    ld_shlibs_CXX=no
11521    ;;
11522  freebsd-elf*)
11523    archive_cmds_need_lc_CXX=no
11524    ;;
11525  freebsd* | kfreebsd*-gnu | dragonfly*)
11526    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11527    # conventions
11528    ld_shlibs_CXX=yes
11529    ;;
11530  gnu*)
11531    ;;
11532  hpux9*)
11533    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11534    hardcode_libdir_separator_CXX=:
11535    export_dynamic_flag_spec_CXX='${wl}-E'
11536    hardcode_direct_CXX=yes
11537    hardcode_minus_L_CXX=yes # Not in the search PATH,
11538				# but as the default
11539				# location of the library.
11540
11541    case $cc_basename in
11542    CC*)
11543      # FIXME: insert proper C++ library support
11544      ld_shlibs_CXX=no
11545      ;;
11546    aCC*)
11547      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'
11548      # Commands to make compiler produce verbose output that lists
11549      # what "hidden" libraries, object files and flags are used when
11550      # linking a shared library.
11551      #
11552      # There doesn't appear to be a way to prevent this compiler from
11553      # explicitly linking system object files so we need to strip them
11554      # from the output so that they don't get included in the library
11555      # dependencies.
11556      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'
11557      ;;
11558    *)
11559      if test "$GXX" = yes; then
11560        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'
11561      else
11562        # FIXME: insert proper C++ library support
11563        ld_shlibs_CXX=no
11564      fi
11565      ;;
11566    esac
11567    ;;
11568  hpux10*|hpux11*)
11569    if test $with_gnu_ld = no; then
11570      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11571      hardcode_libdir_separator_CXX=:
11572
11573      case $host_cpu in
11574      hppa*64*|ia64*)
11575	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11576        ;;
11577      *)
11578	export_dynamic_flag_spec_CXX='${wl}-E'
11579        ;;
11580      esac
11581    fi
11582    case $host_cpu in
11583    hppa*64*|ia64*)
11584      hardcode_direct_CXX=no
11585      hardcode_shlibpath_var_CXX=no
11586      ;;
11587    *)
11588      hardcode_direct_CXX=yes
11589      hardcode_minus_L_CXX=yes # Not in the search PATH,
11590					      # but as the default
11591					      # location of the library.
11592      ;;
11593    esac
11594
11595    case $cc_basename in
11596      CC*)
11597	# FIXME: insert proper C++ library support
11598	ld_shlibs_CXX=no
11599	;;
11600      aCC*)
11601	case $host_cpu in
11602	hppa*64*)
11603	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11604	  ;;
11605	ia64*)
11606	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11607	  ;;
11608	*)
11609	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11610	  ;;
11611	esac
11612	# Commands to make compiler produce verbose output that lists
11613	# what "hidden" libraries, object files and flags are used when
11614	# linking a shared library.
11615	#
11616	# There doesn't appear to be a way to prevent this compiler from
11617	# explicitly linking system object files so we need to strip them
11618	# from the output so that they don't get included in the library
11619	# dependencies.
11620	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'
11621	;;
11622      *)
11623	if test "$GXX" = yes; then
11624	  if test $with_gnu_ld = no; then
11625	    case $host_cpu in
11626	    hppa*64*)
11627	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11628	      ;;
11629	    ia64*)
11630	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11631	      ;;
11632	    *)
11633	      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'
11634	      ;;
11635	    esac
11636	  fi
11637	else
11638	  # FIXME: insert proper C++ library support
11639	  ld_shlibs_CXX=no
11640	fi
11641	;;
11642    esac
11643    ;;
11644  interix3*)
11645    hardcode_direct_CXX=no
11646    hardcode_shlibpath_var_CXX=no
11647    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11648    export_dynamic_flag_spec_CXX='${wl}-E'
11649    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11650    # Instead, shared libraries are loaded at an image base (0x10000000 by
11651    # default) and relocated if they conflict, which is a slow very memory
11652    # consuming and fragmenting process.  To avoid this, we pick a random,
11653    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11654    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11655    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11656    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11657    ;;
11658  irix5* | irix6*)
11659    case $cc_basename in
11660      CC*)
11661	# SGI C++
11662	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 ${output_objdir}/so_locations -o $lib'
11663
11664	# Archives containing C++ object files must be created using
11665	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11666	# necessary to make sure instantiated templates are included
11667	# in the archive.
11668	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11669	;;
11670      *)
11671	if test "$GXX" = yes; then
11672	  if test "$with_gnu_ld" = no; then
11673	    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}${output_objdir}/so_locations -o $lib'
11674	  else
11675	    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'
11676	  fi
11677	fi
11678	link_all_deplibs_CXX=yes
11679	;;
11680    esac
11681    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11682    hardcode_libdir_separator_CXX=:
11683    ;;
11684  linux*)
11685    case $cc_basename in
11686      KCC*)
11687	# Kuck and Associates, Inc. (KAI) C++ Compiler
11688
11689	# KCC will only create a shared library if the output file
11690	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11691	# to its proper name (with version) after linking.
11692	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'
11693	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'
11694	# Commands to make compiler produce verbose output that lists
11695	# what "hidden" libraries, object files and flags are used when
11696	# linking a shared library.
11697	#
11698	# There doesn't appear to be a way to prevent this compiler from
11699	# explicitly linking system object files so we need to strip them
11700	# from the output so that they don't get included in the library
11701	# dependencies.
11702	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'
11703
11704	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11705	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11706
11707	# Archives containing C++ object files must be created using
11708	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11709	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11710	;;
11711      icpc*)
11712	# Intel C++
11713	with_gnu_ld=yes
11714	# version 8.0 and above of icpc choke on multiply defined symbols
11715	# if we add $predep_objects and $postdep_objects, however 7.1 and
11716	# earlier do not add the objects themselves.
11717	case `$CC -V 2>&1` in
11718	*"Version 7."*)
11719  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11720  	  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'
11721	  ;;
11722	*)  # Version 8.0 or newer
11723	  tmp_idyn=
11724	  case $host_cpu in
11725	    ia64*) tmp_idyn=' -i_dynamic';;
11726	  esac
11727  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11728	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11729	  ;;
11730	esac
11731	archive_cmds_need_lc_CXX=no
11732	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11734	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11735	;;
11736      pgCC*)
11737        # Portland Group C++ compiler
11738	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11739  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11740
11741	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11742	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11743	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11744        ;;
11745      cxx*)
11746	# Compaq C++
11747	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11748	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'
11749
11750	runpath_var=LD_RUN_PATH
11751	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11752	hardcode_libdir_separator_CXX=:
11753
11754	# Commands to make compiler produce verbose output that lists
11755	# what "hidden" libraries, object files and flags are used when
11756	# linking a shared library.
11757	#
11758	# There doesn't appear to be a way to prevent this compiler from
11759	# explicitly linking system object files so we need to strip them
11760	# from the output so that they don't get included in the library
11761	# dependencies.
11762	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'
11763	;;
11764    esac
11765    ;;
11766  lynxos*)
11767    # FIXME: insert proper C++ library support
11768    ld_shlibs_CXX=no
11769    ;;
11770  m88k*)
11771    # FIXME: insert proper C++ library support
11772    ld_shlibs_CXX=no
11773    ;;
11774  mvs*)
11775    case $cc_basename in
11776      cxx*)
11777	# FIXME: insert proper C++ library support
11778	ld_shlibs_CXX=no
11779	;;
11780      *)
11781	# FIXME: insert proper C++ library support
11782	ld_shlibs_CXX=no
11783	;;
11784    esac
11785    ;;
11786  netbsd*)
11787    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11788      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11789      wlarc=
11790      hardcode_libdir_flag_spec_CXX='-R$libdir'
11791      hardcode_direct_CXX=yes
11792      hardcode_shlibpath_var_CXX=no
11793    fi
11794    # Workaround some broken pre-1.5 toolchains
11795    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11796    ;;
11797  openbsd2*)
11798    # C++ shared libraries are fairly broken
11799    ld_shlibs_CXX=no
11800    ;;
11801  openbsd*)
11802    hardcode_direct_CXX=yes
11803    hardcode_shlibpath_var_CXX=no
11804    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11805    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11807      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11808      export_dynamic_flag_spec_CXX='${wl}-E'
11809      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11810    fi
11811    output_verbose_link_cmd='echo'
11812    ;;
11813  osf3*)
11814    case $cc_basename in
11815      KCC*)
11816	# Kuck and Associates, Inc. (KAI) C++ Compiler
11817
11818	# KCC will only create a shared library if the output file
11819	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11820	# to its proper name (with version) after linking.
11821	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'
11822
11823	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11824	hardcode_libdir_separator_CXX=:
11825
11826	# Archives containing C++ object files must be created using
11827	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11828	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11829
11830	;;
11831      RCC*)
11832	# Rational C++ 2.4.1
11833	# FIXME: insert proper C++ library support
11834	ld_shlibs_CXX=no
11835	;;
11836      cxx*)
11837	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838	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 ${output_objdir}/so_locations -o $lib'
11839
11840	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841	hardcode_libdir_separator_CXX=:
11842
11843	# Commands to make compiler produce verbose output that lists
11844	# what "hidden" libraries, object files and flags are used when
11845	# linking a shared library.
11846	#
11847	# There doesn't appear to be a way to prevent this compiler from
11848	# explicitly linking system object files so we need to strip them
11849	# from the output so that they don't get included in the library
11850	# dependencies.
11851	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'
11852	;;
11853      *)
11854	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11855	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11856	  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}${output_objdir}/so_locations -o $lib'
11857
11858	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11859	  hardcode_libdir_separator_CXX=:
11860
11861	  # Commands to make compiler produce verbose output that lists
11862	  # what "hidden" libraries, object files and flags are used when
11863	  # linking a shared library.
11864	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11865
11866	else
11867	  # FIXME: insert proper C++ library support
11868	  ld_shlibs_CXX=no
11869	fi
11870	;;
11871    esac
11872    ;;
11873  osf4* | osf5*)
11874    case $cc_basename in
11875      KCC*)
11876	# Kuck and Associates, Inc. (KAI) C++ Compiler
11877
11878	# KCC will only create a shared library if the output file
11879	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11880	# to its proper name (with version) after linking.
11881	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'
11882
11883	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11884	hardcode_libdir_separator_CXX=:
11885
11886	# Archives containing C++ object files must be created using
11887	# the KAI C++ compiler.
11888	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11889	;;
11890      RCC*)
11891	# Rational C++ 2.4.1
11892	# FIXME: insert proper C++ library support
11893	ld_shlibs_CXX=no
11894	;;
11895      cxx*)
11896	allow_undefined_flag_CXX=' -expect_unresolved \*'
11897	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 ${output_objdir}/so_locations -o $lib'
11898	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11899	  echo "-hidden">> $lib.exp~
11900	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11901	  $rm $lib.exp'
11902
11903	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11904	hardcode_libdir_separator_CXX=:
11905
11906	# Commands to make compiler produce verbose output that lists
11907	# what "hidden" libraries, object files and flags are used when
11908	# linking a shared library.
11909	#
11910	# There doesn't appear to be a way to prevent this compiler from
11911	# explicitly linking system object files so we need to strip them
11912	# from the output so that they don't get included in the library
11913	# dependencies.
11914	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'
11915	;;
11916      *)
11917	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11918	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11919	 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}${output_objdir}/so_locations -o $lib'
11920
11921	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11922	  hardcode_libdir_separator_CXX=:
11923
11924	  # Commands to make compiler produce verbose output that lists
11925	  # what "hidden" libraries, object files and flags are used when
11926	  # linking a shared library.
11927	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11928
11929	else
11930	  # FIXME: insert proper C++ library support
11931	  ld_shlibs_CXX=no
11932	fi
11933	;;
11934    esac
11935    ;;
11936  psos*)
11937    # FIXME: insert proper C++ library support
11938    ld_shlibs_CXX=no
11939    ;;
11940  sunos4*)
11941    case $cc_basename in
11942      CC*)
11943	# Sun C++ 4.x
11944	# FIXME: insert proper C++ library support
11945	ld_shlibs_CXX=no
11946	;;
11947      lcc*)
11948	# Lucid
11949	# FIXME: insert proper C++ library support
11950	ld_shlibs_CXX=no
11951	;;
11952      *)
11953	# FIXME: insert proper C++ library support
11954	ld_shlibs_CXX=no
11955	;;
11956    esac
11957    ;;
11958  solaris*)
11959    case $cc_basename in
11960      CC*)
11961	# Sun C++ 4.2, 5.x and Centerline C++
11962        archive_cmds_need_lc_CXX=yes
11963	no_undefined_flag_CXX=' -zdefs'
11964	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11966	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11967
11968	hardcode_libdir_flag_spec_CXX='-R$libdir'
11969	hardcode_shlibpath_var_CXX=no
11970	case $host_os in
11971	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11972	  *)
11973	    # The C++ compiler is used as linker so we must use $wl
11974	    # flag to pass the commands to the underlying system
11975	    # linker. We must also pass each convience library through
11976	    # to the system linker between allextract/defaultextract.
11977	    # The C++ compiler will combine linker options so we
11978	    # cannot just pass the convience library names through
11979	    # without $wl.
11980	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11981	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11982	    ;;
11983	esac
11984	link_all_deplibs_CXX=yes
11985
11986	output_verbose_link_cmd='echo'
11987
11988	# Archives containing C++ object files must be created using
11989	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11990	# necessary to make sure instantiated templates are included
11991	# in the archive.
11992	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11993	;;
11994      gcx*)
11995	# Green Hills C++ Compiler
11996	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11997
11998	# The C++ compiler must be used to create the archive.
11999	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12000	;;
12001      *)
12002	# GNU C++ compiler with Solaris linker
12003	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12004	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12005	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12006	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12007	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12008		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12009
12010	    # Commands to make compiler produce verbose output that lists
12011	    # what "hidden" libraries, object files and flags are used when
12012	    # linking a shared library.
12013	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12014	  else
12015	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12016	    # platform.
12017	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12018	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12020
12021	    # Commands to make compiler produce verbose output that lists
12022	    # what "hidden" libraries, object files and flags are used when
12023	    # linking a shared library.
12024	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12025	  fi
12026
12027	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12028	fi
12029	;;
12030    esac
12031    ;;
12032  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12033    no_undefined_flag_CXX='${wl}-z,text'
12034    archive_cmds_need_lc_CXX=no
12035    hardcode_shlibpath_var_CXX=no
12036    runpath_var='LD_RUN_PATH'
12037
12038    case $cc_basename in
12039      CC*)
12040	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12041	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12042	;;
12043      *)
12044	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12045	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12046	;;
12047    esac
12048    ;;
12049  sysv5* | sco3.2v5* | sco5v6*)
12050    # Note: We can NOT use -z defs as we might desire, because we do not
12051    # link with -lc, and that would cause any symbols used from libc to
12052    # always be unresolved, which means just about no library would
12053    # ever link correctly.  If we're not using GNU ld we use -z text
12054    # though, which does catch some bad symbols but isn't as heavy-handed
12055    # as -z defs.
12056    # For security reasons, it is highly recommended that you always
12057    # use absolute paths for naming shared libraries, and exclude the
12058    # DT_RUNPATH tag from executables and libraries.  But doing so
12059    # requires that you compile everything twice, which is a pain.
12060    # So that behaviour is only enabled if SCOABSPATH is set to a
12061    # non-empty value in the environment.  Most likely only useful for
12062    # creating official distributions of packages.
12063    # This is a hack until libtool officially supports absolute path
12064    # names for shared libraries.
12065    no_undefined_flag_CXX='${wl}-z,text'
12066    allow_undefined_flag_CXX='${wl}-z,nodefs'
12067    archive_cmds_need_lc_CXX=no
12068    hardcode_shlibpath_var_CXX=no
12069    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12070    hardcode_libdir_separator_CXX=':'
12071    link_all_deplibs_CXX=yes
12072    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12073    runpath_var='LD_RUN_PATH'
12074
12075    case $cc_basename in
12076      CC*)
12077	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12078	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12079	;;
12080      *)
12081	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12082	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12083	;;
12084    esac
12085    ;;
12086  tandem*)
12087    case $cc_basename in
12088      NCC*)
12089	# NonStop-UX NCC 3.20
12090	# FIXME: insert proper C++ library support
12091	ld_shlibs_CXX=no
12092	;;
12093      *)
12094	# FIXME: insert proper C++ library support
12095	ld_shlibs_CXX=no
12096	;;
12097    esac
12098    ;;
12099  vxworks*)
12100    # FIXME: insert proper C++ library support
12101    ld_shlibs_CXX=no
12102    ;;
12103  *)
12104    # FIXME: insert proper C++ library support
12105    ld_shlibs_CXX=no
12106    ;;
12107esac
12108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12109$as_echo "$ld_shlibs_CXX" >&6; }
12110test "$ld_shlibs_CXX" = no && can_build_shared=no
12111
12112GCC_CXX="$GXX"
12113LD_CXX="$LD"
12114
12115
12116cat > conftest.$ac_ext <<EOF
12117class Foo
12118{
12119public:
12120  Foo (void) { a = 0; }
12121private:
12122  int a;
12123};
12124EOF
12125
12126if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12127  (eval $ac_compile) 2>&5
12128  ac_status=$?
12129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130  test $ac_status = 0; }; then
12131  # Parse the compiler output and extract the necessary
12132  # objects, libraries and library flags.
12133
12134  # Sentinel used to keep track of whether or not we are before
12135  # the conftest object file.
12136  pre_test_object_deps_done=no
12137
12138  # The `*' in the case matches for architectures that use `case' in
12139  # $output_verbose_cmd can trigger glob expansion during the loop
12140  # eval without this substitution.
12141  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12142
12143  for p in `eval $output_verbose_link_cmd`; do
12144    case $p in
12145
12146    -L* | -R* | -l*)
12147       # Some compilers place space between "-{L,R}" and the path.
12148       # Remove the space.
12149       if test $p = "-L" \
12150	  || test $p = "-R"; then
12151	 prev=$p
12152	 continue
12153       else
12154	 prev=
12155       fi
12156
12157       if test "$pre_test_object_deps_done" = no; then
12158	 case $p in
12159	 -L* | -R*)
12160	   # Internal compiler library paths should come after those
12161	   # provided the user.  The postdeps already come after the
12162	   # user supplied libs so there is no need to process them.
12163	   if test -z "$compiler_lib_search_path_CXX"; then
12164	     compiler_lib_search_path_CXX="${prev}${p}"
12165	   else
12166	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12167	   fi
12168	   ;;
12169	 # The "-l" case would never come before the object being
12170	 # linked, so don't bother handling this case.
12171	 esac
12172       else
12173	 if test -z "$postdeps_CXX"; then
12174	   postdeps_CXX="${prev}${p}"
12175	 else
12176	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12177	 fi
12178       fi
12179       ;;
12180
12181    *.$objext)
12182       # This assumes that the test object file only shows up
12183       # once in the compiler output.
12184       if test "$p" = "conftest.$objext"; then
12185	 pre_test_object_deps_done=yes
12186	 continue
12187       fi
12188
12189       if test "$pre_test_object_deps_done" = no; then
12190	 if test -z "$predep_objects_CXX"; then
12191	   predep_objects_CXX="$p"
12192	 else
12193	   predep_objects_CXX="$predep_objects_CXX $p"
12194	 fi
12195       else
12196	 if test -z "$postdep_objects_CXX"; then
12197	   postdep_objects_CXX="$p"
12198	 else
12199	   postdep_objects_CXX="$postdep_objects_CXX $p"
12200	 fi
12201       fi
12202       ;;
12203
12204    *) ;; # Ignore the rest.
12205
12206    esac
12207  done
12208
12209  # Clean up.
12210  rm -f a.out a.exe
12211else
12212  echo "libtool.m4: error: problem compiling CXX test program"
12213fi
12214
12215$rm -f confest.$objext
12216
12217# PORTME: override above test on systems where it is broken
12218case $host_os in
12219interix3*)
12220  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12221  # hack all around it, let's just trust "g++" to DTRT.
12222  predep_objects_CXX=
12223  postdep_objects_CXX=
12224  postdeps_CXX=
12225  ;;
12226
12227solaris*)
12228  case $cc_basename in
12229  CC*)
12230    # Adding this requires a known-good setup of shared libraries for
12231    # Sun compiler versions before 5.6, else PIC objects from an old
12232    # archive will be linked into the output, leading to subtle bugs.
12233    postdeps_CXX='-lCstd -lCrun'
12234    ;;
12235  esac
12236  ;;
12237esac
12238
12239
12240case " $postdeps_CXX " in
12241*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12242esac
12243
12244lt_prog_compiler_wl_CXX=
12245lt_prog_compiler_pic_CXX=
12246lt_prog_compiler_static_CXX=
12247
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12249$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12250
12251  # C++ specific cases for pic, static, wl, etc.
12252  if test "$GXX" = yes; then
12253    lt_prog_compiler_wl_CXX='-Wl,'
12254    lt_prog_compiler_static_CXX='-static'
12255
12256    case $host_os in
12257    aix*)
12258      # All AIX code is PIC.
12259      if test "$host_cpu" = ia64; then
12260	# AIX 5 now supports IA64 processor
12261	lt_prog_compiler_static_CXX='-Bstatic'
12262      fi
12263      ;;
12264    amigaos*)
12265      # FIXME: we need at least 68020 code to build shared libraries, but
12266      # adding the `-m68020' flag to GCC prevents building anything better,
12267      # like `-m68040'.
12268      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12269      ;;
12270    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12271      # PIC is the default for these OSes.
12272      ;;
12273    mingw* | os2* | pw32*)
12274      # This hack is so that the source file can tell whether it is being
12275      # built for inclusion in a dll (and should export symbols for example).
12276      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12277      ;;
12278    darwin* | rhapsody*)
12279      # PIC is the default on this platform
12280      # Common symbols not allowed in MH_DYLIB files
12281      lt_prog_compiler_pic_CXX='-fno-common'
12282      ;;
12283    *djgpp*)
12284      # DJGPP does not support shared libraries at all
12285      lt_prog_compiler_pic_CXX=
12286      ;;
12287    interix3*)
12288      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12289      # Instead, we relocate shared libraries at runtime.
12290      ;;
12291    sysv4*MP*)
12292      if test -d /usr/nec; then
12293	lt_prog_compiler_pic_CXX=-Kconform_pic
12294      fi
12295      ;;
12296    hpux*)
12297      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12298      # not for PA HP-UX.
12299      case $host_cpu in
12300      hppa*64*|ia64*)
12301	;;
12302      *)
12303	lt_prog_compiler_pic_CXX='-fPIC'
12304	;;
12305      esac
12306      ;;
12307    *)
12308      lt_prog_compiler_pic_CXX='-fPIC'
12309      ;;
12310    esac
12311  else
12312    case $host_os in
12313      aix4* | aix5*)
12314	# All AIX code is PIC.
12315	if test "$host_cpu" = ia64; then
12316	  # AIX 5 now supports IA64 processor
12317	  lt_prog_compiler_static_CXX='-Bstatic'
12318	else
12319	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12320	fi
12321	;;
12322      chorus*)
12323	case $cc_basename in
12324	cxch68*)
12325	  # Green Hills C++ Compiler
12326	  # _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"
12327	  ;;
12328	esac
12329	;;
12330       darwin*)
12331         # PIC is the default on this platform
12332         # Common symbols not allowed in MH_DYLIB files
12333         case $cc_basename in
12334           xlc*)
12335           lt_prog_compiler_pic_CXX='-qnocommon'
12336           lt_prog_compiler_wl_CXX='-Wl,'
12337           ;;
12338         esac
12339       ;;
12340      dgux*)
12341	case $cc_basename in
12342	  ec++*)
12343	    lt_prog_compiler_pic_CXX='-KPIC'
12344	    ;;
12345	  ghcx*)
12346	    # Green Hills C++ Compiler
12347	    lt_prog_compiler_pic_CXX='-pic'
12348	    ;;
12349	  *)
12350	    ;;
12351	esac
12352	;;
12353      freebsd* | kfreebsd*-gnu | dragonfly*)
12354	# FreeBSD uses GNU C++
12355	;;
12356      hpux9* | hpux10* | hpux11*)
12357	case $cc_basename in
12358	  CC*)
12359	    lt_prog_compiler_wl_CXX='-Wl,'
12360	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12361	    if test "$host_cpu" != ia64; then
12362	      lt_prog_compiler_pic_CXX='+Z'
12363	    fi
12364	    ;;
12365	  aCC*)
12366	    lt_prog_compiler_wl_CXX='-Wl,'
12367	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12368	    case $host_cpu in
12369	    hppa*64*|ia64*)
12370	      # +Z the default
12371	      ;;
12372	    *)
12373	      lt_prog_compiler_pic_CXX='+Z'
12374	      ;;
12375	    esac
12376	    ;;
12377	  *)
12378	    ;;
12379	esac
12380	;;
12381      interix*)
12382	# This is c89, which is MS Visual C++ (no shared libs)
12383	# Anyone wants to do a port?
12384	;;
12385      irix5* | irix6* | nonstopux*)
12386	case $cc_basename in
12387	  CC*)
12388	    lt_prog_compiler_wl_CXX='-Wl,'
12389	    lt_prog_compiler_static_CXX='-non_shared'
12390	    # CC pic flag -KPIC is the default.
12391	    ;;
12392	  *)
12393	    ;;
12394	esac
12395	;;
12396      linux*)
12397	case $cc_basename in
12398	  KCC*)
12399	    # KAI C++ Compiler
12400	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12401	    lt_prog_compiler_pic_CXX='-fPIC'
12402	    ;;
12403	  icpc* | ecpc*)
12404	    # Intel C++
12405	    lt_prog_compiler_wl_CXX='-Wl,'
12406	    lt_prog_compiler_pic_CXX='-KPIC'
12407	    lt_prog_compiler_static_CXX='-static'
12408	    ;;
12409	  pgCC*)
12410	    # Portland Group C++ compiler.
12411	    lt_prog_compiler_wl_CXX='-Wl,'
12412	    lt_prog_compiler_pic_CXX='-fpic'
12413	    lt_prog_compiler_static_CXX='-Bstatic'
12414	    ;;
12415	  cxx*)
12416	    # Compaq C++
12417	    # Make sure the PIC flag is empty.  It appears that all Alpha
12418	    # Linux and Compaq Tru64 Unix objects are PIC.
12419	    lt_prog_compiler_pic_CXX=
12420	    lt_prog_compiler_static_CXX='-non_shared'
12421	    ;;
12422	  *)
12423	    ;;
12424	esac
12425	;;
12426      lynxos*)
12427	;;
12428      m88k*)
12429	;;
12430      mvs*)
12431	case $cc_basename in
12432	  cxx*)
12433	    lt_prog_compiler_pic_CXX='-W c,exportall'
12434	    ;;
12435	  *)
12436	    ;;
12437	esac
12438	;;
12439      netbsd*)
12440	;;
12441      osf3* | osf4* | osf5*)
12442	case $cc_basename in
12443	  KCC*)
12444	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12445	    ;;
12446	  RCC*)
12447	    # Rational C++ 2.4.1
12448	    lt_prog_compiler_pic_CXX='-pic'
12449	    ;;
12450	  cxx*)
12451	    # Digital/Compaq C++
12452	    lt_prog_compiler_wl_CXX='-Wl,'
12453	    # Make sure the PIC flag is empty.  It appears that all Alpha
12454	    # Linux and Compaq Tru64 Unix objects are PIC.
12455	    lt_prog_compiler_pic_CXX=
12456	    lt_prog_compiler_static_CXX='-non_shared'
12457	    ;;
12458	  *)
12459	    ;;
12460	esac
12461	;;
12462      psos*)
12463	;;
12464      solaris*)
12465	case $cc_basename in
12466	  CC*)
12467	    # Sun C++ 4.2, 5.x and Centerline C++
12468	    lt_prog_compiler_pic_CXX='-KPIC'
12469	    lt_prog_compiler_static_CXX='-Bstatic'
12470	    lt_prog_compiler_wl_CXX='-Qoption ld '
12471	    ;;
12472	  gcx*)
12473	    # Green Hills C++ Compiler
12474	    lt_prog_compiler_pic_CXX='-PIC'
12475	    ;;
12476	  *)
12477	    ;;
12478	esac
12479	;;
12480      sunos4*)
12481	case $cc_basename in
12482	  CC*)
12483	    # Sun C++ 4.x
12484	    lt_prog_compiler_pic_CXX='-pic'
12485	    lt_prog_compiler_static_CXX='-Bstatic'
12486	    ;;
12487	  lcc*)
12488	    # Lucid
12489	    lt_prog_compiler_pic_CXX='-pic'
12490	    ;;
12491	  *)
12492	    ;;
12493	esac
12494	;;
12495      tandem*)
12496	case $cc_basename in
12497	  NCC*)
12498	    # NonStop-UX NCC 3.20
12499	    lt_prog_compiler_pic_CXX='-KPIC'
12500	    ;;
12501	  *)
12502	    ;;
12503	esac
12504	;;
12505      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12506	case $cc_basename in
12507	  CC*)
12508	    lt_prog_compiler_wl_CXX='-Wl,'
12509	    lt_prog_compiler_pic_CXX='-KPIC'
12510	    lt_prog_compiler_static_CXX='-Bstatic'
12511	    ;;
12512	esac
12513	;;
12514      vxworks*)
12515	;;
12516      *)
12517	lt_prog_compiler_can_build_shared_CXX=no
12518	;;
12519    esac
12520  fi
12521
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12523$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12524
12525#
12526# Check to make sure the PIC flag actually works.
12527#
12528if test -n "$lt_prog_compiler_pic_CXX"; then
12529
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12531$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12532if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12533  $as_echo_n "(cached) " >&6
12534else
12535  lt_prog_compiler_pic_works_CXX=no
12536  ac_outfile=conftest.$ac_objext
12537   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12538   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12539   # Insert the option either (1) after the last *FLAGS variable, or
12540   # (2) before a word containing "conftest.", or (3) at the end.
12541   # Note that $ac_compile itself does not contain backslashes and begins
12542   # with a dollar sign (not a hyphen), so the echo should work correctly.
12543   # The option is referenced via a variable to avoid confusing sed.
12544   lt_compile=`echo "$ac_compile" | $SED \
12545   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12547   -e 's:$: $lt_compiler_flag:'`
12548   (eval echo "\"\$as_me:12548: $lt_compile\"" >&5)
12549   (eval "$lt_compile" 2>conftest.err)
12550   ac_status=$?
12551   cat conftest.err >&5
12552   echo "$as_me:12552: \$? = $ac_status" >&5
12553   if (exit $ac_status) && test -s "$ac_outfile"; then
12554     # The compiler can only warn and ignore the option if not recognized
12555     # So say no if there are warnings other than the usual output.
12556     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12557     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12558     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12559       lt_prog_compiler_pic_works_CXX=yes
12560     fi
12561   fi
12562   $rm conftest*
12563
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12566$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12567
12568if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12569    case $lt_prog_compiler_pic_CXX in
12570     "" | " "*) ;;
12571     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12572     esac
12573else
12574    lt_prog_compiler_pic_CXX=
12575     lt_prog_compiler_can_build_shared_CXX=no
12576fi
12577
12578fi
12579case $host_os in
12580  # For platforms which do not support PIC, -DPIC is meaningless:
12581  *djgpp*)
12582    lt_prog_compiler_pic_CXX=
12583    ;;
12584  *)
12585    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12586    ;;
12587esac
12588
12589#
12590# Check to make sure the static flag actually works.
12591#
12592wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12594$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12595if ${lt_prog_compiler_static_works_CXX+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  lt_prog_compiler_static_works_CXX=no
12599   save_LDFLAGS="$LDFLAGS"
12600   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12601   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12602   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12603     # The linker can only warn and ignore the option if not recognized
12604     # So say no if there are warnings
12605     if test -s conftest.err; then
12606       # Append any errors to the config.log.
12607       cat conftest.err 1>&5
12608       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12609       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12610       if diff conftest.exp conftest.er2 >/dev/null; then
12611         lt_prog_compiler_static_works_CXX=yes
12612       fi
12613     else
12614       lt_prog_compiler_static_works_CXX=yes
12615     fi
12616   fi
12617   $rm conftest*
12618   LDFLAGS="$save_LDFLAGS"
12619
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12622$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12623
12624if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12625    :
12626else
12627    lt_prog_compiler_static_CXX=
12628fi
12629
12630
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12633if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12634  $as_echo_n "(cached) " >&6
12635else
12636  lt_cv_prog_compiler_c_o_CXX=no
12637   $rm -r conftest 2>/dev/null
12638   mkdir conftest
12639   cd conftest
12640   mkdir out
12641   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12642
12643   lt_compiler_flag="-o out/conftest2.$ac_objext"
12644   # Insert the option either (1) after the last *FLAGS variable, or
12645   # (2) before a word containing "conftest.", or (3) at the end.
12646   # Note that $ac_compile itself does not contain backslashes and begins
12647   # with a dollar sign (not a hyphen), so the echo should work correctly.
12648   lt_compile=`echo "$ac_compile" | $SED \
12649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651   -e 's:$: $lt_compiler_flag:'`
12652   (eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
12653   (eval "$lt_compile" 2>out/conftest.err)
12654   ac_status=$?
12655   cat out/conftest.err >&5
12656   echo "$as_me:12656: \$? = $ac_status" >&5
12657   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12658   then
12659     # The compiler can only warn and ignore the option if not recognized
12660     # So say no if there are warnings
12661     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12662     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12663     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12664       lt_cv_prog_compiler_c_o_CXX=yes
12665     fi
12666   fi
12667   chmod u+w . 2>&5
12668   $rm conftest*
12669   # SGI C++ compiler will create directory out/ii_files/ for
12670   # template instantiation
12671   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12672   $rm out/* && rmdir out
12673   cd ..
12674   rmdir conftest
12675   $rm conftest*
12676
12677fi
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12679$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12680
12681
12682hard_links="nottested"
12683if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12684  # do not overwrite the value of need_locks provided by the user
12685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12686$as_echo_n "checking if we can lock with hard links... " >&6; }
12687  hard_links=yes
12688  $rm conftest*
12689  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12690  touch conftest.a
12691  ln conftest.a conftest.b 2>&5 || hard_links=no
12692  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12694$as_echo "$hard_links" >&6; }
12695  if test "$hard_links" = no; then
12696    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12697$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12698    need_locks=warn
12699  fi
12700else
12701  need_locks=no
12702fi
12703
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12705$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12706
12707  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12708  case $host_os in
12709  aix4* | aix5*)
12710    # If we're using GNU nm, then we don't want the "-C" option.
12711    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12712    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12713      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'
12714    else
12715      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'
12716    fi
12717    ;;
12718  pw32*)
12719    export_symbols_cmds_CXX="$ltdll_cmds"
12720  ;;
12721  cygwin* | mingw*)
12722    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12723  ;;
12724  *)
12725    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12726  ;;
12727  esac
12728
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12730$as_echo "$ld_shlibs_CXX" >&6; }
12731test "$ld_shlibs_CXX" = no && can_build_shared=no
12732
12733#
12734# Do we need to explicitly link libc?
12735#
12736case "x$archive_cmds_need_lc_CXX" in
12737x|xyes)
12738  # Assume -lc should be added
12739  archive_cmds_need_lc_CXX=yes
12740
12741  if test "$enable_shared" = yes && test "$GCC" = yes; then
12742    case $archive_cmds_CXX in
12743    *'~'*)
12744      # FIXME: we may have to deal with multi-command sequences.
12745      ;;
12746    '$CC '*)
12747      # Test whether the compiler implicitly links with -lc since on some
12748      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12749      # to ld, don't add -lc before -lgcc.
12750      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12751$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12752      $rm conftest*
12753      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12754
12755      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12756  (eval $ac_compile) 2>&5
12757  ac_status=$?
12758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12759  test $ac_status = 0; } 2>conftest.err; then
12760        soname=conftest
12761        lib=conftest
12762        libobjs=conftest.$ac_objext
12763        deplibs=
12764        wl=$lt_prog_compiler_wl_CXX
12765	pic_flag=$lt_prog_compiler_pic_CXX
12766        compiler_flags=-v
12767        linker_flags=-v
12768        verstring=
12769        output_objdir=.
12770        libname=conftest
12771        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12772        allow_undefined_flag_CXX=
12773        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12774  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12775  ac_status=$?
12776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777  test $ac_status = 0; }
12778        then
12779	  archive_cmds_need_lc_CXX=no
12780        else
12781	  archive_cmds_need_lc_CXX=yes
12782        fi
12783        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12784      else
12785        cat conftest.err 1>&5
12786      fi
12787      $rm conftest*
12788      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12789$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12790      ;;
12791    esac
12792  fi
12793  ;;
12794esac
12795
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12797$as_echo_n "checking dynamic linker characteristics... " >&6; }
12798library_names_spec=
12799libname_spec='lib$name'
12800soname_spec=
12801shrext_cmds=".so"
12802postinstall_cmds=
12803postuninstall_cmds=
12804finish_cmds=
12805finish_eval=
12806shlibpath_var=
12807shlibpath_overrides_runpath=unknown
12808version_type=none
12809dynamic_linker="$host_os ld.so"
12810sys_lib_dlsearch_path_spec="/lib /usr/lib"
12811if test "$GCC" = yes; then
12812  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12813  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12814    # if the path contains ";" then we assume it to be the separator
12815    # otherwise default to the standard path separator (i.e. ":") - it is
12816    # assumed that no part of a normal pathname contains ";" but that should
12817    # okay in the real world where ";" in dirpaths is itself problematic.
12818    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12819  else
12820    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12821  fi
12822else
12823  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12824fi
12825need_lib_prefix=unknown
12826hardcode_into_libs=no
12827
12828# when you set need_version to no, make sure it does not cause -set_version
12829# flags to be left without arguments
12830need_version=unknown
12831
12832case $host_os in
12833aix3*)
12834  version_type=linux
12835  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12836  shlibpath_var=LIBPATH
12837
12838  # AIX 3 has no versioning support, so we append a major version to the name.
12839  soname_spec='${libname}${release}${shared_ext}$major'
12840  ;;
12841
12842aix4* | aix5*)
12843  version_type=linux
12844  need_lib_prefix=no
12845  need_version=no
12846  hardcode_into_libs=yes
12847  if test "$host_cpu" = ia64; then
12848    # AIX 5 supports IA64
12849    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12850    shlibpath_var=LD_LIBRARY_PATH
12851  else
12852    # With GCC up to 2.95.x, collect2 would create an import file
12853    # for dependence libraries.  The import file would start with
12854    # the line `#! .'.  This would cause the generated library to
12855    # depend on `.', always an invalid library.  This was fixed in
12856    # development snapshots of GCC prior to 3.0.
12857    case $host_os in
12858      aix4 | aix4.[01] | aix4.[01].*)
12859      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12860	   echo ' yes '
12861	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12862	:
12863      else
12864	can_build_shared=no
12865      fi
12866      ;;
12867    esac
12868    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12869    # soname into executable. Probably we can add versioning support to
12870    # collect2, so additional links can be useful in future.
12871    if test "$aix_use_runtimelinking" = yes; then
12872      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12873      # instead of lib<name>.a to let people know that these are not
12874      # typical AIX shared libraries.
12875      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876    else
12877      # We preserve .a as extension for shared libraries through AIX4.2
12878      # and later when we are not doing run time linking.
12879      library_names_spec='${libname}${release}.a $libname.a'
12880      soname_spec='${libname}${release}${shared_ext}$major'
12881    fi
12882    shlibpath_var=LIBPATH
12883  fi
12884  ;;
12885
12886amigaos*)
12887  library_names_spec='$libname.ixlibrary $libname.a'
12888  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12889  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'
12890  ;;
12891
12892beos*)
12893  library_names_spec='${libname}${shared_ext}'
12894  dynamic_linker="$host_os ld.so"
12895  shlibpath_var=LIBRARY_PATH
12896  ;;
12897
12898bsdi[45]*)
12899  version_type=linux
12900  need_version=no
12901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902  soname_spec='${libname}${release}${shared_ext}$major'
12903  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12904  shlibpath_var=LD_LIBRARY_PATH
12905  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12906  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12907  # the default ld.so.conf also contains /usr/contrib/lib and
12908  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12909  # libtool to hard-code these into programs
12910  ;;
12911
12912cygwin* | mingw* | pw32*)
12913  version_type=windows
12914  shrext_cmds=".dll"
12915  need_version=no
12916  need_lib_prefix=no
12917
12918  case $GCC,$host_os in
12919  yes,cygwin* | yes,mingw* | yes,pw32*)
12920    library_names_spec='$libname.dll.a'
12921    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12922    postinstall_cmds='base_file=`basename \${file}`~
12923      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12924      dldir=$destdir/`dirname \$dlpath`~
12925      test -d \$dldir || mkdir -p \$dldir~
12926      $install_prog $dir/$dlname \$dldir/$dlname~
12927      chmod a+x \$dldir/$dlname'
12928    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12929      dlpath=$dir/\$dldll~
12930       $rm \$dlpath'
12931    shlibpath_overrides_runpath=yes
12932
12933    case $host_os in
12934    cygwin*)
12935      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12936      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12937      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12938      ;;
12939    mingw*)
12940      # MinGW DLLs use traditional 'lib' prefix
12941      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12942      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12943      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12944        # It is most probably a Windows format PATH printed by
12945        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12946        # path with ; separators, and with drive letters. We can handle the
12947        # drive letters (cygwin fileutils understands them), so leave them,
12948        # especially as we might pass files found there to a mingw objdump,
12949        # which wouldn't understand a cygwinified path. Ahh.
12950        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12951      else
12952        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12953      fi
12954      ;;
12955    pw32*)
12956      # pw32 DLLs use 'pw' prefix rather than 'lib'
12957      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12958      ;;
12959    esac
12960    ;;
12961
12962  *)
12963    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12964    ;;
12965  esac
12966  dynamic_linker='Win32 ld.exe'
12967  # FIXME: first we should search . and the directory the executable is in
12968  shlibpath_var=PATH
12969  ;;
12970
12971darwin* | rhapsody*)
12972  dynamic_linker="$host_os dyld"
12973  version_type=darwin
12974  need_lib_prefix=no
12975  need_version=no
12976  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12977  soname_spec='${libname}${release}${major}$shared_ext'
12978  shlibpath_overrides_runpath=yes
12979  shlibpath_var=DYLD_LIBRARY_PATH
12980  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12981  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12982  if test "$GCC" = yes; then
12983    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"`
12984  else
12985    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12986  fi
12987  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12988  ;;
12989
12990dgux*)
12991  version_type=linux
12992  need_lib_prefix=no
12993  need_version=no
12994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12995  soname_spec='${libname}${release}${shared_ext}$major'
12996  shlibpath_var=LD_LIBRARY_PATH
12997  ;;
12998
12999freebsd1*)
13000  dynamic_linker=no
13001  ;;
13002
13003kfreebsd*-gnu)
13004  version_type=linux
13005  need_lib_prefix=no
13006  need_version=no
13007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13008  soname_spec='${libname}${release}${shared_ext}$major'
13009  shlibpath_var=LD_LIBRARY_PATH
13010  shlibpath_overrides_runpath=no
13011  hardcode_into_libs=yes
13012  dynamic_linker='GNU ld.so'
13013  ;;
13014
13015freebsd* | dragonfly*)
13016  # DragonFly does not have aout.  When/if they implement a new
13017  # versioning mechanism, adjust this.
13018  if test -x /usr/bin/objformat; then
13019    objformat=`/usr/bin/objformat`
13020  else
13021    case $host_os in
13022    freebsd[123]*) objformat=aout ;;
13023    *) objformat=elf ;;
13024    esac
13025  fi
13026  version_type=freebsd-$objformat
13027  case $version_type in
13028    freebsd-elf*)
13029      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13030      need_version=no
13031      need_lib_prefix=no
13032      ;;
13033    freebsd-*)
13034      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13035      need_version=yes
13036      ;;
13037  esac
13038  shlibpath_var=LD_LIBRARY_PATH
13039  case $host_os in
13040  freebsd2*)
13041    shlibpath_overrides_runpath=yes
13042    ;;
13043  freebsd3.[01]* | freebsdelf3.[01]*)
13044    shlibpath_overrides_runpath=yes
13045    hardcode_into_libs=yes
13046    ;;
13047  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13048  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13049    shlibpath_overrides_runpath=no
13050    hardcode_into_libs=yes
13051    ;;
13052  freebsd*) # from 4.6 on
13053    shlibpath_overrides_runpath=yes
13054    hardcode_into_libs=yes
13055    ;;
13056  esac
13057  ;;
13058
13059gnu*)
13060  version_type=linux
13061  need_lib_prefix=no
13062  need_version=no
13063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13064  soname_spec='${libname}${release}${shared_ext}$major'
13065  shlibpath_var=LD_LIBRARY_PATH
13066  hardcode_into_libs=yes
13067  ;;
13068
13069hpux9* | hpux10* | hpux11*)
13070  # Give a soname corresponding to the major version so that dld.sl refuses to
13071  # link against other versions.
13072  version_type=sunos
13073  need_lib_prefix=no
13074  need_version=no
13075  case $host_cpu in
13076  ia64*)
13077    shrext_cmds='.so'
13078    hardcode_into_libs=yes
13079    dynamic_linker="$host_os dld.so"
13080    shlibpath_var=LD_LIBRARY_PATH
13081    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083    soname_spec='${libname}${release}${shared_ext}$major'
13084    if test "X$HPUX_IA64_MODE" = X32; then
13085      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13086    else
13087      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13088    fi
13089    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13090    ;;
13091   hppa*64*)
13092     shrext_cmds='.sl'
13093     hardcode_into_libs=yes
13094     dynamic_linker="$host_os dld.sl"
13095     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13096     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098     soname_spec='${libname}${release}${shared_ext}$major'
13099     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13100     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13101     ;;
13102   *)
13103    shrext_cmds='.sl'
13104    dynamic_linker="$host_os dld.sl"
13105    shlibpath_var=SHLIB_PATH
13106    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13107    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108    soname_spec='${libname}${release}${shared_ext}$major'
13109    ;;
13110  esac
13111  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13112  postinstall_cmds='chmod 555 $lib'
13113  ;;
13114
13115interix3*)
13116  version_type=linux
13117  need_lib_prefix=no
13118  need_version=no
13119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120  soname_spec='${libname}${release}${shared_ext}$major'
13121  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13122  shlibpath_var=LD_LIBRARY_PATH
13123  shlibpath_overrides_runpath=no
13124  hardcode_into_libs=yes
13125  ;;
13126
13127irix5* | irix6* | nonstopux*)
13128  case $host_os in
13129    nonstopux*) version_type=nonstopux ;;
13130    *)
13131	if test "$lt_cv_prog_gnu_ld" = yes; then
13132		version_type=linux
13133	else
13134		version_type=irix
13135	fi ;;
13136  esac
13137  need_lib_prefix=no
13138  need_version=no
13139  soname_spec='${libname}${release}${shared_ext}$major'
13140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13141  case $host_os in
13142  irix5* | nonstopux*)
13143    libsuff= shlibsuff=
13144    ;;
13145  *)
13146    case $LD in # libtool.m4 will add one of these switches to LD
13147    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13148      libsuff= shlibsuff= libmagic=32-bit;;
13149    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13150      libsuff=32 shlibsuff=N32 libmagic=N32;;
13151    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13152      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13153    *) libsuff= shlibsuff= libmagic=never-match;;
13154    esac
13155    ;;
13156  esac
13157  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13158  shlibpath_overrides_runpath=no
13159  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13160  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13161  hardcode_into_libs=yes
13162  ;;
13163
13164# No shared lib support for Linux oldld, aout, or coff.
13165linux*oldld* | linux*aout* | linux*coff*)
13166  dynamic_linker=no
13167  ;;
13168
13169# This must be Linux ELF.
13170linux*)
13171  version_type=linux
13172  need_lib_prefix=no
13173  need_version=no
13174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13175  soname_spec='${libname}${release}${shared_ext}$major'
13176  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13177  shlibpath_var=LD_LIBRARY_PATH
13178  shlibpath_overrides_runpath=no
13179  # This implies no fast_install, which is unacceptable.
13180  # Some rework will be needed to allow for fast_install
13181  # before this can be enabled.
13182  hardcode_into_libs=yes
13183
13184  # Append ld.so.conf contents to the search path
13185  if test -f /etc/ld.so.conf; then
13186    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13187    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13188  fi
13189
13190  # We used to test for /lib/ld.so.1 and disable shared libraries on
13191  # powerpc, because MkLinux only supported shared libraries with the
13192  # GNU dynamic linker.  Since this was broken with cross compilers,
13193  # most powerpc-linux boxes support dynamic linking these days and
13194  # people can always --disable-shared, the test was removed, and we
13195  # assume the GNU/Linux dynamic linker is in use.
13196  dynamic_linker='GNU/Linux ld.so'
13197  ;;
13198
13199knetbsd*-gnu)
13200  version_type=linux
13201  need_lib_prefix=no
13202  need_version=no
13203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13204  soname_spec='${libname}${release}${shared_ext}$major'
13205  shlibpath_var=LD_LIBRARY_PATH
13206  shlibpath_overrides_runpath=no
13207  hardcode_into_libs=yes
13208  dynamic_linker='GNU ld.so'
13209  ;;
13210
13211netbsd*)
13212  version_type=sunos
13213  need_lib_prefix=no
13214  need_version=no
13215  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13216    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13217    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13218    dynamic_linker='NetBSD (a.out) ld.so'
13219  else
13220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221    soname_spec='${libname}${release}${shared_ext}$major'
13222    dynamic_linker='NetBSD ld.elf_so'
13223  fi
13224  shlibpath_var=LD_LIBRARY_PATH
13225  shlibpath_overrides_runpath=yes
13226  hardcode_into_libs=yes
13227  ;;
13228
13229newsos6)
13230  version_type=linux
13231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13232  shlibpath_var=LD_LIBRARY_PATH
13233  shlibpath_overrides_runpath=yes
13234  ;;
13235
13236nto-qnx*)
13237  version_type=linux
13238  need_lib_prefix=no
13239  need_version=no
13240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241  soname_spec='${libname}${release}${shared_ext}$major'
13242  shlibpath_var=LD_LIBRARY_PATH
13243  shlibpath_overrides_runpath=yes
13244  ;;
13245
13246openbsd*)
13247  version_type=sunos
13248  sys_lib_dlsearch_path_spec="/usr/lib"
13249  need_lib_prefix=no
13250  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13251  case $host_os in
13252    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13253    *)                         need_version=no  ;;
13254  esac
13255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13256  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13257  shlibpath_var=LD_LIBRARY_PATH
13258  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13259    case $host_os in
13260      openbsd2.[89] | openbsd2.[89].*)
13261	shlibpath_overrides_runpath=no
13262	;;
13263      *)
13264	shlibpath_overrides_runpath=yes
13265	;;
13266      esac
13267  else
13268    shlibpath_overrides_runpath=yes
13269  fi
13270  ;;
13271
13272os2*)
13273  libname_spec='$name'
13274  shrext_cmds=".dll"
13275  need_lib_prefix=no
13276  library_names_spec='$libname${shared_ext} $libname.a'
13277  dynamic_linker='OS/2 ld.exe'
13278  shlibpath_var=LIBPATH
13279  ;;
13280
13281osf3* | osf4* | osf5*)
13282  version_type=osf
13283  need_lib_prefix=no
13284  need_version=no
13285  soname_spec='${libname}${release}${shared_ext}$major'
13286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287  shlibpath_var=LD_LIBRARY_PATH
13288  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13289  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13290  ;;
13291
13292solaris*)
13293  version_type=linux
13294  need_lib_prefix=no
13295  need_version=no
13296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297  soname_spec='${libname}${release}${shared_ext}$major'
13298  shlibpath_var=LD_LIBRARY_PATH
13299  shlibpath_overrides_runpath=yes
13300  hardcode_into_libs=yes
13301  # ldd complains unless libraries are executable
13302  postinstall_cmds='chmod +x $lib'
13303  ;;
13304
13305sunos4*)
13306  version_type=sunos
13307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13308  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13309  shlibpath_var=LD_LIBRARY_PATH
13310  shlibpath_overrides_runpath=yes
13311  if test "$with_gnu_ld" = yes; then
13312    need_lib_prefix=no
13313  fi
13314  need_version=yes
13315  ;;
13316
13317sysv4 | sysv4.3*)
13318  version_type=linux
13319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320  soname_spec='${libname}${release}${shared_ext}$major'
13321  shlibpath_var=LD_LIBRARY_PATH
13322  case $host_vendor in
13323    sni)
13324      shlibpath_overrides_runpath=no
13325      need_lib_prefix=no
13326      export_dynamic_flag_spec='${wl}-Blargedynsym'
13327      runpath_var=LD_RUN_PATH
13328      ;;
13329    siemens)
13330      need_lib_prefix=no
13331      ;;
13332    motorola)
13333      need_lib_prefix=no
13334      need_version=no
13335      shlibpath_overrides_runpath=no
13336      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13337      ;;
13338  esac
13339  ;;
13340
13341sysv4*MP*)
13342  if test -d /usr/nec ;then
13343    version_type=linux
13344    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13345    soname_spec='$libname${shared_ext}.$major'
13346    shlibpath_var=LD_LIBRARY_PATH
13347  fi
13348  ;;
13349
13350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13351  version_type=freebsd-elf
13352  need_lib_prefix=no
13353  need_version=no
13354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13355  soname_spec='${libname}${release}${shared_ext}$major'
13356  shlibpath_var=LD_LIBRARY_PATH
13357  hardcode_into_libs=yes
13358  if test "$with_gnu_ld" = yes; then
13359    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13360    shlibpath_overrides_runpath=no
13361  else
13362    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13363    shlibpath_overrides_runpath=yes
13364    case $host_os in
13365      sco3.2v5*)
13366        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13367	;;
13368    esac
13369  fi
13370  sys_lib_dlsearch_path_spec='/usr/lib'
13371  ;;
13372
13373uts4*)
13374  version_type=linux
13375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13376  soname_spec='${libname}${release}${shared_ext}$major'
13377  shlibpath_var=LD_LIBRARY_PATH
13378  ;;
13379
13380*)
13381  dynamic_linker=no
13382  ;;
13383esac
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13385$as_echo "$dynamic_linker" >&6; }
13386test "$dynamic_linker" = no && can_build_shared=no
13387
13388variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13389if test "$GCC" = yes; then
13390  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13391fi
13392
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13394$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13395hardcode_action_CXX=
13396if test -n "$hardcode_libdir_flag_spec_CXX" || \
13397   test -n "$runpath_var_CXX" || \
13398   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13399
13400  # We can hardcode non-existant directories.
13401  if test "$hardcode_direct_CXX" != no &&
13402     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13403     # have to relink, otherwise we might link with an installed library
13404     # when we should be linking with a yet-to-be-installed one
13405     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13406     test "$hardcode_minus_L_CXX" != no; then
13407    # Linking always hardcodes the temporary library directory.
13408    hardcode_action_CXX=relink
13409  else
13410    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13411    hardcode_action_CXX=immediate
13412  fi
13413else
13414  # We cannot hardcode anything, or else we can only hardcode existing
13415  # directories.
13416  hardcode_action_CXX=unsupported
13417fi
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13419$as_echo "$hardcode_action_CXX" >&6; }
13420
13421if test "$hardcode_action_CXX" = relink; then
13422  # Fast installation is not supported
13423  enable_fast_install=no
13424elif test "$shlibpath_overrides_runpath" = yes ||
13425     test "$enable_shared" = no; then
13426  # Fast installation is not necessary
13427  enable_fast_install=needless
13428fi
13429
13430
13431# The else clause should only fire when bootstrapping the
13432# libtool distribution, otherwise you forgot to ship ltmain.sh
13433# with your package, and you will get complaints that there are
13434# no rules to generate ltmain.sh.
13435if test -f "$ltmain"; then
13436  # See if we are running on zsh, and set the options which allow our commands through
13437  # without removal of \ escapes.
13438  if test -n "${ZSH_VERSION+set}" ; then
13439    setopt NO_GLOB_SUBST
13440  fi
13441  # Now quote all the things that may contain metacharacters while being
13442  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13443  # variables and quote the copies for generation of the libtool script.
13444  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13445    SED SHELL STRIP \
13446    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13447    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13448    deplibs_check_method reload_flag reload_cmds need_locks \
13449    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13450    lt_cv_sys_global_symbol_to_c_name_address \
13451    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13452    old_postinstall_cmds old_postuninstall_cmds \
13453    compiler_CXX \
13454    CC_CXX \
13455    LD_CXX \
13456    lt_prog_compiler_wl_CXX \
13457    lt_prog_compiler_pic_CXX \
13458    lt_prog_compiler_static_CXX \
13459    lt_prog_compiler_no_builtin_flag_CXX \
13460    export_dynamic_flag_spec_CXX \
13461    thread_safe_flag_spec_CXX \
13462    whole_archive_flag_spec_CXX \
13463    enable_shared_with_static_runtimes_CXX \
13464    old_archive_cmds_CXX \
13465    old_archive_from_new_cmds_CXX \
13466    predep_objects_CXX \
13467    postdep_objects_CXX \
13468    predeps_CXX \
13469    postdeps_CXX \
13470    compiler_lib_search_path_CXX \
13471    archive_cmds_CXX \
13472    archive_expsym_cmds_CXX \
13473    postinstall_cmds_CXX \
13474    postuninstall_cmds_CXX \
13475    old_archive_from_expsyms_cmds_CXX \
13476    allow_undefined_flag_CXX \
13477    no_undefined_flag_CXX \
13478    export_symbols_cmds_CXX \
13479    hardcode_libdir_flag_spec_CXX \
13480    hardcode_libdir_flag_spec_ld_CXX \
13481    hardcode_libdir_separator_CXX \
13482    hardcode_automatic_CXX \
13483    module_cmds_CXX \
13484    module_expsym_cmds_CXX \
13485    lt_cv_prog_compiler_c_o_CXX \
13486    exclude_expsyms_CXX \
13487    include_expsyms_CXX; do
13488
13489    case $var in
13490    old_archive_cmds_CXX | \
13491    old_archive_from_new_cmds_CXX | \
13492    archive_cmds_CXX | \
13493    archive_expsym_cmds_CXX | \
13494    module_cmds_CXX | \
13495    module_expsym_cmds_CXX | \
13496    old_archive_from_expsyms_cmds_CXX | \
13497    export_symbols_cmds_CXX | \
13498    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13499    postinstall_cmds | postuninstall_cmds | \
13500    old_postinstall_cmds | old_postuninstall_cmds | \
13501    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13502      # Double-quote double-evaled strings.
13503      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13504      ;;
13505    *)
13506      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13507      ;;
13508    esac
13509  done
13510
13511  case $lt_echo in
13512  *'\$0 --fallback-echo"')
13513    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13514    ;;
13515  esac
13516
13517cfgfile="$ofile"
13518
13519  cat <<__EOF__ >> "$cfgfile"
13520# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13521
13522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13523
13524# Shell to use when invoking shell scripts.
13525SHELL=$lt_SHELL
13526
13527# Whether or not to build shared libraries.
13528build_libtool_libs=$enable_shared
13529
13530# Whether or not to build static libraries.
13531build_old_libs=$enable_static
13532
13533# Whether or not to add -lc for building shared libraries.
13534build_libtool_need_lc=$archive_cmds_need_lc_CXX
13535
13536# Whether or not to disallow shared libs when runtime libs are static
13537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13538
13539# Whether or not to optimize for fast installation.
13540fast_install=$enable_fast_install
13541
13542# The host system.
13543host_alias=$host_alias
13544host=$host
13545host_os=$host_os
13546
13547# The build system.
13548build_alias=$build_alias
13549build=$build
13550build_os=$build_os
13551
13552# An echo program that does not interpret backslashes.
13553echo=$lt_echo
13554
13555# The archiver.
13556AR=$lt_AR
13557AR_FLAGS=$lt_AR_FLAGS
13558
13559# A C compiler.
13560LTCC=$lt_LTCC
13561
13562# LTCC compiler flags.
13563LTCFLAGS=$lt_LTCFLAGS
13564
13565# A language-specific compiler.
13566CC=$lt_compiler_CXX
13567
13568# Is the compiler the GNU C compiler?
13569with_gcc=$GCC_CXX
13570
13571# An ERE matcher.
13572EGREP=$lt_EGREP
13573
13574# The linker used to build libraries.
13575LD=$lt_LD_CXX
13576
13577# Whether we need hard or soft links.
13578LN_S=$lt_LN_S
13579
13580# A BSD-compatible nm program.
13581NM=$lt_NM
13582
13583# A symbol stripping program
13584STRIP=$lt_STRIP
13585
13586# Used to examine libraries when file_magic_cmd begins "file"
13587MAGIC_CMD=$MAGIC_CMD
13588
13589# Used on cygwin: DLL creation program.
13590DLLTOOL="$DLLTOOL"
13591
13592# Used on cygwin: object dumper.
13593OBJDUMP="$OBJDUMP"
13594
13595# Used on cygwin: assembler.
13596AS="$AS"
13597
13598# The name of the directory that contains temporary libtool files.
13599objdir=$objdir
13600
13601# How to create reloadable object files.
13602reload_flag=$lt_reload_flag
13603reload_cmds=$lt_reload_cmds
13604
13605# How to pass a linker flag through the compiler.
13606wl=$lt_lt_prog_compiler_wl_CXX
13607
13608# Object file suffix (normally "o").
13609objext="$ac_objext"
13610
13611# Old archive suffix (normally "a").
13612libext="$libext"
13613
13614# Shared library suffix (normally ".so").
13615shrext_cmds='$shrext_cmds'
13616
13617# Executable file suffix (normally "").
13618exeext="$exeext"
13619
13620# Additional compiler flags for building library objects.
13621pic_flag=$lt_lt_prog_compiler_pic_CXX
13622pic_mode=$pic_mode
13623
13624# What is the maximum length of a command?
13625max_cmd_len=$lt_cv_sys_max_cmd_len
13626
13627# Does compiler simultaneously support -c and -o options?
13628compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13629
13630# Must we lock files when doing compilation?
13631need_locks=$lt_need_locks
13632
13633# Do we need the lib prefix for modules?
13634need_lib_prefix=$need_lib_prefix
13635
13636# Do we need a version for libraries?
13637need_version=$need_version
13638
13639# Whether dlopen is supported.
13640dlopen_support=$enable_dlopen
13641
13642# Whether dlopen of programs is supported.
13643dlopen_self=$enable_dlopen_self
13644
13645# Whether dlopen of statically linked programs is supported.
13646dlopen_self_static=$enable_dlopen_self_static
13647
13648# Compiler flag to prevent dynamic linking.
13649link_static_flag=$lt_lt_prog_compiler_static_CXX
13650
13651# Compiler flag to turn off builtin functions.
13652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13653
13654# Compiler flag to allow reflexive dlopens.
13655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13656
13657# Compiler flag to generate shared objects directly from archives.
13658whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13659
13660# Compiler flag to generate thread-safe objects.
13661thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13662
13663# Library versioning type.
13664version_type=$version_type
13665
13666# Format of library name prefix.
13667libname_spec=$lt_libname_spec
13668
13669# List of archive names.  First name is the real one, the rest are links.
13670# The last name is the one that the linker finds with -lNAME.
13671library_names_spec=$lt_library_names_spec
13672
13673# The coded name of the library, if different from the real name.
13674soname_spec=$lt_soname_spec
13675
13676# Commands used to build and install an old-style archive.
13677RANLIB=$lt_RANLIB
13678old_archive_cmds=$lt_old_archive_cmds_CXX
13679old_postinstall_cmds=$lt_old_postinstall_cmds
13680old_postuninstall_cmds=$lt_old_postuninstall_cmds
13681
13682# Create an old-style archive from a shared archive.
13683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13684
13685# Create a temporary old-style archive to link instead of a shared archive.
13686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13687
13688# Commands used to build and install a shared archive.
13689archive_cmds=$lt_archive_cmds_CXX
13690archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13691postinstall_cmds=$lt_postinstall_cmds
13692postuninstall_cmds=$lt_postuninstall_cmds
13693
13694# Commands used to build a loadable module (assumed same as above if empty)
13695module_cmds=$lt_module_cmds_CXX
13696module_expsym_cmds=$lt_module_expsym_cmds_CXX
13697
13698# Commands to strip libraries.
13699old_striplib=$lt_old_striplib
13700striplib=$lt_striplib
13701
13702# Dependencies to place before the objects being linked to create a
13703# shared library.
13704predep_objects=$lt_predep_objects_CXX
13705
13706# Dependencies to place after the objects being linked to create a
13707# shared library.
13708postdep_objects=$lt_postdep_objects_CXX
13709
13710# Dependencies to place before the objects being linked to create a
13711# shared library.
13712predeps=$lt_predeps_CXX
13713
13714# Dependencies to place after the objects being linked to create a
13715# shared library.
13716postdeps=$lt_postdeps_CXX
13717
13718# The library search path used internally by the compiler when linking
13719# a shared library.
13720compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13721
13722# Method to check whether dependent libraries are shared objects.
13723deplibs_check_method=$lt_deplibs_check_method
13724
13725# Command to use when deplibs_check_method == file_magic.
13726file_magic_cmd=$lt_file_magic_cmd
13727
13728# Flag that allows shared libraries with undefined symbols to be built.
13729allow_undefined_flag=$lt_allow_undefined_flag_CXX
13730
13731# Flag that forces no undefined symbols.
13732no_undefined_flag=$lt_no_undefined_flag_CXX
13733
13734# Commands used to finish a libtool library installation in a directory.
13735finish_cmds=$lt_finish_cmds
13736
13737# Same as above, but a single script fragment to be evaled but not shown.
13738finish_eval=$lt_finish_eval
13739
13740# Take the output of nm and produce a listing of raw symbols and C names.
13741global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13742
13743# Transform the output of nm in a proper C declaration
13744global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13745
13746# Transform the output of nm in a C name address pair
13747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13748
13749# This is the shared library runtime path variable.
13750runpath_var=$runpath_var
13751
13752# This is the shared library path variable.
13753shlibpath_var=$shlibpath_var
13754
13755# Is shlibpath searched before the hard-coded library search path?
13756shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13757
13758# How to hardcode a shared library path into an executable.
13759hardcode_action=$hardcode_action_CXX
13760
13761# Whether we should hardcode library paths into libraries.
13762hardcode_into_libs=$hardcode_into_libs
13763
13764# Flag to hardcode \$libdir into a binary during linking.
13765# This must work even if \$libdir does not exist.
13766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13767
13768# If ld is used when linking, flag to hardcode \$libdir into
13769# a binary during linking. This must work even if \$libdir does
13770# not exist.
13771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13772
13773# Whether we need a single -rpath flag with a separated argument.
13774hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13775
13776# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13777# resulting binary.
13778hardcode_direct=$hardcode_direct_CXX
13779
13780# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13781# resulting binary.
13782hardcode_minus_L=$hardcode_minus_L_CXX
13783
13784# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13785# the resulting binary.
13786hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13787
13788# Set to yes if building a shared library automatically hardcodes DIR into the library
13789# and all subsequent libraries and executables linked against it.
13790hardcode_automatic=$hardcode_automatic_CXX
13791
13792# Variables whose values should be saved in libtool wrapper scripts and
13793# restored at relink time.
13794variables_saved_for_relink="$variables_saved_for_relink"
13795
13796# Whether libtool must link a program against all its dependency libraries.
13797link_all_deplibs=$link_all_deplibs_CXX
13798
13799# Compile-time system search path for libraries
13800sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13801
13802# Run-time system search path for libraries
13803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13804
13805# Fix the shell variable \$srcfile for the compiler.
13806fix_srcfile_path="$fix_srcfile_path_CXX"
13807
13808# Set to yes if exported symbols are required.
13809always_export_symbols=$always_export_symbols_CXX
13810
13811# The commands to list exported symbols.
13812export_symbols_cmds=$lt_export_symbols_cmds_CXX
13813
13814# The commands to extract the exported symbol list from a shared archive.
13815extract_expsyms_cmds=$lt_extract_expsyms_cmds
13816
13817# Symbols that should not be listed in the preloaded symbols.
13818exclude_expsyms=$lt_exclude_expsyms_CXX
13819
13820# Symbols that must always be exported.
13821include_expsyms=$lt_include_expsyms_CXX
13822
13823# ### END LIBTOOL TAG CONFIG: $tagname
13824
13825__EOF__
13826
13827
13828else
13829  # If there is no Makefile yet, we rely on a make rule to execute
13830  # `config.status --recheck' to rerun these tests and create the
13831  # libtool script then.
13832  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13833  if test -f "$ltmain_in"; then
13834    test -f Makefile && make "$ltmain"
13835  fi
13836fi
13837
13838
13839ac_ext=c
13840ac_cpp='$CPP $CPPFLAGS'
13841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13843ac_compiler_gnu=$ac_cv_c_compiler_gnu
13844
13845CC=$lt_save_CC
13846LDCXX=$LD
13847LD=$lt_save_LD
13848GCC=$lt_save_GCC
13849with_gnu_ldcxx=$with_gnu_ld
13850with_gnu_ld=$lt_save_with_gnu_ld
13851lt_cv_path_LDCXX=$lt_cv_path_LD
13852lt_cv_path_LD=$lt_save_path_LD
13853lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13854lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13855
13856	else
13857	  tagname=""
13858	fi
13859	;;
13860
13861      F77)
13862	if test -n "$F77" && test "X$F77" != "Xno"; then
13863
13864ac_ext=f
13865ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13866ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13868
13869
13870archive_cmds_need_lc_F77=no
13871allow_undefined_flag_F77=
13872always_export_symbols_F77=no
13873archive_expsym_cmds_F77=
13874export_dynamic_flag_spec_F77=
13875hardcode_direct_F77=no
13876hardcode_libdir_flag_spec_F77=
13877hardcode_libdir_flag_spec_ld_F77=
13878hardcode_libdir_separator_F77=
13879hardcode_minus_L_F77=no
13880hardcode_automatic_F77=no
13881module_cmds_F77=
13882module_expsym_cmds_F77=
13883link_all_deplibs_F77=unknown
13884old_archive_cmds_F77=$old_archive_cmds
13885no_undefined_flag_F77=
13886whole_archive_flag_spec_F77=
13887enable_shared_with_static_runtimes_F77=no
13888
13889# Source file extension for f77 test sources.
13890ac_ext=f
13891
13892# Object file extension for compiled f77 test sources.
13893objext=o
13894objext_F77=$objext
13895
13896# Code to be used in simple compile tests
13897lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13898
13899# Code to be used in simple link tests
13900lt_simple_link_test_code="      program t\n      end\n"
13901
13902# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13903
13904# If no C compiler was specified, use CC.
13905LTCC=${LTCC-"$CC"}
13906
13907# If no C compiler flags were specified, use CFLAGS.
13908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13909
13910# Allow CC to be a program name with arguments.
13911compiler=$CC
13912
13913
13914# save warnings/boilerplate of simple test code
13915ac_outfile=conftest.$ac_objext
13916printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13917eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13918_lt_compiler_boilerplate=`cat conftest.err`
13919$rm conftest*
13920
13921ac_outfile=conftest.$ac_objext
13922printf "$lt_simple_link_test_code" >conftest.$ac_ext
13923eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13924_lt_linker_boilerplate=`cat conftest.err`
13925$rm conftest*
13926
13927
13928# Allow CC to be a program name with arguments.
13929lt_save_CC="$CC"
13930CC=${F77-"f77"}
13931compiler=$CC
13932compiler_F77=$CC
13933for cc_temp in $compiler""; do
13934  case $cc_temp in
13935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13937    \-*) ;;
13938    *) break;;
13939  esac
13940done
13941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13942
13943
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13945$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13947$as_echo "$can_build_shared" >&6; }
13948
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13950$as_echo_n "checking whether to build shared libraries... " >&6; }
13951test "$can_build_shared" = "no" && enable_shared=no
13952
13953# On AIX, shared libraries and static libraries use the same namespace, and
13954# are all built from PIC.
13955case $host_os in
13956aix3*)
13957  test "$enable_shared" = yes && enable_static=no
13958  if test -n "$RANLIB"; then
13959    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13960    postinstall_cmds='$RANLIB $lib'
13961  fi
13962  ;;
13963aix4* | aix5*)
13964  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13965    test "$enable_shared" = yes && enable_static=no
13966  fi
13967  ;;
13968esac
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13970$as_echo "$enable_shared" >&6; }
13971
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13973$as_echo_n "checking whether to build static libraries... " >&6; }
13974# Make sure either enable_shared or enable_static is yes.
13975test "$enable_shared" = yes || enable_static=yes
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13977$as_echo "$enable_static" >&6; }
13978
13979GCC_F77="$G77"
13980LD_F77="$LD"
13981
13982lt_prog_compiler_wl_F77=
13983lt_prog_compiler_pic_F77=
13984lt_prog_compiler_static_F77=
13985
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13987$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13988
13989  if test "$GCC" = yes; then
13990    lt_prog_compiler_wl_F77='-Wl,'
13991    lt_prog_compiler_static_F77='-static'
13992
13993    case $host_os in
13994      aix*)
13995      # All AIX code is PIC.
13996      if test "$host_cpu" = ia64; then
13997	# AIX 5 now supports IA64 processor
13998	lt_prog_compiler_static_F77='-Bstatic'
13999      fi
14000      ;;
14001
14002    amigaos*)
14003      # FIXME: we need at least 68020 code to build shared libraries, but
14004      # adding the `-m68020' flag to GCC prevents building anything better,
14005      # like `-m68040'.
14006      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14007      ;;
14008
14009    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14010      # PIC is the default for these OSes.
14011      ;;
14012
14013    mingw* | pw32* | os2*)
14014      # This hack is so that the source file can tell whether it is being
14015      # built for inclusion in a dll (and should export symbols for example).
14016      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14017      ;;
14018
14019    darwin* | rhapsody*)
14020      # PIC is the default on this platform
14021      # Common symbols not allowed in MH_DYLIB files
14022      lt_prog_compiler_pic_F77='-fno-common'
14023      ;;
14024
14025    interix3*)
14026      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14027      # Instead, we relocate shared libraries at runtime.
14028      ;;
14029
14030    msdosdjgpp*)
14031      # Just because we use GCC doesn't mean we suddenly get shared libraries
14032      # on systems that don't support them.
14033      lt_prog_compiler_can_build_shared_F77=no
14034      enable_shared=no
14035      ;;
14036
14037    sysv4*MP*)
14038      if test -d /usr/nec; then
14039	lt_prog_compiler_pic_F77=-Kconform_pic
14040      fi
14041      ;;
14042
14043    hpux*)
14044      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14045      # not for PA HP-UX.
14046      case $host_cpu in
14047      hppa*64*|ia64*)
14048	# +Z the default
14049	;;
14050      *)
14051	lt_prog_compiler_pic_F77='-fPIC'
14052	;;
14053      esac
14054      ;;
14055
14056    *)
14057      lt_prog_compiler_pic_F77='-fPIC'
14058      ;;
14059    esac
14060  else
14061    # PORTME Check for flag to pass linker flags through the system compiler.
14062    case $host_os in
14063    aix*)
14064      lt_prog_compiler_wl_F77='-Wl,'
14065      if test "$host_cpu" = ia64; then
14066	# AIX 5 now supports IA64 processor
14067	lt_prog_compiler_static_F77='-Bstatic'
14068      else
14069	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14070      fi
14071      ;;
14072      darwin*)
14073        # PIC is the default on this platform
14074        # Common symbols not allowed in MH_DYLIB files
14075       case $cc_basename in
14076         xlc*)
14077         lt_prog_compiler_pic_F77='-qnocommon'
14078         lt_prog_compiler_wl_F77='-Wl,'
14079         ;;
14080       esac
14081       ;;
14082
14083    mingw* | pw32* | os2*)
14084      # This hack is so that the source file can tell whether it is being
14085      # built for inclusion in a dll (and should export symbols for example).
14086      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14087      ;;
14088
14089    hpux9* | hpux10* | hpux11*)
14090      lt_prog_compiler_wl_F77='-Wl,'
14091      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14092      # not for PA HP-UX.
14093      case $host_cpu in
14094      hppa*64*|ia64*)
14095	# +Z the default
14096	;;
14097      *)
14098	lt_prog_compiler_pic_F77='+Z'
14099	;;
14100      esac
14101      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14102      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14103      ;;
14104
14105    irix5* | irix6* | nonstopux*)
14106      lt_prog_compiler_wl_F77='-Wl,'
14107      # PIC (with -KPIC) is the default.
14108      lt_prog_compiler_static_F77='-non_shared'
14109      ;;
14110
14111    newsos6)
14112      lt_prog_compiler_pic_F77='-KPIC'
14113      lt_prog_compiler_static_F77='-Bstatic'
14114      ;;
14115
14116    linux*)
14117      case $cc_basename in
14118      icc* | ecc*)
14119	lt_prog_compiler_wl_F77='-Wl,'
14120	lt_prog_compiler_pic_F77='-KPIC'
14121	lt_prog_compiler_static_F77='-static'
14122        ;;
14123      pgcc* | pgf77* | pgf90* | pgf95*)
14124        # Portland Group compilers (*not* the Pentium gcc compiler,
14125	# which looks to be a dead project)
14126	lt_prog_compiler_wl_F77='-Wl,'
14127	lt_prog_compiler_pic_F77='-fpic'
14128	lt_prog_compiler_static_F77='-Bstatic'
14129        ;;
14130      ccc*)
14131        lt_prog_compiler_wl_F77='-Wl,'
14132        # All Alpha code is PIC.
14133        lt_prog_compiler_static_F77='-non_shared'
14134        ;;
14135      esac
14136      ;;
14137
14138    osf3* | osf4* | osf5*)
14139      lt_prog_compiler_wl_F77='-Wl,'
14140      # All OSF/1 code is PIC.
14141      lt_prog_compiler_static_F77='-non_shared'
14142      ;;
14143
14144    solaris*)
14145      lt_prog_compiler_pic_F77='-KPIC'
14146      lt_prog_compiler_static_F77='-Bstatic'
14147      case $cc_basename in
14148      f77* | f90* | f95*)
14149	lt_prog_compiler_wl_F77='-Qoption ld ';;
14150      *)
14151	lt_prog_compiler_wl_F77='-Wl,';;
14152      esac
14153      ;;
14154
14155    sunos4*)
14156      lt_prog_compiler_wl_F77='-Qoption ld '
14157      lt_prog_compiler_pic_F77='-PIC'
14158      lt_prog_compiler_static_F77='-Bstatic'
14159      ;;
14160
14161    sysv4 | sysv4.2uw2* | sysv4.3*)
14162      lt_prog_compiler_wl_F77='-Wl,'
14163      lt_prog_compiler_pic_F77='-KPIC'
14164      lt_prog_compiler_static_F77='-Bstatic'
14165      ;;
14166
14167    sysv4*MP*)
14168      if test -d /usr/nec ;then
14169	lt_prog_compiler_pic_F77='-Kconform_pic'
14170	lt_prog_compiler_static_F77='-Bstatic'
14171      fi
14172      ;;
14173
14174    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14175      lt_prog_compiler_wl_F77='-Wl,'
14176      lt_prog_compiler_pic_F77='-KPIC'
14177      lt_prog_compiler_static_F77='-Bstatic'
14178      ;;
14179
14180    unicos*)
14181      lt_prog_compiler_wl_F77='-Wl,'
14182      lt_prog_compiler_can_build_shared_F77=no
14183      ;;
14184
14185    uts4*)
14186      lt_prog_compiler_pic_F77='-pic'
14187      lt_prog_compiler_static_F77='-Bstatic'
14188      ;;
14189
14190    *)
14191      lt_prog_compiler_can_build_shared_F77=no
14192      ;;
14193    esac
14194  fi
14195
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14197$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14198
14199#
14200# Check to make sure the PIC flag actually works.
14201#
14202if test -n "$lt_prog_compiler_pic_F77"; then
14203
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14205$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14206if ${lt_prog_compiler_pic_works_F77+:} false; then :
14207  $as_echo_n "(cached) " >&6
14208else
14209  lt_prog_compiler_pic_works_F77=no
14210  ac_outfile=conftest.$ac_objext
14211   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14212   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14213   # Insert the option either (1) after the last *FLAGS variable, or
14214   # (2) before a word containing "conftest.", or (3) at the end.
14215   # Note that $ac_compile itself does not contain backslashes and begins
14216   # with a dollar sign (not a hyphen), so the echo should work correctly.
14217   # The option is referenced via a variable to avoid confusing sed.
14218   lt_compile=`echo "$ac_compile" | $SED \
14219   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221   -e 's:$: $lt_compiler_flag:'`
14222   (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
14223   (eval "$lt_compile" 2>conftest.err)
14224   ac_status=$?
14225   cat conftest.err >&5
14226   echo "$as_me:14226: \$? = $ac_status" >&5
14227   if (exit $ac_status) && test -s "$ac_outfile"; then
14228     # The compiler can only warn and ignore the option if not recognized
14229     # So say no if there are warnings other than the usual output.
14230     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14231     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14232     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14233       lt_prog_compiler_pic_works_F77=yes
14234     fi
14235   fi
14236   $rm conftest*
14237
14238fi
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14240$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14241
14242if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14243    case $lt_prog_compiler_pic_F77 in
14244     "" | " "*) ;;
14245     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14246     esac
14247else
14248    lt_prog_compiler_pic_F77=
14249     lt_prog_compiler_can_build_shared_F77=no
14250fi
14251
14252fi
14253case $host_os in
14254  # For platforms which do not support PIC, -DPIC is meaningless:
14255  *djgpp*)
14256    lt_prog_compiler_pic_F77=
14257    ;;
14258  *)
14259    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14260    ;;
14261esac
14262
14263#
14264# Check to make sure the static flag actually works.
14265#
14266wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14268$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14269if ${lt_prog_compiler_static_works_F77+:} false; then :
14270  $as_echo_n "(cached) " >&6
14271else
14272  lt_prog_compiler_static_works_F77=no
14273   save_LDFLAGS="$LDFLAGS"
14274   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14275   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14276   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14277     # The linker can only warn and ignore the option if not recognized
14278     # So say no if there are warnings
14279     if test -s conftest.err; then
14280       # Append any errors to the config.log.
14281       cat conftest.err 1>&5
14282       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14283       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14284       if diff conftest.exp conftest.er2 >/dev/null; then
14285         lt_prog_compiler_static_works_F77=yes
14286       fi
14287     else
14288       lt_prog_compiler_static_works_F77=yes
14289     fi
14290   fi
14291   $rm conftest*
14292   LDFLAGS="$save_LDFLAGS"
14293
14294fi
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
14296$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14297
14298if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14299    :
14300else
14301    lt_prog_compiler_static_F77=
14302fi
14303
14304
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14306$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14307if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14308  $as_echo_n "(cached) " >&6
14309else
14310  lt_cv_prog_compiler_c_o_F77=no
14311   $rm -r conftest 2>/dev/null
14312   mkdir conftest
14313   cd conftest
14314   mkdir out
14315   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14316
14317   lt_compiler_flag="-o out/conftest2.$ac_objext"
14318   # Insert the option either (1) after the last *FLAGS variable, or
14319   # (2) before a word containing "conftest.", or (3) at the end.
14320   # Note that $ac_compile itself does not contain backslashes and begins
14321   # with a dollar sign (not a hyphen), so the echo should work correctly.
14322   lt_compile=`echo "$ac_compile" | $SED \
14323   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14324   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14325   -e 's:$: $lt_compiler_flag:'`
14326   (eval echo "\"\$as_me:14326: $lt_compile\"" >&5)
14327   (eval "$lt_compile" 2>out/conftest.err)
14328   ac_status=$?
14329   cat out/conftest.err >&5
14330   echo "$as_me:14330: \$? = $ac_status" >&5
14331   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14332   then
14333     # The compiler can only warn and ignore the option if not recognized
14334     # So say no if there are warnings
14335     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14336     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14337     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14338       lt_cv_prog_compiler_c_o_F77=yes
14339     fi
14340   fi
14341   chmod u+w . 2>&5
14342   $rm conftest*
14343   # SGI C++ compiler will create directory out/ii_files/ for
14344   # template instantiation
14345   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14346   $rm out/* && rmdir out
14347   cd ..
14348   rmdir conftest
14349   $rm conftest*
14350
14351fi
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14353$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14354
14355
14356hard_links="nottested"
14357if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14358  # do not overwrite the value of need_locks provided by the user
14359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14360$as_echo_n "checking if we can lock with hard links... " >&6; }
14361  hard_links=yes
14362  $rm conftest*
14363  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14364  touch conftest.a
14365  ln conftest.a conftest.b 2>&5 || hard_links=no
14366  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14368$as_echo "$hard_links" >&6; }
14369  if test "$hard_links" = no; then
14370    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14371$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14372    need_locks=warn
14373  fi
14374else
14375  need_locks=no
14376fi
14377
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14379$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14380
14381  runpath_var=
14382  allow_undefined_flag_F77=
14383  enable_shared_with_static_runtimes_F77=no
14384  archive_cmds_F77=
14385  archive_expsym_cmds_F77=
14386  old_archive_From_new_cmds_F77=
14387  old_archive_from_expsyms_cmds_F77=
14388  export_dynamic_flag_spec_F77=
14389  whole_archive_flag_spec_F77=
14390  thread_safe_flag_spec_F77=
14391  hardcode_libdir_flag_spec_F77=
14392  hardcode_libdir_flag_spec_ld_F77=
14393  hardcode_libdir_separator_F77=
14394  hardcode_direct_F77=no
14395  hardcode_minus_L_F77=no
14396  hardcode_shlibpath_var_F77=unsupported
14397  link_all_deplibs_F77=unknown
14398  hardcode_automatic_F77=no
14399  module_cmds_F77=
14400  module_expsym_cmds_F77=
14401  always_export_symbols_F77=no
14402  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14403  # include_expsyms should be a list of space-separated symbols to be *always*
14404  # included in the symbol list
14405  include_expsyms_F77=
14406  # exclude_expsyms can be an extended regexp of symbols to exclude
14407  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14408  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14409  # as well as any symbol that contains `d'.
14410  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14411  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14412  # platforms (ab)use it in PIC code, but their linkers get confused if
14413  # the symbol is explicitly referenced.  Since portable code cannot
14414  # rely on this symbol name, it's probably fine to never include it in
14415  # preloaded symbol tables.
14416  extract_expsyms_cmds=
14417  # Just being paranoid about ensuring that cc_basename is set.
14418  for cc_temp in $compiler""; do
14419  case $cc_temp in
14420    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14421    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14422    \-*) ;;
14423    *) break;;
14424  esac
14425done
14426cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14427
14428  case $host_os in
14429  cygwin* | mingw* | pw32*)
14430    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14431    # When not using gcc, we currently assume that we are using
14432    # Microsoft Visual C++.
14433    if test "$GCC" != yes; then
14434      with_gnu_ld=no
14435    fi
14436    ;;
14437  interix*)
14438    # we just hope/assume this is gcc and not c89 (= MSVC++)
14439    with_gnu_ld=yes
14440    ;;
14441  openbsd*)
14442    with_gnu_ld=no
14443    ;;
14444  esac
14445
14446  ld_shlibs_F77=yes
14447  if test "$with_gnu_ld" = yes; then
14448    # If archive_cmds runs LD, not CC, wlarc should be empty
14449    wlarc='${wl}'
14450
14451    # Set some defaults for GNU ld with shared library support. These
14452    # are reset later if shared libraries are not supported. Putting them
14453    # here allows them to be overridden if necessary.
14454    runpath_var=LD_RUN_PATH
14455    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14456    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14457    # ancient GNU ld didn't support --whole-archive et. al.
14458    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14459	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14460      else
14461  	whole_archive_flag_spec_F77=
14462    fi
14463    supports_anon_versioning=no
14464    case `$LD -v 2>/dev/null` in
14465      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14466      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14467      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14468      *\ 2.11.*) ;; # other 2.11 versions
14469      *) supports_anon_versioning=yes ;;
14470    esac
14471
14472    # See if GNU ld supports shared libraries.
14473    case $host_os in
14474    aix3* | aix4* | aix5*)
14475      # On AIX/PPC, the GNU linker is very broken
14476      if test "$host_cpu" != ia64; then
14477	ld_shlibs_F77=no
14478	cat <<EOF 1>&2
14479
14480*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14481*** to be unable to reliably create shared libraries on AIX.
14482*** Therefore, libtool is disabling shared libraries support.  If you
14483*** really care for shared libraries, you may want to modify your PATH
14484*** so that a non-GNU linker is found, and then restart.
14485
14486EOF
14487      fi
14488      ;;
14489
14490    amigaos*)
14491      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)'
14492      hardcode_libdir_flag_spec_F77='-L$libdir'
14493      hardcode_minus_L_F77=yes
14494
14495      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14496      # that the semantics of dynamic libraries on AmigaOS, at least up
14497      # to version 4, is to share data among multiple programs linked
14498      # with the same dynamic library.  Since this doesn't match the
14499      # behavior of shared libraries on other platforms, we can't use
14500      # them.
14501      ld_shlibs_F77=no
14502      ;;
14503
14504    beos*)
14505      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506	allow_undefined_flag_F77=unsupported
14507	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14508	# support --undefined.  This deserves some investigation.  FIXME
14509	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14510      else
14511	ld_shlibs_F77=no
14512      fi
14513      ;;
14514
14515    cygwin* | mingw* | pw32*)
14516      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14517      # as there is no search path for DLLs.
14518      hardcode_libdir_flag_spec_F77='-L$libdir'
14519      allow_undefined_flag_F77=unsupported
14520      always_export_symbols_F77=no
14521      enable_shared_with_static_runtimes_F77=yes
14522      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14523
14524      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14525        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14526	# If the export-symbols file already is a .def file (1st line
14527	# is EXPORTS), use it as is; otherwise, prepend...
14528	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14529	  cp $export_symbols $output_objdir/$soname.def;
14530	else
14531	  echo EXPORTS > $output_objdir/$soname.def;
14532	  cat $export_symbols >> $output_objdir/$soname.def;
14533	fi~
14534	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14535      else
14536	ld_shlibs_F77=no
14537      fi
14538      ;;
14539
14540    interix3*)
14541      hardcode_direct_F77=no
14542      hardcode_shlibpath_var_F77=no
14543      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14544      export_dynamic_flag_spec_F77='${wl}-E'
14545      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14546      # Instead, shared libraries are loaded at an image base (0x10000000 by
14547      # default) and relocated if they conflict, which is a slow very memory
14548      # consuming and fragmenting process.  To avoid this, we pick a random,
14549      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14550      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14551      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14552      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14553      ;;
14554
14555    linux*)
14556      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14557	tmp_addflag=
14558	case $cc_basename,$host_cpu in
14559	pgcc*)				# Portland Group C compiler
14560	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14561	  tmp_addflag=' $pic_flag'
14562	  ;;
14563	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14564	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14565	  tmp_addflag=' $pic_flag -Mnomain' ;;
14566	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14567	  tmp_addflag=' -i_dynamic' ;;
14568	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14569	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14570	ifc* | ifort*)			# Intel Fortran compiler
14571	  tmp_addflag=' -nofor_main' ;;
14572	esac
14573	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574
14575	if test $supports_anon_versioning = yes; then
14576	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14577  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14578  $echo "local: *; };" >> $output_objdir/$libname.ver~
14579	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14580	fi
14581      else
14582	ld_shlibs_F77=no
14583      fi
14584      ;;
14585
14586    netbsd*)
14587      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14588	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14589	wlarc=
14590      else
14591	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14592	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14593      fi
14594      ;;
14595
14596    solaris*)
14597      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14598	ld_shlibs_F77=no
14599	cat <<EOF 1>&2
14600
14601*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14602*** create shared libraries on Solaris systems.  Therefore, libtool
14603*** is disabling shared libraries support.  We urge you to upgrade GNU
14604*** binutils to release 2.9.1 or newer.  Another option is to modify
14605*** your PATH or compiler configuration so that the native linker is
14606*** used, and then restart.
14607
14608EOF
14609      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14610	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14611	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14612      else
14613	ld_shlibs_F77=no
14614      fi
14615      ;;
14616
14617    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14618      case `$LD -v 2>&1` in
14619        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14620	ld_shlibs_F77=no
14621	cat <<_LT_EOF 1>&2
14622
14623*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14624*** reliably create shared libraries on SCO systems.  Therefore, libtool
14625*** is disabling shared libraries support.  We urge you to upgrade GNU
14626*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14627*** your PATH or compiler configuration so that the native linker is
14628*** used, and then restart.
14629
14630_LT_EOF
14631	;;
14632	*)
14633	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14634	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14635	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14636	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14637	  else
14638	    ld_shlibs_F77=no
14639	  fi
14640	;;
14641      esac
14642      ;;
14643
14644    sunos4*)
14645      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14646      wlarc=
14647      hardcode_direct_F77=yes
14648      hardcode_shlibpath_var_F77=no
14649      ;;
14650
14651    *)
14652      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14653	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14655      else
14656	ld_shlibs_F77=no
14657      fi
14658      ;;
14659    esac
14660
14661    if test "$ld_shlibs_F77" = no; then
14662      runpath_var=
14663      hardcode_libdir_flag_spec_F77=
14664      export_dynamic_flag_spec_F77=
14665      whole_archive_flag_spec_F77=
14666    fi
14667  else
14668    # PORTME fill in a description of your system's linker (not GNU ld)
14669    case $host_os in
14670    aix3*)
14671      allow_undefined_flag_F77=unsupported
14672      always_export_symbols_F77=yes
14673      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'
14674      # Note: this linker hardcodes the directories in LIBPATH if there
14675      # are no directories specified by -L.
14676      hardcode_minus_L_F77=yes
14677      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14678	# Neither direct hardcoding nor static linking is supported with a
14679	# broken collect2.
14680	hardcode_direct_F77=unsupported
14681      fi
14682      ;;
14683
14684    aix4* | aix5*)
14685      if test "$host_cpu" = ia64; then
14686	# On IA64, the linker does run time linking by default, so we don't
14687	# have to do anything special.
14688	aix_use_runtimelinking=no
14689	exp_sym_flag='-Bexport'
14690	no_entry_flag=""
14691      else
14692	# If we're using GNU nm, then we don't want the "-C" option.
14693	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14694	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14695	  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'
14696	else
14697	  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'
14698	fi
14699	aix_use_runtimelinking=no
14700
14701	# Test if we are trying to use run time linking or normal
14702	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14703	# need to do runtime linking.
14704	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14705	  for ld_flag in $LDFLAGS; do
14706  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14707  	    aix_use_runtimelinking=yes
14708  	    break
14709  	  fi
14710	  done
14711	  ;;
14712	esac
14713
14714	exp_sym_flag='-bexport'
14715	no_entry_flag='-bnoentry'
14716      fi
14717
14718      # When large executables or shared objects are built, AIX ld can
14719      # have problems creating the table of contents.  If linking a library
14720      # or program results in "error TOC overflow" add -mminimal-toc to
14721      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14722      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14723
14724      archive_cmds_F77=''
14725      hardcode_direct_F77=yes
14726      hardcode_libdir_separator_F77=':'
14727      link_all_deplibs_F77=yes
14728
14729      if test "$GCC" = yes; then
14730	case $host_os in aix4.[012]|aix4.[012].*)
14731	# We only want to do this on AIX 4.2 and lower, the check
14732	# below for broken collect2 doesn't work under 4.3+
14733	  collect2name=`${CC} -print-prog-name=collect2`
14734	  if test -f "$collect2name" && \
14735  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14736	  then
14737  	  # We have reworked collect2
14738  	  hardcode_direct_F77=yes
14739	  else
14740  	  # We have old collect2
14741  	  hardcode_direct_F77=unsupported
14742  	  # It fails to find uninstalled libraries when the uninstalled
14743  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14744  	  # to unsupported forces relinking
14745  	  hardcode_minus_L_F77=yes
14746  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14747  	  hardcode_libdir_separator_F77=
14748	  fi
14749	  ;;
14750	esac
14751	shared_flag='-shared'
14752	if test "$aix_use_runtimelinking" = yes; then
14753	  shared_flag="$shared_flag "'${wl}-G'
14754	fi
14755      else
14756	# not using gcc
14757	if test "$host_cpu" = ia64; then
14758  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14759  	# chokes on -Wl,-G. The following line is correct:
14760	  shared_flag='-G'
14761	else
14762	  if test "$aix_use_runtimelinking" = yes; then
14763	    shared_flag='${wl}-G'
14764	  else
14765	    shared_flag='${wl}-bM:SRE'
14766	  fi
14767	fi
14768      fi
14769
14770      # It seems that -bexpall does not export symbols beginning with
14771      # underscore (_), so it is better to generate a list of symbols to export.
14772      always_export_symbols_F77=yes
14773      if test "$aix_use_runtimelinking" = yes; then
14774	# Warning - without using the other runtime loading flags (-brtl),
14775	# -berok will link without error, but may produce a broken library.
14776	allow_undefined_flag_F77='-berok'
14777       # Determine the default libpath from the value encoded in an empty executable.
14778       cat > conftest.$ac_ext <<_ACEOF
14779      program main
14780
14781      end
14782_ACEOF
14783if ac_fn_f77_try_link "$LINENO"; then :
14784
14785aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14786}'`
14787# Check for a 64-bit object if we didn't find anything.
14788if 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; }
14789}'`; fi
14790fi
14791rm -f core conftest.err conftest.$ac_objext \
14792    conftest$ac_exeext conftest.$ac_ext
14793if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14794
14795       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14796	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14797       else
14798	if test "$host_cpu" = ia64; then
14799	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14800	  allow_undefined_flag_F77="-z nodefs"
14801	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14802	else
14803	 # Determine the default libpath from the value encoded in an empty executable.
14804	 cat > conftest.$ac_ext <<_ACEOF
14805      program main
14806
14807      end
14808_ACEOF
14809if ac_fn_f77_try_link "$LINENO"; then :
14810
14811aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14812}'`
14813# Check for a 64-bit object if we didn't find anything.
14814if 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; }
14815}'`; fi
14816fi
14817rm -f core conftest.err conftest.$ac_objext \
14818    conftest$ac_exeext conftest.$ac_ext
14819if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14820
14821	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14822	  # Warning - without using the other run time loading flags,
14823	  # -berok will link without error, but may produce a broken library.
14824	  no_undefined_flag_F77=' ${wl}-bernotok'
14825	  allow_undefined_flag_F77=' ${wl}-berok'
14826	  # Exported symbols can be pulled into shared objects from archives
14827	  whole_archive_flag_spec_F77='$convenience'
14828	  archive_cmds_need_lc_F77=yes
14829	  # This is similar to how AIX traditionally builds its shared libraries.
14830	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14831	fi
14832      fi
14833      ;;
14834
14835    amigaos*)
14836      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)'
14837      hardcode_libdir_flag_spec_F77='-L$libdir'
14838      hardcode_minus_L_F77=yes
14839      # see comment about different semantics on the GNU ld section
14840      ld_shlibs_F77=no
14841      ;;
14842
14843    bsdi[45]*)
14844      export_dynamic_flag_spec_F77=-rdynamic
14845      ;;
14846
14847    cygwin* | mingw* | pw32*)
14848      # When not using gcc, we currently assume that we are using
14849      # Microsoft Visual C++.
14850      # hardcode_libdir_flag_spec is actually meaningless, as there is
14851      # no search path for DLLs.
14852      hardcode_libdir_flag_spec_F77=' '
14853      allow_undefined_flag_F77=unsupported
14854      # Tell ltmain to make .lib files, not .a files.
14855      libext=lib
14856      # Tell ltmain to make .dll files, not .so files.
14857      shrext_cmds=".dll"
14858      # FIXME: Setting linknames here is a bad hack.
14859      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14860      # The linker will automatically build a .lib file if we build a DLL.
14861      old_archive_From_new_cmds_F77='true'
14862      # FIXME: Should let the user specify the lib program.
14863      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14864      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14865      enable_shared_with_static_runtimes_F77=yes
14866      ;;
14867
14868    darwin* | rhapsody*)
14869      case $host_os in
14870        rhapsody* | darwin1.[012])
14871         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14872         ;;
14873       *) # Darwin 1.3 on
14874         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14875           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14876         else
14877           case ${MACOSX_DEPLOYMENT_TARGET} in
14878             10.[012])
14879               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14880               ;;
14881             10.*)
14882               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14883               ;;
14884           esac
14885         fi
14886         ;;
14887      esac
14888      archive_cmds_need_lc_F77=no
14889      hardcode_direct_F77=no
14890      hardcode_automatic_F77=yes
14891      hardcode_shlibpath_var_F77=unsupported
14892      whole_archive_flag_spec_F77=''
14893      link_all_deplibs_F77=yes
14894    if test "$GCC" = yes ; then
14895    	output_verbose_link_cmd='echo'
14896        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14897      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14898      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14899      archive_expsym_cmds_F77='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}'
14900      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}'
14901    else
14902      case $cc_basename in
14903        xlc*)
14904         output_verbose_link_cmd='echo'
14905         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14906         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14909          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}'
14910          ;;
14911       *)
14912         ld_shlibs_F77=no
14913          ;;
14914      esac
14915    fi
14916      ;;
14917
14918    dgux*)
14919      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920      hardcode_libdir_flag_spec_F77='-L$libdir'
14921      hardcode_shlibpath_var_F77=no
14922      ;;
14923
14924    freebsd1*)
14925      ld_shlibs_F77=no
14926      ;;
14927
14928    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14929    # support.  Future versions do this automatically, but an explicit c++rt0.o
14930    # does not break anything, and helps significantly (at the cost of a little
14931    # extra space).
14932    freebsd2.2*)
14933      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14934      hardcode_libdir_flag_spec_F77='-R$libdir'
14935      hardcode_direct_F77=yes
14936      hardcode_shlibpath_var_F77=no
14937      ;;
14938
14939    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14940    freebsd2*)
14941      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942      hardcode_direct_F77=yes
14943      hardcode_minus_L_F77=yes
14944      hardcode_shlibpath_var_F77=no
14945      ;;
14946
14947    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14948    freebsd* | kfreebsd*-gnu | dragonfly*)
14949      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14950      hardcode_libdir_flag_spec_F77='-R$libdir'
14951      hardcode_direct_F77=yes
14952      hardcode_shlibpath_var_F77=no
14953      ;;
14954
14955    hpux9*)
14956      if test "$GCC" = yes; then
14957	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'
14958      else
14959	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'
14960      fi
14961      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962      hardcode_libdir_separator_F77=:
14963      hardcode_direct_F77=yes
14964
14965      # hardcode_minus_L: Not really in the search PATH,
14966      # but as the default location of the library.
14967      hardcode_minus_L_F77=yes
14968      export_dynamic_flag_spec_F77='${wl}-E'
14969      ;;
14970
14971    hpux10*)
14972      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14973	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14974      else
14975	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14976      fi
14977      if test "$with_gnu_ld" = no; then
14978	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14979	hardcode_libdir_separator_F77=:
14980
14981	hardcode_direct_F77=yes
14982	export_dynamic_flag_spec_F77='${wl}-E'
14983
14984	# hardcode_minus_L: Not really in the search PATH,
14985	# but as the default location of the library.
14986	hardcode_minus_L_F77=yes
14987      fi
14988      ;;
14989
14990    hpux11*)
14991      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14992	case $host_cpu in
14993	hppa*64*)
14994	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14995	  ;;
14996	ia64*)
14997	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14998	  ;;
14999	*)
15000	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15001	  ;;
15002	esac
15003      else
15004	case $host_cpu in
15005	hppa*64*)
15006	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007	  ;;
15008	ia64*)
15009	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15010	  ;;
15011	*)
15012	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15013	  ;;
15014	esac
15015      fi
15016      if test "$with_gnu_ld" = no; then
15017	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15018	hardcode_libdir_separator_F77=:
15019
15020	case $host_cpu in
15021	hppa*64*|ia64*)
15022	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15023	  hardcode_direct_F77=no
15024	  hardcode_shlibpath_var_F77=no
15025	  ;;
15026	*)
15027	  hardcode_direct_F77=yes
15028	  export_dynamic_flag_spec_F77='${wl}-E'
15029
15030	  # hardcode_minus_L: Not really in the search PATH,
15031	  # but as the default location of the library.
15032	  hardcode_minus_L_F77=yes
15033	  ;;
15034	esac
15035      fi
15036      ;;
15037
15038    irix5* | irix6* | nonstopux*)
15039      if test "$GCC" = yes; then
15040	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'
15041      else
15042	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'
15043	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15044      fi
15045      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046      hardcode_libdir_separator_F77=:
15047      link_all_deplibs_F77=yes
15048      ;;
15049
15050    netbsd*)
15051      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15053      else
15054	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15055      fi
15056      hardcode_libdir_flag_spec_F77='-R$libdir'
15057      hardcode_direct_F77=yes
15058      hardcode_shlibpath_var_F77=no
15059      ;;
15060
15061    newsos6)
15062      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063      hardcode_direct_F77=yes
15064      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15065      hardcode_libdir_separator_F77=:
15066      hardcode_shlibpath_var_F77=no
15067      ;;
15068
15069    openbsd*)
15070      hardcode_direct_F77=yes
15071      hardcode_shlibpath_var_F77=no
15072      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15073	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15074	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15075	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15076	export_dynamic_flag_spec_F77='${wl}-E'
15077      else
15078       case $host_os in
15079	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15080	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15081	   hardcode_libdir_flag_spec_F77='-R$libdir'
15082	   ;;
15083	 *)
15084	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15085	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15086	   ;;
15087       esac
15088      fi
15089      ;;
15090
15091    os2*)
15092      hardcode_libdir_flag_spec_F77='-L$libdir'
15093      hardcode_minus_L_F77=yes
15094      allow_undefined_flag_F77=unsupported
15095      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'
15096      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15097      ;;
15098
15099    osf3*)
15100      if test "$GCC" = yes; then
15101	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15102	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'
15103      else
15104	allow_undefined_flag_F77=' -expect_unresolved \*'
15105	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'
15106      fi
15107      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15108      hardcode_libdir_separator_F77=:
15109      ;;
15110
15111    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15112      if test "$GCC" = yes; then
15113	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15114	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'
15115	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15116      else
15117	allow_undefined_flag_F77=' -expect_unresolved \*'
15118	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'
15119	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~
15120	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15121
15122	# Both c and cxx compiler support -rpath directly
15123	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15124      fi
15125      hardcode_libdir_separator_F77=:
15126      ;;
15127
15128    solaris*)
15129      no_undefined_flag_F77=' -z text'
15130      if test "$GCC" = yes; then
15131	wlarc='${wl}'
15132	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15133	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15134	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15135      else
15136	wlarc=''
15137	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15139  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15140      fi
15141      hardcode_libdir_flag_spec_F77='-R$libdir'
15142      hardcode_shlibpath_var_F77=no
15143      case $host_os in
15144      solaris2.[0-5] | solaris2.[0-5].*) ;;
15145      *)
15146 	# The compiler driver will combine linker options so we
15147 	# cannot just pass the convience library names through
15148 	# without $wl, iff we do not link with $LD.
15149 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15150 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15151 	case $wlarc in
15152 	'')
15153 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15154 	*)
15155 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15156 	esac ;;
15157      esac
15158      link_all_deplibs_F77=yes
15159      ;;
15160
15161    sunos4*)
15162      if test "x$host_vendor" = xsequent; then
15163	# Use $CC to link under sequent, because it throws in some extra .o
15164	# files that make .init and .fini sections work.
15165	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15166      else
15167	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15168      fi
15169      hardcode_libdir_flag_spec_F77='-L$libdir'
15170      hardcode_direct_F77=yes
15171      hardcode_minus_L_F77=yes
15172      hardcode_shlibpath_var_F77=no
15173      ;;
15174
15175    sysv4)
15176      case $host_vendor in
15177	sni)
15178	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179	  hardcode_direct_F77=yes # is this really true???
15180	;;
15181	siemens)
15182	  ## LD is ld it makes a PLAMLIB
15183	  ## CC just makes a GrossModule.
15184	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15185	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15186	  hardcode_direct_F77=no
15187        ;;
15188	motorola)
15189	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15190	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15191	;;
15192      esac
15193      runpath_var='LD_RUN_PATH'
15194      hardcode_shlibpath_var_F77=no
15195      ;;
15196
15197    sysv4.3*)
15198      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199      hardcode_shlibpath_var_F77=no
15200      export_dynamic_flag_spec_F77='-Bexport'
15201      ;;
15202
15203    sysv4*MP*)
15204      if test -d /usr/nec; then
15205	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206	hardcode_shlibpath_var_F77=no
15207	runpath_var=LD_RUN_PATH
15208	hardcode_runpath_var=yes
15209	ld_shlibs_F77=yes
15210      fi
15211      ;;
15212
15213    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15214      no_undefined_flag_F77='${wl}-z,text'
15215      archive_cmds_need_lc_F77=no
15216      hardcode_shlibpath_var_F77=no
15217      runpath_var='LD_RUN_PATH'
15218
15219      if test "$GCC" = yes; then
15220	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15221	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222      else
15223	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15225      fi
15226      ;;
15227
15228    sysv5* | sco3.2v5* | sco5v6*)
15229      # Note: We can NOT use -z defs as we might desire, because we do not
15230      # link with -lc, and that would cause any symbols used from libc to
15231      # always be unresolved, which means just about no library would
15232      # ever link correctly.  If we're not using GNU ld we use -z text
15233      # though, which does catch some bad symbols but isn't as heavy-handed
15234      # as -z defs.
15235      no_undefined_flag_F77='${wl}-z,text'
15236      allow_undefined_flag_F77='${wl}-z,nodefs'
15237      archive_cmds_need_lc_F77=no
15238      hardcode_shlibpath_var_F77=no
15239      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15240      hardcode_libdir_separator_F77=':'
15241      link_all_deplibs_F77=yes
15242      export_dynamic_flag_spec_F77='${wl}-Bexport'
15243      runpath_var='LD_RUN_PATH'
15244
15245      if test "$GCC" = yes; then
15246	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15247	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248      else
15249	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251      fi
15252      ;;
15253
15254    uts4*)
15255      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256      hardcode_libdir_flag_spec_F77='-L$libdir'
15257      hardcode_shlibpath_var_F77=no
15258      ;;
15259
15260    *)
15261      ld_shlibs_F77=no
15262      ;;
15263    esac
15264  fi
15265
15266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15267$as_echo "$ld_shlibs_F77" >&6; }
15268test "$ld_shlibs_F77" = no && can_build_shared=no
15269
15270#
15271# Do we need to explicitly link libc?
15272#
15273case "x$archive_cmds_need_lc_F77" in
15274x|xyes)
15275  # Assume -lc should be added
15276  archive_cmds_need_lc_F77=yes
15277
15278  if test "$enable_shared" = yes && test "$GCC" = yes; then
15279    case $archive_cmds_F77 in
15280    *'~'*)
15281      # FIXME: we may have to deal with multi-command sequences.
15282      ;;
15283    '$CC '*)
15284      # Test whether the compiler implicitly links with -lc since on some
15285      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15286      # to ld, don't add -lc before -lgcc.
15287      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15288$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15289      $rm conftest*
15290      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15291
15292      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15293  (eval $ac_compile) 2>&5
15294  ac_status=$?
15295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15296  test $ac_status = 0; } 2>conftest.err; then
15297        soname=conftest
15298        lib=conftest
15299        libobjs=conftest.$ac_objext
15300        deplibs=
15301        wl=$lt_prog_compiler_wl_F77
15302	pic_flag=$lt_prog_compiler_pic_F77
15303        compiler_flags=-v
15304        linker_flags=-v
15305        verstring=
15306        output_objdir=.
15307        libname=conftest
15308        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15309        allow_undefined_flag_F77=
15310        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15311  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15312  ac_status=$?
15313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15314  test $ac_status = 0; }
15315        then
15316	  archive_cmds_need_lc_F77=no
15317        else
15318	  archive_cmds_need_lc_F77=yes
15319        fi
15320        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15321      else
15322        cat conftest.err 1>&5
15323      fi
15324      $rm conftest*
15325      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15326$as_echo "$archive_cmds_need_lc_F77" >&6; }
15327      ;;
15328    esac
15329  fi
15330  ;;
15331esac
15332
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15334$as_echo_n "checking dynamic linker characteristics... " >&6; }
15335library_names_spec=
15336libname_spec='lib$name'
15337soname_spec=
15338shrext_cmds=".so"
15339postinstall_cmds=
15340postuninstall_cmds=
15341finish_cmds=
15342finish_eval=
15343shlibpath_var=
15344shlibpath_overrides_runpath=unknown
15345version_type=none
15346dynamic_linker="$host_os ld.so"
15347sys_lib_dlsearch_path_spec="/lib /usr/lib"
15348if test "$GCC" = yes; then
15349  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15350  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15351    # if the path contains ";" then we assume it to be the separator
15352    # otherwise default to the standard path separator (i.e. ":") - it is
15353    # assumed that no part of a normal pathname contains ";" but that should
15354    # okay in the real world where ";" in dirpaths is itself problematic.
15355    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15356  else
15357    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15358  fi
15359else
15360  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15361fi
15362need_lib_prefix=unknown
15363hardcode_into_libs=no
15364
15365# when you set need_version to no, make sure it does not cause -set_version
15366# flags to be left without arguments
15367need_version=unknown
15368
15369case $host_os in
15370aix3*)
15371  version_type=linux
15372  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15373  shlibpath_var=LIBPATH
15374
15375  # AIX 3 has no versioning support, so we append a major version to the name.
15376  soname_spec='${libname}${release}${shared_ext}$major'
15377  ;;
15378
15379aix4* | aix5*)
15380  version_type=linux
15381  need_lib_prefix=no
15382  need_version=no
15383  hardcode_into_libs=yes
15384  if test "$host_cpu" = ia64; then
15385    # AIX 5 supports IA64
15386    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15387    shlibpath_var=LD_LIBRARY_PATH
15388  else
15389    # With GCC up to 2.95.x, collect2 would create an import file
15390    # for dependence libraries.  The import file would start with
15391    # the line `#! .'.  This would cause the generated library to
15392    # depend on `.', always an invalid library.  This was fixed in
15393    # development snapshots of GCC prior to 3.0.
15394    case $host_os in
15395      aix4 | aix4.[01] | aix4.[01].*)
15396      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15397	   echo ' yes '
15398	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15399	:
15400      else
15401	can_build_shared=no
15402      fi
15403      ;;
15404    esac
15405    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15406    # soname into executable. Probably we can add versioning support to
15407    # collect2, so additional links can be useful in future.
15408    if test "$aix_use_runtimelinking" = yes; then
15409      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15410      # instead of lib<name>.a to let people know that these are not
15411      # typical AIX shared libraries.
15412      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413    else
15414      # We preserve .a as extension for shared libraries through AIX4.2
15415      # and later when we are not doing run time linking.
15416      library_names_spec='${libname}${release}.a $libname.a'
15417      soname_spec='${libname}${release}${shared_ext}$major'
15418    fi
15419    shlibpath_var=LIBPATH
15420  fi
15421  ;;
15422
15423amigaos*)
15424  library_names_spec='$libname.ixlibrary $libname.a'
15425  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15426  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'
15427  ;;
15428
15429beos*)
15430  library_names_spec='${libname}${shared_ext}'
15431  dynamic_linker="$host_os ld.so"
15432  shlibpath_var=LIBRARY_PATH
15433  ;;
15434
15435bsdi[45]*)
15436  version_type=linux
15437  need_version=no
15438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439  soname_spec='${libname}${release}${shared_ext}$major'
15440  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15441  shlibpath_var=LD_LIBRARY_PATH
15442  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15443  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15444  # the default ld.so.conf also contains /usr/contrib/lib and
15445  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15446  # libtool to hard-code these into programs
15447  ;;
15448
15449cygwin* | mingw* | pw32*)
15450  version_type=windows
15451  shrext_cmds=".dll"
15452  need_version=no
15453  need_lib_prefix=no
15454
15455  case $GCC,$host_os in
15456  yes,cygwin* | yes,mingw* | yes,pw32*)
15457    library_names_spec='$libname.dll.a'
15458    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15459    postinstall_cmds='base_file=`basename \${file}`~
15460      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15461      dldir=$destdir/`dirname \$dlpath`~
15462      test -d \$dldir || mkdir -p \$dldir~
15463      $install_prog $dir/$dlname \$dldir/$dlname~
15464      chmod a+x \$dldir/$dlname'
15465    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15466      dlpath=$dir/\$dldll~
15467       $rm \$dlpath'
15468    shlibpath_overrides_runpath=yes
15469
15470    case $host_os in
15471    cygwin*)
15472      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15473      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15474      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15475      ;;
15476    mingw*)
15477      # MinGW DLLs use traditional 'lib' prefix
15478      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15480      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15481        # It is most probably a Windows format PATH printed by
15482        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15483        # path with ; separators, and with drive letters. We can handle the
15484        # drive letters (cygwin fileutils understands them), so leave them,
15485        # especially as we might pass files found there to a mingw objdump,
15486        # which wouldn't understand a cygwinified path. Ahh.
15487        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15488      else
15489        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15490      fi
15491      ;;
15492    pw32*)
15493      # pw32 DLLs use 'pw' prefix rather than 'lib'
15494      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15495      ;;
15496    esac
15497    ;;
15498
15499  *)
15500    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15501    ;;
15502  esac
15503  dynamic_linker='Win32 ld.exe'
15504  # FIXME: first we should search . and the directory the executable is in
15505  shlibpath_var=PATH
15506  ;;
15507
15508darwin* | rhapsody*)
15509  dynamic_linker="$host_os dyld"
15510  version_type=darwin
15511  need_lib_prefix=no
15512  need_version=no
15513  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15514  soname_spec='${libname}${release}${major}$shared_ext'
15515  shlibpath_overrides_runpath=yes
15516  shlibpath_var=DYLD_LIBRARY_PATH
15517  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15518  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15519  if test "$GCC" = yes; then
15520    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"`
15521  else
15522    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15523  fi
15524  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15525  ;;
15526
15527dgux*)
15528  version_type=linux
15529  need_lib_prefix=no
15530  need_version=no
15531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15532  soname_spec='${libname}${release}${shared_ext}$major'
15533  shlibpath_var=LD_LIBRARY_PATH
15534  ;;
15535
15536freebsd1*)
15537  dynamic_linker=no
15538  ;;
15539
15540kfreebsd*-gnu)
15541  version_type=linux
15542  need_lib_prefix=no
15543  need_version=no
15544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15545  soname_spec='${libname}${release}${shared_ext}$major'
15546  shlibpath_var=LD_LIBRARY_PATH
15547  shlibpath_overrides_runpath=no
15548  hardcode_into_libs=yes
15549  dynamic_linker='GNU ld.so'
15550  ;;
15551
15552freebsd* | dragonfly*)
15553  # DragonFly does not have aout.  When/if they implement a new
15554  # versioning mechanism, adjust this.
15555  if test -x /usr/bin/objformat; then
15556    objformat=`/usr/bin/objformat`
15557  else
15558    case $host_os in
15559    freebsd[123]*) objformat=aout ;;
15560    *) objformat=elf ;;
15561    esac
15562  fi
15563  version_type=freebsd-$objformat
15564  case $version_type in
15565    freebsd-elf*)
15566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15567      need_version=no
15568      need_lib_prefix=no
15569      ;;
15570    freebsd-*)
15571      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15572      need_version=yes
15573      ;;
15574  esac
15575  shlibpath_var=LD_LIBRARY_PATH
15576  case $host_os in
15577  freebsd2*)
15578    shlibpath_overrides_runpath=yes
15579    ;;
15580  freebsd3.[01]* | freebsdelf3.[01]*)
15581    shlibpath_overrides_runpath=yes
15582    hardcode_into_libs=yes
15583    ;;
15584  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15585  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15586    shlibpath_overrides_runpath=no
15587    hardcode_into_libs=yes
15588    ;;
15589  freebsd*) # from 4.6 on
15590    shlibpath_overrides_runpath=yes
15591    hardcode_into_libs=yes
15592    ;;
15593  esac
15594  ;;
15595
15596gnu*)
15597  version_type=linux
15598  need_lib_prefix=no
15599  need_version=no
15600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15601  soname_spec='${libname}${release}${shared_ext}$major'
15602  shlibpath_var=LD_LIBRARY_PATH
15603  hardcode_into_libs=yes
15604  ;;
15605
15606hpux9* | hpux10* | hpux11*)
15607  # Give a soname corresponding to the major version so that dld.sl refuses to
15608  # link against other versions.
15609  version_type=sunos
15610  need_lib_prefix=no
15611  need_version=no
15612  case $host_cpu in
15613  ia64*)
15614    shrext_cmds='.so'
15615    hardcode_into_libs=yes
15616    dynamic_linker="$host_os dld.so"
15617    shlibpath_var=LD_LIBRARY_PATH
15618    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620    soname_spec='${libname}${release}${shared_ext}$major'
15621    if test "X$HPUX_IA64_MODE" = X32; then
15622      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15623    else
15624      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15625    fi
15626    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15627    ;;
15628   hppa*64*)
15629     shrext_cmds='.sl'
15630     hardcode_into_libs=yes
15631     dynamic_linker="$host_os dld.sl"
15632     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635     soname_spec='${libname}${release}${shared_ext}$major'
15636     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15637     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15638     ;;
15639   *)
15640    shrext_cmds='.sl'
15641    dynamic_linker="$host_os dld.sl"
15642    shlibpath_var=SHLIB_PATH
15643    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15644    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645    soname_spec='${libname}${release}${shared_ext}$major'
15646    ;;
15647  esac
15648  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15649  postinstall_cmds='chmod 555 $lib'
15650  ;;
15651
15652interix3*)
15653  version_type=linux
15654  need_lib_prefix=no
15655  need_version=no
15656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15657  soname_spec='${libname}${release}${shared_ext}$major'
15658  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15659  shlibpath_var=LD_LIBRARY_PATH
15660  shlibpath_overrides_runpath=no
15661  hardcode_into_libs=yes
15662  ;;
15663
15664irix5* | irix6* | nonstopux*)
15665  case $host_os in
15666    nonstopux*) version_type=nonstopux ;;
15667    *)
15668	if test "$lt_cv_prog_gnu_ld" = yes; then
15669		version_type=linux
15670	else
15671		version_type=irix
15672	fi ;;
15673  esac
15674  need_lib_prefix=no
15675  need_version=no
15676  soname_spec='${libname}${release}${shared_ext}$major'
15677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15678  case $host_os in
15679  irix5* | nonstopux*)
15680    libsuff= shlibsuff=
15681    ;;
15682  *)
15683    case $LD in # libtool.m4 will add one of these switches to LD
15684    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15685      libsuff= shlibsuff= libmagic=32-bit;;
15686    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15687      libsuff=32 shlibsuff=N32 libmagic=N32;;
15688    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15689      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15690    *) libsuff= shlibsuff= libmagic=never-match;;
15691    esac
15692    ;;
15693  esac
15694  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15695  shlibpath_overrides_runpath=no
15696  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15697  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15698  hardcode_into_libs=yes
15699  ;;
15700
15701# No shared lib support for Linux oldld, aout, or coff.
15702linux*oldld* | linux*aout* | linux*coff*)
15703  dynamic_linker=no
15704  ;;
15705
15706# This must be Linux ELF.
15707linux*)
15708  version_type=linux
15709  need_lib_prefix=no
15710  need_version=no
15711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712  soname_spec='${libname}${release}${shared_ext}$major'
15713  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15714  shlibpath_var=LD_LIBRARY_PATH
15715  shlibpath_overrides_runpath=no
15716  # This implies no fast_install, which is unacceptable.
15717  # Some rework will be needed to allow for fast_install
15718  # before this can be enabled.
15719  hardcode_into_libs=yes
15720
15721  # Append ld.so.conf contents to the search path
15722  if test -f /etc/ld.so.conf; then
15723    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15724    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15725  fi
15726
15727  # We used to test for /lib/ld.so.1 and disable shared libraries on
15728  # powerpc, because MkLinux only supported shared libraries with the
15729  # GNU dynamic linker.  Since this was broken with cross compilers,
15730  # most powerpc-linux boxes support dynamic linking these days and
15731  # people can always --disable-shared, the test was removed, and we
15732  # assume the GNU/Linux dynamic linker is in use.
15733  dynamic_linker='GNU/Linux ld.so'
15734  ;;
15735
15736knetbsd*-gnu)
15737  version_type=linux
15738  need_lib_prefix=no
15739  need_version=no
15740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15741  soname_spec='${libname}${release}${shared_ext}$major'
15742  shlibpath_var=LD_LIBRARY_PATH
15743  shlibpath_overrides_runpath=no
15744  hardcode_into_libs=yes
15745  dynamic_linker='GNU ld.so'
15746  ;;
15747
15748netbsd*)
15749  version_type=sunos
15750  need_lib_prefix=no
15751  need_version=no
15752  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15755    dynamic_linker='NetBSD (a.out) ld.so'
15756  else
15757    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15758    soname_spec='${libname}${release}${shared_ext}$major'
15759    dynamic_linker='NetBSD ld.elf_so'
15760  fi
15761  shlibpath_var=LD_LIBRARY_PATH
15762  shlibpath_overrides_runpath=yes
15763  hardcode_into_libs=yes
15764  ;;
15765
15766newsos6)
15767  version_type=linux
15768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769  shlibpath_var=LD_LIBRARY_PATH
15770  shlibpath_overrides_runpath=yes
15771  ;;
15772
15773nto-qnx*)
15774  version_type=linux
15775  need_lib_prefix=no
15776  need_version=no
15777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778  soname_spec='${libname}${release}${shared_ext}$major'
15779  shlibpath_var=LD_LIBRARY_PATH
15780  shlibpath_overrides_runpath=yes
15781  ;;
15782
15783openbsd*)
15784  version_type=sunos
15785  sys_lib_dlsearch_path_spec="/usr/lib"
15786  need_lib_prefix=no
15787  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15788  case $host_os in
15789    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15790    *)                         need_version=no  ;;
15791  esac
15792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15794  shlibpath_var=LD_LIBRARY_PATH
15795  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15796    case $host_os in
15797      openbsd2.[89] | openbsd2.[89].*)
15798	shlibpath_overrides_runpath=no
15799	;;
15800      *)
15801	shlibpath_overrides_runpath=yes
15802	;;
15803      esac
15804  else
15805    shlibpath_overrides_runpath=yes
15806  fi
15807  ;;
15808
15809os2*)
15810  libname_spec='$name'
15811  shrext_cmds=".dll"
15812  need_lib_prefix=no
15813  library_names_spec='$libname${shared_ext} $libname.a'
15814  dynamic_linker='OS/2 ld.exe'
15815  shlibpath_var=LIBPATH
15816  ;;
15817
15818osf3* | osf4* | osf5*)
15819  version_type=osf
15820  need_lib_prefix=no
15821  need_version=no
15822  soname_spec='${libname}${release}${shared_ext}$major'
15823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824  shlibpath_var=LD_LIBRARY_PATH
15825  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15826  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15827  ;;
15828
15829solaris*)
15830  version_type=linux
15831  need_lib_prefix=no
15832  need_version=no
15833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834  soname_spec='${libname}${release}${shared_ext}$major'
15835  shlibpath_var=LD_LIBRARY_PATH
15836  shlibpath_overrides_runpath=yes
15837  hardcode_into_libs=yes
15838  # ldd complains unless libraries are executable
15839  postinstall_cmds='chmod +x $lib'
15840  ;;
15841
15842sunos4*)
15843  version_type=sunos
15844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15845  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15846  shlibpath_var=LD_LIBRARY_PATH
15847  shlibpath_overrides_runpath=yes
15848  if test "$with_gnu_ld" = yes; then
15849    need_lib_prefix=no
15850  fi
15851  need_version=yes
15852  ;;
15853
15854sysv4 | sysv4.3*)
15855  version_type=linux
15856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857  soname_spec='${libname}${release}${shared_ext}$major'
15858  shlibpath_var=LD_LIBRARY_PATH
15859  case $host_vendor in
15860    sni)
15861      shlibpath_overrides_runpath=no
15862      need_lib_prefix=no
15863      export_dynamic_flag_spec='${wl}-Blargedynsym'
15864      runpath_var=LD_RUN_PATH
15865      ;;
15866    siemens)
15867      need_lib_prefix=no
15868      ;;
15869    motorola)
15870      need_lib_prefix=no
15871      need_version=no
15872      shlibpath_overrides_runpath=no
15873      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15874      ;;
15875  esac
15876  ;;
15877
15878sysv4*MP*)
15879  if test -d /usr/nec ;then
15880    version_type=linux
15881    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15882    soname_spec='$libname${shared_ext}.$major'
15883    shlibpath_var=LD_LIBRARY_PATH
15884  fi
15885  ;;
15886
15887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15888  version_type=freebsd-elf
15889  need_lib_prefix=no
15890  need_version=no
15891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892  soname_spec='${libname}${release}${shared_ext}$major'
15893  shlibpath_var=LD_LIBRARY_PATH
15894  hardcode_into_libs=yes
15895  if test "$with_gnu_ld" = yes; then
15896    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15897    shlibpath_overrides_runpath=no
15898  else
15899    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15900    shlibpath_overrides_runpath=yes
15901    case $host_os in
15902      sco3.2v5*)
15903        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15904	;;
15905    esac
15906  fi
15907  sys_lib_dlsearch_path_spec='/usr/lib'
15908  ;;
15909
15910uts4*)
15911  version_type=linux
15912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913  soname_spec='${libname}${release}${shared_ext}$major'
15914  shlibpath_var=LD_LIBRARY_PATH
15915  ;;
15916
15917*)
15918  dynamic_linker=no
15919  ;;
15920esac
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15922$as_echo "$dynamic_linker" >&6; }
15923test "$dynamic_linker" = no && can_build_shared=no
15924
15925variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15926if test "$GCC" = yes; then
15927  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15928fi
15929
15930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15931$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15932hardcode_action_F77=
15933if test -n "$hardcode_libdir_flag_spec_F77" || \
15934   test -n "$runpath_var_F77" || \
15935   test "X$hardcode_automatic_F77" = "Xyes" ; then
15936
15937  # We can hardcode non-existant directories.
15938  if test "$hardcode_direct_F77" != no &&
15939     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15940     # have to relink, otherwise we might link with an installed library
15941     # when we should be linking with a yet-to-be-installed one
15942     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15943     test "$hardcode_minus_L_F77" != no; then
15944    # Linking always hardcodes the temporary library directory.
15945    hardcode_action_F77=relink
15946  else
15947    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15948    hardcode_action_F77=immediate
15949  fi
15950else
15951  # We cannot hardcode anything, or else we can only hardcode existing
15952  # directories.
15953  hardcode_action_F77=unsupported
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15956$as_echo "$hardcode_action_F77" >&6; }
15957
15958if test "$hardcode_action_F77" = relink; then
15959  # Fast installation is not supported
15960  enable_fast_install=no
15961elif test "$shlibpath_overrides_runpath" = yes ||
15962     test "$enable_shared" = no; then
15963  # Fast installation is not necessary
15964  enable_fast_install=needless
15965fi
15966
15967
15968# The else clause should only fire when bootstrapping the
15969# libtool distribution, otherwise you forgot to ship ltmain.sh
15970# with your package, and you will get complaints that there are
15971# no rules to generate ltmain.sh.
15972if test -f "$ltmain"; then
15973  # See if we are running on zsh, and set the options which allow our commands through
15974  # without removal of \ escapes.
15975  if test -n "${ZSH_VERSION+set}" ; then
15976    setopt NO_GLOB_SUBST
15977  fi
15978  # Now quote all the things that may contain metacharacters while being
15979  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15980  # variables and quote the copies for generation of the libtool script.
15981  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15982    SED SHELL STRIP \
15983    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15984    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15985    deplibs_check_method reload_flag reload_cmds need_locks \
15986    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15987    lt_cv_sys_global_symbol_to_c_name_address \
15988    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15989    old_postinstall_cmds old_postuninstall_cmds \
15990    compiler_F77 \
15991    CC_F77 \
15992    LD_F77 \
15993    lt_prog_compiler_wl_F77 \
15994    lt_prog_compiler_pic_F77 \
15995    lt_prog_compiler_static_F77 \
15996    lt_prog_compiler_no_builtin_flag_F77 \
15997    export_dynamic_flag_spec_F77 \
15998    thread_safe_flag_spec_F77 \
15999    whole_archive_flag_spec_F77 \
16000    enable_shared_with_static_runtimes_F77 \
16001    old_archive_cmds_F77 \
16002    old_archive_from_new_cmds_F77 \
16003    predep_objects_F77 \
16004    postdep_objects_F77 \
16005    predeps_F77 \
16006    postdeps_F77 \
16007    compiler_lib_search_path_F77 \
16008    archive_cmds_F77 \
16009    archive_expsym_cmds_F77 \
16010    postinstall_cmds_F77 \
16011    postuninstall_cmds_F77 \
16012    old_archive_from_expsyms_cmds_F77 \
16013    allow_undefined_flag_F77 \
16014    no_undefined_flag_F77 \
16015    export_symbols_cmds_F77 \
16016    hardcode_libdir_flag_spec_F77 \
16017    hardcode_libdir_flag_spec_ld_F77 \
16018    hardcode_libdir_separator_F77 \
16019    hardcode_automatic_F77 \
16020    module_cmds_F77 \
16021    module_expsym_cmds_F77 \
16022    lt_cv_prog_compiler_c_o_F77 \
16023    exclude_expsyms_F77 \
16024    include_expsyms_F77; do
16025
16026    case $var in
16027    old_archive_cmds_F77 | \
16028    old_archive_from_new_cmds_F77 | \
16029    archive_cmds_F77 | \
16030    archive_expsym_cmds_F77 | \
16031    module_cmds_F77 | \
16032    module_expsym_cmds_F77 | \
16033    old_archive_from_expsyms_cmds_F77 | \
16034    export_symbols_cmds_F77 | \
16035    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16036    postinstall_cmds | postuninstall_cmds | \
16037    old_postinstall_cmds | old_postuninstall_cmds | \
16038    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16039      # Double-quote double-evaled strings.
16040      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16041      ;;
16042    *)
16043      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16044      ;;
16045    esac
16046  done
16047
16048  case $lt_echo in
16049  *'\$0 --fallback-echo"')
16050    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16051    ;;
16052  esac
16053
16054cfgfile="$ofile"
16055
16056  cat <<__EOF__ >> "$cfgfile"
16057# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16058
16059# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16060
16061# Shell to use when invoking shell scripts.
16062SHELL=$lt_SHELL
16063
16064# Whether or not to build shared libraries.
16065build_libtool_libs=$enable_shared
16066
16067# Whether or not to build static libraries.
16068build_old_libs=$enable_static
16069
16070# Whether or not to add -lc for building shared libraries.
16071build_libtool_need_lc=$archive_cmds_need_lc_F77
16072
16073# Whether or not to disallow shared libs when runtime libs are static
16074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16075
16076# Whether or not to optimize for fast installation.
16077fast_install=$enable_fast_install
16078
16079# The host system.
16080host_alias=$host_alias
16081host=$host
16082host_os=$host_os
16083
16084# The build system.
16085build_alias=$build_alias
16086build=$build
16087build_os=$build_os
16088
16089# An echo program that does not interpret backslashes.
16090echo=$lt_echo
16091
16092# The archiver.
16093AR=$lt_AR
16094AR_FLAGS=$lt_AR_FLAGS
16095
16096# A C compiler.
16097LTCC=$lt_LTCC
16098
16099# LTCC compiler flags.
16100LTCFLAGS=$lt_LTCFLAGS
16101
16102# A language-specific compiler.
16103CC=$lt_compiler_F77
16104
16105# Is the compiler the GNU C compiler?
16106with_gcc=$GCC_F77
16107
16108# An ERE matcher.
16109EGREP=$lt_EGREP
16110
16111# The linker used to build libraries.
16112LD=$lt_LD_F77
16113
16114# Whether we need hard or soft links.
16115LN_S=$lt_LN_S
16116
16117# A BSD-compatible nm program.
16118NM=$lt_NM
16119
16120# A symbol stripping program
16121STRIP=$lt_STRIP
16122
16123# Used to examine libraries when file_magic_cmd begins "file"
16124MAGIC_CMD=$MAGIC_CMD
16125
16126# Used on cygwin: DLL creation program.
16127DLLTOOL="$DLLTOOL"
16128
16129# Used on cygwin: object dumper.
16130OBJDUMP="$OBJDUMP"
16131
16132# Used on cygwin: assembler.
16133AS="$AS"
16134
16135# The name of the directory that contains temporary libtool files.
16136objdir=$objdir
16137
16138# How to create reloadable object files.
16139reload_flag=$lt_reload_flag
16140reload_cmds=$lt_reload_cmds
16141
16142# How to pass a linker flag through the compiler.
16143wl=$lt_lt_prog_compiler_wl_F77
16144
16145# Object file suffix (normally "o").
16146objext="$ac_objext"
16147
16148# Old archive suffix (normally "a").
16149libext="$libext"
16150
16151# Shared library suffix (normally ".so").
16152shrext_cmds='$shrext_cmds'
16153
16154# Executable file suffix (normally "").
16155exeext="$exeext"
16156
16157# Additional compiler flags for building library objects.
16158pic_flag=$lt_lt_prog_compiler_pic_F77
16159pic_mode=$pic_mode
16160
16161# What is the maximum length of a command?
16162max_cmd_len=$lt_cv_sys_max_cmd_len
16163
16164# Does compiler simultaneously support -c and -o options?
16165compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16166
16167# Must we lock files when doing compilation?
16168need_locks=$lt_need_locks
16169
16170# Do we need the lib prefix for modules?
16171need_lib_prefix=$need_lib_prefix
16172
16173# Do we need a version for libraries?
16174need_version=$need_version
16175
16176# Whether dlopen is supported.
16177dlopen_support=$enable_dlopen
16178
16179# Whether dlopen of programs is supported.
16180dlopen_self=$enable_dlopen_self
16181
16182# Whether dlopen of statically linked programs is supported.
16183dlopen_self_static=$enable_dlopen_self_static
16184
16185# Compiler flag to prevent dynamic linking.
16186link_static_flag=$lt_lt_prog_compiler_static_F77
16187
16188# Compiler flag to turn off builtin functions.
16189no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16190
16191# Compiler flag to allow reflexive dlopens.
16192export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16193
16194# Compiler flag to generate shared objects directly from archives.
16195whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16196
16197# Compiler flag to generate thread-safe objects.
16198thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16199
16200# Library versioning type.
16201version_type=$version_type
16202
16203# Format of library name prefix.
16204libname_spec=$lt_libname_spec
16205
16206# List of archive names.  First name is the real one, the rest are links.
16207# The last name is the one that the linker finds with -lNAME.
16208library_names_spec=$lt_library_names_spec
16209
16210# The coded name of the library, if different from the real name.
16211soname_spec=$lt_soname_spec
16212
16213# Commands used to build and install an old-style archive.
16214RANLIB=$lt_RANLIB
16215old_archive_cmds=$lt_old_archive_cmds_F77
16216old_postinstall_cmds=$lt_old_postinstall_cmds
16217old_postuninstall_cmds=$lt_old_postuninstall_cmds
16218
16219# Create an old-style archive from a shared archive.
16220old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16221
16222# Create a temporary old-style archive to link instead of a shared archive.
16223old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16224
16225# Commands used to build and install a shared archive.
16226archive_cmds=$lt_archive_cmds_F77
16227archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16228postinstall_cmds=$lt_postinstall_cmds
16229postuninstall_cmds=$lt_postuninstall_cmds
16230
16231# Commands used to build a loadable module (assumed same as above if empty)
16232module_cmds=$lt_module_cmds_F77
16233module_expsym_cmds=$lt_module_expsym_cmds_F77
16234
16235# Commands to strip libraries.
16236old_striplib=$lt_old_striplib
16237striplib=$lt_striplib
16238
16239# Dependencies to place before the objects being linked to create a
16240# shared library.
16241predep_objects=$lt_predep_objects_F77
16242
16243# Dependencies to place after the objects being linked to create a
16244# shared library.
16245postdep_objects=$lt_postdep_objects_F77
16246
16247# Dependencies to place before the objects being linked to create a
16248# shared library.
16249predeps=$lt_predeps_F77
16250
16251# Dependencies to place after the objects being linked to create a
16252# shared library.
16253postdeps=$lt_postdeps_F77
16254
16255# The library search path used internally by the compiler when linking
16256# a shared library.
16257compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16258
16259# Method to check whether dependent libraries are shared objects.
16260deplibs_check_method=$lt_deplibs_check_method
16261
16262# Command to use when deplibs_check_method == file_magic.
16263file_magic_cmd=$lt_file_magic_cmd
16264
16265# Flag that allows shared libraries with undefined symbols to be built.
16266allow_undefined_flag=$lt_allow_undefined_flag_F77
16267
16268# Flag that forces no undefined symbols.
16269no_undefined_flag=$lt_no_undefined_flag_F77
16270
16271# Commands used to finish a libtool library installation in a directory.
16272finish_cmds=$lt_finish_cmds
16273
16274# Same as above, but a single script fragment to be evaled but not shown.
16275finish_eval=$lt_finish_eval
16276
16277# Take the output of nm and produce a listing of raw symbols and C names.
16278global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16279
16280# Transform the output of nm in a proper C declaration
16281global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16282
16283# Transform the output of nm in a C name address pair
16284global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16285
16286# This is the shared library runtime path variable.
16287runpath_var=$runpath_var
16288
16289# This is the shared library path variable.
16290shlibpath_var=$shlibpath_var
16291
16292# Is shlibpath searched before the hard-coded library search path?
16293shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16294
16295# How to hardcode a shared library path into an executable.
16296hardcode_action=$hardcode_action_F77
16297
16298# Whether we should hardcode library paths into libraries.
16299hardcode_into_libs=$hardcode_into_libs
16300
16301# Flag to hardcode \$libdir into a binary during linking.
16302# This must work even if \$libdir does not exist.
16303hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16304
16305# If ld is used when linking, flag to hardcode \$libdir into
16306# a binary during linking. This must work even if \$libdir does
16307# not exist.
16308hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16309
16310# Whether we need a single -rpath flag with a separated argument.
16311hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16312
16313# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16314# resulting binary.
16315hardcode_direct=$hardcode_direct_F77
16316
16317# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16318# resulting binary.
16319hardcode_minus_L=$hardcode_minus_L_F77
16320
16321# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16322# the resulting binary.
16323hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16324
16325# Set to yes if building a shared library automatically hardcodes DIR into the library
16326# and all subsequent libraries and executables linked against it.
16327hardcode_automatic=$hardcode_automatic_F77
16328
16329# Variables whose values should be saved in libtool wrapper scripts and
16330# restored at relink time.
16331variables_saved_for_relink="$variables_saved_for_relink"
16332
16333# Whether libtool must link a program against all its dependency libraries.
16334link_all_deplibs=$link_all_deplibs_F77
16335
16336# Compile-time system search path for libraries
16337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16338
16339# Run-time system search path for libraries
16340sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16341
16342# Fix the shell variable \$srcfile for the compiler.
16343fix_srcfile_path="$fix_srcfile_path_F77"
16344
16345# Set to yes if exported symbols are required.
16346always_export_symbols=$always_export_symbols_F77
16347
16348# The commands to list exported symbols.
16349export_symbols_cmds=$lt_export_symbols_cmds_F77
16350
16351# The commands to extract the exported symbol list from a shared archive.
16352extract_expsyms_cmds=$lt_extract_expsyms_cmds
16353
16354# Symbols that should not be listed in the preloaded symbols.
16355exclude_expsyms=$lt_exclude_expsyms_F77
16356
16357# Symbols that must always be exported.
16358include_expsyms=$lt_include_expsyms_F77
16359
16360# ### END LIBTOOL TAG CONFIG: $tagname
16361
16362__EOF__
16363
16364
16365else
16366  # If there is no Makefile yet, we rely on a make rule to execute
16367  # `config.status --recheck' to rerun these tests and create the
16368  # libtool script then.
16369  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16370  if test -f "$ltmain_in"; then
16371    test -f Makefile && make "$ltmain"
16372  fi
16373fi
16374
16375
16376ac_ext=c
16377ac_cpp='$CPP $CPPFLAGS'
16378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381
16382CC="$lt_save_CC"
16383
16384	else
16385	  tagname=""
16386	fi
16387	;;
16388
16389      GCJ)
16390	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16391
16392
16393# Source file extension for Java test sources.
16394ac_ext=java
16395
16396# Object file extension for compiled Java test sources.
16397objext=o
16398objext_GCJ=$objext
16399
16400# Code to be used in simple compile tests
16401lt_simple_compile_test_code="class foo {}\n"
16402
16403# Code to be used in simple link tests
16404lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16405
16406# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16407
16408# If no C compiler was specified, use CC.
16409LTCC=${LTCC-"$CC"}
16410
16411# If no C compiler flags were specified, use CFLAGS.
16412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16413
16414# Allow CC to be a program name with arguments.
16415compiler=$CC
16416
16417
16418# save warnings/boilerplate of simple test code
16419ac_outfile=conftest.$ac_objext
16420printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16421eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16422_lt_compiler_boilerplate=`cat conftest.err`
16423$rm conftest*
16424
16425ac_outfile=conftest.$ac_objext
16426printf "$lt_simple_link_test_code" >conftest.$ac_ext
16427eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16428_lt_linker_boilerplate=`cat conftest.err`
16429$rm conftest*
16430
16431
16432# Allow CC to be a program name with arguments.
16433lt_save_CC="$CC"
16434CC=${GCJ-"gcj"}
16435compiler=$CC
16436compiler_GCJ=$CC
16437for cc_temp in $compiler""; do
16438  case $cc_temp in
16439    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16440    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16441    \-*) ;;
16442    *) break;;
16443  esac
16444done
16445cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16446
16447
16448# GCJ did not exist at the time GCC didn't implicitly link libc in.
16449archive_cmds_need_lc_GCJ=no
16450
16451old_archive_cmds_GCJ=$old_archive_cmds
16452
16453
16454lt_prog_compiler_no_builtin_flag_GCJ=
16455
16456if test "$GCC" = yes; then
16457  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16458
16459
16460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16461$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16462if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16463  $as_echo_n "(cached) " >&6
16464else
16465  lt_cv_prog_compiler_rtti_exceptions=no
16466  ac_outfile=conftest.$ac_objext
16467   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16468   lt_compiler_flag="-fno-rtti -fno-exceptions"
16469   # Insert the option either (1) after the last *FLAGS variable, or
16470   # (2) before a word containing "conftest.", or (3) at the end.
16471   # Note that $ac_compile itself does not contain backslashes and begins
16472   # with a dollar sign (not a hyphen), so the echo should work correctly.
16473   # The option is referenced via a variable to avoid confusing sed.
16474   lt_compile=`echo "$ac_compile" | $SED \
16475   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477   -e 's:$: $lt_compiler_flag:'`
16478   (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479   (eval "$lt_compile" 2>conftest.err)
16480   ac_status=$?
16481   cat conftest.err >&5
16482   echo "$as_me:16482: \$? = $ac_status" >&5
16483   if (exit $ac_status) && test -s "$ac_outfile"; then
16484     # The compiler can only warn and ignore the option if not recognized
16485     # So say no if there are warnings other than the usual output.
16486     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16487     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16489       lt_cv_prog_compiler_rtti_exceptions=yes
16490     fi
16491   fi
16492   $rm conftest*
16493
16494fi
16495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16496$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16497
16498if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16499    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16500else
16501    :
16502fi
16503
16504fi
16505
16506lt_prog_compiler_wl_GCJ=
16507lt_prog_compiler_pic_GCJ=
16508lt_prog_compiler_static_GCJ=
16509
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16511$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16512
16513  if test "$GCC" = yes; then
16514    lt_prog_compiler_wl_GCJ='-Wl,'
16515    lt_prog_compiler_static_GCJ='-static'
16516
16517    case $host_os in
16518      aix*)
16519      # All AIX code is PIC.
16520      if test "$host_cpu" = ia64; then
16521	# AIX 5 now supports IA64 processor
16522	lt_prog_compiler_static_GCJ='-Bstatic'
16523      fi
16524      ;;
16525
16526    amigaos*)
16527      # FIXME: we need at least 68020 code to build shared libraries, but
16528      # adding the `-m68020' flag to GCC prevents building anything better,
16529      # like `-m68040'.
16530      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16531      ;;
16532
16533    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16534      # PIC is the default for these OSes.
16535      ;;
16536
16537    mingw* | pw32* | os2*)
16538      # This hack is so that the source file can tell whether it is being
16539      # built for inclusion in a dll (and should export symbols for example).
16540      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16541      ;;
16542
16543    darwin* | rhapsody*)
16544      # PIC is the default on this platform
16545      # Common symbols not allowed in MH_DYLIB files
16546      lt_prog_compiler_pic_GCJ='-fno-common'
16547      ;;
16548
16549    interix3*)
16550      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16551      # Instead, we relocate shared libraries at runtime.
16552      ;;
16553
16554    msdosdjgpp*)
16555      # Just because we use GCC doesn't mean we suddenly get shared libraries
16556      # on systems that don't support them.
16557      lt_prog_compiler_can_build_shared_GCJ=no
16558      enable_shared=no
16559      ;;
16560
16561    sysv4*MP*)
16562      if test -d /usr/nec; then
16563	lt_prog_compiler_pic_GCJ=-Kconform_pic
16564      fi
16565      ;;
16566
16567    hpux*)
16568      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16569      # not for PA HP-UX.
16570      case $host_cpu in
16571      hppa*64*|ia64*)
16572	# +Z the default
16573	;;
16574      *)
16575	lt_prog_compiler_pic_GCJ='-fPIC'
16576	;;
16577      esac
16578      ;;
16579
16580    *)
16581      lt_prog_compiler_pic_GCJ='-fPIC'
16582      ;;
16583    esac
16584  else
16585    # PORTME Check for flag to pass linker flags through the system compiler.
16586    case $host_os in
16587    aix*)
16588      lt_prog_compiler_wl_GCJ='-Wl,'
16589      if test "$host_cpu" = ia64; then
16590	# AIX 5 now supports IA64 processor
16591	lt_prog_compiler_static_GCJ='-Bstatic'
16592      else
16593	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16594      fi
16595      ;;
16596      darwin*)
16597        # PIC is the default on this platform
16598        # Common symbols not allowed in MH_DYLIB files
16599       case $cc_basename in
16600         xlc*)
16601         lt_prog_compiler_pic_GCJ='-qnocommon'
16602         lt_prog_compiler_wl_GCJ='-Wl,'
16603         ;;
16604       esac
16605       ;;
16606
16607    mingw* | pw32* | os2*)
16608      # This hack is so that the source file can tell whether it is being
16609      # built for inclusion in a dll (and should export symbols for example).
16610      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16611      ;;
16612
16613    hpux9* | hpux10* | hpux11*)
16614      lt_prog_compiler_wl_GCJ='-Wl,'
16615      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16616      # not for PA HP-UX.
16617      case $host_cpu in
16618      hppa*64*|ia64*)
16619	# +Z the default
16620	;;
16621      *)
16622	lt_prog_compiler_pic_GCJ='+Z'
16623	;;
16624      esac
16625      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16626      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16627      ;;
16628
16629    irix5* | irix6* | nonstopux*)
16630      lt_prog_compiler_wl_GCJ='-Wl,'
16631      # PIC (with -KPIC) is the default.
16632      lt_prog_compiler_static_GCJ='-non_shared'
16633      ;;
16634
16635    newsos6)
16636      lt_prog_compiler_pic_GCJ='-KPIC'
16637      lt_prog_compiler_static_GCJ='-Bstatic'
16638      ;;
16639
16640    linux*)
16641      case $cc_basename in
16642      icc* | ecc*)
16643	lt_prog_compiler_wl_GCJ='-Wl,'
16644	lt_prog_compiler_pic_GCJ='-KPIC'
16645	lt_prog_compiler_static_GCJ='-static'
16646        ;;
16647      pgcc* | pgf77* | pgf90* | pgf95*)
16648        # Portland Group compilers (*not* the Pentium gcc compiler,
16649	# which looks to be a dead project)
16650	lt_prog_compiler_wl_GCJ='-Wl,'
16651	lt_prog_compiler_pic_GCJ='-fpic'
16652	lt_prog_compiler_static_GCJ='-Bstatic'
16653        ;;
16654      ccc*)
16655        lt_prog_compiler_wl_GCJ='-Wl,'
16656        # All Alpha code is PIC.
16657        lt_prog_compiler_static_GCJ='-non_shared'
16658        ;;
16659      esac
16660      ;;
16661
16662    osf3* | osf4* | osf5*)
16663      lt_prog_compiler_wl_GCJ='-Wl,'
16664      # All OSF/1 code is PIC.
16665      lt_prog_compiler_static_GCJ='-non_shared'
16666      ;;
16667
16668    solaris*)
16669      lt_prog_compiler_pic_GCJ='-KPIC'
16670      lt_prog_compiler_static_GCJ='-Bstatic'
16671      case $cc_basename in
16672      f77* | f90* | f95*)
16673	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16674      *)
16675	lt_prog_compiler_wl_GCJ='-Wl,';;
16676      esac
16677      ;;
16678
16679    sunos4*)
16680      lt_prog_compiler_wl_GCJ='-Qoption ld '
16681      lt_prog_compiler_pic_GCJ='-PIC'
16682      lt_prog_compiler_static_GCJ='-Bstatic'
16683      ;;
16684
16685    sysv4 | sysv4.2uw2* | sysv4.3*)
16686      lt_prog_compiler_wl_GCJ='-Wl,'
16687      lt_prog_compiler_pic_GCJ='-KPIC'
16688      lt_prog_compiler_static_GCJ='-Bstatic'
16689      ;;
16690
16691    sysv4*MP*)
16692      if test -d /usr/nec ;then
16693	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16694	lt_prog_compiler_static_GCJ='-Bstatic'
16695      fi
16696      ;;
16697
16698    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16699      lt_prog_compiler_wl_GCJ='-Wl,'
16700      lt_prog_compiler_pic_GCJ='-KPIC'
16701      lt_prog_compiler_static_GCJ='-Bstatic'
16702      ;;
16703
16704    unicos*)
16705      lt_prog_compiler_wl_GCJ='-Wl,'
16706      lt_prog_compiler_can_build_shared_GCJ=no
16707      ;;
16708
16709    uts4*)
16710      lt_prog_compiler_pic_GCJ='-pic'
16711      lt_prog_compiler_static_GCJ='-Bstatic'
16712      ;;
16713
16714    *)
16715      lt_prog_compiler_can_build_shared_GCJ=no
16716      ;;
16717    esac
16718  fi
16719
16720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16721$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16722
16723#
16724# Check to make sure the PIC flag actually works.
16725#
16726if test -n "$lt_prog_compiler_pic_GCJ"; then
16727
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16729$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16730if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16731  $as_echo_n "(cached) " >&6
16732else
16733  lt_prog_compiler_pic_works_GCJ=no
16734  ac_outfile=conftest.$ac_objext
16735   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16736   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16737   # Insert the option either (1) after the last *FLAGS variable, or
16738   # (2) before a word containing "conftest.", or (3) at the end.
16739   # Note that $ac_compile itself does not contain backslashes and begins
16740   # with a dollar sign (not a hyphen), so the echo should work correctly.
16741   # The option is referenced via a variable to avoid confusing sed.
16742   lt_compile=`echo "$ac_compile" | $SED \
16743   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16744   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16745   -e 's:$: $lt_compiler_flag:'`
16746   (eval echo "\"\$as_me:16746: $lt_compile\"" >&5)
16747   (eval "$lt_compile" 2>conftest.err)
16748   ac_status=$?
16749   cat conftest.err >&5
16750   echo "$as_me:16750: \$? = $ac_status" >&5
16751   if (exit $ac_status) && test -s "$ac_outfile"; then
16752     # The compiler can only warn and ignore the option if not recognized
16753     # So say no if there are warnings other than the usual output.
16754     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16755     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16757       lt_prog_compiler_pic_works_GCJ=yes
16758     fi
16759   fi
16760   $rm conftest*
16761
16762fi
16763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16764$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16765
16766if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16767    case $lt_prog_compiler_pic_GCJ in
16768     "" | " "*) ;;
16769     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16770     esac
16771else
16772    lt_prog_compiler_pic_GCJ=
16773     lt_prog_compiler_can_build_shared_GCJ=no
16774fi
16775
16776fi
16777case $host_os in
16778  # For platforms which do not support PIC, -DPIC is meaningless:
16779  *djgpp*)
16780    lt_prog_compiler_pic_GCJ=
16781    ;;
16782  *)
16783    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16784    ;;
16785esac
16786
16787#
16788# Check to make sure the static flag actually works.
16789#
16790wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16792$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16793if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16794  $as_echo_n "(cached) " >&6
16795else
16796  lt_prog_compiler_static_works_GCJ=no
16797   save_LDFLAGS="$LDFLAGS"
16798   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16799   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16800   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16801     # The linker can only warn and ignore the option if not recognized
16802     # So say no if there are warnings
16803     if test -s conftest.err; then
16804       # Append any errors to the config.log.
16805       cat conftest.err 1>&5
16806       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16807       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16808       if diff conftest.exp conftest.er2 >/dev/null; then
16809         lt_prog_compiler_static_works_GCJ=yes
16810       fi
16811     else
16812       lt_prog_compiler_static_works_GCJ=yes
16813     fi
16814   fi
16815   $rm conftest*
16816   LDFLAGS="$save_LDFLAGS"
16817
16818fi
16819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16820$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16821
16822if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16823    :
16824else
16825    lt_prog_compiler_static_GCJ=
16826fi
16827
16828
16829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16830$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16831if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16832  $as_echo_n "(cached) " >&6
16833else
16834  lt_cv_prog_compiler_c_o_GCJ=no
16835   $rm -r conftest 2>/dev/null
16836   mkdir conftest
16837   cd conftest
16838   mkdir out
16839   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16840
16841   lt_compiler_flag="-o out/conftest2.$ac_objext"
16842   # Insert the option either (1) after the last *FLAGS variable, or
16843   # (2) before a word containing "conftest.", or (3) at the end.
16844   # Note that $ac_compile itself does not contain backslashes and begins
16845   # with a dollar sign (not a hyphen), so the echo should work correctly.
16846   lt_compile=`echo "$ac_compile" | $SED \
16847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849   -e 's:$: $lt_compiler_flag:'`
16850   (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851   (eval "$lt_compile" 2>out/conftest.err)
16852   ac_status=$?
16853   cat out/conftest.err >&5
16854   echo "$as_me:16854: \$? = $ac_status" >&5
16855   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16856   then
16857     # The compiler can only warn and ignore the option if not recognized
16858     # So say no if there are warnings
16859     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16860     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16861     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16862       lt_cv_prog_compiler_c_o_GCJ=yes
16863     fi
16864   fi
16865   chmod u+w . 2>&5
16866   $rm conftest*
16867   # SGI C++ compiler will create directory out/ii_files/ for
16868   # template instantiation
16869   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16870   $rm out/* && rmdir out
16871   cd ..
16872   rmdir conftest
16873   $rm conftest*
16874
16875fi
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16877$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16878
16879
16880hard_links="nottested"
16881if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16882  # do not overwrite the value of need_locks provided by the user
16883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16884$as_echo_n "checking if we can lock with hard links... " >&6; }
16885  hard_links=yes
16886  $rm conftest*
16887  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16888  touch conftest.a
16889  ln conftest.a conftest.b 2>&5 || hard_links=no
16890  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16892$as_echo "$hard_links" >&6; }
16893  if test "$hard_links" = no; then
16894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16895$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16896    need_locks=warn
16897  fi
16898else
16899  need_locks=no
16900fi
16901
16902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16903$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16904
16905  runpath_var=
16906  allow_undefined_flag_GCJ=
16907  enable_shared_with_static_runtimes_GCJ=no
16908  archive_cmds_GCJ=
16909  archive_expsym_cmds_GCJ=
16910  old_archive_From_new_cmds_GCJ=
16911  old_archive_from_expsyms_cmds_GCJ=
16912  export_dynamic_flag_spec_GCJ=
16913  whole_archive_flag_spec_GCJ=
16914  thread_safe_flag_spec_GCJ=
16915  hardcode_libdir_flag_spec_GCJ=
16916  hardcode_libdir_flag_spec_ld_GCJ=
16917  hardcode_libdir_separator_GCJ=
16918  hardcode_direct_GCJ=no
16919  hardcode_minus_L_GCJ=no
16920  hardcode_shlibpath_var_GCJ=unsupported
16921  link_all_deplibs_GCJ=unknown
16922  hardcode_automatic_GCJ=no
16923  module_cmds_GCJ=
16924  module_expsym_cmds_GCJ=
16925  always_export_symbols_GCJ=no
16926  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16927  # include_expsyms should be a list of space-separated symbols to be *always*
16928  # included in the symbol list
16929  include_expsyms_GCJ=
16930  # exclude_expsyms can be an extended regexp of symbols to exclude
16931  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16932  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16933  # as well as any symbol that contains `d'.
16934  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16935  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16936  # platforms (ab)use it in PIC code, but their linkers get confused if
16937  # the symbol is explicitly referenced.  Since portable code cannot
16938  # rely on this symbol name, it's probably fine to never include it in
16939  # preloaded symbol tables.
16940  extract_expsyms_cmds=
16941  # Just being paranoid about ensuring that cc_basename is set.
16942  for cc_temp in $compiler""; do
16943  case $cc_temp in
16944    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16945    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16946    \-*) ;;
16947    *) break;;
16948  esac
16949done
16950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16951
16952  case $host_os in
16953  cygwin* | mingw* | pw32*)
16954    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16955    # When not using gcc, we currently assume that we are using
16956    # Microsoft Visual C++.
16957    if test "$GCC" != yes; then
16958      with_gnu_ld=no
16959    fi
16960    ;;
16961  interix*)
16962    # we just hope/assume this is gcc and not c89 (= MSVC++)
16963    with_gnu_ld=yes
16964    ;;
16965  openbsd*)
16966    with_gnu_ld=no
16967    ;;
16968  esac
16969
16970  ld_shlibs_GCJ=yes
16971  if test "$with_gnu_ld" = yes; then
16972    # If archive_cmds runs LD, not CC, wlarc should be empty
16973    wlarc='${wl}'
16974
16975    # Set some defaults for GNU ld with shared library support. These
16976    # are reset later if shared libraries are not supported. Putting them
16977    # here allows them to be overridden if necessary.
16978    runpath_var=LD_RUN_PATH
16979    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16980    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16981    # ancient GNU ld didn't support --whole-archive et. al.
16982    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16983	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16984      else
16985  	whole_archive_flag_spec_GCJ=
16986    fi
16987    supports_anon_versioning=no
16988    case `$LD -v 2>/dev/null` in
16989      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16990      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16991      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16992      *\ 2.11.*) ;; # other 2.11 versions
16993      *) supports_anon_versioning=yes ;;
16994    esac
16995
16996    # See if GNU ld supports shared libraries.
16997    case $host_os in
16998    aix3* | aix4* | aix5*)
16999      # On AIX/PPC, the GNU linker is very broken
17000      if test "$host_cpu" != ia64; then
17001	ld_shlibs_GCJ=no
17002	cat <<EOF 1>&2
17003
17004*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17005*** to be unable to reliably create shared libraries on AIX.
17006*** Therefore, libtool is disabling shared libraries support.  If you
17007*** really care for shared libraries, you may want to modify your PATH
17008*** so that a non-GNU linker is found, and then restart.
17009
17010EOF
17011      fi
17012      ;;
17013
17014    amigaos*)
17015      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)'
17016      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17017      hardcode_minus_L_GCJ=yes
17018
17019      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17020      # that the semantics of dynamic libraries on AmigaOS, at least up
17021      # to version 4, is to share data among multiple programs linked
17022      # with the same dynamic library.  Since this doesn't match the
17023      # behavior of shared libraries on other platforms, we can't use
17024      # them.
17025      ld_shlibs_GCJ=no
17026      ;;
17027
17028    beos*)
17029      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030	allow_undefined_flag_GCJ=unsupported
17031	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17032	# support --undefined.  This deserves some investigation.  FIXME
17033	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17034      else
17035	ld_shlibs_GCJ=no
17036      fi
17037      ;;
17038
17039    cygwin* | mingw* | pw32*)
17040      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17041      # as there is no search path for DLLs.
17042      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17043      allow_undefined_flag_GCJ=unsupported
17044      always_export_symbols_GCJ=no
17045      enable_shared_with_static_runtimes_GCJ=yes
17046      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17047
17048      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17049        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17050	# If the export-symbols file already is a .def file (1st line
17051	# is EXPORTS), use it as is; otherwise, prepend...
17052	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17053	  cp $export_symbols $output_objdir/$soname.def;
17054	else
17055	  echo EXPORTS > $output_objdir/$soname.def;
17056	  cat $export_symbols >> $output_objdir/$soname.def;
17057	fi~
17058	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17059      else
17060	ld_shlibs_GCJ=no
17061      fi
17062      ;;
17063
17064    interix3*)
17065      hardcode_direct_GCJ=no
17066      hardcode_shlibpath_var_GCJ=no
17067      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17068      export_dynamic_flag_spec_GCJ='${wl}-E'
17069      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17070      # Instead, shared libraries are loaded at an image base (0x10000000 by
17071      # default) and relocated if they conflict, which is a slow very memory
17072      # consuming and fragmenting process.  To avoid this, we pick a random,
17073      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17074      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17075      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17076      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17077      ;;
17078
17079    linux*)
17080      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17081	tmp_addflag=
17082	case $cc_basename,$host_cpu in
17083	pgcc*)				# Portland Group C compiler
17084	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17085	  tmp_addflag=' $pic_flag'
17086	  ;;
17087	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17088	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17089	  tmp_addflag=' $pic_flag -Mnomain' ;;
17090	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17091	  tmp_addflag=' -i_dynamic' ;;
17092	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17093	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17094	ifc* | ifort*)			# Intel Fortran compiler
17095	  tmp_addflag=' -nofor_main' ;;
17096	esac
17097	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17098
17099	if test $supports_anon_versioning = yes; then
17100	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17101  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17102  $echo "local: *; };" >> $output_objdir/$libname.ver~
17103	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17104	fi
17105      else
17106	ld_shlibs_GCJ=no
17107      fi
17108      ;;
17109
17110    netbsd*)
17111      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17112	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17113	wlarc=
17114      else
17115	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17116	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17117      fi
17118      ;;
17119
17120    solaris*)
17121      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17122	ld_shlibs_GCJ=no
17123	cat <<EOF 1>&2
17124
17125*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17126*** create shared libraries on Solaris systems.  Therefore, libtool
17127*** is disabling shared libraries support.  We urge you to upgrade GNU
17128*** binutils to release 2.9.1 or newer.  Another option is to modify
17129*** your PATH or compiler configuration so that the native linker is
17130*** used, and then restart.
17131
17132EOF
17133      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17134	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17135	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17136      else
17137	ld_shlibs_GCJ=no
17138      fi
17139      ;;
17140
17141    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17142      case `$LD -v 2>&1` in
17143        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17144	ld_shlibs_GCJ=no
17145	cat <<_LT_EOF 1>&2
17146
17147*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17148*** reliably create shared libraries on SCO systems.  Therefore, libtool
17149*** is disabling shared libraries support.  We urge you to upgrade GNU
17150*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17151*** your PATH or compiler configuration so that the native linker is
17152*** used, and then restart.
17153
17154_LT_EOF
17155	;;
17156	*)
17157	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17158	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17159	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17160	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17161	  else
17162	    ld_shlibs_GCJ=no
17163	  fi
17164	;;
17165      esac
17166      ;;
17167
17168    sunos4*)
17169      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17170      wlarc=
17171      hardcode_direct_GCJ=yes
17172      hardcode_shlibpath_var_GCJ=no
17173      ;;
17174
17175    *)
17176      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17177	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17178	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17179      else
17180	ld_shlibs_GCJ=no
17181      fi
17182      ;;
17183    esac
17184
17185    if test "$ld_shlibs_GCJ" = no; then
17186      runpath_var=
17187      hardcode_libdir_flag_spec_GCJ=
17188      export_dynamic_flag_spec_GCJ=
17189      whole_archive_flag_spec_GCJ=
17190    fi
17191  else
17192    # PORTME fill in a description of your system's linker (not GNU ld)
17193    case $host_os in
17194    aix3*)
17195      allow_undefined_flag_GCJ=unsupported
17196      always_export_symbols_GCJ=yes
17197      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'
17198      # Note: this linker hardcodes the directories in LIBPATH if there
17199      # are no directories specified by -L.
17200      hardcode_minus_L_GCJ=yes
17201      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17202	# Neither direct hardcoding nor static linking is supported with a
17203	# broken collect2.
17204	hardcode_direct_GCJ=unsupported
17205      fi
17206      ;;
17207
17208    aix4* | aix5*)
17209      if test "$host_cpu" = ia64; then
17210	# On IA64, the linker does run time linking by default, so we don't
17211	# have to do anything special.
17212	aix_use_runtimelinking=no
17213	exp_sym_flag='-Bexport'
17214	no_entry_flag=""
17215      else
17216	# If we're using GNU nm, then we don't want the "-C" option.
17217	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17218	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17219	  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'
17220	else
17221	  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'
17222	fi
17223	aix_use_runtimelinking=no
17224
17225	# Test if we are trying to use run time linking or normal
17226	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17227	# need to do runtime linking.
17228	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17229	  for ld_flag in $LDFLAGS; do
17230  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17231  	    aix_use_runtimelinking=yes
17232  	    break
17233  	  fi
17234	  done
17235	  ;;
17236	esac
17237
17238	exp_sym_flag='-bexport'
17239	no_entry_flag='-bnoentry'
17240      fi
17241
17242      # When large executables or shared objects are built, AIX ld can
17243      # have problems creating the table of contents.  If linking a library
17244      # or program results in "error TOC overflow" add -mminimal-toc to
17245      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17246      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17247
17248      archive_cmds_GCJ=''
17249      hardcode_direct_GCJ=yes
17250      hardcode_libdir_separator_GCJ=':'
17251      link_all_deplibs_GCJ=yes
17252
17253      if test "$GCC" = yes; then
17254	case $host_os in aix4.[012]|aix4.[012].*)
17255	# We only want to do this on AIX 4.2 and lower, the check
17256	# below for broken collect2 doesn't work under 4.3+
17257	  collect2name=`${CC} -print-prog-name=collect2`
17258	  if test -f "$collect2name" && \
17259  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17260	  then
17261  	  # We have reworked collect2
17262  	  hardcode_direct_GCJ=yes
17263	  else
17264  	  # We have old collect2
17265  	  hardcode_direct_GCJ=unsupported
17266  	  # It fails to find uninstalled libraries when the uninstalled
17267  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17268  	  # to unsupported forces relinking
17269  	  hardcode_minus_L_GCJ=yes
17270  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17271  	  hardcode_libdir_separator_GCJ=
17272	  fi
17273	  ;;
17274	esac
17275	shared_flag='-shared'
17276	if test "$aix_use_runtimelinking" = yes; then
17277	  shared_flag="$shared_flag "'${wl}-G'
17278	fi
17279      else
17280	# not using gcc
17281	if test "$host_cpu" = ia64; then
17282  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17283  	# chokes on -Wl,-G. The following line is correct:
17284	  shared_flag='-G'
17285	else
17286	  if test "$aix_use_runtimelinking" = yes; then
17287	    shared_flag='${wl}-G'
17288	  else
17289	    shared_flag='${wl}-bM:SRE'
17290	  fi
17291	fi
17292      fi
17293
17294      # It seems that -bexpall does not export symbols beginning with
17295      # underscore (_), so it is better to generate a list of symbols to export.
17296      always_export_symbols_GCJ=yes
17297      if test "$aix_use_runtimelinking" = yes; then
17298	# Warning - without using the other runtime loading flags (-brtl),
17299	# -berok will link without error, but may produce a broken library.
17300	allow_undefined_flag_GCJ='-berok'
17301       # Determine the default libpath from the value encoded in an empty executable.
17302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303/* end confdefs.h.  */
17304
17305int
17306main ()
17307{
17308
17309  ;
17310  return 0;
17311}
17312_ACEOF
17313if ac_fn_c_try_link "$LINENO"; then :
17314
17315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17316}'`
17317# Check for a 64-bit object if we didn't find anything.
17318if 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; }
17319}'`; fi
17320fi
17321rm -f core conftest.err conftest.$ac_objext \
17322    conftest$ac_exeext conftest.$ac_ext
17323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17324
17325       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17326	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17327       else
17328	if test "$host_cpu" = ia64; then
17329	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17330	  allow_undefined_flag_GCJ="-z nodefs"
17331	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17332	else
17333	 # Determine the default libpath from the value encoded in an empty executable.
17334	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335/* end confdefs.h.  */
17336
17337int
17338main ()
17339{
17340
17341  ;
17342  return 0;
17343}
17344_ACEOF
17345if ac_fn_c_try_link "$LINENO"; then :
17346
17347aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17348}'`
17349# Check for a 64-bit object if we didn't find anything.
17350if 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; }
17351}'`; fi
17352fi
17353rm -f core conftest.err conftest.$ac_objext \
17354    conftest$ac_exeext conftest.$ac_ext
17355if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17356
17357	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17358	  # Warning - without using the other run time loading flags,
17359	  # -berok will link without error, but may produce a broken library.
17360	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17361	  allow_undefined_flag_GCJ=' ${wl}-berok'
17362	  # Exported symbols can be pulled into shared objects from archives
17363	  whole_archive_flag_spec_GCJ='$convenience'
17364	  archive_cmds_need_lc_GCJ=yes
17365	  # This is similar to how AIX traditionally builds its shared libraries.
17366	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17367	fi
17368      fi
17369      ;;
17370
17371    amigaos*)
17372      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)'
17373      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374      hardcode_minus_L_GCJ=yes
17375      # see comment about different semantics on the GNU ld section
17376      ld_shlibs_GCJ=no
17377      ;;
17378
17379    bsdi[45]*)
17380      export_dynamic_flag_spec_GCJ=-rdynamic
17381      ;;
17382
17383    cygwin* | mingw* | pw32*)
17384      # When not using gcc, we currently assume that we are using
17385      # Microsoft Visual C++.
17386      # hardcode_libdir_flag_spec is actually meaningless, as there is
17387      # no search path for DLLs.
17388      hardcode_libdir_flag_spec_GCJ=' '
17389      allow_undefined_flag_GCJ=unsupported
17390      # Tell ltmain to make .lib files, not .a files.
17391      libext=lib
17392      # Tell ltmain to make .dll files, not .so files.
17393      shrext_cmds=".dll"
17394      # FIXME: Setting linknames here is a bad hack.
17395      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17396      # The linker will automatically build a .lib file if we build a DLL.
17397      old_archive_From_new_cmds_GCJ='true'
17398      # FIXME: Should let the user specify the lib program.
17399      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17400      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17401      enable_shared_with_static_runtimes_GCJ=yes
17402      ;;
17403
17404    darwin* | rhapsody*)
17405      case $host_os in
17406        rhapsody* | darwin1.[012])
17407         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17408         ;;
17409       *) # Darwin 1.3 on
17410         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17411           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17412         else
17413           case ${MACOSX_DEPLOYMENT_TARGET} in
17414             10.[012])
17415               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17416               ;;
17417             10.*)
17418               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17419               ;;
17420           esac
17421         fi
17422         ;;
17423      esac
17424      archive_cmds_need_lc_GCJ=no
17425      hardcode_direct_GCJ=no
17426      hardcode_automatic_GCJ=yes
17427      hardcode_shlibpath_var_GCJ=unsupported
17428      whole_archive_flag_spec_GCJ=''
17429      link_all_deplibs_GCJ=yes
17430    if test "$GCC" = yes ; then
17431    	output_verbose_link_cmd='echo'
17432        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17433      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435      archive_expsym_cmds_GCJ='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}'
17436      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}'
17437    else
17438      case $cc_basename in
17439        xlc*)
17440         output_verbose_link_cmd='echo'
17441         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17442         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17443          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17444         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17445          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}'
17446          ;;
17447       *)
17448         ld_shlibs_GCJ=no
17449          ;;
17450      esac
17451    fi
17452      ;;
17453
17454    dgux*)
17455      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457      hardcode_shlibpath_var_GCJ=no
17458      ;;
17459
17460    freebsd1*)
17461      ld_shlibs_GCJ=no
17462      ;;
17463
17464    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17465    # support.  Future versions do this automatically, but an explicit c++rt0.o
17466    # does not break anything, and helps significantly (at the cost of a little
17467    # extra space).
17468    freebsd2.2*)
17469      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17470      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471      hardcode_direct_GCJ=yes
17472      hardcode_shlibpath_var_GCJ=no
17473      ;;
17474
17475    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17476    freebsd2*)
17477      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17478      hardcode_direct_GCJ=yes
17479      hardcode_minus_L_GCJ=yes
17480      hardcode_shlibpath_var_GCJ=no
17481      ;;
17482
17483    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17484    freebsd* | kfreebsd*-gnu | dragonfly*)
17485      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17486      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487      hardcode_direct_GCJ=yes
17488      hardcode_shlibpath_var_GCJ=no
17489      ;;
17490
17491    hpux9*)
17492      if test "$GCC" = yes; then
17493	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'
17494      else
17495	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'
17496      fi
17497      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17498      hardcode_libdir_separator_GCJ=:
17499      hardcode_direct_GCJ=yes
17500
17501      # hardcode_minus_L: Not really in the search PATH,
17502      # but as the default location of the library.
17503      hardcode_minus_L_GCJ=yes
17504      export_dynamic_flag_spec_GCJ='${wl}-E'
17505      ;;
17506
17507    hpux10*)
17508      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17509	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17510      else
17511	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17512      fi
17513      if test "$with_gnu_ld" = no; then
17514	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17515	hardcode_libdir_separator_GCJ=:
17516
17517	hardcode_direct_GCJ=yes
17518	export_dynamic_flag_spec_GCJ='${wl}-E'
17519
17520	# hardcode_minus_L: Not really in the search PATH,
17521	# but as the default location of the library.
17522	hardcode_minus_L_GCJ=yes
17523      fi
17524      ;;
17525
17526    hpux11*)
17527      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17528	case $host_cpu in
17529	hppa*64*)
17530	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17531	  ;;
17532	ia64*)
17533	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17534	  ;;
17535	*)
17536	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17537	  ;;
17538	esac
17539      else
17540	case $host_cpu in
17541	hppa*64*)
17542	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17543	  ;;
17544	ia64*)
17545	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17546	  ;;
17547	*)
17548	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17549	  ;;
17550	esac
17551      fi
17552      if test "$with_gnu_ld" = no; then
17553	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17554	hardcode_libdir_separator_GCJ=:
17555
17556	case $host_cpu in
17557	hppa*64*|ia64*)
17558	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17559	  hardcode_direct_GCJ=no
17560	  hardcode_shlibpath_var_GCJ=no
17561	  ;;
17562	*)
17563	  hardcode_direct_GCJ=yes
17564	  export_dynamic_flag_spec_GCJ='${wl}-E'
17565
17566	  # hardcode_minus_L: Not really in the search PATH,
17567	  # but as the default location of the library.
17568	  hardcode_minus_L_GCJ=yes
17569	  ;;
17570	esac
17571      fi
17572      ;;
17573
17574    irix5* | irix6* | nonstopux*)
17575      if test "$GCC" = yes; then
17576	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'
17577      else
17578	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'
17579	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17580      fi
17581      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17582      hardcode_libdir_separator_GCJ=:
17583      link_all_deplibs_GCJ=yes
17584      ;;
17585
17586    netbsd*)
17587      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17588	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17589      else
17590	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17591      fi
17592      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17593      hardcode_direct_GCJ=yes
17594      hardcode_shlibpath_var_GCJ=no
17595      ;;
17596
17597    newsos6)
17598      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599      hardcode_direct_GCJ=yes
17600      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601      hardcode_libdir_separator_GCJ=:
17602      hardcode_shlibpath_var_GCJ=no
17603      ;;
17604
17605    openbsd*)
17606      hardcode_direct_GCJ=yes
17607      hardcode_shlibpath_var_GCJ=no
17608      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17609	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17611	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612	export_dynamic_flag_spec_GCJ='${wl}-E'
17613      else
17614       case $host_os in
17615	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17616	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17618	   ;;
17619	 *)
17620	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17621	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17622	   ;;
17623       esac
17624      fi
17625      ;;
17626
17627    os2*)
17628      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629      hardcode_minus_L_GCJ=yes
17630      allow_undefined_flag_GCJ=unsupported
17631      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'
17632      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17633      ;;
17634
17635    osf3*)
17636      if test "$GCC" = yes; then
17637	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17638	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'
17639      else
17640	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17641	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'
17642      fi
17643      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17644      hardcode_libdir_separator_GCJ=:
17645      ;;
17646
17647    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17648      if test "$GCC" = yes; then
17649	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17650	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'
17651	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17652      else
17653	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17654	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'
17655	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~
17656	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17657
17658	# Both c and cxx compiler support -rpath directly
17659	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17660      fi
17661      hardcode_libdir_separator_GCJ=:
17662      ;;
17663
17664    solaris*)
17665      no_undefined_flag_GCJ=' -z text'
17666      if test "$GCC" = yes; then
17667	wlarc='${wl}'
17668	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17670	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17671      else
17672	wlarc=''
17673	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17676      fi
17677      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17678      hardcode_shlibpath_var_GCJ=no
17679      case $host_os in
17680      solaris2.[0-5] | solaris2.[0-5].*) ;;
17681      *)
17682 	# The compiler driver will combine linker options so we
17683 	# cannot just pass the convience library names through
17684 	# without $wl, iff we do not link with $LD.
17685 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17686 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17687 	case $wlarc in
17688 	'')
17689 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17690 	*)
17691 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17692 	esac ;;
17693      esac
17694      link_all_deplibs_GCJ=yes
17695      ;;
17696
17697    sunos4*)
17698      if test "x$host_vendor" = xsequent; then
17699	# Use $CC to link under sequent, because it throws in some extra .o
17700	# files that make .init and .fini sections work.
17701	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17702      else
17703	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17704      fi
17705      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706      hardcode_direct_GCJ=yes
17707      hardcode_minus_L_GCJ=yes
17708      hardcode_shlibpath_var_GCJ=no
17709      ;;
17710
17711    sysv4)
17712      case $host_vendor in
17713	sni)
17714	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715	  hardcode_direct_GCJ=yes # is this really true???
17716	;;
17717	siemens)
17718	  ## LD is ld it makes a PLAMLIB
17719	  ## CC just makes a GrossModule.
17720	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17721	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17722	  hardcode_direct_GCJ=no
17723        ;;
17724	motorola)
17725	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17727	;;
17728      esac
17729      runpath_var='LD_RUN_PATH'
17730      hardcode_shlibpath_var_GCJ=no
17731      ;;
17732
17733    sysv4.3*)
17734      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735      hardcode_shlibpath_var_GCJ=no
17736      export_dynamic_flag_spec_GCJ='-Bexport'
17737      ;;
17738
17739    sysv4*MP*)
17740      if test -d /usr/nec; then
17741	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742	hardcode_shlibpath_var_GCJ=no
17743	runpath_var=LD_RUN_PATH
17744	hardcode_runpath_var=yes
17745	ld_shlibs_GCJ=yes
17746      fi
17747      ;;
17748
17749    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17750      no_undefined_flag_GCJ='${wl}-z,text'
17751      archive_cmds_need_lc_GCJ=no
17752      hardcode_shlibpath_var_GCJ=no
17753      runpath_var='LD_RUN_PATH'
17754
17755      if test "$GCC" = yes; then
17756	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758      else
17759	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761      fi
17762      ;;
17763
17764    sysv5* | sco3.2v5* | sco5v6*)
17765      # Note: We can NOT use -z defs as we might desire, because we do not
17766      # link with -lc, and that would cause any symbols used from libc to
17767      # always be unresolved, which means just about no library would
17768      # ever link correctly.  If we're not using GNU ld we use -z text
17769      # though, which does catch some bad symbols but isn't as heavy-handed
17770      # as -z defs.
17771      no_undefined_flag_GCJ='${wl}-z,text'
17772      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17773      archive_cmds_need_lc_GCJ=no
17774      hardcode_shlibpath_var_GCJ=no
17775      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17776      hardcode_libdir_separator_GCJ=':'
17777      link_all_deplibs_GCJ=yes
17778      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17779      runpath_var='LD_RUN_PATH'
17780
17781      if test "$GCC" = yes; then
17782	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784      else
17785	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787      fi
17788      ;;
17789
17790    uts4*)
17791      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793      hardcode_shlibpath_var_GCJ=no
17794      ;;
17795
17796    *)
17797      ld_shlibs_GCJ=no
17798      ;;
17799    esac
17800  fi
17801
17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17803$as_echo "$ld_shlibs_GCJ" >&6; }
17804test "$ld_shlibs_GCJ" = no && can_build_shared=no
17805
17806#
17807# Do we need to explicitly link libc?
17808#
17809case "x$archive_cmds_need_lc_GCJ" in
17810x|xyes)
17811  # Assume -lc should be added
17812  archive_cmds_need_lc_GCJ=yes
17813
17814  if test "$enable_shared" = yes && test "$GCC" = yes; then
17815    case $archive_cmds_GCJ in
17816    *'~'*)
17817      # FIXME: we may have to deal with multi-command sequences.
17818      ;;
17819    '$CC '*)
17820      # Test whether the compiler implicitly links with -lc since on some
17821      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17822      # to ld, don't add -lc before -lgcc.
17823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17824$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17825      $rm conftest*
17826      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17827
17828      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17829  (eval $ac_compile) 2>&5
17830  ac_status=$?
17831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17832  test $ac_status = 0; } 2>conftest.err; then
17833        soname=conftest
17834        lib=conftest
17835        libobjs=conftest.$ac_objext
17836        deplibs=
17837        wl=$lt_prog_compiler_wl_GCJ
17838	pic_flag=$lt_prog_compiler_pic_GCJ
17839        compiler_flags=-v
17840        linker_flags=-v
17841        verstring=
17842        output_objdir=.
17843        libname=conftest
17844        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17845        allow_undefined_flag_GCJ=
17846        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17847  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17848  ac_status=$?
17849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17850  test $ac_status = 0; }
17851        then
17852	  archive_cmds_need_lc_GCJ=no
17853        else
17854	  archive_cmds_need_lc_GCJ=yes
17855        fi
17856        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17857      else
17858        cat conftest.err 1>&5
17859      fi
17860      $rm conftest*
17861      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17862$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17863      ;;
17864    esac
17865  fi
17866  ;;
17867esac
17868
17869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17870$as_echo_n "checking dynamic linker characteristics... " >&6; }
17871library_names_spec=
17872libname_spec='lib$name'
17873soname_spec=
17874shrext_cmds=".so"
17875postinstall_cmds=
17876postuninstall_cmds=
17877finish_cmds=
17878finish_eval=
17879shlibpath_var=
17880shlibpath_overrides_runpath=unknown
17881version_type=none
17882dynamic_linker="$host_os ld.so"
17883sys_lib_dlsearch_path_spec="/lib /usr/lib"
17884if test "$GCC" = yes; then
17885  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17886  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17887    # if the path contains ";" then we assume it to be the separator
17888    # otherwise default to the standard path separator (i.e. ":") - it is
17889    # assumed that no part of a normal pathname contains ";" but that should
17890    # okay in the real world where ";" in dirpaths is itself problematic.
17891    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17892  else
17893    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17894  fi
17895else
17896  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17897fi
17898need_lib_prefix=unknown
17899hardcode_into_libs=no
17900
17901# when you set need_version to no, make sure it does not cause -set_version
17902# flags to be left without arguments
17903need_version=unknown
17904
17905case $host_os in
17906aix3*)
17907  version_type=linux
17908  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17909  shlibpath_var=LIBPATH
17910
17911  # AIX 3 has no versioning support, so we append a major version to the name.
17912  soname_spec='${libname}${release}${shared_ext}$major'
17913  ;;
17914
17915aix4* | aix5*)
17916  version_type=linux
17917  need_lib_prefix=no
17918  need_version=no
17919  hardcode_into_libs=yes
17920  if test "$host_cpu" = ia64; then
17921    # AIX 5 supports IA64
17922    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17923    shlibpath_var=LD_LIBRARY_PATH
17924  else
17925    # With GCC up to 2.95.x, collect2 would create an import file
17926    # for dependence libraries.  The import file would start with
17927    # the line `#! .'.  This would cause the generated library to
17928    # depend on `.', always an invalid library.  This was fixed in
17929    # development snapshots of GCC prior to 3.0.
17930    case $host_os in
17931      aix4 | aix4.[01] | aix4.[01].*)
17932      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17933	   echo ' yes '
17934	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17935	:
17936      else
17937	can_build_shared=no
17938      fi
17939      ;;
17940    esac
17941    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17942    # soname into executable. Probably we can add versioning support to
17943    # collect2, so additional links can be useful in future.
17944    if test "$aix_use_runtimelinking" = yes; then
17945      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17946      # instead of lib<name>.a to let people know that these are not
17947      # typical AIX shared libraries.
17948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949    else
17950      # We preserve .a as extension for shared libraries through AIX4.2
17951      # and later when we are not doing run time linking.
17952      library_names_spec='${libname}${release}.a $libname.a'
17953      soname_spec='${libname}${release}${shared_ext}$major'
17954    fi
17955    shlibpath_var=LIBPATH
17956  fi
17957  ;;
17958
17959amigaos*)
17960  library_names_spec='$libname.ixlibrary $libname.a'
17961  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17962  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'
17963  ;;
17964
17965beos*)
17966  library_names_spec='${libname}${shared_ext}'
17967  dynamic_linker="$host_os ld.so"
17968  shlibpath_var=LIBRARY_PATH
17969  ;;
17970
17971bsdi[45]*)
17972  version_type=linux
17973  need_version=no
17974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975  soname_spec='${libname}${release}${shared_ext}$major'
17976  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17977  shlibpath_var=LD_LIBRARY_PATH
17978  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17979  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17980  # the default ld.so.conf also contains /usr/contrib/lib and
17981  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17982  # libtool to hard-code these into programs
17983  ;;
17984
17985cygwin* | mingw* | pw32*)
17986  version_type=windows
17987  shrext_cmds=".dll"
17988  need_version=no
17989  need_lib_prefix=no
17990
17991  case $GCC,$host_os in
17992  yes,cygwin* | yes,mingw* | yes,pw32*)
17993    library_names_spec='$libname.dll.a'
17994    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17995    postinstall_cmds='base_file=`basename \${file}`~
17996      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17997      dldir=$destdir/`dirname \$dlpath`~
17998      test -d \$dldir || mkdir -p \$dldir~
17999      $install_prog $dir/$dlname \$dldir/$dlname~
18000      chmod a+x \$dldir/$dlname'
18001    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18002      dlpath=$dir/\$dldll~
18003       $rm \$dlpath'
18004    shlibpath_overrides_runpath=yes
18005
18006    case $host_os in
18007    cygwin*)
18008      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18009      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18010      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18011      ;;
18012    mingw*)
18013      # MinGW DLLs use traditional 'lib' prefix
18014      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18016      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18017        # It is most probably a Windows format PATH printed by
18018        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18019        # path with ; separators, and with drive letters. We can handle the
18020        # drive letters (cygwin fileutils understands them), so leave them,
18021        # especially as we might pass files found there to a mingw objdump,
18022        # which wouldn't understand a cygwinified path. Ahh.
18023        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18024      else
18025        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18026      fi
18027      ;;
18028    pw32*)
18029      # pw32 DLLs use 'pw' prefix rather than 'lib'
18030      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18031      ;;
18032    esac
18033    ;;
18034
18035  *)
18036    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18037    ;;
18038  esac
18039  dynamic_linker='Win32 ld.exe'
18040  # FIXME: first we should search . and the directory the executable is in
18041  shlibpath_var=PATH
18042  ;;
18043
18044darwin* | rhapsody*)
18045  dynamic_linker="$host_os dyld"
18046  version_type=darwin
18047  need_lib_prefix=no
18048  need_version=no
18049  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18050  soname_spec='${libname}${release}${major}$shared_ext'
18051  shlibpath_overrides_runpath=yes
18052  shlibpath_var=DYLD_LIBRARY_PATH
18053  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18054  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18055  if test "$GCC" = yes; then
18056    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"`
18057  else
18058    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18059  fi
18060  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18061  ;;
18062
18063dgux*)
18064  version_type=linux
18065  need_lib_prefix=no
18066  need_version=no
18067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18068  soname_spec='${libname}${release}${shared_ext}$major'
18069  shlibpath_var=LD_LIBRARY_PATH
18070  ;;
18071
18072freebsd1*)
18073  dynamic_linker=no
18074  ;;
18075
18076kfreebsd*-gnu)
18077  version_type=linux
18078  need_lib_prefix=no
18079  need_version=no
18080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081  soname_spec='${libname}${release}${shared_ext}$major'
18082  shlibpath_var=LD_LIBRARY_PATH
18083  shlibpath_overrides_runpath=no
18084  hardcode_into_libs=yes
18085  dynamic_linker='GNU ld.so'
18086  ;;
18087
18088freebsd* | dragonfly*)
18089  # DragonFly does not have aout.  When/if they implement a new
18090  # versioning mechanism, adjust this.
18091  if test -x /usr/bin/objformat; then
18092    objformat=`/usr/bin/objformat`
18093  else
18094    case $host_os in
18095    freebsd[123]*) objformat=aout ;;
18096    *) objformat=elf ;;
18097    esac
18098  fi
18099  version_type=freebsd-$objformat
18100  case $version_type in
18101    freebsd-elf*)
18102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18103      need_version=no
18104      need_lib_prefix=no
18105      ;;
18106    freebsd-*)
18107      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18108      need_version=yes
18109      ;;
18110  esac
18111  shlibpath_var=LD_LIBRARY_PATH
18112  case $host_os in
18113  freebsd2*)
18114    shlibpath_overrides_runpath=yes
18115    ;;
18116  freebsd3.[01]* | freebsdelf3.[01]*)
18117    shlibpath_overrides_runpath=yes
18118    hardcode_into_libs=yes
18119    ;;
18120  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122    shlibpath_overrides_runpath=no
18123    hardcode_into_libs=yes
18124    ;;
18125  freebsd*) # from 4.6 on
18126    shlibpath_overrides_runpath=yes
18127    hardcode_into_libs=yes
18128    ;;
18129  esac
18130  ;;
18131
18132gnu*)
18133  version_type=linux
18134  need_lib_prefix=no
18135  need_version=no
18136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137  soname_spec='${libname}${release}${shared_ext}$major'
18138  shlibpath_var=LD_LIBRARY_PATH
18139  hardcode_into_libs=yes
18140  ;;
18141
18142hpux9* | hpux10* | hpux11*)
18143  # Give a soname corresponding to the major version so that dld.sl refuses to
18144  # link against other versions.
18145  version_type=sunos
18146  need_lib_prefix=no
18147  need_version=no
18148  case $host_cpu in
18149  ia64*)
18150    shrext_cmds='.so'
18151    hardcode_into_libs=yes
18152    dynamic_linker="$host_os dld.so"
18153    shlibpath_var=LD_LIBRARY_PATH
18154    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156    soname_spec='${libname}${release}${shared_ext}$major'
18157    if test "X$HPUX_IA64_MODE" = X32; then
18158      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18159    else
18160      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18161    fi
18162    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18163    ;;
18164   hppa*64*)
18165     shrext_cmds='.sl'
18166     hardcode_into_libs=yes
18167     dynamic_linker="$host_os dld.sl"
18168     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171     soname_spec='${libname}${release}${shared_ext}$major'
18172     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174     ;;
18175   *)
18176    shrext_cmds='.sl'
18177    dynamic_linker="$host_os dld.sl"
18178    shlibpath_var=SHLIB_PATH
18179    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181    soname_spec='${libname}${release}${shared_ext}$major'
18182    ;;
18183  esac
18184  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18185  postinstall_cmds='chmod 555 $lib'
18186  ;;
18187
18188interix3*)
18189  version_type=linux
18190  need_lib_prefix=no
18191  need_version=no
18192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193  soname_spec='${libname}${release}${shared_ext}$major'
18194  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195  shlibpath_var=LD_LIBRARY_PATH
18196  shlibpath_overrides_runpath=no
18197  hardcode_into_libs=yes
18198  ;;
18199
18200irix5* | irix6* | nonstopux*)
18201  case $host_os in
18202    nonstopux*) version_type=nonstopux ;;
18203    *)
18204	if test "$lt_cv_prog_gnu_ld" = yes; then
18205		version_type=linux
18206	else
18207		version_type=irix
18208	fi ;;
18209  esac
18210  need_lib_prefix=no
18211  need_version=no
18212  soname_spec='${libname}${release}${shared_ext}$major'
18213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18214  case $host_os in
18215  irix5* | nonstopux*)
18216    libsuff= shlibsuff=
18217    ;;
18218  *)
18219    case $LD in # libtool.m4 will add one of these switches to LD
18220    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221      libsuff= shlibsuff= libmagic=32-bit;;
18222    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223      libsuff=32 shlibsuff=N32 libmagic=N32;;
18224    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226    *) libsuff= shlibsuff= libmagic=never-match;;
18227    esac
18228    ;;
18229  esac
18230  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231  shlibpath_overrides_runpath=no
18232  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234  hardcode_into_libs=yes
18235  ;;
18236
18237# No shared lib support for Linux oldld, aout, or coff.
18238linux*oldld* | linux*aout* | linux*coff*)
18239  dynamic_linker=no
18240  ;;
18241
18242# This must be Linux ELF.
18243linux*)
18244  version_type=linux
18245  need_lib_prefix=no
18246  need_version=no
18247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248  soname_spec='${libname}${release}${shared_ext}$major'
18249  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250  shlibpath_var=LD_LIBRARY_PATH
18251  shlibpath_overrides_runpath=no
18252  # This implies no fast_install, which is unacceptable.
18253  # Some rework will be needed to allow for fast_install
18254  # before this can be enabled.
18255  hardcode_into_libs=yes
18256
18257  # Append ld.so.conf contents to the search path
18258  if test -f /etc/ld.so.conf; then
18259    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18260    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18261  fi
18262
18263  # We used to test for /lib/ld.so.1 and disable shared libraries on
18264  # powerpc, because MkLinux only supported shared libraries with the
18265  # GNU dynamic linker.  Since this was broken with cross compilers,
18266  # most powerpc-linux boxes support dynamic linking these days and
18267  # people can always --disable-shared, the test was removed, and we
18268  # assume the GNU/Linux dynamic linker is in use.
18269  dynamic_linker='GNU/Linux ld.so'
18270  ;;
18271
18272knetbsd*-gnu)
18273  version_type=linux
18274  need_lib_prefix=no
18275  need_version=no
18276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277  soname_spec='${libname}${release}${shared_ext}$major'
18278  shlibpath_var=LD_LIBRARY_PATH
18279  shlibpath_overrides_runpath=no
18280  hardcode_into_libs=yes
18281  dynamic_linker='GNU ld.so'
18282  ;;
18283
18284netbsd*)
18285  version_type=sunos
18286  need_lib_prefix=no
18287  need_version=no
18288  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18289    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18290    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18291    dynamic_linker='NetBSD (a.out) ld.so'
18292  else
18293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18294    soname_spec='${libname}${release}${shared_ext}$major'
18295    dynamic_linker='NetBSD ld.elf_so'
18296  fi
18297  shlibpath_var=LD_LIBRARY_PATH
18298  shlibpath_overrides_runpath=yes
18299  hardcode_into_libs=yes
18300  ;;
18301
18302newsos6)
18303  version_type=linux
18304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305  shlibpath_var=LD_LIBRARY_PATH
18306  shlibpath_overrides_runpath=yes
18307  ;;
18308
18309nto-qnx*)
18310  version_type=linux
18311  need_lib_prefix=no
18312  need_version=no
18313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314  soname_spec='${libname}${release}${shared_ext}$major'
18315  shlibpath_var=LD_LIBRARY_PATH
18316  shlibpath_overrides_runpath=yes
18317  ;;
18318
18319openbsd*)
18320  version_type=sunos
18321  sys_lib_dlsearch_path_spec="/usr/lib"
18322  need_lib_prefix=no
18323  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18324  case $host_os in
18325    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18326    *)                         need_version=no  ;;
18327  esac
18328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18330  shlibpath_var=LD_LIBRARY_PATH
18331  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18332    case $host_os in
18333      openbsd2.[89] | openbsd2.[89].*)
18334	shlibpath_overrides_runpath=no
18335	;;
18336      *)
18337	shlibpath_overrides_runpath=yes
18338	;;
18339      esac
18340  else
18341    shlibpath_overrides_runpath=yes
18342  fi
18343  ;;
18344
18345os2*)
18346  libname_spec='$name'
18347  shrext_cmds=".dll"
18348  need_lib_prefix=no
18349  library_names_spec='$libname${shared_ext} $libname.a'
18350  dynamic_linker='OS/2 ld.exe'
18351  shlibpath_var=LIBPATH
18352  ;;
18353
18354osf3* | osf4* | osf5*)
18355  version_type=osf
18356  need_lib_prefix=no
18357  need_version=no
18358  soname_spec='${libname}${release}${shared_ext}$major'
18359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360  shlibpath_var=LD_LIBRARY_PATH
18361  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18362  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18363  ;;
18364
18365solaris*)
18366  version_type=linux
18367  need_lib_prefix=no
18368  need_version=no
18369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370  soname_spec='${libname}${release}${shared_ext}$major'
18371  shlibpath_var=LD_LIBRARY_PATH
18372  shlibpath_overrides_runpath=yes
18373  hardcode_into_libs=yes
18374  # ldd complains unless libraries are executable
18375  postinstall_cmds='chmod +x $lib'
18376  ;;
18377
18378sunos4*)
18379  version_type=sunos
18380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18381  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18382  shlibpath_var=LD_LIBRARY_PATH
18383  shlibpath_overrides_runpath=yes
18384  if test "$with_gnu_ld" = yes; then
18385    need_lib_prefix=no
18386  fi
18387  need_version=yes
18388  ;;
18389
18390sysv4 | sysv4.3*)
18391  version_type=linux
18392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393  soname_spec='${libname}${release}${shared_ext}$major'
18394  shlibpath_var=LD_LIBRARY_PATH
18395  case $host_vendor in
18396    sni)
18397      shlibpath_overrides_runpath=no
18398      need_lib_prefix=no
18399      export_dynamic_flag_spec='${wl}-Blargedynsym'
18400      runpath_var=LD_RUN_PATH
18401      ;;
18402    siemens)
18403      need_lib_prefix=no
18404      ;;
18405    motorola)
18406      need_lib_prefix=no
18407      need_version=no
18408      shlibpath_overrides_runpath=no
18409      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18410      ;;
18411  esac
18412  ;;
18413
18414sysv4*MP*)
18415  if test -d /usr/nec ;then
18416    version_type=linux
18417    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18418    soname_spec='$libname${shared_ext}.$major'
18419    shlibpath_var=LD_LIBRARY_PATH
18420  fi
18421  ;;
18422
18423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18424  version_type=freebsd-elf
18425  need_lib_prefix=no
18426  need_version=no
18427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428  soname_spec='${libname}${release}${shared_ext}$major'
18429  shlibpath_var=LD_LIBRARY_PATH
18430  hardcode_into_libs=yes
18431  if test "$with_gnu_ld" = yes; then
18432    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18433    shlibpath_overrides_runpath=no
18434  else
18435    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18436    shlibpath_overrides_runpath=yes
18437    case $host_os in
18438      sco3.2v5*)
18439        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18440	;;
18441    esac
18442  fi
18443  sys_lib_dlsearch_path_spec='/usr/lib'
18444  ;;
18445
18446uts4*)
18447  version_type=linux
18448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449  soname_spec='${libname}${release}${shared_ext}$major'
18450  shlibpath_var=LD_LIBRARY_PATH
18451  ;;
18452
18453*)
18454  dynamic_linker=no
18455  ;;
18456esac
18457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18458$as_echo "$dynamic_linker" >&6; }
18459test "$dynamic_linker" = no && can_build_shared=no
18460
18461variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18462if test "$GCC" = yes; then
18463  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18464fi
18465
18466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18467$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18468hardcode_action_GCJ=
18469if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18470   test -n "$runpath_var_GCJ" || \
18471   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18472
18473  # We can hardcode non-existant directories.
18474  if test "$hardcode_direct_GCJ" != no &&
18475     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18476     # have to relink, otherwise we might link with an installed library
18477     # when we should be linking with a yet-to-be-installed one
18478     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18479     test "$hardcode_minus_L_GCJ" != no; then
18480    # Linking always hardcodes the temporary library directory.
18481    hardcode_action_GCJ=relink
18482  else
18483    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18484    hardcode_action_GCJ=immediate
18485  fi
18486else
18487  # We cannot hardcode anything, or else we can only hardcode existing
18488  # directories.
18489  hardcode_action_GCJ=unsupported
18490fi
18491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18492$as_echo "$hardcode_action_GCJ" >&6; }
18493
18494if test "$hardcode_action_GCJ" = relink; then
18495  # Fast installation is not supported
18496  enable_fast_install=no
18497elif test "$shlibpath_overrides_runpath" = yes ||
18498     test "$enable_shared" = no; then
18499  # Fast installation is not necessary
18500  enable_fast_install=needless
18501fi
18502
18503
18504# The else clause should only fire when bootstrapping the
18505# libtool distribution, otherwise you forgot to ship ltmain.sh
18506# with your package, and you will get complaints that there are
18507# no rules to generate ltmain.sh.
18508if test -f "$ltmain"; then
18509  # See if we are running on zsh, and set the options which allow our commands through
18510  # without removal of \ escapes.
18511  if test -n "${ZSH_VERSION+set}" ; then
18512    setopt NO_GLOB_SUBST
18513  fi
18514  # Now quote all the things that may contain metacharacters while being
18515  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18516  # variables and quote the copies for generation of the libtool script.
18517  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18518    SED SHELL STRIP \
18519    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18520    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18521    deplibs_check_method reload_flag reload_cmds need_locks \
18522    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18523    lt_cv_sys_global_symbol_to_c_name_address \
18524    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18525    old_postinstall_cmds old_postuninstall_cmds \
18526    compiler_GCJ \
18527    CC_GCJ \
18528    LD_GCJ \
18529    lt_prog_compiler_wl_GCJ \
18530    lt_prog_compiler_pic_GCJ \
18531    lt_prog_compiler_static_GCJ \
18532    lt_prog_compiler_no_builtin_flag_GCJ \
18533    export_dynamic_flag_spec_GCJ \
18534    thread_safe_flag_spec_GCJ \
18535    whole_archive_flag_spec_GCJ \
18536    enable_shared_with_static_runtimes_GCJ \
18537    old_archive_cmds_GCJ \
18538    old_archive_from_new_cmds_GCJ \
18539    predep_objects_GCJ \
18540    postdep_objects_GCJ \
18541    predeps_GCJ \
18542    postdeps_GCJ \
18543    compiler_lib_search_path_GCJ \
18544    archive_cmds_GCJ \
18545    archive_expsym_cmds_GCJ \
18546    postinstall_cmds_GCJ \
18547    postuninstall_cmds_GCJ \
18548    old_archive_from_expsyms_cmds_GCJ \
18549    allow_undefined_flag_GCJ \
18550    no_undefined_flag_GCJ \
18551    export_symbols_cmds_GCJ \
18552    hardcode_libdir_flag_spec_GCJ \
18553    hardcode_libdir_flag_spec_ld_GCJ \
18554    hardcode_libdir_separator_GCJ \
18555    hardcode_automatic_GCJ \
18556    module_cmds_GCJ \
18557    module_expsym_cmds_GCJ \
18558    lt_cv_prog_compiler_c_o_GCJ \
18559    exclude_expsyms_GCJ \
18560    include_expsyms_GCJ; do
18561
18562    case $var in
18563    old_archive_cmds_GCJ | \
18564    old_archive_from_new_cmds_GCJ | \
18565    archive_cmds_GCJ | \
18566    archive_expsym_cmds_GCJ | \
18567    module_cmds_GCJ | \
18568    module_expsym_cmds_GCJ | \
18569    old_archive_from_expsyms_cmds_GCJ | \
18570    export_symbols_cmds_GCJ | \
18571    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18572    postinstall_cmds | postuninstall_cmds | \
18573    old_postinstall_cmds | old_postuninstall_cmds | \
18574    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18575      # Double-quote double-evaled strings.
18576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18577      ;;
18578    *)
18579      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18580      ;;
18581    esac
18582  done
18583
18584  case $lt_echo in
18585  *'\$0 --fallback-echo"')
18586    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18587    ;;
18588  esac
18589
18590cfgfile="$ofile"
18591
18592  cat <<__EOF__ >> "$cfgfile"
18593# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18594
18595# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18596
18597# Shell to use when invoking shell scripts.
18598SHELL=$lt_SHELL
18599
18600# Whether or not to build shared libraries.
18601build_libtool_libs=$enable_shared
18602
18603# Whether or not to build static libraries.
18604build_old_libs=$enable_static
18605
18606# Whether or not to add -lc for building shared libraries.
18607build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18608
18609# Whether or not to disallow shared libs when runtime libs are static
18610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18611
18612# Whether or not to optimize for fast installation.
18613fast_install=$enable_fast_install
18614
18615# The host system.
18616host_alias=$host_alias
18617host=$host
18618host_os=$host_os
18619
18620# The build system.
18621build_alias=$build_alias
18622build=$build
18623build_os=$build_os
18624
18625# An echo program that does not interpret backslashes.
18626echo=$lt_echo
18627
18628# The archiver.
18629AR=$lt_AR
18630AR_FLAGS=$lt_AR_FLAGS
18631
18632# A C compiler.
18633LTCC=$lt_LTCC
18634
18635# LTCC compiler flags.
18636LTCFLAGS=$lt_LTCFLAGS
18637
18638# A language-specific compiler.
18639CC=$lt_compiler_GCJ
18640
18641# Is the compiler the GNU C compiler?
18642with_gcc=$GCC_GCJ
18643
18644# An ERE matcher.
18645EGREP=$lt_EGREP
18646
18647# The linker used to build libraries.
18648LD=$lt_LD_GCJ
18649
18650# Whether we need hard or soft links.
18651LN_S=$lt_LN_S
18652
18653# A BSD-compatible nm program.
18654NM=$lt_NM
18655
18656# A symbol stripping program
18657STRIP=$lt_STRIP
18658
18659# Used to examine libraries when file_magic_cmd begins "file"
18660MAGIC_CMD=$MAGIC_CMD
18661
18662# Used on cygwin: DLL creation program.
18663DLLTOOL="$DLLTOOL"
18664
18665# Used on cygwin: object dumper.
18666OBJDUMP="$OBJDUMP"
18667
18668# Used on cygwin: assembler.
18669AS="$AS"
18670
18671# The name of the directory that contains temporary libtool files.
18672objdir=$objdir
18673
18674# How to create reloadable object files.
18675reload_flag=$lt_reload_flag
18676reload_cmds=$lt_reload_cmds
18677
18678# How to pass a linker flag through the compiler.
18679wl=$lt_lt_prog_compiler_wl_GCJ
18680
18681# Object file suffix (normally "o").
18682objext="$ac_objext"
18683
18684# Old archive suffix (normally "a").
18685libext="$libext"
18686
18687# Shared library suffix (normally ".so").
18688shrext_cmds='$shrext_cmds'
18689
18690# Executable file suffix (normally "").
18691exeext="$exeext"
18692
18693# Additional compiler flags for building library objects.
18694pic_flag=$lt_lt_prog_compiler_pic_GCJ
18695pic_mode=$pic_mode
18696
18697# What is the maximum length of a command?
18698max_cmd_len=$lt_cv_sys_max_cmd_len
18699
18700# Does compiler simultaneously support -c and -o options?
18701compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18702
18703# Must we lock files when doing compilation?
18704need_locks=$lt_need_locks
18705
18706# Do we need the lib prefix for modules?
18707need_lib_prefix=$need_lib_prefix
18708
18709# Do we need a version for libraries?
18710need_version=$need_version
18711
18712# Whether dlopen is supported.
18713dlopen_support=$enable_dlopen
18714
18715# Whether dlopen of programs is supported.
18716dlopen_self=$enable_dlopen_self
18717
18718# Whether dlopen of statically linked programs is supported.
18719dlopen_self_static=$enable_dlopen_self_static
18720
18721# Compiler flag to prevent dynamic linking.
18722link_static_flag=$lt_lt_prog_compiler_static_GCJ
18723
18724# Compiler flag to turn off builtin functions.
18725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18726
18727# Compiler flag to allow reflexive dlopens.
18728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18729
18730# Compiler flag to generate shared objects directly from archives.
18731whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18732
18733# Compiler flag to generate thread-safe objects.
18734thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18735
18736# Library versioning type.
18737version_type=$version_type
18738
18739# Format of library name prefix.
18740libname_spec=$lt_libname_spec
18741
18742# List of archive names.  First name is the real one, the rest are links.
18743# The last name is the one that the linker finds with -lNAME.
18744library_names_spec=$lt_library_names_spec
18745
18746# The coded name of the library, if different from the real name.
18747soname_spec=$lt_soname_spec
18748
18749# Commands used to build and install an old-style archive.
18750RANLIB=$lt_RANLIB
18751old_archive_cmds=$lt_old_archive_cmds_GCJ
18752old_postinstall_cmds=$lt_old_postinstall_cmds
18753old_postuninstall_cmds=$lt_old_postuninstall_cmds
18754
18755# Create an old-style archive from a shared archive.
18756old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18757
18758# Create a temporary old-style archive to link instead of a shared archive.
18759old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18760
18761# Commands used to build and install a shared archive.
18762archive_cmds=$lt_archive_cmds_GCJ
18763archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18764postinstall_cmds=$lt_postinstall_cmds
18765postuninstall_cmds=$lt_postuninstall_cmds
18766
18767# Commands used to build a loadable module (assumed same as above if empty)
18768module_cmds=$lt_module_cmds_GCJ
18769module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18770
18771# Commands to strip libraries.
18772old_striplib=$lt_old_striplib
18773striplib=$lt_striplib
18774
18775# Dependencies to place before the objects being linked to create a
18776# shared library.
18777predep_objects=$lt_predep_objects_GCJ
18778
18779# Dependencies to place after the objects being linked to create a
18780# shared library.
18781postdep_objects=$lt_postdep_objects_GCJ
18782
18783# Dependencies to place before the objects being linked to create a
18784# shared library.
18785predeps=$lt_predeps_GCJ
18786
18787# Dependencies to place after the objects being linked to create a
18788# shared library.
18789postdeps=$lt_postdeps_GCJ
18790
18791# The library search path used internally by the compiler when linking
18792# a shared library.
18793compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18794
18795# Method to check whether dependent libraries are shared objects.
18796deplibs_check_method=$lt_deplibs_check_method
18797
18798# Command to use when deplibs_check_method == file_magic.
18799file_magic_cmd=$lt_file_magic_cmd
18800
18801# Flag that allows shared libraries with undefined symbols to be built.
18802allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18803
18804# Flag that forces no undefined symbols.
18805no_undefined_flag=$lt_no_undefined_flag_GCJ
18806
18807# Commands used to finish a libtool library installation in a directory.
18808finish_cmds=$lt_finish_cmds
18809
18810# Same as above, but a single script fragment to be evaled but not shown.
18811finish_eval=$lt_finish_eval
18812
18813# Take the output of nm and produce a listing of raw symbols and C names.
18814global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18815
18816# Transform the output of nm in a proper C declaration
18817global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18818
18819# Transform the output of nm in a C name address pair
18820global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18821
18822# This is the shared library runtime path variable.
18823runpath_var=$runpath_var
18824
18825# This is the shared library path variable.
18826shlibpath_var=$shlibpath_var
18827
18828# Is shlibpath searched before the hard-coded library search path?
18829shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18830
18831# How to hardcode a shared library path into an executable.
18832hardcode_action=$hardcode_action_GCJ
18833
18834# Whether we should hardcode library paths into libraries.
18835hardcode_into_libs=$hardcode_into_libs
18836
18837# Flag to hardcode \$libdir into a binary during linking.
18838# This must work even if \$libdir does not exist.
18839hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18840
18841# If ld is used when linking, flag to hardcode \$libdir into
18842# a binary during linking. This must work even if \$libdir does
18843# not exist.
18844hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18845
18846# Whether we need a single -rpath flag with a separated argument.
18847hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18848
18849# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850# resulting binary.
18851hardcode_direct=$hardcode_direct_GCJ
18852
18853# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854# resulting binary.
18855hardcode_minus_L=$hardcode_minus_L_GCJ
18856
18857# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858# the resulting binary.
18859hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18860
18861# Set to yes if building a shared library automatically hardcodes DIR into the library
18862# and all subsequent libraries and executables linked against it.
18863hardcode_automatic=$hardcode_automatic_GCJ
18864
18865# Variables whose values should be saved in libtool wrapper scripts and
18866# restored at relink time.
18867variables_saved_for_relink="$variables_saved_for_relink"
18868
18869# Whether libtool must link a program against all its dependency libraries.
18870link_all_deplibs=$link_all_deplibs_GCJ
18871
18872# Compile-time system search path for libraries
18873sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18874
18875# Run-time system search path for libraries
18876sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18877
18878# Fix the shell variable \$srcfile for the compiler.
18879fix_srcfile_path="$fix_srcfile_path_GCJ"
18880
18881# Set to yes if exported symbols are required.
18882always_export_symbols=$always_export_symbols_GCJ
18883
18884# The commands to list exported symbols.
18885export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18886
18887# The commands to extract the exported symbol list from a shared archive.
18888extract_expsyms_cmds=$lt_extract_expsyms_cmds
18889
18890# Symbols that should not be listed in the preloaded symbols.
18891exclude_expsyms=$lt_exclude_expsyms_GCJ
18892
18893# Symbols that must always be exported.
18894include_expsyms=$lt_include_expsyms_GCJ
18895
18896# ### END LIBTOOL TAG CONFIG: $tagname
18897
18898__EOF__
18899
18900
18901else
18902  # If there is no Makefile yet, we rely on a make rule to execute
18903  # `config.status --recheck' to rerun these tests and create the
18904  # libtool script then.
18905  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906  if test -f "$ltmain_in"; then
18907    test -f Makefile && make "$ltmain"
18908  fi
18909fi
18910
18911
18912ac_ext=c
18913ac_cpp='$CPP $CPPFLAGS'
18914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918CC="$lt_save_CC"
18919
18920	else
18921	  tagname=""
18922	fi
18923	;;
18924
18925      RC)
18926
18927
18928# Source file extension for RC test sources.
18929ac_ext=rc
18930
18931# Object file extension for compiled RC test sources.
18932objext=o
18933objext_RC=$objext
18934
18935# Code to be used in simple compile tests
18936lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18937
18938# Code to be used in simple link tests
18939lt_simple_link_test_code="$lt_simple_compile_test_code"
18940
18941# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18942
18943# If no C compiler was specified, use CC.
18944LTCC=${LTCC-"$CC"}
18945
18946# If no C compiler flags were specified, use CFLAGS.
18947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18948
18949# Allow CC to be a program name with arguments.
18950compiler=$CC
18951
18952
18953# save warnings/boilerplate of simple test code
18954ac_outfile=conftest.$ac_objext
18955printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18957_lt_compiler_boilerplate=`cat conftest.err`
18958$rm conftest*
18959
18960ac_outfile=conftest.$ac_objext
18961printf "$lt_simple_link_test_code" >conftest.$ac_ext
18962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963_lt_linker_boilerplate=`cat conftest.err`
18964$rm conftest*
18965
18966
18967# Allow CC to be a program name with arguments.
18968lt_save_CC="$CC"
18969CC=${RC-"windres"}
18970compiler=$CC
18971compiler_RC=$CC
18972for cc_temp in $compiler""; do
18973  case $cc_temp in
18974    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18975    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18976    \-*) ;;
18977    *) break;;
18978  esac
18979done
18980cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18981
18982lt_cv_prog_compiler_c_o_RC=yes
18983
18984# The else clause should only fire when bootstrapping the
18985# libtool distribution, otherwise you forgot to ship ltmain.sh
18986# with your package, and you will get complaints that there are
18987# no rules to generate ltmain.sh.
18988if test -f "$ltmain"; then
18989  # See if we are running on zsh, and set the options which allow our commands through
18990  # without removal of \ escapes.
18991  if test -n "${ZSH_VERSION+set}" ; then
18992    setopt NO_GLOB_SUBST
18993  fi
18994  # Now quote all the things that may contain metacharacters while being
18995  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18996  # variables and quote the copies for generation of the libtool script.
18997  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18998    SED SHELL STRIP \
18999    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19000    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19001    deplibs_check_method reload_flag reload_cmds need_locks \
19002    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19003    lt_cv_sys_global_symbol_to_c_name_address \
19004    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19005    old_postinstall_cmds old_postuninstall_cmds \
19006    compiler_RC \
19007    CC_RC \
19008    LD_RC \
19009    lt_prog_compiler_wl_RC \
19010    lt_prog_compiler_pic_RC \
19011    lt_prog_compiler_static_RC \
19012    lt_prog_compiler_no_builtin_flag_RC \
19013    export_dynamic_flag_spec_RC \
19014    thread_safe_flag_spec_RC \
19015    whole_archive_flag_spec_RC \
19016    enable_shared_with_static_runtimes_RC \
19017    old_archive_cmds_RC \
19018    old_archive_from_new_cmds_RC \
19019    predep_objects_RC \
19020    postdep_objects_RC \
19021    predeps_RC \
19022    postdeps_RC \
19023    compiler_lib_search_path_RC \
19024    archive_cmds_RC \
19025    archive_expsym_cmds_RC \
19026    postinstall_cmds_RC \
19027    postuninstall_cmds_RC \
19028    old_archive_from_expsyms_cmds_RC \
19029    allow_undefined_flag_RC \
19030    no_undefined_flag_RC \
19031    export_symbols_cmds_RC \
19032    hardcode_libdir_flag_spec_RC \
19033    hardcode_libdir_flag_spec_ld_RC \
19034    hardcode_libdir_separator_RC \
19035    hardcode_automatic_RC \
19036    module_cmds_RC \
19037    module_expsym_cmds_RC \
19038    lt_cv_prog_compiler_c_o_RC \
19039    exclude_expsyms_RC \
19040    include_expsyms_RC; do
19041
19042    case $var in
19043    old_archive_cmds_RC | \
19044    old_archive_from_new_cmds_RC | \
19045    archive_cmds_RC | \
19046    archive_expsym_cmds_RC | \
19047    module_cmds_RC | \
19048    module_expsym_cmds_RC | \
19049    old_archive_from_expsyms_cmds_RC | \
19050    export_symbols_cmds_RC | \
19051    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19052    postinstall_cmds | postuninstall_cmds | \
19053    old_postinstall_cmds | old_postuninstall_cmds | \
19054    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19055      # Double-quote double-evaled strings.
19056      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19057      ;;
19058    *)
19059      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19060      ;;
19061    esac
19062  done
19063
19064  case $lt_echo in
19065  *'\$0 --fallback-echo"')
19066    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19067    ;;
19068  esac
19069
19070cfgfile="$ofile"
19071
19072  cat <<__EOF__ >> "$cfgfile"
19073# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19074
19075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19076
19077# Shell to use when invoking shell scripts.
19078SHELL=$lt_SHELL
19079
19080# Whether or not to build shared libraries.
19081build_libtool_libs=$enable_shared
19082
19083# Whether or not to build static libraries.
19084build_old_libs=$enable_static
19085
19086# Whether or not to add -lc for building shared libraries.
19087build_libtool_need_lc=$archive_cmds_need_lc_RC
19088
19089# Whether or not to disallow shared libs when runtime libs are static
19090allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19091
19092# Whether or not to optimize for fast installation.
19093fast_install=$enable_fast_install
19094
19095# The host system.
19096host_alias=$host_alias
19097host=$host
19098host_os=$host_os
19099
19100# The build system.
19101build_alias=$build_alias
19102build=$build
19103build_os=$build_os
19104
19105# An echo program that does not interpret backslashes.
19106echo=$lt_echo
19107
19108# The archiver.
19109AR=$lt_AR
19110AR_FLAGS=$lt_AR_FLAGS
19111
19112# A C compiler.
19113LTCC=$lt_LTCC
19114
19115# LTCC compiler flags.
19116LTCFLAGS=$lt_LTCFLAGS
19117
19118# A language-specific compiler.
19119CC=$lt_compiler_RC
19120
19121# Is the compiler the GNU C compiler?
19122with_gcc=$GCC_RC
19123
19124# An ERE matcher.
19125EGREP=$lt_EGREP
19126
19127# The linker used to build libraries.
19128LD=$lt_LD_RC
19129
19130# Whether we need hard or soft links.
19131LN_S=$lt_LN_S
19132
19133# A BSD-compatible nm program.
19134NM=$lt_NM
19135
19136# A symbol stripping program
19137STRIP=$lt_STRIP
19138
19139# Used to examine libraries when file_magic_cmd begins "file"
19140MAGIC_CMD=$MAGIC_CMD
19141
19142# Used on cygwin: DLL creation program.
19143DLLTOOL="$DLLTOOL"
19144
19145# Used on cygwin: object dumper.
19146OBJDUMP="$OBJDUMP"
19147
19148# Used on cygwin: assembler.
19149AS="$AS"
19150
19151# The name of the directory that contains temporary libtool files.
19152objdir=$objdir
19153
19154# How to create reloadable object files.
19155reload_flag=$lt_reload_flag
19156reload_cmds=$lt_reload_cmds
19157
19158# How to pass a linker flag through the compiler.
19159wl=$lt_lt_prog_compiler_wl_RC
19160
19161# Object file suffix (normally "o").
19162objext="$ac_objext"
19163
19164# Old archive suffix (normally "a").
19165libext="$libext"
19166
19167# Shared library suffix (normally ".so").
19168shrext_cmds='$shrext_cmds'
19169
19170# Executable file suffix (normally "").
19171exeext="$exeext"
19172
19173# Additional compiler flags for building library objects.
19174pic_flag=$lt_lt_prog_compiler_pic_RC
19175pic_mode=$pic_mode
19176
19177# What is the maximum length of a command?
19178max_cmd_len=$lt_cv_sys_max_cmd_len
19179
19180# Does compiler simultaneously support -c and -o options?
19181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19182
19183# Must we lock files when doing compilation?
19184need_locks=$lt_need_locks
19185
19186# Do we need the lib prefix for modules?
19187need_lib_prefix=$need_lib_prefix
19188
19189# Do we need a version for libraries?
19190need_version=$need_version
19191
19192# Whether dlopen is supported.
19193dlopen_support=$enable_dlopen
19194
19195# Whether dlopen of programs is supported.
19196dlopen_self=$enable_dlopen_self
19197
19198# Whether dlopen of statically linked programs is supported.
19199dlopen_self_static=$enable_dlopen_self_static
19200
19201# Compiler flag to prevent dynamic linking.
19202link_static_flag=$lt_lt_prog_compiler_static_RC
19203
19204# Compiler flag to turn off builtin functions.
19205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19206
19207# Compiler flag to allow reflexive dlopens.
19208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19209
19210# Compiler flag to generate shared objects directly from archives.
19211whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19212
19213# Compiler flag to generate thread-safe objects.
19214thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19215
19216# Library versioning type.
19217version_type=$version_type
19218
19219# Format of library name prefix.
19220libname_spec=$lt_libname_spec
19221
19222# List of archive names.  First name is the real one, the rest are links.
19223# The last name is the one that the linker finds with -lNAME.
19224library_names_spec=$lt_library_names_spec
19225
19226# The coded name of the library, if different from the real name.
19227soname_spec=$lt_soname_spec
19228
19229# Commands used to build and install an old-style archive.
19230RANLIB=$lt_RANLIB
19231old_archive_cmds=$lt_old_archive_cmds_RC
19232old_postinstall_cmds=$lt_old_postinstall_cmds
19233old_postuninstall_cmds=$lt_old_postuninstall_cmds
19234
19235# Create an old-style archive from a shared archive.
19236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19237
19238# Create a temporary old-style archive to link instead of a shared archive.
19239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19240
19241# Commands used to build and install a shared archive.
19242archive_cmds=$lt_archive_cmds_RC
19243archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19244postinstall_cmds=$lt_postinstall_cmds
19245postuninstall_cmds=$lt_postuninstall_cmds
19246
19247# Commands used to build a loadable module (assumed same as above if empty)
19248module_cmds=$lt_module_cmds_RC
19249module_expsym_cmds=$lt_module_expsym_cmds_RC
19250
19251# Commands to strip libraries.
19252old_striplib=$lt_old_striplib
19253striplib=$lt_striplib
19254
19255# Dependencies to place before the objects being linked to create a
19256# shared library.
19257predep_objects=$lt_predep_objects_RC
19258
19259# Dependencies to place after the objects being linked to create a
19260# shared library.
19261postdep_objects=$lt_postdep_objects_RC
19262
19263# Dependencies to place before the objects being linked to create a
19264# shared library.
19265predeps=$lt_predeps_RC
19266
19267# Dependencies to place after the objects being linked to create a
19268# shared library.
19269postdeps=$lt_postdeps_RC
19270
19271# The library search path used internally by the compiler when linking
19272# a shared library.
19273compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19274
19275# Method to check whether dependent libraries are shared objects.
19276deplibs_check_method=$lt_deplibs_check_method
19277
19278# Command to use when deplibs_check_method == file_magic.
19279file_magic_cmd=$lt_file_magic_cmd
19280
19281# Flag that allows shared libraries with undefined symbols to be built.
19282allow_undefined_flag=$lt_allow_undefined_flag_RC
19283
19284# Flag that forces no undefined symbols.
19285no_undefined_flag=$lt_no_undefined_flag_RC
19286
19287# Commands used to finish a libtool library installation in a directory.
19288finish_cmds=$lt_finish_cmds
19289
19290# Same as above, but a single script fragment to be evaled but not shown.
19291finish_eval=$lt_finish_eval
19292
19293# Take the output of nm and produce a listing of raw symbols and C names.
19294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19295
19296# Transform the output of nm in a proper C declaration
19297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19298
19299# Transform the output of nm in a C name address pair
19300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19301
19302# This is the shared library runtime path variable.
19303runpath_var=$runpath_var
19304
19305# This is the shared library path variable.
19306shlibpath_var=$shlibpath_var
19307
19308# Is shlibpath searched before the hard-coded library search path?
19309shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19310
19311# How to hardcode a shared library path into an executable.
19312hardcode_action=$hardcode_action_RC
19313
19314# Whether we should hardcode library paths into libraries.
19315hardcode_into_libs=$hardcode_into_libs
19316
19317# Flag to hardcode \$libdir into a binary during linking.
19318# This must work even if \$libdir does not exist.
19319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19320
19321# If ld is used when linking, flag to hardcode \$libdir into
19322# a binary during linking. This must work even if \$libdir does
19323# not exist.
19324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19325
19326# Whether we need a single -rpath flag with a separated argument.
19327hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19328
19329# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19330# resulting binary.
19331hardcode_direct=$hardcode_direct_RC
19332
19333# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19334# resulting binary.
19335hardcode_minus_L=$hardcode_minus_L_RC
19336
19337# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19338# the resulting binary.
19339hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19340
19341# Set to yes if building a shared library automatically hardcodes DIR into the library
19342# and all subsequent libraries and executables linked against it.
19343hardcode_automatic=$hardcode_automatic_RC
19344
19345# Variables whose values should be saved in libtool wrapper scripts and
19346# restored at relink time.
19347variables_saved_for_relink="$variables_saved_for_relink"
19348
19349# Whether libtool must link a program against all its dependency libraries.
19350link_all_deplibs=$link_all_deplibs_RC
19351
19352# Compile-time system search path for libraries
19353sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19354
19355# Run-time system search path for libraries
19356sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19357
19358# Fix the shell variable \$srcfile for the compiler.
19359fix_srcfile_path="$fix_srcfile_path_RC"
19360
19361# Set to yes if exported symbols are required.
19362always_export_symbols=$always_export_symbols_RC
19363
19364# The commands to list exported symbols.
19365export_symbols_cmds=$lt_export_symbols_cmds_RC
19366
19367# The commands to extract the exported symbol list from a shared archive.
19368extract_expsyms_cmds=$lt_extract_expsyms_cmds
19369
19370# Symbols that should not be listed in the preloaded symbols.
19371exclude_expsyms=$lt_exclude_expsyms_RC
19372
19373# Symbols that must always be exported.
19374include_expsyms=$lt_include_expsyms_RC
19375
19376# ### END LIBTOOL TAG CONFIG: $tagname
19377
19378__EOF__
19379
19380
19381else
19382  # If there is no Makefile yet, we rely on a make rule to execute
19383  # `config.status --recheck' to rerun these tests and create the
19384  # libtool script then.
19385  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19386  if test -f "$ltmain_in"; then
19387    test -f Makefile && make "$ltmain"
19388  fi
19389fi
19390
19391
19392ac_ext=c
19393ac_cpp='$CPP $CPPFLAGS'
19394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19396ac_compiler_gnu=$ac_cv_c_compiler_gnu
19397
19398CC="$lt_save_CC"
19399
19400	;;
19401
19402      *)
19403	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19404	;;
19405      esac
19406
19407      # Append the new tag name to the list of available tags.
19408      if test -n "$tagname" ; then
19409      available_tags="$available_tags $tagname"
19410    fi
19411    fi
19412  done
19413  IFS="$lt_save_ifs"
19414
19415  # Now substitute the updated list of available tags.
19416  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19417    mv "${ofile}T" "$ofile"
19418    chmod +x "$ofile"
19419  else
19420    rm -f "${ofile}T"
19421    as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19422  fi
19423fi
19424
19425
19426
19427# This can be used to rebuild libtool when needed
19428LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19429
19430# Always use our own libtool.
19431LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19432
19433# Prevent multiple expansion
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
19455$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19456if test -z "$MKDIR_P"; then
19457  if ${ac_cv_path_mkdir+:} false; then :
19458  $as_echo_n "(cached) " >&6
19459else
19460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19462do
19463  IFS=$as_save_IFS
19464  test -z "$as_dir" && as_dir=.
19465    for ac_prog in mkdir gmkdir; do
19466	 for ac_exec_ext in '' $ac_executable_extensions; do
19467	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
19468	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19469	     'mkdir (GNU coreutils) '* | \
19470	     'mkdir (coreutils) '* | \
19471	     'mkdir (fileutils) '4.1*)
19472	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19473	       break 3;;
19474	   esac
19475	 done
19476       done
19477  done
19478IFS=$as_save_IFS
19479
19480fi
19481
19482  test -d ./--version && rmdir ./--version
19483  if test "${ac_cv_path_mkdir+set}" = set; then
19484    MKDIR_P="$ac_cv_path_mkdir -p"
19485  else
19486    # As a last resort, use the slow shell script.  Don't cache a
19487    # value for MKDIR_P within a source directory, because that will
19488    # break other packages using the cache if that directory is
19489    # removed, or if the value is a relative name.
19490    MKDIR_P="$ac_install_sh -d"
19491  fi
19492fi
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
19494$as_echo "$MKDIR_P" >&6; }
19495
19496
19497# Check for library functions that SQLite can optionally use.
19498for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
19499do :
19500  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19501ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19502if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19503  cat >>confdefs.h <<_ACEOF
19504#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19505_ACEOF
19506
19507fi
19508done
19509
19510ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19511if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
19512  ac_have_decl=1
19513else
19514  ac_have_decl=0
19515fi
19516
19517cat >>confdefs.h <<_ACEOF
19518#define HAVE_DECL_STRERROR_R $ac_have_decl
19519_ACEOF
19520
19521for ac_func in strerror_r
19522do :
19523  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19524if test "x$ac_cv_func_strerror_r" = xyes; then :
19525  cat >>confdefs.h <<_ACEOF
19526#define HAVE_STRERROR_R 1
19527_ACEOF
19528
19529fi
19530done
19531
19532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19533$as_echo_n "checking whether strerror_r returns char *... " >&6; }
19534if ${ac_cv_func_strerror_r_char_p+:} false; then :
19535  $as_echo_n "(cached) " >&6
19536else
19537
19538    ac_cv_func_strerror_r_char_p=no
19539    if test $ac_cv_have_decl_strerror_r = yes; then
19540      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541/* end confdefs.h.  */
19542$ac_includes_default
19543int
19544main ()
19545{
19546
19547	  char buf[100];
19548	  char x = *strerror_r (0, buf, sizeof buf);
19549	  char *p = strerror_r (0, buf, sizeof buf);
19550	  return !p || x;
19551
19552  ;
19553  return 0;
19554}
19555_ACEOF
19556if ac_fn_c_try_compile "$LINENO"; then :
19557  ac_cv_func_strerror_r_char_p=yes
19558fi
19559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560    else
19561      # strerror_r is not declared.  Choose between
19562      # systems that have relatively inaccessible declarations for the
19563      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
19564      # former has a strerror_r that returns char*, while the latter
19565      # has a strerror_r that returns `int'.
19566      # This test should segfault on the DEC system.
19567      if test "$cross_compiling" = yes; then :
19568  :
19569else
19570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571/* end confdefs.h.  */
19572$ac_includes_default
19573	extern char *strerror_r ();
19574int
19575main ()
19576{
19577char buf[100];
19578	  char x = *strerror_r (0, buf, sizeof buf);
19579	  return ! isalpha (x);
19580  ;
19581  return 0;
19582}
19583_ACEOF
19584if ac_fn_c_try_run "$LINENO"; then :
19585  ac_cv_func_strerror_r_char_p=yes
19586fi
19587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19588  conftest.$ac_objext conftest.beam conftest.$ac_ext
19589fi
19590
19591    fi
19592
19593fi
19594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19595$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19596if test $ac_cv_func_strerror_r_char_p = yes; then
19597
19598$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19599
19600fi
19601
19602
19603ac_config_files="$ac_config_files Makefile sqlite3.pc"
19604
19605
19606
19607#-----------------------------------------------------------------------
19608#   --enable-readline
19609#
19610# Check whether --enable-readline was given.
19611if test "${enable_readline+set}" = set; then :
19612  enableval=$enable_readline;
19613else
19614  enable_readline=yes
19615fi
19616
19617if test x"$enable_readline" != xno ; then
19618  sLIBS=$LIBS
19619  LIBS=""
19620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
19621$as_echo_n "checking for library containing tgetent... " >&6; }
19622if ${ac_cv_search_tgetent+:} false; then :
19623  $as_echo_n "(cached) " >&6
19624else
19625  ac_func_search_save_LIBS=$LIBS
19626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627/* end confdefs.h.  */
19628
19629/* Override any GCC internal prototype to avoid an error.
19630   Use char because int might match the return type of a GCC
19631   builtin and then its argument prototype would still apply.  */
19632#ifdef __cplusplus
19633extern "C"
19634#endif
19635char tgetent ();
19636int
19637main ()
19638{
19639return tgetent ();
19640  ;
19641  return 0;
19642}
19643_ACEOF
19644for ac_lib in '' curses ncurses ncursesw; do
19645  if test -z "$ac_lib"; then
19646    ac_res="none required"
19647  else
19648    ac_res=-l$ac_lib
19649    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19650  fi
19651  if ac_fn_c_try_link "$LINENO"; then :
19652  ac_cv_search_tgetent=$ac_res
19653fi
19654rm -f core conftest.err conftest.$ac_objext \
19655    conftest$ac_exeext
19656  if ${ac_cv_search_tgetent+:} false; then :
19657  break
19658fi
19659done
19660if ${ac_cv_search_tgetent+:} false; then :
19661
19662else
19663  ac_cv_search_tgetent=no
19664fi
19665rm conftest.$ac_ext
19666LIBS=$ac_func_search_save_LIBS
19667fi
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
19669$as_echo "$ac_cv_search_tgetent" >&6; }
19670ac_res=$ac_cv_search_tgetent
19671if test "$ac_res" != no; then :
19672  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19673
19674fi
19675
19676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
19677$as_echo_n "checking for library containing readline... " >&6; }
19678if ${ac_cv_search_readline+:} false; then :
19679  $as_echo_n "(cached) " >&6
19680else
19681  ac_func_search_save_LIBS=$LIBS
19682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683/* end confdefs.h.  */
19684
19685/* Override any GCC internal prototype to avoid an error.
19686   Use char because int might match the return type of a GCC
19687   builtin and then its argument prototype would still apply.  */
19688#ifdef __cplusplus
19689extern "C"
19690#endif
19691char readline ();
19692int
19693main ()
19694{
19695return readline ();
19696  ;
19697  return 0;
19698}
19699_ACEOF
19700for ac_lib in '' readline; do
19701  if test -z "$ac_lib"; then
19702    ac_res="none required"
19703  else
19704    ac_res=-l$ac_lib
19705    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19706  fi
19707  if ac_fn_c_try_link "$LINENO"; then :
19708  ac_cv_search_readline=$ac_res
19709fi
19710rm -f core conftest.err conftest.$ac_objext \
19711    conftest$ac_exeext
19712  if ${ac_cv_search_readline+:} false; then :
19713  break
19714fi
19715done
19716if ${ac_cv_search_readline+:} false; then :
19717
19718else
19719  ac_cv_search_readline=no
19720fi
19721rm conftest.$ac_ext
19722LIBS=$ac_func_search_save_LIBS
19723fi
19724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
19725$as_echo "$ac_cv_search_readline" >&6; }
19726ac_res=$ac_cv_search_readline
19727if test "$ac_res" != no; then :
19728  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19729
19730else
19731  enable_readline=no
19732fi
19733
19734  for ac_func in readline
19735do :
19736  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19737if test "x$ac_cv_func_readline" = xyes; then :
19738  cat >>confdefs.h <<_ACEOF
19739#define HAVE_READLINE 1
19740_ACEOF
19741
19742fi
19743done
19744
19745  READLINE_LIBS=$LIBS
19746  LIBS=$sLIBS
19747fi
19748
19749#-----------------------------------------------------------------------
19750
19751#-----------------------------------------------------------------------
19752#   --enable-threadsafe
19753#
19754# Check whether --enable-threadsafe was given.
19755if test "${enable_threadsafe+set}" = set; then :
19756  enableval=$enable_threadsafe;
19757else
19758  enable_threadsafe=yes
19759fi
19760
19761THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
19762if test x"$enable_threadsafe" != "xno"; then
19763  THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
19764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
19765$as_echo_n "checking for library containing pthread_create... " >&6; }
19766if ${ac_cv_search_pthread_create+:} false; then :
19767  $as_echo_n "(cached) " >&6
19768else
19769  ac_func_search_save_LIBS=$LIBS
19770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771/* end confdefs.h.  */
19772
19773/* Override any GCC internal prototype to avoid an error.
19774   Use char because int might match the return type of a GCC
19775   builtin and then its argument prototype would still apply.  */
19776#ifdef __cplusplus
19777extern "C"
19778#endif
19779char pthread_create ();
19780int
19781main ()
19782{
19783return pthread_create ();
19784  ;
19785  return 0;
19786}
19787_ACEOF
19788for ac_lib in '' pthread; do
19789  if test -z "$ac_lib"; then
19790    ac_res="none required"
19791  else
19792    ac_res=-l$ac_lib
19793    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19794  fi
19795  if ac_fn_c_try_link "$LINENO"; then :
19796  ac_cv_search_pthread_create=$ac_res
19797fi
19798rm -f core conftest.err conftest.$ac_objext \
19799    conftest$ac_exeext
19800  if ${ac_cv_search_pthread_create+:} false; then :
19801  break
19802fi
19803done
19804if ${ac_cv_search_pthread_create+:} false; then :
19805
19806else
19807  ac_cv_search_pthread_create=no
19808fi
19809rm conftest.$ac_ext
19810LIBS=$ac_func_search_save_LIBS
19811fi
19812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
19813$as_echo "$ac_cv_search_pthread_create" >&6; }
19814ac_res=$ac_cv_search_pthread_create
19815if test "$ac_res" != no; then :
19816  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19817
19818fi
19819
19820fi
19821
19822#-----------------------------------------------------------------------
19823
19824#-----------------------------------------------------------------------
19825#   --enable-dynamic-extensions
19826#
19827# Check whether --enable-dynamic-extensions was given.
19828if test "${enable_dynamic_extensions+set}" = set; then :
19829  enableval=$enable_dynamic_extensions;
19830else
19831  enable_dynamic_extensions=yes
19832fi
19833
19834if test x"$enable_dynamic_extensions" != "xno"; then
19835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19836$as_echo_n "checking for library containing dlopen... " >&6; }
19837if ${ac_cv_search_dlopen+:} false; then :
19838  $as_echo_n "(cached) " >&6
19839else
19840  ac_func_search_save_LIBS=$LIBS
19841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842/* end confdefs.h.  */
19843
19844/* Override any GCC internal prototype to avoid an error.
19845   Use char because int might match the return type of a GCC
19846   builtin and then its argument prototype would still apply.  */
19847#ifdef __cplusplus
19848extern "C"
19849#endif
19850char dlopen ();
19851int
19852main ()
19853{
19854return dlopen ();
19855  ;
19856  return 0;
19857}
19858_ACEOF
19859for ac_lib in '' dl; do
19860  if test -z "$ac_lib"; then
19861    ac_res="none required"
19862  else
19863    ac_res=-l$ac_lib
19864    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19865  fi
19866  if ac_fn_c_try_link "$LINENO"; then :
19867  ac_cv_search_dlopen=$ac_res
19868fi
19869rm -f core conftest.err conftest.$ac_objext \
19870    conftest$ac_exeext
19871  if ${ac_cv_search_dlopen+:} false; then :
19872  break
19873fi
19874done
19875if ${ac_cv_search_dlopen+:} false; then :
19876
19877else
19878  ac_cv_search_dlopen=no
19879fi
19880rm conftest.$ac_ext
19881LIBS=$ac_func_search_save_LIBS
19882fi
19883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19884$as_echo "$ac_cv_search_dlopen" >&6; }
19885ac_res=$ac_cv_search_dlopen
19886if test "$ac_res" != no; then :
19887  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19888
19889fi
19890
19891else
19892  DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
19893fi
19894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
19895$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
19896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
19897$as_echo "$enable_dynamic_extensions" >&6; }
19898
19899#-----------------------------------------------------------------------
19900
19901for ac_func in posix_fallocate
19902do :
19903  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
19904if test "x$ac_cv_func_posix_fallocate" = xyes; then :
19905  cat >>confdefs.h <<_ACEOF
19906#define HAVE_POSIX_FALLOCATE 1
19907_ACEOF
19908
19909fi
19910done
19911
19912
19913#-----------------------------------------------------------------------
19914# UPDATE: Maybe it's better if users just set CFLAGS before invoking
19915# configure. This option doesn't really add much...
19916#
19917#   --enable-tempstore
19918#
19919# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
19920#   [--enable-tempstore],
19921#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
19922#   [], [enable_tempstore=no])
19923# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
19924# case "$enable_tempstore" in
19925#   never )  TEMP_STORE=0 ;;
19926#   no )     TEMP_STORE=1 ;;
19927#   always ) TEMP_STORE=3 ;;
19928#   yes )    TEMP_STORE=3 ;;
19929#   * )
19930#     TEMP_STORE=1
19931#     enable_tempstore=yes
19932#   ;;
19933# esac
19934# AC_MSG_RESULT($enable_tempstore)
19935# AC_SUBST(TEMP_STORE)
19936#-----------------------------------------------------------------------
19937
19938cat >confcache <<\_ACEOF
19939# This file is a shell script that caches the results of configure
19940# tests run on this system so they can be shared between configure
19941# scripts and configure runs, see configure's option --config-cache.
19942# It is not useful on other systems.  If it contains results you don't
19943# want to keep, you may remove or edit it.
19944#
19945# config.status only pays attention to the cache file if you give it
19946# the --recheck option to rerun configure.
19947#
19948# `ac_cv_env_foo' variables (set or unset) will be overridden when
19949# loading this file, other *unset* `ac_cv_foo' will be assigned the
19950# following values.
19951
19952_ACEOF
19953
19954# The following way of writing the cache mishandles newlines in values,
19955# but we know of no workaround that is simple, portable, and efficient.
19956# So, we kill variables containing newlines.
19957# Ultrix sh set writes to stderr and can't be redirected directly,
19958# and sets the high bit in the cache file unless we assign to the vars.
19959(
19960  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19961    eval ac_val=\$$ac_var
19962    case $ac_val in #(
19963    *${as_nl}*)
19964      case $ac_var in #(
19965      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19967      esac
19968      case $ac_var in #(
19969      _ | IFS | as_nl) ;; #(
19970      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19971      *) { eval $ac_var=; unset $ac_var;} ;;
19972      esac ;;
19973    esac
19974  done
19975
19976  (set) 2>&1 |
19977    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19978    *${as_nl}ac_space=\ *)
19979      # `set' does not quote correctly, so add quotes: double-quote
19980      # substitution turns \\\\ into \\, and sed turns \\ into \.
19981      sed -n \
19982	"s/'/'\\\\''/g;
19983	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19984      ;; #(
19985    *)
19986      # `set' quotes correctly as required by POSIX, so do not add quotes.
19987      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19988      ;;
19989    esac |
19990    sort
19991) |
19992  sed '
19993     /^ac_cv_env_/b end
19994     t clear
19995     :clear
19996     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19997     t end
19998     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19999     :end' >>confcache
20000if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20001  if test -w "$cache_file"; then
20002    if test "x$cache_file" != "x/dev/null"; then
20003      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20004$as_echo "$as_me: updating cache $cache_file" >&6;}
20005      if test ! -f "$cache_file" || test -h "$cache_file"; then
20006	cat confcache >"$cache_file"
20007      else
20008        case $cache_file in #(
20009        */* | ?:*)
20010	  mv -f confcache "$cache_file"$$ &&
20011	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20012        *)
20013	  mv -f confcache "$cache_file" ;;
20014	esac
20015      fi
20016    fi
20017  else
20018    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20019$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20020  fi
20021fi
20022rm -f confcache
20023
20024test "x$prefix" = xNONE && prefix=$ac_default_prefix
20025# Let make expand exec_prefix.
20026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20027
20028# Transform confdefs.h into DEFS.
20029# Protect against shell expansion while executing Makefile rules.
20030# Protect against Makefile macro expansion.
20031#
20032# If the first sed substitution is executed (which looks for macros that
20033# take arguments), then branch to the quote section.  Otherwise,
20034# look for a macro that doesn't take arguments.
20035ac_script='
20036:mline
20037/\\$/{
20038 N
20039 s,\\\n,,
20040 b mline
20041}
20042t clear
20043:clear
20044s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
20045t quote
20046s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
20047t quote
20048b any
20049:quote
20050s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20051s/\[/\\&/g
20052s/\]/\\&/g
20053s/\$/$$/g
20054H
20055:any
20056${
20057	g
20058	s/^\n//
20059	s/\n/ /g
20060	p
20061}
20062'
20063DEFS=`sed -n "$ac_script" confdefs.h`
20064
20065
20066ac_libobjs=
20067ac_ltlibobjs=
20068U=
20069for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20070  # 1. Remove the extension, and $U if already installed.
20071  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20072  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20073  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20074  #    will be set to the directory where LIBOBJS objects are built.
20075  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20076  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20077done
20078LIBOBJS=$ac_libobjs
20079
20080LTLIBOBJS=$ac_ltlibobjs
20081
20082
20083if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20084  as_fn_error $? "conditional \"AMDEP\" was never defined.
20085Usually this means the macro was only invoked conditionally." "$LINENO" 5
20086fi
20087if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20088  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20089Usually this means the macro was only invoked conditionally." "$LINENO" 5
20090fi
20091if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20092  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20093Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094fi
20095if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20096  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20097Usually this means the macro was only invoked conditionally." "$LINENO" 5
20098fi
20099
20100: "${CONFIG_STATUS=./config.status}"
20101ac_write_fail=0
20102ac_clean_files_save=$ac_clean_files
20103ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20104{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20105$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20106as_write_fail=0
20107cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20108#! $SHELL
20109# Generated by $as_me.
20110# Run this file to recreate the current configuration.
20111# Compiler output produced by configure, useful for debugging
20112# configure, is in config.log if it exists.
20113
20114debug=false
20115ac_cs_recheck=false
20116ac_cs_silent=false
20117
20118SHELL=\${CONFIG_SHELL-$SHELL}
20119export SHELL
20120_ASEOF
20121cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20122## -------------------- ##
20123## M4sh Initialization. ##
20124## -------------------- ##
20125
20126# Be more Bourne compatible
20127DUALCASE=1; export DUALCASE # for MKS sh
20128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20129  emulate sh
20130  NULLCMD=:
20131  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20132  # is contrary to our usage.  Disable this feature.
20133  alias -g '${1+"$@"}'='"$@"'
20134  setopt NO_GLOB_SUBST
20135else
20136  case `(set -o) 2>/dev/null` in #(
20137  *posix*) :
20138    set -o posix ;; #(
20139  *) :
20140     ;;
20141esac
20142fi
20143
20144
20145as_nl='
20146'
20147export as_nl
20148# Printing a long string crashes Solaris 7 /usr/bin/printf.
20149as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20152# Prefer a ksh shell builtin over an external printf program on Solaris,
20153# but without wasting forks for bash or zsh.
20154if test -z "$BASH_VERSION$ZSH_VERSION" \
20155    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20156  as_echo='print -r --'
20157  as_echo_n='print -rn --'
20158elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20159  as_echo='printf %s\n'
20160  as_echo_n='printf %s'
20161else
20162  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20163    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20164    as_echo_n='/usr/ucb/echo -n'
20165  else
20166    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20167    as_echo_n_body='eval
20168      arg=$1;
20169      case $arg in #(
20170      *"$as_nl"*)
20171	expr "X$arg" : "X\\(.*\\)$as_nl";
20172	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20173      esac;
20174      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20175    '
20176    export as_echo_n_body
20177    as_echo_n='sh -c $as_echo_n_body as_echo'
20178  fi
20179  export as_echo_body
20180  as_echo='sh -c $as_echo_body as_echo'
20181fi
20182
20183# The user is always right.
20184if test "${PATH_SEPARATOR+set}" != set; then
20185  PATH_SEPARATOR=:
20186  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20187    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20188      PATH_SEPARATOR=';'
20189  }
20190fi
20191
20192
20193# IFS
20194# We need space, tab and new line, in precisely that order.  Quoting is
20195# there to prevent editors from complaining about space-tab.
20196# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20197# splitting by setting IFS to empty value.)
20198IFS=" ""	$as_nl"
20199
20200# Find who we are.  Look in the path if we contain no directory separator.
20201as_myself=
20202case $0 in #((
20203  *[\\/]* ) as_myself=$0 ;;
20204  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205for as_dir in $PATH
20206do
20207  IFS=$as_save_IFS
20208  test -z "$as_dir" && as_dir=.
20209    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20210  done
20211IFS=$as_save_IFS
20212
20213     ;;
20214esac
20215# We did not find ourselves, most probably we were run as `sh COMMAND'
20216# in which case we are not to be found in the path.
20217if test "x$as_myself" = x; then
20218  as_myself=$0
20219fi
20220if test ! -f "$as_myself"; then
20221  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20222  exit 1
20223fi
20224
20225# Unset variables that we do not need and which cause bugs (e.g. in
20226# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20227# suppresses any "Segmentation fault" message there.  '((' could
20228# trigger a bug in pdksh 5.2.14.
20229for as_var in BASH_ENV ENV MAIL MAILPATH
20230do eval test x\${$as_var+set} = xset \
20231  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20232done
20233PS1='$ '
20234PS2='> '
20235PS4='+ '
20236
20237# NLS nuisances.
20238LC_ALL=C
20239export LC_ALL
20240LANGUAGE=C
20241export LANGUAGE
20242
20243# CDPATH.
20244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20245
20246
20247# as_fn_error STATUS ERROR [LINENO LOG_FD]
20248# ----------------------------------------
20249# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20250# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20251# script with STATUS, using 1 if that was 0.
20252as_fn_error ()
20253{
20254  as_status=$1; test $as_status -eq 0 && as_status=1
20255  if test "$4"; then
20256    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20257    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20258  fi
20259  $as_echo "$as_me: error: $2" >&2
20260  as_fn_exit $as_status
20261} # as_fn_error
20262
20263
20264# as_fn_set_status STATUS
20265# -----------------------
20266# Set $? to STATUS, without forking.
20267as_fn_set_status ()
20268{
20269  return $1
20270} # as_fn_set_status
20271
20272# as_fn_exit STATUS
20273# -----------------
20274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20275as_fn_exit ()
20276{
20277  set +e
20278  as_fn_set_status $1
20279  exit $1
20280} # as_fn_exit
20281
20282# as_fn_unset VAR
20283# ---------------
20284# Portably unset VAR.
20285as_fn_unset ()
20286{
20287  { eval $1=; unset $1;}
20288}
20289as_unset=as_fn_unset
20290# as_fn_append VAR VALUE
20291# ----------------------
20292# Append the text in VALUE to the end of the definition contained in VAR. Take
20293# advantage of any shell optimizations that allow amortized linear growth over
20294# repeated appends, instead of the typical quadratic growth present in naive
20295# implementations.
20296if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20297  eval 'as_fn_append ()
20298  {
20299    eval $1+=\$2
20300  }'
20301else
20302  as_fn_append ()
20303  {
20304    eval $1=\$$1\$2
20305  }
20306fi # as_fn_append
20307
20308# as_fn_arith ARG...
20309# ------------------
20310# Perform arithmetic evaluation on the ARGs, and store the result in the
20311# global $as_val. Take advantage of shells that can avoid forks. The arguments
20312# must be portable across $(()) and expr.
20313if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20314  eval 'as_fn_arith ()
20315  {
20316    as_val=$(( $* ))
20317  }'
20318else
20319  as_fn_arith ()
20320  {
20321    as_val=`expr "$@" || test $? -eq 1`
20322  }
20323fi # as_fn_arith
20324
20325
20326if expr a : '\(a\)' >/dev/null 2>&1 &&
20327   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20328  as_expr=expr
20329else
20330  as_expr=false
20331fi
20332
20333if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20334  as_basename=basename
20335else
20336  as_basename=false
20337fi
20338
20339if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20340  as_dirname=dirname
20341else
20342  as_dirname=false
20343fi
20344
20345as_me=`$as_basename -- "$0" ||
20346$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20347	 X"$0" : 'X\(//\)$' \| \
20348	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20349$as_echo X/"$0" |
20350    sed '/^.*\/\([^/][^/]*\)\/*$/{
20351	    s//\1/
20352	    q
20353	  }
20354	  /^X\/\(\/\/\)$/{
20355	    s//\1/
20356	    q
20357	  }
20358	  /^X\/\(\/\).*/{
20359	    s//\1/
20360	    q
20361	  }
20362	  s/.*/./; q'`
20363
20364# Avoid depending upon Character Ranges.
20365as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20367as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20368as_cr_digits='0123456789'
20369as_cr_alnum=$as_cr_Letters$as_cr_digits
20370
20371ECHO_C= ECHO_N= ECHO_T=
20372case `echo -n x` in #(((((
20373-n*)
20374  case `echo 'xy\c'` in
20375  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20376  xy)  ECHO_C='\c';;
20377  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20378       ECHO_T='	';;
20379  esac;;
20380*)
20381  ECHO_N='-n';;
20382esac
20383
20384rm -f conf$$ conf$$.exe conf$$.file
20385if test -d conf$$.dir; then
20386  rm -f conf$$.dir/conf$$.file
20387else
20388  rm -f conf$$.dir
20389  mkdir conf$$.dir 2>/dev/null
20390fi
20391if (echo >conf$$.file) 2>/dev/null; then
20392  if ln -s conf$$.file conf$$ 2>/dev/null; then
20393    as_ln_s='ln -s'
20394    # ... but there are two gotchas:
20395    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20396    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20397    # In both cases, we have to default to `cp -pR'.
20398    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20399      as_ln_s='cp -pR'
20400  elif ln conf$$.file conf$$ 2>/dev/null; then
20401    as_ln_s=ln
20402  else
20403    as_ln_s='cp -pR'
20404  fi
20405else
20406  as_ln_s='cp -pR'
20407fi
20408rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20409rmdir conf$$.dir 2>/dev/null
20410
20411
20412# as_fn_mkdir_p
20413# -------------
20414# Create "$as_dir" as a directory, including parents if necessary.
20415as_fn_mkdir_p ()
20416{
20417
20418  case $as_dir in #(
20419  -*) as_dir=./$as_dir;;
20420  esac
20421  test -d "$as_dir" || eval $as_mkdir_p || {
20422    as_dirs=
20423    while :; do
20424      case $as_dir in #(
20425      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20426      *) as_qdir=$as_dir;;
20427      esac
20428      as_dirs="'$as_qdir' $as_dirs"
20429      as_dir=`$as_dirname -- "$as_dir" ||
20430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431	 X"$as_dir" : 'X\(//\)[^/]' \| \
20432	 X"$as_dir" : 'X\(//\)$' \| \
20433	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20434$as_echo X"$as_dir" |
20435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20436	    s//\1/
20437	    q
20438	  }
20439	  /^X\(\/\/\)[^/].*/{
20440	    s//\1/
20441	    q
20442	  }
20443	  /^X\(\/\/\)$/{
20444	    s//\1/
20445	    q
20446	  }
20447	  /^X\(\/\).*/{
20448	    s//\1/
20449	    q
20450	  }
20451	  s/.*/./; q'`
20452      test -d "$as_dir" && break
20453    done
20454    test -z "$as_dirs" || eval "mkdir $as_dirs"
20455  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20456
20457
20458} # as_fn_mkdir_p
20459if mkdir -p . 2>/dev/null; then
20460  as_mkdir_p='mkdir -p "$as_dir"'
20461else
20462  test -d ./-p && rmdir ./-p
20463  as_mkdir_p=false
20464fi
20465
20466
20467# as_fn_executable_p FILE
20468# -----------------------
20469# Test if FILE is an executable regular file.
20470as_fn_executable_p ()
20471{
20472  test -f "$1" && test -x "$1"
20473} # as_fn_executable_p
20474as_test_x='test -x'
20475as_executable_p=as_fn_executable_p
20476
20477# Sed expression to map a string onto a valid CPP name.
20478as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20479
20480# Sed expression to map a string onto a valid variable name.
20481as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20482
20483
20484exec 6>&1
20485## ----------------------------------- ##
20486## Main body of $CONFIG_STATUS script. ##
20487## ----------------------------------- ##
20488_ASEOF
20489test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20490
20491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20492# Save the log message, to keep $0 and so on meaningful, and to
20493# report actual input values of CONFIG_FILES etc. instead of their
20494# values after options handling.
20495ac_log="
20496This file was extended by sqlite $as_me 3.7.17, which was
20497generated by GNU Autoconf 2.69.  Invocation command line was
20498
20499  CONFIG_FILES    = $CONFIG_FILES
20500  CONFIG_HEADERS  = $CONFIG_HEADERS
20501  CONFIG_LINKS    = $CONFIG_LINKS
20502  CONFIG_COMMANDS = $CONFIG_COMMANDS
20503  $ $0 $@
20504
20505on `(hostname || uname -n) 2>/dev/null | sed 1q`
20506"
20507
20508_ACEOF
20509
20510case $ac_config_files in *"
20511"*) set x $ac_config_files; shift; ac_config_files=$*;;
20512esac
20513
20514
20515
20516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20517# Files that config.status was made for.
20518config_files="$ac_config_files"
20519config_commands="$ac_config_commands"
20520
20521_ACEOF
20522
20523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20524ac_cs_usage="\
20525\`$as_me' instantiates files and other configuration actions
20526from templates according to the current configuration.  Unless the files
20527and actions are specified as TAGs, all are instantiated by default.
20528
20529Usage: $0 [OPTION]... [TAG]...
20530
20531  -h, --help       print this help, then exit
20532  -V, --version    print version number and configuration settings, then exit
20533      --config     print configuration, then exit
20534  -q, --quiet, --silent
20535                   do not print progress messages
20536  -d, --debug      don't remove temporary files
20537      --recheck    update $as_me by reconfiguring in the same conditions
20538      --file=FILE[:TEMPLATE]
20539                   instantiate the configuration file FILE
20540
20541Configuration files:
20542$config_files
20543
20544Configuration commands:
20545$config_commands
20546
20547Report bugs to <http://www.sqlite.org>."
20548
20549_ACEOF
20550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20551ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20552ac_cs_version="\\
20553sqlite config.status 3.7.17
20554configured by $0, generated by GNU Autoconf 2.69,
20555  with options \\"\$ac_cs_config\\"
20556
20557Copyright (C) 2012 Free Software Foundation, Inc.
20558This config.status script is free software; the Free Software Foundation
20559gives unlimited permission to copy, distribute and modify it."
20560
20561ac_pwd='$ac_pwd'
20562srcdir='$srcdir'
20563INSTALL='$INSTALL'
20564MKDIR_P='$MKDIR_P'
20565AWK='$AWK'
20566test -n "\$AWK" || AWK=awk
20567_ACEOF
20568
20569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20570# The default lists apply if the user does not specify any file.
20571ac_need_defaults=:
20572while test $# != 0
20573do
20574  case $1 in
20575  --*=?*)
20576    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20577    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20578    ac_shift=:
20579    ;;
20580  --*=)
20581    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20582    ac_optarg=
20583    ac_shift=:
20584    ;;
20585  *)
20586    ac_option=$1
20587    ac_optarg=$2
20588    ac_shift=shift
20589    ;;
20590  esac
20591
20592  case $ac_option in
20593  # Handling of the options.
20594  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20595    ac_cs_recheck=: ;;
20596  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20597    $as_echo "$ac_cs_version"; exit ;;
20598  --config | --confi | --conf | --con | --co | --c )
20599    $as_echo "$ac_cs_config"; exit ;;
20600  --debug | --debu | --deb | --de | --d | -d )
20601    debug=: ;;
20602  --file | --fil | --fi | --f )
20603    $ac_shift
20604    case $ac_optarg in
20605    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20606    '') as_fn_error $? "missing file argument" ;;
20607    esac
20608    as_fn_append CONFIG_FILES " '$ac_optarg'"
20609    ac_need_defaults=false;;
20610  --he | --h |  --help | --hel | -h )
20611    $as_echo "$ac_cs_usage"; exit ;;
20612  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20613  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20614    ac_cs_silent=: ;;
20615
20616  # This is an error.
20617  -*) as_fn_error $? "unrecognized option: \`$1'
20618Try \`$0 --help' for more information." ;;
20619
20620  *) as_fn_append ac_config_targets " $1"
20621     ac_need_defaults=false ;;
20622
20623  esac
20624  shift
20625done
20626
20627ac_configure_extra_args=
20628
20629if $ac_cs_silent; then
20630  exec 6>/dev/null
20631  ac_configure_extra_args="$ac_configure_extra_args --silent"
20632fi
20633
20634_ACEOF
20635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20636if \$ac_cs_recheck; then
20637  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20638  shift
20639  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20640  CONFIG_SHELL='$SHELL'
20641  export CONFIG_SHELL
20642  exec "\$@"
20643fi
20644
20645_ACEOF
20646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20647exec 5>>config.log
20648{
20649  echo
20650  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20651## Running $as_me. ##
20652_ASBOX
20653  $as_echo "$ac_log"
20654} >&5
20655
20656_ACEOF
20657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20658#
20659# INIT-COMMANDS
20660#
20661AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20662
20663_ACEOF
20664
20665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20666
20667# Handling of arguments.
20668for ac_config_target in $ac_config_targets
20669do
20670  case $ac_config_target in
20671    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20672    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20673    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20674
20675  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20676  esac
20677done
20678
20679
20680# If the user did not use the arguments to specify the items to instantiate,
20681# then the envvar interface is used.  Set only those that are not.
20682# We use the long form for the default assignment because of an extremely
20683# bizarre bug on SunOS 4.1.3.
20684if $ac_need_defaults; then
20685  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20686  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20687fi
20688
20689# Have a temporary directory for convenience.  Make it in the build tree
20690# simply because there is no reason against having it here, and in addition,
20691# creating and moving files from /tmp can sometimes cause problems.
20692# Hook for its removal unless debugging.
20693# Note that there is a small window in which the directory will not be cleaned:
20694# after its creation but before its name has been assigned to `$tmp'.
20695$debug ||
20696{
20697  tmp= ac_tmp=
20698  trap 'exit_status=$?
20699  : "${ac_tmp:=$tmp}"
20700  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20701' 0
20702  trap 'as_fn_exit 1' 1 2 13 15
20703}
20704# Create a (secure) tmp directory for tmp files.
20705
20706{
20707  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20708  test -d "$tmp"
20709}  ||
20710{
20711  tmp=./conf$$-$RANDOM
20712  (umask 077 && mkdir "$tmp")
20713} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20714ac_tmp=$tmp
20715
20716# Set up the scripts for CONFIG_FILES section.
20717# No need to generate them if there are no CONFIG_FILES.
20718# This happens for instance with `./config.status config.h'.
20719if test -n "$CONFIG_FILES"; then
20720
20721
20722ac_cr=`echo X | tr X '\015'`
20723# On cygwin, bash can eat \r inside `` if the user requested igncr.
20724# But we know of no other shell where ac_cr would be empty at this
20725# point, so we can use a bashism as a fallback.
20726if test "x$ac_cr" = x; then
20727  eval ac_cr=\$\'\\r\'
20728fi
20729ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20730if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20731  ac_cs_awk_cr='\\r'
20732else
20733  ac_cs_awk_cr=$ac_cr
20734fi
20735
20736echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20737_ACEOF
20738
20739
20740{
20741  echo "cat >conf$$subs.awk <<_ACEOF" &&
20742  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20743  echo "_ACEOF"
20744} >conf$$subs.sh ||
20745  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20746ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20747ac_delim='%!_!# '
20748for ac_last_try in false false false false false :; do
20749  . ./conf$$subs.sh ||
20750    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20751
20752  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20753  if test $ac_delim_n = $ac_delim_num; then
20754    break
20755  elif $ac_last_try; then
20756    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20757  else
20758    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20759  fi
20760done
20761rm -f conf$$subs.sh
20762
20763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20764cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20765_ACEOF
20766sed -n '
20767h
20768s/^/S["/; s/!.*/"]=/
20769p
20770g
20771s/^[^!]*!//
20772:repl
20773t repl
20774s/'"$ac_delim"'$//
20775t delim
20776:nl
20777h
20778s/\(.\{148\}\)..*/\1/
20779t more1
20780s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20781p
20782n
20783b repl
20784:more1
20785s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20786p
20787g
20788s/.\{148\}//
20789t nl
20790:delim
20791h
20792s/\(.\{148\}\)..*/\1/
20793t more2
20794s/["\\]/\\&/g; s/^/"/; s/$/"/
20795p
20796b
20797:more2
20798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20799p
20800g
20801s/.\{148\}//
20802t delim
20803' <conf$$subs.awk | sed '
20804/^[^""]/{
20805  N
20806  s/\n//
20807}
20808' >>$CONFIG_STATUS || ac_write_fail=1
20809rm -f conf$$subs.awk
20810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20811_ACAWK
20812cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20813  for (key in S) S_is_set[key] = 1
20814  FS = ""
20815
20816}
20817{
20818  line = $ 0
20819  nfields = split(line, field, "@")
20820  substed = 0
20821  len = length(field[1])
20822  for (i = 2; i < nfields; i++) {
20823    key = field[i]
20824    keylen = length(key)
20825    if (S_is_set[key]) {
20826      value = S[key]
20827      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20828      len += length(value) + length(field[++i])
20829      substed = 1
20830    } else
20831      len += 1 + keylen
20832  }
20833
20834  print line
20835}
20836
20837_ACAWK
20838_ACEOF
20839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20840if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20841  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20842else
20843  cat
20844fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20845  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20846_ACEOF
20847
20848# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20849# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20850# trailing colons and then remove the whole line if VPATH becomes empty
20851# (actually we leave an empty line to preserve line numbers).
20852if test "x$srcdir" = x.; then
20853  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20854h
20855s///
20856s/^/:/
20857s/[	 ]*$/:/
20858s/:\$(srcdir):/:/g
20859s/:\${srcdir}:/:/g
20860s/:@srcdir@:/:/g
20861s/^:*//
20862s/:*$//
20863x
20864s/\(=[	 ]*\).*/\1/
20865G
20866s/\n//
20867s/^[^=]*=[	 ]*$//
20868}'
20869fi
20870
20871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20872fi # test -n "$CONFIG_FILES"
20873
20874
20875eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
20876shift
20877for ac_tag
20878do
20879  case $ac_tag in
20880  :[FHLC]) ac_mode=$ac_tag; continue;;
20881  esac
20882  case $ac_mode$ac_tag in
20883  :[FHL]*:*);;
20884  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20885  :[FH]-) ac_tag=-:-;;
20886  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20887  esac
20888  ac_save_IFS=$IFS
20889  IFS=:
20890  set x $ac_tag
20891  IFS=$ac_save_IFS
20892  shift
20893  ac_file=$1
20894  shift
20895
20896  case $ac_mode in
20897  :L) ac_source=$1;;
20898  :[FH])
20899    ac_file_inputs=
20900    for ac_f
20901    do
20902      case $ac_f in
20903      -) ac_f="$ac_tmp/stdin";;
20904      *) # Look for the file first in the build tree, then in the source tree
20905	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20906	 # because $ac_f cannot contain `:'.
20907	 test -f "$ac_f" ||
20908	   case $ac_f in
20909	   [\\/$]*) false;;
20910	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20911	   esac ||
20912	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20913      esac
20914      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20915      as_fn_append ac_file_inputs " '$ac_f'"
20916    done
20917
20918    # Let's still pretend it is `configure' which instantiates (i.e., don't
20919    # use $as_me), people would be surprised to read:
20920    #    /* config.h.  Generated by config.status.  */
20921    configure_input='Generated from '`
20922	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20923	`' by configure.'
20924    if test x"$ac_file" != x-; then
20925      configure_input="$ac_file.  $configure_input"
20926      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20927$as_echo "$as_me: creating $ac_file" >&6;}
20928    fi
20929    # Neutralize special characters interpreted by sed in replacement strings.
20930    case $configure_input in #(
20931    *\&* | *\|* | *\\* )
20932       ac_sed_conf_input=`$as_echo "$configure_input" |
20933       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20934    *) ac_sed_conf_input=$configure_input;;
20935    esac
20936
20937    case $ac_tag in
20938    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20939      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20940    esac
20941    ;;
20942  esac
20943
20944  ac_dir=`$as_dirname -- "$ac_file" ||
20945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946	 X"$ac_file" : 'X\(//\)[^/]' \| \
20947	 X"$ac_file" : 'X\(//\)$' \| \
20948	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20949$as_echo X"$ac_file" |
20950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20951	    s//\1/
20952	    q
20953	  }
20954	  /^X\(\/\/\)[^/].*/{
20955	    s//\1/
20956	    q
20957	  }
20958	  /^X\(\/\/\)$/{
20959	    s//\1/
20960	    q
20961	  }
20962	  /^X\(\/\).*/{
20963	    s//\1/
20964	    q
20965	  }
20966	  s/.*/./; q'`
20967  as_dir="$ac_dir"; as_fn_mkdir_p
20968  ac_builddir=.
20969
20970case "$ac_dir" in
20971.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972*)
20973  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20974  # A ".." for each directory in $ac_dir_suffix.
20975  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20976  case $ac_top_builddir_sub in
20977  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20979  esac ;;
20980esac
20981ac_abs_top_builddir=$ac_pwd
20982ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983# for backward compatibility:
20984ac_top_builddir=$ac_top_build_prefix
20985
20986case $srcdir in
20987  .)  # We are building in place.
20988    ac_srcdir=.
20989    ac_top_srcdir=$ac_top_builddir_sub
20990    ac_abs_top_srcdir=$ac_pwd ;;
20991  [\\/]* | ?:[\\/]* )  # Absolute name.
20992    ac_srcdir=$srcdir$ac_dir_suffix;
20993    ac_top_srcdir=$srcdir
20994    ac_abs_top_srcdir=$srcdir ;;
20995  *) # Relative name.
20996    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997    ac_top_srcdir=$ac_top_build_prefix$srcdir
20998    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999esac
21000ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21001
21002
21003  case $ac_mode in
21004  :F)
21005  #
21006  # CONFIG_FILE
21007  #
21008
21009  case $INSTALL in
21010  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21012  esac
21013  ac_MKDIR_P=$MKDIR_P
21014  case $MKDIR_P in
21015  [\\/$]* | ?:[\\/]* ) ;;
21016  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21017  esac
21018_ACEOF
21019
21020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21021# If the template does not know about datarootdir, expand it.
21022# FIXME: This hack should be removed a few years after 2.60.
21023ac_datarootdir_hack=; ac_datarootdir_seen=
21024ac_sed_dataroot='
21025/datarootdir/ {
21026  p
21027  q
21028}
21029/@datadir@/p
21030/@docdir@/p
21031/@infodir@/p
21032/@localedir@/p
21033/@mandir@/p'
21034case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21035*datarootdir*) ac_datarootdir_seen=yes;;
21036*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21038$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21039_ACEOF
21040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21041  ac_datarootdir_hack='
21042  s&@datadir@&$datadir&g
21043  s&@docdir@&$docdir&g
21044  s&@infodir@&$infodir&g
21045  s&@localedir@&$localedir&g
21046  s&@mandir@&$mandir&g
21047  s&\\\${datarootdir}&$datarootdir&g' ;;
21048esac
21049_ACEOF
21050
21051# Neutralize VPATH when `$srcdir' = `.'.
21052# Shell code in configure.ac might set extrasub.
21053# FIXME: do we really want to maintain this feature?
21054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21055ac_sed_extra="$ac_vpsub
21056$extrasub
21057_ACEOF
21058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21059:t
21060/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21061s|@configure_input@|$ac_sed_conf_input|;t t
21062s&@top_builddir@&$ac_top_builddir_sub&;t t
21063s&@top_build_prefix@&$ac_top_build_prefix&;t t
21064s&@srcdir@&$ac_srcdir&;t t
21065s&@abs_srcdir@&$ac_abs_srcdir&;t t
21066s&@top_srcdir@&$ac_top_srcdir&;t t
21067s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21068s&@builddir@&$ac_builddir&;t t
21069s&@abs_builddir@&$ac_abs_builddir&;t t
21070s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21071s&@INSTALL@&$ac_INSTALL&;t t
21072s&@MKDIR_P@&$ac_MKDIR_P&;t t
21073$ac_datarootdir_hack
21074"
21075eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21076  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21077
21078test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21079  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21080  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21081      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21082  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21083which seems to be undefined.  Please make sure it is defined" >&5
21084$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21085which seems to be undefined.  Please make sure it is defined" >&2;}
21086
21087  rm -f "$ac_tmp/stdin"
21088  case $ac_file in
21089  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21090  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21091  esac \
21092  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21093 ;;
21094
21095
21096  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21097$as_echo "$as_me: executing $ac_file commands" >&6;}
21098 ;;
21099  esac
21100
21101
21102  case $ac_file$ac_mode in
21103    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21104  # Strip MF so we end up with the name of the file.
21105  mf=`echo "$mf" | sed -e 's/:.*$//'`
21106  # Check whether this is an Automake generated Makefile or not.
21107  # We used to match only the files named `Makefile.in', but
21108  # some people rename them; so instead we look at the file content.
21109  # Grep'ing the first line is not enough: some people post-process
21110  # each Makefile.in and add a new line on top of each file to say so.
21111  # So let's grep whole file.
21112  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21113    dirpart=`$as_dirname -- "$mf" ||
21114$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21115	 X"$mf" : 'X\(//\)[^/]' \| \
21116	 X"$mf" : 'X\(//\)$' \| \
21117	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21118$as_echo X"$mf" |
21119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21120	    s//\1/
21121	    q
21122	  }
21123	  /^X\(\/\/\)[^/].*/{
21124	    s//\1/
21125	    q
21126	  }
21127	  /^X\(\/\/\)$/{
21128	    s//\1/
21129	    q
21130	  }
21131	  /^X\(\/\).*/{
21132	    s//\1/
21133	    q
21134	  }
21135	  s/.*/./; q'`
21136  else
21137    continue
21138  fi
21139  # Extract the definition of DEPDIR, am__include, and am__quote
21140  # from the Makefile without running `make'.
21141  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21142  test -z "$DEPDIR" && continue
21143  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21144  test -z "am__include" && continue
21145  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21146  # When using ansi2knr, U may be empty or an underscore; expand it
21147  U=`sed -n 's/^U = //p' < "$mf"`
21148  # Find all dependency output files, they are included files with
21149  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21150  # simplest approach to changing $(DEPDIR) to its actual value in the
21151  # expansion.
21152  for file in `sed -n "
21153    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21154       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21155    # Make sure the directory exists.
21156    test -f "$dirpart/$file" && continue
21157    fdir=`$as_dirname -- "$file" ||
21158$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21159	 X"$file" : 'X\(//\)[^/]' \| \
21160	 X"$file" : 'X\(//\)$' \| \
21161	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21162$as_echo X"$file" |
21163    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21164	    s//\1/
21165	    q
21166	  }
21167	  /^X\(\/\/\)[^/].*/{
21168	    s//\1/
21169	    q
21170	  }
21171	  /^X\(\/\/\)$/{
21172	    s//\1/
21173	    q
21174	  }
21175	  /^X\(\/\).*/{
21176	    s//\1/
21177	    q
21178	  }
21179	  s/.*/./; q'`
21180    as_dir=$dirpart/$fdir; as_fn_mkdir_p
21181    # echo "creating $dirpart/$file"
21182    echo '# dummy' > "$dirpart/$file"
21183  done
21184done
21185 ;;
21186
21187  esac
21188done # for ac_tag
21189
21190
21191as_fn_exit 0
21192_ACEOF
21193ac_clean_files=$ac_clean_files_save
21194
21195test $ac_write_fail = 0 ||
21196  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21197
21198
21199# configure is writing to config.log, and then calls config.status.
21200# config.status does its own redirection, appending to config.log.
21201# Unfortunately, on DOS this fails, as config.log is still kept open
21202# by configure, so config.status won't be able to write to it; its
21203# output is simply discarded.  So we exec the FD to /dev/null,
21204# effectively closing config.log, so it can be properly (re)opened and
21205# appended to by config.status.  When coming back to configure, we
21206# need to make the FD available again.
21207if test "$no_create" != yes; then
21208  ac_cs_success=:
21209  ac_config_status_args=
21210  test "$silent" = yes &&
21211    ac_config_status_args="$ac_config_status_args --quiet"
21212  exec 5>/dev/null
21213  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21214  exec 5>>config.log
21215  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21216  # would make configure fail if this is the last instruction.
21217  $ac_cs_success || as_fn_exit 1
21218fi
21219if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21220  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21221$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21222fi
21223
21224